/* ════════════════════════════════════════════════════════════════════════
   vea-wordgame.css — Word Duel
   ────────────────────────────────────────────────────────────────────────
   Built on the sitewide cream-canvas tokens (vea-dash.css is the reference):
   warm cream surface, deep-green primary, gold accent, Fraunces headlines
   over Inter body.

   THE ONE HARD LAYOUT RULE
   The board must fit a phone with NO vertical scrolling — reaching for the
   keyboard and losing sight of the grid is what makes a word game feel
   cheap. So the game view is a fixed-height flex column and the tile size
   is computed from BOTH constraints at once:

       --tile = min(width available / columns, height available / 6 rows)

   Because the chrome around the board (bar, clue, keyboard) has known
   heights, --tile can be derived in pure CSS with no JS measuring and no
   layout thrash on rotate. Change a chrome height and you MUST change
   --wd-chrome to match, or the grid will overflow on short screens.

   The menu view scrolls normally — only the board is pinned.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --surface: #f6f4ee;
  --paper: #ffffff;
  --paper-soft: #fbfaf6;
  --ink: #1c1917;
  --muted: #57534e;
  --dim: #8a857d;
  --line: #e7e2d6;
  --primary: #1a5233;
  --primary-deep: #0f2d1a;
  --primary-soft: rgba(26, 82, 51, .08);
  --gold: #b5831a;
  --gold-soft: #fdf0cc;
  --red: #b91c1c;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-card: 0 1px 2px rgba(16, 40, 24, .04), 0 14px 36px -26px rgba(16, 40, 24, .45);
  --shadow-hover: 0 1px 2px rgba(16, 40, 24, .05), 0 30px 56px -30px rgba(16, 40, 24, .5);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* tile states */
  --t-correct: #1a5233;
  --t-present: #c99a2e;
  --t-absent: #8d8778;

  /* per-level accents */
  --lv-a1: #2e8b6f;
  --lv-a2: #2b6cb0;
  --lv-b1: #7c3aed;
  --lv-b2: #be3455;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* clip, NEVER hidden — overflow-x:hidden on the root silently kills every
   position:sticky descendant (see the sitewide 2026-07 fix). */
html { overflow-x: clip; height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface);
  background-image: radial-gradient(circle at 1px 1px, rgba(26, 82, 51, .035) 1px, transparent 0);
  background-size: 30px 30px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* The board manages its own height; stop iOS rubber-banding the page. */
  overscroll-behavior-y: none;
}
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.02em; margin: 0; }
a { color: var(--primary); }
button { font-family: var(--font-body); }
/* Every interactive control keeps a visible focus ring — the game is fully
   keyboard-playable and this is the only cue a keyboard user gets. */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ══════════════════════════════════════════════════════════════════════
   SHELL
   ══════════════════════════════════════════════════════════════════════ */
.wd-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wd-wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }

.wd-top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 249, 245, .88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(26, 82, 51, .10);
}
.wd-top__in {
  max-width: 860px; margin: 0 auto; padding: 9px 16px;
  display: flex; align-items: center; gap: 12px; min-height: 56px;
}
.wd-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.wd-brand img { height: 34px; width: auto; display: block; }
.wd-brand b { font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--primary); line-height: 1; }
.wd-top__spacer { flex: 1; }
.wd-top__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; color: var(--primary);
  border: 1px solid rgba(26, 82, 51, .18); background: rgba(255, 255, 255, .6);
  transition: background .18s ease, border-color .18s ease;
}
.wd-top__link:hover { background: #fff; border-color: rgba(26, 82, 51, .34); }

/* ══════════════════════════════════════════════════════════════════════
   MENU VIEW
   ══════════════════════════════════════════════════════════════════════ */
.wd-hero { text-align: center; padding: 26px 0 20px; }
.wd-hero h1 { font-size: clamp(30px, 7vw, 46px); font-weight: 800; color: var(--primary-deep); }
.wd-hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--gold) 10%, #d9a441 60%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wd-hero p { margin: 9px auto 0; max-width: 46ch; color: var(--muted); font-size: 15px; }

/* the learner's own numbers */
.wd-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 18px 0 6px;
}
.wd-stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 6px; text-align: center; box-shadow: var(--shadow-card);
}
.wd-stat b { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.15; }
.wd-stat span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); font-weight: 600; margin-top: 2px; }
.wd-stat--fire b { color: var(--gold); }

.wd-sec-title {
  display: flex; align-items: baseline; gap: 10px;
  margin: 30px 0 12px;
}
.wd-sec-title h2 { font-size: 21px; font-weight: 800; color: var(--primary-deep); }
.wd-sec-title span { font-size: 13px; color: var(--dim); }

/* ── level picker ─────────────────────────────────────────────────────── */
.wd-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.wd-lvl {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
  padding: 17px 16px 15px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); cursor: pointer; text-align: left;
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s ease, border-color .2s ease;
}
.wd-lvl:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: rgba(26, 82, 51, .26); }
.wd-lvl:active { transform: translateY(-1px); }
/* the accent rail carries the level colour */
.wd-lvl::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--accent, var(--primary));
}
.wd-lvl__code {
  font-family: var(--font-head); font-size: 27px; font-weight: 800;
  color: var(--accent, var(--primary)); line-height: 1;
}
.wd-lvl__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.wd-lvl__meta { font-size: 12.5px; color: var(--muted); }
.wd-lvl__state {
  margin-top: 7px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
}
.wd-lvl__state.is-done { background: var(--gold-soft); color: #8a6410; }

/* ── leaderboard ──────────────────────────────────────────────────────── */
.wd-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 18px 18px 14px; margin-bottom: 18px;
}
.wd-tabs { display: flex; gap: 6px; padding: 4px; background: var(--surface); border-radius: 999px; margin-bottom: 14px; }
.wd-tab {
  flex: 1; padding: 9px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 700;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.wd-tab[aria-selected="true"] {
  background: var(--paper); color: var(--primary);
  box-shadow: 0 1px 2px rgba(16, 40, 24, .06), 0 6px 14px -8px rgba(16, 40, 24, .4);
}

.lb-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  transition: background .16s ease;
}
.lb-row + .lb-row { border-top: 1px solid var(--line); }
.lb-row:hover { background: var(--paper-soft); }
.lb-row--me { background: var(--primary-soft); }
.lb-row--me:hover { background: var(--primary-soft); }
.lb-rank {
  flex-shrink: 0; width: 30px; text-align: center;
  font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--dim);
}
.lb-rank--top { font-size: 19px; }
.lb-ava {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #2e7d52);
  color: #fff; font-weight: 800; font-size: 14px;
}
.lb-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pts { flex-shrink: 0; font-weight: 800; font-size: 14px; color: var(--primary); font-variant-numeric: tabular-nums; }
.lb-chip {
  flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; background: var(--surface); color: var(--muted);
}
.wd-empty { text-align: center; padding: 26px 14px; color: var(--muted); }
.wd-empty b { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); margin-bottom: 5px; }
.wd-note { font-size: 12.5px; color: var(--dim); text-align: center; margin: 10px 0 0; }

/* ══════════════════════════════════════════════════════════════════════
   GAME VIEW — the pinned, no-scroll board
   ══════════════════════════════════════════════════════════════════════ */
#view-game {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: var(--surface);
  background-image: radial-gradient(circle at 1px 1px, rgba(26, 82, 51, .035) 1px, transparent 0);
  background-size: 30px 30px;
  /* iOS: keep the board clear of the home indicator and the notch. */
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-top: env(safe-area-inset-top, 0);
}

/* compact game bar */
.wd-bar {
  flex-shrink: 0; height: 50px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 12px; border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, .9);
}
.wd-iconbtn {
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px; background: var(--paper);
  color: var(--primary); font-size: 17px; line-height: 1;
  transition: background .16s ease, border-color .16s ease;
}
.wd-iconbtn:hover { background: var(--paper-soft); border-color: rgba(26, 82, 51, .3); }
.wd-bar__lvl {
  font-family: var(--font-head); font-weight: 800; font-size: 16px;
  color: var(--accent, var(--primary));
}
.wd-bar__mode {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary);
}
.wd-bar__mode.is-practice { background: var(--gold-soft); color: #8a6410; }
.wd-bar__spacer { flex: 1; }
.wd-bar__dots { display: flex; gap: 4px; }
.wd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s ease; }
.wd-dot.is-spent { background: var(--t-absent); }

/* clue */
.wd-clue {
  flex-shrink: 0; padding: 10px 16px 9px; text-align: center;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
  min-height: 62px; justify-content: center;
}
.wd-clue__lbl {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.wd-clue__txt {
  font-family: var(--font-head); font-size: clamp(14px, 3.6vw, 17px);
  font-weight: 600; color: var(--primary-deep); line-height: 1.35;
  max-width: 40ch; text-wrap: balance;
}

/* ── the grid ─────────────────────────────────────────────────────────
   --wd-chrome is the total height of everything that is NOT the grid:
     bar 50 + clue 62 + keyboard 172 + message 26 + padding 24 = 334
   Keep it honest with the values above. */
.wd-gridwrap {
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 4px 12px;
}
.wd-grid {
  --gap: 5px;
  --wd-chrome: 334px;
  --avail-w: calc(min(100vw, 420px) - 24px);
  --tile-w: calc((var(--avail-w) - (var(--cols) - 1) * var(--gap)) / var(--cols));
  --tile-h: calc((100dvh - var(--wd-chrome)) / 6 - var(--gap));
  --tile: min(var(--tile-w), var(--tile-h), 62px);
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--tile));
  grid-auto-rows: var(--tile);
  gap: var(--gap);
  /* Tiles flip in 3D; without this the rotation reads as a flat squash. */
  perspective: 900px;
}
/* Older engines without dvh still get a correct board. */
@supports not (height: 100dvh) {
  .wd-grid { --tile-h: calc((100vh - var(--wd-chrome)) / 6 - var(--gap)); }
}

.wd-tile {
  display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 9px;
  background: var(--paper);
  font-family: var(--font-head);
  font-size: calc(var(--tile) * .48);
  font-weight: 800; text-transform: uppercase; color: var(--ink);
  line-height: 1; user-select: none;
  transition: border-color .12s ease, transform .1s ease;
  transform-style: preserve-3d;
}
.wd-tile.is-filled { border-color: #bdb6a6; animation: wd-pop .11s ease; }
.wd-tile.is-active { border-color: var(--primary); }

/* resolved states — applied at the midpoint of the flip */
.wd-tile.correct { background: var(--t-correct); border-color: var(--t-correct); color: #fff; }
.wd-tile.present { background: var(--t-present); border-color: var(--t-present); color: #fff; }
.wd-tile.absent  { background: var(--t-absent);  border-color: var(--t-absent);  color: #fff; }

@keyframes wd-pop { 0% { transform: scale(1); } 45% { transform: scale(1.09); } 100% { transform: scale(1); } }
/* The flip: a half-turn to hide the face, colour swapped at the midpoint by
   JS, then a half-turn back. Transform-only, so it stays on the compositor. */
@keyframes wd-flip {
  0%   { transform: rotateX(0deg); }
  50%  { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}
.wd-tile.is-flipping { animation: wd-flip .52s ease forwards; }

@keyframes wd-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.wd-row-shake { animation: wd-shake .4s ease; }

@keyframes wd-bounce {
  0% { transform: translateY(0); }
  35% { transform: translateY(-16px); }
  60% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}
.wd-tile.is-win { animation: wd-bounce .5s ease; }

/* message line */
.wd-msg {
  flex-shrink: 0; min-height: 26px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
}
.wd-msg.is-error { color: var(--red); }

/* ── keyboard ─────────────────────────────────────────────────────────── */
.wd-kb { flex-shrink: 0; padding: 4px 5px 8px; display: flex; flex-direction: column; gap: 6px; }
.wd-kbrow { display: flex; gap: 5px; justify-content: center; }
.wd-key {
  flex: 1 1 auto; min-width: 0; max-width: 44px; height: 50px;
  display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 7px; background: #d9d4c6; color: var(--ink);
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  transition: background .16s ease, color .16s ease, transform .08s ease;
  -webkit-tap-highlight-color: transparent;
}
.wd-key:active { transform: scale(.94); }
.wd-key--wide { flex: 1.6 1 auto; max-width: 68px; font-size: 11.5px; letter-spacing: .03em; }
.wd-key.correct { background: var(--t-correct); color: #fff; }
.wd-key.present { background: var(--t-present); color: #fff; }
.wd-key.absent  { background: #a8a294; color: #f2f0ea; }

/* ══════════════════════════════════════════════════════════════════════
   END-OF-ROUND MODAL
   ══════════════════════════════════════════════════════════════════════ */
.wd-modal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(15, 45, 26, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: wd-fade .25s ease;
  padding: 16px;
}
@media (min-width: 620px) { .wd-modal { align-items: center; } }
@keyframes wd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wd-rise { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

.wd-sheet {
  width: 100%; max-width: 460px; max-height: 90dvh; overflow-y: auto;
  background: var(--paper); border-radius: 26px;
  box-shadow: 0 30px 70px -20px rgba(15, 45, 26, .55);
  padding: 24px 22px 20px;
  animation: wd-rise .3s cubic-bezier(.2, .8, .3, 1);
}
.wd-sheet__head { text-align: center; margin-bottom: 16px; }
.wd-sheet__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 10px;
  background: var(--gold-soft); color: #8a6410;
}
.wd-sheet__badge.is-loss { background: #f4e4e4; color: #8c2f2f; }
.wd-sheet__word {
  font-family: var(--font-head); font-size: clamp(30px, 9vw, 42px); font-weight: 800;
  color: var(--primary-deep); text-transform: uppercase; letter-spacing: .04em; line-height: 1.05;
}
.wd-sheet__score {
  margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--gold);
}

.wd-def { background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 15px; margin-bottom: 12px; }
.wd-def dt {
  font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 3px;
}
.wd-def dd { margin: 0 0 11px; font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.wd-def dd:last-child { margin-bottom: 0; }
.wd-def dd.is-example { font-style: italic; color: var(--muted); }

.wd-tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }
.wd-tally div { text-align: center; padding: 10px 4px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wd-tally b { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--primary); }
.wd-tally span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); font-weight: 700; }

.wd-btn {
  width: 100%; padding: 14px 18px; border: 0; border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 700; font-family: var(--font-body);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.wd-btn--primary {
  background: linear-gradient(135deg, var(--primary), #24704a); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(26, 82, 51, .9);
}
.wd-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(26, 82, 51, .95); }
.wd-btn--primary[disabled] { background: #9db3a6; box-shadow: none; cursor: default; transform: none; }
.wd-btn--ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.wd-btn--ghost:hover { background: var(--paper-soft); color: var(--ink); }
.wd-btn-row { display: flex; gap: 9px; margin-top: 9px; }
.wd-btn-row .wd-btn { flex: 1; }

/* toast */
.wd-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 90; max-width: calc(100vw - 32px);
  background: var(--primary-deep); color: #fff;
  padding: 11px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(15, 45, 26, .8);
  animation: wd-toast-in .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes wd-toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE + MOTION
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .wd-stats { grid-template-columns: repeat(2, 1fr); }
  .wd-key { height: 46px; }
  .wd-grid { --wd-chrome: 322px; }
}
/* Short landscape phones: drop the clue to one line and shrink the keys so
   the six rows still fit without scrolling. */
@media (max-height: 620px) {
  .wd-clue { min-height: 46px; padding: 6px 16px; }
  .wd-clue__txt { font-size: 13px; }
  .wd-key { height: 42px; }
  .wd-grid { --wd-chrome: 296px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .wd-lvl:hover, .wd-btn--primary:hover { transform: none; }
}

/* ── dark mode ────────────────────────────────────────────────────────
   The rest of the site is light-only, so this stays a courtesy layer: it
   only re-points tokens, it never changes layout. */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #16181a; --paper: #1f2225; --paper-soft: #24282b;
    --ink: #f0ede6; --muted: #b6b1a7; --dim: #8b877f; --line: #33383c;
    --primary: #5fc397; --primary-deep: #d8f0e3; --primary-soft: rgba(95, 195, 151, .12);
    --gold: #e0b352; --gold-soft: rgba(224, 179, 82, .16);
    --t-absent: #4a4f54;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 36px -26px rgba(0, 0, 0, .8);
  }
  body { background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .03) 1px, transparent 0); }
  .wd-top { background: rgba(31, 34, 37, .88); }
  .wd-bar { background: rgba(31, 34, 37, .9); }
  #view-game { background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .03) 1px, transparent 0); }
  .wd-key { background: #3a4045; color: var(--ink); }
  .wd-key.absent { background: #2b2f33; color: #7d7973; }
  .wd-tile.correct, .wd-tile.present, .wd-tile.absent { color: #12140f; }
  .wd-sheet__badge.is-loss { background: rgba(200, 80, 80, .18); color: #f0a9a9; }
}
