@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("/fonts/BricolageGrotesque.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* Tokens: the MovieEmoji design system (Matinee light / Cinema dark), see
   .scratch/landing-redesign/spec.md. Every pair below holds 4.5:1 for text and 3:1 for control
   borders on bg, surface and surface-alt in both themes. */
:root {
    color-scheme: light dark;
    font-family: var(--font-body);

    --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

    /* Grounds and text */
    --bg: #f6f2ea;
    --surface: #ffffff;
    --surface-alt: #efe9de;
    --ink: #1f2238;
    --ink-muted: #5b5a6b;
    --border: #e2dacb;
    --border-strong: #8f877a;

    /* Brand: marquee yellow is a fill, never text on light grounds -- text on it is on-accent. */
    --accent: #f5b82e;
    --accent-hover: #e8a512;
    --on-accent: #1f2238;
    --accent-soft: #fdf0cf;
    --link: #8a5300;
    --focus: #1f2238;

    /* The "screen": navy in both themes */
    --night: #23263f;
    --on-night: #f6f2ea;
    --on-night-muted: #b7b4c8;
    /* A spark, not a state: "new" dot, live indicator. Never errors. */
    --popcorn: #d63c32;

    /* Feedback -- color is a secondary cue only; the visible symbol + aria-label on each
       chip remain the load-bearing signal (WCAG 1.4.1, spec 8.5). Danger is orange, so it never
       reads as the popcorn brand red; losing is neutral, not an error. */
    --success: #1e7a4f;
    --success-soft: #dff2e7;
    --success-text: #12603b;
    --danger: #c2410c;
    --danger-soft: #fde6da;
    --danger-text: #9a3412;
    --neutral-soft: #ece6db;
    --neutral-text: #55525f;

    /* Party seats: always next to the nickname, darkened to 4.5:1 on surface */
    --seat-0: #e11d48;
    --seat-1: #2563eb;
    --seat-2: #15803d;
    --seat-3: #b45309;
    --seat-4: #7c3aed;
    --seat-5: #0e7490;
    --seat-6: #db2777;
    --seat-7: #4d7c0f;
    --seat-8: #c2410c;
    --seat-9: #4f46e5;
    --seat-10: #0f766e;
    --seat-11: #9333ea;
    --seat-host: #b45309;

    /* Shape */
    --radius-sm: 8px;
    --radius-control: 12px;
    --radius-poster: 14px;
    --radius-card: 20px;
    --radius-pill: 999px;

    /* Elevation: cards have no border, shadow only */
    --shadow-card: 0 1px 2px rgba(31, 34, 56, 0.05), 0 10px 30px rgba(31, 34, 56, 0.07);
    --shadow-dropdown: 0 4px 8px rgba(31, 34, 56, 0.06), 0 16px 32px rgba(31, 34, 56, 0.12);
    --shadow-poster: 0 8px 20px rgba(31, 34, 56, 0.18);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;

    /* Layout */
    --tap-target: 44px;
    --content-max: 42rem;
    --catalog-max: 65rem;

    /* Legacy names, kept as aliases so the rest of this file migrates gradually. New rules use
       the design-system names above. */
    --color-accent: var(--accent);
    --color-accent-hover: var(--accent-hover);
    --color-accent-soft: var(--accent-soft);
    --color-success: var(--success);
    --color-success-soft: var(--success-soft);
    --color-success-text: var(--success-text);
    --color-danger: var(--danger);
    --color-danger-soft: var(--danger-soft);
    --color-danger-text: var(--danger-text);
    --color-neutral: var(--neutral-text);
    --color-neutral-soft: var(--neutral-soft);
    --color-neutral-text: var(--neutral-text);
    --color-bg: var(--bg);
    --color-surface: var(--surface);
    --color-surface-alt: var(--surface-alt);
    --color-text: var(--ink);
    --color-text-muted: var(--ink-muted);
    --color-border: var(--border);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1020;
        --surface: #191b30;
        --surface-alt: #23263f;
        --ink: #f6f2ea;
        --ink-muted: #a9a6ba;
        --border: #2f3250;
        --border-strong: #6b6e8f;

        --accent-hover: #ffcb52;
        --accent-soft: #3a3016;
        --link: #f5c65a;
        --focus: #f5b82e;

        --night: #2a2d4a;
        --on-night-muted: #c3c0d3;
        --popcorn: #ff6b5e;

        --success: #4fd394;
        --success-soft: #123826;
        --success-text: #7fe3b2;
        --danger: #ff8a5b;
        --danger-soft: #3d1f14;
        --danger-text: #ffa682;
        --neutral-soft: #2a2d47;
        --neutral-text: #cdcadb;

        --seat-0: #fb7185;
        --seat-1: #60a5fa;
        --seat-2: #4ade80;
        --seat-3: #fbbf24;
        --seat-4: #a78bfa;
        --seat-5: #22d3ee;
        --seat-6: #f472b6;
        --seat-7: #a3e635;
        --seat-8: #fb923c;
        --seat-9: #818cf8;
        --seat-10: #2dd4bf;
        --seat-11: #c084fc;
        --seat-host: #fbbf24;

        --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.4);
        --shadow-dropdown: 0 4px 8px rgba(0, 0, 0, 0.35), 0 16px 32px rgba(0, 0, 0, 0.5);
        --shadow-poster: 0 8px 20px rgba(0, 0, 0, 0.5);
    }
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

* {
    box-sizing: border-box;
}

body {
    max-width: 42rem;
    margin: 0 auto;
    padding: var(--space-4);
    line-height: 1.55;
    background: var(--color-bg);
    color: var(--color-text);
}

/* Site header (templates/fragments/site.html): icon + wordmark, nav pills, "More" menu. */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-2) 0;
    margin-bottom: var(--space-5);
}

.site-brand-h1 {
    margin: 0;
    font-size: inherit;
    letter-spacing: normal;
}

/* Two classes so a page stylesheet's link colour (press.css) never repaints the wordmark. */
.site-header .site-brand,
.site-footer .site-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--tap-target);
    color: var(--ink);
    text-decoration: none;
}

.site-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.site-brand span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.site-nav a,
.nav-more summary {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-target);
    padding: 0 14px;
    border-radius: var(--radius-pill);
    color: var(--ink-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.site-nav a:hover,
.nav-more summary:hover {
    background: var(--surface-alt);
    color: var(--ink);
}

.site-nav a[aria-current="page"],
.nav-more summary.nav-more-current {
    background: var(--ink);
    color: var(--bg);
}

.nav-more {
    position: relative;
}

.nav-more summary {
    list-style: none;
}

.nav-more summary::-webkit-details-marker {
    display: none;
}

.nav-more summary::after {
    content: "▾";
    margin-left: var(--space-1);
}

.nav-more-menu {
    position: absolute;
    z-index: 20;
    right: 0;
    top: calc(100% + var(--space-1));
    display: flex;
    flex-direction: column;
    min-width: 11rem;
    padding: var(--space-1);
    background: var(--surface);
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-dropdown);
}

.site-nav .nav-more-menu a {
    border-radius: var(--radius-sm);
}

/* Phones: the nav takes its own row under the brand, and Stats moves into "More". */
.nav-wide {
    display: none !important;
}

@media (min-width: 40rem) {
    .nav-wide {
        display: inline-flex !important;
    }

    .nav-narrow {
        display: none !important;
    }
}

/* A page's own title under the header (game, answer, challenge, archive, stats). */
.page-head h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 var(--space-1);
}

.page-head .puzzle-date {
    color: var(--ink-muted);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: normal;
}

.page-head .tagline {
    margin: 0 0 var(--space-5);
    color: var(--ink-muted);
    font-size: 0.9rem;
}

main > h2 {
    margin-top: var(--space-6);
}

a {
    color: var(--link);
}

/* Site footer: brand + tagline, then Play / About / Legal columns. */
.site-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    color: var(--ink-muted);
    font-size: 0.875rem;
}

.site-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5) var(--space-4);
}

.site-footer-brand {
    grid-column: 1 / -1;
}

.site-footer-brand p {
    margin: var(--space-1) 0 0;
}

.site-footer nav {
    display: flex;
    flex-direction: column;
}

.site-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap-target);
    color: var(--ink-muted);
}

.site-footer nav a:hover {
    color: var(--ink);
}

.site-footer-heading {
    margin: 0 0 var(--space-1);
    color: var(--ink-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer-note {
    margin: var(--space-5) 0 0;
}

.site-footer-note a {
    color: var(--ink-muted);
}

a:focus-visible,
button:focus-visible,
.suggestions li:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* First-visit how-to card (app.js enhanceWelcome) */
.welcome {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--space-4) var(--space-5);
    margin: var(--space-5) 0 0;
    text-align: center;
}

.welcome h2 {
    margin: 0 0 var(--space-2);
}

.welcome p {
    margin: 0 0 var(--space-2);
}

.welcome .btn {
    margin-top: var(--space-2);
}

/* What to do, in one line, right above the puzzle */
.puzzle-prompt {
    margin: var(--space-5) 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
}

.puzzle-prompt + .emoji-card {
    margin-top: var(--space-3);
}

/* Emoji-plot hero: the design system's EmojiScreen -- the plot projected on the night "screen",
   faint sprocket holes top and bottom, the same navy in both themes. */
.emoji-card {
    position: relative;
    overflow: hidden;
    background: var(--night);
    color: var(--on-night);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--space-6) var(--space-4) var(--space-5);
    margin: var(--space-5) 0;
}

.emoji-card::before,
.emoji-card::after {
    content: "";
    position: absolute;
    left: var(--space-4);
    right: var(--space-4);
    height: 6px;
    background: radial-gradient(circle, var(--on-night) 2.5px, transparent 3px) 0 0 / 16px 6px repeat-x;
    opacity: 0.18;
}

.emoji-card::before {
    top: 10px;
}

.emoji-card::after {
    bottom: 10px;
}

.screen-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) 0 0;
    color: var(--on-night-muted);
    font-size: 0.875rem;
}

.attempt-dots {
    display: inline-flex;
    gap: 6px;
}

.attempt-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--on-night-muted);
    opacity: 0.35;
}

.attempt-dots i.used {
    background: var(--accent);
    opacity: 1;
}

.emoji-plot {
    font-size: clamp(2.25rem, 9vw, 3.5rem);
    letter-spacing: 0.2em;
    text-align: center;
    line-height: 1.3;
}

.guesses {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.guesses li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border);
}

.guess-meta {
    color: var(--color-text-muted);
    font-size: 0.8125rem;
}

.chips {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.chip {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
    background: var(--color-neutral-soft);
    color: var(--color-neutral-text);
}

.chip.chip-match {
    background: var(--color-success-soft);
    color: var(--color-success-text);
}

.chip.chip-off {
    background: var(--color-danger-soft);
    color: var(--color-danger-text);
}

/* Hints are neutral, not a match: unlocked ones filled, locked ones an outline with the lock. */
.chip.chip-hint {
    background: var(--neutral-soft);
    color: var(--ink);
}

.chip.chip-locked {
    background: transparent;
    color: var(--ink-muted);
    box-shadow: inset 0 0 0 1.5px var(--border);
}

.hints-heading {
    margin: var(--space-4) 0 var(--space-2);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hints-heading span {
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
}

.hints {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
}

/* Guess form card */
.guess-card {
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--space-5);
    margin: var(--space-5) 0;
}

.play-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.input-row {
    position: relative;
    margin-bottom: var(--space-4);
}

.input-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
}

/* The party code keeps its own width (it sits next to the Join button). */
#party-code {
    min-height: 44px;
    padding: 0.5rem var(--space-3);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

#party-code:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

#rawText,
#nickname,
#party-guess {
    width: 100%;
    font-size: 1rem;
    min-height: 44px;
    padding: 0.75rem var(--space-3);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-control);
    background: var(--color-surface);
    color: var(--color-text);
}

#rawText:focus,
#nickname:focus,
#party-guess:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.input-hint {
    margin: var(--space-2) 0 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.suggestions {
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
    list-style: none;
    margin: var(--space-1) 0 0;
    padding: var(--space-1);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-dropdown);
    max-height: 14rem;
    overflow-y: auto;
}

.suggestions li {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.625rem var(--space-3);
    border-radius: 0.5rem;
    cursor: pointer;
}

.suggestions li:hover,
.suggestions li[aria-selected="true"] {
    background: var(--color-accent-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.625rem var(--space-5);
    border-radius: var(--radius-control);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--color-surface-alt);
}

/* Reveal / result panel */
.reveal {
    margin-top: var(--space-6);
    padding: var(--space-5);
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.reveal h2 {
    margin-top: 0;
}

.reveal-outcome {
    margin: 0 0 var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-control);
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
}

.reveal-outcome-won {
    background: var(--success-soft);
    color: var(--success-text);
}

/* Losing is neutral, not an error. */
.reveal-outcome-lost {
    background: var(--neutral-soft);
    color: var(--neutral-text);
}

/* Ticket 11: a badge this play just earned, right under the outcome. */
.reveal-badge {
    margin: 0 0 var(--space-3);
    text-align: center;
}

.reveal-badge-condition {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.emoji-plot-full-label {
    margin: var(--space-3) 0 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    text-align: center;
}

.emoji-plot-full {
    font-size: 1.5rem;
    text-align: center;
    margin: var(--space-1) 0 var(--space-3);
}

/* Share card (game.html): right under the result, so a winner sees it before the breakdown. */
.share-card {
    margin: var(--space-4) 0 var(--space-5);
    padding: var(--space-4);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
    text-align: center;
}

.share-heading {
    margin: 0 0 var(--space-3);
    font-size: 1.125rem;
}

/* The share text styled as the chat message friends will receive, not as code. */
.share-preview {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-2) var(--space-3);
    border-radius: 1rem 1rem 1rem 0.25rem;
    background: var(--color-accent-soft);
    color: var(--color-text);
    font-size: 1.125rem;
    line-height: 1.5;
    text-align: left;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.share-note {
    margin: var(--space-2) 0 var(--space-3);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.share-main {
    width: 100%;
    max-width: 22rem;
    font-size: 1.0625rem;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.share-or {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem var(--space-4);
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.share-link:hover {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

.player-stats {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.stats-heading {
    margin: 0 0 var(--space-3);
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-text-muted);
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
    font-size: 1.75rem;
}

/* .scratch/beat-me: challenges */
.challenge-card {
    margin: var(--space-5) 0 0;
    text-align: center;
}

.challenge-card h2 {
    margin: 0 0 var(--space-2);
}

.challenge-score {
    margin: 0;
}

.challenge {
    margin: var(--space-4) 0;
    text-align: center;
}

.challenge-vs {
    margin: 0 0 var(--space-1);
    font-size: 1.125rem;
}

.challenge-verdict {
    margin: 0 0 var(--space-3);
    font-weight: 700;
}

.challenge-create {
    margin: var(--space-3) 0;
    text-align: center;
}

.challenge-play {
    display: block;
    margin: var(--space-4) auto;
    max-width: 20rem;
    text-align: center;
}

.challenge-list {
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
}

.challenge-list li {
    margin: 0 0 var(--space-2);
}

.nickname-form #nickname {
    width: auto;
    flex: 1 1 12rem;
    max-width: 18rem;
}

.nickname-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-3) 0;
}

/* .scratch/google-sign-in: the /account page */
.account {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.account-note {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.account-action {
    display: inline-block;
    margin: 0 var(--space-1) var(--space-2);
}

/* Google's sign-in button guidelines: white, the multicolour G, "Sign in with Google". */
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: #fff;
    color: #1f1f1f;
    border: 1px solid #747775;
}

.stats-empty {
    margin: var(--space-4) 0;
    text-align: center;
}

.stats-more {
    margin: var(--space-3) 0 0;
    text-align: center;
}

/* Ticket 12: every badge on /stats -- earned in full colour with its date, locked ones dimmed. */
.badge-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
}

.badge-card {
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    text-align: center;
}

.badge-card-icon {
    display: block;
    font-size: 2rem;
}

.badge-card-title {
    display: block;
    font-weight: 700;
}

.badge-card-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.badge-card-locked {
    background: var(--color-neutral-soft);
}

.badge-card-locked .badge-card-icon {
    filter: grayscale(1);
    opacity: 0.45;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
    text-align: center;
}

.stats-grid > div {
    padding: var(--space-3) var(--space-1);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
}

.stats-grid dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.stats-grid dt {
    font-size: 0.75rem;
    line-height: 1.2;
    color: var(--color-text-muted);
}

.dist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 4px;
}

.dist-label {
    flex: none;
    width: 1ch;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dist-bar {
    box-sizing: border-box;
    min-width: 1.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--neutral-soft);
    color: var(--neutral-text);
    font-weight: 700;
    font-size: 0.875rem;
    text-align: right;
}

.dist-today .dist-bar {
    background: var(--accent);
    color: var(--on-accent);
}

.dist-w-1 { width: 5%; }
.dist-w-2 { width: 10%; }
.dist-w-3 { width: 15%; }
.dist-w-4 { width: 20%; }
.dist-w-5 { width: 25%; }
.dist-w-6 { width: 30%; }
.dist-w-7 { width: 35%; }
.dist-w-8 { width: 40%; }
.dist-w-9 { width: 45%; }
.dist-w-10 { width: 50%; }
.dist-w-11 { width: 55%; }
.dist-w-12 { width: 60%; }
.dist-w-13 { width: 65%; }
.dist-w-14 { width: 70%; }
.dist-w-15 { width: 75%; }
.dist-w-16 { width: 80%; }
.dist-w-17 { width: 85%; }
.dist-w-18 { width: 90%; }
.dist-w-19 { width: 95%; }
.dist-w-20 { width: 100%; }


/* Archive list */
.archive-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.archive-list li a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--color-text);
}

.archive-list .emoji-plot {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    margin: 0;
}

.archive-answer {
    color: var(--color-text-muted);
}

/* Row status (playable-archive ticket 04): the label carries the meaning, color only echoes it. */
.archive-status {
    margin-left: auto;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.archive-status-play,
.archive-status-continue {
    background: var(--accent);
    color: var(--on-accent);
}

.archive-status-won {
    background: var(--color-success-soft);
    color: var(--color-success-text);
}

.archive-status-lost {
    background: var(--color-danger-soft);
    color: var(--color-danger-text);
}

.archive-status-locked {
    background: var(--color-neutral-soft);
    color: var(--color-neutral-text);
}

.archive-list li a.archive-row-locked {
    opacity: 0.7;
    cursor: default;
}

.archive-pages {
    display: flex;
    justify-content: space-between;
    margin: var(--space-5) 0;
}

/* Trailer block (.scratch/youtube-trailer). Responsive 16:9; the whole preview is the tap target. */
.trailer {
    margin: var(--space-4) 0;
}

.trailer-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--color-text);
    border-radius: var(--radius-control);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.trailer-play {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.trailer-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* hqdefault is 4:3 with letterbox bars; crop them in the 16:9 frame */
    display: block;
}

.trailer-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 1.5rem;
}

.trailer-play:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

.trailer-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.trailer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

@media (min-width: 640px) {
    body {
        padding: var(--space-6) var(--space-4);
    }

    .emoji-card {
        padding: var(--space-8) var(--space-6);
    }

    .guess-card,
    .reveal {
        padding: var(--space-6);
    }

    .page-head h1 {
        font-size: 1.75rem;
    }
}

/* Answer page: question heading + one-sentence direct answer first (marketing plan §5.2). */
.answer-question {
    font-size: 1.1rem;
    margin: 1rem 0 0.25rem;
}

.answer-lead {
    margin: 0 0 1rem;
}

/* Spec 12.4: client-only spoiler shield on /puzzle/{date} (app.js enhanceAnswerSpoilerShield). */
.spoiler-blurred {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.spoiler-shield {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.spoiler-shield p {
    flex-basis: 100%;
    margin: 0;
}

/* One-shot win confetti (app.js celebrateWin); never intercepts taps. */
.confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* "What's next" on the daily Reveal: the night "screen" card, accent countdown, accent archive
   button. Same colours in light and dark themes -- it's a brand surface. */
.whats-next {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border-radius: var(--radius-card);
    background: var(--night);
    color: var(--on-night);
    text-align: center;
}

.next-puzzle-caption {
    display: block;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.next-puzzle-label {
    display: block;
    margin-top: var(--space-1);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.next-puzzle-link {
    display: inline-block;
    margin-top: var(--space-2);
    color: var(--accent);
    font-weight: 700;
}

/* display: block/inline-block above would otherwise beat the hidden attribute app.js toggles. */
.next-puzzle-label[hidden],
.next-puzzle-link[hidden] {
    display: none;
}

.archive-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-control);
    /* Outlined, not yellow: Share result is this screen's one yellow action. */
    border: 1.5px solid var(--on-night-muted);
    color: var(--on-night);
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.archive-cta:hover {
    background: rgb(246 242 234 / 0.08);
}

.archive-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.archive-cta-count {
    flex: none;
    padding: 2px var(--space-2);
    border-radius: var(--radius-pill);
    background: var(--on-night);
    color: var(--night);
    font-size: 0.8125rem;
}

.archive-cta-count::after {
    content: " \2192";
}

/* PWA install offer on the Reveal (app.js maybeOfferInstall), from the 3rd finished game. */
.install-offer {
    margin-top: var(--space-4);
    padding: var(--space-3);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-control);
    text-align: center;
}

.install-offer-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    text-align: left;
}

.install-offer-head p {
    margin: 0;
}

.install-offer-icon {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 11px;
}

.install-share-glyph {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
}

.install-offer .btn {
    margin: 0 var(--space-1);
}

/* Error page (templates/error.html) */
.error-page {
    margin: var(--space-6) 0;
    text-align: center;
}

.error-emoji {
    margin: 0 0 var(--space-3);
    font-size: 3rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.error-actions .btn {
    text-decoration: none;
}

.error-code {
    margin-top: var(--space-5);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Phase 3 ticket 05: movie catalog (/movies, /movies/{slug}). An "emoji poster" is the movie's
   emoji plot on its poster_bg_hex (ADR 0001 palette; one class per color, the CSP bans inline
   styles), in a movie-poster 2:3 frame. */
.poster {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    row-gap: 0.15em;
    aspect-ratio: 3 / 4;
    padding: 10% 8%;
    border-radius: var(--radius-control);
    box-shadow: 0 6px 18px rgb(15 23 42 / 0.18), inset 0 0 0 1px rgb(255 255 255 / 0.08);
    font-size: 1.5rem;
    line-height: 1.2;
    background-image: linear-gradient(160deg, rgb(255 255 255 / 0.14), rgb(0 0 0 / 0.18));
}

/* Three emoji per row: 5 read as 3 + 2, 7 as 3 + 3 + 1 -- never a lone wrap at the edge. */
.poster > span {
    flex: 0 0 33.3%;
    text-align: center;
}

.poster-c0 { background-color: #2B2E4A; }
.poster-c1 { background-color: #4C6A92; }
.poster-c2 { background-color: #6B4E71; }
.poster-c3 { background-color: #8E4162; }
.poster-c4 { background-color: #B5525C; }
.poster-c5 { background-color: #C97B4A; }
.poster-c6 { background-color: #D9A441; }
.poster-c7 { background-color: #7A8B4E; }
.poster-c8 { background-color: #4E8073; }
.poster-c9 { background-color: #3C6E71; }
.poster-c10 { background-color: #6D5D8A; }
.poster-c11 { background-color: #9C7A5B; }

.poster-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5) var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.poster-grid-large,
.poster-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.poster-grid-large .poster {
    font-size: 2rem;
}

.poster-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    color: var(--color-text);
    text-decoration: none;
}

.poster-card .poster {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.poster-card:hover .poster {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.24);
}

.poster-title {
    margin-top: var(--space-2);
    font-weight: 700;
    line-height: 1.3;
}

.poster-year {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.section-heading {
    margin: var(--space-6) 0 var(--space-4);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.movies-hero {
    margin: var(--space-2) 0 var(--space-4);
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-card);
    background: var(--night);
    color: var(--on-night);
    text-align: center;
}

.movies-hero h2 {
    margin: 0 0 var(--space-2);
    font-size: 2rem;
}

.movies-hero p {
    margin: 0 0 var(--space-4);
    color: var(--on-night-muted);
}

.movies-hero strong {
    color: var(--accent);
}

.crumbs {
    margin: var(--space-4) 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.crumbs a {
    color: var(--color-text-muted);
}

.movie-head {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) 1fr;
    gap: var(--space-5);
    align-items: center;
}

.poster-hero {
    font-size: 2.25rem;
}

.movie-head h2 {
    margin: 0 0 var(--space-2);
    font-size: 1.75rem;
    line-height: 1.2;
}

.movie-genres {
    margin: 0 0 var(--space-2);
    color: var(--color-text-muted);
    font-weight: 600;
}

.movie-puzzle {
    margin: 0;
    font-size: 0.9375rem;
}

.movie-cta {
    margin: var(--space-6) 0;
    padding: var(--space-5);
    border-radius: var(--radius-card);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    text-align: center;
}

.movie-cta p {
    margin: 0 0 var(--space-3);
    font-weight: 600;
}

.see-all {
    margin-top: var(--space-4);
    text-align: right;
}

@media (max-width: 30rem) {
    .poster-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4) var(--space-3);
    }

    .poster {
        font-size: 1.125rem;
    }

    .poster-title {
        font-size: 0.875rem;
    }

    .poster-year {
        font-size: 0.8125rem;
    }

    /* Latest: a swipeable row of big posters instead of a second tall grid. */
    .poster-grid-large {
        display: flex;
        overflow-x: auto;
        gap: var(--space-4);
        scroll-snap-type: x mandatory;
        padding-bottom: var(--space-2);
    }

    .poster-grid-large > li {
        flex: 0 0 62%;
        scroll-snap-align: start;
    }

    .poster-grid-large .poster {
        font-size: 2rem;
    }

    .poster-grid-large .poster-title {
        font-size: 1rem;
    }

    .movie-head {
        grid-template-columns: 8rem 1fr;
        gap: var(--space-4);
    }

    .poster-hero {
        font-size: 1.5rem;
    }

    .movie-head h2 {
        font-size: 1.375rem;
    }
}

/* Phase 3 ticket 06: hubs (/genre/{slug}, /decade/{slug}) and their roots (/genres, /decades).
   A hub tile is a colored band (icon, name, count) over a fan of three mini puzzle posters;
   a hub page is a grid of puzzle posters with the archive's Play/Won/Locked chip. */
.hub-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    color: var(--color-text);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hub-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dropdown);
}

.hub-tile-band {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-3);
    align-items: center;
    padding: var(--space-4);
    color: #ffffff;
    background-image: linear-gradient(160deg, rgb(255 255 255 / 0.16), rgb(0 0 0 / 0.2));
}

.hub-tile-icon {
    grid-row: span 2;
    font-size: 2.25rem;
    line-height: 1;
}

.hub-tile-label {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.1;
}

.hub-tile-count {
    color: rgb(255 255 255 / 0.8);
    font-size: 0.8125rem;
    font-weight: 600;
}

.hub-tile-previews {
    display: flex;
    justify-content: center;
    padding: var(--space-4) var(--space-3) var(--space-4);
}

/* Fanned like a hand of cards: outer two tilted and tucked behind the middle one. */
.poster-mini {
    width: 30%;
    font-size: 0.875rem;
    padding: 8% 4%;
    box-shadow: 0 4px 10px rgb(15 23 42 / 0.2);
}

.poster-mini:nth-child(1) {
    transform: rotate(-7deg) translateX(12%);
}

.poster-mini:nth-child(2) {
    z-index: 1;
    transform: translateY(-6%);
}

.poster-mini:nth-child(3) {
    transform: rotate(7deg) translateX(-12%);
}

.hub-hero {
    margin: var(--space-2) 0 var(--space-5);
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-card);
    color: #ffffff;
    text-align: center;
    background-image: linear-gradient(160deg, rgb(255 255 255 / 0.16), rgb(0 0 0 / 0.22));
}

.hub-hero-icon {
    display: block;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.hub-hero h2 {
    margin: 0 0 var(--space-2);
    font-size: 2rem;
    line-height: 1.15;
}

.hub-hero-quiz {
    display: inline-block;
    vertical-align: middle;
    padding: 0.1em 0.55em;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--on-accent);
    font-size: 0.5em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hub-hero p {
    max-width: 34rem;
    margin: 0 auto;
    color: rgb(255 255 255 / 0.88);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5) var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    color: var(--color-text);
    text-decoration: none;
}

.hub-card .poster {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hub-card[href]:hover .poster {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgb(15 23 42 / 0.24);
}

.hub-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hub-card-number {
    color: var(--color-text-muted);
    font-weight: 700;
}

.hub-card .poster-title {
    margin-top: 0;
}

.hub-card-locked {
    opacity: 0.7;
    cursor: default;
}

.hub-answers {
    margin: var(--space-6) 0 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface);
}

.hub-answers summary {
    padding: var(--space-4) var(--space-5);
    font-weight: 700;
    cursor: pointer;
}

.hub-answers ol {
    margin: 0;
    padding: 0 var(--space-5) var(--space-4);
    list-style: none;
    columns: 2;
    column-gap: var(--space-6);
}

.hub-answers li {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-1) 0;
    break-inside: avoid;
}

.hub-answers li > span {
    min-width: 2.5rem;
    color: var(--color-text-muted);
}

.hub-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-chips a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.hub-chips a:hover {
    border-color: var(--ink);
}

.hub-chip-count {
    padding: 0 0.5em;
    border-radius: var(--radius-pill);
    background: var(--color-neutral-soft);
    color: var(--color-neutral-text);
    font-size: 0.75rem;
}

.browse-row {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-3);
}

.browse-row h4 {
    margin: 0;
    font-size: 0.9375rem;
}

.movie-hubs {
    margin: var(--space-5) 0;
}

.movie-hubs p {
    margin: 0 0 var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 30rem) {
    .hub-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .hub-tile-band {
        padding: var(--space-3);
        column-gap: var(--space-2);
    }

    .hub-tile-icon {
        font-size: 1.75rem;
    }

    .hub-tile-label {
        font-size: 1.125rem;
    }

    .poster-mini {
        font-size: 0.6875rem;
    }

    .hub-hero h2 {
        font-size: 1.5rem;
    }

    .hub-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4) var(--space-3);
    }

    .hub-card .archive-status {
        padding: 0.125rem var(--space-2);
        font-size: 0.75rem;
    }

    .hub-card-meta {
        flex-wrap: wrap;
        gap: var(--space-1);
    }

    .hub-answers ol {
        columns: 1;
    }

    .browse-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
}

/* Phase 3 ticket 07: the answer page's previous/next finalized day. */
.day-nav {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    margin: var(--space-5) 0 0;
    font-weight: 600;
}

.day-nav-next {
    margin-left: auto;
}

/* .scratch/party-tv: the TV screen -- read from a sofa: the design system's night screen, big
   type sized to the screen, everything inside a 5% safe zone (TVs crop the edges). A mirrored
   host phone (.party-mirror-body) is the same screen. The night ground is navy in both themes, so
   the seats always take their bright (Cinema) colours here, and grounds on it are a light wash. */
.party-tv-body,
.party-mirror-body {
    --tv-wash: rgba(246, 242, 234, 0.08);
    --tv-wash-strong: rgba(246, 242, 234, 0.16);
    --seat-0: #fb7185;
    --seat-1: #60a5fa;
    --seat-2: #4ade80;
    --seat-3: #fbbf24;
    --seat-4: #a78bfa;
    --seat-5: #22d3ee;
    --seat-6: #f472b6;
    --seat-7: #a3e635;
    --seat-8: #fb923c;
    --seat-9: #818cf8;
    --seat-10: #2dd4bf;
    --seat-11: #c084fc;
    --seat-host: #fbbf24;
}

.party-tv-body {
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--night);
    color: var(--on-night);
}

.party-tv {
    box-sizing: border-box;
    min-height: 100vh;
    max-width: none;
    padding: 5vh 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.party-tv section {
    width: 100%;
}

.party-tv-brand {
    margin: 0 0 2vh;
    font-family: var(--font-display);
    font-size: 4.5vh;
    font-weight: 800;
}

.party-tv-label {
    margin: 0 0 1vh;
    font-family: var(--font-display);
    font-size: 3.5vh;
    font-weight: 700;
    color: var(--on-night-muted);
}

.party-tv-lead {
    margin: 2vh 0 0;
    font-size: 4vh;
}

.party-tv .party-tv-note {
    margin: 2vh 0 0;
    font-size: 3vh;
    color: var(--on-night-muted);
}

.party-qr {
    display: block;
    width: 45vh;
    height: 45vh;
    margin: 0 auto;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-poster);
}

/* The room code: a marquee -- yellow fill, dark text (yellow is never text, ADR/spec). */
.party-code {
    display: inline-block;
    margin: 0;
    padding: 0.5vh 0.4em;
    border-radius: var(--radius-control);
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--font-display);
    font-size: 14vh;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.party-tv .party-emojis {
    margin: 2vh 0;
    font-family: var(--font-emoji);
    font-size: 16vh;
    line-height: 1.2;
}

.party-tv .party-hints {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5vh;
    font-size: 3.5vh;
}

.party-tv .party-hints li {
    padding: 0.8vh 1.2em;
    border-radius: var(--radius-pill);
    background: var(--tv-wash);
}

.party-tv .party-answer-title {
    font-family: var(--font-display);
    font-size: 9vh;
}

.party-tv .party-played {
    display: inline-block;
    margin: 0;
    text-align: left;
    font-size: 3.5vh;
}

.party-corner {
    position: fixed;
    right: 5vw;
    bottom: 5vh;
    margin: 0;
    font-size: 2.5vh;
    color: var(--on-night-muted);
}

/* Shared by the TV and the host's remote. party.js shows and hides parts with the hidden
   attribute; .btn and the flex blocks set their own display, which would otherwise win. */
.party-tv [hidden],
.party-remote [hidden] {
    display: none !important;
}

.party-emojis {
    margin: var(--space-3) 0;
    font-size: 3rem;
    text-align: center;
}

.party-hints {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.party-answer-title {
    margin: var(--space-2) 0 0;
    font-size: 1.75rem;
    font-weight: 800;
}

/* The host's remote on /party. */
.party-remote {
    margin: var(--space-5) 0;
    text-align: center;
}

.party-remote-status {
    color: var(--color-text-muted);
}

.party-remote-round {
    font-weight: 700;
}

.party-remote-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.party-played {
    display: inline-block;
    text-align: left;
}

.party-close {
    margin-top: var(--space-6);
}

.party-error {
    color: var(--color-danger-text);
}

/* .scratch/party-tv 04: guests. Each has an avatar emoji and a colour (never the colour alone). */
.party-guests {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-4) 0;
    padding: 0;
    list-style: none;
}

.party-guest {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    border: 2px solid currentColor;
    font-weight: 600;
}

.party-guest-you {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

.party-guest-away {
    opacity: 0.5;
}

.party-guest-remove {
    margin-left: var(--space-1);
    border: 0;
    background: none;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.party-color-0 { color: var(--seat-0); }
.party-color-1 { color: var(--seat-1); }
.party-color-2 { color: var(--seat-2); }
.party-color-3 { color: var(--seat-3); }
.party-color-4 { color: var(--seat-4); }
.party-color-5 { color: var(--seat-5); }
.party-color-6 { color: var(--seat-6); }
.party-color-7 { color: var(--seat-7); }
.party-color-8 { color: var(--seat-8); }
.party-color-9 { color: var(--seat-9); }
.party-color-10 { color: var(--seat-10); }
.party-color-11 { color: var(--seat-11); }

.party-tv .party-guest {
    font-size: 3vh;
    background: var(--tv-wash);
}

.party-tv-lobby {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6vw;
}

.party-tv .party-qr-join {
    width: 50vh;
    height: 50vh;
}

.party-tv-lobby .party-code {
    font-size: 11vh;
}

.party-invite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.party-qr-small {
    width: 12rem;
    height: 12rem;
}

.party-look {
    font-size: 1.5rem;
    font-weight: 700;
}

/* .scratch/party-tv 05: Competition and the mode choice. Interim styling until the redesign. */
.party-modes {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-4) 0;
    padding: 0;
    border: 0;
    text-align: left;
}

.party-modes legend {
    margin-bottom: var(--space-2);
    font-weight: 700;
}

.party-mode {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 var(--space-2);
    padding: var(--space-3);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-card);
    cursor: pointer;
}

.party-mode:has(input:checked) {
    border-color: var(--ink);
    background: var(--color-accent-soft);
}

.party-mode input {
    grid-row: span 2;
    margin-top: 0.3rem;
}

.party-mode-name {
    font-weight: 700;
}

.party-mode-about {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.party-settings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 var(--space-4);
}

.party-howto {
    margin: var(--space-3) 0;
    padding: var(--space-3);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    text-align: left;
}

.party-howto-title {
    margin: 0 0 var(--space-1);
    font-weight: 700;
}

.party-howto ol {
    margin: 0;
    padding-left: 1.25rem;
}

.party-mode-line {
    font-weight: 700;
}

.party-tv .party-mode-line {
    margin: 2vh 0 0;
    font-size: 3.5vh;
}

.party-howto-tv {
    display: inline-block;
    margin: 1vh 0 0;
    text-align: left;
    font-size: 2.8vh;
    opacity: 0.85;
}

.party-timer {
    position: relative;
    height: 1.5rem;
    margin: var(--space-2) 0;
    border-radius: var(--radius-pill);
    background: var(--color-border);
    overflow: hidden;
}

.party-timer-bar {
    height: 100%;
    background: var(--color-accent);
    transition: width 0.25s linear;
}

.party-timer-text {
    position: absolute;
    inset: 0;
    line-height: 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
}

.party-tv .party-timer {
    height: 4vh;
    max-width: 70vw;
    margin: 2vh auto;
    background: var(--tv-wash-strong);
}

.party-tv .party-timer-text,
.party-mirror-body .party-timer-text {
    color: var(--on-accent);
}

.party-tv .party-timer-text {
    line-height: 4vh;
    font-size: 2.5vh;
}

.party-paused {
    font-size: 1.5rem;
    font-weight: 800;
}

.party-tv .party-paused {
    font-family: var(--font-display);
    font-size: 6vh;
}

.party-answer-form {
    max-width: 28rem;
    margin: var(--space-3) auto;
    text-align: left;
}

.party-answer-form .btn {
    width: 100%;
}

.party-feedback {
    min-height: 1.5em;
    font-weight: 700;
}

.party-emojis-small {
    font-size: 1.75rem;
}

.party-board {
    display: inline-flex;
    flex-direction: column;
    gap: var(--space-1);
    margin: var(--space-3) auto;
    padding: 0;
    list-style: none;
    text-align: left;
}

.party-board-row {
    justify-content: space-between;
}

.party-tv .party-board {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 1vh 2vw;
    font-size: 3vh;
}

.party-podium {
    margin: var(--space-3) 0;
    padding: 0;
    list-style: none;
    font-size: 1.25rem;
    font-weight: 800;
}

.party-podium-1 {
    font-size: 1.6rem;
}

.party-tv .party-podium {
    font-family: var(--font-display);
    font-size: 5vh;
}

.party-tv .party-podium-1 {
    font-size: 7vh;
}

.party-color-host { color: var(--seat-host); }

.party-guest-answered {
    border-style: double;
    border-width: 4px;
}

/* .scratch/party-tv 06: the host's phone mirrored to a TV -- the remote turns into the TV view:
   dark, no site chrome, sized to the (sideways) screen, the host's buttons in a corner. */
.party-mirror-body {
    max-width: none;
    background: var(--night);
    color: var(--on-night);
}

.party-mirror-body > main > header,
.party-mirror-body > main > footer {
    display: none;
}

.party-mirror-body .party-remote {
    margin: 0;
    padding: 3vh 4vw;
}

.party-mirror-body .party-remote-status,
.party-mirror-body .party-mode-about,
.party-mirror-body .party-feedback {
    color: var(--on-night-muted);
}

.party-mirror-body .party-howto,
.party-mirror-body .party-mode {
    background: var(--tv-wash);
    color: var(--on-night);
}

.party-mirror-body .party-qr-small {
    width: 55vh;
    height: 55vh;
    max-width: 80vw;
    max-height: 80vw;
    border-radius: var(--radius-card);
}

.party-mirror-body .party-guest {
    background: var(--tv-wash);
}

.party-mirror-body [data-view="GAME"] .party-emojis {
    margin: 1vh 0;
    font-size: 20vh;
    line-height: 1.1;
}

.party-mirror-body [data-view="GAME"] .party-hints {
    font-size: 4.5vh;
}

.party-mirror-body .party-answer-title {
    font-size: 9vh;
}

.party-mirror-body .party-board {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1vh 2vw;
}

.party-mirror-body [data-view="GAME"] .party-remote-buttons {
    position: fixed;
    right: 2vw;
    bottom: 2vh;
    margin: 0;
}

.party-mirror-body [data-view="GAME"] .party-remote-buttons .btn {
    min-height: 36px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.party-mirror-body .party-mode:has(input:checked) {
    background: var(--tv-wash-strong);
    border-color: var(--accent);
}

.party-mirror-body .btn-secondary {
    background: var(--on-night);
    color: var(--night);
}

.party-mirror-body .party-answer-title,
.party-mirror-body .party-remote-round {
    font-family: var(--font-display);
}

/* /account: the profile. Interim styling until the redesign. */
.account-welcome {
    padding: var(--space-3);
    border-radius: var(--radius-card);
    background: var(--color-accent-soft);
}

.account-name {
    margin: var(--space-3) 0 0;
    font-size: 1.75rem;
}

.account-notice {
    font-weight: 700;
}

.account-links {
    display: inline-block;
    margin: 0 0 var(--space-4);
    text-align: left;
}

/* .scratch/party-tv 07: category chips in the host's lobby. Pressed = picked (a ✓ too, not colour alone). */
.party-categories {
    margin: var(--space-3) 0;
}

.party-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

.party-chip {
    min-height: 40px;
    padding: 0.25rem 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.party-chip[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--color-accent-soft);
    font-weight: 700;
}

.party-chip[aria-pressed="true"]::before {
    content: "✓ ";
}

.party-mirror-body .party-chip {
    background: var(--tv-wash);
    color: var(--on-night);
}

.party-mirror-body .party-chip[aria-pressed="true"] {
    background: var(--tv-wash-strong);
    border-color: var(--accent);
}

/* Landing blocks under the game on / (.scratch/landing-redesign 04): How it works, More ways to
   play, Questions. Cards without borders (shadow only), one display line per card. */
.landing-section {
    margin-top: var(--space-8);
}

.landing-section > h2 {
    margin: 0 0 var(--space-4);
    font-size: 1.5rem;
    font-weight: 800;
}

.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-4);
}

.how-step {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: var(--space-3);
    padding: var(--space-5);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.how-step > * {
    grid-column: 2;
}

.how-no {
    grid-column: 1;
    grid-row: 1 / span 3;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--ink-muted);
    font-size: 0.8125rem;
    font-weight: 700;
}

.how-step h3 {
    margin: 2px 0 var(--space-1);
    font-size: 1.125rem;
}

.how-step p {
    margin: 0;
    color: var(--ink-muted);
}

.how-step .how-chips {
    margin-top: var(--space-3);
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: var(--space-4);
}

.mode-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    color: var(--ink);
    text-decoration: none;
}

.mode-card:hover .mode-title {
    text-decoration: underline;
}

.mode-band {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 72px;
    padding: 0 var(--space-4);
    background: var(--night);
}

.mode-band > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 52px;
    border-radius: 8px 8px 0 0;
    font-family: var(--font-emoji);
    font-size: 1.25rem;
}

.mode-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4) var(--space-4);
}

.mode-title {
    font-weight: 700;
    font-size: 1.0625rem;
}

.mode-text {
    color: var(--ink-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.faq {
    padding: var(--space-1) var(--space-5);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq details:last-child {
    border-bottom: 0;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: var(--tap-target);
    padding: var(--space-2) 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    flex: none;
    color: var(--ink-muted);
    font-size: 1.25rem;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    margin: 0 0 var(--space-4);
    color: var(--ink-muted);
}

/* Family night: one bigger switch above the categories it narrows. */
.party-family {
    font-size: 1rem;
    font-weight: 700;
}

/* Option A: a quiet flag, not a game control. */
.party-report {
    margin-top: var(--space-2);
    border: 0;
    background: none;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 0.8125rem;
    text-decoration: underline;
    cursor: pointer;
}

.party-report:disabled {
    text-decoration: none;
    cursor: default;
}

/* The TV's waiting screen: the brand's icon and wordmark, "Party" on a marquee fill. */
.party-tv-brand {
    display: inline-flex;
    align-items: center;
    gap: 1.5vh;
}

.party-tv-logo {
    width: 7vh;
    height: 7vh;
    border-radius: 1.6vh;
}

.party-tv-brand-party {
    padding: 0.2vh 0.4em;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--on-accent);
}

/* .scratch/party-landing 01: /party for a guest (hero, a TV preview, one way to host, the code)
   and for a signed-in host (the screen picker; only the checked setup's steps show). */
.party-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.party-hero h1 {
    margin: 0;
    font-size: 2.75rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.party-overline {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.party-lead {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.55;
    font-weight: 500;
    color: var(--ink-muted);
}

.party-preview {
    /* The night ground is navy in both themes: seats take their bright colours here. */
    --seat-0: #fb7185;
    --seat-1: #60a5fa;
    --seat-2: #4ade80;
    --seat-3: #fbbf24;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: var(--space-5) 0 0;
    padding: var(--space-5);
    border-radius: var(--radius-card);
    background: var(--night);
    color: var(--on-night);
    box-shadow: var(--shadow-card);
}

.party-preview-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--on-night-muted);
}

.party-preview-emoji {
    margin: 0;
    text-align: center;
    font-family: var(--font-emoji);
    font-size: clamp(2.25rem, 11vw, 3.25rem);
    line-height: 1.3;
    letter-spacing: 0.18em;
}

.party-preview-timer {
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(246, 242, 234, 0.15);
}

.party-preview-timer > span {
    display: block;
    width: 62%;
    height: 100%;
    border-radius: inherit;
    background: var(--on-night);
}

.party-preview-players {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    font-weight: 600;
}

.party-preview-players li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-1) 10px;
    border-radius: var(--radius-pill);
    background: rgba(246, 242, 234, 0.1);
}

.party-preview-players i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.party-dot-0 { background: var(--seat-0); }
.party-dot-1 { background: var(--seat-1); }
.party-dot-2 { background: var(--seat-2); }
.party-dot-3 { background: var(--seat-3); }

.party-host-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-5);
    text-align: center;
}

.party-host-cta .btn {
    min-height: 52px;
    font-size: 1.0625rem;
    font-weight: 700;
}

.party-host-cta p,
.setup-note {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.party-join {
    margin-top: var(--space-5);
    padding: var(--space-5);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.party-join h2 {
    margin: 0 0 var(--space-3);
}

.party-join-quiet {
    margin-top: var(--space-8);
    padding: 0;
    background: none;
    box-shadow: none;
}

.party-join-quiet h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.party-join-form {
    display: flex;
    gap: var(--space-2);
}

.party-join-form #party-code {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 48px;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.party-join-form .btn {
    min-height: 48px;
}

.party-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
    margin: var(--space-5) 0 0;
    padding: 0;
    list-style: none;
}

.party-facts li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    border-radius: var(--radius-control);
    background: var(--surface-alt);
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.4;
    font-weight: 600;
}

.party-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: party-step;
}

.party-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    counter-increment: party-step;
}

.party-steps li::before {
    content: counter(party-step);
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--night);
    color: var(--on-night);
    font-family: var(--font-display);
    font-weight: 800;
}

.party-steps strong {
    font-weight: 600;
}

.setup-picker {
    margin-top: var(--space-5);
}

.setup-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.setup-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px var(--space-4);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(31, 34, 56, 0.05);
    cursor: pointer;
}

.setup-option input {
    /* The radio stays real (keyboard, screen readers); the card shows its state. */
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.setup-option::after {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface);
}

.setup-option:has(input:checked) {
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 2px var(--ink);
}

.setup-option:has(input:checked)::after {
    border: 7px solid var(--ink);
}

.setup-option:has(input:focus-visible) {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.setup-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-control);
    background: var(--night);
    color: var(--on-night);
}

.setup-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.setup-name {
    font-weight: 600;
}

.setup-about {
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.setup-steps h2 {
    margin: 0;
    font-size: 1.125rem;
}

.setup-steps .party-steps li::before {
    width: 28px;
    height: 28px;
    background: var(--surface-alt);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
}

.setup-steps form,
.setup-steps .btn {
    display: flex;
    width: 100%;
    margin: 0;
}

.setup-steps .btn {
    min-height: 52px;
    font-size: 1.0625rem;
    font-weight: 700;
}

.setup-address {
    margin: 0;
    padding: 14px;
    border-radius: var(--radius-control);
    background: var(--night);
    color: var(--on-night);
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 800;
}

/* Only the checked setup's steps; a browser without :has shows all three. */
@supports selector(:has(*)) {
    .setup-steps {
        display: none;
    }

    .setup-picker:has(#setup-tv:checked) .setup-steps-tv,
    .setup-picker:has(#setup-mirror:checked) .setup-steps-mirror,
    .setup-picker:has(#setup-phones:checked) .setup-steps-phones {
        display: flex;
    }
}

.party-next {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: var(--space-8);
}

.party-next-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.party-next-modes p {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin: 0;
    padding: 14px;
    border-radius: 16px;
    background: var(--surface-alt);
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--ink-muted);
}

.party-next-modes strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.party-alone {
    margin: var(--space-8) 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ink-muted);
}
