/* ==========================================================================
   QUIZ ROCKET — THEME MATRIX LISIBILITÉ MAXIMALE
   Sobre, lisible, PC/mobile, vidéoprojecteur/rediffusion
   ========================================================================== */

:root {
    color-scheme: light;
    --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono:
        "JetBrains Mono", "Iosevka", "Cascadia Code", "SFMono-Regular",
        Consolas, "Liberation Mono", monospace;

    /* Base light */
    --matrix-bg: #f8fafc;
    --matrix-bg-alt: #eef4f0;
    --matrix-surface: rgba(255, 255, 255, 0.92);
    --matrix-surface-hover: #f1f5f9;
    --matrix-surface-strong: #ffffff;
    --matrix-border: #d7e2db;
    --matrix-border-strong: #c2d1c7;
    --matrix-text-main: #0f172a;
    --matrix-text-muted: #475569;
    --matrix-text-soft: #5f6f63;
    --matrix-accent: #059669;
    --matrix-accent-hover: #047857;
    --matrix-accent-soft: rgba(5, 150, 105, 0.1);
    --matrix-link: #047857;
    --matrix-link-hover: #065f46;

    --code-bg: #eff1f5;
    --code-border: #cbd5e1;
    --code-selected-bg: #059669;
    --code-selected-text: #ffffff;
    --code-hover-bg: rgba(5, 150, 105, 0.12);

    --answer-red-bg: rgba(220, 38, 38, 0.06);
    --answer-red-fg: #7f1d1d;
    --answer-yellow-bg: rgba(217, 119, 6, 0.18);
    --answer-yellow-fg: #713f12;
    --answer-green-bg: rgba(5, 150, 105, 0.36);
    --answer-green-fg: #064e3b;

    --heat-1: rgba(5, 150, 105, 0.08);
    --heat-2: rgba(5, 150, 105, 0.15);
    --heat-3: rgba(5, 150, 105, 0.24);
    --heat-4: rgba(5, 150, 105, 0.36);
    --heat-5: rgba(5, 150, 105, 0.52);
    --heat-5-fg: #ffffff;

    --panel-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    --panel-shadow-strong: 0 18px 48px rgba(15, 23, 42, 0.09);
    --table-stripe: rgba(5, 150, 105, 0.035);

    /* CRT subtil par défaut */
    --crt-glow: 0;
    --crt-scanline-opacity: 0.04;
    --crt-vignette-opacity: 0.04;
    --crt-screen-opacity: 0;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --matrix-bg: #090d0a;
        --matrix-bg-alt: #0d140f;
        --matrix-surface: rgba(17, 24, 19, 0.9);
        --matrix-surface-hover: #1a241c;
        --matrix-surface-strong: #111813;
        --matrix-border: #223326;
        --matrix-border-strong: #2c4431;
        --matrix-text-main: #ecfdf5;
        --matrix-text-muted: #94a3b8;
        --matrix-text-soft: #a8b9ad;
        --matrix-accent: #10b981;
        --matrix-accent-hover: #34d399;
        --matrix-accent-soft: rgba(16, 185, 129, 0.14);
        --matrix-link: #6ee7b7;
        --matrix-link-hover: #a7f3d0;

        --code-bg: #151e17;
        --code-border: #2c4a35;
        --code-selected-bg: #10b981;
        --code-selected-text: #022c1e;
        --code-hover-bg: rgba(16, 185, 129, 0.14);

        --answer-red-bg: rgba(248, 113, 113, 0.16);
        --answer-red-fg: #fee2e2;
        --answer-yellow-bg: rgba(250, 204, 21, 0.18);
        --answer-yellow-fg: #fef3c7;
        --answer-green-bg: rgba(16, 185, 129, 0.28);
        --answer-green-fg: #d1fae5;

        --heat-1: rgba(16, 185, 129, 0.1);
        --heat-2: rgba(16, 185, 129, 0.18);
        --heat-3: rgba(16, 185, 129, 0.28);
        --heat-4: rgba(16, 185, 129, 0.42);
        --heat-5: rgba(16, 185, 129, 0.62);
        --heat-5-fg: #03140d;

        --panel-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
        --panel-shadow-strong: 0 22px 52px rgba(0, 0, 0, 0.32);
        --table-stripe: rgba(16, 185, 129, 0.045);

        --crt-glow: 0.12;
        --crt-scanline-opacity: 0.12;
        --crt-vignette-opacity: 0.12;
        --crt-screen-opacity: 0.08;
    }
}

/* Support de classes manuelles pour plus tard */
body.dark {
    color-scheme: dark;
    --matrix-bg: #090d0a;
    --matrix-bg-alt: #0d140f;
    --matrix-surface: rgba(17, 24, 19, 0.9);
    --matrix-surface-hover: #1a241c;
    --matrix-surface-strong: #111813;
    --matrix-border: #223326;
    --matrix-border-strong: #2c4431;
    --matrix-text-main: #ecfdf5;
    --matrix-text-muted: #94a3b8;
    --matrix-text-soft: #a8b9ad;
    --matrix-accent: #10b981;
    --matrix-accent-hover: #34d399;
    --matrix-accent-soft: rgba(16, 185, 129, 0.14);
    --matrix-link: #6ee7b7;
    --matrix-link-hover: #a7f3d0;
    --code-bg: #151e17;
    --code-border: #2c4a35;
    --code-selected-bg: #10b981;
    --code-selected-text: #022c1e;
    --code-hover-bg: rgba(16, 185, 129, 0.14);
    --answer-red-bg: rgba(248, 113, 113, 0.16);
    --answer-red-fg: #fee2e2;
    --answer-yellow-bg: rgba(250, 204, 21, 0.18);
    --answer-yellow-fg: #fef3c7;
    --answer-green-bg: rgba(16, 185, 129, 0.28);
    --answer-green-fg: #d1fae5;
    --heat-1: rgba(16, 185, 129, 0.1);
    --heat-2: rgba(16, 185, 129, 0.18);
    --heat-3: rgba(16, 185, 129, 0.28);
    --heat-4: rgba(16, 185, 129, 0.42);
    --heat-5: rgba(16, 185, 129, 0.62);
    --heat-5-fg: #03140d;
    --panel-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
    --panel-shadow-strong: 0 22px 52px rgba(0, 0, 0, 0.32);
    --table-stripe: rgba(16, 185, 129, 0.045);
    --crt-glow: 0.12;
    --crt-scanline-opacity: 0.12;
    --crt-vignette-opacity: 0.12;
    --crt-screen-opacity: 0.08;
}

body.projector-mode {
    color-scheme: light;
    --matrix-bg: #ffffff;
    --matrix-bg-alt: #f8fafc;
    --matrix-surface: #ffffff;
    --matrix-surface-hover: #f8fafc;
    --matrix-surface-strong: #ffffff;
    --matrix-border: #000000;
    --matrix-border-strong: #000000;
    --matrix-text-main: #000000;
    --matrix-text-muted: #1e293b;
    --matrix-text-soft: #334155;
    --matrix-accent: #006644;
    --matrix-accent-hover: #004e34;
    --matrix-accent-soft: rgba(0, 102, 68, 0.1);
    --matrix-link: #004e34;
    --matrix-link-hover: #003623;
    --code-bg: #f8fafc;
    --code-border: #000000;
    --code-selected-bg: #000000;
    --code-selected-text: #ffffff;
    --code-hover-bg: rgba(0, 0, 0, 0.08);
    --panel-shadow: none;
    --panel-shadow-strong: none;
    --table-stripe: rgba(0, 0, 0, 0.035);
    --crt-glow: 0;
    --crt-scanline-opacity: 0;
    --crt-vignette-opacity: 0;
    --crt-screen-opacity: 0;
}

body.projector-mode.dark {
    color-scheme: dark;
    --matrix-bg: #000000;
    --matrix-bg-alt: #020202;
    --matrix-surface: #000000;
    --matrix-surface-hover: #06110a;
    --matrix-surface-strong: #000000;
    --matrix-border: #33ff88;
    --matrix-border-strong: #33ff88;
    --matrix-text-main: #ffffff;
    --matrix-text-muted: #e2e8f0;
    --matrix-text-soft: #e5f7eb;
    --matrix-accent: #00ff66;
    --matrix-accent-hover: #66ff9f;
    --matrix-accent-soft: rgba(0, 255, 102, 0.15);
    --matrix-link: #8cffbf;
    --matrix-link-hover: #c8ffdf;
    --code-bg: #050505;
    --code-border: #33ff88;
    --code-selected-bg: #00ff66;
    --code-selected-text: #000000;
    --code-hover-bg: rgba(0, 255, 102, 0.12);
    --panel-shadow: none;
    --panel-shadow-strong: none;
    --table-stripe: rgba(51, 255, 136, 0.06);
    --crt-glow: 0;
    --crt-scanline-opacity: 0;
    --crt-vignette-opacity: 0;
    --crt-screen-opacity: 0;
}

html {
    font-family: var(--font-sans);
    font-size: clamp(16px, 0.95rem + 0.2vw, 19px);
    line-height: 1.5;
    background: var(--matrix-bg);
    color: var(--matrix-text-main);
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            rgba(16, 185, 129, 0.06),
            transparent 38%
        ),
        linear-gradient(180deg, var(--matrix-bg-alt) 0%, var(--matrix-bg) 100%);
    color: var(--matrix-text-main);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.012), transparent 22%),
        repeating-linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.02) 0 1px,
            rgba(0, 0, 0, 0) 1px 4px
        );
    mix-blend-mode: soft-light;
    opacity: var(--crt-screen-opacity);
}

body > form,
body > main {
    width: min(1120px, calc(100vw - 2rem));
    margin: 0 auto;
}

body > form {
    margin-top: min(9vh, 4rem);
    padding: 1.25rem;
    background: var(--matrix-surface);
    border: 1px solid var(--matrix-border);
    border-radius: 1rem;
    box-shadow: var(--panel-shadow-strong);
}

main {
    padding: 1.25rem 0 3rem;
    display: grid;
    gap: 1rem;
}

section,
#current-state,
#state-feedback {
    background: var(--matrix-surface);
    border: 1px solid var(--matrix-border);
    border-radius: 1rem;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(4px);
}

section {
    padding: 1.1rem 1.25rem;
}

#current-state,
#state-feedback {
    padding: 0.95rem 1.1rem;
}

#current-state {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--matrix-accent);
}

#state-feedback {
    color: var(--matrix-text-muted);
}

#state-feedback:empty {
    display: none;
}

h1,
h2 {
    margin: 0 0 0.85rem;
    line-height: 1.12;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
    color: var(--matrix-text-main);
}

h2 {
    font-size: clamp(1.1rem, 1rem + 0.9vw, 1.6rem);
    color: var(--matrix-text-main);
}

p {
    margin: 0 0 0.9rem;
}

main > p {
    margin: 0;
}

main > p > a {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--matrix-text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--matrix-border);
    padding-bottom: 0.15rem;
    margin-bottom: 0.25rem;
}

main > p > a:hover,
main > p > a:focus-visible {
    color: var(--matrix-accent);
    border-color: var(--matrix-accent);
}

a {
    color: var(--matrix-link);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
    color: var(--matrix-link-hover);
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 650;
    color: var(--matrix-text-main);
}

input,
select,
button {
    font: inherit;
}

input[type="text"],
input[type="password"],
select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0.78rem 0.92rem;
    border: 1px solid var(--matrix-border);
    border-radius: 0.8rem;
    background: var(--matrix-surface-strong);
    color: var(--matrix-text-main);
    transition:
        border-color 120ms ease,
        box-shadow 120ms ease,
        background-color 120ms ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--matrix-accent);
    box-shadow: 0 0 0 0.22rem var(--matrix-accent-soft);
}

input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0 0.45rem 0 0;
    vertical-align: -0.12em;
    accent-color: var(--matrix-accent);
}

input[type="checkbox"] + label {
    display: inline;
    font-weight: 600;
}

button {
    cursor: pointer;
    border: 1px solid var(--matrix-border);
    border-radius: 0.8rem;
    padding: 0.72rem 1rem;
    background: linear-gradient(
        180deg,
        var(--matrix-surface-strong) 0%,
        var(--matrix-surface-hover) 100%
    );
    color: var(--matrix-text-main);
    font-weight: 700;
    transition:
        transform 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease,
        background-color 120ms ease;
}

button:hover,
button:focus-visible {
    border-color: var(--matrix-accent);
    box-shadow: 0 0 0 0.22rem var(--matrix-accent-soft);
}

button:active {
    transform: translateY(1px);
}

form {
    display: grid;
    gap: 0.85rem;
}

#micro-place-fields {
    display: none;
    padding: 0.95rem 1rem;
    border: 1px solid var(--matrix-border);
    border-radius: 0.85rem;
    background: var(--matrix-surface-hover);
}

#micro:checked ~ #micro-place-fields {
    display: block;
}

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--matrix-border);
    padding-bottom: 1rem;
    margin-bottom: 1.3rem;
}

.question-meta h2 {
    margin: 0;
}

.question-meta p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background: var(--matrix-surface-hover);
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--matrix-border);
    margin: 0;
    color: var(--matrix-text-muted);
}

.question-meta img {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    border-radius: 0.4rem;
}

.question-answer-meta {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-left: 0.28rem solid var(--matrix-accent);
    border-radius: 0.75rem;
    background: var(--matrix-surface-hover);
}

.question-answer-meta p:last-child {
    margin-bottom: 0;
}

.question-answer-meta strong {
    color: var(--matrix-accent);
}

.question-code {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.question-code-dark {
    display: none;
}

.question-code-light {
    display: block;
}

@media (prefers-color-scheme: dark) {
    .question-code-dark {
        display: block;
    }

    .question-code-light {
        display: none;
    }
}

body.dark .question-code-dark,
body.projector-mode.dark .question-code-dark {
    display: block;
}

body.dark .question-code-light,
body.projector-mode.dark .question-code-light {
    display: none;
}

.question-code pre {
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 1.35rem 1.4rem;
    overflow: auto;
    border-radius: 0.6rem;
    border: 1px solid var(--code-border);
    background-color: var(--code-bg) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(5, 150, 105, 0.03),
        var(--panel-shadow);
    font-family: var(--font-mono);
    font-size: clamp(0.88rem, 0.84rem + 0.2vw, 1rem);
    line-height: 1.62;
    tab-size: 4;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: 0 0 0.18rem rgba(16, 185, 129, var(--crt-glow));
}

@media (max-width: 640px) {
    .question-code pre {
        font-size: 0.75rem;
    }
}

.question-code pre::before,
.question-code pre::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.question-code pre::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04),
        transparent 16%,
        transparent 84%,
        rgba(0, 0, 0, 0.08)
    );
    mix-blend-mode: soft-light;
    opacity: var(--crt-vignette-opacity);
}

.question-code pre::after {
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05) 0 1px,
        rgba(0, 0, 0, 0) 1px 4px
    );
    mix-blend-mode: multiply;
    opacity: var(--crt-scanline-opacity);
}

#quizz-stream,
#scores-stream,
#scoreboard {
    overflow-x: auto;
}

#quizz[data-mode="starting"],
#quizz[data-mode="end"] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--matrix-text-muted);
}

#scoreboard {
    margin-top: 0.2rem;
    background: var(--matrix-surface);
    border: 1px solid var(--matrix-border);
    border-radius: 0.75rem;
    padding: 1.2rem;
}

#scoreboard h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: var(--matrix-text-main);
}

#scoreboard table {
    width: 100%;
    min-width: 32rem;
    border-collapse: separate;
    border-spacing: 0;
}

#scoreboard th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--matrix-text-muted);
    border-bottom: 2px solid var(--matrix-border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#scoreboard td {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--matrix-border);
}

#scoreboard tbody td:not(:nth-child(2)) {
    font-family: var(--font-mono);
}

#scoreboard tbody tr:nth-child(odd) {
    background: var(--table-stripe);
}

#scoreboard tbody tr:hover {
    background: var(--matrix-surface-hover);
}

#scoreboard tbody tr.current-user td {
    font-weight: 700;
    color: var(--matrix-accent);
}

@media (max-width: 768px) {
    body > form,
    body > main {
        width: min(100vw - 1rem, 100%);
    }

    body > form {
        margin-top: 0.75rem;
        padding: 1rem;
    }

    main {
        padding: 0.75rem 0 1.75rem;
        gap: 0.8rem;
    }

    section,
    #current-state,
    #state-feedback,
    #scoreboard {
        padding: 0.95rem;
        border-radius: 0.85rem;
    }

    .question-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .question-code pre {
        padding: 1rem;
        font-size: 0.86rem;
        line-height: 1.55;
    }

    #scoreboard table {
        min-width: 26rem;
    }
}

/* Podium Styles */
.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    height: 400px;
    margin-bottom: 2rem;
}
.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.podium-bar {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(180deg, var(--matrix-accent) 0%, var(--matrix-bg-alt) 100%);
    border: 2px solid var(--matrix-border);
    border-bottom: none;
}
.first .podium-bar { height: 300px; background: linear-gradient(180deg, #fbbf24 0%, var(--matrix-accent) 100%); }
.second .podium-bar { height: 200px; background: linear-gradient(180deg, #94a3b8 0%, var(--matrix-accent) 100%); }
.third .podium-bar { height: 120px; background: linear-gradient(180deg, #92400e 0%, var(--matrix-accent) 100%); }

.rank {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.crown {
    position: absolute;
    top: -2.5rem;
    font-size: 3rem;
}
.podium-info {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
}
.name {
    font-weight: 700;
    font-size: 1.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}
.score {
    font-family: var(--font-mono);
    color: var(--matrix-accent);
    font-weight: bold;
}

/* Intro Page Styles */
.intro-page {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    overflow: hidden;
}
.intro-header {
    margin-bottom: 2rem;
    text-align: center;
}
.intro-header h1 {
    font-size: 3.5rem;
    margin: 0;
    background: var(--matrix-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}
.intro-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1600px;
}
.auto-size {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: var(--panel-shadow-strong);
    border: 1px solid var(--matrix-border);
}
.intro-center {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.pill-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--matrix-surface);
    border: 2px solid var(--matrix-border);
    border-radius: 1.5rem;
    box-shadow: var(--panel-shadow);
}
.pill-icon {
    font-size: 3rem;
}
.pill-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}
.pill-text p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--matrix-text-muted);
}
.blue-pill {
    border-color: #3b82f6;
}
.red-pill {
    border-color: #ef4444;
}
.intro-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.qr-label {
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--matrix-accent);
}

/* Outro Page Styles */
.outro-page {
    width: min(1200px, calc(100vw - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
    text-align: center;
}
.outro-header h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}
.subtitle {
    font-size: 1.5rem;
    color: var(--matrix-text-muted);
    margin-bottom: 3rem;
}
.outro-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}
.card {
    background: var(--matrix-surface);
    border: 2px solid var(--matrix-border);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--panel-shadow-strong);
}
.feedback-qr {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 1rem;
    margin: 1.5rem 0;
}
.other-scores {
    background: var(--matrix-surface);
    border: 1px solid var(--matrix-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: left;
}
.other-scores ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.other-scores li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--matrix-border-strong);
}
.other-rank { font-family: var(--font-mono); color: var(--matrix-text-muted); width: 3rem; }
.other-name { flex: 1; font-weight: 600; }
.other-score { font-family: var(--font-mono); font-weight: bold; color: var(--matrix-accent); }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
