/* 4 Princes — Blastile celebrations (4p-blastile-fx-v1, blastile-fx.js). Nothing here takes the pointer. */
.bfx-canvas{position:fixed;left:0;top:0;width:100vw;height:100vh;pointer-events:none;z-index:40}
/* 4p-blastile-fx-v3: the board's dimming under a 4+ line celebration (opacity set by blastile-fx.js, at most .18) */
.bfx-dim{position:fixed;z-index:39;pointer-events:none;background:#060810;opacity:0;will-change:opacity}
.bfx-glow{position:absolute;inset:0;border-radius:18px;pointer-events:none;opacity:0;transition:opacity .4s ease-out;z-index:4}
.bfx-glow.on{opacity:1}
.bfx-glow.g1{box-shadow:0 0 0 1.5px rgba(226,176,74,.55),0 0 14px 2px rgba(226,176,74,.35)}
.bfx-glow.g2{box-shadow:0 0 0 2px rgba(226,176,74,.72),0 0 22px 4px rgba(226,176,74,.45)}
.bfx-glow.g3{box-shadow:0 0 0 2.5px rgba(243,213,142,.85),0 0 30px 7px rgba(226,176,74,.56)}
.bfx-glow.g4{box-shadow:0 0 0 3px #F3D58E,0 0 42px 11px rgba(226,176,74,.7),inset 0 0 18px rgba(243,213,142,.35)}
.bfx-badge{position:absolute;top:-11px;right:-4px;z-index:6;pointer-events:none;font-family:Outfit,system-ui,sans-serif;font-weight:800;font-size:14px;line-height:1;
  color:#1b2130;background:linear-gradient(180deg,#F3D58E,#E2B04A);border-radius:999px;padding:5px 9px;
  box-shadow:0 3px 10px rgba(0,0,0,.4),0 0 12px rgba(226,176,74,.6);opacity:0;transition:opacity .4s ease-out}
.bfx-badge.on{opacity:1}
.bfx-badge.pop{animation:bfxPop .35s cubic-bezier(.2,1.6,.4,1)}
@keyframes bfxPop{0%{transform:scale(1.6)}100%{transform:scale(1)}}
.bfx-label{position:fixed;z-index:46;pointer-events:none;transform:translate(-50%,-100%);white-space:nowrap;font-family:Outfit,system-ui,sans-serif;
  font-weight:800;font-size:30px;letter-spacing:.06em;color:#F3D58E;
  text-shadow:0 0 14px rgba(226,176,74,.85),0 3px 0 rgba(150,90,10,.6),0 6px 16px rgba(0,0,0,.55);animation:bfxLabel 1.1s ease-out forwards}
.bfx-label.big{font-size:34px;color:#FFF6DC}
@keyframes bfxLabel{0%{opacity:0;transform:translate(-50%,-70%) scale(.7)}18%{opacity:1;transform:translate(-50%,-100%) scale(1.08)}
  30%{transform:translate(-50%,-100%) scale(1)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-135%) scale(1)}}
.bfx-pulse{position:absolute;inset:0;border-radius:18px;pointer-events:none;z-index:5;
  box-shadow:0 0 0 3px rgba(243,213,142,.95),0 0 36px 10px rgba(226,176,74,.7);animation:bfxPulse .6s ease-out forwards}
@keyframes bfxPulse{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
.bfx-shake{animation:bfxShake .25s linear}
@keyframes bfxShake{0%,100%{transform:translate(0,0)}25%{transform:translate(-3px,2px)}50%{transform:translate(3px,-2px)}75%{transform:translate(-2px,1px)}}
@keyframes bfxFade{0%{opacity:0}15%{opacity:1}75%{opacity:1}100%{opacity:0}}
/* 4p-blastile-fx-v3: TRIPLE pops above the board with a bounce and a bright shine across its gold letters; CROWN CLEAR is
   large, metallic gold with a shine sweeping across it, then fades. (A drop-shadow filter, not text-shadow: the letters
   are the gradient itself.) */
.bfx-label.shine{color:transparent;text-shadow:none;-webkit-background-clip:text;background-clip:text;background-size:300% 100%;background-position:100% 0;
  background-image:linear-gradient(100deg,#C8901F 0%,#F3D58E 28%,#F6D069 40%,#FFFFFF 48%,#FFF3C4 52%,#F6D069 60%,#E2B04A 75%,#B97F16 100%);
  filter:drop-shadow(0 3px 6px rgba(90,50,5,.85))}
.bfx-label.tri{font-size:36px;animation:bfxTri 2.3s ease-out forwards,bfxShine .9s .3s ease-in-out 2 both}
.bfx-label.crownl{font-size:clamp(30px,10.5vw,46px);letter-spacing:.07em;animation:bfxCrownL 3.25s ease-out forwards,bfxShine 1.1s .25s ease-in-out 3 both}
@keyframes bfxShine{0%{background-position:100% 0}100%{background-position:0 0}}
@keyframes bfxTri{0%{opacity:0;transform:translate(-50%,-60%) scale(.35)}10%{opacity:1;transform:translate(-50%,-100%) scale(1.28)}
  17%{transform:translate(-50%,-100%) scale(.9)}24%{transform:translate(-50%,-100%) scale(1.06)}30%{transform:translate(-50%,-100%) scale(1)}
  82%{opacity:1;transform:translate(-50%,-100%) scale(1)}100%{opacity:0;transform:translate(-50%,-130%) scale(1)}}
@keyframes bfxCrownL{0%{opacity:0;transform:translate(-50%,-70%) scale(.6)}9%{opacity:1;transform:translate(-50%,-100%) scale(1.12)}
  16%{transform:translate(-50%,-100%) scale(1)}84%{opacity:1;transform:translate(-50%,-100%) scale(1)}100%{opacity:0;transform:translate(-50%,-125%) scale(1.04)}}
.bfx-pulse.long{animation:bfxPulseL 1.45s ease-in-out forwards}
@keyframes bfxPulseL{0%{opacity:0}30%{opacity:.9}60%{opacity:.6}80%{opacity:.8}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){
  .bfx-label.tri{animation:bfxFade 2.3s ease-out forwards}
  .bfx-label.crownl{animation:bfxFade 3.25s ease-out forwards}
  .bfx-shake,.bfx-badge.pop{animation:none}
  .bfx-label{animation:bfxFade 1.1s ease-out forwards}
  /* solo page: no punch, no rays; the score stamp only fades (its shake was already off) */
  .punch1,.punch2{animation:none}
  .rays{display:none}
  .stamp .w,.stamp .p{animation:bfxFade 1.1s ease-out forwards}
}
