/* ============================================
   BrainSnack — design system
   Playful, bright, mobile-first
   ============================================ */

:root {
  --c-word: #8b5cf6;
  --c-trivia: #3b82f6;
  --c-emoji: #f97316;
  --c-numbers: #22c55e;
  --c-connections: #eab308;
  --grad-brand: linear-gradient(120deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);

  --bg: #faf8ff;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1eefb;
  --text: #1c1533;
  --text-soft: #655e80;
  --border: #e5e0f5;
  --tile-empty: #ffffff;
  --shadow: 0 8px 24px rgba(124, 93, 250, 0.12);
  --shadow-pop: 0 12px 32px rgba(124, 93, 250, 0.22);

  --correct: #22c55e;
  --present: #eab308;
  --absent: #94a3b8;

  --radius: 18px;
  --radius-sm: 12px;
}

html[data-theme="dark"] {
  --bg: #12101c;
  --bg-soft: #181527;
  --surface: #1e1a30;
  --surface-2: #262040;
  --text: #f2eeff;
  --text-soft: #a79fc4;
  --border: #322b52;
  --tile-empty: #262040;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 12px 32px rgba(139, 92, 246, 0.35);
  --absent: #4b4763;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

button, .opt, .key, .conn-tile, .tile, a.card, .conn-solved { touch-action: manipulation; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

/* subtle playful background blobs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 85% -5%, color-mix(in srgb, var(--c-word) 14%, transparent), transparent 70%),
    radial-gradient(500px 380px at -10% 30%, color-mix(in srgb, var(--c-emoji) 12%, transparent), transparent 70%),
    radial-gradient(520px 420px at 110% 85%, color-mix(in srgb, var(--c-numbers) 10%, transparent), transparent 70%);
  pointer-events: none;
}

.container { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-btn, .theme-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  font-family: inherit;
}
.nav-btn:hover, .theme-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-btn.active { background: var(--surface-2); }
.theme-btn { padding: 7px 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--accent, var(--c-word));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent, var(--c-word)) 45%, transparent);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  font-family: inherit;
  user-select: none;
}
.btn:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.05); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- hero / home ---------- */
.hero { text-align: center; padding: 34px 8px 18px; }
.hero .brain-emoji { font-size: 58px; display: block; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
.hero h1 {
  font-size: clamp(30px, 7vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 8px 0 6px;
}
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-soft); font-size: 17px; font-weight: 600; }

.day-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 4px;
  font-weight: 800;
  font-size: 15px;
}
.progress-track {
  width: 170px; height: 12px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad-brand);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.crown-badge { font-size: 18px; }

.countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px auto 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.countdown-chip b { color: var(--text); }

/* ---------- game cards ---------- */
.cards { display: flex; flex-direction: column; gap: 14px; padding: 22px 0 8px; }
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent);
}
.card:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-pop); }
.card-icon {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.card-body { flex: 1; min-width: 0; }
.card-name { font-weight: 900; font-size: 18px; letter-spacing: -0.01em; }
.card-desc { color: var(--text-soft); font-size: 13.5px; font-weight: 600; margin-top: 1px; }
.card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status-chip {
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  white-space: nowrap;
}
.status-chip.done { background: color-mix(in srgb, var(--correct) 18%, var(--surface)); color: var(--correct); }
.streak { font-size: 13px; font-weight: 800; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.streak.hot { color: #f97316; }

/* ---------- game page ---------- */
.game-wrap { padding: 18px 0 30px; min-height: 60vh; display: flex; flex-direction: column; }
.game-title-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 4px;
}
.game-title-row h1 { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.game-sub { text-align: center; color: var(--text-soft); font-weight: 700; font-size: 14px; margin-bottom: 16px; font-variant-numeric: tabular-nums; }

.archive-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto 14px;
  padding: 8px 16px;
  width: fit-content;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-emoji) 16%, var(--surface));
  color: var(--c-emoji);
  font-weight: 800; font-size: 13.5px;
  border: 1px dashed color-mix(in srgb, var(--c-emoji) 55%, transparent);
}
.archive-banner a { color: inherit; }

/* ---------- Word game board ---------- */
.board { display: flex; flex-direction: column; gap: 6px; align-items: center; margin: 4px 0 18px; }
.row { display: flex; gap: 6px; }
.tile {
  width: clamp(52px, 14.5vw, 62px);
  height: clamp(52px, 14.5vw, 62px);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--tile-empty);
  border: 2px solid var(--border);
  transition: transform 0.1s ease;
  user-select: none;
}
.tile.filled { border-color: var(--text-soft); transform: scale(1.04); animation: pop 0.12s ease; }
@keyframes pop { 50% { transform: scale(1.12); } }
.tile.flip { animation: flip 0.5s ease forwards; }
@keyframes flip {
  0% { transform: rotateX(0); }
  49% { transform: rotateX(-90deg); }
  50% { transform: rotateX(90deg); }
  100% { transform: rotateX(0); }
}
.tile.correct, .key.correct { background: var(--correct); border-color: var(--correct); color: #fff; }
.tile.present, .key.present { background: var(--present); border-color: var(--present); color: #fff; }
.tile.absent, .key.absent { background: var(--absent); border-color: var(--absent); color: #fff; }
html[data-theme="dark"] .tile.absent,
html[data-theme="dark"] .key.absent { color: #cfc9e8; }
.row.shake { animation: shake 0.4s ease; }
@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.row.win .tile { animation: bounce 0.6s ease; }
@keyframes bounce {
  25% { transform: translateY(-14px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-7px); }
}

/* on-screen keyboard */
.kbd { display: flex; flex-direction: column; gap: 7px; align-items: center; margin-top: auto; padding-top: 8px; }
.kbd-row { display: flex; gap: 5px; width: 100%; justify-content: center; }
.key {
  flex: 1 1 0;
  max-width: 44px;
  height: 54px;
  border-radius: 9px;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.08s ease, background 0.3s ease;
  user-select: none;
}
.key:active { transform: scale(0.92); }
.key.wide { max-width: 68px; flex: 1.5 1 0; font-size: 12.5px; }

/* ---------- Quiz (trivia + emoji) ---------- */
.quiz-emoji-clue {
  text-align: center;
  font-size: clamp(44px, 13vw, 62px);
  letter-spacing: 6px;
  margin: 8px 0 16px;
  padding: 22px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: bob 3.2s ease-in-out infinite;
}
.quiz-q {
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  margin: 4px 0 18px;
  min-height: 56px;
}
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
  animation: slideUp 0.3s ease backwards;
}
.opt:hover:not(.locked) { transform: translateY(-2px); border-color: var(--accent, var(--c-trivia)); }
.opt.correct { background: color-mix(in srgb, var(--correct) 16%, var(--surface)); border-color: var(--correct); color: var(--correct); }
.opt.wrong { background: color-mix(in srgb, #ef4444 12%, var(--surface)); border-color: #ef4444; color: #ef4444; animation: shake 0.35s ease; }
.opt.dim { opacity: 0.45; }
.opt.locked { cursor: default; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } }
.quiz-progress { display: flex; justify-content: center; gap: 7px; margin-bottom: 16px; }
.qdot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.qdot.now { background: var(--accent, var(--c-trivia)); border-color: transparent; transform: scale(1.25); }
.qdot.ok { background: var(--correct); border-color: transparent; }
.qdot.bad { background: #ef4444; border-color: transparent; }
.quiz-next-row { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- Numbers sprint ---------- */
.timer-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 auto 14px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 900;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.prob-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 18px;
  text-align: center;
}
.prob-text { font-size: clamp(32px, 9vw, 42px); font-weight: 900; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.prob-input-row { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.prob-input {
  width: 150px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  font-family: inherit;
  outline: none;
  font-variant-numeric: tabular-nums;
}
.prob-input:focus { border-color: var(--accent, var(--c-numbers)); }
.prob-input.good { border-color: var(--correct); background: color-mix(in srgb, var(--correct) 12%, var(--surface)); }
.prob-input.bad { border-color: #ef4444; animation: shake 0.35s ease; }
.best-chip { text-align: center; color: var(--text-soft); font-weight: 700; font-size: 13px; margin-top: 12px; font-variant-numeric: tabular-nums; }

/* ---------- Connections ---------- */
.conn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.conn-tile {
  aspect-ratio: 1.35;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: clamp(11px, 3.4vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4px;
  font-family: inherit;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  word-break: break-word;
  user-select: none;
}
.conn-tile.sel { background: #1c1533; color: #fff; border-color: transparent; transform: scale(0.96); }
html[data-theme="dark"] .conn-tile.sel { background: #f2eeff; color: #1c1533; }
.conn-tile.jump { animation: jump 0.35s ease; }
@keyframes jump { 40% { transform: translateY(-8px) scale(0.96);} }
.conn-tile.shake { animation: shake 0.35s ease; }
.conn-solved {
  grid-column: 1 / -1;
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  color: #fff;
  animation: slideUp 0.35s ease;
}
.conn-solved .cat { font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.conn-solved .words { font-weight: 700; font-size: 12.5px; opacity: 0.92; margin-top: 3px; text-transform: uppercase; }
.conn-solved.g0 { background: #eab308; }
.conn-solved.g1 { background: #22c55e; }
.conn-solved.g2 { background: #3b82f6; }
.conn-solved.g3 { background: #a855f7; }
.conn-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 800; font-size: 14px; }
.mistakes-dots { display: flex; gap: 5px; }
.mdot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }
.mdot.on { background: var(--c-connections); border-color: transparent; }
.conn-btns { display: flex; gap: 8px; justify-content: center; }

/* ---------- modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 12, 35, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
@media (min-width: 560px) { .modal-overlay { align-items: center; padding: 20px; } }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 30px;
  animation: modalUp 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
  position: relative;
}
@media (min-width: 560px) { .modal { border-radius: 24px; } }
@keyframes modalUp { from { transform: translateY(50px); opacity: 0; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  display: grid; place-items: center;
}
.result-emoji { font-size: 54px; text-align: center; display: block; }
.result-title { text-align: center; font-size: 26px; font-weight: 900; margin: 8px 0 2px; letter-spacing: -0.02em; }
.result-sub { text-align: center; color: var(--text-soft); font-weight: 700; margin-bottom: 16px; }
.stat-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
  min-width: 70px;
}
.chip b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.chip span { font-size: 11.5px; color: var(--text-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.result-share-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }
.dist { margin: 0 auto 16px; max-width: 300px; }
.dist-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 13px; font-weight: 800; }
.dist-bar { height: 20px; border-radius: 6px; background: var(--surface-2); min-width: 22px; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-size: 11.5px; transition: width 0.6s ease; }
.dist-bar.me { background: var(--correct); color: #fff; }
.more-snacks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.more-snacks a {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 13.5px;
  transition: transform 0.1s ease;
}
.more-snacks a:hover { transform: translateY(-2px); }
.result-countdown { text-align: center; margin-top: 14px; }

.howto h3 { font-size: 19px; font-weight: 900; margin: 14px 0 6px; }
.howto p, .howto li { color: var(--text-soft); font-weight: 600; font-size: 14.5px; }
.howto ul { padding-left: 20px; }
.legal h2 { font-size: 21px; font-weight: 900; margin: 18px 0 6px; }
.legal p { color: var(--text-soft); font-weight: 600; font-size: 14.5px; margin-bottom: 10px; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(70px);
  z-index: 200;
  background: #1c1533;
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.25s ease;
  pointer-events: none;
  max-width: 88vw;
  text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.confetti-canvas { position: fixed; inset: 0; z-index: 300; pointer-events: none; }

/* ---------- footer / ads / seo ---------- */
/* ad containers stay hidden until monetization is approved —
   flip by adding data-ads-on to <body> after plugging in real ad code */
body:not([data-ads-on]) .ad-slot { display: none; }

.ad-slot {
  margin: 18px auto;
  max-width: 560px;
  min-height: 90px;
  border: 2px dashed color-mix(in srgb, var(--text-soft) 40%, transparent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}
.site-footer { border-top: 1px solid var(--border); margin-top: 10px; padding: 22px 0 34px; }
.footer-inner { max-width: 560px; margin: 0 auto; padding: 0 16px; text-align: center; }
.footer-logo { font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.footer-links a { color: var(--text-soft); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-soft); font-size: 12.5px; font-weight: 600; }

.seo-block { max-width: 560px; margin: 26px auto 0; padding: 0 4px; }
.seo-block h2 { font-size: 20px; font-weight: 900; margin: 16px 0 6px; }
.seo-block p { color: var(--text-soft); font-weight: 600; font-size: 14.5px; margin-bottom: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 8px;
}
.faq summary { font-weight: 800; font-size: 14.5px; cursor: pointer; }
.faq details p { margin-top: 8px; margin-bottom: 0; }

/* archive page */
.archive-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.archive-day h3 { font-size: 15.5px; font-weight: 900; margin-bottom: 8px; }
.archive-links { display: flex; flex-wrap: wrap; gap: 7px; }
.archive-links a {
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 7px 13px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.archive-links a:hover { transform: translateY(-1px); }
.archive-links a .tick { color: var(--correct); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--c-word) 70%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* utility */
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.hidden { display: none !important; }

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