/* win.css - the winning moment: the final line, its shine and the glow */
/* ---- win reveal ---- */
#fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;border-radius:18px;z-index:3}
#winLine::before{content:'';position:absolute;left:-16%;right:-16%;top:-34%;bottom:-30%;z-index:-1;
  background:radial-gradient(ellipse at 50% 56%, rgba(9,4,5,.88) 0%, rgba(9,4,5,.72) 38%, rgba(9,4,5,.34) 60%, rgba(9,4,5,0) 78%);
  pointer-events:none}
#winLine .w,#winLine .ded{text-shadow:0 3px 18px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.6)}
#winLine{position:absolute;left:0;right:0;bottom:4%;display:flex;flex-direction:column;align-items:center;
  pointer-events:none;z-index:4;opacity:0}
#winLine.on{opacity:1}
#winLine .w{font-family:'ArefRuqaa',serif;font-weight:700;font-size:clamp(27px,7.6vw,40px);line-height:1.7;text-align:center;
  padding:0 8vw;letter-spacing:.01em;
  background:linear-gradient(100deg,#f0d49a 0%,#fff8e6 30%,#e9c481 44%,#fff8e6 58%,#efd39a 100%);
  background-size:260% 100%;-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
  filter:drop-shadow(0 6px 20px rgba(0,0,0,.85)) drop-shadow(0 0 18px rgba(240,200,130,.35));
  transform:scale(.55);opacity:0}
#winLine.on .w{opacity:1;transform:scale(1);animation:winPop 1s cubic-bezier(.18,1.5,.36,1) .05s forwards, winShine 2.6s ease-in-out .9s infinite}
@keyframes winPop{
  0%{transform:scale(.55) translateY(14px);opacity:0;filter:blur(7px)}
  55%{transform:scale(1.07) translateY(0);opacity:1;filter:blur(0)}
  100%{transform:scale(1);opacity:1}
}
@keyframes winShine{0%{background-position:130% 0}55%{background-position:-40% 0}100%{background-position:-40% 0}}
#winLine .rule{height:1.6px;width:0;margin-top:12px;
  background:linear-gradient(90deg,rgba(230,194,131,0) 0%,#e8c68b 50%,rgba(230,194,131,0) 100%);
  box-shadow:0 0 12px rgba(240,200,130,.55)}
#winLine.on .rule{width:58%;animation:ruleGrow 1.2s cubic-bezier(.2,.9,.2,1) .5s forwards}
@keyframes ruleGrow{to{width:58%}}
#winLine .glow{position:absolute;left:50%;top:44%;width:130%;height:150%;transform:translate(-50%,-50%);
  background:radial-gradient(ellipse at center, rgba(255,214,150,.22) 0%, rgba(255,190,120,.08) 38%, rgba(0,0,0,0) 68%);
  opacity:0;pointer-events:none}
#winLine.on .glow{opacity:1;animation:glowIn 1.6s ease .15s forwards}
@keyframes glowIn{to{opacity:1}}
.board-wrap.pulse{animation:boardPulse 1.5s cubic-bezier(.2,.9,.2,1)}
@keyframes boardPulse{0%{transform:scale(1)}38%{transform:scale(1.018)}100%{transform:scale(1)}}
