/* v6: original theme with restrained heading and conversion effects. */
/* Original negative title margins shifted headings inside the new full-width blocks. */
:is(.pg-sports,.pg-rewards) > ui-starshine-block-title {
  width:100%; max-width:none; margin-left:0; margin-right:0;
  padding-left:0; padding-right:0; align-items:center;
}
:is(.pg-sports,.pg-rewards) .ui-block-title__wrapper { align-items:center; max-width:100%; text-align:center; }
:is(.pg-sports,.pg-rewards) .ui-block-title__title { width:100%; text-align:center; }
:is(.pg-sports,.pg-rewards) .ui-block-title__description { text-align:center; }
ui-starshine-block-title > .pg-heading-sparkles,
.textSeo > .pg-article-sparkles { display:block; position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:1; }
.pg-heading-sparkles .pg-spark,
.pg-article-sparkles .pg-spark {
  position:absolute; left:var(--x); top:var(--y); width:var(--size); height:var(--size);
  background:#e9c05f; clip-path:polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%);
  opacity:.25; animation:pg-starshine 5s ease-in-out var(--delay) infinite;
}
.textSeo > .pg-article-sparkles { bottom:auto; height:52px; opacity:.45; }
@keyframes pg-starshine { 0%,100% { opacity:.15; transform:scale(.65); } 45% { opacity:.85; transform:scale(1.15); } 65% { opacity:.3; transform:scale(.8); } }
/* Shadow pulses do not resize controls or displace surrounding elements. */
button[data-referral="true"]:is(.ui-button,.pg-mobile-actions__button) {
  --pg-pulse-color:rgba(233,192,95,.22);
  animation:pg-action-pulse 4.8s ease-in-out infinite;
}
button[data-referral="true"]:is(.ui-button_primary-animation,.ui-button_primary,.pg-mobile-actions__button--casino) { --pg-pulse-color:rgba(255,36,0,.25); }
button[data-referral="true"]:is(.ui-button_secondary,.pg-mobile-actions__button--sport) { animation-delay:-2.4s; }
@keyframes pg-action-pulse { 0%,70%,100% { box-shadow:0 0 0 0 transparent; } 35% { box-shadow:0 0 0 3px var(--pg-pulse-color),0 0 16px var(--pg-pulse-color); } }
button[data-referral="true"]:is(.ui-button,.pg-mobile-actions__button):is(:hover,:focus-visible,:active) { animation-play-state:paused; }
/* Header is fixed to the viewport on both layouts, with a matching flow spacer. */
header[puheader] {
  position:fixed; top:0; left:0; right:0; width:auto; z-index:1100;
  flex:none; padding-top:calc(.5rem + env(safe-area-inset-top,0px)); padding-bottom:.5rem;
  background:var(--color-headers-bg); box-shadow:0 4px 20px #0005;
  transition:none; box-sizing:border-box;
}
.pg-header-spacer { display:block; flex:0 0 auto; height:var(--pg-fixed-header-height,72px); }
html { scroll-padding-top:calc(var(--pg-fixed-header-height,72px) + 16px); scroll-padding-bottom:calc(var(--pg-mobile-actions-height,0px) + 16px); }
.textSeo section { scroll-margin-top:16px; }
@media (min-width:768px) { header[puheader] { padding-top:calc(.75rem + env(safe-area-inset-top,0px)); padding-bottom:.75rem; } }
@media (min-width:1280px) { header[puheader] { left:210px; padding-top:calc(1rem + env(safe-area-inset-top,0px)); padding-bottom:1rem; } }
.pg-mobile-actions { display:none; }
@media (max-width:767px) {
  .pg-mobile-actions {
    position:fixed; bottom:0; left:0; right:0; z-index:1100; display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:10px;
    padding:12px max(12px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
    background:var(--color-headers-bg); border-top:1px solid #e9c05f33;
    box-shadow:0 -4px 20px #0006; box-sizing:border-box;
  }
  .pg-mobile-actions__button {
    display:flex; align-items:center; justify-content:center; min-width:0; min-height:48px;
    padding:10px 6px; border:1px solid transparent; border-radius:var(--border-radius-button,8px);
    font:700 clamp(11px,3.1vw,14px)/1.3 Roboto,Arial,sans-serif; text-align:center; cursor:pointer;
  }
  .pg-mobile-actions__button--casino { background:linear-gradient(180deg,#ff3820,#e52108); border-color:#ff503a; color:#fff; }
  .pg-mobile-actions__button--sport { background:linear-gradient(180deg,#f9e9c9,#e9c05f); border-color:#f9e9c9; color:#171213; }
  .pu-shell__main.pu-shell__main_navbar { padding-bottom:calc(var(--pg-mobile-actions-height,calc(72px + env(safe-area-inset-bottom,0px))) + 16px); }
  #site-menu.pg-menu-open { bottom:var(--pg-mobile-actions-height,72px); height:auto; }
}
@media (prefers-reduced-motion:reduce) {
  .pg-heading-sparkles .pg-spark,.pg-article-sparkles .pg-spark { animation:none!important; opacity:.3; }
  button[data-referral="true"]:is(.ui-button,.pg-mobile-actions__button) { animation:none!important; }
}
