/* ============================================================
   Jeopardy — styles
   Palette: classic board blue, gold money, dark navy stage
   Type: Anton (display) + Inter (UI)
   ============================================================ */

:root {
  --blue-board: #060ce9;
  --blue-tile-top: #1a24e0;
  --blue-tile-bottom: #050aae;
  --blue-deep: #03052e;
  --blue-night: #010117;
  --blue-card: #0a103f;
  --gold: #ffcc4d;
  --gold-deep: #d9a437;
  --gold-text: #ffd35e;
  --ink: #f4f5ff;
  --ink-dim: #aab0e0;
  --red: #ff6b6b;
  --green: #51d88a;

  --font-display: "Anton", "Haettenschweiler", "Arial Narrow Bold", Impact, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --duration: 180ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% 0%, #0a1158 0%, var(--blue-deep) 45%, var(--blue-night) 100%);
  background-attachment: fixed;
}

.hidden { display: none !important; }

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

/* ============ Buttons ============ */

.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6em 1.3em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              background-color var(--duration) var(--ease-out);
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #2b1d00;
  box-shadow: 0 4px 14px rgba(217, 164, 55, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 6px 20px rgba(255, 204, 77, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(170, 176, 224, 0.45);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-text);
}

.btn-big {
  font-size: 1.15rem;
  padding: 0.75em 2em;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ============ Top bar ============ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
}

.topbar-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--gold-text);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.topbar-actions { display: flex; gap: 0.6rem; }

/* ============ Setup screen ============ */

.screen-setup {
  display: grid;
  place-items: center;
  padding: 2rem 1rem 4rem;
}

.setup-card {
  width: min(540px, 100%);
  background: linear-gradient(180deg, rgba(20, 28, 96, 0.85), rgba(8, 12, 52, 0.95));
  border: 1px solid rgba(170, 176, 224, 0.25);
  border-radius: 18px;
  padding: 2.2rem 2.4rem 2.6rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.setup-kicker {
  margin: 0;
  color: var(--ink-dim);
  font-style: italic;
  letter-spacing: 0.06em;
}

.setup-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 2rem + 3vw, 4rem);
  line-height: 1;
  margin: 0.1em 0 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
  text-shadow:
    0 1px 0 #8a6914, 0 2px 0 #6e530f, 0 3px 0 #523d0a,
    0 6px 18px rgba(0, 0, 0, 0.6);
}

.source-note {
  margin: 0 0 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.setup-section { margin-bottom: 1.6rem; }

.setup-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  margin: 0 0 0.6rem;
}

.player-list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.player-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: rgba(6, 12, 233, 0.22);
  border: 1px solid rgba(170, 176, 224, 0.22);
  border-radius: var(--radius);
  padding: 0.5rem 0.55rem 0.5rem 0.9rem;
  font-weight: 600;
}

.player-list .remove-btn {
  background: transparent;
  color: var(--ink-dim);
  border: none;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.3em 0.5em;
  border-radius: 6px;
  cursor: pointer;
}

.player-list .remove-btn:hover { color: var(--red); background: rgba(255, 107, 107, 0.12); }
.player-list .remove-btn:focus-visible { outline: 2px solid var(--gold); }

.player-list .empty-note {
  justify-content: flex-start;
  color: var(--ink-dim);
  font-weight: 400;
  font-style: italic;
  background: transparent;
  border-style: dashed;
}

.add-player-form { display: flex; gap: 0.6rem; }

.add-player-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: rgba(1, 1, 23, 0.6);
  border: 1px solid rgba(170, 176, 224, 0.35);
  border-radius: var(--radius);
  padding: 0.55em 0.9em;
}

.add-player-form input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 204, 77, 0.25);
}

.error-msg {
  color: var(--red);
  font-size: 0.9rem;
  min-height: 1.2em;
  margin: 0.4rem 0;
}

#btn-start { width: 100%; margin-top: 0.4rem; }

/* ============ Board ============ */

#screen-board {
  padding: 0 1.2rem 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.board-wrap { overflow-x: auto; padding-bottom: 0.4rem; }

.board {
  display: grid;
  gap: 7px;
  min-width: 640px;
  background: #000;
  padding: 7px;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.board-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 3px;
  min-height: 76px;
  padding: 0.5rem 0.4rem;
}

.cell-category {
  background: linear-gradient(180deg, #2330d8 0%, var(--blue-tile-bottom) 100%);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.78rem, 0.6rem + 0.7vw, 1.05rem);
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.7);
}

.cell-clue {
  width: 100%;
  background: linear-gradient(180deg, var(--blue-tile-top) 0%, var(--blue-tile-bottom) 100%);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem);
  color: var(--gold-text);
  text-shadow: 0 3px 3px rgba(0, 0, 0, 0.75);
  transition: transform var(--duration) var(--ease-out),
              filter var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.cell-clue:hover, .cell-clue:focus-visible {
  filter: brightness(1.22);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 12, 233, 0.65), inset 0 0 0 2px rgba(255, 204, 77, 0.65);
  outline: none;
}

.cell-clue.used {
  background: linear-gradient(180deg, #0a0f55 0%, #060937 100%);
  color: transparent;
  text-shadow: none;
  cursor: default;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.55);
}

.cell-clue.used:hover { filter: none; transform: none; }

.cell-empty { background: #04062b; }

/* Board-complete banner */

.board-done {
  text-align: center;
  margin: 1.6rem 0 0.4rem;
}

.board-done p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 0.7rem;
}

/* ============ Scoreboard ============ */

.scoreboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.podium {
  min-width: 150px;
  background: linear-gradient(180deg, #141c60 0%, var(--blue-card) 100%);
  border: 1px solid rgba(170, 176, 224, 0.25);
  border-top: 4px solid var(--gold-deep);
  border-radius: 12px;
  padding: 0.7rem 1rem 0.8rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.podium .podium-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
  overflow-wrap: anywhere;
}

.podium .podium-score {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  color: var(--gold-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.05em 0.3em;
  border-radius: 8px;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
}

.podium .podium-score:hover,
.podium .podium-score:focus-visible {
  outline: 2px dashed rgba(255, 204, 77, 0.7);
  outline-offset: 2px;
}

.podium .podium-score.negative { color: var(--red); }

.score-hint {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin: 0;
}

/* ============ Modals ============ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(1, 1, 23, 0.78);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(960px, 100%);
  max-height: calc(100vh - 2.4rem);
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

/* --- Clue modal --- */

.clue-card {
  background:
    radial-gradient(140% 120% at 50% 0%, #2330d8 0%, var(--blue-board) 38%, #040887 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: min(520px, 80vh);
}

.clue-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.clue-cat { font-size: clamp(1rem, 0.9rem + 1vw, 1.5rem); color: #fff; }
.clue-val { font-size: clamp(1rem, 0.9rem + 1vw, 1.5rem); color: var(--gold-text); }

.clue-text {
  flex: 1;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin: 1.2rem 0;
  max-width: 60ch;
}

.answer-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.8vw, 2.1rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold-text);
  text-align: center;
  margin: 0 0 1.4rem;
  text-shadow: 0 3px 4px rgba(0, 0, 0, 0.7);
}

.clue-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
}

.judge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
}

.judge-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(1, 1, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.5rem 0.35rem 0.95rem;
}

.judge-chip .judge-name { font-weight: 700; font-size: 0.95rem; }

.judge-chip .judge-btn {
  border: none;
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-out);
}

.judge-chip .judge-btn:hover { transform: scale(1.12); }
.judge-chip .judge-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

.judge-btn.correct { background: var(--green); color: #03301a; }
.judge-btn.wrong { background: var(--red); color: #3d0606; }

.judge-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.judge-chip.missed { opacity: 0.55; }

/* --- Daily Double --- */

.dd-splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.dd-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  background: linear-gradient(180deg, #ffe9a8 0%, var(--gold) 45%, #b87f1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.dd-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.dd-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.dd-field select, .dd-field input {
  font: inherit;
  color: var(--ink);
  background: rgba(1, 1, 23, 0.6);
  border: 1px solid rgba(170, 176, 224, 0.4);
  border-radius: 8px;
  padding: 0.45em 0.7em;
}

.dd-field input { width: 7.5em; }

.dd-field select:focus-visible, .dd-field input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 204, 77, 0.25);
}

.dd-note { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }

/* --- Final Jeopardy --- */

.final-card {
  background: linear-gradient(180deg, rgba(20, 28, 96, 0.97), rgba(8, 12, 52, 0.99));
  border: 1px solid rgba(170, 176, 224, 0.3);
  padding: 2rem 2.2rem 2.4rem;
}

.final-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-text);
  text-align: center;
  margin: 0 0 1.4rem;
  text-shadow: 0 3px 4px rgba(0, 0, 0, 0.6);
}

.final-body { display: flex; flex-direction: column; gap: 1rem; }

.final-category {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.final-clue {
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  line-height: 1.35;
  text-align: center;
  margin: 0.4rem auto 0.6rem;
  max-width: 56ch;
}

.wager-list, .final-judge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wager-list li, .final-judge-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  background: rgba(6, 12, 233, 0.18);
  border: 1px solid rgba(170, 176, 224, 0.22);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
}

.wager-list .wager-meta { font-size: 0.8rem; color: var(--ink-dim); display: block; }

.wager-list input {
  font: inherit;
  width: 7em;
  color: var(--ink);
  background: rgba(1, 1, 23, 0.6);
  border: 1px solid rgba(170, 176, 224, 0.4);
  border-radius: 8px;
  padding: 0.4em 0.6em;
}

.wager-list input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 204, 77, 0.25);
}

.final-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

/* --- Standings --- */

.standings-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.standings-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(6, 12, 233, 0.18);
  border: 1px solid rgba(170, 176, 224, 0.22);
  border-radius: var(--radius);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
}

.standings-list li.winner {
  background: linear-gradient(180deg, rgba(255, 204, 77, 0.22), rgba(217, 164, 55, 0.1));
  border-color: var(--gold-deep);
}

.standings-list .rank {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-dim);
  min-width: 1.6em;
}

.standings-list li.winner .rank { color: var(--gold-text); }

.standings-list .standings-name { flex: 1; overflow-wrap: anywhere; }

.standings-list .standings-score {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold-text);
}

.standings-list .standings-score.negative { color: var(--red); }

/* ============ Question editor ============ */

.editor {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  background:
    radial-gradient(120% 90% at 50% 0%, #0a1158 0%, var(--blue-deep) 45%, var(--blue-night) 100%);
  padding: 1.4rem 1.2rem 3rem;
}

body.editor-open { overflow: hidden; }

.editor-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.editor-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-text);
  margin: 0;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.editor-head-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.editor-hint {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.92rem;
  max-width: 72ch;
}

.editor-hint code {
  background: rgba(1, 1, 23, 0.6);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

.editor-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

.editor-field input,
.editor-field textarea,
.editor-clue-row input,
.editor-clue-row textarea {
  font: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink);
  background: rgba(1, 1, 23, 0.6);
  border: 1px solid rgba(170, 176, 224, 0.35);
  border-radius: 8px;
  padding: 0.5em 0.7em;
  resize: vertical;
}

.editor-field input:focus-visible,
.editor-field textarea:focus-visible,
.editor-clue-row input:focus-visible,
.editor-clue-row textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 204, 77, 0.25);
}

.editor-game-title { max-width: 420px; }

.editor-cat {
  background: linear-gradient(180deg, rgba(20, 28, 96, 0.75), rgba(8, 12, 52, 0.9));
  border: 1px solid rgba(170, 176, 224, 0.25);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.editor-cat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.editor-cat-name { flex: 1; min-width: 220px; max-width: 420px; }

.btn-small { font-size: 0.82rem; padding: 0.45em 0.9em; }

.editor-clues { display: flex; flex-direction: column; gap: 0.5rem; }

.editor-clue-row {
  display: grid;
  grid-template-columns: 88px 1fr 1fr 34px 34px;
  gap: 0.55rem;
  align-items: start;
}

.editor-clue-labels {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

.editor-clue-row .editor-dd {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.6rem;
  justify-self: center;
  accent-color: var(--gold);
}

.editor-clue-row .remove-btn {
  background: transparent;
  color: var(--ink-dim);
  border: none;
  font-size: 1rem;
  padding: 0.45em;
  margin-top: 0.25rem;
  border-radius: 6px;
  cursor: pointer;
  justify-self: center;
}

.editor-clue-row .remove-btn:hover:not(:disabled) {
  color: var(--red);
  background: rgba(255, 107, 107, 0.12);
}

.editor-clue-row .remove-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.editor-clue-row .remove-btn:focus-visible { outline: 2px solid var(--gold); }

.editor-row-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.editor-final {
  border: 1px solid rgba(170, 176, 224, 0.25);
  border-radius: 14px;
  padding: 1rem 1.2rem 1.2rem;
  margin: 0;
}

.editor-final legend { padding: 0 0.5em; }

.editor-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  cursor: pointer;
}

.editor-check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--gold);
}

.editor-final-fields {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

@media (max-width: 760px) {
  .editor-clue-row {
    grid-template-columns: 88px 1fr 42px;
    grid-template-areas:
      "value clue   dd"
      "value answer remove";
  }
  .editor-clue-row input[type="number"] { grid-area: value; }
  .editor-clue-row textarea:nth-of-type(1) { grid-area: clue; }
  .editor-clue-row textarea:nth-of-type(2) { grid-area: answer; }
  .editor-clue-row .editor-dd { grid-area: dd; }
  .editor-clue-row .remove-btn { grid-area: remove; }
  .editor-clue-labels { display: none; }
}

/* ============ Responsive & motion ============ */

@media (max-width: 600px) {
  .setup-card { padding: 1.6rem 1.3rem 2rem; }
  .topbar { flex-wrap: wrap; }
  .clue-card { padding: 1.2rem 1rem 1.4rem; }
  .board-cell { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
