/* MLB Checklist look: "vintage ballpark" (cream scorecard, navy, stitch red) */
:root {
    --bg: #F8F0DE;
    --surface: #FFFCF5;
    --text: #16213A;
    --text-muted: #5E5647;
    --primary: #14284B;
    --primary-ink: #0A1630;
    --on-primary: #FFFFFF;
    --header-bg: #14284B;
    --accent: #BA0C2F;
    --accent-ink: #7A0820;
    --highlight: #F2B53A;
    --success: #1E6B3A;
    --success-tint: #E3F0E4;
    --track: rgba(255,255,255,.18);
    --bar: #F2B53A;
    --border: #8C8170;
    --divider: #E3D8C1;
    --danger: #BA0C2F;
    --footer-bg: #0A1630;
    --footer-text: #E8DFCB;
    --footer-muted: #CFC6B4;
    --font-display: "Alfa Slab One", Georgia, serif;
    --display-weight: 400;
    --display-stretch: normal;
    --font-label: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===== Shared Wonder Applied look (loaded after styles.css) ===== */
:root {
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px;
    --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
    --shadow-1: 0 1px 0 rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.08);
    --shadow-3: 0 24px 60px rgba(0,0,0,.28);
    --fs-xs: .8125rem; --fs-sm: .875rem; --fs-base: 1rem; --fs-md: 1.125rem;
    --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
    --fs-xl: clamp(1.35rem, 1.1rem + 1.4vw, 2.25rem);
    --fs-2xl: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    padding: 0;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    flex: 1;
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    background: var(--header-bg);
    color: var(--on-primary);
    padding: 0 var(--sp-4);
    min-height: 60px;
    border-bottom: 4px solid var(--accent);
    text-align: left;
}
.header h1, .wordmark {
    margin: 0;
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-stretch: var(--display-stretch);
    font-size: var(--fs-xl);
    line-height: 1.1;
    letter-spacing: .01em;
    color: var(--on-primary);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.wordmark a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: var(--sp-2); }
.wordmark .accent-word { color: var(--highlight); }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.header-nav { display: none; gap: var(--sp-5); font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.header-nav a { color: var(--on-primary); text-decoration: none; padding: var(--sp-2) 0; border-bottom: 3px solid transparent; }
.header-nav a[aria-current="page"], .header-nav a:hover { border-bottom-color: var(--highlight); }
.header-right { display: flex; align-items: center; gap: var(--sp-3); }

#auth { display: flex; gap: var(--sp-2); align-items: center; }
#who { color: rgba(255,255,255,.8); font-size: var(--fs-sm); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#userPhoto { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }

/* ---------- Buttons ---------- */
.btn, .ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 48px;
    padding: 0 var(--sp-5);
    width: auto;
    border-radius: var(--r-md);
    border: 2px solid transparent;
    font-family: var(--font-label);
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 150ms ease-out, box-shadow 150ms ease-out, background 150ms;
}
.ui-btn:active { transform: translateY(2px); }
.ui-btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 0 var(--primary-ink); }
.ui-btn--primary:active { box-shadow: 0 2px 0 var(--primary-ink); }
.ui-btn--accent { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-ink); }
.ui-btn--accent:active { box-shadow: 0 2px 0 var(--accent-ink); }
.ui-btn--secondary { background: var(--surface); color: var(--text); border-color: var(--text); box-shadow: 0 4px 0 var(--text); }
.ui-btn--secondary:active { box-shadow: 0 2px 0 var(--text); }
.ui-btn--ghost { background: transparent; color: var(--accent); min-height: 44px; padding: 0 var(--sp-2); }
.ui-btn--ghost:hover { text-decoration: underline; }
.ui-btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.ui-btn--block { width: 100%; }
.ui-btn--sm { min-height: 44px; padding: 0 var(--sp-4); font-size: var(--fs-base); box-shadow: 0 3px 0 var(--accent-ink); }
.ui-link { background: none; border: none; color: var(--accent); font: inherit; font-size: var(--fs-sm); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 var(--sp-2); }
.icon-btn {
    width: 44px; height: 44px; border-radius: var(--r-pill);
    display: inline-grid; place-items: center;
    background: transparent; border: none; cursor: pointer; color: inherit; text-decoration: none;
}
.icon-btn:hover { background: rgba(127,127,127,.15); }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- Progress card ---------- */
.progress-card {
    background: var(--header-bg);
    color: var(--on-primary);
    margin: var(--sp-4);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--sp-2) var(--sp-5);
    box-shadow: 0 4px 0 var(--primary-ink);
}
.pc-count { display: flex; align-items: baseline; gap: var(--sp-2); font-variant-numeric: tabular-nums; }
.pc-count .stat-value, #visitedCount {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-stretch: var(--display-stretch);
    font-size: var(--fs-2xl);
    line-height: 1;
    color: var(--highlight);
}
.pc-total { font-family: var(--font-label); font-weight: 700; font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.pc-body { min-width: 0; }
.progress-container, .progress-track {
    margin: 0;
    padding: 0;
    height: 16px;
    border-radius: var(--r-pill);
    background: var(--track);
    overflow: hidden;
    position: relative;
}
.progress-track::after {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 calc(100%/30 - 1px), rgba(0,0,0,.25) calc(100%/30 - 1px) calc(100%/30));
    pointer-events: none;
}
.progress-bar {
    height: 100%;
    min-width: 0 !important;
    background: var(--bar);
    border-radius: var(--r-pill);
    font-size: 0;
    color: transparent;
    transition: width 400ms cubic-bezier(.2,.8,.2,1);
}
.pc-sub { margin: var(--sp-2) 0 0; font-size: var(--fs-base); color: rgba(255,255,255,.88); }
.pc-sub strong { color: #fff; }

/* ---------- Main layout ---------- */
.content { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); padding: 0 var(--sp-4) var(--sp-5); }
#map {
    height: 55vh;
    min-height: 320px;
    max-height: 720px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
    border: 2px solid var(--divider);
    z-index: 1;
}
.leaflet-tile { filter: saturate(.65) contrast(.95); }
.sidebar {
    background: transparent;
    padding: 0;
    border: none;
    max-height: none;
    overflow: visible;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.sidebar h2 {
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: var(--fs-lg);
    color: var(--text);
    margin: 0;
}
.stats { display: none; }
.controls { margin: 0; }

/* ---------- Checklist rows ---------- */
.arena-list { list-style: none; display: grid; gap: var(--sp-2); }
.arena-item {
    background: var(--surface);
    border: 2px solid var(--divider);
    border-left-width: 6px;
    border-radius: var(--r-md);
    margin: 0;
    padding: var(--sp-3) 56px var(--sp-3) var(--sp-3);
    box-shadow: var(--shadow-1);
    transition: border-color 150ms, background 150ms;
}
.arena-item:hover { background: var(--surface); border-color: var(--border); }
.arena-item.visited { background: var(--success-tint); border-color: var(--success); }
.arena-item.drag-over { border-top: 4px solid var(--accent); }
.arena-item label { gap: var(--sp-3); align-items: flex-start; padding-top: 0; }
.arena-item input[type="checkbox"] {
    flex: 0 0 auto;
    width: 26px; height: 26px; margin: 1px 0 0;
    accent-color: var(--success);
    cursor: pointer;
}
.arena-name { font-weight: 700; font-size: var(--fs-base); color: var(--text); margin-bottom: 2px; line-height: 1.3; }
.team-name { font-size: var(--fs-sm); color: var(--text-muted); }
.ranking-container { margin-top: var(--sp-2); gap: var(--sp-2); flex-wrap: wrap; }
.ranking-label { display: none; }
.star-rating { gap: 2px; }
.star { font-size: 28px; line-height: 1; color: #CFC6B4; -webkit-text-stroke: 1px var(--border); }
.star.filled, .star.hover-preview { color: #F2B53A; -webkit-text-stroke: 1px #A86F00; }
.star.half-filled, .star.hover-preview.half-filled {
    background: linear-gradient(90deg, #F2B53A 50%, #CFC6B4 50%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #A86F00;
}
.ranking-number { color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); min-width: 0; }
.rating-count { color: var(--text-muted); font-size: var(--fs-xs); }
.drag-handle {
    right: 6px;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
    font-size: 20px;
    letter-spacing: -2px;
    border-radius: var(--r-md);
    touch-action: none;
}
.drag-handle:hover { background: rgba(127,127,127,.12); color: var(--text); }
.drag-handle:active { background: rgba(127,127,127,.2); }
.arena-item.touch-dragging { opacity: .7; box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---------- Map pins and popups ---------- */
.pin { position: relative; width: 40px; height: 40px; }
.pin-face {
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 3px solid var(--border);
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pin-face img { width: 28px; height: 28px; object-fit: contain; filter: grayscale(1) opacity(.7); }
@media (max-width: 640px) {
    .pin, .pin-face { width: 32px; height: 32px; }
    .pin-face { border-width: 2px; }
    .pin-face img { width: 22px; height: 22px; }
    .pin-check { width: 16px; height: 16px; font-size: 10px; }
}
.pin--visited .pin-face { border-color: var(--success); }
.pin--visited .pin-face img { filter: none; }
.pin-check {
    position: absolute; bottom: -3px; right: -3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--success); color: #fff; border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.leaflet-popup-content-wrapper { border-radius: var(--r-md); font-family: var(--font-body); }
.popup-team { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: var(--fs-md); color: var(--text); }
.popup-arena { color: var(--text-muted); }
.popup-checkbox {
    min-height: 44px; border-radius: var(--r-md);
    background: var(--primary); border: 2px solid var(--primary); color: var(--on-primary);
    font-family: var(--font-label); font-weight: 700; font-size: var(--fs-base); text-transform: uppercase; letter-spacing: .05em;
}
.popup-checkbox:hover { background: var(--primary-ink); border-color: var(--primary-ink); }
.popup-checkbox.visited, .popup-checkbox.visited:hover { background: var(--surface); color: var(--success); border-color: var(--success); }

/* ---------- Footer ---------- */
.footer, .site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border: none;
    margin: 0;
    padding: var(--sp-6) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom));
    text-align: center;
}
.footer p, .site-footer p { color: var(--footer-text); font-size: var(--fs-sm); margin: 0 0 var(--sp-2); }
.footer a, .site-footer a { color: var(--footer-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover, .site-footer a:hover { color: #fff; }
.footer-links a { display: inline-block; padding: 10px 4px; }
.footer .footer-disclaimer, .footer-disclaimer { font-size: var(--fs-xs) !important; color: var(--footer-muted) !important; margin-top: var(--sp-3) !important; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }

/* ---------- Sign-in sheet ---------- */
#signInModal { background: rgba(10,15,30,.6) !important; padding: var(--sp-4); }
.auth-panel {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--r-lg);
    padding: var(--sp-6) var(--sp-5) var(--sp-5);
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-3);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}
.auth-panel .icon-btn { position: absolute; top: var(--sp-2); right: var(--sp-2); color: var(--text-muted); font-size: 1.6em; }
.auth-panel h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--fs-lg); text-align: center; margin: 0 0 var(--sp-1); }
.auth-sub { text-align: center; color: var(--text-muted); margin: 0 0 var(--sp-5); }
.auth-stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.auth-google { background: #fff; color: #1f1f1f; border: 2px solid var(--border); box-shadow: none; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-base); }
.auth-or { display: flex; align-items: center; gap: var(--sp-3); color: var(--text-muted); font-size: var(--fs-sm); margin: var(--sp-2) 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 2px; background: var(--divider); }
.field-label { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: var(--fs-sm); color: var(--text); margin-bottom: -6px; }
.auth-panel input {
    min-height: 48px; padding: 0 var(--sp-4); font-size: 16px; width: 100%;
    border: 2px solid var(--border); border-radius: var(--r-md); background: #fff; color: var(--text);
    font-family: var(--font-body);
}
.auth-panel input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
#authError { text-align: center; color: var(--danger); font-size: var(--fs-sm); margin-top: var(--sp-3); min-height: 20px; }
.auth-legal { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-4); line-height: 1.5; }

/* Birthday check uses the same look */
#ageCheck .ac-box { background: var(--surface); color: var(--text); font-family: var(--font-body); border-radius: var(--r-lg); }
#ageCheck h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); }
#ageCheck p { color: var(--text-muted); }
#ageCheck select { border: 2px solid var(--border); border-radius: var(--r-md); }
#ageCheck button { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .05em; font-size: var(--fs-md); border: 2px solid var(--text); border-radius: var(--r-md); }
#ageCheck .ac-go { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 4px 0 var(--primary-ink); }
#ageCheck a { color: var(--accent); }

/* ---------- Inner pages (rankings, settings, terms, privacy) ---------- */
.page-wrap, .rankings-container, .settings-container, .privacy-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-5) var(--sp-4) var(--sp-7);
}
.back-button {
    background: transparent !important;
    color: var(--accent) !important;
    padding: 0 !important;
    min-height: 44px;
    font-family: var(--font-label);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: var(--fs-md);
    box-shadow: none !important;
}
.back-button:hover { text-decoration: underline; }
.page-title, .rankings-header h1, .settings-header h1, .privacy-header h1, .privacy-container h1 {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-stretch: var(--display-stretch);
    font-size: var(--fs-xl);
    color: var(--text);
    line-height: 1.15;
}
.rankings-header p, .settings-header p { color: var(--text-muted); }
.settings-section, .privacy-section, .legal-card {
    background: var(--surface);
    border: 2px solid var(--divider);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}
.settings-section h2, .privacy-section h2, .legal-card h2 { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.settings-section p, .privacy-section p, .privacy-section li { color: var(--text-muted); }
.settings-button { min-height: 48px; border-radius: var(--r-md); font-family: var(--font-label); text-transform: uppercase; letter-spacing: .05em; font-size: var(--fs-md); }
.btn-danger { background: var(--danger) !important; }
.btn-secondary { background: var(--text) !important; }
.user-avatar { background: var(--primary) !important; }
.warning-box { border-radius: var(--r-md); }

.tab-buttons, .tabs {
    display: flex; gap: 4px; padding: 4px;
    background: var(--surface); border: 2px solid var(--divider); border-radius: var(--r-pill);
    max-width: 420px; margin-left: auto; margin-right: auto;
}
.tab-button {
    flex: 1; min-height: 44px; border: none !important; border-radius: var(--r-pill) !important;
    background: transparent !important; color: var(--text) !important;
    font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: var(--fs-base) !important;
}
.tab-button.active { background: var(--primary) !important; color: var(--on-primary) !important; }
.ranking-item {
    background: var(--surface) !important;
    border: 2px solid var(--divider) !important;
    border-radius: var(--r-md) !important;
    box-shadow: var(--shadow-1) !important;
}
.rank-number, .ranking-rank { font-family: var(--font-display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); color: var(--text-muted); }

/* ---------- Tablet and up ---------- */
@media (min-width: 768px) {
    .header { padding: 0 var(--sp-5); min-height: 72px; }
    .header-nav { display: flex; }
    .progress-card { margin: var(--sp-5); }
    .content { padding: 0 var(--sp-5) var(--sp-6); }
    .arena-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .content { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; }
    #map { position: sticky; top: 92px; height: calc(100dvh - 120px); max-height: none; }
    .arena-list { grid-template-columns: 1fr; }
}
@media (min-width: 1440px) {
    .content { grid-template-columns: minmax(0, 1fr) 460px; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
    .header h1 { font-size: 1.3rem; }
    .brand-mark { width: 26px; height: 26px; }
    #who { display: none !important; }
    .progress-card { margin: var(--sp-3); padding: var(--sp-4); gap: var(--sp-2) var(--sp-4); }
    .content { padding: 0 var(--sp-3) var(--sp-5); gap: var(--sp-3); }
    #map { height: 42vh; min-height: 260px; }
    .arena-item { padding: var(--sp-3) 52px var(--sp-3) var(--sp-3); }
    .star { font-size: 30px; }
    .ranking-container { flex-wrap: wrap; }
    #signInModal { align-items: flex-end !important; padding: 0; }
    .auth-panel { border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom)); max-width: none; }
    .page-wrap, .rankings-container, .settings-container, .privacy-container { padding: var(--sp-4) var(--sp-3) var(--sp-6); }
    .settings-section { padding: var(--sp-4) !important; }
}
@media (max-width: 380px) {
    .header h1 { font-size: 1.1rem; }
    .brand-mark { display: none; }
    .progress-card { grid-template-columns: 1fr; }
    .rating-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Legacy ballparks (former homes of current teams) ---------- */
.legacy {
    margin-top: var(--sp-5, 24px);
    border-top: 2px dashed var(--divider);
    padding-top: var(--sp-3);
}
.legacy summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
    min-height: 44px;
    font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-muted);
}
.legacy summary::-webkit-details-marker { display: none; }
.legacy summary::before {
    content: "▸"; display: inline-block; transition: transform .15s ease; color: var(--accent);
}
.legacy[open] summary::before { transform: rotate(90deg); }
.legacy-title { font-size: var(--fs-md); }
.legacy-count { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em; opacity: .85; }
.legacy-note { color: var(--text-muted); font-size: var(--fs-sm); margin: 0 0 var(--sp-3); }
.arena-list--legacy .arena-item { position: relative; padding-right: 100px; background: transparent; border-style: dashed; border-left-style: solid; }
.arena-list--legacy .arena-item.visited { background: var(--success-tint); }
.legacy-years {
    position: absolute; top: var(--sp-3); right: var(--sp-3);
    font-family: var(--font-label); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .05em;
    color: var(--text-muted); border: 1px solid var(--divider); border-radius: 999px; padding: 2px 8px;
}
@media (prefers-reduced-motion: reduce) { .legacy summary::before { transition: none; } }
.legacy-heading {
    font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em;
    color: var(--text-muted); font-size: var(--fs-md);
    border-top: 2px dashed var(--divider); padding-top: var(--sp-3); margin: var(--sp-5, 24px) 0 var(--sp-3);
}
.ranking-item--legacy { opacity: .85; border-style: dashed; }
.ranking-item--legacy .ranking-number { font-size: var(--fs-xs); letter-spacing: .02em; white-space: nowrap; }
