#gameOverScreen.result-sequence .modal-box,#daily-game-over.result-sequence .modal-box{width:min(94%,466px)!important;max-width:466px!important;padding:18px 18px!important;max-height:calc(var(--app-height,100vh) - 20px)!important;overflow:hidden!important;}
.result-sequence .result-fit-content>h1{font-size:24px!important;margin:12px 0!important;}
.result-sequence :is(#finalScore,#finalLeagueScore,#daily-finalScore,#daily-final-score){font-size:34px!important;}
.result-sequence .result-part{opacity:0;visibility:hidden;transform:translateY(9px);transition:opacity 624ms ease,transform 624ms ease;}
.result-sequence .result-part.result-shown{opacity:1;visibility:visible;transform:translateY(0);}
.result-sequence .modal-box>*{animation:none!important;}
.result-ranking-panel{width:100%;margin:0 0 12px;padding:8px 9px 5px;border-radius:15px;border:1px solid #c58cff40;background:linear-gradient(145deg,#3d214e,#23122e);box-sizing:border-box;}
.result-rank-title{font:900 11px 'Quicksand',sans-serif;text-align:center;letter-spacing:.6px;color:#efdbff;margin:0 0 6px;}
.result-rank-message{font:700 11px/1.4 'Quicksand',sans-serif;text-align:center;color:#d4bfdf;}
.result-rank-message:empty{display:none;}
.result-rank-list.leaderboard{height:auto;min-height:0;max-height:none;flex:none!important;overflow:hidden!important;padding:3px 5px!important;margin:0!important;gap:5px!important;position:relative;}
.result-sequence .result-fit-content>.brand-logo-mini{margin-bottom:0!important;}
@media(max-height:720px){.result-sequence .modal-box{padding:12px 15px!important;}.result-sequence .result-fit-content>h1{font-size:22px!important;margin:9px 0!important;}.result-ranking-panel{margin-bottom:8px;}.result-rank-list.leaderboard{height:auto;min-height:0;max-height:none;}}
@media(prefers-reduced-motion:reduce){.result-sequence .result-part{transition:none!important;transform:none!important;}}

.result-rank-list.result-rank-tracking .lb-item{will-change:transform;transition:none!important;}

/* Reserve the entire result layout before any step is revealed. */
:is(#gameOverScreen,#daily-game-over).result-sequence .modal-box{height:min(760px,calc(var(--app-height,100vh) - 24px))!important;min-height:min(760px,calc(var(--app-height,100vh) - 24px))!important;max-height:min(760px,calc(var(--app-height,100vh) - 24px))!important;}
.result-sequence .modal-box>*{flex-shrink:0!important;}
.result-ranking-panel{height:252px;min-height:252px;max-height:252px;flex:none;position:relative;}
.result-rank-message{position:absolute;top:38px;left:10px;right:10px;}
.result-rank-list.leaderboard{height:220px!important;min-height:220px!important;max-height:220px!important;gap:3px!important;padding:3px 5px!important;}
:is(#gameOverScreen,#daily-game-over) .result-rank-list>.lb-item{height:38px!important;min-height:38px!important;max-height:38px!important;flex:0 0 38px!important;padding:4px 7px!important;margin-top:0!important;margin-bottom:0!important;border-radius:9px!important;}
:is(#gameOverScreen,#daily-game-over) .result-rank-list>.lb-item.is-me{border-width:2px!important;}
:is(#gameOverScreen,#daily-game-over) .result-rank-list .lb-avatar{width:26px!important;height:26px!important;min-width:26px!important;flex:0 0 26px!important;}
:is(#gameOverScreen,#daily-game-over) .result-rank-list .lb-player-main{gap:6px!important;}
:is(#gameOverScreen,#daily-game-over) .result-rank-list .lb-player-name{font-size:13px!important;line-height:1.15!important;}
:is(#gameOverScreen,#daily-game-over) .result-rank-list .lb-rank{font-size:12px!important;min-width:18px!important;line-height:1!important;}
:is(#gameOverScreen,#daily-game-over) .result-rank-list .lb-score{font-size:13px!important;line-height:14px!important;padding:3px 6px!important;}

#daily-final-info{font-size:11px;line-height:1.35;min-height:15px;margin:3px 0;text-align:center;color:#dec8ec;}
#daily-game-over .result-part-1>p:first-child{font-size:10px!important;letter-spacing:.4px!important;}

.result-sequence .modal-box{justify-content:flex-start!important;overflow:hidden!important;}
.result-fit-content{display:flex;flex-direction:column;align-items:center;width:100%;flex:none!important;transform-origin:top center;transform:scale(var(--result-fit,1));}
.result-fit-content>*{flex-shrink:0!important;animation:none!important;}
:is(#gameOverScreen,#daily-game-over) .result-fit-content>.brand-logo-mini{transform:scale(.62)!important;margin:-16px 0 -14px!important;}
:is(#gameOverAchievements,#daily-gameOverAchievements){max-height:none!important;overflow:visible!important;}

/* Reclaim statistic-card padding first when many achievements need space. */
.result-compact-stats>.result-part-0,.result-compact-stats>:has(>.result-part-0),.result-compact-stats>:has(>.result-part-2){margin-bottom:9px!important;}
.result-compact-stats :is(.result-part-0,.result-part-1){padding:9px 10px!important;border-radius:12px!important;}
.result-compact-stats :is(.result-part-2,.result-part-3){padding:6px 5px!important;}
.result-sequence .result-compact-stats :is(#finalScore,#finalLeagueScore,#daily-finalScore,#daily-final-score){font-size:29px!important;margin-top:3px!important;}
.result-sequence .result-compact-stats :is([id$="bestScoreVal"],[id$="maxComboVal"]){font-size:16px!important;margin-top:2px!important;}

.result-sequence .result-fit-content{transform:scale(var(--result-fit,1))!important;transform-origin:top center!important}

.result-fit-content>div{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}.result-fit-content .result-part{min-width:0!important;box-sizing:border-box!important}.result-fit-content :is(.result-part-0,.result-part-1){flex:1 1 0!important;max-width:100%!important}
