/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* ── Color Tokens (OKLCH - perceptually uniform) ──────────── */
    --bg:             oklch(8% 0.02 275);
    --surface:        rgba(255, 255, 255, 0.05);
    --surface-2:      rgba(255, 255, 255, 0.08);
    --surface-3:      rgba(255, 255, 255, 0.12);
    --border:         rgba(255, 255, 255, 0.1);
    --border-hover:   rgba(255, 255, 255, 0.2);

    --text:           oklch(95% 0.008 265);
    --text-muted:     oklch(68% 0.012 265);

    --primary:        oklch(65% 0.25 285);
    --primary-hover:  oklch(58% 0.22 285);
    --primary-soft:   oklch(25% 0.06 285);
    --primary-rgb:    127, 90, 240;

    --green:          oklch(72% 0.18 155);
    --green-soft:     oklch(25% 0.05 155);
    --red:            oklch(65% 0.22 15);
    --red-soft:       oklch(25% 0.05 15);
    --yellow:         oklch(88% 0.16 85);
    --orange:         oklch(74% 0.17 55);
    --orange-soft:    oklch(25% 0.05 55);

    --glow-primary:   rgba(127, 90, 240, 0.4);
    --glow-pink:      rgba(236, 72, 153, 0.3);
    --glow-blue:      rgba(99, 179, 237, 0.3);

    /* ── Typography Scale (1.25 ratio) ────────────────────────── */
    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.25rem;
    --text-xl:   1.563rem;
    --text-2xl:  1.953rem;
    --text-3xl:  2.441rem;

    /* ── Spacing Scale (4pt base) ─────────────────────────────── */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;

    /* ── Motion Tokens ────────────────────────────────────────── */
    --ease-out:      cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-snap: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in:       cubic-bezier(0.75, 0, 1, 0.25);
    --duration-fast:   150ms;
    --duration-normal: 250ms;
    --duration-slow:   400ms;

    /* ── Radius & Layout ──────────────────────────────────────── */
    --radius:    10px;
    --radius-lg: 16px;
    --max-width: 520px;
}

body {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ─── Animated Mesh Gradient Background ──────────────────── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(127, 90, 240, 0.15), transparent),
        radial-gradient(ellipse 60% 60% at 80% 10%, rgba(236, 72, 153, 0.1), transparent),
        radial-gradient(ellipse 50% 80% at 60% 80%, rgba(99, 179, 237, 0.08), transparent),
        radial-gradient(ellipse 70% 40% at 10% 90%, rgba(52, 211, 153, 0.06), transparent);
    animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0%   { opacity: 1; transform: scale(1) rotate(0deg); }
    50%  { opacity: 0.8; transform: scale(1.1) rotate(1deg); }
    100% { opacity: 1; transform: scale(1.05) rotate(-1deg); }
}

/* ─── Visualizer Canvas ──────────────────────────────────── */
#visualizer-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 1s ease;
}

#app {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 var(--space-md) var(--space-xl);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ─── Focus & Accessibility ───────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ─── Reduced Motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── Header ───────────────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-md);
    margin: 0 calc(-1 * var(--space-md));
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-xs);
    background: rgba(10, 10, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.logo-link:hover { transform: scale(1.03); }
.logo-link:active { transform: scale(0.97); }
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
}
.logo {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: 2.5px;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--primary), oklch(60% 0.25 310));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s ease infinite;
}
@keyframes logoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius);
    transition: color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
    position: relative;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-btn:hover { color: var(--text); background: var(--surface); }
.header-btn:active { transform: scale(0.95); }

/* ─── User Auth Card ───────────────────────────────────────── */
.user-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.user-card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.user-name {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-signed-in {
    font-size: var(--text-xs);
    color: var(--text-muted);
}
.btn-sm {
    font-size: var(--text-xs);
    padding: 4px 12px;
    white-space: nowrap;
}

/* ─── Screens ──────────────────────────────────────────────── */
.screen { padding-top: var(--space-md); }
#screen-game { display: flex; flex-direction: column; }

/* ─── Lobby ────────────────────────────────────────────────── */
.lobby-section { margin-bottom: var(--space-lg); }

.label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.input {
    width: 100%;
    padding: 14px var(--space-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-base);
    font-family: inherit;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}
.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-primary), 0 0 20px rgba(127, 90, 240, 0.15);
}
.input::placeholder { color: var(--text-muted); }

.input-code {
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 800;
    letter-spacing: 4px;
    flex: 1;
}

.shake { animation: shake 0.4s var(--ease-out); }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ─── Category Grid ───────────────────────────────────────── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: var(--space-sm);
}

.category-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out);
    min-height: 44px;
}
.category-btn:hover {
    border-color: var(--cat-color, var(--primary));
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(127, 90, 240, 0.15);
    background: rgba(255, 255, 255, 0.08);
}
.category-btn:active { transform: translateY(0); }
.category-btn.active {
    border-color: var(--cat-color, var(--primary));
    background: rgba(127, 90, 240, 0.15);
    color: var(--text);
    box-shadow: 0 0 20px rgba(127, 90, 240, 0.2), inset 0 0 20px rgba(127, 90, 240, 0.05);
}
.cat-icon { font-size: 18px; flex-shrink: 0; }
.cat-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
    text-align: center;
    min-height: 44px;
    position: relative;
}
.btn:active:not(:disabled) { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), oklch(60% 0.25 310));
    color: white;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-primary:hover:not(:disabled)::before {
    transform: translateX(100%);
}
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover), oklch(55% 0.23 310));
    box-shadow: 0 4px 24px var(--glow-primary), 0 0 60px rgba(127, 90, 240, 0.15);
}
.btn-lg { padding: var(--space-md); font-size: var(--text-base); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
    flex: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: none;
    color: var(--text-muted);
    border: none;
    width: 100%;
    padding: 12px;
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
}
.btn-ghost:hover { color: var(--text); }

.divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.lobby-row { display: flex; gap: var(--space-sm); }

.join-panel { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.join-panel .btn { flex: 0 0 auto; width: 100px; }

/* ─── Room Lobby ───────────────────────────────────────────── */
.room-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.room-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.room-code-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.room-code-value {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: 6px;
    color: var(--primary);
}
.btn-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: color var(--duration-fast) var(--ease-out);
}
.btn-copy:hover { color: var(--text); }

.room-name { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-xs); }
.room-category { font-size: var(--text-sm); color: var(--text-muted); }
.room-hint {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* ─── Game Header ──────────────────────────────────────────── */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0 var(--space-xs);
}
.game-meta { display: flex; gap: var(--space-sm); }

.badge {
    display: inline-block;
    padding: var(--space-xs) 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.badge-room { background: var(--primary); color: white; }

.timer {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: var(--text-lg);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--orange);
    transition: color var(--duration-slow) var(--ease-out);
}
.timer.warning { color: var(--yellow); }
.timer.critical { color: var(--red); animation: timerPulse 1s infinite; }
@keyframes timerPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ─── Progress Bar ─────────────────────────────────────────── */
.progress-bar { padding: var(--space-md) 0 var(--space-sm); }
.progress-segments { display: flex; gap: var(--space-xs); height: 6px; }
.progress-segment {
    flex: 1;
    border-radius: 3px;
    background: var(--surface-2);
    transition: background var(--duration-normal) var(--ease-out);
}
.progress-segment.correct { background: var(--green); }
.progress-segment.wrong { background: var(--red); }
.progress-segment.skipped { background: var(--border); }
.progress-segment.active { background: var(--primary); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ─── Guess History ────────────────────────────────────────── */
.guess-history {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    min-height: 160px;
}
.guess-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    border-left: 3px solid var(--border);
    transition: transform var(--duration-fast) var(--ease-out),
                opacity var(--duration-normal) var(--ease-out);
    animation: guessSlideIn var(--duration-normal) var(--ease-out-snap);
}
@keyframes guessSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}
.guess-row.correct { border-left-color: var(--green); background: var(--green-soft); }
.guess-row.wrong { border-left-color: var(--red); }
.guess-row.skipped { border-left-color: var(--border); }
.guess-row.empty { background: var(--surface); opacity: 0.2; min-height: 36px; }
.guess-icon { font-size: var(--text-base); flex-shrink: 0; width: 20px; text-align: center; }
.guess-text { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guess-row.correct .guess-text { color: var(--green); font-weight: 600; }

/* ─── Audio Player ─────────────────────────────────────────── */
.player-section { padding: var(--space-md) 0; }
.waveform-container {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    overflow: hidden;
    height: 60px;
    cursor: pointer;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
#waveform { width: 100%; height: 100%; display: block; }
.playhead {
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 100%;
    background: var(--primary);
    transition: left 0.05s linear;
    box-shadow: 0 0 10px oklch(58% 0.22 285 / 0.5);
    pointer-events: none;
}
.clip-marker {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: oklch(58% 0.22 285 / 0.06);
    border-right: 2px dashed oklch(58% 0.22 285 / 0.3);
    pointer-events: none;
    transition: width var(--duration-normal) var(--ease-out);
}
.player-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
}
.play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), oklch(60% 0.25 310));
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--glow-primary);
}
.play-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.06);
    box-shadow: 0 4px 20px oklch(58% 0.22 285 / 0.35);
}
.play-btn:active:not(:disabled) { transform: scale(0.95); }
.play-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.time-display { font-size: var(--text-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ─── Search & Input ───────────────────────────────────────── */
.input-section { padding: var(--space-sm) 0; }
.search-wrapper { position: relative; margin-bottom: var(--space-md); }
#search-input {
    width: 100%;
    padding: 14px var(--space-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-base);
    font-family: inherit;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}
#search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-primary), 0 0 20px rgba(127, 90, 240, 0.15);
}
#search-input::placeholder { color: var(--text-muted); }

.search-results {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.search-results.active { display: block; }
.search-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out);
    border-bottom: 1px solid var(--border);
    min-height: 44px;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--surface-3); }
.search-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--border);
    flex-shrink: 0;
}
.search-item-info { overflow: hidden; }
.search-item-title {
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-item-artist {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Action Buttons ───────────────────────────────────────── */
.action-buttons { display: flex; gap: var(--space-sm); }
.btn-skip {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
    flex: 1;
}
.btn-skip:hover { background: var(--surface-3); color: var(--text); border-color: var(--border-hover); }
.btn-submit { background: linear-gradient(135deg, var(--green), oklch(65% 0.18 170)); color: white; flex: 1; }
.btn-submit:hover:not(:disabled) {
    box-shadow: 0 4px 24px rgba(52, 211, 153, 0.35);
}
.btn-submit:disabled { opacity: 0.35; cursor: not-allowed; }

/* ─── Game Over ────────────────────────────────────────────── */
.game-over { padding: var(--space-md) 0; text-align: center; }
.result-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
    margin-bottom: var(--space-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: resultReveal var(--duration-slow) var(--ease-out-snap);
}
@keyframes resultReveal {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.result-album img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--border);
}
.result-info h2 { font-size: var(--text-lg); margin-bottom: var(--space-xs); line-height: 1.3; }
.result-info p { font-size: var(--text-sm); color: var(--text-muted); }
.album-name { font-size: var(--text-xs) !important; margin-top: 2px; }

.score-display { padding: var(--space-md); margin-bottom: var(--space-sm); }
.score-big {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--primary), oklch(60% 0.25 310));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: scoreCountUp var(--duration-slow) var(--ease-out-snap), scoreShimmer 3s ease infinite;
}
@keyframes scoreShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes scoreCountUp {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.score-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}
.score-breakdown { font-size: var(--text-sm); color: var(--text-muted); }

.result-message {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
}
.result-message.win { color: var(--green); }
.result-message.lose { color: var(--red); }
.result-actions { display: flex; justify-content: center; gap: var(--space-sm); }
.result-actions .btn { flex: 0 1 180px; }
.btn-share { background: linear-gradient(135deg, var(--green), oklch(65% 0.18 170)); color: white; }
.btn-share:hover {
    box-shadow: 0 4px 24px rgba(52, 211, 153, 0.35);
}

/* ─── Modals ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: oklch(0% 0 0 / 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-md);
    animation: overlayIn var(--duration-normal) var(--ease-out);
}
@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal {
    background: rgba(20, 20, 40, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    width: 100%;
    max-width: 400px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5), 0 0 40px rgba(127, 90, 240, 0.1);
    animation: modalSlideIn var(--duration-slow) var(--ease-out-snap);
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-wide { max-width: 480px; }
.modal h2 {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    text-align: center;
    line-height: 1.2;
}
.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }

/* Help */
.help-content p {
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
}
.help-content h3 {
    margin: var(--space-lg) 0 var(--space-sm);
    font-size: var(--text-base);
    font-weight: 700;
}
.duration-list { display: flex; gap: var(--space-sm); margin: var(--space-md) 0; justify-content: center; flex-wrap: wrap; }
.dur {
    background: var(--primary-soft);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
}
.score-guide {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-2);
    border-radius: var(--radius);
    margin-top: var(--space-sm);
}

/* ─── Tabs ─────────────────────────────────────────────────── */
.tab-bar {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-xs);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 7px;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab:hover { color: var(--text); }
.tab.active { background: linear-gradient(135deg, var(--primary), oklch(60% 0.25 310)); color: white; box-shadow: 0 2px 12px var(--glow-primary); }

/* ─── Leaderboard ──────────────────────────────────────────── */
.lb-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.lb-table thead th {
    text-align: left;
    padding: var(--space-sm) 6px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.lb-table tbody td {
    padding: 10px 6px;
    border-bottom: 1px solid var(--border);
    transition: background var(--duration-fast) var(--ease-out);
}
.lb-table tbody tr:last-child td { border-bottom: none; }
.lb-table tbody tr:hover td { background: var(--surface-2); }
.lb-rank { font-size: var(--text-base); width: 32px; text-align: center; }
.lb-name {
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lb-score { font-weight: 700; color: var(--primary); text-align: right; font-variant-numeric: tabular-nums; }
.lb-me {
    background: var(--primary-soft);
    border-radius: var(--radius);
}
.lb-me td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.lb-me td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.lb-loss td { opacity: 0.45; }
.lb-empty { text-align: center; color: var(--text-muted); padding: var(--space-2xl) 0; font-size: var(--text-sm); }

/* ─── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Toast ────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(20, 20, 40, 0.85);
    color: var(--text);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    z-index: 2000;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
    pointer-events: none;
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(127, 90, 240, 0.1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Spinner ──────────────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center; padding: var(--space-2xl); }
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Difficulty Buttons ───────────────────────────────────── */
.difficulty-row { display: flex; gap: var(--space-sm); }
.diff-btn {
    flex: 1;
    padding: 12px var(--space-sm);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-height: 44px;
}
.diff-btn:hover { border-color: var(--primary); color: var(--text); transform: translateY(-1px); }
.diff-btn:active { transform: translateY(0); }
.diff-btn.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--text);
}
.diff-desc { font-size: var(--text-xs); font-weight: 400; color: var(--text-muted); }

/* ─── Genre Quick-Pick Chips ──────────────────────────────── */
.artist-genre-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.genre-chip {
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
    min-height: 44px;
    display: flex;
    align-items: center;
}
.genre-chip:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--surface-2);
    transform: translateY(-1px);
}
.genre-chip:active { transform: translateY(0); }
.genre-chip.loading-chip { opacity: 0.4; pointer-events: none; }

/* ─── Selected Artists (Multi-select chips) ───────────────── */
.selected-artists-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}
.artist-chip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    animation: chipIn var(--duration-normal) var(--ease-out-snap);
}
.artist-chip img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.chip-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: var(--text-base);
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color var(--duration-fast) var(--ease-out);
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chip-remove:hover { color: var(--red); }
.btn-clear-all {
    padding: 6px 14px;
    background: none;
    border: 1px dashed var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--text-xs);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}
.btn-clear-all:hover { border-color: var(--red); color: var(--red); }
@keyframes chipIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ─── Legacy Selected Artist (single, kept for compat) ────── */
.selected-artist {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius);
    margin-top: var(--space-md);
}
.selected-artist img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.selected-artist span { font-weight: 600; flex: 1; }
.btn-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: var(--space-xs) var(--space-sm);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-clear:hover { color: var(--red); }

/* ─── Streak Bar ───────────────────────────────────────────── */
.streak-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 14px;
    background: var(--surface);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    border: 1px solid var(--border);
}
.streak-bar strong { color: var(--orange); }

/* ─── Quiz Mode ────────────────────────────────────────────── */
.quiz-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px var(--space-md);
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
}
.quiz-info-card p { margin-bottom: var(--space-xs); }

.quiz-section { padding: var(--space-sm) 0; }

.quiz-timer-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}
.quiz-timer-fill {
    height: 100%;
    width: 100%;
    background: var(--green);
    border-radius: 3px;
    transition: width 0.05s linear, background var(--duration-normal) var(--ease-out);
}

.quiz-score-preview {
    text-align: center;
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: var(--text-xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    font-variant-numeric: tabular-nums;
}

.quiz-choices { display: flex; flex-direction: column; gap: var(--space-sm); }

.quiz-choice-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px var(--space-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: var(--text-sm);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--duration-normal) var(--ease-out);
    text-align: left;
    min-height: 44px;
}
.quiz-choice-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(127, 90, 240, 0.1);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(127, 90, 240, 0.15);
}
.quiz-choice-btn:active:not(:disabled) { transform: translateX(2px); }
.quiz-choice-btn:disabled { cursor: default; }

.quiz-choice-letter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border-radius: 50%;
    font-weight: 800;
    font-size: var(--text-sm);
    color: var(--primary);
    flex-shrink: 0;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.quiz-choice-info { overflow: hidden; }
.quiz-choice-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.quiz-choice-artist {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-choice-btn.quiz-correct {
    border-color: var(--green);
    background: rgba(52, 211, 153, 0.15);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.2);
    animation: correctReveal var(--duration-slow) var(--ease-out-snap);
}
.quiz-choice-btn.quiz-correct .quiz-choice-letter { background: var(--green); color: white; }
@keyframes correctReveal {
    0% { transform: scale(1); }
    30% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.quiz-choice-btn.quiz-wrong {
    border-color: var(--red);
    background: var(--red-soft);
}
.quiz-choice-btn.quiz-wrong .quiz-choice-letter { background: var(--red); color: white; }

.quiz-choice-btn.quiz-dimmed { opacity: 0.3; }

.diff-btn-quiz {
    flex: 1;
    padding: 12px var(--space-sm);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out),
                transform var(--duration-fast) var(--ease-out);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-height: 44px;
}
.diff-btn-quiz:hover { border-color: var(--primary); color: var(--text); transform: translateY(-1px); }
.diff-btn-quiz:active { transform: translateY(0); }
.diff-btn-quiz.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--text);
}

/* ─── ELO Display ──────────────────────────────────────────── */
.elo-display {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.elo-rank-icon { font-size: 28px; }
.elo-info { display: flex; flex-direction: column; }
.elo-rating {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.elo-rank-name {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ─── Daily Ladder ─────────────────────────────────────────── */
.ladder-info-card {
    background: linear-gradient(135deg, rgba(127, 90, 240, 0.12), rgba(236, 72, 153, 0.06));
    border: 1px solid rgba(127, 90, 240, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    margin-bottom: var(--space-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(127, 90, 240, 0.1);
}
.ladder-icon { font-size: 36px; margin-bottom: var(--space-sm); }
.ladder-info-card h3 {
    font-family: 'Outfit', 'DM Sans', sans-serif;
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: var(--text);
}
.ladder-info-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-xs);
}

/* ─── Practice Sub-Tabs ───────────────────────────────────── */
.practice-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-xs);
}
.practice-tab {
    flex: 1;
    padding: var(--space-sm);
    border: none;
    border-radius: 7px;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.practice-tab:hover { color: var(--text); }
.practice-tab.active { background: var(--surface-2); color: var(--text); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .logo { font-size: var(--text-base); letter-spacing: 1px; }
    .logo-img { width: 32px; height: 32px; border-radius: 8px; }
    .modal { padding: var(--space-lg) var(--space-md); }
    .result-album img { width: 64px; height: 64px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .room-code-value { font-size: var(--text-xl); }
    .difficulty-row { gap: 6px; }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    .btn { min-height: 48px; }
    .tab { min-height: 48px; }
    .genre-chip { min-height: 48px; }
    .quiz-choice-btn { min-height: 52px; }
}

/* Fine pointer hover effects only */
@media (hover: hover) and (pointer: fine) {
    .category-btn:hover { transform: translateY(-1px); }
    .diff-btn:hover { transform: translateY(-1px); }
    .diff-btn-quiz:hover { transform: translateY(-1px); }
    .genre-chip:hover { transform: translateY(-1px); }
    .quiz-choice-btn:hover:not(:disabled) { transform: translateX(4px); }
}

/* No hover support - remove hover transforms */
@media (hover: none) {
    .category-btn:hover,
    .diff-btn:hover,
    .diff-btn-quiz:hover,
    .genre-chip:hover,
    .quiz-choice-btn:hover:not(:disabled) {
        transform: none;
    }
}

/* ─── SVG Icon System ─────────────────────────────────────────────────────── */

/* Category icons in buttons */
.cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cat-icon svg {
    display: block;
}

/* Guess history icons */
.guess-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}
.guess-row.correct .guess-icon {
    color: oklch(0.72 0.19 155);
    background: oklch(0.72 0.19 155 / 0.12);
}
.guess-row.wrong .guess-icon {
    color: oklch(0.63 0.2 25);
    background: oklch(0.63 0.2 25 / 0.12);
}
.guess-row.skipped .guess-icon {
    color: oklch(0.65 0.03 260);
    background: oklch(0.65 0.03 260 / 0.1);
}

/* ELO rank icon */
.elo-rank-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.elo-rank-icon svg {
    display: block;
}

/* Badges with inline SVGs */
.badge svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
    position: relative;
    top: -1px;
}

/* Leaderboard medals */
.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    font-family: var(--font-display);
}
.medal-gold {
    background: linear-gradient(135deg, oklch(0.85 0.15 85), oklch(0.75 0.15 70));
    color: oklch(0.25 0.05 70);
}
.medal-silver {
    background: linear-gradient(135deg, oklch(0.82 0.02 260), oklch(0.7 0.02 260));
    color: oklch(0.25 0.02 260);
}
.medal-bronze {
    background: linear-gradient(135deg, oklch(0.7 0.1 55), oklch(0.58 0.1 45));
    color: oklch(0.2 0.05 45);
}

/* Ladder icon in info card */
.ladder-icon {
    color: oklch(0.75 0.15 280);
}
.ladder-icon svg {
    display: block;
}
