
:root {
  color-scheme: dark;
  --page: #15131b;
  --panel: #211e29;
  --panel-raised: #2b2634;
  --ink: #fff5e5;
  --muted: #c3b8c7;
  --line: #443b4c;
  --accent: #ffc18a;
  --accent-ink: #29160f;
  --accent-dark: #452e29;
  --secondary: #bdb0ff;
  --radius: 20px;
  font-family: Aptos, 'Segoe UI', sans-serif;
  background: var(--page);
  color: var(--ink);
}
[data-game="press"] {
  --accent: #c1b5ff;
  --accent-ink: #20153b;
  --accent-dark: #332b51;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid #fff0bb; outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.03; }
h1, .game-tile h2, .brief h2, .pass-card h2, .result-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -.053em;
}
h1 { font-size: clamp(3rem, 7.5vw, 6.75rem); }
h2 { font-size: clamp(1.5rem, 2.7vw, 2.1rem); letter-spacing: -.04em; }
h3 { font-size: 1.12rem; }
.topbar { border-bottom: 1px solid var(--line); }
.shell, .bar-inner { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.bar-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; font-size: 1.1rem; font-weight: 750; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; background: #f8d086; color: #21191c; border-radius: 8px; line-height: 1; width: 30px; height: 30px; font-size: 1.36rem; }
.brand-period { color: #f8d086; }
.back-link, .quiet-button { text-decoration: none; color: var(--muted); font-size: .9rem; }
.back-link { padding-block: 12px; }
.back-link:hover, .quiet-button:hover { color: var(--ink); }
.lobby-main, .game-main { padding-block: clamp(26px, 5vw, 64px) 64px; }
.lobby-heading { margin-bottom: clamp(28px, 5vw, 55px); }
.lobby-heading > p:last-child { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.3rem); margin-top: 12px; }
.eyebrow { color: var(--accent); font-weight: 750; font-size: .76rem; letter-spacing: .125em; line-height: 1.5; text-transform: uppercase; }
.lobby-heading h1, .setup-hero h1 { margin-top: 8px; }
.game-grid, .setup-grid, .round-grid { display: grid; gap: 22px; align-items: start; }
.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-tile { --tile-bg: #ffc18a; --tile-ink: #301e19; display: flex; min-width: 0; flex-direction: column; align-self: stretch; color: var(--tile-ink); background: var(--tile-bg); border-radius: var(--radius); overflow: clip; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.press-tile { --tile-bg: #c1b5ff; --tile-ink: #251d45; }
.game-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 26px #08070c90; }
.game-tile:focus-visible { outline-offset: 5px; }
.tile-art, .setup-art { background-color: var(--accent-dark); background-size: cover; background-position: center; }
.tile-art { aspect-ratio: 1.9; }
.art-admit { background-image: url("admit-art.webp"), radial-gradient(ellipse at 55% 45%, #eab75c, #b84031); }
.art-press { background-position: center 32%; background-image: url("press-art.webp"), radial-gradient(ellipse at 43% 38%, #78639a, #221e42); }
.tile-copy { flex: 1; display: flex; justify-content: space-between; gap: 14px; align-items: start; padding: clamp(20px, 3vw, 33px); }
.tile-copy h2 { font-size: clamp(2rem, 5vw, 4.2rem); }
.tile-copy p { line-height: 1.45; margin-top: 10px; max-width: 34ch; }
.tile-arrow { border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 45px; align-self: end; font-size: 1.5rem; }
.setup-grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); align-items: start; }
.setup-hero { overflow: hidden; border-radius: var(--radius); background: var(--accent-dark); }
.setup-art { aspect-ratio: 2.2; }
.setup-copy { padding: clamp(22px, 4vw, 42px); }
.setup-copy h1 { font-size: clamp(3.4rem, 6.1vw, 6rem); }
.setup-copy .hero-description { line-height: 1.55; max-width: 48ch; margin-top: 14px; }
.panel, .brief, .score-card, .pass-card { min-width: 0; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.panel { min-height: 0; }
.panel h2, .panel .eyebrow, .button { overflow-wrap: anywhere; }
.helper { margin-top: 8px; color: var(--muted); line-height: 1.55; }
form { margin: 0; }
.setup-form, .stack { display: grid; gap: 16px; }
.setup-form { margin-top: 22px; }
.player-list { display: grid; gap: 10px; }
.player-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.player-row label { font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
input, select, textarea { min-width: 0; width: 100%; min-height: 46px; border: 1px solid #65596c; background: #191720; color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 1rem; }
input::placeholder, textarea::placeholder { color: #b0a6b6; opacity: 1; }
textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
label.field, .field-label { display: block; font-weight: 650; line-height: 1.35; }
.field > input, .field > select, .field > textarea { margin-top: 7px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 10px; padding: 9px 16px; font-weight: 750; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); text-align: center; text-decoration: none; }
.button:hover:not(:disabled) { filter: brightness(1.08); }
.button.secondary { background: var(--panel-raised); border-color: #62566a; color: var(--ink); }
.quiet-button { border: 0; background: transparent; padding: 11px 8px; min-height: 44px; }
.icon-button { min-width: 44px; min-height: 44px; padding: 5px; font-size: 1.25rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.error { color: #ffd09d; font-size: .92rem; }
.round-top { margin-bottom: 22px; display: flex; gap: 14px; justify-content: space-between; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.round-top h1 { font-size: clamp(2.2rem, 5.1vw, 4.2rem); margin-top: 5px; }
.round-top > p { text-align: right; font-size: .85rem; color: var(--muted); white-space: nowrap; padding-bottom: 3px; }
.round-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.brief { background: var(--accent-dark); }
.brief h2 { font-size: clamp(2rem, 4.4vw, 3.55rem); margin-block: 8px 14px; }
.brief .report { font-size: 1.05rem; line-height: 1.55; }
.brief .president { border-top: 1px solid #a494a367; padding-top: 13px; margin-top: 18px; line-height: 1.45; color: var(--ink); }
.brief .president span { display: block; color: var(--muted); }
.evidence { margin-top: 22px; padding-top: 17px; border-top: 1px solid #a494a367; }
.evidence summary { cursor: pointer; font-weight: 730; min-height: 44px; line-height: 1.45; display: list-item; padding: 8px 0; }
.evidence details[open] summary { margin-bottom: 5px; }
.evidence p { margin-top: 7px; line-height: 1.45; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; color: var(--ink); font-size: .88rem; overflow-wrap: anywhere; }
th, td { text-align: left; border-bottom: 1px solid #98869966; padding: 8px 5px; }
thead th { color: var(--accent); font-size: .78rem; }
table caption { text-align: left; font-weight: 700; margin: 16px 0 5px; }
.pass-card { text-align: center; max-width: 690px; margin: clamp(22px, 7vw, 90px) auto; padding: clamp(28px, 8vw, 72px) 24px; }
.pass-card h2, .result-title { font-size: clamp(2.6rem, 6.1vw, 5rem); overflow-wrap: anywhere; }
.pass-card h2 { margin: 5px 0 12px; }
.pass-card .button { margin-top: 26px; min-width: min(240px, 100%); }
.role-note { padding: 12px 14px; line-height: 1.45; border-left: 3px solid var(--accent); background: var(--accent-dark); border-radius: 0 10px 10px 0; }
.role-note strong { color: var(--accent); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 9px; font-weight: 730; }
.choice-list { display: grid; gap: 8px; }
.choice, .reaction { display: flex; gap: 10px; align-items: center; min-height: 48px; min-width: 0; border: 1px solid #62566a; border-radius: 10px; background: #1a1721; padding: 10px 12px; color: var(--ink); text-align: left; overflow-wrap: anywhere; line-height: 1.45; }
.choice { cursor: pointer; }
.choice input { min-height: auto; width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--accent); }
.choice:has(input:checked), .reaction[aria-pressed="true"] { background: var(--accent-dark); border-color: var(--accent); }
.choice:hover, .reaction:hover { border-color: var(--accent); }
.reaction { align-items: baseline; width: 100%; }
.letter { display: inline-grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border: 1px solid #857394; border-radius: 6px; font-size: .81rem; font-weight: 800; color: var(--accent); }
.ballot-line { min-width: 0; }
.ballot-line strong { display: block; }
.word-picker { margin-top: 6px; }
.word { min-height: 44px; color: var(--ink); background: var(--panel-raised); border: 1px solid #62566a; border-radius: 8px; padding: 6px 9px; margin: 0 0 5px; }
.word[aria-pressed="true"], mark { background: var(--accent); color: var(--accent-ink); }
.punctuation { white-space: pre-wrap; }
mark { padding: .03em .16em; border-radius: .22em; box-decoration-break: clone; }
.preview, .revealed-line { border-left: 2px solid var(--accent); padding-left: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.results { max-width: 850px; margin-inline: auto; display: grid; gap: 16px; }
.result-title { margin-top: 5px; }
.result-heading { padding-bottom: 4px; }
.result-heading .helper { max-width: 66ch; }
.result-entries { display: grid; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.result-entry { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 11px; padding: 12px; overflow-wrap: anywhere; }
.result-entry.winner { border-color: var(--accent); }
.entry-meta { display: flex; align-items: baseline; gap: 6px 12px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.entry-meta strong { color: var(--ink); }
.entry-caption { line-height: 1.45; }
.round-controls { display: flex; justify-content: end; margin-top: 4px; }
.scores th:nth-child(n + 2), .scores td:nth-child(n + 2) { text-align: right; }
.scores th:first-child { width: 42%; }
.callout { background: var(--accent-dark); }
.callout h3 { color: var(--accent); }
.callout p { line-height: 1.55; margin-top: 7px; }
[hidden] { display: none !important; }
@media (max-width: 730px) {
  .setup-grid, .round-grid { grid-template-columns: 1fr; gap: 14px; }
  .setup-art { aspect-ratio: 2.45; }
  .shell, .bar-inner { width: calc(100% - 28px); }
  .bar-inner { min-height: 58px; }
}
@media (max-width: 520px) {
  .game-grid { grid-template-columns: 1fr; gap: 14px; }
  .tile-art { aspect-ratio: 2.05; }
  .round-top { align-items: start; }
  .round-top > p { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
