/* Vicedle — "Leonida postcard": a sunset title card on top, the game on a deep night-blue page,
   light paper cards for input, menus and dialogs. Pink only as a small accent. */
:root {
  color-scheme: dark;
  --bg: #0b0e1c;
  --bg-2: #11162b;
  --surface: #171d38;
  --line: #232b4d;
  --line-2: #333c66;
  --ink: #f6f1ea;
  --muted: #9aa3c4;
  --paper: #f6f1ea;
  --paper-ink: #10142a;
  --paper-muted: #5b6386;
  --paper-line: #e2dbcf;
  --pink: #ff3f8e;
  --orange: #ff8a3d;
  --sun: #ffcf5a;
  --violet: #7b3cf5;
  --aqua: #36c9bb;
  --on: #10142a;
  --ok: #1fae6a;
  --part: #f2b32a;
  --no: #262e52;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --w: 600px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #140f35;
}
:root.contrast { --ok: #f5793a; --part: #6cb4f5; }
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font: 500 15px/1.5 var(--body); min-height: 100vh; -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
a { color: inherit; }
svg { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; height: clamp(230px, 34vw, 360px); overflow: hidden; background: #0b0e1c; isolation: isolate; }
.hero.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,14,28,.55) 0%, rgba(11,14,28,.12) 38%, rgba(11,14,28,.25) 62%, rgba(11,14,28,1) 100%); }
.hero-credit { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); bottom: 8px; font-size: 10.5px; color: rgba(255,255,255,.7); text-decoration: none; z-index: 2; }
.hero-credit:hover { color: #fff; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; z-index: -2; }
.hero.photo .hero-art { object-position: 50% 55%; }
.hero-bar { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center;
  padding: 8px max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px)); max-width: 1100px; margin: 0 auto; }
.hero-right { display: flex; gap: 2px; }
.icon { width: 42px; height: 42px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; color: #fff; }
.icon:hover { background: rgba(255,255,255,.12); }
.icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon svg .fill { fill: currentColor; stroke: none; }
.hero-logo { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: min(78vw, 520px); filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .6)); }
.wordmark { width: 100%; height: auto; overflow: visible; }
.wm-fill { fill: #fff; }
.hero-tag { position: absolute; left: 0; right: 0; top: calc(44% + min(11vw, 74px)); margin: 0; text-align: center;
  font: 800 clamp(11px, 2.6vw, 14px) var(--body); letter-spacing: .24em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 10px rgba(20,15,53,.8); }

/* ---------- tabs ---------- */
.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 21; }
.tabs-in { max-width: var(--w); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr);
  padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px)); }
.tabs a { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 15px 2px 13px; text-decoration: none;
  color: var(--muted); font: 400 12.5px var(--display); letter-spacing: .06em; text-transform: uppercase; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--pink); }
.tabs .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: none; }
.tabs a.solved .dot { display: block; }

/* ---------- page ---------- */
.main { max-width: var(--w); margin: 0 auto; padding-block: 26px 48px; display: flex; flex-direction: column; gap: 18px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.main.wide { max-width: 1040px; }
.game { display: flex; flex-direction: column; gap: 16px; }
.kicker { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; color: var(--muted); font: 500 12.5px var(--mono); font-variant-numeric: tabular-nums; text-align: center; }
.kicker b { color: var(--ink); font-weight: 700; }
.kicker .q { flex-basis: 100%; font: 400 clamp(20px, 5.4vw, 26px)/1.15 var(--display); color: var(--ink); text-wrap: balance; letter-spacing: -.005em; margin-bottom: 4px; }

/* ---------- input (paper) ---------- */
.search { position: relative; }
.search input { width: 100%; font: 700 17px var(--body); background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.04); }
.search input::placeholder { color: var(--paper-muted); font-weight: 500; }
.search input:focus { outline: none; box-shadow: 0 0 0 3px var(--pink); }
.search.shake input { animation: shake .35s; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 15; list-style: none; margin: 0; padding: 6px;
  background: var(--paper); color: var(--paper-ink); border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.55); max-height: 340px; overflow-y: auto; }
.suggest li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 8px; cursor: pointer; font-weight: 700; }
.suggest li span { color: var(--paper-muted); font: 500 12px var(--mono); white-space: nowrap; align-self: center; overflow: hidden; text-overflow: ellipsis; }
.suggest li[aria-selected="true"], .suggest li:hover { background: #ffe1ec; }
.hint { margin: -6px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; min-height: 1.2em; }
.hint b { color: var(--sun); }
.empty { margin: 0; text-align: center; color: var(--muted); font-size: 14.5px; padding: 4px 10px; text-wrap: balance; }

/* ---------- tiles ---------- */
.board { overflow-x: auto; margin: 0 -4px; padding: 0 4px 6px; scrollbar-width: thin; }
.grid { display: flex; flex-direction: column; gap: 6px; min-width: 600px; }
.grid.geo { min-width: 460px; }
.row { display: grid; gap: 5px; }
.row.c7 { grid-template-columns: 1.5fr repeat(6, 1fr); }
.row.c5 { grid-template-columns: 1.7fr 1fr 1fr 1fr .8fr; }
.row.head div { font: 400 10px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 0 2px 4px; }
.cell { min-height: 60px; border-radius: 6px; padding: 6px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font: 800 12px/1.15 var(--body); background: var(--no); color: #fff; animation: flip .5s ease both; hyphens: auto; -webkit-hyphens: auto; }
.cell.name { background: transparent; color: var(--ink); align-items: flex-start; text-align: left; font-size: 13px; border-left: 3px solid var(--pink); border-radius: 0; padding-left: 10px; }
.cell.name small { color: var(--muted); font: 500 11px var(--body); margin-top: 2px; }
.cell.ok { background: var(--ok); }
.cell.part { background: var(--part); color: var(--on); }
.cell.no { background: var(--no); }
:root.contrast .cell.ok { color: var(--on); }
.cell .sub { font: 700 15px/1 var(--mono); margin-top: 3px; }
.cell .yr { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dir { font-size: 22px; line-height: 1; }
@keyframes flip { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: none; } }
@keyframes shake { 0%,100% { transform: none; } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 12.5px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- emoji ---------- */
.emoji-stage { display: flex; justify-content: center; }
.emoji-row { display: grid; grid-template-columns: repeat(5, minmax(0, 76px)); gap: 8px; }
.emoji-row .e { aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(30px, 9vw, 42px); background: var(--paper); border-radius: 12px; animation: pop .4s ease both; box-shadow: 0 6px 0 #c9c0b2; }
.emoji-row .e.locked { background: transparent; box-shadow: none; border: 2px dashed var(--line-2); color: var(--line-2); font: 400 22px var(--display); animation: none; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 6px; font-weight: 800; background: var(--no); animation: flip .45s ease both; }
.list li.ok { background: var(--ok); }
.list li small { margin-left: auto; font: 500 12px var(--mono); opacity: .8; }

/* ---------- maps ---------- */
.map-stage { border-radius: 14px; overflow: hidden; background: #16224a; }
.map-stage canvas { display: block; width: 100%; height: auto; }

/* ---------- answer ---------- */
.answer { position: relative; border-radius: 14px; padding: 20px 18px 18px; display: grid; gap: 12px; text-align: center; background: var(--bg-2); overflow: hidden; animation: rise .4s ease both; }
.answer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--sun), var(--orange), var(--pink), var(--violet)); }
.answer .lbl { font: 400 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.answer .who { font: 400 clamp(26px, 7vw, 34px)/1.05 var(--display); letter-spacing: -.01em; }
.answer .who small { display: block; font: 600 14px var(--body); color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.answer .row-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.answer canvas { width: 100%; max-width: 100%; height: auto; border-radius: 10px; background: #16224a; }

/* ---------- official screenshots ---------- */
.shot { margin: 0; display: grid; gap: 6px; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; background: var(--surface); }
.shot figcaption { font-size: 11.5px; color: var(--muted); }
.shot figcaption a { color: var(--muted); }
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reg { position: relative; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 10; background: var(--surface); text-align: left; color: #fff; }
.reg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.reg:hover img { transform: scale(1.04); }
.reg span { position: absolute; inset: auto 0 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(8, 10, 22, .85)); display: flex; justify-content: space-between; align-items: end; gap: 6px; }
.reg b { font: 400 13px var(--display); text-transform: uppercase; letter-spacing: .04em; }
.reg small { font: 700 11px var(--mono); opacity: .8; }
.reg[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--pink); }
.reg-credit { grid-column: 1 / -1; margin: 0; font-size: 11.5px; color: var(--muted); }
.reg-credit a { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer;
  font: 400 13.5px var(--display); letter-spacing: .06em; text-transform: uppercase; background: var(--paper); color: var(--paper-ink); text-decoration: none; }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn.sm { padding: 9px 15px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 40; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { background: var(--paper); color: var(--paper-ink); font: 800 14px var(--body); padding: 11px 18px; border-radius: 10px; text-align: center; animation: rise .25s ease both; box-shadow: 0 12px 30px rgba(0,0,0,.45); }

/* ---------- dialogs (paper sheets) ---------- */
.dlg { border: 0; padding: 0; background: transparent; max-width: min(500px, calc(100% - 24px)); width: 100%; max-height: calc(100% - 24px); }
.dlg::backdrop { background: rgba(6, 8, 18, .72); backdrop-filter: blur(3px); }
.dlg-in { --ink: var(--paper-ink); --muted: var(--paper-muted); --line: var(--paper-line); --surface: #ece5d9; --no: #c9cbe0;
  position: relative; background: var(--paper); color: var(--paper-ink); border-radius: 18px; padding: 28px 22px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: rise .25s ease both; overflow-y: auto; max-height: calc(100vh - 24px); }
.dlg-in:focus { outline: none; }
.dlg .close { position: absolute; right: 10px; top: 10px; color: var(--paper-ink); }
.dlg .close:hover { background: var(--surface); }
.dlg h2 { margin: 0 0 16px; font: 400 24px var(--display); text-align: center; letter-spacing: -.01em; }
.dlg h3 { margin: 20px 0 10px; font: 400 11px var(--display); letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--paper-muted); }
.dlg a { color: var(--paper-ink); }
.dlg .btn { background: var(--paper-ink); color: var(--paper); }
.dlg .btn.ghost { background: transparent; color: var(--paper-ink); box-shadow: inset 0 0 0 2px var(--paper-line); }
.dlg-body { display: grid; gap: 10px; }
.dlg-body p { margin: 0; }
.dlg-body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.dlg-body .ex { display: flex; gap: 5px; margin: 2px 0; }
.dlg-body .ex span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; font: 800 14px var(--body); color: #fff; }
.dlg-body .ex span:last-child { background: #262e52 !important; }
.dlg-body hr { border: 0; border-top: 1px solid var(--paper-line); margin: 6px 0; width: 100%; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 6px; }
.stat-row b { display: block; font: 400 32px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat-row span { font-size: 11.5px; color: var(--paper-muted); font-weight: 600; }
.dist { display: grid; gap: 5px; }
.dist .r { display: grid; grid-template-columns: 24px 1fr; gap: 6px; align-items: center; font: 700 12px var(--mono); }
.dist .r i { display: block; background: #c9cbe0; color: var(--paper-ink); font-style: normal; text-align: right; padding: 2px 8px; min-width: 26px; border-radius: 4px; }
.dist .r.me i { background: var(--ok); color: #fff; }
.world { margin-top: 6px; padding: 14px; border-radius: 12px; background: var(--paper-ink); color: var(--paper); text-align: center; }
.world strong { display: block; font: 400 20px/1.2 var(--display); }
.world strong em { font-style: normal; color: var(--sun); }
.world span { color: #b8bfdc; font-size: 12.5px; }
.dlg-foot { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--paper-line); }
.dlg-foot .cd { text-align: center; }
.dlg-foot .cd small { display: block; font: 400 10.5px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-muted); }
.dlg-foot .cd b { font: 700 26px var(--mono); font-variant-numeric: tabular-nums; }
.dlg .modes-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.dlg .modes-sum button { background: var(--surface); border: 2px solid transparent; border-radius: 10px; padding: 8px 4px; cursor: pointer; font: 800 12.5px var(--body); color: var(--paper-ink); display: grid; gap: 1px; }
.dlg .modes-sum button[aria-pressed="true"] { border-color: var(--paper-ink); }
.dlg .modes-sum button small { color: var(--paper-muted); font: 600 11px var(--body); }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--paper-line); }
.setting b { display: block; font-weight: 800; }
.setting small, .report-form small { display: block; color: var(--paper-muted); font-size: 12.5px; font-weight: 500; }
.seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 800; font-size: 13px; color: var(--paper-muted); }
.seg button[aria-pressed="true"] { background: var(--paper-ink); color: var(--paper); }
.switch { width: 46px; height: 28px; flex: none; border-radius: 999px; border: 0; background: #cfc8bb; position: relative; cursor: pointer; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"] i { transform: translateX(18px); }
.report-form { display: grid; gap: 8px; padding-top: 14px; }
.report-form textarea { background: #fff; color: var(--paper-ink); border: 1px solid var(--paper-line); border-radius: 10px; padding: 10px; resize: vertical; }
.report-row { display: flex; align-items: center; gap: 12px; }
.report-msg { font-size: 13px; color: #138a55; }
.credit { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- streamer ---------- */
.streamer { border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--aqua); }
.streamer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.streamer-head strong { font: 400 15px var(--display); text-transform: uppercase; letter-spacing: .06em; }
.twitch-form { display: flex; gap: 6px; }
.twitch-form input { background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 8px; padding: 8px 10px; width: 150px; font-weight: 700; font-size: 14px; }
.streamer-status { margin: 0; color: var(--muted); font-size: 13px; }
.streamer-status code { font-family: var(--mono); color: var(--sun); }
.votes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.votes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-weight: 800; }
.votes li span { font: 700 12.5px var(--mono); color: var(--muted); }
.votes li .vb { grid-column: 1 / -1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.votes li .vb i { display: block; height: 100%; background: var(--aqua); }
.streamer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.streamer-on { font-size: 17px; }
body.streamer-on .cell { min-height: 72px; font-size: 14px; }
body.streamer-on .search input { font-size: 21px; }
body.streamer-on .yesterday { display: none; }

/* ---------- atlas ---------- */
.atlas { display: grid; gap: 16px; }
.atlas-head h1, .atlas-head h2 { margin: 0; font: 400 clamp(28px, 6vw, 40px)/1.05 var(--display); letter-spacing: -.01em; }
.atlas-head p { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.atlas-tools { display: grid; gap: 12px; }
.atlas-tools input { width: 100%; background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.atlas-tools input::placeholder { color: var(--paper-muted); font-weight: 500; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 0; background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 700 12.5px var(--body); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chips button i { width: 8px; height: 8px; border-radius: 50%; }
.chips button[aria-pressed="true"] { background: var(--paper); color: var(--paper-ink); }
.atlas-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .atlas-body { grid-template-columns: minmax(0, 1fr); } }
.map-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #16224a; }
#map { width: 100%; height: auto; display: block; cursor: crosshair; touch-action: manipulation; }
.map-card { position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--paper); color: var(--paper-ink); border-radius: 12px; padding: 11px 13px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.map-card b { font-weight: 800; display: block; font-size: 15px; }
.map-card span { color: var(--paper-muted); }
.atlas-list-wrap { display: grid; gap: 8px; }
.atlas-count { margin: 0; color: var(--muted); font: 500 12.5px var(--mono); }
.atlas-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 640px; overflow-y: auto; }
.atlas-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 10px; padding: 10px 10px; border-radius: 10px; cursor: pointer; align-items: center; }
.atlas-list li:hover, .atlas-list li[aria-selected="true"] { background: var(--surface); }
.atlas-list li i { width: 9px; height: 9px; border-radius: 50%; }
.atlas-list li b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-list li span { grid-column: 2; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.foot { color: var(--muted); font-size: 12px; text-align: center; padding-top: 18px; border-top: 1px solid var(--line); }
.foot p { margin: 0 auto; max-width: 62ch; }
.foot a { color: var(--ink); text-underline-offset: 2px; }
.foot a { display: inline-block; margin-top: 8px; }

/* ---------- legal pages ---------- */
body.legal { background: var(--bg); }
.legal-bar { border-bottom: 1px solid var(--line); padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
.legal-back { font: 400 15px var(--display); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--ink); }
.legal-main { max-width: 720px; margin: 0 auto; padding-block: 28px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.legal-main h1 { font: 400 clamp(28px, 7vw, 40px)/1.1 var(--display); margin: 0 0 18px; }
.legal-main h2 { font: 400 16px/1.3 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 30px 0 8px; }
.legal-main p { margin: 0 0 12px; color: #d9dbe8; max-width: 68ch; }
.legal-main a { color: var(--ink); text-underline-offset: 2px; }
.legal-lead { font-size: 16px; color: var(--ink) !important; }
.legal-foot { margin-top: 40px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- account ---------- */
.icon.acct { position: relative; }
.icon.acct .initial { display: none; }
.icon.acct.signed svg { display: none; }
.icon.acct.signed .initial { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #140f35; font: 400 14px var(--display); }
.acc-sub { margin: 0 0 14px; color: var(--paper-muted); text-align: center; text-wrap: balance; }
.acc-who { margin: 0 0 4px; text-align: center; font-size: 17px; }
.acc-form { display: grid; gap: 8px; }
.acc-form label b { display: block; font-weight: 800; }
.acc-form label small { display: block; color: var(--paper-muted); font-size: 12.5px; }
.acc-form input { background: #fff; color: var(--paper-ink); border: 1.5px solid var(--paper-line); border-radius: 10px; padding: 12px 14px; font-weight: 700; font-size: 16px; }
.acc-form input:focus { outline: none; border-color: var(--paper-ink); }
.acc-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: var(--paper-muted); font-size: 12.5px; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--paper-line); }
#dlg-account .btn { width: 100%; }
.acc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.dlg .btn.danger { color: #b3263f; box-shadow: inset 0 0 0 2px #f0c4cc; }
.acc-msg { margin: 12px 0 0; min-height: 1.2em; font-size: 13.5px; color: #b3263f; text-align: center; }
.acc-msg.ok { color: #138a55; }
.acc-small { margin: 12px 0 0; font-size: 12px; color: var(--paper-muted); }

/* ---------- phones: Wordle-style guess cards instead of a wide table ---------- */
.search { scroll-margin-top: 64px; }
@media (max-width: 640px) {
  .main { padding-block: 18px 40px; gap: 14px; }
  .board { overflow: visible; margin: 0; padding: 0; }
  .grid, .grid.geo { min-width: 0; gap: 14px; }
  .row.head { display: none; }
  .row.c7 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .row.c5 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .cell.name { grid-column: 1 / -1; min-height: 0; padding: 0 0 2px 10px; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; font-size: 15px; }
  .cell.name small { margin: 0; font-size: 12px; }
  .cell { min-height: 58px; padding: 16px 4px 6px; font-size: 12.5px; position: relative; }
  .cell:not(.name)::before { content: attr(data-label); position: absolute; top: 5px; left: 0; right: 0; text-align: center;
    font: 400 8.5px var(--display); letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
  .cell .sub { font-size: 13px; margin-top: 1px; }
  .dir { font-size: 20px; }
  .kicker .q { font-size: 21px; }
  .search input { padding: 15px 16px; }
  .hero { height: 220px; }
  .hero-logo { top: 46%; width: 84vw; }
  .hero-tag { top: calc(46% + 13vw); letter-spacing: .18em; }
  .tabs a { font-size: 11.5px; letter-spacing: .03em; padding: 14px 1px 12px; }
  .emoji-row { gap: 6px; }
  .legend { font-size: 12px; gap: 4px 10px; }
}
@media (max-width: 360px) { .tabs a { font-size: 10.5px; } .cell { font-size: 11.5px; } }

/* ---------- SEO content pages ---------- */
.seo-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #1a1240, var(--bg)); }
.seo-logo { width: 150px; display: block; }
.seo-nav { display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: center; }
.seo-nav a { color: var(--muted); text-decoration: none; font: 400 12px var(--display); text-transform: uppercase; letter-spacing: .05em; }
.seo-nav a:hover { color: var(--ink); }
.seo-nav .seo-play { color: var(--paper-ink); background: var(--paper); padding: 7px 12px; border-radius: 999px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 18px 0; }
.facts div { background: var(--bg-2); border-radius: 10px; padding: 10px 12px; }
.facts dt { font: 400 10px var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 800; }
.link-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; }
.link-list.wide { grid-template-columns: 1fr; }
.link-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 800; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list small { display: block; color: var(--muted); font-size: 12px; }
.legal-main h2 a { text-decoration: none; }
.legal-main h2 small { color: var(--muted); font: 600 13px var(--body); text-transform: none; letter-spacing: 0; }
.emoji-line { font-size: 34px; letter-spacing: .12em; margin: 4px 0 8px !important; }
.seo-cta { margin: 22px 0 !important; }
.seo .btn { text-decoration: none; }
.pinmap { position: relative; max-width: 420px; border-radius: 12px; overflow: hidden; }
.pinmap img { display: block; width: 100%; height: auto; }
.pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255,63,142,.3), 0 0 0 2px #0b0e1c inset; }
.small-note { font-size: 12px; color: var(--muted) !important; }
.legal-main .shot { margin: 16px 0; }

/* ---------- home: about section ---------- */
.about { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 10px; }
.about h2 { font: 400 20px/1.2 var(--display); margin: 8px 0 0; }
.about p { margin: 0; color: #d9dbe8; }
.about-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.about-links a { background: var(--bg-2); border-radius: 12px; padding: 12px 14px; text-decoration: none; font-weight: 800; }
.about-links a small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }

/* ---------- special-day banner ---------- */
.banner { display: block; text-align: center; text-decoration: none; font: 800 14px/1.35 var(--body); color: var(--paper-ink);
  background: linear-gradient(90deg, var(--sun), var(--orange), var(--pink)); padding: 11px 14px; border-radius: 12px; text-wrap: balance; }
.banner::after { content: " →"; }

/* ---------- daily pages ---------- */
.day-mode { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); }
.day-mode h2 { margin: 0 0 8px !important; }
.dhint { border-top: 1px solid var(--line); padding: 9px 0; }
.dhint summary { cursor: pointer; font-weight: 800; color: var(--muted); }
.dhint[open] summary { color: var(--ink); }
.dhint p { margin: 6px 0 0 !important; }
.dhint.dans summary { color: var(--sun); }
.banner-inline { background: linear-gradient(90deg, var(--sun), var(--orange), var(--pink)); color: var(--paper-ink) !important; font-weight: 800; padding: 10px 14px; border-radius: 10px; }
.table-wrap { overflow-x: auto; }
.arch { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.arch th, .arch td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.arch th { font: 400 10.5px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.src { padding-left: 18px; color: var(--muted); }

/* ======================================================================
   Refinement pass: icon mode bar, news line, mission header, search bar,
   example row, solved stamp. Overrides earlier rules on purpose.
   ====================================================================== */
/* mode bar with line icons (same stroke style as the header icons) */
.tabs { background: rgba(11,14,28,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tabs a { flex-direction: column; gap: 5px; padding: 10px 2px 9px; font: 700 11px var(--body); letter-spacing: .04em; text-transform: none; border-bottom: 0; margin: 0; color: var(--muted); }
.tabs a .tic { position: relative; display: grid; place-items: center; width: 44px; height: 30px; border-radius: 999px; transition: background .15s; }
.tabs a .ti { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a .ti .fill { fill: currentColor; stroke: none; }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] .tic { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs a:hover .tic { background: var(--bg-2); }
.tabs .dot { position: absolute; top: 2px; right: 6px; width: 9px; height: 9px; border: 2px solid var(--bg); box-sizing: content-box; }
.tabs a.solved .dot { display: block; }
@media (max-width: 640px) { .tabs a { font-size: 10.5px; padding: 8px 1px 8px; letter-spacing: .02em; } }

/* news line instead of a gradient banner */
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 13.5px/1.35 var(--body); text-align: left; text-wrap: pretty; }
.banner::after { content: none; }
.banner .live { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 400 10px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--pink); }
.banner .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255,63,142,.6); animation: livepulse 1.8s infinite; }
.banner .btxt { flex: 1; min-width: 0; }
.banner svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.banner:hover svg { stroke: var(--ink); }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(255,63,142,.55); } 70% { box-shadow: 0 0 0 7px rgba(255,63,142,0); } 100% { box-shadow: 0 0 0 0 rgba(255,63,142,0); } }

/* mission header, left aligned */
.kicker { display: grid; justify-content: stretch; justify-items: start; text-align: left; gap: 6px; font: inherit; color: var(--ink); }
.kicker .over { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }
.kicker .q { flex-basis: auto; margin: 0; font: 400 clamp(23px, 6.4vw, 30px)/1.08 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.kicker .chips-s { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip-s { font: 500 12px var(--mono); color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 5px 10px; font-variant-numeric: tabular-nums; }
.chip-s b { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .kicker .q { font-size: 24px; } }

/* search bar with icon and guess button */
.search { display: flex; align-items: center; background: var(--paper); border-radius: 14px; padding: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.search:focus-within { box-shadow: 0 0 0 3px var(--pink), 0 10px 30px rgba(0,0,0,.35); }
.search-ic { flex: none; width: 20px; height: 20px; margin: 0 2px 0 10px; fill: none; stroke: var(--paper-muted); stroke-width: 2.2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; background: transparent; box-shadow: none; padding: 12px 10px; border-radius: 0; }
.search input:focus { box-shadow: none; }
.search-go { flex: none; border: 0; border-radius: 10px; background: var(--paper-ink); color: var(--paper); font: 400 12.5px var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 0 16px; height: 44px; cursor: pointer; }
.search-go:hover { background: #232a52; }
.search .suggest { top: calc(100% + 8px); }
body.streamer-on .search input { font-size: 20px; }

/* empty state: one example guess */
.empty { padding: 0; text-align: left; display: grid; gap: 10px; }
.empty p { margin: 0; color: var(--muted); font-size: 14px; }
.example { position: relative; padding: 12px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.example .grid { pointer-events: none; }
.example .cell { opacity: .9; }
.ex-tag { display: inline-block; margin-bottom: 8px; font: 400 10px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .example .row.head { display: none; } }

/* solved card with a stamp, no gradient bar */
.answer { text-align: left; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 16px 16px; }
.answer::before { content: none; }
.answer .lbl { color: var(--ok); font: 500 11.5px var(--mono); letter-spacing: .06em; }
.answer .who { padding-right: 84px; }
.answer .row-btns { justify-content: flex-start; }
.stamp { position: absolute; top: 16px; right: 14px; transform: rotate(-8deg); font: 400 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ok); border: 2px solid var(--ok); border-radius: 6px; padding: 4px 8px; opacity: .9; }
:root.contrast .stamp, :root.contrast .answer .lbl { color: var(--ok); border-color: var(--ok); }
@media (max-width: 640px) { .answer .row-btns { display: grid; grid-template-columns: 1fr 1fr; } .answer .row-btns > :last-child:nth-child(odd) { grid-column: 1 / -1; } .answer .btn { padding: 12px 10px; } }

/* emoji tiles: calmer, on the dark surface */
.emoji-row .e { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); border: 0; border-radius: 14px; }
.emoji-row .e.locked { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border: 0; color: var(--line-2); }
.list li { border-radius: 10px; }

/* about: quieter, a list instead of cards */
.about { border-top: 0; padding-top: 10px; gap: 12px; }
.about::before { content: ""; display: block; height: 1px; background: linear-gradient(90deg, var(--line), transparent); margin-bottom: 8px; }
.about h2 { font-size: 18px; }
.about p { color: var(--muted); font-size: 14.5px; }
.about-links { grid-template-columns: 1fr; gap: 0; margin-top: 4px; }
.about-links a { background: none; border-radius: 0; padding: 12px 2px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
.about-links a::after { content: "→"; color: var(--muted); grid-row: 1 / span 2; grid-column: 2; }
.about-links a small { grid-column: 1; }
.about-links a:hover::after { color: var(--ink); }
.foot { border-top: 0; padding-top: 4px; }

.answer .lbl { display: block; padding-right: 100px; }
.hint { text-align: left; margin-top: -4px; }
.legend { justify-content: flex-start; }
.empty p, .hint { text-wrap: pretty; }
@media (min-width: 641px) {
  .grid, .grid.geo { min-width: 0; }
  .board { overflow: visible; margin: 0; padding: 0; }
  .cell { font-size: 11.5px; }
}

/* no pulsing badge, no colored side border (common AI-UI tells) */
.banner .live i { animation: none; box-shadow: none; }
.cell.name { border-left: 0; padding-left: 2px; }
@media (max-width: 640px) { .cell.name { padding-left: 0; } }
.list li { box-shadow: none; }

/* ======================================================================
   Board v3 (all screen sizes): one compact row per guess, Wordle-like.
   Name on its own line, then 6 (or 4) tiles side by side; column labels
   once at the top; no labels inside tiles.
   ====================================================================== */
.board { overflow: visible; margin: 0; padding: 0; }
.grid, .grid.geo { min-width: 0; display: grid; gap: 10px; }
.row.c7, .row.c5 { display: grid; gap: 4px; }
.row.c7 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.row.c5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row.head { display: grid !important; margin-bottom: -4px; }
.row.head div { font: 400 9.5px var(--display); letter-spacing: .06em; color: var(--muted); padding: 0 0 2px; text-align: center; border: 0; }
.row.head div:first-child { display: none; }
.cell { min-height: 56px; padding: 4px 3px; border-radius: 6px; font: 800 11.5px/1.15 var(--body); position: static; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
.cell:not(.name)::before { content: none; }
.cell .yr { font-size: 12.5px; }
.cell .sub { font-size: 13px; margin-top: 2px; }
.cell.name { grid-column: 1 / -1; min-height: 0; padding: 0 0 1px; background: none; border: 0; border-radius: 0;
  flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; font: 800 14px var(--body); color: var(--ink); text-align: left; }
.cell.name small { font-size: 12px; margin: 0; }
.dir { font-size: 20px; }
@media (min-width: 641px) {
  .cell { min-height: 62px; font-size: 13px; }
  .cell .yr { font-size: 14px; }
  .row.head div { font-size: 10.5px; }
}
/* empty state: one empty row, like Wordle's empty grid */
.empty { display: grid; gap: 10px; text-align: left; }
.grid.ghost { gap: 10px; }
.empty-cell { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--line-2); animation: none !important; }
.empty p { margin: 0; color: var(--muted); font-size: 13.5px; }
/* header block: tighter */
.kicker { gap: 4px; }
.kicker .over { color: var(--muted); }
.kicker .q { font-size: clamp(21px, 5.6vw, 26px); }
.search { padding: 4px; border-radius: 12px; }
.search input { padding: 11px 8px; font-size: 16.5px; }
.search-go { height: 42px; padding: 0 14px; font-size: 12px; }
.game { gap: 14px; }
.yday { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.yday b { color: var(--ink); font-weight: 700; }
.legend { gap: 4px 12px; font-size: 12px; }

/* ======================================================================
   Game palette v4: taken from the hero (Vice City at night).
   Correct = mint, close = amber, wrong = deep slate. States differ in
   brightness, and correct/close also carry a symbol (never colour alone).
   ====================================================================== */
:root { --ok: #2fd39a; --part: #ffb84d; --no: #1c2340; --ok-ink: #062a1f; --part-ink: #3a2300; --no-ink: #c9cee6; }
:root.contrast { --ok: #ff8f3a; --part: #6cb4f5; --ok-ink: #2a1200; --part-ink: #06213a; }
.cell { position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.22); }
.cell.ok { background: var(--ok); color: var(--ok-ink); }
.cell.part { background: var(--part); color: var(--part-ink); }
.cell.no { background: var(--no); color: var(--no-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 -3px 0 rgba(0,0,0,.25); }
.cell.ok::after, .cell.part::after { position: absolute; top: 3px; right: 5px; font: 800 9px/1 var(--body); opacity: .55; }
.cell.ok::after { content: "✓"; }
.cell.part::after { content: "≈"; font-size: 11px; top: 2px; }
.cell.name, .cell.name::after { box-shadow: none; }
.cell.name::after { content: none; }
.cell.empty-cell { box-shadow: inset 0 0 0 1.5px var(--line-2); }
:root.contrast .cell.ok { color: var(--ok-ink); }
.list li { background: var(--no); color: var(--no-ink); }
.list li.ok { background: var(--ok); color: var(--ok-ink); }
.legend i { box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); }
.dist .r.me i { color: var(--ok-ink); }
.world strong em { color: var(--ok); }

/* guess number in front of each name */
.gn { font: 500 11px var(--mono); font-style: normal; color: var(--muted); min-width: 16px; }

/* win: the solved row hops once, tile after tile */
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-9px); } 70% { transform: translateY(2px); } }
.win-row .cell:not(.name) { animation: flip .5s ease both, hop .45s ease 1.0s both; }
.win-row .cell:nth-child(3) { animation-delay: 0ms, 1.06s; }
.win-row .cell:nth-child(4) { animation-delay: 0ms, 1.12s; }
.win-row .cell:nth-child(5) { animation-delay: 0ms, 1.18s; }
.win-row .cell:nth-child(6) { animation-delay: 0ms, 1.24s; }
.win-row .cell:nth-child(7) { animation-delay: 0ms, 1.30s; }

/* streak flame in the puzzle header */
.kicker .over { display: inline-flex; align-items: center; gap: 10px; }
.streak { display: inline-flex; align-items: center; gap: 3px; color: var(--part); font: 700 12px var(--mono); }
.streak svg { width: 14px; height: 14px; fill: currentColor; }

/* solved card: what comes next */
.after { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.after b { color: var(--ink); font: 700 13px var(--mono); font-variant-numeric: tabular-nums; }
.answer .lbl { color: var(--ok); }
.stamp { color: var(--ok); border-color: var(--ok); }

/* toast slightly richer */
.toast { background: var(--paper); color: var(--paper-ink); border-radius: 999px; padding: 10px 18px; }

/* ===== Embed mode (?embed=1), for iframes on other sites ===== */
.embed-bar { display: none; }
html.embed .embed-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none; font: 600 14px/1 Archivo, sans-serif; }
html.embed .embed-bar .eb-v { width: 26px; height: 26px; border-radius: 6px; }
html.embed .embed-bar b { font-family: "Archivo Black", Archivo, sans-serif; font-weight: 400; letter-spacing: .02em; }
html.embed .embed-bar span { margin-left: auto; color: var(--no-ink, #c9cee6); font-weight: 500; font-size: 13px; }
html.embed .hero, html.embed .about, html.embed .foot, html.embed .tabs [data-route="atlas"] { display: none !important; }
html.embed .tabs { top: 0; }

/* ===== Stats, press and embed pages ===== */
.stat-today { font-size: 1.05rem; }
.stat-note { color: var(--muted, #9aa1c4); font-size: .85rem; margin-top: 28px; }
.rank-grid { display: grid; gap: 8px 28px; grid-template-columns: 1fr; margin: 8px 0 12px; }
@media (min-width: 720px) { .rank-grid { grid-template-columns: 1fr 1fr; } }
.rank-grid h2 { margin-top: 18px; }
ol.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
ol.rank li { counter-increment: r; display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
ol.rank li::before { content: counter(r); font: 400 1rem "Archivo Black", sans-serif; color: var(--muted, #9aa1c4); min-width: 1.2em; }
ol.rank li span { flex: 1; min-width: 0; }
ol.rank li small { display: block; color: var(--muted, #9aa1c4); font-size: .8rem; }
ol.rank li b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.code-box { position: relative; margin: 10px 0 18px; }
.code-box pre { margin: 0; padding: 14px 14px 52px; background: #070915; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; overflow-x: auto; font: 13px/1.5 var(--mono, monospace); color: #dfe3f5; white-space: pre-wrap; word-break: break-all; }
.code-box .btn { position: absolute; right: 10px; bottom: 10px; }
.embed-preview { display: block; width: 100%; max-width: 480px; height: 720px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; margin: 10px 0 24px; background: var(--bg); }
.press-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.press-assets a { display: block; background: #12162b; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 8px; color: inherit; text-decoration: none; font-size: .85rem; }
.press-assets img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #070915; border-radius: 8px; margin-bottom: 6px; }
.press-assets a.light img { background: #e9ebf5; }
.press-text { background: #12162b; border-radius: 12px; padding: 14px 16px; margin: 8px 0 16px; }
.legal-main a.btn { color: var(--paper-ink); text-decoration: none; }
.legal-main a.btn.ghost { color: var(--ink); }
.code-box .btn { color: var(--paper-ink); }
