/* ==========================================================================
   RoPulse — SteamDB-Inspired Telemetry x Dribbble Motion-UI
   Large HD Icons (88px Podium, 64px Leaderboard Rows, 104px Drawer)
   ========================================================================== */
:root {
    --bg: #090C12;
    --surface: #111622;
    --surface-2: #161D2C;
    --border: #232D42;
    --border-hi: #334361;

    --text: #F1F5F9;
    --muted: #8B9BB4;

    --lime: #D2FF00;
    --lime-soft: rgba(210, 255, 0, 0.14);
    --cyan: #38BDF8;
    --emerald: #22C55E;
    --rose: #F43F5E;
    --gold: #FACC15;

    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.36, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; font-size: inherit; }

.wrap {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 36px);
}

/* Interactive Kinetic Radar Canvas */
.radar-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.75;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--lime), var(--cyan));
    z-index: 200;
    box-shadow: 0 0 12px rgba(210, 255, 0, 0.6);
}

/* Sticky Telemetry Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(9, 12, 18, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lime);
    color: #090C12;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.04em;
    box-shadow: 0 0 20px rgba(210, 255, 0, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong {
    font-size: 17px;
    letter-spacing: -0.03em;
}

.brand-text small {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--emerald);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--emerald);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.2s var(--spring), background 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-sm { padding: 7px 13px; font-size: 12.5px; }

.btn-lime {
    background: var(--lime);
    color: #090C12;
}
.btn-lime:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(210, 255, 0, 0.28);
}

.btn-cyan {
    background: rgba(56, 189, 248, 0.16);
    color: var(--cyan);
    border-color: rgba(56, 189, 248, 0.4);
}
.btn-cyan:hover {
    background: var(--cyan);
    color: #090C12;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.btn.is-syncing .sync-icon {
    display: inline-block;
    animation: spin360 0.75s linear infinite;
}

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

/* Main Stage */
.main-stage {
    position: relative;
    z-index: 2;
    padding-top: 28px;
    padding-bottom: 64px;
}

.alert {
    padding: 13px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 600;
    animation: slideFadeDown 0.35s var(--ease) both;
}
.alert-success { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.4); color: #86EFAC; }
.alert-error   { background: rgba(244, 63, 94, 0.14); border: 1px solid rgba(244, 63, 94, 0.4); color: #FDA4AF; }

@keyframes slideFadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero Telemetry Panel */
.hero-panel {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 34px;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--lime);
    margin-bottom: 10px;
}

.hero-title {
    margin: 0 0 12px;
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-title span {
    background: linear-gradient(95deg, var(--lime) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    margin: 0;
    color: var(--muted);
    max-width: 540px;
    font-size: 15px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.kpi-card {
    position: relative;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(22, 29, 44, 0.92), rgba(14, 19, 30, 0.92));
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.22s var(--ease);
}

.kpi-card:hover { border-color: var(--border-hi); }

.kpi-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.kpi-value {
    font-family: var(--font-mono);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 6px 0 4px;
    font-variant-numeric: tabular-nums;
}

.kpi-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.is-lime    { color: var(--lime) !important; }
.is-cyan    { color: var(--cyan) !important; }
.is-emerald { color: var(--emerald) !important; }

/* Section Heading */
.sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.sec-head h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--lime-soft);
    color: var(--lime);
    letter-spacing: 0.12em;
}

.sec-hint {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
}

/* TOP 3 PODIUM CARDS (LARGE 88x88 HD ICONS + CONIC SHIMMER BEAM) */
.podium-sec { margin-bottom: 34px; }

.podium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@property --beam-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.podium-card {
    position: relative;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(160deg, #151C2B 0%, #0E131E 100%);
    border: 1px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.28s var(--ease), border-color 0.25s ease, box-shadow 0.3s ease;
    --cx: 50%;
    --cy: 50%;
    --spot: 0;
}

.podium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(280px circle at var(--cx) var(--cy), rgba(210, 255, 0, 0.14), transparent 65%);
    opacity: var(--spot);
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 0;
}

.podium-card > * { position: relative; z-index: 1; }

.conic-beam {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from var(--beam-angle) at 50% 50%, transparent 0deg, transparent 260deg, var(--lime) 330deg, transparent 360deg);
    padding: 1.5px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2 !important;
}

.podium-card:hover .conic-beam {
    opacity: 1;
    animation: beamRotate 3s linear infinite;
}

@keyframes beamRotate {
    to { --beam-angle: 360deg; }
}

.podium-card:hover {
    border-color: rgba(210, 255, 0, 0.45);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.podium-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rank-pill {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 7px;
}

.rank-1 { background: var(--lime); color: #090C12; }
.rank-2 { background: rgba(56, 189, 248, 0.2); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.4); }
.rank-3 { background: rgba(250, 204, 21, 0.18); color: var(--gold); border: 1px solid rgba(250, 204, 21, 0.4); }

.genre-badge {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    text-transform: uppercase;
}

.podium-body {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.podium-icon-wrap {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-hi);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    background: var(--surface-2);
}

.podium-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.42s var(--spring);
}

.podium-card:hover .podium-icon {
    transform: scale(1.1);
}

.podium-icon-fallback, .row-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: var(--lime);
}

.podium-info { min-width: 0; flex: 1; }

.podium-name {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-creator {
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podium-ccu {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--lime);
}

.podium-ccu span:last-child {
    font-size: 11px;
    color: var(--muted);
}

.podium-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.podium-foot small {
    display: block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.podium-foot strong {
    font-family: var(--font-mono);
    font-size: 13.5px;
}

/* Controls Bar (Sliding Segmented Tabs + Search + Custom Track) */
.controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.controls-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.seg-tabs {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    gap: 4px;
}

.seg-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    border-radius: 8px;
    background: var(--lime);
    z-index: 0;
    transition: transform 0.36s var(--spring), width 0.36s var(--spring), height 0.25s ease;
    pointer-events: none;
}

.seg-btn {
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.seg-btn.active { color: #090C12; }

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    min-width: 240px;
}
.search-box:focus-within { border-color: var(--lime); }

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    width: 100%;
    font-size: 13.5px;
}

.track-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-form input {
    height: 40px;
    padding: 0 13px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 240px;
    outline: none;
    font-size: 13px;
}
.track-form input:focus { border-color: var(--cyan); }

/* STEAMDB-STYLE LEADERBOARD WITH LARGE 64x64 HD ICONS */
.board-wrap {
    border-radius: 16px;
    background: rgba(17, 22, 34, 0.9);
    border: 1px solid var(--border);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.board-head, .map-row {
    display: grid;
    grid-template-columns: 66px minmax(260px, 2.4fr) 136px 136px 116px 104px 96px;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
}

.board-head {
    height: 44px;
    background: rgba(9, 12, 18, 0.65);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.col-right { text-align: right; }
.col-center { text-align: center; }

.map-row {
    position: relative;
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(35, 45, 66, 0.55);
    cursor: pointer;
    overflow: hidden;
    animation: rowEnter 0.48s var(--ease) calc(min(var(--ri, 0), 14) * 38ms) both;
    transition: background 0.2s ease, transform 0.22s var(--ease);
    --cx: 50%;
    --cy: 50%;
    --spot: 0;
}

.map-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--cx) var(--cy), rgba(210, 255, 0, 0.08), transparent 65%);
    opacity: var(--spot);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.map-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.map-row.is-hidden { display: none; }

@keyframes rowEnter {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cell-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.rank-num {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--muted);
}

.rank-num.is-top { color: var(--lime); }

.rank-delta {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
}
.is-up   { color: var(--emerald); }
.is-down { color: var(--rose); }
.is-flat { color: var(--muted); opacity: 0.65; }

/* LARGE 64x64 Map Icon inside Row */
.cell-map {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.row-icon-wrap {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--border-hi);
    background: var(--surface-2);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.row-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s var(--spring);
}

.map-row:hover .row-icon {
    transform: scale(1.12);
}

.row-meta { min-width: 0; flex: 1; }

.row-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.row-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-row:hover .row-title { color: var(--lime); }

.row-genre {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 9.5px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--cyan);
}

.row-sub {
    font-size: 12px;
    color: var(--muted);
    margin: 2px 0 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccu-bar-track {
    width: 100%;
    max-width: 240px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.ccu-bar-fill {
    height: 100%;
    width: var(--bw, 20%);
    border-radius: 99px;
    background: linear-gradient(90deg, var(--lime), var(--cyan));
    transform-origin: left center;
    animation: barGrow 0.9s var(--ease) both;
}

@keyframes barGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.ccu-val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--lime);
    font-variant-numeric: tabular-nums;
}

.delta-txt {
    font-family: var(--font-mono);
    font-size: 10.5px;
    margin-top: 2px;
}

.cell-mono {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* Inline Animated Sparklines */
.sparkline {
    width: 112px;
    height: 34px;
    overflow: visible;
}

.spark-path {
    stroke: var(--lime);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 240;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 6px rgba(210, 255, 0, 0.4));
    animation: sparkDraw 1.2s var(--ease) both;
}

@keyframes sparkDraw {
    from { stroke-dashoffset: 240; }
    to   { stroke-dashoffset: 0; }
}

.rating-pill {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}
.rating-pill.is-high { background: rgba(34, 197, 94, 0.14); color: var(--emerald); }
.rating-pill.is-mid  { background: rgba(250, 204, 21, 0.14); color: var(--gold); }
.rating-pill.is-low  { background: rgba(244, 63, 94, 0.14); color: var(--rose); }

/* Slide-Over Telemetry Inspector Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, 0.72);
    backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    z-index: 140;
    transition: opacity 0.28s ease, backdrop-filter 0.3s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.inspector-drawer {
    position: fixed;
    top: 14px;
    right: 14px;
    bottom: 14px;
    width: min(460px, calc(100vw - 28px));
    border-radius: 20px;
    background: linear-gradient(170deg, #151C2B 0%, #0C101A 100%);
    border: 1px solid var(--border-hi);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    z-index: 150;
    transform: translateX(115%);
    transition: transform 0.42s var(--spring);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
}

.inspector-drawer.open { transform: translateX(0); }

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-hero {
    display: flex;
    align-items: center;
    gap: 16px;
}

.drawer-icon {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid var(--lime);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    background: var(--surface-2);
}

.drawer-badges { display: flex; gap: 8px; margin-bottom: 6px; }
.drawer-title { margin: 0 0 4px; font-size: 21px; line-height: 1.15; letter-spacing: -0.02em; }
.drawer-creator { font-size: 13px; color: var(--muted); }

.drawer-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.d-kpi {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}
.d-kpi small {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.1em;
}
.d-kpi strong {
    font-family: var(--font-mono);
    font-size: 18px;
}

.drawer-chart-box, .drawer-votes {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(9, 12, 18, 0.65);
    border: 1px solid var(--border);
}

.drawer-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 10px;
}

.area-chart {
    width: 100%;
    height: 132px;
    display: block;
}

.vote-bar {
    height: 9px;
    border-radius: 99px;
    background: rgba(244, 63, 94, 0.45);
    overflow: hidden;
    margin-bottom: 8px;
}
.vote-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--emerald), var(--lime));
    border-radius: 99px;
    transition: width 0.55s var(--ease);
}
.vote-nums {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

.drawer-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.foot {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
}
.foot a:hover { color: var(--lime); }

/* Responsive */
@media (max-width: 1080px) {
    .hero-panel { grid-template-columns: 1fr; }
    .podium-grid { grid-template-columns: 1fr; }
    .board-head, .map-row { grid-template-columns: 56px 1fr 124px 124px 86px; }
    .hide-md { display: none; }
}

@media (max-width: 720px) {
    .board-head, .map-row { grid-template-columns: 48px 1fr 104px; padding: 0 12px; gap: 10px; }
    .hide-sm { display: none; }
    .row-icon-wrap { flex: 0 0 54px; width: 54px; height: 54px; }
    .track-form, .track-form input, .search-box { width: 100%; }
}
