/* Shared lobby-panel proportions; ranking content alone scrolls. */
.start-screen.ranking-screen{width:min(900px,calc(100% - 24px));max-width:900px;max-height:calc(100% - 24px);min-height:0;display:flex;flex-direction:column;text-align:left;padding:22px 24px;overflow:hidden}
.rank-header{display:block;text-align:center;flex-shrink:0;margin:0 0 14px}.ranking-screen .rank-header .eyebrow{font-size:10px;letter-spacing:.2em;margin:0 0 8px}.ranking-screen .rank-header h2{font-size:24px;line-height:1.4;margin:0;color:#efd39e}
.rank-profile{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #b6a67725;padding:12px 0;flex-shrink:0}.rank-profile>span{font-size:14px;color:#d7dfd5;line-height:1.5;min-width:0;overflow-wrap:anywhere}.ranking-screen .rank-profile .secondary{margin:0;min-height:42px;padding:9px 14px;font-size:14px;line-height:1.4;flex-shrink:0}.rank-code{display:block;color:#8da29c;font-size:12px;letter-spacing:.06em}
.rank-tabs{display:flex;gap:8px;flex-shrink:0;margin:0 0 2px}.rank-tabs>button{flex:1;border:1px solid #b6a67740;border-radius:4px;padding:10px 8px;background:#111d2299;color:#a6b9af;font:inherit;font-size:15px;line-height:1.4;cursor:pointer;min-height:44px}.rank-tabs>button.active{color:#f0d79d;border-color:#c7ac70;background:#b6a67715}.rank-tabs>button:hover{background:#b6a67720}.rank-tabs>button:focus-visible{outline:2px solid #f0d79d;outline-offset:2px}
.rank-content{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1;scrollbar-width:thin;padding:16px 0 32px}.rank-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}.rank-section-heading h3{font-size:15px;color:#d7c69d;margin:0}.ranking-screen .rank-section-heading p{font-size:13px;color:#9aada3;margin:0;line-height:1.6}.ranking-screen .score-table{width:100%;margin:12px 0 14px;overflow-x:auto}.ranking-screen .score-table table{min-width:620px}.ranking-screen .score-table :is(th,td){padding:12px 10px}.ranking-screen .score-table th{font-size:13px;letter-spacing:.04em}.ranking-screen .score-table td{font-size:14px}.ranking-screen .score-row span{font-size:14px;line-height:1.6}.ranking-screen .score-row small{font-size:12px}.ranking-screen .score-row em{font-size:13px}.ranking-screen .score-row strong{font-size:18px}.ranking-screen .score-table :is(th,td):nth-child(2),.ranking-screen .score-table :is(th,td):nth-child(3),.ranking-screen .score-table :is(th,td):nth-child(4){width:auto}.rank-nickname{max-width:155px;overflow:hidden;text-overflow:ellipsis;color:#d6e0d8}.rank-my-summary{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:13px 14px;border:1px solid #b6a67735;background:#b6a67709;color:#b5c7bc;font-size:14px;line-height:1.6;margin-top:12px}.rank-my-summary b,.rank-my-summary>strong{color:#f0d79d}.rank-my-summary small{font-size:12px;color:#8da29c}.rank-own-row{background:#d9c99f0a}.rank-message{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:120px;padding:20px;color:#9eb0aa;font-size:14px;line-height:1.7}.rank-message .secondary{font-size:14px}
.rank-pagination{display:flex;align-items:center;justify-content:center;gap:18px;font-size:13px;color:#9eb0aa;margin:4px 0 10px}.rank-pagination .secondary{margin:0;padding:8px 16px;min-height:42px;font-size:14px}.rank-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-top:1px solid #b6a67730;padding-top:14px;flex-shrink:0}.rank-footer small{color:#93a69b;font-size:12px;line-height:1.5;text-align:center}.ranking-screen .rank-footer .primary{margin:0;min-width:140px;min-height:44px;padding:10px 24px;font-size:16px;line-height:1.4}.ranking-screen button:disabled,.rank-end-panel button:disabled{opacity:.5;cursor:default}
.rank-pending{display:flex;align-items:center;flex-wrap:wrap;gap:10px 15px;background:#b6a67709;border:1px solid #b6a67730;padding:12px 14px;margin:12px 0;font-size:14px;color:#b5c7bc}.rank-pending strong{color:#f0d79d}.rank-pending .secondary{margin:0 0 0 auto;font-size:14px;min-height:42px}.rank-status{min-height:0;color:#d7bc91;font-size:13px;line-height:1.6;margin:8px 0 0}.ranking-screen p.rank-status{font-size:13px;margin:8px 0 0}.rank-status:empty{display:none}.rank-pending p.rank-status{width:100%;margin:0}.rank-end-panel{border-top:1px solid #b6a67730;margin-top:15px;padding-top:13px;text-align:center}.rank-end-name{font-size:14px;color:#c9d6cb}.rank-end-panel .secondary{margin:9px auto 0;font-size:14px;min-height:44px}.rank-end-panel .rank-status{max-width:430px;margin:8px auto 0}
.rank-name-backdrop{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:16px;background:#050d12d9}.rank-name-backdrop.rank-name-desktop{position:absolute}.rank-name-dialog{width:min(420px,100%);max-height:100%;overflow:auto;background:linear-gradient(145deg,#18222bf2,#0c131bf5);border:1px solid var(--ui-edge);border-radius:8px;padding:24px;text-align:left;box-shadow:0 20px 70px #0007}.rank-name-dialog .eyebrow{font-size:10px;color:#a59572;letter-spacing:.18em}.rank-name-dialog h2{font-size:24px;color:#efd39e;margin:6px 0 12px}.rank-name-dialog p{font-size:14px;color:#b9c9bf;line-height:1.6}.rank-name-dialog label{display:block;font-size:14px;color:#d7c69d;margin:18px 0 7px}.rank-name-dialog input{width:100%;box-sizing:border-box;background:#091317;border:1px solid #8e896b80;border-radius:4px;color:#edf0e8;padding:12px;font:inherit;font-size:16px;outline:none}.rank-name-dialog input:focus{border-color:#dfc58a;box-shadow:0 0 0 2px #dfc58a20}.rank-name-dialog>small{display:block;margin-top:9px;color:#9aada3;font-size:12px;line-height:1.7}.rank-name-actions{display:flex;justify-content:center;gap:12px;margin-top:20px}.rank-name-actions button{margin:0;min-width:110px;min-height:44px;padding:9px 18px;font-size:14px;line-height:1.4}.rank-name-dialog .rank-status{color:#e7ba96}
@media(pointer:coarse),(max-width:800px),(max-height:500px){.start-screen.ranking-screen{width:min(900px,100%);max-height:100%;padding:16px 18px}.rank-header{margin-bottom:10px}.ranking-screen .rank-header h2{font-size:20px}.ranking-screen .rank-header .eyebrow{margin-bottom:5px}.rank-profile{gap:10px;padding:9px 0}.ranking-screen .rank-profile .secondary{min-height:44px;padding:9px 12px}.rank-tabs>button{font-size:14px;padding:9px 6px}.rank-content{padding-top:12px;padding-bottom:30px}.rank-section-heading h3{font-size:14px}.ranking-screen .score-table :is(th,td){padding:10px 8px}.ranking-screen .score-table th,.ranking-screen .score-row em{font-size:12px}.ranking-screen .score-table td,.ranking-screen .score-row span{font-size:13px}.ranking-screen .score-row small{font-size:12px}.ranking-screen .score-row strong{font-size:16px}.rank-footer{padding-top:10px;gap:8px}.ranking-screen .rank-footer .primary{font-size:14px;min-height:44px;padding:9px 20px}.rank-pagination .secondary{min-height:44px}.rank-name-backdrop{padding:10px}.rank-name-dialog{padding:18px 20px}.rank-name-dialog h2{font-size:20px}.rank-name-dialog label{margin-top:10px}.rank-name-actions{margin-top:14px}.rank-end-panel{margin-top:10px;padding-top:9px}}
@media(max-height:500px){.start-screen.ranking-screen{padding:12px 16px}.rank-header{margin-bottom:7px}.rank-profile{padding:6px 0}.rank-tabs{gap:6px}.rank-content{padding-top:10px;padding-bottom:28px}.rank-footer{padding-top:8px;gap:6px}.rank-message{min-height:72px;padding:12px}.rank-footer small{font-size:12px}}
@media(max-width:500px){.rank-profile{align-items:center}.rank-profile>span{font-size:13px}.rank-profile .rank-code{font-size:12px}.rank-section-heading{display:block}.ranking-screen .rank-section-heading p{margin-top:4px}.rank-my-summary{flex-wrap:wrap;gap:7px 12px}.rank-my-summary>strong{margin-left:auto}.rank-tabs>button{font-size:13px}.rank-footer small{max-width:100%}}
/* Keep touch scrolling available when the keyboard reduces the mobile viewport. */
html[data-graphics] body .rank-name-backdrop:not(.rank-name-desktop) .rank-name-dialog{scrollbar-width:none;scrollbar-gutter:auto;overscroll-behavior:contain}
html[data-graphics] body .rank-name-backdrop:not(.rank-name-desktop) .rank-name-dialog::-webkit-scrollbar{display:none;width:0;height:0}
