.history-dialog{color-scheme:light;background:#f6faff;color:#173e85;border:1px solid #8db5e1;border-radius:22px;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px;overflow:auto;box-shadow:0 24px 100px #001c6655;font-size:16px}.history-dialog::backdrop{background:#05265bbd}.history-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.history-head h2{margin:0;font-size:27px;letter-spacing:-1px}.history-dialog p{line-height:1.6}#clearRecent{width:100%;margin-top:10px}#historyClose{min-width:48px}.recent-run{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #cddded;padding:12px 0;margin:0;font-size:14px}.recent-run strong{white-space:nowrap}.local-note{font-size:14px!important;color:#55718e}.overlay#result{justify-content:flex-start;padding:24px 22px;gap:11px}.overlay#result h2{font-size:30px}.overlay#result .big-score{font-size:56px}.overlay#result>button{flex-shrink:0;width:100%}#again{justify-content:center;text-align:center}#challengeResult{font-weight:800!important;color:#164f98!important}.history-dialog button:focus-visible{outline:3px solid #d47d00;outline-offset:3px}
@media(orientation:landscape) and (max-height:550px){.lobby #historyOpen{grid-column:2}.overlay#result{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:6px 20px;text-align:center}.overlay#result>.pill,.overlay#result>h2,.overlay#result>.result-label,.overlay#result>.big-score,.overlay#result>#summary,.overlay#result>#recordMessage,.overlay#result>#challengeResult{grid-column:1}.overlay#result>.pill{margin:0}.overlay#result>#again{grid-column:2;grid-row:1/3}.overlay#result>.local-note{grid-column:2;grid-row:5}.overlay#result>#home{grid-column:2;grid-row:6}.overlay#result h2{font-size:23px}.overlay#result .big-score{font-size:42px}}
#result>h2{width:100%}#result .result-update{display:block;width:min(390px,100%);height:auto;max-height:130px;object-fit:contain;margin:auto}
.local-ranking{width:100%;flex-shrink:0;text-align:left;background:#111e3de6;border:1px solid #8fc8f45c;border-radius:12px;padding:11px 13px;color:#eef7ff}
.local-ranking h3{margin:0 0 6px;font-size:15px}
.local-ranking table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.local-ranking th,.local-ranking td{padding:6px 7px;border-bottom:1px solid #9ed0ff31;text-align:left}
.local-ranking th{color:#c6e5ff}
.local-ranking th:last-child,.local-ranking td:last-child{text-align:right}
.local-ranking .ranking-current{background:#286aba59;font-weight:750}
@media(orientation:landscape) and (max-height:550px){
 .overlay#result>#again{grid-row:1}
 .overlay#result>.local-ranking{grid-column:2;grid-row:2/6}
 
 .overlay#result>.local-note{grid-row:6}
 .overlay#result>#home{grid-row:7}
 #result .result-update{max-height:74px}
}
