/* ------------------------------------------------------------------ base */
:root {
  --bg: #0a0b0f;
  --ink: #ece7dd;
  --mute: #8c93a1;
  --line: rgba(236, 231, 221, 0.13);
  --line-soft: rgba(236, 231, 221, 0.07);
  --gold: #e3b268;
  --gold-dim: rgba(227, 178, 104, 0.14);
  --mint: #64d1b4;
  --red: #e07167;
  --paper: #f5efe4;
  --paper-ink: #191714;
  --paper-line: rgba(25, 23, 20, 0.16);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Nirmala UI", "Microsoft YaHei", "Malgun Gothic", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ambient {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(227, 178, 104, 0.13), transparent 70%),
    radial-gradient(45% 45% at 88% 8%, rgba(100, 209, 180, 0.08), transparent 70%);
  filter: blur(10px);
}

button { font: inherit; color: inherit; }

kbd {
  font-family: var(--sans);
  font-size: 0.78em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 5px;
  margin: 0 1px;
}

/* --------------------------------------------------------------- layout */
.app {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 24px 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(160deg, #f0c281, #c98f3d);
  color: #1a1508;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 18px -8px rgba(227, 178, 104, 0.9);
}

.brand-name {
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9c3b7;
}

.brand-name b { color: var(--gold); font-weight: 600; }

.icon-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #b9b3a8;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.icon-btn:hover { border-color: rgba(236, 231, 221, 0.32); color: var(--ink); background: rgba(255, 255, 255, 0.03); }

.screen[hidden] { display: none; }

.screen { animation: rise 0.45s cubic-bezier(0.22, 0.7, 0.3, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- accueil */
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: #f3ede2;
}

.hero em {
  font-style: italic;
  color: var(--gold);
}

.lede {
  max-width: 54ch;
  margin: 0 0 38px;
  color: var(--mute);
  font-size: 16.5px;
}

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.level-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  cursor: pointer;
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}

.level-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 178, 104, 0.45);
  background: linear-gradient(170deg, rgba(227, 178, 104, 0.09), rgba(255, 255, 255, 0.015));
}

.level-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.level-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.level-name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
}

.level-opts {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.level-blurb { display: block; color: var(--mute); font-size: 14px; line-height: 1.45; }

.level-best {
  display: block;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #6f7684;
  text-transform: uppercase;
}

.level-best b { color: #cfc8bb; font-weight: 600; letter-spacing: 0.02em; }

.home-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.home-note { margin: 0; font-size: 13px; color: #6f7684; max-width: 46ch; }

/* ---------------------------------------------------------------- boutons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s, background 0.18s, border-color 0.18s, color 0.18s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(160deg, #f0c281, #cf9645);
  color: #1a1508;
  font-weight: 600;
  box-shadow: 0 14px 30px -16px rgba(227, 178, 104, 0.9);
}

.btn-primary:hover { filter: brightness(1.05); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: #cbc5ba;
}

.btn-outline:hover { border-color: rgba(227, 178, 104, 0.5); color: var(--ink); }

.btn-quiet { background: none; color: #7c838f; padding: 12px 8px; }
.btn-quiet:hover { color: var(--ink); }

.btn small {
  font-size: 12px;
  color: #8a7448;
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------- hud */
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.hud-left { display: flex; align-items: center; gap: 16px; }

.hud-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.dots { display: flex; gap: 7px; margin: 0; padding: 0; list-style: none; }

.dot {
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: rgba(236, 231, 221, 0.14);
  transition: background 0.3s, transform 0.3s;
}

.dot.is-done { background: var(--gold); }
.dot.is-now { background: rgba(236, 231, 221, 0.6); transform: scaleY(1.7); }
.dot.is-good { background: var(--mint); }
.dot.is-mid { background: var(--gold); }
.dot.is-bad { background: rgba(224, 113, 103, 0.8); }

.hud-right { display: flex; align-items: center; gap: 22px; }

.stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }

.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d7480;
}

.stat-value {
  font-family: var(--serif);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  color: #f0ebdf;
}

.stat-streak .stat-value { color: var(--gold); }
.stat-streak.is-cold .stat-value { color: #4d535e; }

/* ---------------------------------------------------------------- artefact */
.artifact {
  position: relative;
  margin: 0 0 28px;
  padding: 24px 30px 18px;
  border-radius: 5px;
  background:
    radial-gradient(120% 140% at 100% 0%, #fbf6ec, #efe6d5 70%, #e8ddc9);
  color: var(--paper-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 30px 60px -34px rgba(0, 0, 0, 0.95);
  transform: rotate(-0.3deg);
  animation: card-in 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}

@keyframes card-in {
  from { opacity: 0; transform: rotate(-0.3deg) translateY(14px) scale(0.99); }
  to { opacity: 1; transform: rotate(-0.3deg) translateY(0) scale(1); }
}

.artifact::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(0deg, rgba(25, 23, 20, 0.028) 0 1px, transparent 1px 4px);
  opacity: 0.6;
  pointer-events: none;
}

.artifact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--paper-line);
}

.artifact-kind {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6c6152;
}

.artifact-num {
  font-family: var(--serif);
  font-size: 13px;
  color: #8d8069;
  letter-spacing: 0.08em;
}

.artifact-text {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(19px, 2.9vw, 27px);
  line-height: 1.55;
  letter-spacing: 0.004em;
  overflow-wrap: anywhere;
}

.artifact-text[dir="rtl"] {
  text-align: right;
  font-size: clamp(21px, 3.1vw, 30px);
  line-height: 1.9;
}

.artifact-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px dashed var(--paper-line);
}

.listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(25, 23, 20, 0.22);
  background: rgba(255, 255, 255, 0.5);
  color: #342e25;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.listen-btn:hover { background: #fff; border-color: rgba(25, 23, 20, 0.4); }
.listen-btn.is-speaking { background: #f7e6c6; border-color: var(--gold); }
.listen-icon { display: inline-flex; }

.listen-note { font-size: 11.5px; color: #8d8069; letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- réponses */
.answer-zone { margin-bottom: 40px; }

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.answer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  color: #e4dfd4;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.12s, opacity 0.25s;
}

.answer-btn:hover:not(:disabled) {
  border-color: rgba(227, 178, 104, 0.55);
  background: rgba(227, 178, 104, 0.08);
}

.answer-btn:active:not(:disabled) { transform: translateY(1px); }
.answer-btn:disabled { cursor: default; }

.answer-idx {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(236, 231, 221, 0.07);
  font-size: 11px;
  color: #8c93a1;
  font-variant-numeric: tabular-nums;
}

.answer-btn.is-right {
  border-color: rgba(100, 209, 180, 0.7);
  background: rgba(100, 209, 180, 0.13);
  color: #d8f5ec;
}

.answer-btn.is-right .answer-idx { background: rgba(100, 209, 180, 0.24); color: #c3efe2; }

.answer-btn.is-wrong {
  border-color: rgba(224, 113, 103, 0.6);
  background: rgba(224, 113, 103, 0.1);
  color: #f0c6c1;
}

.answer-btn.is-wrong .answer-idx { background: rgba(224, 113, 103, 0.2); color: #f2c4bf; }

.answer-btn.is-faded { opacity: 0.3; }
.answer-btn.is-gone { display: none; }

/* ------------------------------------------------------------ saisie libre */
.guess { position: relative; }

.guess-row { display: flex; gap: 10px; }

.guess-input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  font-size: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  transition: border-color 0.16s, background 0.16s;
}

.guess-input::placeholder { color: #656c78; }
.guess-input:focus { border-color: rgba(227, 178, 104, 0.6); background: rgba(227, 178, 104, 0.05); }

.guess-submit {
  flex: none;
  padding: 0 24px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: linear-gradient(160deg, #f0c281, #cf9645);
  color: #1a1508;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.guess-submit:hover { filter: brightness(1.05); }
.guess-submit:disabled { opacity: 0.35; cursor: default; filter: none; }

.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #14171d;
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.95);
  max-height: 260px;
  overflow-y: auto;
}

.suggestions[hidden] { display: none; }

.suggestion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 15px;
  cursor: pointer;
}

.suggestion .s-native { font-size: 12.5px; color: #7d8492; }

.suggestion.is-active, .suggestion:hover { background: rgba(227, 178, 104, 0.14); }

.guess-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.guess-help .hint-box { margin-top: 0; }

.guess-note { margin: 0; font-size: 12.5px; color: #6f7684; }

/* ------------------------------------------------------------------ indice */
.hint-box { margin-top: 14px; }

.hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(236, 231, 221, 0.2);
  background: none;
  color: #a9b0bc;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}

.hint-btn:hover:not(:disabled) { border-color: rgba(227, 178, 104, 0.55); color: var(--gold); }
.hint-btn:disabled { opacity: 0.4; cursor: default; }
.hint-btn span { font-size: 11px; color: #6f7684; letter-spacing: 0.04em; }

.hint-text {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(227, 178, 104, 0.07);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #d8d2c6;
}

.hint-text[hidden] { display: none; }

/* --------------------------------------------------------------- révélation */
.answer-zone > .reveal { margin-top: 18px; }

.reveal:focus { outline: none; }

.reveal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  animation: rise 0.35s ease both;
}

.reveal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.verdict {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.verdict.is-good { color: var(--mint); }
.verdict.is-mid { color: var(--gold); }
.verdict.is-bad { color: var(--red); }

.truth-name {
  margin: 6px 0 2px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.1;
  color: #f4efe4;
}

.truth-native { margin: 0; font-size: 15px; color: #8f968f; }

.points {
  text-align: right;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.points.is-zero { color: #6f7684; }

.points small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #6f7684; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }

.chip {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #aab1bd;
}

.chip.is-plus { border-color: rgba(100, 209, 180, 0.35); color: var(--mint); }
.chip.is-minus { border-color: rgba(224, 113, 103, 0.3); color: #dc9d96; }

.truth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 24px;
  margin-bottom: 16px;
}

.truth-cell dt {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f7684;
  margin-bottom: 3px;
}

.truth-cell dd { margin: 0; font-size: 14.5px; color: #d9d3c7; }

.fact {
  margin: 0 0 20px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
  color: #bdb7ab;
  line-height: 1.5;
}

.fact b { color: #ded8cb; font-weight: 600; }

.reveal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.key-hint { font-size: 12px; color: #6f7684; }

/* ------------------------------------------------------------------- fin */
.end-head { text-align: center; margin-bottom: 34px; }

.end-score {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 84px);
  line-height: 1;
  color: #f5f0e5;
  font-variant-numeric: tabular-nums;
}

.end-score-max { font-size: 0.36em; color: #6f7684; margin-left: 10px; }

.end-rank {
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--gold);
}

.rank-bar {
  width: min(420px, 100%);
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(236, 231, 221, 0.12);
  overflow: hidden;
}

.rank-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #cf9645, #f0c281);
  transition: width 0.9s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.round-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.round-row {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 14.5px;
}

.round-row + .round-row { border-top: 1px solid var(--line-soft); }

.round-swatch { width: 10px; height: 10px; border-radius: 3px; background: #4a505b; }
.round-swatch.is-good { background: var(--mint); }
.round-swatch.is-mid { background: var(--gold); }
.round-swatch.is-bad { background: var(--red); }

.round-lang { color: #ddd7cb; }
.round-lang span { color: #6f7684; font-size: 12.5px; margin-left: 8px; }

.round-pts { font-variant-numeric: tabular-nums; color: #b3ab9d; font-size: 13.5px; }
.round-pts.is-zero { color: #5b616c; }

.round-tag {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f7684;
}

.end-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.end-note { margin: 22px 0 0; text-align: center; font-size: 13px; color: #6f7684; min-height: 1.4em; }

/* ------------------------------------------------------------------ modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 7, 10, 0.75);
  backdrop-filter: blur(6px);
  animation: rise 0.24s ease both;
}

.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #12151b;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.9);
}

.modal-card h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  color: #f2ece1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #a9b0bc;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.12); color: var(--ink); }

.rules { margin: 0 0 18px; padding-left: 20px; color: #bab4a8; font-size: 14.5px; }

.rules li { margin-bottom: 12px; }
.rules b { color: #eee8dc; font-weight: 600; }

.rules-note { margin: 0 0 10px; font-size: 13px; color: #7d8492; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translateX(-50%) translateY(8px);
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #161a21;
  color: #e6e0d4;
  font-size: 13.5px;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.toast[hidden] { display: none; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 760px) {
  .app { padding: 20px 18px 56px; }
  .topbar { margin-bottom: 26px; }
  .levels { grid-template-columns: 1fr; }
  .level-card { padding: 18px 18px 16px; }
  .answers { grid-template-columns: 1fr; }
  .artifact { padding: 20px 20px 14px; }
  .hud { flex-wrap: wrap; gap: 14px; }
  .hud-right { gap: 16px; }
  .reveal-head { flex-direction: column; gap: 10px; }
  .points { text-align: left; }
  .round-row { grid-template-columns: 18px 1fr auto; }
  .round-tag { display: none; }
  .end-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 520px) {
  .hud { flex-direction: column; align-items: stretch; gap: 12px; }
  .hud-left { justify-content: space-between; }
  .hud-right { justify-content: space-between; }
  .stat { align-items: flex-start; }
  .dot { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
