.leaderboard-page{--lb-red:#92271f;--lb-ink:#35291e;--lb-line:#dfcaa6;--lb-row:60px;background:#f4ead9;color:var(--lb-ink);font:15px/1.55 var(--font-ui);padding:0 0 48px}
.leaderboard-page *{box-sizing:border-box}
.rank-body{max-width:1120px;margin:auto;padding:0 28px}
.leaderboard-page h1,.leaderboard-page h2,.leaderboard-page h3{font-family:Georgia,'Times New Roman',serif;color:var(--lb-ink);letter-spacing:-.025em}
.leaderboard-page p{margin:0;color:#66533d}
.leaderboard-page a{color:var(--lb-red);text-underline-offset:3px}
.leaderboard-page button,.leaderboard-page input,.leaderboard-page select{font:inherit}
.leaderboard-page button,.leaderboard-page a{touch-action:manipulation}
.leaderboard-page button{cursor:pointer}
.leaderboard-page button:disabled{opacity:.6;cursor:wait}
.leaderboard-page :is(button,a,input,summary,[tabindex]):focus-visible{outline:3px solid #3b7091;outline-offset:3px}
.rank-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 0 20px}
.rank-hero h1{font-size:clamp(28px,3.3vw,42px);line-height:1.16;margin:0}
.rank-hero a{font-size:14px;font-weight:700;white-space:nowrap}
.rank-board-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #c9a466}
.rank-tabs{display:flex;gap:2px}
.rank-tabs button{min-height:44px;padding:9px 23px;background:#fff9ee;color:#4b3020;border:1px solid var(--lb-line);border-bottom:0;border-radius:7px 7px 0 0;font-weight:700}
.rank-tabs button[aria-pressed=true]{color:#fff8e8;background:var(--lb-red);border-color:var(--lb-red)}
.rank-worldwide{font-size:13px;font-weight:600}
.rank-board-status{display:flex;justify-content:space-between;gap:12px;padding:8px 0 0;font-size:12px}
.rank-board-status>span{color:#746044;white-space:nowrap}
.rank-honours{padding:0 0 8px}
.rank-podium{display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:end;gap:18px;list-style:none;padding:18px 0 0;margin:0}
.podium-card{--podium-line:#c9a765;--podium-deep:#714218;--podium-wash:#f6dfab;position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;min-height:336px;padding:16px 14px 20px;border:1px solid var(--podium-line);border-radius:15px 15px 10px 10px;background:radial-gradient(ellipse at 50% 20%,#fffef8c9,transparent 70%),linear-gradient(140deg,#fff9eb,var(--podium-wash));box-shadow:inset 0 0 0 4px #fff9e480,0 5px 13px #5e36120b;overflow-wrap:anywhere}
.podium-card:before{content:"";position:absolute;inset:5px;border:1px solid #fff9;border-radius:11px 11px 7px 7px;pointer-events:none}
.podium-slot-1{grid-column:2;grid-row:1;min-height:362px;border-top:3px solid #b17b22;box-shadow:inset 0 0 0 4px #fff9e480,0 6px 20px #82551e14}
.podium-slot-2{grid-column:1;grid-row:1}
.podium-slot-3{grid-column:3;grid-row:1}
.podium-silver{--podium-line:#aab5b9;--podium-deep:#385967;--podium-wash:#e0e6e7}
.podium-bronze{--podium-line:#c08c66;--podium-deep:#873f21;--podium-wash:#f1d1b6}
.podium-place{font:800 12px/1.4 var(--font-ui);letter-spacing:.1em;color:var(--podium-deep)}
.podium-award{width:180px;max-width:100%;height:142px;object-fit:contain;flex-shrink:0;margin:0;filter:drop-shadow(0 4px 3px #4f310b12)}
.podium-slot-1 .podium-award{width:200px;height:162px}
.podium-card>.framed-avatar{--avatar-size:60px;margin:0 auto 7px}
.podium-slot-1>.framed-avatar{--avatar-size:64px}
.podium-name{font-family:Georgia,serif;font-size:21px;line-height:1.2;margin:0 0 7px;max-width:100%}
.podium-country{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:#66533d;min-height:20px}
.rank-flag{width:24px!important;height:18px!important;object-fit:cover!important;border:1px solid #ba9d6b66;border-radius:2px;vertical-align:middle;flex-shrink:0}
.podium-country .rank-flag{width:21px!important;height:15px!important}
.podium-score{font:bold 31px/1.2 Georgia,serif;margin:10px 0 0;color:var(--lb-ink);font-variant-numeric:tabular-nums}
.podium-slot-1 .podium-score{font-size:35px}
.podium-score small{font-size:20px}
.podium-you{outline:2px solid var(--lb-red);outline-offset:3px}
.podium-open-ring{width:44px;height:26px;border:3px solid var(--podium-line);border-radius:50%;margin:15px 0 18px;box-shadow:0 2px 0 #fff8}
.podium-no-score{font-size:12px;color:#715739;margin-top:12px}
.podium-open .podium-name{font-size:19px}
.rank-empty-invite{text-align:center;padding:16px 18px 0}
.rank-empty-invite h2{font-size:23px;margin:0 0 5px}
.rank-empty-invite p{font-size:13px}
.rank-empty{padding:24px;text-align:center;color:#66533d}
.rank-list-section{margin-top:23px}
.rank-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:9px}
.rank-list-heading h2{font-size:27px;line-height:1.2;margin:0}
.rank-table-wrap{border:1px solid var(--lb-line);border-radius:8px;overflow:hidden;background:#fff8eb}
.rank-table{border-collapse:collapse;width:100%;text-align:left;table-layout:fixed}
.rank-table th,.rank-table td{border-bottom:1px solid #e8d9bf;vertical-align:middle;padding:6px 14px;height:var(--lb-row)}
.rank-table thead{background:#eee0ca}
.rank-table thead th{height:34px;font:700 11px var(--font-ui);padding-top:8px;padding-bottom:8px;color:#574126}
.rank-table th:first-child,.rank-table td:first-child{width:75px;text-align:center}
.rank-table th:nth-child(2){width:auto;font-weight:600;font-size:14px}
.rank-table .rank-country-cell{width:25%}
.rank-table th:nth-last-child(2),.rank-table td:nth-last-child(2){text-align:right;width:110px}
.rank-table th:last-child,.rank-table td:last-child{text-align:right;width:85px}
.rank-table tbody tr:last-child>*{border-bottom:0}
.rank-player{display:flex;align-items:center;gap:11px;min-width:0}
.rank-player>.framed-avatar{--avatar-size:40px;flex-shrink:0}
.rank-player>span:last-child{min-width:0;overflow-wrap:anywhere}
.rank-country{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:#66533d}
.rank-country-mobile{display:none}
.rank-place{font-weight:700;font-size:14px}
.rank-score{font-weight:750;font-size:17px;font-variant-numeric:tabular-nums}
.rank-score small{display:none}
.rank-hits{font-size:13px;color:#66533d;font-variant-numeric:tabular-nums}
.rank-hits small{font-size:10px}
.rank-you{display:inline-block;padding:1px 4px;margin-left:5px;font:700 8px var(--font-ui);color:#fff4d6;background:#92271f;border-radius:3px;vertical-align:middle}
.rank-live{display:block;font-size:10px;color:#63542a;font-weight:400}
.rank-me{background:#fff0cb}
.rank-me>td:first-child{box-shadow:inset 3px 0 #b6812c}
.rank-open-row{color:#82715a}
.rank-open-row .rank-player{font-weight:400;font-size:13px}
.rank-open-row .rank-score,.rank-open-row .rank-hits{font-weight:400;color:#82715a}
.rank-vacant-avatar{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:2px solid #fffaf2;border-radius:50%;background:#b9daf3;box-shadow:0 0 0 1px #748eae55;overflow:hidden}
.rank-vacant-avatar>img{width:100%;height:100%;object-fit:contain;padding:1px;opacity:1}
@media(max-width:560px){.rank-vacant-avatar{width:36px;height:36px;flex-basis:36px}.rank-open-row .rank-player{font-size:11px}}
.rank-scroll{max-height:calc(5 * var(--lb-row) + 34px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7964d #f0e5d0}
.rank-scroll::-webkit-scrollbar{width:8px}
.rank-scroll::-webkit-scrollbar-thumb{background:#c7964d;border:2px solid #f0e5d0;border-radius:8px}
.rank-scroll thead{position:sticky;top:0;z-index:1;background:#eee0ca}
.rank-scroll-hint{border-top:1px solid var(--lb-line);padding:6px;text-align:center;font:italic 12px Georgia,serif;color:#76522d!important}
.rank-own-row{display:flex;align-items:center;gap:16px;margin:0;padding:12px 17px;background:#ffedc5;border:0;border-top:1px solid #d4ab62;border-left:4px solid #d7a044;border-radius:0;scroll-margin-top:90px}
.rank-own-position{font-size:14px;color:var(--lb-red);flex-shrink:0}
.rank-own-player{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.rank-own-player>.framed-avatar{--avatar-size:52px;flex-shrink:0}
.rank-own-player>div{min-width:0}
.rank-own-player strong{font:bold 18px Georgia,serif;overflow-wrap:anywhere}
.rank-own-player p{font-size:12px;line-height:1.5;margin-top:3px}
.rank-own-country{display:flex;align-items:center;gap:7px;font-size:12px;max-width:145px}
.rank-own-score{font-size:17px;white-space:nowrap}
.rank-primary{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:var(--lb-red);border:1px solid var(--lb-red);border-radius:7px;padding:10px 17px;min-height:44px;color:#fff7e7!important;text-decoration:none;font-size:13px!important;font-weight:700;white-space:nowrap}
.rank-primary:hover{background:#76211b}
.rank-link-button{border:0;background:none;color:var(--lb-red);min-height:40px;padding:8px 4px;font-weight:600;font-size:12px!important;text-decoration:underline;text-underline-offset:3px}
.rank-board-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:3px 0 0}
.rank-board-footer>span{font-size:11px;color:#746044}
.rank-message{padding:13px 18px;border:1px solid #c39d54;background:#fff3ce;border-radius:8px;margin:0 0 16px;font-size:14px}
.rank-message[hidden]{display:none}
.rank-guide{margin-top:30px}
.rank-guide>h2{font-size:34px;line-height:1.2;margin:0 0 22px}
.rank-guide article{margin:0 0 26px}
.rank-guide h3{font-size:25px;line-height:1.25;margin:0 0 8px}
.rank-guide p{font-size:15px;line-height:1.65;margin:9px 0}
.rank-guide-table{border:1px solid var(--lb-line);border-radius:7px;overflow:hidden;margin:12px 0;background:#fff8eb}
.rank-guide table{width:100%;border-collapse:collapse;text-align:left}
.rank-guide th,.rank-guide td{padding:9px 14px;border-bottom:1px solid #e8d9bf;font-size:14px;line-height:1.5;vertical-align:top}
.rank-guide th{font-weight:650}
.rank-guide thead{background:#eee0ca}
.rank-guide tbody tr:last-child>*{border-bottom:0}
.rank-guide-table th:first-child{width:25%}
.rank-guide-table th:last-child{width:24%}
#ranking-scoring th:first-child{width:40%}
.rank-example{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 12px;border:1px solid #dfbd7d;border-radius:7px;background:#fff0cc;font-size:13px!important}
.rank-example>span{padding:2px 7px;background:var(--lb-red);color:#fff7e8;border-radius:4px;font-size:11px;font-weight:700}
.rank-example strong{font-weight:650}
.rank-score-example{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dfbd7d;border-radius:7px;background:#fff0cc;padding:12px;margin:12px 0;text-align:center}
.rank-score-example>div+div{border-left:1px solid #dfbd7d}
.rank-score-example span{font-size:13px}
.rank-score-example strong{display:block;font:700 31px Georgia,serif;margin-top:3px}
.rank-steps{padding:10px 14px;border:1px solid #dfbd7d;border-radius:7px;background:#fff0cc;text-align:center;font-weight:650;color:var(--lb-red)!important}
.rank-text-button{display:inline;border:0;background:none;color:var(--lb-red);padding:0;text-decoration:underline;text-underline-offset:3px;font-weight:700!important}
.rank-guide-action{text-align:center;margin-top:17px}
.rank-faq{border-top:1px solid var(--lb-line)}
.rank-faq details{border-bottom:1px solid var(--lb-line)}
.rank-faq summary{font-size:14px;font-weight:650;padding:12px 4px;cursor:pointer}
.rank-faq p{margin:0 4px 14px}
.rank-profile{padding:24px;margin:22px 0;background:#fff9ed;border:1px solid var(--lb-line);border-radius:12px;scroll-margin-top:85px}
.rank-profile h2{font-size:28px;margin:5px 0}
.rank-kicker{font-size:10px;letter-spacing:.13em;font-weight:800;color:#8c622f}
.rank-form-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0 16px}
.rank-form-fields label{display:grid;gap:7px;font-size:13px;font-weight:700}
.rank-form-fields input,.rank-form-fields select{width:100%;min-width:0;min-height:44px;border:1px solid #c6ae86;border-radius:7px;background:#fffdf8;color:#35291e;padding:8px 11px}
.rank-form-fields input[readonly]{background:#f1e9db;color:#66533d}
.rank-avatars{padding:0;border:0;display:flex;flex-wrap:wrap;gap:10px;margin:0 0 15px}
.rank-avatars legend{font-size:12px;margin-bottom:8px;color:#66533d}
.rank-avatars label{position:relative;display:inline-flex;cursor:pointer}
.rank-avatars input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.rank-avatars img{border:2px solid transparent;border-radius:10px;background:#f4ead5;object-fit:contain;padding:3px}
.rank-avatars input:checked+img{border-color:var(--lb-red);background:#f9e3c1}
.rank-avatars input:focus-visible+img{outline:3px solid #3b7091}
.rank-consent{display:flex;align-items:flex-start;gap:9px;font-size:13px;color:#66533d;margin-top:14px}
.rank-consent input{margin-top:3px;accent-color:#92271f;width:17px;height:17px;flex-shrink:0}
.rank-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:18px}
.rank-form-actions small{flex-basis:100%;font-size:12px;color:#66533d}
@media(max-width:800px){
 .rank-body{padding:0 20px}.rank-podium{gap:12px}.rank-own-row{flex-wrap:wrap;gap:10px 14px}.rank-own-player{flex-basis:50%}.rank-own-country{margin-left:0}.rank-own-score{margin-left:auto}
 .rank-table th:first-child,.rank-table td:first-child{width:55px}.rank-table th:nth-last-child(2),.rank-table td:nth-last-child(2){width:85px}.rank-table th:last-child,.rank-table td:last-child{width:65px}.rank-table th,.rank-table td{padding-left:10px;padding-right:10px}
}
@media(max-width:560px){
 .leaderboard-page{--lb-row:72px}.rank-body{padding:0 14px}.rank-hero{padding:22px 0 18px;flex-wrap:wrap;gap:9px}.rank-hero h1{font-size:29px}.rank-hero a{font-size:12px}.rank-tabs button{padding:10px 12px;font-size:12px}.rank-worldwide{font-size:11px}.rank-board-status{font-size:10px;align-items:flex-start}.rank-board-status p{max-width:75%}
 .rank-podium{grid-template-columns:1fr 1.08fr 1fr;gap:7px;padding-top:16px}.podium-card{padding:13px 6px 15px;border-radius:11px 11px 7px 7px;min-height:271px}.podium-slot-1{min-height:291px}.podium-place{font-size:9px;letter-spacing:.025em}.podium-award{width:100%;height:94px}.podium-slot-1 .podium-award{height:108px}.podium-card>.framed-avatar{--avatar-size:46px;margin-bottom:7px}.podium-slot-1>.framed-avatar{--avatar-size:50px}.podium-name,.podium-open .podium-name{font-size:14px;line-height:1.25;margin-bottom:5px}.podium-country{font-size:10px;gap:4px;flex-wrap:wrap}.podium-country .rank-flag{width:17px!important;height:12px!important}.podium-score,.podium-slot-1 .podium-score{font-size:23px;margin-top:9px}.podium-score small{font-size:12px}.podium-open-ring{width:34px;height:21px;margin:15px 0}.podium-no-score{font-size:11px}
 .rank-list-section{margin-top:20px}.rank-list-heading h2{font-size:23px}.rank-list-heading .rank-link-button{font-size:11px!important}.rank-table .rank-country-cell{display:none}.rank-table th:nth-child(2){font-size:12px}.rank-table th:first-child,.rank-table td:first-child{width:40px;padding-left:5px;padding-right:5px}.rank-table th:nth-last-child(2),.rank-table td:nth-last-child(2){width:64px}.rank-table th:last-child,.rank-table td:last-child{width:45px}.rank-table th,.rank-table td{padding:6px}.rank-player{gap:7px}.rank-player>.framed-avatar{--avatar-size:32px}.rank-country-mobile{display:flex;align-items:center;gap:4px;font:400 10px var(--font-ui);color:#66533d;margin-top:2px;padding-left:39px}.rank-country-mobile .rank-flag{width:15px!important;height:11px!important}.rank-score{font-size:16px}.rank-hits{font-size:12px}.rank-place{font-size:12px}
 .rank-own-row{padding:13px 11px;gap:10px}.rank-own-position{font-size:12px}.rank-own-player{flex-basis:calc(100% - 90px)}.rank-own-player>.framed-avatar{--avatar-size:42px}.rank-own-player strong{font-size:17px}.rank-own-player p{font-size:11px}.rank-own-country{font-size:11px}.rank-own-score{font-size:16px}.rank-own-row .rank-primary{margin-left:auto;font-size:12px!important;padding:9px 12px}.rank-board-footer{align-items:flex-start}.rank-board-footer>span{font-size:10px;margin-top:10px}.rank-board-footer .rank-link-button{white-space:nowrap}
 .rank-guide{margin-top:26px}.rank-guide>h2{font-size:29px;margin-bottom:20px}.rank-guide h3{font-size:23px}.rank-guide p{font-size:14px}.rank-guide th,.rank-guide td{padding:8px;font-size:12px}.rank-guide-table th:first-child{width:25%}.rank-guide-table th:last-child{width:23%}.rank-example{gap:7px}.rank-score-example{padding:10px 6px;gap:4px}.rank-score-example span{font-size:11px}.rank-score-example strong{font-size:28px}.rank-steps{padding:10px;font-size:13px!important}
 .rank-profile{padding:20px 16px}.rank-form-fields{grid-template-columns:1fr;gap:14px}
}
@media(prefers-reduced-motion:reduce){.rank-scroll{scroll-behavior:auto}}

/* Shared leaderboard links and daily challenge banner outside the ranking page. */
.nav-rank-icon{display:inline-flex;width:18px;height:18px;vertical-align:middle;margin-right:5px}
.nav-rank-icon svg{width:100%;height:100%}
.daily-challenge-banner{display:flex;align-items:center;justify-content:center;gap:18px;background:#8d241b;color:#fff0c8;font:600 13px/1.5 var(--font-ui);padding:10px 20px}
.daily-challenge-banner a{color:#ffe3a2;font-size:12px}
.daily-challenge-banner h1{font-size:20px;margin:0}
.daily-challenge-banner strong{font-size:13px;margin-left:12px;color:#ffe2a1}
.rank-result-link{display:grid;gap:8px;margin-top:16px;padding:12px 16px;background:#efe0bc;border:1px solid #c4a060;border-radius:8px;color:#6c3c20}
.rank-result-link a{color:#8d241b;font-weight:700}
.rank-result-link span{font-size:12px;line-height:1.5}
.rank-result-link small{display:block;font-size:11px}
body[data-route="/daily-challenge/"] .stall-menu-dock,body[data-route="/daily-challenge/"] .mobile-menu-shade{display:none}
@media(max-width:700px){.daily-challenge-banner{font-size:11px;padding:8px 12px;gap:10px;flex-wrap:wrap}.daily-challenge-banner span{font-size:12px}.daily-challenge-banner .button{padding:8px 14px}.daily-challenge-banner a{font-size:12px}.rank-result-link{font-size:13px}}
