/* The restored painted stadium owns the pitch and the goal perspective. */
.stadium-plane .stadium-art{inset:auto;left:0;top:calc(var(--ground,65svh) - var(--scene-height,100svh)*.71);width:100%;height:var(--scene-height,100svh);object-fit:fill}
.stadium-plane .field-keeper{left:90.2%;top:calc(var(--ground,65svh) + var(--scene-height,100svh)*.008 + var(--actor-unit)*.07142857)}
body.open-mode .stadium-light{background:linear-gradient(#04132252,transparent 33%,transparent 78%,#03131caa);box-shadow:inset 0 0 70px #04101922}
body:has(.quiet-home) .stadium-plane{transform:translateX(calc((100vw - var(--pitch-width))*.5))}
body:has(.quiet-home) .field-keeper,body:has(.quiet-home) .field-ball{visibility:hidden}
body:has(.quiet-home) .stadium-light{background:linear-gradient(#03122566,transparent 60%,#04131a55)}
body:has(.quiet-home) .stadium-plane .stadium-art{top:calc(var(--ground,65svh) - var(--scene-height,100svh)*.8)}
.tunnel-frame{position:absolute;left:0;top:calc(var(--ground,65svh) - var(--scene-height,100svh)*.74);width:100%;height:var(--scene-height,100svh);z-index:3;pointer-events:none;transform-origin:50% 48%;will-change:auto}
.tunnel-frame:before,.tunnel-frame:after{content:'';position:absolute;left:0;width:100%;height:100svh;background:#061327}
.tunnel-frame:before{bottom:100%}.tunnel-frame:after{top:100%}
.tunnel-frame>picture,.tunnel-frame img{display:block;width:100%;height:100%;object-fit:fill;image-rendering:pixelated}
body:not(:has(.quiet-home)) .tunnel-frame,body.tunnel-arrived .tunnel-frame{display:none}
.tunnel-departing .tunnel-frame{will-change:transform,opacity}
.tunnel-departing .quiet-title,.tunnel-departing .quiet-controls,.tunnel-departing .quiet-footer{opacity:0;transition:opacity .18s}
.tunnel-departing #player-customize,.tunnel-arrived #player-customize{pointer-events:none;visibility:hidden}
.tunnel-arrived .quiet-home{opacity:0;pointer-events:none}
body:has(.quiet-home) .stadium-plane .field-player{filter:drop-shadow(0 3px 2px #010b14aa)}
.tunnel-departing .stadium-plane .field-player{animation:none!important}
.shooting .field-ball{animation:restored-shot-flight .75s .48s cubic-bezier(.16,.5,.5,1) both}
.shooting.saved .field-ball{animation:restored-shot-stopped .85s .48s ease-out both}
@keyframes restored-shot-flight{0%{left:var(--ball-start);margin-top:calc(var(--actor-unit)*-.07142857)}60%{margin-top:var(--ball-rise)}100%{left:var(--ball-end);margin-top:calc(var(--scene-height,100svh)*-.026);transform:translate(-50%,-100%) scale(.65) rotate(540deg)}}
@keyframes restored-shot-stopped{0%{left:var(--ball-start);margin-top:calc(var(--actor-unit)*-.07142857)}65%{left:var(--ball-end);margin-top:calc(var(--scene-height,100svh)*-.026)}100%{left:calc(var(--ball-end) - 2%);margin-top:0;transform:translate(-50%,-100%) rotate(400deg)}}
@media(max-aspect-ratio:1/1){.tunnel-frame{left:50%;margin-left:calc(max(100vw,calc(var(--scene-height,100svh)*.66666667))*-.5);width:max(100vw,calc(var(--scene-height,100svh)*.66666667));top:calc(var(--ground,65svh) - var(--scene-height,100svh)*.67)}}
@media(prefers-reduced-motion:reduce){.tunnel-departing .quiet-title,.tunnel-departing .quiet-controls,.tunnel-departing .quiet-footer{transition:none}}
