:root {
  --bg: #14111f; --panel: #1e1a2e; --panel-2: #2a2438; --ink: #f4f0e6; --muted: #c9c6d6; --line: #4b4463;
  --gold: #f2c14e; --moon: #6c8ef5; --red: #d6455a; --green: #2f5d50;
  --pixel: "Press Start 2P", ui-monospace, monospace; --head: "Silkscreen", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--moon); }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
.masthead { display: flex; gap: 12px; align-items: center; margin: 8px 0 16px; }
.masthead h1 { font: 700 26px/1.1 var(--head); margin: 0; }
.masthead h1 span { display: block; font-size: 14px; color: var(--muted); }
.tag { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.panel { background: var(--panel); border: 3px solid var(--line); border-radius: 4px; padding: 16px; margin-bottom: 16px; box-shadow: 4px 4px 0 #0d0b14; }
.btn { font: 12px var(--pixel); color: var(--ink); background: var(--panel-2); border: 3px solid var(--line); padding: 12px 14px; cursor: pointer; border-radius: 2px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--moon); border-color: #b9e0ff; color: #0d0b14; }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rules { padding-left: 20px; } .rules li { margin: 6px 0; }
.tiers { list-style: none; padding: 0; display: grid; gap: 6px; }
.tiers li { display: flex; align-items: center; gap: 10px; background: var(--panel-2); padding: 4px 8px; }
.tiers img { width: 40px; height: 40px; } .tiers small { margin-left: auto; color: var(--muted); }
.registry li.locked { opacity: .35; }
.challenge { background: var(--green); padding: 8px 10px; font-weight: 600; }
.status { color: var(--gold); min-height: 1.5em; }
.hud { display: flex; justify-content: space-between; font: 12px var(--pixel); }
.lives { display: flex; gap: 2px; margin: 10px 0; } .lives img { width: 24px; height: 24px; }
.timer { height: 12px; background: var(--panel-2); border: 2px solid var(--line); }
#timer-bar { height: 100%; width: 100%; background: var(--gold); transition: width .1s linear; }
#timer-bar.low { background: var(--red); }
.region { color: var(--muted); font-size: 14px; margin: 12px 0 4px; }
.prompt { font: 700 22px/1.3 var(--head); margin: 0 0 14px; }
#guess-form { display: flex; gap: 8px; }
#guess-form input { flex: 1; min-width: 0; font-size: 18px; padding: 10px; background: #0d0b14; color: var(--ink); border: 3px solid var(--line); }
#rest { margin-top: 10px; width: 100%; }
.feed, .reveal { list-style: none; padding: 0; margin: 12px 0 0; }
.feed li, .reveal li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.feed img, .reveal img { width: 36px; height: 36px; }
.feed .note, .reveal small { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.feed .t-B .ans { color: var(--gold); font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.hero { display: block; margin: 0 auto; width: 128px; height: 128px; }
#final-score { font: 24px var(--pixel); text-align: center; color: var(--gold); margin: 12px 0 4px; }
.rank { text-align: center; font: 700 18px var(--head); margin: 0 0 12px; }
.share-text { background: #0d0b14; padding: 12px; white-space: pre-wrap; font-size: 15px; border: 2px solid var(--line); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; } .share-row .btn { flex: 1; }
.faq details { border-top: 1px dashed var(--line); padding: 8px 0; } .faq summary { cursor: pointer; font-weight: 600; }
.games { list-style: none; padding: 0; display: grid; gap: 10px; }
.games a, .games div { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 12px; background: var(--panel); border: 3px solid var(--line); color: var(--ink); text-decoration: none; }
.games div { grid-template-columns: 1fr; opacity: .6; }
.games span { color: var(--muted); font-size: 14px; } .games img { grid-row: span 2; }
.site-footer { max-width: 560px; margin: 0 auto; padding: 16px; color: var(--muted); font-size: 13px; }
.fine { font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { #timer-bar { transition: none; } }

.setting { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: 14px; color: var(--muted); }
.case-top { display: flex; align-items: center; gap: 10px; }
.mascot { width: 56px; height: 56px; }
.mascot.bounce { animation: bounce .4s steps(4); }
@keyframes bounce { 50% { transform: translateY(-8px); } }
.feed li.t-H { animation: shake .3s steps(3); }
@keyframes shake { 33% { transform: translateX(-4px); } 66% { transform: translateX(4px); } }
.contempt { background: var(--red); color: #fff; padding: 8px; font-weight: 600; }
.stats { text-align: center; color: var(--muted); margin: 0 0 12px; }
.final-reveal { margin-bottom: 12px; }
.channels .btn { text-align: center; text-decoration: none; }
.report { background: none; border: 0; color: var(--moon); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0 0 0 6px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 8px 0; } .page-title { font: 700 24px/1.2 var(--head); }
.prose h2 { font: 700 18px var(--head); } .prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose td, .prose th { border-bottom: 1px dashed var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.hub dt { font-weight: 700; margin-top: 14px; color: var(--gold); } .hub dd { margin: 4px 0 0; }
.archive { padding-left: 18px; } .pager { display: flex; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { .mascot.bounce, .feed li.t-H { animation: none; } }
