/* Result screen: one responsive flow, shared by all result states. */
#game-over-screen{align-items:center;justify-content:center;overflow:auto;padding:0!important;background:radial-gradient(ellipse at 50% 35%,#55319180,transparent 52%),linear-gradient(165deg,#150c30,#25114b 65%,#30165c);color:#fff}
#game-over-screen:before,#game-over-screen:after{display:none!important}
#game-over-screen .result5-frame{position:relative;display:flex;flex-direction:column;align-items:center;width:min(100%,460px);height:auto;min-height:min(100dvh,760px);max-height:none;margin:auto;padding:20px 24px max(20px,env(safe-area-inset-bottom))!important;overflow:visible;container-type:inline-size;background:none;border:0;border-radius:0;box-shadow:none;text-align:center}
#game-over-screen .result5-logo{width:82px;height:auto;margin:0 auto 14px}
#game-over-screen .result5-close{position:absolute;z-index:5;top:max(16px,env(safe-area-inset-top));right:max(16px,calc((100% - 460px)/2 + 16px));display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #ffffff24;border-radius:50%;background:#ffffff0c;color:#d9c9f3;font:26px/1 sans-serif;box-shadow:none}
#game-over-screen .result5-heading{margin:0;width:100%}
#game-over-screen .result5-heading>i{display:block;margin:0 0 5px;color:#ffd57a;font-size:19px;font-style:normal;line-height:1}
#game-over-screen .result5-heading h2{margin:0;color:#f7f1ff;font-size:29px;line-height:1.2;letter-spacing:.04em;text-shadow:none;overflow-wrap:anywhere}
#game-over-screen .result5-score{display:flex;align-items:baseline;justify-content:center;margin:8px 0 0;gap:8px;line-height:1}
#game-over-screen .final-score{color:#fff;font-size:clamp(70px,22cqw,94px);font-weight:900;line-height:1;letter-spacing:-.055em;text-shadow:0 4px 30px #b178ff40;font-variant-numeric:tabular-nums}
#game-over-screen .jump-unit{margin:0;color:#e4d7f4;font-size:22px;font-weight:600}
#game-over-screen .result5-caption{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;max-width:100%;margin:8px 0 0;padding:0;background:none;border:0;color:#e2d4f4;font-size:14px;line-height:1.5}
#game-over-screen #result-rival-badge{padding:2px 8px;border-radius:20px;background:#ffd77620;color:#ffe2a0;font-size:15px}
#game-over-screen .result5-rival-divider{display:none}
#game-over-screen .result-record{display:none}
#game-over-screen .result-record b{margin-left:6px;color:#e5d9f5;font-weight:600}
#game-over-screen .result5-reward{position:relative;display:grid;grid-template-columns:1fr;place-items:center;flex:0 0 auto;width:100%;height:92px;min-height:0;margin:4px 0 8px;padding:0;border:0;background:radial-gradient(ellipse at 50% 65%,#a66dff26,transparent 62%);filter:none;opacity:1;text-align:center}
#game-over-screen .result5-reward>img{position:static;display:block;width:116px;height:116px;max-width:none;max-height:none;margin:-8px 0 0;object-fit:contain;transform:none;filter:drop-shadow(0 8px 18px #b788ff24)}
#game-over-screen .result5-reward.is-empty{display:none}
#game-over-screen .result5-reward.is-empty>img{filter:saturate(.65);opacity:.8}
#game-over-screen .result5-loot-title{display:flex;align-items:center;justify-content:flex-start;width:100%;margin:10px 0 9px;color:#f7f0ff;font-size:18px;font-weight:700;text-align:left}
#game-over-screen .result5-loot-title>i{margin-right:7px;color:#ffdc8a;font-style:normal;font-size:15px}
#game-over-screen #result-reward-status{margin-left:auto;color:#cdbddd;font-size:14px;font-weight:500}
#game-over-screen #result-reward-status:before{display:none}
#game-over-screen #result-reward-status.is-credited{color:#8ce5c5}
#game-over-screen .result5-loot{display:grid;width:100%;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:0}
#game-over-screen .result5-loot article{display:flex;align-items:center;gap:9px;min-width:0;min-height:76px;padding:10px;border:1px solid #d4afff30;border-radius:14px;background:linear-gradient(145deg,#a177d91f,#ffffff05);box-shadow:inset 0 1px #ffffff08;text-align:left}
#game-over-screen .result5-loot article.is-empty{display:none}
#game-over-screen .result5-loot-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:38px;border-radius:12px;background:#ffffff08;font-style:normal;font-size:25px}
#game-over-screen .result5-loot article>div{display:grid;gap:6px;min-width:0;overflow-wrap:anywhere}
#game-over-screen .result5-loot b{color:#f3e9ff;font-size:17px;line-height:1.3}
#game-over-screen .result5-loot strong{color:#ded0ee;font-size:15px;font-weight:500;line-height:1.5}
#game-over-screen .result5-loot .is-empty{opacity:1;filter:none;background:#ffffff04;border-color:#ffffff14}
#game-over-screen .result5-loot .is-empty b{color:#ccbedc}
#game-over-screen .result5-loot .is-empty .result5-loot-icon{opacity:.65}
#game-over-screen .result5-progress{display:none}
#game-over-screen .result5-progress-copy{display:flex;align-items:center;gap:8px;color:#e7dcf4;font-size:16px;line-height:1.5}
#game-over-screen .result5-progress-icon{display:none}
#game-over-screen .result5-progress-copy b{color:#ffe0a0;font-weight:700}
#game-over-screen .result5-progress-track{display:block;overflow:hidden;width:100%;height:5px;border-radius:9px;background:#ffffff12}
#game-over-screen .result5-progress-track em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ae86ff,#ffdb92);transition:width .35s ease}
#game-over-screen .result5-progress-chevron{display:none}
#game-over-screen .result5-actions{display:grid;grid-template-columns:1fr;gap:8px;width:100%;max-width:none;margin:18px 0 0;padding:0}
#game-over-screen .result5-actions button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin:0;border-radius:16px;font-size:21px;font-weight:700;line-height:1.4}
#game-over-screen #retry-button{border:1px solid #dec1ff70;background:linear-gradient(135deg,#ba7afa,#8544e5);color:white;box-shadow:0 6px 24px #8e4be538,inset 0 1px #ffffff30}
#game-over-screen #retry-button i{font-size:13px;font-style:normal;opacity:.8}
#game-over-screen #share-button{min-height:46px;border:1px solid #d9baff2b;background:#ffffff05;color:#d8c7ee;box-shadow:none;font-size:18px;font-weight:600}
#game-over-screen button:focus-visible{outline:3px solid #ffe0a0;outline-offset:4px}
@media(max-height:740px){#game-over-screen .result5-frame{padding-top:16px!important}#game-over-screen .result5-logo{width:84px;margin-bottom:16px}#game-over-screen .result5-heading h2{font-size:30px}#game-over-screen .result5-heading>i{font-size:20px;margin-bottom:6px}#game-over-screen .final-score{font-size:78px}#game-over-screen .result5-reward{height:108px;margin:0 0 8px}#game-over-screen .result5-reward>img{width:132px;height:132px}#game-over-screen .result5-actions{margin-top:18px}}
@media(max-width:360px){#game-over-screen .result5-frame{padding-inline:18px!important}#game-over-screen .result5-loot article{gap:7px;padding:11px 8px}#game-over-screen .result5-loot-icon{flex-basis:28px;width:28px;font-size:22px}}
@media(max-height:640px){#game-over-screen .result5-frame{padding-top:12px!important;padding-bottom:16px!important}#game-over-screen .result5-logo{width:76px;margin-bottom:10px}#game-over-screen .result5-heading>i{display:none}#game-over-screen .result5-heading h2{font-size:28px}#game-over-screen .final-score{font-size:64px}#game-over-screen .result5-caption{margin-top:8px}#game-over-screen .result5-reward{height:76px;margin:0 0 6px}#game-over-screen .result5-reward>img{width:100px;height:100px;margin:0}#game-over-screen .result5-loot-title{margin-bottom:8px}#game-over-screen .result5-loot article{min-height:70px}#game-over-screen .result5-progress{margin-top:10px;padding:11px;gap:9px}#game-over-screen .result5-actions{margin-top:14px;gap:8px}#game-over-screen .result5-actions button{min-height:48px}#game-over-screen #share-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){#game-over-screen .result5-progress-track em{transition:none}}

#game-over-screen .result5-frame>*{flex-shrink:0}
#game-over-screen #solo-sync-status{position:static;display:block;min-height:20px;margin:4px 0 0;line-height:1.5;color:#c4b6dd;font-size:13px}

#game-over-screen #solo-sync-status[hidden]{display:none}

/* Compact result layout: size to content instead of reserving an empty 760px column. */
#game-over-screen{padding:64px 16px max(28px,env(safe-area-inset-bottom))!important}
#game-over-screen .result5-frame{width:min(100%,420px);min-height:0;padding:26px 22px!important;border:1px solid #dec3ff20;border-radius:28px;background:linear-gradient(155deg,#ffffff09,#b77aff09);box-shadow:0 22px 70px #09041f35}
#game-over-screen .result5-logo{width:100px;margin-bottom:22px}
#game-over-screen .result5-heading h2{font-size:28px;letter-spacing:.01em}
#game-over-screen .result5-heading>i{font-size:22px;margin-bottom:10px}
#game-over-screen .result5-score{margin:16px 0 0}
#game-over-screen .final-score{font-size:clamp(78px,25cqw,108px)}
#game-over-screen .result5-caption{font-size:14px;font-weight:500;margin-top:12px;color:#cfc0e6}
#game-over-screen .result5-actions{margin-top:24px;gap:10px}
#game-over-screen .result5-actions button{min-height:54px;border-radius:17px;font-size:21px}
#game-over-screen #share-button{min-height:46px;font-size:16px;color:#e8ddfa;background:#ffffff09}
#game-over-screen .result5-loot-title{margin-top:22px;font-size:16px}
#game-over-screen .result5-frame.no-result-rewards .result5-loot-title,
#game-over-screen .result5-frame.no-result-rewards .result5-loot{display:none}
#game-over-screen .result-empty-summary{width:100%;margin:22px 0 0;padding:13px 14px;border:1px solid #cba9ff26;border-radius:14px;background:#ffffff06;color:#cbbce0;font-size:14px;line-height:1.6}
#game-over-screen .result-empty-summary[hidden]{display:none}
#game-over-screen .result5-close{right:16px;top:max(14px,env(safe-area-inset-top));width:38px;height:38px;font-size:25px}
@media(max-height:640px){#game-over-screen{padding-top:54px!important}#game-over-screen .result5-frame{padding:18px!important}#game-over-screen .result5-logo{width:88px;margin-bottom:12px}#game-over-screen .result5-heading>i{display:none}#game-over-screen .result5-score{margin-top:10px}#game-over-screen .final-score{font-size:72px}#game-over-screen .result5-actions{margin-top:18px}}
