/* Performance profile: preserve the purple/gold art direction while reducing mobile paint work. */
.b8-root .b8-cash-ladder,
.b8-root .b8-leaders,
.b8-root .b8-board,
.b8-root .b8-pass-shell,
.b8-root .b8-qualification,
.b8-root .b8-guide,
.b8-root .b8-terms{
  content-visibility:auto;
  contain-intrinsic-size:auto 420px;
}

/* The generated gold title keeps one static outline. Only its small backlight breathes. */
html[data-gift-title-style="outframe"] .b8-root .b8-gift-title-art{
  animation:none!important;
}

html[data-performance="lite"] .b8-root .b8-header,
html[data-performance="lite"] .b8-root .b8-rank-dialog::backdrop{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

html[data-performance="lite"] .b8-root .b8-trophy-float,
html[data-performance="lite"] .b8-root .b8-orbit-a,
html[data-performance="lite"] .b8-root .b8-orbit-b,
html[data-performance="lite"] .b8-root .b8-energy-sweep,
html[data-performance="lite"] .b8-root .b8-rank-halo-sweep,
html[data-performance="lite"] .b8-root .b8-rank-orbit-sweep,
html[data-performance="lite"] .b8-root .b8-showroom-beam,
html[data-performance="lite"] .b8-root .b8-showroom-floor-pulse,
html[data-performance="lite"] .b8-root .b8-showroom-floor-sweep{
  will-change:auto!important;
}

html[data-performance="lite"] .b8-root .b8-showroom-motion,
html[data-performance="lite"] .b8-root .b8-energy-sweep,
html[data-performance="lite"] .b8-root .b8-stage-spark,
html[data-performance="lite"] .b8-root .b8-rank-crown-glint{
  display:none!important;
}

/* Lite phones keep the same core motion language without loading GSAP.
   Only compositor-friendly transforms and opacity run, and only in view. */
html[data-performance="lite"] .b8-root .b8-trophy-float{
  animation:b8-lite-trophy-float 6.4s ease-in-out infinite;
  animation-play-state:paused;
}

html[data-performance="lite"] .b8-root .b8-stage-glow{
  animation:b8-lite-stage-glow 6.4s ease-in-out infinite;
  animation-play-state:paused;
}

html[data-performance="lite"] .b8-root .b8-hero.b8-lite-in-view .b8-trophy-float,
html[data-performance="lite"] .b8-root .b8-hero.b8-lite-in-view .b8-stage-glow{
  animation-play-state:running;
}

html[data-performance="lite"] .b8-root .b8-hero.b8-lite-in-view .b8-trophy-float{will-change:transform!important}
html[data-performance="lite"] .b8-root .b8-hero.b8-lite-in-view .b8-stage-glow{will-change:opacity!important}

html[data-performance="lite"] .b8-root .b8-chrono-seconds.b8-lite-tick strong{
  animation:b8-lite-countdown-tick 240ms cubic-bezier(.16,1,.3,1) both;
}

html[data-performance="lite"][data-gift-title-style="outframe"] .b8-root .b8-gift-title-art-frame::before{
  animation:b8-lite-title-backlight 6.8s ease-in-out infinite;
  animation-play-state:paused;
}

html[data-performance="lite"][data-gift-title-style="outframe"] .b8-root .b8-gifts-frame-shell.b8-lite-in-view .b8-gift-title-art-frame::before{
  animation-play-state:running;
  will-change:opacity!important;
}

html[data-performance="lite"] .b8-root .b8-gift-card[data-rank="1"] .b8-gift-product{
  animation:b8-lite-prize-float 6.8s ease-in-out infinite;
  animation-play-state:paused;
}

html[data-performance="lite"] .b8-root .b8-gift-card[data-rank="1"] .b8-gift-shadow{
  animation:b8-lite-prize-shadow 6.8s ease-in-out infinite;
  animation-play-state:paused;
}

html[data-performance="lite"] .b8-root .b8-gifts-frame-shell.b8-lite-in-view .b8-gift-card[data-rank="1"] .b8-gift-product,
html[data-performance="lite"] .b8-root .b8-gifts-frame-shell.b8-lite-in-view .b8-gift-card[data-rank="1"] .b8-gift-shadow{
  animation-play-state:running;
}

html[data-performance="lite"] .b8-root .b8-gifts-frame-shell.b8-lite-in-view .b8-gift-card[data-rank="1"] .b8-gift-product{will-change:transform!important}
html[data-performance="lite"] .b8-root .b8-gifts-frame-shell.b8-lite-in-view .b8-gift-card[data-rank="1"] .b8-gift-shadow{will-change:transform,opacity!important}

html[data-performance="lite"] .b8-root #b8-podium .b8-podium-card[data-rank="1"] .b8-rank-halo{
  animation:b8-lite-podium-glow 7.2s ease-in-out infinite;
  animation-play-state:paused;
}

html[data-performance="lite"] .b8-root #b8-podium.b8-lite-in-view .b8-podium-card[data-rank="1"] .b8-rank-halo{
  animation-play-state:running;
  will-change:opacity!important;
}

@keyframes b8-lite-trophy-float{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-3px,0)}
}

@keyframes b8-lite-stage-glow{
  0%,100%{opacity:.24}
  50%{opacity:.34}
}

@keyframes b8-lite-countdown-tick{
  0%{opacity:.72;transform:translate3d(0,2px,0)}
  100%{opacity:1;transform:translate3d(0,0,0)}
}

@keyframes b8-lite-title-backlight{
  0%,100%{opacity:.46}
  50%{opacity:.68}
}

@keyframes b8-lite-prize-float{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-3px,0)}
}

@keyframes b8-lite-prize-shadow{
  0%,100%{opacity:.32;transform:scale(1)}
  50%{opacity:.25;transform:scale(.94)}
}

@keyframes b8-lite-podium-glow{
  0%,100%{opacity:.46}
  50%{opacity:.64}
}

html[data-performance="lite"][data-gift-title-style="outframe"] .b8-root .b8-gift-title-art{
  filter:
    drop-shadow(0 0 4px rgba(203,100,255,.58))
    drop-shadow(0 10px 9px rgba(20,1,31,.34))!important;
}

html[data-performance="lite"][data-gift-title-style="outframe"] .b8-root .b8-gift-title-art-frame::before{
  filter:none!important;
  opacity:.48;
}

html[data-performance="lite"] .b8-root #b8-podium.b8-podium-art-mounted:not(.b8-podium-art-error)>.b8-podium-art{
  filter:drop-shadow(0 8px 10px rgba(51,8,70,.16))!important;
}

/* The requested board title always remains a single line; the period chip may wrap below it. */
.b8-root .b8-board-title-row h2{
  max-width:100%;
  font-size:clamp(14px,2.1vw,25px)!important;
  line-height:1.15;
  letter-spacing:clamp(-.75px,-.05vw,-.35px);
  white-space:nowrap;
}

@media(max-width:767px){
  .b8-root .b8-board-title-row{align-items:center;column-gap:8px;row-gap:7px}
  .b8-root .b8-board-title-row h2{font-size:clamp(14px,4.35vw,18px)!important}
  html[data-performance="lite"] .b8-root .b8-header{background:rgba(253,251,255,.98)!important}
}

@media(prefers-reduced-motion:reduce){
  html[data-performance="lite"] .b8-root *,
  html[data-performance="lite"] .b8-root *::before,
  html[data-performance="lite"] .b8-root *::after{
    animation:none!important;
    transition:none!important;
  }
}

