
:root {
    color-scheme: dark;
    
    --bg: #080c11;
    --surface: #191e24;
    --surface-2: #24282e;
    
    --surface-3: #2d3138;
    --border: #282d33;
    
    --stamp-ink: #0f1419;
    --stamp-shadow: rgba(0, 0, 0, .5);
    
    --accent: #86d7ec;
    --accent-hover: #b0e6f4;
    
    --danger: #e94560;
    --danger-hover: #ff5b76;
    
    --accent-ink: #071419;
    --success: #46c99b;
    --success-text: #46c99b;
    --gold: #e8a93c;
    
    --caution: #e8b277;
    
    --alert: #ff8fa8;
    
    --plat-blue: #a8c6e6;
    
    --border-hover: #353a40;
    
    --earned-bg: #143026;
    --earned-border: #2c6b56;
    
    --field-bg: #181d23;
    
    --text: #eff3f7;
    --text-2: #c5c8cc;
    --text-3: #96999d;
    --text-muted: #8c8f93;
    --ps-purple: #7b78ff;
    
    --brand-1: #4e9cbe;
    --brand-2: #86d7ec;
    --brand-3: #c4ecf8;
    --brand-gradient: linear-gradient(90deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
    
    --icon-plate: #20242a;
    
    --platform-ps5: #ffffff;
    --platform-ps4: #10808a;
    --platform-ps3: #4a4f57;
    --platform-psvita: #7a3fb0;
    --platform-multi: #b5721f;
    
    --cat-1: #86d7ec;
    --cat-2: #e8a93c;
    --cat-3: #46c99b;
    --cat-4: #CD7F32;
    --cat-5: #c0c0c0;
    --cat-6: #10808a;
    --cat-7: #ff8fa8;
    --cat-8: #4e9cbe;
    
    --metal-bronze: #CD7F32;
    --metal-silver: #C0C0C0;
    --metal-gold: #FFD700;
    --metal-platinum: #E5E4E2;
    
    --collection-platinum: var(--brand-2);
    --collection-gold: var(--gold);
    --collection-silver: #8d9bad;
    --collection-bronze: #ad633f;
    --platinum-gradient: linear-gradient(90deg, #8fb8d8, #f1fbff 44%, #bedceb 72%, #9dbbd7);
    
    --hundred-gradient: linear-gradient(90deg, #5ecfa2, #eafff5 44%, #8ee8c4 72%, #4db892);
    
    --space-1: 4px; --space-2: 8px; --space-3: 12px;
    --space-4: 16px; --space-5: 24px; --space-6: 32px;
    
    --radius-sm: 6px; --radius-md: 8px; --radius-lg: 10px; --radius-full: 999px;
    
    --profile-pill-height: 340px;
    
    --site-frame-max-width: 1440px;
    --site-frame-padding: 40px;
    --site-mobile-padding: 16px;
    --site-mobile-breakpoint: 760px;
    --profile-mobile-artwork-height: 140px;
    --game-mobile-pill-height: 390px;
    
    
    --shadow-1: none;
    --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.6);
    
    --ghost-hover: rgba(255, 255, 255, .035);
    
    --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-brand: "Commissioner", "Public Sans", system-ui, sans-serif;
    
    --dark-bg: var(--bg);
    --dark-surface: var(--surface);
    --dark-surface-2: var(--surface-2);
    --dark-surface-3: var(--surface-3);
    --dark-border: var(--border);
    --dark-border-hover: var(--border-hover);
    --dark-text-2: var(--text-2);
    --dark-text-3: var(--text-3);
    --dark-text-muted: var(--text-muted);
    --dark-accent: var(--accent);
    --dark-accent-ink: var(--accent-ink);
    
    --dark-scrim-deep: #04060a;
    --dark-scrim-mid: #0f1419;
    --dark-text-soft: #b4b7bb;
    --dark-glass-ink: #e0e3e8;
    
    --dark-field-edge: #6d7279;
    
    --dark-card-edge: transparent;
    --dark-flat: none;
    --dark-radius-card: 8px;
}


html[data-theme="light"] {
    color-scheme: light;
    --bg: #eef1f7;
    --surface: #ffffff;
    --surface-2: #e4e9f3;
    --surface-3: #d5dcea;
    --border: #d4dbe8;
    --stamp-ink: #ffffff;
    --stamp-shadow: rgba(23, 32, 47, .28);
    --text: #172033;
    --text-2: #3c4761;
    --text-3: #5e6a84;
    --text-muted: #808a9e;
    --accent: #1b6f97;
    --accent-hover: #2f9cc7;
    --danger: #d92c4d;
    --danger-hover: #e94560;
    --success: #128a60;
    
    --success-text: #0d6f4d;
    --gold: #a8720f;
    --caution: #965f12;
    --alert: #c22a49;
    --plat-blue: #3f6c99;
    --border-hover: #a9b6cd;
    --earned-bg: color-mix(in srgb, var(--success) 9%, var(--surface));
    --earned-border: color-mix(in srgb, var(--success) 30%, var(--border));
    --field-bg: #ffffff;
    --brand-1: #1b6f97;
    --brand-2: #2f9cc7;
    --brand-3: #5cbde0;
    
    --cat-1: #2f9cc7;
    --cat-2: #8a5f00;
    --cat-3: #128a60;
    --cat-4: #9a5a22;
    --cat-5: #6d7785;
    --cat-6: #0f6b73;
    --cat-7: #c0425f;
    --cat-8: #1b6f97;
    --shadow-1: 0 2px 8px rgba(23, 32, 58, .10);
    --shadow-2: 0 8px 28px rgba(23, 32, 58, .14);
    --ghost-hover: rgba(23, 32, 58, .05);
    
    --accent-ink: #f4f6fa;
    --icon-plate: #1a2440;
    --radius-md: 10px;
    --radius-lg: 14px;
    
    --dark-bg: initial;
    --dark-surface: initial;
    --dark-surface-2: initial;
    --dark-surface-3: initial;
    --dark-border: initial;
    --dark-border-hover: initial;
    --dark-text-2: initial;
    --dark-text-3: initial;
    --dark-text-muted: initial;
    --dark-accent: initial;
    --dark-accent-ink: initial;
    --dark-scrim-deep: initial;
    --dark-scrim-mid: initial;
    --dark-text-soft: initial;
    --dark-glass-ink: initial;
    --dark-field-edge: initial;
    --dark-card-edge: initial;
    --dark-flat: initial;
    --dark-radius-card: initial;
}


html[data-theme="light"] .mm-hero,
html[data-theme="light"] .th-hero,
html[data-theme="light"] .home-hero-band,
html[data-theme="light"] .plat-list-row,
html[data-theme="light"] .ms-plat,
html[data-theme="light"] .gv-hero,
html[data-theme="light"] .gd-hero,
html[data-theme="light"] .club-hero,
html[data-theme="light"] .lb-row.lb-art,
html[data-theme="light"] .cat-spotlight,
html[data-theme="light"] .chal-hero,
html[data-theme="light"] .cmp-hero-stage,
html[data-theme="light"] .cmp-row.cmp-row-art,
html[data-theme="light"] .cmp-g-stage,
html[data-theme="light"] .cmp-g-row.cmp-g-plat-row,
html[data-theme="light"] #profileHeader.profile-hero {
    --text: #f4f6fa;
    --text-2: #c6cddb;
    --text-3: #97a0b3;
    --text-muted: #78829a;
    --brand-1: #4e9cbe;
    --brand-2: #86d7ec;
    --brand-3: #c4ecf8;
    
    --brand-gradient: linear-gradient(90deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
    
    --success: #46c99b;
    --gold: #e8a93c;
    --border: #24304f;
    
    color: var(--text);
}


html[data-theme="light"] .mm-card-next.has-art {
    --text: #f4f6fa;
    --text-2: #c6cddb;
    --text-3: #97a0b3;
    --text-muted: #78829a;
    --border: #24304f;
    background: #131a2e;
    color: var(--text);
}


html[data-theme="light"] #profileHeader.profile-hero .pl-badge {
    background: rgba(8, 12, 24, 0.68);
    border-color: rgba(180, 200, 238, 0.22);
}


html[data-theme="light"] .gd-hero {
    --alert: #ff8fa8;
    --caution: #e8b277;
}
html[data-theme="light"] .gd-hero .um-strip {
    --danger: #e94560;
    --caution: #e8b277;
    --stamp-ink: #0d1220;
}


html[data-theme="light"] .chal-hero {
    --surface: #131a2e;
    --surface-2: #1a2440;
    
    --surface-3: #24304f;
    --stamp-ink: #0d1220;
    --stamp-shadow: rgba(0, 0, 0, .5);
}


html[data-theme="light"] .cmp-hero-stage {
    --surface-3: #24304f;
    --stamp-ink: #0d1220;
    --stamp-shadow: rgba(0, 0, 0, .5);
}
html[data-theme="light"] .cmp-row.cmp-row-art {
    --surface-3: #24304f;
}

html[data-theme="light"] .cmp-g-stage {
    --surface-3: #24304f;
    --stamp-ink: #0d1220;
    --stamp-shadow: rgba(0, 0, 0, .5);
}
html[data-theme="light"] .cmp-g-row.cmp-g-plat-row {
    --surface-3: #24304f;
}




html[data-theme="light"] .badge-ps5 { box-shadow: inset 0 0 0 1px var(--border); }
html[data-theme="light"] .stat-platform-ps5 { box-shadow: inset 0 0 0 1px var(--border); }


html[data-theme="light"] .tp-rank.r2,
html[data-theme="light"] .tlb-rank.r2,
html[data-theme="light"] .home-rank-2,
html[data-theme="light"] .ms-tr-ord.c-silver,
html[data-theme="light"] .lb-row:not(.lb-art) .lb-rank-2,
html[data-theme="light"] .lb-ml.ml-silver { color: #8a929c; }


html[data-theme="light"] .tp-rank.r1,
html[data-theme="light"] .tlb-rank.r1,
html[data-theme="light"] .home-rank-1,
html[data-theme="light"] .ms-tr-ord.c-gold,
html[data-theme="light"] .lb-row:not(.lb-art) .lb-rank-1,
html[data-theme="light"] .lb-ml.ml-gold { color: #b8860b; }

html[data-theme="light"] .lb-row.lb-top-1:not(.lb-art) .lb-avatar,
html[data-theme="light"] .lb-row.lb-top-1:not(.lb-art) .lb-avatar-blank { box-shadow: 0 0 0 2px #b8860b; }


html[data-theme="light"] #homeLogo img { visibility: hidden; }
html[data-theme="light"] #homeLogo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand-gradient);
    -webkit-mask: url(/images/logo.png) center / contain no-repeat;
    mask: url(/images/logo.png) center / contain no-repeat;
    pointer-events: none;
}


html[data-theme="light"] .tp-score-big b,
html[data-theme="light"] .review-platinum-badge {
    background: linear-gradient(90deg, #4f6f8f, #6d92b4 45%, #547b9d 72%, #4b6c8c);
    -webkit-background-clip: text;
    background-clip: text;
}


.mm-page { width: 100%; margin: 28px 0 64px; }


.mm-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; min-height: var(--profile-pill-height);
    margin: 26px 0 0; padding: 40px 44px;
    border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
}
.mm-hero-art { position: absolute; inset: 0; background: url("/images/matchmaking-hero.jpg") center 42% / cover no-repeat; }
.mm-hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 17, 0.93) 0%, rgba(8, 12, 17, 0.72) 38%, rgba(8, 12, 17, 0.18) 72%, rgba(8, 12, 17, 0.38) 100%), linear-gradient(0deg, rgba(8, 12, 17, 0.55), transparent 45%); }
:where(html[data-theme="light"]) .mm-hero-scrim { background: linear-gradient(90deg, rgba(11,13,22,.93) 0%, rgba(11,13,22,.72) 38%, rgba(11,13,22,.18) 72%, rgba(11,13,22,.38) 100%), linear-gradient(0deg, rgba(11,13,22,.55), transparent 45%); }

@media (max-width: 760px) {
    .mm-hero-scrim {
        background:
            linear-gradient(90deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .74) 40%, rgba(4, 6, 10, .48) 75%, rgba(4, 6, 10, .52) 100%),
            linear-gradient(0deg, rgba(4, 6, 10, .5), rgba(4, 6, 10, 0) 45%);
    }
}
@media (min-width: 761px) {
    .mm-hero-scrim {
        background:
            linear-gradient(90deg, rgba(4, 6, 10, .86) 0%, rgba(4, 6, 10, .6) 400px, rgba(4, 6, 10, .14) 680px, rgba(4, 6, 10, 0) 900px),
            linear-gradient(0deg, rgba(4, 6, 10, .4) 0%, rgba(4, 6, 10, 0) 30%);
    }
    .mm-hero-copy h1 { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55)); }
}
.mm-hero-copy { position: relative; max-width: 540px; }

.mm-hero-copy h1 {
    margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.05;
    letter-spacing: -.035em;
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mm-hero-copy p { margin: 14px 0 0; max-width: 440px; color: var(--text-2); font-size: 15px; line-height: 1.6; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.mm-hero-actions { display: flex; gap: 10px; margin-top: 22px; }
.mm-hero .btn-ghost { background: rgba(8, 12, 17, 0.5); color: var(--text); border-color: rgba(244,246,250,.25); }
:where(html[data-theme="light"]) .mm-hero .btn-ghost { background: rgba(11,13,22,.5); }
.mm-hero .btn-ghost:hover { border-color: rgba(244,246,250,.55); }

.mm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 26px; margin-top: 22px; align-items: start; }
.mm-main { min-width: 0; }


.mm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.mm-tabs button { position: relative; padding: 10px 14px 12px; border: 0; background: transparent; color: var(--text-3); font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.mm-tabs button:hover { color: var(--text-2); }
.mm-tabs button.active { color: var(--text); }
.mm-tabs button.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand-gradient); }

.premium-plate-inline { margin-left: 5px; }

.mm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 12px; }
.mm-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }

.mm-filters[hidden] { display: none; }
.mm-filter { display: inline-flex; min-width: 0; }
.mm-filters select, .mm-filters input {
    min-height: 34px; box-sizing: border-box;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text-2);
    padding: 0 26px 0 10px; font: inherit; font-size: 12px;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2397a0b3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 9px center;
    cursor: pointer;
}
.mm-filters input { width: 116px; padding-right: 10px; background-image: none; cursor: text; }
.mm-filters select:focus, .mm-filters input:focus { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-filters select:first-child { max-width: 210px; }
.mm-filter.is-disabled select { opacity: .45; cursor: default; }
.mm-clear-filters { min-height: 34px; border: 0; background: transparent; color: var(--text-muted); padding: 0 6px; font: inherit; font-size: 12px; cursor: pointer; }
.mm-clear-filters:hover { color: var(--text-2); }
.mm-clear-filters:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-count { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.mm-muted { color: var(--text-muted); font-size: 12.5px; }


.mm-board { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.mm-day { display: flex; align-items: baseline; gap: 9px; padding: 13px 16px 10px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.mm-day h2 { margin: 0; font-size: 14px; font-weight: 700; }
.mm-day span { color: var(--text-muted); font-size: 11.5px; }
.mm-day small { margin-left: auto; color: var(--text-muted); font-size: 11px; }
.mm-day:not(:first-child) { border-top: 1px solid var(--border); }

.mm-row { display: grid; grid-template-columns: 96px 52px minmax(0, 1fr) 78px 104px auto; gap: 13px; align-items: center; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.mm-row:last-child { border-bottom: 0; }
.mm-row:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.mm-when { font-variant-numeric: tabular-nums; }
.mm-when b { display: block; color: var(--text); font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.mm-when small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10.5px; font-weight: 500; }
.mm-when i { display: block; margin-bottom: 2px; color: var(--text-muted); font-size: 10.5px; font-style: normal; font-weight: 600; }
.mm-row.joined .mm-when b { color: var(--success); }
.mm-art { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.mm-body { min-width: 0; }
.mm-title-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mm-title-line > b, .mm-title { display: block; min-width: 0; color: var(--text); font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-title { max-width: 100%; border: 0; background: transparent; padding: 0; font-family: inherit; text-align: left; cursor: pointer; }
.mm-title:hover { color: var(--brand-2); }
.mm-title:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-title-line .platform-badge { flex-shrink: 0; margin-bottom: 0; }
.mm-meta { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-meta em { color: var(--text-3); font-style: normal; }

.mm-row-note { display: block; margin-top: 2px; color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-spots, .mm-mic { color: var(--text-3); font-size: 12px; }
.mm-spots b { color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.mm-spots.full b { color: var(--gold); }
.mm-spots small { display: block; margin-top: 1px; color: var(--success); font-size: 10.5px; font-weight: 600; }
.mm-act { display: grid; justify-items: end; gap: 5px; min-width: 96px; }
.mm-safety { display: flex; gap: 9px; }
.mm-safety button { border: 0; background: transparent; color: var(--text-muted); padding: 1px 0; font: inherit; font-size: 10.5px; cursor: pointer; }
.mm-safety button:hover { color: var(--text-2); }
.mm-safety button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }


.mm-row.partner { box-shadow: inset 3px 0 color-mix(in srgb, var(--ps-purple) 70%, transparent); }
.mm-row.partner .mm-when b { color: var(--ps-purple); font-size: 12px; line-height: 1.3; white-space: normal; }

.mm-row.mm-team { box-shadow: inset 3px 0 var(--tc); }
.mm-row.mm-team .tm-tag { margin-right: 0; flex-shrink: 0; }

.fy-sec + .fy-sec { border-top: 1px solid var(--border); }
.fy-head { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 16px 18px 4px; font-size: 14px; font-weight: 700; color: var(--text); }
.fy-head span { color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.fy-row { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 14px 18px; }
.fy-row + .fy-row { border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.fy-art { position: relative; width: 148px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--icon-plate); }
.fy-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fy-art .fy-avatar { position: absolute; left: 7px; bottom: 7px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); object-fit: cover; }
.fy-art .fy-avatars { position: absolute; left: 7px; bottom: 7px; display: flex; }
.fy-art .fy-avatars img { width: 28px; height: 28px; margin-right: -9px; border-radius: 50%; border: 2px solid var(--surface); object-fit: cover; }
.fy-body { min-width: 0; }
.fy-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.fy-title b, .fy-title .mm-title { display: block; min-width: 0; color: var(--text); font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fy-title .platform-badge { flex-shrink: 0; margin-bottom: 0; }
.fy-title .tm-tag { flex-shrink: 0; margin-right: 0; }
.fy-meta { margin-top: 3px; color: var(--text-3); font-size: 12.5px; }
.fy-meta strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.fy-meta em { color: var(--text-2); font-style: normal; font-weight: 600; }
.fy-trophies { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 10px; }
.fy-icons { display: flex; gap: 5px; }
.fy-tro { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 7px; overflow: hidden; background: var(--icon-plate); }
.fy-tro img { display: block; width: 100%; height: 100%; object-fit: cover; }

.fy-tro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--g); }
.fy-tro.bronze { --g: #c0875a; }
.fy-tro.silver { --g: #b9c3cc; }
.fy-tro.gold { --g: var(--gold); }
.fy-tro.platinum { --g: var(--platinum-gradient); }
.fy-more { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 700; }
.fy-tro-label { order: -1; color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.fy-tro-label b { color: var(--text); font-weight: 700; }
.fy-why { margin-top: 8px; color: var(--text-muted); font-size: 12px; }
.fy-row > .mm-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.fy-row .mm-safety { gap: 12px; }
.fy-row .mm-safety button { padding: 0; font-size: 11.5px; }
.fy-row .mm-safety button:hover { text-decoration: underline; }

.fy-row.partner { box-shadow: inset 3px 0 color-mix(in srgb, var(--ps-purple) 70%, transparent); }
.fy-row.mm-team { box-shadow: inset 3px 0 var(--tc); }

.fy-group-toggle { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fy-group-toggle:focus-visible, .fy-link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.fy-group-list { grid-column: 2 / -1; margin: -4px 0 0; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.fy-group-list[hidden] { display: none; }
.fy-group-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent); color: var(--text-3); font-size: 12.5px; }
.fy-group-list li:last-child { border-bottom: 0; }
.fy-group-list img, .fy-face { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.fy-face { background: var(--surface-2); }
.fy-group-list li > span { min-width: 0; }
.fy-group-list b { display: block; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fy-group-list small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 11.5px; }


.fy-empty { padding: 22px 22px 8px; }
.fy-empty h2 { margin: 0; color: var(--text); font-size: 17px; font-weight: 700; }
.fy-empty > p { max-width: 560px; margin: 6px 0 0; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.fy-own-head { margin: 22px 0 2px; color: var(--text); font-size: 13px; font-weight: 700; }
.fy-own { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.fy-own-head + .fy-own { border-top: 0; }
.fy-own .fy-art { width: 112px; }
.fy-own .fy-meta { margin-top: 2px; }
.fy-own-act { display: flex; gap: 8px; }
.fy-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 -22px; padding: 14px 22px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12.5px; }
.fy-note b { color: var(--text); font-weight: 600; }
.fy-note .btn { flex-shrink: 0; }
.fy-empty > p + .fy-note { margin-top: 22px; }
.fy-link { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
    
    .fy-head { padding: 14px 14px 2px; }
    .fy-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 14px; }
    .fy-row .fy-art { width: 96px; }
    .fy-row > .mm-act { grid-row: auto; grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; align-self: auto; }
    .fy-row > .mm-act > .btn { order: 2; margin-left: auto; }
    .fy-row > .mm-act:empty { display: none; }
    .fy-tro, .fy-more { width: 30px; height: 30px; }
    .fy-empty { padding: 18px 14px 6px; }
    .fy-own { grid-template-columns: 84px minmax(0, 1fr); }
    .fy-own .fy-art { width: 84px; }
    .fy-own-act { grid-column: 1 / -1; }
    .fy-own-act .btn { flex: 1; }
    .fy-note { flex-direction: column; align-items: flex-start; margin: 0 -14px; padding: 14px; }
    .fy-group-list { grid-column: 1 / -1; }
    .fy-group-list li { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .fy-group-list li .mm-safety { grid-column: 2 / -1; }
}

.mm-board-foot { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.mm-board-foot.is-error { color: var(--danger-hover); }

.mm-state {
    display: grid; justify-items: center; gap: 7px;
    box-sizing: border-box; padding: 42px 22px;
    border: 1px dashed var(--border); border-radius: var(--radius-lg);
    color: var(--text-3); text-align: center;
}

.mm-teaser { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; pointer-events: none; }
.mm-teaser-board { display: grid; }
.mm-teaser-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 104px; gap: 13px; align-items: center; padding: 16px; border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.mm-teaser-row:last-child { border-bottom: 0; }
.mm-teaser-art { width: 52px; height: 52px; border-radius: 8px; background: var(--surface-2); }
.mm-teaser-lines { display: grid; gap: 8px; }
.mm-teaser-lines i { height: 10px; border-radius: var(--radius-full); background: var(--surface-2); }
.mm-teaser-lines i:first-child { width: 46%; }
.mm-teaser-lines i:last-child { width: 68%; height: 8px; }
.mm-teaser-bar { height: 28px; border-radius: var(--radius-full); background: var(--surface-2); }
.mm-teaser-veil { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 22px; text-align: center; background: var(--surface); }
.mm-teaser-veil h2 { margin: 0; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.mm-teaser-veil p { margin: 0; max-width: 380px; color: var(--text-3); font-size: 12.5px; line-height: 1.55; }
.mm-gold { background: linear-gradient(90deg, #b97f1f, var(--gold) 55%, #f6d38a); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports ((-webkit-backdrop-filter: blur(7px)) or (backdrop-filter: blur(7px))) {
    .mm-teaser-veil { background: color-mix(in srgb, var(--surface) 58%, transparent); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
}

.mm-state strong { color: var(--text); font-size: 15px; font-weight: 700; }
.mm-state span { max-width: 460px; font-size: 12.5px; line-height: 1.55; }
.mm-state .btn { margin-top: 7px; }
.mm-state.is-error { border-style: solid; }


.mm-rail { display: grid; gap: 14px; min-width: 0; }
.mm-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 16px; }
.mm-card h2 { margin: 0 0 12px; color: var(--text); font-size: 13.5px; font-weight: 700; }
.mm-card h2 small { margin-left: 5px; color: var(--text-muted); font-size: 11.5px; font-weight: 500; }
.mm-card-next { position: relative; overflow: hidden; }
.mm-next-bg { position: absolute; inset: 0; background-position: center; background-size: cover; filter: saturate(1.06); }
.mm-next-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 6, 10, .88) 0%, rgba(4, 6, 10, .7) 55%, rgba(4, 6, 10, .5) 100%); }
:where(html[data-theme="light"]) .mm-next-scrim { background: linear-gradient(90deg, rgba(4, 6, 10, .88) 0%, rgba(4, 6, 10, .7) 55%, rgba(4, 6, 10, .5) 100%); }
.mm-card-next .mm-next b, .mm-card-next .mm-next span { text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.mm-card-next > h2, .mm-card-next .mm-next { position: relative; }
.mm-next { display: flex; align-items: center; gap: 11px; }
.mm-next img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.mm-next div { flex: 1; min-width: 0; }
.mm-next b { display: block; color: var(--text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-next span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11.5px; }

.mm-req { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.mm-req:first-of-type { border-top: 0; padding-top: 0; }
.mm-req p { flex: 1; min-width: 0; margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.45; }
.mm-req p b { color: var(--text); font-weight: 700; }
.mm-req-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.mm-req-actions .btn { min-height: 28px; padding: 4px 10px; font-size: 11px; }

.mm-listing { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.mm-listing:first-of-type { border-top: 0; padding-top: 0; }
.mm-listing img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.mm-listing p { flex: 1; min-width: 0; margin: 0; color: var(--text-2); font-size: 12px; }
.mm-status { display: block; margin-top: 1px; color: var(--text-muted); font-size: 11px; }
.mm-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.mm-link { border: 0; background: transparent; color: var(--text-muted); padding: 0; font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mm-link:hover { color: var(--text-2); }
.mm-link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-card > p.mm-muted { margin: 0; font-size: 12px; }

.mm-standing { color: var(--text-muted); font-size: 11.5px; line-height: 1.8; }
.mm-standing select {
    min-height: 28px; margin: 0 4px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-2); color: var(--text-2);
    padding: 0 24px 0 8px; font: inherit; font-size: 11.5px;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2397a0b3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 8px center;
    cursor: pointer;
}
.mm-standing select:focus { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.mm-standing p { margin: 12px 0 0; }
.mm-blocks { display: grid; gap: 8px; margin-top: 10px; }
.mm-blocks div { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 12px; }
.mm-blocks img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.mm-blocks span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.mm-alert-panel {
    margin: 0 0 18px; padding: 17px 18px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface);
    animation: mm-panel-in .18s ease-out;
}

.mm-alert-panel.is-leaving { animation: mm-panel-out .18s ease-in forwards; }
@keyframes mm-panel-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
@keyframes mm-panel-out {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateY(-6px); }
}
.mm-alert-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.mm-alert-head h2 { margin: 0; color: var(--text); font-size: 16px; font-weight: 700; }
.mm-alert-head > button { border: 0; background: transparent; color: var(--text-muted); padding: 0 4px; font: inherit; font-size: 22px; cursor: pointer; }
.mm-alert-head > button:hover { color: var(--text); }
.mm-alert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; background: var(--border); }
.mm-alert-grid > label { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 13px; background: var(--surface); cursor: pointer; }
.mm-alert-grid span { min-width: 0; }
.mm-alert-grid strong { display: block; color: var(--text-2); font-size: 12px; font-weight: 600; }
.mm-alert-grid small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 10.5px; line-height: 1.4; }
.mm-alert-grid input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--brand-1); }
.mm-alert-grid input:disabled { opacity: .35; cursor: not-allowed; }

.mm-lock { display: none; margin-left: 5px; color: var(--text-muted); vertical-align: -1px; }
.mm-alert-grid > label.is-locked { background: color-mix(in srgb, var(--bg) 70%, var(--surface)); box-shadow: inset 0 1px 2px rgba(0,0,0,.28); cursor: default; }
.mm-alert-grid > label.is-locked .mm-lock { display: inline-block; }
.mm-alert-grid > label.is-locked strong, .mm-alert-grid > label.is-locked small { color: var(--text-muted); }
.mm-alert-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 14px; }
.mm-alert-foot span { margin-right: auto; min-height: 14px; color: var(--text-muted); font-size: 11.5px; }


.mm-composer {
    margin: 0 0 18px; padding: 20px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface);
    animation: mm-panel-in .18s ease-out;
}
.mm-composer.is-leaving { animation: mm-panel-out .18s ease-in forwards; }
.mm-composer-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.mm-composer-head h2 { margin: 0; color: var(--text); font-size: 19px; font-weight: 700; }
.mm-note { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.mm-close { width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer; }
.mm-close:hover { border-color: var(--brand-1); color: var(--text); }

.mm-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
.mm-form-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-content: start; }

.mm-form-grid > *, .mm-form-detail > * { min-width: 0; }
.mm-field { display: grid; gap: 6px; align-content: start; color: var(--text-3); font-size: 12px; font-weight: 600; }

.mm-field[hidden] { display: none; }
.mm-field-wide { grid-column: span 2; }
.mm-field input, .mm-field select, .mm-field textarea {
    width: 100%; min-width: 0; min-height: 38px; box-sizing: border-box;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); padding: 0 11px;
    font: inherit; font-size: 13px; font-weight: 500;
}
.mm-field select {
    appearance: none; -webkit-appearance: none; padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2397a0b3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
    cursor: pointer;
}

.mm-field textarea { padding-top: 10px; padding-bottom: 10px; line-height: 1.45; min-height: 72px; max-height: 40vh; resize: vertical; overflow-y: auto; }
.mm-field input:focus, .mm-field select:focus, .mm-field textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-field select:disabled, .mm-field input:disabled { opacity: .45; cursor: default; }

.mm-static-value { min-height: 38px; display: flex; align-items: center; color: var(--text-2); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }

.mm-check-field { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 38px; color: var(--text-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.mm-check-field[hidden] { display: none; }
.mm-check-field input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--brand-1); }
.mm-check-field input:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }


.mm-game-field { gap: 8px; grid-template-rows: auto auto minmax(0, 1fr); }

.mm-game-scroll { position: relative; min-height: 168px; }
.mm-game-scroll:has(.mm-game-list.is-locked) { min-height: 0; }
.mm-game-list { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 6px; padding: 4px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.mm-game-list > p { margin: 8px; }
.mm-game-list.is-locked { position: static; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 901px) {
    .mm-form-grid:has(.mm-game-list.is-locked) { grid-template-columns: minmax(0, 1fr); }
    .mm-form-grid:has(.mm-game-list.is-locked) .mm-form-detail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mm-game-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; gap: 1px 9px; align-items: center; padding: 7px 9px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mm-game-card:hover { background: var(--surface-2); }
.mm-game-card:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-game-card:disabled { cursor: default; }
.mm-game-card.is-selected { border-color: color-mix(in srgb, var(--brand-1) 55%, var(--border)); background: color-mix(in srgb, var(--brand-1) 12%, transparent); }
.mm-game-card img { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.mm-game-name { color: var(--text); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-game-facts { color: var(--text-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-window-list { display: flex; flex-wrap: wrap; gap: 7px; }
.mm-window-item { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); font-size: 11.5px; }
.mm-window-item button { border: 0; background: transparent; color: var(--text-muted); padding: 0; font: inherit; cursor: pointer; }
.mm-window-item button:hover { color: var(--accent-hover); }


.mm-when-field { display: grid; gap: 10px; }
.mm-when-field[hidden] { display: none; }
.mm-when-field > span { color: var(--text-3); font-size: 12px; font-weight: 600; }
.mm-when-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mm-when-pick {
    min-height: 38px; padding: 0 8px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text-2);
    font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.mm-when-pick:hover { border-color: var(--border-hover); color: var(--text); }
.mm-when-pick[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--brand-1) 55%, var(--border));
    background: color-mix(in srgb, var(--brand-1) 12%, transparent);
    color: var(--text);
}
.mm-when-pick:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-when-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.mm-when-row[hidden] { display: none; }
.mm-when-field .mm-check-field { align-self: start; min-height: 0; }
.mm-when-field .mm-note { margin-top: -4px; }
.mm-when-field .mm-note[hidden] { display: none; }


.mm-when-days { margin-top: 16px; }
.mm-when-summary { margin: 0 0 9px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.mm-when-summary.is-error { color: var(--accent-hover); }

@media (max-width: 560px) {
    .mm-when-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) {
    .mm-form-grid:has(.mm-game-list.is-locked) .mm-when-field:not([hidden]) { grid-row: span 3; }
}
.mm-trophy-picker { margin: 18px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.mm-trophy-picker legend { padding: 0 7px; color: var(--text); font-size: 13px; font-weight: 700; }
.mm-trophy-picker legend small { margin-left: 5px; color: var(--text-muted); font-weight: 500; }

.mm-trophy-filter { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 0 0 9px; color: var(--text-2); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.mm-trophy-filter input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--brand-1); }
.mm-trophy-filter input:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
#mmTrophyChoices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 220px; overflow: auto; }
.mm-trophy-group { grid-column: 1 / -1; margin: 8px 0 1px; color: var(--text-3); font-size: 11.5px; font-weight: 600; }
.mm-trophy-group:first-child { margin-top: 0; }
.mm-trophy-choice { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 12px; cursor: pointer; }
.mm-trophy-choice:hover { background: var(--surface-2); }
.mm-trophy-choice.is-online { color: var(--brand-3); }
.mm-trophy-choice.is-earned { opacity: .48; }
.mm-trophy-choice img { width: 28px; height: 28px; border-radius: 5px; object-fit: cover; }
.mm-trophy-choice input { accent-color: var(--brand-1); }

.mm-trophy-choice span { min-width: 0; }
.mm-trophy-choice b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-trophy-choice small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.mm-form-foot span { margin-right: auto; color: var(--accent-hover); font-size: 12.5px; }


.mm-session-detail { margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }

.mm-session-loading { position: relative; }
.mm-session-loading > .mm-close { position: absolute; top: 14px; right: 14px; z-index: 1; }
.mm-session-loading > .mm-state { padding-left: 60px; padding-right: 60px; }
.mm-session-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.mm-session-head > img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.mm-session-head h2 { margin: 0; color: var(--text); font-size: 20px; font-weight: 700; }
.mm-session-head p { margin: 4px 0 0; color: var(--text-3); font-size: 12px; }
.mm-session-head-actions { align-self: start; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

.mm-session-state { padding: 12px 20px; border-bottom: 1px solid var(--border); border-left: 2px solid var(--brand-2); background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.mm-session-state strong { display: block; color: var(--text); font-size: 13px; font-weight: 700; }
.mm-session-state span { display: block; margin-top: 4px; color: var(--text-3); font-size: 12px; line-height: 1.55; }
.mm-session-pending { color: var(--gold); font-size: 11px; font-weight: 600; }
.mm-checkin { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--success) 6%, var(--surface)); }
.mm-checkin small { display: block; color: var(--text-muted); font-size: 10.5px; }
.mm-checkin strong { display: block; margin-top: 3px; color: var(--text); font-size: 12.5px; font-weight: 700; }
.mm-signal-copy { flex: 0 0 160px; }
.mm-signal-copy > span { display: block; max-width: 180px; margin-top: 3px; color: var(--text-muted); font-size: 10.5px; line-height: 1.4; }
.mm-signal-controls { display: grid; justify-items: end; gap: 8px; min-width: 0; }
.mm-signal-select-control { display: flex; justify-content: flex-end; width: 100%; }
.mm-signal-select-control select {
    min-height: 34px; box-sizing: border-box; width: min(200px, 100%);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg); color: var(--text); padding: 0 28px 0 10px;
    font: inherit; font-size: 11px; font-weight: 600;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2397a0b3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    cursor: pointer;
}
.mm-signal-select-control select:focus { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-signal-note-control { display: flex; justify-content: flex-end; gap: 7px; width: 100%; }
.mm-signal-note-control input { width: min(360px, 100%); min-height: 34px; box-sizing: border-box; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); padding: 0 10px; font: inherit; font-size: 11px; }
.mm-signal-note-control input:focus { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-signal-note-control [data-mm-update-signal]:disabled { opacity: .45; cursor: default; }
.mm-session-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 22px; padding: 20px; }
.mm-session-section h3 { margin: 0 0 11px; color: var(--text); font-size: 13px; font-weight: 700; }
.mm-facts { margin: 0 0 16px; color: var(--text-2); font-size: 12.5px; line-height: 1.7; }
.mm-session-members, .mm-session-targets { display: grid; gap: 7px; }
.mm-session-member, .mm-session-target { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); background: color-mix(in srgb, var(--surface-2) 42%, transparent); }
.mm-session-member { width: 100%; }

.mm-session-member.is-ready { border-color: var(--earned-border); background: var(--earned-bg); }
.mm-session-member.is-pending { background: color-mix(in srgb, var(--gold) 9%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 30%, var(--border)); }

.mm-session-member:hover { border-color: color-mix(in srgb, var(--brand-1) 45%, var(--border)); }
.mm-member-profile { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; padding: 0; text-align: left; font: inherit; cursor: pointer; }
.mm-member-profile:disabled { cursor: default; }
.mm-member-remove { border: 0; background: transparent; color: var(--text-muted); padding: 5px; font: inherit; font-size: 10.5px; cursor: pointer; }
.mm-member-remove:hover { color: var(--accent-hover); }
.mm-member-copy { flex: 0 0 auto; border: 0; background: transparent; color: var(--brand-2); padding: 5px; font: inherit; font-size: 10.5px; cursor: pointer; }
.mm-member-copy:hover { color: var(--text); }
.mm-member-safety { flex: 0 0 auto; border: 0; background: transparent; color: var(--text-muted); padding: 5px 2px; font: inherit; font-size: 10px; cursor: pointer; }
.mm-member-safety:hover { color: var(--accent-hover); }
.mm-member-copy:focus-visible, .mm-member-remove:focus-visible,
.mm-member-profile:focus-visible, .mm-member-safety:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.mm-session-handoff { margin: -4px 0 9px; color: var(--text-muted); font-size: 11px; }
.mm-session-notes { margin: 0 0 16px; padding: 12px; border-left: 2px solid var(--brand-2); background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.mm-session-notes small { color: var(--text-muted); font-size: 11px; }
.mm-session-notes p { margin: 5px 0 0; color: var(--text-2); font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.mm-session-member img, .mm-session-target img { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.mm-session-member img { border-radius: 50%; }

.mm-session-target.is-earned { border-color: var(--earned-border); background: var(--earned-bg); }

.mm-session-target .mm-target-type { width: 22px; height: 22px; flex: 0 0 auto; margin-left: auto; border-radius: 0; object-fit: contain; }

.mm-session-member .mm-member-flag { width: 15px; height: 11px; border-radius: 2px; object-fit: cover; vertical-align: -1px; }
.mm-session-member span, .mm-session-target span { min-width: 0; }
.mm-session-member strong, .mm-session-target strong { display: block; color: var(--text); font-size: 12px; font-weight: 600; }
.mm-session-member small, .mm-session-target small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10.5px; }
.mm-member-signal-note { display: block; max-width: 390px; margin-top: 5px; color: var(--text-2); font-size: 10.5px; font-style: normal; line-height: 1.4; overflow-wrap: anywhere; }
.mm-session-feedback { margin: 0 20px 20px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.mm-session-feedback h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; }
.mm-session-feedback > p { margin: 5px 0 14px; color: var(--text-3); font-size: 12px; }
.mm-feedback-question { margin: 14px 0 0; padding: 0; border: 0; }
.mm-feedback-question legend { margin-bottom: 7px; color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.mm-feedback-options { display: flex; flex-wrap: wrap; gap: 7px; }
.mm-feedback-options label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); font-size: 11.5px; cursor: pointer; }
.mm-feedback-options input { accent-color: var(--brand-1); }
.mm-feedback-trophies { display: flex; flex-wrap: wrap; gap: 7px; }
.mm-feedback-trophies label { opacity: .5; }
.mm-feedback-trophies label.is-earned { opacity: 1; }
.mm-feedback-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.mm-feedback-foot span { margin-right: auto; color: var(--text-muted); font-size: 11.5px; }


.mm-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 5px; }
.mm-modal-grid label { display: grid; gap: 6px; }
.mm-modal-grid label:last-child { grid-column: 1 / -1; }
.mm-modal-grid .field { width: 100%; box-sizing: border-box; }
.mm-report-block { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--text-2); font-size: 12px; cursor: pointer; }
.mm-report-block input { accent-color: var(--brand-1); }

@media (max-width: 900px) {
    .mm-layout { grid-template-columns: minmax(0, 1fr); }
    .mm-session-grid { grid-template-columns: minmax(0, 1fr); }
    
    .mm-form-grid { grid-template-columns: minmax(0, 1fr); }
    .mm-game-scroll { min-height: 0; }
    .mm-game-list { position: static; max-height: 260px; }
    .mm-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 12px; padding: 12px 14px; }
    .mm-art { grid-row: 1 / 3; width: 44px; height: 44px; }
    .mm-when { grid-column: 2; display: flex; align-items: baseline; gap: 7px; }
    .mm-when b { font-size: 14.5px; }
    .mm-when i, .mm-when small { margin: 0; }
    .mm-body { grid-column: 2; }
    .mm-spots, .mm-mic { display: none; }
    .mm-act { grid-row: 1 / 3; align-self: center; }
    
    .mm-board:not(.for-you) .mm-row > .mm-act { grid-column: 3; }
    .mm-row.partner .mm-when b { font-size: 11.5px; }
}
@media (max-width: 560px) {
    .mm-page { margin-top: 12px; }
    .mm-hero { min-height: 280px; margin-top: 16px; padding: 26px 20px; }
    .mm-hero-actions .btn { flex: 1; }
    .mm-toolbar { align-items: stretch; flex-direction: column; }
    .mm-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .mm-filters select, .mm-filters input, .mm-filter, .mm-filter select { width: 100%; max-width: none; }
    .mm-filters select:first-child { grid-column: 1 / -1; }
    .mm-clear-filters { justify-self: start; }
    .mm-tabs { overflow-x: auto; scrollbar-width: none; }
    .mm-tabs::-webkit-scrollbar { display: none; }
    .mm-alert-grid { grid-template-columns: 1fr; }
    .mm-composer { width: 100%; padding: 16px 14px; }
    .mm-form-grid { grid-template-columns: 1fr; }
    .mm-form-detail { grid-template-columns: 1fr; }
    
    .mm-trophy-picker { min-width: 0; }
    .mm-trophy-choice { min-width: 0; }
    
    .mm-form-foot { flex-direction: column; align-items: stretch; }
    .mm-form-foot .btn { width: 100%; }
    .mm-field-wide { grid-column: auto; }
    .mm-game-list { grid-template-columns: 1fr; max-height: 220px; }
    .mm-teaser-row { grid-template-columns: 44px minmax(0, 1fr); }
    .mm-teaser-bar { display: none; }
    #mmTrophyChoices { grid-template-columns: 1fr; }
    .mm-session-head { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 15px; }
    .mm-session-head > img { width: 48px; height: 48px; }
    .mm-session-head h2 { font-size: 17px; }
    .mm-session-head-actions { grid-column: 1 / -1; justify-self: end; }
    .mm-session-grid { padding: 15px; }
    .mm-session-feedback { margin: 0 15px 15px; }
    .mm-session-member { flex-wrap: wrap; }
    .mm-checkin { align-items: stretch; flex-direction: column; }
    .mm-signal-copy { flex-basis: auto; }
    .mm-signal-controls { justify-items: stretch; }
    .mm-signal-select-control { justify-content: stretch; }
    .mm-signal-select-control select { width: 100%; }
    .mm-signal-note-control { align-items: stretch; flex-direction: column; }
    .mm-signal-note-control input { width: 100%; }
    .mm-modal-grid { grid-template-columns: 1fr; }
    .mm-modal-grid label:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .mm-alert-panel, .mm-alert-panel.is-leaving,
    .mm-composer, .mm-composer.is-leaving { animation: none; }
}


.team-page { width: 100%; margin: 28px 0 64px; }


.tc-gold { --tc: #e8a93c; }
.tc-blue { --tc: #86d7ec; }
.tc-green { --tc: #46c99b; }
.tc-purple { --tc: #a5a3ff; }
.tc-rose { --tc: #ef7d9d; }
.tc-ice { --tc: #c4ecf8; }

html[data-theme="light"] .tc-gold { --tc: #8a5f00; }
html[data-theme="light"] .tc-blue { --tc: #1c7291; }
html[data-theme="light"] .tc-green { --tc: #157a54; }
html[data-theme="light"] .tc-purple { --tc: #5b57d6; }
html[data-theme="light"] .tc-rose { --tc: #ba3a5f; }
html[data-theme="light"] .tc-ice { --tc: #29708a; }

.tm-tag { margin-right: 6px; vertical-align: middle; background: var(--tc, var(--surface-3)); color: var(--stamp-ink); letter-spacing: .06em; text-transform: uppercase; }

.tm-policy-open { color: var(--success); }
.tm-policy-approval { color: var(--gold); }
.tm-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.tm-avatar-blank { background: var(--surface-2); }



.th-hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-rows: 1fr auto; min-height: var(--profile-pill-height);
    margin: 26px 0 0;
    border: 1px solid var(--border); border-radius: 20px; background: var(--surface);
}
.th-hero-art { position: absolute; inset: 0; background: url("/images/teams-hero.jpg") center 30% / cover no-repeat; }
.th-hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 17, 0.93) 0%, rgba(8, 12, 17, 0.72) 38%, rgba(8, 12, 17, 0.18) 72%, rgba(8, 12, 17, 0.38) 100%), linear-gradient(0deg, rgba(8, 12, 17, 0.55), transparent 45%); }
:where(html[data-theme="light"]) .th-hero-scrim { background: linear-gradient(90deg, rgba(11,13,22,.93) 0%, rgba(11,13,22,.72) 38%, rgba(11,13,22,.18) 72%, rgba(11,13,22,.38) 100%), linear-gradient(0deg, rgba(11,13,22,.55), transparent 45%); }

@media (min-width: 761px) {
    .th-hero-scrim {
        background:
            linear-gradient(90deg, rgba(4, 6, 10, .86) 0%, rgba(4, 6, 10, .6) 400px, rgba(4, 6, 10, .14) 680px, rgba(4, 6, 10, 0) 900px),
            linear-gradient(0deg, rgba(4, 6, 10, .4) 0%, rgba(4, 6, 10, 0) 30%);
    }
}
.th-hero-copy { position: relative; z-index: 1; align-self: center; max-width: 540px; padding: 40px 44px; }
.th-eyebrow { display: block; margin-bottom: 8px; color: var(--brand-2); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.th-hero h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.th-hero h1 em { font-style: normal; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.th-hero p { margin: 14px 0 0; max-width: 440px; color: var(--text-2); font-size: 15px; line-height: 1.6; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.th-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }


.ch-dock {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(25, 30, 36, 0.38), rgba(15, 20, 25, 0.52));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    backdrop-filter: blur(22px) saturate(1.5);
}
:where(html[data-theme="light"]) .ch-dock { background: linear-gradient(180deg, rgba(23,32,58,.38), rgba(11,16,30,.52)); }
.ch-dock:empty { display: none; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ch-dock { background: rgba(4, 6, 10, 0.86); }
    :where(html[data-theme="light"]) .ch-dock { background: rgba(5,9,19,.86); }
}
.ch-cell { position: relative; height: 86px; min-width: 0; overflow: hidden; }
.ch-cell + .ch-cell { border-left: 1px solid rgba(255,255,255,.07); }
.ch-k { position: absolute; top: 11px; left: 18px; right: 18px; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(224, 227, 232, 0.6); }
:where(html[data-theme="light"]) .ch-k { color: rgba(219,227,244,.6); }
.ch-slides { position: absolute; inset: 30px 18px 0; }
.ch-cell.has-dots .ch-slides { right: 32px; }
.ch-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1); text-decoration: none; }
.ch-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ch-slide.is-exiting { opacity: 0; transform: translateY(-14px); }
.ch-slide b { max-width: 100%; overflow: hidden; color: #f4f7ff; font-size: 13.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.ch-slide small { color: rgba(224, 227, 232, 0.62); font-size: 11px; font-variant-numeric: tabular-nums; }
:where(html[data-theme="light"]) .ch-slide small { color: rgba(219,227,244,.62); }
.ch-rk { margin-right: 6px; font-weight: 800; }
.ch-rk::after { content: "."; }
.ch-rk.r1 { color: var(--metal-gold); }
.ch-rk.r2 { color: var(--metal-silver); }
.ch-rk.r3 { color: var(--metal-bronze); }

.ch-slide small.ch-go, .ch-slide small.ch-hot { color: var(--accent); font-weight: 700; }
a.ch-slide:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a.ch-slide:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

.ch-slide.ch-ph b { color: var(--text-3); font-weight: 700; }
.ch-slide.ch-ph small { color: var(--text-muted); }

.ch-slide.ch-ph small.ch-go { color: var(--accent); }


html[data-theme="light"] .ch-dock {
    background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(247,249,253,.78));
    border-top: 1px solid rgba(255,255,255,.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    backdrop-filter: blur(22px) saturate(1.6);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html[data-theme="light"] .ch-dock { background: rgba(247,249,253,.92); }
}
html[data-theme="light"] .ch-cell + .ch-cell { border-left-color: rgba(23,32,58,.12); }
html[data-theme="light"] .ch-k { color: #3c4761; }
html[data-theme="light"] .ch-slide b { color: #172033; }
html[data-theme="light"] .ch-slide small { color: #3c4761; }

html[data-theme="light"] .ch-slide small.ch-go,
html[data-theme="light"] .ch-slide small.ch-hot { color: var(--accent); }


html[data-theme="light"] .ch-slide.ch-ph b { color: #3c4761; }
html[data-theme="light"] .ch-slide.ch-ph small { color: #4b5670; }
html[data-theme="light"] .ch-slide.ch-ph small.ch-go { color: var(--accent); }

html[data-theme="light"] .ch-rk.r1 { color: #b8860b; }
html[data-theme="light"] .ch-rk.r2 { color: #6d7785; }
html[data-theme="light"] .ch-rk.r3 { color: #9a5a22; }
@media (prefers-reduced-motion: reduce) {
    .ch-slide { transition: none; }
}
@media (max-width: 700px) {
    .ch-dock { grid-template-columns: 1fr; }
    .ch-cell + .ch-cell { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
    html[data-theme="light"] .ch-cell + .ch-cell { border-top-color: rgba(23,32,58,.12); }
}


.th-invite { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 13px 16px 13px 14px; border: 1px solid var(--border); border-left: 2px solid var(--tc, var(--brand-2)); border-radius: var(--radius-md); background: var(--surface); }
.th-invite-copy { flex: 1; min-width: 0; color: var(--text-2); font-size: 13px; }
.th-invite-copy strong { color: var(--text); }
.th-invite-copy small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.th-invite-actions { display: flex; gap: 7px; flex: 0 0 auto; }


.th-section { margin: 30px 0 0; }
.th-section h2 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.01em; }
.th-mine { display: flex; gap: 10px; flex-wrap: wrap; }
.th-mine-card { display: block; padding: 11px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: inherit; text-decoration: none; }
.th-mine-card:hover { border-color: color-mix(in srgb, var(--tc, var(--brand-1)) 45%, var(--border)); }
.th-mine-card strong { display: block; font-size: 13.5px; font-weight: 600; }
.th-mine-card small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.th-mine-card-skeleton { padding: 11px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }


.th-browse-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.th-browse-head h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.th-tools { display: flex; gap: 9px; }
.th-search { display: flex; align-items: center; gap: 8px; min-width: 260px; padding: 0 13px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.th-search:focus-within { border-color: var(--brand-1); }
.th-search svg { flex: 0 0 auto; color: var(--text-muted); }
.th-search input { flex: 1; min-width: 0; min-height: 38px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; outline: none; }

select.th-sort { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 32px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2397a0b3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center no-repeat; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }

.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.th-more-wrap { display: flex; justify-content: center; margin-top: 16px; }

.th-more-wrap[hidden] { display: none; }
.th-card { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: inherit; text-decoration: none; }
.th-card:hover { border-color: color-mix(in srgb, var(--tc, var(--brand-1)) 50%, var(--border)); box-shadow: var(--shadow-1); }
.th-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.th-card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.th-faces { display: flex; align-items: center; flex: 0 0 auto; }
.th-face { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -7px; background: var(--surface-2); object-fit: cover; display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 700; color: var(--text-3); }
.th-face:first-child { margin-left: 0; }
.th-card-desc { margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 1.55; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.th-card-meta { margin-top: 3px; color: var(--text-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.th-card-skeleton { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }

.th-card-skeleton .skeleton, .th-mine-card-skeleton .skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 400% 100%; }


.th-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -2px 0 14px; }
.th-filter { position: relative; display: inline-flex; }
.th-filter select { appearance: none; -webkit-appearance: none; min-height: 34px; padding: 0 28px 0 11px; border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2397a0b3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 11px center no-repeat; color: var(--text-3); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.th-filter select:hover { color: var(--text-2); }
.th-filter select:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.th-filter.on select { border-color: var(--brand-1); color: var(--text); }
.th-filters-count { margin-left: auto; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.th-filters-clear { padding: 0; border: 0; background: transparent; color: var(--brand-2); font: inherit; font-size: 12px; cursor: pointer; }
.th-filters-clear:hover { text-decoration: underline; }


.th-card-recruit { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.th-card-recruit .tp2-pin { margin-right: 6px; }
.th-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.th-marks { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.th-marks .plate { padding: 2px 7px; font-size: 10.5px; }
.th-marks .plate img { width: 14px; height: 10px; margin-right: 5px; border-radius: 1px; object-fit: cover; }


.th-empty { grid-column: 1 / -1; padding: 36px 20px; }
.th-empty .empty-state { padding: 0 0 12px; }
.th-empty-actions { display: flex; justify-content: center; gap: 8px; }


.tp2-recruit { max-width: 320px; color: var(--dark-text-2, #c6cddb); font-size: 13px; line-height: 1.5; text-align: right; text-shadow: 0 1px 8px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.tp2-recruit .tp2-pin { color: var(--dark-text-3, #97a0b3); }
.tp2-meta .tp2-flag { margin-right: 4px; }

.tp2-art-empty:has(.tp2-recruit) { min-height: 250px; }

@media (max-width: 1000px) {
    .tp2-recruit { text-align: left; max-width: 100%; }
    
    .tp2-right .tp-cta { justify-items: start; }
    .tp2-right .tp-cta-note { text-align: left; }
    .tp2-actions .tp-menu { right: auto; left: 0; }
    
    .tp2-art:has(.tp2-recruit) { min-height: 340px; }
}
@media (max-width: 700px) {
    .th-filters-count { width: 100%; margin-left: 0; order: 9; }
}


.th-veil { position: fixed; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 7vh 20px 20px; background: rgba(4, 6, 10, 0.7); overflow: auto; z-index: 200; }
:where(html[data-theme="light"]) .th-veil { background: rgba(5,7,13,.7); }
.th-modal { width: 100%; max-width: 560px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-2); }
.th-modal-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.th-modal-head h2 { flex: 1; margin: 0; font-size: 17px; }
.th-modal-x { padding: 0 4px; border: 0; background: transparent; color: var(--text-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.th-modal-x:hover { color: var(--text); }
.th-modal-body { padding: 20px; }

.th-preview { margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); font-size: 17px; font-weight: 700; }
.th-preview small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11px; font-weight: 500; }
.th-fields { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 12px; }
.th-field { display: grid; gap: 6px; color: var(--text-3); font-size: 12px; font-weight: 700; }
.th-field input, .th-field textarea { width: 100%; min-width: 0; min-height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; font-weight: 500; }
.th-field textarea { min-height: 72px; max-height: 40vh; padding: 10px 11px; line-height: 1.45; resize: vertical; }
.th-field input:focus, .th-field textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.th-field-wide { margin-top: 12px; }
.th-choices { margin-top: 16px; }
.th-choices-label { display: block; margin-bottom: 8px; color: var(--text-3); font-size: 12px; font-weight: 700; }
.th-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.th-seg.three { grid-template-columns: 1fr 1fr 1fr; }
.th-seg label { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); cursor: pointer; }
.th-seg label:has(input:checked) { border-color: var(--brand-1); background: color-mix(in srgb, var(--brand-1) 10%, var(--bg)); }
.th-seg label:has(input:disabled) { opacity: .5; cursor: default; }
.th-seg input { position: absolute; opacity: 0; }
.th-seg strong { display: block; font-size: 12.5px; }
.th-seg small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10.5px; line-height: 1.35; }
.th-hint { margin: 8px 0 0; color: var(--text-muted); font-size: 11px; }
.th-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border); }
.th-modal-note { margin-right: auto; color: var(--text-muted); font-size: 12px; }

.th-modal-foot .btn { flex: 0 0 auto; white-space: nowrap; }
.th-modal-status { color: var(--accent-hover); font-size: 12px; }


.tp-head { position: relative; display: flex; align-items: flex-start; gap: 22px; flex-wrap: wrap; margin: 26px 0 0; padding: 30px 32px; border: 1px solid color-mix(in srgb, var(--tc, var(--brand-1)) 26%, var(--border)); border-radius: 20px; }
.tp-head-bg { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--tc, var(--brand-1)) 13%, transparent), transparent 46%), linear-gradient(135deg, var(--surface-2), var(--bg) 75%); }
.tp-ghost { position: absolute; right: -8px; top: 50%; translate: 0 -50%; color: color-mix(in srgb, var(--tc, var(--brand-1)) 8%, transparent); font-size: 170px; font-weight: 700; letter-spacing: -.06em; line-height: 1; pointer-events: none; user-select: none; }

html[data-theme="light"] .tp-ghost { color: color-mix(in srgb, var(--tc, var(--brand-1)) 15%, transparent); }
.tp-head > :not(.tp-head-bg) { position: relative; }
.tp-copy { flex: 1; min-width: 260px; }
.tp-copy h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; }
.tp-copy h1 .tm-tag { margin-right: 10px; }
.tp-copy > p { margin: 8px 0 0; max-width: 560px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.tp-meta { margin-top: 12px; color: var(--text-muted); font-size: 12px; }
.tp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex: 0 0 auto; }
.tp-score-big { text-align: right; }
.tp-score-big b { display: block; font-size: 30px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; background: var(--platinum-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-score-big small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tp-actions { display: flex; align-items: center; gap: 9px; }

.tp-cta { display: grid; justify-items: end; gap: 6px; }
.tp-cta-note { color: var(--text-muted); font-size: 11.5px; text-align: right; }

.tp-cta-pair { display: flex; gap: 7px; }

.tp2-tb .btn-ghost { background: rgba(8, 12, 17, 0.5); color: #f4f6fa; border-color: rgba(244, 246, 250, .25); }
:where(html[data-theme="light"]) .tp2-tb .btn-ghost { background: rgba(11, 13, 22, .5); }
.tp2-tb .btn-ghost:hover { border-color: rgba(244, 246, 250, .55); }
.tp2-tb .tp-cta-note { color: var(--dark-text-2, #c6cddb); text-shadow: 0 1px 2px rgba(0, 0, 0, .75); }


.tp-more { position: relative; }
.tp-more-btn { width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: transparent; color: var(--text-3); font-size: 18px; line-height: 1; cursor: pointer; }
.tp-more-btn:hover { border-color: color-mix(in srgb, var(--brand-1) 42%, var(--border)); color: var(--text); }
.tp-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: none; min-width: 200px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-2); }
.tp-menu.open { display: block; }
.tp-menu button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.tp-menu button:hover { background: var(--surface-2); color: var(--text); }
.tp-menu button.danger { color: var(--danger-hover); }

.tp2-actions .tp-menu { top: auto; bottom: calc(100% + 6px); }

.tp2-tb .tp-more-btn { background: rgba(8, 12, 17, 0.5); color: var(--dark-text-2, #c6cddb); border-color: rgba(244, 246, 250, .25); }
:where(html[data-theme="light"]) .tp2-tb .tp-more-btn { background: rgba(11, 13, 22, .5); }
.tp2-tb .tp-more-btn:hover, .tp2-tb .tp-more-btn[aria-expanded="true"] { color: #f4f6fa; border-color: rgba(244, 246, 250, .55); }
.tp-more-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }


.tp-tabs { display: flex; gap: 4px; margin: 22px 0 14px; border-bottom: 1px solid var(--border); }
.tp-tab { position: relative; padding: 10px 14px 12px; border: 0; background: transparent; color: var(--text-3); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.tp-tab:hover { color: var(--text-2); }
.tp-tab.on { color: var(--text); }
.tp-tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand-gradient); }
.tp-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; margin-left: 6px; padding: 0 5px; border-radius: var(--radius-full); background: var(--accent); color: var(--dark-accent-ink, #fff); font-size: 10px; font-weight: 700; vertical-align: 1px; }

.tp-badge[hidden] { display: none; }


.tp-roster { display: none; gap: 8px; }
.tp-roster.on { display: grid; }
.tp-row { display: grid; grid-template-columns: 34px 38px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: inherit; text-decoration: none; }
.tp-row:hover { border-color: color-mix(in srgb, var(--tc, var(--brand-1)) 40%, var(--border)); }
.tp-rank { color: var(--text-muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-rank.r1 { color: var(--metal-gold); }
.tp-rank.r2 { color: var(--metal-silver); }
.tp-rank.r3 { color: var(--metal-bronze); }
.tp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.tp-role { justify-self: end; color: var(--text-muted); font-size: 11.5px; }
.tp-role.owner { color: var(--tc, var(--brand-2)); font-weight: 700; }
.tp-role.captain { color: var(--text-3); }
.tp-score { min-width: 74px; text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }


.tp-challenges { display: none; }
.tp-challenges.on { display: block; }


.tpm { --tpm-top: 16px; display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 36px; align-items: start; max-width: 1120px; }

.tpm [hidden] { display: none !important; }


.tpm-nav { position: sticky; top: var(--tpm-top, 16px); display: grid; gap: 2px; }
.tpm-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-3); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tpm-nav a:hover { color: var(--text); background: var(--ghost-hover); }
.tpm-nav a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.tpm-nav a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.tpm-nav .tp-badge { margin-left: 0; }
.tpm-nav-sep { height: 1px; margin: 8px 12px; background: var(--border); }

.tpm-body { display: grid; gap: 40px; min-width: 0; }
.tpm-sec { min-width: 0; scroll-margin-top: calc(var(--tpm-top, 16px) + 12px); }
.tpm-sec-head { margin: 0 0 12px; }
.tpm-sec-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

.tpm-sec-head h2:focus:not(:focus-visible) { outline: none; }
.tpm-sec-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }


.tpm-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }

.tpm-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 32px; padding: 18px 20px; border-top: 1px solid var(--border); }
.tpm-row:first-child { border-top: 0; }

.tpm-row-waiting { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.tpm-label h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.tpm-label h3 .n { color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.tpm-label h3 .tp-badge { margin-left: 0; }
.tpm-label p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }

.tpm-ctl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; }
.tpm-ctl-start { justify-items: start; }


.tpm-input, .tpm-select, .tpm-textarea { width: 100%; min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--field-bg); color: var(--text); font: inherit; font-size: 13.5px; }

.tpm-textarea { display: block; width: 100%; height: auto; min-height: 60px; max-height: 180px; padding: 8px 11px; line-height: 1.5; resize: vertical; overflow-y: auto; }
.tpm-textarea-short { max-height: 120px; } 
.tpm-textarea-long { min-height: 80px; max-height: 240px; } 
.tpm-select { appearance: none; -webkit-appearance: none; padding-right: 30px; background: var(--field-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2397a0b3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 11px center no-repeat; cursor: pointer; }
.tpm-select:disabled { opacity: .6; cursor: default; }
.tpm-input:hover, .tpm-select:hover:not(:disabled), .tpm-textarea:hover { border-color: var(--border-hover); }
.tpm-input:focus-visible, .tpm-select:focus-visible, .tpm-textarea:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.tpm-input[aria-invalid="true"], .tpm-select[aria-invalid="true"], .tpm-textarea[aria-invalid="true"] { border-color: var(--danger); }
.tpm-input::placeholder, .tpm-textarea::placeholder { color: var(--text-muted); }
.tpm-short { max-width: 360px; }
.tpm-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 360px; }
.tpm-inline { display: flex; gap: 8px; }
.tpm-inline .tpm-input, .tpm-inline .tpm-select { flex: 1; }
.tpm-transfer { max-width: 420px; }
.tpm-tagfield { display: flex; align-items: center; gap: 12px; }
.tpm-tagfield .tpm-input { width: 96px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tpm-tagfield .tm-tag { margin: 0; }
.tpm-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 18px; color: var(--text-muted); font-size: 11.5px; }
.tpm-meta > :last-child { margin-left: auto; }
.tpm-counter { font-variant-numeric: tabular-nums; }
.tpm-link { padding: 0; color: var(--brand-2); font-size: 12px; }
.tpm-link:hover:not(:disabled) { text-decoration: underline; }
.tpm-link:disabled { color: var(--text-muted); opacity: .6; cursor: default; }
.tpm-link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 2px; }
.tpm-err { margin: 0; color: var(--danger); font-size: 12px; }
.tpm-ok { margin: 0; color: var(--success); font-size: 12px; }
.tpm-hint { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.tpm-empty { margin: 0; padding: 1px 0; color: var(--text-muted); font-size: 13px; }


.tpm .btn { min-height: 36px; padding: 0 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tpm .btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.tpm .btn:disabled { opacity: .45; cursor: default; }

.tpm .btn-primary:disabled:hover { background: var(--surface-2); color: var(--text-muted); }

.tpm .tm-btn-danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.tpm .btn-ghost:disabled:hover { border-color: var(--border); color: var(--text-2); }


.tpm-list { display: grid; }

.tpm-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.tpm-item:first-child { padding-top: 0; border-top: 0; }
.tpm-item:last-child { padding-bottom: 0; }
.tpm-item .btn { min-height: 30px; padding: 0 11px; font-size: 12px; }
.tpm-av { display: grid; place-items: center; width: 32px; height: 32px; color: var(--text-3); font-size: 10.5px; font-weight: 700; }

.tpm-art-sm { width: 64px; aspect-ratio: 16 / 9; height: auto; border-radius: 5px; object-fit: cover; object-position: center 40%; background: var(--icon-plate); flex: 0 0 auto; }
.tpm-item-copy { flex: 1 1 120px; min-width: 0; }
.tpm-item-copy b { display: block; overflow: hidden; font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.tpm-item-copy b .tm-tag { margin: 0 8px 0 0; vertical-align: 1px; }

.tpm-item-copy small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 11.5px; line-height: 1.45; overflow-wrap: anywhere; }
.tpm-current .tpm-item-copy b { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.tpm-item-copy small .tpm-owner { color: var(--tc, var(--brand-2)); font-weight: 700; }
.tpm-item-acts { position: relative; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.tpm-sublist { display: grid; gap: 8px; margin-top: 6px; }
.tpm-eyebrow { margin: 0; color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }


.tpm-more-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--text-3); font-size: 16px; line-height: 1; }
.tpm-more-btn:hover, .tpm-more-btn[aria-expanded="true"] { border-color: var(--border); background: var(--surface-2); color: var(--text); }
.tpm-more-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.tpm-item-acts .tp-menu { min-width: 150px; }


.tpm-skel { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.tpm-skel:first-child { padding-top: 0; }
.tpm-skel .skeleton:first-child { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; }
.tpm-skel .skeleton:last-child { width: 42%; height: 12px; }


.tpm-current { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.tpm-current.no-thumb { grid-template-columns: minmax(0, 1fr) auto; }
.tpm-thumb { display: block; width: 96px; aspect-ratio: 16 / 9; height: auto; border-radius: 6px; object-fit: cover; object-position: center 40%; background: var(--icon-plate); }
.tpm-current .tpm-item-acts .btn { min-height: 30px; padding: 0 11px; font-size: 12px; }
.tpm-search { position: relative; }
.tpm-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.tpm-search .tpm-input { padding-left: 32px; }


.tpm-well { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.tpm-well .th-card { max-width: 380px; cursor: default; }
.tpm-well .th-card:hover { box-shadow: none; }


.tpm-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 10px; padding: 12px 20px; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: color-mix(in srgb, var(--surface-2) 40%, var(--surface)); }
.tpm-status { flex: 1 1 96px; min-width: 0; color: var(--text-muted); font-size: 12px; }
.tpm-status.is-error { color: var(--danger); }
.tpm-status.is-ok { color: var(--success); }


.tpm-cap { margin: 0; font-size: 13.5px; line-height: 1.6; }
.tpm-cap .plate-premium { margin: 0 4px; }


@media (max-width: 1000px) {
    .tpm { grid-template-columns: 164px minmax(0, 1fr); gap: 28px; }
    .tpm-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 700px) {
    .tpm { --tpm-top: 0px; display: block; }
    .tpm-nav { z-index: 6; display: flex; gap: 4px; margin: 0 -16px 22px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--border); }
    .tpm-nav::-webkit-scrollbar { display: none; }
    .tpm-nav a { flex: 0 0 auto; gap: 6px; padding: 8px 12px; }
    .tpm-nav-sep { display: none; }
    
    .tpm-sec { scroll-margin-top: 64px; }
    .tpm-body { gap: 32px; }
    .tpm-row { padding: 16px; }
    .tpm-short, .tpm-pair { max-width: none; }
    .tpm-current { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
    .tpm-current.no-thumb { grid-template-columns: minmax(0, 1fr); }
    .tpm-thumb { width: 72px; }
    .tpm-current .tpm-item-acts { grid-column: 1 / -1; justify-content: flex-end; }
    
    .tpm-foot { padding: 12px 16px; }
    .tpm-foot.is-dirty { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -8px 16px -12px rgba(0,0,0,.5); }
    .tpm-well { padding: 12px; }
    
    .tpm-well .th-card-foot { flex-wrap: wrap; row-gap: 6px; }
}

@media (max-width: 392px) {
    .tpm-row { padding: 14px; }
    .tpm-pair { grid-template-columns: minmax(0, 1fr); }
    
    .tpm-well { padding: 0; border: 0; background: none; }
    .tpm-well .th-card { max-width: none; padding: 14px; }
    .tpm-foot { padding: 10px 14px; }
    .tpm-status { flex-basis: 80px; }
}

.tp-hint { margin: 0 0 8px; color: var(--text-muted); font-size: 11.5px; }
.tp-hint:empty { display: none; }


.tpm-checks { display: grid; gap: 12px; }
.tpm-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 10px; align-items: start; font-size: 13px; color: var(--text); cursor: pointer; }
.tpm-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand-1); }
.tpm-check small { grid-column: 2; color: var(--text-muted); font-size: 12px; line-height: 1.45; }

.tpm-cap-checks { flex-basis: 100%; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px 24px; align-items: start; padding: 6px 0 4px 44px; }
@media (max-width: 392px) { .tpm-cap-checks { padding-left: 0; } }
.tpm-input:disabled { opacity: .6; cursor: default; }
.tpm-locked { margin: 0; color: var(--text-muted); font-size: 12px; }


.tm-btn-danger { background: transparent; color: var(--danger-hover); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.tm-btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: var(--danger); color: var(--danger-hover); }


.team-profile-badge {
    flex: 0 0 auto;
    background: var(--tc, var(--surface-3)); color: var(--stamp-ink);
    letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
}
.team-profile-badge:hover { filter: brightness(1.08); }

@media (max-width: 780px) {
    .tp-ghost { font-size: 110px; }
    .tp-side { align-items: flex-start; }
    .tp-cta { justify-items: start; }
    .tp-score-big, .tp-cta-note { text-align: left; }
    .tp-row { grid-template-columns: 28px 32px minmax(0, 1fr) auto; }
    .tp-role { display: none; }
}
@media (max-width: 700px) {
    .th-hero { min-height: 280px; }
    .th-hero-copy { padding: 28px 24px; }
    .th-search { min-width: 0; flex: 1; }
    .th-grid { grid-template-columns: 1fr; }
    .th-seg, .th-seg.three { grid-template-columns: 1fr; }
    .th-veil { padding: 4vh 12px 12px; }
}
@media (max-width: 560px) {
    .team-page { margin-top: 12px; }
    .th-invite { flex-wrap: wrap; }
    .th-invite-actions { width: 100%; justify-content: flex-end; }
    .th-tools { width: 100%; }
    .tp-head { padding: 24px 20px; }
}


.tlb-pane { display: none; }
.tlb-pane.on { display: block; }

.tlb-period { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.tlb-period-btn { padding: 7px 13px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-3); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tlb-period-btn:hover { color: var(--text-2); }
.tlb-period-btn.on { background: var(--surface-2); color: var(--text); }

.tlb-note { margin: 0 0 14px; color: var(--text-muted); font-size: 11.5px; }


.tlb-you { margin-bottom: 14px; }
.tlb-you-label { display: block; margin-bottom: 6px; color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tlb-you .tlb-row { border-color: color-mix(in srgb, var(--tc, var(--brand-1)) 45%, var(--border)); background: color-mix(in srgb, var(--tc, var(--brand-1)) 7%, var(--surface)); }

.tlb-table-wrap { overflow-x: auto; }
.tlb-table { display: grid; gap: 8px; min-width: 560px; }
.tlb-row {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 100px 64px;
    align-items: center; gap: 12px; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); color: inherit; text-decoration: none;
}
a.tlb-row:hover { border-color: color-mix(in srgb, var(--tc, var(--brand-1)) 40%, var(--border)); }
.tlb-row.tlb-head { border: 0; background: transparent; padding: 0 14px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tlb-rank { color: var(--text-muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tlb-rank.r1 { color: var(--metal-gold); }
.tlb-rank.r2 { color: var(--metal-silver); }
.tlb-rank.r3 { color: var(--metal-bronze); }
.tlb-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tlb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.tlb-members { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tlb-score { text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tlb-move { justify-self: end; }

.tlb-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }

.tlb-pager .btn:disabled { opacity: .45; cursor: default; }
.tlb-pager .btn-ghost:disabled:hover { border-color: var(--border); color: var(--text-2); }
.tlb-page-indicator { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
    .th-browse-head:has(.tlb-period) { align-items: flex-start; }
}
@media (max-width: 560px) {
    
    .tlb-table { min-width: 0; }
    
    .tlb-row .th-faces { display: none; }
    .tlb-row { grid-template-columns: 30px minmax(0, 1fr) auto 40px; grid-template-areas: "rank team score move" "rank members score move"; row-gap: 1px; }
    .tlb-rank { grid-area: rank; }
    .tlb-team { grid-area: team; }
    .tlb-score { grid-area: score; }
    .tlb-move { grid-area: move; }
    .tlb-members { grid-area: members; display: block; font-size: 11.5px; }
    .tlb-row.tlb-head { grid-template-areas: "rank team score move"; }
    .tlb-row.tlb-head .tlb-members { display: none; }
    .tlb-row.tlb-head .tlb-move { display: none; }
}




.stamp {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px 3px 9px;
    font-size: 11px; font-weight: 800; letter-spacing: .03em;
    text-transform: uppercase; white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
    border-radius: 4px 0 4px 4px;
    filter: drop-shadow(2px 2px 0 var(--stamp-shadow));
}
.stamp-good { background: var(--success); color: var(--stamp-ink); }
.stamp-wait { background: var(--gold); color: var(--stamp-ink); }
.stamp-bad { background: var(--danger); color: var(--stamp-ink); }

.stamp-plat { background: var(--plat-blue); color: var(--stamp-ink); }

.stamp-flat { background: var(--surface-3); color: var(--text-2); filter: none; }

.stamp-sm {
    padding: 2px 8px 2px 7px; font-size: 10px;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
    border-radius: 3px 0 3px 3px;
    filter: drop-shadow(1.5px 1.5px 0 var(--stamp-shadow));
}

.stamp-sm.stamp-flat { filter: none; }


.stamp-twitch { background: #e91916; color: #fff; }
.stamp-twitch .stamp-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #fff;
    animation: stampDotPulse 1.6s ease-in-out infinite;
}
@keyframes stampDotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .stamp-twitch .stamp-dot { animation: none; } }


.stamp-premium {
    display: inline-flex; align-items: center;
    padding: 2.5px 10px 4px 9px; line-height: 1;
    font-size: 10.5px; font-weight: 800; text-transform: none;
    font-variant-caps: all-small-caps; letter-spacing: .09em;
    color: var(--stamp-ink);
    background: linear-gradient(160deg, #f6d488 0%, var(--gold) 46%, #b97e1d 100%);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
    border-radius: 4px 0 4px 4px;
    filter: drop-shadow(2px 2px 0 var(--stamp-shadow));
}
html[data-theme="light"] .stamp-premium {
    background: linear-gradient(160deg, #e0b45c 0%, var(--gold) 55%, #7c5306 100%);
    color: #fff;
}

.plate-premium {
    display: inline-flex; align-items: center;
    
    padding: 2px 9px 3.5px; border-radius: 4px; line-height: 1;
    background: var(--gold); color: var(--stamp-ink);
    font-size: 10.5px; font-weight: 800; text-transform: none;
    font-variant-caps: all-small-caps; letter-spacing: .08em;
    
    vertical-align: middle;
}
.tp-tab .plate-premium { margin-left: 7px; }
html[data-theme="light"] .plate-premium { color: #fff; }


.plate {
    display: inline-flex; align-items: center;
    padding: 2.5px 9px; border-radius: 4px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
    white-space: nowrap;
}

.plate-region { background: var(--surface-3); color: var(--text-2); font-size: 10.5px; }
.plate-region-hot { background: var(--accent); color: var(--dark-accent-ink, #fff); }

html[data-theme="light"] .gd-hero .plate-region { background: #24304f; }


.chipline {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 8px; border: 1px solid var(--border); border-radius: 5px;
    font-size: 11.5px; font-weight: 600; color: var(--text-2);
    background: transparent;
}

.chipline.tag-loss   { color: var(--danger); border-color: rgba(233, 69, 96, 0.4); }
.chipline.tag-online { color: var(--ps-purple); border-color: rgba(123, 120, 255, 0.4); }
.chipline.tag-local  { color: #4ec3d6; border-color: rgba(78, 195, 214, 0.4); }
.chipline.tag-effort { color: var(--gold); border-color: rgba(232, 169, 60, 0.4); }
.chipline.tag-rng    { color: #c77dff; border-color: rgba(199, 125, 255, 0.4); }
.chipline.tag-safe   { color: var(--success); border-color: rgba(70, 201, 155, 0.4); }
.chipline.tag-unobtainable { color: #c0392b; border-color: rgba(192, 57, 43, 0.4); }
.chipline svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
.chipline-on { border-color: var(--brand-1); color: var(--text); }




.chal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 18px 0 4px; }
.chal-head h2 { margin: 0; font-size: 19px; }
.chal-head-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-3); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.chip:hover { color: var(--text-2); }
.chip.on { border-color: var(--accent); color: var(--text); }



.chal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.chal-mine { margin-top: 18px; }
.chal-mine-head { margin: 22px 0 12px; font-size: 16px; }
.chal-mine-head:first-child { margin-top: 0; }


.chal-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: inherit; text-decoration: none; overflow: hidden; transition: border-color 0.15s ease; }
.chal-card:hover { border-color: color-mix(in srgb, var(--brand-1) 50%, var(--border)); box-shadow: var(--shadow-1); }

.chal-shelf { display: flex; align-items: center; flex-wrap: nowrap; padding: 14px 16px 0; }
.chal-tile { width: 54px; height: 54px; flex-shrink: 0; border-radius: 9px; background: var(--icon-plate); object-fit: cover; border: 2px solid var(--surface); margin-left: -12px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28); }
.chal-tile:first-child { margin-left: 0; }
.chal-more { width: 54px; height: 54px; border-radius: 9px; margin-left: -12px; border: 2px solid var(--surface); background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-3); flex-shrink: 0; }
.chal-card-body { display: flex; flex-direction: column; gap: 7px; padding: 12px 16px 14px; }
.chal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chal-card-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-sans); font-size: 16px; font-weight: 700; }
.chal-card-top-chips { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.chal-goal { margin: 0; color: var(--text-3); font-size: 12.5px; }

.chal-bar { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.chal-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }
.chal-bar.hot i { background: var(--accent); }
.chal-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.chal-card-ends { font-size: 12.5px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.chal-card-ends.hot { color: var(--accent); font-weight: 700; }
.chal-card-ends.muted { color: var(--text-muted); font-weight: 500; }
.chal-card-players { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11.5px; }
.chal-joined-pill { flex-shrink: 0; }


.chal-aud-tag { margin-left: auto; align-self: center; flex-shrink: 0; }


.chal-aud-seg { display: inline-flex; align-items: center; margin-left: auto; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.chal-aud-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.chal-aud-seg button svg { width: 12px; height: 12px; }
.chal-aud-seg button:hover { color: var(--text-2); }
.chal-aud-seg button.on { background: color-mix(in srgb, var(--brand-1) 18%, var(--surface)); color: var(--text); }
.chal-aud-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


body.cw-scroll-lock { overflow: hidden; }
.cw-overlay { position: fixed; inset: 0; z-index: 300; overflow: auto; padding: 5vh 20px 40px; }
.cw-veil { position: fixed; inset: 0; z-index: 0; background: rgba(4, 6, 10, 0.72); }
:where(html[data-theme="light"]) .cw-veil { background: rgba(5, 7, 13, 0.72); }
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
    .cw-veil { background: rgba(4, 6, 10, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
    :where(html[data-theme="light"]) .cw-veil { background: rgba(5, 7, 13, 0.5); }
}
.cw-dialog { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 26px 26px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow-2); }
.cw-x { position: absolute; top: 16px; right: 18px; padding: 0 4px; border: 0; background: transparent; color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.cw-x:hover { color: var(--text); }
.cw-loading, .cw-error { padding: 40px 8px; color: var(--text-3); text-align: center; }

.cw-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-right: 24px; }
.cw-head h1 { margin: 0; font-family: var(--font-sans); font-size: 24px; font-weight: 800; }
.cw-quota { font-size: 12px; color: var(--text-muted); }
.cw-quota b { color: var(--text-2); }

.cw-steps { display: flex; align-items: center; gap: 0; margin: 14px 0 22px; flex-wrap: wrap; }
.cw-step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.cw-step i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.cw-step.done { color: var(--text-3); }
.cw-step.done i { border-color: var(--success); color: var(--success); }
.cw-step.on { color: var(--text); }
.cw-step.on i { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 16%, var(--surface)); color: var(--brand-2); }
html[data-theme="light"] .cw-step.on i { color: var(--brand-1); border-color: var(--brand-1); }
.cw-sep { width: 34px; height: 1.5px; background: var(--border); margin: 0 10px; }

.cw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cw-pane { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 22px; }
.cw-pane-title { margin: 0; font-family: var(--font-sans); font-size: 17px; font-weight: 700; }
.cw-pane-title small { display: block; margin-top: 3px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.cw-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.cw-spacer { flex: 1; }
.cw-autosave { font-size: 11.5px; color: var(--text-muted); }
.cw-pane-err { font-size: 12px; color: var(--accent-hover); }

.cw-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 10px; border: 0; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.cw-accent { background: var(--accent); color: var(--accent-ink); }
.cw-accent:hover { background: var(--accent-hover); }
.cw-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.cw-ghost:hover { color: var(--text); border-color: color-mix(in srgb, var(--text-3) 40%, var(--border)); }

.cw-frow { display: flex; flex-direction: column; gap: 6px; }
.cw-frow > label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.cw-opt { font-weight: 400; color: var(--text-muted); }
.cw-frow input[type=text], .cw-frow textarea, .cw-frow input[type=date], .cw-frow input[type=time], .cw-frow input[type=number], .cw-frow input[type=search], .cw-team-select select {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; color: var(--text);
    padding: 9px 12px; font-size: 13.5px; font-family: inherit; width: 100%;
}
.cw-frow textarea { resize: vertical; min-height: 64px; max-height: 40vh; }
.cw-hint { font-size: 11.5px; color: var(--text-muted); }
.cw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cw-narrow { max-width: 420px; }
.cw-cap-row { display: flex; align-items: center; gap: 10px; }
.cw-cap-row input { max-width: 120px; }
.cw-topn input { max-width: 160px; }
.cw-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.cw-check input { width: auto; }

.cw-cards { display: grid; gap: 10px; }
.cw-cards.three { grid-template-columns: repeat(3, 1fr); }
.cw-cards.two { grid-template-columns: repeat(2, 1fr); }
.cw-card { position: relative; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); padding: 13px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.cw-card strong { font-size: 13.5px; display: flex; align-items: center; gap: 7px; font-weight: 700; }
.cw-card strong svg { width: 13px; height: 13px; color: var(--text-3); flex-shrink: 0; }
.cw-card small { font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.cw-card.on { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 10%, var(--surface)); }
.cw-card.on strong svg { color: var(--brand-2); }
html[data-theme="light"] .cw-card.on { border-color: var(--brand-1); }
html[data-theme="light"] .cw-card.on strong svg { color: var(--brand-1); }
.cw-card.cw-locked { cursor: default; }
.cw-card.cw-locked strong, .cw-card.cw-locked small { opacity: 0.6; }

.cw-card .cw-lock { position: absolute; top: 11px; right: 12px; width: 13px; height: 13px; color: var(--gold); }
.cw-card.cw-premium-locked:hover { border-color: var(--border); }

.cw-gsearch { position: relative; }
.cw-gresults:not(:empty) { margin-top: 8px; display: grid; gap: 4px; }
.cw-gsrow { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); cursor: pointer; font-family: inherit; text-align: left; }
.cw-gsrow:hover { border-color: color-mix(in srgb, var(--brand-1) 45%, var(--border)); }
.cw-gsrow img { width: 34px; height: 34px; border-radius: 7px; object-fit: contain; background: var(--icon-plate); flex-shrink: 0; }
.cw-gsname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text); }
.cw-gloading, .cw-gempty { padding: 8px 10px; font-size: 12px; color: var(--text-muted); }
.cw-glist { display: grid; gap: 8px; }
.cw-grow { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); padding: 8px 10px; }
.cw-grow img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: var(--icon-plate); flex-shrink: 0; }
.cw-gcopy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cw-gcopy strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-gremove { border: 1px solid var(--border); background: transparent; color: var(--text-3); border-radius: 8px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: inherit; flex-shrink: 0; }
.cw-gremove:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.cw-gcount { font-size: 11.5px; color: var(--text-muted); }
.cw-empty { padding: 14px; text-align: center; color: var(--text-muted); font-size: 12.5px; border: 1px dashed var(--border); border-radius: var(--radius-md); }

.cw-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-preset { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cw-preset.on { border-color: var(--brand-1); color: var(--text); background: color-mix(in srgb, var(--brand-1) 16%, var(--surface)); }

.cw-adv { border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
.cw-adv summary { font-size: 12.5px; font-weight: 600; color: var(--text-3); cursor: pointer; list-style: none; }
.cw-adv summary::-webkit-details-marker { display: none; }
.cw-adv summary::before { content: "\25B8  "; }
.cw-adv[open] summary::before { content: "\25BE  "; }
.cw-adv-body { display: grid; gap: 14px; margin-top: 14px; }


.cw-prev { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 10px; }
.cw-prev-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.cw-prev-note { margin: 0; font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.cw-prev-card { cursor: default; }
.cw-prev-card:hover { border-color: var(--border); box-shadow: none; }

.cw-prev-private { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; color: var(--text-3); border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 9px 12px; }
.cw-prev-private .cw-lock { position: static; flex-shrink: 0; width: 12px; height: 13px; margin-top: 1px; color: var(--gold); }

.cw-blocked { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 26px 24px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.cw-blocked p { margin: 0; }
.cw-blocked p + p { margin-top: 10px; }
.cw-blocked .cw-blocked-sub { color: var(--text-muted); }

.cw-premium-link { padding: 0; border: 0; background: none; font: inherit; line-height: 1; vertical-align: middle; cursor: pointer; }
.cw-premium-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cw-title-ph { color: var(--text-muted); font-weight: 600; }
.cw-tile-ph { display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 18px; font-weight: 700; }
.cw-gicon { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: var(--icon-plate); flex-shrink: 0; }
.cw-gsrow .cw-gicon { width: 34px; height: 34px; border-radius: 7px; }
.chal-flag-icon.cw-tile-ph { background: var(--icon-plate); }

@media (max-width: 760px) {
    .cw-overlay { padding: 0; }
    .cw-dialog { max-width: none; min-height: 100%; margin: 0; border: 0; border-radius: 0; }
    .cw-grid { grid-template-columns: minmax(0, 1fr); }
    .cw-prev { position: static; }
    .cw-cards.three { grid-template-columns: 1fr; }
    
    .cw-cards.cw-see-two { grid-template-columns: 1fr; }
    .cw-pair { grid-template-columns: 1fr; }
}


.chal-detail-head { margin: 20px 0; }
.chal-detail-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chal-detail-top h1 { margin: 0; font-size: 24px; }
.chal-detail-desc { margin: 10px 0 0; color: var(--text-2); max-width: 640px; }
.chal-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--text-3); font-size: 12.5px; }
.chal-detail-hint { margin: 6px 0 0; color: var(--text-muted); font-size: 12px; }
.chal-detail-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.chal-creator-controls { display: flex; gap: 10px; flex-wrap: wrap; }

.chal-edit-fields { display: grid; gap: 14px; margin-bottom: 12px; }
.chal-join-status { display: block; margin-top: 8px; color: var(--accent-hover); font-size: 12.5px; }
.chal-join-status:empty { display: none; }

.chal-section { margin: 28px 0; }
.chal-section h2 { margin: 0 0 12px; font-size: 17px; }

.chal-game-list { display: grid; gap: 8px; }
.chal-game-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.chal-game-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: contain; background: var(--icon-plate); flex-shrink: 0; }
.chal-game-icon-sm { width: 32px; height: 32px; border-radius: var(--radius-sm); object-fit: contain; background: var(--icon-plate); flex-shrink: 0; }
.chal-game-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chal-game-name { font-size: 13.5px; font-weight: 600; }
.chal-game-stats { color: var(--text-muted); font-size: 11.5px; }
.chal-game-drift { color: var(--text-3); font-size: 11px; }
.chal-game-progress { flex-shrink: 0; color: var(--text-muted); font-size: 11.5px; font-weight: 600; }
.chal-game-progress.is-ok { color: var(--success); }
.chal-game-progress.is-muted { color: var(--text-3); }


.chal-countdown { font-size: 12.5px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chal-countdown.hot { color: var(--accent); font-weight: 700; }
.chal-subtabs { margin: 4px 0 20px; }
.chal-board-subtabs { margin-bottom: 16px; }
.chal-sub-content { min-height: 160px; }
.chal-detail-skel { margin: 24px 0; display: grid; gap: 16px; }
.chal-skel-head { height: 30px; width: 240px; max-width: 70%; }
.chal-skel-subtabs { height: 34px; width: 320px; max-width: 90%; }
.chal-skel-block { height: 200px; width: 100%; }
.chal-skel-progress { height: 16px; width: 60%; }


.chal-games-summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.chal-games-summary-text { font-size: 14px; font-weight: 600; }
.chal-games-summary-sub { font-size: 12px; color: var(--text-muted); }


.chal-games { display: grid; gap: 8px; }
.chal-game-group { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.chal-game-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.chal-game-group.is-expandable > .chal-game-head { cursor: pointer; }
.chal-game-group.is-expandable > .chal-game-head:hover { background: var(--surface-2); }
.chal-game-head:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.chal-game-plats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chal-game-plats .platform-badge { margin-bottom: 0; }
.chal-plat-chip { display: inline-flex; align-items: center; gap: 4px; }
.chal-plat-region { font-size: 10.5px; font-weight: 700; color: var(--text-3); letter-spacing: 0.02em; text-transform: uppercase; }
.chal-game-versions { font-size: 11px; color: var(--text-muted); }
.chal-game-caret { flex-shrink: 0; width: 8px; height: 8px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform 0.15s ease; margin-left: 2px; }
.chal-game-group.is-open .chal-game-caret { transform: rotate(-135deg); }
.chal-game-versions-list { display: none; border-top: 1px solid var(--border); padding: 4px 12px 6px; background: var(--bg); }
.chal-game-group.is-open .chal-game-versions-list { display: block; }


.chal-game-state { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chal-game-state-ico { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.chal-game-state.st-done { color: var(--success); }
.chal-game-state.st-done .chal-game-state-ico { background: color-mix(in srgb, var(--success) 20%, var(--surface)); color: var(--success); }
.chal-game-state.st-ready { color: var(--text-3); font-weight: 600; }
.chal-game-state.st-ready .chal-game-state-ico { border: 1.5px dashed var(--text-muted); }
.chal-game-state.st-out { color: var(--text-3); font-weight: 600; }
.chal-game-state.st-out .chal-game-state-ico { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--danger); }
.chal-game-state.st-checking { color: var(--caution); font-weight: 600; }
.chal-game-state.st-checking .chal-game-state-ico { background: color-mix(in srgb, var(--caution) 18%, var(--surface)); color: var(--caution); }

.chal-game-group.is-out .chal-game-icon { filter: grayscale(1) brightness(0.75); }
.chal-game-group.is-out .chal-game-name { color: var(--text-3); }


.chal-version-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.chal-version-row:first-child { border-top: 0; }
.chal-version-plat { display: inline-flex; align-items: center; gap: 4px; }
.chal-version-plat .platform-badge { margin-bottom: 0; }
.chal-version-region { font-size: 10.5px; font-weight: 700; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; }
.chal-version-state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chal-version-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--border); }
.chal-version-state.is-ok { color: var(--success); }
.chal-version-state.is-ok .chal-version-dot { background: var(--success); }
.chal-version-state.is-warn { color: var(--caution); }
.chal-version-state.is-warn .chal-version-dot { background: var(--caution); }
.chal-version-state.is-plat { color: var(--brand-2); }
.chal-version-state.is-plat .chal-version-dot { background: var(--brand-2); }
html[data-theme="light"] .chal-version-state.is-plat { color: var(--brand-1); }
html[data-theme="light"] .chal-version-state.is-plat .chal-version-dot { background: var(--brand-1); }
.chal-version-state.is-check { color: var(--caution); }
.chal-version-state.is-check .chal-version-dot { background: var(--caution); }


.chal-review { margin: 0 0 18px; }
.chal-review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chal-review-head h3 { margin: 0; font-size: 14px; }
.chal-review-sub { font-size: 12px; color: var(--text-3); }
.chal-review-note { margin: 6px 0 12px; font-size: 12.5px; color: var(--text-2); }
.chal-review-list { display: flex; flex-direction: column; gap: 12px; }
.chal-flag { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); padding: 12px 14px; }
.chal-flag-head { display: flex; align-items: center; gap: 10px; }
.chal-flag-icon { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.chal-flag-who { display: flex; flex-direction: column; min-width: 0; }
.chal-flag-game { font-size: 13.5px; font-weight: 700; }
.chal-flag-player { font-size: 12px; color: var(--text-3); }
.chal-flag-verdict { margin-left: auto; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.chal-flag-verdict.is-pending { color: var(--caution); }
.chal-flag-verdict.is-count { color: var(--success); }
.chal-flag-verdict.is-exclude { color: var(--text-3); }
.chal-flag-evidence { margin: 10px 0 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 3px; }
.chal-flag-evidence li { font-size: 12.5px; color: var(--text-2); }
.chal-flag-actions { display: flex; gap: 8px; margin-top: 12px; }


.chal-your-progress:empty { display: none; }
.chal-your-progress { margin-top: 18px; }
.chal-progress-card { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.chal-progress-card h3 { margin: 0 0 6px; font-size: 13px; }
.chal-progress-card p { margin: 0; color: var(--text-2); font-size: 13px; }


.chal-hero { position: relative; margin: 20px 0 0; border-radius: 16px; overflow: hidden; background: var(--dark-scrim-mid, #0d1322); border: 1px solid var(--dark-border, #24304f); }
.chal-hero-art { position: absolute; inset: -18px; display: flex; }
.chal-hero-art img { flex: 1; min-width: 0; object-fit: cover; filter: blur(1.5px) saturate(1.06); }
.chal-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 17, 0.96) 0%, rgba(8, 12, 17, 0.87) 45%, rgba(8, 12, 17, 0.5) 100%); }
:where(html[data-theme="light"]) .chal-hero::after { background: linear-gradient(90deg, rgba(11, 13, 22, 0.96) 0%, rgba(11, 13, 22, 0.87) 45%, rgba(11, 13, 22, 0.5) 100%); }

@media (min-width: 761px) {
    .chal-hero::after {
        background:
            linear-gradient(90deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .72) 480px, rgba(4, 6, 10, .3) 760px, rgba(4, 6, 10, 0) 980px),
            linear-gradient(0deg, rgba(4, 6, 10, .45) 0%, rgba(4, 6, 10, 0) 30%);
    }
}
.chal-hero-inner :is(.chal-eyebrow, .chal-titlerow h1, .chal-hero-goal, .chal-hero-meta, .chal-hosted-by, .chal-hero-countdown) { text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.chal-hero-inner { position: relative; z-index: 1; padding: 28px 30px 24px; }
.chal-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.chal-titlerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chal-titlerow h1 { margin: 0; font-family: var(--font-sans); font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.chal-hero-countdown { font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.chal-hero-countdown.hot { color: var(--accent); }
.chal-hosted-by { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12.5px; color: var(--text-3); text-decoration: none; }
.chal-hosted-by:hover b { text-decoration: underline; }
.chal-hosted-by b { color: var(--text); font-weight: 700; }
.chal-host-ava { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.3); background: var(--surface-2); }
.chal-host-ava-blank { display: inline-block; }
.chal-hero-goal { margin: 8px 0 0; color: var(--text-2); font-size: 14.5px; max-width: 560px; }
.chal-hero-meta { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; margin-top: 14px; color: var(--text-3); font-size: 12.5px; }
.chal-hero-meta b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.chal-hero-window { margin-top: 14px; max-width: 460px; }
.chal-hero-window-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.chal-hero-window-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }
.chal-hero-window-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.chal-wr-count { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.chal-wr-big { font-family: var(--font-sans); font-size: 32px; font-weight: 800; background: linear-gradient(90deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chal-wr-sub { color: var(--text-3); font-size: 12.5px; }
.chal-hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.chal-hero-cta .btn-accent, .chal-hero-cta #chalJoinBtn { background: var(--accent); color: var(--accent-ink); }
.chal-hero-cta .btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: var(--text-2); background: transparent; }
.chal-hero-cta-note { color: var(--text-3); font-size: 12px; }
.chal-wr-joined { font-size: 13px; color: var(--text-2); }
.chal-wr-joined-ok { color: var(--success); font-weight: 700; }
.chal-leave-link { border: 0; background: none; padding: 0; color: var(--text-3); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.chal-leave-link:hover { color: var(--text-2); }

.chal-hero .chal-join-status { color: var(--text-2); }


.chal-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }

.chal-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.chal-card-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 16px 18px; }
.chal-about-text { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.chal-card-panel h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.chal-card-subhead { margin-top: 16px !important; }
.chal-rules { display: grid; gap: 9px; }
.chal-rule { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.chal-rule-ico { flex: 0 0 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--brand-1) 18%, var(--surface-2)); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px; }
.chal-rule-plat { background-image: url("/images/trophies/platinum.png"); background-size: auto 16px; background-position: center; background-repeat: no-repeat; background-color: var(--surface-2); }
.chal-games-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chal-gs { position: relative; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--icon-plate); }
.chal-gs img { width: 100%; height: 100%; object-fit: cover; }
.chal-gs .cw-tile-ph { width: 100%; height: 100%; }
.chal-gs.is-done::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(18, 30, 24, 0.62); color: var(--success); font-weight: 800; font-size: 16px; }
.chal-progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.chal-progress-big { font-family: var(--font-sans); font-size: 26px; font-weight: 800; }
.chal-progress-big small { font-size: 14px; color: var(--text-3); font-weight: 600; }
.chal-progress-rank { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.chal-progress-bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 8px; }
.chal-progress-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }
.chal-progress-note { font-size: 12px; color: var(--text-muted); }
.chal-wall { display: flex; flex-wrap: wrap; gap: 8px; }
.chal-wall-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); }
.chal-wall-more { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-3); }


.chal-game-search-row { justify-content: flex-start; }
.chal-game-search-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chal-game-search-plats { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.chal-game-search-plats .platform-badge { margin-bottom: 0; }


.chal-lb-list { display: grid; gap: 6px; }
.chal-lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: inherit; text-decoration: none; }
a.chal-lb-row:hover { border-color: color-mix(in srgb, var(--brand-1) 40%, var(--border)); }
.chal-lb-row.is-you { border-color: color-mix(in srgb, var(--brand-1) 55%, var(--border)); background: color-mix(in srgb, var(--brand-1) 10%, var(--surface)); }
.chal-lb-rank { width: 30px; flex-shrink: 0; font-family: var(--font-sans); font-size: 15px; font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chal-lb-rank.m1 { color: var(--gold); }
.chal-lb-rank.m2 { color: #b9c4d6; }
html[data-theme="light"] .chal-lb-rank.m2 { color: #7e8da3; }
.chal-lb-rank.m3 { color: #c98a5a; }
.chal-lb-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.chal-lb-name { flex: 1; min-width: 0; overflow: hidden; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.chal-lb-prog { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chal-lb-segs { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; max-width: 210px; }
.chal-lb-seg { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); }
.chal-lb-seg.on { background: var(--success); border-color: var(--success); }
.chal-lb-bar { display: block; width: 120px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.chal-lb-bar i { display: block; height: 100%; border-radius: 999px; background: var(--success); }
.chal-lb-score { min-width: 52px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.chal-lb-bigplats { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.chal-lb-bigplats small { font-size: 11px; font-weight: 600; color: var(--text-3); }
.chal-lb-when { width: 108px; flex-shrink: 0; text-align: right; font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.chal-lb-rank-none { color: var(--text-muted); }
.chal-lb-noeligible { flex: 1; min-width: 0; text-align: right; font-size: 12px; color: var(--text-muted); }

.chal-lb-rank.is-noplace { width: auto; min-width: 30px; font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.chal-lb-row.is-unplaced { background: transparent; }
.chal-lb-row.is-unplaced.is-you { background: color-mix(in srgb, var(--brand-1) 10%, var(--surface)); }
.chal-lb-row.is-unplaced .chal-lb-name,
.chal-lb-row.is-unplaced .chal-lb-bigplats,
.chal-lb-row.is-unplaced .chal-lb-team-score { color: var(--text-3); }

.chal-lb-ask { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: flex-end; min-width: 172px; }
.chal-lb-name.is-held { flex-wrap: wrap; row-gap: 4px; }
.chal-lb-list > .chal-lb-row { min-width: 0; }


.chal-editor-title { margin: 20px 0 16px; font-size: 22px; }
.chal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.chal-field-wide { grid-column: 1 / -1; }
.chal-team-select { margin-top: 10px; max-width: 320px; }
.chal-cap-field { margin-top: 10px; max-width: 240px; }
.chal-check-field { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-2); }
.chal-check-field input { width: auto; min-height: 0; accent-color: var(--accent); }
.chal-form-foot { margin-top: 6px; }

.chal-games-card { margin-top: 16px; }
.chal-game-search { position: relative; margin: 10px 0 12px; }
.chal-game-search input { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; }
.chal-game-search input:focus { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.chal-game-search-results { margin-top: 6px; display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.chal-game-search-row { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.chal-game-search-row:hover { border-color: var(--brand-1); }
.chal-game-search-row img { width: 28px; height: 28px; border-radius: 4px; object-fit: contain; background: var(--icon-plate); flex-shrink: 0; }
.chal-game-search-loading, .chal-game-search-empty { padding: 8px; color: var(--text-muted); font-size: 12px; }
.chal-publish-row { display: flex; align-items: center; gap: 12px; justify-content: flex-end; margin-top: 16px; }
.chal-publish-row .tp-hint { margin: 0; margin-right: auto; }


.chal-team-topn-field { margin-top: 10px; max-width: 220px; }

.chal-board-panel { display: none; }
.chal-board-panel.on { display: block; }

.chal-team-enroll-box { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.chal-team-enroll-head { margin: 0 0 8px; font-size: 13px; }
.chal-team-enroll-hint { margin: 0; color: var(--text-muted); font-size: 12.5px; }
.chal-team-enroll-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.chal-team-enroll-row:first-of-type { border-top: 0; padding-top: 0; }
.chal-team-enroll-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.chal-team-enroll-state { flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.chal-team-enroll-status { display: block; margin-top: 8px; color: var(--accent-hover); font-size: 12.5px; }
.chal-team-enroll-status:empty { display: none; }

.chal-lb-team-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.chal-lb-team-copy .chal-lb-name { flex: 0 1 auto; }
.chal-lb-contributors { color: var(--text-muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chal-lb-team-score { color: var(--text-2); }

.chal-audience-pill { align-self: flex-start; }




.chal-invite-box { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.chal-invite-head { margin: 0 0 4px; font-size: 13px; }
.chal-invite-hint { margin: 0 0 10px; color: var(--text-muted); font-size: 12.5px; }
.chal-invite-form { display: flex; align-items: center; gap: 8px; }
.chal-invite-form input { flex: 0 1 360px; min-width: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; color: var(--text); padding: 8px 12px; font-size: 13.5px; font-family: inherit; }
.chal-invite-status { display: block; margin-top: 8px; color: var(--accent-hover); font-size: 12.5px; }
.chal-invite-status:empty { display: none; }
.chal-invite-list { display: grid; gap: 8px; margin-top: 12px; }
.chal-invite-empty { color: var(--text-muted); font-size: 12.5px; }
.chal-invite-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.chal-invite-row:first-child { border-top: 0; padding-top: 0; }
.chal-invite-face { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.chal-invite-face-empty { display: inline-block; }
.chal-invite-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }


.cwk-strikes-card { margin-top: 18px; }


.cwk-suspend-card { margin-top: 18px; }

@media (max-width: 700px) {
    .chal-grid { grid-template-columns: 1fr; }
    .chal-fields { grid-template-columns: 1fr; }
    .chal-cols { grid-template-columns: 1fr; }
    .chal-hero-inner { padding: 22px 18px 20px; }
    .chal-titlerow h1 { font-size: 23px; }
    .chal-wr-big { font-size: 27px; }
}
@media (max-width: 560px) {
    .chal-lb-when { display: none; }
    .chal-lb-segs { max-width: 120px; }
    .chal-publish-row { flex-wrap: wrap; }
    
    .chal-lb-row.has-ask { flex-wrap: wrap; row-gap: 6px; }
    .chal-lb-ask { flex-basis: 100%; min-width: 0; justify-content: flex-start; padding-left: 86px; }
    .chal-lb-ask:empty { display: none; }
}


.gd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    color: var(--text-muted);
    font-size: 12.5px;
}
.gd-breadcrumb a { color: var(--text-3); text-decoration: none; }
.gd-breadcrumb a:hover { color: var(--text); }
.gd-breadcrumb strong { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-breadcrumb span { color: var(--border); }

.gd-hero {
    --gd-artwork: none;
    position: relative;
    isolation: isolate;
    min-height: var(--profile-pill-height);
    overflow: hidden;
    border: 1px solid rgba(140, 143, 147, 0.28);
    border-radius: 18px;
    background: linear-gradient(135deg, #191e24, #080c11 65%);
}
:where(html[data-theme="light"]) .gd-hero { border: 1px solid rgba(112, 137, 191, 0.28); background: linear-gradient(135deg, #11182b, #090d19 65%); }
.gd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--gd-artwork);
    background-position: var(--gd-artwork-pos, center 30%);
    background-size: cover;
    transform: scale(var(--gd-artwork-zoom, 1.015));
    transform-origin: var(--gd-artwork-pos, center 30%);
}
.gd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(4, 6, 10, 0.96) 0%, rgba(4, 6, 10, 0.86) 35%, rgba(4, 6, 10, 0.48) 64%, rgba(4, 6, 10, 0.2) 100%),
                linear-gradient(0deg, rgba(4, 6, 10, 0.82), transparent 58%);
}
:where(html[data-theme="light"]) .gd-hero::after { background: linear-gradient(90deg, rgba(5,8,18,.96) 0%, rgba(5,8,18,.86) 35%, rgba(5,8,18,.48) 64%, rgba(5,8,18,.2) 100%), linear-gradient(0deg, rgba(4,7,15,.82), transparent 58%); }

@media (min-width: 761px) {
    .gd-hero::after {
        background:
            linear-gradient(90deg, rgba(4, 6, 10, .86) 0%, rgba(4, 6, 10, .6) 400px, rgba(4, 6, 10, .14) 680px, rgba(4, 6, 10, 0) 900px),
            linear-gradient(0deg, rgba(4, 6, 10, .74) 0%, rgba(4, 6, 10, 0) 36%);
    }
}
.gd-hero:not(.has-artwork)::after { background: var(--dark-flat, radial-gradient(circle at 85% 20%, rgba(134,215,236,.12), transparent 42%), linear-gradient(90deg, rgba(5,8,18,.92), rgba(10,15,28,.76))); }
.gd-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(720px, 68%);
    min-height: calc(var(--profile-pill-height) - 72px);
    box-sizing: border-box;
    padding: 31px 34px;
}
.gd-game-icon {
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    border: 1px solid rgba(196, 200, 204, 0.32);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 5px 20px rgba(0,0,0,.5);
    object-fit: cover;
}
:where(html[data-theme="light"]) .gd-game-icon { border: 1px solid rgba(180,200,238,.32); }


img.game-art-fit {
    
    object-fit: contain !important;
    object-position: center;
    background-color: var(--icon-plate);
}


img.game-icon-fallback {
    object-fit: cover !important;
    object-position: center !important;
}
.gd-hero-copy { min-width: 0; flex: 1; }
.gd-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.gd-title-row h1 { margin: 0; color: var(--text); font-size: clamp(22px, 2.25vw, 29px); line-height: 1.14; letter-spacing: -.025em; text-shadow: 0 2px 12px rgba(0,0,0,.75); }

.shovelware-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
}
.shovelware-badge img { flex-shrink: 0; width: 14px; height: 14px; object-fit: contain; }

html[data-theme="light"] .shovelware-badge { color: var(--text-2); }
html[data-theme="light"] .shovelware-badge img { filter: brightness(0.4); }

html[data-theme="light"] .gd-hero .shovelware-badge {
    background: #1a2440;
    border-color: #24304f;
}
html[data-theme="light"] .gd-hero .shovelware-badge img { filter: none; }


.dropdown-item[hidden] { display: none; }

.dropdown-item.dropdown-sep { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.swf-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.5;
}
.swf-note[hidden] { display: none; }
.swf-note img { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; opacity: .8; }
html[data-theme="light"] .swf-note img { filter: brightness(0.4); }
.swf-note p { margin: 0; }
.swf-note b { color: var(--text); font-weight: 650; }
.swf-note .swf-sub { margin-top: 4px; color: var(--text-muted); font-size: 13px; }

.di-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rail-btn img { width: 22px; height: 22px; object-fit: contain; display: block; }
html[data-theme="light"] .di-icon img, html[data-theme="light"] .rail-btn img { filter: brightness(0.4); }

.swf-pill-inline { display: inline-flex; flex-shrink: 0; }
.swf-pill-line { display: none; margin: 2px 0 4px; }
@media (max-width: 599px) {
    .swf-pill-inline { display: none; }
    .swf-pill-line { display: block; }
}

.gd-title-row .platform-badge { margin-bottom: 0; }

.gd-timeline { margin: 8px 0 0; color: var(--dark-text-soft, #aeb7c9); font-size: 12px; text-shadow: 0 1px 8px rgba(0,0,0,.8); clip-path: inset(-12px -12px -12px 0); }
.gd-timeline-items { display: flex; flex-wrap: wrap; align-items: center; margin-left: -18px; }
.gd-timeline .gd-tl { display: inline-flex; white-space: nowrap; }
.gd-timeline .gd-timeline-sep { display: inline-block; width: 18px; text-align: center; color: rgba(180, 183, 187, 0.45); }
:where(html[data-theme="light"]) .gd-timeline .gd-timeline-sep { color: rgba(174, 183, 201, .45); }
.gd-timeline .gd-milestone-platinum {
    background: var(--platinum-gradient);
    background-clip: text;
    color: transparent;
    font-weight: 700;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gd-timeline .gd-milestone-complete { color: var(--success); font-weight: 700; }
.gd-playtime-pill { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.gd-playtime-pill strong { color: #fff; font-variant-numeric: tabular-nums; }
.gd-progress-row { display: flex; align-items: center; gap: 11px; margin-top: 16px; color: var(--dark-text-soft, #aeb7c9); font-size: 12px; }
.gd-progress-row strong { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.gd-progress-track { width: min(320px, 52%); height: 7px; overflow: hidden; border-radius: var(--radius-full); background: rgba(196, 200, 204, 0.17); }
:where(html[data-theme="light"]) .gd-progress-track { background: rgba(180,200,238,.17); }
.gd-progress-track > div { height: 100%; border-radius: inherit; background: var(--brand-gradient); }

.gd-trophy-dock {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1.15fr repeat(4, 1fr);
    min-height: 72px;
    border-top: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(25, 30, 36, 0.38), rgba(15, 20, 25, 0.52));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    backdrop-filter: blur(22px) saturate(1.5);
}
:where(html[data-theme="light"]) .gd-trophy-dock { background: linear-gradient(180deg, rgba(23,32,58,.38), rgba(11,16,30,.52)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .gd-trophy-dock { background: rgba(4, 6, 10, 0.8); }
    :where(html[data-theme="light"]) .gd-trophy-dock { background: rgba(5,9,19,.8); }
}
.gd-trophy-stat { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 10px; border-left: 1px solid rgba(255,255,255,.07); }
.gd-trophy-stat:first-child { justify-content: flex-start; padding-left: 34px; border-left: 0; }
.gd-trophy-stat img { width: 25px; height: 25px; object-fit: contain; }
.gd-trophy-stat span { display: grid; gap: 2px; }
.gd-trophy-stat strong { color: #f4f7ff; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; }
.gd-trophy-stat small { color: rgba(224, 227, 232, 0.6); font-size: 9px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
:where(html[data-theme="light"]) .gd-trophy-stat small { color: rgba(219,227,244,.6); }

.gd-insights { display: flex; flex-wrap: wrap; gap: 10px; min-height: 0; margin-top: 14px; }
.gd-insight {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--text-3);
    font: inherit;
    font-size: 12.5px;
    cursor: default;
}
.gd-insight[data-gd-scroll] { cursor: pointer; }
.gd-insight[data-gd-scroll]:hover { border-color: var(--brand-2); color: var(--text); }
.gd-insight strong { color: var(--text); font-variant-numeric: tabular-nums; }
.gd-insight small { color: var(--text-muted); font-size: 11.5px; }
.gd-insight b { color: var(--brand-2); font-size: 15px; }


.pr-band {
    display: flex; align-items: stretch; flex-wrap: wrap; gap: 0;
    padding: 14px 18px;
    border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.pr-cell {
    display: flex; flex-direction: column; gap: 4px; justify-content: center;
    min-width: 150px; min-height: 60px; padding: 2px 22px;
    border-left: 1px solid var(--border);
}
.pr-cell:first-child { border-left: 0; padding-left: 4px; }
.pr-label { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.pr-fig { display: flex; align-items: baseline; gap: 4px; line-height: 1; font-variant-numeric: tabular-nums; }
.pr-fig strong { font-size: 21px; font-weight: 800; color: var(--text); }
.pr-fig span { font-size: 12px; font-weight: 650; color: var(--text-muted); }
.pr-evidence { font-size: 11.5px; color: var(--text-muted); }
.pr-evidence a { color: var(--brand-2); font-weight: 700; text-decoration: none; cursor: pointer; }
.pr-evidence a:hover { text-decoration: underline; }
.pr-cell.is-empty .pr-fig strong { color: var(--text-muted); font-weight: 700; }

.pr-ticks { display: inline-flex; gap: 3px; margin-top: 2px; }
.pr-ticks i { width: 9px; height: 12px; border-radius: 2px; background: var(--surface-3); }


.dz-fill { background: var(--dz); border-color: transparent; color: #0f1419; }
.dz-text { color: var(--dz); }
html[data-theme="light"] .dz-text { color: var(--dzl); }
html[data-theme="light"] .gd-hero .dz-text { color: var(--dz); }
.chipline.dz-line { border-color: color-mix(in srgb, currentColor 45%, transparent); }
.dz-ticks { --dz-mark: var(--dz); }
html[data-theme="light"] .dz-ticks { --dz-mark: var(--dzl); }
html[data-theme="light"] .gd-hero .dz-ticks { --dz-mark: var(--dz); }
.pr-ticks i.on { background: var(--dz-mark); }
.pr-ticks i.half { background: linear-gradient(90deg, var(--dz-mark) 50%, var(--surface-3) 50%); }


.act-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
    border: 1px solid var(--border-hover); border-radius: 8px; background: var(--surface-2);
    color: var(--text); font: inherit; font-size: 13px; font-weight: 700;
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.act-btn .plus { color: var(--brand-2); font-size: 15px; font-weight: 800; line-height: 1; }
.act-btn:hover { border-color: var(--brand-2); }
.act-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.act-btn.is-saved { border-color: var(--border); background: transparent; color: var(--success); cursor: default; }
.act-btn.is-saved .plus { color: var(--success); }
.act-btn:disabled { border-color: var(--border); background: transparent; color: var(--text-muted); cursor: default; }

@media (max-width: 720px) {
    .pr-band { padding: 12px 14px; }
    .pr-cell { min-width: 130px; padding: 2px 14px; }
}


@media (max-width: 430px) {
    .pr-cell { min-width: 100%; padding: 8px 4px; border-left: 0; border-top: 1px solid var(--border); }
    .pr-cell:first-child { border-top: 0; padding-top: 2px; }
    .pr-evidence { overflow-wrap: anywhere; }
}

.gd-toolbar-btn {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 12.5px;
}
.gd-toolbar-btn:hover { border-color: var(--brand-2); color: var(--text); background: transparent; }
.gd-toolbar-btn:disabled { opacity: .42; cursor: not-allowed; }

.gd-rail-card { padding: 14px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.gd-rail-title { margin: 0 0 12px; color: var(--text-3); font-size: 12.5px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.gd-rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gd-rail-head .gd-rail-title { margin-bottom: 12px; }
.gd-add-guide { color: var(--brand-2); font-size: 11.5px; font-weight: 650; text-decoration: none; }
.gd-add-guide:hover { color: var(--text); }

.gd-rail-actions { display: inline-flex; align-items: baseline; gap: 12px; }
.gd-guide-count { color: var(--text-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.gd-guide-row { display: block; padding: 9px 2px; border-top: 1px solid var(--border); color: inherit; text-decoration: none; }
.gd-guide-row:first-of-type { border-top: 0; }
.gd-guide-row:hover strong { color: var(--brand-2); }
.gd-guide-row strong { display: block; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.35; }
.gd-guide-row small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11px; }

.gd-guide-row small b { color: var(--gold); font-weight: 700; }

.gd-guide-row .scope-badge-line { border-color: rgba(134, 215, 236, 0.5); color: var(--brand-2); }

.gd-guide-empty { padding: 2px 0 2px; }
.gd-guide-empty p { margin: 0 0 11px; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.gd-guide-empty p b { color: var(--text); }
.gd-rail-empty { padding: 7px 8px; color: var(--text-muted); font-size: 12px; }

.gd-data-error {
    min-height: 180px;
    display: grid;
    place-content: center;
    gap: 6px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-muted);
    text-align: center;
    background: rgba(15, 20, 25, 0.72);
}
:where(html[data-theme="light"]) .gd-data-error { background: rgba(13, 21, 39, .72); }

.gd-data-error strong { color: var(--text); font-size: 16px; }

.gd-data-error .btn { justify-self: center; margin-top: 6px; }

html[data-theme="light"] .gd-data-error { background: var(--surface); }

.gd-player-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 6px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.gd-player-row:hover { background: var(--surface-2); }
.gd-player-avatar-wrap { position: relative; width: 32px; height: 32px; flex-shrink: 0; }
.gd-player-avatar { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); object-fit: cover; }
.gd-player-copy { display: grid; min-width: 0; flex: 1; }
.gd-player-copy strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.gd-player-copy small { color: var(--text-muted); font-size: 10.5px; }
.gd-player-progress { width: 100%; height: 3px; margin-top: 4px; overflow: hidden; border-radius: var(--radius-full); background: var(--border); }
.gd-player-progress i { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }
.gd-player-score { display: grid; justify-items: end; flex-shrink: 0; }
.gd-player-score strong { color: var(--text-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.gd-player-score small { color: var(--text-muted); font-size: 9.5px; white-space: nowrap; }


.gd-players-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.gg-side-panel .gd-players-head .panel-title { margin: 0; }
.gd-players-seg { display: inline-flex; align-items: center; margin-left: auto; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.gd-players-seg button { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.gd-players-seg button:hover { color: var(--text-2); }
.gd-players-seg button[aria-selected="true"] { background: color-mix(in srgb, var(--brand-1) 18%, var(--surface)); color: var(--text); }
.gd-players-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gd-players-count { color: var(--text-muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gd-players-seg button[aria-selected="true"] .gd-players-count { color: var(--text-2); }

.gd-players-empty { margin: 0; padding: 10px 6px 4px; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }

.gd-players-more { display: block; width: 100%; margin-top: 4px; padding: 7px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
.gd-players-more:hover { background: var(--surface-2); color: var(--text); }
.gd-players-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


.gd-players-dialog {
    display: flex; flex-direction: column; width: min(420px, 100%); max-height: min(640px, calc(100vh - 40px));
    box-sizing: border-box; padding: 20px 16px 12px; border: 1px solid var(--border); border-radius: 14px;
    background: var(--surface); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.gd-players-dialog.has-filter { height: min(640px, calc(100vh - 40px)); }
.gd-players-dialog-head { display: flex; align-items: flex-start; gap: 12px; padding: 0 4px 14px; }
.gd-players-dialog-head > div { flex: 1; min-width: 0; }
.gd-players-dialog-head h2 { margin: 0; color: var(--text); font-size: 17px; }
.gd-players-dialog-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 12.5px; }
.gd-players-close { display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -4px 0 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; }
.gd-players-close:hover { background: var(--surface-2); color: var(--text); }
.gd-players-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gd-players-filter {
    width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 8px 10px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: inherit; font-size: 13px;
}
.gd-players-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gd-players-dialog-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 6px 4px 0; border-top: 1px solid var(--border); }
@media (max-width: 520px) {
    #followedPlayersModal.confirm-overlay { padding: 12px; }
    .gd-players-dialog { max-height: calc(100vh - 24px); }
    .gd-players-dialog.has-filter { height: calc(100vh - 24px); }
}


html[data-theme="light"] #gameView .trophy-group { background: var(--surface); }

#gameView .gp-progress-list .group-name { margin-bottom: 7px; font-size: 15px; font-weight: 700; }
#gameView .gp-progress-list .group-bar { max-width: 420px; height: 5px; background: var(--surface-2); }
#gameView .gp-progress-list .group-progress { display: flex; align-items: center; gap: 8px; max-width: 420px; }
#gameView .gp-progress-list .group-progress .group-bar { flex: 1; min-width: 0; }
#gameView .gp-progress-list .group-percentage { flex-shrink: 0; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
#gameView .gp-progress-list .group-bar-fill { height: 5px; }
#gameView .gp-progress-list .group-count { font-size: 12.5px; }
#gameView .trophy-row.earned { border-color: var(--earned-border); background: var(--earned-bg); }
#gameView .trophy-row.unearned { opacity: .55; }

#gameView .trophy-row.signal-gone { border-color: #7a3247; background: #2a1220; opacity: 1; }
#gameView .trophy-row.signal-closing { border-color: #7a5a2f; background: #2a2113; opacity: 1; }
#gameView .trophy-row.signal-gone:hover { border-color: #a8455f; }
#gameView .trophy-row.signal-closing:hover { border-color: #b3843f; }

html[data-theme="light"] #gameView .trophy-row.signal-gone {
    border-color: color-mix(in srgb, var(--danger) 42%, var(--border));
    background: color-mix(in srgb, var(--danger) 11%, var(--surface));
}
html[data-theme="light"] #gameView .trophy-row.signal-closing {
    border-color: color-mix(in srgb, var(--caution) 42%, var(--border));
    background: color-mix(in srgb, var(--caution) 12%, var(--surface));
}
html[data-theme="light"] #gameView .trophy-row.signal-gone:hover { border-color: var(--danger); }
html[data-theme="light"] #gameView .trophy-row.signal-closing:hover { border-color: var(--caution); }
#gameView .gp-progress-list .trophy-date { color: #5d92ab; font-size: 11px; }
#gameView .gp-progress-list .platinum-rarity-glow { color: var(--brand-2); font-weight: 700; text-shadow: 0 0 10px rgba(134,215,236,.65); }
#gameView .gp-progress-list .trophy-pin-btn { border-color: transparent; background: transparent; border-radius: 6px; }
#gameView .gp-progress-list .trophy-pin-btn:hover { border-color: var(--border); color: var(--brand-2); }
#gameView .gp-progress-list .trophy-pin-btn.is-pinned { border-color: var(--brand-2); background: rgba(134,215,236,.12); color: var(--brand-2); }
.gd-group-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 9px 0; border: 1px dashed var(--border); border-radius: 10px; background: transparent; color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.gd-group-toggle:hover { border-color: var(--brand-2); color: var(--text); }
.gd-group-toggle span { color: var(--brand-2); }
@media (prefers-reduced-motion: reduce) {
    #gameView .gp-progress-list .platinum-glow { animation: none; }
}
@media (max-width: 760px) {
    .gd-breadcrumb { min-height: 44px; }
    .gd-hero-main { width: 100%; min-height: 0; align-items: flex-start; padding: 25px 20px 180px; }
    .gd-game-icon { width: 70px; height: 70px; }
    .gd-progress-row { flex-wrap: wrap; }
    .gd-progress-track { width: 100%; max-width: none; flex-basis: 100%; }
    .gd-trophy-dock { grid-template-columns: repeat(2, 1fr); }
    .gd-trophy-stat, .gd-trophy-stat:first-child { justify-content: flex-start; min-height: 54px; padding: 9px 12px; border-top: 1px solid rgba(255,255,255,.07); border-left: 1px solid rgba(255,255,255,.07); }
    .gd-trophy-stat:first-child { grid-column: 1 / -1; border-left: 0; }
    .gd-trophy-stat:nth-child(even) { border-left: 0; }
    
    #gameView .gp-progress-list .trophy-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 72px);
        grid-template-areas:
            "icon info pin type"
            "icon info pin rarity"
            "icon info pin tier"
            "icon info pin tip";
        align-items: center;
        column-gap: 12px;
        row-gap: 2px;
    }
    #gameView .gp-progress-list .trophy-row-icon { grid-area: icon; align-self: center; }
    #gameView .gp-progress-list .trophy-row-info { grid-area: info; align-self: center; min-width: 0; }
    #gameView .gp-progress-list .trophy-pin-btn { grid-area: pin; align-self: center; }
    #gameView .gp-progress-list .trophy-type-img { grid-area: type; justify-self: center; }
    #gameView .gp-progress-list .trophy-rarity {
        grid-area: rarity;
        justify-self: center;
        width: auto;
        margin-left: 0;
        text-align: center;
    }
    
    #gameView .gp-progress-list .trophy-rarity-tier {
        display: block;
        grid-area: tier;
        justify-self: center;
        width: auto;
        max-width: 72px;
        text-align: center;
        font-size: 10.5px;
        letter-spacing: .035em;
    }
    #gameView .gp-progress-list .trophy-tip-trigger { grid-area: tip; justify-self: center; align-self: start; }
}


@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 500;
    font-display: optional;
    src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 600;
    font-display: optional;
    src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Public Sans";
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2");
}


@font-face {
    font-family: "Commissioner";
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url("fonts/commissioner-latin-700-normal.woff2") format("woff2");
}

* {
    box-sizing: border-box;
}


textarea {
    resize: vertical;
    max-width: 100%;
    min-height: 64px;
    max-height: 160px;
    overflow-y: auto;
}


:where(html:not([data-theme="light"])) :where(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], select, textarea) {
    --border: var(--dark-field-edge);
    --border-hover: var(--text-muted);
}

    
    
    :focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        border-radius: 2px;
    }
    button:focus-visible, a:focus-visible {
        border-radius: inherit;
    }

    
    html {
        scrollbar-color: var(--dark-border, #2a3550) var(--bg); 
        scrollbar-width: thin;
        
        scrollbar-gutter: stable;
        
        overflow-x: clip;
    }

    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--dark-border, #2a3550);
        border-radius: 5px;
        border: 2px solid var(--bg);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--dark-border-hover, #3a4a6a);
    }

    
    .role-preview-bar {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 10000;
        display: grid;
        gap: 5px;
        min-width: 230px;
        padding: 11px 12px;
        color: var(--text);
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        border: 1px solid var(--border);
        border-radius: 10px;
        box-shadow: var(--shadow-2);
        backdrop-filter: blur(12px);
    }
    .role-preview-bar[hidden] { display: none; }
    .role-preview-bar.is-active {
        border-color: #f3a63a;
        box-shadow: 0 0 0 1px rgba(243, 166, 58, 0.18), var(--shadow-2);
    }
    .role-preview-bar label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 12px;
        font-weight: 700;
    }
    .role-preview-bar select {
        min-width: 116px;
        padding: 6px 8px;
        color: var(--text);
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: 7px;
        font: inherit;
    }
    .role-preview-bar small {
        color: var(--text-muted);
        font-size: 10px;
    }
    .role-preview-bar.is-active small { color: #f3a63a; }

    
    
    #topNav {
        display: flex;
        align-items: center;
        margin: -40px calc(50% - 50vw) 22px;
        padding: 18px max(40px, calc(50vw - 680px)) 16px;
        background: var(--dark-bg, var(--surface));
        border-bottom: 1px solid var(--dark-surface, var(--border));
        box-shadow: var(--shadow-1);
    }

    
    #navLinks { display: contents; }

    #homeLogo {
        position: relative;
        display: flex;
        align-items: center;
        cursor: pointer;
        width: 101px;
        height: 29px;
        flex: 0 0 auto;
        overflow: hidden;
        color: inherit;
        text-decoration: none;
    }

    #homeLogo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    
    .sync-line {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 3px 0 0;
        font-size: 12px;   
        color: var(--text-muted);    
    }

    
    .sync-rotator {
        position: relative;
        display: grid;
        align-items: center;
    }
    .sync-rotator > .sync-state {
        grid-area: 1 / 1;                 
        white-space: nowrap;              
        transition: opacity 0.35s ease;
    }
    .sync-rotator > .sync-state.is-out,
    .sync-rotator.is-swapping > .sync-state {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .sync-rotator.is-swapping {
        overflow-x: clip;
        transition: width 0.35s ease;
    }
    .sync-rotator.sync-anchor-end > .sync-state.is-out,
    .sync-rotator.sync-anchor-end.is-swapping > .sync-state {
        left: auto;
        right: 0;
    }
    .sync-state.is-hidden {
        opacity: 0;
    }

    .refresh-icon {
        background: transparent;
        border: none;
        color: var(--text-3);
        cursor: pointer;
        font-size: 16px;
        line-height: 1;
        padding: 2px 4px;
        border-radius: 4px;
    }

    .refresh-icon:hover {
        background: transparent;
        color: var(--text);
    }

    .refresh-icon.spinning { color: var(--text); }

    
    .refresh-glyph {
        display: inline-block;
    }
    .refresh-icon.spinning .refresh-glyph {
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    
    .panel-title {
        margin-bottom: 12px;
        color: var(--text-3);
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    
    .main-columns {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }

    .main-col {
        flex: 1;
        min-width: 0;
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }

    
    .filter-rail {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex-shrink: 0;
        position: sticky;
        top: 16px;
        align-self: flex-start;
        
        z-index: 30;
    }

    .list-col {
        flex: 1;
        min-width: 0;
    }

    
    .side-col {
        width: 300px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 24px;
        
        margin-top: 54px;
    }

    
    .pp-card {
        background: var(--surface);
        border: 1px solid var(--dark-card-edge, var(--border));
        border-radius: var(--radius-lg);
        padding: 12px;
    }
    
    .pp-marquee {
        position: relative;
        display: block;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface-2);
        text-decoration: none;
        transition: border-color 0.15s;
    }
    .pp-marquee:hover { border-color: var(--brand-1); }
    .pp-strip {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 8px 8px 0;
    }
    .pp-strip img {
        width: 100%;
        aspect-ratio: 1;
        border-radius: 6px;
        object-fit: cover;
        background: var(--surface);
        opacity: 0.85;
    }
    
    .pp-strip.is-loading i {
        display: block;
        width: 100%;
        aspect-ratio: 1;
        border-radius: 6px;
        background: var(--surface);
    }
    .pp-fade {
        position: absolute;
        top: 0; right: 0; bottom: 0;
        width: 84px;
        background: linear-gradient(90deg, transparent, var(--surface-2) 82%);
        pointer-events: none;
    }
    .pp-marquee-row {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 12px 10px;
    }
    .pp-marquee-row img { width: 16px; }
    .pp-marquee-row b { color: var(--text); font-size: 12.5px; font-weight: 800; }
    .pp-count {
        margin-left: auto;
        font-size: 14px;
        font-weight: 900;
        font-variant-numeric: tabular-nums;
        background: var(--brand-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .pp-arrow { color: var(--brand-2); font-weight: 800; }
    .pp-rows { display: flex; flex-direction: column; margin-top: 8px; }
    .pp-row {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 9px 4px;
        border: none;
        border-top: 1px solid var(--border);
        background: transparent;
        color: var(--text-2);
        font-family: inherit;
        font-size: 12.5px;
        font-weight: 600;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.15s;
    }
    .pp-rows .pp-row:first-child { border-top: none; }
    .pp-row svg {
        width: 16px; height: 16px;
        flex-shrink: 0;
        fill: none;
        stroke: var(--brand-2);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .pp-row:hover { color: var(--text); }
    
    .pp-val { margin-left: auto; color: var(--text-muted); font-size: 11.5px; }
    .pp-chev { color: var(--border); font-weight: 800; transition: color 0.15s; }
    .pp-row:hover .pp-chev { color: var(--brand-2); }
    
    .pp-compare svg { stroke: var(--accent); }

    
    .pp-marquee + .pp-marquee { margin-top: 8px; }
    .pp-recap-strip { display: block; padding: 10px 12px 0; }
    .pp-recap-strip svg { display: block; width: 100%; height: 34px; }
    .pp-recap-ends { display: flex; justify-content: space-between; padding: 3px 12px 0; font-size: 10px; font-weight: 600; color: var(--text-muted); }

    
    .hl-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 14px 12px;
    }
    .hl-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
    .hl-tab {
        flex: 1;
        padding: 5px 0;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: transparent;
        color: var(--text-3);
        font-size: 11.5px;
        font-family: inherit;
        cursor: pointer;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
    }
    .hl-tab:hover { border-color: var(--brand-2); color: var(--text); }
    .hl-tab.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
    .hl-tile { text-align: center; padding: 4px 4px 0; cursor: pointer; }
    .hl-thumb { position: relative; width: 64px; height: 64px; margin: 0 auto; }
    .hl-thumb > img:first-child {
        width: 64px; height: 64px;
        border-radius: 10px;
        object-fit: cover;
        display: block;
        background: var(--surface-2);
    }
    .hl-badge {
        position: absolute; left: -10px; bottom: -8px;
        width: 28px; height: 28px;
        object-fit: contain;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    }
    .hl-title {
        margin: 10px 0 2px;
        font-size: 14px; font-weight: 700; color: var(--text);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .hl-sub {
        margin: 0;
        font-size: 12px; color: var(--text-muted);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .hl-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0; }
    .hl-nav-spacer { height: 12px; }
    .hl-arrow {
        background: transparent; border: none;
        color: var(--text-3); font-size: 16px; line-height: 1;
        padding: 2px 6px; cursor: pointer; font-family: inherit;
    }
    .hl-arrow:hover { color: var(--text); }
    .hl-dots { display: flex; gap: 6px; }
    .hl-dot { width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: var(--border); }
    .hl-dot.is-active { background: var(--accent); }
    .hl-actions { display: flex; gap: 8px; }
    .hl-action {
        flex: 1;
        display: flex; align-items: center; justify-content: center; gap: 6px;
        padding: 7px 0;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-2);
        font-size: 12px;
        font-family: inherit;
        cursor: pointer;
        transition: border-color 0.15s, color 0.15s;
    }
    .hl-action:hover { border-color: var(--brand-2); color: var(--text); }
    .hl-action:disabled { opacity: 0.5; cursor: default; }
    .hl-action:disabled:hover { border-color: var(--border); color: var(--text-2); }
    .hl-action img { width: 14px; height: 14px; object-fit: contain; }
    .hl-empty { padding: 18px 8px; }

    
    .ff-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 14px 12px;
    }
    .ff-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        padding: 7px 8px;
        border: none;
        border-radius: 8px;
        background: transparent;
        text-align: left;
        font-family: inherit;
        cursor: pointer;
        transition: background 0.15s;
    }
    .ff-row:hover { background: var(--surface-2); }
    .ff-av { position: relative; flex-shrink: 0; line-height: 0; }
    .ff-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
    .ff-badge {
        position: absolute; right: -5px; bottom: -4px;
        width: 15px; height: 15px;
        object-fit: contain;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
        
        z-index: 3;
    }
    .ff-body { flex: 1; min-width: 0; }
    .ff-text { margin: 0; font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
    .ff-user { color: var(--text); font-weight: 600; }
    .ff-time { margin: 2px 0 0; font-size: 11px; color: var(--text-muted); }

    
    .closest-item {
        cursor: pointer;
    }

    
    .closest-meta {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: wrap;
        margin: 4px 0 0;
    }

    .closest-togo {
        margin: 3px 0 0;
        font-size: 11px;
        color: var(--text-3);
    }

    
    .dropdown {
        position: relative;
        display: inline-block;
    }

    
    .dropdown-btn:not(.panel-dropdown-btn):not(.rail-btn) {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--accent);
        padding: 8px 18px;
        border-radius: var(--radius-full);
        font-size: 13px;
        transition: background 0.2s;
    }
    .dropdown-btn:not(.panel-dropdown-btn):not(.rail-btn):hover {
        background: var(--accent);
        color: var(--accent-ink);
    }

    
    #pagination, .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        margin: 20px 0 8px;
    }

    
    .pagination-top { margin-bottom: 14px; }

    .list-head-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
    #paginationTop { margin: 0; }
    #paginationTop:empty { margin: 0; }

    #gamesPaginationTop { justify-content: flex-end; margin: 0 0 14px; }
    #gamesPaginationTop:empty { margin: 0; }

    .page-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-2);
        font-size: 13px;
        cursor: pointer;
    }

    .page-btn:hover:not(:disabled) { border-color: var(--border-hover); background: var(--surface-2); }
    .page-btn.active { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
    .page-btn:disabled { opacity: 0.35; cursor: default; }

    .page-ellipsis {
        color: var(--text-muted);
        font-size: 13px;
        padding: 0 2px;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        min-width: 210px;
        max-width: calc(100vw - 32px);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 4px;
        z-index: 40;
        box-shadow: 0 12px 34px rgba(0,0,0,0.5);
    }

    .dropdown-menu.open {
        display: block;
    }

    .dropdown-item {
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 13px;
        color: var(--text-2);
        cursor: pointer;
        white-space: nowrap;
    }

    .dropdown-item:hover {
        background: var(--border);
    }

    
    .dropdown-item:focus-visible {
        background: var(--border);
        outline-offset: -2px;
        border-radius: 6px;
    }

    
    @media (max-width: 760px) {
        
        .dropdown-menu.dropdown-menu-right { left: auto; right: 0; }
        .dropdown-item { overflow: hidden; text-overflow: ellipsis; }
        
        #countryDropMenu .dropdown-item .lb-country-name,
        #catGenreMenu .dropdown-item .cat-genre-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }

    
    .di-icon {
        display: inline-flex;
        width: 16px;
        height: 16px;
        margin-right: 8px;
        vertical-align: -3px;
    }
    .di-icon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    
    .rail-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--surface);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-2);
        transition: border-color 0.2s, background 0.2s;
    }
    .rail-btn:hover {
        border-color: var(--accent);
    }
    .rail-btn svg {
        width: 22px;
        height: 22px;
        display: block;
    }
    
    .rail-btn svg.icon-plat {
        width: 26px;
        height: 26px;
    }
    
    #sortDrop .dropdown-item.is-on {
        color: var(--text);
        font-weight: 700;
    }
    .sort-order {
        position: relative;
        display: flex;
        gap: 4px;
        margin: 13px 0 0;
        padding: 3px;
        border-radius: 8px;
        background: var(--surface-2);
        border: 1px solid var(--border);
    }
    .sort-order::before {
        content: "";
        position: absolute;
        left: -1px;
        right: -1px;
        top: -8px;
        height: 1px;
        background: var(--border);
    }
    .sort-order .dropdown-item.sort-order-opt {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 10px;
        font-weight: 600;
        color: var(--text-2);
    }
    .sort-order .sort-order-opt .di-icon {
        width: 14px;
        height: 14px;
        margin-right: 6px;
        vertical-align: 0;
    }
    .sort-order .dropdown-item.sort-order-opt[aria-checked="true"] {
        background: var(--accent);
        color: var(--accent-ink);
    }

    

    .club-hero {
        position: relative;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: var(--surface);
        box-shadow: var(--shadow-1);
    }
    
    html[data-theme="light"] .club-hero { background: #131a2e; }
    .club-art {
        position: absolute; inset: 0;
        background-size: cover; background-position: center 30%;
        filter: saturate(1.06);
    }
    
    .club-art::after {
        content: "";
        position: absolute; inset: 0;
        background: linear-gradient(180deg, rgba(4, 6, 10, 0.6), rgba(4, 6, 10, 0.84) 62%, rgba(25, 30, 36, 0.97));
    }
    :where(html[data-theme="light"]) .club-art::after { background: linear-gradient(180deg, rgba(4, 6, 10, .6), rgba(4, 6, 10, .84) 62%, rgba(19, 26, 46, .97)); }
    
    @media (min-width: 761px) {
        .club-art::after {
            background:
                linear-gradient(90deg, rgba(4, 6, 10, .84) 0%, rgba(4, 6, 10, .6) 400px, rgba(4, 6, 10, .12) 780px, rgba(4, 6, 10, 0) 1000px),
                linear-gradient(0deg, rgba(4, 6, 10, .62) 0%, rgba(4, 6, 10, 0) 36%);
        }
    }
    .club-inner :is(.club-kicker, .club-sub) { text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
    .club-inner {
        position: relative;
        padding: 26px 26px 20px;
        display: flex; align-items: center; gap: 18px;
    }
    .club-gicon {
        width: 76px; height: 76px; border-radius: 12px;
        object-fit: cover;
        border: 1px solid rgba(255,255,255,.14);
        box-shadow: var(--shadow-1);
        flex-shrink: 0;
    }
    .club-kicker {
        display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
        font-size: 12px; font-weight: 700; letter-spacing: .1em;
        text-transform: uppercase; color: var(--text-3);
        margin-bottom: 3px;
    }
    .club-kicker a { color: inherit; text-decoration: none; }
    .club-kicker a:hover { color: var(--brand-2); }
    .club-kicker .platform-badge { margin-bottom: 0; }
    .club-title-row { display: flex; align-items: center; gap: 11px; }
    .club-title {
        margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.01em;
        background: var(--platinum-gradient);
        -webkit-background-clip: text; background-clip: text; color: transparent;
        line-height: 1.1;
    }
    .club-title.is-100 {
        background: var(--hundred-gradient);
        -webkit-background-clip: text; background-clip: text;
    }
    .club-sub { margin: 6px 0 0; color: var(--text-2); font-size: 13.5px; }
    .club-sub b { color: var(--text); }

    
    .club-plat-icon { width: auto; height: 26px; filter: drop-shadow(0 0 7px rgba(134,215,236,.75)); }
    .club-plat-icon.sm { height: 16px; }
    .club-plat-icon.dim { filter: none; opacity: .55; }
    .club-seal { filter: drop-shadow(0 0 7px rgba(70,201,155,.65)); }
    .club-seal.dim { filter: none; opacity: .55; }

    
    .club-switch {
        display: flex; gap: 6px; margin-left: auto; align-self: flex-start;
        background: rgba(8, 12, 17, 0.55);
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        padding: 4px;
    }
    :where(html[data-theme="light"]) .club-switch { background: rgba(11,13,22,.55); }
    .club-switch button {
        display: flex; align-items: center; gap: 8px;
        font: inherit; font-size: 12.5px; font-weight: 700;
        color: var(--text-3);
        background: none; border: 0; border-radius: var(--radius-full);
        padding: 7px 14px; cursor: pointer;
    }
    .club-switch button.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
    
    html[data-theme="light"] .club-switch button.on {
        background: rgba(244,246,250,.14);
        box-shadow: inset 0 0 0 1px rgba(244,246,250,.25);
    }

    
    .club-scope {
        position: relative;
        display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
        padding: 0 26px 18px;
    }
    .club-scope .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-right: 2px; }
    
    .club-scope .chipline small { color: var(--text-muted); font-size: 11.5px; font-weight: 600; }
    
    .club-scope-more { font-family: inherit; cursor: pointer; color: var(--brand-2); }
    .club-scope-more:hover { border-color: var(--brand-1); }

    
    
    .club-stats {
        position: relative;
        display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14);
        background: linear-gradient(180deg, rgba(25, 30, 36, 0.38), rgba(15, 20, 25, 0.52));
        box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
        -webkit-backdrop-filter: blur(22px) saturate(1.5);
        backdrop-filter: blur(22px) saturate(1.5);
    }
    :where(html[data-theme="light"]) .club-stats { background: linear-gradient(180deg, rgba(23,32,58,.38), rgba(11,16,30,.52)); }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .club-stats { background: rgba(8, 12, 17, 0.45); }
        :where(html[data-theme="light"]) .club-stats { background: rgba(11,13,22,.45); }
    }
    .club-stat { flex: 1; min-width: 120px; padding: 13px 20px; border-right: 1px solid rgba(255,255,255,.07); }
    .club-stat:last-child { border-right: 0; }
    .club-stat b { display: block; font-size: 17px; font-weight: 800; }
    .club-stat span { font-size: 11.5px; color: var(--text-3); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

    
    html[data-theme="light"] .gd-trophy-dock,
    html[data-theme="light"] .club-stats {
        background: linear-gradient(180deg, rgba(255,255,255,.84), rgba(247,249,253,.78));
        border-top: 1px solid rgba(255,255,255,.9);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
        -webkit-backdrop-filter: blur(22px) saturate(1.6);
        backdrop-filter: blur(22px) saturate(1.6);
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        html[data-theme="light"] .gd-trophy-dock,
        html[data-theme="light"] .club-stats { background: rgba(247,249,253,.92); }
    }
    
    html[data-theme="light"] .gd-trophy-stat { border-color: rgba(23,32,58,.12); }
    html[data-theme="light"] .club-stat { border-color: rgba(23,32,58,.12); }
    
    html[data-theme="light"] .gd-trophy-stat strong,
    html[data-theme="light"] .club-stat b { color: #172033; }
    html[data-theme="light"] .gd-trophy-stat small,
    html[data-theme="light"] .club-stat span { color: #3c4761; }
    
    html[data-theme="light"] .gd-trophy-stat img { filter: drop-shadow(0 1px 2px rgba(23,32,58,.35)); }
    
    html[data-theme="light"] .game-community-stat b { color: #1f6c86; }

    
    .club-lens-tabs {
        display: flex; gap: 22px;
        margin: 22px 2px 14px;
        border-bottom: 1px solid var(--border);
    }
    .club-lens-tabs button {
        font: inherit; font-size: 13.5px; font-weight: 700;
        color: var(--text-3); background: none; border: 0;
        padding: 0 2px 10px; cursor: pointer;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
    }
    .club-lens-tabs button.on { color: var(--text); border-bottom-color: var(--brand-2); }
    .club-lens-tabs.green button.on { border-bottom-color: var(--success); }

    .club-list-head {
        display: flex; justify-content: space-between;
        font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
        color: var(--text-muted);
        padding: 0 18px 8px;
    }

    
    #platClubPagination:empty { margin: 0; }

    
    
    .club-first-chip {
        flex-shrink: 0;
        font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
        color: var(--dark-bg, #0b0d16); background: var(--platinum-gradient);
        padding: 2.5px 9px; border-radius: 4px;
    }
    .club-first-chip.green { background: var(--hundred-gradient); }

    @media (max-width: 760px) {
        .club-inner { flex-wrap: wrap; padding: 20px 18px 16px; }
        .club-switch { margin-left: 0; align-self: stretch; flex-wrap: wrap; }
        .club-stats { flex-wrap: wrap; }
        .club-stat { flex: 1 1 50%; border-right: 1px solid rgba(255,255,255,.07); }
        .club-stat:nth-child(2n) { border-right: 0; }
        .club-scope { padding: 0 18px 16px; }
        .club-lens-tabs { gap: 16px; }
    }

    
    .page-end-top {
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 148px;
        margin: 18px 0 4px auto;
        padding: 10px 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        background: var(--surface);
        color: var(--text-2);
        font: inherit;
        font-size: 12.5px;
        font-weight: 650;
        cursor: pointer;
        transition: border-color .15s, background .15s, color .15s, transform .15s;
    }
    .page-end-top svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .page-end-top:hover {
        border-color: var(--accent);
        background: var(--surface-2);
        color: var(--text);
        transform: translateY(-1px);
    }

    
    @keyframes pop {
        0% { transform: scale(1); }
        40% { transform: scale(1.02); }
        100% { transform: scale(1); }
    }

    .pop {
        animation: pop 0.35s ease;
    }

    @keyframes plat-pulse {
        0%, 100% { filter: drop-shadow(0 0 3px rgba(150, 200, 255, 0.6)); }
        50% { filter: drop-shadow(0 0 9px rgba(150, 200, 255, 1)); }
    }

    .platinum-glow {
        animation: plat-pulse 2.6s ease-in-out infinite;
    }

    
    
    #landing {
        min-height: calc(100vh - 80px);
    }

    
    
    .home-hero-band {
        position: relative;
        margin-top: 0;
        margin-bottom: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 400px;
        padding-bottom: 50px; 
        transition: --hero-pool .8s ease, --hero-strip .8s ease;
        
        background: #080c11;
        border: 1px solid var(--border);
        border-radius: 20px;
        overflow: hidden;
    }

    
    .home-hero-art {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }
    .home-hero-art img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
        opacity: 0;
        transition: opacity 2.4s ease;
        filter: saturate(1.06);
    }
    .home-hero-art img.show { opacity: 1; }
    
    @property --hero-pool {
        syntax: "<number>";
        inherits: true;
        initial-value: 1;
    }
    
    @property --hero-strip {
        syntax: "<number>";
        inherits: true;
        initial-value: .72;
    }
    
    @property --hero-cap-glow-dark {
        syntax: "<number>";
        inherits: true;
        initial-value: 0;
    }
    @property --hero-cap-glow-light {
        syntax: "<number>";
        inherits: true;
        initial-value: 0;
    }

    
    .home-hero-art::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(ellipse 40% 30% at 50% 35%, rgba(4, 6, 10, calc(.6 * var(--hero-pool, 1))) 0%, rgba(4, 6, 10, calc(.26 * var(--hero-pool, 1))) 62%, rgba(4, 6, 10, 0) 100%),
            linear-gradient(180deg, rgba(4, 6, 10, .18) 0%, rgba(4, 6, 10, 0) 20%);
    }
    :where(html[data-theme="light"]) .home-hero-art::after { background: radial-gradient(ellipse 40% 30% at 50% 35%, rgba(4, 6, 10, calc(.6 * var(--hero-pool, 1))) 0%, rgba(4, 6, 10, calc(.26 * var(--hero-pool, 1))) 62%, rgba(4, 6, 10, 0) 100%), linear-gradient(180deg, rgba(4, 6, 10, .18) 0%, rgba(4, 6, 10, 0) 20%); }

    
    @media (max-width: 900px) {
        .home-hero-art::after {
            background: radial-gradient(ellipse 70% 40% at 50% 34%, rgba(4, 6, 10, calc(.55 * var(--hero-pool, 1))) 0%, rgba(4, 6, 10, calc(.2 * var(--hero-pool, 1))) 70%, rgba(4, 6, 10, 0) 100%);
        }
    }

    
    .home-hero-strip {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        display: flex;
        justify-content: center;
        padding: 12px 24px;
        background: rgba(8, 12, 17, var(--hero-strip, .72));
        -webkit-backdrop-filter: blur(16px) saturate(1.2);
        backdrop-filter: blur(16px) saturate(1.2);
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .home-hero-strip .home-counters { margin: 0; justify-content: center; }
    .home-hero-strip .empty-state { padding: 0; }
    
    @media (max-width: 900px) {
        .home-hero-strip { padding-left: 14px; padding-right: 14px; }
        .home-counters { gap: 4px 14px; font-size: 12px; }
    }

    
    .home-hero-caption {
        position: absolute;
        right: 24px;
        bottom: 58px;
        margin: 0;
        font-size: 11.5px;
        color: var(--text-2);
        text-shadow: 0 0 2px rgba(0, 0, 0, .9), 0 1px 3px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .75), 0 0 28px rgba(0, 0, 0, .5);
        z-index: 2;
        transition: color 1.2s ease, text-shadow 1.2s ease, --hero-cap-glow-dark 1.2s ease, --hero-cap-glow-light 1.2s ease;
    }
    
    .home-hero-caption::before,
    .home-hero-caption::after {
        content: "";
        position: absolute;
        inset: -12px -18px;
        z-index: -1;
        border-radius: 999px;
        pointer-events: none;
        filter: blur(10px);
    }
    .home-hero-caption::before { background: rgba(4, 6, 10, var(--hero-cap-glow-dark, 0)); }
    .home-hero-caption::after { background: rgba(239, 243, 247, var(--hero-cap-glow-light, 0)); }
    .home-hero-caption a { color: var(--text); font-weight: 600; text-decoration: none; text-shadow: inherit; transition: color 1.2s ease; }
    .home-hero-caption a:hover { color: var(--text); }
    
    @media (max-width: 900px) {
        .home-hero-band { padding-bottom: 66px; }
        .home-hero-caption { bottom: 66px; }
    }
    .home-hero-caption.is-on-light,
    .home-hero-caption.is-on-light a {
        color: #0b0f14;
        text-shadow: 0 0 2px rgba(255, 255, 255, .9), 0 1px 3px rgba(255, 255, 255, .8), 0 0 14px rgba(255, 255, 255, .65), 0 0 28px rgba(255, 255, 255, .4);
    }

    .home-hero {
        position: relative;
        
        z-index: 3;
        max-width: 720px;
        width: 100%;
        margin: 0 auto;
        padding: 48px 20px 56px;
        text-align: center;
    }

    .home-title {
        margin: 0 0 24px;
        font-size: 46px;
        font-weight: 800;
        letter-spacing: -1px;
        line-height: 1.15;
        text-shadow: 0 2px 3px rgba(0, 0, 0, .45), 0 6px 28px rgba(0, 0, 0, .55);
    }

    .home-title-brand {
        background: var(--brand-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-family: var(--font-brand);
        font-weight: 700;
        letter-spacing: -.055em;
        
        text-shadow: none;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
    }

    
    .home-sync-panel {
        position: relative;
        min-height: 66px;
        border: 1px solid transparent;
        border-radius: var(--radius-lg);
        transition: min-height .46s cubic-bezier(.16,1,.3,1),
                    border-color .32s ease,
                    background .32s ease,
                    box-shadow .32s ease;
    }
    .home-sync-panel:not(.is-idle) {
        min-height: 160px;
        border-color: var(--border);
        background: var(--surface);
        box-shadow: 0 18px 44px rgba(4, 6, 10, 0.28);
    }
    :where(html[data-theme="light"]) .home-sync-panel:not(.is-idle) { box-shadow: 0 18px 44px rgba(4, 8, 18, .28); }
    .home-sync-panel:not(.is-idle).is-terminal {
        min-height: 198px;
    }
    .home-sync-panel:not(.is-idle).is-complete {
        min-height: 198px;
    }
    .home-sync-panel > .hero-search,
    .home-sync-panel > .sync-experience {
        position: absolute;
        inset: 0;
        width: 100%;
        box-sizing: border-box;
        transition: opacity .24s ease,
                    transform .46s cubic-bezier(.16,1,.3,1),
                    visibility .46s;
    }
    .home-sync-panel > .hero-search {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
    }
    .home-sync-panel > .sync-experience {
        inset: 20px 22px;
        width: auto;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    .home-sync-panel.is-idle > .hero-search {
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
    }
    .home-sync-panel.is-idle > .sync-experience {
        opacity: 0;
        transform: translateY(10px);
        visibility: hidden;
        pointer-events: none;
    }
    .home-sync-panel:not(.is-idle) > .hero-search {
        opacity: 0;
        transform: translateY(-8px) scale(.985);
        visibility: hidden;
        pointer-events: none;
    }

    .sync-experience {
        --sync-progress: 0%;
        display: grid;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        color: var(--text-2);
        text-align: left;
    }
    .sync-experience-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    .sync-experience-title {
        min-width: 0;
        overflow: hidden;
        color: var(--text);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -.01em;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sync-stage-plat {
        display: flex;
        
        flex: 0 1 auto;
        align-items: center;
        gap: 7px;
        min-width: 0;
    }
    .sync-plat-icon {
        width: auto;
        height: 16px;
        
        object-fit: contain;
    }
    .sync-experience[data-sync-state="running"] .sync-plat-icon {
        animation: sync-plat-pulse 2s ease-in-out infinite;
    }
    .sync-experience.is-failed .sync-plat-icon {
        filter: grayscale(1);
        opacity: .7;
    }
    @keyframes sync-plat-pulse {
        0%, 100% {
            transform: scale(1);
            filter: drop-shadow(0 0 0 rgba(134, 215, 236, 0));
        }
        50% {
            transform: scale(1.18);
            filter: drop-shadow(0 0 5px rgba(134, 215, 236, .55));
        }
    }
    .sync-factual-status {
        min-width: 0;
        overflow: hidden;
        color: var(--text-3);
        font-size: 11.5px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sync-experience.is-ready .sync-factual-status {
        color: var(--success);
    }
    .sync-experience.is-failed .sync-factual-status {
        color: var(--accent);
    }
    .sync-hero-stage {
        display: grid;
        place-items: center;
        
        min-height: 46px;
        text-align: center;
    }
    .sync-hero {
        max-width: 44ch;
        margin: 0;
        color: var(--text);
        font-size: 16.5px;
        font-weight: 650;
        letter-spacing: -.015em;
        line-height: 1.35;
    }
    .sync-experience.is-failed .sync-hero {
        color: var(--accent);
        
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .sync-bar {
        position: relative;
        height: 4px;
        border-radius: var(--radius-full);
        background: color-mix(in srgb, var(--border) 78%, transparent);
        overflow: hidden;
    }
    .sync-bar-fill {
        position: absolute;
        inset: 0 auto 0 0;
        width: var(--sync-progress);
        border-radius: inherit;
        background: var(--brand-gradient);
        transition: width .8s cubic-bezier(.16,1,.3,1);
    }
    
    .sync-experience[data-sync-state="running"] .sync-bar-fill::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(105deg, transparent 30%,
            rgba(255, 255, 255, .55) 50%, transparent 70%);
        background-size: 200% 100%;
        animation: sync-bar-shine 2.2s linear infinite;
        mix-blend-mode: overlay;
    }
    @keyframes sync-bar-shine {
        from { background-position: 180% 0; }
        to { background-position: -80% 0; }
    }
    .sync-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--text-muted);
        font-size: 11.5px;
        font-weight: 550;
    }
    .sync-shapes {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .sync-shape {
        display: block;
        width: auto;
        height: 13px;
        
        object-fit: contain;
        opacity: .22;
        filter: saturate(.4);
        transition: opacity .3s ease, filter .3s ease;
    }
    .sync-shape.is-on {
        opacity: 1;
        filter: none;
    }
    .sync-shape.is-current {
        animation: sync-shape-bob 1.6s ease-in-out infinite;
    }
    .sync-shape.is-failed {
        opacity: .82;
        filter: grayscale(1);
        animation: none;
    }
    @keyframes sync-shape-bob {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-3px); }
    }
    .sync-experience-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-height: 0;
    }
    .sync-experience.is-ready .sync-experience-actions,
    .sync-experience.is-failed .sync-experience-actions {
        min-height: 36px;
    }
    .sync-experience-actions .sync-action {
        display: none;
    }
    .sync-experience-actions .sync-action.is-visible {
        display: inline-flex;
        animation: sync-action-enter .34s cubic-bezier(.16,1,.3,1)
                    both;
    }
    @keyframes sync-action-enter {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .sync-profile-link {
        text-decoration: none;
    }
    .sync-retry {
        color: var(--accent);
        background: transparent;
    }

    .profile-sync-dialog {
        position: relative;
        width: min(560px, 100%);
        box-sizing: border-box;
        padding: 24px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
        box-shadow: var(--shadow-2);
        opacity: 0;
        transform: translateY(14px) scale(.985);
        transition: opacity .2s ease,
                    transform .38s cubic-bezier(.16,1,.3,1);
    }
    .profile-sync-close {
        position: absolute;
        z-index: 2;
        top: 12px;
        right: 12px;
        display: grid;
        place-items: center;
        width: 30px;
        height: 30px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 50%;
        color: var(--text-3);
        background: var(--surface-2);
        font: inherit;
        font-size: 18px;
        cursor: pointer;
    }
    .profile-sync-close:hover { color: var(--text); }
    .profile-sync-dialog .sync-experience { padding-top: 4px; }
    .profile-sync-dialog .sync-experience-head { padding-right: 30px; }
    .profile-sync-dismiss-note {
        margin: 14px 0 0;
        color: var(--text-muted);
        font-size: 10.5px;
        text-align: center;
    }
    #profileSyncModal {
        opacity: 0;
        transition: opacity .22s ease;
    }
    #profileSyncModal.is-open {
        opacity: 1;
    }
    #profileSyncModal.is-open .profile-sync-dialog {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    
    
    
    .home-counters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 20px;
        margin-top: 22px;
        min-height: 16px;
        font-size: 13px;
        line-height: 16px;
        color: var(--text-2);
    }
    .home-counter b { color: var(--text); font-variant-numeric: tabular-nums; }
    
    .home-counter-short { display: none; }

    .home-columns {
        display: flex;
        gap: var(--space-5);
        align-items: flex-start;
        padding-bottom: 60px;
    }

    .home-main {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: var(--space-6);
    }

    
    .home-rail {
        width: 300px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: var(--space-5);
        
        margin-top: 28px;
    }

    .home-section-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-3);
        margin-bottom: var(--space-3);
    }

    .home-section-title {
        margin: 0;
        font-size: 13px;
        line-height: 16px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--text-muted);
    }

    .home-section-link {
        font-size: 12.5px;
        color: var(--text-3);
        text-decoration: none;
        transition: color 0.2s;
    }
    .home-section-link:hover { color: var(--brand-2); }

    
    .home-toggle { display: flex; gap: var(--space-2); }
    .home-toggle-btn {
        padding: 4px 12px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        color: var(--text-3);
        font-size: 12px;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
    }
    .home-toggle-btn:hover { color: var(--text); border-color: var(--brand-2); }
    .home-toggle-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

    
    #homeFeed {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 4px 6px;
    }
    a.feed-item { text-decoration: none; color: inherit; }
    a.feed-item + a.feed-item { border-top: 1px solid rgba(40, 45, 51, 0.6); }
    :where(html[data-theme="light"]) a.feed-item + a.feed-item { border-top: 1px solid rgba(36, 48, 79, 0.6); }
    a.feed-item:hover { background: var(--surface-2); }

    
    .home-guide-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }
    .home-guide-card {
        display: flex;
        gap: var(--space-3);
        padding: var(--space-3);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        color: inherit;
        text-decoration: none;
        transition: border-color 0.2s;
    }
    .home-guide-card:hover { border-color: var(--brand-2); }
    .home-guide-icon {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
        border-radius: var(--radius-sm);
        object-fit: cover;
        background: var(--surface-2);
    }
    .home-guide-body { flex: 1; min-width: 0; }
    .home-guide-title {
        margin: 0;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .home-guide-meta {
        margin: 4px 0 0;
        font-size: 12px;
        color: var(--text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .home-guide-stat {
        margin: 6px 0 0;
        display: flex;
        align-items: center;
        gap: 5px;
        flex-wrap: wrap;
        font-size: 12px;
        color: var(--success);
        font-variant-numeric: tabular-nums;
    }
    .home-guide-stat-sep { color: var(--text-muted); }

    
    .home-release-pair {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-5);
        align-items: start;
    }
    .home-release-panel {
        padding: var(--space-2) var(--space-4);
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
    }
    .home-release-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
    .home-release-row {
        position: relative;
        display: flex;
        align-items: center;
        gap: var(--space-3);
        padding: 8px 6px;
        border-radius: var(--radius-sm);
        color: inherit;
        text-decoration: none;
        min-width: 0;
    }
    
    .home-release-row:nth-child(n+2)::before {
        content: "";
        position: absolute;
        top: 0;
        left: 6px;
        right: 6px;
        border-top: 1px solid var(--border);
    }
    .home-release-row:hover { background: var(--surface-2); }
    
    .home-release-more {
        display: block;
        margin: 2px calc(-1 * var(--space-4)) calc(-1 * var(--space-2));
        padding: 11px var(--space-4);
        border-top: 1px solid var(--border);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        font-size: 12.5px;
        font-weight: 600;
        color: var(--text-3);
        text-align: center;
        text-decoration: none;
        transition: color 0.2s, background 0.2s;
    }
    .home-release-more:hover { color: var(--brand-2); background: var(--surface-2); }
    .home-release-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border-radius: var(--radius-sm);
        object-fit: cover;
        background: var(--surface-2);
    }
    .home-release-body { flex: 1; min-width: 0; transition: opacity 0.2s ease; }
    .home-release-name {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--text-2);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .home-release-row:hover .home-release-name { color: var(--brand-2); }
    .home-release-meta {
        display: block;
        margin-top: 2px;
        font-size: 11px;
        color: var(--text-muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    
    .home-release-trophies {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        cursor: default;
    }
    .home-release-trophies:focus-visible { outline: none; }
    .home-release-trophies-total,
    .home-release-trophies-split {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
        padding: 3px 7px;
        border: 1px solid rgba(196, 200, 204, 0.3);
        border-radius: 6px;
        background: rgba(8, 12, 17, 0.82);
        color: var(--dark-glass-ink, #e3eaf7);
        font-size: 9.5px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        transition: opacity .2s ease, transform .2s ease;
    }
    :where(html[data-theme="light"]) .home-release-trophies-total, :where(html[data-theme="light"]) .home-release-trophies-split { border: 1px solid rgba(180, 200, 238, .3); background: rgba(8, 12, 24, .82); }
    .home-release-trophies-total { gap: 3px; }
    .home-release-trophies-split {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(5px, -50%);
        gap: 6px;
        opacity: 0;
        pointer-events: none;
    }
    .home-release-trophies-split > span { display: inline-flex; align-items: center; gap: 2px; }
    .home-release-trophies img { width: 12px; height: 12px; object-fit: contain; }
    .home-release-trophies:hover .home-release-trophies-total,
    .home-release-trophies:focus-within .home-release-trophies-total { opacity: 0; transform: translateX(-4px); }
    .home-release-trophies:hover .home-release-trophies-split,
    .home-release-trophies:focus-within .home-release-trophies-split { opacity: 1; transform: translate(0, -50%); }
    
    .home-release-row:has(.home-release-trophies:hover) .home-release-body,
    .home-release-row:has(.home-release-trophies:focus-within) .home-release-body { opacity: 0.15; }

    @media (hover: none) {
        .home-release-trophies-total { display: none; }
        .home-release-trophies-split {
            position: static;
            opacity: 1;
            transform: none;
            transition: none;
            pointer-events: auto;
        }
    }
    @media (prefers-reduced-motion: reduce) {
        .home-release-trophies, .home-release-trophies-total, .home-release-trophies-split, .home-release-body { transition: none; }
    }

    
    .home-rail-row {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        padding: 7px 2px;
        border-top: 1px solid var(--border);
        color: inherit;
        text-decoration: none;
    }
    .home-rail-row:first-child { border-top: none; }
    .home-rail-body { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
    a.home-rail-row:hover .home-rail-name,
    a.home-rail-body:hover .home-rail-name { color: var(--brand-2); }
    
    .home-rail-name {
        display: block;
        font-size: 13px;
        color: var(--text-2);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: color 0.2s;
    }
    .home-rail-sub { display: block; font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .home-rail-avatar-wrap {
        position: relative;
        flex-shrink: 0;
        line-height: 0;
    }
    .home-rail-avatar {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
        border-radius: 50%;
        object-fit: cover;
        background: var(--surface-2);
    }
    .home-rail-icon {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        border-radius: var(--radius-sm);
        object-fit: cover;
        background: var(--surface-2);
    }
    .home-rank {
        width: 16px;
        flex-shrink: 0;
        text-align: center;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-muted);
        font-variant-numeric: tabular-nums;
    }
    .home-rank-1 { color: var(--metal-gold); }
    .home-rank-2 { color: var(--metal-silver); }
    .home-rank-3 { color: var(--metal-bronze); }
    .home-rail-plat { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; }
    .home-delta {
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 700;
        color: var(--success);
        font-variant-numeric: tabular-nums;
    }
    .home-delta-down { color: var(--text-muted); }
    .home-follow-btn {
        flex-shrink: 0;
        padding: 4px 12px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        color: var(--text-2);
        font-size: 11.5px;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
    }
    .home-follow-btn:hover { border-color: var(--accent); color: var(--text); }
    .home-follow-btn.is-following { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
    .home-follow-btn.is-following:hover { background: transparent; border-color: #ff6b6b; color: #ff6b6b; }

    .home-rail .empty-state { padding: var(--space-3) 0; font-size: 12.5px; }

    
    @media (max-width: 1200px) {
        .home-columns { flex-direction: column; align-items: stretch; }
        .home-main { width: 100%; }
        .home-rail {
            width: 100%;
            margin-top: 0;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 760px) {
        .home-hero-band { min-height: 320px; margin-top: 0; padding-bottom: 66px; }
        .home-hero-strip { padding: 10px 14px; }
        .home-hero { padding: 24px 16px 30px; }
        .home-title { font-size: 32px; text-wrap: balance; }
        .home-counters { gap: 4px 14px; font-size: 12px; }
        .home-hero-caption { right: 16px; }
        .home-guide-grid { grid-template-columns: minmax(0, 1fr); }
        .home-release-pair { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
        .home-rail { grid-template-columns: minmax(0, 1fr); }
    }

    
    @media (max-width: 430px) {
        .home-title { font-size: 34px; text-wrap: initial; }
        .home-title-brand { display: block; }
    }

    @media (max-width: 560px) {
        .home-sync-panel > .sync-experience { inset: 17px 15px; }
        
        .home-sync-panel:not(.is-idle) { min-height: 176px; }
        .home-sync-panel:not(.is-idle).is-terminal,
        .home-sync-panel:not(.is-idle).is-complete { min-height: 212px; }
        .sync-experience-head { flex-wrap: wrap; gap: 6px 8px; }
        .sync-stage-plat { min-width: 0; }
        .sync-factual-status { min-width: 0; }
        .profile-sync-dialog { padding: 20px 16px; }

        
        .home-hero-band { flex-direction: column; min-height: 210px; }
        .home-hero { padding: 26px 18px 18px; }
        .home-title {
            margin: 0 0 18px;
            font-size: 34px;
            line-height: 1.1;
            text-wrap: initial;
        }
        .home-title-brand { display: block; }

        
        .home-sync-panel { min-height: 46px; }
        
        .home-sync-panel > .hero-search {
            position: relative;
            inset: auto;
            margin: 18px 0 0;
            display: flex;
            align-items: center;
            gap: 8px;
            height: 46px;
            padding: 4px 4px 4px 14px;
            border-radius: 14px;
            box-sizing: border-box;
            box-shadow: none;
        }
        .home-sync-panel > .hero-search input[type="text"] {
            flex: 1;
            min-width: 0;
            height: 38px;
            padding: 0;
            margin: 0;
            border: 0;
            background: transparent;
            font-size: 15px;
        }
        .home-sync-panel > .hero-search button {
            height: 38px;
            padding: 0 16px;
            border-radius: 11px;
            font-size: 14px;
            font-weight: 700;
            flex: 0 0 auto;
        }

        
        .hero-msg:empty { display: none; }

        
        .home-counters { min-height: 0; font-size: 12.5px; }
        .home-counter-full { display: none; }
        .home-counter-short { display: inline; }

        
        .home-hero-caption {
            
            position: relative;
            z-index: 1;
            right: auto;
            bottom: auto;
            margin: 12px auto 0;
            display: block;
            width: fit-content;
            max-width: 100%;
            text-align: center;
        }
        .home-hero-caption[hidden] { display: none; }
    }

    
    @media (max-width: 359px) {
        .home-hero-band { padding-bottom: 84px; }
    }

    @media (prefers-reduced-motion: reduce) {
        .home-hero-art img,
        .home-hero-band,
        .home-hero-caption,
        .home-hero-caption a,
        .home-sync-panel,
        .home-sync-panel > .hero-search,
        .home-sync-panel > .sync-experience,
        .sync-bar-fill,
        #profileSyncModal,
        .profile-sync-dialog { transition: none; }
        .sync-experience[data-sync-state="running"] .sync-plat-icon,
        .sync-shape.is-current,
        .sync-experience[data-sync-state="running"]
            .sync-bar-fill::after { animation: none; }
        .sync-experience-actions .sync-action.is-visible {
            animation: none;
        }
    }


#gameView .game-page-hero { min-height: var(--profile-pill-height); }
#gameView .game-page-hero .gd-hero-main { padding-bottom: 31px; }
.game-hero-release { margin: 8px 0 0; color: var(--dark-text-soft, #aeb7c9); font-size: 12px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
#gameView .game-hero-breakdown { margin: 15px 0 0; }

html[data-theme="light"] .gd-hero .dropdown-menu {
    --text: #172033;
    --text-2: #3c4761;
    --text-3: #5e6a84;
    --border: #d4dbe8;
    color: var(--text);
}

html[data-theme="light"] #profileHeader.profile-hero .dropdown-menu {
    --text: #172033;
    --text-2: #3c4761;
    --text-3: #5e6a84;
    --border: #d4dbe8;
    color: var(--text);
}
@media (max-width: 560px) {
}
.game-community-dock { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.game-community-stat,
.game-community-stat:first-child {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-left: 10px;
    text-align: center;
}
.game-community-stat span { display: grid; justify-items: center; text-align: center; }
.game-community-stat b { color: var(--brand-2); font-size: 11px; font-variant-numeric: tabular-nums; }

#gameView .game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: none; gap: 24px; align-items: start; padding: 22px 0 64px; }
#gameView .game-layout > .game-main,
#gameView .game-layout > .game-side { grid-area: auto; }
#gameView .game-layout.game-layout-solo { grid-template-columns: minmax(0, 1fr); }
#gameView .game-side {
    display: flex; flex-direction: column; gap: 24px; width: 300px; min-width: 0; margin: 0; padding-top: 48px;
    border: 0; border-radius: 0; background: transparent;
}

#gameView .game-side > div:empty { display: none; }
#gameView .game-layout.has-game-groups .game-side { padding-top: 48px; }
#gameView #gamePlatClub,
#gameView #gameVersions,
#gameView .gg-side-panel,
#gameView .reviews-block { margin: 0; padding: 14px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
#gameView .gg-side-divider { padding-top: 14px; border-top: 1px solid var(--border); }
#gameView .game-info-cover { height: auto; aspect-ratio: 264 / 374; object-fit: cover; object-position: center; }

.art-mark {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background-color: rgba(255, 255, 255, .065);
    -webkit-mask: url("/images/placeholders/art-mark.svg") center / contain no-repeat;
    mask: url("/images/placeholders/art-mark.svg") center / contain no-repeat;
}

#gameView .gp-hero .gp-art-mark { top: 0; right: 7.5%; bottom: var(--gp-dock-h, 73px); width: 17%; }

.club-hero .club-art-mark { top: 0; right: 26px; bottom: 0; width: min(17%, 230px); }
.club-hero.has-switch .club-art-mark { display: none; }
.club-hero .club-text { position: relative; z-index: 1; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 761px) {
    .club-hero.has-art-mark .club-inner { padding-right: calc(min(17%, 230px) + 52px); }
}

#profileHeader .profile-art-mark { grid-row: 1 / 2; grid-column: 1 / 2; top: 0; bottom: 0; right: 7.5%; width: 17%; }
@media (max-width: 900px) {
    #profileHeader .profile-art-mark { display: none; }
}
@media (max-width: 760px) {
    .art-mark { display: none; }
}
.game-info-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.game-info-head .game-info-kicker { margin: 0; }
.game-info-report { display: inline-flex; align-items: center; gap: 5px; padding: 3px 5px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 10.5px; cursor: pointer; }
.game-info-report:hover { color: var(--danger); }
.game-info-report svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.game-group-nav-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.game-group-nav-row:hover { background: var(--surface-2); }
.game-group-nav-row img { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 7px; object-fit: cover; }
.game-group-nav-row strong { min-width: 0; flex: 1; overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.game-group-nav-row span { color: var(--text-muted); font-size: 10.5px; white-space: nowrap; }

.game-group-nav-note { margin: 8px 2px 0; color: var(--text-muted); font-size: 10.5px; line-height: 1.45; }

.gv-head { margin: 2px 4px 12px; color: var(--text-3); font-size: 12.5px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.gv-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; color: inherit; text-decoration: none; transition: background 0.15s; }
.gv-row:hover { background: var(--surface-2); }
.gv-icon { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 7px; object-fit: cover; }
.gv-icon-blank { background: var(--surface-2); }
.gv-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gv-name { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.gv-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }



.gv-stat { color: var(--text-muted); font-size: 10.5px; white-space: nowrap; }

.gv-icon-wrap { position: relative; display: block; flex-shrink: 0; width: 40px; height: 40px; }
.gv-icon-wrap > .gv-icon { display: block; }
.gv-mark { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--surface); }
.gv-mark.is-plat img { width: 15px; height: 15px; object-fit: contain; }
.gv-mark.is-complete { background: var(--success); color: #06150f; }
.gv-row.has-progress .gv-info { flex: 1; }
.gv-progress { display: flex; align-items: center; gap: 7px; }
.gv-bar { flex: 1; max-width: 120px; height: 3px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.gv-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }
.gv-pct { color: var(--text-3); font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }


#gameView .gp-hero { display: flex; flex-direction: column; }
#gameView .gp-hero .gd-hero-main { flex: 1 1 auto; min-height: 0; }

#gameView .gp-hero .gd-playtime-pill { bottom: calc(var(--gp-dock-h, 73px) + 17px); }
#gameView .gp-hero.has-top .gd-hero-main { padding-top: 14px; }
#gameView .gp-hero .gd-trophy-dock { position: relative; flex: none; }


.gp-hero-top { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; min-height: 34px; padding: 22px 22px 0 34px; }
.gp-player { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); font-size: 13px; line-height: 1.3; text-decoration: none; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 1px 10px rgba(0,0,0,.85); }

.gp-avatar { display: block; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: rgba(180,200,238,.18); }
.gp-player-text { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.gp-player-text b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gp-player-count { color: var(--text-2); white-space: nowrap; }
.gp-player-count::before { content: "·"; margin-right: 8px; color: var(--text-3); }
a.gp-player:hover b { text-decoration: underline; text-underline-offset: 3px; }
a.gp-player:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
.gp-player-note { color: var(--text-2); }
.gp-retry { margin-left: 10px; color: var(--brand-2); font-size: 13px; font-weight: 700; text-shadow: none; }
.gp-retry:hover { color: var(--text); }


.gp-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gp-act-slot { display: contents; }
.gp-ghost,
.gp-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px;
    border: 1px solid rgba(180,200,238,.3); border-radius: 8px; background: rgba(5,9,19,.62);
    color: #dbe3f4; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.gp-ghost { padding: 0 14px; }
.gp-ghost .plus { color: var(--brand-2); font-size: 15px; font-weight: 800; line-height: 1; }
.gp-ghost .gp-ico { display: none; }
.gp-ghost.is-saved { color: var(--success); }
.gp-ghost.is-saved .plus { color: var(--success); }
.gp-ghost:disabled { color: rgba(219,227,244,.6); cursor: default; }
.gp-icon-btn { width: 34px; padding: 0; }
.gp-ghost:not(:disabled):hover,
.gp-icon-btn:hover { border-color: var(--brand-2); color: #fff; }
.gp-ghost:focus-visible,
.gp-icon-btn:focus-visible,
.gp-share:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
#gameView .gp-hero .gp-share { gap: 7px; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
:where(html[data-theme="light"]) #gameView .gp-hero .gp-share { background: #86d7ec; color: #071419; }


#gameView .gp-hero .gp-progress-row { margin-top: 14px; }
#gameView .gp-hero .gp-progress-row strong { color: #f4f7ff; }


#gameView .gp-dock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#gameView .gp-dock.gp-dock-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

#gameView .gp-dock .gp-carousel { position: relative; display: block; min-height: 72px; padding: 0; overflow: hidden; }
.gp-car-slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 0 30px; text-align: center;
    opacity: 0; transform: translateY(18px);
    transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
}
.gp-car-slide.is-active { opacity: 1; transform: translateY(0); }
.gp-car-slide.is-exiting { opacity: 0; transform: translateY(-18px); }
.gp-carousel:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
    .gp-car-slide { transition: none; }
}

#gameView .gp-dock .gp-types { flex-direction: column; align-items: center; justify-content: center; gap: 6px; container-type: inline-size; min-width: 0; }
#gameView .gp-dock .gp-type-row { display: grid; grid-template-columns: repeat(2, auto); align-items: center; justify-content: center; gap: 4px 12px; }
#gameView .gp-dock .gp-type { display: inline-flex; align-items: center; gap: 4px; color: #f4f7ff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
:where(html[data-theme="light"]) #gameView .gp-dock .gp-type { color: #172033; }
#gameView .gp-dock .gp-type img { width: 18px; height: 18px; }
@container (min-width: 350px) {
    #gameView .gp-dock .gp-type-row:not(.is-long) { display: flex; gap: 14px; }
}
@container (min-width: 470px) {
    #gameView .gp-dock .gp-type-row.is-long { display: flex; gap: 14px; }
}
@container (max-width: 220px) {
    #gameView .gp-dock .gp-type-row.is-long { gap: 3px 8px; }
    #gameView .gp-dock .gp-type-row.is-long .gp-type { gap: 3px; font-size: 11.5px; }
    #gameView .gp-dock .gp-type-row.is-long .gp-type img { width: 14px; height: 14px; }
}
@container (max-width: 189px) {
    #gameView .gp-dock .gp-type-row.is-long { grid-template-columns: auto; }
}
@container (max-width: 175px) {
    #gameView .gp-dock .gp-type-row { gap: 3px 8px; }
    #gameView .gp-dock .gp-type { gap: 3px; font-size: 11.5px; }
    #gameView .gp-dock .gp-type img { width: 14px; height: 14px; }
}
@container (max-width: 135px) {
    #gameView .gp-dock .gp-type-row { gap: 2px 6px; }
    #gameView .gp-dock .gp-type { gap: 2px; font-size: 10.5px; }
    #gameView .gp-dock .gp-type img { width: 12px; height: 12px; }
}
@container (max-width: 110px) {
    #gameView .gp-dock .gp-type-row { grid-template-columns: auto; }
}




#gameView #gameInsightChips { margin-top: 10px; }
#gameView .gp-band.pr-band {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    flex: 1 0 100%; box-sizing: border-box; width: 100%; padding: 0; border-radius: 18px;
}
#gameView .gp-band .pr-cell,
#gameView .gp-band .pr-cell:first-child { justify-content: flex-start; min-width: 0; min-height: 0; padding: 16px 22px; border-top: 0; border-left: 1px solid var(--border); }
#gameView .gp-band .pr-cell:first-child { border-left: 0; }
#gameView .gp-band .pr-cell.is-empty .pr-fig strong { font-size: 17px; font-weight: 700; }


.gp-sync-note { margin: 0 2px 12px; color: var(--text-muted); font-size: 12.5px; }


#gameShowDrop { align-self: center; }
#gameShowDrop .dropdown-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-2);
    font-size: 13px;
    padding: 7px 12px;
}
#gameShowDrop .dropdown-btn:hover { border-color: var(--border-hover); background: var(--surface-2); }
#gameView .game-section-head .gd-compare { margin-left: auto; }

@media (max-width: 760px) {
    #gameView .gp-hero,
    #gameView .game-page-hero.gp-hero { min-height: 0; }
    #gameView .gp-hero .gd-hero-main,
    #gameView .game-page-hero.gp-hero .gd-hero-main { padding: 22px 20px 24px; }
    #gameView .gp-hero.has-top .gd-hero-main { padding-top: 12px; }
    .gp-hero-top { padding: 16px 12px 0 20px; }
    .gp-player-text { flex-direction: column; gap: 1px; }
    .gp-player-count { font-size: 12px; }
    .gp-player-count::before { content: none; }
    
    .gp-hero-top .gp-actions { gap: 6px; }
    .gp-hero-top .gp-ghost,
    .gp-hero-top .gp-icon-btn,
    #gameView .gp-hero .gp-share { width: 36px; height: 36px; padding: 0; gap: 0; }
    .gp-hero-top .gp-lbl,
    .gp-hero-top .gp-ghost .plus { display: none; }
    .gp-hero-top .gp-ghost .gp-ico { display: block; }
    
    #gameView .gp-hero .gp-progress-row { flex-wrap: nowrap; }
    #gameView .gp-hero .gp-progress-row .gd-progress-track { flex: 1 1 auto; width: auto; flex-basis: auto; }
    #gameView .gp-hero .gd-timeline-items { margin-left: 0; column-gap: 14px; row-gap: 2px; }
    #gameView .gp-hero .gd-timeline-sep { display: none; }
    #gameView .gp-hero .gd-playtime-pill { position: static; display: inline-flex; justify-content: flex-start; margin-top: 8px; }
    
    #gameView .gp-dock,
    #gameView .gp-dock.gp-dock-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #gameView .gp-dock .gd-trophy-stat,
    #gameView .gp-dock .gd-trophy-stat:first-child { grid-column: auto; justify-content: center; min-height: 72px; padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.07); border-left: 1px solid rgba(255,255,255,.07); }
    #gameView .gp-dock .gd-trophy-stat:nth-child(odd) { border-left: 0; }
    #gameView .gp-dock .gd-trophy-stat:nth-child(-n+2) { border-top: 0; }
    #gameView .gp-dock.gp-dock-3 .gd-trophy-stat:last-child { grid-column: 1 / -1; }
    #gameView .gp-dock .gp-carousel { padding: 0; }
    .gp-car-slide { padding: 0 18px; }
    #gameView .gp-dock .gp-carousel .pp-dots { right: 8px; }

    
    #gameView .gp-band.pr-band { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #gameView .gp-band .pr-cell,
    #gameView .gp-band .pr-cell:first-child { padding: 12px 14px; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
    #gameView .gp-band .pr-cell:nth-child(odd) { border-left: 0; }
    #gameView .gp-band .pr-cell:nth-child(-n+2) { border-top: 0; }
    #gameView .gp-band .pr-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
    #gameView .gp-band .pr-cell.is-empty .pr-fig strong { font-size: 14px; line-height: 1.3; }
    #gameView .gp-band .pr-fig strong { font-size: 18px; }
    #gameView .game-section-head { flex-wrap: wrap; }
}
@media (max-width: 760px) {
    html[data-theme="light"] #gameView .gp-dock .gd-trophy-stat { border-color: rgba(23,32,58,.12); }
}

@media (max-width: 380px) {
    .gp-car-slide { padding: 0 16px 0 10px; }
}
#gameView .trophy-group { margin-bottom: 30px; padding: 7px; border: 1px solid var(--border); border-radius: 14px; background: rgba(15, 20, 25, 0.72); }
:where(html[data-theme="light"]) #gameView .trophy-group { background: rgba(13, 21, 39, .72); }
#gameView .group-header { padding: 9px 10px 13px; }
#gameView .group-icon { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 9px; }
#gameView .group-name { font-size: 15px; font-weight: 700; }
#gameView .group-trophies { gap: 8px; }
#gameView .trophy-row { gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
#gameView .trophy-row:hover { border-color: var(--dark-border-hover, #3c4a6e); }
#gameView .trophy-row-icon { width: 48px; height: 48px; border-radius: 8px; }
#gameView .trophy-row-info h3 { font-size: 13.5px; }
#gameView .trophy-desc { font-size: 12px; }
#gameView .trophy-type-img { width: 29px; height: 29px; }
.trophy-rarity-tier { width: 76px; flex-shrink: 0; color: var(--text-muted); font-size: 10.5px; font-weight: 650; letter-spacing: .035em; text-align: right; text-transform: uppercase; white-space: nowrap; }
.trophy-rarity { width: 48px; text-align: right; font-variant-numeric: tabular-nums; }

.rarity-ultra { color: #c4ecf8; }
.rarity-very { color: #c77dff; }
.rarity-rare { color: #73c9f2; }
.rarity-common { color: var(--dark-text-3, #97a0b3); }

html[data-theme="light"] .rarity-ultra { color: #0d7fa4; }
html[data-theme="light"] .rarity-very { color: #8a3fc9; }
html[data-theme="light"] .rarity-rare { color: #1d6fa8; }
html[data-theme="light"] .rarity-common { color: #6b7488; }


.trophy-tip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--dark-text-3, #8c97b1);
    cursor: pointer;
    transition: color .15s ease, background .15s ease, opacity .15s ease;
}
:where(html[data-theme="light"]) .trophy-tip-trigger { color: var(--text-3); }
.trophy-tip-trigger[hidden] { display: none; }
.trophy-tip-trigger svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.trophy-tip-trigger:hover,
.trophy-tip-trigger[aria-expanded="true"] {
    background: rgba(134, 215, 236, .09);
    color: var(--brand-2);
}
:where(html[data-theme="light"]) .trophy-tip-trigger:hover, :where(html[data-theme="light"]) .trophy-tip-trigger[aria-expanded="true"] { background: rgba(27, 111, 151, .08); color: var(--accent); }
.trophy-tip-trigger.is-empty { opacity: .28; }
.trophy-row:hover .trophy-tip-trigger.is-empty,
.trophy-tip-trigger.is-empty:focus-visible,
.trophy-tip-trigger.has-pending { opacity: 1; }
.trophy-tip-trigger.has-pending::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}
.trophy-tip-count {
    position: absolute;
    right: 1px;
    bottom: 0;
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    border: 1px solid var(--surface);
    border-radius: 7px;
    
    background: var(--border);
    color: var(--text);
    font-size: 8.5px;
    font-weight: 700;
    line-height: 11px;
    text-align: center;
}
:where(html[data-theme="light"]) .trophy-tip-count { background: var(--surface-3); }
.trophy-tip-count:empty { display: none; }

#gameView .trophy-row.tips-open {
    border-bottom-color: transparent;
    border-radius: 12px 12px 0 0;
}
.trophy-tip-drawer {
    display: none;
    margin-top: -8px;
    padding: 14px 16px 16px;
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    
    background: var(--surface);
    opacity: 0;
    transform: translateY(-4px);
}
.trophy-tip-drawer.is-open {
    display: block;
    animation: trophy-tip-open .18s ease forwards;
}
@keyframes trophy-tip-open {
    to { opacity: 1; transform: translateY(0); }
}
.trophy-tip-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.trophy-tip-drawer-head > div { display: grid; gap: 2px; }

.trophy-tip-drawer-head > .trophy-tip-head-actions { display: flex; }
.trophy-tip-drawer-head strong { color: var(--text); font-size: 13px; }
.trophy-tip-drawer-head span { color: var(--text-muted); font-size: 10.5px; }

.trophy-tip-close {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: -10px -12px -10px -6px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.trophy-tip-close:hover { color: var(--text); background: var(--ghost-hover); }
.trophy-tip-close:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -4px; }
.trophy-tip-head-actions { display: flex; align-items: center; gap: 12px; }
.trophy-tip-sort {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 7px;
}
.trophy-tip-sort button {
    padding: 3px 7px;
    border: 0;
    border-radius: 5px;
    color: var(--text-muted);
    background: transparent;
    font: inherit;
    font-size: 9.5px;
    cursor: pointer;
}
.trophy-tip-sort button:hover { color: var(--text); }
.trophy-tip-sort button.is-active {
    color: var(--text);
    background: rgba(134, 215, 236, .09);
}
:where(html[data-theme="light"]) .trophy-tip-sort button.is-active { background: rgba(27, 111, 151, .1); }
.trophy-tip-drawer.is-loading-page .trophy-tip-list,
.trophy-tip-drawer.is-loading-page .trophy-tip-more { opacity: .38; }
.trophy-tip-list { display: grid; gap: 1px; }
.trophy-tip-own {
    margin-bottom: 7px;
    padding: 8px 10px 0;
    border: 1px solid rgba(134, 215, 236, .16);
    border-radius: 8px;
    background: rgba(134, 215, 236, .035);
}
:where(html[data-theme="light"]) .trophy-tip-own { border-color: rgba(27, 111, 151, .22); background: rgba(27, 111, 151, .04); }
.trophy-tip-own > span {
    display: block;
    color: var(--brand-2);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
}
:where(html[data-theme="light"]) .trophy-tip-own > span { color: var(--accent); }
.trophy-tip-own .trophy-tip-card { padding-bottom: 10px; }
.trophy-tip-card {
    padding: 12px 0;
    border-top: 1px solid rgba(53, 58, 64, 0.55);
}
:where(html[data-theme="light"]) .trophy-tip-card { border-top: 1px solid var(--border); }
.trophy-tip-card:first-child { border-top: 0; padding-top: 2px; }
.trophy-tip-card header { display: flex; align-items: center; gap: 8px; }
.trophy-tip-card header img,
.trophy-tip-avatar-blank {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
}
.trophy-tip-card header div { display: grid; gap: 1px; }
.trophy-tip-card header strong { color: var(--text); font-size: 11.5px; }
.trophy-tip-card header small { color: var(--dark-text-muted, #71809d); font-size: 9.5px; }
:where(html[data-theme="light"]) .trophy-tip-card header small { color: var(--text-3); }
.trophy-tip-card > p {
    margin: 9px 0 8px 36px;
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    
    overflow-wrap: anywhere;
}
.trophy-tip-card > p:focus { outline: 0; }
.trophy-tip-labels { display: flex; flex-wrap: wrap; gap: 5px; margin-left: 36px; }

.trophy-tip-card footer { display: flex; gap: 13px; margin: 9px 0 0 36px; }
.trophy-tip-card footer button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dark-text-muted, #7f8ba5);
    font: inherit;
    font-size: 10.5px;
    cursor: pointer;
}
:where(html[data-theme="light"]) .trophy-tip-card footer button { color: var(--text-3); }
.trophy-tip-card footer button:hover,
.trophy-tip-card footer button.is-helpful { color: var(--brand-2); }
:where(html[data-theme="light"]) .trophy-tip-card footer button:hover, :where(html[data-theme="light"]) .trophy-tip-card footer button.is-helpful { color: var(--accent); }
.trophy-tip-empty { padding: 8px 0 12px; color: var(--text-muted); font-size: 12px; }
.trophy-tip-write {
    margin-top: 7px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--brand-2);
    font: inherit;
    font-size: 11.5px;
    font-weight: 650;
    cursor: pointer;
}
:where(html[data-theme="light"]) .trophy-tip-write { color: var(--accent); }
.trophy-tip-more {
    width: 100%;
    margin: 4px 0 2px;
    padding: 7px;
    border: 1px dashed var(--border);
    border-radius: 7px;
    color: var(--text-muted);
    background: transparent;
    font: inherit;
    font-size: 10.5px;
    cursor: pointer;
}
.trophy-tip-more:hover { border-color: var(--dark-text-muted, #52658e); color: var(--text-2); }
.trophy-tip-more:disabled { cursor: wait; opacity: .45; }
.trophy-tip-editor {
    display: grid;
    gap: 8px;
    margin-top: 11px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.trophy-tip-editor-title { color: var(--text); font-size: 12px; font-weight: 700; }
.trophy-tip-editor textarea,
.trophy-tip-report-form textarea,
.trophy-tip-video-field input {
    width: 100%;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    line-height: 1.5;
    padding: 9px 10px;
}
.trophy-tip-editor textarea { min-height: 80px; max-height: 200px; }
.trophy-tip-report-form textarea { min-height: 56px; max-height: 160px; }
.trophy-tip-editor textarea:focus,
.trophy-tip-report-form textarea:focus,
.trophy-tip-video-field input:focus { outline: 0; border-color: var(--dark-accent, #52658e); }
.trophy-tip-editor-foot {
    display: flex;
    justify-content: flex-end;
    color: var(--text-muted);
    font-size: 9.5px;
}
.trophy-tip-video-field {
    display: grid;
    gap: 5px;
    color: var(--text-2);
    font-size: 10.5px;
    font-weight: 650;
}
.trophy-tip-video-field small {
    margin-left: 4px;
    color: var(--text-muted);
    font-size: 9.5px;
    font-weight: 500;
}
.trophy-tip-video-field input { height: 36px; }

.trophy-tip-video-field input[type="text"] {
    height: 36px;
    margin: 0;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 400;
}
.trophy-tip-video-field input[type="text"]:focus { border-color: var(--dark-accent, #52658e); }
.trophy-tip-video-field input[type="text"][aria-invalid="true"] { border-color: var(--danger); }

.trophy-tip-editor-foot .is-over { color: var(--danger); font-weight: 700; }
.trophy-tip-field-label { color: var(--text-2); font-size: 10.5px; font-weight: 650; }
.trophy-tip-field-label small { margin-left: 4px; color: var(--text-muted); font-size: 9.5px; font-weight: 500; }
.trophy-tip-field-error { color: var(--danger); font-size: 10.5px; font-weight: 500; }
.trophy-tip-video {
    margin: 9px 0 8px 36px;
    overflow: hidden;
    border: 1px solid rgba(53, 58, 64, 0.72);
    border-radius: 8px;
    background: rgba(8, 12, 17, 0.52);
}
:where(html[data-theme="light"]) .trophy-tip-video { border: 1px solid var(--border); background: var(--surface-2); }
.trophy-tip-video-toggle {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px;
    border: 0;
    color: var(--text-2);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.trophy-tip-video-toggle:hover,
.trophy-tip-video-toggle[aria-expanded="true"] { background: rgba(134, 215, 236, .045); }
:where(html[data-theme="light"]) .trophy-tip-video-toggle:hover, :where(html[data-theme="light"]) .trophy-tip-video-toggle[aria-expanded="true"] { background: rgba(27, 111, 151, .06); }
.trophy-tip-video-thumb {
    position: relative;
    display: block;
    width: 72px;
    height: 40px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--dark-scrim-deep, #060a12);
}
.trophy-tip-video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.trophy-tip-video-thumb > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    filter: drop-shadow(0 1px 3px #000);
}
.trophy-tip-video-toggle > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.trophy-tip-video-toggle strong { font-size: 11px; }
.trophy-tip-video-toggle small { color: var(--text-muted); font-size: 9.5px; font-weight: 500; }
.trophy-tip-video-action { color: var(--brand-2); font-size: 10px; font-weight: 700; }
:where(html[data-theme="light"]) .trophy-tip-video-action { color: var(--accent); }
.trophy-tip-video-frame { aspect-ratio: 16 / 9; border-top: 1px solid rgba(53, 58, 64, 0.72); }
:where(html[data-theme="light"]) .trophy-tip-video-frame { border-top: 1px solid var(--border); }
.trophy-tip-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.trophy-tip-label-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.trophy-tip-label-picker label { cursor: pointer; }
.trophy-tip-label-picker input { position: absolute; opacity: 0; pointer-events: none; }

.trophy-tip-label-picker input:checked + span {
    border-color: var(--brand-1);
    color: var(--text);
}

.trophy-tip-label-picker input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.trophy-tip-spoiler-toggle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: fit-content;
    color: var(--text-2);
    cursor: pointer;
}
.trophy-tip-spoiler-toggle input {
    margin: 2px 0 0;
    accent-color: var(--gold);
}
.trophy-tip-spoiler-toggle span { display: grid; gap: 1px; }
.trophy-tip-spoiler-toggle strong { font-size: 10.5px; }
.trophy-tip-spoiler-toggle small { color: var(--text-muted); font-size: 9.5px; }
.trophy-tip-spoiler {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 9px 0 8px 36px;
    padding: 8px 10px;
    border-left: 2px solid var(--gold);
    color: var(--text-muted);
    background: rgba(232, 169, 60, .055);
    font-size: 10.5px;
}
:where(html[data-theme="light"]) .trophy-tip-spoiler { background: rgba(168, 114, 15, .07); }
.trophy-tip-spoiler button {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    color: #e3bd70;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
:where(html[data-theme="light"]) .trophy-tip-spoiler button { color: var(--gold); }
.trophy-tip-spoiler button:hover { color: var(--text); }
.trophy-tip-spoiler button:focus-visible {
    outline: 2px solid #e3bd70;
    outline-offset: 3px;
}
:where(html[data-theme="light"]) .trophy-tip-spoiler button:focus-visible { outline: 2px solid var(--gold); }
.trophy-tip-spoiler-own,
.mtt-spoiler {
    display: inline-block;
    width: fit-content;
    color: #d7b56f;
    font-size: 9px;
    font-weight: 700;
}
:where(html[data-theme="light"]) .trophy-tip-spoiler-own, :where(html[data-theme="light"]) .mtt-spoiler { color: var(--gold); }
.trophy-tip-spoiler-own { margin: 7px 0 -3px 36px; }
.mtt-spoiler { margin-top: 5px; }
.mtt-video {
    display: inline-block;
    width: fit-content;
    margin-top: 5px;
    color: var(--brand-2);
    font-size: 9px;
    font-weight: 700;
}
:where(html[data-theme="light"]) .mtt-video { color: var(--accent); }
.trophy-tip-form-actions { display: flex; gap: 7px; }
.trophy-tip-form-actions .btn,
.trophy-tip-report-form .btn { padding: 6px 10px; font-size: 10.5px; }
.trophy-tip-form-note { margin: 0; color: var(--text-muted); font-size: 9.5px; }
.trophy-tip-pending {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-left: 2px solid var(--accent);
    background: rgba(134, 215, 236, 0.06);
}
:where(html[data-theme="light"]) .trophy-tip-pending { background: rgba(27, 111, 151, .06); }

.trophy-tip-pending.is-change { border-left-color: var(--gold); background: rgba(232, 169, 60, .06); }
:where(html[data-theme="light"]) .trophy-tip-pending.is-change { background: rgba(168, 114, 15, .07); }
.trophy-tip-pending .trophy-tip-mod-note { color: var(--text-2); }
.trophy-tip-pending strong { color: var(--text-2); font-size: 11px; }
.trophy-tip-pending span { color: var(--text-muted); font-size: 10px; }
.trophy-tip-pending footer { display: flex; gap: 12px; margin-top: 5px; }
.trophy-tip-pending footer button {
    padding: 0; border: 0; background: transparent; color: var(--dark-text-3, #8c97b1);
    font: inherit; font-size: 10px; cursor: pointer;
}
:where(html[data-theme="light"]) .trophy-tip-pending footer button { color: var(--text-3); }
.trophy-tip-pending footer button:hover { color: var(--brand-2); }
:where(html[data-theme="light"]) .trophy-tip-pending footer button:hover { color: var(--accent); }
.trophy-tip-loading { display: flex; justify-content: center; gap: 5px; padding: 18px; }
.trophy-tip-loading span {
    width: 5px; height: 5px; border-radius: 50%; background: var(--dark-text-muted, #66738f);
    animation: trophy-tip-dot .8s ease-in-out infinite alternate;
}
.trophy-tip-loading span:nth-child(2) { animation-delay: .15s; }
.trophy-tip-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes trophy-tip-dot { to { opacity: .25; transform: translateY(-3px); } }
.trophy-tip-report-form { display: grid; gap: 7px; margin: 10px 0 0 36px; }
.trophy-tip-report-form > div { display: flex; gap: 7px; }
.trophy-tip-report-kind {
    display: grid;
    grid-template-columns: auto minmax(150px, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 10.5px;
}
.trophy-tip-report-kind select {
    min-width: 0;
    padding: 7px 28px 7px 9px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-2);
    background: var(--surface);
    font: inherit;
    font-size: 11px;
}
.trophy-tip-report-kind select:focus-visible {
    outline: 0;
    border-color: var(--dark-accent, #52658e);
}
.trophy-tip-report-sent { color: #77c6a1; font-size: 11px; }
:where(html[data-theme="light"]) .trophy-tip-report-sent { color: var(--success); }

.trophy-tip-note {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.45;
}
.trophy-tip-note strong { display: block; color: var(--text-2); font-weight: 650; }
.trophy-tip-list:empty + .trophy-tip-note { margin-top: 0; padding-top: 0; border-top: 0; }
.trophy-tip-note.is-own { margin: 0 0 10px; padding: 0; border-top: 0; }

@media (max-width: 760px) {
}

@media (max-width: 760px) {
    .trophy-tip-trigger { width: 28px; height: 28px; flex-basis: 28px; }
    .trophy-tip-drawer { margin-top: -8px; padding: 13px; }
    .trophy-tip-card > p,
    .trophy-tip-spoiler,
    .trophy-tip-spoiler-own,
    .trophy-tip-labels,
    .trophy-tip-card footer,
    .trophy-tip-report-form { margin-left: 0; }
    .trophy-tip-video { margin-left: 0; }
}


@media (hover: none), (max-width: 760px) {
    .trophy-tip-trigger::before {
        content: "";
        position: absolute;
        inset: -8px;
    }
}

@media (hover: none) {
    .trophy-tip-trigger.is-empty { opacity: 1; }
    
    .trophy-tip-trigger.is-writable.is-empty:not(.has-pending)::after {
        content: "";
        position: absolute;
        right: -1px;
        bottom: -2px;
        box-sizing: border-box;
        width: 15px;
        height: 15px;
        border: 1px solid var(--surface);
        border-radius: 50%;
        color: var(--text);
        background-color: var(--border);
        background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
        background-size: 7px 1.5px, 1.5px 7px;
        background-position: center;
        background-repeat: no-repeat;
    }
    :where(html[data-theme="light"]) .trophy-tip-trigger.is-writable.is-empty:not(.has-pending)::after { background-color: var(--surface-3); }
}


@media (max-width: 760px) {
    .trophy-tip-count { min-width: 15px; height: 15px; padding: 0 4px; font-size: 10px; line-height: 13px; }
    .trophy-tip-drawer-head strong { font-size: 14px; }
    .trophy-tip-drawer-head span { font-size: 12px; }
    .trophy-tip-sort button { padding: 6px 9px; font-size: 11.5px; }
    .trophy-tip-own > span { font-size: 11px; }
    .trophy-tip-card header strong { font-size: 13px; }
    .trophy-tip-card header small { font-size: 11px; }
    .trophy-tip-card > p { font-size: 13.5px; }
    .trophy-tip-card footer { gap: 18px; margin-top: 4px; }
    .trophy-tip-card footer button { min-height: 32px; font-size: 12.5px; }
    .trophy-tip-empty { font-size: 13px; }
    .trophy-tip-note { font-size: 12.5px; }
    .trophy-tip-write { min-height: 40px; font-size: 13px; }
    .trophy-tip-more { min-height: 40px; font-size: 12px; }
    .trophy-tip-pending strong { font-size: 12.5px; }
    .trophy-tip-pending span { font-size: 12px; }
    .trophy-tip-pending footer button { min-height: 32px; font-size: 12.5px; }
    .trophy-tip-editor-title { font-size: 13px; }
    .trophy-tip-editor textarea,
    .trophy-tip-report-form textarea,
    .trophy-tip-video-field input { font-size: 16px; }
    .trophy-tip-video-field input[type="text"] { height: 40px; font-size: 16px; }
    .trophy-tip-editor-foot { font-size: 11px; }
    .trophy-tip-field-label,
    .trophy-tip-video-field { font-size: 12px; }
    .trophy-tip-field-label small,
    .trophy-tip-video-field small { font-size: 11px; }
    .trophy-tip-field-error { font-size: 12px; }
    .trophy-tip-label-picker .chipline { min-height: 32px; }
    .trophy-tip-spoiler-toggle strong { font-size: 12px; }
    .trophy-tip-spoiler-toggle small { font-size: 11px; }
    .trophy-tip-spoiler { font-size: 12px; }
    .trophy-tip-spoiler-own { font-size: 11px; }
    .trophy-tip-video-toggle strong { font-size: 12.5px; }
    .trophy-tip-video-toggle small { font-size: 11px; }
    .trophy-tip-video-action { font-size: 12px; }
    .trophy-tip-form-actions .btn,
    .trophy-tip-report-form .btn { padding: 9px 14px; font-size: 12.5px; }
    .trophy-tip-report-kind { font-size: 12px; }
    .trophy-tip-report-kind select { font-size: 16px; }
    .trophy-tip-report-sent { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .trophy-tip-drawer.is-open,
    .trophy-tip-loading span { animation: none; opacity: 1; transform: none; }
}


#gameView .reviews-overview { display: grid; grid-template-columns: auto minmax(80px, 1fr); gap: 12px; align-items: center; margin-bottom: 13px; }
#gameView .reviews-overview-pending { grid-template-columns: minmax(0, 1fr); }
#gameView .reviews-summary { display: grid; gap: 3px; margin: 0; }
#gameView #gameReviews .review-form {
    max-width: none;
    margin: 0 0 13px;
    padding: 10px;
    border-radius: 9px;
    background: var(--surface-2);
}
#gameView #gameReviews .star-picker { margin-bottom: 8px; }

#gameView #gameReviews .review-body-input {
    min-height: 52px;
    max-height: 154px;
    padding: 8px 9px;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
}
#gameView #gameReviews .review-body-input::placeholder { color: var(--text-muted); opacity: 1; }
#gameView #gameReviews .review-char-count { margin: 3px 0 9px; font-size: 10px; }
#gameView #gameReviews .review-form-actions { align-items: stretch; flex-direction: column; gap: 7px; }
#gameView #gameReviews .review-form-actions .btn { width: 100%; padding: 7px 10px; font-size: 12px; font-weight: 650; }
#gameView #gameReviews .review-form-note { font-size: 11.5px; line-height: 1.45; }
#gameView #gameReviews .review-row {
    max-width: none;
    gap: 9px;
    margin: 0;
    padding: 13px 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}
#gameView #gameReviews .review-row-head { align-items: flex-start; gap: 4px 7px; }
#gameView #gameReviews .review-row-name { max-width: 100%; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
#gameView #gameReviews .review-row-stars { flex-basis: 100%; }
#gameView #gameReviews .review-row-date { margin-left: 0; font-size: 10px; }
#gameView #gameReviews .review-row-text { font-size: 11.5px; line-height: 1.5; }
#gameView #gameReviews .gcp-avatar-wrap,
#gameView #gameReviews .gcp-avatar { width: 30px; height: 30px; }
#gameView #gameReviews .empty-state { padding: 9px 0; color: var(--text-muted); font-size: 11.5px; line-height: 1.45; }
.review-rating-bars { display: grid; gap: 3px; }
.review-rating-bar { display: flex; align-items: center; gap: 6px; }
.review-rating-bar > span { width: 8px; color: var(--text-muted); font-size: 9px; }
.review-rating-bar > i { height: 4px; min-width: 0; flex: 1; overflow: hidden; border-radius: 99px; background: var(--surface-2); }
.review-rating-bar > i > b { display: block; height: 100%; border-radius: inherit; background: var(--brand-2); }
.review-rating-bar[title] { cursor: default; }
.review-platinum-badge { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0 5px; background: var(--platinum-gradient); background-clip: text; color: transparent; font-size: 10.5px; font-weight: 700; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.review-platinum-badge img { width: 14px; height: 14px; object-fit: contain; }
.review-helpful-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 11px; cursor: pointer; }
.review-helpful-btn:hover, .review-helpful-btn.active { color: var(--success); }
.review-helpful-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.review-helpful-btn.active svg { fill: currentColor; }
.review-helpful-count { margin: 3px 0 5px; color: var(--success); font-size: 10.5px; }
.review-view-all { width: 100%; margin-top: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--brand-2); font: inherit; font-size: 11.5px; cursor: pointer; }
.review-view-all:hover { border-color: var(--brand-2); color: var(--text); }
.game-report-card, .reviews-modal-card { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-sizing: border-box; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 80px rgba(0,0,0,.62); }
.game-report-card { padding: 22px; }
.game-report-kicker { color: var(--accent); font-size: 10.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.game-report-card h2, .reviews-modal-card h2 { margin: 5px 0 16px; color: var(--text); font-size: 20px; }
.game-report-label { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 12px; }
#gameReportCategory { width: 100%; margin-bottom: 8px; }

.game-report-hint { margin: 0 0 14px; color: var(--text-muted); font-size: 11.5px; line-height: 1.5; }
.game-report-card textarea { width: 100%; min-height: 110px; max-height: 40vh; box-sizing: border-box; resize: vertical; padding: 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; }
.game-report-card .tpm-err { margin: 0 0 14px; }
.game-report-count { margin: 5px 0 13px; color: var(--text-muted); font-size: 10.5px; text-align: right; }
.game-report-actions { display: flex; justify-content: flex-end; gap: 9px; }
.reviews-modal-card { display: flex; flex-direction: column; width: min(760px, calc(100vw - 32px)); padding: 20px; }
.reviews-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.reviews-modal-close { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text-2); font-size: 20px; cursor: pointer; }
.reviews-modal-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.reviews-modal-tabs button { padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.reviews-modal-tabs button.active { border-color: var(--brand-2); color: var(--text); background: rgba(134,215,236,.08); }
:where(html[data-theme="light"]) .reviews-modal-tabs button.active { background: rgba(27, 111, 151, .08); }
.reviews-modal-list { min-height: 180px; overflow-y: auto; padding-right: 5px; }
.reviews-modal-list .review-row { max-width: none; }
.reviews-modal-more { align-self: center; margin-top: 12px; }



#gameView #gameReviews .review-form-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
#gameView #gameReviews .review-form-note a:hover { text-decoration: underline; }
#gameView #gameReviews .review-form-note strong { display: block; margin-bottom: 2px; color: var(--text-2); font-weight: 650; }


.review-removed {
    display: grid;
    gap: 4px;
    margin: 0 0 13px;
    padding: 10px 11px;
    border-left: 2px solid var(--gold);
    border-radius: 0 8px 8px 0;
    background: rgba(232, 169, 60, .06);
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.45;
}
:where(html[data-theme="light"]) .review-removed { background: rgba(168, 114, 15, .07); }
.review-removed strong { color: var(--text); font-size: 12px; font-weight: 650; }
.review-removed-reason { color: var(--text-2); }
.review-removed-actions { display: flex; gap: 14px; margin-top: 4px; }
.review-removed-actions button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}
.review-removed-actions button:hover { color: var(--danger); }


.review-char-count.is-over { color: var(--danger); }
.review-spoiler-toggle {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: fit-content;
    margin: 0 0 10px;
    color: var(--text-2);
    cursor: pointer;
}
.review-spoiler-toggle input { margin: 2px 0 0; accent-color: var(--gold); }
.review-spoiler-toggle span { display: grid; gap: 1px; }
.review-spoiler-toggle strong { font-size: 11px; font-weight: 650; }
.review-spoiler-toggle small { color: var(--text-muted); font-size: 10px; }


.review-spoiler {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 8px;
    padding: 8px 10px;
    border-left: 2px solid var(--gold);
    color: var(--text-muted);
    background: rgba(232, 169, 60, .055);
    font-size: 11px;
}
:where(html[data-theme="light"]) .review-spoiler { background: rgba(168, 114, 15, .07); }
.review-spoiler button {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    color: #e3bd70;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
:where(html[data-theme="light"]) .review-spoiler button { color: var(--gold); }
.review-spoiler button:hover { color: var(--text); }
.review-spoiler button:focus-visible { outline: 2px solid #e3bd70; outline-offset: 3px; }
:where(html[data-theme="light"]) .review-spoiler button:focus-visible { outline: 2px solid var(--gold); }
.review-spoiler-own {
    display: inline-block;
    width: fit-content;
    margin: 2px 0 2px;
    color: #d7b56f;
    font-size: 10px;
    font-weight: 700;
}
:where(html[data-theme="light"]) .review-spoiler-own { color: var(--gold); }


.review-row-name.is-deleted { color: var(--text-muted); font-weight: 600; font-style: italic; }


@media (max-width: 760px), (pointer: coarse) {
    .review-helpful-btn,
    .review-delete-btn,
    .review-report-btn { min-height: 32px; }
    .reviews-modal-close { width: 40px; height: 40px; }
}


.reviews-modal-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.reviews-modal-tools .reviews-modal-tabs { flex-wrap: wrap; margin-bottom: 0; }
.reviews-modal-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.reviews-modal-filter img { width: 14px; height: 14px; object-fit: contain; }
.reviews-modal-filter[aria-pressed="true"] { border-color: var(--brand-2); color: var(--text); background: rgba(134, 215, 236, .08); }
:where(html[data-theme="light"]) .reviews-modal-filter[aria-pressed="true"] { background: rgba(27, 111, 151, .08); }
.reviews-modal-tabs button:focus-visible,
.reviews-modal-filter:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
@media (max-width: 560px) {
    .reviews-modal-card { padding: 16px; }
    .reviews-modal-tools { align-items: stretch; flex-direction: column; }
    .reviews-modal-tools .reviews-modal-tabs { display: grid; grid-template-columns: 1fr 1fr; }
    .reviews-modal-tools .reviews-modal-tabs button,
    .reviews-modal-filter { min-height: 36px; }
    .reviews-modal-filter { align-self: flex-start; }
}


.game-report-label small { color: var(--text-muted); font-size: 11px; }


.profile-reviews-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.profile-reviews-head .panel-title { margin-bottom: 10px; }
.profile-reviews-count { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.profile-review-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.profile-review-row:first-of-type { border-top: 0; padding-top: 2px; }
.profile-review-icon { width: 36px; height: 36px; border-radius: 6px; background: var(--icon-plate, var(--surface-2)); object-fit: contain; }
.profile-review-game { display: block; overflow: hidden; color: var(--text-2); font-size: 12.5px; font-weight: 650; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.profile-review-game:hover { color: var(--text); }
.profile-review-meta { display: flex; align-items: center; gap: 7px; margin-top: 2px; color: var(--text-muted); font-size: 10.5px; }
.profile-review-meta .star { font-size: 12px; }
.profile-review-row .review-row-text { margin: 5px 0 4px; font-size: 12px; line-height: 1.5; -webkit-line-clamp: 3; }
.profile-review-row .review-more-btn { margin: 0 0 2px; font-size: 11.5px; }
.profile-review-row .review-spoiler { margin: 6px 0 2px; }
.profile-reviews-more { width: 100%; margin-top: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--brand-2); font: inherit; font-size: 11.5px; cursor: pointer; }
.profile-reviews-more:hover { border-color: var(--brand-2); color: var(--text); }
@media (max-width: 760px), (pointer: coarse) {
    .profile-reviews-more { min-height: 40px; }
}

@media (max-width: 1050px) {
    #gameView .game-layout { grid-template-columns: 1fr; }
    #gameView .game-side, #gameView .game-layout.has-game-groups .game-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; padding-top: 0; }
}
@media (max-width: 760px) {
    
    #gameView .game-side,
    #gameView .game-layout.has-game-groups .game-side { grid-template-columns: minmax(0, 1fr); }
    #gameView .game-page-hero { min-height: var(--game-mobile-pill-height); }
    #gameView .game-page-hero .gd-hero-main { padding-bottom: 200px; }
    #gameView .game-community-dock { grid-template-columns: repeat(2, 1fr); }
    #gameView .game-community-stat:first-child { grid-column: 1 / -1; }
    
    #gameView .game-community-dock.is-even .game-community-stat:first-child { grid-column: auto; }
    #gameView .game-community-dock.is-even .gd-trophy-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.07); }
    #gameView .game-community-dock.is-even .gd-trophy-stat:nth-child(odd) { border-left: 0; }
    #gameView .game-community-dock.is-even .gd-trophy-stat:nth-child(-n+2) { border-top: 0; }
    html[data-theme="light"] #gameView .game-community-dock.is-even .gd-trophy-stat { border-color: rgba(23,32,58,.12); }
    .trophy-rarity-tier { display: none; }
}


@media (max-width: 430px) {
    #gameView .trophy-row { gap: 12px; padding: 12px 10px; }
    #gameView .trophy-rarity { width: auto; }
    #gameView .trophy-tip-trigger { width: 24px; height: 24px; }
    #gameView .trophy-tip-trigger svg { width: 16px; height: 16px; }
    #gameView .trophy-type-img { width: 24px; height: 24px; }
}

    
    .feed-item {
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: var(--radius-md);
        padding: 10px;
        cursor: pointer;
        text-align: left;
        transition: background 0.15s;
    }

    
    @keyframes feed-in {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .feed-item.feed-enter { animation: feed-in 0.45s ease both; }

    .feed-icon-wrap { position: relative; flex-shrink: 0; line-height: 0; }
    .feed-game { width: 46px; height: 46px; border-radius: 8px; object-fit: contain; display: block; }
    .feed-plat {
        position: absolute;
        left: -9px;
        bottom: -7px;
        width: 26px;
        height: 26px;
        object-fit: contain;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
    }

    .feed-text { flex: 1; min-width: 0; }
    .feed-line1 {
        margin: 0;
        font-size: 13px;
        color: var(--text-3);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .feed-name { color: var(--text); font-weight: 700; }
    .feed-line2 {
        margin: 3px 0 0;
        font-size: 12px;
        color: var(--text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .feed-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }
    
    .feed-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
    .feed-side .chipline.feed-kind { font-size: 10px; padding: 2px 7px; color: var(--text-3); }

    
    @media (max-width: 430px) {
        .feed-item { gap: 10px; }
        .feed-game { width: 40px; height: 40px; }
        .feed-side .stamp { display: none; }
    }

    .hero-search {
        
        position: relative;
        display: flex;
        gap: 10px;
        padding: 10px;
        background: rgba(25, 30, 36, 0.6);
        backdrop-filter: blur(10px);
        border: 1px solid var(--dark-field-edge, var(--border));
        border-radius: 16px;
        box-shadow: 0 24px 70px rgba(0,0,0,0.5);
        transition: border-color 0.2s;
    }
    :where(html[data-theme="light"]) .hero-search { background: rgba(22,33,62,0.6); }

    .hero-search:focus-within {
        border-color: var(--accent);
    }

    .hero-search input[type="text"] {
        flex: 1;
        width: auto;
        min-width: 0;   
        margin: 0;
        padding: 12px 16px;
        background: transparent;
        border: none;
        font-size: 16px;
    }

    .hero-search input[type="text"]::placeholder {
        color: var(--dark-text-muted, #6b6b80);
    }

    .hero-search button {
        padding: 12px 30px;
        font-size: 15px;
        background: var(--accent);
        color: var(--dark-accent-ink, inherit);
        border: none;
        border-radius: 10px;
    }

    .hero-search button:hover {
        background: var(--accent-hover);
    }

    
    html[data-theme="light"] .hero-search {
        background: rgba(255, 255, 255, .18);
        -webkit-backdrop-filter: blur(14px) saturate(1.4);
        backdrop-filter: blur(14px) saturate(1.4);
        border: 1px solid rgba(255, 255, 255, .35);
        box-shadow: 0 10px 30px rgba(11, 13, 22, .4);
    }
    
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        html[data-theme="light"] .hero-search { background: rgba(60, 71, 97, .74); }
    }
    html[data-theme="light"] .hero-search input[type="text"] { color: #f4f6fa; }
    html[data-theme="light"] .hero-search input[type="text"]::placeholder { color: rgba(244, 246, 250, .72); }
    
    html[data-theme="light"] .home-sync-panel:not(.is-idle) {
        background: rgba(17, 24, 39, .82);
        -webkit-backdrop-filter: blur(14px) saturate(1.3);
        backdrop-filter: blur(14px) saturate(1.3);
        border-color: rgba(255, 255, 255, .18);
    }

    .hero-msg {
        margin-top: 18px;
        min-height: 20px;
        color: var(--text-3);
        font-size: 14px;
    }

    .stats-row {
    display:flex;
    flex-wrap: wrap;
    gap:12px;
    margin-bottom: 16px;
    align-items:flex-start;
}

    .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    width: fit-content;
}

    .stat-value {
        font-size: 20px;
        font-weight: bold;
        color: var(--text);
    }

    .stat-label {
        font-size: 12px;
        color: var(--text-3);
        margin-top: 2px;
    }
    
    button {
        font: inherit;
        cursor: pointer;
        border: none;
        background: none;
        color: inherit;
        padding: 0;
    }

    
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        border-radius: var(--radius-sm);
        font-size: 14px;
        border: 1px solid transparent;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
    }

    .btn-primary {
        background: var(--accent);
        color: var(--accent-ink);
    }
    .btn-primary:hover {
        background: var(--accent-hover);
    }
    
    .btn-primary:disabled,
    .btn-primary:disabled:hover { background: var(--surface-2); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; }

    .btn-ghost {
        background: transparent;
        border-color: var(--border);
        color: var(--text-2);
    }
    .btn-ghost:hover {
        border-color: var(--accent);
        color: var(--text);
    }

    body {
        font-family: var(--font-sans);
        background: var(--bg);
        color: var(--text);
        padding: var(--site-frame-padding);
        
        max-width: var(--site-frame-max-width);
        margin: 0 auto;
        
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        box-sizing: border-box;
    }

    
    #leaderboardView,
    #guidesView,
    #statsView,
    #compareView,
    #milestonesView {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    
    #platClubView {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    
    #siteFooter {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px 24px;
        margin: 0 0 8px;
        margin-top: auto;
        position: relative;
        
        padding-top: 64px;
        font-size: 13px;
        color: var(--text-muted);
    }
    #siteFooter::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 44px;
        height: 1px;
        background: var(--dark-surface-2, #1e2740);
    }
    
    .footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .footer-right { display: flex; align-items: center; gap: 8px; }
    .footer-item { display: inline-flex; align-items: center; }
    .footer-sep { color: var(--text-muted); opacity: 0.5; }
    .footer-link { color: inherit; }
    .footer-link:hover { text-decoration: underline; }
    .footer-disclaimer {
        flex-basis: 100%;
        margin: 0;
        font-size: 12px;
        opacity: 0.75;
    }

    
    @media (max-width: 640px) {
        #siteFooter { flex-direction: column; align-items: center; text-align: center; }
        .footer-left { justify-content: center; }
        .footer-disclaimer { flex-basis: auto; }
    }

    
    .about-page {
        width: 100%;
        padding: 30px 0 60px;
    }
    .about-title { margin: 0 0 20px; font-size: 26px; }
    .about-copy { max-width: 720px; }
    .about-copy p {
        margin: 0 0 16px;
        color: var(--text-2);
        font-size: 14px;
        line-height: 1.6;
    }
    .about-copy h2 { margin: 28px 0 8px; font-size: 18px; }
    .about-copy a { color: var(--accent); }
    .about-copy a:hover { text-decoration: underline; }

    
    .lt-flag {
        display: inline-block;
        width: 18px;
        height: auto;
        vertical-align: -2px;
        border-radius: 2px;
        margin-left: 2px;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 8px;
    }

    
    
    .profile-id {
        flex: 1;
        min-width: 0;
    }

    
    .profile-name {
        margin: 0;
        cursor: pointer;
        width: fit-content;
        transition: color 0.15s;
    }
    .profile-name-link { color: inherit; text-decoration: none; }
    .profile-name:hover { color: var(--accent); }

    
    .profile-follow-row {
        display: flex;
        width: fit-content;
        align-items: center;
        flex-wrap: wrap;
        gap: 7px;
        margin: 5px 0 0;
    }
    .profile-follow-row[hidden] { display: none; }
    
    .profile-follow-row { min-height: 24px; }
    .profile-follow-row.is-loading { visibility: hidden; }
    .profile-follow-pill {
        display: flex;
        width: fit-content;
        align-items: center;
        gap: 6px;
        margin: 0;
        
        padding: 4px 11px;
        
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 5px;
        font-size: 11.5px;
        color: var(--text-2);
    }
    .profile-follow-pill[hidden] { display: none; }
    .profile-follow-pill b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
    .profile-follow-pill a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: inherit;
        text-decoration: none;
    }
    .profile-follow-pill a:hover { color: var(--text); }
    .profile-follow-pill a:focus-visible {
        outline: 2px solid var(--brand-2);
        outline-offset: 3px;
        border-radius: 2px;
    }
    .profile-follow-sep { color: var(--dark-border-hover, #3c4a6e); }
    .profile-follows-you {
        display: flex;
        width: fit-content;
        align-items: center;
        padding: 4px 11px;
        background: rgba(8, 12, 17, 0.68);
        border: 1px solid rgba(196, 200, 204, 0.22);
        border-radius: var(--radius-full);
        font-size: 11.5px;
        color: var(--text-3);
        white-space: nowrap;
    }
    :where(html[data-theme="light"]) .profile-follows-you { background: rgba(8, 12, 24, 0.68); border: 1px solid rgba(180, 200, 238, 0.22); }
    .profile-follows-you[hidden] { display: none; }

    
    #trophyLogView { width: 100%; max-width: none; margin: 0; padding-bottom: 64px; }
    .trophy-log-page { min-width: 0; }
    .trophy-log-head {
        margin: 10px 0 22px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--border);
    }
    .trophy-log-kicker {
        margin: 0 0 7px;
        color: var(--brand-2);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .13em;
        text-transform: uppercase;
    }
    .trophy-log-head h1 {
        margin: 0;
        color: var(--text);
        font-size: clamp(28px, 4vw, 38px);
        letter-spacing: -.035em;
    }
    .trophy-log-head > div > p:not(.trophy-log-kicker) {
        margin: 7px 0 0;
        color: var(--text-3);
        font-size: 13px;
    }
    .trophy-log-head .tz-note { margin-top: 10px; }
    .trophy-log-filters {
        display: grid;
        grid-template-columns: repeat(4, minmax(135px, 1fr)) auto auto;
        align-items: end;
        gap: 10px;
        margin: -4px 0 22px;
    }
    .trophy-log-filter {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 6px;
    }
    .trophy-log-filter > span {
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 750;
        letter-spacing: .055em;
        text-transform: uppercase;
    }
    .trophy-log-filter select {
        width: 100%;
        min-width: 0;
        height: 38px;
        appearance: none;
        -webkit-appearance: none;
        padding: 0 34px 0 11px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2397a0b3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center no-repeat;
        color: var(--text-2);
        font: inherit;
        font-size: 12.5px;
        font-weight: 600;
        cursor: pointer;
    }
    .trophy-log-filter select:hover { border-color: color-mix(in srgb, var(--brand-2) 48%, var(--border)); }
    .trophy-log-filter select:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .trophy-log-order-hint {
        display: inline-flex;
        height: 38px;
        align-items: center;
        color: var(--text-muted);
        font-size: 11px;
        white-space: nowrap;
    }
    .trophy-log-clear {
        height: 38px;
        padding: 0 13px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: transparent;
        color: var(--text-3);
        font: inherit;
        font-size: 11.5px;
        font-weight: 650;
        white-space: nowrap;
        cursor: pointer;
    }
    .trophy-log-clear:hover { border-color: var(--brand-2); color: var(--text); }
    .trophy-log-sync {
        display: flex;
        align-items: center;
        gap: 11px;
        margin: -4px 0 22px;
        padding: 11px 13px;
        border: 1px solid color-mix(in srgb, var(--brand-2) 34%, var(--border));
        border-radius: 10px;
        background: color-mix(in srgb, var(--brand-2) 7%, var(--surface));
        color: var(--text-3);
        font-size: 12px;
        line-height: 1.45;
    }
    .trophy-log-sync[hidden] { display: none; }
    .trophy-log-sync strong { color: var(--text); }
    .trophy-log-sync-mark {
        width: 8px;
        height: 8px;
        flex: 0 0 auto;
        border: 2px solid var(--brand-2);
        border-radius: 50%;
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 12%, transparent);
    }
    .trophy-log-rows { display: flex; flex-direction: column; gap: 26px; }
    .trophy-log-day {
        display: grid;
        grid-template-columns: 188px minmax(0, 1fr);
        gap: 26px;
    }
    .trophy-log-day > h2 {
        position: sticky;
        top: 76px;
        align-self: start;
        margin: 15px 0 0;
        color: var(--text-2);
        max-width: 112px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.35;
        letter-spacing: .01em;
        white-space: nowrap;
    }
    .trophy-log-day-list {
        position: relative;
        min-width: 0;
        border-top: 1px solid var(--border);
    }
    .trophy-log-day-list::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -16px;
        width: 1px;
        background: color-mix(in srgb, var(--brand-2) 42%, var(--border));
    }
    .trophy-log-row {
        position: relative;
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr) auto 54px;
        align-items: center;
        gap: 14px;
        min-height: 82px;
        padding: 13px 12px;
        border-bottom: 1px solid var(--border);
        color: var(--text);
        text-decoration: none;
        transition: background .15s ease, border-color .15s ease;
    }
    a.trophy-log-row:hover {
        border-color: color-mix(in srgb, var(--brand-2) 38%, var(--border));
        background: color-mix(in srgb, var(--brand-2) 5%, transparent);
    }
    a.trophy-log-row:focus-visible {
        z-index: 1;
        outline: 2px solid var(--brand-2);
        outline-offset: -2px;
        border-radius: 5px;
    }
    .trophy-log-node {
        position: absolute;
        left: -20px;
        width: 9px;
        height: 9px;
        border: 2px solid var(--brand-2);
        border-radius: 50%;
        background: var(--bg);
        box-shadow: 0 0 0 3px var(--bg);
    }
    .trophy-log-game-art {
        position: absolute;
        left: -86px;
        width: 54px;
        height: 54px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: var(--surface-2);
        object-fit: contain;
    }
    .trophy-log-game-art-fallback {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-size: 18px;
        font-weight: 750;
    }
    .trophy-log-icon {
        width: 54px;
        height: 54px;
        border-radius: 9px;
        object-fit: cover;
        background: var(--surface-2);
    }
    .trophy-log-copy {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 4px;
    }
    .trophy-log-titleline {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 7px;
    }
    .trophy-log-titleline strong {
        overflow: hidden;
        color: var(--text);
        font-size: 14px;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .trophy-log-type {
        width: 48px;
        height: 54px;
        justify-self: end;
        object-fit: contain;
    }
    .trophy-log-detail {
        overflow: hidden;
        color: var(--text-3);
        font-size: 11.5px;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .trophy-log-game {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 6px;
        overflow: hidden;
        color: var(--brand-2);
        font-size: 11.5px;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .trophy-log-game-name {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .trophy-log-game .platform-badge { flex: 0 0 auto; margin-bottom: 0; }
    .trophy-log-number {
        flex: 0 0 auto;
        padding-left: 8px;
        border-left: 1px solid var(--border-strong);
        color: var(--text-muted);
        font-size: 10.5px;
        font-weight: 650;
        font-variant-numeric: tabular-nums;
    }
    .trophy-log-meta {
        display: flex;
        min-width: 78px;
        align-items: flex-end;
        flex-direction: column;
        gap: 6px;
        color: var(--text-muted);
        font-size: 11px;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }
    .trophy-log-rarity {
        color: var(--text-2);
        font-size: 11.5px;
        font-weight: 700;
    }
    .trophy-log-day-skeleton { padding-top: 4px; }
    .trophy-log-skeleton-row { grid-template-columns: 54px minmax(0, 1fr) 54px; }
    .trophy-log-skeleton-row .trophy-log-copy { gap: 9px; }
    .trophy-log-skeleton-row .trophy-log-type { grid-column: 3; }
    .trophy-log-empty {
        padding: 64px 20px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
        color: var(--text-muted);
        font-size: 13px;
        text-align: center;
    }
    #trophyLogPaginationTop { margin-bottom: 20px; }
    #trophyLogPagination { margin-top: 26px; }

    @media (max-width: 680px) {
        .trophy-log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .trophy-log-order-hint { height: auto; align-self: center; }
        .trophy-log-clear { justify-self: end; }
        .trophy-log-day { grid-template-columns: 1fr; gap: 9px; }
        .trophy-log-day > h2 {
            position: static;
            max-width: none;
            margin: 0;
            padding-left: 24px;
            white-space: normal;
        }
        .trophy-log-day-list { margin-left: 20px; }
        .trophy-log-day-list::before { left: -15px; }
        .trophy-log-row {
            grid-template-columns: 40px 46px minmax(0, 1fr) 38px;
            gap: 9px;
            padding: 11px 6px;
        }
        .trophy-log-node { left: -19px; }
        .trophy-log-game-art {
            position: static;
            grid-column: 1;
            grid-row: 1 / span 2;
            width: 40px;
            height: 40px;
            align-self: center;
            border-radius: 7px;
        }
        .trophy-log-icon {
            grid-column: 2;
            grid-row: 1 / span 2;
            width: 46px;
            height: 46px;
            align-self: center;
            border-radius: 8px;
        }
        .trophy-log-copy { grid-column: 3; grid-row: 1; }
        .trophy-log-meta {
            grid-column: 3;
            grid-row: 2;
            min-width: 0;
            align-items: center;
            flex-direction: row;
            gap: 10px;
        }
        .trophy-log-type {
            grid-column: 4;
            grid-row: 1 / span 2;
            width: 36px;
            height: 46px;
            align-self: center;
        }
        .trophy-log-detail { display: none; }
        .trophy-log-number { display: none; }
        .trophy-log-skeleton-row {
            grid-template-columns: 40px 46px minmax(0, 1fr) 38px;
        }
        .trophy-log-skeleton-row .trophy-log-type { grid-column: 4; }
    }

    
    #followListView { width: 100%; max-width: none; margin: 0; padding-bottom: 60px; }
    .follow-list-page { min-width: 0; }
    .follow-list-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        margin: 10px 0 22px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--border);
    }
    .follow-list-head h1 { margin: 0; color: var(--text); font-size: 28px; letter-spacing: -.025em; }
    .follow-list-head p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; }
    .follow-list-tabs { display: flex; gap: 8px; flex-shrink: 0; }
    .follow-list-tabs a {
        padding: 8px 13px;
        min-width: 116px;
        box-sizing: border-box;
        text-align: center;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        color: var(--text-3);
        font-size: 12px;
        font-weight: 650;
        text-decoration: none;
    }
    .follow-list-tabs a:hover { border-color: var(--brand-2); color: var(--text); }
    .follow-list-tabs a[aria-current="page"] {
        border-color: color-mix(in srgb, var(--brand-2) 58%, var(--border));
        background: color-mix(in srgb, var(--brand-2) 11%, var(--surface));
        color: var(--text);
    }
    .follow-list-tabs span { margin-left: 4px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .follow-list-tabs .follow-list-count-pending { visibility: hidden; }
    .follow-list-rows {
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
    }
    .follow-user-row {
        display: flex;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 11px 14px;
        border-top: 1px solid var(--border);
    }
    .follow-user-row:first-child { border-top: 0; }
    .follow-user-profile {
        display: flex;
        min-width: 0;
        align-items: center;
        gap: 12px;
        color: var(--text);
        text-decoration: none;
    }
    .follow-user-profile:hover strong { color: var(--brand-2); }
    .follow-user-profile:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 4px; border-radius: 4px; }
    .follow-user-profile strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
    .follow-user-avatar {
        width: 44px;
        height: 44px;
        flex: 0 0 auto;
        border-radius: 50%;
        object-fit: cover;
        background: var(--surface-2);
    }
    .follow-user-avatar-blank {
        display: grid;
        place-items: center;
        color: var(--text-2);
        font-size: 15px;
        font-weight: 750;
    }
    .follow-list-action {
        flex: 0 0 auto;
        padding: 7px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        background: transparent;
        color: var(--text-2);
        font: inherit;
        font-size: 11.5px;
        font-weight: 650;
        cursor: pointer;
    }
    .follow-list-action:hover,
    .follow-list-action.is-remove { border-color: rgba(255, 107, 107, .48); color: #ff8a8a; }
    .follow-list-action.is-remove:hover { background: rgba(255, 107, 107, .1); }
    .follow-list-action:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .follow-list-action:disabled { opacity: .55; cursor: wait; }
    .follow-user-skeleton { justify-content: flex-start; }
    .follow-list-empty { padding: 54px 20px; color: var(--text-muted); font-size: 13px; text-align: center; }

    @media (max-width: 640px) {
        .follow-list-head { align-items: stretch; flex-direction: column; gap: 16px; }
        .follow-list-head h1 { font-size: 24px; }
        .follow-list-tabs { width: 100%; }
        .follow-list-tabs a { flex: 1; text-align: center; }
        .follow-user-row { min-height: 64px; padding: 9px 11px; }
        .follow-user-avatar { width: 40px; height: 40px; }
    }

    
    .level-pill {
        display: flex;
        width: fit-content;
        align-items: center;
        gap: 7px;
        margin: 10px 0 0;
        
        padding: 3px 11px 3px 6px;
        background: rgba(8, 12, 17, 0.68);
        border: 1px solid rgba(196, 200, 204, 0.22);
        border-radius: var(--radius-full);
        cursor: help;
    }
    :where(html[data-theme="light"]) .level-pill { background: rgba(8, 12, 24, 0.68); border: 1px solid rgba(180, 200, 238, 0.22); }
    .level-pill-emblem { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
    .level-pill-num { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
    .level-pill-bar {
        width: 54px;
        height: 4px;
        background: rgba(196, 200, 204, 0.18);
        border-radius: var(--radius-full);
        overflow: hidden;
    }
    :where(html[data-theme="light"]) .level-pill-bar { background: rgba(180, 200, 238, 0.18); }
    .level-pill-fill { display: block; height: 100%; background: var(--brand-gradient); border-radius: var(--radius-full); }

    
    .profile-sync-corner,
    .gd-playtime-pill {
        position: absolute;
        right: 30px;
        bottom: 90px;
        z-index: 3;
        margin: 0;
        padding: 5px 10px 5px 6px;
        justify-content: flex-end;
        color: rgba(241, 246, 255, 0.9);
        background: rgba(4, 6, 10, 0.76);
        border: 1px solid rgba(224, 227, 232, 0.24);
        border-radius: var(--radius-full);
        box-shadow: 0 5px 18px rgba(0, 0, 0, 0.58), 0 1px 2px rgba(0, 0, 0, 0.82);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    :where(html[data-theme="light"]) .profile-sync-corner, :where(html[data-theme="light"]) .gd-playtime-pill { background: rgba(5, 9, 19, 0.76); border: 1px solid rgba(214, 226, 250, 0.24); }
    .profile-sync-corner .refresh-icon { color: rgba(247, 250, 255, 0.94); }
    .profile-sync-corner .refresh-icon:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

    .profile-name-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .profile-flag {
        width: 22px;
        height: 15px;
        border-radius: 3px;
        object-fit: cover;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
        flex-shrink: 0;
    }

    
    
    .standing-plaque {
        position: absolute;
        top: 18px;
        right: 20px;
        z-index: 3;
        display: flex;
        align-items: stretch;
        border: 1px solid rgba(197, 200, 204, 0.16);
        border-radius: 12px;
        background: linear-gradient(180deg, rgba(15, 20, 25, 0.78), rgba(4, 6, 10, 0.86));
        backdrop-filter: blur(9px);
        -webkit-backdrop-filter: blur(9px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.07);
        overflow: hidden;
    }
    :where(html[data-theme="light"]) .standing-plaque { border: 1px solid rgba(198, 205, 219, 0.16); background: linear-gradient(180deg, rgba(13, 18, 31, 0.78), rgba(7, 10, 18, 0.86)); }
    .standing-half {
        display: block;
        padding: 9px 16px 10px;
        text-align: right;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.15s;
    }
    .standing-half:hover { background: rgba(78, 156, 190, 0.14); }
    .standing-half + .standing-half { border-left: 1px solid rgba(197, 200, 204, 0.12); }
    :where(html[data-theme="light"]) .standing-half + .standing-half { border-left: 1px solid rgba(198, 205, 219, 0.12); }
    .standing-numline {
        display: flex;
        align-items: baseline;
        justify-content: flex-end;
        gap: 6px;
    }
    .standing-num {
        display: block;
        color: var(--text);
        font-size: 16px;
        font-weight: 850;
        font-variant-numeric: tabular-nums;
        line-height: 1.15;
    }
    
    .standing-mv {
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: 0.02em;
        font-variant-numeric: tabular-nums;
        
        vertical-align: middle;
    }
    .standing-mv-up { color: var(--success); }
    .standing-mv-down { color: #ff6b6b; }
    .standing-half small {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        margin-top: 2.5px;
        color: var(--text-3);
        font-size: 9.5px;
        font-weight: 750;
        letter-spacing: 0.13em;
        text-transform: uppercase;
    }
    .standing-half small svg {
        width: 11px;
        height: 11px;
        fill: none;
        stroke: var(--text-3);
        stroke-width: 1.7;
        flex-shrink: 0;
    }
    .standing-flag {
        width: 15px;
        height: 10px;
        border-radius: 2px;
        object-fit: cover;
    }
    
    .standing-plaque.has-podium { border-color: rgba(232, 169, 60, 0.38); }
    .standing-podium .standing-num {
        background: linear-gradient(90deg, #f4d78a, var(--gold) 60%, #c98a28);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 17px;
    }
    .standing-podium small { color: var(--gold); }
    .standing-podium small svg { stroke: var(--gold); }

    
    #profileHeader.profile-hero {
        position: relative;
        isolation: isolate;
        display: block !important;
        min-height: var(--profile-pill-height);
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--dark-card-edge, rgba(112, 137, 191, 0.26));
        
        border-radius: 18px;
        background: var(--dark-surface,
            radial-gradient(circle at 82% 18%, rgba(29, 191, 185, 0.13), transparent 31%),
            linear-gradient(115deg, #11172a 0%, #111a31 54%, #0b2025 100%));
        box-shadow: var(--dark-flat, 0 18px 48px rgba(2, 6, 18, 0.24));
    }
    #profileHeader.profile-hero::before,
    #profileHeader.profile-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
    }
    #profileHeader.profile-hero::before {
        z-index: -2;
        background-image: var(--profile-artwork);
        background-size: cover;
        background-position: var(--profile-artwork-pos, center);
        filter: blur(24px) saturate(1.06);
        opacity: 0;
        transform: scale(calc(1.08 * var(--profile-artwork-zoom, 1)));
        transform-origin: var(--profile-artwork-pos, center);
        transition: opacity 0.35s ease;
    }
    #profileHeader.profile-hero.has-artwork::before {
        opacity: 0.3;
    }
    #profileHeader.profile-hero::after {
        z-index: -1;
        background:
            linear-gradient(90deg, rgba(4, 6, 10, 0.96) 0%, rgba(8, 12, 17, 0.82) 43%, rgba(8, 12, 17, 0.28) 78%, rgba(8, 12, 17, 0.48) 100%),
            linear-gradient(0deg, rgba(4, 6, 10, 0.7), transparent 62%);
    }
    :where(html[data-theme="light"]) #profileHeader.profile-hero::after { background: linear-gradient(90deg, rgba(7, 10, 21, 0.96) 0%, rgba(7, 11, 23, 0.82) 43%, rgba(7, 12, 23, 0.28) 78%, rgba(7, 12, 23, 0.48) 100%), linear-gradient(0deg, rgba(7, 10, 20, 0.7), transparent 62%); }
    
    #profileHeader.profile-hero:not(.has-artwork)::after {
        background: var(--dark-flat,
            radial-gradient(circle at 85% 20%, rgba(134, 215, 236, 0.12), transparent 42%),
            linear-gradient(90deg, rgba(5, 8, 18, 0.92), rgba(10, 15, 28, 0.76)));
    }
    #profileHeader.profile-hero .profile-name,
    #profileHeader.profile-hero .sync-line { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); }

    .profile-identity-panel {
        border-radius: inherit;
        position: absolute;
        z-index: 2;
        inset: 0;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        width: 100%;
        min-height: 0;
        min-width: 0;
        pointer-events: none;
    }
    .profile-identity {
        display: flex;
        flex: 1;
        align-items: center;
        gap: 16px;
        min-width: 0;
    }
    #profileHeader.profile-hero .profile-identity {
        width: min(62%, 780px);
        padding: 38px 34px 30px;
    }
    #profileHeader.profile-hero .profile-identity a,
    #profileHeader.profile-hero .profile-identity button,
    #profileHeader.profile-hero .profile-identity .avatar-wrap,
    #profileHeader.profile-hero .profile-identity .level-pill,
    #profileHeader.profile-hero .profile-identity .profile-follow-pill,
    #profileHeader.profile-hero .profile-identity .profile-name { pointer-events: auto; }
    
    .profile-trophy-strip {
        display: grid;
        grid-template-columns: 1.25fr repeat(4, 1fr);
        width: calc(100% - clamp(250px, 28vw, 360px));
        height: 78px;
        box-sizing: border-box;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        
        border-bottom-left-radius: inherit;
        clip-path: border-box;
        
        background: rgba(8, 12, 17, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
        -webkit-backdrop-filter: blur(22px) saturate(1.5);
        backdrop-filter: blur(22px) saturate(1.5);
        pointer-events: auto;
    }
    
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .profile-trophy-strip { background: rgba(4, 6, 10, 0.76); }
        :where(html[data-theme="light"]) .profile-trophy-strip { background: rgba(5, 9, 19, 0.76); }
    }
    .profile-trophy-total {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-width: 0;
        padding: 12px 10px;
        border-left: 1px solid rgba(255, 255, 255, 0.07);
    }
    .profile-trophy-total:first-child {
        justify-content: flex-start;
        padding-left: 34px;
        border-left: 0;
    }
    .profile-trophy-total img { width: 25px; height: 25px; object-fit: contain; }
    .profile-trophy-total > span { display: grid; gap: 1px; min-width: 0; }
    .profile-trophy-total strong { color: #f4f7ff; font-size: 16px; line-height: 1; }
    .profile-trophy-total small {
        color: rgba(224, 227, 232, 0.6);
        font-size: 9px;
        font-weight: 650;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }
    :where(html[data-theme="light"]) .profile-trophy-total small { color: rgba(219, 227, 244, 0.6); }
    
    .profile-trophy-total > span:has(.profile-hero-earned) { grid-template-rows: auto auto; }
    .profile-trophy-total .profile-hero-earned,
    .profile-trophy-total .profile-hero-unearned {
        grid-column: 1;
        transition: opacity 220ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
    }
    .profile-trophy-total strong.profile-hero-earned,
    .profile-trophy-total strong.profile-hero-unearned { grid-row: 1; }
    .profile-trophy-total small.profile-hero-earned,
    .profile-trophy-total small.profile-hero-unearned { grid-row: 2; }
    .profile-trophy-total .profile-hero-unearned { color: var(--accent); opacity: 0; transform: translateY(5px); }
    .profile-trophy-total:hover .profile-hero-earned,
    .profile-trophy-total:focus-visible .profile-hero-earned { opacity: 0; transform: translateY(-5px); }
    .profile-trophy-total:hover .profile-hero-unearned,
    .profile-trophy-total:focus-visible .profile-hero-unearned { opacity: 1; transform: translateY(0); }
    
    #profileView:has(#profileHeader.profile-hero) > .trophy-breakdown { display: none; }

    .profile-artwork-panel {
        position: absolute;
        z-index: 0;
        inset: 0;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: inherit;
        background: var(--dark-scrim-deep, #070a15);
        color: var(--text);
        box-shadow: none;
    }
    .profile-artwork-panel > img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        -webkit-mask-image: none;
        mask-image: none;
        transition: transform 0.45s ease, filter 0.2s ease;
    }
    .profile-artwork-panel::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(4, 6, 10, 0.94) 0%, rgba(4, 6, 10, 0.82) 32%, rgba(4, 6, 10, 0.44) 58%, rgba(4, 6, 10, 0.16) 100%),
            linear-gradient(0deg, rgba(4, 6, 10, 0.72), transparent 52%);
        pointer-events: none;
    }
    :where(html[data-theme="light"]) .profile-artwork-panel::after { background: linear-gradient(90deg, rgba(5, 8, 18, 0.94) 0%, rgba(5, 8, 18, 0.82) 32%, rgba(5, 8, 18, 0.44) 58%, rgba(5, 8, 18, 0.16) 100%), linear-gradient(0deg, rgba(4, 7, 15, 0.72), transparent 52%); }
    
    @media (min-width: 901px) {
        .profile-artwork-panel::after {
            background:
                linear-gradient(90deg, rgba(4, 6, 10, .86) 0%, rgba(4, 6, 10, .6) 400px, rgba(4, 6, 10, .14) 680px, rgba(4, 6, 10, 0) 900px),
                linear-gradient(0deg, rgba(4, 6, 10, .74) 0%, rgba(4, 6, 10, 0) 36%);
        }
    }
    .profile-artwork-panel:hover > img { transform: scale(1.012); filter: brightness(1.05); }
    
    .profile-artwork-panel.is-empty { background: transparent; }
    .profile-artwork-panel.is-empty::after { display: none; }
    
    .profile-pulse {
        border-bottom-right-radius: inherit;
        clip-path: border-box;
        position: absolute;
        z-index: 3;
        left: auto;
        right: 0;
        bottom: 0;
        box-sizing: border-box;
        width: clamp(250px, 28vw, 360px);
        height: 78px;
        min-height: 0;
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-left: 1px solid rgba(255, 255, 255, 0.07);
        background: linear-gradient(180deg, rgba(25, 30, 36, 0.38), rgba(15, 20, 25, 0.52));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
        -webkit-backdrop-filter: blur(22px) saturate(1.5);
        backdrop-filter: blur(22px) saturate(1.5);
        text-align: left;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
        overflow: hidden;
    }
    :where(html[data-theme="light"]) .profile-pulse { background: linear-gradient(180deg, rgba(23, 32, 58, 0.38), rgba(11, 16, 30, 0.52)); }
    
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .profile-pulse { background: rgba(4, 6, 10, 0.66); }
        :where(html[data-theme="light"]) .profile-pulse { background: rgba(5, 9, 19, 0.66); }
    }
    .profile-pulse-slide {
        position: absolute;
        inset: 0;
        display: grid;
        align-content: center;
        gap: 2px;
        box-sizing: border-box;
        width: 100%;
        padding: 14px 24px;
        color: var(--text);
        opacity: 0;
        pointer-events: none;
        transform: translateY(18px);
        transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
    }
    .profile-pulse-slide.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .profile-pulse-slide.is-exiting { opacity: 0; transform: translateY(-18px); }
    .profile-pulse-slide strong {
        overflow: hidden;
        color: #fff;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .profile-pulse-slide:not(.profile-pulse-trophy) strong { font-size: 18px; }
    .profile-pulse-slide small { color: rgba(242, 246, 255, 0.72); font-size: 11px; }
    .profile-pulse-trophy {
        border: 0;
        background: transparent;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }
    .profile-pulse-trophy:hover strong { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
    .profile-pulse-trophy:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

    
    html[data-theme="light"] .profile-trophy-strip {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 249, 253, 0.78));
        border-top: 1px solid rgba(255, 255, 255, 0.9);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(22px) saturate(1.6);
        backdrop-filter: blur(22px) saturate(1.6);
    }
    html[data-theme="light"] .profile-pulse {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 249, 253, 0.78));
        border-top: 1px solid rgba(255, 255, 255, 0.9);
        border-left-color: rgba(23, 32, 58, 0.12);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(22px) saturate(1.6);
        backdrop-filter: blur(22px) saturate(1.6);
        text-shadow: none;
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        html[data-theme="light"] .profile-trophy-strip,
        html[data-theme="light"] .profile-pulse { background: rgba(247, 249, 253, 0.92); }
    }
    html[data-theme="light"] .profile-trophy-total { border-left-color: rgba(23, 32, 58, 0.12); }
    html[data-theme="light"] .profile-trophy-total strong { color: #172033; }
    html[data-theme="light"] .profile-trophy-total small { color: #3c4761; }
    
    html[data-theme="light"] .profile-trophy-total .profile-hero-unearned { color: var(--accent); }
    
    html[data-theme="light"] .profile-trophy-total img { filter: drop-shadow(0 1px 2px rgba(23, 32, 58, 0.35)); }
    html[data-theme="light"] .profile-pulse-slide strong { color: #172033; }
    html[data-theme="light"] .profile-pulse-slide small,
    html[data-theme="light"] .profile-banner-kicker { color: #3c4761; }
    html[data-theme="light"] .profile-pulse-trophy:hover strong { color: #172033; }

    
    .pp-dots { position: absolute; top: 50%; right: 12px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translateY(-50%); pointer-events: none; }
    .pp-dots i { position: relative; display: block; width: 5px; height: 5px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.26); transition: height 0.25s ease, background-color 0.25s ease; }
    :where(html[data-theme="light"]) .pp-dots i { background: rgba(23, 32, 58, 0.22); }
    .pp-dots i.done { background: rgba(255, 255, 255, 0.56); }
    :where(html[data-theme="light"]) .pp-dots i.done { background: rgba(23, 32, 58, 0.5); }
    .pp-dots i.on { height: 16px; background: rgba(255, 255, 255, 0.26); }
    :where(html[data-theme="light"]) .pp-dots i.on { background: rgba(23, 32, 58, 0.22); }
    .pp-dots i.on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #f4f7ff; transform-origin: top; transform: scaleY(0); animation: pp-fill var(--pp-dur, 5.2s) linear forwards; }
    :where(html[data-theme="light"]) .pp-dots i.on::after { background: #172033; }
    @keyframes pp-fill { to { transform: scaleY(1); } }
    .pp-dots.is-clickable { pointer-events: auto; cursor: pointer; margin-right: -8px; padding: 6px 8px; }
    .is-paused .pp-dots i.on::after { animation-play-state: paused; }
    
    @media (prefers-reduced-motion: reduce) {
        .pp-dots i { transition: none; }
        .pp-dots i.on::after { animation: none; transform: none; }
    }
    
    .profile-pulse.has-dots .profile-pulse-slide { padding-right: 32px; }

    .profile-banner-game {
        position: absolute;
        right: 24px;
        bottom: 22px;
        width: 232px;
        padding: 11px 13px;
        display: grid;
        gap: 2px;
        text-align: left;
        color: var(--text);
        background: rgba(8, 12, 17, 0.68);
        border: 1px solid rgba(196, 200, 204, 0.22);
        border-radius: 11px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
        backdrop-filter: blur(12px);
    }
    :where(html[data-theme="light"]) .profile-banner-game { background: rgba(8, 12, 24, 0.68); border: 1px solid rgba(180, 200, 238, 0.22); }
    .profile-banner-game:hover {
        border-color: rgba(134, 215, 236, 0.75);
        background: rgba(15, 20, 25, 0.82);
    }
    :where(html[data-theme="light"]) .profile-banner-game:hover { border-color: rgba(239, 71, 111, 0.75); background: rgba(11, 16, 31, 0.82); }
    .profile-banner-game:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
    }
    .profile-banner-game strong {
        overflow: hidden;
        color: #fff;
        font-size: 13px;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .profile-banner-game > span:last-child {
        color: rgba(224, 227, 232, 0.62);
        font-size: 11px;
    }
    :where(html[data-theme="light"]) .profile-banner-game > span:last-child { color: rgba(225, 232, 247, 0.62); }
    .profile-banner-kicker {
        display: flex;
        align-items: center;
        gap: 6px;
        color: rgba(224, 227, 232, 0.72);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }
    :where(html[data-theme="light"]) .profile-banner-kicker { color: rgba(225, 232, 247, 0.72); }
    .profile-banner-kicker img { width: 14px; height: 14px; object-fit: contain; }

    
    .profile-pulse .profile-pulse-slide.profile-pulse-score {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        padding: 12px 28px 12px 24px;
        text-shadow: none;
    }
    .profile-pulse-score .profile-banner-kicker {
        font-size: 11px;
        line-height: 1.2;
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
        color: #dce5ef;
    }
    .profile-score-line {
        width: 100%;
        display: flex;
        align-items: baseline;
        gap: 12px;
        max-width: 100%;
        min-width: 0;
    }
    .profile-pulse-slide.profile-pulse-score .profile-score-total {
        flex-shrink: 0;
        overflow: visible;
        font-size: 20px;
        line-height: 1.15;
        font-variant-numeric: tabular-nums;
        letter-spacing: -.02em;
    }
    .profile-score-change {
        background: none;
        border: 0;
        padding: 0;
        text-align: left;
        font: inherit;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: baseline;
        flex-shrink: 0;
        gap: 6px;
        line-height: 1.2;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
        text-shadow: none;
    }
    .profile-score-change[hidden] { display: none; }
    .profile-score-change .profile-score-delta {
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0;
    }
    .profile-score-change .profile-score-period {
        font-size: 11px;
        font-weight: 400;
        color: #dce5ef;
    }
    .profile-score-change.up { color: #66e7b5; }
    .profile-score-change.flat { color: #dce5ef; }
    html[data-theme="light"] .profile-pulse-score .profile-banner-kicker,
    html[data-theme="light"] .profile-score-change .profile-score-period { color: #45556a; }
    html[data-theme="light"] .profile-score-change.up { color: #0f7754; }
    html[data-theme="light"] .profile-score-change.flat { color: #45556a; }
    .profile-pulse-score.is-stacked .profile-score-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .profile-score-change:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
    }
    .profile-score-detail {
        position: fixed;
        z-index: 20;
        padding: 10px 12px;
        max-width: 280px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface);
        color: var(--text);
        font-size: 12px;
        line-height: 1.5;
        box-shadow: 0 8px 24px #0005;
    }
    
    .profile-pulse-scrim { display: none; }

    @media (prefers-reduced-motion: reduce) {
        #profileHeader.profile-hero::before { transition: none; }
        .profile-pulse-slide { transition: none; }
        .profile-trophy-total .profile-hero-earned,
        .profile-trophy-total .profile-hero-unearned { transition: none; }
    }

    
    .trophy-breakdown {
        display: flex;
        align-items: center;
        gap: 18px;
        flex-wrap: wrap;
        margin: 0 0 22px;
    }

    .tb-item {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .tb-item img {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }

    .tb-item span {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-2);
    }

    
    .tb-total {
        padding-right: 18px;
        border-right: 1px solid var(--dark-border, #24304f);
    }
    .tb-total .tb-unearned { display: none; color: var(--accent); }
    .tb-total:hover .tb-earned,
    .tb-total:focus-visible .tb-earned { display: none; }
    .tb-total:hover .tb-unearned,
    .tb-total:focus-visible .tb-unearned { display: inline; }


    input[type="text"] {
        width: 100%;
        padding: 10px 16px;
        margin-bottom: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text);
        font-size: 14px;
        outline: none;
        box-sizing: border-box;
    }

    input[type="text"]:focus {
        border-color: var(--accent);
    }

    
    #searchInput {
        width: 100%;
        max-width: 260px;
        margin-bottom: 0;
    }

    
    .list-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .games-count {
        font-size: 13px;
        color: var(--text-3);
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    
    .list-foot {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
        margin-top: 16px;
    }

    .games-shown {
        margin: 0;
        font-size: 12.5px;
        color: var(--text-3);
        font-variant-numeric: tabular-nums;
    }

    
    .list-foot #pagination {
        margin: 0;
    }

    .trophy-card {
        position: relative;
        background: var(--surface);
        border: 1px solid var(--dark-card-edge, var(--border));
        border-radius: var(--dark-radius-card, 12px);
        padding: 16px;
        margin-bottom: 12px;
        transition: border-color 0.2s;
        
        display: block;
        color: inherit;
        text-decoration: none;
        cursor: pointer;
    }

    .trophy-card:hover {
        border-color: var(--accent);
    }

    
    .share-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        padding: 0;
        border-radius: 50%;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text-3);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.15s, border-color 0.15s, color 0.15s;
    }
    .trophy-card.game-platinum:hover .share-btn { opacity: 1; }
    .share-btn:hover { border-color: var(--accent); color: var(--text); background: var(--surface); }
    .share-btn.is-busy { opacity: 1; pointer-events: none; }
    @media (hover: none) {
        .share-btn { opacity: 1; }
    }

    
    .hide-btn {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 30px;
        height: 30px;
        padding: 0;
        border-radius: 50%;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text-3);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.15s, border-color 0.15s, color 0.15s;
    }
    .trophy-card:hover .hide-btn { opacity: 1; }
    .hide-btn:hover { border-color: var(--accent); color: var(--text); }
    @media (hover: none) {
        .hide-btn { opacity: 1; }
    }

    
    .trophy-pin-btn {
        width: 26px;
        height: 26px;
        padding: 0;
        border-radius: 50%;
        background: var(--surface-2);
        border: 1px solid var(--border);
        color: var(--text-3);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
    }
    .trophy-pin-btn:hover { border-color: var(--accent); color: var(--text); }
    .trophy-pin-btn.is-pinned { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
    .trophy-pin-btn.is-busy { pointer-events: none; opacity: 0.7; }
    
    .trophy-pin-btn:disabled { opacity: 0.35; cursor: not-allowed; }
    .trophy-pin-btn:disabled:hover { border-color: var(--border); color: var(--text-3); }

    
    
    .ticker { --tile: 84px; margin-bottom: 22px; }
    .ticker-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
    .ticker-tabs { display: flex; gap: 4px; }
    
    .tz-note { display: inline-flex; align-items: center; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
    .tz-note::before { content: ""; flex: none; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--brand-2); }
    .tz-note[hidden] { display: none; }
    .ticker-head .tz-note { margin-left: auto; }
    .tz-note-row { display: flex; justify-content: flex-end; margin: 0 2px 8px; }
    
    .tz-note-row:empty, .tz-note-row:has(> .tz-note[hidden]) { display: none; }
    #statsHeader .tz-note { margin-top: 4px; }
    #milestonesHeader .tz-note { margin-top: 4px; }
    .plat-cabinet-page-head .tz-note { margin-top: 10px; }
    @media (max-width: 560px) {
        
        .ticker-head { flex-wrap: wrap; row-gap: 4px; }
        .ticker-head .tz-note { margin-left: 10px; flex-basis: 100%; }
    }
    .ticker-tab {
        border: 0;
        background: transparent;
        color: var(--text-3);
        cursor: pointer;
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        padding: 4px 10px;
        border-radius: 8px;
    }
    .ticker-tab:hover { color: var(--text-2); }
    .ticker-tab.on { color: var(--text); background: rgba(134, 215, 236, 0.10); }
    .ticker-tab:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

    .tk-rail { display: flex; gap: 8px; height: var(--tile); }
    .tk-item {
        position: relative;
        flex: 0 0 var(--tile);
        min-width: 0;
        display: flex;
        align-items: stretch;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
        font: inherit;
        text-align: left;
        overflow: hidden;
        cursor: pointer;
        transition: flex-grow 0.55s cubic-bezier(0.22, 0.9, 0.24, 1),
                    flex-basis 0.55s cubic-bezier(0.22, 0.9, 0.24, 1),
                    border-color 0.55s;
    }
    .tk-item.on { flex: 1 1 0; border-color: rgba(134, 215, 236, 0.38); }
    .tk-item:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .tk-icon-box { position: relative; flex: 0 0 var(--tile); height: 100%; overflow: hidden; }
    
    .tk-icon-bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(13px) saturate(1.15);
        transform: scale(1.3);
    }
    .tk-icon { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
    
    .tk-item:not(.on) .tk-icon { filter: saturate(0.82) brightness(0.85); transition: filter 0.4s; }
    .tk-item:not(.on) .tk-icon-bg { filter: blur(13px) saturate(1.15) brightness(0.6); }
    .tk-item:not(.on):hover .tk-icon { filter: none; }
    .tk-item:not(.on):hover .tk-icon-bg { filter: blur(13px) saturate(1.15); }
    .tk-badge {
        position: absolute;
        top: 5px;
        right: 5px;
        
        height: 18px;
        width: auto;
        object-fit: contain;
        z-index: 2;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
        transition: opacity 0.3s;
    }
    
    .tk-item.on .tk-badge { opacity: 0; }
    .tk-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding: 10px 16px 12px;
        white-space: nowrap;
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity 0.3s 0.12s, transform 0.45s 0.12s cubic-bezier(0.22, 0.9, 0.24, 1);
    }
    .tk-item.on .tk-info, .tk-item.on .tk-side { opacity: 1; transform: none; }
    
    .tk-side {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 18px 0 6px;
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity 0.3s 0.12s, transform 0.45s 0.12s cubic-bezier(0.22, 0.9, 0.24, 1);
    }
    .tk-type {
        
        height: 38px;
        width: auto;
        object-fit: contain;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
    }
    .tk-side .tk-rarity { min-width: 44px; text-align: center; }
    .tk-name {
        color: var(--text);
        font-size: 14.5px;
        font-weight: 700;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tk-game { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
    .tk-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        overflow: hidden;
        margin-top: 3px;
        font-size: 11px;
        color: var(--text-muted);
        font-variant-numeric: tabular-nums;
    }
    
    .tk-meta .platform-badge { margin-bottom: 0; }
    .tk-meta time { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tk-rarity {
        padding: 2px 7px;
        border-radius: 7px;
        font-size: 10.5px;
        font-weight: 700;
        background: color-mix(in srgb, currentColor 14%, transparent);
    }
    
    .tk-rarity:not(.rarity-ultra):not(.rarity-very):not(.rarity-rare):not(.rarity-common) { color: var(--brand-2); }
    
    .tk-timer {
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 100%;
        transform: scaleX(0);
        transform-origin: left;
        background: var(--brand-gradient);
        opacity: 0;
    }
    .tk-item.on .tk-timer { opacity: 1; animation: tk-dwell var(--dwell, 4s) linear forwards; }
    .tk-rail.tk-paused .tk-timer { animation-play-state: paused; }
    @keyframes tk-dwell { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @media (prefers-reduced-motion: reduce) {
        .tk-item, .tk-info, .tk-side, .tk-badge { transition: none; }
        .tk-item.on .tk-timer { animation: none; opacity: 0; }
    }

    
    .cabinet {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 14px 12px;
    }
    .cabinet-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
    .cabinet-head h3 { margin: 0; font-size: 15px; color: var(--text-2); }
    .cabinet-count { font-size: 12px; color: var(--text-3); }
    .cabinet-grid {
        display: grid;
        
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .cabinet-hint {
        grid-column: 1 / -1;
        font-size: 13px;
        color: var(--text-3);
        border: 1px dashed var(--border);
        border-radius: var(--radius-md);
        padding: 14px;
        text-align: center;
    }
    
    .cabinet-item {
        position: relative;
        cursor: pointer;
        text-align: center;
    }
    
    .cabinet-icon-wrap { position: relative; width: 90%; margin: 0 auto; }
    .cabinet-icon {
        width: 100%;
        aspect-ratio: 1;
        object-fit: contain;
        border-radius: 6px;
        display: block;
        background: var(--icon-plate);
        box-shadow: var(--shadow-1);
        transition: box-shadow 0.15s;
    }
    .cabinet-item:hover .cabinet-icon { box-shadow: var(--shadow-2); }
    
    .cabinet-rarity {
        position: absolute;
        bottom: 4px;
        right: 4px;
        background: rgba(8, 12, 17, 0.75);
        
        color: #f4f6fa;
        font-size: 10px;
        font-weight: 600;
        line-height: 1;
        padding: 3px 5px;
        border-radius: var(--radius-sm);
        font-variant-numeric: tabular-nums;
    }
    :where(html[data-theme="light"]) .cabinet-rarity { background: rgba(11, 13, 22, 0.75); }
    
    .cabinet-tip {
        position: absolute;
        left: 50%;
        top: calc(100% + 6px);
        transform: translateX(-50%);
        width: max-content;
        
        max-width: min(190px, calc(100vw - 16px));
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-2);
        padding: 8px 10px;
        
        z-index: 60;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s;
    }
    .cabinet-item:hover .cabinet-tip { opacity: 1; }
    .cabinet-tip-name {
        font-size: 12px;
        font-weight: 600;
        color: var(--text);
        margin: 0;
        line-height: 1.3;
    }
    .cabinet-tip-game {
        font-size: 11px;
        color: var(--text-2);
        margin: 2px 0 0;
        line-height: 1.3;
    }
    .cabinet-tip-meta {
        font-size: 10px;
        color: var(--text-3);
        margin: 3px 0 0;
        line-height: 1.3;
        font-variant-numeric: tabular-nums;
    }
    .cabinet-badge { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); }
    .cabinet-unpin {
        position: absolute;
        top: 4px;
        left: 4px;
        z-index: 3;
        width: 20px;
        height: 20px;
        padding: 0;
        border-radius: 50%;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text-3);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.15s, border-color 0.15s, color 0.15s;
    }
    .cabinet-item:hover .cabinet-unpin { opacity: 1; }
    .cabinet-unpin:hover { border-color: var(--accent); color: var(--text); }
    .cabinet-unpin:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
    @media (hover: none) {
        .cabinet-unpin { opacity: 1; }
    }
    
    .cabinet-link { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
    .cabinet-link:focus { outline: none; }
    .cabinet-item.is-sel .cabinet-icon { outline: 2px solid var(--text); outline-offset: 2px; }
    .cabinet-readout {
        display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center;
        margin-top: 12px; padding: 9px 10px 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2);
    }
    .cabinet-readout > img { width: 20px; height: auto; display: block; }
    .cabinet-readout-text { min-width: 0; display: grid; gap: 1px; }
    .cabinet-readout-name { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cabinet-readout-game { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cabinet-readout-meta { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
    .cabinet-readout-open { align-self: stretch; display: flex; align-items: center; padding: 0 2px 0 8px; color: var(--brand-2); font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
    html[data-theme="light"] .cabinet-readout-open { color: var(--accent); }
    .cabinet-readout-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
    @media (hover: none) {
        .cabinet-tip { display: none; }
    }

    
    .pl-card {
        display: flex;
        width: fit-content;
        align-items: center;
        gap: 6px;
        margin: 0 0 5px;
        
        padding: 1px 11px;
        background: rgba(8, 12, 17, 0.68);
        border: 1px solid rgba(196, 200, 204, 0.22);
        border-radius: var(--radius-full);
        font-size: 11.5px;
        color: var(--text-3);
    }
    :where(html[data-theme="light"]) .pl-card { background: rgba(8, 12, 24, 0.68); border: 1px solid rgba(180, 200, 238, 0.22); }
    .pl-stack {
        position: relative;
        display: inline-flex;
        align-items: center;
        height: 20px;
        
        width: calc(20px + (min(var(--pl-count), 2) - 1) * 24px);
        cursor: pointer;
        transition: width 0.2s ease;
    }
    .pl-stack:focus-visible { outline: none; }
    .pl-stack:hover,
    .pl-stack:focus-within,
    .pl-stack.is-open {
        
        width: calc(var(--pl-count) * 20px + (var(--pl-count) - 1) * 8px);
    }
    .pl-collapsed, .pl-fan {
        display: inline-flex;
        align-items: center;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    
    
    .pl-collapsed-icons {
        display: inline-flex;
        overflow: hidden;
        width: 20px;
    }
    .pl-stack-icon {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .pl-stack-icon + .pl-stack-icon { margin-left: -16px; }
    
    .pl-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 4px;
        min-width: 16px;
        height: 16px;
        padding: 0 3px;
        border-radius: 8px;
        
        background: var(--surface-2);
        color: var(--text-3);
        font-size: 9.5px;
        font-weight: 600;
        border: 1px solid var(--border);
    }
    
    .pl-fan {
        position: absolute;
        left: 0;
        top: 0;
        gap: 8px;
        opacity: 0;
        transform: translateX(6px);
        pointer-events: none;
    }
    .pl-stack:hover .pl-collapsed,
    .pl-stack:focus-within .pl-collapsed,
    .pl-stack.is-open .pl-collapsed { opacity: 0; transform: translateX(-6px); }
    .pl-stack:hover .pl-fan,
    .pl-stack:focus-within .pl-fan,
    .pl-stack.is-open .pl-fan { opacity: 1; transform: translateX(0); pointer-events: auto; }
    .pl-fan-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        color: inherit;
        text-decoration: none;
        font: inherit;
        cursor: pointer;
        transition: opacity 0.15s;
    }
    .pl-fan-link:hover { opacity: 0.7; }
    
    .pl-fan-link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    
    .pl-stack-icon img, .pl-fan-link img { width: 16px; height: 16px; object-fit: contain; }
    
    .pl-stack-icon svg, .pl-fan-link svg { width: 16px; height: 16px; }
    @media (prefers-reduced-motion: reduce) {
        .pl-stack, .pl-collapsed, .pl-fan { transition: none; }
    }

    .trophy-card h3 {
        margin: 0 0 4px 0;
        color: var(--text);
        font-size: 16px;
    }

    .trophy-card p {
        margin: 3px 0;
        color: var(--text-3);
        font-size:13px;
    }

    .card-row {
        display: flex;
        gap: 16px;
        align-items: center;
    }

    
    
    .card-stats {
        flex-shrink: 0;
        display: grid;
        grid-template-columns: 1fr 32px;
        column-gap: 8px;
        row-gap: 7px;
        align-items: center;
        width: 190px;
    }

    
    .earned-line .gf-chips { display: inline-flex; gap: 5px; margin-left: 8px; vertical-align: 1px; }
    .earned-line .gf-chips:empty { display: none; }
    .gf-chip {
        display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px;
        border: 1px solid var(--border); color: var(--text-2);
        font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
    }
    .gf-chip.dz-fill { border-color: transparent; color: #0f1419; }
    @media (max-width: 760px) {
        .earned-line .gf-chips { display: flex; margin: 5px 0 0; }
    }

    
    .card-title-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
    }

    .card-title-row h3 {
        margin: 0;
        min-width: 0;
    }

    .card-title-row .platform-badge {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    
    .card-title-badges {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .card-title-badges:empty { display: none; }

    @media (max-width: 599px) {
        .card-title-row { flex-wrap: wrap; row-gap: 6px; }
        .card-title-row h3 { flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; }
    }

    .card-counts {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        white-space: nowrap;
    }

    
    .tcount {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12.5px;
        color: var(--text-2);
        font-variant-numeric: tabular-nums;
    }

    .tcount-img {
        width: 14px;
        height: 14px;
        object-fit: contain;
        display: block;
    }

    
    .card-progress-track {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        background: var(--border);
        border-radius: 999px;
        height: 5px;
        overflow: hidden;
    }

    .card-progress-fill {
        height: 5px;
        border-radius: 999px;
        background: var(--brand-gradient);
    }

    .card-pct {
        grid-column: 2;
        grid-row: 2;
        font-size: 12px;
        color: var(--text-3);
        text-align: right;
    }

    .earned {
        border-color: var(--success);
    }

    
    
    .empty-state {
        padding: var(--space-5);
        text-align: center;
        color: var(--text-muted);
        font-size: 14px;
    }
    .empty-state-icon {
        font-size: 28px;
        opacity: 0.5;
        margin-bottom: var(--space-2);
    }

    
    
    #milestonesHeader {
        display: flex;
        gap: 16px;
        align-items: center;
        margin: 18px 0;
    }

    .ms-sub {
        margin: 4px 0 0;
        color: var(--text-3);
        font-size: 13px;
    }

    .ms-note {
        color: var(--text-muted);
        font-size: 12px;
        margin: 0 0 12px;
    }

    

    
    
    #advisorView {
        width: 100%;
        
        max-width: none;
        margin: 0;
    }
    #advisorView :focus-visible { outline-color: var(--brand-2); }
    #advisorHeader {
        margin: 2px 0 24px;
    }
    
    .advisor-hero {
        position: relative;
        overflow: hidden;
        margin: 0;
        padding: 26px 28px 22px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
    }
    .advisor-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(520px 220px at 12% 0%, color-mix(in srgb, var(--brand-1) 16%, transparent), transparent 70%),
            linear-gradient(90deg, color-mix(in srgb, var(--brand-1) 7%, transparent), transparent 55%);
        pointer-events: none;
    }
    .advisor-hero > :not(.advisor-hero-art) { position: relative; }
    .advisor-hero-art {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 46%;
        pointer-events: none;
    }
    .advisor-hero-art img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 72% 10%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
    }
    .advisor-hero-art::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--surface) 55%, transparent));
    }
    .advisor-profile {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .advisor-avatar {
        width: 62px;
        height: 62px;
        flex: 0 0 62px;
        overflow: hidden;
        border-radius: 50%;
        background: var(--surface);
        box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-1);
    }
    .advisor-avatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .advisor-kicker {
        margin: 0 0 5px;
        color: var(--brand-2);
        font-size: 10px;
        font-weight: 750;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
    .advisor-profile h1 {
        margin: 0;
        color: var(--text);
        font-size: 32px;
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -0.02em;
    }
    .advisor-heading-brand {
        display: inline-block;
        background: var(--brand-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: var(--brand-2);
        font-family: var(--font-brand);
        font-weight: 700;
        letter-spacing: -0.045em;
        text-shadow: 0 0 22px rgba(134, 215, 236, 0.12);
    }
    .advisor-profile-model {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
        color: var(--text-3);
        font-size: 12px;
    }
    
    .advisor-experience {
        display: inline-flex;
        align-items: center;
        padding: 3px 9px;
        border-radius: 4px;
        background: var(--surface-3);
        color: var(--text-2);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }
    .advisor-intro {
        max-width: 640px;
        margin: 10px 0 0;
        color: var(--text-3);
        font-size: 13px;
        line-height: 1.5;
    }
    
    @media (min-width: 761px) and (max-width: 1100px) {
        .advisor-hero > .advisor-profile,
        .advisor-hero > .advisor-intro,
        .advisor-hero > .advisor-privacy { max-width: 70%; }
        .advisor-hero-art { width: 42%; }
        .advisor-profile h1 { font-size: 28px; }
    }
    
    @media (max-width: 760px) {
        .advisor-hero { padding: 0 16px 16px; }
        .advisor-hero-art {
            position: relative;
            top: auto;
            right: auto;
            bottom: auto;
            width: auto;
            height: 136px;
            margin: 0 -16px;
        }
        .advisor-hero-art img {
            object-position: 70% 22%;
            -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
        }
        .advisor-hero-art::after { display: none; }
        .advisor-profile {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            margin-top: -34px;
        }
        .advisor-profile h1 { font-size: 26px; overflow-wrap: anywhere; }
        .advisor-intro { margin-top: 12px; }
    }
    .advisor-lead {
        position: relative;
        display: grid;
        grid-template-columns: 76px 210px minmax(0, 1fr);
        min-height: 290px;
        
        border: 1px solid rgba(168, 198, 230, 0.34);
        border-radius: var(--radius-lg);
        background:
            linear-gradient(115deg, rgba(36, 40, 46, 0.72), transparent 55%),
            var(--surface);
        box-shadow: 0 22px 54px rgba(4, 6, 10, 0.24);
    }
    :where(html[data-theme="light"]) .advisor-lead { background: linear-gradient(115deg, rgba(30, 42, 72, 0.72), transparent 55%), var(--surface); box-shadow: 0 22px 54px rgba(1, 4, 12, 0.24); }
    
    .advisor-lead-frame {
        position: absolute;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        border-radius: inherit;
        pointer-events: none;
    }
    .advisor-lead-frame::after {
        content: "";
        position: absolute;
        right: -80px;
        bottom: -120px;
        width: 300px;
        height: 300px;
        border: 1px solid rgba(134, 215, 236, 0.16);
        border-radius: 50%;
    }
    .advisor-lead-bg {
        position: absolute;
        z-index: 0;
        inset: 0 0 0 286px;
        overflow: hidden;
        
        border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
        opacity: 0.55;
        pointer-events: none;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
    }
    
    :where(html[data-theme="light"]) .advisor-lead-bg { opacity: 0.2; }
    .advisor-lead-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(4, 6, 10, 0.82), rgba(4, 6, 10, 0.1));
    }
    :where(html[data-theme="light"]) .advisor-lead-bg::after { background: linear-gradient(90deg, rgba(17, 24, 43, 0.88), rgba(17, 24, 43, 0.14)); }
    .advisor-lead-bg img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .advisor-lead-rank {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 22px 0 24px;
        border-right: 1px solid var(--border);
        
        border-radius: var(--radius-lg) 0 0 var(--radius-lg);
        background: rgba(4, 6, 10, 0.44);
    }
    :where(html[data-theme="light"]) .advisor-lead-rank { background: rgba(5, 8, 18, 0.44); }
    .advisor-lead-rank span {
        color: var(--brand-2);
        font-size: 9px;
        font-weight: 750;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }
    .advisor-lead-rank strong {
        color: rgba(224, 227, 232, 0.2);
        font-size: 34px;
        font-variant-numeric: tabular-nums;
    }
    :where(html[data-theme="light"]) .advisor-lead-rank strong { color: rgba(214, 226, 248, 0.2); }
    .advisor-lead-art {
        position: relative;
        z-index: 1;
        min-height: 290px;
        overflow: hidden;
        background: var(--dark-bg, #080c17);
    }
    .advisor-lead-art img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
    .advisor-lead:hover .advisor-lead-art img { transform: scale(1.025); }
    .advisor-lead-body {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 28px;
    }
    
    .advisor-card-topline {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .advisor-lead h2 {
        margin: 10px 0 6px;
        color: var(--text);
        font-size: clamp(22px, 2.5vw, 32px);
        line-height: 1.12;
        letter-spacing: -0.025em;
    }
    .advisor-game-meta {
        display: flex;
        align-items: center;
        gap: 9px;
        color: var(--text-3);
        font-size: 11px;
    }
    
    .advisor-readout {
        display: flex;
        flex-wrap: wrap;
        gap: 26px;
        margin: 16px 0 13px;
    }
    .advisor-gauge {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 0;
    }
    .advisor-gauge small {
        color: var(--text-muted);
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
    .advisor-segs {
        display: flex;
        gap: 3px;
    }
    .advisor-segs i {
        width: 17px;
        height: 6px;
        border-radius: 2px;
        background: var(--surface-3);
    }
    .advisor-gauge-pos .advisor-segs i.on {
        background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    }
    .advisor-gauge-neg .advisor-segs i.on { background: var(--gold); }
    .advisor-gauge-neg.advisor-gauge-high .advisor-segs i.on { background: var(--danger); }
    .advisor-readout-mini { gap: 18px; margin: 11px 0 10px; }
    .advisor-readout-mini .advisor-segs i { width: 13px; height: 5px; }

    .advisor-reasons {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 2px;
    }
    
    .advisor-warning {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        margin-top: 12px;
        max-width: 560px;
        padding: 9px 13px 9px 11px;
        border-radius: 8px 0 8px 8px;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
        background: var(--surface-2);
        color: var(--text-2);
        font-size: 12.5px;
        line-height: 1.4;
    }
    .advisor-warning-mark {
        flex: 0 0 auto;
        color: var(--gold);
        font-weight: 800;
    }
    
    .advisor-open,
    .advisor-plan-add,
    .advisor-fb {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 30px;
        padding: 0 13px;
        border: 1px solid var(--border);
        border-radius: 7px;
        background: transparent;
        color: var(--text-2);
        font: inherit;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: color 0.16s, border-color 0.16s, background 0.16s;
    }
    .advisor-open {
        border-color: var(--accent);
        color: var(--accent);
        font-weight: 700;
    }
    .advisor-open:hover {
        border-color: var(--accent);
        background: color-mix(in srgb, var(--accent) 10%, transparent);
    }
    .advisor-plan-add:hover,
    .advisor-fb:hover {
        color: var(--text);
        border-color: var(--text-3);
    }
    .advisor-open:focus-visible,
    .advisor-plan-add:focus-visible,
    .advisor-fb:focus-visible {
        outline: 2px solid var(--brand-2);
        outline-offset: 2px;
    }

    
    html[data-theme="light"] .advisor-lead { background: var(--surface); }
    html[data-theme="light"] .advisor-lead-rank { background: var(--surface-2); }
    html[data-theme="light"] .advisor-lead-rank strong { color: rgba(23, 32, 58, .16); }
    html[data-theme="light"] .advisor-row-rank { color: rgba(23, 32, 58, .42); }
    html[data-theme="light"] .advisor-why-list { background: var(--surface); }
    html[data-theme="light"] .trophy-avail-toggle { color: var(--caution); }
    html[data-theme="light"] .trophy-avail-note.is-gone .trophy-avail-toggle { color: var(--danger); }

    .advisor-section-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin: 34px 0 13px;
    }
    .advisor-section-head h2 {
        margin: 0;
        color: var(--text);
        font-size: 18px;
    }
    .advisor-section-head > span {
        color: var(--text-muted);
        font-size: 11px;
    }
    .advisor-workspace {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
        gap: var(--space-5);
        margin-top: 0;
    }
    .advisor-main-column { min-width: 0; }
    .advisor-list {
        display: grid;
        gap: 9px;
    }
    .advisor-row {
        display: grid;
        grid-template-columns: 45px 58px minmax(0, 1fr);
        align-items: start;
        gap: 14px;
        padding: 16px 18px 16px 0;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
        transition: border-color 0.16s, transform 0.16s;
    }
    .advisor-row:hover {
        border-color: rgba(168, 198, 230, 0.42);
        transform: translateX(2px);
    }
    .advisor-row-rank {
        align-self: stretch;
        display: grid;
        place-items: center;
        border-right: 1px solid var(--border);
        color: rgba(224, 227, 232, 0.42);
        font-size: 13px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    :where(html[data-theme="light"]) .advisor-row-rank { color: rgba(214, 226, 248, 0.42); }
    .advisor-row-icon {
        width: 58px;
        height: 58px;
        border-radius: 9px;
        object-fit: cover;
        background: var(--surface-2);
    }
    .advisor-row-main { min-width: 0; }
    .advisor-row h3 {
        overflow: hidden;
        margin: 4px 0 3px;
        color: var(--text);
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .advisor-stretch-note {
        margin: 6px 0 2px;
        color: var(--text-2);
        font-size: 12px;
        line-height: 1.4;
    }
    .advisor-shelf-genres {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 8px 0 6px;
    }
    .advisor-shelf-line {
        margin: 4px 0 0;
        color: var(--text-3);
        font-size: 12px;
    }
    
    .advisor-refill-row {
        border-style: dashed;
        background: transparent;
    }
    .advisor-refill-row:hover {
        transform: none;
        border-color: var(--border);
    }
    .advisor-refill-slot {
        width: 58px;
        height: 58px;
        border-radius: 9px;
        border: 1px dashed var(--border);
        background: repeating-linear-gradient(
            45deg,
            rgba(168, 198, 230, 0.05),
            rgba(168, 198, 230, 0.05) 6px,
            transparent 6px,
            transparent 12px
        );
    }
    .advisor-refill-kicker { margin: 0 0 4px; color: var(--text-3); }
    .advisor-refill-line {
        margin: 0;
        color: var(--text-2);
        font-size: 13px;
    }
    .advisor-refill-removed {
        margin: 6px 0 0;
        color: var(--text-3);
        font-size: 12px;
    }
    .advisor-refill-undo {
        border: 0;
        padding: 0;
        background: none;
        color: var(--brand-2);
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }
    .advisor-refill-undo:hover { text-decoration: underline; }
    .advisor-upsell {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 12px;
        padding: 14px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: linear-gradient(90deg, rgba(168, 198, 230, 0.05), transparent);
    }
    .advisor-upsell .plate-premium { flex: 0 0 auto; }
    .advisor-upsell-line {
        margin: 0;
        color: var(--text-2);
        font-size: 13px;
        line-height: 1.5;
    }
    .advisor-recovery {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0 0 14px;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface-2);
        color: var(--text-2);
        font-size: 13px;
    }
    .advisor-recovery-text { flex: 1 1 auto; }
    .advisor-recovery-btn {
        flex: 0 0 auto;
        height: 30px;
        padding: 0 13px;
        border: 1px solid var(--border);
        border-radius: 7px;
        background: transparent;
        color: var(--text-2);
        font: inherit;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: color 0.16s, border-color 0.16s;
    }
    .advisor-recovery-btn:hover {
        color: var(--text);
        border-color: var(--text-3);
    }
    .advisor-recovery-btn:disabled {
        opacity: 0.5;
        cursor: default;
    }
    .advisor-recovery-btn:focus-visible {
        outline: 2px solid var(--brand-2);
        outline-offset: 2px;
    }
    .advisor-dismissed {
        margin-top: 16px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    .advisor-dismissed-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 4px 0;
        border: 0;
        background: none;
        color: var(--text-2);
        font: inherit;
        font-weight: 600;
        cursor: pointer;
    }
    .advisor-dismissed-chevron {
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.16s;
    }
    .advisor-dismissed-toggle[aria-expanded="true"] .advisor-dismissed-chevron {
        transform: rotate(-135deg);
    }
    .advisor-dismissed-body {
        display: grid;
        gap: 6px;
        margin-top: 10px;
    }
    
    .advisor-dismissed-body[hidden] {
        display: none;
    }
    .advisor-dismissed-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 12px;
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
    }
    .advisor-dismissed-name {
        overflow: hidden;
        color: var(--text);
        font-size: 13px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .advisor-dismissed-date {
        color: var(--text-3);
        font-size: 12px;
    }
    html[data-theme="light"] .advisor-refill-slot {
        background: repeating-linear-gradient(
            45deg,
            rgba(23, 32, 58, 0.04),
            rgba(23, 32, 58, 0.04) 6px,
            transparent 6px,
            transparent 12px
        );
    }
    .advisor-empty {
        display: grid;
        justify-items: center;
        padding: 70px 24px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
        text-align: center;
    }
    .advisor-empty img { width: 52px; height: 52px; object-fit: contain; opacity: 0.72; }
    .advisor-empty h2 { margin: 15px 0 5px; color: var(--text); }
    .advisor-empty p { max-width: 430px; margin: 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }
    
    .advisor-privacy {
        display: flex;
        align-items: flex-start;
        gap: 7px;
        max-width: 620px;
        margin: 9px 0 0;
        color: var(--text-muted);
        font-size: 11px;
        line-height: 1.55;
    }
    .advisor-inspect {
        margin: 0 0 16px;
        padding: 9px 13px;
        border: 1px solid rgba(232, 178, 119, 0.4);
        border-left-width: 3px;
        border-radius: 8px;
        color: var(--caution);
        background: rgba(232, 178, 119, 0.07);
        font-size: 11px;
        line-height: 1.5;
    }

    
    
    .signal-badge {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        flex-shrink: 0;
        color: var(--caution);
        font-size: 13px;
        line-height: 1;
        cursor: help;
    }
    .signal-badge.is-gone { color: var(--alert); }
    .signal-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

    
    .um-strip {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        box-sizing: border-box;
        min-height: 22px;
        padding: 4px 8px;
        font-size: 11px;
        font-weight: 700;
        line-height: 14px;
        text-align: left;
        cursor: help;
    }
    .um-strip.um-gone { background: var(--danger); color: var(--stamp-ink); }
    .um-strip.um-closing { background: var(--caution); color: var(--stamp-ink); }
    .um-strip:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
    .um-strip .um-ico { display: block; flex: none; width: 12px; height: 12px; margin-top: 1px; }
    
    .um-strip-text { display: flex; flex: 1; flex-wrap: wrap; column-gap: .28em; min-width: 0; }
    .um-when { font-weight: 600; white-space: nowrap; }
    .um-why { margin-left: auto; padding-left: 10px; font-weight: 600; white-space: nowrap; opacity: .9; }

    
    .um-top {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 7px;
        pointer-events: none;
    }
    .um-top > * { pointer-events: auto; }
    .um-top .um-strip { border-radius: 9px 9px 0 0; box-shadow: 0 1px 0 rgba(4, 6, 10, 0.55); }
    :where(html[data-theme="light"]) .um-top .um-strip { box-shadow: 0 1px 0 rgba(4, 7, 15, .55); }
    .um-top .cat-card-top { position: static; padding: 0 8px; }
    .cat-card { container-type: inline-size; }
    @container (max-width: 180px) {
        .um-top .um-strip { gap: 5px; padding: 4px 7px; font-size: 10.5px; }
    }

    
    .um-has-strip { position: relative; overflow: hidden; }
    .um-has-strip > .um-strip { position: absolute; top: 0; right: 0; left: 0; }
    .game-row.um-has-strip { padding-top: 32px; }
    .game-row.um-has-strip:hover { transform: none; }
    .trophy-card.um-has-strip { padding-top: 34px; }
    
    .trophy-card.um-has-strip .share-btn { top: 32px; }
    .trophy-card.um-has-strip .hide-btn { top: 32px; }
    .gv-row.um-has-strip {
        margin: 6px 0;
        padding-top: 29px;
        background: color-mix(in srgb, var(--surface-2) 70%, transparent);
    }
    .gv-row.um-has-strip:hover { background: var(--surface-2); }
    .gv-row.um-has-strip > .um-strip { min-height: 20px; padding: 3px 8px; font-size: 10.5px; line-height: 13px; }
    
    @media (max-width: 760px) {
        .um-strip .um-why { display: none; }
    }

    
    .trophy-avail-note {
        display: flex;
        align-items: flex-start;
        gap: 11px;
        margin: 0 0 16px;
        padding: 12px 15px;
        border: 1px solid rgba(232, 178, 119, 0.45);
        border-left-width: 3px;
        border-radius: 10px;
        background: rgba(232, 178, 119, 0.07);
    }
    .trophy-avail-note.is-gone {
        border-color: rgba(239, 71, 111, 0.45);
        background: rgba(239, 71, 111, 0.07);
    }
    .trophy-avail-mark { flex-shrink: 0; margin-top: 1px; color: var(--caution); font-size: 16px; line-height: 1.2; }
    .trophy-avail-note.is-gone .trophy-avail-mark { color: var(--alert); }
    .trophy-avail-note strong { display: block; color: var(--caution); font-size: 13px; }
    .trophy-avail-note.is-gone strong { color: var(--alert); }
    .trophy-avail-note p { margin: 3px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }
    .trophy-avail-source { margin: 4px 0 0; color: var(--text-3); opacity: 0.75; font-size: 11px; line-height: 1.4; }
    .trophy-avail-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 7px;
        margin: 9px 0 0;
        padding: 0;
        list-style: none;
    }
    .trophy-avail-list li { display: inline-flex; }
    .trophy-avail-list.is-collapsed {
        max-height: var(--trophy-avail-row-height);
        overflow: hidden;
    }
    .trophy-avail-toggle {
        margin: 7px 0 0;
        padding: 0;
        border: 0;
        color: #d5a16c;
        background: transparent;
        font: inherit;
        font-size: 10.5px;
        font-weight: 750;
        cursor: pointer;
    }
    .trophy-avail-note.is-gone .trophy-avail-toggle { color: #ed8da1; }
    .trophy-avail-toggle:hover { color: var(--text); }
    .trophy-avail-toggle:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
        border-radius: 3px;
    }
    .trophy-avail-jump {
        padding: 3px 9px;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--text-2);
        background: transparent;
        font: inherit;
        font-size: 11px;
        cursor: pointer;
        transition: border-color .15s, color .15s;
    }
    .trophy-avail-jump:hover { border-color: var(--text-muted); color: var(--text); }
    .trophy-avail-jump:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .trophy-signal-mark { margin-left: 7px; vertical-align: middle; }

    .gd-availability {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        max-width: 640px;
        margin: 9px 0 2px;
        padding: 9px 13px;
        border: 1px solid rgba(232, 178, 119, 0.45);
        border-left-width: 3px;
        border-radius: 9px;
        background: rgba(232, 178, 119, 0.08);
        color: var(--text-2);
        font-size: 12px;
        line-height: 1.5;
    }
    .gd-availability.is-gone {
        border-color: rgba(239, 71, 111, 0.45);
        background: rgba(239, 71, 111, 0.08);
    }
    
    .gd-availability.um-banner { display: block; padding: 0; overflow: hidden; border-left-width: 1px; }
    .um-banner .um-strip { border-radius: 0; }
    .um-banner .um-banner-text { display: block; padding: 8px 12px 9px; }
    .gd-availability-source { display: block; margin: 4px 0 0; color: var(--text-3); opacity: 0.75; font-size: 11px; line-height: 1.4; }
    
    .gd-hero .gd-availability.um-banner {
        background: rgba(10, 12, 18, 0.74);
        -webkit-backdrop-filter: blur(16px) saturate(1.15);
        backdrop-filter: blur(16px) saturate(1.15);
    }
    .gd-hero .gd-availability.um-banner .um-banner-text { color: #d5d9e1; }
    .gd-hero .gd-availability-source { color: #bcc3ce; opacity: 1; }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .gd-hero .gd-availability.um-banner { background: rgba(10, 12, 18, 0.92); }
    }
    @media (prefers-reduced-transparency: reduce) {
        .gd-hero .gd-availability.um-banner { background: rgba(10, 12, 18, 0.92); }
    }
    
    .psnp-plus-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
    .psnp-plus-link:hover { color: var(--text); }
    .psnp-plus-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

    
    .adv-has-strip { position: relative; }
    .adv-has-strip > .um-strip {
        position: absolute;
        z-index: 3;
        top: -1px;
        right: -1px;
        left: -1px;
    }
    .advisor-lead.adv-has-strip { padding-top: 21px; }
    .advisor-lead.adv-has-strip > .um-strip { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    
    .advisor-lead.adv-has-strip .advisor-lead-rank { border-top-left-radius: 0; }
    .advisor-row.adv-has-strip { padding-top: 37px; }
    .advisor-row.adv-has-strip:hover { transform: none; }
    .advisor-row.adv-has-strip > .um-strip { border-radius: var(--radius-md) var(--radius-md) 0 0; }

    
    .adv-lc {
        margin-bottom: 20px;
        padding: 17px 18px 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
    }
    .adv-lc-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; }
    .adv-lc-head h2 { margin: 2px 0 5px; color: var(--text); font-size: 18px; }
    
    .adv-lc-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--caution); }
    .adv-lc-icon.is-gone { color: var(--danger); }
    .adv-lc-icon .um-ico { width: 20px; height: 20px; margin: 0; }
    .adv-lc-list { display: grid; gap: 10px; }
    .adv-lc-card {
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface-2);
    }
    .adv-lc-card.adv-has-strip { padding-top: 21px; }
    .adv-lc-card > .um-strip { border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .adv-lc-card .advisor-lc-row { padding: 12px 14px; border-top: 0; }
    .adv-lc-card.is-gone .advisor-lc-row img { filter: grayscale(1); opacity: .6; }
    
    .adv-days { color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
    .adv-days b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
    @media (max-width: 760px) {
        .adv-lc { padding: 15px 14px 14px; }
        .adv-lc-card .advisor-lc-row { padding: 12px; column-gap: 12px; row-gap: 8px; }
        
        .adv-lc-card .advisor-lc-row > .adv-days,
        .adv-lc-card .advisor-lc-row > .advisor-lc-open,
        .adv-lc-card .advisor-lc-row > .advisor-lc-dismiss { grid-row: 2; grid-column: 2; align-self: center; }
        .adv-lc-card .advisor-lc-row > .adv-days { justify-self: start; }
        .adv-lc-card .advisor-lc-row > .advisor-lc-open { justify-self: end; }
        .adv-lc-card.is-gone .advisor-lc-row > .advisor-lc-open { justify-self: start; }
        .adv-lc-card.is-gone .advisor-lc-row > .advisor-lc-dismiss { justify-self: end; }
    }
    .advisor-lc-sub { max-width: 620px; margin: 0; color: var(--text-3); font-size: 11.5px; line-height: 1.55; }
    .advisor-lc-dismissall {
        margin-left: auto;
        align-self: flex-start;
        flex-shrink: 0;
        padding: 5px 11px;
        border: 1px solid var(--border);
        border-radius: 7px;
        background: transparent;
        color: var(--text-3);
        font: inherit;
        font-size: 11.5px;
        font-weight: 600;
        cursor: pointer;
    }
    .advisor-lc-dismissall:hover {
        color: var(--text);
        border-color: var(--text-3);
    }
    .advisor-lc-dismiss {
        width: 26px;
        height: 26px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 50%;
        color: var(--text-muted);
        background: transparent;
        font: inherit;
        font-size: 15px;
        line-height: 1;
        cursor: pointer;
    }
    .advisor-lc-dismiss:hover { border-color: var(--text-muted); color: var(--text-2); }
    .advisor-lc-dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    
    @media (max-width: 560px) {
        .adv-lc-head { flex-wrap: wrap; }
        .adv-lc-head > div { flex: 1 1 calc(100% - 31px); }
    }
    
    .adv-lc-list.adv-lc-has-queue > .adv-lc-card:last-child {
        margin-bottom: 12px;
        box-shadow:
            0 6px 0 -3px var(--surface-2),
            0 12px 0 -6px color-mix(in srgb, var(--surface-2) 55%, var(--surface));
    }
    .adv-lc-queue {
        margin: 12px 0 0;
        color: var(--text-3);
        font-size: 11.5px;
        line-height: 1.5;
    }
    .adv-lc-queue b { color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
    
    .adv-lc-card.adv-lc-arriving { animation: adv-lc-rise .32s ease-out both; }
    @keyframes adv-lc-rise {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: none; }
    }
    @media (prefers-reduced-motion: reduce) {
        .adv-lc-card.adv-lc-arriving { animation: none; }
    }
    .advisor-lc-row {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 14px;
        padding: 10px 0;
        border-top: 1px solid var(--border);
    }
    .advisor-lc-row img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
    .advisor-lc-main { min-width: 0; }
    .advisor-lc-main h3 { margin: 0 0 3px; color: var(--text); font-size: 14px; }
    .advisor-lc-main p { margin: 0; color: var(--text-3); font-size: 11.5px; line-height: 1.5; }
    
    .advisor-lc-open {
        margin-top: 0;
        height: auto;
        padding: 8px 11px;
        border-color: rgba(134, 215, 236, 0.58);
        border-radius: 8px;
        color: var(--text);
        background: rgba(134, 215, 236, 0.07);
        font-size: 11px;
        font-weight: 650;
    }
    .advisor-lc-open:hover {
        border-color: var(--brand-2);
        background: rgba(134, 215, 236, 0.13);
    }

    @media (max-width: 760px) {
        .advisor-lc-row { grid-template-columns: 46px minmax(0, 1fr); }
        .advisor-lc-open { grid-column: 2; justify-self: start; }
    }

    
    .advisor-flag {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 3px 9px;
        border: 1px dashed rgba(196, 200, 204, 0.42);
        border-radius: 999px;
        color: var(--text-muted);
        background: transparent;
        font: inherit;
        font-size: 10px;
        font-weight: 650;
        cursor: pointer;
    }
    :where(html[data-theme="light"]) .advisor-flag { border: 1px dashed rgba(171, 192, 228, 0.42); }
    .advisor-flag:hover { border-style: solid; border-color: var(--text-muted); color: var(--text-2); }
    .advisor-flag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

    .advisor-why { margin-top: 11px; }
    
    .advisor-lead-body .advisor-why { flex: none; align-self: stretch; }
    .advisor-why-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--text-muted);
        font: inherit;
        font-size: 11px;
        cursor: pointer;
    }
    .advisor-why-toggle:hover,
    .advisor-why[data-open="true"] .advisor-why-toggle { color: var(--text-2); }
    .advisor-why-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
    
    .advisor-why-chevron {
        width: 6px;
        height: 6px;
        margin-bottom: 2px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    }
    .advisor-why[data-open="true"] .advisor-why-chevron {
        transform: rotate(225deg);
        margin-bottom: -2px;
    }
    
    .advisor-why-panel {
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: height .28s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
    }
    .advisor-why[data-open="true"] .advisor-why-panel { opacity: 1; }
    @media (prefers-reduced-motion: reduce) {
        .advisor-why-panel, .advisor-why-chevron { transition: none; }
    }
    .advisor-why-list {
        display: grid;
        gap: 7px;
        margin: 10px 0 0;
        padding: 11px 13px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: rgba(8, 12, 17, 0.34);
        list-style: none;
    }
    :where(html[data-theme="light"]) .advisor-why-list { background: rgba(8, 12, 24, 0.34); }
    .advisor-why-row { display: flex; align-items: flex-start; gap: 9px; }
    
    .advisor-why-mark {
        width: 8px;
        height: 8px;
        margin-top: 4px;
        flex: 0 0 8px;
        border-radius: 2px;
        background: var(--surface-3);
    }
    .advisor-why-boost .advisor-why-mark { background: var(--success); }
    .advisor-why-friction .advisor-why-mark { background: var(--gold); }
    .advisor-why-text { display: grid; gap: 1px; min-width: 0; }
    .advisor-why-text strong { color: var(--text-2); font-size: 11px; font-weight: 650; }
    .advisor-why-text > span { color: var(--text-3); font-size: 11px; line-height: 1.5; }
    .advisor-why-foot {
        margin: 9px 0 0;
        padding-top: 8px;
        border-top: 1px solid var(--border);
        color: var(--text-muted);
        font-size: 10px;
    }

    
    .advisor-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: auto;
        padding-top: 13px;
    }
    .advisor-row .advisor-actions,
    .advisor-shelf-row .advisor-actions { margin-top: 11px; }
    
    .advisor-plan-add > span { font-size: 15px; font-weight: 400; line-height: 1; }
    .advisor-plan-add.is-compact { margin-top: 0; }
    .advisor-plan-add:disabled { cursor: wait; opacity: .55; }
    .advisor-plan-rail {
        align-self: start;
        min-width: 0;
    }
    .advisor-plan-head {
        padding: 2px 2px 12px;
    }
    .advisor-plan-head .advisor-kicker { margin: 0 0 4px; }
    .advisor-plan-head h2 {
        margin: 0; color: var(--text); font-size: 14px; font-weight: 720;
    }
    .advisor-plan-items {
        display: grid;
        gap: 10px;
    }
    .advisor-plan-item {
        padding: 12px 13px 11px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        transition: border-color 0.15s;
    }
    .advisor-plan-item:hover { border-color: rgba(150, 153, 157, 0.4); }
    :where(html[data-theme="light"]) .advisor-plan-item:hover { border-color: rgba(130, 151, 184, 0.4); }
    .advisor-plan-game {
        display: flex; align-items: center; gap: 10px;
        color: inherit; text-decoration: none;
    }
    .advisor-plan-game img {
        width: 42px; height: 42px; flex: 0 0 42px;
        border-radius: 7px; object-fit: cover;
    }
    .advisor-plan-copy { display: grid; min-width: 0; gap: 2px; }
    .advisor-plan-copy strong {
        overflow: hidden; color: var(--text); font-size: 11.5px;
        font-weight: 700; text-overflow: ellipsis; white-space: nowrap;
    }
    .advisor-plan-copy > span { color: var(--text-muted); font-size: 9.5px; }
    .advisor-plan-progress {
        height: 3px; margin: 9px 0 7px; overflow: hidden;
        border-radius: 99px; background: rgba(150, 153, 157, 0.16);
    }
    :where(html[data-theme="light"]) .advisor-plan-progress { background: rgba(135, 159, 194, 0.16); }
    .advisor-plan-progress i {
        display: block; height: 100%; border-radius: inherit;
        background: var(--platinum-gradient);
    }
    
    html[data-theme="light"] .advisor-plan-progress { background: rgba(63, 108, 153, 0.24); }
    html[data-theme="light"] .advisor-plan-progress i {
        background: linear-gradient(90deg, #4f6f8f, #6d92b4 45%, #547b9d 72%, #4b6c8c);
    }
    .advisor-plan-foot {
        display: flex; align-items: center; justify-content: space-between;
        gap: 8px; color: var(--text-3); font-size: 9.5px;
    }
    .advisor-plan-foot > span > small {
        margin-left: 4px; color: var(--brand-2); font: inherit;
        font-weight: 700; white-space: nowrap;
    }
    .advisor-plan-controls {
        display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    }
    .advisor-plan-controls button {
        padding: 2px 5px; border: 0; background: transparent;
        color: var(--text-muted); font: inherit; font-size: 9px; cursor: pointer;
    }
    .advisor-plan-controls button:hover { color: var(--text); }
    .advisor-plan-controls .is-remove { font-size: 15px; line-height: 1; }
    .advisor-plan-empty {
        padding: 16px 15px;
        border: 1px dashed var(--border);
        border-radius: 12px;
        color: var(--text-muted);
        font-size: 10.5px;
        line-height: 1.55;
    }
    .advisor-plan-manage {
        display: flex; align-items: center; justify-content: center;
        gap: 6px; margin-top: 10px; padding: 11px 13px;
        border: 1px solid var(--border); border-radius: 12px;
        background: var(--surface);
        color: var(--text-2); font-size: 11px; font-weight: 650;
        text-decoration: none;
        transition: border-color 0.15s, color 0.15s;
    }
    .advisor-plan-manage:hover { border-color: var(--brand-2); color: var(--brand-2); }
    .advisor-guide-cta {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        max-width: 360px;
        padding: 6px 9px;
        border: 1px solid rgba(115, 201, 242, 0.34);
        border-radius: 9px;
        background: rgba(115, 201, 242, 0.055);
        color: inherit;
        text-decoration: none;
        transition: border-color .16s ease, background .16s ease;
    }
    .advisor-guide-cta:hover {
        border-color: rgba(115, 201, 242, 0.68);
        background: rgba(115, 201, 242, 0.1);
    }
    .advisor-guide-cta:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
    .advisor-guide-mark {
        flex: 0 0 auto;
        padding: 3px 6px;
        border-radius: 5px;
        background: rgba(115, 201, 242, 0.14);
        color: #8fd7f7;
        font-size: 8.5px;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }
    :where(html[data-theme="light"]) .advisor-guide-mark { color: var(--accent); }
    .advisor-guide-copy {
        display: grid;
        gap: 1px;
        min-width: 0;
    }
    .advisor-guide-copy strong {
        overflow: hidden;
        color: var(--text-2);
        font-size: 10.5px;
        font-weight: 680;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .advisor-guide-copy small {
        overflow: hidden;
        color: var(--text-muted);
        font-size: 9.5px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .advisor-guide-arrow {
        flex: 0 0 auto;
        margin-left: 2px;
        color: #73c9f2;
        font-size: 12px;
    }
    :where(html[data-theme="light"]) .advisor-guide-arrow { color: var(--accent); }
    .advisor-guide-cta.is-compact {
        width: fit-content;
        max-width: min(100%, 430px);
        margin-top: 10px;
    }
    
    .advisor-tip-note {
        position: relative;
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        
        width: 100%;
        max-width: 520px;
        box-sizing: border-box;
        margin-top: 12px;
        padding: 9px 10px 9px 13px;
        border-left: 2px solid rgba(115, 201, 242, .72);
        background: linear-gradient(90deg,
            rgba(115, 201, 242, .09), rgba(115, 201, 242, .015) 72%);
        color: inherit;
        text-decoration: none;
        transition: border-color .16s ease, background .16s ease;
    }
    .advisor-tip-note::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        
        left: 0;
        height: 1px;
        background: rgba(115, 201, 242, .13);
    }
    .advisor-tip-note:hover {
        border-color: #8fd7f7;
        background: linear-gradient(90deg,
            rgba(115, 201, 242, .14), rgba(115, 201, 242, .025) 76%);
    }
    :where(html[data-theme="light"]) .advisor-tip-note:hover { border-color: var(--accent); }
    .advisor-tip-note:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }
    .advisor-tip-mark {
        display: grid;
        place-items: center;
        width: 22px;
        height: 22px;
        color: #8fd7f7;
    }
    :where(html[data-theme="light"]) .advisor-tip-mark { color: var(--accent); }
    .advisor-tip-mark svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.65;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .advisor-tip-copy {
        display: grid;
        min-width: 0;
        gap: 2px;
    }
    .advisor-tip-copy small {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #8fd7f7;
        font-size: 8.5px;
        font-weight: 800;
        letter-spacing: .075em;
        text-transform: uppercase;
    }
    :where(html[data-theme="light"]) .advisor-tip-copy small { color: var(--accent); }
    .advisor-tip-copy small b {
        color: var(--text-muted);
        font: inherit;
        font-weight: 650;
        letter-spacing: .025em;
        text-transform: none;
    }
    .advisor-tip-copy strong {
        overflow: hidden;
        color: var(--text-2);
        font-size: 11px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .advisor-tip-copy > span {
        display: -webkit-box;
        overflow: hidden;
        color: var(--text-3);
        font-size: 10.5px;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .advisor-tip-link {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--text-2);
        font-size: 9.5px;
        font-weight: 700;
        white-space: nowrap;
    }
    .advisor-tip-link i {
        color: #73c9f2;
        font-size: 12px;
        font-style: normal;
    }
    :where(html[data-theme="light"]) .advisor-tip-link i { color: var(--accent); }
    .advisor-tip-note.is-compact {
        margin-top: 10px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .advisor-feedback { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
    .advisor-fb.is-active {
        border-color: rgba(127, 212, 166, 0.55);
        color: #9fe0bd;
        background: rgba(127, 212, 166, 0.1);
    }
    #advisorContent.is-busy { opacity: 0.55; pointer-events: none; }

    .advisor-reason-modal {
        
        box-sizing: border-box;
        width: min(440px, 100%);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        padding: 22px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    }
    .advisor-reason-modal h2 { margin: 0; color: var(--text); font-size: 18px; }
    .advisor-reason-sub { margin: 5px 0 15px; color: var(--text-3); font-size: 12px; }
    .advisor-reason-options { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
    .advisor-reason-option {
        padding: 7px 11px;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--text-2);
        background: transparent;
        font: inherit;
        font-size: 11.5px;
        cursor: pointer;
    }
    .advisor-reason-option:hover { border-color: var(--text-muted); }
    .advisor-reason-option.is-active {
        border-color: var(--brand-2);
        color: var(--text);
        background: rgba(134, 215, 236, 0.1);
    }
    .advisor-reason-modal textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 64px; max-height: 160px; }
    .advisor-reason-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 15px; }

    .advisor-header-skeleton { width: 520px; max-width: 100%; height: 92px; }
    .advisor-lead-skeleton { height: 290px; border: 0; }
    .advisor-row-skeleton { height: 90px; border: 0; }

    @media (max-width: 960px) {
        .advisor-workspace { grid-template-columns: 1fr; }
        .advisor-plan-rail { position: static; grid-row: 1; }
    }

    @media (max-width: 760px) {
        .advisor-intro { margin-left: 0; }
        .advisor-profile-model { flex-wrap: wrap; }
        .advisor-lead {
            grid-template-columns: 46px 110px minmax(0, 1fr);
            min-height: 330px;
        }
        .advisor-lead-art { min-height: 330px; }
        .advisor-lead-body { padding: 20px 17px; }
        .advisor-reasons .chipline:nth-child(n+3) { display: none; }
        .advisor-row { grid-template-columns: 34px 48px minmax(0, 1fr); padding-right: 11px; gap: 10px; }
        .advisor-row-icon { width: 48px; height: 48px; }
        .advisor-guide-cta { max-width: 100%; }
        .advisor-tip-note { grid-template-columns: 20px minmax(0, 1fr); }
        .advisor-tip-link { display: none; }
    }


.plat-list-action-slot { display: contents; }
.plat-list-action-slot:empty { display: none; }
.plat-list-page-action.is-saved {
    border-color: rgba(134, 215, 236, .38);
    background: rgba(78, 156, 190, .1);
}
.plat-list-page-action.is-saved strong { color: var(--brand-2); }
.plat-list-page-action:disabled { cursor: default; opacity: .58; }

#platListView { padding-bottom: 70px; }
.plat-list-page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 28px; padding: 24px 0 28px;
    border-bottom: 1px solid var(--border);
}
.plat-list-page-kicker,
.plat-list-section-head p {
    margin: 0 0 6px; color: var(--brand-2); font-size: 10px;
    font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
}
.plat-list-page-head h1 {
    margin: 0; color: var(--text); font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.035em;
}
.plat-list-page-head p:not(.plat-list-page-kicker) {
    max-width: 560px; margin: 9px 0 0; color: var(--text-3);
    font-size: 13px; line-height: 1.55;
}
.plat-list-page-head p:not(.plat-list-page-kicker) b { color: var(--text); font-weight: 700; }
.plat-list-advisor-link {
    display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0;
    padding: 10px 13px; border: 1px solid var(--border);
    border-radius: 9px; color: var(--text-2); font-size: 11px;
    font-weight: 650; text-decoration: none;
}
.plat-list-advisor-link:hover {
    border-color: rgba(134, 215, 236, .46); color: var(--brand-2);
}
.plat-list-page-actions {
    display: flex; align-items: center; justify-content: flex-end;
    flex-wrap: wrap; gap: 8px;
}
.plat-list-page-content { display: grid; gap: 38px; padding-top: 28px; }
.plat-list-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 14px;
}
.plat-list-section-head h2 {
    margin: 0; color: var(--text); font-size: 17px; letter-spacing: -.015em;
}
.plat-list-section-head > span {
    color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums;
}

.plat-list-limit { margin: -4px 0 14px; color: var(--text-2); font-size: 13px; line-height: 1.5; }

.plat-list-premium-link { padding: 0; border: 0; background: none; font: inherit; line-height: 1; vertical-align: middle; cursor: pointer; }
.plat-list-premium-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.plat-list-grid {
    display: grid; gap: 10px;
}

.plat-list-row {
    position: relative; overflow: hidden; border: 1px solid var(--border);
    border-radius: 14px; background: var(--surface);
    transition: border-color .18s, transform .18s, opacity .16s, box-shadow .16s;
}
.plat-list-row:hover { border-color: var(--dark-border-hover, #3d4f78); transform: translateY(-1px); }

.plat-list-row:focus-within { border-color: rgba(134, 215, 236, .55); }

html[data-theme="light"] .plat-list-row { --surface: #131a2e; --surface-2: #1a2440; }
.plat-list-row.is-dragging {
    opacity: .38; transform: scale(.985);
    border-color: rgba(134, 215, 236, .65);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}
.plat-list-grid.is-reordering .plat-list-row:not(.is-dragging) {
    transition: transform .14s ease, border-color .14s ease;
}
.plat-list-grid.is-saving { pointer-events: none; opacity: .82; }
.plat-list-row-art {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 32%; filter: saturate(1.06);
    transition: transform .4s ease;
}
.plat-list-row:hover .plat-list-row-art { transform: scale(1.015); }

.plat-list-row-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .66) 30%, rgba(4, 6, 10, .56) 48%, rgba(4, 6, 10, .6) 72%, rgba(4, 6, 10, .8) 100%);
}
:where(html[data-theme="light"]) .plat-list-row-scrim { background: linear-gradient(90deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .66) 30%, rgba(4, 6, 10, .56) 48%, rgba(4, 6, 10, .6) 72%, rgba(4, 6, 10, .8) 100%); }
.plat-list-row-body { text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.plat-list-row-body {
    position: relative; display: grid;
    grid-template-columns: 34px 48px minmax(0, 1.1fr) minmax(150px, .9fr) auto auto 30px;
    align-items: center; gap: 15px; min-height: 92px; padding: 13px 12px 15px 12px;
}

.plat-list-row-body.is-viewer {
    grid-template-columns: 34px 48px minmax(0, 1.1fr) minmax(150px, .9fr) auto auto;
}
.plat-list-row-link { display: contents; color: inherit; text-decoration: none; }

.plat-list-row-pos {
    position: relative; height: 20px; display: grid; place-items: center;
}
button.plat-list-row-pos { border: 0; background: transparent; padding: 0; cursor: grab; touch-action: none; }
button.plat-list-row-pos:active { cursor: grabbing; }
button.plat-list-row-pos:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.plat-list-row-pos .num {
    color: var(--text-muted); font-size: 11px; font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.plat-list-row-pos .grip {
    position: absolute; inset: 0; display: none; place-items: center;
}
.plat-list-row-pos .grip span {
    width: 14px; height: 12px;
    background-image: radial-gradient(circle, currentColor 1.35px, transparent 1.5px);
    background-size: 7px 6px; color: var(--text-3); opacity: .85;
}

.plat-list-row:hover button.plat-list-row-pos .num { visibility: hidden; }
.plat-list-row:hover button.plat-list-row-pos .grip { display: grid; }
.plat-list-row-icon {
    width: 48px; height: 48px; border-radius: 9px; object-fit: cover;
    border: 1px solid rgba(150, 153, 157, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
:where(html[data-theme="light"]) .plat-list-row-icon { border: 1px solid rgba(130, 151, 184, .3); }
.plat-list-row-copy { display: grid; min-width: 0; gap: 4px; justify-items: start; }
.plat-list-row-copy > strong {
    max-width: 100%; overflow: hidden; color: var(--text); font-size: 14px;
    letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap;
    text-shadow: 0 1px 8px rgba(8, 12, 17, 0.8);
}
:where(html[data-theme="light"]) .plat-list-row-copy > strong { text-shadow: 0 1px 8px rgba(11, 13, 22, .8); }

.plat-list-row-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px;
    max-width: 100%; min-width: 0;
}
.plat-list-row-meta .platform-badge { margin-bottom: 0; }
.plat-list-row-meta > small {
    color: var(--text-3); font-size: 10px; letter-spacing: .03em;
    text-shadow: 0 1px 6px rgba(8, 12, 17, 0.9);
}
:where(html[data-theme="light"]) .plat-list-row-meta > small { text-shadow: 0 1px 6px rgba(11, 13, 22, .9); }
.plat-list-row-meta > small b { color: var(--brand-2); font-weight: 750; }
.plat-list-row-meter { display: grid; gap: 5px; }
.plat-list-row-bar {
    height: 4px; border-radius: 999px; background: rgba(150, 153, 157, 0.22);
    overflow: hidden;
}
:where(html[data-theme="light"]) .plat-list-row-bar { background: rgba(135, 159, 194, .22); }
.plat-list-row-bar i { display: block; height: 100%; background: var(--platinum-gradient); border-radius: inherit; }
.plat-list-row-meter small {
    color: var(--text-3); font-size: 9.5px; font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 6px rgba(8, 12, 17, 0.9);
}
:where(html[data-theme="light"]) .plat-list-row-meter small { text-shadow: 0 1px 6px rgba(11, 13, 22, .9); }
.plat-list-row-count { text-align: right; min-width: 44px; }
.plat-list-row-count b {
    display: block; color: var(--text); font-size: 22px; font-weight: 850; line-height: 1;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em;
    text-shadow: 0 1px 10px rgba(8, 12, 17, 0.9);
}
:where(html[data-theme="light"]) .plat-list-row-count b { text-shadow: 0 1px 10px rgba(11, 13, 22, .9); }
.plat-list-row-count span {
    color: var(--text-muted); font-size: 8.5px; font-weight: 750;
    letter-spacing: .12em; text-transform: uppercase;
}
.plat-list-row-plat { width: 26px; height: 26px; object-fit: contain; filter: grayscale(1) brightness(.55); }
.plat-list-row.is-close .plat-list-row-plat { filter: none; }
.plat-list-row-remove {
    justify-self: center; width: 22px; height: 22px; display: grid; place-items: center;
    border: 0; border-radius: 6px; background: transparent; padding: 0;
    color: var(--text-muted); font-size: 14px; line-height: 1; cursor: pointer;
    opacity: 0; transition: opacity .15s, color .15s;
}
.plat-list-row:hover .plat-list-row-remove,
.plat-list-row:focus-within .plat-list-row-remove { opacity: 1; }
.plat-list-row-remove:hover { color: var(--accent); }
.plat-list-row-remove:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }

@media (hover: none) {
    .plat-list-row-remove { opacity: 1; }
}
.plat-list-page-empty {
    display: grid; justify-items: center; padding: 48px 20px;
    border: 1px dashed var(--border); border-radius: 13px;
    color: var(--text-muted); text-align: center;
}
.plat-list-page-empty img { width: 38px; margin-bottom: 12px; }
.plat-list-page-empty h2 {
    margin: 0 0 6px; color: var(--text); font-size: 16px;
}
.plat-list-page-empty p { margin: 0; font-size: 11.5px; }
.plat-list-page-empty a {
    margin-top: 15px; color: var(--brand-2); font-size: 11px;
    font-weight: 700; text-decoration: none;
}


.plat-list-page-head p.plat-list-lifetime {
    display: flex; align-items: center; gap: 8px;
    margin: 12px 0 0; color: var(--text-3); font-size: 12px;
}
.plat-list-lifetime img { width: 18px; height: 18px; object-fit: contain; }
.plat-list-page-head p.plat-list-lifetime b { color: var(--text); font-weight: 750; font-variant-numeric: tabular-nums; }


.plat-list-earned-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.plat-list-earned-item {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px;
    align-items: center; gap: 12px; min-height: 64px; padding: 11px 14px 11px 12px;
    border-radius: 12px; background: var(--surface);
    color: inherit; text-decoration: none;
    transition: background-color .15s;
}
.plat-list-earned-item:hover { background: var(--surface-2); }
.plat-list-earned-item:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.plat-list-earned-item > img:first-child {
    width: 40px; height: 40px; border-radius: 8px; object-fit: cover;
}
.plat-list-earned-copy { display: grid; gap: 4px; min-width: 0; }
.plat-list-earned-copy strong {
    overflow: hidden; color: var(--text); font-size: 13px; letter-spacing: -.01em;
    text-overflow: ellipsis; white-space: nowrap;
}
.plat-list-earned-copy small {
    display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden;
    color: var(--text-3); font-size: 10.5px; white-space: nowrap;
}
.plat-list-earned-copy small .platform-badge { flex-shrink: 0; margin-bottom: 0; }
.plat-list-earned-copy small > span { overflow: hidden; text-overflow: ellipsis; }
.plat-list-earned-trophy { width: 22px; height: 22px; object-fit: contain; }
.plat-list-earned-more {
    display: inline-block; margin-top: 12px;
    color: var(--text-3); font-size: 11.5px; text-decoration: none;
}
.plat-list-earned-more b { color: var(--text-2); font-weight: 700; }
.plat-list-earned-more span { margin-left: 4px; color: var(--brand-2); font-weight: 700; }
.plat-list-earned-more:hover span { text-decoration: underline; }

@media (max-width: 760px) {
    .plat-list-earned-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .plat-list-row-body {
        grid-template-columns: 30px 44px minmax(0, 1fr) auto 26px;
    }
    .plat-list-row-body.is-viewer {
        grid-template-columns: 30px 44px minmax(0, 1fr) auto;
    }
    .plat-list-row-meter, .plat-list-row-plat { display: none; }
    .plat-list-row-remove { opacity: 1; }
}
@media (max-width: 560px) {
    .plat-list-page-head { align-items: flex-start; flex-direction: column; }
}


#platCabinetView { padding-bottom: 70px; }
.plat-cabinet-page-head {
    display: flex; align-items: center; gap: 18px;
    padding: 24px 0 28px; border-bottom: 1px solid var(--border);
}

.plat-cabinet-avatar {
    position: relative;
    flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; padding: 2px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.plat-cabinet-avatar img,
.plat-cabinet-avatar-blank {
    display: block; width: 100%; height: 100%; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--bg); background: var(--surface-2);
}
.plat-cabinet-page-head h1 {
    margin: 0; color: var(--text); font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.035em;
}

.plat-cabinet-podium { margin-left: auto; flex-shrink: 0; text-align: right; }
.plat-cabinet-podium-row { display: inline-flex; align-items: center; gap: 9px; }
.plat-cabinet-podium-row img {
    height: 34px; width: auto;
    filter: drop-shadow(0 0 6px rgba(134, 215, 236, .4));
}
.plat-cabinet-podium-row b {
    font-size: 28px; font-weight: 900; line-height: 1;
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plat-cabinet-podium-row span {
    align-self: center; margin-top: 3px; color: var(--plat-blue); font-size: 9px;
    font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
}
.plat-cabinet-podium small {
    display: block; margin-top: 5px; color: var(--text-muted); font-size: 10.5px;
    font-weight: 600;
}

.plat-cabinet-vitals { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 14px; }
.plat-cabinet-vitals div span {
    display: block; color: var(--text-muted); font-size: 9.5px; font-weight: 800;
    letter-spacing: .09em; text-transform: uppercase; margin-bottom: 2px;
}
.plat-cabinet-vitals div b {
    color: var(--text); font-size: 14px; font-weight: 750;
    font-variant-numeric: tabular-nums;
}
.plat-cabinet-vitals div b small { color: var(--text-3); font-size: 11px; font-weight: 600; }

.plat-cabinet-year { margin: 34px 0 8px; }
.plat-cabinet-year-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.plat-cabinet-year-head h2 {
    margin: 0; color: var(--text); font-size: 21px; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.plat-cabinet-year-head > span { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.plat-cabinet-year-head em {
    flex: 1; height: 1px; align-self: center;
    background: linear-gradient(90deg, var(--border), transparent);
}


.plat-cabinet-shelf-row { position: relative; margin-bottom: 40px; padding: 0 8px 12px; }

.plat-cabinet-shelf-row::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    
    background: linear-gradient(90deg, rgba(78, 156, 190, .55), rgba(134, 215, 236, .3) 55%, rgba(134, 215, 236, .16));
    border-radius: 2px;
}
.plat-cabinet-shelf-row::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
    background: linear-gradient(180deg, rgba(134, 215, 236, .07), transparent);
}
.plat-cabinet-shelf { display: flex; flex-wrap: wrap; gap: 18px 14px; position: relative; }

.plat-cabinet-item {
    position: relative; display: block; width: 58px; text-decoration: none;
}

.plat-cabinet-frame {
    display: grid; place-items: center; width: 58px; height: 58px;
    border-radius: 8px; overflow: hidden;
    background: var(--dark-scrim-mid, #0d1120); border: 1px solid rgba(150, 153, 157, 0.28);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .45);
    transition: transform .16s, box-shadow .16s;
    
    -webkit-box-reflect: below 15px linear-gradient(transparent 62%, rgba(255, 255, 255, .18));
}
:where(html[data-theme="light"]) .plat-cabinet-frame { border: 1px solid rgba(130, 151, 184, .28); }
.plat-cabinet-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.plat-cabinet-item:hover .plat-cabinet-frame,
.plat-cabinet-item:focus-visible .plat-cabinet-frame {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .55);
}
.plat-cabinet-item:focus-visible { outline: none; }
.plat-cabinet-item:focus-visible .plat-cabinet-frame {
    border-color: rgba(134, 215, 236, .75);
}
.plat-cabinet-pip {
    position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6));
}

.plat-cabinet-item.is-latest .plat-cabinet-frame {
    border-color: rgba(134, 215, 236, .8);
    animation: plat-cabinet-glow 2.6s ease-in-out infinite;
}
@keyframes plat-cabinet-glow {
    0%, 100% { box-shadow: 0 8px 16px rgba(0, 0, 0, .45), 0 0 10px 1px rgba(134, 215, 236, .45); }
    50%      { box-shadow: 0 8px 16px rgba(0, 0, 0, .45), 0 0 24px 7px rgba(134, 215, 236, .9); }
}
@media (prefers-reduced-motion: reduce) {
    .plat-cabinet-item.is-latest .plat-cabinet-frame {
        animation: none;
        box-shadow: 0 8px 16px rgba(0, 0, 0, .45), 0 0 18px 4px rgba(134, 215, 236, .65);
    }
}

.plat-cabinet-tip {
    position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
    display: none; z-index: 4; text-align: center;
    
    white-space: normal; width: max-content; max-width: calc(100vw - 16px);
    background: var(--dark-scrim-mid, #0d1120); border: 1px solid var(--border); border-radius: 7px;
    padding: 7px 10px 8px; box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
    pointer-events: none;
}
.plat-cabinet-item:hover .plat-cabinet-tip,
.plat-cabinet-item:focus-visible .plat-cabinet-tip { display: block; }

.plat-cabinet-tip-top { display: flex; align-items: center; justify-content: center; gap: 7px; }
.plat-cabinet-tip-top b { color: var(--text); font-size: 11px; font-weight: 700; }
.plat-cabinet-tip .platform-badge { margin: 0; }

.plat-cabinet-tip > small {
    display: block; margin-top: 4px; color: var(--text-muted); font-size: 10px;
    text-align: center;
}




.plat-cabinet-sentinel { height: 1px; margin-top: -1px; }

.plat-cabinet-plaque {
    display: flex; align-items: center; gap: 16px; margin-top: 26px;
    color: var(--text-muted); font-size: 10.5px; font-weight: 650;
    letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.plat-cabinet-plaque::before,
.plat-cabinet-plaque::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border));
}
.plat-cabinet-plaque::after { background: linear-gradient(90deg, var(--border), transparent); }
.plat-cabinet-plaque img { width: 14px; height: 14px; opacity: .8; }

.plat-cabinet-empty {
    display: grid; justify-items: center; margin-top: 28px; padding: 48px 20px;
    border: 1px dashed var(--border); border-radius: 13px;
    color: var(--text-muted); text-align: center;
}
.plat-cabinet-empty img { width: 38px; margin-bottom: 12px; }
.plat-cabinet-empty h2 { margin: 0 0 6px; color: var(--text); font-size: 16px; }
.plat-cabinet-empty p { margin: 0; font-size: 11.5px; }

@media (max-width: 640px) {
    .plat-cabinet-plaque { white-space: normal; }
}
@media (max-width: 560px) {
    .plat-cabinet-page-head { align-items: flex-start; flex-wrap: wrap; }
    .plat-cabinet-avatar { width: 52px; height: 52px; }
    .plat-cabinet-podium { margin-left: 0; text-align: left; }
}


.plat-cabinet-mosaic-btn {
    display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
    padding: 10px 14px; border: 1px solid var(--border); border-radius: 9px;
    background: var(--surface); color: var(--text-2); font-size: 11.5px; font-weight: 700;
    cursor: pointer; font-family: inherit;
}
.plat-cabinet-mosaic-btn:hover { border-color: rgba(134,215,236,.46); color: var(--brand-2); }
.plat-cabinet-mosaic-btn img { height: 16px; width: auto; }



    @media (max-width: 520px) {
        .advisor-lead {
            grid-template-columns: 42px 1fr;
        }
        .advisor-lead-art { min-height: 150px; max-height: 190px; }
        .advisor-lead-body { grid-column: 1 / -1; }
        .advisor-lead-rank { grid-row: 1; }
        .advisor-section-head { align-items: flex-start; flex-direction: column; gap: 5px; }
        .advisor-row { grid-template-columns: 30px 44px minmax(0, 1fr); }
        .advisor-row-icon { width: 44px; height: 44px; }
        
        .advisor-lead-body .advisor-actions { align-self: stretch; align-items: stretch; flex-direction: column; }
        .advisor-lead-body .advisor-feedback { margin-left: 0; }
        .advisor-lead-body .advisor-feedback .advisor-fb { flex: 1; }
    }

    
    @media (max-width: 560px) {
        .advisor-row .advisor-feedback {
            flex-basis: 100%;
            margin-left: 0;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
            justify-content: flex-start;
        }
        
        .advisor-game-meta { flex-wrap: wrap; row-gap: 6px; }
        .advisor-game-meta > span { white-space: nowrap; }
    }
    
    @media (max-width: 560px) {
    }

    @media (max-width: 900px) {
    }
    
    @media (max-width: 600px) {
    }
    @container (max-width: 480px) {
    }
    @container (max-width: 480px) {
    }
    @media (max-width: 560px) {
    }
    @media (max-width: 700px) { }
    @media (max-width: 600px) {
    }
    
    @media (max-width: 560px) {
    }

    
    .advisor-queue-card {
        margin-top: 18px;
        padding: 17px 20px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
    }
    .advisor-queue-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 13px;
    }
    .advisor-queue-head h2 { margin: 3px 0 4px; color: var(--text); font-size: 17px; }
    .advisor-queue-head p { max-width: 560px; margin: 0; color: var(--text-3); font-size: 11.5px; line-height: 1.55; }
    .advisor-queue-row {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr) auto auto auto;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 9px 11px;
        border: 1px solid var(--border);
        border-radius: 9px;
        margin-bottom: 6px;
        background: transparent;
        color: inherit;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }
    .advisor-queue-row:hover { border-color: var(--text-muted); background: rgba(168, 198, 230, 0.04); }
    .advisor-queue-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .advisor-queue-row img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
    .advisor-queue-main { display: grid; gap: 1px; min-width: 0; }
    .advisor-queue-main strong { overflow: hidden; color: var(--text); font-size: 12.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
    .advisor-queue-main small { color: var(--text-muted); font-size: 10px; }
    .advisor-queue-reason {
        padding: 3px 9px;
        border: 1px solid rgba(232, 178, 119, 0.42);
        border-radius: 999px;
        color: var(--caution);
        font-size: 10px;
        white-space: nowrap;
    }
    .advisor-queue-count { color: var(--text-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .advisor-queue-notes {
        display: grid;
        grid-column: 2 / -1;
        gap: 4px;
        min-width: 0;
        padding-top: 2px;
    }
    .advisor-queue-notes > span {
        color: var(--text-muted);
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
    .advisor-queue-notes blockquote {
        margin: 0;
        padding: 5px 8px;
        border-left: 2px solid rgba(232, 178, 119, 0.42);
        border-radius: 0 5px 5px 0;
        background: rgba(168, 198, 230, 0.035);
        color: var(--text-3);
        font-size: 10.5px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }
    .advisor-regression-card {
        border-color: rgba(108, 194, 255, 0.28);
    }
    .advisor-regression-rate,
    .advisor-regression-lift {
        display: grid;
        gap: 1px;
        white-space: nowrap;
    }
    .advisor-regression-rate {
        color: #73c9f2;
        text-align: right;
    }
    .advisor-regression-rate.is-high { color: #ff8f9d; }
    .advisor-regression-rate strong {
        font-size: 13px;
        font-variant-numeric: tabular-nums;
    }
    .advisor-regression-rate small,
    .advisor-regression-lift small {
        color: var(--text-muted);
        font-size: 9.5px;
    }
    .advisor-regression-lift {
        color: var(--text-3);
        font-size: 10px;
    }
    .advisor-queue-resolve {
        padding: 4px 9px;
        border: 1px solid var(--border);
        border-radius: 7px;
        background: transparent;
        color: var(--text-muted);
        font: inherit;
        font-size: 10px;
        cursor: pointer;
    }
    .advisor-queue-resolve:hover {
        border-color: var(--accent);
        color: var(--text);
    }
    .shovelware-candidate-row { grid-template-columns: minmax(0, 1fr) auto; cursor: default; }
    .shovelware-candidate-actions { display: flex; gap: 6px; }
    
    .shovelware-candidate-row a {
        color: var(--text);
        text-decoration: none;
    }
    .shovelware-candidate-row a:hover { color: var(--brand-2); text-decoration: underline; }
    @media (max-width: 620px) {
    }


    @media (max-width: 700px) {
        .advisor-queue-head { flex-direction: column; }
        .advisor-queue-row { grid-template-columns: 32px minmax(0, 1fr); }
        .advisor-queue-reason, .advisor-queue-count,
        .advisor-queue-resolve, .advisor-regression-rate,
        .advisor-regression-lift {
            grid-column: 2;
            justify-self: start;
            text-align: left;
        }
    }

    .advisor-sig-card {
        margin-top: 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
        overflow: hidden;
    }
    .advisor-sig-head {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 17px 20px;
        border-bottom: 1px solid var(--border);
    }
    .advisor-sig-head img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; }
    .advisor-sig-head h2 { margin: 0; color: var(--text); font-size: 17px; }
    .advisor-sig-head p { margin: 3px 0 0; color: var(--text-muted); font-size: 11px; }
    
    .advisor-sig-bulk {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 11px 20px;
        border-bottom: 1px solid var(--border);
        background: rgba(168, 198, 230, 0.03);
    }
    .advisor-sig-filter { flex: 1 1 240px; min-width: 200px; font-size: 11.5px; }
    .advisor-sig-bulkbtn {
        padding: 5px 10px;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--text-muted);
        background: transparent;
        font: inherit;
        font-size: 10.5px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
    }
    .advisor-sig-bulkbtn:hover { border-color: var(--text-muted); color: var(--text-2); }
    .advisor-sig-bulkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .advisor-sig-bulk-actions { display: flex; flex-wrap: wrap; gap: 5px; }
    .advisor-sig-selected {
        color: var(--text-muted);
        font-size: 10.5px;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }
    .advisor-sig-selected.is-active { color: var(--brand-2); font-weight: 650; }
    .advisor-sig-bulk-date { margin-left: auto; }
    .advisor-sig-select { display: grid; place-items: center; width: 20px; }
    .advisor-sig-select input { width: 14px; height: 14px; margin: 0; accent-color: var(--brand-2); cursor: pointer; }
    .advisor-sig-row.is-selected { background: rgba(134, 215, 236, 0.06); }
    .advisor-sig-row[hidden] { display: none; }

    .advisor-sig-row {
        display: grid;
        grid-template-columns: 20px minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(150px, 0.7fr);
        align-items: center;
        gap: 14px;
        padding: 12px 20px;
        border-bottom: 1px solid var(--border);
    }
    .advisor-sig-row:last-child { border-bottom: 0; }
    .advisor-sig-row-title { background: rgba(168, 198, 230, 0.04); }

    
    .advisor-sig-group {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: baseline;
        gap: 8px;
        padding: 7px 20px;
        background: var(--panel-2, var(--dark-surface, #141a22));
        border-bottom: 1px solid var(--border);
        color: var(--text);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }
    .advisor-sig-group span {
        color: var(--muted);
        font-size: 10.5px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
    }
    .advisor-sig-group[hidden] { display: none; }
    .advisor-result-flagged {
        margin-left: auto;
        padding: 2px 7px;
        border: 1px solid rgba(232, 178, 119, 0.4);
        border-radius: 999px;
        background: rgba(232, 178, 119, 0.1);
        color: var(--caution);
        font-size: 10px;
        font-weight: 650;
        white-space: nowrap;
    }
    .advisor-sig-row.is-dlc .advisor-sig-name strong { color: var(--muted); }
    .advisor-sig-row.is-flagged { background: rgba(232, 178, 119, 0.05); }
    .advisor-sig-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .advisor-sig-name img { width: 30px; height: 30px; border-radius: 6px; flex-shrink: 0; }
    .advisor-sig-name > span, .advisor-sig-name > div { display: grid; gap: 2px; min-width: 0; }
    .advisor-sig-name strong { color: var(--text); font-size: 12.5px; font-weight: 650; }
    .advisor-sig-name small {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--text-muted);
        font-size: 10.5px;
        line-height: 1.4;
    }
    .advisor-sig-evidence {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 3px;
    }
    .advisor-evidence-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        width: max-content;
        padding: 2px 7px;
        border: 1px solid rgba(134, 215, 236, 0.22);
        border-radius: 999px;
        background: rgba(134, 215, 236, 0.05);
        color: var(--text-muted);
        font: inherit;
        font-size: 9.5px;
        line-height: 1.25;
    }
    button.advisor-evidence-pill { cursor: pointer; }
    button.advisor-evidence-pill:hover {
        border-color: rgba(134, 215, 236, 0.5);
        color: var(--text-2);
    }
    .advisor-evidence-pill strong {
        color: #86d7ec;
        font-size: inherit;
        font-variant-numeric: tabular-nums;
    }
    .advisor-evidence-pill.is-consensus {
        border-color: rgba(111, 210, 169, 0.35);
        background: rgba(111, 210, 169, 0.07);
    }
    .advisor-evidence-pill.is-consensus strong { color: #6fd2a9; }
    .advisor-evidence-pill.is-proposal {
        border-color: rgba(232, 178, 119, 0.35);
        background: rgba(232, 178, 119, 0.07);
    }
    .advisor-evidence-pill.is-proposal strong { color: var(--caution); }
    .advisor-sig-checks { display: flex; flex-wrap: wrap; gap: 5px; }
    .advisor-sig-check {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 4px 9px;
        border: 1px solid var(--border);
        border-radius: 999px;
        color: var(--text-muted);
        font-size: 10.5px;
        cursor: pointer;
        user-select: none;
    }
    .advisor-sig-check input { width: 12px; height: 12px; margin: 0; accent-color: var(--accent); cursor: pointer; }
    .advisor-sig-check:hover { border-color: var(--text-muted); color: var(--text-2); }
    .advisor-sig-check.is-on {
        border-color: rgba(232, 178, 119, 0.55);
        color: var(--caution);
        background: rgba(232, 178, 119, 0.09);
    }
    .advisor-sig-head > button { flex-shrink: 0; margin-left: auto; padding: 8px 16px; font-size: 12px; }
    .advisor-sig-head > button:disabled { opacity: 0.45; cursor: default; }
    
    .advisor-sig-head {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--surface);
    }
    
    .advisor-sig-row.is-dirty { box-shadow: inset 3px 0 0 var(--accent); }
    .advisor-sig-note { font-size: 11.5px; }
    .advisor-sig-date {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--text-muted);
        font-size: 10.5px;
        white-space: nowrap;
    }
    .advisor-sig-date input { width: 140px; padding: 4px 7px; font-size: 11px; }
    .advisor-sig-save { padding: 7px 14px; font-size: 11.5px; }
    .advisor-sig-trophies { max-height: 620px; overflow-y: auto; scrollbar-width: thin; }

    @media (max-width: 1100px) {
        .advisor-sig-row { grid-template-columns: 20px minmax(0, 1fr); gap: 9px; }
        .advisor-sig-name, .advisor-sig-checks, .advisor-sig-note { grid-column: 2; }
        .advisor-sig-bulk-date { margin-left: 0; }
    }

    
    #statsHeader {
        display: flex;
        gap: 16px;
        align-items: center;
        margin: 4px 0 24px;
    }
    .stat-tiles {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-bottom: 28px;
    }
    .stat-tile {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }
    .stat-tile-hot { border-color: var(--accent); }
    .stat-tile-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
    .stat-tile-value { font-size: 24px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
    .stat-tile-sub { font-size: 12px; color: var(--text-3); }
    .stat-plat-val { color: var(--plat-blue); }

    
    .stat-hero {
        position: relative;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
        padding: 22px 22px 12px;
        margin-bottom: 20px;
        overflow: hidden;
    }
    .stat-hero-glow {
        position: absolute;
        inset: auto -20% -55% -20%;
        height: 120%;
        background: radial-gradient(ellipse at 50% 100%, rgba(78, 156, 190, 0.16), transparent 65%);
        pointer-events: none;
    }
    .stat-headline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; position: relative; }
    .stat-total {
        font-size: 44px;
        font-weight: 700;
        letter-spacing: -0.03em;
        line-height: 1;
        background: var(--brand-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-variant-numeric: tabular-nums;
    }
    .stat-total-label { color: var(--text-2); font-size: 15px; font-weight: 600; }
    .stat-since { width: 100%; color: var(--text-3); font-size: 13px; margin-top: 2px; }
    .stat-since strong { color: var(--text-2); font-weight: 600; }

    .stat-a-chart { position: relative; margin-top: 10px; cursor: crosshair; }
    .stat-a-chart svg { display: block; width: 100%; height: auto; }
    .stat-a-line { fill: none; stroke: url(#statAscentStroke); stroke-width: 2.5; stroke-linecap: round; }
    .stat-a-area { fill: url(#statAscentFill); }
    .stat-a-dot { fill: var(--brand-3); stroke: var(--surface); stroke-width: 2; }
    .stat-a-dot-halo { fill: none; stroke: rgba(134, 215, 236, 0.35); stroke-width: 1; }
    .stat-a-milestone-label { font: 600 10.5px var(--font-sans); fill: var(--brand-2); }
    .stat-a-year-axis { font: 500 10.5px var(--font-sans); fill: var(--text-muted); }
    .stat-a-grid { stroke: var(--border); stroke-width: 1; opacity: 0.5; }
    .stat-a-grid-label { font: 500 10px var(--font-sans); fill: var(--text-muted); }
    .stat-a-ball {
        fill: var(--brand-3);
        stroke: var(--surface);
        stroke-width: 1.5;
        filter: drop-shadow(0 0 6px rgba(134, 215, 236, 0.9));
    }

    
    .stat-a-cross {
        position: absolute;
        top: 6px;
        bottom: 20px;
        width: 1px;
        background: linear-gradient(180deg, transparent, rgba(134, 215, 236, 0.55) 20%, rgba(134, 215, 236, 0.55) 85%, transparent);
        pointer-events: none;
        display: none;
    }
    .stat-a-cross-dot {
        position: absolute;
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--brand-3);
        border: 2px solid var(--surface);
        box-shadow: 0 0 10px rgba(134, 215, 236, 0.8);
        transform: translate(-50%, -50%);
        pointer-events: none;
        display: none;
    }
    .stat-a-tip {
        position: absolute;
        z-index: 5;
        pointer-events: none;
        display: none;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 9px 12px;
        box-shadow: var(--shadow-2);
        white-space: nowrap;
    }
    .stat-a-tip-date { font-size: 11.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
    .stat-a-tip-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
    .stat-a-tip-row strong { color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }
    .stat-a-tip-row .stat-plat-icon { width: auto; height: 12px; }
    .stat-a-tip-day { margin-bottom: 5px; padding-bottom: 5px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--brand-2); font-weight: 700; }
    .stat-a-tip-sofar { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 1px; }

    
    .stat-dowstrip {
        margin: 0 0 20px;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        gap: 18px;
        flex-wrap: wrap;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
    }
    .stat-dowtext { flex: 1; min-width: 240px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
    .stat-dowtext strong { color: var(--brand-2); font-weight: 700; }
    .stat-dowbars { display: flex; align-items: flex-end; gap: 6px; height: 62px; }
    .stat-dowcol { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; width: 26px; }
    .stat-dowbar {
        width: 100%;
        margin-top: auto;
        border-radius: 3px 3px 1px 1px;
        background: #2c5f83;
        min-height: 3px;
        transition: filter 0.15s;
    }
    .stat-dowcol:hover .stat-dowbar { filter: brightness(1.3); }
    .stat-dowcol-top .stat-dowbar { background: linear-gradient(180deg, var(--brand-2), var(--brand-1)); box-shadow: 0 0 8px rgba(134, 215, 236, 0.35); }
    .stat-dowlabel { font-size: 9px; color: var(--text-muted); }
    .stat-dowcol-top .stat-dowlabel { color: var(--brand-2); font-weight: 700; }
    .stat-dowtip {
        position: absolute;
        bottom: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 4px 9px;
        font-size: 11.5px;
        color: var(--text-2);
        white-space: nowrap;
        box-shadow: var(--shadow-2);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.12s;
    }
    .stat-dowtip strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
    
    .stat-dowcol:nth-last-child(-n+3) .stat-dowtip { left: auto; right: 0; transform: none; }
    .stat-dowcol:hover .stat-dowtip { opacity: 1; }
    
    .stat-dowstrip .stat-readout { flex-basis: 100%; margin-top: 0; }
    .stat-dowcol.is-sel .stat-dowbar { outline: 2px solid var(--text); outline-offset: 1px; }
    .stat-dowcol.is-sel .stat-dowlabel { color: var(--text); font-weight: 700; }
    @media (hover: none) {
        .stat-dowtip { display: none; }
    }

    
    .stat-collection-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 18px;
        margin: 0 2px 11px;
    }
    .stat-collection-head h2 {
        margin: 0;
        color: var(--text-2);
        font-size: 14px;
        font-weight: 600;
    }
    .stat-collection-head > span,
    .stat-ledger-head > span:last-child {
        color: var(--text-muted);
        font-size: 12px;
        font-variant-numeric: tabular-nums;
    }
    .stat-collection {
        overflow: hidden;
        margin-bottom: 28px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
    }
    .stat-collection-main {
        display: grid;
        grid-template-columns: 218px minmax(0, 1fr);
    }
    .stat-collection-label {
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.045em;
        text-transform: uppercase;
    }
    .stat-completion {
        display: grid;
        align-content: center;
        justify-items: center;
        min-height: 220px;
        padding: 20px;
        border-right: 1px solid var(--border);
        text-align: center;
    }
    .stat-completion-ring {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 132px;
        height: 132px;
        margin: 10px 0 9px;
        border-radius: 50%;
        background: conic-gradient(var(--brand-2) 0 var(--stat-completion), var(--surface-2) var(--stat-completion) 100%);
    }
    .stat-completion-ring::before {
        content: "";
        position: absolute;
        inset: 10px;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: var(--surface);
    }
    .stat-completion-ring strong {
        position: relative;
        color: var(--text);
        font-size: 23px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.025em;
    }
    .stat-completion-copy {
        color: var(--text-muted);
        font-size: 12px;
        line-height: 1.45;
    }
    .stat-completion-copy strong {
        color: var(--text-2);
        font-weight: 600;
        font-variant-numeric: tabular-nums;
    }
    .stat-trophy-ledger {
        align-self: center;
        min-width: 0;
        padding: 19px 22px 18px;
    }
    .stat-ledger-head {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }
    .stat-metals {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .stat-metal {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 1px 11px;
        min-width: 0;
        padding: 3px 16px;
    }
    .stat-metal:first-child { padding-left: 0; }
    .stat-metal + .stat-metal { border-left: 1px solid var(--border); }
    .stat-metal img {
        grid-row: 1 / 4;
        width: 46px;
        height: 58px;
        object-fit: contain;
    }
    .stat-metal-name { color: var(--text-3); font-size: 12px; }
    .stat-metal strong {
        color: var(--text);
        font-size: 22px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        letter-spacing: -0.02em;
    }
    .stat-metal small { color: var(--text-muted); font-size: 11px; }
    .stat-composition-rail,
    .stat-platform-rail {
        display: flex;
        overflow: hidden;
        background: var(--surface-2);
    }
    .stat-composition-rail { height: 8px; margin-top: 17px; }
    .stat-composition-rail span,
    .stat-platform-rail span { display: block; min-width: 2px; }
    .stat-rail-platinum { background: var(--collection-platinum); }
    .stat-rail-gold { background: var(--collection-gold); }
    .stat-rail-silver { background: var(--collection-silver); }
    .stat-rail-bronze { background: var(--collection-bronze); }
    .stat-platform-ledger {
        padding: 17px 22px 18px;
        border-top: 1px solid var(--border);
    }
    .stat-platforms {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .stat-platform {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
        min-width: 0;
        padding: 0 18px;
    }
    .stat-platform:first-child { padding-left: 0; }
    .stat-platform:last-child { padding-right: 0; }
    .stat-platform + .stat-platform { border-left: 1px solid var(--border); }
    .stat-platform .platform-badge { justify-self: start; margin: 0; white-space: nowrap; }
    .stat-platform strong {
        justify-self: end;
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    .stat-platform small {
        grid-column: 1 / -1;
        color: var(--text-muted);
        font-size: 11px;
    }
    .stat-badge-multi {
        padding: 1px 7px;
        border: 0;
        background: var(--platform-multi);
        color: #ffe9cc;
    }
    .stat-platform-rail { height: 5px; margin-top: 15px; }
    .stat-platform-ps5 { background: var(--platform-ps5); }
    .stat-platform-ps4 { background: var(--platform-ps4); }
    .stat-platform-ps3 { background: var(--platform-ps3); }
    .stat-platform-psvita { background: var(--platform-psvita); }
    .stat-platform-multiplatform { background: var(--platform-multi); }

    @media (max-width: 900px) {
        .stat-collection-main { grid-template-columns: 190px minmax(0, 1fr); }
        .stat-metals { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
        .stat-metal:nth-child(3) { padding-left: 0; border-left: 0; }
        .stat-platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 15px; }
        .stat-platform:nth-child(4) { padding-left: 0; border-left: 0; }
    }

    @media (max-width: 600px) {
        .stat-collection-head { align-items: flex-start; flex-direction: column; gap: 3px; }
        .stat-collection-main { grid-template-columns: 1fr; }
        .stat-completion {
            grid-template-columns: 104px minmax(0, 1fr);
            justify-items: start;
            min-height: 0;
            border-right: 0;
            border-bottom: 1px solid var(--border);
            text-align: left;
        }
        .stat-completion .stat-collection-label { grid-column: 2; }
        .stat-completion-ring { grid-row: 1 / 3; width: 92px; height: 92px; margin: 0; }
        .stat-completion-ring::before { inset: 8px; }
        .stat-completion-ring strong { font-size: 18px; }
        .stat-trophy-ledger { padding: 17px 15px 16px; }
        .stat-metals { grid-template-columns: 1fr; row-gap: 0; }
        .stat-metal,
        .stat-metal:nth-child(3) {
            grid-template-columns: 42px minmax(0, 1fr) auto;
            padding: 10px 0;
            border-top: 1px solid var(--border);
            border-left: 0;
        }
        
        .stat-metal + .stat-metal { border-left: 0; }
        .stat-metal:first-child { border-top: 0; }
        .stat-metal img { grid-row: 1 / 3; width: 34px; height: 42px; }
        .stat-metal strong { grid-column: 3; grid-row: 1; font-size: 18px; }
        .stat-metal small { grid-column: 2 / 4; }
        .stat-platform-ledger { padding: 16px 15px; }
        .stat-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .stat-platform,
        .stat-platform:nth-child(4) { padding: 0 8px 0 0; border-left: 0; }
        
        .stat-platform + .stat-platform { border-left: 0; }
    }

    .stat-chart-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 14px;
    }
    .stat-chart-title { font-size: 14px; font-weight: 600; color: var(--text-2); }
    #statYearDrop .dropdown-btn { font-variant-numeric: tabular-nums; }

    
    .stat-chart-card {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        
        padding-left: 12px;
    }
    
    .stat-axis {
        position: relative;
        flex-shrink: 0;
        width: 40px;
    }
    .stat-axis-tick {
        position: absolute;
        right: 8px;
        transform: translateY(-50%);
        font-size: 11px;
        color: var(--text-muted);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }
    
    .stat-grid-line {
        position: absolute;
        left: 0;
        top: 0;
        height: 1px;
        background: var(--border);
        opacity: 0.6;
        z-index: 0;
        pointer-events: none;
    }

    .stat-bars {
        
        flex: 1;
        min-width: 0;
        position: relative;
        display: flex;
        align-items: flex-end;
        gap: 10px;
        
        padding: 42px 16px 12px;
    }
    .stat-bar-col {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }
    
    .stat-bars-all { overflow-x: auto; padding-top: 62px; padding-bottom: 22px; }
    .stat-bars-all .stat-bar-col { flex: 0 0 58px; }
    
    .stat-bars.stat-bars-all > [data-read] { touch-action: pan-x pan-y; }
    .stat-bar-track {
        position: relative;
        
        z-index: 1;
        width: 100%;
        max-width: 46px;
        height: 150px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }
    .stat-bar-fill {
        width: 100%;
        border-radius: 5px 5px 2px 2px;
        background: linear-gradient(180deg, var(--brand-2), var(--brand-1) 80%);
        opacity: 0.92;
        box-shadow: 0 0 12px rgba(78, 156, 190, 0.18);
        transition: height 0.3s ease, filter 0.15s;
    }
    .stat-bar-col:hover .stat-bar-fill { filter: brightness(1.25); }
    .stat-bar-col.is-sel .stat-bar-fill { outline: 2px solid var(--text); outline-offset: 1px; }
    .stat-bar-col.is-sel .stat-bar-label { color: var(--text); font-weight: 700; }
    
    .stat-chart-card .stat-readout { flex: 0 0 calc(100% - 12px); margin: 0 12px 12px 0; }
    .stat-bar-plat {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 2px;
        white-space: nowrap;
        pointer-events: none;
    }
    .stat-plat-icon { width: auto; height: 18px; object-fit: contain; display: block; filter: drop-shadow(0 0 4px rgba(168, 198, 230, 0.6)); }
    .stat-plat-count { font-size: 11px; font-weight: 700; color: var(--plat-blue); font-variant-numeric: tabular-nums; }
    .stat-bar-label { font-size: 12px; color: var(--text-3); }

    
    .ms-next {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
        margin: 4px 0 22px;
    }
    .ms-lock {
        border: 1px dashed var(--border);
        background: rgba(25, 30, 36, 0.6);
        border-radius: var(--radius-md);
        padding: 14px 18px 16px;
    }
    :where(html[data-theme="light"]) .ms-lock { background: rgba(19, 26, 46, 0.6); }
    .ms-lock-ord {
        display: block;
        font-size: 30px;
        font-weight: 900;
        line-height: 1.05;
        color: var(--text-muted);
        letter-spacing: -0.02em;
    }
    .ms-lock-ord sup { font-size: 13px; }
    .ms-lock-sub {
        margin: 4px 0 8px;
        font-size: 12px;
        color: var(--text-3);
        font-weight: 600;
    }
    .ms-lock-bar {
        width: 100%;
        height: 5px;
        border-radius: var(--radius-full);
        background: var(--surface-2);
        overflow: hidden;
    }
    .ms-lock-bar i {
        display: block;
        height: 100%;
        background: var(--platinum-gradient);
        border-radius: var(--radius-full);
    }
    .ms-lock.is-trophy .ms-lock-bar i {
        background: linear-gradient(90deg, var(--gold), #f5cd7e);
    }
    
    html[data-theme="light"] .ms-lock { background: var(--surface); }

    .ms-road {
        position: relative;
        padding-left: 34px;
    }
    .ms-road::before {
        content: "";
        position: absolute;
        left: 11px; top: 8px; bottom: 8px;
        width: 2px;
        background: linear-gradient(180deg, var(--brand-2), var(--border) 140px, var(--border));
        border-radius: 1px;
    }

    .ms-stop {
        position: relative;
        display: block;
        margin-bottom: 14px;
        text-decoration: none;
    }
    
    .ms-stop::before {
        content: "";
        position: absolute;
        left: -32px; top: 12px;
        width: 20px; height: 20px;
        border-radius: 50%;
        background: var(--bg) url("/images/trophies/bronze.png") center / contain no-repeat;
        box-shadow: 0 0 0 3px var(--bg);
    }
    .ms-stop.c-silver::before { background-image: url("/images/trophies/silver.png"); }
    .ms-stop.c-gold::before { background-image: url("/images/trophies/gold.png"); }
    .ms-stop.c-platinum::before { background-image: url("/images/trophies/platinum.png"); }
    .ms-stop.is-plat::before {
        background-image: url("/images/trophies/platinum.png");
        width: 22px; height: 22px; left: -33px; top: 13px;
    }

    .ms-year {
        position: relative;
        margin: 26px 0 14px;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.18em;
        color: var(--text-muted);
    }
    .ms-year::before {
        content: "";
        position: absolute;
        left: -30px; top: 50%;
        width: 12px; height: 2px;
        background: var(--border);
    }

    .ms-gap {
        position: relative;
        margin: 4px 0 18px;
        color: var(--text-muted);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
    .ms-gap.is-big { color: var(--gold); }
    .ms-gap::before {
        content: "";
        position: absolute;
        
        left: -23px; top: 3px; bottom: 3px;
        border-left: 2px dotted var(--border);
    }

    
    .ms-plat {
        position: relative;
        min-height: 168px;
        border-radius: var(--radius-md);
        overflow: hidden;
        border: 1px solid var(--border);
        background: var(--surface);
        isolation: isolate;
        transition: border-color 0.15s ease, transform 0.15s ease;
    }
    .ms-plat:hover { border-color: var(--brand-2); transform: translateY(-1px); }
    .ms-plat img.art {
        position: absolute; inset: 0; z-index: -1;
        width: 100%; height: 100%;
        object-fit: cover;
        filter: saturate(1.06);
    }
    
    .ms-plat .scrim {
        position: absolute; inset: 0; z-index: -1;
        background:
            radial-gradient(ellipse 42% 70% at 0% 0%, rgba(4, 6, 10, .55) 0%, rgba(4, 6, 10, 0) 100%),
            linear-gradient(90deg, rgba(4, 6, 10, .5) 0%, rgba(4, 6, 10, 0) 40%),
            linear-gradient(0deg, rgba(4, 6, 10, .84) 0%, rgba(4, 6, 10, .4) 30%, rgba(4, 6, 10, 0) 58%);
    }
    :where(html[data-theme="light"]) .ms-plat .scrim { background: radial-gradient(ellipse 42% 70% at 0% 0%, rgba(4, 6, 10, .55) 0%, rgba(4, 6, 10, 0) 100%), linear-gradient(90deg, rgba(4, 6, 10, .5) 0%, rgba(4, 6, 10, 0) 40%), linear-gradient(0deg, rgba(4, 6, 10, .84) 0%, rgba(4, 6, 10, .4) 30%, rgba(4, 6, 10, 0) 58%); }
    .ms-plat-kind, .ms-plat-name, .ms-plat-date { text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
    .ms-plat-ord {
        position: absolute;
        top: 10px; left: 16px;
        font-size: 46px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: -0.03em;
        background: var(--platinum-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
    }
    .ms-plat-ord sup { font-size: 18px; font-weight: 800; }
    .ms-plat-foot {
        position: absolute;
        left: 16px; right: 16px; bottom: 11px;
    }
    .ms-plat-kind {
        margin: 0;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #b9d4e8;
    }
    .ms-plat-name {
        margin: 3px 0 0;
        font-size: 16px;
        font-weight: 700;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ms-plat-date {
        margin: 3px 0 0;
        font-size: 12px;
        color: var(--text-2);
    }

    
    .ms-tr {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 10px 14px;
        transition: border-color 0.15s ease;
    }
    .ms-tr:hover { border-color: var(--brand-2); }
    .ms-tr img {
        width: 40px; height: 40px;
        border-radius: var(--radius-sm);
        object-fit: contain;
        flex-shrink: 0;
    }
    .ms-tr-ord { font-size: 15px; font-weight: 800; min-width: 92px; }
    .ms-tr-ord sup { font-size: 10px; }
    .ms-tr-ord.c-bronze { color: var(--metal-bronze); }
    .ms-tr-ord.c-silver { color: var(--metal-silver); }
    .ms-tr-ord.c-gold { color: var(--metal-gold); }
    .ms-tr-ord.c-platinum { color: var(--metal-platinum); }
    .ms-tr-body { flex: 1; min-width: 0; }
    .ms-tr-kind {
        margin: 0;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-muted);
    }
    .ms-tr-name {
        margin: 2px 0 0;
        font-size: 13.5px;
        font-weight: 600;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ms-tr-meta {
        margin: 2px 0 0;
        font-size: 11px;
        color: var(--text-3);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    
    .ms-plat-name .platform-badge,
    .ms-tr-name .platform-badge,
    .ms-first-ord .platform-badge {
        margin-bottom: 0;
        vertical-align: middle;
    }
    .ms-plat-name .platform-badge {
        font-size: 12px;
        padding: 2px 9px;
        margin-left: 4px;
    }
    .ms-tr-name .platform-badge {
        font-size: 9.5px;
        padding: 1px 6px;
        margin-left: 3px;
    }

    .ms-origin {
        margin-top: 4px;
        color: var(--text-muted);
        font-size: 12px;
        font-style: italic;
    }

    
    .ms-skel { cursor: default; }
    .ms-skel.ms-plat .skeleton { position: absolute; inset: 0; border-radius: 0; }

    @media (max-width: 760px) {
        .ms-next { grid-template-columns: 1fr; }
        .ms-plat-ord { font-size: 32px; }
        .ms-plat { min-height: 140px; }
        
        .ms-tr-ord { min-width: 0; }
    }
    @media (prefers-reduced-motion: reduce) {
        .ms-plat, .ms-tr { transition: none; }
    }

    
    
    @keyframes skeleton-shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    .skeleton {
        background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
        background-size: 400% 100%;
        animation: skeleton-shimmer 1.6s ease-in-out infinite;
        border-radius: 6px;
    }

    .skeleton-card {
        display: flex;
        gap: 16px;
        align-items: center;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
    }

    .skeleton-lines {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .skeleton-stats {
        flex-shrink: 0;
        width: 190px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .unearned {
        opacity: 0.5;
    }

    
    .trophy-card.game-platinum,
    .trophy-card.game-complete {
        border: 3px solid transparent;
        padding: 14px;
        isolation: isolate;
    }
    .trophy-card.game-platinum.um-has-strip,
    .trophy-card.game-complete.um-has-strip { padding-top: 32px; }
    .trophy-card.game-platinum {
        background:
            linear-gradient(105deg, rgba(143, 184, 216, 0.30) 0%, rgba(143, 184, 216, 0.12) 100%) padding-box,
            linear-gradient(var(--surface), var(--surface)) padding-box,
            linear-gradient(90deg, var(--completion-plat-start), var(--completion-plat-end)) border-box;
    }
    :where(html[data-theme="light"]) .trophy-card.game-platinum {
        background:
            linear-gradient(105deg, rgba(143, 184, 216, 0.48) 0%, rgba(190, 220, 235, 0.32) 100%) padding-box,
            linear-gradient(var(--surface), var(--surface)) padding-box,
            linear-gradient(90deg, var(--completion-plat-start), var(--completion-plat-end)) border-box;
    }
    
    .trophy-card.game-platinum.game-platinum-dlc {
        background:
            linear-gradient(105deg, rgba(143, 184, 216, 0.30) 0%, rgba(94, 207, 162, 0.24) 100%) padding-box,
            linear-gradient(var(--surface), var(--surface)) padding-box,
            linear-gradient(90deg, var(--completion-plat-start) 0%, var(--completion-plat-start) 25%, var(--success) 100%) border-box;
    }
    :where(html[data-theme="light"]) .trophy-card.game-platinum.game-platinum-dlc {
        background:
            linear-gradient(105deg, rgba(143, 184, 216, 0.48) 0%, rgba(94, 207, 162, 0.36) 100%) padding-box,
            linear-gradient(var(--surface), var(--surface)) padding-box,
            linear-gradient(90deg, var(--completion-plat-start) 0%, var(--completion-plat-start) 25%, var(--success) 100%) border-box;
    }
    .trophy-card.game-complete {
        background:
            linear-gradient(105deg, rgba(94, 207, 162, 0.26) 0%, rgba(94, 207, 162, 0.10) 100%) padding-box,
            linear-gradient(var(--surface), var(--surface)) padding-box,
            linear-gradient(var(--success), var(--success)) border-box;
    }
    :where(html[data-theme="light"]) .trophy-card.game-complete {
        background:
            linear-gradient(105deg, rgba(94, 207, 162, 0.38) 0%, rgba(142, 232, 196, 0.24) 100%) padding-box,
            linear-gradient(var(--surface), var(--surface)) padding-box,
            linear-gradient(var(--success), var(--success)) border-box;
    }
    
    .trophy-card.game-platinum:hover,
    .trophy-card.game-complete:hover { border-color: transparent; }
    
    .trophy-card.game-platinum p:not(.plat-line):not(.earn-span):not(.plat-full-line),
    .trophy-card.game-complete p:not(.plat-line):not(.earn-span):not(.plat-full-line),
    .trophy-card.game-platinum .card-pct,
    .trophy-card.game-complete .card-pct { color: var(--text-2); }
    
    .trophy-card.game-platinum p.plat-line { color: #9dbfdf; }
    :where(html[data-theme="light"]) .trophy-card.game-platinum p.plat-line { color: #39628b; }
    .trophy-card.game-platinum p.earn-span,
    .trophy-card.game-complete p.earn-span { color: #7fd6bd; }
    :where(html[data-theme="light"]) .trophy-card.game-platinum p.earn-span,
    :where(html[data-theme="light"]) .trophy-card.game-complete p.earn-span { color: #136d4b; }
    
    .trophy-card.game-platinum .share-btn { top: 8px; right: 8px; }
    .trophy-card.game-platinum.um-has-strip .share-btn { top: 30px; }

    
    .trophy-card p.earn-span {
        color: #7fd6bd;
        font-weight: 500;
    }
    
    :where(html[data-theme="light"]) .trophy-card p.earn-span { color: #157a54; }

    
    .plat-span { color: #9dbfdf; }
    
    :where(html[data-theme="light"]) .plat-span { color: var(--plat-blue); }
    .stat-sep { color: var(--dark-border-hover, #3f5170); margin: 0 2px; }

    
    .trophy-card p.plat-line {
        color: #9dbfdf;
        font-weight: 500;
    }
    :where(html[data-theme="light"]) .trophy-card p.plat-line { color: var(--plat-blue); }

    
    .trophy-card p.plat-full-line {
        font-weight: 500;
        background: linear-gradient(90deg, #9dbfdf 0%, #7fd6bd 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        width: fit-content;
        max-width: 100%;
    }
    :where(html[data-theme="light"]) .trophy-card p.plat-full-line {
        background-image: linear-gradient(90deg, #39628b 0%, #136d4b 100%);
    }

    .game-icon-wrap {
        position: relative;
        flex-shrink: 0;
        line-height: 0;
    }

    
    .icon-plat-badge,
    .icon-seal-badge {
        position: absolute;
        object-fit: contain;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
    }
    :where(html[data-theme="light"]) .icon-plat-badge,
    :where(html[data-theme="light"]) .icon-seal-badge {
        filter: drop-shadow(0 1px 2.5px rgba(10, 30, 50, 0.45));
    }
    .icon-plat-badge {
        width: 42px;
        height: 42px;
        left: -14px;
        bottom: -10px;
    }
    .icon-seal-badge {
        width: 38px;
        height: 38px;
        left: -10px;
        bottom: -9px;
    }
    
    .icon-seal-mini {
        position: absolute;
        width: 26px;
        height: 26px;
        left: 15px;
        bottom: -8px;
        filter: drop-shadow(0 1px 2.5px rgba(0, 0, 0, 0.6));
    }
    :where(html[data-theme="light"]) .icon-seal-mini {
        filter: drop-shadow(0 1px 2px rgba(10, 30, 50, 0.45));
    }

    
    .card-sheen {
        position: absolute;
        inset: 0;
        border-radius: calc(var(--dark-radius-card, 12px) - 3px);
        overflow: hidden;
        pointer-events: none;
        z-index: 2;
    }
    .card-sheen::before {
        content: "";
        position: absolute;
        top: -50%;
        bottom: -50%;
        left: 0;
        width: 26%;
        background: linear-gradient(90deg, transparent, rgba(241, 251, 255, 0.22) 50%, transparent);
        transform: translateX(-160%) skewX(-22deg);
        animation: card-sheen 1.15s cubic-bezier(0.4, 0, 0.2, 1) calc(0.3s + var(--i, 0) * 0.14s - var(--skip, 0s)) both;
    }
    :where(html[data-theme="light"]) .card-sheen::before {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85) 50%, transparent);
    }
    @keyframes card-sheen {
        to { transform: translateX(520%) skewX(-22deg); }
    }
    @media (prefers-reduced-motion: reduce) {
        .card-sheen { display: none; }
    }

    
    
    .app-tooltip {
        position: fixed;
        top: 0;
        left: 0;
        width: max-content;
        max-width: min(220px, calc(100vw - 16px));
        box-sizing: border-box;
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text-2);
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
        padding: 7px 10px;
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.12s, transform 0.12s;
        transform: translateY(4px);
        z-index: 1000;
    }
    .app-tooltip[data-placement="below"] { transform: translateY(-4px); }
    .app-tooltip.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    @media (hover: none) {
        .app-tooltip { display: none; }
    }

    
    .trophy-group {
        background: var(--dark-surface, #131c33);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 6px;
        margin-bottom: 20px;
    }

    .group-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 12px 12px;
    }

    .group-icon {
        width: 46px;
        height: 46px;
        border-radius: 6px;
        flex-shrink: 0;
        object-fit: contain;
    }

    .group-info {
        flex: 1;
    }

    .group-name {
        font-size: 15px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 7px;
    }

    .group-bar {
        background: var(--border);
        height: 6px;
        border-radius: 4px;
        overflow: hidden;
    }

    .group-bar-fill {
        background: var(--brand-gradient);
        height: 6px;
        border-radius: 4px;
    }

    .group-count {
        font-size: 14px;
        color: var(--text-3);
        white-space: nowrap;
    }

    .group-trophies {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .trophy-row {
        display: flex;
        align-items: center;
        gap: 12px;
        background: var(--surface);
        border-radius: 8px;
        padding: 10px 12px;
    }

    .trophy-row.unearned {
        opacity: 0.5;
    }

    
    .trophy-row.earned {
        background: var(--earned-bg);
        border: 1px solid var(--earned-border);
    }

    .trophy-row-icon {
        width: 48px;
        height: 48px;
        border-radius: 6px;
        flex-shrink: 0;
        
        background: var(--icon-plate);
    }

    .trophy-row-info {
        flex: 1;
    }

    .trophy-row-info h3 {
        margin: 0 0 3px;
        font-size: 15px;
        color: var(--text);
    }

    .trophy-desc {
        margin: 0;
        font-size: 13px;
        color: var(--text-3);
    }

    .trophy-date {
        margin: 5px 0 0;
        font-size: 12px;
        color: #7a9d8c;
    }

    
    .trophy-progress {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 7px;
        max-width: 340px;
    }

    .trophy-progress-bar {
        flex: 1;
        background: var(--border);
        height: 6px;
        border-radius: 4px;
        overflow: hidden;
    }

    .trophy-progress-fill {
        background: var(--brand-gradient);
        height: 6px;
        border-radius: 4px;
    }

    .trophy-progress-text {
        font-size: 12px;
        color: var(--text-3);
        white-space: nowrap;
    }

    .trophy-type-img {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
        object-fit: contain;
    }

    
    .trophy-rarity {
        font-size: 12px;
        color: var(--text-3);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .trophy-type-img-sm {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        object-fit: contain;
    }

    .bronze {
        border-left: 4px solid var(--metal-bronze)
    }

    .silver {
        border-left: 4px solid var(--metal-silver)
    }

    .gold {
        border-left: 4px solid var(--metal-gold)
    }

    .platinum {
        border-left: 4px solid var(--metal-platinum)
    }

    .trophy-type {
        text-transform: capitalize;
    }

    .badge-platform {
        background: var(--border);
        color: var(--text-3);
    }

    
    
    .badge-ps5 { background: var(--platform-ps5); color: #16213e; }
    .badge-ps4 { background: var(--platform-ps4); color: #d3f6fa; }
    .badge-ps3 { background: var(--platform-ps3); color: #d9dde4; }
    .badge-psvita { background: var(--platform-psvita); color: #efe0fb; }
    .badge-pspc { background: var(--platform-multi); color: #ffe9cc; }

    .badge-platinum {
        background: var(--dark-surface-3, #3a3a5c);
        color: var(--metal-platinum);
    }

    .badge-gold {
        background: #3d3000;
        color: var(--metal-gold);
    }

    .badge-silver {
        background: #2a2a2a;
        color: var(--metal-silver);
    }

    .badge-bronze {
        background: #2d1a00;
        color: var(--metal-bronze);
    }

    .platform-badge {
        display: inline-block;
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: .02em;
        padding: 2.5px 9px;
        border-radius: 4px;
        margin-bottom: 6px;
    }

    
    #detailPlatform .platform-badge { margin-bottom: 0; }

    
    
    #navHome, #navGames, #navGuides, #navMatchmaking, #navCommunity, #navLeaderboard {
        margin-left: 22px;
        color: var(--text-3);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: color 0.2s;
    }
    #navHome { margin-left: 28px; }
    #navHome:hover, #navGames:hover, #navGuides:hover, #navMatchmaking:hover, #navCommunity:hover, #navLeaderboard:hover { color: var(--text); }
    
    #navHome.active, #navGames.active, #navGuides.active, #navMatchmaking.active, #navCommunity.active, #navLeaderboard.active {
        color: var(--text);
        font-weight: 600;
    }

    
    .hero-links {
        display: flex;
        gap: 22px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 20px;
    }
    #heroGames, #heroLeaderboard {
        display: inline-block;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s;
    }
    #heroGames:hover, #heroLeaderboard:hover { color: var(--accent); }

    
    
    
    .cat-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        grid-template-rows: auto auto;
        column-gap: var(--space-5);
        
        row-gap: 20px;
        align-items: start;
        padding-bottom: 60px;
    }
    
    .cat-layout.cat-company-mode { grid-template-columns: minmax(0, 1fr); }
    .cat-layout.cat-company-mode .cat-topbar,
    .cat-layout.cat-company-mode .cat-main { grid-column: 1; }
    .cat-topbar { grid-column: 1; grid-row: 1; min-width: 0; }
    .cat-main { grid-column: 1; grid-row: 2; min-width: 0; }
    
    .cat-rail {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        gap: var(--space-5);
        min-width: 0;
        
        position: sticky;
        top: var(--space-4);
        max-height: calc(100vh - var(--space-4) * 2);
        overflow-y: auto;
        scrollbar-width: thin;
    }
    .cat-rail::-webkit-scrollbar { width: 6px; }
    .cat-rail::-webkit-scrollbar-thumb { border-radius: var(--radius-full); background: var(--border); }
    .cat-rail .panel { margin: 0; }

    .cat-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
    .cat-breadcrumb {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 9px;
        color: var(--text-muted);
        font-size: 12.5px;
    }
    .cat-breadcrumb[hidden] { display: none; }
    .cat-breadcrumb a { color: var(--text-3); text-decoration: none; }
    .cat-breadcrumb a:hover { color: var(--text); }
    .cat-breadcrumb span[aria-hidden="true"] { color: var(--border); }
    .cat-breadcrumb strong {
        min-width: 0;
        overflow: hidden;
        color: var(--text);
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .cat-counters { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 15px; min-height: 15px; }
    .cat-counters b { color: var(--text-2); font-variant-numeric: tabular-nums; }

    
    .cat-controls { --cat-control-h: 44px; display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
    .cat-controls > * { height: var(--cat-control-h); }
    .cat-controls #gamesSearch { flex: 1; min-width: 0; padding: 0 14px; }
    #gamesSortDrop { display: flex; flex-shrink: 0; }
    #gamesSortDrop .dropdown-btn { height: 100%; padding-top: 0; padding-bottom: 0; }
    #gamesSortDrop .dropdown-btn {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-2);
        font-size: 14px;
        padding: 8px 14px;
    }
    #gamesSortDrop .dropdown-btn:hover { border-color: var(--border-hover); background: var(--surface-2); }
    .games-search { margin-bottom: 12px; }
    #gamesSearch {
        width: 100%;
        box-sizing: border-box;
        padding: 11px 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--text);
        font-size: 15px;
    }
    #gamesSearch::placeholder { color: var(--text-muted); }
    #gamesSearch:focus { outline: none; border-color: var(--accent); }
    .games-count { color: var(--text-muted); font-size: 13px; margin: 0; }

    
    .cat-viewtoggle {
        display: flex;
        flex-shrink: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 10px;
    }
    .cat-view-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--text-muted);
        cursor: pointer;
        transition: background .15s, color .15s;
    }
    .cat-view-btn + .cat-view-btn { border-left: 1px solid var(--border); }
    .cat-view-btn:hover { color: var(--text-2); background: var(--surface-2); }
    .cat-view-btn.is-active { background: var(--surface-2); color: var(--brand-2); }
    .cat-view-grid { display: grid; grid-template-columns: 6px 6px; gap: 2.5px; }
    .cat-view-rows { display: grid; gap: 3px; }
    .cat-view-grid i { width: 6px; height: 6px; border-radius: 1.5px; background: currentColor; }
    .cat-view-rows i { width: 14px; height: 2.5px; border-radius: 2px; background: currentColor; }

    .cat-filters { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
    .cat-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .cat-chip {
        padding: 5px 13px;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        background: transparent;
        color: var(--text-3);
        font: inherit;
        font-size: 12px;
        cursor: pointer;
        transition: border-color .15s, color .15s, background .15s;
    }
    .cat-chip:hover { border-color: var(--brand-2); color: var(--text); }
    .cat-chip.is-active { border-color: var(--accent); background: var(--accent); color: var(--dark-accent-ink, #fff); }
    .cat-chip-lens { font-size: 12.5px; font-weight: 600; padding: 6px 14px; }
    
    .cat-chip-more { border-style: dashed; color: var(--text-muted); }
    .cat-chip-more.is-active { border-style: solid; border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
    .cat-filter-note,
    .cat-lens-hint { margin-left: auto; color: var(--text-muted); font-size: 11.5px; text-align: right; }

    .cat-more-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
    
    .cat-more-row[hidden] { display: none; }
    #catGenreDrop .dropdown-btn {
        padding: 5px 13px;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        background: transparent;
        color: var(--text-3);
        font-size: 12px;
    }
    #catGenreDrop .dropdown-btn:hover { border-color: var(--brand-2); color: var(--text); background: transparent; }
    #catGenreMenu { max-height: 320px; overflow-y: auto; }
    #catGenreMenu .dropdown-item { display: flex; justify-content: space-between; gap: 14px; }
    .cat-genre-count { color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
    .cat-more-clear {
        margin-left: 4px;
        padding: 5px 4px;
        border: 0;
        background: transparent;
        color: var(--text-muted);
        font: inherit;
        font-size: 11.5px;
        text-decoration: underline;
        cursor: pointer;
    }
    .cat-more-clear:hover { color: var(--text); }

    
    .cat-spotlight {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        min-height: 172px;
        border: 1px solid rgba(140, 143, 147, 0.26);
        border-radius: var(--radius-lg);
        background: linear-gradient(135deg, #191e24, #080c11 65%);
    }
    :where(html[data-theme="light"]) .cat-spotlight { border: 1px solid rgba(112, 137, 191, .26); background: linear-gradient(135deg, #11182b, #090d19 65%); }
    .cat-spotlight-art {
        position: absolute;
        inset: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 28%;
    }
    .cat-spotlight::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(90deg, rgba(4, 6, 10, 0.94) 0%, rgba(4, 6, 10, 0.8) 40%, rgba(4, 6, 10, 0.25) 100%);
    }
    :where(html[data-theme="light"]) .cat-spotlight::after { background: linear-gradient(90deg, rgba(5,8,18,.94) 0%, rgba(5,8,18,.8) 40%, rgba(5,8,18,.25) 100%); }
    
    @media (min-width: 761px) {
        .cat-spotlight::after {
            background:
                linear-gradient(90deg, rgba(4, 6, 10, .86) 0%, rgba(4, 6, 10, .6) 400px, rgba(4, 6, 10, .14) 680px, rgba(4, 6, 10, 0) 900px),
                linear-gradient(0deg, rgba(4, 6, 10, .5) 0%, rgba(4, 6, 10, 0) 36%);
        }
    }
    .cat-spotlight-kicker, .cat-spotlight-title, .cat-spotlight-facts { text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
    .cat-spotlight-body { padding: 24px 26px; max-width: min(560px, 70%); }
    .cat-spotlight-kicker {
        margin: 0;
        color: var(--brand-2);
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
    }
    .cat-spotlight-title { margin: 6px 0 0; color: var(--text); font-size: 22px; font-weight: 700; }
    .cat-spotlight-facts { margin: 6px 0 0; color: var(--dark-text-soft, #aeb7c9); font-size: 12px; font-variant-numeric: tabular-nums; }
    .cat-spotlight-cta {
        display: inline-block;
        margin-top: 12px;
        padding: 7px 16px;
        border: 1px solid rgba(196, 200, 204, 0.35);
        border-radius: 8px;
        background: rgba(8, 12, 17, 0.6);
        color: var(--text);
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
    }
    :where(html[data-theme="light"]) .cat-spotlight-cta { border: 1px solid rgba(180, 200, 238, .35); background: rgba(8, 12, 24, .6); }
    .cat-spotlight-cta:hover { border-color: var(--brand-2); }

    .cat-lens-row { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
    
    
    .cat-card-media,
    .cat-shelf-media { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; }
    .cat-art-fill {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.25);
        filter: blur(16px) saturate(1.15);
    }
    .cat-art-img { position: relative; width: 100%; height: 100%; object-fit: contain; }

    .cat-shelf { margin-top: 14px; }
    .cat-shelf-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
    .cat-shelf-card { display: block; min-width: 0; color: inherit; text-decoration: none; }
    .cat-shelf-art {
        position: relative;
        display: block;
        aspect-ratio: 3 / 4;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface-2);
        transition: border-color .15s;
    }
    .cat-shelf-card:hover .cat-shelf-art { border-color: var(--brand-2); }
    .cat-shelf-pill {
        position: absolute;
        top: 8px;
        left: 8px;
        padding: 2px 7px;
        border: 1px solid rgba(196, 200, 204, 0.28);
        border-radius: 6px;
        background: rgba(8, 12, 17, 0.82);
        color: var(--brand-2);
        font-size: 10.5px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    :where(html[data-theme="light"]) .cat-shelf-pill { border: 1px solid rgba(180, 200, 238, .28); background: rgba(8, 12, 24, .82); }
    .cat-shelf-name {
        display: block;
        margin-top: 8px;
        overflow: hidden;
        color: var(--text);
        font-size: 12.5px;
        font-weight: 600;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .cat-shelf-sub { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; }
    .cat-shelf-cta {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 6px;
        padding: 8px 22px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: transparent;
        color: var(--text-2);
        font: inherit;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        
        display: inline-block;
        text-decoration: none;
    }
    .cat-shelf-cta:hover { border-color: var(--brand-2); color: var(--text); }

    .cat-section-head {
        display: flex;
        align-items: baseline;
        gap: 10px;
        margin: 30px 0 14px;
    }
    
    #gamesPagination { justify-content: flex-end; }
    .cat-section-head h2 {
        margin: 0;
        color: var(--text-3);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    
    .cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 14px; }
    .cat-card { min-width: 0; cursor: pointer; }
    
    .cat-card-art {
        position: relative;
        aspect-ratio: 3 / 4;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface-2);
        transition: border-color .15s;
    }
    .cat-card:hover .cat-card-art { border-color: var(--brand-2); }
    .cat-card-media {
        position: absolute;
        inset: 0;
        display: block;
        overflow: hidden;
        border-radius: inherit;
    }
    .cat-game-art-link { color: inherit; text-decoration: none; }
    .cat-game-art-link:focus-visible {
        outline: 2px solid var(--brand-2);
        outline-offset: 3px;
    }
    
    .cat-card-media::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 62px;
        background: linear-gradient(0deg, rgba(4, 6, 10, 0.92), rgba(4, 6, 10, 0.45) 55%, transparent);
    }
    :where(html[data-theme="light"]) .cat-card-media::after { background: linear-gradient(0deg, rgba(4,7,15,.92), rgba(4,7,15,.45) 55%, transparent); }
    .cat-card-top { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; }
    
    .cat-card-top .chipline {
        background: rgba(8, 12, 17, 0.82);
        border-color: rgba(196, 200, 204, 0.28);
        color: var(--dark-glass-ink, #e3eaf7);
        font-variant-numeric: tabular-nums;
    }
    :where(html[data-theme="light"]) .cat-card-top .chipline { background: rgba(8, 12, 24, .82); border-color: rgba(180, 200, 238, .28); }
    
    .cat-card-bottom {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 8px;
        pointer-events: none;
    }
    
    .cat-card-bottom > * { pointer-events: auto; }
    .cat-card-platforms {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
        height: 20px;
        transition: opacity .2s ease;
    }
    
    .cat-card-platforms .platform-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        height: 20px;
        margin: 0;
        padding: 0 7px;
        font-size: 10px;
        line-height: 1;
    }
    
    .platform-more { display: none; }
    .cat-card-name {
        margin: 8px 0 0;
        overflow: hidden;
        color: var(--text);
        font-size: 12.5px;
        font-weight: 600;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    
    .cat-card-text { position: relative; }
    .cat-card-link { color: inherit; text-decoration: none; }
    .cat-card-link::after { content: ""; position: absolute; inset: -8px 0 0; }
    .cat-card-link:focus-visible { outline: none; }
    .cat-card:has(.cat-card-link:focus-visible) .cat-card-art { outline: 2px solid var(--brand-2); outline-offset: 3px; }
    .cat-card .cat-dlc-link { position: relative; }
    .cat-card-sub { margin: 2px 0 0; color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
    .cat-dlc-match {
        display: flex;
        align-items: baseline;
        gap: 5px;
        min-width: 0;
        margin: 4px 0 0;
        overflow: hidden;
        color: var(--text-muted);
        font-size: 11px;
        line-height: 1.35;
        white-space: nowrap;
    }
    .cat-dlc-label {
        flex: 0 0 auto;
        color: var(--brand-2);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .055em;
        text-transform: uppercase;
    }
    .cat-dlc-link {
        min-width: 0;
        overflow: hidden;
        color: var(--text-2);
        font-weight: 600;
        text-decoration: none;
        text-overflow: ellipsis;
    }
    .cat-dlc-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
    .cat-dlc-link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 2px; }
    .cat-dlc-sep, .cat-dlc-more { flex: 0 0 auto; color: var(--text-muted); }
    .game-row .cat-dlc-match { margin-top: 5px; }

    
    .cat-trophies {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        cursor: default;
    }
    .cat-trophies:focus-visible { outline: none; }
    .cat-trophies-total,
    .cat-trophies-split {
        display: inline-flex;
        align-items: center;
        box-sizing: border-box;
        height: 20px;
        white-space: nowrap;
        padding: 0 7px;
        border: 1px solid rgba(196, 200, 204, 0.3);
        border-radius: 6px;
        background: rgba(8, 12, 17, 0.82);
        color: var(--dark-glass-ink, #e3eaf7);
        font-size: 9.5px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        transition: opacity .2s ease, transform .2s ease;
    }
    :where(html[data-theme="light"]) .cat-trophies-total, :where(html[data-theme="light"]) .cat-trophies-split { border: 1px solid rgba(180, 200, 238, .3); background: rgba(8, 12, 24, .82); }
    .cat-trophies-total { gap: 3px; }
    
    .cat-trophies-split {
        position: absolute;
        right: 0;
        bottom: 0;
        gap: 6px;
        opacity: 0;
        transform: translateX(5px);
        pointer-events: none;
    }
    .cat-trophies-split > span { display: inline-flex; align-items: center; gap: 2px; }
    .cat-trophies img { width: 12px; height: 12px; object-fit: contain; }
    .cat-trophies:hover .cat-trophies-total,
    .cat-trophies:focus-within .cat-trophies-total { opacity: 0; transform: translateX(-4px); }
    .cat-trophies:hover .cat-trophies-split,
    .cat-trophies:focus-within .cat-trophies-split { opacity: 1; transform: translateX(0); }
    
    .cat-card-bottom:has(.cat-trophies:hover) .cat-card-platforms,
    .cat-card-bottom:has(.cat-trophies:focus-within) .cat-card-platforms {
        opacity: 0;
    }

    
    .cat-rail-rank { width: 14px; flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .cat-rail-hours { flex-shrink: 0; color: var(--brand-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
    .cat-pulse-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 8px;
        border-top: 1px solid var(--border);
        font-size: 12px;
        color: var(--text-muted);
    }
    .cat-pulse-row b { color: var(--text); font-variant-numeric: tabular-nums; }
    .cat-pulse-rarest {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: var(--bg);
        color: inherit;
        text-decoration: none;
    }
    .cat-pulse-rarest:hover { border-color: var(--brand-2); }
    .cat-pulse-rarest img { width: 30px; height: 30px; flex-shrink: 0; border-radius: 6px; object-fit: cover; }
    .cat-pulse-rarest span { min-width: 0; }
    .cat-pulse-rarest b { display: block; color: var(--text); font-size: 11.5px; }
    .cat-pulse-rarest small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 10.5px; }
    .cat-rail-cta { display: block; width: 100%; margin-top: 10px; text-align: center; text-decoration: none; }
    .cat-progress { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
    .cat-progress-track {
        flex: 1;
        height: 4px;
        overflow: hidden;
        border-radius: var(--radius-full);
        background: var(--surface-2);
    }
    .cat-progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }
    .cat-progress-left { flex-shrink: 0; color: var(--text-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

    .game-row {
        position: relative;
        display: flex;
        align-items: center;
        gap: 16px;
        min-height: 78px;
        padding: 10px 16px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        margin-bottom: 12px;
        cursor: pointer;
        transition: border-color 0.15s, background 0.15s, transform 0.15s;
    }
    .game-row:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); }
    
    .game-row-art {
        width: 58px;
        height: 78px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .game-row-art img { display: block; background: var(--surface-2); }
    .game-row-art.has-cover img {
        width: 55px;
        height: 78px;
        border-radius: 7px;
        object-fit: cover;
        box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
    }
    .game-row-art.has-icon img { width: 58px; height: 58px; border-radius: 8px; object-fit: contain; }
    .game-row-info { flex: 1; min-width: 0; }
    .game-row-titleline { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 6px; }
    .game-row-name {
        min-width: 0;
        margin: 0;
        font-size: 15px;
        font-weight: 600;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .game-row-link { color: inherit; text-decoration: none; }
    .game-row-link::after { content: ""; position: absolute; inset: 0; }
    .game-row-link:focus-visible { outline: none; }
    .game-row:has(.game-row-link:focus-visible) { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .game-row [data-tip]:not(.um-strip),
    .game-row .cat-dlc-link { position: relative; }
    .game-row > .um-strip { z-index: 1; }
    .game-row-title-pills { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
    .game-row-meta { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
    .game-row .platform-badge,
    .game-row-region,
    .game-row-versions {
        display: inline-flex;
        align-items: center;
        height: 19px;
        box-sizing: border-box;
        margin: 0;
        padding: 0 8px;
        border-radius: 4px;
        font-size: 11px;
        line-height: 1;
    }
    
    .game-row-versions {
        border: 1px solid var(--border);
        background: var(--surface-2);
        color: var(--text-muted);
        font-weight: 600;
    }
    
    .game-row-region {
        padding: 0;
        color: var(--text-2);
        font-weight: 700;
        letter-spacing: .035em;
    }
    .game-row-badge-sep { color: var(--border-strong, var(--text-muted)); font-size: 11px; opacity: .7; }
    
    .gd-guide-origin { color: var(--accent); }
    
    .badge-vr {
        border: 1px solid rgba(126, 168, 255, .45);
        padding: 1px 7px;
        background: rgba(126, 168, 255, .10);
        color: #8fb3ff;
        font-weight: 700;
        letter-spacing: .04em;
    }
    
    .game-row-trophies { color: var(--text-muted); font-size: 12px; }
    .game-row-trophy-breakdown { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 11px; }
    .game-row-trophy-breakdown > span { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
    .game-row-trophy-breakdown img { width: 14px; height: 14px; object-fit: contain; }
    .game-row-catalogue { margin: 5px 0 0; color: var(--text-muted); font-size: 11px; }
    .game-row-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; text-align: right; }
    .grs-players { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 13px; }
    
    .grs-rating { display: inline-flex; align-items: center; color: var(--accent); font-size: 13px; font-weight: 600; }
    .people-icon { flex-shrink: 0; opacity: 0.8; }
    .grs-platters { display: inline-flex; align-items: center; gap: 4px; color: var(--plat, var(--plat-blue)); font-size: 13px; }
    .grs-platters img { width: 15px; height: 15px; }
    
    @media (max-width: 760px) {
    }

    
    
    .game-layout {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr) 300px;
        gap: 24px;
        align-items: start;
    }
    .game-main { flex: 1; min-width: 0; }
    .game-side { width: 300px; flex-shrink: 0; }
    .game-layout-no-info { grid-template-columns: minmax(0, 1fr) 300px; }
    .game-layout-solo { grid-template-columns: 280px minmax(0, 1fr); }
    .game-layout-solo.game-layout-no-info { display: block; }

    
    .game-left { min-width: 0; }
    .game-info { min-width: 0; }
    .game-info-case {
        overflow: hidden;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    }
    .game-info-cover {
        display: block;
        width: 100%;
        aspect-ratio: 264 / 374;
        object-fit: cover;
        background: var(--surface-2);
    }
    .game-info-body { padding: 17px 18px 18px; }
    .game-info-kicker {
        margin-bottom: 10px;
        color: var(--accent);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }
    .game-info-summary {
        display: -webkit-box;
        overflow: hidden;
        margin: 0 0 16px;
        color: var(--text-2);
        font-size: 13px;
        line-height: 1.55;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 7;
    }
    .game-info-summary.expanded {
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }
    .game-info-more {
        display: none;
        align-items: center;
        margin: -7px 0 14px;
        padding: 0;
        border: 0;
        background: none;
        color: var(--accent);
        font-size: 12px;
        font-weight: 650;
        cursor: pointer;
    }
    .game-info-more:hover { text-decoration: underline; }
    .game-info-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
    .game-info-empty-state {
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }
    .game-info-empty-mark {
        display: inline-flex;
        height: 24px;
        align-items: center;
        margin-bottom: 12px;
        padding: 0 8px;
        border: 1px dashed var(--border-strong);
        border-radius: 6px;
        color: var(--text-muted);
        font-size: 9px;
        font-weight: 750;
        letter-spacing: .12em;
    }
    .game-info-empty-state p {
        margin: 0 0 8px;
        color: var(--text-2);
        font-size: 13px;
        font-weight: 650;
        line-height: 1.45;
    }
    .game-info-empty-state small {
        display: block;
        color: var(--text-muted);
        font-size: 11px;
        line-height: 1.5;
    }
    .game-info-report:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
        border-radius: 4px;
    }
    .game-info-facts { margin: 0; }
    .game-info-facts > div {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        padding: 9px 0;
        border-top: 1px solid var(--border);
    }
    .game-info-facts dt { color: var(--text-muted); font-size: 11px; }
    .game-info-facts dd { margin: 0; color: var(--text-2); font-size: 12px; line-height: 1.4; }
    .game-info-company { color: var(--text-2); font-weight: 650; text-decoration: none; }
    .game-info-company:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
    .game-info-company:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 2px; }
    
    .game-info-source { display: block; margin-top: 12px; color: var(--text-muted); font-size: 10px; }
    .game-info-source:hover { color: var(--text-muted); text-decoration: underline; }

    .game-hero { display: flex; gap: 18px; align-items: flex-start; margin: 6px 0 22px; }
    
    .game-hero-icon { width: 96px; height: 96px; border-radius: 12px; object-fit: contain; flex-shrink: 0; }
    .game-hero-info { flex: 1; min-width: 0; }
    .game-hero-titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
    .game-hero-name { margin: 0; font-size: 24px; }
    .game-hero-breakdown { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
    .game-tb { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-size: 15px; font-variant-numeric: tabular-nums; }
    .game-tb img { width: 18px; height: 18px; }
    .game-tb-total { color: var(--text-muted); font-size: 13px; padding-left: 4px; border-left: 1px solid var(--border); }

    
    .game-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
    .game-section-head h2 { margin: 0; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
    #gameTrophySortDrop { align-self: center; }
    #gameTrophySortDrop .dropdown-btn {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-2);
        font-size: 13px;
        padding: 7px 12px;
    }
    #gameTrophySortDrop .dropdown-btn:hover { border-color: var(--border-hover); background: var(--surface-2); }

    
    .game-side {
        margin-top: 45px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 14px 12px;
    }
    .gcp-head {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-2);
        margin: 2px 4px 12px;
    }
    .gcp-head .pcs-icon { width: 18px; height: 18px; }
    .gcp-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 6px;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.15s;
        
        color: inherit;
        text-decoration: none;
    }
    .gcp-row:hover { background: var(--surface-2); }
    .gcp-row:focus-visible { background: var(--surface-2); outline-offset: -2px; border-radius: 8px; }
    .gcp-rank { width: 16px; text-align: center; flex-shrink: 0; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
    .gcp-avatar-wrap { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
    .gcp-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
    .gcp-avatar-blank { background: var(--surface-2); }
    .gcp-info { min-width: 0; display: flex; flex-direction: column; }
    .gcp-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .gcp-date { font-size: 11px; color: var(--text-muted); }
    .game-club-all {
        display: inline-block;
        margin: 12px 4px 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 13px;
        transition: color 0.2s;
    }
    .game-club-all:hover { color: var(--accent); }

    
    
    .reviews-block {
        margin: 16px 0 8px;
        padding: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
    }
    .reviews-summary { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
    .star { font-size: 17px; }
    .star-filled { color: var(--gold); }
    .star-empty { color: var(--text-3); }
    
    .star-half { position: relative; display: inline-block; color: var(--text-3); }
    .star-half > i { position: absolute; top: 0; left: 0; bottom: 0; width: 50%; overflow: hidden; color: var(--gold); font-style: normal; }
    .reviews-avg { font-size: 17px; font-weight: 700; color: var(--text); }
    .reviews-count { font-size: 13px; color: var(--text-muted); }

    .review-form {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 16px;
        margin-bottom: 20px;
        max-width: 520px;
    }
    
    .star-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; --star-size: 30px; }
    .star-picker-stars {
        display: inline-flex;
        border-radius: 8px;
        touch-action: pan-y;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    .star-picker-stars:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
    .star-picker-slot { display: grid; place-items: center; width: var(--star-size); height: var(--star-size); font-size: calc(var(--star-size) * 0.86); line-height: 1; }
    
    .star-picker-value { display: inline-grid; align-items: center; min-width: 2ch; min-height: 24px; color: var(--text); font-size: 17px; font-weight: 700; line-height: 24px; font-variant-numeric: tabular-nums; }
    .star-picker-value > span { grid-area: 1 / 1; }
    .star-picker-hint { color: var(--text-muted); font-size: 13px; white-space: nowrap; }
    .star-picker-value.is-empty > .star-picker-num,
    .star-picker-value:not(.is-empty) > .star-picker-hint { visibility: hidden; }
    
    @media (max-width: 760px), (pointer: coarse) {
        .star-picker { --star-size: 40px; gap: 4px 10px; }
    }
    .review-body-input {
        display: block;
        width: 100%;
        box-sizing: border-box;
        min-height: 60px;
        max-height: 170px;
        resize: vertical;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 10px;
        color: var(--text);
        font: inherit;
    }
    .review-body-input:focus { border-color: var(--accent); }
    .review-char-count { text-align: right; font-size: 12px; color: var(--text-muted); margin: 4px 0 12px; font-variant-numeric: tabular-nums; }
    .review-form-actions { display: flex; align-items: center; gap: 10px; }
    .review-form-note { margin: 0; color: var(--text-muted); font-size: 14px; }

    .review-row {
        display: flex;
        gap: 12px;
        max-width: 520px;
        padding: 14px 16px;
        margin-bottom: 12px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
    }
    .review-row:last-child { margin-bottom: 0; }
    .review-row-body { flex: 1; min-width: 0; }
    .review-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
    
    .review-row-origin { color: var(--accent); font-size: 11px; }
    .review-row-name { color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
    .review-row-name:hover { color: var(--accent); }
    .review-row-stars .star { font-size: 13px; }
    .review-row-date { color: var(--text-muted); font-size: 12px; margin-left: auto; }
    .review-row-text {
        color: var(--text-2);
        font-size: 14px;
        margin: 4px 0 8px;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .review-row-text.expanded { -webkit-line-clamp: unset; overflow: visible; }
    
    .review-row-text[hidden] { display: none; }
    .review-more-btn {
        display: none;
        background: none;
        border: none;
        padding: 0;
        margin: -4px 0 8px;
        color: var(--accent);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }
    .review-row-actions { display: flex; gap: 14px; }
    .review-delete-btn, .review-report-btn {
        background: none;
        border: none;
        padding: 0;
        font-size: 12px;
        color: var(--text-muted);
        cursor: pointer;
        transition: color 0.15s;
    }
    .review-delete-btn:hover, .review-report-btn:hover { color: var(--danger); }
    .review-report-btn:disabled,
    .review-report-btn[aria-disabled="true"] { color: var(--text-muted); cursor: default; }

    .game-left .game-section-head { margin-bottom: 10px; }
    .game-left .game-section-head h2 { font-size: 16px; }
    .game-left .reviews-summary { gap: 7px; margin-bottom: 13px; }
    .game-left .reviews-stars { white-space: nowrap; }
    .game-left .reviews-stars .star { font-size: 14px; }
    .game-left .reviews-avg { font-size: 15px; }
    .game-left .reviews-count { font-size: 11px; }
    .game-left .review-form {
        max-width: none;
        margin-bottom: 14px;
        padding: 10px;
        background: var(--surface-2);
    }
    .game-left .star-picker { margin-bottom: 8px; }
    .game-left .review-body-input {
        min-height: 52px;
        max-height: 154px;
        padding: 8px 9px;
        font-size: 12.5px;
        line-height: 1.35;
    }
    .game-left .review-char-count { margin: 3px 0 9px; font-size: 10px; }
    .game-left .review-form-actions { align-items: stretch; flex-direction: column; gap: 7px; }
    .game-left .review-form-actions .btn { width: 100%; padding: 7px 10px; font-size: 12px; }
    .game-left .review-form-note { font-size: 12px; line-height: 1.45; }
    .game-left .review-row {
        max-width: none;
        gap: 9px;
        margin: 0;
        padding: 13px 0;
        background: transparent;
        border: 0;
        border-top: 1px solid var(--border);
        border-radius: 0;
    }
    .game-left .review-row-head { align-items: flex-start; gap: 4px 7px; }
    .game-left .review-row-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
    .game-left .review-row-stars { flex-basis: 100%; }
    .game-left .review-row-date { margin-left: 0; font-size: 10px; }
    .game-left .review-row-text { font-size: 12px; line-height: 1.5; }
    .game-left .gcp-avatar-wrap,
    .game-left .gcp-avatar { width: 30px; height: 30px; }
    .game-left .empty-state { padding: 12px 0; font-size: 12px; }

    
    
    @media (max-width: 1200px) {
        .cat-layout { grid-template-columns: minmax(0, 1fr); }
        
        .cat-rail {
            grid-column: 1;
            grid-row: 3;
            flex-direction: row;
            flex-wrap: wrap;
            position: static;
            max-height: none;
            overflow: visible;
        }
        .cat-rail .panel { flex: 1 1 280px; }
        .cat-grid, .cat-shelf-grid { grid-template-columns: repeat(4, 1fr); }
    }
    @media (max-width: 900px) {
        .cat-grid, .cat-shelf-grid { grid-template-columns: repeat(3, 1fr); }
        .cat-filter-note { display: none; }
    }
    @media (max-width: 760px) {
        .cat-controls { flex-wrap: wrap; }
        .cat-controls #gamesSearch { flex-basis: 100%; }
        .cat-grid, .cat-shelf-grid { grid-template-columns: repeat(2, 1fr); }
        .cat-spotlight-body { max-width: 100%; padding: 18px; }
        .cat-lens-hint { display: none; }
        
        #gamesView.games-filtered .cat-spotlight,
        #gamesView.games-filtered .cat-lens-row,
        #gamesView.games-filtered .cat-shelf { display: none; }
        .cat-lens-row, .cat-filters, .cat-more-row { overflow-x: auto; }
        .cat-chips { flex-wrap: nowrap; }
        .cat-more-row { flex-wrap: nowrap; }
        
        .cat-filters .cat-chip,
        .cat-lens-row .cat-chip,
        .cat-more-row .cat-chip,
        .cat-more-row .dropdown-btn,
        .cat-more-row .cat-more-clear { white-space: nowrap; flex-shrink: 0; }
        
        .cat-trophies-total { display: none; }
        .cat-trophies-split {
            position: static;
            opacity: 1;
            transform: none;
            transition: none;
            pointer-events: auto;
        }
        
        .cat-card-bottom { padding: 8px 6px; gap: 4px; }
        .cat-card-bottom .cat-card-platforms {
            flex-wrap: wrap;
            align-content: flex-start;
            gap: 0 3px;
            min-width: min-content;
            overflow: hidden;
        }
        .cat-card-platforms .platform-badge { padding: 0 4px; }
        .cat-card-platforms .platform-badge:not(:first-child) { display: none; }
        
        .cat-card-platforms .platform-more {
            display: inline-block;
            position: relative;
            flex-shrink: 0;
            width: 8px;
            height: 20px;
            margin-left: -3px;
            overflow: hidden;
            font-size: 0;
            color: transparent;
        }
        .cat-card-platforms .platform-more::before,
        .cat-card-platforms .platform-more::after {
            content: "";
            position: absolute;
            left: 1px;
            border-radius: 0 2px 2px 0;
        }
        .cat-card-platforms .platform-more::before {
            top: 4px;
            width: 7px;
            height: 12px;
            background: var(--platform-more-2, transparent);
        }
        .cat-card-platforms .platform-more::after {
            top: 2px;
            width: 3px;
            height: 16px;
            background: var(--platform-more-1, var(--platform-ps3));
            box-shadow: 1px 0 0 rgba(4, 6, 10, 0.92);
        }
        :where(html[data-theme="light"]) .cat-card-platforms .platform-more::after { box-shadow: 1px 0 0 rgba(4, 7, 15, .92); }
        .platform-more-ps4 { --platform-more-1: var(--platform-ps4); }
        .platform-more-ps3 { --platform-more-1: var(--platform-ps3); }
        .platform-more-psvita { --platform-more-1: var(--platform-psvita); }
        .platform-more-pspc { --platform-more-1: var(--platform-multi); }
        .platform-more-then-ps3 { --platform-more-2: var(--platform-ps3); }
        .platform-more-then-psvita { --platform-more-2: var(--platform-psvita); }
        .platform-more-then-pspc { --platform-more-2: var(--platform-multi); }
        .cat-card-bottom .cat-trophies { flex-shrink: 0; }
        .cat-card-bottom .cat-trophies-split { gap: 2px; padding: 0 2px; }
        .cat-card-bottom .cat-trophies-split > span { gap: 1px; }
        .cat-card-bottom .cat-trophies-split img { width: 10px; height: 10px; }
    }
    @media (prefers-reduced-motion: reduce) {
        .cat-trophies,
        .cat-trophies-total,
        .cat-trophies-split { transition: none; }
    }

    @media (max-width: 1100px) {
        .game-layout {
            grid-template-columns: 240px minmax(0, 1fr);
            grid-template-areas: "info main" "info side";
        }
        .game-left { grid-area: info; }
        .game-main { grid-area: main; }
        .game-side { grid-area: side; width: 100%; box-sizing: border-box; margin-top: 0; }
        .game-layout-no-info { grid-template-columns: 1fr; grid-template-areas: "main" "side"; }
        .game-layout-solo { grid-template-areas: "info main"; }
        .game-layout-solo.game-layout-no-info { display: block; }
    }

    @media (max-width: 760px) {
        
        .game-layout,
        .game-layout-no-info,
        .game-layout-solo {
            display: grid;
            grid-template-columns: 1fr;
            grid-template-areas: "info" "main" "side";
        }
        .game-layout-no-info { grid-template-areas: "main" "side"; }
        .game-layout-solo { grid-template-areas: "info" "main"; }
        .game-layout-solo.game-layout-no-info { display: block; }
        .game-left { grid-area: info; }
        .game-info-case { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; }
        .game-info-case-empty { display: block; }
        .game-info-cover { height: auto; min-height: 0; aspect-ratio: 264 / 374; }
        .game-info-body { padding: 14px 16px; }
        .game-info-summary, .game-info-more { display: none !important; }
        .game-info-facts > div { padding: 6px 0; }
        .game-side { width: 100%; box-sizing: border-box; margin-top: 0; }
        .game-row-catalogue { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .game-row-stats { gap: 3px; }
        .grs-players { font-size: 12px; }
        .game-hero { gap: 14px; margin-bottom: 18px; }
        .game-hero-icon { width: 72px; height: 72px; }
        .game-hero-name { font-size: 20px; }
        .game-hero-breakdown { gap: 12px; }
        .game-tb { font-size: 14px; }
    }

    
    
    .lb-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; }
    .lb-title { margin: 0; }
    .lb-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
    
    .lb-sub { line-height: 17px; min-height: 17px; }
    .lb-sub.is-loading { visibility: hidden; }
    
    .lb-sub-link {
        padding: 0;
        border: 0;
        background: none;
        color: var(--text-muted);
        font: inherit;
        text-decoration: underline;
        text-underline-offset: 2px;
        cursor: pointer;
    }
    .lb-sub-link::before { content: "·"; margin: 0 7px; text-decoration: none; display: inline-block; }
    .lb-sub-link:hover { color: var(--text); }

    .lb-scoring-card {
        width: min(460px, calc(100vw - 32px));
        box-sizing: border-box;
        padding: 22px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
        box-shadow: var(--shadow-2);
    }
    .lb-scoring-card h2 { margin: 0 0 12px; color: var(--text); font-size: 20px; }
    
    .lb-scoring-body { margin: 0 0 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
    .lb-scoring-body:last-of-type { margin-bottom: 18px; }
    .lb-scoring-actions { display: flex; justify-content: flex-end; }

    
    #periodDrop .dropdown-btn {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-2);
        font-size: 15px;
        padding: 8px 14px;
    }
    #periodDrop .dropdown-btn:hover { border-color: var(--border-hover); background: var(--surface-2); }

    
    .lb-scope { display: flex; gap: 8px; margin-left: auto; }

    .lb-sorts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
    .lb-sort, .lb-scope-btn {
        padding: 8px 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-3);
        font-size: 14px;
        cursor: pointer;
        transition: border-color 0.2s, color 0.2s, background 0.2s;
    }
    
    .lb-sort:hover, .lb-scope-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-hover); }
    .lb-sort.active, .lb-scope-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

    .lb-empty { color: var(--text-muted); font-size: 14px; padding: 20px 0; }

    .lb-row {
        display: flex;
        align-items: center;
        gap: 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 12px 16px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: border-color 0.2s, transform 0.08s;
        
        color: inherit;
        text-decoration: none;
    }
    .lb-row:hover { border-color: var(--accent); }
    .lb-row:active { transform: scale(0.995); }

    .lb-rank {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 34px;
        white-space: nowrap;
        font-size: 17px;
        font-weight: 800;
        color: var(--text-muted);
    }
    
    #leaderboardList .lb-rank {
        flex: none;
        min-width: 0;
        width: 86px;
        justify-content: flex-start;
        gap: 4px;
    }
    #leaderboardList .lb-rank-num {
        flex: none;
        width: 50px;
        overflow: hidden;
        text-align: right;
    }
    #leaderboardList .lb-rank-num.lb-rank-long { font-size: 12px; }
    #leaderboardList .lb-rank-num.lb-rank-xlong { font-size: 10.5px; letter-spacing: -0.02em; }
    #leaderboardList .lb-rank-num.lb-rank-xxlong { font-size: 10px; }
    #leaderboardList .lb-rank-slot { flex: none; display: flex; align-items: center; width: 32px; }
    
    .lb-rank-1 { color: #f0c040; }
    .lb-rank-2 { color: #c4ccd4; }
    .lb-rank-3 { color: var(--metal-bronze); }

    
    .lb-avatar-wrap {
        position: relative;
        display: inline-block;
        flex-shrink: 0;
    }

    .lb-avatar {
        flex-shrink: 0;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        object-fit: cover;
        background: var(--border);
    }
    .lb-avatar-blank { background: var(--border); }

    .lb-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
    .lb-name {
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .lb-level {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
        color: var(--text-muted);
    }
    .lb-level img { width: 16px; height: 16px; object-fit: contain; }
    .lb-level.is-active { color: var(--text-2); }

    .lb-metrics { display: flex; gap: 22px; flex-shrink: 0; }
    .lb-metric {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        min-width: 46px;
    }
    .lb-mv { font-size: 16px; font-weight: 700; color: var(--text-2); }
    .lb-ml { font-size: 11px; color: var(--text-muted); }
    
    .lb-metric.is-active .lb-mv { color: var(--gold); }
    .lb-metric.is-active .lb-ml { color: #b0863a; }

    
    .lb-plat-when { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
    .lb-plat-time { font-size: 10px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

    
    
    .lb-row.lb-top { padding: 16px 16px; }
    .lb-row.lb-top .lb-rank { font-size: 22px; }
    .lb-row.lb-top .lb-avatar,
    .lb-row.lb-top .lb-avatar-blank { width: 54px; height: 54px; }
    .lb-row.lb-top .lb-name { font-size: 17px; }
    
    .lb-row.lb-top-1 .lb-avatar,
    .lb-row.lb-top-1 .lb-avatar-blank { box-shadow: 0 0 0 2px var(--metal-gold); }
    .lb-row.lb-top-2 .lb-avatar,
    .lb-row.lb-top-2 .lb-avatar-blank { box-shadow: 0 0 0 2px var(--metal-silver); }
    .lb-row.lb-top-3 .lb-avatar,
    .lb-row.lb-top-3 .lb-avatar-blank { box-shadow: 0 0 0 2px var(--metal-bronze); }

    
    .lb-row-self { border-color: var(--border-hover); background: color-mix(in srgb, var(--brand-1) 12%, var(--surface)); box-shadow: inset 3px 0 0 var(--brand-2); }
    
    @keyframes lb-rowflash { 0% { background-color: rgba(134, 215, 236, 0.18); } }
    .lb-row-flash { animation: lb-rowflash 1.6s ease; }
    @media (prefers-reduced-motion: reduce) { .lb-row-flash { animation: none; } }
    
    .lb-youbar-jump { cursor: pointer; }
    
    .lb-name-row { display: flex; align-items: center; min-width: 0; }
    .lb-name-row .plate-premium { margin-left: 8px; flex-shrink: 0; }
    .lb-name-row .lb-name { min-width: 0; }
    
    .lb-flag {
        width: 18px;
        height: 12px;
        margin-left: 7px;
        border-radius: 2px;
        object-fit: cover;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
        flex-shrink: 0;
    }
    
    #countryDropMenu {
        max-height: 320px;
        overflow-y: auto;
        min-width: 220px;
    }
    #countryDropMenu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 9px;
    }
    .lb-flag-opt {
        width: 18px;
        height: 12px;
        border-radius: 2px;
        object-fit: cover;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
    }
    .lb-country-count {
        margin-left: auto;
        color: var(--text-muted);
        font-size: 11.5px;
        font-variant-numeric: tabular-nums;
    }
    
    .lb-you-chip {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        border-radius: var(--radius-full);
        padding: 2px 8px;
        margin-left: 8px;
        vertical-align: 2px;
        color: var(--brand-2);
        border: 1px solid rgba(134, 215, 236, 0.4);
        background: var(--surface-2);
    }
    
    html[data-theme="light"] .lb-you-chip {
        color: #fff;
        background: var(--brand-1);
        border-color: var(--brand-1);
    }

    
    
    .lb-ml.ml-bronze { color: var(--metal-bronze); }
    .lb-ml.ml-silver { color: var(--metal-silver); }
    .lb-ml.ml-gold { color: var(--metal-gold); }
    @media (max-width: 980px) {
        .lb-metric.lb-metal { display: none; }
    }

    
    
    .lb-row.lb-art {
        position: relative;
        overflow: hidden;
        z-index: 0;
    }
    .lb-row.lb-art::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -2;
        background-image: var(--row-art);
        background-size: cover;
        background-position: center 30%;
    }
    .lb-row.lb-art::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(90deg,
            rgba(25, 30, 36, 0.97) 0%,
            rgba(25, 30, 36, 0.88) 38%,
            rgba(25, 30, 36, 0.55) 70%,
            rgba(25, 30, 36, 0.78) 100%);
    }
    :where(html[data-theme="light"]) .lb-row.lb-art::after { background: linear-gradient(90deg, rgba(19, 26, 46, 0.97) 0%, rgba(19, 26, 46, 0.88) 38%, rgba(19, 26, 46, 0.55) 70%, rgba(19, 26, 46, 0.78) 100%); }
    .lb-row.lb-art .lb-mv { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
    
    .lb-row.lb-art.has-strip-crop::before,
    .club-art.has-strip-crop {
        background-position: var(--strip-pos);
        transform-origin: var(--strip-pos);
        transform: scale(var(--strip-zoom));
    }
    .club-art.has-strip-crop::after {
        transform-origin: var(--strip-pos);
        transform: scale(calc(1 / var(--strip-zoom)));
    }
    
    @media (min-width: 761px) {
        .lb-row.lb-art::after {
            background:
                linear-gradient(270deg, rgba(4, 6, 10, .84) 0%, rgba(4, 6, 10, .74) 460px, rgba(4, 6, 10, 0) 640px),
                linear-gradient(90deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .6) 380px, rgba(4, 6, 10, .12) 640px);
        }
        .lb-row.lb-art :is(.lb-metrics, .lb-name, .lb-latest-plat, .lb-level) { text-shadow: 0 1px 6px rgba(0, 0, 0, .75); }
    }

    
    .lb-latest-plat {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        font-size: 12px;
        color: var(--text-3);
    }
    .lb-latest-plat img { width: 13px; height: 13px; object-fit: contain; flex-shrink: 0; }
    .lb-latest-plat b {
        color: var(--text-2);
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .lb-latest-plat .when { color: var(--text-muted); flex-shrink: 0; }

    
    
    .lb-youbar {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-2);
        z-index: 40;
    }
    .lb-youbar-in {
        max-width: 1440px;
        margin: 0 auto;
        padding: 10px 40px;
        display: flex;
        align-items: center;
        gap: 14px;
        
        cursor: inherit;
    }
    .lb-youbar-label {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: var(--accent);
    }
    .lb-youbar .lb-avatar,
    .lb-youbar .lb-avatar-blank { width: 36px; height: 36px; }
    
    .lb-youbar-body { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
    .lb-youbar-name { font-size: 15px; font-weight: 700; }
    .lb-youbar-standing {
        font-size: 13px;
        color: var(--text-3);
        font-variant-numeric: tabular-nums;
    }
    .lb-youbar-standing b { color: var(--text); font-weight: 700; }
    .lb-youbar-gap {
        margin-left: auto;
        font-size: 13px;
        color: var(--text-muted);
        font-variant-numeric: tabular-nums;
    }
    .lb-youbar-gap b { color: var(--text-2); font-weight: 600; }
    
    body.lb-youbar-open { padding-bottom: 72px; }
    @media (max-width: 760px) {
        .lb-youbar-in { padding: 10px 16px; flex-wrap: wrap; row-gap: 2px; }
        .lb-youbar-gap { flex-basis: 100%; margin-left: 50px; }
    }
    
    @media (max-width: 560px) {
        .lb-youbar-in { align-items: center; gap: 6px 10px; }
        .lb-youbar-body { flex-direction: column; align-items: flex-start; gap: 1px; flex: 1; }
        .lb-youbar-name { font-size: 14.5px; }
        .lb-youbar-standing { font-size: 12px; }
        .lb-youbar-gap { flex-basis: 100%; margin-left: 0; margin-top: 1px; font-size: 12px; }
    }

    
    
    @media (max-width: 900px) {
        #topNav { flex-wrap: wrap; align-items: center; row-gap: 12px; }
        #homeLogo { order: 0; }
        #accountSlot { order: 1; flex-shrink: 0; }
        #navLinks {
            order: 2;
            flex-basis: 100%;
            min-width: 0;
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-between;
            align-items: center;
            gap: 6px;
            overflow-x: auto;
            scrollbar-width: none;
        }
        #navLinks::-webkit-scrollbar { display: none; }
        #navLinks.nav-fade-right { mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
        #navLinks.nav-fade-left { mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
        #navLinks.nav-fade-left.nav-fade-right { mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
        #navHome, #navGames, #navGuides, #navMatchmaking, #navCommunity, #navLeaderboard {
            margin-left: 0;
            padding: 4px 2px;
            flex-shrink: 0;
            white-space: nowrap;
        }
        
        #accountSlot .btn { white-space: nowrap; }
    }

    @media (max-width: 560px) {
        
        #homeLogo { width: 89px; height: 26px; }
        #navHome, #navGames, #navGuides, #navMatchmaking, #navCommunity, #navLeaderboard { font-size: 13.5px; }
        #accountSlot .btn { padding: 6px 10px; font-size: 12px; }

        
        .lb-metrics { gap: 0; }
        .lb-metric:not(.is-active) { display: none; }
        .lb-metric.is-active { min-width: 0; }
        
        .lb-row.lb-art::after {
            background: linear-gradient(90deg,
                rgba(25, 30, 36, 0.96) 0%,
                rgba(25, 30, 36, 0.9) 60%,
                rgba(25, 30, 36, 0.85) 100%);
        }
        :where(html[data-theme="light"]) .lb-row.lb-art::after { background: linear-gradient(90deg, rgba(19, 26, 46, 0.96) 0%, rgba(19, 26, 46, 0.9) 60%, rgba(19, 26, 46, 0.85) 100%); }
        
        .lb-title { flex-basis: 100%; }
        .lb-scope { margin-left: 0; }

        
        
        .ticker.ticker { --tile: 84px; }
        .ticker .tk-item:not(.on) { display: none; }
        .ticker .tk-item.on { flex: 1 1 100%; width: 100%; }
        
        .ticker .tk-info { padding: 10px 8px 12px 12px; }
        .ticker .tk-side { padding: 0 12px 0 0; gap: 6px; }
        .ticker .tk-type { height: 34px; }
        .ticker .tk-meta { gap: 6px; }

        
        .hl-tile {
            display: grid;
            grid-template-columns: 52px 1fr;
            grid-template-rows: auto auto;
            column-gap: 12px;
            align-items: center;
            text-align: left;
            padding: 2px 0 0;
        }
        .hl-thumb { grid-row: 1 / 3; width: 52px; height: 52px; margin: 0; }
        .hl-thumb > img:first-child { width: 52px; height: 52px; }
        .hl-title { grid-column: 2; align-self: end; margin: 0; }
        .hl-sub { grid-column: 2; align-self: start; margin: 0; }

        
        .gd-playtime-pill {
            position: static;
            right: auto;
            bottom: auto;
            display: inline-flex;
            justify-content: flex-start;
            margin-top: 8px;
        }
    }

    @media (max-width: 760px) {
        body { padding: var(--site-mobile-padding); }
        
        #topNav { margin: -16px calc(50% - 50vw) 14px; padding: 14px 16px; }
        h1 { font-size: 26px; }
        .gd-playtime-pill { right: 16px; bottom: 174px; }

        .lb-row { gap: 10px; padding: 10px 12px; }
        .lb-rank { min-width: 22px; font-size: 15px; }
        .lb-avatar { width: 40px; height: 40px; }
        .lb-name { font-size: 14px; }
        .lb-metrics { gap: 10px; }
        .lb-metric { min-width: 0; }
        .lb-mv { font-size: 13px; }
        .lb-ml { font-size: 10px; }
        
        .lb-row.lb-top .lb-avatar,
        .lb-row.lb-top .lb-avatar-blank { width: 46px; height: 46px; }
        .lb-row.lb-top .lb-rank { font-size: 18px; }
        
        .lb-row.lb-top { padding-left: 12px; padding-right: 12px; }
        #leaderboardList .lb-rank { width: 78px; }
        #leaderboardList .lb-rank-num { width: 44px; }
        #leaderboardList .lb-rank-num.lb-rank-long { font-size: 11px; }
        #leaderboardList .lb-rank-num.lb-rank-xlong { font-size: 10px; letter-spacing: -0.02em; }
        #leaderboardList .lb-rank-num.lb-rank-xxlong { font-size: 9px; }
        #leaderboardList .lb-rank-slot { width: 30px; }
        #leaderboardList .lb-rank .standing-mv { font-size: 9.5px; }
        .lb-latest-plat { max-width: 100%; }

        
        #profileHeader { flex-wrap: wrap; }
        #profileHeader.profile-hero {
            display: flex !important;
            flex-direction: column;
            min-height: 0;
            padding: 0;
            align-content: initial;
            border-radius: 14px;
        }
        .profile-identity-panel {
            position: relative;
            inset: auto;
            width: 100%;
            pointer-events: auto;
        }
        #profileHeader.profile-hero .profile-identity { width: 100%; padding: 18px 16px; gap: 12px; }
        .profile-trophy-strip { width: 100%; height: 62px; }
        .profile-trophy-total { gap: 5px; padding: 9px 4px; }
        .profile-trophy-total:first-child { justify-content: center; padding-left: 4px; }
        .profile-trophy-total img { width: 19px; height: 19px; }
        .profile-trophy-total strong { font-size: 13px; }
        .profile-trophy-total small { font-size: 7px; letter-spacing: 0.025em; }
        .profile-identity { width: 100%; column-gap: 10px; }
        
        .profile-artwork-panel {
            position: relative;
            inset: auto;
            order: -1;
            width: 100%;
            height: var(--profile-mobile-artwork-height);
            aspect-ratio: auto;
            border: 0;
            box-shadow: none;
        }
        .profile-artwork-panel > img { -webkit-mask-image: none; mask-image: none; }
        
        .profile-pulse-artwork {
            left: 16px;
            right: 16px;
            top: auto;
            bottom: 0;
            width: auto;
            height: 62px;
            min-height: 0;
            padding: 0;
            border: 0;
            background: none;
            box-shadow: none;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }
        .profile-pulse-artwork .profile-pulse-slide { padding: 0 0 6px; }
        .profile-pulse-artwork .profile-pulse-slide strong { line-height: 1.3; }
        .profile-pulse-artwork .profile-pulse-slide:not(.profile-pulse-trophy) strong { font-size: 16px; }
        
        html[data-theme="light"] .profile-pulse-artwork {
            background: none;
            border-top: 0;
            box-shadow: none;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
        }
        html[data-theme="light"] .profile-pulse-artwork .profile-pulse-slide strong,
        html[data-theme="light"] .profile-pulse-artwork .profile-pulse-trophy:hover strong { color: #fff; }
        html[data-theme="light"] .profile-pulse-artwork .profile-pulse-slide small,
        html[data-theme="light"] .profile-pulse-artwork .profile-banner-kicker { color: rgba(230, 236, 247, 0.75); }
        #profileHeader.profile-hero .avatar-wrap img {
            width: 54px !important;
            height: 54px !important;
        }
        #profileHeader.profile-hero .avatar-wrap { width: 54px; height: 54px; }
        
        .profile-sync-corner { position: static; right: auto; bottom: auto; margin: 6px 0 0; justify-content: flex-start; width: fit-content; }
        #profileHeader.profile-hero .profile-name {
            max-width: 100%;
            overflow: hidden;
            font-size: 21px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        #profileHeader.profile-hero .profile-name-row { gap: 6px; }
        
        .standing-plaque {
            position: absolute;
            top: 12px;
            right: 12px;
            left: auto;
            z-index: 4;
            margin: 0;
        }
        #profileHeader.profile-hero::before { background-position: center; }
        #profileHeader.profile-hero::after {
            background: linear-gradient(90deg, rgba(4, 6, 10, 0.94), rgba(8, 12, 17, 0.64)),
                        linear-gradient(0deg, rgba(4, 6, 10, 0.9), transparent 72%);
        }
        :where(html[data-theme="light"]) #profileHeader.profile-hero::after { background: linear-gradient(90deg, rgba(7, 10, 21, 0.94), rgba(7, 11, 23, 0.64)), linear-gradient(0deg, rgba(7, 10, 20, 0.9), transparent 72%); }
        #profileHeader.profile-hero .profile-id { padding-right: 0; }
        .trophy-breakdown {
            margin-left: 0;
            width: 100%;
            justify-content: space-between;
            gap: 8px 6px;
            
            flex-wrap: wrap;
        }
        .tb-item { gap: 4px; }
        .tb-item img { width: 22px; height: 22px; }
        .tb-item span { font-size: 13px; }
        .tb-total { padding-right: 6px; }

        
        @media (max-width: 430px) {
            .profile-trophy-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); height: auto; }
            .profile-trophy-total { padding: 8px 4px; }
            .profile-trophy-total:first-child {
                grid-column: 1 / -1;
                justify-content: center;
                padding: 8px 4px;
                border-left: 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            }
            .profile-trophy-total:nth-child(2) { border-left: 0; }
            .profile-trophy-total strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
        }

        
        .stats-row { gap: 10px; }

        
    }

    
    
    @media (max-width: 900px) {
        
        
        #profileHeader.profile-hero {
            display: flex !important;
            flex-direction: column;
            min-height: 0;
            padding: 0;
            align-content: initial;
            border-radius: 14px;
        }
        .profile-identity-panel {
            position: relative;
            inset: auto;
            width: 100%;
            pointer-events: auto;
        }
        .profile-artwork-panel {
            position: absolute;
            inset: 0;
            order: 0;
            height: auto;
        }
        
        .profile-artwork-panel > img {
            object-fit: cover;
            object-position: center 20% !important;
            transform: none !important;
        }
        
        .profile-artwork-panel::after {
            background: linear-gradient(180deg,
                rgba(8, 12, 17, 0.5) 0,
                rgba(8, 12, 17, 0.28) 18%,
                rgba(8, 12, 17, 0.42) 30%,
                rgba(25, 30, 36, 0.86) 46%,
                rgba(25, 30, 36, 0.97) 62%,
                var(--surface) 100%);
        }
        :where(html[data-theme="light"]) .profile-artwork-panel::after { background: linear-gradient(180deg, rgba(8, 12, 22, 0.5) 0, rgba(8, 12, 22, 0.28) 18%, rgba(8, 12, 22, 0.42) 30%, rgba(19, 26, 46, 0.86) 46%, rgba(19, 26, 46, 0.97) 62%, var(--surface) 100%); }
        
        html[data-theme="light"] .profile-artwork-panel::after {
            background: linear-gradient(180deg,
                rgba(8, 12, 22, 0.5) 0,
                rgba(8, 12, 22, 0.28) 18%,
                rgba(8, 12, 22, 0.42) 30%,
                rgba(19, 26, 46, 0.86) 46%,
                rgba(19, 26, 46, 0.97) 62%,
                rgba(19, 26, 46, 1) 100%);
        }
        
        #profileHeader.profile-hero .profile-name { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
        
        #profileHeader.profile-hero .profile-pulse-artwork,
        #profileHeader.profile-hero .profile-pulse-artwork * { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75); }
        #profileHeader.profile-hero .profile-follow-pill,
        #profileHeader.profile-hero .profile-follow-pill a { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
        
        #profileHeader.profile-hero .avatar-wrap img {
            border: 3px solid var(--surface);
            box-shadow: 0 0 0 1px var(--border);
        }
        html[data-theme="light"] #profileHeader.profile-hero .avatar-wrap img {
            border-color: #131a2e;
            box-shadow: 0 0 0 1px rgba(180, 200, 238, 0.22);
        }

        
        .profile-pulse-artwork {
            
            border-bottom-right-radius: 0;
            clip-path: none;
            left: 14px;
            right: auto;
            top: 14px;
            bottom: auto;
            
            width: calc(100% - 190px);
            
            height: 72px;
            
            padding: 0;
            border: 0;
            background: none;
            box-shadow: none;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }
        .profile-pulse-artwork .profile-pulse-slide { padding: 0 0 6px; }
        
        html[data-theme="light"] .profile-pulse-artwork {
            background: none;
            border-top: 0;
            box-shadow: none;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
        }
        html[data-theme="light"] .profile-pulse-artwork .profile-pulse-slide strong,
        html[data-theme="light"] .profile-pulse-artwork .profile-pulse-trophy:hover strong { color: #fff; }
        html[data-theme="light"] .profile-pulse-artwork .profile-pulse-slide small,
        html[data-theme="light"] .profile-pulse-artwork .profile-banner-kicker { color: rgba(230, 236, 247, 0.75); }
        .profile-pulse-artwork .profile-banner-kicker {
            font-size: 9.5px;
            font-weight: 700;
            letter-spacing: .1em;
            text-transform: uppercase;
        }
        .profile-pulse-artwork .profile-pulse-slide strong,
        .profile-pulse-artwork .profile-pulse-slide:not(.profile-pulse-trophy) strong {
            font-size: 13px;
            font-weight: 700;
            
            line-height: 1.3;
            padding-bottom: 1px;
        }
        .profile-pulse-artwork .profile-pulse-slide small { font-size: 10px; line-height: 1.3; }
        .profile-pulse-artwork .profile-banner-kicker { line-height: 1.2; }
        
        .profile-pulse-artwork .pp-dots { right: 8px; }
        .profile-pulse-artwork.has-dots .profile-pulse-slide { padding-right: 14px; }
        .profile-pulse-artwork .pp-dots i { background: rgba(255, 255, 255, 0.3); }
        .profile-pulse-artwork .pp-dots i.done { background: rgba(255, 255, 255, 0.6); }
        .profile-pulse-artwork .pp-dots i.on { background: rgba(255, 255, 255, 0.3); }
        .profile-pulse-artwork .pp-dots i.on::after { background: #fff; }

        
        .profile-pulse-artwork .profile-pulse-slide.profile-pulse-score {
            padding: 2px 24px 2px 0;
            gap: 3px;
        }
        .profile-pulse-artwork .profile-pulse-score .profile-banner-kicker {
            font-size: 11px;
            line-height: 1.2;
            letter-spacing: 0;
            text-transform: none;
        }
        .profile-pulse-artwork .profile-pulse-slide.profile-pulse-score .profile-score-total {
            font-size: 20px;
            line-height: 1.15;
        }
        .profile-pulse-artwork .profile-score-line {
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }
        .profile-pulse-artwork .profile-score-change { gap: 4px; }
        .profile-pulse-artwork .profile-score-change .profile-score-delta { font-size: 13px; }
        .profile-pulse-artwork .profile-pulse-score .profile-banner-kicker,
        .profile-pulse-artwork .profile-score-change .profile-score-period,
        .profile-pulse-artwork .profile-score-change.flat,
        html[data-theme="light"] .profile-pulse-artwork .profile-pulse-score .profile-banner-kicker,
        html[data-theme="light"] .profile-pulse-artwork .profile-score-change .profile-score-period,
        html[data-theme="light"] .profile-pulse-artwork .profile-score-change.flat { color: #dce5ef; }
        html[data-theme="light"] .profile-pulse-artwork .profile-score-change.up { color: #66e7b5; }
        
        .profile-pulse-scrim {
            display: block;
            position: absolute;
            z-index: 1;
            pointer-events: none;
            top: 0;
            left: 0;
            width: 280px;
            max-width: 85%;
            height: 156px;
            background: radial-gradient(ellipse 350px 220px at 0% 0%,
                rgba(5, 10, 18, .92) 0%,
                rgba(5, 10, 18, .75) 40%,
                rgba(5, 10, 18, .22) 55%,
                transparent 70%);
        }
        #profileHeader:not(.has-artwork) .profile-pulse-scrim { display: none; }

        
        .standing-plaque { top: 14px; right: 14px; border-radius: 10px; max-width: 170px; }
        .standing-half { padding: 6px 9px; }
        .standing-num { font-size: 14px; }
        .standing-podium .standing-num { font-size: 15px; }
        .standing-half small { margin-top: 1px; gap: 3px; font-size: 8px; }
        .standing-half small svg { width: 9px; height: 9px; }
        .standing-flag { width: 12px; height: 8px; }

        
        #profileHeader.profile-hero .profile-identity {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-end;
            column-gap: 8px;
            row-gap: 10px;
            width: 100%;
            margin-top: 92px;
            padding: 0 16px 16px;
            position: relative;
            z-index: 3;
        }
        #profileHeader.profile-hero .profile-id { display: contents; }

        
        #profileHeader.profile-hero .avatar-wrap {
            order: 1;
            width: 64px;
            height: 64px;
        }
        #profileHeader.profile-hero .avatar-wrap img {
            width: 64px !important;
            height: 64px !important;
        }
        #profileHeader.profile-hero .avatar-wrap .linked-badge {
            top: auto;
            bottom: -2px;
            right: -2px;
        }
        
        #profileHeader.profile-hero .avatar-wrap.twitch-live .linked-badge {
            top: -3px;
            bottom: auto;
        }

        
        #profileHeader.profile-hero .profile-name-row {
            order: 2;
            flex: 1 1 0;
            min-width: 0;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            padding-bottom: 2px;
        }
        #profileHeader.profile-hero .profile-name {
            flex-basis: 100%;
            font-size: 24px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -.5px;
        }
        
        #profileHeader.profile-hero .plate-premium {
            height: 20px;
            padding: 0 7px;
            border-radius: 6px;
            font-size: 9.5px;
            font-variant-caps: normal;
            text-transform: uppercase;
            letter-spacing: .08em;
        }
        #profileHeader.profile-hero .profile-name-row .plate {
            height: 20px;
            padding: 0 7px;
            border-radius: 6px;
            font-size: 9.5px;
            letter-spacing: .08em;
        }
        #profileHeader.profile-hero .profile-flag { width: 22px; height: 15px; }

        
        #profileHeader.profile-hero .profile-follow-row {
            order: 3;
            flex-basis: 100%;
            width: 100%;
            margin: 0;
            min-height: 0;
        }
        #profileHeader.profile-hero .profile-follow-pill {
            padding: 0;
            border: 0;
            background: transparent;
            gap: 5px;
            font-size: 12.5px;
            color: var(--text-3);
        }
        #profileHeader.profile-hero .profile-follow-pill a { gap: 4px; color: var(--text-3); }
        #profileHeader.profile-hero .profile-follow-pill span { text-transform: lowercase; }

        
        #profileHeader.profile-hero .level-pill,
        #profileHeader.profile-hero .sync-line.profile-sync-corner,
        #profileHeader.profile-hero #profileLinksPanel.pl-card {
            height: 30px;
            margin: 0;
            padding: 0 11px;
            gap: 7px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius-full);
            box-shadow: none;
            -webkit-backdrop-filter: none;
            backdrop-filter: none;
            font-size: 12.5px;
            font-weight: 600;
            color: var(--text-2);
            width: auto;
        }
        #profileHeader.profile-hero .level-pill { order: 4; align-items: center; }
        #profileHeader.profile-hero .level-pill-bar { width: 44px; }
        #profileHeader.profile-hero .sync-line.profile-sync-corner {
            order: 5;
            display: inline-flex;
            align-items: center;
            
            position: static;
            right: auto;
            bottom: auto;
            justify-content: flex-start;
        }
        #profileHeader.profile-hero #profileLinksPanel.pl-card { order: 6; align-items: center; }
        
        html[data-theme="light"] #profileHeader.profile-hero .level-pill,
        html[data-theme="light"] #profileHeader.profile-hero .sync-line.profile-sync-corner,
        html[data-theme="light"] #profileHeader.profile-hero #profileLinksPanel.pl-card {
            background: rgba(8, 12, 24, 0.68);
            border-color: rgba(180, 200, 238, 0.22);
        }

        
        .profile-trophy-strip { border-bottom-right-radius: inherit; }
        @media (min-width: 431px) {
            .profile-trophy-strip { width: 100%; height: 62px; }
            .profile-trophy-total { gap: 5px; padding: 9px 4px; }
            .profile-trophy-total:first-child { justify-content: center; padding-left: 4px; }
            .profile-trophy-total img { width: 19px; height: 19px; }
            .profile-trophy-total strong { font-size: 13px; }
            .profile-trophy-total small { font-size: 7px; letter-spacing: 0.025em; }
        }
    }

    
    @media (max-width: 900px) {
        .main-columns { flex-direction: column; align-items: stretch; }
        .main-col { flex-direction: column; align-items: stretch; }
        .list-col { width: 100%; }
        .filter-rail { flex-direction: row; position: static; }
        .side-col { display: contents; }
        #closestPanel { width: 100%; }
        
        .ticker { --tile: 84px; }
        .tk-rail { overflow-x: auto; scrollbar-width: none; }
        .tk-rail::-webkit-scrollbar { display: none; }
        
        .tk-item.on { flex: 0 0 380px; }
        
        .card-row { flex-wrap: wrap; }
        .card-stats { width: 100%; margin-top: 4px; }
        .card-counts { justify-self: start; }
    }

    
    #accountSlot {
        margin-left: 6px;
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    #themeToggle { margin-left: auto; }

    
    #topNav.hide-account-slot #accountSlot {
        display: none;
    }

    

    
    .profile-avatar-placeholder {
        background: var(--surface);
    }

    
    .avatar-wrap {
        position: relative;
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    .linked-badge {
        position: absolute;
        top: -3px;
        right: -3px;
        line-height: 0;
        border-radius: 50%;
        background: var(--surface); 
    }

    
    .linked-badge-sm {
        position: absolute;
        bottom: -2px;
        right: -2px;
        line-height: 0;
        
        z-index: 1;
    }
    .linked-badge-sm svg {
        width: 15px;
        height: 15px;
        display: block;
    }

    
    .twitch-live {
        border-radius: 50%;
        box-shadow: 0 0 0 2px #eb0400;
    }
    
    .twitch-live-chip {
        
        line-height: 1.2;
        position: absolute;
        left: 50%;
        bottom: -7px;
        transform: translateX(-50%);
        text-decoration: none;
        cursor: pointer;
        z-index: 2;
    }
    
    .lb-avatar-wrap .twitch-live-chip,
    .plat-cabinet-avatar .twitch-live-chip {
        font-size: 8px;
        padding: 1px 6px 1px 5px;
        gap: 3px;
        bottom: -6px;
    }
    .lb-avatar-wrap .twitch-live-chip .stamp-dot,
    .plat-cabinet-avatar .twitch-live-chip .stamp-dot { width: 4px; height: 4px; }
    .gcp-avatar-wrap .twitch-live-chip,
    .home-rail-avatar-wrap .twitch-live-chip,
    .gd-player-avatar-wrap .twitch-live-chip,
    .ff-av .twitch-live-chip {
        font-size: 7px;
        padding: 1px 5px 1px 4px;
        gap: 2px;
        bottom: -5px;
        letter-spacing: 0.2px;
    }
    .gcp-avatar-wrap .twitch-live-chip .stamp-dot,
    .home-rail-avatar-wrap .twitch-live-chip .stamp-dot,
    .gd-player-avatar-wrap .twitch-live-chip .stamp-dot,
    .ff-av .twitch-live-chip .stamp-dot { width: 3px; height: 3px; }

    .acct-avatar-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid var(--border);
        background: var(--surface);
        padding: 0;
        cursor: pointer;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: border-color 0.2s;
    }
    .acct-avatar-btn:hover { border-color: var(--accent); }
    .acct-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
    .acct-avatar-blank { color: var(--text-2); font-weight: 700; font-size: 16px; }

    .acct-menu {
        position: absolute;
        right: 0;
        top: calc(100% + 8px);
        min-width: 200px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 6px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
        z-index: 60;
        display: none;
    }
    .acct-menu.open { display: block; }
    .acct-menu-head {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 8px 10px 10px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 6px;
        border-radius: 6px 6px 0 0;
        text-decoration: none;
        cursor: pointer;
        transition: background .18s ease;
    }
    .acct-menu-head:hover { background: var(--surface-2); }
    .acct-menu-head:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: -2px;
    }
    .acct-psn { color: var(--text); font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
    .acct-email { color: var(--text-muted); font-size: 12px; }
    .acct-profile-state { color: var(--text-2); font-size: 12px; line-height: 1.4; max-width: 220px; margin-top: 4px; }

    
    .notification-bell {
        position: relative;
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid transparent;
        border-radius: 50%;
        color: var(--text-3);
        background: transparent;
        cursor: pointer;
        transition: color .18s ease, border-color .18s ease, background .18s ease;
    }
    .notification-bell:hover,
    .notification-bell[aria-expanded="true"] {
        color: var(--text);
        border-color: var(--border);
        background: var(--ghost-hover);
    }
    .notification-bell:focus-visible,
    .notification-copy:focus-visible,
    .notification-view-all:focus-visible {
        outline: 2px solid var(--brand-2);
        outline-offset: 2px;
    }
    .notification-bell svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    
    .theme-toggle {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid transparent;
        border-radius: 50%;
        color: var(--text-3);
        background: transparent;
        cursor: pointer;
    }
    .theme-toggle:hover {
        color: var(--text);
        border-color: var(--border);
        background: var(--ghost-hover);
    }
    .theme-toggle:focus-visible {
        outline: 2px solid var(--brand-2);
        outline-offset: 2px;
    }
    .theme-toggle svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    
    .theme-toggle .theme-icon-moon { display: none; }
    html[data-theme="light"] .theme-toggle .theme-icon-sun { display: none; }
    html[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }
    .notification-count {
        position: absolute;
        top: 0;
        right: -2px;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border: 2px solid var(--bg);
        border-radius: var(--radius-full);
        color: var(--dark-accent-ink, #fff);
        background: var(--accent);
        font-size: 9px;
        font-weight: 800;
        line-height: 13px;
        text-align: center;
    }
    .notification-panel {
        position: absolute;
        top: calc(100% + 10px);
        right: 48px;
        z-index: 65;
        display: none;
        width: 390px;
        max-width: calc(100vw - 24px);
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface);
        box-shadow: 0 22px 60px rgba(0,0,0,.55);
        backdrop-filter: blur(18px);
    }
    .notification-panel.open { display: block; }
    .notification-panel > header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 49px;
        padding: 0 15px;
        border-bottom: 1px solid var(--border);
    }
    .notification-panel > header strong {
        color: var(--text);
        font-size: 14px;
    }
    .notification-panel > header button {
        border: 0;
        color: var(--brand-2);
        background: none;
        font: inherit;
        font-size: 11px;
        cursor: pointer;
    }
    .notification-panel-list {
        max-height: min(480px, calc(100vh - 180px));
        overflow-y: auto;
    }
    .notification-row {
        --notification-rail: var(--brand-2);
        position: relative;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 11px;
        min-height: 88px;
        padding: 13px 13px 13px 16px;
        border-bottom: 1px solid var(--border);
        background: transparent;
    }
    .notification-row::before {
        content: "";
        position: absolute;
        inset: 11px auto 11px 0;
        width: 3px;
        border-radius: 0 3px 3px 0;
        background: var(--notification-rail);
        opacity: .35;
    }
    .notification-row.is-unread {
        background: linear-gradient(90deg, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 75%);
    }
    .notification-row.is-unread::before { opacity: 1; }
    .notification-row.notification-action { --notification-rail: var(--accent); }
    .notification-row.notification-social { --notification-rail: var(--brand-2); }
    .notification-row.notification-creator { --notification-rail: #d9e9ef; }
    .notification-row.notification-achievement { --notification-rail: var(--metal-platinum); }
    .notification-media {
        width: 42px;
        height: 42px;
        align-self: start;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 11px;
        color: var(--brand-2);
        background: var(--icon-plate);
        font-size: 18px;
        font-weight: 700;
    }
    .notification-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .notification-copy {
        min-width: 0;
        padding: 0;
        border: 0;
        color: inherit;
        background: none;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }
    .notification-title,
    .notification-body,
    .notification-time { display: block; }
    .notification-title {
        margin: 0 0 3px;
        color: var(--text);
        font-size: 12.5px;
        font-weight: 700;
        line-height: 1.35;
    }
    .notification-body {
        display: -webkit-box;
        overflow: hidden;
        color: var(--text-3);
        font-size: 11.5px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .notification-time {
        margin-top: 5px;
        color: var(--text-muted);
        font-size: 10.5px;
    }
    .notification-action-label {
        display: inline-block;
        margin-top: 9px;
        color: var(--brand-2);
        font-size: 11px;
        font-weight: 700;
    }
    .notification-view-all {
        width: 100%;
        min-height: 45px;
        padding: 0 16px;
        border: 0;
        color: var(--text-2);
        background: var(--ghost-hover);
        font: inherit;
        font-size: 11.5px;
        font-weight: 650;
        cursor: pointer;
    }
    .notification-view-all:hover { color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 9%, var(--ghost-hover)); }
    .notification-view-all span { margin-left: 4px; color: var(--brand-2); }
    .notification-empty {
        display: flex;
        min-height: 150px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 24px;
        color: var(--text-muted);
        text-align: center;
    }
    .notification-empty strong { color: var(--text-2); font-size: 13px; }
    .notification-empty span { max-width: 245px; font-size: 11.5px; line-height: 1.5; }

    
    #notificationsView {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .notifications-page { min-height: 70vh; padding: 56px 0 90px; }
    .notifications-page-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        padding-bottom: 25px;
        border-bottom: 1px solid var(--border);
    }
    .notifications-kicker {
        display: block;
        margin-bottom: 7px;
        color: var(--accent);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .16em;
        text-transform: uppercase;
    }
    .notifications-page-head h1 {
        margin: 0;
        color: var(--text);
        font-size: clamp(28px, 4vw, 40px);
        letter-spacing: -.035em;
    }
    .notifications-page-head p {
        margin: 9px 0 0;
        color: var(--text-3);
        font-size: 13px;
    }
    .notifications-head-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
    }
    .notifications-preferences {
        margin: 18px 0 2px;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 14px;
        background:
            linear-gradient(110deg, rgba(134, 215, 236, 0.055), transparent 34%),
            var(--surface);
    }
    :where(html[data-theme="light"]) .notifications-preferences { background: linear-gradient(110deg, rgba(233,69,96,.055), transparent 34%), var(--surface); }
    .notifications-preferences[hidden] { display: none; }
    .notifications-preferences > header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 24px;
        padding: 20px 22px 17px;
        border-bottom: 1px solid var(--border);
    }
    .notifications-preferences h2 {
        margin: 0;
        color: var(--text);
        font-size: 18px;
        letter-spacing: -.018em;
    }
    .notifications-preferences header p {
        margin: 5px 0 0;
        color: var(--text-3);
        font-size: 11.5px;
    }
    
    .notification-recovery {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 18px;
        border-bottom: 1px solid var(--border);
        background: var(--surface-2);
        color: var(--text-2);
        font-size: 12.5px;
    }
    .notification-recovery-text { flex: 1 1 auto; }
    .notification-recovery-btn {
        flex: 0 0 auto;
        height: 30px;
        padding: 0 13px;
        border: 1px solid var(--border);
        border-radius: 7px;
        background: transparent;
        color: var(--text-2);
        font: inherit;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        transition: color 0.16s, border-color 0.16s;
    }
    .notification-recovery-btn:hover {
        color: var(--text);
        border-color: var(--text-3);
    }
    .notification-recovery-btn:disabled {
        opacity: 0.5;
        cursor: default;
    }
    .notification-recovery-btn:focus-visible {
        outline: 2px solid var(--brand-2);
        outline-offset: 2px;
    }
    .notification-preference-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .notification-preference-row {
        --preference-signal: var(--text-muted);
        display: grid;
        min-height: 76px;
        grid-template-columns: 4px minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        padding: 13px 18px 13px 0;
        border-bottom: 1px solid var(--border);
    }
    .notification-preference-row:nth-child(odd) {
        border-right: 1px solid var(--border);
    }
    .notification-preference-row.preference-action { --preference-signal: var(--accent); }
    .notification-preference-row.preference-achievement { --preference-signal: var(--metal-platinum); }
    .notification-preference-row.preference-social { --preference-signal: var(--brand-2); }
    .notification-preference-row.preference-creator { --preference-signal: #d9e9ef; }
    .notification-preference-signal {
        align-self: stretch;
        border-radius: 0 3px 3px 0;
        background: var(--preference-signal);
        opacity: .82;
    }
    .notification-preference-copy {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 3px;
    }
    .notification-preference-copy strong {
        color: var(--text-2);
        font-size: 12px;
    }
    .notification-preference-copy span {
        color: var(--text-muted);
        font-size: 10.5px;
        line-height: 1.42;
    }
    .notification-preference-switch {
        position: relative;
        width: 35px;
        height: 20px;
        padding: 0;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-full);
        background: var(--ghost-hover);
        cursor: pointer;
        transition: border-color .15s ease, background .15s ease;
    }
    .notification-preference-switch span {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--text-muted);
        transition: transform .15s ease, background .15s ease;
    }
    .notification-preference-switch.active {
        border-color: rgba(134, 215, 236, 0.7);
        background: rgba(134, 215, 236, 0.22);
    }
    :where(html[data-theme="light"]) .notification-preference-switch.active { border-color: rgba(233,69,96,.7); background: rgba(233,69,96,.22); }
    .notification-preference-switch.active span {
        background: #fff;
        transform: translateX(15px);
    }
    .notification-preference-switch:disabled {
        border-color: rgba(134, 215, 236, 0.42);
        background: rgba(134, 215, 236, 0.16);
        cursor: default;
    }
    :where(html[data-theme="light"]) .notification-preference-switch:disabled { border-color: rgba(233,69,96,.42); background: rgba(233,69,96,.16); }
    .notification-preference-switch:focus-visible {
        outline: 2px solid var(--brand-2);
        outline-offset: 3px;
    }
    
    html[data-theme="light"] .notification-preference-switch {
        border: 1px solid var(--border-hover);
        background: var(--surface-2);
    }
    html[data-theme="light"] .notification-preference-switch span {
        background: var(--text-3);
    }
    html[data-theme="light"] .notification-preference-switch.active {
        border: 1px solid var(--brand-1);
        background: var(--brand-1);
    }
    html[data-theme="light"] .notification-preference-switch.active span {
        background: #fff;
    }
    html[data-theme="light"] .notification-preference-switch:disabled {
        border: 1px solid color-mix(in srgb, var(--brand-1) 55%, var(--border));
        background: color-mix(in srgb, var(--brand-1) 55%, var(--surface));
    }
    .notifications-preferences > footer {
        display: flex;
        min-height: 58px;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        padding: 10px 18px;
    }
    #notificationPreferenceStatus {
        margin-right: auto;
        color: var(--text-muted);
        font-size: 10.5px;
    }
    .notifications-filters {
        display: flex;
        gap: 6px;
        padding: 18px 0 20px;
        overflow-x: auto;
    }
    .notifications-filters button {
        flex: 0 0 auto;
        padding: 7px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        color: var(--text-3);
        background: var(--surface);
        font: inherit;
        font-size: 11.5px;
        cursor: pointer;
    }
    .notifications-filters button.active {
        border-color: var(--accent);
        color: var(--text);
        background: rgba(134, 215, 236, 0.13);
    }
    :where(html[data-theme="light"]) .notifications-filters button.active { background: rgba(233,69,96,.13); }
    .notifications-filter-divider {
        width: 1px;
        margin: 4px 3px;
        background: var(--border);
    }
    .notification-day { margin-top: 20px; }
    .notification-day h2 {
        margin: 0 0 9px;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .12em;
        text-transform: uppercase;
    }
    .notification-day .notification-row {
        min-height: 94px;
        margin-bottom: 7px;
        padding: 16px 46px 16px 19px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background-color: var(--surface);
    }
    .notification-day .notification-row::before {
        inset: 13px auto 13px -1px;
        width: 4px;
    }
    .notification-day .notification-title { font-size: 13.5px; }
    .notification-day .notification-body {
        max-width: 680px;
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
    
    .notification-actions { align-self: center; display: flex; gap: 8px; position: relative; z-index: 1; }
    @media (max-width: 560px) { .notification-actions { grid-column: 2; justify-self: start; } }
    .notification-more {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
    }
    .notification-more summary {
        display: grid;
        width: 30px;
        height: 28px;
        place-items: center;
        border-radius: 50%;
        color: var(--text-muted);
        background: transparent;
        font-size: 12px;
        letter-spacing: 1px;
        cursor: pointer;
        list-style: none;
    }
    .notification-more summary::-webkit-details-marker { display: none; }
    .notification-more summary:hover,
    .notification-more[open] summary {
        color: var(--text);
        background: var(--ghost-hover);
    }
    .notification-more > div {
        position: absolute;
        top: 32px;
        right: 0;
        width: 145px;
        overflow: hidden;
        border: 1px solid var(--border-strong);
        border-radius: 9px;
        background: var(--surface);
        box-shadow: 0 12px 28px rgba(0,0,0,.36);
    }
    .notification-more button {
        width: 100%;
        padding: 9px 11px;
        border: 0;
        border-bottom: 1px solid var(--border);
        color: var(--text-3);
        background: transparent;
        font: inherit;
        font-size: 10.5px;
        text-align: left;
        cursor: pointer;
    }
    .notification-more button:last-child { border-bottom: 0; }
    .notification-more button:hover {
        color: var(--text);
        background: var(--ghost-hover);
    }
    .notification-group-toggle {
        display: block;
        margin: -1px 0 8px 72px;
        padding: 6px 9px;
        border: 0;
        color: var(--brand-2);
        background: transparent;
        font: inherit;
        font-size: 10.5px;
        cursor: pointer;
    }
    .notification-group-toggle:hover { color: var(--text); }
    .toast-action {
        margin-left: 8px;
        padding: 0;
        border: 0;
        color: var(--brand-2);
        background: transparent;
        font: inherit;
        font-weight: 750;
        cursor: pointer;
    }
    .notifications-load-more { display: block; margin: 22px auto 0; }
    .notifications-loading,
    .notifications-page-empty {
        display: flex;
        min-height: 250px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: var(--text-muted);
        text-align: center;
    }
    
    .notifications-load-more-error {
        margin: 0 0 8px;
        font-size: 13px;
        color: var(--text-muted);
        text-align: center;
    }
    .notifications-page-empty strong { color: var(--text-2); font-size: 15px; }
    .notifications-page-empty span { font-size: 12px; }

    @media (max-width: 620px) {
        .notification-panel { position: fixed; top: 62px; right: 12px; }
        .notifications-page { padding-top: 32px; }
        .notifications-page-head { align-items: flex-start; flex-direction: column; }
        .notifications-head-actions { width: 100%; }
        .notifications-head-actions .btn { flex: 1; }
        @media (max-width: 560px) {
            
            .notifications-head-actions { flex-wrap: wrap; }
            .notifications-head-actions .btn { flex: 0 0 auto; white-space: nowrap; }
        }
        .notifications-preferences > header { flex-direction: column; gap: 10px; }
        .notification-preference-list { grid-template-columns: 1fr; }
        .notification-preference-row:nth-child(odd) { border-right: 0; }
        .notifications-preferences > footer { flex-wrap: wrap; }
        #notificationPreferenceStatus { width: 100%; }
        .notification-day .notification-row { padding-right: 39px; }
    }
    @media (prefers-reduced-motion: reduce) {
        .notification-bell,
        .notification-preference-switch,
        .notification-preference-switch span { transition: none; }
    }
    .acct-menu-item {
        display: block;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        color: var(--text-2);
        font-size: 14px;
        padding: 9px 10px;
        border-radius: 6px;
        cursor: pointer;
    }
    .acct-menu-item:hover { background: var(--surface-2); color: var(--text); }
    
    .acct-menu-item[hidden] { display: none; }
    .acct-menu-logout { color: var(--danger); }
    .acct-menu-logout:hover {
        background: color-mix(in srgb, var(--danger) 12%, transparent);
        color: var(--danger-hover);
    }
    .acct-menu-logout:focus-visible {
        outline: 2px solid var(--danger);
        outline-offset: -2px;
    }

    
    
    .auth-page {
        display: flex;
        justify-content: center;
        padding: 30px 0 50px;
    }
    .auth-card {
        position: relative;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 26px 26px 22px;
        width: min(420px, 94vw);
    }

    .auth-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
    .auth-tab {
        flex: 1;
        background: var(--field-bg);
        border: 1px solid var(--border);
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 700;
        padding: 9px 0;
        border-radius: 8px;
        cursor: pointer;
        transition: color 0.2s, border-color 0.2s;
    }
    .auth-tab.active { color: var(--text); border-color: var(--accent); }

    
    .hidden { display: none; }
    .auth-pane.hidden, .reg-step.hidden { display: none; }
    .pw-meter.hidden { display: none; }

    .auth-title { margin: 0 0 14px; font-size: 18px; }
    .auth-hint { color: var(--text-3); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
    .auth-hint a { color: var(--accent); text-decoration: underline; }
    .auth-hint a:hover { color: var(--text); }
    .auth-label { display: block; color: var(--text-2); font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
    .auth-sub { color: var(--text-muted); font-weight: 400; }
    .auth-input {
        width: 100%;
        background: var(--field-bg);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text);
        font-size: 15px;
        padding: 10px 12px;
    }
    .auth-input:focus { outline: none; border-color: var(--dark-accent, var(--border-hover)); }
    .auth-submit {
        width: 100%;
        margin-top: 18px;
        background: var(--accent);
        color: var(--accent-ink);
        border: none;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 700;
        padding: 11px 0;
        cursor: pointer;
        transition: filter 0.2s;
    }
    .auth-submit:hover { filter: brightness(1.1); }
    .auth-submit:disabled { opacity: 0.6; cursor: default; }
    .auth-error { color: var(--danger); font-size: 13px; margin: 12px 0 0; min-height: 1em; }
    .auth-error.auth-note-ok { color: var(--text-3); }
    .auth-linklike {
        display: block;
        background: none;
        border: none;
        padding: 0;
        margin: 10px 0 0;
        color: var(--text-3);
        font-size: 13px;
        text-decoration: underline;
        cursor: pointer;
    }
    .auth-linklike:hover { color: var(--text); }

    
    .oauth-row { margin-top: 14px; }
    .oauth-divider {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-muted);
        font-size: 12px;
        margin: 2px 0 12px;
    }
    .oauth-divider::before,
    .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
    .oauth-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-bottom: 8px;
        padding: 10px 14px;
        background: var(--field-bg);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text);
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }
    .oauth-btn:hover { border-color: var(--brand-2); }
    .oauth-ico { width: 18px; height: 18px; flex: none; }

    
    .security-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }
    .security-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .security-row-name { font-weight: 600; }
    .security-row-state { color: var(--text-3); font-size: 13px; }
    .security-note-error { color: var(--danger); }
    .security-row-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
    
    .security-row-actions.acct-pass-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }

    
    .acct-preview {
        display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
        margin: 0 0 22px; padding: 16px 18px;
        background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .acct-preview-label { font-size: 13px; color: var(--text-3); }
    .acct-preview-empty { font-size: 13px; color: var(--text-3); }
    .acct-mini { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .acct-mini-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
    .acct-mini-initial {
        display: grid; place-items: center;
        background: var(--surface); border: 1px solid var(--border);
        color: var(--text-2); font-size: 18px; font-weight: 600;
    }
    .acct-mini-id { display: grid; gap: 6px; justify-items: start; min-width: 0; }
    .acct-mini-name { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1; overflow-wrap: anywhere; }
    
    .pl-card.acct-pill { margin: 0; background: var(--surface); border-color: var(--border); }

    .acct-group-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text); }
    .acct-group-title span { font-size: 13px; font-weight: 400; color: var(--text-3); }
    .acct-list { display: grid; gap: 8px; margin: 0 0 26px; }
    .acct-list:last-child { margin-bottom: 0; }

    
    .acct-row {
        display: grid; grid-template-columns: 24px 20px minmax(0, 1fr) auto 132px; align-items: center; gap: 14px;
        padding: 10px 14px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .acct-row.pl-row-dragging { opacity: .45; }
    .acct-icon { display: grid; place-items: center; width: 20px; height: 20px; flex: none; }
    .acct-icon img, .acct-icon svg { width: 20px; height: 20px; object-fit: contain; display: block; }
    
    html[data-theme="light"] .acct-icon img[src$="x-white.png"],
    html[data-theme="light"] .acct-pill img[src$="x-white.png"] { filter: invert(1); }
    .acct-who { display: grid; gap: 1px; min-width: 0; }
    .acct-who b, .acct-add b { font-size: 14px; font-weight: 600; }
    .acct-who b { color: var(--text); }
    .acct-handle { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .acct-row-error { font-size: 13px; color: var(--danger); }
    input.acct-input {
        width: 100%; max-width: 280px; min-width: 0; box-sizing: border-box; margin: 0;
        padding: 6px 9px; font: inherit; font-size: 13px; color: var(--text);
        background: var(--field-bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
    }
    input.acct-input:focus { border-color: var(--brand-2); }
    .acct-actions { display: flex; gap: 6px; justify-content: flex-end; }
    .acct-actions .btn, .acct-add .btn { padding: 6px 12px; font-size: 13px; }
    .acct-link {
        padding: 6px 8px; font: inherit; font-size: 13px; color: var(--text-3);
        background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
    }
    .acct-link:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
    .acct-link:disabled, .acct-add .btn:disabled, .acct-actions .btn:disabled { opacity: .45; cursor: default; }
    .acct-row .pref-toggle { margin: 0; }

    .acct-add {
        display: grid; grid-template-columns: 20px 110px minmax(0, 1fr) auto; align-items: center; gap: 8px 14px;
        padding: 10px 14px;
        border: 1px dashed var(--border); border-radius: var(--radius-md);
    }
    .acct-add b { color: var(--text-2); }
    .acct-add .acct-input { padding: 7px 10px; max-width: 300px; }
    .acct-add small { font-size: 13px; color: var(--text-3); }
    .acct-add .acct-row-error { grid-column: 3 / -1; }

    
    .pl-drag-handle {
        flex: none; width: 24px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-sm);
        background: transparent; color: var(--text-muted); cursor: grab;
        display: grid; place-items: center; touch-action: none;
    }
    .pl-drag-handle:active { cursor: grabbing; }
    .pl-drag-handle:hover { color: var(--text-2); background: var(--surface-2); }
    .pl-drag-handle .grip {
        width: 14px; height: 18px;
        background-image: radial-gradient(circle, currentColor 1.35px, transparent 1.5px);
        background-size: 7px 6px;
    }

    .acct-row :focus-visible,
    .acct-add :focus-visible,
    .acct-preview :focus-visible,
    .acct-danger :focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

    
    .acct-col { flex: 1; min-width: 0; max-width: 720px; display: grid; gap: 16px; }
    .acct-col .account-content { max-width: none; }
    .acct-danger {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px;
        padding: 20px 22px;
        background: color-mix(in srgb, var(--danger) 5%, var(--surface));
        border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--border));
        border-radius: var(--radius-lg);
    }
    .acct-danger[hidden] { display: none; }
    .acct-danger h3 { grid-column: 1; margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
    .acct-danger > p { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-3); }
    .acct-danger > p b { color: var(--text-2); font-weight: 600; }
    .acct-danger > p.auth-error { color: var(--danger); }
    .acct-danger > .btn, .acct-danger-actions { grid-column: 2; grid-row: 1 / span 2; }
    .acct-danger > .btn { white-space: nowrap; }
    .acct-danger-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
    .acct-danger .security-change-form { grid-column: 1 / -1; padding: 6px 0 0; border-bottom: 0; }
    
    .acct-delete-when { display: grid; gap: 8px; margin: 4px 0 14px; }
    .acct-delete-when label { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
    .acct-delete-when input { margin: 2px 0 0; accent-color: var(--danger); flex-shrink: 0; }
    .acct-delete-when label.is-disabled { color: var(--text-muted); cursor: default; }
    .btn.acct-btn-danger {
        background: transparent; color: var(--danger-hover); font-weight: 600;
        border-color: color-mix(in srgb, var(--danger) 55%, var(--border));
    }
    .btn.acct-btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: var(--danger); }
    .btn.acct-btn-danger:disabled { opacity: .55; cursor: default; }
    
    html[data-theme="light"] .btn.acct-btn-danger { color: var(--danger); }

    @media (max-width: 760px) {
        .acct-col { width: 100%; max-width: none; }
        .acct-danger { grid-template-columns: minmax(0, 1fr); }
        .acct-danger > .btn, .acct-danger-actions { grid-column: 1; grid-row: auto; justify-self: start; justify-content: flex-start; }
        .acct-row { grid-template-columns: 24px 20px minmax(0, 1fr) auto; row-gap: 8px; }
        .acct-row .pref-toggle { grid-column: 3 / -1; justify-self: start; width: auto; }
        .acct-row .pref-toggle-opt { flex: none; }
        .acct-row .acct-actions { grid-column: 3 / -1; grid-row: 3; justify-content: flex-start; }
        .acct-add { grid-template-columns: 20px minmax(0, 1fr) auto; }
        .acct-add .acct-input, .acct-add small, .acct-add .acct-row-error { grid-column: 1 / -1; max-width: none; }
        .acct-add .btn { grid-column: 3; grid-row: 1; }
    }
    .security-change-form {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        max-width: 380px;
    }
    .security-change-actions { display: flex; gap: 8px; margin-top: 14px; }

    
    .yd-row { border-top: 1px solid var(--border); }
    .yd-row .security-row-state { line-height: 1.5; }
    .yd-row .security-row-state b { color: var(--text-2); font-weight: 600; }
    .yd-row .btn:disabled { opacity: .5; cursor: default; }
    .yd-row .btn:disabled:hover { border-color: var(--border); color: var(--text-2); }
    .yd-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; flex-shrink: 0; }
    .yd-form .auth-hint { margin: 10px 0 0; }
    .yd-note {
        display: grid; gap: 4px; margin: 14px 0 0; padding: 12px 14px;
        border-radius: var(--radius-md); border: 1px solid var(--border);
        background: var(--surface-2); font-size: 13px; line-height: 1.55; color: var(--text-2);
    }
    .yd-note strong { color: var(--text); font-weight: 600; font-size: 14px; }
    .yd-note.ok { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); }
    .yd-note.warn { border-color: color-mix(in srgb, var(--caution) 55%, var(--border)); }
    .yd-contents { margin: 20px 0 0; }
    .yd-contents h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
    .yd-contents > p { margin: 0 0 10px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
    .yd-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
    .yd-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.5; }
    .yd-list b { font-weight: 600; color: var(--text); }
    .yd-list span { color: var(--text-3); }
    .yd-contents > .yd-foot { margin: 16px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.55; }
    .yd-foot a { color: var(--accent); }
    @media (max-width: 760px) {
        .yd-row { flex-direction: column; align-items: stretch; }
        .yd-actions { justify-content: flex-start; }
        .yd-list li { grid-template-columns: minmax(0, 1fr); }
    }

    
    .dl-card .auth-title { font-size: 20px; margin: 0 0 8px; }
    .dl-card .auth-hint b { color: var(--text); font-weight: 600; }
    .dl-file {
        display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 14px;
        background: var(--field-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .dl-file svg { width: 26px; height: 26px; flex: none; stroke: var(--text-3); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
    .dl-file-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
    .dl-file-meta { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
    .dl-card .auth-submit { display: block; box-sizing: border-box; width: 100%; text-align: center; text-decoration: none; }
    .dl-card .dl-after { margin: 14px 0 0; }
    .dl-card .auth-error:empty { display: none; }

    
    .pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
    .pw-meter-track {
        flex: 1;
        height: 4px;
        border-radius: 2px;
        background: var(--border);
        overflow: hidden;
    }
    .pw-meter-fill { display: block; height: 100%; width: 0; border-radius: 2px; transition: width 0.25s; }
    .pw-meter-label { font-size: 12px; white-space: nowrap; }
    .pw-weak .pw-meter-fill { background: #e0565e; }
    .pw-weak .pw-meter-label { color: #e0565e; }
    .pw-fair .pw-meter-fill { background: #e8a33d; }
    .pw-fair .pw-meter-label { color: #e8a33d; }
    .pw-good .pw-meter-fill { background: #8fd14f; }
    .pw-good .pw-meter-label { color: #8fd14f; }
    .pw-strong .pw-meter-fill { background: #3ecf8e; }
    .pw-strong .pw-meter-label { color: #3ecf8e; }

    
    
    .rw-track { display: flex; gap: 8px; margin: 2px 0 20px; }
    .rw-slot {
        flex: 1; height: 26px; display: grid; place-items: center;
        border: 1px dashed var(--border-hover); border-radius: 4px 0 4px 4px;
        font-size: 10px; font-weight: 800; letter-spacing: .08em;
        text-transform: uppercase; color: var(--text-muted);
    }
    .rw-slot.cur { border-color: var(--brand-2); border-style: dashed; color: var(--brand-2); }
    .rw-slot.done { border: none; padding: 0; }
    .rw-slot.done .stamp { width: 100%; height: 26px; justify-content: center; }
    
    .rw-h {
        font-size: 16px; font-weight: 750; margin: 0 0 4px; color: var(--text);
        letter-spacing: -0.01em;
    }
    .rw-sub { color: var(--text-3); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
    .rw-sub a { color: var(--accent); text-decoration: underline; }
    .rw-sub b { color: var(--text-2); }
    
    .rw-callout {
        display: flex; gap: 9px; align-items: flex-start;
        background: var(--surface-2); border: 1px solid var(--border);
        border-left: 3px solid var(--caution);
        border-radius: 8px; padding: 9px 12px; margin: 0 0 14px;
        font-size: 12.5px; color: var(--text-2); line-height: 1.45;
    }
    .rw-callout svg { width: 15px; height: 15px; flex: none; margin-top: 1px; stroke: var(--caution); fill: none; stroke-width: 2; }
    
    .rw-identity {
        display: flex; align-items: center; gap: 10px;
        background: var(--surface-2); border: 1px solid var(--border);
        border-radius: 8px; padding: 10px 12px; margin: 0 0 6px;
    }
    .rw-identity .plate { font-size: 12.5px; }
    .rw-identity-spacer { flex: 1; }
    .rw-back {
        background: none; border: none; padding: 0; margin: 12px 0 0;
        color: var(--text-muted); font-size: 12.5px; text-decoration: underline;
        cursor: pointer; font-family: inherit;
    }
    .rw-back:hover { color: var(--text); }
    .rw-notyou {
        background: none; border: none; padding: 0; color: var(--text-muted);
        font-size: 12px; text-decoration: underline; cursor: pointer; font-family: inherit;
    }
    .rw-notyou:hover { color: var(--text); }
    
    .rw-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: rw; }
    .rw-steps li {
        counter-increment: rw; position: relative; padding: 0 0 8px 26px;
        font-size: 13px; line-height: 1.5; color: var(--text-3);
    }
    .rw-steps li::before {
        content: counter(rw); position: absolute; left: 0; top: 1px;
        width: 17px; height: 17px; border-radius: 50%;
        border: 1px solid var(--border-hover); color: var(--text-2);
        font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
        font-variant-numeric: tabular-nums;
    }
    .rw-steps b { color: var(--text-2); }
    .rw-steps a { color: var(--accent); text-decoration: underline; }
    
    .rw-code-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 4px; }
    .rw-code {
        flex: 1; background: var(--dark-surface, #0f1830); border: 1px dashed var(--dark-border-hover, #2a4a7a); border-radius: 8px;
        color: #f0c040; font-size: 22px; font-weight: 700; letter-spacing: 4px;
        text-align: center; padding: 13px 12px 12px; user-select: all;
        font-variant-numeric: tabular-nums; font-family: inherit;
    }
    .rw-copy {
        background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
        border-radius: 8px; font-size: 12.5px; font-weight: 600; padding: 0 14px;
        cursor: pointer; font-family: inherit;
    }
    .rw-copy:hover { border-color: var(--border-hover); color: var(--text); }
    
    .rw-back:focus-visible,
    .rw-notyou:focus-visible,
    #regCopyBtn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

    
    .account-page {
        
        width: 100%;
        padding: 30px 0 60px;
    }
    .account-title { margin: 0 0 20px; font-size: 26px; }
    
    .account-suspend-banner {
        margin: 0 0 20px;
        padding: 12px 16px;
        border: 1px solid var(--danger, #d9534f);
        border-radius: var(--radius-md);
        background: var(--surface-2);
        color: var(--text);
        font-size: 14px;
    }
    .account-suspend-banner[hidden] { display: none; }
    .account-layout {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }
    .account-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 180px;
        flex-shrink: 0;
    }
    .account-nav-item {
        text-align: left;
        background: transparent;
        border: 1px solid transparent;
        color: var(--text-3);
        font-size: 14px;
        font-weight: 600;
        padding: 10px 12px;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }
    .account-nav-item:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
    .account-nav-item.active { background: var(--surface); border-color: var(--border); color: var(--text); }
    .account-nav-item:disabled { opacity: 0.45; cursor: default; }

    .account-content {
        
        flex: 1;
        min-width: 0;
        max-width: 720px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 20px 22px;
    }
    .account-section-head h2 { margin: 0 0 6px; font-size: 18px; }
    .account-hint { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin: 0 0 18px; }

    .pref-list { border-top: 1px solid var(--border); }
    .pref-row {
        display: flex;
        min-height: 66px;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .pref-copy { display: grid; gap: 4px; min-width: 0; }
    .pref-label { font-size: 14px; font-weight: 600; color: var(--text-2); }
    .pref-copy small { color: var(--text-muted); font-size: 11.5px; line-height: 1.4; }
    .pref-toggle {
        display: flex;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 3px;
        gap: 3px;
    }
    .pref-toggle-opt {
        background: transparent;
        border: none;
        border-radius: 6px;
        color: var(--text-3);
        font-size: 13px;
        font-weight: 600;
        padding: 7px 12px;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }
    .pref-toggle-opt:hover { color: var(--text); }
    .pref-toggle-opt.active { background: var(--surface); color: var(--text); }

    .pref-select {
        width: min(280px, 44vw);
        min-height: 38px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface-2);
        color: var(--text-2);
        padding: 8px 34px 8px 11px;
        font: inherit;
        font-size: 13px;
    }
    .pref-select:hover { border-color: color-mix(in srgb, var(--brand-2) 45%, var(--border)); }
    .pref-select:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

    .pref-switch {
        position: relative;
        width: 42px;
        height: 24px;
        flex: 0 0 auto;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: var(--radius-full);
        background: var(--ghost-hover);
        cursor: pointer;
        transition: border-color .15s ease, background .15s ease;
    }
    .pref-switch span {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--text-muted);
        transition: transform .15s ease, background .15s ease;
    }
    .pref-switch.active {
        border-color: color-mix(in srgb, var(--brand-2) 72%, var(--border));
        background: color-mix(in srgb, var(--brand-2) 22%, transparent);
    }
    .pref-switch.active span { background: var(--text); transform: translateX(18px); }
    .pref-switch:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
    
    .pref-toggle-opt:disabled,
    .pref-select:disabled,
    .pref-switch:disabled { opacity: .55; cursor: default; }

    .pref-actions { display: flex; gap: 10px; margin-top: 20px; }

    
    
    
    .banner-preview {
        position: relative;
        overflow: hidden;
        margin: 6px 0 30px;
        border-radius: 9px;
    }
    .banner-preview iframe {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        border: 0;
        background: transparent;
        transform-origin: 0 0;
        pointer-events: none;
    }

    
    
    .banner-search-label { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
    .banner-search-text { font-size: 13px; font-weight: 600; color: var(--text-2); }
    .banner-search { margin: 0; }

    .banner-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 16px;
        margin-top: 18px;
    }
    .banner-tile {
        position: relative;
        display: grid;
        gap: 9px;
        align-content: start;
        min-width: 0;
        cursor: pointer;
    }
    
    .banner-tile-input {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        opacity: 0;
        pointer-events: none;
    }
    .banner-tile-art {
        position: relative;
        display: block;
        aspect-ratio: 2 / 1;
        overflow: hidden;
        border-radius: var(--radius-md);
        background: var(--surface-2);
        transition: box-shadow .15s ease;
    }
    .banner-tile-art img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: filter .15s ease;
    }
    
    html[data-theme="light"] .banner-tile-art::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        box-shadow: inset 0 0 0 1px rgba(23, 32, 58, .1);
        pointer-events: none;
    }
    .banner-tile:hover .banner-tile-art img { filter: brightness(1.08); }
    .banner-tile:hover .banner-tile-art { box-shadow: 0 0 0 1px var(--border-hover); }
    
    .banner-tile:has(.banner-tile-input:checked) .banner-tile-art {
        box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-2);
    }
    .banner-tile-check {
        position: absolute;
        top: 8px;
        right: 8px;
        display: none;
        place-items: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--brand-2);
        color: var(--accent-ink);
        box-shadow: 0 1px 6px rgba(0, 0, 0, .45);
    }
    .banner-tile-check svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
    .banner-tile:has(.banner-tile-input:checked) .banner-tile-check { display: grid; }
    
    .banner-tile:has(.banner-tile-input:focus-visible) .banner-tile-art {
        outline: 2px solid var(--accent);
        outline-offset: 6px;
    }
    .banner-tile-text { display: grid; gap: 3px; min-width: 0; }
    .banner-tile-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        color: var(--text-2);
        font-size: 13.5px;
        font-weight: 600;
        line-height: 1.35;
    }
    .banner-tile-text small { color: var(--text-muted); font-size: 12px; line-height: 1.35; }
    .banner-tile:has(.banner-tile-input:checked) .banner-tile-name { color: var(--text); }

    .banner-more-row { display: flex; justify-content: center; margin-top: 26px; }
    .banner-more-row[hidden] { display: none; }
    .banner-empty { margin: 18px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
    .banner-empty[hidden] { display: none; }
    .banner-note { margin: 24px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
    .banner-actions { margin-top: 18px; }
    .banner-actions[hidden],
    .banner-search-label[hidden] { display: none; }
    .banner-actions .btn[hidden] { display: none; }

    @media (max-width: 560px) {
        .banner-search-label { max-width: none; }
        .banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
        .banner-tile-name { font-size: 13px; }
        .banner-tile-check { top: 6px; right: 6px; width: 22px; height: 22px; }
        .banner-actions { flex-wrap: wrap; }
    }

    @media (prefers-reduced-motion: reduce) {
        .banner-tile-art,
        .banner-tile-art img { transition: none; }
    }

    
    
    .banner-savebar {
        position: fixed;
        z-index: 50;
        bottom: 16px;
        left: 16px;
        right: 16px;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 10px 10px 10px 18px;
        border-radius: var(--radius-lg);
        background: var(--surface-2);
        box-shadow: var(--shadow-2);
        color: var(--text-2);
        font-size: 13.5px;
    }
    html[data-theme="light"] .banner-savebar {
        background: var(--surface);
        border: 1px solid var(--border);
    }
    .banner-savebar[hidden] { display: none; }
    .banner-savebar.is-entering { animation: banner-savebar-in .18s ease-out both; }
    @keyframes banner-savebar-in {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .banner-savebar-text {
        display: flex;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
    }
    .banner-savebar-text b {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--text);
        font-weight: 600;
    }
    .banner-savebar-text span { flex: none; }
    .banner-savebar-cancel {
        flex: none;
        padding: 8px 6px;
        color: var(--text-2);
        font-size: 14px;
        font-weight: 600;
    }
    .banner-savebar-cancel:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
    .banner-savebar .btn { flex: none; }
    
    body.has-banner-savebar { padding-bottom: calc(var(--site-frame-padding) + 72px); }

    @media (max-width: 760px) {
        body.has-banner-savebar { padding-bottom: 88px; }
    }
    @media (max-width: 560px) {
        .banner-savebar { gap: 6px; padding: 7px 7px 7px 13px; font-size: 13px; }
        .banner-savebar-cancel { padding: 8px 4px; }
        .banner-savebar .btn { padding: 8px 12px; }
    }
    @media (prefers-reduced-motion: reduce) {
        .banner-savebar.is-entering { animation: none; }
    }

    
    .region-claim-current {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }
    .region-claim-current-flag {
        width: 34px;
        height: 26px;
        border-radius: 4px;
        object-fit: cover;
        flex: none;
        box-shadow: 0 0 0 1px var(--border);
    }
    .region-claim-current-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .region-claim-current-name { font-weight: 600; }
    .region-claim-provenance { color: var(--text-muted); font-size: 12px; }
    .region-claim-cooldown { color: var(--text-2); font-size: 13px; margin: 12px 0 0; }
    .region-claim-hint { color: var(--text-muted); font-size: 12.5px; margin: 12px 0 0; }

    
    .region-claim-undo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
        margin-top: 12px;
    }
    .region-claim-undo-line { color: var(--text-2); font-size: 13px; margin: 0; flex: 1 1 240px; min-width: 0; }
    .region-claim-undo-btn { flex: none; }

    .region-claim-picker { margin-top: 18px; }
    .region-claim-search-label { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
    .region-claim-search-text { font-size: 13px; font-weight: 600; color: var(--text-2); }
    .region-claim-search { margin: 0; }
    .region-claim-grid {
        margin-top: 12px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
        max-height: 320px;
        overflow-y: auto;
        padding: 2px;
    }
    .region-claim-flag {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 8px 10px;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-2);
        font: inherit;
        font-size: 13px;
        text-align: left;
        cursor: pointer;
        min-width: 0;
        transition: border-color .15s ease, background .15s ease;
    }
    .region-claim-flag img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--border); }
    .region-claim-flag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .region-claim-flag:hover { border-color: var(--brand-2); color: var(--text); }
    .region-claim-flag.is-selected {
        border-color: var(--brand-2);
        background: color-mix(in srgb, var(--brand-2) 18%, transparent);
        color: var(--text);
    }
    .region-claim-flag-current { box-shadow: inset 0 0 0 1px var(--border); }
    .region-claim-actions { display: flex; gap: 10px; margin-top: 16px; }

    @media (max-width: 560px) {
        .pref-row:first-child,
        .pref-timezone-row { align-items: flex-start; flex-direction: column; }
        .pref-toggle { width: 100%; box-sizing: border-box; }
        .pref-toggle-opt { flex: 1; }
        .pref-select { width: 100%; box-sizing: border-box; }
    }

    .btn-success { background: var(--success); color: var(--bg); font-weight: 600; }
    .btn-success:hover:not(:disabled) { filter: brightness(0.9); }
    .btn-success:disabled { opacity: 0.45; cursor: default; }

    .hidden-games-empty { color: var(--text-muted); font-size: 14px; padding: 10px 0; }

    .hidden-games-toolbar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }
    .hidden-games-toolbar label {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--text-3);
        font-size: 13px;
        cursor: pointer;
    }
    .unhide-btn {
        margin-left: auto;
        background: var(--accent);
        color: var(--accent-ink);
        border: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        padding: 8px 16px;
        cursor: pointer;
        transition: filter 0.2s;
    }
    .unhide-btn:hover { filter: brightness(1.1); }
    .unhide-btn:disabled { opacity: 0.4; cursor: default; filter: none; }

    .hidden-game-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 6px;
        border-radius: 8px;
        transition: background 0.15s;
    }
    .hidden-game-row:hover { background: var(--surface-2); }
    .hidden-game-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
    .hidden-game-row img { width: 40px; height: 40px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
    .hidden-game-name { color: var(--text-2); font-size: 14px; flex: 1; min-width: 0; }

    
    .widget-url-row { display: flex; gap: 8px; }
    .widget-url-input {
        flex: 1;
        min-width: 0;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        color: var(--text-2);
        font-size: 13px;
        padding: 8px 12px;
    }
    .widget-token-actions { display: flex; gap: 10px; margin-top: 10px; }

    .widget-mode-block { margin-top: 22px; }
    .widget-mode-block > .pref-label { display: block; margin-bottom: 8px; }
    .widget-mode-toggle { width: max-content; }
    .widget-pinned-current {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }
    .widget-pinned-current img { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
    .widget-pinned-current span:not(.account-hint) { font-size: 14px; color: var(--text-2); font-weight: 600; }

    
    .confirm-overlay {
        position: fixed;
        inset: 0;
        background: rgba(4, 6, 10, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 200;
        padding: 20px;
    }
    :where(html[data-theme="light"]) .confirm-overlay { background: rgba(6,10,20,0.6); }
    
    #confirmModal { z-index: 400; }
    .confirm-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 22px;
        width: min(380px, 100%);
        box-shadow: 0 24px 70px rgba(0,0,0,0.5);
    }
    .confirm-message { margin: 0 0 20px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
    .media-modal { width: min(92vw, 420px); }
    .media-modal-title { font-size: 15px; font-weight: 700; margin: 0 0 14px; }
    .media-modal-input { margin-bottom: 8px; }
    .media-modal-error { margin: 0 0 16px; color: #e0565e; font-size: 12px; }
    .confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
    .confirm-btn {
        border: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        padding: 9px 16px;
        cursor: pointer;
    }
    .confirm-cancel { background: var(--border); color: var(--text-2); }
    .confirm-cancel:hover { background: var(--dark-border-hover, #1c4380); color: var(--text); }
    .confirm-ok { background: var(--accent); color: var(--accent-ink); }
    .confirm-ok:hover:not(:disabled) { filter: brightness(1.1); }
    .confirm-ok:disabled { opacity: 0.45; cursor: default; }

    
    .profile-report-btn {
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text-muted);
        border-radius: 999px;
        font-size: 11.5px;
        font-weight: 600;
        padding: 3px 11px;
        cursor: pointer;
        line-height: 1.4;
    }
    .profile-report-btn:hover { border-color: var(--text-muted); color: var(--text-2); }
    
    .report-card {
        width: min(420px, 100%);
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        overflow-y: auto;
    }
    .report-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .report-head h3 { margin: 0; font-size: 16px; color: var(--text); }
    .report-field { display: block; margin-bottom: 14px; }
    .report-field > span {
        display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
        text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px;
    }
    .report-card select.field, .report-card textarea.field {
        background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
        padding: 8px 10px; font-size: 13px; color: var(--text); width: 100%; font-family: inherit; box-sizing: border-box;
    }
    .report-card textarea.field { resize: vertical; min-height: 84px; max-height: 40vh; }
    
    .report-category-note { margin: -6px 0 14px; font-size: 13px; color: var(--text-2); }
    .report-actions { display: flex; gap: 10px; justify-content: flex-end; }
    
    .report-card input[type="text"].field {
        background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
        padding: 8px 10px; font-size: 13px; color: var(--text); width: 100%; font-family: inherit; box-sizing: border-box;
    }
    .report-picker-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
        text-transform: uppercase; color: var(--text-muted); margin: 10px 0 5px; }
    .report-picker-label em { font-style: normal; color: var(--text-3); font-weight: 600; }
    .report-picker-list { max-height: 200px; overflow-y: auto; margin-top: 6px;
        border: 1px solid var(--border); border-radius: var(--radius-sm); }
    .report-picker-list:empty { display: none; }
    .report-picker-item { display: block; width: 100%; text-align: left; background: none; border: 0;
        border-bottom: 1px solid var(--border); padding: 8px 10px; font-size: 13px; color: var(--text);
        font-family: inherit; cursor: pointer; }
    .report-picker-item:last-child { border-bottom: 0; }
    .report-picker-item:hover { background: var(--surface-2); }
    .report-picker-item.is-selected { background: var(--surface-2); font-weight: 600; }
    .report-picker-item small { display: block; color: var(--text-3); font-weight: 400; margin-top: 2px; }
    .report-picker-check { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px;
        border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); cursor: pointer; }
    .report-picker-check:last-child { border-bottom: 0; }
    .report-picker-check input { margin-top: 2px; }
    .report-picker-check small { display: block; color: var(--text-3); margin-top: 2px; }

    
    .game-community-insight {
        display: flex; align-items: center; gap: 7px; min-height: 18px; margin-top: 8px;
        color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums;
    }
    .game-community-insight:empty { display: none; }
    .game-community-insight strong { color: var(--text); font-size: 13px; }
    .game-insight-sep { color: var(--text-muted); }
    .game-difficulty-action { display: flex; align-items: center; gap: 7px; min-height: 18px; margin-top: 3px; }
    .game-difficulty-action:empty { display: none; }
    .game-difficulty-rate {
        padding: 0; border: 0; background: none; color: var(--accent); font: inherit;
        font-size: 11.5px; font-weight: 650; cursor: pointer;
    }
    .game-difficulty-rate:hover { color: var(--text); }
    .game-difficulty-rate:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
    
    .slip {
        width: min(520px, 100%); padding: 22px 24px 20px; text-align: left;
        background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
        box-shadow: 0 28px 80px rgba(0,0,0,.35);
    }
    .slip-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
    .slip-art { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
    .slip-art-blank { background: var(--surface-3); }
    .slip-game { min-width: 0; }
    .slip-game b { display: block; color: var(--text); font-size: 13.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .slip-game span { color: var(--text-muted); font-size: 11.5px; }
    .slip .stamp { margin-left: auto; }
    .slip h2 { margin: 0 0 2px; color: var(--text); font-size: 19px; font-weight: 800; }
    .slip-help { margin: 0 0 16px; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
    .slip-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
    .slip-scale button {
        position: relative; height: 40px; border: 1px solid var(--border); border-radius: 7px;
        background: var(--surface-2); color: var(--text-3); font: inherit; font-size: 12px;
        font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
        transition: transform .14s ease, box-shadow .14s ease;
    }
    .slip-scale button:hover { border-color: var(--border-hover); color: var(--text); }
    .slip-scale button:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .slip-scale button.dz-fill { background: var(--dz); border-color: transparent; color: #0f1419; }
    .slip-scale button.picked { transform: translateY(-3px); box-shadow: 0 3px 0 var(--stamp-shadow); font-size: 14px; font-weight: 800; }
    .slip-anchors { display: flex; justify-content: space-between; margin: 8px 2px 0; color: var(--text-muted); font-size: 10.5px; }
    .slip-reading { margin: 14px 0 0; color: var(--text-2); font-size: 13px; min-height: 18px; }
    .slip-reading strong { font-size: 15px; font-variant-numeric: tabular-nums; }
    .slip-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
    .slip-actions .btn { min-width: 112px; }
    .slip-group { margin: 0 0 14px; }
    .slip-group-label { margin: 0 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
    .slip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .slip-chip { padding: 5px 11px; border-radius: 7px; font-size: 12.5px; cursor: pointer; }
    .slip-chip:hover { border-color: var(--border-hover); }
    .slip-chip:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .slip-chip.selected { border-color: var(--brand-2); color: var(--text); }
    .slip-chip.selected::before { content: "\2713"; color: var(--brand-2); font-weight: 800; }

    @media (prefers-reduced-motion: reduce) {
        
        .slip-scale button { transition: none; }
    }
    @media (max-width: 560px) {
        .slip { padding: 20px 18px 18px; }
        .slip-scale { gap: 4px; }
        .slip-scale button { height: 38px; font-size: 11px; }
        .slip-actions { flex-direction: column-reverse; }
        .slip-actions .btn { width: 100%; }
    }

    
    
    .xp-dialog {
        position: relative;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 20px 22px 18px;
        width: min(760px, 100%);
        max-height: 90vh;
        overflow: auto;
        box-shadow: 0 24px 70px rgba(0,0,0,0.5);
    }
    .xp-x {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: transparent;
        color: var(--text-3);
        font-size: 12px;
        cursor: pointer;
    }
    .xp-x:hover { border-color: var(--border-hover); color: var(--text); }

    .xp-head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        padding-right: 40px;
    }
    .xp-art {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        flex: none;
        overflow: hidden;
        background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
    }
    .xp-art-round { border-radius: 50%; }
    .xp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .xp-id { min-width: 0; flex: 1; }
    .xp-name {
        font-size: 13.5px;
        font-weight: 750;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .xp-ctx { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
    .xp-stamp {
        flex: none;
        padding: 5px 10px;
        background: var(--plat-blue);
        color: var(--stamp-ink);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
        clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
        box-shadow: 0 2px 0 var(--stamp-shadow);
    }

    .xp-body {
        display: grid;
        grid-template-columns: 208px 1fr;
        gap: 20px;
        align-items: start;
    }
    .xp-rail { min-width: 0; }
    .xp-group { margin-bottom: 18px; }
    .xp-group:last-child { margin-bottom: 0; }
    .xp-group-label {
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: var(--text-3);
        margin-bottom: 8px;
    }

    .xp-shapes { display: flex; flex-direction: column; gap: 10px; }
    .xp-shape {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        padding: 9px 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface-2);
        color: var(--text-2);
        font: inherit;
        cursor: pointer;
        transition: border-color .12s, transform .12s, box-shadow .12s;
    }
    .xp-shpbox { width: 42px; display: grid; place-items: center; flex: none; }
    .xp-shp { display: block; border: 1.5px solid currentColor; border-radius: 3px; opacity: .75; }
    .xp-shp-wide { width: 40px; height: 23px; }
    .xp-shp-sq { width: 30px; height: 30px; }
    .xp-shp-tall { width: 19px; height: 34px; }
    .xp-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
    .xp-txt b { font-size: 12px; font-weight: 700; }
    .xp-txt small { font-size: 10px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .xp-shape:hover { border-color: var(--border-hover); }
    .xp-shape.is-active {
        border-color: var(--brand-2);
        color: var(--text);
        transform: translateY(-2px);
        box-shadow: 0 3px 0 var(--stamp-shadow);
    }
    .xp-shape.is-active .xp-shp { color: var(--brand-2); opacity: 1; }
    .xp-shape:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    @media (prefers-reduced-motion: reduce) {
        .xp-shape { transition: none; }
    }
    
    .xp-shapes.xp-shapes-pair { flex-direction: row; gap: 8px; }
    .xp-shapes-pair .xp-shape { justify-content: center; padding: 10px 8px; }
    .xp-shapes-pair .xp-txt { align-items: center; }
    
    #cardEditorModal .xp-stage img { max-height: 62vh; }

    .xp-switchrow { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
    .xp-switchrow input { position: absolute; opacity: 0; width: 0; height: 0; }
    .xp-switch {
        width: 38px;
        height: 20px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--surface-3);
        position: relative;
        flex: none;
        transition: background .12s, border-color .12s;
    }
    .xp-switch .knob {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--text-3);
        transition: transform .12s, background .12s;
    }
    .xp-switch.on { background: var(--brand-2); border-color: var(--brand-2); }
    .xp-switch.on .knob { transform: translateX(18px); background: var(--stamp-ink); }
    .xp-switchrow b { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
    .xp-switchrow small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; margin-top: 1px; }
    .xp-switchrow input:focus-visible + .xp-switch { outline: 2px solid var(--brand-2); outline-offset: 2px; }

    .xp-scope {
        width: 100%;
        padding: 8px 30px 8px 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface-2);
        color: var(--text);
        font: inherit;
        font-size: 12.5px;
        font-weight: 600;
        cursor: pointer;
    }
    .xp-scope:hover { border-color: var(--border-hover); }
    .xp-hint { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--caution); }

    .xp-stage {
        position: relative;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 10px;
        display: grid;
        place-items: center;
        padding: 22px;
        min-height: 260px;
        min-width: 0;
    }
    .xp-stage img {
        max-width: 100%;
        max-height: 100%;
        display: block;
        box-shadow: 0 10px 34px rgba(0,0,0,.4);
        transition: opacity .15s;
    }
    .xp-stage img.is-loading { opacity: .35; }
    
    .xp-stage-msg {
        display: grid;
        gap: 6px;
        max-width: 340px;
        text-align: center;
        color: var(--text-2);
        font-size: 14px;
        line-height: 1.5;
    }
    .xp-stage-msg[hidden] { display: none; }
    .xp-stage-msg strong { color: var(--text); font-size: 15px; }
    .xp-stage-msg p { margin: 0; }
    .xp-stage-msg .xp-stage-sub { color: var(--text-muted); font-size: 13px; }
    
    .xp-stage-mosaic.xp-stage-mosaic {
        height: 70vh;
        align-items: safe center;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: stable;
    }
    .xp-stage-mosaic.xp-stage-mosaic img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
    }
    
    .xp-spinner {
        position: absolute;
        inset: 0;
        margin: auto;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 3px solid var(--border);
        border-top-color: var(--brand-2);
        animation: spin 0.8s linear infinite;
    }

    .xp-footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 14px;
        border-top: 1px solid var(--border);
        margin-top: 16px;
        padding-top: 14px;
    }

    @media (max-width: 640px) {
        .xp-body { grid-template-columns: 1fr; }
    }

    

    
    #cardEditorModal .xp-stage img {
        box-shadow: none;
        filter: drop-shadow(0 10px 17px rgba(0, 0, 0, .4));
    }

    @media (max-width: 640px) {
        #cardEditorModal.confirm-overlay { padding: 12px; }
        #cardEditorModal .xp-dialog { padding: 16px 16px 0; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
        
        #cardEditorModal .xp-head { flex-wrap: wrap; align-items: flex-start; row-gap: 8px; margin-bottom: 14px; }
        #cardEditorModal .xp-name {
            white-space: normal;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            line-height: 1.3;
        }
        #cardEditorModal .xp-ctx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        #cardEditorModal .xp-id { flex: 1 1 calc(100% - 52px); }
        #cardEditorModal .xp-stamp { margin-left: 52px; }
        
        #cardEditorModal .xp-body { gap: 16px; }
        #cardEditorModal .xp-stage { order: -1; min-height: 0; padding: 14px; }
        #cardEditorModal .xp-stage img { max-height: 46vh; }
        
        #cardEditorModal .xp-footer {
            position: sticky;
            bottom: 0;
            z-index: 1;
            background: var(--surface);
            margin-top: 16px;
            padding: 12px 0 16px;
        }
    }
    

    
    #toastContainer {
        position: fixed;
        bottom: 24px;
        right: 24px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        
        z-index: 410;
    }
    .toast {
        background: var(--surface);
        border: 1px solid var(--border);
        border-left: 3px solid var(--success);
        border-radius: 8px;
        padding: 12px 16px;
        color: var(--text-2);
        font-size: 13px;
        box-shadow: 0 12px 34px rgba(0,0,0,0.5);
        max-width: 320px;
        animation: toast-in 0.25s ease both;
    }
    .toast a { color: var(--success); font-weight: 600; }
    @keyframes toast-in {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @media (max-width: 560px) {
        #toastContainer { left: 12px; right: 12px; bottom: 12px; }
        .toast { max-width: 100%; }
    }

    @media (max-width: 760px) {
        .account-layout { flex-direction: column; }
        
        .account-nav { flex-direction: row; width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
        .account-nav::-webkit-scrollbar { display: none; }
        .account-nav-item { white-space: nowrap; flex: 0 0 auto; }
    }

    
    @media (max-width: 760px) {
        
        [data-scrollfade] { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
        [data-scrollfade]::-webkit-scrollbar { display: none; }
        [data-scrollfade].nav-fade-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
        [data-scrollfade].nav-fade-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
        [data-scrollfade].nav-fade-left.nav-fade-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
    }

    
    .stat-value,
    .tb-item span,
    .lb-rank,
    .lb-mv {
        font-variant-numeric: tabular-nums;
    }

    
    
    #followBtn {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--accent);
        padding: 5px 14px;
        border-radius: var(--radius-full);
        font-size: 12px;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    #followBtn:hover { background: var(--accent); color: var(--accent-ink); }
    #followBtn.is-following {
        background: var(--accent);
        color: var(--accent-ink);
    }
    #followBtn.is-following:hover {
        background: transparent;
        border-color: #ff6b6b;
        color: #ff6b6b;
    }
    #followBtn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    
    .suggest-list { display: none; }
    .suggest-hero {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 40;
        background: var(--surface-2);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-2);
        overflow: hidden;
        text-align: left;
    }
    .suggest-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        cursor: pointer;
        border-radius: var(--radius-sm);
    }
    .suggest-item:hover { background: var(--surface); }
    .suggest-avatar {
        width: 30px; height: 30px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        background: var(--surface);
    }
    .suggest-avatar-blank { display: inline-block; }
    .suggest-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
    .suggest-level { font-size: 12px; color: var(--text-3); flex-shrink: 0; }

    
    
    #compareContent, #cmpListWrap { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
    #compareView { padding-bottom: var(--space-6); }

    

    
    .cmp-hero { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
    .cmp-hero-stage {
        position: relative; height: 260px; display: grid; background: var(--dark-bg, #0b0d16);
        grid-template-columns: var(--split) calc(100% - var(--split));
    }
    .cmp-art { position: relative; overflow: hidden; }
    .cmp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .cmp-art.b img { transform: scaleX(-1); }
    .cmp-art::after { content: ""; position: absolute; inset: 0; }
    .cmp-art.a::after {
        background:
            linear-gradient(90deg, rgba(8, 12, 17, 0.94) 0%, rgba(8, 12, 17, 0.62) 40%, rgba(8, 12, 17, 0.35) 72%, rgba(8, 12, 17, 0.85) 100%),
            linear-gradient(0deg, rgba(8, 12, 17, 0.7) 0%, transparent 50%);
    }
    :where(html[data-theme="light"]) .cmp-art.a::after { background: linear-gradient(90deg, rgba(11,13,22,.94) 0%, rgba(11,13,22,.62) 40%, rgba(11,13,22,.35) 72%, rgba(11,13,22,.85) 100%), linear-gradient(0deg, rgba(11,13,22,.7) 0%, transparent 50%); }
    .cmp-art.b::after {
        background:
            linear-gradient(270deg, rgba(8, 12, 17, 0.94) 0%, rgba(8, 12, 17, 0.62) 40%, rgba(8, 12, 17, 0.35) 72%, rgba(8, 12, 17, 0.85) 100%),
            linear-gradient(0deg, rgba(8, 12, 17, 0.7) 0%, transparent 50%);
    }
    :where(html[data-theme="light"]) .cmp-art.b::after { background: linear-gradient(270deg, rgba(11,13,22,.94) 0%, rgba(11,13,22,.62) 40%, rgba(11,13,22,.35) 72%, rgba(11,13,22,.85) 100%), linear-gradient(0deg, rgba(11,13,22,.7) 0%, transparent 50%); }
    
    @media (min-width: 761px) {
        .cmp-art.a::after {
            background:
                linear-gradient(90deg, rgba(4, 6, 10, .88) 0%, rgba(4, 6, 10, .66) 300px, rgba(4, 6, 10, .1) 520px, rgba(4, 6, 10, .08) 80%, rgba(4, 6, 10, .5) 100%),
                linear-gradient(0deg, rgba(4, 6, 10, .6) 0%, rgba(4, 6, 10, 0) 38%);
        }
        .cmp-art.b::after {
            background:
                linear-gradient(270deg, rgba(4, 6, 10, .88) 0%, rgba(4, 6, 10, .66) 300px, rgba(4, 6, 10, .1) 520px, rgba(4, 6, 10, .08) 80%, rgba(4, 6, 10, .5) 100%),
                linear-gradient(0deg, rgba(4, 6, 10, .6) 0%, rgba(4, 6, 10, 0) 38%);
        }
    }
    .cmp-side { text-shadow: 0 1px 10px rgba(0, 0, 0, .65); }
    .cmp-art.b { border-left: 1px solid rgba(224, 227, 232, 0.14); }
    :where(html[data-theme="light"]) .cmp-art.b { border-left: 1px solid rgba(214, 226, 250, .14); }

    .cmp-side {
        position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1;
        display: flex; align-items: center; gap: 20px; padding: 0 36px;
    }
    .cmp-side.a { left: 0; width: var(--split); }
    .cmp-side.b { right: 0; width: calc(100% - var(--split)); flex-direction: row-reverse; text-align: right; }
    
    .cmp-seam {
        position: absolute; left: var(--split); bottom: 16px; z-index: 2; transform: translateX(-50%);
        display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap;
        padding: 5px 10px; border-radius: var(--radius-sm);
        background: rgba(8, 12, 17, 0.88); border: 1px solid rgba(224, 227, 232, 0.18);
        font-size: 12px; color: var(--text-3);
    }
    :where(html[data-theme="light"]) .cmp-seam { background: rgba(11, 13, 22, .88); border: 1px solid rgba(214, 226, 250, .18); }
    .cmp-seam b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
    .cmp-seam.a b { color: var(--brand-2); }
    .cmp-seam.b b { color: var(--gold); }
    .cmp-side > img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    .cmp-id { display: grid; gap: 10px; justify-items: start; min-width: 0; }
    .cmp-side.b .cmp-id { justify-items: end; }
    .cmp-hero-name {
        font-size: 30px; font-weight: 600; line-height: 1.05; color: var(--text); text-shadow: 0 2px 10px rgba(0,0,0,.55);
        text-decoration: none; max-width: 100%; overflow-wrap: anywhere;
    }
    .cmp-hero-name:hover { text-decoration: underline; }
    .cmp-id .level-pill-num { white-space: nowrap; }
    .cmp-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .cmp-side.b .cmp-meta { flex-direction: row-reverse; }
    
    .cmp-meta .level-pill { margin: 0; }
    
    .stamp.cmp-lead-a { background: var(--brand-2); color: var(--stamp-ink); }
    .stamp.cmp-lead-b { background: var(--gold); color: var(--stamp-ink); }

    
    .cmp-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); }
    .cmp-cell { padding: 14px 16px 16px; display: grid; gap: 9px; min-width: 0; }
    .cmp-cell + .cmp-cell { border-left: 1px solid var(--border); }
    
    .cmp-cell-head {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3);
    }
    .cmp-cell-head img { width: 16px; height: 16px; object-fit: contain; }
    .cmp-cell-vals { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
    .cmp-v { font-size: 16px; font-weight: 600; color: var(--text-muted); }
    .cmp-v.win { color: var(--text); }
    .cmp-split { display: flex; gap: 3px; height: 4px; }
    .cmp-split i { display: block; height: 100%; background: var(--surface-3); }
    .cmp-split i:first-child { border-radius: 2px 0 0 2px; }
    .cmp-split i:last-child { border-radius: 0 2px 2px 0; }
    .cmp-split i.win.a { background: var(--brand-2); }
    .cmp-split i.win.b { background: var(--gold); }

    
    .cmp-games-title { display: flex; align-items: baseline; gap: 12px; margin: 36px 0 14px; }
    .cmp-games-title h2 { margin: 0; font-size: 20px; font-weight: 600; }
    .cmp-games-title span { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }

    
    .cmp-standing {
        display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
        padding: 16px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    }
    .cmp-standing.cmp-standing-empty { display: block; font-size: 14px; color: var(--text-3); }
    .cmp-stand-side { display: grid; gap: 4px; font-size: 13px; color: var(--text-3); }
    .cmp-stand-side.b { text-align: right; }
    .cmp-stand-side b { font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
    .cmp-stand-mid { display: grid; gap: 8px; width: min(520px, 42vw); }
    .cmp-stand-bar { display: flex; gap: 3px; height: 8px; }
    .cmp-stand-bar i { display: block; height: 100%; }
    .cmp-stand-bar .a { background: var(--brand-2); border-radius: 4px 0 0 4px; }
    .cmp-stand-bar .t { background: var(--surface-3); }
    .cmp-stand-bar .b { background: var(--gold); border-radius: 0 4px 4px 0; }
    .cmp-stand-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
    .cmp-stand-legend b { color: var(--text-2); }

    .cmp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 12px; flex-wrap: wrap; }
    .cmp-toolbar .lb-sorts { margin: 0; }
    .cmp-count { opacity: .7; margin-left: 5px; font-weight: 400; }
    
    .cmp-sort-wrap { position: relative; display: inline-flex; }
    .cmp-sort-wrap::after {
        content: "\25BE"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
        font-size: 12px; color: var(--text-2); pointer-events: none;
    }
    .cmp-sort {
        -webkit-appearance: none; appearance: none;
        font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
        border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 38px 8px 14px; cursor: pointer;
    }
    .cmp-sort:hover { border-color: var(--border-hover); }
    .cmp-sort:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

    .cmp-rows { display: grid; gap: 8px; }
    .cmp-row {
        position: relative; overflow: hidden; z-index: 0;
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1.1fr) minmax(0, 1fr); align-items: center; gap: 28px;
        padding: 12px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
        cursor: pointer;
    }
    .cmp-row:hover { border-color: var(--border-hover); }
    .cmp-row:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    
    .cmp-row.cmp-row-art::before {
        content: ""; position: absolute; inset: 0; z-index: -2;
        background-image: var(--row-art); background-size: cover; background-position: center 30%;
    }
    .cmp-row.cmp-row-art::after {
        content: ""; position: absolute; inset: 0; z-index: -1;
        background: linear-gradient(90deg, rgba(25, 30, 36, 0.95) 0%, rgba(25, 30, 36, 0.72) 35%, rgba(25, 30, 36, 0.62) 65%, rgba(25, 30, 36, 0.95) 100%);
    }
    :where(html[data-theme="light"]) .cmp-row.cmp-row-art::after { background: linear-gradient(90deg, rgba(19,26,46,.95) 0%, rgba(19,26,46,.72) 35%, rgba(19,26,46,.62) 65%, rgba(19,26,46,.95) 100%); }
    
    @media (min-width: 761px) {
        .cmp-row.cmp-row-art::after {
            background: linear-gradient(90deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .66) 26%, rgba(4, 6, 10, .36) 40%, rgba(4, 6, 10, .36) 60%, rgba(4, 6, 10, .66) 74%, rgba(4, 6, 10, .9) 100%);
        }
    }
    .cmp-row.cmp-row-art { text-shadow: 0 1px 6px rgba(0, 0, 0, .75); }
    .cmp-row.cmp-row-art { border-color: rgba(224, 227, 232, 0.14); }
    :where(html[data-theme="light"]) .cmp-row.cmp-row-art { border-color: rgba(214, 226, 250, .14); }

    .cmp-game { display: flex; align-items: center; gap: 14px; min-width: 0; }
    .cmp-game > img { width: 46px; height: 46px; border-radius: var(--radius-sm); object-fit: cover; background: var(--icon-plate); flex-shrink: 0; }
    .cmp-game-text { min-width: 0; display: grid; gap: 4px; justify-items: start; }
    .cmp-game-name { font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .cmp-game .platform-badge { margin: 0; }

    .cmp-prog { display: grid; grid-template-columns: 20px 50px minmax(0, 1fr); align-items: center; gap: 10px; }
    .cmp-prog.b { grid-template-columns: minmax(0, 1fr) 50px 20px; }
    .cmp-pip { width: 18px; height: 18px; object-fit: contain; }
    .cmp-pct { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); }
    .cmp-prog.a .cmp-pct { text-align: right; }
    .cmp-prog.win .cmp-pct { color: var(--text); }
    .cmp-track { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; display: flex; }
    .cmp-prog.a .cmp-track { justify-content: flex-end; }  
    .cmp-track i { display: block; height: 100%; background: var(--text-muted); opacity: .55; }
    .cmp-prog.win.a .cmp-track i { background: var(--brand-2); opacity: 1; }
    .cmp-prog.win.b .cmp-track i { background: var(--gold); opacity: 1; }
    .cmp-none { font-size: 13px; color: var(--text-muted); }
    .cmp-prog.empty { grid-template-columns: 1fr; }
    .cmp-prog.a.empty { justify-items: end; }

    @media (max-width: 1100px) {
        .cmp-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        .cmp-cell:nth-child(5) { border-left: 0; }
        .cmp-cell:nth-child(n+5) { border-top: 1px solid var(--border); }
    }
    @media (max-width: 760px) {
        .cmp-hero-stage { height: 230px; }
        .cmp-seam { bottom: 10px; font-size: 11px; padding: 4px 8px; }
        .cmp-seam b { font-size: 12px; }
        .cmp-side, .cmp-side.b { flex-direction: column; justify-content: flex-start; gap: 10px; padding: 26px 10px 0; text-align: center; }
        .cmp-id, .cmp-side.b .cmp-id { justify-items: center; }
        .cmp-side > img { width: 64px; height: 64px; }
        .cmp-hero-name { font-size: 19px; }
        .cmp-meta, .cmp-side.b .cmp-meta { flex-direction: column; gap: 6px; }
        .cmp-id .level-pill-bar { display: none; }
        .cmp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .cmp-cell:nth-child(odd) { border-left: 0; }
        .cmp-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
        .cmp-cell:last-child { grid-column: 1 / -1; }
        .cmp-standing { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
        .cmp-stand-mid { grid-column: 1 / -1; grid-row: 2; width: auto; }
        .cmp-games-title h2 { font-size: 18px; }
        .cmp-row { grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 12px 14px; }
        .cmp-row .cmp-game { grid-column: 1 / -1; grid-row: 1; }
        .cmp-prog { grid-template-columns: 16px 40px minmax(0, 1fr); gap: 8px; }
        .cmp-prog.b { grid-template-columns: minmax(0, 1fr) 40px 16px; }
        .cmp-pct { font-size: 15px; }
        .cmp-pip { width: 16px; height: 16px; }
    }

    
    

    
    .cmp-g-stage { position: relative; height: 250px; background: var(--dark-bg, #0b0d16); overflow: hidden; }
    .cmp-g-stage > img.cmp-g-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
    .cmp-g-stage::after {
        content: ""; position: absolute; inset: 0;
        background:
            linear-gradient(90deg, rgba(8, 12, 17, 0.94) 0%, rgba(8, 12, 17, 0.5) 32%, rgba(8, 12, 17, 0.5) 68%, rgba(8, 12, 17, 0.94) 100%),
            linear-gradient(0deg, rgba(8, 12, 17, 0.75) 0%, transparent 55%);
    }
    :where(html[data-theme="light"]) .cmp-g-stage::after { background: linear-gradient(90deg, rgba(11,13,22,.94) 0%, rgba(11,13,22,.5) 32%, rgba(11,13,22,.5) 68%, rgba(11,13,22,.94) 100%), linear-gradient(0deg, rgba(11,13,22,.75) 0%, transparent 55%); }
    
    @media (min-width: 761px) {
        .cmp-g-stage::after {
            background:
                radial-gradient(ellipse 300px 56% at 50% 46%, rgba(4, 6, 10, .55) 0%, rgba(4, 6, 10, 0) 100%),
                linear-gradient(90deg, rgba(4, 6, 10, .86) 0%, rgba(4, 6, 10, .55) 300px, rgba(4, 6, 10, .1) 440px, rgba(4, 6, 10, 0) 50%),
                linear-gradient(270deg, rgba(4, 6, 10, .86) 0%, rgba(4, 6, 10, .55) 300px, rgba(4, 6, 10, .1) 440px, rgba(4, 6, 10, 0) 50%),
                linear-gradient(0deg, rgba(4, 6, 10, .6) 0%, rgba(4, 6, 10, 0) 36%);
        }
    }
    .cmp-g-stage { text-shadow: 0 1px 10px rgba(0, 0, 0, .65); }
    
    :is(.cmp-side, .cmp-g-stage, .cmp-row.cmp-row-art, .cmp-g-row.cmp-g-plat-row, .plat-list-row-body, .gv-hero-inner, .club-inner, .ms-plat-name) :is(.stamp, .platform-badge, .plate, .level-pill, .scope-badge-line, .btn, button) { text-shadow: none; }
    .cmp-g-game {
        position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 1;
        display: grid; justify-items: center; gap: 10px; text-align: center; width: min(460px, 46%);
    }
    .cmp-g-game > img { width: 72px; height: 72px; border-radius: var(--radius-md); background: var(--icon-plate); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
    .cmp-g-game-name { font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--text); text-shadow: 0 2px 10px rgba(0,0,0,.6); overflow-wrap: anywhere; }
    .cmp-g-game-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); }
    .cmp-g-game .platform-badge { margin: 0; }

    .cmp-g-side { position: absolute; top: 0; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 0 32px; }
    .cmp-g-side.a { left: 0; }
    .cmp-g-side.b { right: 0; flex-direction: row-reverse; text-align: right; }
    .cmp-g-side > img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
    .cmp-g-id { display: grid; gap: 8px; justify-items: start; }
    .cmp-g-side.b .cmp-g-id { justify-items: end; }
    .cmp-g-name { font-size: 19px; font-weight: 600; color: var(--text); text-decoration: none; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
    .cmp-g-name:hover { text-decoration: underline; }
    .cmp-g-of { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
    .cmp-g-of b { color: var(--text); font-weight: 600; }
    
    .cmp-g-overview { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
    .cmp-g-lead-row { display: flex; align-items: center; gap: 8px; }
    .cmp-g-side.b .cmp-g-lead-row { flex-direction: row-reverse; }
    .cmp-g-ahead { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
    .cmp-g-ahead.a { color: var(--brand-2); }
    .cmp-g-ahead.b { color: var(--gold); }
    .cmp-strip.cmp-g-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }

    
    .cmp-sync-note {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 10px;
        margin: 16px auto 0;
        max-width: 640px;
        padding: 8px 12px;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
        background: var(--surface-2);
        font-size: 12px;
        color: var(--text-3);
    }
    .cmp-sync-link { color: var(--text); font-weight: 600; text-decoration: underline; }

    
    .cmp-g-h2 { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 14px; }
    .cmp-g-h2 h2 { margin: 0; font-size: 20px; font-weight: 600; }
    .cmp-g-h2 span { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
    .cmp-g-race { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 24px 14px; }
    .cmp-g-facts { margin: 0 0 30px; font-size: 13px; color: var(--text-3); line-height: 1.6; }
    .cmp-g-facts strong { color: var(--text-2); font-weight: 600; }
    .cmp-g-facts .a { color: var(--brand-2); font-weight: 600; }
    .cmp-g-facts .b { color: var(--gold); font-weight: 600; }
    .cmp-g-race-body { padding: 0 64px 0 28px; }
    .cmp-g-plot { position: relative; height: 130px; }
    .cmp-g-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .cmp-g-grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
    .cmp-g-grid-label { position: absolute; left: -28px; transform: translateY(-50%); font-size: 10.5px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    
    .cmp-g-path { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
    .cmp-g-path.skip { stroke-width: 2; stroke-dasharray: 1 5; }
    .cmp-g-path.a { stroke: var(--brand-2); }
    .cmp-g-path.b { stroke: var(--gold); }
    
    .cmp-g-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--surface); box-sizing: content-box; }
    .cmp-g-dot.a { background: var(--brand-2); }
    .cmp-g-dot.b { background: var(--gold); }
    .cmp-g-plat { position: absolute; width: 20px; height: 20px; transform: translate(-50%, -62%); object-fit: contain; z-index: 1; }
    .cmp-g-mark { position: absolute; transform: translate(-50%, calc(-100% - 12px)); font-size: 10.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .cmp-g-mark.a { color: var(--brand-2); }
    .cmp-g-mark.b { color: var(--gold); }
    .cmp-g-mark.plat { transform: translate(-50%, calc(-100% - 20px)); }
    
    .cmp-g-axis { position: relative; height: 34px; margin: 12px 0 0; font-size: 10.5px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .cmp-g-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
    .cmp-g-axis span.first { transform: none; }
    .cmp-g-axis span.skip { top: 16px; opacity: .75; }

    
    .cmp-g-rows { display: grid; gap: 8px; }
    .cmp-g-row {
        position: relative; overflow: hidden; z-index: 0;
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1.4fr) minmax(0, 1fr); align-items: center; gap: 28px;
        padding: 12px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    }
    
    .cmp-g-row.cmp-g-plat-row::before {
        content: ""; position: absolute; inset: 0; z-index: -2;
        background-image: var(--row-art); background-size: cover; background-position: center 30%;
    }
    .cmp-g-row.cmp-g-plat-row::after {
        content: ""; position: absolute; inset: 0; z-index: -1;
        background: linear-gradient(90deg, rgba(25, 30, 36, 0.95) 0%, rgba(25, 30, 36, 0.7) 35%, rgba(25, 30, 36, 0.62) 65%, rgba(25, 30, 36, 0.95) 100%);
    }
    :where(html[data-theme="light"]) .cmp-g-row.cmp-g-plat-row::after { background: linear-gradient(90deg, rgba(19,26,46,.95) 0%, rgba(19,26,46,.7) 35%, rgba(19,26,46,.62) 65%, rgba(19,26,46,.95) 100%); }
    @media (min-width: 761px) {
        .cmp-g-row.cmp-g-plat-row::after {
            background: linear-gradient(90deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .66) 26%, rgba(4, 6, 10, .36) 40%, rgba(4, 6, 10, .36) 60%, rgba(4, 6, 10, .66) 74%, rgba(4, 6, 10, .9) 100%);
        }
    }
    .cmp-g-row.cmp-g-plat-row { text-shadow: 0 1px 6px rgba(0, 0, 0, .75); }
    .cmp-g-row.cmp-g-plat-row { border-color: rgba(224, 227, 232, 0.14); }
    :where(html[data-theme="light"]) .cmp-g-row.cmp-g-plat-row { border-color: rgba(214, 226, 250, .14); }

    .cmp-g-trophy { display: flex; align-items: center; gap: 14px; min-width: 0; }
    .cmp-g-trophy > img { width: 46px; height: 46px; border-radius: var(--radius-sm); object-fit: contain; background: var(--icon-plate); flex-shrink: 0; }
    .cmp-g-trophy-text { min-width: 0; display: grid; gap: 3px; }
    .cmp-g-trophy-name { font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cmp-g-trophy-detail { font-size: 12.5px; color: var(--text-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .cmp-g-trophy-type { display: flex; align-items: center; gap: 6px; margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .cmp-g-trophy-type img { width: 18px; height: 18px; object-fit: contain; }

    
    .cmp-g-when { display: grid; gap: 7px; }
    .cmp-g-when.a { justify-items: end; text-align: right; }
    .cmp-g-when-line { display: flex; align-items: baseline; gap: 8px; }
    .cmp-g-when.a .cmp-g-when-line { flex-direction: row-reverse; }
    .cmp-g-date { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
    .cmp-g-when small { font-size: 12px; color: var(--text-3); font-weight: 500; }
    .cmp-g-when.first.a small { color: var(--brand-2); }
    .cmp-g-when.first.b small { color: var(--gold); }
    .cmp-g-when.miss .cmp-g-date { color: var(--text-muted); font-weight: 400; font-size: 14px; }
    .cmp-g-when .cmp-track { width: 100%; }
    .cmp-g-when .cmp-track i { width: 100%; background: var(--text-3); opacity: .7; }
    .cmp-g-when.first.a .cmp-track i { background: var(--brand-2); opacity: 1; }
    .cmp-g-when.first.b .cmp-track i { background: var(--gold); opacity: 1; }

    
    @media (max-width: 1100px) {
        .cmp-strip.cmp-g-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .cmp-g-strip .cmp-cell:nth-child(4) { border-left: 0; }
        .cmp-g-strip .cmp-cell:nth-child(5) { border-left: 1px solid var(--border); }
        .cmp-g-strip .cmp-cell:nth-child(n+4) { border-top: 1px solid var(--border); }
    }
    @media (max-width: 760px) {
        .cmp-g-stage { height: 300px; }
        .cmp-g-game { top: 30%; width: 90%; }
        .cmp-g-game > img { width: 56px; height: 56px; }
        .cmp-g-game-name { font-size: 21px; }
        .cmp-g-side { top: auto; bottom: 14px; padding: 0 14px; gap: 10px; }
        .cmp-g-side > img { width: 40px; height: 40px; }
        .cmp-g-name { font-size: 15px; }
        .cmp-g-id { gap: 4px; }
        .cmp-g-id .stamp { font-size: 9.5px; }
        
        .cmp-g-lead-row { flex-direction: column; align-items: flex-start; gap: 4px; }
        .cmp-g-side.b .cmp-g-lead-row { flex-direction: column; align-items: flex-end; }
        .cmp-strip.cmp-g-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .cmp-g-strip .cmp-cell:nth-child(odd) { border-left: 0; }
        .cmp-g-strip .cmp-cell:nth-child(even) { border-left: 1px solid var(--border); }
        .cmp-g-strip .cmp-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
        .cmp-g-strip .cmp-cell:last-child { grid-column: auto; }
        .cmp-g-race { padding: 14px 14px 10px; }
        .cmp-g-race-body { padding: 0 40px 0 22px; }
        .cmp-g-plot { height: 120px; }
        
        .cmp-g-axis { height: 18px; }
        .cmp-g-axis span.skip { display: none; }
        .cmp-g-axis span.mid-run { display: none; }
        .cmp-g-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; padding: 12px 14px; }
        .cmp-g-row .cmp-g-trophy { grid-column: 1 / -1; grid-row: 1; }
        .cmp-g-when.a { justify-items: start; text-align: left; }
        .cmp-g-when.a .cmp-g-when-line { flex-direction: row; }
        .cmp-g-when.b { justify-items: end; text-align: right; }
        .cmp-g-when.b .cmp-g-when-line { flex-direction: row-reverse; }
    }

    @media (max-width: 760px) {
        .stat-hero { padding: 18px 16px 10px; }
        .stat-total { font-size: 34px; }
        .stat-dowstrip { flex-direction: column; align-items: stretch; }
        .stat-dowbars { justify-content: center; }
        .stat-tiles { grid-template-columns: repeat(2, 1fr); }
        .stat-tile-value { font-size: 21px; }
        .stat-bars { gap: 4px; padding: 20px 8px 10px; }
        .stat-bar-track { height: 120px; }
        .stat-bar-label { font-size: 10px; }
        .stat-axis { width: 30px; }
        .stat-axis-tick { right: 5px; font-size: 10px; }
        .stat-plat-icon { width: auto; height: 15px; }
        .stat-plat-count { font-size: 10px; }
    }
    

    
    .btn-sm { padding: 5px 10px; font-size: 12px; }
    .panel {
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius-lg); padding: 14px 12px;
    }
    .tabnum { font-variant-numeric: tabular-nums; }

    
    
    .scope-badge-line { margin-left: 8px; vertical-align: middle; }

    .gg-write-row {
        display: block; padding: 8px; margin-top: 4px; border-top: 1px solid var(--border);
        font-size: 12.5px; color: var(--accent); text-decoration: none;
    }
    .gg-write-row:hover { text-decoration: underline; }

    
    .gg-scope-toggle { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; }
    .gg-scope-panel { padding: 10px 8px 8px; border-top: 1px solid var(--border); margin-top: 4px; }
    .gg-scope-title { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
    .scope-check {
        display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px;
        color: var(--text-2); cursor: pointer;
    }
    .scope-check input { accent-color: var(--accent); cursor: pointer; }
    .gg-scope-start { width: 100%; justify-content: center; margin-top: 8px; }

    
    .gg-side-panel .panel-title { margin-top: 0; margin-bottom: 8px; }
    .gg-side-divider { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

    
    .related-row {
        display: block; padding: 8px 2px; border-top: 1px solid var(--border);
        font-size: 12.5px; text-decoration: none; color: inherit;
    }
    .related-row:first-of-type { border-top: none; }
    .related-row:hover .rr-title { color: var(--text); }
    .related-row .rr-title { color: var(--text-2); font-weight: 600; }
    .related-row .rr-sub { color: var(--text-muted); font-size: 11px; margin-top: 2px; }

    
    .guide-breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
    .guide-breadcrumb a { color: var(--text-3); text-decoration: none; }
    .guide-breadcrumb a:hover { color: var(--text); }
    .guide-breadcrumb .crumb-sep { color: var(--border); }
    .gv-hero {
        position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
        overflow: hidden; background: var(--surface);
    }
    .gv-hero-art { position: absolute; inset: 0; background-size: cover; background-position: center 25%; }
    
    .gv-hero-art-blur { inset: -60px; filter: blur(46px) saturate(1.35); opacity: 0.8; }
    .gv-hero-scrim {
        position: absolute; inset: 0;
        background: linear-gradient(180deg, rgba(8, 12, 17, 0.16) 0%, rgba(8, 12, 17, 0.52) 48%, rgba(8, 12, 17, 0.95) 100%);
    }
    :where(html[data-theme="light"]) .gv-hero-scrim { background: linear-gradient(180deg, rgba(11, 13, 22, 0.16) 0%, rgba(11, 13, 22, 0.52) 48%, rgba(11, 13, 22, 0.95) 100%); }
    
    @media (min-width: 761px) {
        .gv-hero-scrim {
            background:
                linear-gradient(90deg, rgba(4, 6, 10, .6) 0%, rgba(4, 6, 10, .3) 460px, rgba(4, 6, 10, 0) 820px),
                linear-gradient(180deg, rgba(4, 6, 10, 0) 0%, rgba(4, 6, 10, .3) 42%, rgba(4, 6, 10, .86) 100%);
        }
    }
    .gv-hero-inner { text-shadow: 0 1px 10px rgba(0, 0, 0, .7); --text-3: #c6cddb; --text-muted: #b3bccd; }
    @media (max-width: 760px) {
        .gv-hero-scrim { background: linear-gradient(180deg, rgba(4, 6, 10, .3) 0%, rgba(4, 6, 10, .62) 45%, rgba(4, 6, 10, .95) 100%); }
    }
    .gv-hero-inner { position: relative; padding: 84px 28px 38px; display: flex; gap: 20px; align-items: flex-end; }
    .gv-hero-icon {
        width: 92px; height: 92px; border-radius: var(--radius-md); flex-shrink: 0;
        object-fit: contain; border: 1px solid rgba(40, 45, 51, 0.8); background: var(--icon-plate);
        box-shadow: var(--shadow-2);
    }
    :where(html[data-theme="light"]) .gv-hero-icon { border: 1px solid rgba(36, 48, 79, 0.8); }
    .gv-hero-id { min-width: 0; flex: 1; }
    .gv-hero h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.3px; margin-bottom: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65); overflow-wrap: anywhere; }
    .gv-hero h1 .scope-badge-line { vertical-align: 4px; margin-left: 10px; background: rgba(8, 12, 17, 0.55); }
    :where(html[data-theme="light"]) .gv-hero h1 .scope-badge-line { background: rgba(11, 13, 22, 0.55); }
    .gv-hero .guide-byline { margin: 7px 0 0; }
    .gv-updated { color: var(--text-muted); }
    .guide-byline { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
    .guide-byline b { color: var(--text-2); }
    .byline-avatar {
        display: inline-block; width: 18px; height: 18px; border-radius: 50%; object-fit: cover;
        background: var(--surface-2); border: 1px solid var(--border); vertical-align: -4px; margin-right: 4px;
    }
    
    .gv-types { display: flex; gap: 18px; margin-top: 16px; align-items: center; flex-wrap: wrap; }
    .gv-tt {
        display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
        color: var(--text-2); font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    }
    .gv-tt .tg { width: 18px; height: 18px; flex: none; }
    .gv-tt small { font-weight: 600; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }

    
    .guide-metrics { display: flex; gap: 10px; flex-wrap: wrap; }
    .metric-chip {
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
        padding: 8px 14px; text-align: center; min-width: 92px;
    }
    .metric-chip .val { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
    .metric-chip .lbl { font-size: 10.5px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); }
    .guide-hero-stats { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
    .hero-stat-row { display: flex; gap: 14px; color: var(--text-3); font-size: 12.5px; }
    .hero-stat-row b { color: var(--text-2); font-variant-numeric: tabular-nums; }
    .guide-view-count { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
    .guide-view-eye {
        width: 14px; height: 14px; flex: 0 0 14px;
        fill: none; stroke: currentColor; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round;
    }

    
    .gv-dock { position: relative; z-index: 2; display: flex; justify-content: center; gap: 12px; margin: -26px auto 0; width: max-content; max-width: 100%; flex-wrap: wrap; }
    .gv-mc {
        min-width: 106px; padding: 12px 18px 11px; text-align: center; border-radius: var(--radius-md);
        background: linear-gradient(180deg, var(--surface-2), var(--surface) 80%); border: 1px solid var(--surface-3);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
    }
    .gv-mc .val { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
    .gv-mc .lbl { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
    .gv-mc .val.stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }

    
    .gv-prog {
        display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 13px 18px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); flex-wrap: wrap;
    }
    .gv-prog-label { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
    .gv-prog-sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
    .gv-prog-sub b { color: var(--text); font-variant-numeric: tabular-nums; }
    .gv-prog-track { flex: 1; min-width: 120px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
    .gv-prog-fill { height: 100%; border-radius: 3px; background: var(--brand-gradient); }
    .gv-prog-pct { font-size: 13px; font-weight: 800; color: var(--brand-2); font-variant-numeric: tabular-nums; }
    
    .gv-prog-guest .gv-prog-sub { color: var(--text-muted); white-space: normal; }

    
    .gv-prog-version-wrap { position: relative; }
    
    .gv-prog-version {
        display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
        border: 1px solid var(--border); background: var(--surface-2);
        border-radius: 999px; padding: 4px 10px; font-family: inherit;
    }
    .gv-prog-version:hover { border-color: var(--brand-2); }
    .gv-prog-caret { font-size: 10px; color: var(--text-muted); }
    .gv-prog-version-menu {
        position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 210px;
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 6px;
        display: flex; flex-direction: column; gap: 2px;
    }
    .gv-prog-version-menu[hidden] { display: none; }
    .gv-prog-version-item {
        display: flex; align-items: center; justify-content: space-between; gap: 16px;
        width: 100%; text-align: left; cursor: pointer; font-family: inherit;
        background: none; border: 0; border-radius: 8px; padding: 8px 10px;
    }
    .gv-prog-version-item:hover { background: var(--surface-2); }
    .gv-prog-version-item.is-selected { background: var(--surface-3); }
    .gv-pv-plat { font-size: 13px; font-weight: 700; color: var(--text); }
    .gv-pv-count { font-size: 12px; color: var(--text-2); }

    
    .gv-applies { margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
    .gv-applies-label {
        font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
        color: var(--text-3); margin-right: 6px;
    }

    
    .gv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 18px; margin-top: 18px; align-items: start; padding-bottom: 40px; }
    
    #guideView.is-error .gv-cols { display: none; }
    .gv-error-link { margin-top: 12px; }
    .gv-error-link a { color: var(--accent); font-weight: 600; }
    .gv-error-link a:hover { color: var(--accent-hover); }
    .gv-body { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 30px 30px; min-width: 0; }
    
    .gv-body { overflow-wrap: anywhere; }
    
    .rail {
        position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px;
        max-height: calc(100vh - 24px); overflow-y: auto;
        margin-right: -14px; scrollbar-gutter: stable; scrollbar-width: thin;
    }
    .rail > * { width: 276px; flex: none; }
    
    .gv-cols-solo { grid-template-columns: minmax(0, 1fr); }
    
    .gv-preview-note {
        font-size: 12.5px; color: var(--text-3); background: var(--surface);
        border: 1px solid var(--border); border-radius: var(--radius-md);
        padding: 9px 14px; margin-bottom: 14px;
    }
    .guide-preview-desc { color: var(--text-3); margin-top: 6px; }

    
    .glance { margin: 12px 0 26px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
    .gl-row { display: flex; gap: 14px; align-items: flex-start; padding: 7px 0; }
    .gl-key { flex: none; width: 122px; display: flex; align-items: center; gap: 8px; padding-top: 2px; }
    .gl-key .chipline { flex: none; }
    .gl-key .n { font-size: 11.5px; font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .gl-names { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
    .g-t {
        display: inline-flex; align-items: center; gap: 6px; padding: 3.5px 9px 3.5px 7px;
        border: 1px solid var(--border); border-radius: 6px; background: var(--field-bg);
        font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer; text-decoration: none;
    }
    .g-t:hover { border-color: var(--brand-1); color: var(--text); }
    .g-t img { width: 13px; height: 13px; flex: none; }
    
    .g-t.earned { color: var(--success); border-color: rgba(70, 201, 155, 0.45); background: var(--earned-bg); }

    
    .g-t:focus-visible, .toc-item:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    
    .guide-hero-stats .btn.is-blocked { opacity: .55; cursor: not-allowed; }

    
    .spoiler {
        display: inline; border: 1px solid var(--border); border-radius: var(--radius-sm);
        background: var(--surface-2); padding: 2px 8px; cursor: pointer;
    }
    .spoiler .spoiler-label { color: var(--text-3); font-weight: 600; font-size: 12.5px; }
    .spoiler .spoiler-content { display: none; }
    .spoiler.revealed { background: transparent; border-color: transparent; padding: 0; cursor: auto; }
    .spoiler:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .spoiler.revealed .spoiler-label { display: none; }
    .spoiler.revealed .spoiler-content { display: inline; }

    .media-embed {
        position: relative; border: 1px solid var(--border); border-radius: var(--radius-md);
        background: var(--surface-2); margin: 12px 0; overflow: hidden; max-width: 560px;
    }
    .video-embed { cursor: pointer; }
    .video-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
    .media-embed .play {
        position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 56px; height: 56px; border-radius: 50%; background: rgba(134, 215, 236, 0.92); border: none;
        color: var(--dark-accent-ink, #fff); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    }
    :where(html[data-theme="light"]) .media-embed .play { background: rgba(233, 69, 96, 0.92); }
    .video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: none; }
    .media-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 12.5px; }
    .guide-image { display: block; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md); margin: 12px 0; }

    
    
    .g-key { height: 1.15em; width: auto; vertical-align: middle; margin: 0 1px; background: var(--icon-plate); border-radius: 3px; }

    
    .tb-icon {
        width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0;
        object-fit: cover; border: 1px solid var(--border); background: var(--icon-plate);
    }

    
    .rail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 15px 16px; }
    .rail-h { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
    .toc-item {
        display: flex; align-items: center; gap: 8px; padding: 6.5px 10px; margin: 0 -4px;
        border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer;
    }
    .toc-item:hover { background: var(--surface-2); color: var(--text); }
    .toc-item.active { background: var(--surface-2); color: var(--text); font-weight: 800; }
    .toc-item { min-width: 0; overflow-wrap: anywhere; }
    .toc-item .cnt { margin-left: auto; font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

    
    .toc-tr-head { display: flex; align-items: center; gap: 2px; }
    .toc-tr-head > .toc-item { flex: 1; min-width: 0; }
    .toc-tr-toggle {
        flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-right: -6px;
        border: 0; border-radius: 7px; background: none; color: var(--text-3); cursor: pointer;
    }
    .toc-tr-toggle:hover { background: var(--surface-2); color: var(--text); }
    .toc-tr-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
    .toc-tr-toggle svg { transition: transform 0.15s; }
    .toc-tr-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
    @media (prefers-reduced-motion: reduce) { .toc-tr-toggle svg { transition: none; } }
    .toc-tr {
        list-style: none; margin: 2px -6px 0 0; padding: 0 6px 2px 0;
        max-height: min(40vh, 380px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    }
    .toc-tr[hidden] { display: none; }
    .toc-tr-row {
        display: flex; align-items: center; gap: 8px; min-height: 29px; margin: 0 -4px; padding: 4px 10px 4px 22px;
        border-radius: 7px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--text-2); text-decoration: none;
    }
    .toc-tr-row:hover { background: var(--surface-2); color: var(--text); }
    .toc-tr-row:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
    .toc-tr-cup { flex: none; width: 13px; height: 13px; object-fit: contain; }
    .toc-tr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .toc-tr-row.is-earned .toc-tr-name { color: var(--text-3); }
    .toc-tr-row.is-earned .toc-tr-cup { opacity: 0.5; }
    .toc-tr-ok { flex: none; display: inline-flex; color: var(--success); }
    .toc-tr-ok svg { width: 12px; height: 12px; }
    .toc-tr-row.is-current { background: var(--surface-2); color: var(--text); font-weight: 800; }
    .toc-tr-row.is-current .toc-tr-name { color: var(--text); }
    
    @media (max-width: 860px) {
        .rail-toc .toc-tr { max-height: 50vh; }
        .toc-tr-row { min-height: 36px; }
    }

    
    .mg { display: block; padding: 8px 9px; margin: 0 -4px; border-radius: 8px; text-decoration: none; }
    a.mg:hover { background: var(--surface-2); }
    .mg strong { display: block; font-size: 13px; font-weight: 700; color: var(--brand-2); line-height: 1.35; }
    .mg strong .scope-badge-line { margin-left: 7px; vertical-align: 1px; }
    .mg small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
    .mg small b { color: var(--gold); font-weight: 700; }

    
    .auth { display: flex; align-items: center; gap: 10px; }
    .auth-av { display: inline-block; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-3); border: 1px solid var(--border); flex: none; }
    .auth-id { min-width: 0; }
    .auth-id b { display: block; font-size: 13.5px; }
    .auth-id small { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
    .auth .stars-sm { margin-left: auto; text-align: right; flex: none; }
    .auth .stars-sm > span { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
    .auth .stars-sm small { display: block; font-size: 10.5px; color: var(--text-muted); }
    .auth-rate { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

    
    .gv-hero h1 .scope-badge-line, .mg .scope-badge-line { border-color: rgba(134, 215, 236, 0.5); color: var(--brand-2); }

    
    .gv-body [id] { scroll-margin-top: 70px; }
    @keyframes gv-rowflash { 0% { background-color: rgba(134, 215, 236, 0.18); } }
    .gv-flash { animation: gv-rowflash 1.6s ease; }
    @media (prefers-reduced-motion: reduce) { .gv-flash { animation: none; } }


    
    @media (max-width: 860px) {
        .gv-cols { grid-template-columns: minmax(0, 1fr); }
        .rail { position: static; max-height: none; overflow: visible; margin-right: 0; }
        .rail > * { width: auto; }
        .gv-body { padding: 20px 18px 24px; }
        
        .gv-body pre, .gv-body code { white-space: pre-wrap; overflow-wrap: anywhere; }
        .gv-body :not(.guide-table-scroll) > table { display: block; overflow-x: auto; max-width: 100%; }
        
        .gv-body > #guideToc { margin-bottom: 18px; }
        
        .gl-row { flex-direction: column; align-items: stretch; gap: 6px; }
        .gl-key { width: auto; }
        .gl-names { gap: 8px; }
    }

    
    @media (max-width: 900px) {
        .gv-dock { margin-top: 12px; }
    }

    
    .ed-step-row { display: flex; gap: 8px; align-items: center; }
    .step-fmt { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
    .ed-delete-btn { color: var(--danger); border-color: rgba(233, 69, 96, 0.4); }
    .ed-delete-btn:hover { background: rgba(233, 69, 96, 0.12); color: var(--danger); }

    
    .about-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
    .about-icon {
        width: 46px; height: 46px; border-radius: var(--radius-sm); flex-shrink: 0;
        object-fit: cover; border: 1px solid var(--border); background: var(--icon-plate);
    }
    .about-name { font-weight: 600; font-size: 13.5px; }
    .about-sub { font-size: 11.5px; color: var(--text-muted); }
    .author-row { display: flex; gap: 10px; align-items: center; }
    .author-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); flex-shrink: 0; }
    .rate-cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

    
    .guide-card {
        display: flex; align-items: center; gap: 16px; padding: 14px 16px;
        border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
        margin-bottom: 12px; text-decoration: none; color: inherit;
        transition: border-color 0.15s, background 0.15s;
    }
    .guide-card:hover { border-color: var(--accent); background: var(--surface-2); }
    .guide-card-icon { width: 64px; height: 64px; border-radius: 8px; object-fit: contain; flex-shrink: 0; background: var(--surface-2); }
    .guide-card-info { flex: 1; min-width: 0; }
    .guide-card-title {
        margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--text);
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .guide-card-desc {
        margin: 0 0 6px; font-size: 12.5px; color: var(--text-3);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        overflow-wrap: anywhere;
    }
    .guide-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
    .guide-card-game { color: var(--text-2); }
    .guide-card-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; text-align: right; }
    .guide-card-rating { display: flex; align-items: center; gap: 4px; }
    .guide-card-rating .star { font-size: 13px; }
    .guide-card-rating-count { font-size: 11.5px; color: var(--text-muted); }
    .guide-card-views { font-size: 11.5px; color: var(--text-muted); }
    .guide-card-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: -4px; margin-right: 4px; background: var(--surface-2); }
    .guide-card-author { display: inline-flex; align-items: center; gap: 2px; }
    .guide-card-updated { color: var(--text-muted); }

    

    
    .guides-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
    .guides-head-count { color: var(--text-muted); font-size: 13px; }
    
    #guidesResultCount { margin: 0 0 12px; }
    .guides-hub-layout { display: flex; gap: var(--space-5); align-items: flex-start; }
    .guides-hub-main { flex: 1; min-width: 0; }
    .guides-hub-rail { width: 316px; flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space-4); }

    
    .guides-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
    .guides-toolbar .games-search { flex: 1; min-width: 0; margin-bottom: 0; }
    
    .guides-toolbar .games-search input { margin-bottom: 0; }

    
    .guides-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
    .guides-chip {
        border: 1px solid var(--border); background: transparent; color: var(--text-3);
        font-family: var(--font-sans); font-size: 12px; font-weight: 600;
        border-radius: var(--radius-full); padding: 5px 13px; cursor: pointer;
    }
    .guides-chip:hover { color: var(--text); border-color: var(--text-muted); }
    .guides-chip.on { background: var(--surface-2); color: var(--text); border-color: var(--brand-1); }
    .guides-chip.dim { opacity: 0.4; }
    
    .guides-chip-row.is-loading { opacity: 0.55; }
    .guides-chip-row.is-loading .guides-chip { cursor: default; }
    .guides-chip-row.is-loading .guides-chip:hover {
        color: var(--text-3);
        border-color: var(--border);
    }
    .guides-chip-sep { width: 1px; background: var(--border); margin: 2px 4px; }

    
    .guides-section-label {
        display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
        font-size: 11.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
        color: var(--text-3);
    }
    .guides-section-rule { flex: 1; height: 1px; background: var(--border); }
    .guides-section-hint { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
    #guidesHunt { margin-bottom: var(--space-6); }
    .guides-hunt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
    .guides-hunt-card {
        display: flex; flex-direction: column; overflow: hidden;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
        color: inherit; text-decoration: none; transition: border-color 0.2s;
    }
    .guides-hunt-card:hover { border-color: var(--brand-2); }
    .guides-hunt-art { position: relative; height: 96px; overflow: hidden; background: var(--surface-2); }
    .guides-hunt-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .guides-hunt-art::after {
        content: ""; position: absolute; inset: 0;
        background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--surface) 96%, transparent) 100%);
    }
    .guides-hunt-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
    .guides-hunt-game {
        display: flex; align-items: center; gap: 8px; min-width: 0;
        font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-3);
    }
    .guides-hunt-game-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .guides-hunt-platform { font-size: 10px; padding: 0 8px; color: #b8c7e8; flex-shrink: 0; }
    html[data-theme="light"] .guides-hunt-platform { color: var(--text-3); }
    .guides-plat-flag {
        display: inline-flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0;
        font-size: 10px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
        color: #b8c7e8; white-space: nowrap;
    }
    html[data-theme="light"] .guides-plat-flag { color: var(--text-3); }
    .guides-plat-flag img { width: 10px; height: 13px; object-fit: contain; }
    .guides-hunt-title { font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--text); }
    .guides-hunt-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
    .guides-hunt-progress { margin-top: auto; padding-top: 6px; }
    .guides-hunt-progress-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-bottom: 5px; }
    .guides-hunt-progress-row b { color: var(--text-2); }
    .guides-hunt-track { height: 6px; border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; }
    .guides-hunt-fill { height: 100%; border-radius: var(--radius-full); background: var(--brand-gradient); }

    
    .guides-hunt-fallback {
        display: flex; align-items: center; gap: 18px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
        padding: 16px 20px;
    }
    .guides-hunt-fallback-icons { display: flex; flex-shrink: 0; }
    .guides-hunt-fallback-icons img {
        width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover;
        border: 2px solid var(--surface); background: var(--surface-2);
    }
    .guides-hunt-fallback-icons img + img { margin-left: -12px; }
    .guides-hunt-fallback-copy { flex: 1; min-width: 0; }
    .guides-hunt-fallback-title { font-size: 14px; font-weight: 700; }
    .guides-hunt-fallback-sub { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
    .guides-hunt-fallback-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
    
    .guides-alerts-toggle[data-enabled="1"] {
        background: none; border: none; padding: 0; cursor: pointer;
        font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
        color: var(--success); white-space: nowrap;
    }
    .guides-alerts-off-link {
        margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--text-muted);
        text-decoration: underline; text-underline-offset: 2px;
    }
    .guides-alerts-toggle[data-enabled="1"]:hover .guides-alerts-off-link { color: var(--text); }

    
    .gh-panel {
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius-lg); padding: 14px 14px 10px;
    }
    .gh-panel-title {
        display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
        font-size: 11.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-3);
    }
    .gh-panel-soft { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-muted); }
    .gh-wanted-row, .gh-author-row {
        display: flex; align-items: center; gap: 10px; padding: 8px 2px;
        border-top: 1px solid rgba(40, 45, 51, 0.6); cursor: pointer;
    }
    :where(html[data-theme="light"]) .gh-wanted-row, :where(html[data-theme="light"]) .gh-author-row { border-top: 1px solid rgba(36, 48, 79, 0.6); }
    .gh-wanted-row:first-of-type, .gh-author-row:first-of-type { border-top: none; }
    .gh-wanted-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
    .gh-wanted-info, .gh-author-info { flex: 1; min-width: 0; }
    .gh-wanted-name { font-size: 12.5px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gh-wanted-sub, .gh-author-sub { font-size: 11px; color: var(--text-muted); }
    .gh-wanted-write { flex-shrink: 0; }
    .gh-author-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); display: inline-block; }
    .gh-author-name { font-size: 12.5px; font-weight: 700; }
    .gh-author-rating { flex-shrink: 0; font-size: 11.5px; color: var(--gold); }
    .gh-update-row { padding: 7px 2px; border-top: 1px solid rgba(40, 45, 51, 0.6); font-size: 12px; cursor: pointer; }
    :where(html[data-theme="light"]) .gh-update-row { border-top: 1px solid rgba(36, 48, 79, 0.6); }
    .gh-update-row:first-of-type { border-top: none; }
    .gh-update-title { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gh-update-row:hover .gh-update-title { color: var(--text); }
    .gh-update-sub { color: var(--text-muted); font-size: 11px; }

    @media (max-width: 960px) {
        .guides-hub-layout { flex-direction: column; align-items: stretch; }
        .guides-hub-main { width: 100%; }
        .guides-hub-rail { width: 100%; }
        .guides-hunt-grid { grid-template-columns: 1fr; }
        
        .guides-hunt-fallback { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 10px; }
        .guides-hunt-fallback-actions { grid-column: 2; }
    }
    
    @media (max-width: 340px) {
        .guides-hunt-fallback { grid-template-columns: minmax(0, 1fr); }
        .guides-hunt-fallback-actions { grid-column: 1; }
    }

    
    @media (max-width: 560px) {
        .guides-toolbar { flex-wrap: wrap; }
        .guides-toolbar .games-search { flex-basis: 100%; }
        #guidesSortDrop { flex: 1; }
        #guidesSortDrop .dropdown-btn { width: 100%; }
        .guide-card { flex-wrap: wrap; }
        .guide-card-stats {
            flex-direction: row;
            align-items: center;
            flex-basis: 100%;
            gap: 14px;
            text-align: left;
        }
    }

    
    .guides-write-btn { margin-left: auto; align-self: center; }
    .sg-card { width: min(560px, 100%); padding: 18px; display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 40px)); }
    .sg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .sg-head h3 { font-size: 16px; margin: 0; }
    #sgBody { display: flex; flex-direction: column; min-height: 0; }
    .sg-search input { margin-bottom: 0; }
    .sg-list { overflow-y: auto; min-height: 120px; margin-top: 10px; display: flex; flex-direction: column; }
    .sg-row {
        display: flex; align-items: center; gap: 10px; padding: 8px 6px; width: 100%;
        background: none; border: none; border-top: 1px solid rgba(40, 45, 51, 0.6);
        color: var(--text); font-family: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-sm);
    }
    :where(html[data-theme="light"]) .sg-row { border-top: 1px solid rgba(36, 48, 79, 0.6); }
    .sg-row:first-child { border-top: none; }
    .sg-row:hover { background: var(--surface-2); }
    .sg-row-locked { opacity: 0.55; cursor: default; }
    .sg-row-locked:hover { background: none; }
    .sg-row-active { background: var(--surface-2); }
    .sg-row-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
    .sg-row-info { flex: 1; min-width: 0; }
    .sg-row-name { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sg-row-sub { display: block; font-size: 11px; color: var(--text-muted); }
    
    .sg-row .stamp { flex-shrink: 0; }
    .sg-selected {
        background: var(--surface-2); border: 1px solid var(--border);
        border-radius: var(--radius-md); padding: 12px; margin-bottom: 12px;
    }
    .sg-selected-game { display: flex; align-items: center; gap: 10px; }
    .sg-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; }
    .sg-note-blocked { color: var(--text-2); }
    
    .sg-scope { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; max-height: 190px; overflow-y: auto; }
    .sg-scope-title { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
    
    .sg-scope-opt {
        display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
        padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--border);
        border-radius: var(--radius-md); background: var(--surface); cursor: pointer; font-size: 13px;
    }
    .sg-scope-opt:hover { border-color: var(--border-hover); }
    .sg-scope-opt.on { border-color: var(--brand-2); background: var(--surface-3); }
    .sg-scope-rad { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text-muted); position: relative; flex-shrink: 0; }
    .sg-scope-opt.on .sg-scope-rad { border-color: var(--brand-2); }
    .sg-scope-opt.on .sg-scope-rad::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand-gradient); }
    .sg-scope-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .sg-scope-name { font-weight: 700; }
    .sg-scope-tr { font-size: 11px; color: var(--text-muted); }
    .sg-scope-opt .stamp { flex-shrink: 0; }
    .sg-actions { margin-top: 12px; display: flex; justify-content: flex-end; }
    .sg-empty { padding: 20px 10px; text-align: center; font-size: 12.5px; color: var(--text-muted); }

    
    
    .ed-frame { width: 100%; }
    .ed-bar {
        display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px 16px;
    }
    .ed-bar h1 { font-size: 16px; margin-right: 4px; min-width: 0; overflow-wrap: anywhere; }
    .ed-autosave { font-size: 11.5px; color: var(--text-muted); }
    .ed-bar .actions { margin-left: auto; display: flex; gap: 8px; }
    
    .ed-save { min-width: 112px; gap: 6px; }
    .ed-save svg { flex: none; }
    
    .ed-save.is-saved[aria-disabled="true"], .ed-save.is-saving[aria-disabled="true"],
    .ed-save.is-saved[aria-disabled="true"]:hover, .ed-save.is-saving[aria-disabled="true"]:hover { opacity: 1; filter: none; background: var(--surface-2); border-color: var(--border); color: var(--text-2); cursor: default; }
    .ed-save.is-saved svg { color: var(--success); }
    .ed-save:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .ed-autosave.is-failed { color: var(--danger); }
    
    @media (max-width: 560px) {
        .ed-bar { flex-wrap: wrap; }
        .ed-bar h1 { min-width: 0; }
        .ed-bar .ed-autosave { margin-left: auto; }
        .ed-bar .actions { flex-basis: 100%; margin-left: 0; flex-wrap: wrap; justify-content: flex-end; }
        .ed-bar .actions .btn { white-space: nowrap; }
    }
    .ed-conflict {
        background: rgba(233, 69, 96, 0.12); border: 1px solid rgba(233, 69, 96, 0.4); color: var(--text-2);
        border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 16px; font-size: 13px;
        display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    }

    .ed-cols { display: flex; gap: 24px; align-items: flex-start; }
    .ed-main { flex: 1; min-width: 0; }
    .ed-side { width: 300px; flex-shrink: 0; position: sticky; top: 16px; }
    .ed-side .panel { margin-bottom: 24px; }

    .meta-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 20px; }
    .meta-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 12px; }
    .field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
    .field .input, .block-body .input, .ed-all-body .input, .confirm-card .input {
        background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
        padding: 8px 10px; font-size: 13px; color: var(--text); width: 100%; font-family: inherit;
    }
    .field-wide { grid-column: 1 / -1; }
    .game-lock { display: flex; align-items: center; gap: 10px; }
    .game-lock .about-icon { width: 40px; height: 40px; }

    .block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 12px; }
    .block-head {
        display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border);
        font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted);
    }
    .block-controls { margin-left: auto; display: flex; gap: 4px; }
    .icon-btn {
        width: 24px; height: 24px; border-radius: var(--radius-sm); border: 1px solid var(--border);
        background: var(--surface-2); color: var(--text-3); font-size: 11px; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .icon-btn:hover { color: var(--text); }
    .icon-btn:disabled { opacity: 0.4; cursor: default; }
    .block-body { padding: 12px 14px; font-size: 13.5px; color: var(--text-2); }
    
    .block-textarea { min-height: 90px; max-height: none; resize: none; overflow: hidden; line-height: 1.5; margin-top: 8px; }

    .tag-toggle {
        font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
        border-radius: var(--radius-full); padding: 3px 10px; cursor: pointer;
        background: transparent; color: var(--text-muted); border: 1px dashed var(--border);
    }
    .tag-toggle.on { background: var(--surface-2); color: var(--text-2); border-style: solid; }
    
    .tag-toggle.on.tag-loss   { color: var(--danger); border-color: rgba(233, 69, 96, 0.4); }
    .tag-toggle.on.tag-online { color: var(--ps-purple); border-color: rgba(123, 120, 255, 0.4); }
    .tag-toggle.on.tag-local  { color: #4ec3d6; border-color: rgba(78, 195, 214, 0.4); }
    .tag-toggle.on.tag-effort { color: var(--gold); border-color: rgba(232, 169, 60, 0.4); }
    .tag-toggle.on.tag-rng    { color: #c77dff; border-color: rgba(199, 125, 255, 0.4); }
    .tag-toggle.on.tag-safe   { color: var(--success); border-color: rgba(70, 201, 155, 0.4); }
    
    .tag-toggle.on.tag-unobtainable { background: var(--surface-2); color: #c0392b; border-color: rgba(192, 57, 43, 0.4); }
    
    .tag-toggle.at-cap { opacity: 0.3; cursor: default; }
    .tag-cap-note { align-self: center; font-size: 10.5px; color: var(--text-muted); }
    
    .tag-toggle.implied {
        cursor: default;
        opacity: 0.55;
        border-style: dotted;
    }

    .picker { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); margin-top: 10px; overflow: hidden; }
    .picker .search {
        padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 12.5px;
        background: var(--surface-2); border-left: none; border-right: none; border-top: none; width: 100%; font-family: inherit;
    }
    .picker-rows { max-height: 300px; overflow-y: auto; }
    .picker-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-size: 12.5px; border-bottom: 1px solid var(--border); cursor: pointer; }
    .picker-row:last-child { border-bottom: none; }
    .picker-row:hover { background: var(--surface); }
    .picker-row .tb-icon { width: 26px; height: 26px; }
    .picker-name { flex: 1; }
    .picker-row .pr-rarity { color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: 11.5px; }
    .picker-row.used { opacity: 0.4; cursor: default; }
    .picker-row .used-tag { font-size: 10px; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 0 6px; }

    .picker-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--border); }
    .picker-row-multi { cursor: pointer; }
    .picker-row-multi .pick-multi-check { flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
    .picker-row-multi.used { cursor: default; }
    
    .picker-row .pr-type { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; }
    .picker-row .pr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
    .picker-row .pr-main .picker-name { flex: none; font-weight: 600; color: var(--text-2); }
    .picker-row .pr-desc { font-size: 11px; line-height: 1.35; color: var(--text-muted); }

    
    .icon-drop { position: relative; display: inline-flex; }
    .icon-btn .g-key { height: 13px; margin: 0; }
    
    .icon-btn .yt-icon { height: 15px; width: auto; display: block; }
    .icon-grid {
        position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; width: 232px;
        max-width: calc(100vw - 32px);
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
        box-shadow: var(--shadow-2); padding: 6px;
        display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
    }
    .icon-grid[hidden] { display: none; }
    .icon-cell {
        display: inline-flex; align-items: center; justify-content: center; padding: 4px;
        border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; cursor: pointer;
    }
    .icon-cell:hover { border-color: var(--border); background: var(--surface-2); }
    .icon-cell .g-key { height: 18px; margin: 0; }

    
    .ed-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 8px; margin-top: 10px; }
    .ed-step { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .ed-step .input { flex: 1; min-width: 140px; }
    .ed-step .ed-step-row { width: 100%; }
    .ed-stage-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

    
    .ed-ref {
        display: flex; align-items: center; gap: 9px; min-width: 0;
        padding: 8px 10px; background: var(--surface-2);
        border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .ed-ref-type { width: 17px; height: 17px; flex-shrink: 0; object-fit: contain; }
    .ed-ref-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--surface); }
    .ed-ref-main { flex: 1; min-width: 0; }
    .ed-ref-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
    .ed-ref-desc {
        font-size: 11px; line-height: 1.35; color: var(--text-muted);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .ed-ref .icon-btn { flex-shrink: 0; }

    
    .ed-all-head {
        display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
        margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
    }
    .ed-all-head h2 { font-size: 16px; }
    .ed-all-row {
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
        margin-bottom: 8px;
    }
    .ed-all-row.open { border-color: var(--text-muted); }
    .ed-all-row-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; }
    .ed-all-row-head:focus-visible, .tag-toggle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .ed-all-row-head:hover { background: var(--surface-2); border-radius: var(--radius-md); }
    .ed-all-type { width: 17px; height: 17px; flex-shrink: 0; object-fit: contain; }
    .ed-all-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--surface-2); }
    .ed-all-main { flex: 1; min-width: 0; }
    .ed-all-name { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
    .ed-all-desc { font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }
    .ed-all-rarity { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .ed-all-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 250px; }
    .ed-all-chev { width: 12px; text-align: center; color: var(--text-3); flex-shrink: 0; }
    .ed-all-body { padding: 0 12px 12px; border-top: 1px solid var(--border); }
    .ed-all-body .block-textarea { margin-top: 0; min-height: 70px; }

    
    @media (max-width: 760px) {
        .ed-steps { grid-template-columns: 1fr; }
        .ed-all-row-head { flex-wrap: wrap; padding: 9px 10px; }
        .ed-all-main { flex-basis: 55%; }
        .ed-all-chev { order: 3; }
        .ed-all-chips { order: 4; flex-basis: 100%; justify-content: flex-start; max-width: none; }
        .ed-all-body { padding: 0 10px 10px; }
    }

    .add-block { border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 12px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 16px 0; }
    .add-chip {
        display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface);
        border-radius: var(--radius-full); padding: 6px 13px; font-size: 12px; font-weight: 600; color: var(--text-2); cursor: pointer;
    }
    .add-chip:hover { border-color: var(--text-muted); color: var(--text); }
    .add-chip .plus { color: var(--success); font-weight: 700; }


    .check-row { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-3); padding: 5px 0; }
    .check-row .ok { color: var(--success); }
    .check-row .warn { color: var(--gold); }

    
    #guideView, #edPreview, .gx-static {
        --gx-raised: var(--surface-2);
        --gx-row: var(--surface-3);
        --gx-route: var(--border-hover);
        --gx-line: #33383f;
        --gx-plate: var(--surface);
        --gx-gap: 14px;
    }
    html[data-theme="light"] #guideView, html[data-theme="light"] #edPreview, html[data-theme="light"] .gx-static {
        --gx-raised: #f1f4f9;
        --gx-row: #ffffff;
        --gx-route: #c3cddd;
        --gx-line: var(--border);
    }
    
    .gv-cols { margin-top: 28px; }
    .gv-body.gx-body { background: none; border: 0; border-radius: 0; padding: 0; }
    
    .gx-body { --gx-measure: 100%; --gx-pic-measure: 100%; --gx-flow-measure: 100%; }
    .gx-part { margin-top: 48px; }
    .gx-body > section.gx-part:first-of-type { margin-top: 0; }

    .gx-head { display: flex; align-items: baseline; gap: 16px; margin: 0 4px 14px; }
    .gx-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; color: var(--text); }
    .gx-head-meta { margin-left: auto; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .gx-head-meta b { font-weight: 700; color: var(--text-2); }
    .gx-surface { background: var(--surface); border-radius: 14px; padding: 28px 30px 30px; }
    html[data-theme="light"] .gx-surface { border: 1px solid var(--border); }
    .gx-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .gx-left { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .gx-left.is-all { color: var(--success); }
    .gx-empty { margin: 0; font-size: 14.5px; color: var(--text-3); }

    
    .gx-ok {
        position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center;
        width: 19px; height: 19px; border-radius: 50%; background: var(--success); color: var(--stamp-ink);
        box-shadow: 0 0 0 2.5px var(--gx-plate);
    }
    .gx-ok svg { width: 11px; height: 11px; }

    
    .gx-lead { font-size: 16px; line-height: 1.65; color: var(--text-2); max-width: var(--gx-measure, 100%); }
    .gx-lead p { margin: 0; }
    .gx-facts { display: grid; grid-template-columns: repeat(var(--gx-facts, 3), minmax(0, 1fr)); margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); }
    .gx-facts.is-first { margin-top: 0; padding-top: 0; border-top: 0; }
    .gx-fact { min-width: 0; padding: 0 20px; border-left: 1px solid var(--border); }
    .gx-fact:first-child { padding-left: 0; border-left: 0; }
    .gx-fact dt { font-size: 13px; line-height: 1.4; color: var(--text-3); }
    .gx-fact dd { margin: 4px 0 0; font-size: 16px; font-weight: 800; color: var(--text); }
    .gx-fact dd.is-yes { color: var(--success); }
    .gx-fact dd.is-none { color: var(--text-2); }

    
    .gx-cats { margin-top: 32px; }
    .gx-sub { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--text); }
    .gx-cat-n { font-weight: 600; color: var(--text-3); }
    .gx-names, .gx-cline-names { margin: 0; padding: 0; list-style: none; }
    .gx-nm { min-width: 0; }
    .gx-nm[hidden] { display: none; }
    .gx-nm-a {
        display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 32px; margin: 0 -8px; padding: 4px 8px; border-radius: 6px;
        font-size: 14.5px; line-height: 1.35; color: var(--text); text-decoration: none;
    }
    .gx-nm-a:hover .gx-nm-t { text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
    .gx-nm-a:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
    .gx-nm-a .gx-cup { width: 14px; height: 14px; }
    .gx-nm-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gx-nm.is-earned .gx-nm-t { color: var(--text-3); }
    .gx-nm.is-earned .gx-cup { opacity: 0.5; }
    .gx-nm-ok { flex: none; display: inline-flex; color: var(--success); }
    .gx-nm-ok svg { width: 13px; height: 13px; }
    .gx-body mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; }
    .gx-textbtn {
        padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700;
        color: var(--accent); white-space: nowrap; cursor: pointer;
    }
    .gx-textbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
    .gx-cline { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; column-gap: 16px; align-items: start; padding: 6px 0; border-top: 1px solid var(--border); }
    .gx-cline:first-child { border-top: 0; padding-top: 0; }
    .gx-cline-k { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; color: var(--text); }
    .gx-cline-k .chipline { font-weight: 600; }
    .gx-cline-k .gx-cat-n { font-size: 13px; }
    .gx-cline-names { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
    .gx-cline .gx-nm { display: flex; align-items: center; max-width: 100%; }
    .gx-cline .gx-nm + .gx-nm::before { content: ""; flex: none; width: 1px; height: 14px; margin: 0 6px; background: var(--gx-route); }
    .gx-cline .gx-nm-a { margin: 0; }
    .gx-cline .gx-nm:first-child .gx-nm-a { margin-left: -8px; }
    .gx-cline .gx-nm-a:hover { background: var(--gx-raised); }
    .gx-cline-more { display: flex; align-items: center; align-self: start; height: 32px; padding: 0; }
    .gx-cline .gx-nm[hidden] { display: none; }
    .gx-cline.is-open .gx-cline-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
    .gx-cline.is-open .gx-nm + .gx-nm::before { display: none; }
    .gx-cline.is-open .gx-nm-a, .gx-cline.is-open .gx-nm:first-child .gx-nm-a { margin: 0 -8px; }
    .gx-cline-more[hidden] { display: none; }

    
    .gx-surface.gx-rm { padding-top: 6px; }
    .gx-route { position: relative; }
    .gx-rt-item { position: relative; padding-left: 58px; --gx-my: 38px; }
    .gx-rt-item + .gx-rt-item { margin-top: var(--gx-gap); }
    .gx-rt-item::before {
        content: ""; position: absolute; left: 17px; top: var(--gx-my); bottom: calc(-1 * (var(--gx-gap) + var(--gx-my)));
        width: 2px; border-radius: 1px; background: var(--gx-route);
    }
    .gx-rt-item:last-child::before { display: none; }
    .gx-rt-item.is-done::before { background: var(--success); }
    .gx-node {
        position: absolute; left: 2px; top: calc(var(--gx-my) - 16px); z-index: 2; display: grid; place-items: center;
        width: 32px; height: 32px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--gx-route);
        font-size: 14px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums;
    }
    .gx-node svg { display: none; width: 15px; height: 15px; }
    .is-current > .gx-node { background: var(--accent); box-shadow: none; color: var(--accent-ink); }
    .is-done > .gx-node { background: var(--success); box-shadow: none; color: var(--stamp-ink); }
    .is-done > .gx-node .gx-node-n { display: none; }
    .is-done > .gx-node svg { display: block; }
    .gx-rt-chapter { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-top: 26px; padding-bottom: 6px; }
    .gx-mark { position: absolute; left: 12px; top: calc(var(--gx-my) - 6px); width: 12px; height: 12px; border-radius: 3px; background: var(--gx-route); }
    .gx-rt-chapter.is-done .gx-mark { background: var(--success); }
    .gx-chapter { margin: 0; font-size: 17px; font-weight: 800; line-height: 24px; letter-spacing: -0.2px; color: var(--text); }
    .gx-rt-text { padding-top: 18px; padding-bottom: 18px; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: calc(var(--gx-measure, 100%) + 58px); }
    .gx-rt-text p, .gx-route-after p { margin: 0; }
    .gx-rt-text p + p, .gx-route-after p + p { margin-top: 12px; }
    .gx-after { font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: var(--gx-measure, 100%); }
    .gx-route + .gx-after { margin: 26px 0 0 58px; padding-top: 18px; border-top: 1px solid var(--border); }
    .gx-after > * + * { margin-top: 14px; }

    .gx-stage { position: relative; z-index: 1; padding: 22px 26px 26px; border-radius: 10px; background: var(--gx-raised); --gx-plate: var(--gx-row); }
    .gx-stage-head { display: flex; align-items: center; gap: 8px 18px; min-height: 32px; }
    .gx-stage-head h3 { margin: 0; min-width: 0; font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.2px; color: var(--text); overflow-wrap: anywhere; }
    
    .gx-stage-head h3 .gx-untitled { color: var(--text-3); font-weight: 600; }
    .gx-stage-prog { flex: none; display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; color: var(--text-3); }
    .gx-seg { display: flex; gap: 4px; }
    .gx-seg i { width: 18px; height: 5px; border-radius: 3px; background: var(--gx-route); }
    .gx-seg i.on { background: var(--success); }
    .gx-stage-text { margin-top: 14px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
    .gx-stage-text p { max-width: var(--gx-measure, 100%); margin: 0; }
    .gx-stage-text p + p { margin-top: 12px; }
    .gx-body .media-embed { margin: 18px 0 0; max-width: 560px; border: 0; border-radius: 8px; }

    .gx-steps { display: flex; flex-direction: column; gap: 6px; margin-top: 22px; }
    .gx-step {
        display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 12px 16px; border-radius: 8px;
        background: var(--gx-row); font-size: 15px; line-height: 1.5; color: var(--text); cursor: pointer;
    }
    .gx-step.is-inert { cursor: default; }
    .gx-box {
        flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
        border: 2px solid var(--text-muted); color: transparent;
    }
    .gx-box svg { width: 13px; height: 13px; }
    .gx-step:not(.is-inert):hover .gx-box { border-color: var(--accent); }
    .gx-step.done { color: var(--text-3); }
    .gx-step.done .gx-box { background: var(--success); border-color: var(--success); color: var(--stamp-ink); }
    .gx-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .gx-step-text { min-width: 0; max-width: var(--gx-measure, 100%); overflow-wrap: anywhere; }

    .gx-st-wrap { margin-top: 24px; }
    .gx-st-wrap[hidden] { display: none; }
    .gx-label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
    .gx-st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .gx-st { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 12px 9px 9px; border-radius: 8px; background: var(--gx-row); cursor: pointer; }
    .gx-st:hover .gx-st-name { text-decoration: underline; text-underline-offset: 2px; }
    .gx-st:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .gx-st-ico { position: relative; flex: none; width: 38px; height: 38px; }
    .gx-st-ico img { display: block; width: 38px; height: 38px; border-radius: 7px; object-fit: cover; background: var(--icon-plate); }
    .gx-st.is-earned .gx-st-ico img { opacity: 0.42; filter: saturate(0.4); }
    .gx-st-ico .gx-ok { width: 17px; height: 17px; right: -4px; bottom: -4px; }
    .gx-st-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
    .gx-st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--text); }
    .gx-st.is-earned .gx-st-name { color: var(--text-3); }
    .gx-st-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-3); }
    .gx-type { display: inline-flex; align-items: center; gap: 5px; }
    .gx-cup { width: 14px; height: 14px; flex: none; }

    
    .gx-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 20px; }
    .gx-fbtns { display: flex; flex-wrap: wrap; gap: 8px; }
    .gx-search { position: relative; width: 260px; margin-left: auto; }
    .gx-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
    .gx-find {
        width: 100%; height: 36px; padding: 0 12px 0 36px; border: 1px solid transparent; border-radius: 8px;
        background: var(--gx-raised); font: inherit; font-size: 14px; color: var(--text);
    }
    html[data-theme="light"] .gx-find { background: #ffffff; border-color: var(--border); }
    .gx-find::placeholder { color: var(--text-3); opacity: 1; }
    .gx-find:focus { outline: 2px solid var(--accent); outline-offset: 0; }
    .gx-nomatch { margin: 4px 0 0; font-size: 14.5px; color: var(--text-2); }
    .gx-fbtn {
        display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 8px;
        background: var(--gx-raised); font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-2); cursor: pointer;
    }
    .gx-fbtn span { font-weight: 600; color: var(--text-3); }
    .gx-fbtn:hover { color: var(--text); }
    .gx-fbtn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
    .gx-fbtn[aria-pressed="true"] span { color: inherit; opacity: 0.75; }
    .gx-fbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

    .gx-cards { display: flex; flex-direction: column; gap: 10px; }
    .gx-card { position: relative; padding: 22px 26px 24px; border-radius: 10px; background: var(--gx-raised); scroll-margin-top: 70px; }
    .gx-card-top { display: flex; align-items: center; gap: 16px; }
    .gx-card-icon { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--icon-plate); }
    .gx-card-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
    .gx-card-name { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -0.1px; color: var(--text); overflow-wrap: anywhere; }
    .gx-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13px; color: var(--text-3); }
    .gx-card-meta .gx-type { font-weight: 600; color: var(--text-2); }
    .gx-rar b { font-weight: 700; color: var(--text-2); }
    .gx-card-desc { margin: 16px 0 0; max-width: var(--gx-measure, 100%); font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
    .gx-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
    .gx-warn {
        display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 11px 14px; border-radius: 8px;
        background: color-mix(in srgb, var(--danger) 11%, var(--gx-raised));
        font-size: 14px; line-height: 1.45; color: var(--text);
    }
    .gx-warn svg { flex: none; margin-top: 2px; color: var(--danger); }
    .gx-warn b { font-weight: 800; color: var(--danger); }
    .gx-card-body { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--gx-line); font-size: 15.5px; line-height: 1.65; color: var(--text-2); overflow-wrap: anywhere; }
    .gx-card-body p { max-width: var(--gx-measure, 100%); margin: 0; }
    .gx-card-body p + p { margin-top: 12px; }
    .gx-card-unwritten { margin: 16px 0 0; font-size: 14px; color: var(--text-3); }
    .gx-card.is-landed { outline: 2px solid var(--accent); outline-offset: 3px; }

    
    .gx-card.is-earned { padding: 0; }
    .gx-card-row {
        display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 16px 11px 11px; border: 0; border-radius: 10px;
        background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
    }
    .gx-card-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .gx-card-ico { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--icon-plate); opacity: 0.6; }
    .gx-card.is-earned .gx-card-id { gap: 3px; }
    .gx-card.is-earned .gx-card-name { font-size: 14.5px; font-weight: 700; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .gx-card.is-earned .gx-card-meta { font-size: 12.5px; }
    .gx-earned { flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--success); }
    .gx-chev { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--text-3); }
    .gx-card-row:hover .gx-chev { background: var(--gx-row); color: var(--text); }
    .gx-card.is-open .gx-chev svg { transform: rotate(180deg); }
    .gx-card-more { padding: 0 26px 22px 65px; }
    .gx-card-more .gx-card-desc { margin-top: 4px; }
    .gx-card-more[hidden] { display: none; }

    
    .back-jump-wrap { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 40; display: flex; justify-content: center; pointer-events: none; }
    .back-jump {
        pointer-events: auto; padding: 10px 18px; border: 0; border-radius: var(--radius-full);
        background: var(--accent); color: var(--accent-ink);
        font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }
    .back-jump[hidden] { display: none; }
    .back-jump:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

    
    .toc-sub { padding-left: 22px; color: var(--text-3); }
    .toc-sub.toc-h { font-size: 12.5px; font-weight: 700; color: var(--text-3); padding-top: 9px; }
    .toc-m-btn { display: none; }

    
    @media (max-width: 600px) {
        .gv-cols { margin-top: 20px; }
        .gx-part { margin-top: 40px; }
        .gx-head { margin-bottom: 12px; }
        .gx-head h2 { font-size: 20px; }
        .gx-surface { padding: 20px 16px 22px; border-radius: 12px; }
        .gx-lead { font-size: 15.5px; }
        .gx-facts { grid-template-columns: 1fr; margin-top: 18px; padding-top: 2px; }
        .gx-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-left: 0; }
        .gx-fact + .gx-fact { border-top: 1px solid var(--border); }
        .gx-fact dd { margin: 0; font-size: 15px; }
        .gx-cats { margin-top: 26px; }
        .gx-cline { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k k" "n m"; padding: 6px 0; }
        .gx-cline-k { grid-area: k; min-height: 22px; }
        .gx-cline .gx-nm-a, .gx-cline-more { min-height: 30px; height: auto; }
        .gx-cline-names { grid-area: n; }
        .gx-cline-more { grid-area: m; }
        .gx-cline.is-open .gx-cline-names { grid-template-columns: minmax(0, 1fr); }
        .gx-nm-a { min-height: 36px; }
        .gx-filter .gx-search { width: 100%; margin-left: 0; }
        .gx-find { height: 44px; font-size: 16px; }

        
        .gx-surface.gx-rm { padding-top: 2px; }
        .gx-rt-item { padding-left: 0; --gx-my: 32px; }
        .gx-rt-item::before { left: 31px; }
        .gx-node { left: 16px; }
        .gx-rt-chapter { padding-left: 46px; padding-top: 20px; }
        .gx-rt-text { padding-left: 46px; }
        .gx-mark { left: 26px; }
        .gx-stage { padding: 16px 16px 18px; }
        .gx-stage-head { flex-wrap: wrap; padding-left: 46px; }
        .gx-stage-head h3 { font-size: 17.5px; flex: 1 1 100%; }
        .gx-stage-prog { margin-left: 0; }
        .gx-stage-text { font-size: 15px; }
        .gx-steps { margin-top: 18px; }
        .gx-step { padding: 12px 14px; }
        .gx-st-grid { grid-template-columns: 1fr; }
        .gx-st-name { white-space: normal; }
        .gx-route + .gx-after { margin-left: 0; }

        .gx-filter, .gx-fbtns { gap: 6px; }
        .gx-fbtn { padding: 0 11px; font-size: 13px; }
        .gx-card { padding: 16px 16px 18px; }
        .gx-card-top { align-items: flex-start; gap: 14px; }
        .gx-card-icon { width: 48px; height: 48px; }
        .gx-card-name { font-size: 16px; }
        .gx-card-body { font-size: 15px; }
        .gx-card.is-earned { padding: 0; }
        .gx-card-row { gap: 12px; padding: 10px; }
        .gx-earned-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
        .gx-card-more { padding: 0 16px 18px 16px; }
        .gx-card.is-earned .gx-card-meta { flex-wrap: nowrap; gap: 10px; }
        .gx-card.is-earned .gx-type-t { display: none; }
    }

    
    @media (max-width: 860px) {
        .rail-toc .toc-d-h { display: none; }
        .rail-toc:not(.is-open) .toc-list { display: none; }
        .rail-toc { padding-top: 0; padding-bottom: 0; }
        .rail-toc.is-open { padding-bottom: 12px; }
        .toc-m-btn {
            display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 0;
            border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer;
        }
        .toc-m-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
        .toc-m-chev { color: var(--text-3); transition: transform 0.15s; }
        .toc-m-btn[aria-expanded="true"] .toc-m-chev { transform: rotate(180deg); }
    }
    @media (prefers-reduced-motion: reduce) { .toc-m-chev { transition: none; } }

    

    
    .guide-pic-btn { position: relative; display: block; width: fit-content; max-width: 100%; margin: 12px 0; padding: 0; border-radius: var(--radius-md); line-height: 0; cursor: zoom-in; }
    .guide-pic-btn .guide-image { margin: 0; height: auto; }
    .guide-pic-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .guide-pic-zoom {
        position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px;
        display: grid; place-items: center; border-radius: var(--radius-sm);
        background: rgba(4, 6, 10, 0.62); color: #fff;
    }
    
    .gx-body .guide-pic-btn { margin: 18px 0 0; max-width: min(var(--gx-pic-measure, 100%), 100%); border-radius: 8px; font-family: inherit; font-size: inherit; }
    .gx-body .guide-image { border: 0; border-radius: 8px; }

    
    .gx-body .guide-fig { margin: 18px 0 0; width: fit-content; max-width: min(100%, var(--gx-pic-measure, 100%)); }
    .gx-body .guide-fig > .guide-pic-btn { margin: 0; max-width: 100%; }
    .gx-body .guide-fig-center.has-w {
        width: min(calc(min(100%, var(--gx-pic-measure, 100%)) * var(--pic-w, 100) / 100), calc(var(--pic-nw, 100000) * 1px));
        margin-left: auto; margin-right: auto;
    }
    .gx-body .guide-fig.has-w > .guide-pic-btn, .gx-body .guide-fig.has-w .guide-image { width: 100%; }
    
    .guide-cap { width: 0; min-width: 100%; margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-3); text-align: left; overflow-wrap: anywhere; }
    .gx-body .guide-fig-center.is-narrow .guide-cap { text-align: center; }

    

    
    .gx-body .guide-fig + p:not(.pic-review-alt), .gx-body .guide-pic-row + p:not(.pic-review-alt), .gx-body .pic-review-item + p:not(.pic-review-alt), .gx-body .guide-table + p { margin-top: 18px; }

    
    .gx-body .guide-flow { display: flow-root; max-width: var(--gx-flow-measure, 100%); container: guide-flow / inline-size; }

    
    .gx-body p.guide-align-center { max-width: var(--gx-measure, 100%); text-align: center; }
    .gx-body p.guide-align-right { max-width: var(--gx-measure, 100%); text-align: right; }

    
    @container guide-flow (min-width: 520px) {
        .gx-body .guide-flow .guide-fig-left { float: left; clear: both; width: 40%; max-width: none; margin: 5px 24px 12px 0; }
        .gx-body .guide-flow .guide-fig-right { float: right; clear: both; width: 40%; max-width: none; margin: 5px max(0px, 100% - var(--gx-measure, 100%)) 12px 24px; }
        .gx-body .guide-flow .guide-fig-left.is-tall:not(.has-w), .gx-body .guide-flow .guide-fig-right.is-tall:not(.has-w) { width: 28%; }
        .gx-body .guide-flow .guide-fig-left.has-w, .gx-body .guide-flow .guide-fig-right.has-w { width: calc(min(100%, var(--gx-measure, 100%)) * var(--pic-w, 40) / 100); }
        .gx-body .guide-flow .guide-fig-left .guide-pic-btn, .gx-body .guide-flow .guide-fig-right .guide-pic-btn { width: 100%; max-width: 100%; }
        .gx-body .guide-flow .guide-fig-left .guide-image, .gx-body .guide-flow .guide-fig-right .guide-image { width: 100%; }
        
        .gx-body .guide-flow .guide-fig-left .guide-image, .gx-body .guide-flow .guide-fig-right .guide-image { max-height: 480px; object-fit: contain; }
        .gx-body .guide-flow .guide-fig-left + p, .gx-body .guide-flow .guide-fig-right + p { margin-top: 0; }
        .gx-body .guide-flow > * + .guide-fig-left, .gx-body .guide-flow > * + .guide-fig-right { margin-top: 23px; }
        .gx-body .guide-flow > * + .guide-fig-left + p, .gx-body .guide-flow > * + .guide-fig-right + p { margin-top: 18px; }
        .gx-body .guide-flow > :not(.guide-fig-left):not(.guide-fig-right):not(p) { clear: both; }
    }

    
    .gx-body .guide-pic-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; }
    .gx-body .guide-pic-row > .guide-fig, .gx-body .guide-pic-row > .pic-review-item { flex: var(--pic-ar, 1.7778) 1 0; min-width: 0; width: auto; max-width: none; margin: 0; }
    .gx-body .guide-pic-row .guide-pic-btn { width: 100%; }
    .gx-body .guide-pic-row .guide-image { width: 100%; }
    
    .gx-body .guide-pic-row .guide-image { aspect-ratio: var(--pic-ar, auto); object-fit: contain; }
    .gx-body .guide-pic-row .guide-pic-zoom { right: 8px; bottom: 8px; }

    
    @container guide-flow (max-width: 519.98px) {
        .gx-body .guide-pic-row { flex-direction: column; gap: 12px; }
        .gx-body .guide-pic-row > .guide-fig, .gx-body .guide-pic-row > .pic-review-item { flex: none; width: 100%; }
        .gx-body .guide-flow .guide-fig.has-w { width: fit-content; margin-left: 0; margin-right: 0; }
        .gx-body .guide-flow .guide-fig.has-w > .guide-pic-btn, .gx-body .guide-flow .guide-fig.has-w .guide-image { width: auto; }
        .gx-body .guide-flow .guide-fig-center.is-narrow .guide-cap { text-align: left; }
    }

    
    @media (max-width: 560px) {
        .gx-body .guide-pic-btn.is-tall { max-width: 75%; margin-left: auto; margin-right: auto; }
        .gx-body .guide-fig.is-tall { max-width: 75%; margin-left: auto; margin-right: auto; }
        .gx-body .guide-pic-row > .guide-fig.is-tall, .gx-body .guide-pic-row > .pic-review-item.is-tall { width: 75%; align-self: center; }
        .gx-body .pic-review-item.is-tall { max-width: 75%; margin-left: auto; margin-right: auto; }
    }

    
    .guide-table {
        --tbl-line: color-mix(in srgb, var(--text) 13%, transparent);
        container: guide-table / inline-size; position: relative; clear: both;
        width: min(100%, var(--gx-pic-measure, 100%)); margin-top: 18px;
        border: 1px solid var(--tbl-line); border-radius: 8px; overflow: hidden;
    }
    html[data-theme="light"] .guide-table { --tbl-line: var(--border); }
    .guide-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
    .guide-table-scroll:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
    .guide-table-scroll.has-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
    .guide-table-scroll.has-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
    .guide-table-scroll.has-more-left.has-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
    .guide-table table { display: table; width: 100%; max-width: none; margin: 0; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
    .guide-table th, .guide-table td { min-width: 6em; padding: 10px 14px; vertical-align: middle; text-align: left; border-right: 1px solid var(--tbl-line); border-bottom: 1px solid var(--tbl-line); overflow-wrap: break-word; }
    .guide-table tr > :last-child { border-right: 0; }
    .guide-table tbody tr:last-child > *, .guide-table thead:last-child tr:last-child > * { border-bottom: 0; }
    .guide-table th { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); font-weight: 700; }
    .guide-table td strong { color: var(--text); }
    .guide-table .guide-align-center { text-align: center; }
    .guide-table .guide-align-right { text-align: right; }
    .guide-table .g-key { height: 1.15em; }
    @container guide-table (max-width: 519.98px) {
        .guide-table table { min-width: calc(var(--cols, 3) * 9.5em); }
    }
    
    .guide-table .guide-cellpic { display: block; width: max(96px, calc(var(--pic-w, 20) * 1cqi)); max-width: none; margin: 0; border-radius: 6px; }
    .guide-table .guide-cellpic .guide-image { width: 100%; border-radius: 6px; }
    .guide-table .guide-align-center .guide-cellpic { margin-left: auto; margin-right: auto; }
    .guide-table .guide-align-right .guide-cellpic { margin-left: auto; }
    .guide-table .guide-cellpic .guide-pic-zoom { right: 6px; bottom: 6px; width: 24px; height: 24px; }
    .guide-table .guide-cellpic .guide-pic-zoom svg { width: 12px; height: 12px; }
    .guide-table .guide-cellpic + br { display: none; }

    .pic-lightbox {
        position: fixed; inset: 0; z-index: 200;
        display: flex; align-items: center; justify-content: center;
        padding: 68px 24px 24px;
        background: rgba(4, 6, 10, 0.94);
    }
    .pic-lightbox img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-md); }
    
    .pic-lightbox-fig { display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 100%; height: 100%; margin: 0; }
    .pic-lightbox .pic-lightbox-fig img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
    .pic-lightbox-cap { flex: none; max-width: 70ch; margin-top: 12px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); text-align: center; }
    .pic-lightbox-close {
        position: absolute; top: 16px; right: 16px;
        padding: 9px 16px; border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.14); color: #fff;
        font-size: 14px; font-weight: 600;
    }
    .pic-lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
    .pic-lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

    
    .pic-textwrap { position: relative; margin-top: 8px; }
    .pic-textwrap .block-textarea { margin-top: 0; }
    .block-body > .input + .pic-textwrap { margin-top: 10px; }
    .pic-dragmsg {
        position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
        padding: 16px; text-align: center; pointer-events: none;
        border: 1.5px dashed var(--accent); border-radius: var(--radius-sm);
        background: color-mix(in srgb, var(--surface) 86%, transparent);
        color: var(--text); font-size: 14px; font-weight: 600;
    }
    .pic-textwrap.is-dragging .pic-dragmsg { display: flex; }

    
    .fmt-pic { width: auto; padding: 0 7px; }
    
    .fmt-align { display: inline-flex; gap: 4px; margin: 0 6px; }
    .fmt-break { display: none; }
    .fmt-align .icon-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
    .fmt-align .icon-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
    .pic-hint-line { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
    .pic-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }

    
    .ved-wrap .ved.input {
        position: relative; display: flow-root; min-height: 120px; margin: 0; padding: 16px 18px;
        container: ved / inline-size; font-size: 14.5px; line-height: 1.6; color: var(--text);
        white-space: pre-wrap; overflow-wrap: anywhere; cursor: text;
    }
    .ed-all-body .ved-wrap .ved.input { min-height: 90px; }
    .ved-wrap .ved.input:focus, .ved-wrap .ved.input:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
    .ved-wrap .ved[hidden], .ved-wrap .ved-raw[hidden] { display: none; }
    .ved.is-empty::before {
        content: attr(data-placeholder); position: absolute; top: 16px; left: 18px; right: 18px;
        color: var(--text-muted); white-space: normal; pointer-events: none;
    }
    .ved p { margin: 0; }
    .ved > p + p { margin-top: 12px; }
    .ved > .ved-fig, .ved > .ved-row, .ved > .ved-table, .ved > .ved-video { margin-top: 18px; }
    .ved > .ved-fig + p, .ved > .ved-row + p, .ved > .ved-table + p, .ved > .ved-video + p { margin-top: 18px; }
    .ved > :first-child { margin-top: 0; }
    .ved .guide-align-center { text-align: center; }
    .ved .guide-align-right { text-align: right; }
    .ved .g-key { height: 1.15em; }
    .ved strong { color: var(--text); }
    .ved-spoiler { padding: 1px 4px; border: 1px dashed var(--text-muted); border-radius: 4px; background: color-mix(in srgb, var(--text) 7%, transparent); }
    .ved-trophy { cursor: default; }
    .ved-trophy .guide-trophy-link { pointer-events: none; }
    .ved-trophy.is-unknown { color: var(--text-2); border-bottom: 1px dashed var(--text-muted); }
    .ved-fig, .ved-row, .ved-table, .ved-video, .ved-cellpic, .ved-inpic { white-space: normal; }
    .ved-table td, .ved-table th { white-space: pre-wrap; }
    .ved-wrap .ved-raw { min-height: 120px; line-height: 1.6; font-size: 13.5px; }
    .ved-text-note { margin-top: 8px; }
    .ved-refused { margin-top: 10px; }

    
    .ved-fig { position: relative; margin: 0; width: calc(var(--pic-w, 100) * 1%); max-width: 100%; }
    .ved > .ved-fig { clear: both; }
    .ved > .ved-fig.pos-center { width: min(calc(var(--pic-w, 100) * 1%), calc(var(--pic-nw, 100000) * 1px)); }
    .ved > .ved-fig.pos-center.has-w { margin-left: auto; margin-right: auto; }
    .ved > .ved-fig.pos-right { margin-left: auto; }
    
    .ved > .ved-fig.is-fallback { width: min(100%, calc(var(--pic-nw, 100000) * 1px)); margin-left: 0; }
    .ved-fig-frame { position: relative; display: block; line-height: 0; border-radius: 8px; cursor: pointer; }
    .ved-fig-frame:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .ved-img { display: block; width: 100%; height: auto; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
    .is-selected > .ved-fig-frame, .is-selected > .ved-fig-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    @container ved (min-width: 520px) {
        .ved > .ved-fig.pos-left.is-float { float: left; margin: 4px 24px 10px 0; }
        .ved > .ved-fig.pos-right.is-float { float: right; margin: 4px 0 10px 24px; }
        .ved > .ved-fig.is-float + p { margin-top: 0; }
        .ved > * + .ved-fig.is-float { margin-top: 22px; }
        .ved > * + .ved-fig.is-float + p { margin-top: 18px; }
        .ved > .ved-fig.is-float .ved-img { max-height: 480px; object-fit: contain; }
    }

    
    .ved-fig.is-uploading .ved-img, .ved-cellpic.is-uploading .ved-img { opacity: 0.5; }
    .ved-fig-frame.is-busy { overflow: hidden; background: var(--surface-2); cursor: default; }
    .ved-fig-blank { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--text-muted); }
    .ved-fig-frame.is-error {
        display: grid; place-items: center; min-height: 96px; cursor: default;
        border: 1.5px dashed var(--danger); color: var(--text-muted); line-height: normal;
    }
    .ved-fig-frame.is-error:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .ved-fig-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); font-variant-numeric: tabular-nums; }
    .ved-fig-status.pic-error { color: var(--danger); }
    .ved-fig-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }

    
    .ved-handle {
        display: none; position: absolute; top: 50%; z-index: 2;
        width: 8px; height: 40px; margin-top: -20px; border-radius: 4px;
        background: var(--accent); box-shadow: 0 0 0 2px var(--surface-2), 0 2px 8px rgba(0, 0, 0, 0.35);
        cursor: ew-resize; touch-action: none;
        transition: height 0.12s, margin-top 0.12s;
    }
    .ved-handle.is-l { left: -7px; }
    .ved-handle.is-r { right: -7px; }
    .is-selected > .ved-fig-frame > .ved-handle { display: block; }
    .ved-handle:hover, .ved-handle.is-dragging { height: 52px; margin-top: -26px; }
    .ved-handle:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .ved-readout {
        display: none; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 2;
        padding: 4px 9px; border-radius: 999px; background: rgba(4, 6, 10, 0.78); color: #fff;
        font-size: 12px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; pointer-events: none;
    }
    .is-resizing > .ved-fig-frame > .ved-readout { display: block; }

    
    .ved-cap {
        display: block; width: 100%; margin: 8px 0 0; padding: 2px 0 3px;
        border: 0; border-bottom: 1px dashed transparent; border-radius: 0; background: none;
        resize: none; overflow: hidden; min-height: 0; max-height: none; font: inherit; font-size: 13px; line-height: 1.45; color: var(--text-2);
    }
    .ved-cap::placeholder { color: var(--text-3); opacity: 1; }
    .ved-cap:placeholder-shown { border-bottom-color: var(--border); }
    .ved-cap:hover { border-bottom-color: var(--text-muted); }
    .ved-cap:focus { outline: none; border-bottom: 1px solid var(--accent); }
    .ved-fig.pos-center.is-narrow .ved-cap { text-align: center; }

    
    .ved-bar {
        display: flex; flex-wrap: nowrap; align-items: center; gap: 4px;
        padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-md);
        background: var(--surface); line-height: normal; white-space: nowrap;
    }
    .ved-picbar { position: absolute; top: 6px; left: 6px; z-index: 3; gap: 2px; padding: 3px; box-shadow: 0 2px 10px rgba(4, 6, 10, 0.45); }
    .ved-fig.pos-right > .ved-picbar { left: auto; right: 6px; }
    .ved-picbar .ed-seg-btn { height: 24px; padding: 0 7px; }
    .ved-picbar .ed-seg-btn:disabled { cursor: default; opacity: 0.5; }
    .ved-picbar .ved-bar-btn { height: 28px; padding: 0 6px; font-size: 12px; gap: 4px; }
    .ved-picbar .ved-bar-sep { margin: 0; }
    .bar-below > .ved-picbar { position: static; display: grid; grid-template-columns: auto auto; justify-content: start; width: fit-content; max-width: 100%; margin-top: 8px; box-shadow: none; }
    .bar-below > .ved-picbar .ved-bar-sep { display: none; }
    .bar-below > .ved-picbar .ed-seg { grid-column: 1 / -1; justify-self: start; }
    .ved-bar .ed-seg { padding: 2px; }
    .ved-bar .ed-seg-btn { height: 26px; padding: 0 10px; font-size: 12px; }
    .ved-bar-btn {
        display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px;
        border: 0; border-radius: 6px; background: none; font: inherit; font-size: 12.5px; font-weight: 700;
        color: var(--text-2); white-space: nowrap; cursor: pointer;
    }
    .ved-bar-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
    .ved-bar-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
    .ved-bar-btn.is-danger:hover:not(:disabled) { color: var(--danger); }
    .ved-bar-btn .ved-ok { display: inline-flex; color: var(--success); }
    .ved-bar-sep { flex: none; width: 1px; height: 18px; margin: 0 2px; background: var(--border); }

    
    .ved-alt {
        margin-top: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
        background: var(--surface); line-height: normal;
    }
    .ved-alt label { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--text); }
    .ved-alt .input { width: 100%; }
    .ved-alt-help { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-muted); white-space: normal; }
    .ved-alt-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

    
    .ved-row { clear: both; display: grid; gap: 10px; }
    .ved-row-line { display: flex; align-items: flex-start; gap: 10px; }
    .ved-row .ved-fig { flex: var(--pic-ar, 1.7778) 1 0; min-width: 0; width: auto; }
    .ved-row .ved-fig.is-done .ved-img { aspect-ratio: var(--pic-ar, auto); object-fit: contain; }
    @container ved (max-width: 519.98px) {
        .ved-row-line { flex-direction: column; }
        .ved-row .ved-fig { flex: none; width: 100%; }
    }

    
    .ved-inpic {
        display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 1px 8px 1px 2px;
        border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2);
        font-size: 12.5px; font-weight: 600; line-height: 1.6; color: var(--text-2); vertical-align: middle;
    }
    .ved-inpic img, .ved-inpic svg { width: 32px; height: 20px; object-fit: cover; border-radius: 4px; }
    .ved-video { position: relative; display: block; width: min(100%, 360px); clear: both; }
    .ved-video.is-inline { display: inline-block; width: 96px; vertical-align: middle; }
    .ved-video-frame { position: relative; display: block; line-height: 0; border-radius: 8px; cursor: pointer; }
    .ved-video-frame:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .ved-video.is-selected > .ved-video-frame { outline: 2px solid var(--accent); outline-offset: 2px; }
    .ved-video-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface-2); user-select: none; -webkit-user-drag: none; }
    .ved-video-play {
        position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
        display: grid; place-items: center; width: 44px; height: 32px; border-radius: 8px;
        background: rgba(4, 6, 10, 0.72); color: #fff; font-size: 14px; line-height: 1;
    }
    .ved-video.is-inline .ved-video-play { width: 26px; height: 18px; font-size: 9px; }

    
    .ved-table { position: relative; clear: both; }
    .ved-table .guide-table { margin-top: 0; }
    .ved-table th, .ved-table td { cursor: text; }
    .ved-table th:focus, .ved-table td:focus { outline: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 75%, transparent); }
    .ved-cellpic { position: relative; display: block; width: max(96px, calc(var(--pic-w, 20) * 1cqi)); margin: 2px 0; }
    .ved-cellpic .ved-fig-frame, .ved-cellpic .ved-img { border-radius: 6px; }
    .ved-cellpic .ved-fig-frame.is-error { min-height: 54px; }
    .ved-cellpic .ved-readout { bottom: 6px; padding: 3px 7px; font-size: 11.5px; }
    .guide-align-center > .ved-cellpic { margin-left: auto; margin-right: auto; }
    .guide-align-right > .ved-cellpic { margin-left: auto; }

    
    .tbl-drop { position: relative; }
    .tbl-pick {
        position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: grid; gap: 12px;
        padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
        background: var(--surface); box-shadow: var(--shadow-2);
        text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--text); cursor: default;
    }
    .tbl-pick[hidden] { display: none; }
    .tbl-pick-read { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
    .tbl-pick-grid { display: grid; grid-template-columns: repeat(10, 20px); gap: 3px; }
    .tbl-cell { width: 20px; height: 20px; padding: 0; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); cursor: pointer; }
    .tbl-cell.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 32%, var(--surface-2)); }
    .tbl-cell:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
    .tbl-pick-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
    .tbl-pick-head input { margin: 0; accent-color: var(--accent); }

    
    .block-head:has(.has-table-row) { align-items: flex-start; white-space: nowrap; line-height: 24px; }
    .block-controls.has-table-row { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
    .fmt-table-row {
        flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px;
        padding-top: 8px; border-top: 1px solid var(--border);
        text-transform: none; letter-spacing: normal; white-space: nowrap;
    }
    .fmt-table-label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
    .fmt-table-group { display: inline-flex; align-items: center; gap: 4px; }
    .fmt-table-sub { margin-right: 2px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
    .fmt-table-row .icon-btn { font-size: 14px; font-weight: 600; }
    .fmt-table-row .fmt-table-text { width: auto; padding: 0 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
    .fmt-table-row .icon-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
    .fmt-table-row .icon-btn[data-tb="del"]:hover { color: var(--danger); }
    .step-fmt.has-table-row { justify-content: flex-start; }

    
    .block-controls .icon-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
    .fmt-astext { margin-left: 2px; }
    
    .fmt-history { display: inline-flex; gap: 4px; margin: 0 2px; }
    
    .pic-card.is-line { display: block; }
    .pic-card.is-line .pic-card-head { margin-bottom: 4px; }
    .fmt-astext[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
    .block-controls .icon-btn[aria-expanded="true"] { color: var(--text); border-color: var(--text-muted); }

    
    @media (max-width: 560px) {
        .ved-bar { gap: 2px; padding: 3px; }
        .ved-bar .ed-seg-btn { padding: 0 7px; }
        .ved-bar-btn { padding: 0 7px; }
        .fmt-table-label { flex-basis: 100%; }
        .ved-wrap .ved.input { padding: 14px; }
        .ved.is-empty::before { top: 14px; left: 14px; right: 14px; }
    }
    
    @media (pointer: coarse) {
        .ved-handle { width: 12px; height: 48px; margin-top: -24px; }
        .ved-handle.is-l { left: -9px; }
        .ved-handle.is-r { right: -9px; }
        .tbl-pick-grid { grid-template-columns: repeat(10, 24px); }
        .tbl-cell { width: 24px; height: 24px; }
    }
    @media (prefers-reduced-motion: reduce) { .ved-handle { transition: none; } }

    
    
    .fmt-trophy-icon { width: 16px; height: 16px; object-fit: contain; display: block; }

    
    .guide-trophy-link {
        color: var(--accent);
        font-weight: 600;
        text-decoration: none;
        border-radius: 3px;
    }
    .guide-trophy-link:hover .guide-trophy-name { text-decoration: underline; text-underline-offset: 3px; }
    .guide-trophy-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .guide-trophy-cup {
        width: 1.05em; height: 1.05em;
        margin-right: 0.22em;
        vertical-align: -0.16em;
        object-fit: contain;
    }
    .guide-trophy-glue { white-space: nowrap; }
    .guide-trophy-link.is-self { color: var(--text); cursor: default; }
    .guide-trophy-ok { display: inline-flex; margin-left: 0.28em; vertical-align: -0.08em; color: var(--success); }
    .guide-trophy-ok svg { width: 13px; height: 13px; }
    .guide-trophy-link.is-earned { color: var(--success-text); }
    .guide-trophy-link.is-earned:focus-visible { outline-color: var(--success); }

    
    .tp-modal {
        width: min(600px, 100%);
        height: min(660px, calc(100vh - 40px));
        display: flex; flex-direction: column;
        padding: 20px 20px 16px;
    }
    .tp-modal .media-modal-title { margin: 0 0 4px; }
    .tp-sub { margin: 0 0 14px; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }

    .tp-search { position: relative; }
    .tp-search > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
    .tp-find.input { width: 100%; box-sizing: border-box; padding-left: 34px; padding-right: 38px; }
    .tp-find::-webkit-search-cancel-button { display: none; }
    .tp-clear {
        position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
        width: 28px; height: 28px; border: 0; border-radius: 6px;
        background: transparent; color: var(--text-muted);
        font-size: 16px; line-height: 1; cursor: pointer;
    }
    .tp-clear:hover { background: var(--surface-2); color: var(--text); }
    .tp-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
    .tp-clear[hidden] { display: none; }

    
    .tp-tray { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
    .tp-tray[hidden] { display: none; }
    .tp-tray-label { color: var(--text-muted); font-size: 12px; font-weight: 600; margin-right: 2px; }
    .tp-chip {
        display: inline-flex; align-items: center; gap: 5px;
        max-width: 100%; padding: 3px 4px 3px 8px;
        border: 1px solid var(--border); border-radius: var(--radius-full);
        background: var(--surface-2); color: var(--text-2);
        font-size: 12px; font-weight: 600;
    }
    .tp-chip img { width: 13px; height: 13px; object-fit: contain; flex-shrink: 0; }
    .tp-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tp-chip-x {
        width: 20px; height: 20px; flex-shrink: 0; border: 0; border-radius: 50%;
        background: transparent; color: var(--text-muted); font-size: 13px; line-height: 1; cursor: pointer;
    }
    .tp-chip-x:hover { background: var(--surface-3); color: var(--text); }
    .tp-chip-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
    .tp-tray .pic-link { margin-left: 4px; font-size: 12px; }

    .tp-picker.picker { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: 12px; }
    .tp-picker .picker-rows { flex: 1; min-height: 0; max-height: none; }
    .tp-picker .picker-row { padding: 8px 12px; }
    .tp-picker .picker-row.is-on { background: color-mix(in srgb, var(--accent) 10%, transparent); }
    .tp-picker .picker-row mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
    .tp-group-h {
        position: sticky; top: 0; z-index: 1;
        padding: 6px 12px; background: var(--surface-3);
        color: var(--text-muted); font-size: 11.5px; font-weight: 700;
        border-bottom: 1px solid var(--border);
    }
    .tp-none { margin: 0; padding: 26px 16px; text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.5; }

    .tp-actions.confirm-actions { align-items: center; margin-top: 14px; }
    .tp-count { margin-right: auto; color: var(--text-muted); font-size: 12.5px; }
    .tp-actions .confirm-ok[disabled] { opacity: 0.45; cursor: default; }

    
    @media (max-width: 560px) {
        .confirm-overlay.tp-overlay { padding: 0; align-items: flex-end; }
        .tp-modal { width: 100%; height: calc(100dvh - 24px); max-height: none; border-radius: 16px 16px 0 0; padding: 16px 16px 12px; }
        .tp-picker .picker-row .pr-rarity { display: none; }
        .tp-picker .picker-row .tb-icon { width: 30px; height: 30px; }
        .tp-actions.confirm-actions { padding-bottom: env(safe-area-inset-bottom); }
    }

    
    .pic-cards { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
    .pic-card {
        display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr;
        column-gap: 14px; align-items: start;
        padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .pic-card-thumb {
        position: relative; grid-row: 1 / span 2; width: 120px; aspect-ratio: 16 / 9; overflow: hidden;
        border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
    }
    .pic-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .pic-card.is-uploading .pic-card-thumb img { opacity: 0.5; }
    .pic-card-thumb.is-error { display: grid; place-items: center; border: 1.5px dashed var(--danger); color: var(--text-muted); }
    .pic-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--surface-3); }
    .pic-progress > span { display: block; height: 100%; background: var(--accent); }
    .pic-card-main { grid-column: 2; min-width: 0; }
    .pic-card-alt { grid-column: 2; margin-top: 8px; }
    .pic-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
    .pic-card-head:last-child { margin-bottom: 0; }
    .pic-card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--text); }
    .pic-link { flex: none; color: var(--accent); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
    .pic-link:hover { color: var(--text); }
    .pic-link:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 2px; }
    .pic-status { margin: 0; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
    .pic-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 13px; line-height: 1.45; color: var(--danger); }

    
    @media (max-width: 700px) {
        .pic-hint-more { display: none; }
    }
    @media (max-width: 560px) {
        .pic-card { grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; }
        .pic-card-thumb { width: 84px; grid-row: 1; }
        .pic-card-main { align-self: center; }
        .pic-card-alt { grid-column: 1 / -1; margin-top: 10px; }
        
        .block-head .fmt-break { display: block; flex-basis: 100%; height: 0; }
        .block-head .fmt-align { margin-left: 0; }
        .block-head { flex-wrap: wrap; row-gap: 8px; }
        .block-controls { flex-wrap: wrap; justify-content: flex-end; }
    }

    
    .pic-diff { width: fit-content; max-width: 100%; margin: 12px 0 8px; border-radius: var(--radius-md); }
    .pic-diff .guide-pic-btn { margin: 0; max-width: 100%; }
    .gx-body .pic-diff { max-width: min(var(--gx-pic-measure, 100%), 100%); margin-top: 18px; border-radius: 8px; }
    
    .gx-body .pic-review-item { margin-top: 18px; }
    .gx-body .pic-review-item > .guide-pic-btn { margin: 0; }
    .gx-body .pic-review-item > .pic-review-alt { margin-bottom: 0; }
    .pic-review-alt { margin: 6px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
    .pic-review-alt b { margin-right: 8px; font-weight: 600; color: var(--text-2); }
    .pic-removed {
        display: flex; align-items: center; gap: 12px; margin: 14px 0;
        padding: 9px 12px; border: 1px dashed var(--border); border-radius: var(--radius-md);
    }
    .pic-removed img { flex: none; width: 72px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); opacity: 0.5; }
    .pic-removed-text { min-width: 0; }
    .pic-removed-title { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: line-through; }
    .pic-removed-alt { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--text-muted); }

    
    .ed-parts {
        position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
        padding: 8px; margin-bottom: 20px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    }
    .ed-part { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--text-2); }
    .ed-part:hover { background: var(--surface-2); color: var(--text); }
    .ed-part.is-current { background: var(--surface-2); color: var(--text); }
    .ed-part:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
    .ed-part-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; }
    .ed-part-n {
        flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
        border: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--text-muted);
    }
    .ed-part.is-current .ed-part-n { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
    .ed-part-s { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
    .ed-part-sec { scroll-margin-top: 84px; }
    .ed-part-sec + .ed-part-sec { margin-top: 40px; }
    .ed-part-sec > .ed-all-head { margin-bottom: 18px; }
    .ed-side { top: 84px; }
    @media (max-width: 560px) {
        .ed-parts { gap: 4px; padding: 6px; }
        .ed-part { padding: 7px 8px; }
        .ed-part-n { display: none; }
        .ed-part-t { font-size: 12.5px; }
        .ed-part-s { font-size: 11px; }
    }

    
    .ed-sub-h { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
    .ed-sub-help { margin: 0 0 6px; font-size: 12px; line-height: 1.5; }
    .ed-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--border); }
    .ed-sub-h + .ed-switch-row { margin-top: 8px; }
    .ed-switch-text { min-width: 0; }
    .ed-switch-text b { display: block; font-size: 13.5px; color: var(--text); }
    .ed-switch-text small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
    
    .ed-seg { flex: none; display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-md); background: var(--surface-2); }
    .ed-seg-btn {
        height: 28px; padding: 0 11px; border: 0; border-radius: 6px; background: none;
        font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-3); cursor: pointer; white-space: nowrap;
    }
    .ed-seg-btn:hover { color: var(--text); }
    .ed-seg-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
    .ed-seg-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
    .ed-auto { margin: 0; padding-top: 13px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
    .ed-auto b { color: var(--text); }
    .meta-card .glance { margin: 14px 0 0; padding: 0; border-bottom: 0; }
    .meta-card .gl-row { padding: 9px 0; }
    .meta-card .gl-row + .gl-row { border-top: 1px solid var(--border); }
    .meta-card .glance .g-t { cursor: default; }
    .meta-card .glance .g-t:hover { border-color: var(--border); color: var(--text-2); }
    .ed-cats-empty { margin: 10px 0 0; }
    @media (max-width: 560px) {
        .ed-switch-row { flex-wrap: wrap; }
    }

    
    .field-error { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--danger); }
    .field-error[hidden] { display: none; }
    .ed-step .field-error { flex-basis: 100%; margin-top: 0; }
    .block-body .input[aria-invalid="true"] { border-color: var(--danger); }
    .ed-add-row { margin-top: 4px; }

    
    .ed-meter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; margin-bottom: 14px; }
    .ed-meter .gv-prog-track { flex: 1; min-width: 120px; }
    .ed-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
    .ed-label-block { margin: 18px 0 8px; }
    .ed-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .ed-filter .btn[aria-pressed="true"] { background: var(--surface-3); color: var(--text); border-color: var(--text-muted); }
    .ed-count { margin-left: 6px; color: var(--text-muted); }
    .ed-filter .btn[aria-pressed="true"] .ed-count { color: var(--text-2); }
    .ed-status {
        flex: none; padding: 1px 8px; border: 1px dashed var(--border); border-radius: 5px;
        font-size: 11.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap;
    }
    .ed-status.is-written { border-style: solid; color: var(--success); border-color: rgba(70, 201, 155, 0.4); }
    .ed-linked {
        flex: none; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-full);
        font-size: 10.5px; font-weight: 600; color: var(--text-3); white-space: nowrap;
    }
    .ed-all-chips { align-items: center; max-width: 320px; }
    .ed-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 14px; }
    .ed-tag-set { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; min-width: 0; }
    .ed-after { margin: 16px 0 0; max-width: 560px; }
    .ed-after label { font-size: 13px; font-weight: 700; letter-spacing: normal; text-transform: none; color: var(--text-2); margin-bottom: 6px; }
    .tag-help {
        display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; margin: 14px 0 0; padding: 10px 16px;
        border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2);
    }
    .tag-help-row { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; }
    .tag-help-row .tag-toggle { justify-self: start; }
    .tag-help-text { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
    .tag-help .tag-cap-note { grid-column: 1 / -1; margin: 4px 0 2px; }
    .ed-all-body .block-controls { margin-left: 0; flex-wrap: wrap; }
    .ed-checks { display: flex; flex-direction: column; }
    .check-go {
        border: 0; background: none; font-family: inherit; line-height: inherit; text-align: left; cursor: pointer; border-radius: 6px;
        margin: 0 -6px; padding-left: 6px; padding-right: 6px; width: calc(100% + 12px);
    }
    .check-go:hover { background: var(--surface-2); color: var(--text); }
    .check-go:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 1px; }
    .check-n { color: var(--text-muted); font-variant-numeric: tabular-nums; }
    
    .ed-tips { display: flex; flex-direction: column; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
    .check-tip { color: var(--text-muted); }
    .check-tip .tip {
        flex: none; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-top: 2px;
        border: 1px solid currentColor; border-radius: 50%; font-size: 9.5px; font-weight: 700; line-height: 1; font-style: normal;
    }
    @media (max-width: 900px) {
        .tag-help { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
        .tag-help { padding: 8px 12px; }
        .tag-help-row { grid-template-columns: 1fr; gap: 5px; padding: 8px 0; }
        .tag-help-row + .tag-help-row { border-top: 1px solid var(--border); }
    }
    
    @media (max-width: 760px) {
        .ed-all-main { flex: 1 1 120px; }
    }


    
    .mg-head { display: flex; justify-content: flex-end; margin-bottom: 12px; }
    .mg-row {
        display: flex; align-items: center; gap: 12px; background: var(--surface);
        border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 8px; font-size: 13px;
    }
    .mg-row .mg-title { font-weight: 600; }
    
    .mg-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
    .mg-row .mg-sub { color: var(--text-muted); font-size: 11.5px; }
    .mg-row .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
    .reject-note { font-size: 12px; color: var(--danger); margin-top: 4px; }
    .mg-note { font-size: 12px; color: var(--gold); margin-top: 4px; }
    
    @media (max-width: 560px) {
        .mg-row { flex-wrap: wrap; }
        .mg-row .right { margin-left: 0; flex-basis: 100%; }
    }

    
    
    .field-note { margin-top: 5px; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
    
    .ed-bar.has-expiry { flex-wrap: wrap; }
    .ed-expiry { flex-basis: 100%; order: 10; margin-top: -2px; padding-top: 9px; border-top: 1px solid var(--border); font-size: 12px; color: var(--gold); }
    
    .byline-deleted { color: var(--text-muted); font-weight: 400; }
    .auth-id b.byline-deleted { font-weight: 600; }
    span.guide-card-avatar { display: inline-block; border: 1px solid var(--border); }
    
    .rate-blocked { font-size: 12px; color: var(--text-3); line-height: 1.45; }
    .mg-delete { color: var(--danger); }
    .mg-delete:hover { border-color: var(--danger); }

    
    .mtt-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 18px;
        margin: -4px 0 14px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
        color: var(--text-muted);
        font-size: 11px;
    }
    .mtt-summary strong { color: var(--text-2); font-variant-numeric: tabular-nums; }
    
    .mtt-publish-mode {
        margin: -4px 0 16px;
        color: var(--text-3);
        font-size: 13px;
        line-height: 1.5;
    }
    .mtt-summary + .mtt-publish-mode { margin-top: 0; }
    .mtt-publish-mode b { color: var(--text-2); font-weight: 600; }
    .mtt-list { display: grid; gap: 8px; }
    .mtt-row {
        position: relative;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 11px;
        overflow: hidden;
        padding: 12px 12px 12px 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--surface);
    }
    .mtt-row::before {
        content: "";
        position: absolute;
        inset: 8px auto 8px 0;
        width: 2px;
        border-radius: 0 2px 2px 0;
        background: var(--success);
    }
    .mtt-row.in-review::before { background: var(--gold); }
    .mtt-row.needs-change::before,
    .mtt-row.is-removed::before { background: var(--danger); }
    .mtt-row.is-removed { opacity: .72; }
    .mtt-trophy {
        width: 38px;
        height: 38px;
        border-radius: 7px;
        object-fit: cover;
        background: var(--surface-2);
    }
    .mtt-copy { min-width: 0; }
    .mtt-title {
        display: block;
        overflow: hidden;
        color: var(--text);
        font-size: 12.5px;
        font-weight: 700;
        text-decoration: none;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .mtt-title:hover { color: var(--brand-2); }
    .mtt-game { display: block; margin-top: 1px; color: var(--text-muted); font-size: 10px; }
    .mtt-copy > p {
        display: -webkit-box;
        overflow: hidden;
        margin: 8px 0 6px;
        color: var(--text-2);
        font-size: 11.5px;
        line-height: 1.5;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .mtt-labels { margin-left: 0; }
    .mtt-note {
        margin-top: 7px;
        color: var(--accent);
        font-size: 10.5px;
        line-height: 1.45;
    }
    .mtt-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 7px;
        min-width: 112px;
    }
    .mtt-helpful { color: var(--text-muted); font-size: 10px; }
    .mtt-delete {
        padding: 0;
        border: 0;
        color: var(--text-muted);
        background: transparent;
        font: inherit;
        font-size: 10px;
        cursor: pointer;
    }
    .mtt-delete:hover { color: var(--danger); }
    .mtt-more { width: 100%; margin-top: 10px; }

    @media (max-width: 620px) {
        .mtt-row { grid-template-columns: 34px minmax(0, 1fr); }
        .mtt-trophy { width: 34px; height: 34px; }
        .mtt-actions {
            grid-column: 2;
            flex-direction: row;
            align-items: center;
            flex-wrap: wrap;
            min-width: 0;
        }
    }

    
    .trusted-badge {
        display: inline-flex; align-items: center; gap: 4px; margin-left: 6px;
        color: var(--success); font-size: 11.5px; font-weight: 600;
    }

    
    .attest {
        display: flex; gap: 8px; align-items: flex-start;
        background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
        padding: 10px; font-size: 12.5px; color: var(--text-2); margin: 0 0 16px; cursor: pointer;
    }
    .attest input { flex-shrink: 0; margin-top: 1px; accent-color: var(--accent); }

    .ed-reject {
        display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
        background: rgba(233, 69, 96, 0.08); border: 1px solid rgba(233, 69, 96, 0.4);
        border-radius: var(--radius-md); padding: 12px 14px;
    }
    .ed-reject-body { flex: 1; min-width: 0; }
    .ed-reject-title { font-weight: 700; font-size: 13px; color: var(--danger); margin-bottom: 4px; }
    .ed-reject-reason { font-size: 13px; color: var(--text-2); }
    .ed-reject-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
    @media (max-width: 620px) {
    }
    
    @media (max-width: 900px) {
    }

    
    
    .research-backfill-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr) auto;
        gap: 22px;
        align-items: center;
        margin-bottom: 20px;
        padding: 18px 20px;
        border: 1px solid rgba(134,215,236,.28);
        border-radius: var(--radius-lg);
        background: linear-gradient(112deg, rgba(134,215,236,.08), transparent 48%), var(--surface);
    }
    .research-backfill-copy h2 { margin: 4px 0 5px; font-size: 18px; }
    .research-backfill-copy p { max-width: 650px; margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
    .research-backfill-status { display: grid; gap: 3px; padding-left: 18px; border-left: 1px solid var(--border); }
    .research-backfill-status strong { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
    .research-backfill-status span { color: var(--text-2); font-size: 11.5px; }
    .research-backfill-status small { color: var(--text-muted); font-size: 10.5px; line-height: 1.35; }
    .research-picker-card {
        position: relative; z-index: 2;
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
        gap: 24px; align-items: center; margin-bottom: 16px; padding: 18px 20px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    }
    .research-picker-card h2 { margin: 4px 0 5px; font-size: 18px; }
    .research-picker-card p { margin: 0; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
    .research-game-search { position: relative; }
    .research-game-search > input { width: 100%; box-sizing: border-box; }
    .research-game-results {
        display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
        max-height: 330px; overflow-y: auto; padding: 5px; z-index: 6;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
        box-shadow: 0 18px 50px rgba(0,0,0,.35);
    }
    .research-game-results.open { display: grid; }
    .research-game-result {
        display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px;
        color: var(--text); background: transparent; border: 0; border-radius: var(--radius-sm);
        font: inherit; text-align: left; cursor: pointer;
    }
    button.research-game-result:hover { background: var(--surface-2); }
    .research-game-result img { width: 38px; height: 38px; flex: 0 0 38px; object-fit: cover; border-radius: 7px; }
    .research-game-result strong, .research-game-result small { display: block; }
    .research-game-result strong { font-size: 12.5px; }
    .research-game-result small { margin-top: 2px; color: var(--text-muted); font-size: 10.5px; }
    .research-game-result.muted { color: var(--text-muted); font-size: 12px; cursor: default; }
    .research-hero {
        display: grid; grid-template-columns: minmax(0, 1fr) 150px 180px; gap: 20px;
        align-items: end; padding: 22px 24px; margin-bottom: 16px;
        background: linear-gradient(118deg, rgba(134, 215, 236, 0.13), transparent 45%), var(--surface);
        border: 1px solid var(--border); border-radius: var(--radius-lg);
    }
    :where(html[data-theme="light"]) .research-hero { background: linear-gradient(118deg, rgba(233,69,96,.13), transparent 45%), var(--surface); }
    .research-hero h2 { margin: 3px 0 5px; font-size: 23px; }
    .research-hero p { margin: 0; max-width: 620px; color: var(--text-3); font-size: 13px; line-height: 1.5; }
    .research-game-heading { display: flex; align-items: center; gap: 14px; min-width: 0; }
    .research-game-heading > img { width: 58px; height: 58px; flex: 0 0 58px; object-fit: cover; border-radius: 11px; border: 1px solid var(--border); }
    .research-card-kicker { color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
    .research-stat { padding-left: 18px; border-left: 1px solid var(--border); }
    .research-stat strong { display: block; color: var(--text); font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
    .research-stat span { display: block; margin-top: 5px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
    .research-sample-head { display: flex; justify-content: space-between; gap: 20px; margin: 0 2px 8px; color: var(--text-muted); font-size: 12px; }
    .research-sample-head strong { color: var(--text-2); }
    .research-rail { display: grid; grid-template-columns: repeat(var(--research-slots, 10), minmax(3px, 1fr)); gap: 4px; height: 30px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
    .research-slot { border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
    .research-slot.filled { background: linear-gradient(180deg, #ff667f, var(--danger)); box-shadow: 0 0 10px rgba(233,69,96,.18); }
    .research-evidence-summary { display: flex; flex-wrap: wrap; gap: 16px; margin: 9px 2px 0; color: var(--text-muted); font-size: 11px; }
    .research-evidence-summary strong { color: var(--text-2); font-variant-numeric: tabular-nums; }
    .research-rule { margin: 7px 2px 22px; color: var(--text-muted); font-size: 11.5px; }
    .research-workbench { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
    .research-import-card, .research-audit-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
    .research-import-card h2 { margin: 5px 0 7px; font-size: 17px; }
    .research-import-card p { margin: 0 0 14px; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
    .research-import-card textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 145px; max-height: 50vh; font-family: var(--font-sans); line-height: 1.55; }
    .research-import-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
    .research-progress { color: var(--text-muted); font-size: 11px; line-height: 1.35; }
    .research-audit-card > .research-card-kicker { margin-bottom: 8px; }
    .research-audit-row { display: grid; grid-template-columns: minmax(135px, .75fr) minmax(180px, 1.3fr) 78px; gap: 14px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--border); }
    .research-audit-row:last-child { border-bottom: 0; }
    .research-audit-person strong { display: block; font-size: 13px; }
    .research-audit-person span { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10.5px; }
    .research-audit-detail { color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
    .research-verdict { justify-self: end; padding: 4px 7px; border-radius: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    .research-verdict.strong { color: #92e3bd; background: rgba(74,197,139,.12); }
    .research-verdict.usable { color: #e7c879; background: rgba(215,173,64,.12); }
    .research-verdict.excluded, .research-verdict.error { color: var(--text-muted); background: var(--surface-2); }
    

    
    @media (max-width: 760px) {
        .gv-hero-inner { padding: 76px 16px 14px; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
        .gv-hero h1 { font-size: 20px; }
        .gv-hero .guide-hero-stats { margin-left: 0; flex-basis: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
    }
    @media (max-width: 900px) {
        .ed-cols { flex-direction: column; align-items: stretch; }
        .ed-main { width: 100%; }
        .ed-side { position: static; width: 100%; }
        .meta-grid { grid-template-columns: 1fr 1fr; }
        
        .research-hero { grid-template-columns: 1fr 1fr; }
        .research-hero > div:first-child { grid-column: 1 / -1; }
        .research-workbench { grid-template-columns: 1fr; }
        .research-picker-card { grid-template-columns: 1fr; }
        .research-backfill-card { grid-template-columns: 1fr auto; }
        .research-backfill-copy { grid-column: 1 / -1; }
        .research-backfill-status { padding-left: 0; border-left: 0; }
        
    }

    
    
    .svc-card {
        margin-bottom: 18px; padding: 18px 20px;
        border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
    }
    .svc-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; font-size: 18px; }
    .svc-lead { max-width: 680px; margin: 0 0 14px; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
    
    .svc-note { margin: 0 0 14px; color: var(--text-3); font-size: 12px; line-height: 1.5; }
    .svc-note-warn {
        padding: 10px 12px; border-radius: var(--radius-md);
        border: 1px solid rgba(242,180,90,.32); background: rgba(242,180,90,.08);
    }
    .svc-note code { font-size: 11px; color: var(--text-muted); word-break: break-all; }
    .svc-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
    .svc-stats-row { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 14px; border-top: 1px solid var(--border); }
    .svc-stat strong { display: block; color: var(--text); font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
    .svc-stat span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
    .svc-tokens { display: grid; gap: 12px; }
    .svc-token { padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
    .svc-token-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
    .svc-token-name { font-weight: 700; font-size: 13.5px; }
    .svc-meter { height: 6px; overflow: hidden; border-radius: var(--radius-full); background: rgba(196, 200, 204, 0.14); }
    :where(html[data-theme="light"]) .svc-meter { background: rgba(180,200,238,.14); }
    .svc-meter span { display: block; height: 100%; border-radius: var(--radius-full); background: linear-gradient(90deg, #ff667f, var(--danger)); }
    .svc-token-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--text-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
    .svc-ladder { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
    .svc-ladder-title { margin-bottom: 8px; color: var(--text-muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
    .svc-ladder-row {
        display: flex; align-items: baseline; gap: 12px; padding: 6px 0;
        font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums;
    }
    .svc-ladder-row-empty { color: var(--text-muted); }
    .svc-ladder-label { min-width: 34px; font-weight: 700; color: var(--text); }
    .svc-ladder-count { min-width: 90px; }
    .svc-ladder-detail { color: var(--text-muted); }
    
    .svc-dumps { display: grid; gap: 10px; }
    .svc-dump { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
    .svc-dump-head { display: flex; align-items: center; gap: 10px; }
    .svc-dump-name { font-weight: 700; font-size: 13.5px; }
    .svc-dump-head .btn { margin-left: auto; }
    .svc-dump-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--text-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
    .svc-dump-note { margin: 10px 0 0; }
    .svc-dump-when { color: var(--text-muted); }
    .svc-dump-sched, .svc-dump-loads { padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-2); }
    .svc-dump-sched-head { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
    .svc-dump-sched .svc-note { margin: 0 0 4px; }
    .svc-dump-sched .svc-note:last-child { margin-bottom: 0; }
    .svc-dump-loads-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12px; }
    .svc-dump-loads-list li { display: flex; gap: 10px; justify-content: space-between; }
    
    .imc-groups {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 44px; padding-top: 20px; border-top: 1px solid var(--border);
    }
    .imc-group { min-width: 0; }
    .imc-group-head {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        margin: 0 0 14px;
    }
    .imc-group-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
    .imc-group-note { margin: -6px 0 14px; color: var(--text-3); font-size: 12px; line-height: 1.5; }
    
    .imc-meter-block + .imc-meter-block { margin-top: 14px; }
    .imc-meter-cap {
        display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px;
        margin-bottom: 7px; font-size: 12.5px; color: var(--text-2);
        font-variant-numeric: tabular-nums;
    }
    .imc-meter-cap b { font-weight: 700; color: var(--text); }
    
    .imc-meter span { background: var(--accent); }
    .imc-meter.is-over span { background: var(--gold); }
    
    .imc-stats {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
        gap: 18px 22px; margin-top: 18px;
    }
    .imc-stats-top { margin-top: 0; }
    .imc-stats .svc-stat strong { font-size: 18px; }
    
    .imc-source {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 9px 0; border-bottom: 1px solid var(--border);
        font-size: 13px; font-weight: 600; color: var(--text);
    }
    .imc-source:first-of-type { padding-top: 0; }
    .imc-foot { margin: 14px 0 0; color: var(--text-3); font-size: 12px; line-height: 1.5; }
    
    .imc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
    .imc-card .svc-note-warn { max-width: 760px; }
    @media (max-width: 760px) {
        .imc-groups { grid-template-columns: 1fr; gap: 26px; }
        .imc-group + .imc-group { padding-top: 26px; border-top: 1px solid var(--border); }
        .imc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
    }

    
    
    .pss-card h2.pss-status { font-size: 21px; margin: 6px 0 8px; }
    .pss-why { max-width: 680px; margin: 0 0 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
    
    .pss-control {
        display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px;
        margin: 0 0 22px;
    }
    .pss-control .btn { flex: none; }
    .pss-control-note { margin: 0; flex: 1 1 260px; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
    
    .pss-group { padding-top: 20px; margin-top: 4px; border-top: 1px solid var(--border); }
    .pss-group + .pss-group { margin-top: 24px; }
    
    .pss-card .svc-stats-row + .pss-group { margin-top: 30px; padding-top: 0; border-top: 0; }
    .pss-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
    .pss-group-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
    
    .pss-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; margin: 0 0 12px; }
    .pss-step { font-size: 12px; color: var(--text-3); }
    .pss-step i { display: block; height: 6px; margin-bottom: 7px; border-radius: var(--radius-full); background: rgba(196, 200, 204, 0.14); }
    :where(html[data-theme="light"]) .pss-step i { background: rgba(120,140,180,.18); }
    .pss-step.is-passed i { background: var(--success); }
    .pss-step.is-passed { color: var(--text-2); font-weight: 600; }
    .pss-check-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
    .pss-check-lines li { color: var(--text-2); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
    .pss-check-lines li strong { color: var(--text); }
    
    .pss-table { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
    .pss-table th { padding: 0 0 8px; text-align: left; color: var(--text-muted); font-size: 12px; font-weight: 600; }
    .pss-table td { padding: 9px 0; border-top: 1px solid var(--border); color: var(--text-2); }
    .pss-table td:first-child { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
    .pss-table th + th, .pss-table td + td { text-align: right; padding-left: 14px; white-space: nowrap; }
    .pss-table td.pss-zero { color: var(--danger); font-weight: 700; }
    
    .pss-log { margin: 0; padding: 0; list-style: none; }
    .pss-log li {
        display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px;
        padding: 10px 0; border-top: 1px solid var(--border);
        font-size: 13px; line-height: 1.5; color: var(--text-2);
    }
    .pss-log li:first-child { border-top: 0; padding-top: 0; }
    .pss-log time { color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .pss-log li[hidden] { display: none; }
    .pss-more { margin-top: 12px; }
    @media (max-width: 760px) {
        .pss-card h2.pss-status { font-size: 19px; }
        .pss-log li { grid-template-columns: 1fr; gap: 2px; }
        .pss-control .btn { width: 100%; }
        .pss-control-note { flex-basis: 100%; }
        .pss-card .svc-stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
    }
    

    
    .publications-page {
        
        width: 100%;
        padding-bottom: 64px;
    }
    .page-breadcrumb {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 42px;
        color: var(--text-muted);
        font-size: 12px;
    }
    .page-breadcrumb a { color: var(--text-3); text-decoration: none; }
    .page-breadcrumb a:hover { color: var(--text); }
    .page-breadcrumb span:first-of-type { color: var(--border); }
    .publications-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        margin: 10px 0 22px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--border);
    }
    .publications-head h1 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
    .publications-head p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; }
    .publications-filters {
        display: inline-flex;
        padding: 3px;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: rgba(8, 12, 17, 0.45);
    }
    :where(html[data-theme="light"]) .publications-filters { background: rgba(8, 14, 28, .45); }
    .publications-filters button {
        min-width: 64px;
        padding: 7px 12px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: var(--text-muted);
        font: inherit;
        font-size: 12px;
        font-weight: 650;
        cursor: pointer;
    }
    .publications-filters button:hover { color: var(--text); }
    .publications-filters button.active {
        color: var(--text);
        background: var(--surface-2);
        box-shadow: 0 1px 0 rgba(255,255,255,.04);
    }
    
    html[data-theme="light"] .publications-filters { background: var(--surface-2); }
    html[data-theme="light"] .publications-filters button { color: var(--text-2); }
    html[data-theme="light"] .publications-filters button.active {
        color: var(--text);
        background: var(--surface);
        box-shadow: 0 1px 2px rgba(20,32,51,.12);
    }
    .publications-list {
        position: relative;
        display: grid;
        gap: 1px;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--border);
    }
    .publications-list::before {
        content: "";
        position: absolute;
        left: 92px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: rgba(134, 215, 236, 0.2);
        pointer-events: none;
        z-index: 1;
    }
    :where(html[data-theme="light"]) .publications-list::before { background: rgba(233,69,96,.2); }
    .publication-row {
        position: relative;
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 28px;
        min-height: 94px;
        padding: 15px 20px;
        box-sizing: border-box;
        color: inherit;
        text-decoration: none;
        background: linear-gradient(90deg, rgba(134, 215, 236, 0.025), transparent 28%), var(--surface);
        transition: background .16s ease;
    }
    :where(html[data-theme="light"]) .publication-row { background: linear-gradient(90deg, rgba(233,69,96,.025), transparent 28%), var(--surface); }
    a.publication-row:hover {
        background: linear-gradient(90deg, rgba(134, 215, 236, 0.065), transparent 32%), var(--surface-2);
    }
    :where(html[data-theme="light"]) a.publication-row:hover { background: linear-gradient(90deg, rgba(233,69,96,.065), transparent 32%), var(--surface-2); }
    .publication-art {
        position: relative;
        z-index: 2;
        width: 64px;
        height: 64px;
        overflow: hidden;
        align-self: center;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--dark-bg, #080d18);
    }
    .publication-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
    .publication-copy {
        min-width: 0;
        align-self: center;
        display: grid;
        gap: 7px;
    }
    .publication-titleline { display: flex; align-items: center; gap: 7px; min-width: 0; }
    .publication-titleline h2 {
        min-width: 0;
        margin: 0 2px 0 0;
        overflow: hidden;
        color: var(--text);
        font-size: 14px;
        font-weight: 750;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .publication-kind, .publication-versions {
        flex: 0 0 auto;
        color: #8edbc0;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .07em;
        text-transform: uppercase;
    }
    .publication-kind.is-dlc { color: #80c8ef; }
    .publication-titleline .platform-badge,
    .publication-kind {
        display: inline-flex;
        align-items: center;
        height: 19px;
        box-sizing: border-box;
        margin: 0;
        line-height: 1;
    }
    .publication-kind {
        padding: 0 7px;
        border: 1px solid currentColor;
        border-radius: 4px;
        opacity: .9;
    }
    
    html[data-theme="light"] .publication-kind,
    html[data-theme="light"] .publication-versions { color: #0f7a5c; }
    html[data-theme="light"] .publication-kind.is-dlc { color: var(--accent); }
    .publication-meta, .publication-dates {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 7px 16px;
        color: var(--text-muted);
        font-size: 11px;
    }
    .publication-trophy-total { color: var(--text-2); font-weight: 650; }
    .publication-trophies { display: inline-flex; align-items: center; gap: 8px; }
    .publication-trophies > span { display: inline-flex; align-items: center; gap: 3px; }
    .publication-trophies img { width: 13px; height: 13px; object-fit: contain; }
    .publication-dates span + span::before { content: "·"; margin-right: 16px; color: var(--border); }
    #publicationsPagination .page-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        text-decoration: none;
    }
    #publicationsPagination .page-btn.is-disabled { opacity: .35; pointer-events: none; }

    @media (max-width: 760px) {
        .guide-hero-main { flex-wrap: wrap; }
        .guide-hero-stats { margin-left: 0; text-align: left; align-items: flex-start; }
        .meta-grid { grid-template-columns: 1fr; }
        .ed-section-meta { grid-template-columns: 1fr; }
        .metric-chip { min-width: 0; flex: 1; }
        
        .research-hero { grid-template-columns: 1fr; }
        .research-hero > div:first-child { grid-column: auto; }
        .research-stat { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--border); }
        .research-backfill-card { grid-template-columns: 1fr; }
        .research-backfill-card .btn { width: 100%; }
        .research-rail { gap: 2px; }
        .research-audit-row { grid-template-columns: 1fr auto; }
        .research-audit-detail { grid-column: 1 / -1; grid-row: 2; }
        
        .publications-head { align-items: flex-start; flex-direction: column; gap: 14px; }
        .publication-row { grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 13px; }
        .publication-art { width: 52px; height: 52px; }
        .publications-list::before { display: none; }
        .publication-titleline { flex-wrap: wrap; }
        .publication-titleline h2 { flex-basis: 100%; white-space: normal; }
        .publication-trophies { display: none; }
        
        .guide-card { gap: 10px; padding: 12px; }
        .guide-card-icon { width: 48px; height: 48px; }
        .guide-card-meta { gap: 6px; }
    }
@media (max-width: 760px) {
}
@media (max-width: 600px) {
}



.tp2-root { display: block; }
.tp2-link { color: var(--brand-2); text-decoration: none; }
.tp2-link:hover { text-decoration: underline; }


.tp2-tb { position: relative; margin: 22px 0 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--dark-surface, #131a2e); }

.tp2-tb-plain { padding: 22px 24px; }
.tp2-art { position: relative; min-height: 250px; background: var(--dark-bg, #0b0d16); }
.tp2-art-empty { min-height: 200px; }
.tp2-layers { position: absolute; inset: 0; }
.tp2-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0; transition: opacity 2.4s ease; filter: saturate(1.06); }
.tp2-layer.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tp2-layer { transition: none; } }
.tp2-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 17, 0.94) 0%, rgba(8, 12, 17, 0.78) 34%, rgba(8, 12, 17, 0.25) 70%, rgba(8, 12, 17, 0.45) 100%), linear-gradient(0deg, rgba(25, 30, 36, 0.97) 0%, rgba(25, 30, 36, 0.2) 38%, transparent 60%); }
:where(html[data-theme="light"]) .tp2-art::after { background: linear-gradient(90deg, rgba(11,13,22,.94) 0%, rgba(11,13,22,.78) 34%, rgba(11,13,22,.25) 70%, rgba(11,13,22,.45) 100%), linear-gradient(0deg, rgba(19,26,46,.97) 0%, rgba(19,26,46,.2) 38%, transparent 60%); }

@media (max-width: 1000px) {
    .tp2-art::after {
        background:
            linear-gradient(90deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .74) 34%, rgba(4, 6, 10, .48) 70%, rgba(4, 6, 10, .56) 100%),
            linear-gradient(0deg, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .3) 38%, rgba(4, 6, 10, 0) 60%);
    }
}
@media (min-width: 1001px) {
    .tp2-art::after {
        background:
            radial-gradient(ellipse 460px 40% at 100% 0%, rgba(4, 6, 10, .7) 0%, rgba(4, 6, 10, .3) 55%, rgba(4, 6, 10, 0) 100%),
            linear-gradient(270deg, rgba(4, 6, 10, .6) 0%, rgba(4, 6, 10, .45) 330px, rgba(4, 6, 10, .08) 540px),
            linear-gradient(90deg, rgba(4, 6, 10, .84) 0%, rgba(4, 6, 10, .5) 420px, rgba(4, 6, 10, .08) 700px),
            linear-gradient(0deg, rgba(4, 6, 10, .8) 0%, rgba(4, 6, 10, .45) 28%, rgba(4, 6, 10, 0) 56%);
    }
}
.tp2-standing, .tp2-cap { text-shadow: 0 1px 8px rgba(0, 0, 0, .85); }
.tp2-ghost { position: absolute; z-index: 0; right: 26px; top: -6px; font-family: var(--font-sans); font-size: 150px; font-weight: 800; line-height: 1; color: rgba(255,255,255,.05); letter-spacing: -.03em; pointer-events: none; }
.tp2-cap { position: absolute; z-index: 1; right: 14px; top: 12px; color: var(--dark-text-2, #c6cddb); font-size: 11px; }
.tp2-cap b { color: #f4f6fa; font-weight: 600; }
.tp2-copy { position: absolute; z-index: 1; left: 30px; right: 30px; bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.tp2-tb-plain .tp2-copy { position: static; }
.tp2-ident { display: flex; align-items: flex-end; gap: 18px; min-width: 0; }
.tp2-emblem { flex: 0 0 auto; display: grid; place-items: center; width: 84px; height: 84px; border: 2px solid var(--tc); border-radius: 16px; background: rgba(8, 12, 17, 0.72); color: var(--tc); font-family: var(--font-sans); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
:where(html[data-theme="light"]) .tp2-emblem { background: rgba(11,13,22,.72); }

.tp2-emblem.tp2-emblem-4 { font-size: 21px; letter-spacing: -.04em; }
.tp2-ident h1 { font-family: var(--font-sans); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: #f4f6fa; text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 14px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.tp2-ident h1 .tm-tag { text-shadow: none; }
.tp2-ident > div:last-child { min-width: 0; }
.tp2-ident p { margin: 6px 0 0; color: var(--dark-text-2, #c6cddb); font-size: 13.5px; line-height: 1.5; max-width: 560px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tp2-meta { margin-top: 8px; color: var(--dark-text-2, #c6cddb); font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.6); }
.tp2-meta .tm-policy-approval { color: #e8a93c; }
.tp2-meta .tm-policy-open { color: #46c99b; }
.tp2-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: 0 0 auto; }
.tp2-standing { display: flex; gap: 26px; align-items: flex-end; text-align: right; color: #f4f6fa; }
.tp2-standing b { display: block; font-family: var(--font-sans); font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1; font-variant-numeric: tabular-nums; }
.tp2-standing .tp2-unranked { font-size: 15px; font-weight: 700; color: var(--dark-text-2, #c6cddb); }
.tp2-standing small { display: block; margin-top: 5px; color: var(--dark-text-3, #97a0b3); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tp2-mv { font-family: "Public Sans", sans-serif; font-size: 13px; margin-left: 6px; vertical-align: 6px; }
.tp2-up { color: #46c99b; font-weight: 700; }
.tp2-down { color: #e94560; font-weight: 700; }
.tp2-flat { color: var(--text-muted); font-weight: 600; }
.tp2-actions { display: flex; gap: 9px; align-items: center; }


.tp2-metals { display: grid; grid-template-columns: repeat(4, 1fr) 1.6fr; border-top: 1px solid var(--border); background: var(--surface); }
.tp2-metals > div { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-left: 1px solid var(--border); }
.tp2-metals > div:first-child { border-left: 0; padding-left: 30px; }
.tp2-metals img { width: 24px; height: 24px; object-fit: contain; }
.tp2-metals b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tp2-metals small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tp2-metals .tp2-latest b { font-size: 13.5px; font-weight: 600; }
.tp2-metals .tp2-latest small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11px; }
.tp2-metals .tp2-gi { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }


.tp2-note { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: start; margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-size: 13.5px; line-height: 1.5; }
.tp2-note .tm-avatar { width: 28px; height: 28px; }

.tp2-note > div { min-width: 0; overflow-wrap: anywhere; }
.tp2-note-empty { grid-template-columns: minmax(0,1fr) auto; color: var(--text-muted); }
.tp2-note small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11.5px; }
.tp2-pin { color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-right: 8px; }
.tp2-note-edit { background: transparent; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--brand-2); cursor: pointer; white-space: nowrap; }
.tp2-note-editing { grid-template-columns: 1fr; }
.tp2-note-form { display: grid; gap: 8px; }
.tp2-note-form textarea { width: 100%; resize: vertical; min-height: 54px; max-height: 160px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--field-bg); color: var(--text); font: inherit; font-size: 13px; }
.tp2-note-actions { display: flex; gap: 8px; }


.tp2-tabs { margin-top: 18px; }
.tp-tab .n { margin-left: 6px; color: var(--text-muted); font-weight: 600; }

.tp-tab-locked { color: var(--text-muted); opacity: .5; cursor: not-allowed; }
.tp-tab-locked:hover { color: var(--text-muted); }
.tp2-pane { display: none; }
.tp2-pane.on { display: block; }

.tp2-report { display: flex; justify-content: center; margin: 22px 0 8px; }


.tp2-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-top: 18px; }
.tp2-rail { display: grid; gap: 24px; }
.tp2-panel { padding: 14px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.tp2-panel-title { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; font-family: var(--font-sans); font-size: 14px; font-weight: 700; }
.tp2-panel-title small { font-family: "Public Sans", sans-serif; color: var(--text-muted); font-size: 11.5px; font-weight: 500; }
.tp2-prows { display: grid; gap: 2px; }
.tp2-prow { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 6px 4px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.tp2-prow:hover { background: var(--surface-2); }
.tp2-prow .tm-avatar { width: 28px; height: 28px; }
.tp2-prow b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp2-prow small { display: block; color: var(--text-muted); font-size: 11px; }
.tp2-v { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tp2-foot { margin: 10px 4px 0; font-size: 12px; }
.tp2-rail-empty { padding: 6px 4px; color: var(--text-muted); font-size: 12px; }


.tp2-tt { width: 100%; border-collapse: collapse; font-size: 13px; }
.tp2-tt th { padding: 6px 10px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: right; white-space: nowrap; }
.tp2-tt th.l, .tp2-tt td.l { text-align: left; }
.tp2-tt td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp2-tt tr:last-child td { border-bottom: 0; }
.tp2-tt tr.me td { background: color-mix(in srgb, var(--tc) 9%, transparent); }
.tp2-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.tp2-who .tm-avatar { width: 30px; height: 30px; }
.tp2-avatar-wrap { display: inline-flex; border-radius: 50%; flex: 0 0 auto; }
.tp2-who b { display: block; font-weight: 600; }
.tp2-who small { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 11px; }
.tp2-role { color: var(--text-3); font-size: 11px; font-weight: 600; }
.tp2-role.owner { color: var(--tc); font-weight: 700; }
.tp2-rk { color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.tp2-rk.r1 { color: var(--metal-gold); } .tp2-rk.r2 { color: var(--metal-silver); } .tp2-rk.r3 { color: var(--metal-bronze); }
.tp2-ineligible { color: var(--text-muted); font-size: 12px; }

html[data-theme="light"] #teamView { --metal-gold: #b8860b; --metal-silver: #6d7785; --metal-bronze: #9a5a22; }
.tp2-score { font-weight: 700; color: var(--text); }
.tp2-plat img { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.tp2-flag { width: 16px; height: 11px; border-radius: 2px; object-fit: cover; vertical-align: -1px; }
.tp2-wk { display: inline-block; min-width: 54px; }
.tp2-bar { display: inline-block; width: 64px; height: 5px; margin-left: 8px; border-radius: 3px; background: var(--surface-2); vertical-align: middle; overflow: hidden; }
.tp2-bar i { display: block; height: 100%; background: var(--tc); }



.tp2-pane .teaser-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 18px 18px 0; }
.tp2-pane .teaser-chart i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--surface-2); }


.tp2-daystrip { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.tp2-daystrip .tp2-sum b { display: block; font-family: var(--font-sans); font-size: 22px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tp2-daystrip .tp2-sum small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tp2-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 46px; }
.tp2-days > div { display: grid; align-content: end; justify-items: center; gap: 4px; height: 100%; position: relative; }
.tp2-days i { display: block; width: 100%; border-radius: 3px 3px 2px 2px; background: var(--tc); min-height: 2px; }
.tp2-days i.tp2-z { background: var(--surface-2); }
.tp2-days small { color: var(--text-muted); font-size: 10px; line-height: 1; }
.tp2-days .tp2-today small { color: var(--text); font-weight: 700; }
.tp2-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tp2-feed { display: grid; gap: 2px; margin-top: 6px; }
.tp2-feed-day { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 6px; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tp2-ev { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-md); color: inherit; text-decoration: none; }
.tp2-ev:hover { background: var(--surface); }
.tp2-ev .tp2-gi { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: 0 0 auto; }
.tp2-ev .tp2-gi.tp2-ev-round { border-radius: 50%; }
.tp2-ev .tp2-gi.tp2-ev-metal { object-fit: contain; padding: 8px; }
.tp2-ev .tp2-line { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp2-ev .tp2-line b { font-weight: 600; }
.tp2-ev .tp2-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 2px; color: var(--text-muted); font-size: 11.5px; }
.tp2-ev time { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; }
.tp2-kind { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.tp2-kind-plat { color: var(--collection-platinum); }
.tp2-kind-hundred { color: var(--gold); }
.tp2-kind-lvl { color: var(--text-3); }
.tp2-kind-join { color: var(--text-3); }


.tp2-standing .tp2-gap { margin-top: 0; }
.tp2-standing .tp2-gap b { color: #46c99b; }
.tp2-standing .tp2-gap.tp2-gap-behind b { color: #e94560; }
.tp2-standing .tp2-gap.tp2-gap-level b { color: #f4f6fa; }
.tp2-gap small { white-space: nowrap; }
.tp2-rivalline { display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--dark-text-3, #97a0b3); font-size: 12px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tp2-rivalline a, .tp2-rivalline .tp2-rival-name { display: inline-flex; align-items: center; gap: 7px; color: #f4f6fa; font-weight: 600; text-decoration: none; }
.tp2-rivalline a:hover { text-decoration: underline; }
.tp2-rivalline .tm-tag { margin: 0; }
.tp2-rivalline .tp2-note-edit { text-shadow: none; }

.tp2-rival-pick { display: flex; justify-content: flex-end; }


.tp2-ev .tp2-gi.tp2-ev-rival { display: grid; place-items: center; background: var(--surface-2); }
.tp2-ev .tp2-gi.tp2-ev-rival .tm-tag { margin: 0; }
.tp2-kind-rival { color: var(--tc); }

@media (max-width: 1000px) {
    .tp2-standing { flex-wrap: wrap; gap: 18px 26px; text-align: left; }
    .tp2-rivalline { justify-content: flex-start; }
    .tp2-rival-pick { justify-content: flex-start; }
    .tp2-art:has(.tp2-rivalline), .tp2-art:has(.tp2-rival-pick) { min-height: 370px; }
}
.tp2-ev.tp2-hi { position: relative; min-height: 96px; padding: 14px 16px; border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.tp2-ev.tp2-hi .tp2-ev-art { position: absolute; inset: 0 0 0 46%; overflow: hidden; }
.tp2-ev.tp2-hi .tp2-ev-art::before { content: ""; position: absolute; inset: 0; background-image: var(--gd-artwork, none); background-position: var(--gd-artwork-pos, center); background-size: cover; transform: scale(var(--gd-artwork-zoom, 1)); transform-origin: var(--gd-artwork-pos, center); }

.tp2-ev.tp2-hi .tp2-ev-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 82%, transparent) 24%, color-mix(in srgb, var(--surface) 36%, transparent) 55%, transparent 100%); }
.tp2-ev.tp2-hi > * { position: relative; }
.tp2-ev.tp2-hi .tp2-line { font-size: 15px; white-space: normal; }
.tp2-why { display: inline-block; margin-top: 6px; padding: 3px 8px; border: 1px solid color-mix(in srgb, var(--tc) 50%, var(--border)); border-radius: var(--radius-full); color: var(--tc); font-size: 11px; font-weight: 700; }
.tp2-kv { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; font-size: 12.5px; margin: 0; }
.tp2-kv dt { color: var(--text-3); }
.tp2-kv dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp2-kv dd small { display: block; color: var(--text-muted); font-weight: 500; font-size: 11px; }
.tp2-activity-older { margin: 20px 0 4px; text-align: center; }


.tp2-ev.tp2-wk { display: block; padding: 16px 18px; cursor: default; }
.tp2-ev.tp2-wk[hidden] { display: none; }
.tp2-ev.tp2-wk:hover { background: var(--surface); }
.tp2-wk-head { display: flex; align-items: center; gap: 12px; }
.tp2-wk-head .tp2-emblem { width: 44px; height: 44px; border-radius: 10px; font-size: 14px; letter-spacing: 0; }
.tp2-wk-head .tp2-emblem.tp2-emblem-4 { font-size: 12px; letter-spacing: -.02em; }
.tp2-wk-title { min-width: 0; flex: 1; }
.tp2-wk-title .tp2-line { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.tp2-kind-recap { color: var(--tc); }
.tp2-wk-list { display: grid; gap: 9px; margin: 14px 0 0; max-width: 56%; }
.tp2-wk-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.tp2-wk-row dt { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tp2-wk-row dd { margin: 0; display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; min-width: 0; }
.tp2-wk-row dd b { font-weight: 600; }
.tp2-wk-row .muted { color: var(--text-muted); }
.tp2-wk-who { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tp2-wk-who .tm-avatar { width: 20px; height: 20px; }
.tp2-wk-who .tp2-gi { width: 20px; height: 20px; border-radius: 5px; }
.tp2-wk-gain { color: var(--success); font-weight: 700; font-variant-numeric: tabular-nums; }
.tp2-wk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; color: var(--text-muted); font-size: 11.5px; }
.tp2-wk-foot .btn { background: color-mix(in srgb, var(--surface) 85%, transparent); }

.tp2-wk.tp2-wk-quiet .tp2-ev-art::before { display: none; }
.tp2-wk-ghost { position: absolute; z-index: 1; right: 18px; top: 50%; transform: translateY(-50%); font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: color-mix(in srgb, var(--tc) 12%, transparent); pointer-events: none; }

.tp2-ev .tp2-gi.tp2-ev-emblem { display: grid; place-items: center; border: 2px solid var(--tc); color: var(--tc); background: var(--surface-2); font-weight: 800; font-size: 12px; }
@media (max-width: 700px) {
    .tp2-ev.tp2-wk .tp2-ev-art { inset: auto 0 0 0; height: 46%; }
    .tp2-ev.tp2-wk .tp2-ev-art::after { background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 82%, transparent) 55%, color-mix(in srgb, var(--surface) 55%, transparent) 100%); }
    .tp2-wk-foot { color: var(--text-2); text-shadow: 0 1px 6px var(--surface); }
    .tp2-wk-list { max-width: none; }
    .tp2-wk-ghost { font-size: 64px; top: auto; bottom: 14px; transform: none; }
}

@media (max-width: 560px) {
    .tp2-sec-head { flex-wrap: wrap; }
    .tp2-sec-head h2 { white-space: nowrap; }
}


.tp2-ev .tp2-gi.tp2-ms-emblem { display: grid; place-items: center; border: 2px solid var(--tc); color: var(--tc); background: var(--surface-2); font-weight: 800; font-size: 12px; letter-spacing: 0; }
.tp2-ev.tp2-ms .tp2-ev-art::before { display: none; }
.tp2-ev.tp2-ms .tp2-ev-art::after { background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--tc) 9%, var(--surface)) 100%); }
.tp2-ms-ghost { position: absolute; z-index: 1; right: 18px; top: 50%; transform: translateY(-50%); font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: color-mix(in srgb, var(--tc) 14%, transparent); pointer-events: none; }
.tp2-kind-ms { color: var(--tc); }
@media (max-width: 700px) {
    .tp2-ms-ghost { font-size: 48px; right: 12px; top: auto; bottom: 10px; transform: none; }
}



.tp2-standing small .tp2-era { color: inherit; font-weight: 600; }
.tp2-standing small { text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 6px rgba(0, 0, 0, .5); }
.tp2-era-tip { cursor: help; }
.tp2-roster th.tp2-for-team, .tp2-roster td.tp2-for-team { border-left: 1px solid var(--border); }
.tp2-roster th.tp2-for-team { color: var(--text-2); }
.tp2-roster td.tp2-for-team b { display: block; font-weight: 700; }
.tp2-roster td.tp2-for-team small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 11px; }
.tp2-roster td.tp2-for-team.zero b { color: var(--text-muted); font-weight: 600; }
.tp2-roster td.tp2-for-team .tp2-unit { font-size: 0.8em; font-weight: 600; color: var(--text-muted); }
.tp2-roster td.tp2-life { color: var(--text-3); }
.tp2-h-short { display: none; }
.tp2-ev.tp2-founded { border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-md) var(--radius-md); margin-top: 6px; padding-top: 12px; }
.tp2-feed-day + .tp2-ev.tp2-founded { border-top: 0; margin-top: 0; padding-top: 8px; }
.tp2-kind-team { color: var(--tc); }
.tp2-former { background: color-mix(in srgb, var(--text-muted) 55%, var(--surface-2)); }

.tp2-roster .tp2-who small { flex-wrap: wrap; white-space: normal; }
@media (max-width: 1240px) {
    .tp2-roster th.hide-md, .tp2-roster td.hide-md { display: none; }
}
@media (max-width: 1170px) {
    .tp2-roster th.hide-xs2, .tp2-roster td.hide-xs2 { display: none; }
}
@media (min-width: 1001px) and (max-width: 1100px), (max-width: 760px) {
    .tp2-roster .tp2-bar { display: none; }
}
@media (max-width: 760px) {
    .tp2-roster th.tp2-for-team, .tp2-roster td.tp2-for-team { width: 104px; white-space: normal; }
    .tp2-roster td.tp2-for-team small { white-space: normal; line-height: 1.25; }
}
@media (max-width: 600px) {
    .tp2-roster th.hide-sm, .tp2-roster td.hide-sm { display: none; }
}
@media (max-width: 560px) {
    .tp2-roster th:nth-child(1), .tp2-roster td:nth-child(1) { width: 36px; }
    .tp2-h-full { display: none; }
    .tp2-h-short { display: inline; }
}


.tp2-roster-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.tp2-roster-head h2 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; }
.tp2-roster-head .tp2-chips .chip .n { margin-left: 5px; color: var(--text-muted); font-weight: 600; }
.tp2-quiet { color: var(--text-muted); font-size: 11px; }
.tp2-roster tr.tp2-inactive .tm-avatar { filter: saturate(.4); opacity: .8; }
.tp2-roster.tp2-only-inactive tbody tr:not(.tp2-inactive) { display: none; }

.tp2-roster tfoot td { border-bottom: 0; color: var(--text-muted); }
.tp2-roster tfoot .tp2-roster-former b { font-weight: 600; color: var(--text-2); }
.tp2-roster tfoot .tp2-roster-former small { display: block; font-size: 11.5px; color: var(--text-muted); }

.tp2-roster tfoot td.tp2-roster-former { white-space: normal; }
.tp2-roster tfoot .tp2-roster-former small { line-height: 1.25; margin-top: 1px; }

.tp2-roster.tp2-only-inactive tfoot { display: none; }

@media (max-width: 560px) {
    .tp2-roster tfoot .tp2-roster-former small { display: none; }
}


.tp2-roster-note { margin: 0 0 8px; color: var(--text-muted); font-size: 12px; }
.tp2-roster td.tp2-plat .tp2-shovel { display: block; margin-top: 1px; color: var(--text-muted); font-size: 11px; font-weight: 500; }
.tp2-roster td.tp2-plat .tp2-shovel img, .tp2-roster-note img { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; object-fit: contain; }
html[data-theme="light"] .tp2-roster td.tp2-plat .tp2-shovel img, html[data-theme="light"] .tp2-roster-note img { filter: brightness(0.4); }
@media (max-width: 560px) {
    
    .tp2-roster td.tp2-plat .tp2-shovel-word { display: none; }
}


.tp2-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.tp2-center > .tp2-sec-head:first-child { margin-top: 0; }
.tp2-sec-head h2 { font-family: var(--font-sans); font-size: 16px; font-weight: 700; }
.tp2-sec-head small { color: var(--text-muted); font-size: 12px; }
.tp2-sec-head small a { color: var(--brand-2); text-decoration: none; }
.tp2-acts { display: flex; gap: 8px; align-items: center; }
.tp2-cap-note { color: var(--text-muted); font-size: 12px; }
.tp2-chal { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.tp2-chal + .tp2-chal { margin-top: 12px; }
.tp2-chal-top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: start; }
.tp2-chal-top h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 700; }
.tp2-cmeta { margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.tp2-cmeta .tp2-aud { color: var(--text-3); font-weight: 600; }
.tp2-place { text-align: right; }
.tp2-place b { display: block; font-family: var(--font-sans); font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tp2-place b.r1 { color: var(--metal-gold); }
.tp2-place b.r2 { color: var(--metal-silver); }
.tp2-place b.r3 { color: var(--metal-bronze); }
.tp2-place b.tp2-enrolled { font-size: 16px; color: var(--text-muted); }
.tp2-place small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tp2-chal-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.tp2-chal-body h4 { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.tp2-chal-body p { font-size: 12.5px; line-height: 1.55; color: var(--text-2); }
.tp2-mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tp2-mini td { padding: 5px 4px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.tp2-mini tr:last-child td { border-bottom: 0; }
.tp2-mini td:last-child { text-align: right; font-weight: 700; }
.tp2-mini tr.me td { color: var(--tc); font-weight: 700; }
.tp2-mini .tm-avatar { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; }

.tp2-mini .tm-avatar-blank { display: inline-block; }
.tp2-gap { margin-top: 10px; font-size: 12.5px; color: var(--text-2); }
.tp2-gap b { color: var(--text); }
.tp2-chal-foot { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.tp2-chal-foot a { color: var(--brand-2); text-decoration: none; cursor: pointer; }
.tp2-chal.tp2-team-only { border-color: color-mix(in srgb, var(--tc) 30%, var(--border)); }
.tp2-record { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius-md); }
.tp2-record > div { padding: 10px 12px; border-left: 1px solid var(--border); }
.tp2-record > div:first-child { border-left: 0; }
.tp2-record b { display: block; font-family: var(--font-sans); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.tp2-record small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tp2-past { margin-top: 12px; }
.tp2-past td.pl { font-weight: 800; font-family: var(--font-sans); }


.tp2-twocol { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }

.tp2-stats .tp2-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.tp2-stats > .tp2-card, .tp2-stats > .tp2-twocol { margin-top: 16px; }
.tp2-stats > .tp2-card:first-child, .tp2-stats > .tp2-twocol:first-child { margin-top: 0; }
.tp2-stats .tp2-card > .tp2-sec-head:first-child { margin-top: 0; }
.tp2-stats .tp2-card .tp2-rankline { border: 0; padding: 0; }
.tp2-stats-empty { text-align: left; margin-top: 0; }
.tp2-stats .tp2-dark-only, html[data-theme="light"] .tp2-stats .tp2-light-only { display: inline; }
html[data-theme="light"] .tp2-stats .tp2-dark-only, .tp2-stats .tp2-light-only { display: none; }


.tp2-contrib-bar { display: flex; height: 22px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.tp2-contrib-bar span { display: block; height: 100%; border-right: 1px solid var(--bg); transition: opacity .15s ease-out; }
.tp2-contrib-bar span:last-child { border-right: 0; }
.tp2-contrib-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.tp2-contrib-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.tp2-contrib-legend b { color: var(--text); font-weight: 600; }
.tp2-contrib-legend .tp2-pct { color: var(--text-muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.tp2-contrib-legend > span { cursor: default; padding: 2px 6px; margin: -2px -6px; border-radius: var(--radius-sm); transition: opacity .15s ease-out; }
.tp2-contrib-bar.hov span:not(.on), .tp2-contrib-legend.hov > span:not(.on) { opacity: .28; }
.tp2-contrib-legend > span.on { background: var(--surface-2); }


.tp2-rankline { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.tp2-now b { display: block; font-family: var(--font-sans); font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.tp2-now small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tp2-rankline svg { width: 100%; height: 60px; display: block; }
.tp2-rank-axis { display: flex; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: 10.5px; margin-top: 4px; }


.tp2-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 118px; padding: 0 4px; }
.tp2-months > div { display: grid; align-content: end; justify-items: center; gap: 5px; height: 100%; position: relative; }
.tp2-months i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--brand-2), var(--brand-1) 80%); opacity: .72; }
.tp2-months .tp2-cur i { opacity: 1; box-shadow: 0 0 12px rgba(78,156,190,.18); }
.tp2-months b { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp2-months small { color: var(--text-muted); font-size: 10px; }


.tp2-heat { display: grid; grid-template-columns: auto repeat(12, 1fr); gap: 3px; align-items: center; }
.tp2-heat-lab { color: var(--text-muted); font-size: 10px; padding-right: 6px; }
.tp2-heat i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--surface-2); font-style: normal; }
.tp2-heat i.l1 { background: color-mix(in srgb, var(--brand-1) 35%, var(--surface-2)); }
.tp2-heat i.l2 { background: color-mix(in srgb, var(--brand-1) 70%, var(--surface-2)); }
.tp2-heat i.l3 { background: var(--brand-1); }
.tp2-heat i.l4 { background: var(--brand-2); }
.tp2-heat-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--text-muted); font-size: 10.5px; }


.tp2-favs { display: grid; gap: 2px; }
.tp2-fav { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 6px 4px; }
.tp2-fav .tp2-gi { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; background: var(--surface-2); }
.tp2-fav b { display: block; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp2-fav small { color: var(--text-muted); font-size: 11px; }
.tp2-faces { display: flex; }
.tp2-faces img { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -7px; object-fit: cover; background: var(--surface-2); }
.tp2-faces img:first-child { margin-left: 0; }


.tp2-seg { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.tp2-seg span { height: 100%; }
.tp2-seg-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.tp2-seg-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
html[data-theme="light"] .tp2-seg span[style*="--platform-ps5"], html[data-theme="light"] .tp2-seg-legend i[style*="--platform-ps5"] { box-shadow: inset 0 0 0 1px var(--border); }


.tp2-dowstrip { display: grid; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.tp2-dowtext { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.tp2-dowtext strong { color: var(--brand-2); font-weight: 700; }
.tp2-dowbars { display: flex; align-items: flex-end; gap: 6px; height: 62px; }
.tp2-dowcol { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; flex: 1; }
.tp2-dowbar { width: 100%; margin-top: auto; border-radius: 3px 3px 1px 1px; background: #2c5f83; min-height: 3px; }
html[data-theme="light"] .tp2-dowbar { background: #8fb8d8; }
.tp2-dowcol.tp2-top .tp2-dowbar { background: linear-gradient(180deg, var(--brand-2), var(--brand-1)); box-shadow: 0 0 8px rgba(134,215,236,.35); }
.tp2-dowlabel { font-size: 9px; color: var(--text-muted); }
.tp2-dowcol.tp2-top .tp2-dowlabel { color: var(--brand-2); font-weight: 700; }
.tp2-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 62px; }
.tp2-hours > div { position: relative; display: grid; align-content: end; justify-items: center; gap: 4px; height: 100%; }
.tp2-hours i { display: block; width: 100%; border-radius: 2px 2px 1px 1px; background: #2c5f83; min-height: 2px; }
html[data-theme="light"] .tp2-hours i { background: #8fb8d8; }
.tp2-hours .tp2-peak i { background: linear-gradient(180deg, var(--brand-2), var(--brand-1)); box-shadow: 0 0 8px rgba(134,215,236,.35); }
.tp2-hours small { font-size: 9px; color: var(--text-muted); line-height: 1; height: 9px; }
.tp2-hours .tp2-peak small { color: var(--brand-2); font-weight: 700; }


.tp2-readout, .stat-readout {
    display: block; box-sizing: border-box; min-height: 30px; margin-top: 10px; padding: 7px 10px;
    border-radius: var(--radius-sm); background: var(--surface-2);
    color: var(--text-3); font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp2-readout b, .stat-readout b { color: var(--text); font-weight: 700; }
.tp2-readout.is-live, .stat-readout.is-live { color: var(--text-2); }
.tp2-dowstrip .tp2-readout { margin-top: 0; }

[data-chart] > [data-read] { cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
[data-chart] > [data-read]:focus { outline: none; }
.tp2-heat[data-chart] > i.is-sel { position: relative; z-index: 1; outline: 2px solid var(--text); outline-offset: 1px; }
.tp2-dowcol.is-sel .tp2-dowbar, .tp2-hours > div.is-sel i { outline: 2px solid var(--text); outline-offset: 1px; }
.tp2-dowcol.is-sel .tp2-dowlabel { color: var(--text); font-weight: 700; }



.tp2-cols-focus { grid-template-areas: "main focus" "main rail"; grid-template-rows: auto 1fr; }
.tp2-cols-focus > .tp2-roster-main { grid-area: main; min-width: 0; }
.tp2-cols-focus > .tp2-focus { grid-area: focus; margin-top: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.tp2-cols-focus > .tp2-focus .tp2-focus-main { display: contents; }
.tp2-cols-focus > .tp2-focus .tp2-panel-title { order: -1; }
.tp2-cols-focus > .tp2-rail { grid-area: rail; }
.tp2-focus { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 18px; }
.tp2-focus-none { grid-template-columns: minmax(0, 1fr); }
.tp2-focus-main { min-width: 0; max-width: 460px; }
.tp2-focus .tp2-panel-title { margin-bottom: 8px; }
.tp2-focus-art { position: relative; display: block; aspect-ratio: 16 / 7; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-2); color: #f4f6fa; text-decoration: none; }
.tp2-focus-art::before { content: ""; position: absolute; inset: 0; background-image: var(--gd-artwork, none); background-position: var(--gd-artwork-pos, center); background-size: cover; transform: scale(var(--gd-artwork-zoom, 1)); transform-origin: var(--gd-artwork-pos, center); filter: saturate(1.06); }
.tp2-focus-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 6, 10, .82) 0%, rgba(4, 6, 10, .3) 30%, rgba(4, 6, 10, 0) 58%); }
:where(html[data-theme="light"]) .tp2-focus-art::after { background: linear-gradient(0deg, rgba(4, 6, 10, .82) 0%, rgba(4, 6, 10, .3) 30%, rgba(4, 6, 10, 0) 58%); }
.tp2-focus-art > span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tp2-focus-art b { font-size: 14.5px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp2-focus-art small { color: var(--dark-text-2, #c6cddb); font-size: 11px; white-space: nowrap; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tp2-focus-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 2px 0; font-size: 12.5px; }
.tp2-focus-row .tp2-faces img { width: 24px; height: 24px; }
.tp2-focus-count b { font-weight: 700; }
.tp2-focus-toggle { width: 100%; margin-top: 10px; }

.tp2-focus-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--success) 30%, var(--border)); border-radius: var(--radius-sm); font-size: 12.5px; }
.tp2-focus-on b { color: var(--success); font-weight: 700; }
.tp2-focus-on button { padding: 0; border: 0; background: none; font: inherit; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 12px; }
.tp2-focus-on button:hover { color: var(--text-2); }
.tp2-focus-session { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; }
.tp2-focus-session b { display: block; font-weight: 600; }
.tp2-focus-session small { display: block; color: var(--text-muted); font-size: 11px; }
.tp2-focus-empty { margin: 4px 2px 0; color: var(--text-muted); font-size: 12px; }

@media (max-width: 1000px) {
    .tp2-cols-focus { grid-template-areas: "focus" "main" "rail"; grid-template-rows: none; }
    .tp2-cols-focus > .tp2-focus { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; align-items: center; }
    .tp2-cols-focus > .tp2-focus.tp2-focus-none { grid-template-columns: minmax(0, 1fr); }
    .tp2-cols-focus > .tp2-focus .tp2-focus-main { display: block; }
    .tp2-cols-focus > .tp2-focus .tp2-panel-title { order: 0; }
}
@media (max-width: 760px) {
    .tp2-focus, .tp2-cols-focus > .tp2-focus { grid-template-columns: minmax(0, 1fr); }
    .tp2-focus-main { max-width: none; }
    
    .tp2-focus-art { aspect-ratio: auto; height: 120px; }
}
@media (max-width: 1000px) {
    
    .tp2-cols { grid-template-columns: minmax(0, 1fr); }
    .tp2-twocol { grid-template-columns: minmax(0, 1fr); }
    .tp2-chal-body { grid-template-columns: 1fr; }
    .tp2-center { min-width: 0; }
    .tp2-stats .tp2-card { min-width: 0; }
    .tp2-metals { grid-template-columns: repeat(2, 1fr); }
    .tp2-metals > div, .tp2-metals > div:first-child { border-left: 0; border-top: 1px solid var(--border); padding-left: 18px; }
    .tp2-copy { flex-direction: column; align-items: flex-start; gap: 14px; left: 18px; right: 18px; bottom: 16px; }
    .tp2-right { align-items: flex-start; }
    .tp2-emblem { width: 64px; height: 64px; font-size: 20px; }
    .tp2-ident h1 { font-size: 26px; }
    .tp2-ident p { display: none; }
    
    .tp2-art { display: flex; flex-direction: column; justify-content: flex-end; }
    .tp2-art > .tp2-copy { position: relative; left: auto; right: auto; bottom: auto; margin: 0 18px 16px; padding-top: 50px; }
    
    .tp2-art-empty > .tp2-copy { padding-top: 18px; }
    .tp2-cap { left: 18px; right: 14px; text-align: right; }
    .tp2-ident h1.tp2-name-long { font-size: 22px; line-height: 1.1; }
}
@media (max-width: 560px) {
    .tp2-tt th.hide-sm, .tp2-tt td.hide-sm { display: none; }
    
    .tp2-past th, .tp2-past td { padding-left: 5px; padding-right: 5px; white-space: normal; }
    .tp2-past th { font-size: 10px; letter-spacing: .02em; }
    .tp2-past td { font-size: 12px; }
    .tp2-past td.l { overflow-wrap: anywhere; }
    .tp2-past td.muted { white-space: nowrap; }
    
    .tp2-stats .tp2-tt { table-layout: fixed; }
    .tp2-stats .tp2-tt th.l, .tp2-stats .tp2-tt td.l { overflow: hidden; text-overflow: ellipsis; }
    
    .tp2-roster { table-layout: fixed; }
    .tp2-roster th, .tp2-roster td { padding-left: 6px; padding-right: 6px; }
    
    .tp2-roster th, .tp2-roster td { overflow: hidden; text-overflow: ellipsis; }
    .tp2-roster th:nth-child(3), .tp2-roster td:nth-child(3) { width: 42px; }
    .tp2-roster th:nth-child(4), .tp2-roster td:nth-child(4) { width: 64px; }
    .tp2-roster th:nth-child(5), .tp2-roster td:nth-child(5) { width: 72px; }
    
    .tp2-roster .tp2-who > span { min-width: 0; }
    .tp2-roster .tp2-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    
    .tp2-roster .tp2-who small { flex-wrap: wrap; row-gap: 2px; }
    .tp2-roster .tp2-plat img { margin-right: 2px; }
    
    .tp2-metals .tp2-latest { grid-column: 1 / -1; }
    
    .tp-tabs { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding-bottom: 2px; }
    .tp-tabs::-webkit-scrollbar { display: none; }
    .tp-tab { flex: 0 0 auto; white-space: nowrap; }
    
    .tp2-tabs { gap: 0; }
    .tp2-tabs .tp-tab { padding: 10px 4px 12px; font-size: 12px; }
    .tp2-tabs .tp-tab .n { margin-left: 3px; }
    .tp2-tabs .tp-tab .plate-premium { margin-left: 3px; padding: 2px 4px 3px; font-size: 9px; letter-spacing: .03em; }
    .tp2-tabs .tp-badge { margin-left: 3px; }
    .tp2-tabs .tp-tab.on::after { left: 3px; right: 3px; }
    
    .tp2-ev .tp2-line { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 430px) {
    
    .tp2-roster th.hide-xs, .tp2-roster td.hide-xs { display: none; }
}


.support-page { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; }
.support-head { margin-bottom: 4px; }
.support-head h1 { font-size: 22px; letter-spacing: -0.01em; }
.support-head p { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.support-loading, .support-empty { padding: 40px 8px; color: var(--text-3); font-size: 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.support-empty strong { color: var(--text); font-size: 15px; }
.support-empty span { max-width: 340px; }


.ticket-stamp { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 7px; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); border-radius: 3px 0 3px 3px; }
.ticket-stamp.is-open { background: var(--brand-2); color: var(--stamp-ink); filter: drop-shadow(1.5px 1.5px 0 var(--stamp-shadow)); }
.ticket-stamp.is-flat { background: var(--surface-3); color: var(--text-2); }


.ticket-chip { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.ticket-chip.is-alert { color: var(--danger); border-color: var(--danger); }


.ticket-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ticket-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; cursor: pointer; }
.ticket-row:hover { border-color: var(--brand-1); }
.ticket-row:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }
.ticket-row-main { min-width: 0; }
.ticket-row-main strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); }
.ticket-row-main span { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.ticket-row-side { display: flex; align-items: center; gap: 10px; }
.ticket-row-side time { font-size: 12px; color: var(--text-muted); }


.ticket-back { background: none; border: none; color: var(--text-3); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 16px; }
.ticket-back:hover { color: var(--text); }
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ticket-head-in { display: flex; flex-direction: column; gap: 8px; }
.ticket-head h1 { font-size: 20px; letter-spacing: -0.01em; }
.ticket-head-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ticket-head-meta time { font-size: 12px; color: var(--text-muted); }
.ticket-withdraw { background: none; border: 1px solid var(--border); color: var(--text-3); border-radius: 7px; height: 30px; padding: 0 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ticket-withdraw:hover { color: var(--text); border-color: var(--text-3); }
.ticket-withdraw:disabled { opacity: 0.45; cursor: default; }
.ticket-withdraw:disabled:hover { color: var(--text-3); border-color: var(--border); }


.ticket-envelope { background: var(--surface); border: 1px solid var(--border); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); border-radius: 10px 0 10px 10px; padding: 14px 16px 15px; margin-bottom: 20px; }
.ticket-envelope-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ticket-envelope-eyebrow span { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.ticket-envelope p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }


.ticket-line { position: relative; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.ticket-line::before { content: ""; position: absolute; left: 3.5px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.ticket-ev { position: relative; }
.ticket-ev::before { content: ""; position: absolute; left: -22px; top: 4px; width: 8px; height: 8px; border-radius: 2px; background: var(--surface-3); }
.ticket-ev.is-site::before { background: var(--brand-1); }
.ticket-ev.is-done::before { background: var(--success); }
.ticket-ev-line { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--text-2); }
.ticket-ev-line time { font-size: 11.5px; color: var(--text-muted); }


.ticket-msg { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 8px; max-width: 92%; }
.ticket-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ticket-msg-head time { font-size: 11.5px; color: var(--text-muted); }
.ticket-msg-head strong { font-size: 12.5px; font-weight: 700; color: var(--text); }
.ticket-msg p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.ticket-plate { width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--surface-3); color: var(--text-2); flex: none; }
.ticket-plate.is-site { background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: var(--stamp-ink); font-family: "Commissioner", var(--font-sans); font-weight: 700; }


.ticket-reply { margin-top: 10px; display: flex; gap: 8px; }
.ticket-reply input { flex: 1; height: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font: inherit; font-size: 13.5px; padding: 0 12px; }
.ticket-reply input::placeholder { color: var(--text-muted); }
.ticket-reply button { height: 34px; padding: 0 16px; border: none; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.ticket-reply button:hover { background: var(--accent-hover); }
.ticket-reply input:disabled { opacity: 0.45; cursor: default; }
.ticket-reply button:disabled,
.ticket-reply button:disabled:hover { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }
.ticket-chat-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }


.ticket-outcome { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.ticket-outcome-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ticket-outcome-head strong { font-size: 13px; font-weight: 800; color: var(--text); }
.ticket-outcome p { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.ticket-frozen { margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }


.email-verify-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
}
.email-verify-banner[hidden] { display: none; }
.email-verify-banner #emailVerifyBannerText { flex: 1; }
.email-verify-banner-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
}


:root {
    --completion-plat-start: #8fb8d8;
    --completion-plat-end: #bedceb;
    --profile-ribbon-yellow: var(--metal-gold);
    --profile-ribbon-ice: color-mix(in oklab, var(--completion-plat-start) 50%, var(--completion-plat-end));
}
html[data-theme="light"] {
    --completion-plat-start: #4f6f8f;
    --completion-plat-end: #6d92b4;
    --profile-ribbon-yellow: oklch(from var(--metal-gold) .70 c h);
}
.profile-ribbon-wrap { display:flex;align-items:center;justify-content:center;width:100px;height:100px; }
.profile-ribbon-art { position:relative;display:block;flex-shrink:0;width:100px;height:100px;line-height:0; }
.profile-ribbon { position:absolute;display:block;overflow:hidden;pointer-events:none; }
.profile-ribbon-track { fill:none;stroke:var(--border-hover);stroke-width:1; }
.profile-ribbon-progress { fill:none;stroke:var(--profile-ribbon-color);stroke-linecap:round;stroke-linejoin:round; }
.profile-ribbon-art[data-stage="0"] { --profile-ribbon-color:var(--text-3); }
.profile-ribbon-art[data-stage="1"] { --profile-ribbon-color:var(--danger); }
.profile-ribbon-art[data-stage="2"] { --profile-ribbon-color:color-mix(in oklch shorter hue,var(--danger) 60%,var(--gold)); }
.profile-ribbon-art[data-stage="3"] { --profile-ribbon-color:var(--gold); }
.profile-ribbon-art[data-stage="4"] { --profile-ribbon-color:var(--profile-ribbon-yellow); }
.profile-ribbon-art[data-stage="5"] { --profile-ribbon-color:color-mix(in oklch shorter hue,var(--profile-ribbon-yellow) 66%,var(--success)); }
.profile-ribbon-art[data-stage="6"] { --profile-ribbon-color:color-mix(in oklch shorter hue,var(--profile-ribbon-yellow) 30%,var(--success)); }
.profile-ribbon-art[data-stage="7"],.profile-ribbon-art[data-stage="8"] { --profile-ribbon-color:var(--success); }
.profile-ribbon-art[data-context="platinum"][data-stage="6"] { --profile-ribbon-color:color-mix(in oklab,var(--success) 62%,var(--profile-ribbon-ice)); }
.profile-ribbon-art[data-context="platinum"][data-stage="7"] { --profile-ribbon-color:color-mix(in oklab,var(--success) 20%,var(--profile-ribbon-ice)); }
.profile-ribbon-art[data-context="dlc"][data-stage="7"] { --profile-ribbon-color:color-mix(in oklab,var(--success) 55%,var(--profile-ribbon-ice)); }
.profile-ribbon-card .profile-ribbon-art .icon-seal-mini { top:-8px;left:-8px;bottom:auto;z-index:3; }
.profile-ribbon-card .profile-ribbon-art .icon-seal-badge { top:-10px;left:-10px;bottom:auto;z-index:3; }
.profile-ribbon-card .profile-ribbon-art .icon-plat-badge { z-index:2; }
@media(max-width:760px) { }


.private-lock { flex: none; color: var(--text-muted); }


.private-profile-banner { flex-wrap: wrap; row-gap: 12px; margin-bottom: 22px; }
.private-profile-banner[hidden] { display: none; }
.private-profile-banner .email-verify-banner-close { margin-left: auto; padding: 2px 8px; font-size: 24px; line-height: 1; }
.private-banner-text { flex: 1 1 280px; min-width: 0; line-height: 1.5; }
.private-steps {
    flex: 1 1 100%;
    margin: 0;
    padding: 4px 0 4px 20px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.5;
}
.private-steps[hidden] { display: none; }
.private-steps li + li { margin-top: 6px; }


#profileView.is-private-card > :not(#profileCover):not(#profilePrivateNote) { display: none !important; }
.private-cover { position: relative; margin-bottom: 18px; border-radius: 18px; overflow: hidden; isolation: isolate; }
.private-cover #profileHeader { margin-bottom: 0 !important; filter: blur(22px); transform: scale(1.1); pointer-events: none; user-select: none; }
.private-cover-scrim {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: color-mix(in srgb, var(--bg) 62%, transparent);
}
.private-cover-scrim[hidden] { display: none; }
.private-cover-msg { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--text); }
.private-cover-msg .private-lock { color: var(--text-2); }
.private-cover-msg p { margin: 0; font-size: 20px; font-weight: 700; }
.private-cover-msg .private-cover-sub { margin-top: -4px; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--text-2); }
.private-cover-msg .private-cover-sub[hidden] { display: none; }

.private-lock-block { padding: 72px 24px; }
@media (max-width: 900px) { .private-cover { border-radius: 14px; } }


.private-cover .profile-artwork-panel.is-empty {
    background:
        radial-gradient(circle at 78% 22%, rgba(120, 150, 190, 0.45), transparent 46%),
        linear-gradient(120deg, #1f2b40 0%, #34496a 52%, #223149 100%);
}

html[data-theme="light"] .private-cover .profile-trophy-strip,
html[data-theme="light"] .private-cover .profile-pulse {
    background: rgba(5, 9, 19, 0.76);
    border-top-color: transparent;
    box-shadow: none;
}


.trophy-tip-card header strong.is-private-author,
.feed-name.is-private-author { color: var(--text-muted); font-weight: 600; font-style: italic; }


@font-face {
    font-family: "Public Sans Recap";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Public Sans Recap";
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Public Sans Recap";
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Public Sans Recap";
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Public Sans Recap";
    font-style: normal;
    font-weight: 800;
    font-display: block;
    src: url("fonts/PublicSans-ExtraBold.ttf") format("truetype");
}

@font-face {
    font-family: "Public Sans Recap";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("fonts/PublicSans-Black.ttf") format("truetype");
}


.recap-page { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; }
.recap-head { margin-bottom: 4px; }
.recap-head h1 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 0; }
.recap-head p { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.recap-loading, .recap-empty { padding: 40px 8px; color: var(--text-3); font-size: 14px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.recap-empty strong { color: var(--text); font-size: 15px; }
.recap-empty span { max-width: 340px; }


.rc-slide {
    --w-base: #0e1318; --w-title: #eff3f7; --w-caps: #a8c6e6; --w-meta: #96999d;
    --w-count: #e3e6ea; --w-line: rgba(255, 255, 255, .09); --w-tile: #1b2027;
    --w-brand: linear-gradient(90deg, #4e9cbe, #86d7ec 55%, #c4ecf8);
    width: 405px; height: 720px; box-sizing: border-box; position: relative; overflow: hidden;
    border-radius: 24px; background: var(--w-base); color: var(--w-title);
    font-family: "Public Sans Recap", "Public Sans", Arial, sans-serif; text-align: left;
    display: flex; flex-direction: column; padding: 26px 30px 24px;
    isolation: isolate;
}
.rc-slide::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: none;
}
.rc-slide p, .rc-slide h2, .rc-slide h3 { margin: 0; }
.rc-art {
    position: absolute; left: 0; right: 0; top: 0; height: 72%; z-index: -1; overflow: hidden;
    --rc-art-pos: center 30%;
    
    -webkit-mask-image: linear-gradient(180deg, transparent 12%, #000 30%, #000 58%, transparent);
    mask-image: linear-gradient(180deg, transparent 12%, #000 30%, #000 58%, transparent);
}

.rc-art::before, .rp-art::before, .ra-back::before {
    content: ""; position: absolute; inset: 0;
    background-image: var(--rc-art, none); background-size: cover;
    background-position: var(--gd-artwork-pos, var(--rc-art-pos, center));
    transform: scale(var(--gd-artwork-zoom, 1));
    transform-origin: var(--gd-artwork-pos, var(--rc-art-pos, center));
}
.rc-art::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 19, .82) 0%, rgba(10, 14, 19, .45) 24%, rgba(10, 14, 19, .4) 45%, rgba(14, 19, 24, .9) 80%);
}

.rc-art.is-blur {
    inset: -12px; height: auto; filter: blur(4px) saturate(1.05); --rc-art-pos: center;
    
    -webkit-mask-image: linear-gradient(180deg, transparent 8%, #000 28%, #000 66%, transparent 96%);
    mask-image: linear-gradient(180deg, transparent 8%, #000 28%, #000 66%, transparent 96%);
}
.rc-art.is-blur::after { background: rgba(10, 14, 19, .52); }

.rc-art ~ .rc-body, .rc-art ~ .rc-strip, .rc-art ~ .rc-foot { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

.rc-art ~ .rc-body :is(.rc-num, .rc-share-grid b, .rc-ranks b, .rc-half strong) { text-shadow: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }

.rc-head { display: flex; justify-content: center; height: 20px; }
.rc-logo { height: 18px; width: auto; display: block; }


.rc-strip { margin-top: 16px; }
.rc-strip svg { display: block; width: 100%; height: 30px; }
.rc-strip-ends { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; color: var(--w-meta); margin-top: 4px; opacity: .8; }

.rc-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0; }
.rc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; white-space: nowrap; }
.rc-me { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--w-title); }
.rc-me img { width: 22px; height: 22px; border-radius: 50%; background: #24282e; object-fit: cover; }
.rc-id { font-weight: 700; color: var(--w-title); }
.rc-id span { font-weight: 600; color: var(--w-meta); }

.rc-kicker { font-size: 16px; font-weight: 600; color: var(--w-caps); }

.rc-num {
    font-size: 124px; font-weight: 900; line-height: .95; letter-spacing: -.02em;
    background: var(--w-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
    padding: 0 4px;
}
.rc-slide .rc-num { margin: 6px 0 0; }
.rc-num.is-mid { font-size: 92px; }
.rc-num.is-small { font-size: 72px; }
.rc-unit { font-size: 24px; font-weight: 800; }
.rc-slide .rc-unit { margin: 2px 0 0; }
.rc-unit.is-md { font-size: 20px; }
.rc-unit.is-plain { font-size: 18px; font-weight: 700; }
.rc-meta { font-size: 14px; font-weight: 500; color: var(--w-meta); line-height: 1.45; }
.rc-slide .rc-meta { margin: 10px 0 0; }
.rc-slide .rc-meta.is-tight { margin-top: 4px; }
.rc-slide .rc-meta.is-loose { margin-top: 18px; }
.rc-meta b { color: var(--w-count); font-weight: 700; }
.rc-title { font-size: 28px; font-weight: 800; line-height: 1.12; }
.rc-slide .rc-title { margin: 6px 0 0; }
.rc-title.is-lg { font-size: 34px; }
.rc-title.is-xl { font-size: 40px; }
.rc-slide .rc-title.is-spaced { margin-top: 22px; }
.rc-spacer { flex: 1; }
.rc-spacer.is-short { flex: .35; }
.rc-spacer.is-shorter { flex: .2; }
.rc-slide .rc-chips { margin: 12px 0 10px; }


.rc-slide .platform-badge { font-size: 11px; padding: 3px 8px; border-radius: 6px; margin: 0; letter-spacing: .02em; font-weight: 800; }
html[data-theme="light"] .rc-slide .badge-ps5 { box-shadow: none; }

.rc-counts { display: flex; gap: 16px; justify-content: center; margin-top: 22px; }
.rc-counts span { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--w-count); font-variant-numeric: tabular-nums; }
.rc-counts img { height: 20px; width: auto; }

.rc-tile { width: 100%; aspect-ratio: 1; border-radius: 9px; background: var(--w-tile); object-fit: contain; display: block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rc-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; width: 100%; margin-top: 22px; }
.rc-more { display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: var(--w-caps); font-variant-numeric: tabular-nums; }

.rc-plat-head { display: flex; align-items: center; gap: 10px; }
.rc-plat-head img { height: 92px; width: auto; }


.rc-rows { width: 100%; margin-top: 22px; text-align: left; }
.rc-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--w-line); }
.rc-row:last-child { border-bottom: 1px solid var(--w-line); }
.rc-row > img, .rc-row > i { width: 44px; height: 44px; border-radius: 8px; background: var(--w-tile); object-fit: contain; display: block; }

.rc-row > div { min-width: 0; }
.rc-row b { font-size: 15px; font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-row small { display: block; font-size: 12.5px; color: var(--w-meta); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-row em { font-style: normal; font-size: 18px; font-weight: 800; color: var(--w-count); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }


.rc-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 170px; width: 100%; margin-top: 26px; }
.rc-month { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.rc-month i { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: rgba(168, 198, 230, .22); min-height: 3px; }
.rc-month.is-top i { background: linear-gradient(180deg, #c4ecf8, #4e9cbe); }
.rc-month span { font-size: 11px; font-weight: 700; color: var(--w-meta); }
.rc-month.is-top span { color: var(--w-title); }


.rc-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; margin-top: 24px; }
.rc-days span { border-radius: 7px; padding: 8px 0 7px; background: rgba(134, 215, 236, .14); box-shadow: inset 0 0 0 1px rgba(134, 215, 236, .35); font-size: 15px; font-weight: 800; color: var(--w-title); font-variant-numeric: tabular-nums; }
.rc-days small { display: block; font-size: 10px; font-weight: 600; color: var(--w-meta); margin-top: 1px; }


.rc-span { width: 100%; margin-top: 26px; }
.rc-span-track { position: relative; height: 14px; border-radius: 7px; background: rgba(168, 198, 230, .14); }
.rc-span-track i { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--w-brand); min-width: 6px; }
.rc-span-months { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 7px; }
.rc-span-months span { font-size: 11px; font-weight: 700; color: var(--w-meta); text-align: center; }
.rc-span-ends { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border-top: 1px solid var(--w-line); text-align: left; }
.rc-span-ends > div { padding-top: 12px; }
.rc-span-ends > div + div { border-left: 1px solid var(--w-line); padding-left: 16px; }
.rc-span-ends small { display: block; font-size: 12.5px; font-weight: 600; color: var(--w-meta); }
.rc-span-ends b { display: block; font-size: 20px; font-weight: 800; margin-top: 2px; }


.rc-pair { width: 100%; display: flex; flex-direction: column; gap: 0; text-align: left; }
.rc-half { padding: 22px 0; display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; }
.rc-half + .rc-half { border-top: 1px solid var(--w-line); }
.rc-half > img, .rc-half > i { width: 76px; height: 76px; border-radius: 12px; background: var(--w-tile); object-fit: contain; display: block; }
.rc-half > div { min-width: 0; }
.rc-half h3 { font-size: 20px; font-weight: 800; line-height: 1.15; }
.rc-slide .rc-half h3 { margin: 4px 0 2px; }
.rc-half p { font-size: 13.5px; color: var(--w-meta); font-weight: 500; }

.rc-half p.rc-kicker { font-size: 14px; }
.rc-half strong { display: block; margin-top: 8px; font-size: 22px; font-weight: 900; background: var(--w-brand); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; max-width: 100%; }


.rc-bars { width: 100%; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.rc-bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.rc-bar-top span { color: var(--w-meta); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-track { height: 10px; border-radius: 5px; background: rgba(168, 198, 230, .14); overflow: hidden; }
.rc-track i { display: block; height: 100%; border-radius: 5px; background: rgba(168, 198, 230, .45); }
.rc-bars > div:first-child .rc-track i { background: var(--w-brand); }


.rc-split { display: flex; height: 16px; border-radius: 8px; overflow: hidden; width: 100%; margin-top: 26px; gap: 3px; }
.rc-split i { display: block; height: 100%; }
.rc-split .is-ps5 { background: var(--platform-ps5); }
.rc-split .is-ps4 { background: var(--platform-ps4); }
.rc-legend { width: 100%; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.rc-legend div { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }

.rc-legend div > span:last-child { color: var(--w-meta); font-weight: 600; font-variant-numeric: tabular-nums; }


.rc-pct { width: 100%; margin-top: 26px; position: relative; }
.rc-pct .rc-track { height: 8px; }
.rc-pct .rc-track i { background: var(--w-brand); }
.rc-pct-you { position: absolute; top: 16px; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: var(--w-title); }
.rc-ranks { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border-top: 1px solid var(--w-line); }
.rc-ranks.is-single { grid-template-columns: 1fr; }
.rc-ranks div { padding: 16px 0 0; }
.rc-ranks div + div { border-left: 1px solid var(--w-line); }
.rc-ranks b { display: block; font-size: 40px; font-weight: 900; line-height: 1; background: var(--w-brand); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; margin: 0 auto; }
.rc-ranks span { display: block; font-size: 13px; color: var(--w-meta); font-weight: 600; margin-top: 6px; }


.rc-trophy { position: relative; width: 116px; height: 116px; margin-top: 18px; }
.rc-trophy > img:first-child, .rc-trophy > i { display: block; width: 116px; height: 116px; border-radius: 16px; background: var(--w-tile); object-fit: cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.rc-trophy > .rc-trophy-type { position: absolute; right: -10px; bottom: -8px; height: 34px; width: auto; }


.rc-art.is-hero {
    top: 96px; bottom: 0; height: auto; --rc-art-pos: center top;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 32%, transparent 56%);
    mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 32%, transparent 56%);
}
.rc-art.is-hero::after { background: linear-gradient(180deg, rgba(10, 14, 19, .45) 0%, rgba(10, 14, 19, .08) 22%, rgba(10, 14, 19, .6) 48%); }
.rc-share { flex: 0 0 auto; margin-top: auto; width: 100%; text-align: left; padding-bottom: 6px; }

.rc-share-grid { display: grid; grid-template-columns: 1fr 1fr; }
.rc-share-grid > div { padding: 11px 0 12px; min-width: 0; }
.rc-share-grid > div + div { border-top: 1px solid rgba(255, 255, 255, .1); }
.rc-share-grid > div:nth-child(odd):not(:first-child) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .1); }
.rc-share-grid > .rc-share-who { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 0 14px; }
.rc-share-who > img, .rc-share-who > i { display: block; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #24282e; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); flex: 0 0 auto; }
.rc-share-who > div { min-width: 0; }
.rc-share-who h2 { font-size: 21px; font-weight: 800; line-height: 1.1; color: #f4f7ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-slide .rc-share-who p { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: rgba(219, 227, 244, .72); }
.rc-share-grid small { display: block; font-size: 12px; font-weight: 600; color: rgba(219, 227, 244, .72); }

.rc-v { display: flex; align-items: center; height: 34px; margin-top: 3px; }
.rc-share-grid b {
    display: block; width: max-content; max-width: 100%;
    font-size: 30px; font-weight: 900; line-height: 1.05;
    background: var(--w-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rc-share-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.18; color: #f4f7ff; }
.rc-share-grid em { display: block; margin-top: 2px; font-style: normal; font-size: 12px; font-weight: 500; color: rgba(219, 227, 244, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


.rc-vstage > .rc-slide[data-slide="more"] { z-index: 3; pointer-events: none; }
.rc-more-cta {
    pointer-events: auto; display: inline-block; margin-top: 16px; padding: 11px 22px; border: 0; border-radius: 10px;
    background: #e8a93c; color: #1d1405; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.rc-more-cta:focus-visible { outline: 2px solid #86d7ec; outline-offset: 3px; }
.rc-more-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; text-align: left; }
.rc-more-tile { position: relative; padding: 11px 0 12px; min-width: 0; }
.rc-more-tile:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
.rc-more-tile:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .1); }
.rc-more-tile small { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(219, 227, 244, .72); }
.rc-more-tile svg { width: 11px; height: 11px; fill: none; stroke: #e8a93c; stroke-width: 2.2; flex: 0 0 auto; }
.rc-more-tile i { display: block; height: 22px; width: 46%; margin-top: 8px; border-radius: 5px; background: linear-gradient(90deg, rgba(134, 215, 236, .3), rgba(134, 215, 236, .1)); }
.rc-more-tile i + i { height: 7px; width: 70%; margin-top: 7px; background: rgba(168, 198, 230, .13); }


.rc-viewer { position: fixed; inset: 0; z-index: 205; background: rgba(4, 6, 10, 0.97); display: none; align-items: center; justify-content: center; overscroll-behavior: contain; }
:where(html[data-theme="light"]) .rc-viewer { background: rgba(5, 7, 12, .97); }
.rc-viewer.is-open { display: flex; }
.rc-vbox { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.rc-vbox:focus { outline: none; }
.rc-segs { display: flex; gap: 4px; width: 100%; }
.rc-segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.rc-segs i.is-done { background: rgba(255, 255, 255, .85); }

.rc-segs .rc-seg-lock { flex: 0 0 auto; width: 10px; height: 10px; margin: -4px 1px 0 3px; fill: none; stroke: #e8a93c; stroke-width: 2.2; }
.rc-segs i.is-locked { background: rgba(255, 255, 255, .08); }
.rc-segs i.is-locked.is-peek { background: rgba(232, 169, 60, .45); }
.rc-vstage { position: relative; }
.rc-vstage > .rc-slide { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.rc-tap { position: absolute; top: 0; bottom: 0; width: 40%; cursor: pointer; z-index: 2; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
.rc-tap.is-prev { left: 0; }
.rc-tap.is-next { right: 0; width: 60%; }
.rc-tap:focus-visible { outline: 2px solid #86d7ec; outline-offset: -2px; border-radius: 0; }

.rc-arrow {
    position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
    width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #eff3f7;
    cursor: pointer; transition: background .15s, opacity .15s;
}
.rc-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rc-arrow.is-prev { right: calc(100% + 22px); }
.rc-arrow.is-next { left: calc(100% + 22px); }
.rc-arrow:hover:not([disabled]) { background: rgba(255, 255, 255, .14); }
.rc-arrow:focus-visible { outline: 2px solid #86d7ec; outline-offset: 3px; }

.rc-arrow[disabled] { visibility: hidden; cursor: default; }
@media (max-width: 700px), (hover: none) {
    .rc-arrow { display: none; }
}
.rc-vbar { display: flex; gap: 10px; width: 100%; justify-content: space-between; align-items: center; }
.rc-vbtn { font: inherit; font-size: 14px; font-weight: 600; border-radius: 10px; padding: 9px 16px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #eff3f7; }
.rc-vbtn:hover { background: rgba(255, 255, 255, .12); }
.rc-vbtn.is-primary { background: #86d7ec; border-color: #86d7ec; color: #071419; }
.rc-vbtn.is-primary:hover { background: #a4e2f2; }
.rc-vbtn:disabled { opacity: .55; cursor: default; }
.rc-vbtn:focus-visible { outline: 2px solid #86d7ec; outline-offset: 2px; border-radius: 10px; }
.rc-vcount { color: var(--dark-text-3, #96999d); font-size: 13px; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
    .rc-viewer .rc-slide.is-enter .rc-body > * { animation: rc-up .42s cubic-bezier(.2, .7, .2, 1) both; }
    .rc-viewer .rc-slide.is-enter .rc-body > *:nth-child(2) { animation-delay: .06s; }
    .rc-viewer .rc-slide.is-enter .rc-body > *:nth-child(3) { animation-delay: .12s; }
    .rc-viewer .rc-slide.is-enter .rc-body > *:nth-child(n+4) { animation-delay: .18s; }
}
@keyframes rc-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }


@media (max-width: 520px) {
    
    .rc-viewer { background: var(--dark-scrim-deep, #05070c); }
    .rc-vbox { gap: 8px; }
    .rc-segs { padding: 0 8px; }
    .rc-vbar { padding: 0 10px; }
    .rc-vbtn { padding: 8px 14px; }
}


.rp-scrim { position: fixed; inset: 0; z-index: 204; background: rgba(4, 6, 10, 0.62); display: flex; align-items: center; justify-content: center; padding: 24px; overscroll-behavior: contain; }
:where(html[data-theme="light"]) .rp-scrim { background: rgba(5, 7, 12, .62); }
html[data-theme="light"] .rp-scrim { background: rgba(23, 32, 51, .38); }
.rp-sheet {
    width: min(560px, 100%); background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; padding: 20px 22px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    max-height: 100%; overflow-y: auto;
}

.rp-sheet:focus-visible { outline: none; border-radius: 18px; }
.rp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rp-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--text); }
.rp-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text-2); font-size: 16px; cursor: pointer; flex: 0 0 auto; }
.rp-x:hover { color: var(--text); border-color: var(--text-muted); }
.rp-covers { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); justify-content: center; gap: 18px; }
.rp-covers.is-one { grid-template-columns: minmax(0, 210px); }
.rp-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }


.rp-cover {
    all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: center;
    aspect-ratio: 9 / 16; width: 100%; border-radius: 14px; overflow: hidden; cursor: pointer; isolation: isolate;
    background: #0e1318; color: #eff3f7; font-family: "Public Sans Recap", "Public Sans", Arial, sans-serif;
    box-shadow: 0 0 0 1px rgba(168, 198, 230, .14);
    transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s;
}
.rp-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: none; }
.rp-cover:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #4e9cbe, 0 14px 30px rgba(0, 0, 0, .35); }
.rp-cover:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.rp-logo { height: 12px; width: auto; margin-top: 16px; }
.rp-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 12px; }
.rp-num {
    font-size: 60px; font-weight: 900; line-height: .95; letter-spacing: -.02em;
    background: linear-gradient(90deg, #4e9cbe, #86d7ec 55%, #c4ecf8); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rp-num.is-word { font-size: 38px; }
.rp-num.is-word.is-long { font-size: 30px; }
.rp-kind { margin-top: 6px; font-size: 17px; font-weight: 800; }
.rp-year { margin-top: 2px; font-size: 12px; font-weight: 600; color: #96999d; }

.rp-strip { width: 100%; padding: 0 12px 12px; box-sizing: border-box; }
.rp-strip svg { display: block; width: 100%; height: 46px; }


.rp-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.rp-when { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-3); margin-top: 2px; line-height: 1.4; }
.rp-when b { color: var(--text-2); font-weight: 600; order: -1; }
.rp-time { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; margin-top: 7px; }
.rp-time i { display: block; height: 100%; border-radius: 2px; background: var(--brand-gradient); }


.rp-cover.is-locked .rp-mid, .rp-cover.is-locked .rp-strip { opacity: .35; filter: saturate(.3); }
.rp-lock { position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rp-lock svg { width: 22px; height: 22px; fill: none; stroke: #e8a93c; stroke-width: 1.8; }

.rp-cover.is-soon { cursor: default; }
.rp-cover.is-soon:hover { transform: none; box-shadow: 0 0 0 1px rgba(168, 198, 230, .14); }
.rp-cover.is-soon .rp-num { background: none; }
.rp-cover.is-soon .rp-kind { color: #8c8f93; }


.rp-art {
    position: absolute; left: 0; right: 0; bottom: 0; top: 34px; z-index: -1; overflow: hidden; --rc-art-pos: center top;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%);
    mask-image: linear-gradient(180deg, transparent 0, #000 16%);
}
.rp-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 19, .2) 0%, rgba(10, 14, 19, .05) 24%, rgba(10, 14, 19, .15) 42%, rgba(14, 19, 24, .88) 70%, #0e1318 100%); }
.rp-cover.has-art .rp-mid { justify-content: flex-end; padding-bottom: 14px; }
.rp-cover.has-art .rp-num { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.rp-cover.has-art .rp-kind, .rp-cover.has-art .rp-year { text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.rp-cover.is-locked .rp-art { filter: grayscale(.85) brightness(.55); }
.rp-cover.is-soon::before { background: var(--w-tile, #1b2027); }
.rp-cover.is-soon .rp-num { color: #5f646a; }

.rp-more { display: flex; align-items: center; gap: 7px; margin-top: 9px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--text-3); text-align: left; cursor: pointer; }
.rp-more:hover { color: var(--text-2); }
.rp-note { margin: 18px 0 0; font-size: 13px; color: var(--text-3); text-align: center; }


@media (max-width: 560px) {
    .rp-scrim { align-items: flex-end; padding: 0; }
    .rp-sheet, .rp-sheet:focus-visible { border-radius: 18px 18px 0 0; }
    .rp-sheet { padding: 12px 16px 22px; }
    .rp-sheet::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 12px; }
    .rp-covers { gap: 12px; }
    .rp-num { font-size: 46px; }
    .rp-num.is-word { font-size: 28px; }
    .rp-num.is-word.is-long { font-size: 22px; }
    .rp-covers.is-one { grid-template-columns: minmax(0, 170px); }
}
@media (prefers-reduced-motion: reduce) {
    .rp-cover { transition: none; }
    .rp-cover:hover { transform: none; }
}


#followingView { width: 100%; max-width: none; margin: 0; }
.fx-page { container-type: inline-size; padding: 14px 0 72px; }
.fx-page :focus-visible,
.fx-cardwrap :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fx-av {
    display: block; flex-shrink: 0; border-radius: 50%; object-fit: cover;
    background-color: var(--surface-2);
}
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-link { color: var(--text); font-weight: 600; text-decoration: none; }
.fx-link:hover { color: var(--accent); }
.fx-tally { display: inline-flex; align-items: center; gap: 10px; }
.fx-tally span { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-tally img { width: 16px; height: 16px; object-fit: contain; }
.fx-tag {
    display: inline-block; margin-left: 6px; padding: 1px 8px; vertical-align: 1px;
    border-radius: var(--radius-full); background: var(--surface-2);
    color: var(--text-2); font-size: 11.5px; font-weight: 600; line-height: 1.6;
}
.fx-seal { display: inline-block; vertical-align: middle; line-height: 1.3; }


.fx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-5); align-items: start; }
.fx-rail { display: flex; flex-direction: column; gap: var(--space-5); }
.fx-rail:empty { display: none; }
.fx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.fx-head h1 { margin: 0; font-size: 32px; line-height: 1.15; }
.fx-head p { margin: 6px 0 0; color: var(--text-3); font-size: 14px; }
.fx-page a.btn { text-decoration: none; }

.fx-filters { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.fx-chips { display: flex; gap: 8px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.fx-chips::-webkit-scrollbar { display: none; }
.fx-chips .lb-sort { flex-shrink: 0; white-space: nowrap; font-family: inherit; }
.fx-picker { position: relative; flex-shrink: 0; }
.fx-picker-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px 6px 6px; min-height: 38px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text-2); font-size: 14px;
}
.fx-picker-btn:hover { background: var(--surface-2); border-color: var(--border-hover); color: var(--text); }
.fx-picker-btn svg { color: var(--text-3); }
.fx-picker-all {
    display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: var(--surface-2); color: var(--text-3); font-size: 11px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.fx-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 15;
    width: 230px; max-height: 340px; overflow-y: auto; padding: 6px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-2);
}
.fx-menu[hidden] { display: none; }
.fx-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 7px 8px; border-radius: var(--radius-sm);
    color: var(--text-2); font-size: 13.5px; text-align: left;
}
.fx-menu button > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-menu button:hover { background: var(--surface-2); color: var(--text); }
.fx-menu button[aria-checked="true"] { color: var(--text); font-weight: 600; }
.fx-menu button[aria-checked="true"]::after { content: ""; flex-shrink: 0; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.fx-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--border); }


.fx-day + .fx-day { margin-top: 36px; }
.fx-day-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 0 2px 12px; }
.fx-day-head h2 { margin: 0; color: var(--text); font-size: 17px; font-weight: 700; }
.fx-day-date { color: var(--text-3); font-size: 13px; }
.fx-daytally { display: flex; gap: 16px; margin-left: auto; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fx-daytally b { color: var(--text-2); font-weight: 700; }
.fx-surface {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 4px 0;
}
.fx-item { padding: 16px 18px; }
.fx-item + .fx-item { border-top: 1px solid var(--border); }
.fx-item-moment { padding: 12px; }
.fx-item-moment + .fx-item, .fx-item + .fx-item-moment { border-top-color: transparent; }


.fx-moment {
    position: relative; display: block; height: 150px; overflow: hidden;
    border-radius: var(--radius-md); background: var(--surface-2);
    color: var(--metal-platinum); text-decoration: none;
    --fx-ink: var(--metal-platinum);
    --fx-ink-2: color-mix(in srgb, var(--metal-platinum) 80%, transparent);
}
.fx-moment-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.fx-moment::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
        color-mix(in srgb, black 84%, transparent) 0px,
        color-mix(in srgb, black 66%, transparent) 260px,
        color-mix(in srgb, black 0%, transparent) 540px);
}
.fx-moment-body { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; height: 100%; padding: 0 24px; }
.fx-moment-av { position: relative; flex-shrink: 0; line-height: 0; }
.fx-moment-av > .fx-moment-badge { position: absolute; right: -7px; bottom: -6px; z-index: 3; width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 1px 2px color-mix(in srgb, black 70%, transparent)); }
.fx-moment-text { display: flex; flex-direction: column; min-width: 0; text-shadow: 0 1px 2px color-mix(in srgb, black 55%, transparent); }
.fx-moment-lead { color: var(--fx-ink-2); font-size: 14px; }
.fx-moment-lead b { color: var(--fx-ink); font-weight: 700; }
.fx-moment-game { display: flex; align-items: center; gap: 10px; margin-top: 2px; color: var(--fx-ink); font-size: 24px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.fx-moment-game span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-moment-game .club-first-chip { font-size: 11px; text-shadow: none; }
.fx-moment-data { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; color: var(--fx-ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.fx-moment-data b { color: var(--fx-ink); font-weight: 700; }
.fx-moment-ribbon { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: var(--platinum-gradient); }
.fx-moment.is-100 .fx-moment-ribbon { background: var(--hundred-gradient); }
.fx-moment:hover .fx-moment-game span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.fx-moment-art.has-strip-crop,
.fx-crow-bg.has-strip-crop {
    object-position: var(--strip-pos);
    transform-origin: var(--strip-pos);
    transform: scale(var(--strip-zoom));
}

.fx-moment.is-plain { display: flex; align-items: center; background: var(--surface-2); --fx-ink: var(--text); --fx-ink-2: var(--text-2); }
.fx-moment.is-plain::before { content: none; }
.fx-moment.is-plain .fx-moment-icon { flex-shrink: 0; padding-left: 24px; line-height: 0; }
.fx-moment.is-plain .fx-icon.is-square { width: 104px; height: 104px; border-radius: var(--radius-md); }
.fx-moment.is-plain .fx-icon.is-wide { width: 189px; border-radius: var(--radius-md); }
.fx-moment.is-plain .fx-moment-body { flex: 1; min-width: 0; padding-left: 20px; }
.fx-moment.is-plain .fx-moment-text { text-shadow: none; }


.fx-row { display: grid; grid-template-columns: 32px 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.fx-row > a { line-height: 0; }

.fx-tslot { display: grid; place-items: center; width: 72px; height: 40px; }
.fx-icon { display: block; border-radius: var(--radius-sm); }
.fx-icon.is-wide { width: 72px; height: auto; aspect-ratio: 256 / 141; }
.fx-icon.is-square { width: 40px; height: 40px; }
.fx-tslot-tier img { width: 34px; height: 34px; object-fit: contain; }
.fx-line { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.fx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 5px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.fx-meta b { color: var(--text-2); font-weight: 600; }
.fx-meta-time { display: none; }
.fx-meta.is-time-only { display: none; }
.fx-meta .fx-excerpt { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); }
.fx-meta .star { font-size: 13px; letter-spacing: 1px; }
.fx-sublink { color: var(--text-2); text-decoration: none; }
.fx-sublink:hover { color: var(--accent); }
.fx-metal { display: inline-flex; align-items: center; gap: 5px; }
.fx-metal img { width: 16px; height: 16px; object-fit: contain; }
.fx-end { display: flex; align-items: center; gap: 6px; }
.fx-time { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fx-end .fx-time:last-child { padding-right: 6px; }
.fx-chev {
    display: grid; place-items: center; width: 32px; height: 32px;
    border-radius: var(--radius-sm); color: var(--text-3);
}
.fx-chev:hover { background: var(--surface-2); color: var(--text); }
.fx-chev svg { transition: transform 160ms ease-out; }
.fx-chev[aria-expanded="true"] svg { transform: rotate(180deg); }
.fx-chev[aria-expanded="true"] { color: var(--text); }


.fx-drawer {
    display: grid; grid-template-rows: 0fr; visibility: hidden;
    transition: grid-template-rows 160ms ease-out, visibility 0s linear 160ms;
}
.fx-drawer.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 160ms ease-out, visibility 0s; }
.fx-drawer-in { min-height: 0; overflow: hidden; }
.fx-tlist { list-style: none; margin: 12px 0 0 calc(32px + 72px + 28px); padding: 0; }
.fx-tlist-note { padding: 10px 0; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }
.fx-retry { font: inherit; color: var(--accent); }
.fx-tro {
    display: grid; grid-template-columns: 22px minmax(0, 1fr) 76px 48px 44px; gap: 12px; align-items: center;
    padding: 9px 0; border-top: 1px solid var(--border);
}
.fx-tro img { width: 22px; height: 22px; object-fit: contain; }
.fx-tro-main { min-width: 0; }
.fx-tro-name { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-tro-desc { display: block; margin-top: 1px; color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fx-tro .trophy-rarity-tier { display: block; width: auto; }
.fx-tro .trophy-rarity { width: auto; font-size: 13px; font-weight: 600; }
.fx-tro-when { display: none; }
.fx-rarest-pct { font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-tro-time { color: var(--text-3); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
    .fx-drawer, .fx-drawer.is-open, .fx-chev svg { transition: none; }
}


.fx-gstack { position: relative; display: block; width: 72px; height: 40px; }
.fx-gstack img {
    position: absolute; top: 0; width: 40px; height: 40px; object-fit: cover;
    border-radius: var(--radius-sm); box-shadow: 0 0 0 2px var(--surface);
}
.fx-gstack img:nth-child(1) { left: 0; z-index: 3; }
.fx-gstack img:nth-child(2) { left: 16px; z-index: 2; }
.fx-gstack img:nth-child(3) { left: 32px; z-index: 1; }
.fx-gnames { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fx-glist { list-style: none; margin: 12px 0 0 calc(32px + 72px + 28px); padding: 0; }
.fx-gitem { border-top: 1px solid var(--border); }
.fx-grev {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
    padding: 10px 6px; margin: 0 -6px; border-radius: var(--radius-sm);
    color: inherit; text-decoration: none;
}
.fx-grev:hover { background: var(--surface-2); }
.fx-grev:hover .fx-grev-name { color: var(--accent); }
.fx-grev > img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }
.fx-grev-main { min-width: 0; }
.fx-grev-name { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-grev .fx-meta { margin-top: 3px; }
.fx-grev-when { display: none; }

.fx-foot { margin-top: 32px; }
.fx-foot .pagination { margin: 0; }
.fx-foot-note { margin: 14px 0 0; text-align: center; color: var(--text-3); font-size: 13px; }


.fx-state { padding: 40px 24px; }
.fx-state p { margin: 0 auto; max-width: 440px; line-height: 1.55; color: var(--text-3); }
.fx-state .btn { margin-top: 18px; }


.fx-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fx-panel-head .panel-title { margin: 0; }
.fx-panel-head > span { color: var(--text-3); font-size: 12.5px; }
.fx-stand { width: 100%; border-collapse: collapse; font-size: 13px; }
.fx-stand th { padding: 0 6px 8px; color: var(--text-3); font-size: 11.5px; font-weight: 600; text-align: right; }
.fx-stand th:nth-child(2) { text-align: left; }
.fx-stand td { padding: 7px 6px; color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.fx-stand td:first-child { width: 22px; padding-left: 8px; color: var(--text-3); text-align: left; }
.fx-stand td:nth-child(2) { text-align: left; }
.fx-stand td:last-child { padding-right: 8px; color: var(--text); font-weight: 700; }
.fx-stand td.is-zero { color: var(--text-3); font-weight: 400; }
.fx-stand-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-stand-who a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.fx-stand tr.is-me td { background: var(--surface-2); }
.fx-stand tr.is-me td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--accent); font-weight: 700; }
.fx-stand tr.is-me td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.fx-stand-you { color: var(--text-3); font-size: 11.5px; font-weight: 600; }
.fx-rail-foot { display: flex; justify-content: flex-end; gap: 10px; margin: 12px 8px 0; padding-top: 10px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; }
.fx-rail-empty { margin: 10px 8px 0; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }

.fx-games { display: flex; flex-direction: column; gap: 6px; }

.fx-game {
    display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start;
    padding: 10px 8px; border-radius: var(--radius-md); color: inherit; text-decoration: none;
}
.fx-game:hover { background: var(--surface-2); }
.fx-game .fx-tslot { margin-top: 2px; }
.fx-game-body { display: block; min-width: 0; }
.fx-game-top { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.fx-game-name { min-width: 0; color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.fx-stack { display: flex; flex-shrink: 0; margin-left: auto; }
.fx-stack .ff-av + .ff-av { margin-left: -5px; }
.fx-game-line { display: block; margin-top: 4px; color: var(--text-3); font-size: 12px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.fx-game-line b { color: var(--text-2); font-weight: 600; }
.fx-vs { display: grid; gap: 5px; margin-top: 8px; }
.fx-vs-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.fx-vs-who { color: var(--text-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-vs-bar { display: block; height: 4px; border-radius: var(--radius-full); background: var(--surface-3); overflow: hidden; }
.fx-vs-bar i { display: block; height: 100%; border-radius: inherit; background: var(--text-3); }
.fx-vs-n { color: var(--text-2); font-size: 11px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fx-vs-row.is-you .fx-vs-who { color: var(--text-2); font-weight: 600; }
.fx-vs-row.is-you .fx-vs-bar i { background: var(--accent); }
.fx-vs-row.is-you .fx-vs-n { color: var(--text); }


.ff-av .fx-av { width: 30px; height: 30px; }
.fx-row .ff-av .fx-av { width: 32px; height: 32px; }
.fx-moment-av .ff-av .fx-av { width: 40px; height: 40px; box-shadow: 0 0 0 2px color-mix(in srgb, black 40%, transparent); }
.fx-moment.is-plain .fx-moment-av .ff-av .fx-av { box-shadow: none; }
.fx-stand-who .ff-av .fx-av { width: 22px; height: 22px; }
.fx-stack .ff-av .fx-av { width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--surface); }
.fx-game:hover .fx-stack .ff-av .fx-av { box-shadow: 0 0 0 2px var(--surface-2); }
.fx-menu .ff-av .fx-av { width: 22px; height: 22px; }
.fx-picker-btn .ff-av .fx-av { width: 24px; height: 24px; }


.fx-sk { display: block; background: var(--surface-2); border-radius: var(--radius-sm); }
.fx-sk-c { border-radius: 50%; }
.fx-sk-lines { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fx-sk-row { display: grid; grid-template-columns: 32px 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.fx-sk-crow { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 8px; }


@container (max-width: 760px) {
    .fx-cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .fx-head { align-items: flex-start; margin-bottom: 18px; }
    .fx-head h1 { font-size: 26px; }
    .fx-head p { font-size: 13.5px; }
    .fx-filters { flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
    .fx-chips { flex: 1 1 100%; }
    .fx-chips .lb-sort { padding: 7px 13px; font-size: 13.5px; }
    
    .fx-menu { left: 0; right: auto; width: min(230px, 100cqw); }
    .fx-day + .fx-day { margin-top: 30px; }
    .fx-daytally { flex: 1 1 100%; margin-left: 0; gap: 14px; }
    .fx-item { padding: 14px 12px; }
    .fx-item-moment { padding: 10px; }
    
    .fx-moment { height: auto; min-height: 120px; }
    .fx-moment-body { min-height: 120px; padding-top: 14px; padding-bottom: 16px; }
    .fx-moment-game { flex-wrap: wrap; row-gap: 4px; }
    .fx-moment-game span:first-child { white-space: normal; }
    .fx-moment::before {
        background: linear-gradient(90deg,
            color-mix(in srgb, black 84%, transparent) 0px,
            color-mix(in srgb, black 62%, transparent) 220px,
            color-mix(in srgb, black 30%, transparent) 340px);
    }
    .fx-moment-body { gap: 12px; padding: 0 14px; }
    .fx-moment-av .ff-av .fx-av { width: 36px; height: 36px; }
    .fx-moment-av > .fx-moment-badge { width: 19px; height: 19px; }
    .fx-moment-lead { font-size: 13px; }
    .fx-moment-game { font-size: 19px; gap: 8px; }
    .fx-moment-data { gap: 2px 14px; margin-top: 8px; font-size: 12.5px; }
    .fx-moment.is-plain .fx-moment-icon { padding-left: 14px; }
    .fx-moment.is-plain .fx-icon.is-square { width: 60px; height: 60px; }
    .fx-moment.is-plain .fx-icon.is-wide { width: 96px; }
    .fx-moment.is-plain .fx-moment-body { padding-left: 12px; padding-right: 12px; gap: 10px; }
    .fx-moment.is-plain .fx-moment-av .ff-av .fx-av { width: 30px; height: 30px; }
    .fx-moment.is-plain .fx-moment-av > .fx-moment-badge { width: 16px; height: 16px; right: -5px; bottom: -4px; }
    
    .fx-row { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
    .fx-row > :nth-child(1) { grid-area: 1 / 1; justify-self: start; align-self: start; margin: 22px 0 0 -4px; z-index: 1; }
    .fx-row > :nth-child(2) { grid-area: 1 / 1; }
    .fx-row > :nth-child(3) { grid-area: 1 / 2; }
    .fx-row > :nth-child(4) { grid-area: 1 / 3; margin: -6px -6px 0 0; }
    .fx-row .ff-av .fx-av { width: 24px; height: 24px; box-shadow: 0 0 0 2px var(--surface); }
    .fx-row .fx-tslot { width: 60px; height: 33px; margin: 2px 0 12px 8px; }
    .fx-row .fx-icon.is-wide { width: 60px; }
    .fx-row .fx-icon.is-square { width: 33px; height: 33px; }
    .fx-tslot-tier img { width: 28px; height: 28px; }
    .fx-line { font-size: 13.5px; }
    .fx-meta { gap: 4px 12px; }
    .fx-meta-time { display: inline; }
    .fx-meta.is-time-only { display: flex; }
    .fx-end .fx-time { display: none; }
    .fx-end:not(:has(button)) { display: none; }
    .fx-tlist { margin-left: 0; }
    
    .fx-tro { grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "icon main pct" "icon main tier"; gap: 2px 10px; }
    .fx-tro > img { grid-area: icon; }
    .fx-tro-main { grid-area: main; }
    .fx-tro .trophy-rarity { grid-area: pct; align-self: end; }
    .fx-tro .trophy-rarity-tier { grid-area: tier; align-self: start; font-size: 9.5px; }
    .fx-tro img { width: 20px; height: 20px; }
    .fx-tro-time { display: none; }
    .fx-tro-when { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
    
    .fx-row .fx-gstack { width: 60px; height: 33px; }
    .fx-row .fx-gstack img { width: 33px; height: 33px; }
    .fx-row .fx-gstack img:nth-child(2) { left: 13px; }
    .fx-row .fx-gstack img:nth-child(3) { left: 27px; }
    .fx-glist { margin-left: 0; }
    .fx-grev { grid-template-columns: 33px minmax(0, 1fr); gap: 10px; }
    .fx-grev > img { width: 33px; height: 33px; }
    .fx-grev > .fx-tro-time { display: none; }
    .fx-grev-when { display: inline; }
    .fx-sk-row { grid-template-columns: 28px 56px minmax(0, 1fr); gap: 10px; }
}


#followingList { display: block; }
.fx-cardwrap .fx-panel-head { margin-bottom: 10px; }
.fx-cardlist { display: flex; flex-direction: column; gap: 6px; }
.fx-crow { align-items: center; padding: 9px 8px; color: inherit; text-decoration: none; }
.fx-crow .ff-body { display: block; }
.fx-crow .ff-text { display: block; color: var(--text-3); }
.fx-crow .ff-text b { color: var(--text-2); font-weight: 600; }
.fx-cmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 10px; margin: 3px 0 0; color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.fx-cmeta .fx-tally { gap: 8px; }
.fx-cmeta .fx-tally img { width: 14px; height: 14px; }
.fx-cmeta .fx-tally span { font-size: 11.5px; }
.fx-cmeta .club-first-chip { font-size: 9.5px; padding: 1.5px 6px; }
.fx-cmeta .ff-time { margin: 0; color: inherit; font-size: inherit; }

.fx-crow-art { position: relative; overflow: hidden; min-height: 56px; background: var(--surface-2); }
.fx-crow-art:hover { background: var(--surface-2); }
.fx-crow-art > img.fx-crow-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.fx-crow-art::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg,
        color-mix(in srgb, black 80%, transparent) 0px,
        color-mix(in srgb, black 62%, transparent) 150px,
        color-mix(in srgb, black 10%, transparent) 300px);
}
.fx-crow-art > .ff-av, .fx-crow-art > .ff-body { position: relative; z-index: 2; }
.fx-crow-art .ff-text { color: color-mix(in srgb, var(--metal-platinum) 82%, transparent); text-shadow: 0 1px 2px color-mix(in srgb, black 55%, transparent); }
.fx-crow-art .ff-text .ff-user, .fx-crow-art .ff-text b { color: var(--metal-platinum); }
.fx-crow-art .fx-cmeta { color: color-mix(in srgb, var(--metal-platinum) 72%, transparent); }
.fx-crow-art:hover .ff-text b { text-decoration: underline; text-underline-offset: 2px; }
.fx-cardfoot { display: flex; width: 100%; box-sizing: border-box; margin-top: 12px; font-family: inherit; text-decoration: none; }
.fx-card-state { padding: 18px 8px; color: var(--text-3); }
.fx-card-state .btn { margin-top: 12px; }

.fx-cslot { flex-shrink: 0; align-self: center; margin-left: auto; }
.fx-cslot .fx-tslot { width: 44px; height: 24px; }
.fx-cslot .fx-icon.is-wide { width: 44px; }
.fx-cslot .fx-icon.is-square { width: 24px; height: 24px; }


.review-row.is-linked-review,
#gameView #gameReviews .review-row.is-linked-review {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    transition: background-color 200ms ease-out;
}


.ra-scrim { position: fixed; inset: 0; z-index: 204; background: rgba(4, 6, 10, 0.62); display: flex; align-items: center; justify-content: center; padding: 24px; overscroll-behavior: contain; }
:where(html[data-theme="light"]) .ra-scrim { background: rgba(5, 7, 12, .62); }
html[data-theme="light"] .ra-scrim { background: rgba(23, 32, 51, .38); }
.ra-dialog {
    width: min(620px, 100%); max-height: 100%; display: grid; grid-template-columns: 270px 1fr; overflow: hidden; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    animation: ra-in .32s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes ra-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.ra-stage {
    position: relative; display: grid; place-items: center; padding: 40px 0 38px; isolation: isolate;
    background: #080c11;
}


.ra-deck { position: relative; width: 150px; aspect-ratio: 9 / 16; }
.ra-back {
    position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: #1b2027; --rc-art-pos: center;
    box-shadow: 0 0 0 1px rgba(168, 198, 230, .14), 0 10px 24px rgba(0, 0, 0, .4);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1) .12s;
}
.ra-back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 19, 24, .35), rgba(14, 19, 24, .8)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ra-back.is-l { transform: rotate(-8deg) translate(-34px, 8px); }
.ra-back.is-r { transform: rotate(8deg) translate(34px, 8px); }
.ra-deck.is-folded .ra-back { transform: none; }


.ra-cover {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
    border-radius: 12px; overflow: hidden; isolation: isolate; background: #0e1318; color: #eff3f7;
    font-family: "Public Sans Recap", "Public Sans", Arial, sans-serif;
    box-shadow: 0 0 0 1px rgba(168, 198, 230, .2), 0 16px 34px rgba(0, 0, 0, .5);
}
.ra-cover .rp-art {
    position: absolute; left: 0; right: 0; bottom: 0; top: 26px; z-index: -1; overflow: hidden; --rc-art-pos: center top;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%);
}
.ra-cover .rp-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 19, .2) 0%, rgba(10, 14, 19, .05) 24%, rgba(10, 14, 19, .15) 42%, rgba(14, 19, 24, .88) 70%, #0e1318 100%); }
.ra-cover .rp-logo { height: 10px; margin-top: 12px; }
.ra-cover .rp-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 10px; text-align: center; }
.ra-cover .rp-num {
    font-size: 44px; font-weight: 900; line-height: .95; letter-spacing: -.02em;
    background: linear-gradient(90deg, #4e9cbe, #86d7ec 55%, #c4ecf8); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
}
.ra-cover .rp-kind { margin-top: 4px; font-size: 13px; font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.ra-cover .rp-strip { width: 100%; padding: 0 10px 10px; box-sizing: border-box; }
.ra-cover .rp-strip svg { display: block; width: 100%; height: 34px; }
.ra-cover .rp-strip rect { transform-box: fill-box; transform-origin: bottom; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ra-deck.is-folded .rp-strip rect { transform: scaleY(0); }


.ra-copy { display: flex; flex-direction: column; justify-content: center; padding: 30px 28px 28px; min-width: 0; }
.ra-copy h2 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--text); }
.ra-copy h2 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ra-copy > p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }
.ra-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ra-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 10px; border: 0; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }

.ra-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 10px; }
.ra-btn.is-open { background: var(--brand-gradient); color: #071419; }
.ra-btn.is-open:hover { filter: brightness(1.08); }
.ra-btn.is-later { background: transparent; border: 1px solid var(--border); color: var(--text-2); }
.ra-btn.is-later:hover { color: var(--text); }


@media (max-width: 560px) {
    .ra-scrim { align-items: flex-end; padding: 0; }
    .ra-dialog { grid-template-columns: 1fr; border-radius: 18px 18px 0 0; border-bottom: 0; animation-name: ra-up; }
    .ra-stage { padding: 34px 0 30px; }
    .ra-stage::before { content: ""; position: absolute; top: 10px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
    .ra-deck { width: 128px; }
    .ra-cover .rp-num { font-size: 38px; }
    .ra-copy { padding: 22px 20px 24px; text-align: center; }
    .ra-copy h2 { font-size: 22px; }
    .ra-actions { flex-direction: column; }
    .ra-btn { width: 100%; }
}
@keyframes ra-up { from { transform: translateY(40px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .ra-dialog { animation: none; }
    .ra-back, .ra-cover .rp-strip rect { transition: none; }
}


@media (max-width: 480px) {
    #searchInput { flex: 1 1 0; min-width: 0; max-width: none; }
    .list-head-right { display: contents; }
    #paginationTop { flex: 1 0 100%; justify-content: flex-end; flex-wrap: nowrap; gap: 4px; }
    #paginationTop:empty { display: none; }
    #paginationTop .page-btn { min-width: 30px; padding: 0 6px; }
    .lb-name-row:has(.plate-premium) { flex-wrap: wrap; gap: 4px 7px; }
    .lb-name-row:has(.plate-premium) .plate-premium,
    .lb-name-row:has(.plate-premium) .lb-flag { margin-left: 0; }
}


#homeFeed a.feed-item { border-radius: 0; }


.home-toggle[hidden] { display: none; }
.home-toggle-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


#homeFeed .fx-cardlist { gap: 0; }
#homeFeed .fx-crow { border-radius: 0; }
#homeFeed .fx-crow + .fx-crow { border-top: 1px solid rgba(40, 45, 51, 0.6); }
:where(html[data-theme="light"]) #homeFeed .fx-crow + .fx-crow { border-top: 1px solid rgba(36, 48, 79, 0.6); }


.home-feed-foot {
    display: block; margin: 0 -6px -4px; padding: 11px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-2); font-size: 13px; font-weight: 600; text-align: center; text-decoration: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.home-feed-foot:hover { background: var(--surface-2); color: var(--text); }
.home-feed-foot:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }


#homeFeed .empty-state.home-feed-quiet { border: 0; background: transparent; margin: 0; padding: 34px 20px; line-height: 1.6; }
#homeFeed .empty-state.home-feed-quiet .btn { margin-top: 12px; }


.toast.toast-refused { border-left-color: var(--danger); color: var(--text); }


.pm-wrap { width:min(1120px, 100%); margin:0 auto; }
.pm-intro { display:grid; grid-template-columns:minmax(0, 1fr) 365px; align-items:center; gap:70px; padding-top:66px; padding-bottom:48px; }

.pm-title { display:flex; align-items:baseline; flex-wrap:wrap; gap:0 .28em; color:var(--text); font-size:clamp(36px, 4.3vw, 60px); line-height:1.06; letter-spacing:-.045em; margin:0 0 22px; font-weight:700; max-width:620px; }
.pm-title-gold { color:var(--gold); }
.pm-heading-logo { position:relative; display:inline-block; width:3.48em; height:1em; vertical-align:-.14em; }
.pm-title .pm-heading-logo { vertical-align:baseline; transform:translateY(.12em); }
.pm-heading-logo img { display:block; width:100%; height:100%; object-fit:contain; }
html[data-theme="light"] .pm-heading-logo img { visibility:hidden; }
html[data-theme="light"] .pm-heading-logo::after { content:""; position:absolute; inset:0; background:var(--brand-gradient); mask:url('/images/logo.png') center / contain no-repeat; -webkit-mask:url('/images/logo.png') center / contain no-repeat; }
.pm-lead { max-width:500px; color:var(--text); opacity:.86; font-size:17px; line-height:1.7; margin:0 0 24px; }
.pm-intro-links { display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; }
.pm-text-link { color:var(--accent); font-weight:600; font-size:13px; text-decoration:none; }
.pm-text-link:hover { text-decoration:underline; }
.pm-support { margin:22px 0 0; color:var(--text-2); font-size:14px; line-height:1.6; }

.pm-price-card { padding:26px; border-radius:var(--radius-lg); background:var(--surface); border:1px solid var(--border); }
.pm-price-card .btn { width:100%; min-height:45px; font-size:13px; justify-content:center; }
.pm-soon h2 { margin:0 0 10px; font-size:20px; font-weight:600; color:var(--text); }
.pm-soon > p { margin:0 0 20px; color:var(--text-2); font-size:14px; line-height:1.65; }
.pm-soon .btn { margin-top:20px; }

.pm-soon > p.pm-soon-status { margin:0 0 12px; color:var(--success); font-weight:600; }
.pm-price-list { margin:0; border-top:1px solid var(--border); }
.pm-price-list > div { display:flex; justify-content:space-between; align-items:baseline; padding:14px 0; border-bottom:1px solid var(--border); }
.pm-price-list dt { color:var(--text-2); font-size:14px; }
.pm-price-list dd { margin:0; color:var(--text); font-size:16px; font-weight:600; }
.pm-section-head { margin:0 0 23px; }
.pm-section-head h2 { color:var(--text); font-size:26px; line-height:1.25; letter-spacing:-.025em; margin:0 0 9px; }
.pm-section-head p { margin:0; color:var(--text-2); font-size:14px; line-height:1.7; }

.pm-panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px; margin-bottom:20px; }
.pm-panel h3 { margin:0 0 8px; font-size:18px; line-height:1.4; color:var(--text); }
.pm-panel p, .pm-panel dd { color:var(--text-2); font-size:14px; line-height:1.7; margin:0; }
.pm-panel .pm-panel-label { margin:0 0 14px; font-size:13px; color:var(--text-2); }
.pm-profile { min-width:0; }
.pm-profile-frame { width:100%; overflow:hidden; }
.pm-profile-frame iframe { display:block; border:0; width:100%; height:310px; pointer-events:none; }
.pm-profile-caption { display:grid; grid-template-columns:1fr 1.5fr; gap:40px; padding-top:22px; }
.pm-profile-caption small { display:block; margin-top:8px; color:var(--text-2); font-size:13px; line-height:1.6; }
.pm-team { display:grid; grid-template-columns:1fr 1.5fr; gap:0 40px; }
.pm-team dl { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:0; }
.pm-team dt { font-size:15px; font-weight:600; color:var(--text); margin:0 0 6px; }
.pm-panel .pm-team-note { grid-column:2; margin-top:18px; font-size:13px; }
.pm-panel.pm-more h3 { margin-bottom:18px; }
.pm-more-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px 40px; }
.pm-more-item { display:grid; grid-template-columns:22px minmax(0,1fr); gap:14px; align-items:start; }
.pm-more-item svg { width:22px; height:22px; color:var(--accent); stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; margin-top:1px; }
.pm-more-item h4 { margin:0 0 4px; font-size:15px; color:var(--text); }
.pm-comparison { padding-top:65px; }
.pm-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:14px; }
.pm-table th { text-align:left; color:var(--text); font-size:13px; padding:18px 20px; background:var(--surface); }
.pm-table th:first-child { width:40%; border-radius:9px 0 0 0; }
.pm-table th:last-child { border-radius:0 9px 0 0; }
.pm-table td { padding:16px 20px; border-bottom:1px solid var(--border); color:var(--text-2); vertical-align:top; line-height:1.6; overflow-wrap:normal; }
.pm-table td:last-child { background:color-mix(in srgb, var(--accent) 4%, var(--bg)); color:var(--text); }
.pm-table td:first-child { font-weight:500; color:var(--text); }
.pm-table .pm-group td { font-size:13px; color:var(--text); background:var(--surface); padding:10px 20px; font-weight:600; }
.pm-table small { display:block; font-size:12px; color:var(--text-2); font-weight:400; margin-top:3px; line-height:1.55; }
.pm-faq { padding-top:60px; padding-bottom:50px; display:grid; grid-template-columns:1fr 1.5fr; gap:70px; }
.pm-faq details { border-bottom:1px solid var(--border); padding:17px 0; }
.pm-faq details:first-child { padding-top:0; }
.pm-faq summary { color:var(--text); font-size:15px; font-weight:600; cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:15px; line-height:1.6; }
.pm-faq summary::after { content:"+"; color:var(--accent); font-size:19px; line-height:1; }
.pm-faq details[open] summary::after { content:"−"; }
.pm-faq details p { font-size:14px; color:var(--text-2); line-height:1.8; margin:12px 25px 0 0; }

.pm-acct-rows { border-top:1px solid var(--border); margin:4px 0 22px; }
.pm-acct-row { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:56px; padding:10px 0; border-bottom:1px solid var(--border); }
.pm-acct-value { font-size:14px; font-weight:600; color:var(--text); text-align:right; }
.pm-acct-list { margin:0 0 22px; }
.pm-acct-btn { text-decoration:none; font-weight:600; }
.pm-acct-note { margin:16px 0 0; }
@media(max-width:1050px) { .pm-intro { gap:35px; grid-template-columns:minmax(0,1fr) 330px; } }
@media(max-width:760px) {
  .pm-wrap { width:100%; }
  .pm-intro { grid-template-columns:1fr; gap:28px; padding-top:35px; padding-bottom:35px; }
  .pm-title { font-size:clamp(30px,9.7vw,39px); max-width:450px; margin-bottom:18px; }
  .pm-lead { font-size:15px; margin-bottom:18px; line-height:1.7; }
  .pm-price-card { padding:22px; }
  .pm-section-head h2 { font-size:23px; }
  .pm-section-head p { font-size:13px; }
  .pm-panel { padding:18px 16px; }
  
  .pm-panel.pm-profile { padding:0; background:none; border:0; }
  .pm-profile-caption, .pm-team { grid-template-columns:1fr; gap:10px; }
  .pm-team dl { grid-template-columns:1fr; gap:16px; margin-top:12px; }
  .pm-panel .pm-team-note { grid-column:auto; }
  .pm-more-grid { grid-template-columns:1fr; gap:20px; }
  .pm-comparison { padding-top:40px; }
  .pm-table { font-size:13px; }
  .pm-table th { font-size:12px; }
  .pm-table th:first-child { width:37%; }
  .pm-table th,.pm-table td { padding:13px 9px; }
  .pm-table .pm-group td { padding:10px 9px; }
  .pm-faq { grid-template-columns:1fr; gap:10px; padding-top:40px; padding-bottom:35px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

#premiumView .btn{text-decoration:none;font-weight:600}
#premiumView a:focus-visible,#premiumView summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#premiumView .pm-wrap{padding-bottom:10px}


#seriesView { width: 100%; min-width: 0; }


#seriesView .game-page-hero { min-height: var(--profile-pill-height); }
#seriesView .game-page-hero .gd-hero-main { padding-bottom: 31px; }
#seriesView .gp-hero { display: flex; flex-direction: column; }
#seriesView .gp-hero .gd-hero-main { flex: 1 1 auto; min-height: 0; }
#seriesView .gp-hero.has-top .gd-hero-main { padding-top: 14px; }
#seriesView .gp-hero .gd-trophy-dock { position: relative; flex: none; }
@media (max-width: 760px) {
    #seriesView .gp-hero,
    #seriesView .game-page-hero.gp-hero { min-height: 0; }
    #seriesView .gp-hero .gd-hero-main,
    #seriesView .game-page-hero.gp-hero .gd-hero-main { padding: 22px 20px 24px; }
    #seriesView .gp-hero.has-top .gd-hero-main { padding-top: 12px; }
    #seriesView .game-community-dock { grid-template-columns: repeat(2, 1fr); }
    #seriesView .game-community-dock.is-even .game-community-stat:first-child { grid-column: auto; }
    #seriesView .game-community-dock.is-even .gd-trophy-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.07); }
    #seriesView .game-community-dock.is-even .gd-trophy-stat:nth-child(odd) { border-left: 0; }
    #seriesView .game-community-dock.is-even .gd-trophy-stat:nth-child(-n+2) { border-top: 0; }
    html[data-theme="light"] #seriesView .game-community-dock.is-even .gd-trophy-stat { border-color: rgba(23,32,58,.12); }
}

.sr-hero .gd-title-row h1 { text-shadow: none; }
.sr-hero .game-hero-release { margin-top: 10px; font-size: 14px; text-shadow: none; }
.sr-hero .gd-hero-main { align-items: flex-end; }


.sr-pct { color: var(--text); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sr-card .club-seal, #seriesView .club-seal, .fx-seal .club-seal { flex: none; }
.sr-near .platform-badge, .sr-row-chips .platform-badge { margin-bottom: 0; }
.sr-row-chips a.platform-badge { text-decoration: none; }
.sr-row-chips a.platform-badge:hover { filter: brightness(1.12); }
html[data-theme="light"] .sr-row-chips a.platform-badge:hover { filter: brightness(.92); }
.sr-row-chips a.platform-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


.sr-card .sr-name { display: block; margin: 0 4px; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.sr-card .sr-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr-card .sr-name:focus-visible, .sr-all:focus-visible, .sr-near:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-count { margin: 4px 4px 0; color: var(--text-muted); font-size: 12px; }
.sr-count + .sr-count { margin-top: 2px; }
.sr-you-line { display: flex; align-items: center; gap: 7px; margin: 14px 4px 0; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.sr-you-line img { width: 16px; height: 16px; object-fit: contain; }
.sr-all { display: flex; width: 100%; box-sizing: border-box; margin-top: 18px; text-decoration: none; }
.sr-near-list { margin-top: 14px; }
.sr-near-list .sr-near { padding-left: 4px; padding-right: 4px; }
.sr-near .gv-info { flex: 1; min-width: 0; gap: 4px; }
.sr-near-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }


.sr-page { width: 100%; min-width: 0; }
.sr-page .cat-breadcrumb { margin-bottom: 14px; }
.sr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding: 28px 0 64px; }
.sr-main { min-width: 0; }
.sr-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }


.sr-run { margin: 0 0 40px; padding: 26px 28px 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.sr-run .panel-title { margin: 0 0 22px; }
.sr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 140px)); gap: 14px 24px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.sr-facts > div { min-width: 0; }
.sr-facts dt { margin: 0 0 6px; color: var(--text-3); font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sr-facts dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }


.sr-pano { display: flex; gap: 2px; height: 150px; margin: 0 0 30px; background: var(--surface); }

.sr-sl { position: relative; display: block; flex: 1 1 0; min-width: 0; text-decoration: none; transition: flex-grow 520ms cubic-bezier(.22, .61, .36, 1); }
.sr-sl.is-open { flex-grow: 9; transition-delay: 0ms; }
.sr-sl-in { position: absolute; inset: 0; overflow: hidden; background: var(--surface-2); }
.sr-sl:first-child .sr-sl-in { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.sr-sl:last-child .sr-sl-in { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.sr-sl-grey, .sr-sl-col { position: absolute; inset: 0; background: var(--surface-2); }
.sr-sl-grey img, .sr-sl-col img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sr-sl.no-art .sr-sl-col { background: var(--surface-3); }

.sr-sl-grey img { filter: grayscale(1) brightness(.28); }
html[data-theme="light"] .sr-sl-grey img { filter: grayscale(1); opacity: .3; }
.sr-sl.is-platted .sr-sl-grey { display: none; }

.sr-sl.is-platted .sr-sl-in::before { content: ""; position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 4px; background: var(--platinum-gradient); }
.sr-sl.is-platted .sr-sl-col::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30px; background: linear-gradient(to bottom, rgba(220, 236, 250, .4), rgba(220, 236, 250, 0)); }

html[data-theme="light"] .sr-sl.is-platted .sr-sl-in::before { background: linear-gradient(90deg, #4f7aa3, #9cc0dc 45%, #5d87ae); box-shadow: 0 1px 0 rgba(12, 24, 40, .45); }
html[data-theme="light"] .sr-sl.is-platted .sr-sl-col::after { background: linear-gradient(to bottom, rgba(110, 160, 205, .5), rgba(110, 160, 205, 0)); }

.sr-sl.is-played .sr-sl-col { clip-path: inset(calc(100% - var(--p)) 0 0 0); }
.sr-sl.is-played .sr-sl-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--p); height: 1px; background: rgba(255, 255, 255, .75); }
.sr-sl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; z-index: 1; }

.sr-sl.is-none:focus-visible .sr-sl-grey img, .sr-sl.is-none.is-open .sr-sl-grey img { filter: grayscale(1) brightness(.6); }
html[data-theme="light"] .sr-sl.is-none:focus-visible .sr-sl-grey img, html[data-theme="light"] .sr-sl.is-none.is-open .sr-sl-grey img { filter: grayscale(1); opacity: .65; }

.sr-sl-year { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); color: var(--text-muted); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; transition: opacity 200ms ease; }
.sr-sl-year.is-first { left: 0; transform: none; }
.sr-sl-year.is-last { left: auto; right: 0; transform: none; }
.sr-pano:has(.sr-sl.is-open) .sr-sl-year { opacity: 0; }

.sr-sl-card {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 3px;
    box-sizing: border-box; padding: 30px 12px 12px; text-align: left; pointer-events: none;
    background: linear-gradient(to top, rgba(4, 6, 10, .9) 0%, rgba(4, 6, 10, .72) 55%, rgba(4, 6, 10, 0) 100%);
    opacity: 0; transition: none;
}
.sr-sl.is-open .sr-sl-card { opacity: 1; transition: opacity 260ms ease 340ms; }

@media (hover: hover) {
    .sr-sl:not(.is-open) { cursor: pointer; }
    .sr-sl:hover .sr-sl-col img { filter: brightness(1.15); }
    html[data-theme="light"] .sr-sl:hover .sr-sl-col img { filter: brightness(1.06); }
    .sr-sl.is-none:hover .sr-sl-grey img { filter: grayscale(1) brightness(.6); }
    html[data-theme="light"] .sr-sl.is-none:hover .sr-sl-grey img { filter: grayscale(1); opacity: .65; }
}
.sr-slc-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; }
.sr-slc-line { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sr-slc-year { color: rgba(255, 255, 255, .7); font-size: 12px; font-variant-numeric: tabular-nums; }
.sr-slc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; color: #fff; font-size: 12px; font-weight: 600; }
.sr-slc-status b { font-weight: 700; font-variant-numeric: tabular-nums; }
.sr-slc-status img { width: 16px; height: 16px; flex: none; object-fit: contain; }
.sr-slc-muted { color: rgba(255, 255, 255, .7); font-weight: 500; }
.sr-pano-rows { display: none; }
@media (prefers-reduced-motion: reduce) {
    .sr-sl, .sr-sl.is-open, .sr-sl-year,
    .sr-sl-card, .sr-sl.is-open .sr-sl-card { transition: none; }
}


.sr-seal { position: relative; display: inline-block; flex: none; width: var(--sz); height: var(--sz); vertical-align: middle; outline: none; }
.sr-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.sr-seal { --seal-ghost: #3d444e; --seal-edge: #66707d; --seal-ghost-glyph: #7f8894; }
html[data-theme="light"] .sr-seal { --seal-ghost: #c3cad6; --seal-edge: #7f8999; --seal-ghost-glyph: #6c7686; }
.sr-seal-g .sr-seal-edge { fill: none; stroke: var(--seal-edge); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.sr-seal-g .sr-seal-body { fill: var(--seal-ghost); }
.sr-seal-glyph .tg { stroke: none; }
.sr-seal-g .tg { fill: var(--seal-ghost-glyph); }
.sr-seal.is-hundred .sr-seal-g .sr-seal-glyph path { stroke: var(--seal-ghost-glyph); }
.sr-seal-f { clip-path: inset(calc(100% - var(--f)) 0 0 0); animation: sr-seal-fill 600ms ease-out; }
.sr-seal.is-hundred .sr-seal-f .sr-seal-body { fill: url(#sealG); }
.sr-seal.is-hundred .sr-seal-f path { stroke: #04120c; }
.sr-seal.is-plat .sr-seal-f .sr-seal-body { fill: url(#sealP); }
html[data-theme="light"] .sr-seal.is-plat .sr-seal-f .sr-seal-body { fill: url(#sealPL); }
.sr-seal.is-plat .sr-seal-f .tg { fill: #04120c; }
.sr-seal-halo { z-index: 0; }
.sr-seal-halo .sr-seal-shape { fill: #8aa0b8; }
.sr-seal.is-earned .sr-seal-g { display: none; }
.sr-seal.is-earned.is-plat .sr-seal-halo { filter: drop-shadow(0 0 7px rgba(168, 198, 230, .55)); }
html[data-theme="light"] .sr-seal.is-earned.is-plat .sr-seal-halo { filter: drop-shadow(0 0 6px rgba(63, 108, 153, .35)); }
.sr-seal.is-earned.is-hundred .sr-seal-halo { filter: drop-shadow(0 0 7px rgba(70, 201, 155, .55)); }
html[data-theme="light"] .sr-seal.is-earned.is-hundred .sr-seal-halo { filter: drop-shadow(0 0 6px rgba(18, 138, 96, .35)); }
@keyframes sr-seal-fill { from { clip-path: inset(100% 0 0 0); } }
.sr-seal:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .sr-seal-f { animation: none; } }
.sr-seal-pair { display: inline-flex; align-items: center; gap: 6px; flex: none; }

.sr-seals-wrap { margin: 0 0 30px; }
.sr-seals-head { margin: 0 0 18px; color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.sr-seals { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 0; }
.sr-seal-item { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sr-seal-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sr-seal-text strong { color: var(--text); font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sr-seal-text span { color: var(--text-2); font-size: 13px; }
.sr-seal-text .sr-seal-date { color: var(--text-3); font-size: 12.5px; }
.sr-seals-note { margin: 16px 0 0; color: var(--text-muted); font-size: 13px; }
.sr-you-line .sr-seal-pair { gap: 4px; margin-right: 2px; }
.gcp-head .sr-seal { flex: none; }


.sr-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; min-height: 22px; color: var(--text-2); font-size: 13.5px; }
.sr-cap-lead { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.sr-cap-lead b { font-weight: 700; }
.sr-cap-lead img { width: 16px; height: 16px; object-fit: contain; }
.sr-cap-right { margin-left: auto; }
.sr-cap-muted { color: var(--text-muted); font-weight: 500; }


.sr-controls { display: flex; flex-direction: column; gap: 16px; margin: 0 0 24px; }
.sr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-pill {
    display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
    background: transparent; color: var(--text-3); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.sr-pill span { color: var(--text-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.sr-pill:hover { color: var(--text-2); border-color: var(--text-muted); }
.sr-pill[aria-pressed="true"] { border-color: var(--brand-1); background: color-mix(in srgb, var(--brand-1) 14%, var(--surface)); color: var(--text); }
.sr-pill[aria-pressed="true"] span { color: var(--text-2); }
.sr-pill:focus-visible, .sr-seg button:focus-visible, .sr-tile:focus-visible, .sr-row-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-controls-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sr-controls-row.is-index { margin: 24px 0; }

.sr-controls-row.is-index .sr-search { flex: 1 1 240px; max-width: 360px; min-width: 0; margin: 0; }
.sr-controls-row.is-index .sr-search input { margin-bottom: 0; padding: 8px 14px; font-size: 13.5px; }
.sr-seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.sr-seg button { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sr-seg button span { color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.sr-seg button:hover { color: var(--text-2); }
.sr-seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--brand-1) 18%, var(--surface)); color: var(--text); }
.sr-seg button[aria-pressed="true"] span { color: var(--text-2); }
.sr-sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.sr-sort-label { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.sr-sort select.th-sort { min-height: 34px; font-size: 12.5px; }


.sr-list { margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.sr-item { display: grid; grid-template-columns: 44px 28px minmax(0, 1fr); align-items: start; margin: 0 0 14px; }
.sr-year { padding: 5px 8px 0 0; color: var(--text-3); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.sr-node-col { position: relative; align-self: stretch; display: flex; justify-content: center; padding-top: 9px; }
.sr-node-col::before { content: ""; position: absolute; top: -14px; bottom: 0; left: 50%; width: 1px; transform: translateX(-.5px); background: var(--border); }
.sr-item:first-child .sr-node-col::before { top: 14px; }
.sr-item:last-child .sr-node-col::before { bottom: auto; height: 14px; }
.sr-item:only-child .sr-node-col::before { display: none; }
.sr-node { position: relative; z-index: 1; display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); box-shadow: 0 0 0 3px var(--bg); }
.sr-node.is-played { background: color-mix(in srgb, var(--brand-2) 70%, var(--surface-3)); }
.sr-node.is-platted { background: var(--platinum-gradient); box-shadow: 0 0 0 3px var(--bg), inset 0 0 0 1px color-mix(in srgb, var(--plat-blue) 60%, transparent); }
html[data-theme="light"] .sr-node.is-platted { background: linear-gradient(90deg, #4f7aa3, #9cc0dc 45%, #5d87ae); box-shadow: 0 0 0 3px var(--bg); }
.sr-row { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; align-items: stretch; min-height: 80px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }

.sr-row.um-has-strip { padding-top: 22px; }
.sr-row-art { display: block; min-width: 0; }
.sr-art { position: relative; display: block; width: 100%; height: 100%; min-height: 80px; overflow: hidden; background: var(--surface-2); }
.sr-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-art-fb { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface-2); }
.sr-art-fb img { width: 52px; height: 52px; border-radius: 10px; }
.sr-row-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 14px 18px; }
.sr-row-name { color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.sr-row-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr-row-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.sr-ver-pair { display: inline-flex; align-items: center; flex: none; gap: 1px; white-space: nowrap; }
.sr-ver-pair > .platform-badge { margin-bottom: 0; }
.sr-ver-pair > .platform-badge:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.sr-ver-pair > .platform-badge:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.sr-sub-chip { color: var(--text-3); border-color: color-mix(in srgb, var(--brand-1) 45%, var(--border)); }
.sr-row-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sr-row-also { color: var(--text-muted); font-size: 12px; }
.sr-row-also a { color: var(--text-2); text-decoration: none; }
.sr-row-also a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sr-row-also a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-row-you { display: flex; align-items: center; justify-content: flex-end; min-width: 152px; padding: 14px 18px 14px 6px; }
.sr-row-you.is-col { flex-direction: column; align-items: flex-end; justify-content: center; gap: 3px; }
.sr-row-you .sr-pct { font-size: 15px; }
.sr-trophies { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-platted { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sr-platted img { width: 18px; height: 18px; object-fit: contain; }
.sr-none { color: var(--text-muted); font-size: 12.5px; }
.sr-empty { margin: 8px 0; padding: 18px 4px; color: var(--text-muted); font-size: 14px; }


.platform-badge.sr-ver-gone,
html[data-theme="light"] .platform-badge.sr-ver-gone {
    background: transparent; color: var(--text-2);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 70%, transparent);
}
.platform-badge.sr-ver-gone .um-ico { display: block; width: 11px; height: 11px; flex: none; color: var(--danger); }

.platform-badge.sr-ver-gone, .platform-badge.sr-ver-mine { display: inline-flex; align-items: center; gap: 4px; }
.platform-badge.sr-ver-mine { padding-left: 5px; }
.sr-ver-seal { display: block; width: 15px; height: 15px; margin: -2px 0; flex: none; line-height: 0; }

.sr-ver-seal .sr-seal-halo { display: none; }
.sr-ver-note { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.sr-ver-note .um-ico { width: 12px; height: 12px; flex: none; color: var(--danger); }

.platform-badge.sr-ver-closing { box-shadow: inset 0 -2px 0 var(--caution); }
.sr-ver-note.is-closing .um-ico { color: var(--caution); }

.cat-card-platforms .platform-badge.sr-ver-gone,
html[data-theme="light"] .cat-card-platforms .platform-badge.sr-ver-gone {
    background: rgba(8, 12, 17, .82); color: var(--dark-glass-ink, #e3eaf7);
}
html[data-theme="light"] :is(.cat-card-platforms, .game-row-title-pills) .platform-badge.badge-ps5.sr-ver-closing {
    box-shadow: inset 0 -2px 0 var(--caution), inset 0 0 0 1px var(--border);
}


.sr-row-you.sr-row-stats { min-width: 0; padding: 14px 20px 14px 8px; }
.sr-row-stats .card-stats.sr-has-seals { grid-template-columns: minmax(0, 1fr) 52px; width: 232px; margin-top: 0; }
.sr-row-stats .card-counts { justify-self: end; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.sr-row-seals { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-height: 22px; }
.sr-row-seals:empty { display: none; }
.sr-row-lines { display: flex; flex-direction: column; gap: 3px; }
.sr-row-lines p { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.4; }

@container (max-width: 760px) {
    .sr-row { display: flex; flex-direction: column; }
    .sr-row-art { height: 104px; }
    .sr-row-body { padding: 14px 16px 6px; }
    .sr-row-you { justify-content: flex-start; min-width: 0; padding: 4px 16px 16px; }
    .sr-row-you.is-col { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; }
    .sr-row-you.sr-row-stats { padding: 2px 16px 16px; }
    .sr-row-stats .card-stats.sr-has-seals { width: 100%; }
    .sr-row-stats .card-counts { justify-self: start; justify-content: flex-start; }
}


.sr-row.game-platinum,
.sr-row.game-complete { border: 3px solid transparent; isolation: isolate; }
.sr-row.game-platinum {
    background:
        linear-gradient(105deg, rgba(143, 184, 216, 0.30) 0%, rgba(143, 184, 216, 0.12) 100%) padding-box,
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(90deg, var(--completion-plat-start), var(--completion-plat-end)) border-box;
}
html[data-theme="light"] .sr-row.game-platinum {
    background:
        linear-gradient(105deg, rgba(143, 184, 216, 0.48) 0%, rgba(190, 220, 235, 0.32) 100%) padding-box,
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(90deg, var(--completion-plat-start), var(--completion-plat-end)) border-box;
}
.sr-row.game-platinum.game-platinum-dlc {
    background:
        linear-gradient(105deg, rgba(143, 184, 216, 0.30) 0%, rgba(94, 207, 162, 0.24) 100%) padding-box,
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(90deg, var(--completion-plat-start) 0%, var(--completion-plat-start) 25%, var(--success) 100%) border-box;
}
html[data-theme="light"] .sr-row.game-platinum.game-platinum-dlc {
    background:
        linear-gradient(105deg, rgba(143, 184, 216, 0.48) 0%, rgba(94, 207, 162, 0.36) 100%) padding-box,
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(90deg, var(--completion-plat-start) 0%, var(--completion-plat-start) 25%, var(--success) 100%) border-box;
}
.sr-row.game-complete {
    background:
        linear-gradient(105deg, rgba(94, 207, 162, 0.26) 0%, rgba(94, 207, 162, 0.10) 100%) padding-box,
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(var(--success), var(--success)) border-box;
}
html[data-theme="light"] .sr-row.game-complete {
    background:
        linear-gradient(105deg, rgba(94, 207, 162, 0.38) 0%, rgba(142, 232, 196, 0.24) 100%) padding-box,
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(var(--success), var(--success)) border-box;
}
.sr-row.game-platinum .card-pct, .sr-row.game-complete .card-pct,
.sr-row.game-platinum .sr-row-facts, .sr-row.game-complete .sr-row-facts { color: var(--text-2); }
.sr-row p.plat-line { color: #9dbfdf; font-weight: 500; }
html[data-theme="light"] .sr-row p.plat-line { color: #39628b; }
.sr-row p.earn-span { color: #7fd6bd; font-weight: 500; }
html[data-theme="light"] .sr-row p.earn-span { color: #136d4b; }
.sr-row p.plat-full-line {
    width: fit-content; max-width: 100%; font-weight: 500;
    background: linear-gradient(90deg, #9dbfdf 0%, #7fd6bd 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
html[data-theme="light"] .sr-row p.plat-full-line { background-image: linear-gradient(90deg, #39628b 0%, #136d4b 100%); }
.sr-row .card-sheen { border-radius: 9px; }


.sr-lb { margin: 0; padding: 0; list-style: none; }
.sr-lb-row { display: grid; grid-template-columns: 24px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px; border: 1px solid transparent; border-radius: 8px; color: inherit; text-decoration: none; }
.sr-lb li + li { margin-top: 2px; }
.sr-lb-row:hover { background: var(--surface-2); }
.sr-lb-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sr-lb-rank { color: var(--text-3); font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

html[data-theme="light"] .sr-lb-rank.lb-rank-1 { color: #b8860b; }
html[data-theme="light"] .sr-lb-rank.lb-rank-2 { color: #8a929c; }
.sr-av { display: block; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--border); }
.sr-lb-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sr-lb-name strong { overflow: hidden; color: var(--text); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sr-lb-count { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.sr-lb-count .sr-seal { flex: none; }

.sr-lb-num { min-width: calc(var(--w, 0) * 1ch); }
.sr-lb-row.is-you { border-color: color-mix(in srgb, var(--brand-1) 45%, var(--border)); background: color-mix(in srgb, var(--brand-1) 7%, var(--surface)); }
.sr-lb-you { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.sr-other { padding-left: 8px; }
.sr-other .gv-info { gap: 4px; }
.sr-other .gv-name { font-size: 13px; font-weight: 600; }
.sr-other:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }


.sr-tabs { display: flex; gap: 22px; margin: 0 0 22px; border-bottom: 1px solid var(--border); }
.sr-tabs[hidden] { display: none; }
.sr-tabs a { position: relative; margin-bottom: -1px; padding: 0 0 10px; color: var(--text-muted); font-size: 15px; font-weight: 700; text-decoration: none; }
.sr-tabs a:hover { color: var(--text-2); }
.sr-tabs a.is-active { color: var(--text); }
.sr-tabs a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand-gradient); }
.sr-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-index-head h1 { margin: 0; }
.sr-index-count { min-height: 17px; margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }
.sr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.sr-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
a.sr-tile:hover { border-color: var(--text-muted); }
.sr-tile .sr-art { height: 128px; min-height: 0; }
.sr-tile.is-lead { grid-column: span 2; }
.sr-tile.is-lead .sr-art { height: 200px; }
.sr-tile-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.sr-tile-body strong { overflow: hidden; color: var(--text); font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sr-tile.is-lead .sr-tile-body strong { font-size: 20px; letter-spacing: -.01em; }
.sr-tile-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sr-tile-you { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--text-2); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sr-tile-you .sr-seal-pair { gap: 5px; }
.sr-tile-you.is-done { color: var(--text); font-weight: 700; }
.sr-tile-you img { width: 16px; height: 16px; object-fit: contain; }
.sr-tile-you.is-none { color: var(--text-muted); font-weight: 500; }

.sr-tile .sr-art { flex: 1 0 auto; }


.sr-tile-body { position: relative; }
.sr-tile.is-sealed .sr-tile-body { padding-right: 96px; }
.sr-tile-stamp { position: absolute; top: -32px; right: 18px; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; pointer-events: none; }

.sr-tile-stamp::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(4, 8, 14, .62), rgba(4, 8, 14, 0)); }
html[data-theme="light"] .sr-tile-stamp::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0)); }
.sr-tile-stamp .sr-seal { position: relative; width: calc(100% - 6px); height: calc(100% - 6px); }
.sr-tile.is-lead.is-sealed .sr-tile-body { padding-right: 120px; }
.sr-tile.is-lead .sr-tile-stamp { top: -42px; right: 22px; width: 84px; height: 84px; }

.sr-tile-you.is-sealed { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 28px; }
.sr-tile-you.is-sealed b { color: var(--text); font-weight: 700; }
.sr-tile-you.is-sealed span { color: var(--text-muted); font-weight: 500; }

.sr-tile-stamp.is-waiting .sr-seal, .sr-tile-stamp.is-waiting::before { opacity: 0; }
.sr-tile-stamp.is-new .sr-seal { animation: sr-stamp 620ms cubic-bezier(.2, .9, .25, 1.15) 250ms both; }
.sr-tile-stamp.is-new::before { animation: sr-stamp-pool 620ms ease-out 250ms both; }
@keyframes sr-stamp {
    0% { transform: scale(1.7) rotate(-14deg); opacity: 0; }
    55% { transform: scale(.92) rotate(3deg); opacity: 1; }
    100% { transform: none; opacity: 1; }
}
@keyframes sr-stamp-pool { 0%, 40% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .sr-tile-stamp.is-new .sr-seal, .sr-tile-stamp.is-new::before { animation: none; }
    .sr-tile-stamp.is-waiting .sr-seal, .sr-tile-stamp.is-waiting::before { opacity: 1; }
}

@media print {
    .sr-tile-stamp.is-waiting .sr-seal, .sr-tile-stamp.is-waiting::before { opacity: 1; }
}

.sr-tile.is-sealed { --sr-edge: #a8c6e6; }
html[data-theme="light"] .sr-tile.is-sealed { --sr-edge: #4f7aa3; }
.sr-tile.is-t1 { border-color: color-mix(in srgb, var(--sr-edge) 55%, var(--border)); }
.sr-tile.is-t1 .sr-tile-body { background: linear-gradient(180deg, color-mix(in srgb, var(--sr-edge) 8%, var(--surface)), var(--surface) 75%); }

.sr-tile.is-t2 { border-color: color-mix(in srgb, var(--sr-edge) 85%, var(--border)); }
.sr-tile.is-t2 .sr-tile-body { background: linear-gradient(160deg, #26364a, #151d27 80%); }
html[data-theme="light"] .sr-tile.is-t2 .sr-tile-body { background: linear-gradient(160deg, #dfe8f2, #f3f6fa 80%); }

.sr-tile.is-t3 {
    border: 2px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #79e8bb, #d4e6f4 55%, #8fb8d8) border-box;
    box-shadow: 0 0 0 1px rgba(121, 232, 187, .18), 0 10px 34px -10px rgba(121, 232, 187, .32);
}
.sr-tile.is-t3 .sr-tile-body {
    background: radial-gradient(60% 120% at 92% 0%, rgba(121, 232, 187, .16), rgba(121, 232, 187, 0) 70%), linear-gradient(160deg, #22344a, #121a24 80%);
}
html[data-theme="light"] .sr-tile.is-t3 {
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #2ea47a, #6f93b4 55%, #4f7aa3) border-box;
    box-shadow: 0 0 0 1px rgba(46, 164, 122, .16), 0 10px 30px -12px rgba(46, 164, 122, .35);
}
html[data-theme="light"] .sr-tile.is-t3 .sr-tile-body { background: radial-gradient(60% 120% at 92% 0%, rgba(46, 164, 122, .14), rgba(46, 164, 122, 0) 70%), linear-gradient(160deg, #e3eef0, #f3f6fa 80%); }
a.sr-tile.is-t1:hover, a.sr-tile.is-t2:hover { border-color: var(--sr-edge); }

a.sr-tile.is-t3:hover { border-color: transparent; }


.sr-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.sr-check input { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--brand-1); cursor: pointer; }
.sr-check.is-on { border-color: var(--brand-1); background: color-mix(in srgb, var(--brand-1) 14%, var(--surface)); color: var(--text); }
.sr-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-check input:focus-visible { outline: none; }
.sr-check span { color: inherit; font-size: inherit; }

.sr-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }



.sr-seal.is-earned .sr-seal-f { animation: none; }

.sr-seal.is-tier .sr-seal-f { animation: none; }

.sr-seal.is-tier { --sr-tier-steel: #a8c6e6; }
html[data-theme="light"] .sr-seal.is-tier { --sr-tier-steel: #4f7aa3; }
.sr-seal.is-tier .sr-seal-f .sr-tier-edge { fill: none; stroke: var(--sr-tier-steel); stroke-width: 2.6; }
.sr-seal.is-tier .sr-seal-f .sr-seal-body,
html[data-theme="light"] .sr-seal.is-tier .sr-seal-f .sr-seal-body { fill: url(#srTierDark); }
.sr-seal.is-tier .sr-seal-f .tg { fill: url(#sealP); }
.sr-seal.is-tier.is-hundred .sr-seal-f .sr-seal-glyph path { stroke: #79e8bb; }
.sr-seal.is-tier.is-t3 .sr-seal-f .sr-seal-body,
html[data-theme="light"] .sr-seal.is-tier.is-t3 .sr-seal-f .sr-seal-body { fill: url(#srTierDeep); }
.sr-seal.is-tier.is-t3 .sr-seal-f .tg { fill: url(#srTierFoil); }
.sr-seal.is-tier.is-t3 .sr-seal-f .sr-tier-edge { stroke: url(#srTierGP); stroke-width: 2.2; }
.sr-seal.is-tier.is-t3.is-hundred .sr-seal-f .sr-seal-glyph path { stroke: url(#srTierGP); }
.sr-seal.is-tier .sr-tier-inner { fill: none; stroke-width: .45; }
.sr-seal.is-tier .sr-seal-g .sr-tier-inner { stroke: var(--seal-edge); }
.sr-seal.is-tier .sr-seal-f .sr-tier-inner { stroke: url(#srTierGP); opacity: .8; }

:root { --sr-tier-sheen-a: .38; }
html[data-theme="light"] { --sr-tier-sheen-a: .6; }
.sr-tier-sheen-move { transform-box: view-box; transform: translate(-12px, 12px); opacity: 0; animation: sr-tier-sheen 1.8s cubic-bezier(.4, 0, .2, 1) .5s 1 both; }
@keyframes sr-tier-sheen {
    0% { transform: translate(-12px, 12px); opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { transform: translate(12px, -12px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sr-tier-sheen { display: none; } }


.sr-run .sr-seals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.sr-run .sr-tier-sec { margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.sr-tier-reach { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.sr-tier-reach .um-ico { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--danger); }

.sr-tier-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 20px; }
.sr-tier-chip { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--surface-2); color: inherit; text-decoration: none; outline: none; }
.sr-tier-chip:hover { outline: 1px solid var(--text-muted); outline-offset: 1px; }
.sr-tier-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-tier-chip-grey, .sr-tier-chip-col { position: absolute; inset: 0; }
.sr-tier-chip img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.sr-tier-chip-grey img { filter: grayscale(1) brightness(.48); }
html[data-theme="light"] .sr-tier-chip-grey img { filter: grayscale(1); opacity: .35; }
.sr-tier-chip-col { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.sr-tier-chip.is-done img { filter: blur(1.2px) brightness(.55) saturate(.8); }
html[data-theme="light"] .sr-tier-chip.is-done img { filter: blur(1.2px) brightness(.85) saturate(.6); opacity: .55; }
.sr-tier-chip .platform-badge { position: absolute; left: 5px; bottom: 5px; z-index: 2; margin: 0; padding: 1px 6px; font-size: 10px; }
.sr-tier-chip.is-done .platform-badge { opacity: .7; }
.sr-tier-chip-lost { position: absolute; top: 5px; right: 5px; z-index: 2; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(4, 6, 10, .7); color: var(--danger); }
.sr-tier-chip-lost .um-ico { width: 12px; height: 12px; }
.sr-tier-chip-check { position: absolute; top: 50%; left: 50%; z-index: 2; width: 22px; height: 22px; margin: -11px 0 0 -11px; line-height: 0; }

.sr-run .sr-tier-sec.is-reached .sr-seals { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.sr-tier-more { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sr-tier-more:hover { color: var(--text); }
.sr-tier-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-tier-more-chev { width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .16s; }
.sr-tier-more[aria-expanded="true"] .sr-tier-more-chev { margin-top: 3px; transform: rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .sr-tier-more-chev { transition: none; } }
.sr-tier-chips[hidden] { display: none; }

@keyframes sr-tier-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sr-tier-rise { animation: sr-tier-rise 520ms cubic-bezier(.22, .61, .36, 1) both; }
@media (prefers-reduced-motion: reduce) { .sr-tier-rise { animation: none; } }
@media (max-width: 600px) {
    .sr-run .sr-seals { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .sr-run .sr-tier-sec { margin-bottom: 24px; padding-bottom: 24px; }
    .sr-tier-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .sr-run .sr-tier-sec.is-reached .sr-seals { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .sr-tier-more { justify-self: start; min-height: 40px; margin-left: 76px; }
}


.sr-board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.sr-board-tabs button { padding: 3px 9px; font-size: 11px; letter-spacing: 0; text-transform: none; }
.sr-lb-row.has-date { row-gap: 0; }
.sr-lb-row.has-date .sr-lb-rank, .sr-lb-row.has-date .sr-av { grid-row: 1 / span 2; }
.sr-lb-date { grid-column: 3 / -1; grid-row: 2; color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-index .pagination { margin-top: 28px; }


.fx-icon.sr-fx-art { object-fit: cover; }
.fx-icon.sr-fx-art.is-blank { display: block; background: var(--surface-2); }
.fx-line .fx-seal { margin-left: 2px; }




@media (max-width: 900px) {
    .sr-layout { grid-template-columns: minmax(0, 1fr); }
    .sr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


@media (max-width: 600px) {
    .sr-layout { padding: 24px 0 48px; }
    .sr-run { padding: 20px 18px 22px; margin-bottom: 32px; }
    .sr-pano { height: 112px; margin-bottom: 28px; }
    
    .sr-pano-wrap { margin-bottom: 28px; }
    .sr-pano-wrap .sr-pano { margin-bottom: 0; }
    .sr-pano-wide { display: none; }
    .sr-pano-rows { display: flex; flex-direction: column; gap: 4px; }
    .sr-pano.is-row { height: 84px; }
    
    .sr-pano-rows .sr-pano.is-row.has-year { margin-bottom: 22px; }
    .sr-sl.is-open { flex-grow: 12; }
    .sr-sl-card { padding: 20px 10px 8px; gap: 2px; }
    .sr-slc-name { -webkit-line-clamp: 1; font-size: 13px; }
    .sr-slc-line { gap: 1px; }
    .sr-slc-status { gap: 1px 6px; }
    .sr-cap-right { margin-left: 0; }
    .sr-facts { grid-template-columns: 1fr 1fr; }
    .sr-controls-row { flex-direction: column; align-items: stretch; }
    .sr-seg { border-radius: 14px; }
    .sr-seg button { flex: 1 1 auto; justify-content: center; }
    .sr-controls-row.is-index .sr-pill { align-self: flex-start; }
    .sr-sort { margin-left: 0; justify-content: space-between; }
    .sr-sort select.th-sort { flex: 1; max-width: 220px; }
    .sr-item { grid-template-columns: 32px 22px minmax(0, 1fr); }
    .sr-year { padding-right: 5px; font-size: 11.5px; }
    .sr-controls-row.is-index .sr-search { flex: none; max-width: none; }
    .sr-tiles { grid-template-columns: minmax(0, 1fr); }
    .sr-seals { gap: 18px 24px; }
    .sr-seals-wrap { margin-bottom: 26px; }
    .sr-seals-head { font-size: 18px; }
    .sr-seal-item { gap: 12px; }
    .sr-seal-text strong { font-size: 15px; }
    .sr-tile.is-lead { grid-column: auto; }
    .sr-tile.is-lead .sr-art { height: 128px; }
    .sr-tile.is-lead .sr-tile-body strong { font-size: 16px; }
    
    .sr-tile-stamp, .sr-tile.is-lead .sr-tile-stamp { top: -28px; right: 14px; width: 56px; height: 56px; }
    .sr-tile.is-sealed .sr-tile-body, .sr-tile.is-lead.is-sealed .sr-tile-body { padding-right: 84px; }
    .sr-controls-row.is-index .sr-filters { align-self: flex-start; }
    .sr-controls-row.is-index .sr-filters .sr-pill { align-self: center; }
}



#seriesBoardView { width: 100%; max-width: none; margin: 0; }


#seriesBoardView .game-page-hero { min-height: 300px; }
#seriesBoardView .game-page-hero .gd-hero-main { padding-bottom: 31px; }
#seriesBoardView .gp-hero { display: flex; flex-direction: column; margin-bottom: 26px; }
#seriesBoardView .gp-hero .gd-hero-main { flex: 1 1 auto; min-height: 0; }
#seriesBoardView .gp-hero .gd-trophy-dock { position: relative; flex: none; }
#seriesBoardView .cat-breadcrumb a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#seriesBoardView .cat-breadcrumb a, #seriesBoardView .cat-breadcrumb span, #seriesBoardView .cat-breadcrumb strong { flex: none; }
#seriesBoardView .cat-breadcrumb a[data-sl-series] { flex: 0 1 auto; }


#seriesBoardView .sl-tier-dock { grid-template-columns: repeat(var(--tabs), minmax(0, 1fr)); min-height: 76px; }
.sl-tab {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 13px;
    min-width: 0; padding: 14px 18px; border: 0; border-left: 1px solid rgba(255,255,255,.07);
    background: transparent; color: inherit; font: inherit; cursor: pointer;
    transition: background-color .18s;
}
.sl-tab:first-child { border-left: 0; }
.sl-tab .sr-seal { flex: none; opacity: .42; filter: saturate(.4); transition: opacity .18s, filter .18s; }
.sl-tab:not(.is-on) .sr-seal-halo { display: none; }

.sl-tab-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; text-align: left; }
.sl-tab-text strong, .sl-tab-text small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-tab-text strong { color: rgba(244,247,255,.6); font-size: 15px; font-weight: 700; line-height: 1.1; transition: color .18s; }
.sl-tab-text small { color: rgba(224,227,232,.45); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sl-tab:hover { background: rgba(255,255,255,.035); }
.sl-tab:hover .sr-seal { opacity: .72; }
.sl-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.sl-tab.is-on { background: rgba(255,255,255,.055); cursor: default; }
.sl-tab.is-on .sr-seal { opacity: 1; filter: none; }
.sl-tab.is-on strong { color: #f4f7ff; }
.sl-tab.is-on small { color: rgba(224,227,232,.72); }
.sl-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-gradient); }

.sl-tab.is-only { justify-content: flex-start; padding-left: 34px; background: none; cursor: default; }
.sl-tab.is-only::after { display: none; }
html[data-theme="light"] .sl-tab { border-color: rgba(23,32,58,.12); }
html[data-theme="light"] .sl-tab-text strong { color: rgba(23,32,51,.55); }
html[data-theme="light"] .sl-tab-text small { color: rgba(60,71,97,.6); }
html[data-theme="light"] .sl-tab:hover { background: rgba(23,32,58,.04); }
html[data-theme="light"] .sl-tab.is-on { background: rgba(255,255,255,.7); }
html[data-theme="light"] .sl-tab.is-on strong { color: #172033; }
html[data-theme="light"] .sl-tab.is-on small { color: #3c4761; }
html[data-theme="light"] .sl-tab.is-only { background: none; }


#slList .sl-row { gap: 16px; padding: 12px 22px 12px 14px; min-height: 74px; box-sizing: border-box; }
#slList .sl-row.lb-top { padding-top: 16px; padding-bottom: 16px; }
#slList .lb-rank { flex: none; width: 44px; min-width: 0; }
#slList .lb-id { flex: 1 1 160px; }


.sl-score { flex: none; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; width: 150px; }
.sl-countline { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-countline .sr-seal { flex: none; }
.sl-reached { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-art .sl-countline { color: #f4f7ff; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.lb-art .sl-reached { color: rgba(224,227,232,.75); text-shadow: 0 1px 6px rgba(0,0,0,.7); }

.sl-empty { padding: 28px; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted); font-size: 14px; text-align: center; }
#slPagination { margin-top: 18px; }


.lb-youbar-standing .sl-countline { gap: 5px; font-size: inherit; font-weight: 600; vertical-align: -3px; }


.sl-last { max-width: 100%; }
.sl-last .sr-seal { flex: none; }

@media (max-width: 760px) {
    #seriesBoardView .gp-hero, #seriesBoardView .game-page-hero.gp-hero { min-height: 220px; }
    #seriesBoardView .gp-hero .gd-hero-main, #seriesBoardView .game-page-hero.gp-hero .gd-hero-main { padding: 22px 20px 22px; }
    #seriesBoardView .sl-tier-dock { grid-template-columns: repeat(var(--tabs), minmax(0, 1fr)); }
    .sl-tab { flex-direction: column; gap: 6px; padding: 12px 6px 13px; }
    .sl-tab .sr-seal { --sz: 28px !important; }
    .sl-tab-text { justify-items: stretch; width: 100%; text-align: center; }
    .sl-tab-text strong { font-size: 14px; }
    .sl-tab-text small { font-size: 11.5px; }
    .sl-tab.is-only { flex-direction: row; justify-content: flex-start; padding: 12px 18px; gap: 12px; }
    .sl-tab.is-only .sl-tab-text { width: auto; text-align: left; }
}


@media (max-width: 600px) {
    #slList .sl-row, #slList .sl-row.lb-top {
        display: grid; grid-template-columns: 22px 42px minmax(0, 1fr) auto;
        grid-template-areas: "rank av name name" "rank av level score" "rank av last last";
        column-gap: 10px; row-gap: 3px; align-items: center; padding: 12px 14px 12px 10px;
    }
    #slList .lb-id { display: contents; }
    #slList .lb-name-row { grid-area: name; min-width: 0; }
    #slList .lb-level { grid-area: level; }
    #slList .sl-last { grid-area: last; }
    #slList .lb-rank { grid-area: rank; width: auto; align-self: start; margin-top: 12px; font-size: 15px; }
    #slList .lb-top .lb-rank { font-size: 18px; }
    #slList .lb-avatar-wrap { grid-area: av; align-self: start; }
    #slList .lb-avatar, #slList .lb-avatar-blank, #slList .lb-top .lb-avatar, #slList .lb-top .lb-avatar-blank { width: 42px; height: 42px; }
    #slList .lb-name { font-size: 15px; }
    #slList .lb-top .lb-name { font-size: 15.5px; }
    .sl-score { grid-area: score; width: auto; }
    .sl-countline { gap: 6px; font-size: 15px; }
    .sl-countline .sr-seal { --sz: 18px !important; }
    .sl-score .sl-reached { display: none; }
}
