/* NextFest — dark utility theme
   Composition: dense, technical, border-led. Color does work; decoration does not. */

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

:root {
    /* Surfaces — true near-black with a whisper of warm chroma */
    --bg-page: #0a0a0c;
    --bg-panel: #111114;
    --bg-row: #131316;
    --bg-row-hover: #1a1a1f;
    --bg-input: #0e0e11;

    /* Lines */
    --line: #232328;
    --line-strong: #34343c;

    /* Text */
    --text: #e8e8ec;
    --text-dim: #8e8e96;
    --text-faint: #56565e;

    /* Accent — semantic amber for interactive moments. */
    --accent: #f0b34a;
    --accent-dim: #8a6624;
    --accent-glow: rgba(240, 179, 74, 0.18);

    /* Brand teal — used only for identity (logo mark, section nav). Whispers, never shouts. */
    --brand: #5fc8c4;
    --brand-glow: rgba(95, 200, 196, 0.14);

    /* Section state tints — used as 2px left rules and faint table top borders. */
    --tint-playing: #4ade80;
    --tint-unplayed: #8e8e96;
    --tint-played: #60a5fa;
    --tint-skipped: #f472b6;

    /* Status — four roles, each does its job */
    --status-playing: #4ade80;
    --status-unplayed: #8e8e96;
    --status-played: #60a5fa;
    --status-skip: #f59e0b;

    /* Errors reuse accent (amber), success reuses playing green */
    --error: #f87171;

    /* Type */
    --font-ui: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

    /* Geometry — sharp by default, 2px radius only on inputs and small controls */
    --radius-control: 2px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-page);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    font-feature-settings: 'cv11', 'ss01';
}

/* Links: only colored on hover, underline removed. The cursor carries the affordance. */
a {
    color: var(--text);
    text-decoration: none;
    transition: color 120ms ease-out;
}

a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ─── Focus ring — 2px amber, 2px offset. Visible on every interactive element. */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ─── Buttons: text + border. No fill except the primary action. */
button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    background-color: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 120ms ease-out, color 120ms ease-out, background-color 120ms ease-out;
    text-decoration: none;
    min-height: 32px;
}

button:hover,
.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: transparent;
}

button:active,
.btn:active {
    background-color: rgba(232, 169, 58, 0.08);
}

button:disabled,
.btn:disabled {
    color: var(--text-faint);
    border-color: var(--line);
    text-decoration: line-through;
    cursor: not-allowed;
}

button:disabled:hover,
.btn:disabled:hover {
    color: var(--text-faint);
    border-color: var(--line);
    background-color: transparent;
}

.btn-primary {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(232, 169, 58, 0.06);
}

.btn-primary:hover {
    background-color: rgba(232, 169, 58, 0.12);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-danger {
    border-color: var(--error);
    color: var(--error);
}

.btn-danger:hover {
    background-color: rgba(248, 113, 113, 0.1);
    color: var(--error);
    border-color: var(--error);
}

.btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-height: 26px;
}

/* ─── Inputs: full-width, 1px border, sharp corners, 2px radius */
input,
textarea,
select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background-color: var(--bg-input);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: border-color 120ms ease-out;
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--line-strong);
}

textarea {
    resize: vertical;
    min-height: 4.5rem;
    font-family: var(--font-ui);
}

/* ─── Header — border-bottom bar, no fill */
header {
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--line);
    padding: 0.875rem 0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

header h1 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

header h1 a {
    color: var(--text);
}

header h1 a:hover {
    color: var(--accent);
}

header h1 .mark {
    color: var(--brand);
    text-shadow: 0 0 12px var(--brand-glow);
    margin-right: 0.25rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#user-display {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-right: 0.25rem;
}

/* ─── Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3rem;
}

/* ─── Section header — flush rule, no card */
.section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 4rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.section-head h2 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    border: none;
    padding: 0;
    margin: 0;
}

.section-head .count {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-faint);
}

/* Legacy h2 fallback for any page that still uses the old markup shape */
.section > h2 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

/* ─── Tables — the surface of the product. Sharp corners, no shadow, hairline rules. */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    font-size: 0.875rem;
}

thead {
    background-color: var(--bg-row);
}

th {
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}

td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background-color 120ms ease-out;
}

tbody tr:hover td {
    background-color: var(--bg-row-hover);
}

/* Image column — 120px, hugs the 120×45 thumbnail (durable decision) */
th.col-image,
td.col-image {
    width: 120px;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.game-image {
    width: 120px;
    height: 45px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.game-image-placeholder {
    display: inline-block;
    width: 120px;
    height: 45px;
    background-color: var(--bg-row);
    border: 1px dashed var(--line-strong);
    border-radius: 0;
}

/* Submission-form banner — full-width, sharp corners (durable decision: game banners never round). */
#submit-banner-wrap {
    margin-bottom: 0.75rem;
}

.game-banner {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    border-radius: 0;
    border: 1px solid var(--line-strong);
}

/* ─── Status badges — left tick + uppercase mono. No soft fill, the tick carries the state. */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0.5rem 0.125rem 0.375rem;
    border-radius: var(--radius-control);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text-dim);
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

.status-playing {
    color: var(--status-playing);
    border-color: rgba(74, 222, 128, 0.4);
}

.status-unplayed {
    color: var(--status-unplayed);
    border-color: var(--line-strong);
}

.status-played {
    color: var(--status-played);
    border-color: rgba(96, 165, 250, 0.4);
}

.status-skip {
    color: var(--status-skip);
    border-color: rgba(245, 158, 11, 0.4);
}

/* ─── Notes — readable prose, muted when missing */
.notes {
    color: var(--text);
    line-height: 1.45;
    max-width: 38ch;
    overflow-wrap: anywhere;
}

.notes.empty {
    color: var(--text-faint);
    font-style: normal;
}

.notes.empty::before {
    content: '—';
}

/* Streamer notes textarea in the dashboard */
.streamer-notes {
    width: 100%;
    min-height: 3.25rem;
    font-size: 0.85rem;
    background-color: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    padding: 0.4rem 0.5rem;
    resize: vertical;
    font-family: var(--font-ui);
}

.streamer-notes:focus {
    border-color: var(--accent);
    outline: none;
}

/* Mono metadata: submitter handles, timestamps */
.meta,
.mono {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Adult-only indicator: hot pink "18+" badge next to the game name.
   The slot used to hold the raw Steam app id; we removed that because
   the id is business logic, not user-facing. The lewd-pink color is
   the same hot pink used on adult-site content markers. */
.adult-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ff1493;
    border: 1px solid #ff1493;
    padding: 0.05rem 0.35rem;
    margin-left: 0.4rem;
    vertical-align: 0.05em;
    text-transform: none;
}

/* Game name in a row — slight emphasis, link color inherits the row */
.game-name {
    font-weight: 600;
    color: var(--text);
}

.game-name:hover {
    color: var(--accent);
}

/* ─── Anonymous-submission UI ─── */

/* Inline label on the profile submit form, next to the anonymous checkbox */
.anon-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
}

.anon-label input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
    accent-color: var(--accent);
}

/* Visibility column on the viewer's "My Submissions" table.
   Shown only when the user has at least one 18+ submission. The
   table starts without `has-visibility`; the JS adds it once the
   API confirms the user has at least one 18+ game. The mobile
   breakpoint sets `display: block` on every `td`, so this rule
   needs `!important` to win there. */
table:not(.has-visibility) th.col-visibility,
table:not(.has-visibility) td.col-visibility {
    display: none !important;
}

/* Segmented control (Public | Anonymous) — single rounded container,
   two text buttons, the active one wears the accent. The container
   styles the boundary; each option is its own button. */
.visibility-segmented {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    overflow: hidden;
    background-color: var(--bg-input);
    transition: opacity 120ms ease-out;
}

.visibility-segmented.is-pending {
    opacity: 0.5;
    pointer-events: none;
}

.visibility-option {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    min-height: 28px;
    cursor: pointer;
    transition: background-color 120ms ease-out, color 120ms ease-out;
    white-space: nowrap;
}

.visibility-option + .visibility-option {
    border-left: 1px solid var(--line);
}

.visibility-option:hover {
    color: var(--text);
    background-color: var(--bg-row-hover);
}

.visibility-option.is-active {
    color: var(--accent);
    background-color: rgba(240, 179, 74, 0.10);
}

.visibility-option.is-active:hover {
    background-color: rgba(240, 179, 74, 0.16);
}

.visibility-option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: 0;
}

.visibility-locked {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-faint);
    cursor: not-allowed;
}

/* Read-only visibility label for interacted rows — the user can't
   change the flag, so we show a single dim word. */
.visibility-static {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Streamer dashboard badge — small, dim, low-emphasis */
.anon-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-faint);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    padding: 0.05rem 0.35rem;
    margin-left: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* OAuth provider logo — small mark beside the submitter's name in the
   "Submitted by" cell. Shown only for OAuth users (Twitch, Discord);
   local (username/password) users get no mark. The SVGs are white-on-
   transparent, sized to read as a small, clear badge against the dark
   background. Vertical alignment is the baseline of the name. */
.provider-logo {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 0.35rem;
    vertical-align: -2px;
    opacity: 0.85;
}

/* ─── Pagination — flat, no fill */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.pagination .current {
    color: var(--text);
    font-weight: 600;
    padding: 0 0.5rem;
}

/* ─── Cards — used only for forms (login/signup/submit). Sharp corners, hairline border. */
.card {
    background-color: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 1.5rem;
}

.card h2 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    border: none;
    padding: 0;
    margin: 0 0 1rem;
}

.card .card-foot {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    text-align: center;
}

.card .card-foot p {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}

/* ─── Forms */
.form-group {
    margin-bottom: 0.875rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.form-row > * {
    flex: 1;
}

.form-row > .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-row .btn {
    align-self: flex-end;
    height: 38px;
    min-height: 38px;
}

/* ─── Alerts — thin top border in the state color, no fill */
.alert {
    padding: 0.625rem 0.75rem;
    border-radius: 0;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    background-color: transparent;
    border: 1px solid var(--line);
    border-left-width: 3px;
    color: var(--text);
}

.alert-error {
    border-left-color: var(--error);
    color: var(--error);
}

.alert-success {
    border-left-color: var(--status-playing);
    color: var(--status-playing);
}

/* ─── OAuth buttons — brand-locked, no border-radius, full-width option */
.oauth-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.oauth-buttons a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-control);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid transparent;
    transition: filter 120ms ease-out;
    text-decoration: none;
    min-height: 36px;
}

.oauth-buttons a:hover {
    filter: brightness(1.15);
    text-decoration: none;
}

.oauth-twitch {
    background-color: #9146ff;
    color: #fff;
}

.oauth-twitch:hover {
    color: #fff;
}

.oauth-discord {
    background-color: #5865f2;
    color: #fff;
}

.oauth-discord:hover {
    color: #fff;
}

/* ─── Modal — sharp corners, full overlay, no shadow */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6rem 1rem 1rem;
}

.modal-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 1.5rem;
    min-width: 320px;
    max-width: 380px;
    width: 100%;
}

.modal-card .modal-label {
    text-align: center;
    color: var(--text-faint);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.modal-card hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1.25rem 0 0.75rem;
}

.modal-card .modal-divider-label {
    text-align: center;
    color: var(--text-faint);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* ─── Section nav (public homepage) — sticky in-page jump list */
.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.section-nav a {
    color: var(--text-dim);
    padding: 0.25rem 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    transition: color 120ms ease-out, border-color 120ms ease-out, background-color 120ms ease-out;
}

/* Each section-nav link hovers to the color of the section it jumps to. The link and the
   destination section share a state, so the eye gets a single signal: where am I going? */
.section-nav a[href="#section-playing"]:hover {
    color: var(--tint-playing);
    border-color: var(--tint-playing);
    background-color: rgba(74, 222, 128, 0.10);
}
.section-nav a[href="#section-unplayed"]:hover {
    color: var(--tint-unplayed);
    border-color: var(--tint-unplayed);
    background-color: rgba(142, 142, 150, 0.10);
}
.section-nav a[href="#section-played"]:hover {
    color: var(--tint-played);
    border-color: var(--tint-played);
    background-color: rgba(96, 165, 250, 0.10);
}
.section-nav a[href="#section-skipped"]:hover {
    color: var(--tint-skipped);
    border-color: var(--tint-skipped);
    background-color: rgba(244, 114, 182, 0.10);
}

/* ─── Per-section color accents — tiny dot beside section number, faint top rule on the table.
   The color carries the state, matching the status badges below. Restraint, not decoration. */
.section[data-state="playing"] .section-head h2 .num-dot { color: var(--tint-playing); }
.section[data-state="unplayed"] .section-head h2 .num-dot { color: var(--tint-unplayed); }
.section[data-state="played"] .section-head h2 .num-dot { color: var(--tint-played); }
.section[data-state="skipped"] .section-head h2 .num-dot { color: var(--tint-skipped); }

.section[data-state="playing"] table { border-top: 2px solid var(--tint-playing); }
.section[data-state="unplayed"] table { border-top: 2px solid var(--tint-unplayed); }
.section[data-state="played"] table { border-top: 2px solid var(--tint-played); }
.section[data-state="skipped"] table { border-top: 2px solid var(--tint-skipped); }

.num-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    margin-right: 0.5rem;
    vertical-align: 2px;
    box-shadow: 0 0 6px currentColor;
}

/* ─── Spinner / loading — hairline progress bar */
.spinner {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--line);
    position: relative;
    overflow: hidden;
}

.spinner::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 30%;
    background-color: var(--accent);
    animation: spinner-slide 1s ease-in-out infinite;
}

@keyframes spinner-slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner::after {
        animation: none;
        width: 100%;
        opacity: 0.4;
    }
    a, button, .btn, input, textarea, select, tbody tr {
        transition: none;
    }
}

/* ─── Empty + error states for tables */
.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.875rem;
    font-family: var(--font-mono);
    background-color: var(--bg-panel);
    border: 1px dashed var(--line);
    border-radius: 0;
}

.error-state {
    padding: 1rem;
    text-align: center;
    color: var(--error);
    font-size: 0.85rem;
    background-color: var(--bg-panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--error);
    border-radius: 0;
}

/* ─── Actions cell — wrap-friendly button stack */
td.cell-actions {
    white-space: nowrap;
}

td.cell-actions .btn + .btn {
    margin-left: 0.25rem;
}

/* ─── Submit-row specific (profile page) */
#submit-form {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background-color: var(--bg-row);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 0;
}

#submit-form p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
}

#submit-form .game-name {
    font-weight: 700;
}

/* ─── Section quick-jump (logged-in nav) */
.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-control);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

/* ─── Logout page */
.logout-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 1rem;
}

.logout-card {
    text-align: center;
    max-width: 420px;
    padding: 2rem;
}

.logout-card h2 {
    margin-bottom: 0.5rem;
    color: var(--status-playing);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    padding: 0;
}

.logout-card p {
    color: var(--text-dim);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.logout-card .countdown {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
}

/* ─── Responsive: stack the table cells into a card-like list with label prefixes */
@media (max-width: 768px) {
    .container {
        padding: 0.75rem 0.75rem 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-row .btn {
        align-self: stretch;
    }

    /* Collapse table into stacked label/value rows */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tbody tr {
        background-color: var(--bg-panel);
        border: 1px solid var(--line);
        margin-bottom: 0.5rem;
    }

    td {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 0.5rem;
        align-items: start;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid var(--line);
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        font-family: var(--font-mono);
        font-weight: 600;
        color: var(--text-faint);
        text-transform: uppercase;
        font-size: 0.65rem;
        letter-spacing: 0.08em;
        padding-top: 0.15rem;
    }

    th.col-image,
    td.col-image {
        width: auto;
    }

    td.col-image::before {
        display: none;
    }

    td.col-image {
        padding: 0.5rem 0.75rem;
        text-align: center;
    }

    .game-image,
    .game-image-placeholder {
        margin: 0 auto;
    }

    .notes {
        max-width: none;
    }

    .oauth-buttons {
        flex-direction: column;
    }

    .modal-card {
        min-width: 0;
    }
}

/* ─── Utility */
.hidden {
    display: none !important;
}

.mono-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.text-dim {
    color: var(--text-dim);
}

.text-faint {
    color: var(--text-faint);
}

