/* styles.css — jeperweed three-box edition
   Editorial Jeopardy: deep navy "cells" with gold dollar values, set on
   warm cream paper. Old Standard TT for display, Source Serif body, JetBrains Mono labels.
   All theme color comes from CSS vars set in app.jsx so palette swaps live.
*/

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  font-size: 16px;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,0,0,0.10), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0,0,0,0.16), transparent 55%),
    #1c1816;
  overflow: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
input { font: inherit; color: inherit; }

/* ─── Stage / device ───────────────────────────────────────────────────── */
.stage { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; }
.device { position: relative; }

.stage.device-mobile .device {
  width: 390px;
  height: min(844px, calc(100vh - 80px));
  border-radius: 48px;
  padding: 12px;
  background: #0d0d0d;
  box-shadow:
    0 0 0 2px #1c1c1c,
    0 0 0 3px #2a2a2a,
    0 30px 60px -10px rgba(0,0,0,0.6),
    0 60px 120px -20px rgba(0,0,0,0.4);
}
.stage.device-mobile .device::after {
  content: ''; position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px;
  background: #0d0d0d; border-radius: 20px; z-index: 50;
  pointer-events: none;
}
.stage.device-mobile .device-screen {
  width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
  background: var(--paper); position: relative;
}

.stage.device-desktop .device {
  width: min(1200px, calc(100vw - 80px));
  height: min(760px, calc(100vh - 80px));
  border-radius: 8px;
  background: #cfcfcf;
  padding: 28px 4px 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 30px 60px -10px rgba(0,0,0,0.5);
}
.stage.device-desktop .device::before {
  content: ''; position: absolute;
  top: 10px; left: 14px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ee6a5f;
  box-shadow: 20px 0 0 #f5bd4f, 40px 0 0 #61c554;
}
.stage.device-desktop .device-screen {
  width: 100%; height: 100%; border-radius: 0 0 6px 6px;
  overflow: hidden; background: var(--paper); position: relative;
}

/* ─── Screens ──────────────────────────────────────────────────────────── */
.screen {
  position: absolute; inset: 0;
  padding: 28px 24px;
  overflow-y: auto;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.012) 2px, rgba(0,0,0,0.012) 3px);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-15) transparent;
}
.stage.device-mobile .screen { padding-top: 64px; padding-bottom: 28px; }
.stage.device-desktop .screen { padding: 40px 56px; }

/* ─── Wordmark ─────────────────────────────────────────────────────────── */
.wordmark {
  font-family: 'Old Standard TT', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.wordmark-sm { font-size: 22px; }
.wordmark-set::first-letter { color: var(--gold); }

/* ─── Primary button ───────────────────────────────────────────────────── */
.btn-primary {
  appearance: none; border: none;
  background: var(--ink); color: var(--paper);
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 18px;
  padding: 14px 22px;
  cursor: pointer;
  border-radius: 0;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--board); color: var(--gold); }

/* ─── 01 Age Gate ──────────────────────────────────────────────────────── */
.gate { display: flex; align-items: center; justify-content: center; }
.gate-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  width: 100%; max-width: 320px;
}
.gate .wordmark { font-size: 56px; margin-bottom: 16px; }
.gate-divider {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 0 0 24px;
}
.gate-copy {
  font-size: 16px; line-height: 1.5;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.gate-copy em { font-style: italic; color: var(--gold); }
.gate-form { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.gate-dob {
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
}
.gate-dob input {
  appearance: none; border: none; background: transparent;
  font-family: 'Old Standard TT', serif;
  font-size: 26px;
  text-align: center;
  padding: 4px 6px;
  width: 56px;
  outline: none;
}
.gate-dob input:nth-child(5) { width: 80px; }
.gate-slash {
  font-family: 'Old Standard TT', serif;
  font-size: 24px;
  color: var(--ink-30);
}
.gate-err {
  font-size: 12px;
  color: var(--gold);
  text-align: left;
}
.gate-fine {
  margin-top: 28px;
  font-size: 11px;
  color: var(--ink-60);
  font-style: italic;
}

/* ─── 02 Board ─────────────────────────────────────────────────────────── */
.masthead {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--ink-30);
  margin-bottom: 20px;
}
.masthead-r { text-align: right; }
.masthead-issue {
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1;
}
.masthead-date {
  font-size: 11px;
  color: var(--ink-60);
  margin-top: 4px;
  font-style: italic;
}

.board-prompt { margin: 16px 0 32px; }
.board-prompt-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Source Serif 4', serif;
}
.board-prompt-title {
  margin: 0;
  font-family: 'Old Standard TT', serif;
  font-weight: 400;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.board-prompt-title em {
  font-style: italic;
  color: var(--gold);
}

/* The three cells */
.cells {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.stage.device-desktop .cells {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 24px 0 32px;
}

.cell {
  appearance: none; border: none; padding: 0;
  cursor: pointer;
  background: transparent;
  display: flex; flex-direction: column;
  text-align: left;
  transition: transform 0.18s ease, filter 0.18s ease;
  border-radius: 2px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4),
    0 14px 28px -10px rgba(0,0,0,0.35);
}
.cell:not(:disabled):hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}
.cell:not(:disabled):hover .cell-body { box-shadow: inset 0 0 0 1px var(--gold); }

.cell-head {
  background: var(--paper);
  border: 0.5px solid var(--ink);
  border-bottom: none;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.cell-head-text {
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.cell-head::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold-soft);
}

.cell-body {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, var(--board) 0%, var(--board-2) 100%);
  border: 0.5px solid var(--ink);
  position: relative;
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Old Standard TT', serif;
  font-weight: 700;
  color: var(--gold);
  text-shadow:
    0 2px 0 rgba(0,0,0,0.45),
    0 0 24px rgba(199,154,60,0.18);
  transition: box-shadow 0.18s;
}
.stage.device-desktop .cell-body { height: 200px; }

/* the subtle inner frame */
.cell-body::before {
  content: '';
  position: absolute; inset: 6px;
  border: 0.5px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
/* a faint diagonal stamp pattern */
.cell-body::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg,
    transparent 0, transparent 18px,
    rgba(255,255,255,0.025) 18px, rgba(255,255,255,0.025) 19px);
  pointer-events: none;
}
.cell-currency {
  font-size: 28px;
  align-self: flex-start;
  margin-top: 14px;
  margin-right: 2px;
  opacity: 0.85;
  font-weight: 400;
  font-style: italic;
}
.stage.device-desktop .cell-currency { font-size: 36px; margin-top: 22px; }
.cell-value {
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stage.device-desktop .cell-value { font-size: 96px; }

.cell.is-solved {
  cursor: default;
  filter: none;
}
.cell.is-solved .cell-head {
  background: transparent;
  border-color: var(--ink-15);
  color: var(--ink-30);
}
.cell.is-solved .cell-head-text { color: var(--ink-30); }
.cell.is-solved .cell-head::after {
  background: transparent;
  box-shadow: 0 0 0 1px var(--ink-15);
}
.cell.is-solved .cell-body {
  background: transparent;
  border-color: var(--ink-15);
  box-shadow: none;
  color: var(--ink-30);
  text-shadow: none;
}
.cell.is-solved .cell-body::before { border-color: transparent; }
.cell.is-solved .cell-body::after { display: none; }
.cell-mark {
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 56px;
  color: var(--ink-30);
}
.stage.device-desktop .cell-mark { font-size: 80px; }

.board-foot {
  display: flex; justify-content: space-between;
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-60);
  padding-top: 18px;
  margin-top: 24px;
  border-top: 0.5px solid var(--ink-15);
}
.board-foot-r { color: var(--gold); }

/* ─── 03 Node ──────────────────────────────────────────────────────────── */
.node { display: flex; flex-direction: column; }

.node-mast {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--ink-30);
  margin-bottom: 24px;
}
.node-back {
  appearance: none; border: none; background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.node-back:hover { color: var(--gold); }
.node-cat {
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.node-val {
  font-family: 'Old Standard TT', serif;
  font-weight: 700;
  color: var(--gold);
  background: var(--board);
  padding: 4px 12px;
  font-size: 16px;
  border-radius: 2px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}

/* The question card — directly evokes a "tile, opened" */
.node-card {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, var(--board) 0%, var(--board-2) 100%);
  color: var(--paper);
  padding: 28px 24px;
  margin-bottom: 24px;
  border-radius: 2px;
  position: relative;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.4);
}
.node-card::before {
  content: '';
  position: absolute; inset: 6px;
  border: 0.5px solid rgba(255,255,255,0.1);
  pointer-events: none;
}
.node-card::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg,
    transparent 0, transparent 18px,
    rgba(255,255,255,0.025) 18px, rgba(255,255,255,0.025) 19px);
  pointer-events: none;
  border-radius: 2px;
}
.node-q {
  margin: 0;
  font-family: 'Old Standard TT', serif;
  font-size: clamp(20px, 4.5vw, 26px);
  line-height: 1.35;
  text-wrap: pretty;
  letter-spacing: -0.005em;
  position: relative; z-index: 1;
}

/* Choices */
.node-choices {
  display: flex; flex-direction: column;
  gap: 10px;
}
.choice {
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 16px 18px;
  display: flex; align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  font-family: 'Source Serif 4', serif;
  font-size: 16px;
  color: var(--ink);
  transition: background 0.15s, color 0.15s, transform 0.12s, border-color 0.15s;
  border-radius: 2px;
  position: relative;
}
.choice:not(:disabled):hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateX(2px);
}
.choice:not(:disabled):hover .choice-letter { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.choice-letter {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 14px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.choice-text { flex: 1; }

.choice.is-correct {
  background: var(--board); color: var(--paper);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 8px 22px -10px rgba(199,154,60,0.6);
}
.choice.is-correct .choice-letter { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.choice.is-wrong {
  background: transparent;
  color: var(--ink-60);
  border-color: var(--ink-30);
  text-decoration: line-through;
  text-decoration-color: var(--ink-30);
}
.choice.is-wrong .choice-letter { background: var(--paper); color: var(--ink-30); border-color: var(--ink-30); }
.choice.is-faded { opacity: 0.4; }

/* ─── 04 Win ───────────────────────────────────────────────────────────── */
.win {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: 56px !important;
}
.stage.device-mobile .win { padding-top: 80px !important; }

.win-medal {
  width: 110px; height: 110px;
  color: var(--gold);
  margin-bottom: 28px;
  animation: spin-slow 90s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.win-lines { margin-bottom: 36px; max-width: 320px; }
.win-line-0 {
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: clamp(48px, 9vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.win-line-1 {
  font-family: 'Old Standard TT', serif;
  font-size: 20px;
  margin-top: 10px;
  color: var(--gold);
}
.win-line-2 {
  font-style: italic;
  font-size: 14px;
  color: var(--ink-60);
  margin-top: 8px;
}

.win-cta { width: 100%; max-width: 340px; margin-bottom: 32px; }
.win-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.win-input {
  appearance: none; border: none; background: transparent;
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 18px;
  padding: 12px 4px;
  outline: none;
}
.win-input::placeholder { color: var(--ink-30); }
.win-btn {
  appearance: none; border: none;
  background: var(--board);
  color: var(--gold);
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 16px;
  padding: 0 22px;
  cursor: pointer;
  border-radius: 0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  transition: background 0.15s;
}
.win-btn:hover { background: var(--ink); }
.win-thanks {
  padding: 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
}
.win-replay {
  appearance: none; border: none; background: transparent;
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-60);
  cursor: pointer;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink-15);
}
.win-replay:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ─── 05 Game over ─────────────────────────────────────────────────────── */
.over {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: 80px !important;
}
.over-mark {
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 18px;
}
.over-title {
  font-family: 'Old Standard TT', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(32px, 7vw, 42px);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.over-copy {
  max-width: 320px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.over-answer {
  background: var(--board);
  color: var(--gold);
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 22px;
  padding: 14px 22px;
  margin-bottom: 28px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  border-radius: 2px;
}
.over-fine {
  max-width: 300px;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-60);
  margin: 0 0 28px;
}

/* ─── 00 Welcome ───────────────────────────────────────────────────────── */
.welcome { display: flex; align-items: center; justify-content: center; }
.welcome-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  width: 100%; max-width: 320px;
}
.welcome-mark { font-size: 56px; margin-bottom: 16px; }
.welcome-tag {
  font-size: 15px; line-height: 1.55;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.welcome-tag em { font-style: italic; color: var(--gold); }
.welcome-issue {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 24px;
}
.welcome-issue-no {
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.welcome-issue-date {
  font-size: 12px;
  color: var(--ink-60);
  font-style: italic;
}
.welcome-history {
  appearance: none; border: none; background: transparent;
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-60);
  cursor: pointer;
  padding: 16px;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--ink-15);
}
.welcome-history:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ─── 00b History ──────────────────────────────────────────────────────── */
.history-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
}
.history-item { border-bottom: 0.5px solid var(--ink-15); }
.history-item:first-child { border-top: 0.5px solid var(--ink-15); }
.history-item button {
  appearance: none; border: none; background: transparent;
  width: 100%;
  padding: 16px 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: baseline;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.history-item button:hover { background: var(--ink-08); }
.history-no {
  grid-row: 1; grid-column: 1;
  font-family: 'Old Standard TT', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.history-date {
  grid-row: 1; grid-column: 2;
  text-align: right;
  font-size: 12px;
  color: var(--ink-60);
  font-style: italic;
}
.history-cats {
  grid-row: 2; grid-column: 1 / -1;
  font-size: 12px;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ─── Site header (HudHaus brand) ──────────────────────────────────────── */
.site-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--ink-15);
  margin-bottom: 18px;
}
.site-brand {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  align-self: flex-start;
}
.site-brand-u { font-weight: 800; }
.site-brand:hover { color: var(--gold); }
.site-nav {
  display: flex;
  gap: 22px;
}
.site-nav-link {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav-link:hover { color: var(--gold); }
.site-nav-link.is-current {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--gold);
}

/* Welcome layout: header on top, body fills remaining */
.welcome { display: flex; flex-direction: column; align-items: stretch; }
.welcome-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Win: prize block + verify ────────────────────────────────────────── */
.win-celebrate {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.win-confetti {
  position: absolute;
  top: -4px; left: 0; right: 0; bottom: 60px;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  font-size: 14px;
  color: var(--gold);
}
.win-confetti span {
  display: inline-block;
  animation: confetti-drift 2.4s ease-out infinite;
  opacity: 0;
}
.win-confetti span:nth-child(1) { animation-delay: 0.0s; }
.win-confetti span:nth-child(2) { animation-delay: 0.3s; font-size: 11px; }
.win-confetti span:nth-child(3) { animation-delay: 0.6s; font-size: 16px; }
.win-confetti span:nth-child(4) { animation-delay: 0.9s; font-size: 12px; }
.win-confetti span:nth-child(5) { animation-delay: 1.2s; font-size: 13px; }
@keyframes confetti-drift {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(120px) rotate(220deg); opacity: 0; }
}

.win-prize {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.win-claim {
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  font-size: 16px;
  text-align: center;
  text-wrap: balance;
}
.win-claim:hover { background: var(--ink); color: var(--gold); }

.win-verify {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border: 0.5px solid var(--ink-30);
  border-radius: 2px;
}
.win-verify-copy {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-60);
  text-align: center;
}
.win-verify .btn-primary { width: 100%; }

.win-code-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, var(--board) 0%, var(--board-2) 100%);
  color: var(--paper);
  padding: 24px 18px 20px;
  border-radius: 2px;
  position: relative;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.4);
}
.win-code-block::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 0.5px solid rgba(255,255,255,0.12);
  pointer-events: none;
}
.win-code-eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Source Serif 4', serif;
}
.win-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
  margin: 0 0 14px;
  user-select: all;
}
.win-code-hint {
  font-size: 12px;
  color: var(--paper-60);
  font-style: italic;
  text-align: center;
  margin: 0;
  max-width: 240px;
  line-height: 1.45;
}

/* Override the old .win-form (it was a grid for the 1-line form) */
.win-form {
  display: block;
  border: none;
}
.win-sub-copy {
  margin: 0 0 12px;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-60);
  line-height: 1.5;
  text-wrap: pretty;
  text-align: center;
}
.win-form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* The "Issue cleared" line should feel bigger/more triumphant */
.win-line-0 {
  text-wrap: balance;
}
