/* HiveHunt — one stylesheet for every page: lobby, live hive, practice, rankings, replays, account.
   The hive at night: deep plum board, honey for your target, mint for you, coral for danger. */

:root {
  --bg: #1a1430;          /* page */
  --bg2: #221a3c;         /* panels */
  --bg3: #2c2350;         /* raised */
  --line: #3b3166;        /* hex outlines, rules */
  --cell: #241c41;        /* hive cells */
  --text: #f4eedc;
  --muted: #a198c4;
  --honey: #f6b93b;       /* target, primary action */
  --honey-dim: #6d5320;
  --mint: #45e0b8;        /* you */
  --coral: #ff5d6c;       /* hunter, danger, caught */
  --lilac: #9b8cff;
  --dot: #c9c0ea;         /* other players */
  --out: #5e5580;

  /* names the board script uses */
  --paper: var(--bg);
  --ink: var(--text);
  --accent: var(--honey);
  --accent-soft: var(--honey-dim);
  --hunter: var(--coral);
  --reach: #213f45;
  --reach-hover: #2b5a5c;

  --p-sec10: var(--coral);
  --p-minute: var(--honey);
  --p-hour: var(--mint);
  --p-day: var(--lilac);

  --display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --body: Figtree, system-ui, sans-serif;
  --hexbtn: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); font: 16px/1.55 var(--body);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(155, 140, 255, .14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(69, 224, 184, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--honey); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font: 700 clamp(30px, 4.4vw, 46px)/1.02 var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font: 600 22px/1.15 var(--display); margin: 0 0 12px; }
.muted { color: var(--muted); }
code { font-size: 14px; color: var(--honey); }

/* ---------------------------------------------------------------- top menu */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px; padding: 10px max(16px, calc((100vw - 1180px) / 2 + 16px));
  background: rgba(26, 20, 48, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 22px/1 var(--display); }
.menu { display: flex; gap: 2px; flex: 1; }
.menu a {
  position: relative; color: var(--muted); text-decoration: none; font: 600 15px/1 var(--display);
  padding: 10px 14px; border-radius: 8px;
}
.menu a:hover { color: var(--text); background: var(--bg2); }
.menu a[aria-current="page"] { color: var(--text); }
.menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 12px; height: 7px; transform: translateX(-50%);
  background: var(--honey); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.who { display: flex; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 600 14px/1 var(--display);
  padding: 9px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
}
.chip:hover { border-color: var(--mint); }
.chip-hex { width: 12px; height: 13px; background: var(--mint); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@media (max-width: 720px) {
  .bar { flex-wrap: wrap; gap: 8px 12px; }
  .brand span { display: none; }
  .menu { order: 3; flex-basis: 100%; overflow-x: auto; }
  .menu a { padding: 8px 10px; }
  .who { margin-left: auto; }
}

/* ---------------------------------------------------------------- buttons */
button, a.btn {
  font: 600 15px/1 var(--display); letter-spacing: .01em; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 0; cursor: pointer; background: var(--bg3);
  clip-path: var(--hexbtn); transition: background .15s, transform .1s;
}
button:hover, a.btn:hover { background: #3a2f66; }
button:active, a.btn:active { transform: translateY(1px); }
button.primary, a.btn.primary, button[aria-pressed="true"] { background: var(--honey); color: #241a08; }
button.primary:hover, a.btn.primary:hover { background: #ffcb5c; }
button[aria-pressed="true"]:hover { background: #ffcb5c; }
button.small, a.btn.small { padding: 8px 16px; font-size: 14px; }
button.ghosty { background: transparent; color: var(--muted); }
button.ghosty:hover { background: var(--bg2); color: var(--text); }
button:disabled { opacity: .35; cursor: default; transform: none; }
button:focus-visible, a.btn:focus-visible { outline: none; box-shadow: none; filter: drop-shadow(0 0 0 var(--mint)) brightness(1.15); text-decoration: underline; }

/* ---------------------------------------------------------------- game layout (live + practice + replay) */
.status { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 2px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--display); color: var(--muted);
  padding: 6px 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px;
}
.pill b { color: var(--text); font-weight: 700; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); animation: blink 1.4s infinite; }
.pill.pace { color: #1a1430; border: 0; }
@keyframes blink { 50% { opacity: .25; } }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 14px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.board-wrap {
  position: relative; min-width: 0; padding: 14px; border-radius: 18px;
  background: radial-gradient(closest-side, rgba(246, 185, 59, .07), transparent), var(--bg2);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .board-wrap { padding: 6px; }
  .scroller { overflow: auto; max-height: 72vh; overscroll-behavior: contain; border-radius: 12px; }
  .scroller .hive { width: 810px; max-width: none; }
}
.hive { width: 100%; height: auto; display: block; touch-action: manipulation; }
.hive polygon.cell { fill: var(--cell); stroke: var(--line); stroke-width: .7; }
.hive polygon.cell.reach { fill: var(--reach); cursor: pointer; }
.hive polygon.cell.reach:hover { fill: var(--reach-hover); }
.guessing .hive polygon.cell.reach { fill: var(--cell); cursor: default; }
.hive polygon.cell.pick { fill: var(--honey-dim); stroke: var(--honey); stroke-width: 1.4; }
.hive polygon.cell.pend { fill: #1f5a4c; stroke: var(--mint); stroke-width: 1.4; stroke-dasharray: 3 2; }
.stealthing .hive polygon.cell.reach { fill: #2f2a5a; }
.stealthing .hive polygon.cell.reach:hover { fill: #403a78; }
.hive g.dot { cursor: pointer; }
.hive g.dot circle.body { fill: var(--dot); transition: fill .2s; }
.hive g.dot:hover circle.body, .hive g.dot.sel circle.body { fill: var(--coral); }
.hive g.dot circle.ring { fill: none; stroke: var(--honey); stroke-width: 2.2; opacity: 0; transition: opacity .3s; pointer-events: none; }
.hive g.dot.tgt circle.ring { opacity: 1; filter: drop-shadow(0 0 3px rgba(246, 185, 59, .8)); }
.hive g.dot.tgt circle.body { fill: var(--honey); }
.hive g.dot.hunter circle.ring { opacity: 1; stroke: var(--coral); }
.hive g.dot.pend circle.ring { opacity: 1; stroke: var(--mint); stroke-dasharray: 3 2; }
.hive g.dot.human circle.body { fill: var(--text); }
.hive g.dot.follow circle.body { fill: var(--honey); }
.hive g.me polygon { fill: var(--mint); filter: drop-shadow(0 0 4px rgba(69, 224, 184, .7)); }
.hive g.me circle { fill: none; stroke: var(--mint); stroke-width: 1.4; pointer-events: none; }
.hive g.dot.ghost circle.body { fill: var(--bg); stroke: var(--dot); stroke-width: 1.3; stroke-dasharray: 2 1.6; }
.hive g.dot.ghost:hover circle.body { fill: var(--bg); stroke: var(--coral); }
.hive g.dot.ghost.tgt circle.ring { stroke-dasharray: 3 2; }
.hive g.myghost polygon { fill: none; stroke: var(--mint); stroke-width: 1.2; stroke-dasharray: 2.5 2; pointer-events: none; }
.hive polyline.trail { fill: none; stroke: var(--coral); stroke-width: 1.4; stroke-dasharray: 2 2; pointer-events: none; }
.hive line.path { stroke: var(--honey); stroke-width: 1.6; stroke-dasharray: 3 3; pointer-events: none; }
.hive line.path.stealth { stroke: var(--lilac); }
.hive line.chain { stroke: var(--honey); stroke-width: .8; opacity: .4; pointer-events: none; }
.hive text.label { font: 600 7px var(--body); fill: var(--text); text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 2.5px; pointer-events: none; }
.hive g.medal circle { stroke: var(--bg); stroke-width: 1.5; }
.hive g.medal text { font: 700 8px var(--display); fill: #1a1430; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.hive g.medal text.name { font: 600 7px var(--body); fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 2.5px; }

.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.card h2 { font: 600 18px/1.1 var(--display); margin: 0 0 12px; }
.card.turn { border-color: var(--honey-dim); box-shadow: 0 0 0 1px rgba(246, 185, 59, .15), 0 10px 30px -18px rgba(246, 185, 59, .6); }
.modes, .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.modes { flex-wrap: nowrap; gap: 4px; }
.modes button { flex: 1 1 auto; padding: 9px 6px; font-size: 13px; white-space: nowrap; }
.corner { position: absolute; top: 14px; z-index: 2; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.corner.l { left: 14px; align-items: flex-start; }
.corner.r { right: 14px; align-items: flex-end; }
.live main { padding-top: 18px; }
.live .layout { margin-top: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 10px; }
.hint.warn { color: var(--coral); font-weight: 600; }
#msgs .news { font: 500 16px/1.45 var(--body); padding: 12px 14px; border-radius: 12px; background: var(--bg3); border-left: 4px solid var(--honey); margin: 0 0 10px; animation: pop .35s ease-out; }
#msgs .news b { color: var(--honey); }
#msgs:not(:empty) { margin-bottom: 14px; }
@keyframes pop { from { transform: translateY(-6px); opacity: 0; } }
.row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-variant-numeric: tabular-nums; }
.row:last-of-type { border-bottom: 0; }
.row span:first-child { color: var(--muted); }
.row.big { font: 700 20px/1.2 var(--display); }
.row.big span:first-child { color: var(--text); }
.rankbox { max-height: 320px; overflow-y: auto; }
table.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rank td { padding: 5px 6px 5px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.rank td:first-child { width: 30px; color: var(--muted); font-family: var(--display); }
table.rank td:last-child { text-align: right; }
table.rank tr.out td { color: var(--out); }
table.rank .tag { font: 600 11px/1 var(--display); margin-left: 6px; padding: 2px 6px; border-radius: 4px; }
table.rank .tag.caught { color: var(--coral); background: rgba(255, 93, 108, .12); }
table.rank .tag.unmasked { color: var(--honey); background: rgba(246, 185, 59, .12); }
table.rank tr.me td { background: rgba(69, 224, 184, .14); color: var(--text); }
table.rank tr.me td:first-child { box-shadow: inset 3px 0 var(--mint); padding-left: 6px; }
table.rank tr.me.out td { background: rgba(69, 224, 184, .07); }
table.rank td.d { width: 44px; text-align: right; font-size: 12px; }
.up { color: var(--mint); } .down { color: var(--coral); }
ul.elim { list-style: none; padding: 0; margin: 0; font-size: 14px; }
ul.elim li { padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.elim li:last-child { border-bottom: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 4px 2px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.controls input[type=range] { flex: 1; min-width: 140px; accent-color: var(--honey); }
.controls label { display: inline-flex; gap: 6px; align-items: center; }
select { font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--line); background: var(--bg3); color: var(--text); border-radius: 8px; max-width: 100%; }
table.games { width: 100%; border-collapse: collapse; margin-top: 12px; font-variant-numeric: tabular-nums; }
table.games th { text-align: left; font: 600 13px/1 var(--display); color: var(--muted); padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
table.games td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
table.games tr.me td { background: rgba(69, 224, 184, .1); }
table.games tr:hover td { background: rgba(255, 255, 255, .02); }
.tablewrap { overflow-x: auto; }

/* clock + your sent move (live) */
.clock { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg3); border: 1px solid var(--line); }
.clock .t { font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--honey); }
.clock .t.hurry { color: var(--coral); animation: blink .8s infinite; }
.clock .l { color: var(--muted); font-size: 14px; }
.pending { font-size: 14px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 93, 108, .1); border-left: 3px solid var(--coral); }
.pending.done { background: rgba(69, 224, 184, .1); border-left-color: var(--mint); }

/* ---------------------------------------------------------------- lobby */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; margin: 4px 0 6px; }
.hero > div:first-child { padding-top: 64px; }
@media (max-width: 860px) { .hero > div:first-child { padding-top: 0; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 10px; } .hero .stage { order: -1; } }
.hero h1 { font-size: clamp(40px, 6.5vw, 76px); line-height: .95; }
.hero h1 span { display: block; }
.hero h1 .hunted { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero p { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 18px 0 22px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.stage { position: relative; }
.stage svg { width: 100%; max-height: 400px; height: auto; display: block; }
.stage .cell { fill: var(--cell); stroke: var(--line); stroke-width: .8; }
.stage .cell.lit { fill: #2d2554; }
.stage .p { fill: var(--dot); }
.stage .hunterdot { fill: var(--coral); }
.stage .targetdot { fill: var(--honey); }
.stage .you { fill: var(--mint); }
.stage .boom { fill: none; stroke: var(--coral); stroke-width: 2; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.section-head h2 { margin: 0; font-size: 26px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  --pc: var(--honey);
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 14%, var(--bg2)), var(--bg2) 55%);
  border: 1px solid color-mix(in srgb, var(--pc) 35%, var(--line));
}
.tile.in { box-shadow: 0 0 0 2px var(--pc), 0 18px 40px -24px var(--pc); }
.tile[data-p="sec10"], .pill[data-p="sec10"] { --pc: var(--p-sec10); }
.tile[data-p="minute"], .pill[data-p="minute"] { --pc: var(--p-minute); }
.tile[data-p="hour"], .pill[data-p="hour"] { --pc: var(--p-hour); }
.tile[data-p="day"], .pill[data-p="day"] { --pc: var(--p-day); }
.pill.pace { background: var(--pc); }
.tile .head { display: flex; align-items: center; gap: 12px; }
.hexbadge {
  width: 58px; height: 64px; flex: none; display: grid; place-items: center;
  font: 700 21px/1 var(--display); color: #1a1430; background: var(--pc);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.tile h3 { margin: 0; font: 700 21px/1.1 var(--display); }
.tile .sub { color: var(--muted); font-size: 14px; }
.countdown { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown small { font: 500 13px/1.3 var(--body); color: var(--muted); }
.pips { display: grid; grid-template-columns: repeat(25, 1fr); gap: 2px; }
.pips i { aspect-ratio: 1 / 1.1; background: var(--line); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .4s; }
.pips i.on { background: color-mix(in srgb, var(--pc) 75%, var(--text)); }
.pips i.me { background: var(--mint); }
.count { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.count b { color: var(--text); font-family: var(--display); }
.tile .go { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.tile { gap: 10px; padding: 16px; }
.tile .go button, .tile .go a.btn { flex: 1; }
.tile.in .go button.primary { background: var(--pc); }

.mine { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.game {
  --pc: var(--honey);
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--bg2);
  border: 1px solid var(--line); border-left: 4px solid var(--pc); text-decoration: none; color: var(--text);
}
.game[data-p="sec10"] { --pc: var(--p-sec10); } .game[data-p="minute"] { --pc: var(--p-minute); }
.game[data-p="hour"] { --pc: var(--p-hour); } .game[data-p="day"] { --pc: var(--p-day); }
.game .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.game h3 { margin: 0; font: 700 18px/1.1 var(--display); }
.game .state { font: 700 13px/1 var(--display); padding: 6px 10px; border-radius: 999px; }
.state.go { background: var(--coral); color: #1a1430; animation: blink 1.4s infinite; }
.state.ok { background: rgba(69, 224, 184, .16); color: var(--mint); }
.state.outed { background: var(--bg3); color: var(--muted); }
.flash { padding: 12px 14px; border-left: 4px solid var(--coral); background: var(--bg2); border-radius: 10px; margin: 12px 0; }
.flash.ok { border-left-color: var(--mint); }
.admin { display: flex; gap: 6px; }

/* ---------------------------------------------------------------- account */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 28px; }
@media (max-width: 800px) { .auth-wrap { grid-template-columns: 1fr; } .auth-wrap .stage { display: none; } }
.auth { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.auth label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.auth input { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; color: var(--text); }
.auth input:focus { outline: 2px solid var(--mint); border-color: transparent; }
.auth .actions { margin-top: 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; margin-bottom: 6px; }
.tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 9px; color: var(--muted); text-decoration: none; font: 600 15px/1 var(--display); }
.tabs a[aria-current="page"] { background: var(--bg3); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.auth-wrap h1 { margin-bottom: 18px; }

/* ranked + free lanes inside a tile */
.lane { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 1px solid transparent; }
.lane.in { border-color: var(--pc); }
.lane-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.lane-head b { font: 700 15px/1 var(--display); color: var(--text); white-space: nowrap; }
.lane.free .lane-head b { color: var(--pc); }
.lane-foot { display: flex; align-items: center; gap: 6px; }
.lane-foot .count { margin-right: auto; font-size: 14px; color: var(--muted); }
.lane-foot .count b { color: var(--text); font-family: var(--display); }
.lane-foot .youin { color: var(--pc); }
.section-head p b { color: var(--text); }
.free-tag { display: inline-block; vertical-align: middle; font: 700 11px/1 var(--display); padding: 3px 7px; border-radius: 5px; color: var(--pc, var(--mint)); background: color-mix(in srgb, var(--pc, var(--mint)) 14%, transparent); }
[hidden] { display: none !important; }

/* how to play */
.howto main { max-width: 1060px; }
.howto .intro { font-size: 18px; color: var(--muted); max-width: 64ch; margin: 6px 0 26px; }
.c-mint { color: var(--mint); } .c-honey { color: var(--honey); }
.lesson { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line); }
.lesson.last { grid-template-columns: 1fr; }
@media (max-width: 760px) { .lesson { grid-template-columns: 1fr; gap: 12px; } }
.lesson h2 { font-size: 28px; margin-bottom: 8px; }
.lesson .text p { margin: 0 0 10px; max-width: 62ch; }
.lesson ul { margin: 0; padding-left: 20px; color: var(--muted); max-width: 62ch; }
.lesson li { margin: 4px 0; }
.lesson li b, .lesson p b { color: var(--text); }
.demo { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 10px; }
.demo svg { width: 100%; height: auto; display: block; }
.demo .cell { fill: var(--cell); stroke: var(--line); stroke-width: .7; transition: fill .4s; }
.demo .cell.zone { fill: color-mix(in srgb, var(--honey) 30%, var(--cell)); stroke: var(--honey); }
.demo .you { fill: var(--mint); }
.demo .target { fill: var(--honey); }
.demo .ring { fill: none; stroke: var(--honey); stroke-width: 1.6; }
.demo .p { fill: var(--dot); transition: fill .3s; }
.demo .danger .p { fill: var(--coral); }
.demo .picked .p { fill: var(--coral); stroke: var(--text); stroke-width: 1.2; }
.demo .ghost { fill: var(--bg); stroke: var(--dot); stroke-width: 1.1; stroke-dasharray: 2 1.5; }
.demo .hidden .you { fill: none; stroke: var(--mint); stroke-width: 1; stroke-dasharray: 2 1.5; }
.demo .cap { min-height: 2.6em; margin: 8px 2px 0; font: 600 15px/1.3 var(--display); color: var(--text); text-align: center; }
