.victory-scene{height:min(100dvh,150vw);aspect-ratio:2/3;position:relative;animation:entrance .9s cubic-bezier(.16,.8,.2,1) both}.victory-scene{background:#402211}.victory-scene .victory-banner{transform-origin:512px 205px;animation:banner-zoom .85s .25s both}@keyframes banner-zoom{0%{opacity:0;transform:scale(.15)}65%{opacity:1;transform:scale(1.035)}85%{transform:scale(.985)}100%{opacity:1;transform:scale(1)}}.victory-scene .star-zoom{transform-origin:var(--center);animation:star-appear .65s var(--delay) both}@keyframes star-appear{0%{opacity:0;transform:scale(.1) rotate(-15deg)}65%{opacity:1;transform:scale(1.18) rotate(5deg)}85%{transform:scale(.95) rotate(-2deg)}100%{opacity:1;transform:none}}.victory-scene svg{width:100%;height:100%;display:block}.victory-scene .pawn{transform-origin:var(--origin);animation:land .7s var(--delay) both;filter:drop-shadow(0 4px 3px #3b1b0033)}.victory-scene .crown-drop{transform-origin:512px 490px;animation:coronate .8s 1.8s both}.victory-scene .crown-float{animation:float 3s 2.6s ease-in-out infinite}.victory-scene .spark{fill:#fffad2;filter:drop-shadow(0 0 7px #fff398);transform-box:fill-box;transform-origin:center;animation:spark 2.4s var(--delay) infinite both}@keyframes entrance{from{opacity:0;transform:translateY(40px) scale(.92);filter:brightness(.5)}to{opacity:1;transform:none;filter:brightness(1)}}@keyframes land{0%{opacity:0;transform:translateY(-130px) scale(.85)}60%{opacity:1;transform:translateY(6px) scale(1.025,.97)}80%{transform:translateY(-12px) scale(.99,1.02)}100%{opacity:1;transform:none}}@keyframes coronate{from{opacity:0;transform:translateY(-140px) rotate(-15deg)}75%{opacity:1;transform:translateY(5px) rotate(3deg)}to{opacity:1;transform:none}}@keyframes float{50%{transform:translateY(-7px)}}@keyframes spark{0%,100%{opacity:0;transform:scale(.4) rotate(-10deg)}50%{opacity:1;transform:scale(1) rotate(10deg)}}@media(prefers-reduced-motion:reduce){*{animation:none!important}.victory-scene .spark{display:none}}
dialog:has(.victory-scene){padding:0;border:0;border-radius:0;outline:0;background:transparent;box-shadow:none;width:min(100vw,calc(100dvh * 2 / 3));max-width:none;max-height:100dvh;overflow:visible;color:#fff;margin:auto}dialog:has(.victory-scene)::backdrop{background:#1c1009b3;backdrop-filter:blur(5px);animation:victory-backdrop .6s both}.victory-scene{height:auto;width:100%;aspect-ratio:2/3;background:#402211;animation-delay:.25s}.victory-action{position:absolute!important;top:81%;height:10%;width:45%;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;color:transparent!important;z-index:4}.victory-again{left:3%}.victory-menu{left:51.5%}.victory-action:disabled{opacity:1;cursor:default;background:#33251799!important}.victory-action:focus-visible{outline:3px solid #fff;outline-offset:-6px}.victory-action:hover:not(:disabled){filter:none;transform:none;background:#ffffff14!important}.victory-wait{position:absolute;top:92%;left:5%;width:90%;text-align:center;color:#fff8df!important;font:600 2.6cqw system-ui!important;margin:0!important}.victory-scene{container-type:inline-size}body:has(dialog[open] .victory-scene) .play{transform:scale(.96);opacity:.35;transition:transform .6s,opacity .6s}@keyframes victory-backdrop{from{background:#1c100900;backdrop-filter:blur(0)}to{background:#1c1009b3;backdrop-filter:blur(5px)}}

.victory-prize{position:absolute;left:31%;top:76.3%;width:38%;height:5.5%;z-index:3;pointer-events:none;animation:prize-appear .55s 2.6s both;filter:drop-shadow(0 1px 3px #ffdb6a55)}
.victory-prize .victory-prize-frame{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.victory-prize-copy{position:absolute;left:34%;right:7%;top:15%;height:70%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2%;color:#50280f;text-align:center;white-space:nowrap;font:700 2.2cqw/1.1 Georgia,serif}
.victory-prize-copy b{font-size:2.8cqw;line-height:1.1;font-weight:800}
@keyframes prize-appear{from{opacity:0;transform:translateY(8px) scale(.9)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.victory-prize{animation:none}}

/* Preserve the reward artwork's proportions and give it a separate row. */
.victory-scene:has(.victory-prize) .victory-action{top:85.4%}
.victory-scene:has(.victory-prize) .victory-wait{top:96%}
.victory-prize{left:29%;top:78.1%;width:42%;height:7%;filter:drop-shadow(0 2px 3px #64310944)}
.victory-prize-copy{left:34%;right:7%;top:17%;height:66%;gap:5%;font-size:2.5cqw;font-weight:600}
.victory-prize-copy b{font-size:3.2cqw;font-weight:700}

.victory-prize{top:79.1%}
.victory-scene:has(.victory-prize) .victory-action{top:86.7%}

/* Natural letter proportions throughout the victory screen. */
.victory-scene{font-family:Arial,Helvetica,sans-serif}
section.victory-scene .winner-title{font:700 108px Arial,Helvetica,sans-serif;letter-spacing:0;stroke-width:1.5;filter:drop-shadow(0 3px 2px #61300b88)}
section.victory-scene .winner-message{font:400 28px Arial,Helvetica,sans-serif;letter-spacing:0}
.victory-scene .victory-action span.live-label{font:600 2.9cqw/1.15 Arial,Helvetica,sans-serif;letter-spacing:0;overflow:hidden;text-align:center;white-space:normal;overflow-wrap:anywhere;padding:0 2%}
.victory-prize-copy{font:400 2.25cqw/1.2 Arial,Helvetica,sans-serif;gap:4%;overflow:hidden;letter-spacing:0;text-shadow:none}
.victory-prize-copy b{font:700 2.9cqw/1.2 Arial,Helvetica,sans-serif;letter-spacing:0;max-width:100%}
.victory-wait{font-family:Arial,Helvetica,sans-serif!important}

.victory-ground-shadow{animation:victory-shadow-land .7s var(--delay) both}
@keyframes victory-shadow-land{0%{opacity:0;transform:scale(1.35,.7)}60%{opacity:1;transform:scale(1.05,1.08)}100%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.victory-ground-shadow{animation:none}}

/* Animate composited movement, without animating full-scene filter surfaces. */
@keyframes entrance{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
dialog:has(.victory-scene)::backdrop{backdrop-filter:none;animation:none;background:#1c1009c9}
body:has(dialog[open] .victory-scene) .play{transform:none;opacity:1;transition:none}
body:has(dialog[open] .victory-scene) .match-stage *{animation-play-state:paused!important}
.victory-scene .pawn{filter:none}
.victory-scene .spark{filter:none}
.victory-scene{isolation:isolate}
