#game-shell #drawer.ranking-drawer{left:50%;right:auto;top:90px;bottom:90px;transform:translateX(-50%);width:min(1180px,calc(100% - 32px));max-width:none;overflow:auto}
.ranking-heading,.mastery-card header,.ranking-board header{display:flex;align-items:center;gap:14px}
.ranking-heading{justify-content:space-between;padding-right:30px}.ranking-heading h2,.mastery-heading h2{margin:5px 0;font-size:25px}.ranking-heading small,.mastery-heading>small{color:#d5b66e;letter-spacing:2px;font-size:11px}
.ranking-heading button{flex-shrink:0;padding:10px 14px}.ranking-grid,.mastery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ranking-board,.mastery-card{min-width:0;border:1px solid #405247;border-radius:14px;padding:18px;background:linear-gradient(145deg,#20362d,#101c18)}
.ranking-board header>span,.mastery-symbol{font-size:30px;color:#e5c776}.ranking-board h3,.mastery-card h3{margin:0;font-size:19px}.ranking-board header small{color:#d5b66e;font-size:11px;letter-spacing:2px}
.rankings p,.mastery p,.mastery-secondary small{font-size:13px;color:#b5c5b9;line-height:1.7}.ranking-board table,.mastery table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.ranking-board th:first-child{width:45px}.ranking-board th:last-child{width:115px}.ranking-board th,.mastery th{text-align:left;color:#a6b6ac;font-weight:400;padding:10px 4px}.ranking-board td,.mastery td{padding:10px 4px;border-top:1px solid #ffffff0d;overflow-wrap:anywhere}.ranking-board td:last-child,.ranking-board th:last-child{text-align:right;font-variant-numeric:tabular-nums}.ranking-board td small{display:block;color:#a5bbac;font-size:11px}.ranking-board .ranking-self{background:#8ecba519}.ranking-board .ranking-self td:nth-child(2){color:#b4f0c7}.ranking-podium td:first-child span{display:inline-grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#d5b66e20;color:#edcc7a;font-weight:bold}.ranking-empty{text-align:center!important;height:100px}
.mastery{margin-top:22px}.mastery-heading{margin-bottom:16px}.mastery-card header>strong{margin-left:auto;color:#efd38d;font-size:24px;white-space:nowrap}.mastery-card header small{display:block;font-size:12px;color:#b4c8bc}.mastery-card header>strong small{text-align:right}.mastery-bonus{margin-top:18px;padding:12px;border-radius:8px;background:#d5b66e13;color:#ecd08d;font-weight:bold}.mastery-toughness .mastery-bonus{background:#89bfd114;color:#b9e6ef}.mastery-progress-label{display:flex;justify-content:space-between;gap:8px;font-size:12px}.mastery progress{width:100%;height:9px;border:0;border-radius:6px;overflow:hidden;accent-color:#d5b66e;margin:9px 0}.mastery progress::-webkit-progress-bar{background:#080f0b}.mastery progress::-webkit-progress-value{background:#d5b66e}.mastery details{border-top:1px solid #ffffff17;padding-top:10px}.mastery summary{cursor:pointer;font-size:13px;color:#d7e4db}.mastery-current{color:#e9ce88;background:#d5b66e12}.mastery-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mastery-secondary article{padding:13px;background:#ffffff05;border:1px solid #ffffff12;border-radius:10px}.mastery-secondary strong,.mastery-secondary small{display:block;margin-top:7px}.mastery-secondary strong{color:#e2cb97}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:760px){#game-shell #drawer.ranking-drawer{top:72px;bottom:76px;width:calc(100% - 16px);padding:18px 12px}.ranking-grid,.mastery-grid{grid-template-columns:1fr}.ranking-heading{display:block}.ranking-heading h2,.mastery-heading h2{font-size:21px}.ranking-heading button{margin:8px 0}.ranking-board,.mastery-card{padding:13px}.ranking-board th:last-child{width:98px}.mastery-secondary{grid-template-columns:1fr}.mastery-secondary article{display:grid;grid-template-columns:1fr auto;gap:6px}.mastery-secondary small{grid-column:1/-1}.mastery-secondary strong{margin:0}}

.stats-dialog .mastery-card header{padding:0;border:0;justify-content:flex-start}.stats-dialog .mastery-card h3{font-size:19px;margin:0}.stats-dialog .mastery-card header small{letter-spacing:0}

.ranking-board header{flex-wrap:wrap}.ranking-privacy{margin-left:auto;font-size:12px;padding:7px 9px;border-radius:8px}.ranking-privacy[aria-pressed="true"]{color:#edcc7a;background:#d5b66e20}.ranking-anonymous{color:#d5b66e}

.ranking-privacy svg,.ranking-anonymous svg{width:17px;height:17px;vertical-align:middle}.ranking-privacy svg{margin-right:4px}

.ranking-group-board{grid-column:1 / -1;padding:24px;border-color:#8d7948}.ranking-group-board h3{font-size:24px}.ranking-group-board header>span{font-size:38px}.ranking-group-board table{font-size:15px}.ranking-group-board td{padding:13px 6px}
@media(max-width:760px){.ranking-group-board{padding:16px}.ranking-group-board h3{font-size:22px}.ranking-group-board table{font-size:14px}}

.ranking-crest{font-size:22px;vertical-align:middle}.ranking-group-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:80vh;overflow:auto;background:#17201d;color:#eee4ce;border:1px solid #a18c5c;border-radius:12px;padding:20px;overflow-wrap:anywhere}.ranking-group-dialog::backdrop{background:#0009}.ranking-group-dialog [data-close]{float:right}.ranking-group-dialog li{padding:10px 0}.ranking-group-board [data-ranking-group]{max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* One category at a time keeps the names readable; the list owns wheel scrolling. */
.ranking-layout{display:grid;grid-template-columns:minmax(190px,235px) minmax(0,1fr);gap:18px;align-items:start}
.ranking-categories{display:grid;gap:7px;max-height:min(63vh,650px);overflow-y:auto;padding:2px 7px 2px 2px;scrollbar-color:#957e4b #17241d}
.ranking-categories button{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:12px;text-align:left;border:1px solid #405247;border-radius:10px;background:#17251e;color:#e1e9df;cursor:pointer}
.ranking-categories button:hover,.ranking-categories button:focus-visible{border-color:#d5b66e;background:#294133}
.ranking-categories button[aria-pressed="true"]{border-color:#d5b66e;background:#374430;color:#ffe3a0}
.ranking-categories button small{font-variant-numeric:tabular-nums;color:#bdcbbb}
.ranking-grid{display:block;min-width:0}
.ranking-board,.ranking-group-board{box-sizing:border-box;min-width:0;padding:20px}
.ranking-board[hidden]{display:none}
.ranking-list{max-height:min(40vh,420px);overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#ac9258 #17241d;border:1px solid #ffffff18;border-radius:9px;background:#111d18}
.ranking-list:focus-visible{outline:2px solid #d5b66e;outline-offset:2px}
.ranking-board .ranking-list table{font-size:14px}
.ranking-board .ranking-list th{position:sticky;top:0;z-index:1;background:#19291f;box-shadow:0 1px #60705d}
.ranking-board .ranking-list td{padding:12px 9px}
.ranking-board .ranking-list th{padding:11px 9px}
@media(max-width:760px){.ranking-layout{grid-template-columns:1fr;gap:12px}.ranking-categories{display:flex;max-height:none;overflow-x:auto;overflow-y:hidden;padding:2px 2px 8px}.ranking-categories button{display:flex;width:auto;flex:none;white-space:nowrap;padding:9px 11px}.ranking-categories button small{margin-left:5px}.ranking-board,.ranking-group-board{padding:14px}.ranking-list{max-height:min(37vh,380px)}.ranking-board .ranking-list td,.ranking-board .ranking-list th{padding:10px 5px}}

.ranking-board [data-ranking-player]{border:0;background:none;padding:3px 0;color:#f1d48d;font:inherit;font-weight:700;text-align:left;text-decoration:underline;text-decoration-color:#e5c77677;text-underline-offset:3px;cursor:pointer}
.ranking-board [data-ranking-player]:hover,.ranking-board [data-ranking-player]:focus-visible{color:#fff1bc;text-decoration-color:currentColor}
.ranking-profile-dialog{box-sizing:border-box;width:min(1240px,calc(100vw - 32px));max-height:min(90vh,900px);overflow:auto;padding:22px;border:1px solid #c1a46b;border-radius:20px;background:linear-gradient(145deg,#20382d,#101c18 70%);color:#f4ead2;box-shadow:0 25px 80px #000b}
.ranking-profile-dialog::backdrop{background:#06100bcc;backdrop-filter:blur(4px)}
.ranking-profile-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.ranking-profile-top small{color:#d7bb79;letter-spacing:.15em;font-size:11px;font-weight:800}
.ranking-profile-top h2{margin:4px 0 0;font-size:25px}
.ranking-profile-top [data-close]{border-radius:50%;width:38px;height:38px;padding:0;font-size:25px;line-height:1}
.ranking-profile-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px;align-items:stretch}
.ranking-profile-stage,.ranking-profile-gear{min-width:0;border:1px solid #a79462;border-radius:18px;background:radial-gradient(ellipse at 50% 72%,#355b4780,#182c23 65%,#112019);padding:16px}
.ranking-profile-stage{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ranking-profile-name{max-width:100%;padding:8px 18px;border:1px solid #d9be80;border-radius:999px;background:#12291fe6;color:#ffe2a1;font-weight:800;overflow-wrap:anywhere;box-shadow:0 5px 15px #0006}
.ranking-profile-name:not(.is-diamond):not(.is-premium):not(.is-creator){border-color:#6a796b90;color:#dae5d4;background:#101b17d9}
.ranking-profile-name.is-diamond{border-color:#a5dce9;color:#a8f1ff;background:#0b1b32 url('/assets/diamond-nameplate-v1/plaque.png') center/100% 100% no-repeat;border-radius:5px}
.ranking-profile-name.is-premium{border-color:#c7a75b;color:#f2d47f;background:#1a211a;border-radius:6px}
.ranking-profile-name.is-creator span{display:block;color:#f0c770;font-size:11px}
.ranking-profile-stage canvas{display:block;max-width:100%;height:auto;image-rendering:pixelated}
.ranking-profile-pets{min-height:1.2em;margin:0;color:#bfd8c2;font-size:12px}
.ranking-profile-gear{background:#172820}
.ranking-profile-gear h3{margin:0;color:#f2d794;font-size:20px}
.ranking-profile-gear>p{margin:4px 0 14px;color:#b6c9b7;font-size:13px}
.ranking-profile-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:535px;overflow:auto;padding-right:3px}
.ranking-profile-slot{min-width:0;min-height:92px;display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto 1fr auto;align-items:center;column-gap:9px;padding:9px;border:1px solid #7b86624d;border-radius:11px;background:#0e1c17aa}
.ranking-profile-slot>span{grid-column:1/-1;color:#d6c69d;font-size:11px;font-weight:800}
.ranking-profile-slot .item-image{grid-column:1;grid-row:2/4;width:54px;height:54px;object-fit:contain}
.ranking-profile-slot strong{grid-column:2;grid-row:2;overflow-wrap:anywhere;font-size:13px}
.ranking-profile-slot small{grid-column:2;grid-row:3;color:#b4c4b4;font-size:11px}
.ranking-profile-slot.is-empty{opacity:.55}.ranking-profile-slot.is-empty small{grid-column:1/-1;grid-row:2/4;text-align:center}
.ranking-profile-status{min-height:1.2em;margin:12px 0 0;color:#e9c47e;font-size:13px}
@media(min-width:1100px){.ranking-profile-slots{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:681px) and (max-width:900px){.ranking-profile-slots{grid-template-columns:repeat(2,minmax(0,1fr));max-height:min(66vh,670px)}.ranking-profile-stage,.ranking-profile-gear{padding:12px}.ranking-profile-slot{grid-template-columns:42px minmax(0,1fr);min-height:78px;padding:7px;column-gap:6px}.ranking-profile-slot .item-image{width:40px;height:40px}.ranking-profile-slot strong{font-size:11px}}
@media(max-width:680px){.ranking-profile-dialog{width:calc(100vw - 16px);max-height:94vh;padding:13px;border-radius:14px}.ranking-profile-top h2{font-size:20px}.ranking-profile-layout{grid-template-columns:1fr;gap:12px}.ranking-profile-stage,.ranking-profile-gear{padding:11px;border-radius:12px}.ranking-profile-stage canvas{width:min(100%,390px)}.ranking-profile-slots{max-height:none}.ranking-profile-slot{min-height:78px}}
@media(max-width:360px){.ranking-profile-slots{grid-template-columns:1fr}}

.ranking-weekly-dialog{width:min(680px,calc(100vw - 24px));max-height:85dvh;box-sizing:border-box;overflow:auto}.ranking-weekly-dialog .ranking-list{max-height:55dvh;overflow:auto}.ranking-weekly-dialog table{width:100%;border-collapse:collapse}.ranking-weekly-dialog td,.ranking-weekly-dialog th{padding:7px;text-align:left}


.ranking-period{display:flex;gap:4px;width:fit-content;max-width:100%;margin:12px 0;padding:4px;border:1px solid #70836570;border-radius:10px;background:#101c18}
.ranking-period button{flex:1;min-height:36px;padding:7px 15px;border:0;border-radius:7px;background:transparent;color:#c8d4c9;cursor:pointer;white-space:nowrap}
.ranking-period button[aria-pressed="true"]{background:#374430;color:#ffe3a0;box-shadow:inset 0 0 0 1px #d5b66e}
.ranking-period button:focus-visible{outline:2px solid #d5b66e;outline-offset:2px}
.ranking-own{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;padding:12px;border:1px solid #d5b66e70;border-radius:8px;background:#26372a;color:#ffe3a0;font-variant-numeric:tabular-nums}
.ranking-own span{color:#d1ddcf}
.ranking-board .ranking-list td:last-child{overflow-wrap:normal;white-space:nowrap}

/* Survivor hall: deep jade panels, warm brass accents and clear active states. */
#game-shell .rankings .ranking-heading{gap:16px;padding-bottom:16px;border-bottom:1px solid #bda57525;margin-bottom:16px}
#game-shell .rankings .ranking-heading h2{color:#f3e7cc;letter-spacing:-.5px}
#game-shell .rankings .ranking-heading button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ad966c60;border-radius:10px;background:#23372b;color:#ead7aa;font:inherit;font-size:12px;min-height:38px;cursor:pointer}
#game-shell .rankings [data-ranking-refresh]::before{content:'\21bb';font-size:19px;line-height:1}
#game-shell .rankings [data-ranking-status]{font-size:11px;color:#95aa9b;margin:0 0 15px}
#game-shell .rankings .ranking-categories{gap:8px}
#game-shell .rankings .ranking-categories button{border-color:#71836b35;background:linear-gradient(120deg,#1a2b22,#13211b);transition:background .16s,border-color .16s}
#game-shell .rankings .ranking-categories button>span:first-child{color:#bba675;font-size:18px;text-align:center}
#game-shell .rankings .ranking-categories button small{min-width:25px;padding:3px 5px;border-radius:6px;background:#ffffff07;text-align:center;font-size:10px;color:#a9baaa}
#game-shell .rankings .ranking-categories button[aria-pressed="true"]{border-color:#c7ac70;background:linear-gradient(110deg,#3a4430,#25382a);box-shadow:inset 3px 0 #d8bb77,0 4px 14px #0002;color:#ffe3a0}
#game-shell .rankings .ranking-board{border-radius:16px;border-color:#a48e6155;background:radial-gradient(ellipse at top left,#2d473635,transparent 65%),linear-gradient(145deg,#1c3026,#101d18);box-shadow:0 12px 30px #0002,inset 0 1px #ffffff05;padding:20px}
#game-shell .rankings .ranking-board header{gap:12px}
#game-shell .rankings .ranking-board header>span{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #d0b27340;border-radius:12px;background:linear-gradient(145deg,#d4b56d20,#d4b56d07);color:#f1cf81;font-size:25px}
#game-shell .rankings .ranking-board h3{font-size:19px;line-height:1.4;color:#f0dfb9}
#game-shell .rankings .ranking-board header small{display:inline-block;margin-top:4px;color:#bba673;letter-spacing:1.5px;font-size:10px}
#game-shell .rankings .ranking-privacy{display:inline-flex;align-items:center;gap:5px;min-height:34px;border:1px solid #87977745;border-radius:9px;background:#ffffff04;color:#bfcdbd;cursor:pointer;font-size:11px;transition:border-color .16s,background .16s}
#game-shell .rankings .ranking-privacy svg{margin:0;width:15px;height:15px}
#game-shell .rankings .ranking-privacy[aria-pressed="true"]{border-color:#c7ab7066;background:#c7ab7015;color:#efd49a}
#game-shell .rankings .ranking-period{display:grid;grid-template-columns:1fr 1fr;gap:4px;width:300px;padding:5px;margin:18px 0 12px;border:1px solid #a28f5f40;border-radius:12px;background:#0a1712;box-shadow:inset 0 2px 5px #0003}
#game-shell .rankings .ranking-period button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:8px;padding:8px 12px;font:inherit;font-size:12px;font-weight:600;color:#9daf9f;transition:background .16s,color .16s,box-shadow .16s}
#game-shell .rankings .ranking-period button::before{content:'';width:6px;height:6px;border-radius:50%;background:#758575;flex:none}
#game-shell .rankings .ranking-period button[aria-pressed="true"]{background:linear-gradient(135deg,#d8bf83,#b69a5e);color:#19251b;box-shadow:0 2px 8px #0004,inset 0 1px #fff5}
#game-shell .rankings .ranking-period button[aria-pressed="true"]::before{background:#314328;box-shadow:0 0 0 3px #31432813}
#game-shell .rankings .ranking-board>p{font-size:12px;color:#a8baab;margin:10px 0 14px;line-height:1.65}
#game-shell .rankings .ranking-board .ranking-list{border-color:#8da07a30;border-radius:11px;background:#0e1b15;scrollbar-width:thin}
#game-shell .rankings .ranking-board .ranking-list th{background:#203127;padding:10px 9px;color:#b7c8b8;font-size:11px;box-shadow:0 1px #71836940}
#game-shell .rankings .ranking-board .ranking-list td{padding:9px;line-height:1.45;font-size:12px;border-top-color:#ffffff08}
#game-shell .rankings .ranking-board .ranking-list th:first-child{width:44px}
#game-shell .rankings .ranking-board .ranking-list th:last-child{width:125px}
#game-shell .rankings .ranking-board .ranking-list td:last-child{color:#e5d5b4}
#game-shell .rankings .ranking-board .ranking-list [data-ranking-player]{text-decoration:none;color:#dcc793}
#game-shell .rankings .ranking-board .ranking-list [data-ranking-player]:hover{text-decoration:underline;color:#ffedbb}
#game-shell .rankings .ranking-board .ranking-podium td:first-child span{width:26px;height:26px;border:1px solid #d5b66e30;border-radius:8px;background:linear-gradient(140deg,#d5b66e30,#d5b66e10);color:#f5d890}
#game-shell .rankings .ranking-board .ranking-self{background:#80b68c16;box-shadow:inset 3px 0 #9cbd82}
#game-shell .rankings .ranking-own{position:relative;align-items:center;min-height:62px;margin-top:14px;padding:14px 16px 14px 51px;border:1px solid #c5ab6e60;border-radius:12px;background:linear-gradient(115deg,#c3a56c18,#2c433133);box-shadow:inset 0 1px #f6d7980a}
#game-shell .rankings .ranking-own::before{content:'\265f';position:absolute;left:15px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:26px;height:30px;border-radius:8px;background:#d4b57515;color:#dec18a;font-size:21px}
#game-shell .rankings .ranking-own strong{font-size:14px;font-weight:700;color:#f3d796}
#game-shell .rankings .ranking-own>span{font-size:13px;color:#d8e3d2}
#game-shell .rankings button:focus-visible{outline:2px solid #e8ce8b;outline-offset:3px}
@media(max-width:760px){
 #game-shell .rankings .ranking-heading{padding-right:0;padding-bottom:10px;margin-bottom:12px}
 #game-shell .rankings .ranking-heading button{margin:4px 0}
 #game-shell .rankings .ranking-board{padding:14px;border-radius:13px}
 #game-shell .rankings .ranking-board header{gap:9px}
 #game-shell .rankings .ranking-board header>span{width:35px;height:35px;border-radius:10px;font-size:21px}
 #game-shell .rankings .ranking-board h3{font-size:16px}
 #game-shell .rankings .ranking-privacy{min-height:32px;font-size:10px;padding:6px 8px}
 #game-shell .rankings .ranking-period{width:100%;margin-top:14px}
 #game-shell .rankings .ranking-board .ranking-list td,#game-shell .rankings .ranking-board .ranking-list th{padding:8px 6px}
 #game-shell .rankings .ranking-board .ranking-list th:first-child{width:38px}
 #game-shell .rankings .ranking-board .ranking-list th:last-child{width:104px}
 #game-shell .rankings .ranking-own{gap:5px;padding:12px 12px 12px 46px}
 #game-shell .rankings .ranking-own strong{font-size:13px}
 #game-shell .rankings .ranking-own>span{font-size:12px}
}
@media(max-height:540px) and (orientation:landscape){
 #game-shell .rankings .ranking-board{padding:12px}
 #game-shell .rankings .ranking-period{margin:10px 0;width:280px}
 #game-shell .rankings .ranking-period button{min-height:34px}
 #game-shell .rankings .ranking-own{min-height:48px;margin-top:10px;padding-top:9px;padding-bottom:9px}
}
@media(prefers-reduced-motion:reduce){#game-shell .rankings button{transition:none}}

/* Weekly survivor hall: one period and five compact category groups. */
#game-shell #drawer.ranking-drawer{box-sizing:border-box;z-index:101;padding:24px;max-height:none;border:1px solid #9f92625c;border-radius:22px;background:radial-gradient(ellipse at 0 0,#304b3b66,transparent 55%),#11221bf5;box-shadow:0 24px 80px #0008,inset 0 1px #e7ddae12;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#768167 #12241b}
#game-shell #drawer.ranking-drawer>.drawer-close{position:absolute;top:10px;right:10px;z-index:3;display:grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;border:1px solid #9a99705c;border-radius:12px;background:#233a2e;color:#e8d8ad;font-size:24px}
#game-shell .rankings{min-width:0;color:#e7e5cf;font-family:system-ui,sans-serif}
#game-shell .rankings button{font-family:inherit}
#game-shell .rankings button:disabled{opacity:.55;cursor:wait}
#game-shell .rankings .ranking-heading{display:flex;gap:16px;align-items:center;padding:0 46px 16px 0;margin-bottom:12px}
#game-shell .rankings .ranking-heading h2{margin:4px 0;font-size:27px;line-height:1.35;letter-spacing:-.5px}
#game-shell .rankings .ranking-heading>div>small{font-size:9px;letter-spacing:2.3px;color:#bfa76e}
#game-shell .rankings .ranking-heading p{margin:5px 0 0;font-size:12px;color:#a4b9a8}
#game-shell .rankings .ranking-heading button{min-height:42px;margin:0;padding:8px 13px;white-space:nowrap}
#game-shell .rankings [data-ranking-status]{min-height:18px;margin:0 0 12px;font-size:11px;line-height:1.5;color:#a7bcaa}
#game-shell .rankings [data-ranking-status][data-state=error]{color:#efb7a3}
#game-shell .rankings .ranking-timebar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 20px;padding:0 0 17px}
#game-shell .rankings .ranking-period{flex:none;width:294px;max-width:100%;margin:0;border-color:#ab966349;border-radius:13px;background:#0a1913;padding:4px}
#game-shell .rankings .ranking-period button{min-height:44px;padding:8px 14px;font-size:13px;border-radius:9px}
#game-shell .rankings .ranking-week-note{display:flex;flex-direction:column;gap:3px;min-width:0;text-align:right}
#game-shell .rankings .ranking-week-note strong{font-size:13px;font-weight:600;color:#d6c79e}
#game-shell .rankings .ranking-week-note span{font-size:11px;color:#93ab99;line-height:1.5}
#game-shell .rankings .ranking-group-tabs{display:flex;gap:6px;align-items:center;overflow:auto;overscroll-behavior-x:contain;padding:3px 2px 12px;margin-bottom:14px;border-bottom:1px solid #af9d6a25;scrollbar-width:thin}
#game-shell .rankings .ranking-group-tabs button{flex:none;min-height:44px;white-space:nowrap;padding:9px 17px;border:1px solid transparent;border-radius:10px;background:transparent;color:#a5b9a8;font-size:13px;font-weight:600;cursor:pointer}
#game-shell .rankings .ranking-group-tabs button:hover{background:#d4c49709;color:#e4d5af}
#game-shell .rankings .ranking-group-tabs button[aria-pressed=true]{border-color:#bca36b55;background:#b7a16b13;color:#f0d9a1;box-shadow:inset 0 -2px #c8af74}
#game-shell .rankings .ranking-layout{grid-template-columns:215px minmax(0,1fr);gap:18px}
#game-shell .rankings .ranking-categories{gap:7px;max-height:min(58dvh,540px);padding:2px 7px 4px 2px}
#game-shell .rankings .ranking-categories button{grid-template-columns:26px minmax(0,1fr) 6px;gap:9px;min-height:48px;padding:11px 10px;border-radius:12px;font-size:12px;line-height:1.5}
#game-shell .rankings .ranking-categories button[hidden]{display:none}
#game-shell .rankings .ranking-category-icon{display:grid;place-items:center;width:24px;height:24px}
#game-shell .rankings svg{display:block;width:22px;height:22px;flex:none}
#game-shell .rankings .ranking-category-icon svg{width:22px;height:22px}
#game-shell .rankings .ranking-category-dot{display:block;width:5px;height:5px;border-radius:50%;background:#e6c780;box-shadow:0 0 0 3px #d8b66b0c}
#game-shell .rankings .ranking-board{padding:18px;border-radius:17px;background:radial-gradient(ellipse at 0 0,#34503c35,transparent 65%),#102119;border-color:#b4a06c45;box-shadow:0 12px 30px #0002,inset 0 1px #e5e5ca08}
#game-shell .rankings .ranking-board header{display:flex;flex-wrap:nowrap;gap:11px;align-items:center}
#game-shell .rankings .ranking-board header>.ranking-board-symbol{display:grid;place-items:center;flex:none;width:43px;height:43px;border-radius:13px}
#game-shell .rankings .ranking-board-symbol svg{width:25px;height:25px}
#game-shell .rankings .ranking-board-title{min-width:0;flex:1}
#game-shell .rankings .ranking-board h3{margin:0;font-size:19px;line-height:1.45;overflow-wrap:anywhere}
#game-shell .rankings .ranking-board header small{font-size:10px;letter-spacing:.6px;line-height:1.5}
#game-shell .rankings .ranking-privacy{flex:none;min-height:38px;margin-left:0;padding:8px 9px;line-height:1.4;font-size:11px}
#game-shell .rankings .ranking-privacy svg{width:16px;height:16px}
#game-shell .rankings .ranking-scoring{margin:12px 0;border-top:0;padding:0;border-radius:9px;background:#aebd9b05;color:#a7bca8}
#game-shell .rankings .ranking-scoring summary{display:flex;align-items:center;gap:8px;min-height:38px;padding:6px 10px;font-size:11px;line-height:1.5;cursor:pointer;list-style:none}
#game-shell .rankings .ranking-scoring summary::-webkit-details-marker{display:none}
#game-shell .rankings .ranking-scoring summary::before{content:'+';font-size:17px;font-weight:400;color:#c7b17a}
#game-shell .rankings .ranking-scoring[open] summary::before{content:'−'}
#game-shell .rankings .ranking-scoring p{margin:0;padding:0 10px 9px;font-size:11px;line-height:1.7;color:#afc0aa}
#game-shell .rankings .ranking-list{max-height:clamp(170px,38dvh,415px);border-radius:11px;overflow:auto;overscroll-behavior:contain}
#game-shell .rankings .ranking-board .ranking-list table{font-size:12px;line-height:1.5}
#game-shell .rankings .ranking-board .ranking-list th{height:37px;padding:8px;color:#a9bfac;font-size:10px;line-height:1.45}
#game-shell .rankings .ranking-board .ranking-list th:first-child{width:44px}
#game-shell .rankings .ranking-board .ranking-list th:last-child{width:120px}
#game-shell .rankings .ranking-board .ranking-list td{height:45px;padding:7px 8px;font-size:12px;line-height:1.45}
#game-shell .rankings .ranking-board .ranking-list td:last-child{white-space:normal;overflow-wrap:anywhere}
#game-shell .rankings .ranking-board .ranking-list td:last-child b{font-weight:600;font-variant-numeric:tabular-nums}
#game-shell .rankings .ranking-board .ranking-list td small{font-size:10px;line-height:1.5}
#game-shell .rankings .ranking-board .ranking-list [data-ranking-player],#game-shell .rankings .ranking-board .ranking-list [data-ranking-group]{min-height:32px;padding:4px 0;border:0;background:none;color:#e3d1a1;font-size:12px;font-weight:600;text-align:left;text-decoration:none;white-space:normal;overflow-wrap:anywhere;line-height:1.5;cursor:pointer}
#game-shell .rankings .ranking-board .ranking-list [data-ranking-player]:hover,#game-shell .rankings .ranking-board .ranking-list [data-ranking-group]:hover{color:#fff0bc;text-decoration:underline;text-underline-offset:3px}
#game-shell .rankings .ranking-board .ranking-list td:nth-child(2)>small{display:inline;margin-left:5px;color:#9ab6a0;white-space:nowrap}
#game-shell .rankings .ranking-anonymous{display:inline-block;vertical-align:middle}
#game-shell .rankings .ranking-anonymous svg{width:15px;height:15px}
#game-shell .rankings .ranking-crest{display:inline-block;vertical-align:middle}
#game-shell .rankings .ranking-crest img{display:inline-block;object-fit:contain;vertical-align:middle}
#game-shell .rankings .ranking-empty{height:170px!important;padding:18px!important;text-align:center!important}
#game-shell .rankings .ranking-empty-icon{display:grid;place-items:center;width:40px;height:40px;margin:0 auto 9px;border:1px solid #bfa66c30;border-radius:12px;background:#bfa66c08;color:#b6a475}
#game-shell .rankings .ranking-empty strong,#game-shell .rankings .ranking-empty>span:last-child{display:block}
#game-shell .rankings .ranking-empty strong{font-size:13px;color:#c4d2bd;font-weight:600}
#game-shell .rankings .ranking-empty>span:last-child{margin-top:5px;font-size:11px;color:#89a28f;line-height:1.6}
#game-shell .rankings .ranking-own{display:flex;align-items:center;gap:11px;min-height:65px;margin-top:12px;padding:12px 14px;border-radius:12px;background:linear-gradient(115deg,#c3a56c16,#28432f22)}
#game-shell .rankings .ranking-own::before{display:none}
#game-shell .rankings .ranking-own-symbol{display:grid;place-items:center;flex:none;width:30px;height:32px;border-radius:9px;background:#d4b57510;color:#d8bd82}
#game-shell .rankings .ranking-own-symbol svg{width:19px;height:19px}
#game-shell .rankings .ranking-own>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
#game-shell .rankings .ranking-own small{font-size:9px;line-height:1.4;color:#a5b79f}
#game-shell .rankings .ranking-own strong{font-size:13px;line-height:1.5}
#game-shell .rankings .ranking-own>span:last-child:not(.ranking-own-symbol){margin-left:auto;font-size:12px;line-height:1.5;text-align:right;overflow-wrap:anywhere}
#game-shell .rankings .ranking-loading,#game-shell .rankings .ranking-load-error{display:flex;align-items:center;justify-content:center;gap:12px;min-height:200px;padding:20px;border:1px solid #b3a16c25;border-radius:17px;background:#0f211a;color:#b7c8b4;font-size:13px;text-align:center}
#game-shell .rankings .ranking-loading>span{width:11px;height:11px;flex:none;border-radius:50%;background:#ceba80;box-shadow:0 0 0 7px #ceba800c}
#game-shell .ranking-group-dialog{border-radius:18px;border-color:#ad976960;background:radial-gradient(ellipse at 0 0,#304a3655,transparent 65%),#12251b;box-shadow:0 24px 90px #0009;padding:24px;color:#e6dfc3}
#game-shell .ranking-group-dialog::backdrop{background:#07140dc9;backdrop-filter:blur(4px)}
#game-shell .ranking-group-dialog [data-close]{display:grid;place-items:center;float:right;width:38px;height:38px;margin:-7px -7px 0 10px;border:1px solid #8e91674d;border-radius:11px;background:#2b4030;color:#e3d5aa;font-size:24px;cursor:pointer}
#game-shell .ranking-group-dialog h2{margin:12px 0;font-size:24px;line-height:1.4}
#game-shell .ranking-group-dialog h2 img{object-fit:contain;vertical-align:middle}
#game-shell .ranking-dialog-eyebrow{display:block;padding-top:4px;font-size:10px;color:#c7ae74;letter-spacing:.8px}
#game-shell .ranking-group-dialog p{font-size:12px;line-height:1.7;color:#b7c5ae}
#game-shell .ranking-group-dialog ul{list-style:none;margin:15px 0 0;padding:0;border-top:1px solid #8da06d30}
#game-shell .ranking-group-dialog li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 14px;padding:12px 2px;border-bottom:1px solid #9caa7c14;font-size:12px}
#game-shell .ranking-group-dialog li>span{color:#a4b99f}
#game-shell .rankings :is(button,summary):focus-visible,#game-shell .ranking-group-dialog button:focus-visible{outline:2px solid #ead292;outline-offset:3px}
@media(max-width:900px){#game-shell .rankings .ranking-layout{grid-template-columns:185px minmax(0,1fr);gap:12px}#game-shell .rankings .ranking-board{padding:14px}#game-shell .rankings .ranking-board h3{font-size:17px}#game-shell .rankings .ranking-week-note{text-align:left}}
@media(max-width:760px){
 #game-shell #drawer.ranking-drawer{top:64px;bottom:70px;width:calc(100% - 16px);padding:16px 12px;border-radius:18px}
 #game-shell .rankings .ranking-heading{align-items:flex-start;gap:8px;padding:0 39px 12px 0;margin:0 0 10px}
 #game-shell .rankings .ranking-heading h2{font-size:23px}
 #game-shell .rankings .ranking-heading p{display:none}
 #game-shell .rankings .ranking-heading button{min-height:38px;padding:8px;font-size:11px}
 #game-shell .rankings .ranking-heading button::before{display:none}
 #game-shell .rankings [data-ranking-status]{margin-bottom:9px;font-size:10px}
 #game-shell .rankings .ranking-timebar{gap:9px;padding-bottom:10px}
 #game-shell .rankings .ranking-period{width:100%}
 #game-shell .rankings .ranking-week-note{gap:2px;text-align:left}
 #game-shell .rankings .ranking-week-note strong{font-size:12px}
 #game-shell .rankings .ranking-week-note span{font-size:10px}
 #game-shell .rankings .ranking-group-tabs{gap:3px;padding-bottom:9px;margin-bottom:8px}
 #game-shell .rankings .ranking-group-tabs button{min-height:44px;padding:8px 12px;font-size:12px}
 #game-shell .rankings .ranking-layout{grid-template-columns:minmax(0,1fr);gap:10px}
 #game-shell .rankings .ranking-categories{display:flex;gap:6px;max-height:none;overflow-x:auto;overflow-y:hidden;padding:2px 2px 7px}
 #game-shell .rankings .ranking-categories button{display:flex;flex:none;width:auto;min-height:44px;gap:7px;padding:8px 10px;border-radius:10px;font-size:11px;white-space:nowrap}
 #game-shell .rankings .ranking-category-icon,#game-shell .rankings .ranking-category-icon svg{width:19px;height:19px}
 #game-shell .rankings .ranking-category-dot{display:none}
 #game-shell .rankings .ranking-board{padding:12px;border-radius:14px}
 #game-shell .rankings .ranking-board header{flex-wrap:wrap;gap:8px}
 #game-shell .rankings .ranking-board header>.ranking-board-symbol{width:34px;height:34px;border-radius:10px}
 #game-shell .rankings .ranking-board-symbol svg{width:21px;height:21px}
 #game-shell .rankings .ranking-board h3{font-size:16px}
 #game-shell .rankings .ranking-board header small{font-size:9px}
 #game-shell .rankings .ranking-privacy{min-height:36px;padding:7px;font-size:10px}
 #game-shell .rankings .ranking-scoring{margin:9px 0}
 #game-shell .rankings .ranking-scoring summary{min-height:36px;padding:6px 8px}
 #game-shell .rankings .ranking-list{max-height:clamp(170px,34dvh,330px)}
 #game-shell .rankings .ranking-board .ranking-list th:first-child{width:35px}
 #game-shell .rankings .ranking-board .ranking-list th:last-child{width:90px}
 #game-shell .rankings .ranking-board .ranking-list :is(td,th){padding:6px 5px}
 #game-shell .rankings .ranking-board .ranking-list td{height:44px;font-size:11px}
 #game-shell .rankings .ranking-board .ranking-list [data-ranking-player],#game-shell .rankings .ranking-board .ranking-list [data-ranking-group]{font-size:11px;min-height:32px}
 #game-shell .rankings .ranking-board .ranking-list td small{font-size:9px}
 #game-shell .rankings .ranking-own{gap:8px;min-height:60px;padding:10px;margin-top:10px}
 #game-shell .rankings .ranking-own strong{font-size:12px}
 #game-shell .rankings .ranking-own>span:last-child:not(.ranking-own-symbol){font-size:11px}
}
@media(max-width:360px){#game-shell .rankings .ranking-heading{gap:6px}#game-shell .rankings .ranking-heading h2{font-size:20px}#game-shell .rankings .ranking-privacy span{display:none}#game-shell .rankings .ranking-privacy{width:36px;justify-content:center}#game-shell .rankings .ranking-own{flex-wrap:wrap}#game-shell .rankings .ranking-own>span:last-child:not(.ranking-own-symbol){max-width:100%;padding-left:38px}#game-shell .rankings .ranking-board .ranking-list th:last-child{width:76px}}
@media(max-height:540px) and (orientation:landscape){
 #game-shell #drawer.ranking-drawer{top:52px;bottom:8px;width:calc(100% - 20px);padding:12px 16px;border-radius:16px}
 #game-shell .rankings .ranking-heading{padding-bottom:8px;margin-bottom:6px}
 #game-shell .rankings .ranking-heading h2{font-size:21px}
 #game-shell .rankings .ranking-heading p,#game-shell .rankings .ranking-heading>div>small{display:none}
 #game-shell .rankings [data-ranking-status]{margin:0 0 6px}
 #game-shell .rankings .ranking-timebar{align-items:center;flex-wrap:nowrap;padding-bottom:7px;gap:12px}
 #game-shell .rankings .ranking-period{width:270px;flex:none}
 #game-shell .rankings .ranking-period button{min-height:36px;padding:6px 12px;font-size:12px}
 #game-shell .rankings .ranking-week-note strong{font-size:11px}
 #game-shell .rankings .ranking-week-note span{font-size:10px}
 #game-shell .rankings .ranking-group-tabs{margin-bottom:8px;padding-bottom:5px}
 #game-shell .rankings .ranking-group-tabs button{min-height:36px;padding:6px 12px}
 #game-shell .rankings .ranking-layout{grid-template-columns:170px minmax(0,1fr);gap:10px}
 #game-shell .rankings .ranking-categories{display:grid;max-height:210px;overflow-y:auto;overflow-x:hidden}
 #game-shell .rankings .ranking-categories button{display:grid;width:100%;min-height:40px;padding:7px 9px;white-space:normal}
 #game-shell .rankings .ranking-board{padding:11px}
 #game-shell .rankings .ranking-list{max-height:180px}
 #game-shell .rankings .ranking-own{min-height:48px;padding:8px 10px}
}
@media(max-height:540px) and (orientation:landscape) and (max-width:600px){#game-shell .rankings .ranking-layout{grid-template-columns:142px minmax(0,1fr)}#game-shell .rankings .ranking-timebar{flex-wrap:wrap}#game-shell .rankings .ranking-week-note{display:none}#game-shell .rankings .ranking-period{width:100%}#game-shell .rankings .ranking-board .ranking-list th:last-child{width:70px}#game-shell .rankings .ranking-board header>.ranking-board-symbol{display:none}#game-shell .rankings .ranking-privacy span{display:none}}
@media(pointer:coarse){#game-shell .rankings .ranking-privacy,#game-shell .rankings .ranking-scoring summary,#game-shell #drawer.ranking-drawer>.drawer-close,#game-shell .ranking-group-dialog [data-close]{min-width:44px;min-height:44px}#game-shell .rankings .ranking-board .ranking-list [data-ranking-player],#game-shell .rankings .ranking-board .ranking-list [data-ranking-group]{min-height:44px}}

/* Let the table use the remaining window space while keeping your rank visible. */
#game-shell #drawer.ranking-drawer{display:flex;flex-direction:column}
#game-shell #drawer.ranking-drawer #drawer-content{flex:1;min-height:0;min-width:0}
#game-shell .rankings{display:flex;flex-direction:column;height:100%;min-height:0}
#game-shell .rankings .ranking-heading,#game-shell .rankings [data-ranking-status],#game-shell .rankings .ranking-timebar,#game-shell .rankings .ranking-group-tabs{flex:none}
#game-shell .rankings [data-ranking-boards]{display:flex;flex:1;flex-direction:column;min-height:0}
#game-shell .rankings .ranking-layout{flex:1;min-height:0;align-items:stretch}
#game-shell .rankings .ranking-grid{min-height:0}
#game-shell .rankings .ranking-board{display:flex;flex-direction:column;height:100%;min-height:0}
#game-shell .rankings .ranking-board[hidden]{display:none}
#game-shell .rankings .ranking-board header,#game-shell .rankings .ranking-scoring,#game-shell .rankings .ranking-own{flex:none}
#game-shell .rankings .ranking-list{flex:1;min-height:110px;max-height:none}
@media(max-width:760px){#game-shell .rankings .ranking-layout{grid-template-rows:auto minmax(0,1fr)}#game-shell .rankings .ranking-categories{align-self:start}#game-shell .rankings .ranking-list{min-height:105px}}
@media(max-height:540px) and (orientation:landscape){
 #game-shell .rankings .ranking-heading{display:none}
 #game-shell .rankings [data-ranking-status][data-state=ready]{display:none}
 #game-shell .rankings .ranking-timebar{padding-right:44px}
 #game-shell .rankings .ranking-layout{grid-template-rows:minmax(0,1fr)}
 #game-shell .rankings .ranking-board header>.ranking-board-symbol{width:30px;height:30px}
 #game-shell .rankings .ranking-board h3{font-size:15px}
 #game-shell .rankings .ranking-board header small{font-size:9px}
 #game-shell .rankings .ranking-scoring{margin:6px 0}
 #game-shell .rankings .ranking-scoring summary{min-height:29px;padding:3px 8px}
 #game-shell .rankings .ranking-list{min-height:80px}
 #game-shell .rankings .ranking-own{min-height:43px;margin-top:7px;padding:6px 9px}
 #game-shell .rankings .ranking-own-symbol{width:23px;height:26px}
 #game-shell .rankings .ranking-own small{display:none}
 #game-shell .rankings .ranking-categories{max-height:none;min-height:0}
}

/* The shared desktop drawer policy loads later; keep this window's own frame. */
#game-shell #drawer.drawer.ranking-drawer:has(.rankings){position:fixed!important;inset:12px!important;transform:none!important;margin:0 auto!important;width:min(1180px,calc(100dvw - 24px))!important;max-width:none!important;height:calc(100dvh - 24px)!important;max-height:none!important;min-height:0!important;padding:24px!important;z-index:101!important}
#game-shell #drawer.drawer.ranking-drawer:has(.rankings)>.drawer-close{position:absolute!important;top:10px;right:10px;float:none;margin:0;z-index:3}
#game-shell .rankings .ranking-categories{align-content:start}
@media(max-width:760px){#game-shell #drawer.drawer.ranking-drawer:has(.rankings){inset:8px!important;width:calc(100dvw - 16px)!important;height:calc(100dvh - 16px)!important;padding:16px 12px!important}}
@media(max-height:540px) and (orientation:landscape){#game-shell #drawer.drawer.ranking-drawer:has(.rankings){inset:6px!important;width:calc(100dvw - 12px)!important;height:calc(100dvh - 12px)!important;padding:12px 16px!important}}
@media(max-width:760px) and (max-height:650px){
 #game-shell .rankings .ranking-heading{padding-bottom:7px;margin-bottom:7px}
 #game-shell .rankings .ranking-heading>div>small,#game-shell .rankings [data-ranking-status][data-state=ready],#game-shell .rankings .ranking-week-note{display:none}
 #game-shell .rankings .ranking-timebar{padding-bottom:7px}
 #game-shell .rankings .ranking-group-tabs{padding-bottom:5px;margin-bottom:5px}
 #game-shell .rankings .ranking-scoring{margin:6px 0}
 #game-shell .rankings .ranking-scoring summary{min-height:32px}
}

#game-shell .rankings .ranking-board .ranking-list table{font-size:12px;line-height:1.35}
#game-shell .rankings .ranking-board .ranking-list button{font-size:12px;line-height:1.35;min-height:24px}
#game-shell .rankings .ranking-board .ranking-list tbody tr:nth-child(even):not(.ranking-self){background:#ffffff03}
#game-shell .rankings .ranking-board .ranking-podium:nth-child(2) td:first-child span{background:#bdcbd51a;color:#dbe6ed}
#game-shell .rankings .ranking-board .ranking-podium:nth-child(3) td:first-child span{background:#c3905d1a;color:#e4b78e}
#game-shell .rankings .ranking-board .ranking-crest img{width:24px!important;height:14px!important}

/* Keep Arena tier and points readable beside your placing on narrow phones. */
@media(max-width:360px){
 #game-shell .rankings [data-ranking-board="arena"] .ranking-own{display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 8px;align-content:center;padding:8px;min-height:60px}
 #game-shell .rankings [data-ranking-board="arena"] .ranking-own-symbol{grid-row:1/3;width:24px;height:28px}
 #game-shell .rankings [data-ranking-board="arena"] .ranking-own small{display:none}
 #game-shell .rankings [data-ranking-board="arena"] .ranking-own>span:last-child:not(.ranking-own-symbol){grid-column:2;margin-left:0;padding-left:0;text-align:left}
}
