/* World fills the canvas; the complete squad fits inside its own safe frame. */
#play-screen .play-art{position:fixed;inset:0;height:100%;perspective:1400px}
#play-screen .play-world-plane{z-index:0;position:absolute;inset:-14px;animation:menu-world-drift 22s ease-in-out infinite alternate;animation-play-state:running!important}
#play-screen .play-art .play-world{width:100%;height:100%;object-fit:cover;object-position:center;opacity:1;transform:translate(calc(var(--depth-x)*.45),calc(var(--depth-y)*.45));transition:transform 1s cubic-bezier(.2,.7,.2,1)}
#play-screen .play-stage{z-index:2;position:absolute;right:1.4%;top:8%;bottom:4%;width:65%;transform:translate(var(--depth-x),var(--depth-y));transition:transform .85s cubic-bezier(.2,.7,.2,1)}
#play-screen .play-art .play-squad{width:100%;height:100%;object-fit:contain;object-position:center;opacity:1;transform-origin:50% 80%;animation:menu-squad-drift 12s ease-in-out infinite alternate;animation-play-state:running!important;transition:none}
#play-screen:not([data-view=home]) .play-art:after{background:linear-gradient(90deg,#f7f3e9 0%,#f7f3e9ed 30%,transparent 63%)}
#play-screen .play-view{animation:none}
#play-screen .play-action,#play-screen .play-primary,#play-screen button{transition:background .2s,border-color .2s,box-shadow .25s,transform .25s cubic-bezier(.2,.8,.2,1)}
#play-screen .play-action:hover,#play-screen .play-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 9px 24px #24334612}
#play-screen .play-action:active,#play-screen button:active:not(:disabled){transform:translateY(1px) scale(.985);transition-duration:.08s;box-shadow:none}
#play-screen .play-arrow{display:inline-block;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
#play-screen .play-action:hover .play-arrow,#play-screen .play-primary:hover:not(:disabled) .play-arrow{transform:translateX(6px)}
#play-screen .play-back:hover{transform:translateX(-3px);transition:transform .2s}
#play-screen[data-scene-paused] .play-world-plane,#play-screen[data-scene-paused] .play-squad,#play-screen.entering-match .play-world-plane,#play-screen.entering-match .play-squad{animation-play-state:paused!important}
@keyframes menu-world-drift{from{transform:translate3d(-3px,-2px,0) scale(1.015)}to{transform:translate3d(4px,3px,0) scale(1.027)}}
@keyframes menu-squad-drift{0%{transform:translate3d(0,3px,0) rotate(-.12deg)}50%{transform:translate3d(-3px,-2px,0) rotate(.08deg)}100%{transform:translate3d(2px,-4px,0) rotate(.12deg)}}

#play-screen .play-art:after{z-index:1}

/* A short camera move into the eye, followed by an aperture onto the live board. */
#match-entrance{position:fixed;inset:0;z-index:150;isolation:isolate;overflow:hidden;background:transparent}
#match-entrance[hidden]{display:none!important}
#match-entrance .entrance-mask{position:absolute;inset:0;overflow:hidden;background:#111716}
#match-entrance img{position:absolute;max-width:none;pointer-events:none;user-select:none}
#match-entrance .entrance-world{inset:0;width:100%;height:100%;object-fit:cover}
#match-entrance .entrance-squad{transform-origin:0 0;will-change:transform}
#match-entrance .entrance-head{will-change:transform,opacity;mask-image:radial-gradient(ellipse at 50% 50%,#000 38%,transparent 70%)}
#match-entrance .entrance-eye{will-change:transform,opacity}
#match-entrance .entrance-skip{position:absolute;right:30px;bottom:24px;display:flex;align-items:center;gap:22px;min-height:44px;padding:10px 18px;font:13px/1.4 'Segoe UI',Arial,sans-serif;letter-spacing:0;background:#f7f3e9e8;color:#243346;border:1px solid #a1b1a4;border-radius:7px;cursor:pointer;box-shadow:none}
#match-entrance .entrance-skip:hover{background:#fffdf8}
#match-entrance .entrance-skip:focus-visible{outline:3px solid #278180;outline-offset:4px}
body.match-entering{overflow:hidden}
@media(max-width:900px){
 #play-screen .play-art{height:100%}
 #play-screen .play-stage{top:46px;bottom:auto;right:2%;width:96%;height:clamp(140px,28dvh,242px)}
 #play-screen .play-art .play-world{object-position:74% top;opacity:.6}
 #play-screen .play-art:after{background:linear-gradient(180deg,transparent 0%,transparent 18%,#f7f3e9 43%)}
 #play-screen:not([data-view=home]) .play-art:after{background:linear-gradient(180deg,#f7f3e950 0%,#f7f3e9b0 22%,#f7f3e9 42%)}
 #play-screen:not([data-view=home]) .play-art .play-squad{opacity:.3}
 #match-entrance .entrance-skip{right:20px;bottom:20px}
}
@media(max-width:900px) and (max-height:600px){
 #play-screen .play-stage{top:50px;height:calc(100% - 90px);right:1%;width:98%}
 #play-screen .play-art .play-squad{opacity:.2}
 #play-screen .play-art:after{background:linear-gradient(90deg,#f7f3e9bd,#f7f3e922)}
}
@media(max-height:520px) and (min-width:540px){
 #play-screen .play-stage{top:45px;bottom:28px;height:auto;right:2%;width:63%}
 #play-screen .play-art .play-squad{opacity:.22}
 #play-screen .play-art .play-world{opacity:.65}
 #play-screen .play-art:after,#play-screen:not([data-view=home]) .play-art:after{background:linear-gradient(90deg,#f7f3e9ed,transparent)}
}
@media(prefers-reduced-motion:reduce){
 #play-screen .play-world-plane,#play-screen .play-art .play-squad{animation:none!important;transform:none!important}
 #play-screen .play-stage,#play-screen .play-art .play-world{transform:none!important;transition:none!important}
 #play-screen .play-action:hover,#play-screen button:active,#play-screen .play-primary:hover,#play-screen .play-arrow,#play-screen .play-back:hover{transform:none!important;transition:none!important}
}
body.reduce-motion #play-screen .play-world-plane,body.reduce-motion #play-screen .play-art .play-squad{animation:none!important;transform:none!important}
body.reduce-motion #play-screen .play-stage,body.reduce-motion #play-screen .play-art .play-world,body.reduce-motion #play-screen .play-action,body.reduce-motion #play-screen .play-arrow,body.reduce-motion #play-screen .play-back{transform:none!important;transition:none!important}
