:root {
  color-scheme: light;
  --bg: #f6f1e5;
  --surface: #fffdf8;
  --surface-2: #ece5d3;
  --ink: #15203b;
  --muted: #38435f;
  --line: #c9bfa5;
  --line-soft: #dcd3bb;
  --accent: #1d3a82;
  --accent-ink: #ffffff;
  --accent-soft: #dfe5f4;
  --thread: #8c2608;
  --thread-soft: #f6dcd2;
  --focus: #1a4fd6;
  --ok: #08552a;
  --mid: #654500;
  --bad: #8a1818;
  --star: #d79b00;
  --stardim: #8b93ab;
  --edge: #b3bad0;
  --seen: #d79b00;
  --radius: 14px;
  --topbar-h: 3rem;
  --shadow: 0 1px 2px rgba(21, 32, 59, .08), 0 8px 24px rgba(21, 32, 59, .08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1126;
  --surface: #131b37;
  --surface-2: #1b2547;
  --ink: #eaf0ff;
  --muted: #b9c5e6;
  --line: #2f3d69;
  --line-soft: #26335a;
  --accent: #9fbaff;
  --accent-ink: #0a1230;
  --accent-soft: #1b2850;
  --thread: #ff9c75;
  --thread-soft: #3a2230;
  --focus: #a9c0ff;
  --ok: #7fe29b;
  --mid: #f2d36b;
  --bad: #ff8f8f;
  --star: #f6df94;
  --stardim: #6f7da9;
  --edge: #34436f;
  --seen: #f6df94;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 0.75rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", "DejaVu Serif", serif;
  line-height: 1.55;
  font-size: 1.0625rem;
}
[data-theme="dark"] body {
  background-image: radial-gradient(circle at 12% 8%, rgba(159, 186, 255, .07), transparent 40%), radial-gradient(circle at 88% 4%, rgba(255, 156, 117, .05), transparent 35%);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
:where(button, input, select, a, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.ui, .topbar, .hud, button, .chip, .pill, .st, .tag, .share-row, .arch, .badge, .eyebrow, .small, .gp, .bchip, .bnote, .oc, .oh, .rl, .nm, .viaq { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .75rem;
  height: var(--topbar-h); padding: 0 1rem; border-bottom: 1px solid var(--line);
  background: var(--surface); white-space: nowrap; font-size: .95rem;
}
.topbar .home { font-weight: 700; color: var(--ink); text-decoration: none; flex: none; }
.topnav { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { color: var(--ink); text-decoration: none; padding: .35rem .6rem; border-radius: 999px; }
.topnav a:hover { background: var(--surface-2); }
.spacer { flex: 1; }
.chip { color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; font-size: .85rem; flex: none; }
.chip:hover { background: var(--surface-2); }
.icon-btn { width: 2.25rem; height: 2.25rem; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }
@media (pointer: coarse) { .icon-btn { width: 2.75rem; height: 2.75rem; } .topnav a { padding: .6rem .7rem; } }

main { display: block; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }

/* hero */
.hero { padding: 1.4rem 0 .5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--thread); font-weight: 700; margin: 0 0 .35rem; }
h1 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); line-height: 1.12; margin: 0 0 .6rem; max-width: 26ch; letter-spacing: -.01em; }
.deck { font-size: 1.05rem; max-width: 64ch; margin: 0 0 1rem; color: var(--ink); }
.hud { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: stretch; margin: .25rem 0 0; }
.pill { display: inline-flex; align-items: center; gap: .45rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .88rem; font-weight: 600; }
.pill .ico { font-size: 1.05rem; line-height: 1; }
.pill.streak { border-color: var(--thread); }
.pill.lvl { gap: .6rem; padding-right: .9rem; }
.xpbar { width: 5.5rem; height: .45rem; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line-soft); }
.xpbar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .6s ease; }
.pill.timer { margin-left: auto; font-variant-numeric: tabular-nums; }

/* game */
.daynum { margin: 0 0 .15rem; font-weight: 700; }
.gpills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .6rem; }
.gp { font-size: .84rem; font-weight: 700; padding: .22rem .65rem; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--line); }
.game { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: .5rem 0 1.5rem; }
@media (min-width: 900px) { .game { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; gap: 1.25rem; } .choose { position: sticky; top: calc(var(--topbar-h) + .75rem); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.routecard, .choose { padding: .9rem; }
.routecard h3, .choose h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; }
.mode-note { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .88rem; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .75rem; margin: 0 0 .6rem; }
.mode-note a { color: var(--accent); font-weight: 700; }
.challenge { font-family: ui-sans-serif, system-ui, sans-serif; background: var(--surface); border: 1px solid var(--thread); border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0 .75rem; font-size: .92rem; }
.pips { display: flex; gap: .35rem; margin: .1rem 0 .8rem; align-items: flex-end; }
.pip { flex: 1; height: .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); position: relative; transition: background .3s; }
.pip.closer { background: var(--ok); border-color: var(--ok); }
.pip.same { background: var(--mid); border-color: var(--mid); }
.pip.farther { background: var(--bad); border-color: var(--bad); }
.pip.now { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pip.par::after { content: ""; position: absolute; right: 2px; top: -.55rem; width: 0; height: 0; border-left: .32rem solid transparent; border-right: .32rem solid transparent; border-top: .42rem solid var(--thread); }

/* route */
.route { list-style: none; margin: 0; padding: 0 0 0 1.5rem; position: relative; }
.route::before { content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--thread); opacity: .75; }
.rstep { position: relative; margin: 0 0 .7rem; }
.rstep::before { content: ""; position: absolute; left: -1.5rem; top: .9rem; width: .95rem; height: .95rem; border-radius: 50%; background: var(--thread); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--thread); }
.rstep.start::before { background: var(--star); box-shadow: 0 0 0 1px var(--star); }
.rstep.goal::before { background: var(--surface); box-shadow: 0 0 0 2px var(--thread); }
.rstep.goal { margin-top: 1.1rem; }
.route:has(.rstep.goal)::before { background: repeating-linear-gradient(to bottom, var(--thread) 0 6px, transparent 6px 11px); }
.rl { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin: 0 0 .25rem; }
.ncard { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; align-items: start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .5rem; }
.ncard img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: var(--surface-2); }
.ncard .nb { display: grid; gap: .15rem; min-width: 0; }
.ncard .nt { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .nm { font-size: .78rem; color: var(--muted); }
.ncard .hook { font-size: .9rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ncard.goal { border-style: dashed; border-color: var(--thread); }
.ncard.hit { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok); }
.bridge { margin: 0 0 .45rem; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.bridge > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; padding: .5rem .65rem; list-style: none; min-height: 2.75rem; }
.bridge > summary::-webkit-details-marker { display: none; }
.bridge > summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.bridge[open] > summary::after { content: "▴"; }
.dot { width: .8rem; height: .8rem; border-radius: 50%; flex: none; }
.dot.closer { background: var(--ok); } .dot.same { background: var(--mid); } .dot.farther { background: var(--bad); }
.bchip { font-weight: 700; font-size: .92rem; background: var(--thread-soft); color: var(--ink); border-radius: 999px; padding: .15rem .65rem; }
.bnote { font-size: .8rem; color: var(--muted); }
.bbody { padding: 0 .75rem .75rem; }
.both { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: .9rem; margin: .1rem 0 .5rem; }
.fact { margin: 0 0 .55rem; padding: .45rem .75rem; border-left: 3px solid var(--thread); background: var(--bg); border-radius: 0 10px 10px 0; }
.fact p { margin: 0 0 .25rem; font-size: .95rem; }
.fact .fh { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .78rem; color: var(--muted); font-weight: 700; margin: 0 0 .15rem; }
.read { display: inline-flex; align-items: center; min-height: 2.5rem; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: .88rem; color: var(--accent); text-decoration: none; padding: .1rem .2rem; }
.read:hover { text-decoration: underline; }
.rstep.fresh { animation: rise .45s ease; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* options */
.opts { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.opt { width: 100%; display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .7rem; align-items: center; text-align: left; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .55rem .45rem .45rem; cursor: pointer; position: relative; min-height: 3.6rem; font: inherit; }
.opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.opt:active { transform: scale(.995); }
.opt .th { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--surface-2); display: block; }
.opt .ob { display: grid; gap: .3rem; min-width: 0; }
.opt .ot { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.opt .oc { justify-self: start; font-size: .82rem; font-weight: 700; background: var(--thread-soft); color: var(--ink); border-radius: 999px; padding: .12rem .6rem; }
.opt.hinted { border-color: var(--star); box-shadow: 0 0 0 2px var(--star); }
.opt .oh { position: absolute; right: .5rem; top: -.65rem; background: var(--star); color: #1c1500; font-size: .72rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; }
.opt.hit { border-color: var(--ok); }
.hintrow { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .8rem; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1rem; cursor: pointer; font-size: .95rem; min-height: 2.75rem; }
button.ghost:hover:not(:disabled) { background: var(--surface-2); }
button.ghost:disabled { opacity: .6; cursor: default; }
.small { font-size: .86rem; color: var(--muted); margin: .25rem 0; }

@media (max-width: 520px) {
  .ncard { grid-template-columns: 4.6rem minmax(0, 1fr); gap: .55rem; }
  .opt { grid-template-columns: 4.6rem minmax(0, 1fr); gap: .55rem; }
  .route { padding-left: 1.25rem; }
  .rstep::before { left: -1.25rem; }
}

/* reveal */
.reveal { margin: 0 0 1.75rem; padding: 1.1rem; position: relative; overflow: hidden; }
.reveal.won { border-color: var(--ok); }
.reveal.lost { border-color: var(--thread); }
.reveal h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); line-height: 1.15; margin: 0 0 .25rem; }
.reveal .sub { margin: 0; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .95rem; }
.reveal .grid-out { font-size: 1.6rem; letter-spacing: .12em; margin: .6rem 0 0; font-family: ui-sans-serif, system-ui, "Apple Color Emoji", sans-serif; }
.gain { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 .2rem; }
.gain .tag { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; font-weight: 700; }
.reveal h3 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.1rem 0 .5rem; }
.shortest { margin: 0; padding-left: 1.3rem; }
.shortest li { margin: .25rem 0; }
.viaq { font-size: .8rem; font-weight: 700; background: var(--thread-soft); border-radius: 999px; padding: .1rem .5rem; }
.midlist { margin: 0; padding-left: 1.2rem; }
.midlist a { color: var(--accent); }
.promo { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.promo a { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: transform .15s, border-color .15s; }
.promo a:hover { transform: translateY(-2px); border-color: var(--accent); }
.promo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--surface-2); }
.promo .pb { padding: .65rem .8rem .8rem; display: grid; gap: .3rem; align-content: start; }
.promo .pt { font-weight: 700; line-height: 1.25; font-size: 1rem; }
.promo .ps { font-family: ui-sans-serif, system-ui, sans-serif; font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.promo .go { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; color: var(--accent); font-size: .88rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.share-row .lbl { font-size: .85rem; color: var(--muted); margin-right: .2rem; }
.share-row a, .share-row button { width: 2.5rem; height: 2.5rem; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-soft); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.share-row a:hover, .share-row button:hover { border-color: var(--accent); color: var(--accent); }
.share-row svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
@media (pointer: coarse) { .share-row a, .share-row button { width: 2.75rem; height: 2.75rem; } }
.share-pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; white-space: pre-wrap; margin: .4rem 0 0; }
.again { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-top: .5rem; }
.again a, .again button { text-align: left; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem; font-family: ui-sans-serif, system-ui, sans-serif; cursor: pointer; font-size: .95rem; font-weight: 700; display: grid; gap: .15rem; }
.again a:hover, .again button:hover { border-color: var(--accent); }
.again .d { font-weight: 400; font-size: .83rem; color: var(--muted); }

/* sections */
.section { margin: 2.25rem 0; }
.section h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 .35rem; line-height: 1.2; }
.section h2 a { color: inherit; text-decoration: none; }
.section h2 a:hover { text-decoration: underline; }
.section .lead { color: var(--ink); max-width: 64ch; margin: 0 0 1rem; }
.coll { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .coll { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } }
.coll-map { padding: .75rem; }
#map { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; background: var(--bg); border-radius: 10px; border: 1px solid var(--line-soft); }
.coll-count { font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; margin: .55rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0 0 .9rem; }
.st { text-align: center; padding: .6rem .3rem; }
.st b { display: block; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st span { font-size: .75rem; color: var(--muted); }
.dist { display: grid; gap: .3rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .85rem; }
.dist div { display: grid; grid-template-columns: 1.5rem 1fr; gap: .5rem; align-items: center; }
.dist .b { background: var(--accent); color: var(--accent-ink); min-width: 1.4rem; padding: 0 .4rem; border-radius: 4px; font-weight: 700; font-size: .8rem; text-align: right; }
.dist .b.cur { background: var(--thread); color: var(--accent-ink); }
.badges { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); padding: 0; list-style: none; margin: 0; }
.badge { display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.badge .med { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; background: var(--accent-soft); border: 2px solid var(--accent); }
.badge b { display: block; font-size: .92rem; line-height: 1.2; }
.badge span { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; }
.badge.locked .med { filter: grayscale(1); opacity: .45; background: var(--surface-2); border-color: var(--line); }
.badge.locked b { color: var(--muted); }
.arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); gap: .4rem; list-style: none; padding: 0; margin: 0; }
.arch { display: grid; place-items: center; min-height: 3.2rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; position: relative; cursor: pointer; }
.arch small { font-weight: 400; font-size: .68rem; color: var(--muted); }
.arch.won { background: var(--accent-soft); border-color: var(--ok); }
.arch.lost { background: var(--surface-2); border-color: var(--bad); }
.arch.today { box-shadow: 0 0 0 2px var(--thread); }
.arch:hover { border-color: var(--accent); }
.rules { padding-left: 1.2rem; max-width: 68ch; }
.rules li { margin: .35rem 0; }
.src li { margin: .3rem 0; }
.src a { color: var(--accent); }
.plist { columns: 18rem; column-gap: 1.5rem; padding-left: 1.1rem; font-size: .92rem; }
.plist li { break-inside: avoid; margin: .15rem 0; }
.plist a { color: var(--accent); }
details.projects > summary { cursor: pointer; font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; padding: .5rem 0; min-height: 2.75rem; }

footer { border-top: 1px solid var(--line); background: var(--surface); padding: 1rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 3rem; }
footer a { color: var(--ink); }

/* toasts */
.toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); top: calc(var(--topbar-h) + .6rem); display: grid; gap: .5rem; width: min(26rem, 100% - 1.5rem); pointer-events: none; }
.toast { pointer-events: auto; font-family: ui-sans-serif, system-ui, sans-serif; background: var(--ink); color: var(--bg); border-radius: 14px; padding: .7rem .9rem; display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; align-items: center; box-shadow: var(--shadow); animation: slidein .4s ease; }
.toast .t-i { font-size: 1.6rem; line-height: 1; text-align: center; }
.toast b { display: block; font-size: .95rem; }
.toast span { font-size: .85rem; opacity: .92; }
@keyframes slidein { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
#confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; width: 100%; height: 100%; }
.noscript { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.err { background: var(--surface); border: 1px solid var(--bad); border-radius: 12px; padding: 1rem; margin: 1rem 0; font-family: ui-sans-serif, system-ui, sans-serif; }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  .hero { padding-top: 1rem; }
  .deck { font-size: .98rem; margin-bottom: .7rem; }
  .hud { gap: .35rem; }
  .pill { font-size: .8rem; padding: .28rem .6rem; gap: .35rem; }
  .pill .ico { font-size: .95rem; }
  .xpbar { width: 3.2rem; }
  .pill.timer { margin-left: 0; }
  .routecard, .choose { padding: .6rem; }
  .game { gap: .6rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .chip { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .icon-btn { width: 2.75rem; height: 2.75rem; }
}

@media (max-width: 600px) {
  .hud .pill.lvl, .hud .pill.timer { display: none; }
  .ncard .hook { -webkit-line-clamp: 2; }
  h1 { font-size: 1.5rem; }
  .deck { font-size: .95rem; margin-bottom: .5rem; }
}
