/* Only the existing round-results surface. Save state and actions stay in main. */
#results{padding:24px 14px;align-items:flex-start;overscroll-behavior:contain}
#results .results-card{position:relative;isolation:isolate;width:min(100%,580px);max-width:580px;margin:auto;max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;padding:26px 26px 22px;border:2px solid #234b41;border-radius:28px;background:#fffced;box-shadow:0 9px 0 #173e3838,0 28px 70px #092b3a55;color:#173f37}
#results .result-heading{position:relative;z-index:1}
#results .result-finish-label{display:block;font-size:12px;line-height:1.4;font-weight:800;letter-spacing:.2em;color:#657d69}
#results .result-pose-wrap{height:72px;margin:6px auto 0;gap:23px}
#results .result-pose-wrap .modal-portrait{height:74px;width:74px;animation:none;transform:rotate(-9deg);filter:drop-shadow(0 6px 0 #153e3a1c)}
#results .result-laurel{color:#d39420;font-size:26px}
#results .results-card h2{font-size:clamp(23px,4.8vw,31px);line-height:1.14;letter-spacing:-.025em;margin:12px auto 19px;max-width:460px;outline:none}
#results .result-score-stage{position:relative;isolation:isolate;overflow:hidden;padding:20px 14px 54px;border-radius:20px;background:radial-gradient(ellipse at 50% 0,#2d7d68 0,#174e43 55%,#123e37 100%);border:1px solid #123f36;color:#fffbe3;box-shadow:inset 0 1px 0 #ffffff22}
#results .result-score-stage::before{content:"";position:absolute;z-index:-1;inset:-140%;opacity:.08;background:repeating-conic-gradient(from 8deg,#fff8b7 0deg 10deg,transparent 10deg 27deg);pointer-events:none}
#results .result-stage-kicker{display:block;font-size:11px;line-height:1.4;letter-spacing:.13em;font-weight:700;color:#bee1c5}
#results .result-score{margin:10px 0 14px;display:grid;gap:5px;min-width:0}
#results .result-score>strong{display:block;font-size:clamp(44px,9.5vw,76px);line-height:1.02;letter-spacing:-.045em;font-variant-numeric:tabular-nums;color:#fff9cf;text-shadow:0 4px 0 #0d332e;overflow-wrap:anywhere}
#results .result-score>span{font-size:12px;letter-spacing:.2em;color:#d1e6d2;line-height:1.4}
#results .chaos-rank{display:inline-flex;gap:14px;align-items:center;justify-content:center;margin:0;padding:8px 18px;border:1px solid #f5c85e;border-radius:12px;background:linear-gradient(135deg,#ffe991,#ffc859);box-shadow:0 3px 0 #092e2b66;color:#69430d;transform-origin:50% 50%}
#results .chaos-rank[hidden]{display:none}
#results .chaos-rank span{font-size:12px;font-weight:800;letter-spacing:.05em}
#results .chaos-rank strong{font-size:32px;line-height:1.1;color:#633f11}
#results .result-skip{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);white-space:nowrap;display:block;margin:0;padding:5px 12px;min-height:44px;border:0;background:transparent;color:#d2e9d5;font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#results .result-skip[hidden]{display:none}
#results #result-chaos-stats{font-size:12px;line-height:1.5;margin:12px 3px;color:#627568}
#results .result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 0;padding:0;border:0}
#results .result-stats>div{padding:13px 5px 12px;border:1px solid #d6dfc6;border-radius:14px;background:#f0f2df;min-width:0}
#results .result-stats strong{font-size:25px;font-variant-numeric:tabular-nums;line-height:1.2;color:#234b40}
#results .result-stats span{display:block;font-size:12px;line-height:1.4;letter-spacing:.04em;margin-top:5px;color:#527062;overflow-wrap:anywhere}
#results .result-highlight{margin:17px 0 10px;padding:13px 8px 2px;border-top:1px solid #dbe2cb}
#results .result-moment-label{margin:0 0 5px;font-size:11px;letter-spacing:.13em;color:#6f846d}
#results #award-reason{font-size:14px!important;line-height:1.45;color:#526b5b}
#results #watch-highlight{min-height:38px;padding:8px 16px;margin:3px 0 0;border-radius:12px}
#results #best-comparison{padding:10px 12px;margin:12px 0 9px;border-radius:10px;background:#f9edc5;font-size:13px;line-height:1.45;color:#67511d}
#results #again{display:flex;align-items:center;justify-content:center;min-height:54px;margin:5px 0 14px;border-radius:15px;background:#ffda44;color:#163f37;font-size:16px;box-shadow:0 4px 0 #ca9a32}
#results .result-rewards{padding:13px 14px 12px;margin-top:13px;background:#eef3e5;border:1px solid #d9e5cd;border-radius:16px}
#results #result-challenges{font-size:12px;line-height:1.45;margin:0 0 7px;color:#5a7160}
#results .earned-feathers{font-size:23px;line-height:1.2;margin:7px 0;color:#28745b}
#results #record,#results #save-status{font-size:12px;line-height:1.45;margin:7px 0;color:#597260}
#results #result-upgrade{background:#fffbee;padding:10px 11px;border:1px solid #d8e2c8;border-radius:11px;text-align:left;font-size:13px}
#results #result-upgrade strong,#results #result-upgrade span{font-size:13px;line-height:1.4}
#results #results-upgrades,#results #results-lobby{min-height:42px;border-radius:12px;margin-top:10px;font-size:14px}
#results .result-celebration{position:absolute;pointer-events:none;inset:0;overflow:hidden;z-index:2;border-radius:28px}
#results .result-celebration i{position:absolute;left:50%;top:180px;display:block;width:6px;height:12px;border-radius:2px;background:#e3b333;opacity:0;--angle:calc(var(--i)*22.5deg);--distance:calc(100px + mod(var(--i),3)*28px)}
#results .result-celebration i:nth-child(3n){background:#48ad92;height:8px}#results .result-celebration i:nth-child(3n + 1){background:#f4a253;width:5px}
#results[data-motion=full][data-reveal=counting] .result-pose-wrap .modal-portrait{animation:result-duck-bow 1.5s cubic-bezier(.2,.8,.25,1) both}
#results[data-motion=full][data-reveal=counting] .result-score-stage{animation:result-stage-in .45s ease-out both}
#results[data-motion=full][data-reveal=counting] .chaos-rank{animation:result-rank-stamp .5s cubic-bezier(.16,.85,.3,1.25) 1.05s both}
#results[data-motion=full][data-reveal=counting] .result-stats>div{animation:result-stat-in .45s ease-out both;animation-delay:.18s}
#results[data-motion=full][data-reveal=counting] .result-stats>div:nth-child(2){animation-delay:.26s}#results[data-motion=full][data-reveal=counting] .result-stats>div:nth-child(3){animation-delay:.34s}
#results[data-motion=full][data-reveal=counting] .result-celebration i{animation:result-confetti 1.35s ease-out .25s both}
#results .result-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@keyframes result-stage-in{from{transform:translateY(8px);opacity:.65}to{transform:none;opacity:1}}
@keyframes result-stat-in{from{transform:translateY(7px);opacity:.45}to{transform:none;opacity:1}}
@keyframes result-duck-bow{0%{transform:translateY(9px) rotate(8deg) scale(.9)}25%{transform:translateY(-9px) rotate(-15deg) scale(1.08)}45%{transform:translateY(0) rotate(-7deg) scale(1)}62%{transform:translateY(-3px) rotate(-12deg)}100%{transform:rotate(-9deg)}}
@keyframes result-rank-stamp{0%{opacity:0;transform:scale(1.35) rotate(-7deg)}65%{opacity:1;transform:scale(.97) rotate(1deg)}100%{transform:none;opacity:1}}
@keyframes result-confetti{0%{opacity:0;transform:rotate(var(--angle)) translateY(-24px) rotate(0)}12%{opacity:.85}75%{opacity:.7}100%{opacity:0;transform:rotate(var(--angle)) translateY(-180px) rotate(210deg)}}
html[data-ui-theme=night] #results .results-card{background:#e8edda;color:#173f37}
@media(max-width:480px){#results{padding:12px 10px}#results .results-card{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:19px 16px 17px;border-radius:23px}#results .result-pose-wrap{height:59px}#results .result-pose-wrap .modal-portrait{height:61px;width:61px}#results .results-card h2{margin:10px auto 15px}#results .result-score-stage{padding:17px 10px 50px}#results .result-stage-kicker{font-size:12px}#results .result-score>strong{font-size:clamp(38px,12vw,56px)}#results .result-stats>div{padding:11px 4px}#results .result-stats span{font-size:12px}#results .result-rewards{padding:11px 10px}#results #again{min-height:50px}}
@media(prefers-reduced-motion:reduce){#results *,#results *::before{animation:none!important;transition:none!important}#results .result-celebration{display:none}#results .result-pose-wrap .modal-portrait{transform:none}}

#results[data-effects='1'] .result-celebration i:nth-child(n+9){display:none}
