#result{justify-content:flex-start;overflow-y:auto;overscroll-behavior:contain;padding:20px 18px 24px;gap:8px;scrollbar-width:thin;scrollbar-color:#9e77b7 #20142c}
#result[hidden]{display:none}
#result>.badge{font-size:10px;letter-spacing:1px;flex-shrink:0}
#result h2{margin:2px 0 4px;font-size:clamp(48px,12vw,72px);line-height:1}
#result h2 small{display:block;font-size:10px;letter-spacing:3px;margin-top:6px}
#result .stats{width:100%;margin:4px 0;padding:12px 8px;border:1px solid #b798cc33;border-radius:14px;background:#ffffff05;flex-shrink:0}
#result .stats b{font-size:22px}#result .stats span{font-size:10px}
#result #again,#result #retry-score{width:100%;min-height:48px;flex-shrink:0;font-size:13px;margin:2px 0}
#result #retry-score{background:#543574;border:1px solid #ceadf0;color:#fff}
#result #again:disabled{opacity:.5;cursor:wait}
#result #score-submit{margin:0;line-height:1.4;font-size:11px;max-width:100%}
#result #rank-move{margin:0}#result #next-rival{font-size:12px;line-height:1.4;margin:2px 0}
#result .result-share{display:flex;gap:8px;width:100%;flex-shrink:0;margin-top:3px}
#result .result-share button{flex:1;min-width:0;min-height:44px;font-size:10px;padding:9px 6px;margin:0}
#result #share-status:empty{display:none}#result #share-status{margin:0;font-size:11px}
#round-details{width:100%;border-top:1px solid #b799ca33;margin-top:3px;text-align:left;flex-shrink:0}
#round-details summary{cursor:pointer;padding:13px 0;font-size:12px;color:#dcc4ef;min-height:44px}
#round-details p{font-size:12px;line-height:1.5;margin:5px 0 10px}#round-details #replay{width:100%;min-height:44px}
#result #personal-record{margin:0;font-size:11px}#result #copy-link{width:100%;flex-shrink:0}
#retry-score[hidden],#skip-score[hidden]{display:none}
#result #skip-score{font-size:11px;min-height:44px;margin:0}
@media(max-height:650px){#result{padding:14px 14px 20px;gap:6px}#result h2{font-size:46px}#result .stats{padding:8px}}

/* A dedicated finale, with room to breathe on a phone. */
body.round-finale .title,body.round-finale .hud,body.round-finale .combo-row,body.round-finale .progress-track,body.round-finale .boss-bar,body.round-finale .hunt-bar,body.round-finale .bottom{display:none}
body.round-finale main{padding-top:12px}
body.round-finale .arena{height:auto!important;aspect-ratio:auto;min-height:70svh}
body.round-finale #holes{display:none}
body.round-finale #result{position:relative;inset:auto;min-height:70svh;padding:24px 20px 28px;overflow:visible;background:radial-gradient(ellipse at 50% 15%,#45215b 0, #1b1029 45%,#100a19 85%);gap:12px;isolation:isolate}
#result .result-hero{position:relative;width:100%;min-height:154px;padding:15px 125px 12px 0;text-align:left;flex-shrink:0}
#result .result-hero>img{position:absolute;width:156px;height:172px;object-fit:contain;right:-12px;top:-12px;filter:drop-shadow(0 0 18px #bd6eff66);animation:finale-arrive .65s ease-out both;z-index:-1}
#result .result-halo{position:absolute;width:180px;height:180px;right:-20px;top:-10px;border:1px solid #bd83ec44;border-radius:50%;background:radial-gradient(circle,#a65cd62b,transparent 70%);z-index:-2}
#result .result-eyebrow{font-size:8px;letter-spacing:2px;color:#d3afe9;font-weight:800}
#result h3{font:900 clamp(25px,6.4vw,38px)/1.02 'Barlow Condensed',Impact,sans-serif;margin:12px 0 9px;letter-spacing:.4px}
#result #grimlet-verdict{font-size:11px;color:#e4cfec;line-height:1.45;margin:0;max-width:260px}
body.round-finale #result h2{font-size:clamp(62px,17vw,92px);letter-spacing:-3px;color:#ffe2a5;margin:0;text-shadow:0 0 32px #ddaf5133;font-variant-numeric:tabular-nums}
#result h2 small{letter-spacing:4px;color:#c1a6d2;font-weight:600}
body.round-finale #result>.badge{font-size:9px;letter-spacing:1.8px;background:#a376ca1a;border:1px solid #b78edd44;padding:7px 12px;border-radius:100px}
body.round-finale #result .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding:14px 0;background:linear-gradient(120deg,#ffffff08,#ffffff02)}
body.round-finale #result .stats span+span{border-left:1px solid #cba5e426}
body.round-finale #result .stats b{font-size:24px}
#result .result-next{width:100%;text-align:left;padding:5px 0 4px}
#result .result-next>div:first-child{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:9px;line-height:1.4;color:#c9abd9}
#result .result-next strong{color:#ffe3ab;font-size:10px;white-space:nowrap}
#result .result-tier-track{height:5px;border-radius:9px;background:#ffffff12;margin-top:9px;overflow:hidden}
#result .result-tier-track i{display:block;height:100%;background:linear-gradient(90deg,#a366df,#ffe1a1);border-radius:9px}
#result .earned-badges{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:0}
#result .earned-badges:empty{display:none}
#result .earned-badges span{font-size:8px;letter-spacing:.7px;border:1px solid #e2c48455;padding:6px 8px;color:#ffe3ac;border-radius:6px;background:#e0b75d0a}
body.round-finale #result #again{min-height:54px;font-size:13px;border-radius:12px;box-shadow:0 5px 0 #8c622a,0 12px 28px #0004;margin:5px 0 8px}
body.round-finale #result #score-submit{font-size:11px;color:#cbb5d8}
#result #record-moment{width:100%;padding:10px;border-radius:12px;border:1px solid #e6bd7355;background:#edbd6612;display:flex;align-items:center;justify-content:center;gap:10px}
#result .record-crown{width:32px;height:32px}#result .record-grimlet{display:none}
#result #record-moment strong{display:block;font-size:11px;color:#ffe2a1;letter-spacing:1px}#result #record-moment span{display:block;font-size:10px;color:#dcc7db;margin-top:3px}
#result .history-shortcut{padding:9px;font-size:12px;color:#d4b9e9}
@keyframes finale-arrive{from{opacity:0;transform:translateY(20px) scale(.9)}to{opacity:1;transform:none}}
@media(max-width:360px){#result .result-hero{padding-right:100px}#result .result-hero>img{width:130px}#result .result-next>div:first-child{flex-direction:column;align-items:flex-start;gap:4px}}
@media(prefers-reduced-motion:reduce){#result .result-hero>img{animation:none}}
