@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/pixelify-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pixelify-sans-latin-700-normal.woff2) format('woff2'); }
/* Pixelify's own 5 reads as an S, so digits come from pixel-digits.woff2, drawn to match Pixelify (see climb.css). */
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/pixel-digits.woff2) format('woff2'); unicode-range: U+0030-0039; }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/pixel-digits.woff2) format('woff2'); unicode-range: U+0030-0039; }
@font-face { font-family: 'Noto Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/noto-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Serif'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/noto-serif-latin-600-normal.woff2) format('woff2'); }

/* Dailyables list games. One stylesheet, three looks:
   Red Carpet: velvet, gold leaf and flashbulbs.   Neon Row: wet asphalt and glowing tubes.
   Wanted Level: a beachfront at dusk, gold stars and siren light. */
:root {
  --pix: 'Pixelify Sans', ui-monospace, monospace;
  --tiny: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;   /* small labels in the text font */
  --serif: 'Noto Serif', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --line: #050307;
}
body[data-game="redcarpet"] {
  --bg: #12060A;
  --hud-a: rgba(22, 6, 11, 0.95); --hud-b: rgba(22, 6, 11, 0.8);
  --panel: rgba(30, 9, 16, 0.97); --panel-in: #3E1220; --panel-hi: rgba(255, 220, 160, 0.06);
  --deep: #0E0407;
  --accent: #F2C35B; --accent-hi: #FFE7A3; --accent-lo: #7A5A14;
  --alt: #8E1B2E; --alt-hi: #B8283F; --alt-lo: #4A0C17;
  --pop: #F7B6C8;
  --text: #F6EDE4; --soft: #E3CFC8; --muted: #B79AA2;
  --glow: rgba(242, 195, 91, 0.5);
  --chip: rgba(255, 231, 163, 0.07); --chip-edge: rgba(255, 231, 163, 0.18);
  /* the prompt card: an ivory invitation with a gold border */
  --card: #FBF3E2; --card-2: #EADFC6; --card-ink: #22100F; --card-muted: #7A6258; --card-rule: #D9C7A3;
  --card-head: #A3162B; --input: #FFFDF7; --input-ink: #22100F; --input-edge: #22100F;
  --focus: rgba(163, 22, 43, 0.4);
  --bad: #B3283A; --note: #8A5A00;
  --bar: #E9B949; --bar-2: #C28F1F;
}
body[data-game="neonrow"] {
  --bg: #07060F;
  --hud-a: rgba(8, 7, 20, 0.95); --hud-b: rgba(8, 7, 20, 0.8);
  --panel: rgba(13, 11, 30, 0.96); --panel-in: #2B2260; --panel-hi: rgba(160, 200, 255, 0.05);
  --deep: #05040C;
  --accent: #FF4FA3; --accent-hi: #FFB8DD; --accent-lo: #7A1650;
  --alt: #1E5E73; --alt-hi: #2A8FA8; --alt-lo: #0B2C38;
  --pop: #35E0F0;
  --text: #F2F0FF; --soft: #CFCBEA; --muted: #9590BD;
  --glow: rgba(255, 79, 163, 0.55);
  --chip: rgba(53, 224, 240, 0.07); --chip-edge: rgba(53, 224, 240, 0.2);
  /* the prompt card: a dark sign board ringed by a cyan tube */
  --card: #0E0C22; --card-2: #17143A; --card-ink: #F2F0FF; --card-muted: #9590BD; --card-rule: #2B2260;
  --card-head: #35E0F0; --input: #05040C; --input-ink: #FFFFFF; --input-edge: #35E0F0;
  --focus: rgba(53, 224, 240, 0.45);
  --bad: #FF6FB5; --note: #FFE24D;
  --bar: #35E0F0; --bar-2: #1FA9BA;
}

body[data-game="wanted"] {
  --bg: #0F0826;
  --hud-a: rgba(18, 9, 40, 0.95); --hud-b: rgba(18, 9, 40, 0.8);
  --panel: rgba(24, 12, 48, 0.96); --panel-in: #3A1E5A; --panel-hi: rgba(255, 200, 160, 0.06);
  --deep: #0A0518;
  --accent: #FFD24A; --accent-hi: #FFF0B0; --accent-lo: #7A5A14;
  --alt: #B0306E; --alt-hi: #E0488C; --alt-lo: #4A1030;
  --pop: #4FF0FF;
  --text: #F7F0FF; --soft: #DCCDEB; --muted: #A893C2;
  --glow: rgba(255, 95, 200, 0.5);
  --chip: rgba(255, 210, 74, 0.07); --chip-edge: rgba(255, 210, 74, 0.2);
  /* the prompt card: a printed all-points bulletin on manila paper with a red stamp */
  --card: #F4ECD8; --card-2: #E4D7B8; --card-ink: #1A1430; --card-muted: #6E6280; --card-rule: #D2C29C;
  --card-head: #C8243C; --input: #FFFDF6; --input-ink: #1A1430; --input-edge: #1A1430;
  --focus: rgba(46, 91, 255, 0.4);
  --bad: #C8243C; --note: #8A5A00;
  --bar: #FF5FC8; --bar-2: #B0306E;
}
* { box-sizing: border-box; font-variant-ligatures: none !important; }
html, body { margin: 0; height: 100%; overflow-wrap: break-word; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.45 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
img, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
canvas { image-rendering: pixelated; }
.px2 { width: 32px; height: 32px; display: block; image-rendering: pixelated; }
.badge { width: 40px; height: 40px; display: block; image-rendering: pixelated; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; }

/* --------------------------------------------------------------- HUD */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--safe-top)) 12px 8px;
  background: linear-gradient(var(--hud-a), var(--hud-b));
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45);
}
body[data-game="neonrow"] .hud { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 14px var(--glow); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.brand .mark { width: 24px; height: 24px; flex: none; } /* a 12-unit pixel mark at exactly 2x */
.brand b { font: 400 16px/1 var(--tiny); letter-spacing: 0.04em; color: var(--accent-hi); white-space: nowrap; }
.brand small { font: 400 10px/1 var(--tiny); color: var(--muted); display: block; margin-top: 3px; letter-spacing: 0.08em; white-space: nowrap; }
body[data-game="neonrow"] .brand b { color: #fff; text-shadow: 0 0 6px var(--accent), 0 0 12px var(--glow); }
.hud .spacer { flex: 1; }
.score-dial {
  display: flex; align-items: baseline; gap: 6px; padding: 4px 10px 3px; min-width: 86px; justify-content: flex-end;
  background: var(--deep); border: 2px solid var(--panel-in);
  box-shadow: inset 0 0 0 2px #000, inset 0 0 12px var(--glow);
  font: 700 22px/1 var(--pix); color: var(--accent); text-shadow: 0 0 8px var(--glow);
}
.score-dial small { font: 400 10px/1 var(--tiny); color: var(--muted); text-shadow: none; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; flex: none;
  background: var(--panel-in); border: 2px solid var(--line); color: #fff;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.16), inset -2px -2px 0 rgba(0, 0, 0, 0.35);
  font-size: 18px; line-height: 1; padding: 0;
}
.icon-btn .px2 { width: 32px; height: 32px; }
.icon-btn:active { transform: translateY(2px); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.35); }
/* "The Game of Knowledge" under the game's name: tighter on phones so it fits beside the score */
@media (max-width: 480px) { .brand small { font-size: 9px; letter-spacing: 0.01em; } }
@media (max-width: 380px) {
  .brand small { display: none; }
  .score-dial { min-width: 0; padding: 4px 8px 3px; }
  .hud { gap: 8px; }
}

/* --------------------------------------------------------------- layers */
#ui {
  position: fixed; inset: 0; z-index: 4;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(64px + var(--safe-top)) 12px calc(20px + var(--safe-bot));
  display: flex; flex-direction: column; align-items: center;
}
.col { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }

/* --------------------------------------------------------------- panels */
.panel {
  background: var(--panel);
  border: 2px solid var(--line);
  box-shadow: inset 0 0 0 2px var(--panel-in), inset 4px 4px 0 var(--panel-hi), 0 6px 0 rgba(0, 0, 0, 0.45);
  padding: 18px 18px 16px;
}
body[data-game="redcarpet"] .panel {
  /* gold piping */
  box-shadow: inset 0 0 0 2px var(--panel-in), inset 0 0 0 4px rgba(242, 195, 91, 0.16), inset 6px 6px 0 var(--panel-hi), 0 6px 0 rgba(0, 0, 0, 0.5);
}
body[data-game="neonrow"] .panel {
  box-shadow: inset 0 0 0 2px var(--panel-in), inset 0 0 18px rgba(166, 107, 255, 0.08), 0 6px 0 rgba(0, 0, 0, 0.5);
}
body[data-game="wanted"] .panel {
  /* a sunset stripe along the top edge */
  box-shadow: inset 0 0 0 2px var(--panel-in), inset 0 3px 0 2px rgba(255, 95, 200, 0.22), inset 6px 6px 0 var(--panel-hi), 0 6px 0 rgba(0, 0, 0, 0.5);
}

/* the prompt card */
.card {
  position: relative; color: var(--card-ink); background: var(--card);
  border: 2px solid var(--line); padding: 14px 16px 16px;
}
body[data-game="redcarpet"] .card {
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 5px #C99A2E, inset 0 0 0 6px var(--card), inset 0 0 0 7px #E9C877, inset -6px -6px 0 var(--card-2), 0 6px 0 rgba(0, 0, 0, 0.55);
  padding: 18px 18px 18px;
}
body[data-game="redcarpet"] .card::before {
  /* a lanyard clip, like a press pass */
  content: ''; position: absolute; top: -9px; left: 50%; width: 40px; height: 12px; margin-left: -20px;
  background: linear-gradient(#FFE7A3, #B98A1E); border: 2px solid var(--line);
}
body[data-game="wanted"] .card {
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px var(--card-rule), inset -6px -6px 0 var(--card-2), 0 6px 0 rgba(0, 0, 0, 0.55);
  padding: 18px 18px 18px;
}
body[data-game="wanted"] .card::before {
  /* a paper clip holding the bulletin */
  content: ''; position: absolute; top: -10px; right: 22px; width: 12px; height: 26px;
  border: 2px solid #8A93A6; border-bottom: 0; background: transparent;
}
body[data-game="neonrow"] .card {
  border-color: #000;
  box-shadow: 0 0 0 2px #35E0F0, 0 0 10px 2px rgba(53, 224, 240, 0.55), inset 0 0 14px rgba(53, 224, 240, 0.2), 0 8px 0 2px rgba(0, 0, 0, 0.55);
  background: linear-gradient(var(--card-2), var(--card));
}
.card-head {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font: 400 10px/1.3 var(--tiny); letter-spacing: 0.08em; color: var(--card-head);
  border-bottom: 2px dashed var(--card-rule); padding-bottom: 8px; margin-bottom: 10px;
}
.card-head span + span { color: var(--card-muted); }
body[data-game="neonrow"] .card-head { text-shadow: 0 0 6px rgba(53, 224, 240, 0.6); }
/* Neon Row's little neon sign for the prompt, floated so the prompt wraps beside it */
.picon { float: right; width: 64px; height: 64px; margin: 2px 0 6px 12px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(53, 224, 240, 0.35)); }
.answer-row { clear: both; }
.prompt-text { font: 700 clamp(22px, 5.6vw, 30px)/1.2 var(--pix); letter-spacing: 0.01em; margin: 2px 0 12px; color: var(--card-ink); }
body[data-game="neonrow"] .prompt-text { text-shadow: 0 0 10px rgba(255, 255, 255, 0.18); }

.timer {
  height: 14px; border: 2px solid var(--line); background: rgba(0, 0, 0, 0.35); position: relative; overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.5);
}
.timer i {
  position: absolute; inset: 0 auto 0 0; width: 100%;
  background: repeating-linear-gradient(90deg, var(--bar) 0 10px, var(--bar-2) 10px 12px);
}
.timer.warn i { background: repeating-linear-gradient(90deg, #FFB000 0 10px, #D99200 10px 12px); }
.timer.crit i { background: repeating-linear-gradient(90deg, #E5484D 0 10px, #B3343A 10px 12px); }
body[data-game="neonrow"] .timer i { box-shadow: 0 0 8px rgba(53, 224, 240, 0.7); }
.timer-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.timer-row .timer { flex: 1; }
.timer-row .secs { font: 700 16px/1 var(--pix); width: 38px; text-align: right; color: var(--card-ink); }
.grace { font: 400 11px/1 var(--tiny); letter-spacing: 0.08em; color: var(--card-head); text-align: center; margin-top: 8px; min-height: 12px; }

.answer-row { display: flex; gap: 8px; }
.answer-row input {
  flex: 1; min-width: 0; padding: 12px 12px 11px; font: 700 18px/1 var(--pix); color: var(--input-ink);
  background: var(--input); border: 2px solid var(--input-edge); border-radius: 0;
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.14);
  outline: none;
}
.answer-row input:focus { box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.14), 0 0 0 3px var(--focus); }
.answer-row input::placeholder { color: var(--card-muted); font-weight: 500; opacity: 0.8; }
body[data-game="neonrow"] .answer-row input { caret-color: #35E0F0; }
.feedback { min-height: 22px; margin-top: 8px; font: 500 14px/1.3 var(--pix); color: var(--bad); }
.feedback.note { color: var(--note); }
/* "did you mean": a sticky note under the box, pointing up at it */
.feedback.suggest {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  margin-top: 14px; padding: 9px 12px 8px; color: #050A14;
  background: #FFE47A; border: 2px solid var(--line); box-shadow: 4px 4px 0 rgba(5, 10, 20, 0.25);
  font: 700 16px/1.25 var(--pix);
  animation: note-in 0.2s steps(4) both;
}
.feedback.suggest::before {
  content: ''; position: absolute; left: 22px; top: -10px; width: 16px; height: 8px;
  background: var(--line); clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.feedback.suggest::after {
  content: ''; position: absolute; left: 26px; top: -4px; width: 8px; height: 4px;
  background: #FFE47A; clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.feedback.suggest .was { color: #6B5A16; font-weight: 500; }
.feedback.suggest .arrow { color: #A3162B; }
.feedback.suggest b { font-weight: 700; }
.feedback.suggest small { flex-basis: 100%; font: 400 10px/1.3 var(--tiny); letter-spacing: 0.08em; color: #6B5A16; text-transform: uppercase; }
@keyframes note-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.shake { animation: shake 0.32s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* while the scene celebrates, the card steps aside */
.play-card { transition: opacity 0.25s, transform 0.25s; }
body.reacting .play-card { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px 11px; cursor: pointer; text-decoration: none;
  font: 400 15px/1.1 var(--tiny); letter-spacing: 0.04em; text-transform: uppercase;
  color: #1A0E06; background: linear-gradient(var(--accent-hi), var(--accent));
  border: 2px solid var(--line);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.45), inset -3px -3px 0 rgba(0, 0, 0, 0.22), 0 4px 0 var(--accent-lo), 0 4px 0 2px var(--line);
  transition: transform 0.05s;
}
body[data-game="neonrow"] .btn {
  color: #fff; background: linear-gradient(#FF7DBE, #E0368A);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.3), inset -3px -3px 0 rgba(0, 0, 0, 0.25), 0 4px 0 var(--accent-lo), 0 4px 0 2px var(--line), 0 0 16px var(--glow);
}
.btn:active { transform: translateY(3px); box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 0 var(--accent-lo), 0 1px 0 2px var(--line); }
.btn:focus-visible, .icon-btn:focus-visible, .other:focus-visible { outline: 3px solid var(--pop); outline-offset: 3px; }
.btn.alt, body[data-game="neonrow"] .btn.alt {
  color: var(--text); text-shadow: none;
  background: linear-gradient(var(--alt-hi), var(--alt));
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.16), inset -3px -3px 0 rgba(0, 0, 0, 0.3), 0 4px 0 var(--alt-lo), 0 4px 0 2px var(--line);
}
.btn.alt:active { box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 0 var(--alt-lo), 0 1px 0 2px var(--line); }
.btn.li, body[data-game="neonrow"] .btn.li {
  color: #fff; text-shadow: none; background: linear-gradient(#2B83DA, #0A66C2);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.3), inset -3px -3px 0 rgba(0, 0, 0, 0.25), 0 4px 0 #063F78, 0 4px 0 2px var(--line);
}
.btn.small { padding: 10px 12px 9px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1 1 140px; }
.answer-row .btn { flex: none; padding-left: 16px; padding-right: 16px; }

/* --------------------------------------------------------------- lobby */
.lobby { min-height: calc(100dvh - 84px - var(--safe-top) - var(--safe-bot)); justify-content: space-between; }
.plaque { text-align: center; padding: 14px 16px 14px; }
.kicker { margin: 0 0 6px; font: 400 10px/1 var(--tiny); letter-spacing: 0.16em; color: var(--muted); }
.wordmark { font: 400 clamp(36px, 10.5vw, 56px)/1 var(--tiny); letter-spacing: 0.02em; color: #fff; margin: 0; }
body[data-game="redcarpet"] .wordmark { color: var(--accent-hi); text-shadow: 3px 3px 0 #A3162B, 6px 6px 0 var(--line); }
body[data-game="wanted"] .wordmark { color: var(--accent); text-shadow: 3px 3px 0 #FF5FC8, 6px 6px 0 var(--line); }
body[data-game="wanted"] .hud { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 95, 200, 0.35); }
body[data-game="neonrow"] .wordmark {
  color: #FFE9F5;
  text-shadow: 0 0 4px #FF4FA3, 0 0 12px #FF4FA3, 0 0 26px rgba(255, 79, 163, 0.75), 3px 3px 0 rgba(0, 0, 0, 0.6);
  animation: flicker 7s infinite steps(1);
}
@keyframes flicker { 0%, 61%, 63%, 100% { opacity: 1; } 62% { opacity: 0.55; } }
.tagline { margin: 10px auto 0; max-width: 36ch; font: 400 14px/1.45 var(--serif); color: var(--soft); }
.lobby .gap { flex: 1; min-height: 120px; }
.start-panel { text-align: center; padding: 16px 16px 14px; }
.go-btn { width: 100%; font-size: 17px; padding: 15px 18px 14px; }
.edition { font: 400 11px/1 var(--tiny); letter-spacing: 0.1em; color: var(--muted); text-align: center; margin: 12px 0 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { background: var(--panel); border: 2px solid var(--line); box-shadow: inset 0 0 0 2px var(--panel-in); padding: 8px 6px 7px; text-align: center; }
.mini-stats b { display: block; font: 700 20px/1 var(--pix); color: var(--accent); }
.mini-stats span { font: 400 9px/1.2 var(--tiny); color: var(--muted); letter-spacing: 0.06em; }

/* tier ladder (how to play) */
.ladder { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.ladder li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 5px 8px; background: rgba(255, 255, 255, 0.04); border-left: 4px solid var(--c); }
.ladder canvas { width: 32px; height: 32px; }
.ladder b { font: 700 15px/1.1 var(--pix); color: var(--c); }
.ladder small { display: block; font: 400 12px/1.3 var(--sans); color: var(--muted); }
.ladder .pts { font: 700 15px/1 var(--pix); color: #fff; }

dialog.sheet {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); overflow: auto;
  color: var(--text); background: var(--deep); border: 2px solid var(--line); padding: 18px;
  box-shadow: inset 0 0 0 2px var(--panel-in), 0 10px 0 rgba(0, 0, 0, 0.5);
}
dialog.sheet::backdrop { background: rgba(5, 3, 8, 0.72); }
dialog.sheet h2 { font: 700 24px/1.15 var(--pix); margin: 0 0 8px; color: var(--accent-hi); }
dialog.sheet p, dialog.sheet li { font-size: 15px; color: var(--soft); }
dialog.sheet ul.rules { padding-left: 18px; margin: 8px 0; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.4; }
.fine a, dialog.sheet a { color: var(--accent-hi); }

/* --------------------------------------------------------------- reveal */
.reveal { text-align: center; }
.reveal .portrait { display: grid; place-items: center; margin: 2px auto 8px; width: 112px; height: 112px; background: var(--deep); border: 2px solid var(--c, var(--accent)); box-shadow: 0 0 0 4px var(--line), 0 0 24px var(--c, transparent); }
.reveal .portrait canvas { width: 96px; height: 96px; }
.tier-name { font: 400 clamp(22px, 7vw, 30px)/1.1 var(--tiny); color: var(--c); letter-spacing: 0.02em; margin: 6px 0 2px; text-transform: uppercase; text-shadow: 2px 2px 0 var(--line); }
body[data-game="neonrow"] .tier-name { text-shadow: 0 0 10px var(--c), 2px 2px 0 var(--line); }
.tier-sub { font: 400 11px/1 var(--tiny); color: var(--muted); letter-spacing: 0.1em; }
.gain { font: 700 40px/1 var(--pix); color: #fff; margin: 12px 0 2px; }
.you-said { margin: 10px 0 0; font: 400 15px/1.35 var(--sans); color: var(--soft); }
.you-said b { color: #fff; font-family: var(--pix); font-weight: 500; font-size: 18px; }
.flavor { margin: 8px auto 0; max-width: 34ch; font: italic 400 15px/1.4 var(--serif); color: var(--text); }
.said { margin: 10px auto 0; display: inline-block; padding: 5px 10px 4px; background: rgba(0, 0, 0, 0.5); border: 2px solid var(--panel-in); font: 500 13px/1.2 var(--pix); color: var(--pop); }
.shows { margin: 10px auto 0; max-width: 36ch; font: 400 14px/1.4 var(--sans); color: var(--text); }
.shows span { display: block; font: 400 10px/1.2 var(--tiny); letter-spacing: 0.1em; color: var(--pop); margin-bottom: 3px; }
.could-d { color: var(--muted); }
.could { margin: 12px 0 0; font: 400 13px/1.45 var(--sans); color: var(--muted); }
.could b { color: var(--text); }

/* --------------------------------------------------------------- results */
.result-head { text-align: center; }
.result-head .eyebrow { font: 400 11px/1 var(--tiny); letter-spacing: 0.12em; color: var(--muted); }
.result-head .big { font: 700 64px/0.9 var(--pix); color: var(--accent); text-shadow: 0 0 18px var(--glow), 3px 3px 0 var(--line); margin: 8px 0 0; }
.result-head .big small { font-size: 22px; color: var(--muted); text-shadow: none; margin-left: 4px; }
.result-head .title { font: 700 26px/1.1 var(--pix); color: #fff; margin-top: 8px; }
.result-head .quip { font: italic 400 15px/1.4 var(--serif); color: var(--soft); margin-top: 4px; }
.tier-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin: 14px 0 4px; }
.strip-b { padding: 0; border: 0; background: none; cursor: pointer; transition: transform 0.12s; }
.strip-b:hover { transform: translateY(-2px); }
.strip-b:active { transform: translateY(1px); }
.strip-b:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.better { text-align: center; font: 700 20px/1.2 var(--pix); color: #fff; margin: 4px 0 0; }
.better small { display: block; font: 400 12px/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
.hist { display: flex; align-items: flex-end; gap: 3px; height: 84px; margin: 14px 2px 4px; }
.hist i { flex: 1; background: var(--panel-in); min-height: 3px; }
.hist i.me { background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.hist-axis { display: flex; justify-content: space-between; font: 400 9px/1 var(--tiny); color: var(--muted); }
.h3 { font: 400 14px/1.2 var(--tiny); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-hi); margin: 0 0 12px; }
.log-hint { margin: -6px 0 10px; font: 400 12px/1.4 var(--sans); color: var(--muted); }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.log > li { background: rgba(255, 255, 255, 0.04); border-left: 4px solid var(--c); scroll-margin-top: calc(72px + var(--safe-top)); }
.lrow {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto 14px; gap: 10px; align-items: center;
  padding: 8px 10px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
}
.lrow:hover { background: rgba(255, 255, 255, 0.04); }
.lrow:focus-visible { outline: 3px solid var(--pop); outline-offset: -3px; }
.lbody { min-width: 0; }
.lrow .q, .lrow .a, .lrow .t { display: block; }
.lrow .q { font: 400 12px/1.3 var(--sans); color: var(--muted); }
.lrow .a { font: 500 16px/1.25 var(--pix); color: #fff; overflow-wrap: anywhere; }
.lrow .t { font: 400 12px/1.3 var(--sans); color: var(--c); }
.lrow .p { font: 700 16px/1 var(--pix); color: #fff; white-space: nowrap; }
.chev { width: 14px; height: 8px; fill: var(--muted); shape-rendering: crispEdges; transition: transform 0.15s; }
.lrow[aria-expanded="true"] .chev { transform: rotate(180deg); fill: #fff; }
.tiers { padding: 0 10px 10px; }
.tiers-head { margin: 2px 0 8px; padding-top: 8px; border-top: 2px dashed rgba(255, 255, 255, 0.08); font: 400 12px/1.4 var(--sans); color: var(--muted); }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tl li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; padding: 7px 8px; background: rgba(0, 0, 0, 0.45); border: 2px solid var(--line); }
.tl li.mine { border-color: var(--c); }
.tl .tb { min-width: 0; }
.tl .th { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tl .tn { font: 400 11px/1.2 var(--tiny); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c); }
.tl .tp { font: 700 13px/1 var(--pix); color: #fff; white-space: nowrap; }
.ans { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.chip { font: 500 14px/1.2 var(--pix); color: var(--text); padding: 3px 7px 2px; background: var(--chip); border: 1px solid var(--chip-edge); overflow-wrap: anywhere; }
.chip.you { border: 2px solid var(--c); background: var(--deep); color: #fff; padding: 2px 6px 1px; }
.chip.you::before { content: 'YOU'; font: 400 9px/1 var(--tiny); color: var(--c); margin-right: 5px; vertical-align: 1px; }
.more, .none { font: 400 12px/1.2 var(--sans); color: var(--muted); padding: 0 2px; }
.countdown { text-align: center; font: 400 11px/1.4 var(--tiny); letter-spacing: 0.08em; color: var(--muted); }
.countdown b { display: block; font: 700 28px/1.1 var(--pix); color: #fff; letter-spacing: 0.06em; margin-top: 4px; }
.archive { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.archive button { width: 100%; padding: 10px 6px 9px; cursor: pointer; background: rgba(0, 0, 0, 0.5); border: 2px solid var(--panel-in); color: var(--text); text-align: center; }
.archive button b { display: block; font: 700 16px/1 var(--pix); }
.archive button span { font: 400 10px/1.3 var(--tiny); color: var(--muted); }
.archive button.done { border-color: var(--accent); }
.archive button.done span { color: var(--accent); }

/* the other Dailyables games */
.others-list { display: grid; gap: 8px; }
.other {
  display: block; padding: 10px 12px; text-decoration: none; color: var(--text);
  background: rgba(0, 0, 0, 0.45); border: 2px solid var(--panel-in);
}
.other:hover { border-color: var(--accent); }
.other b { display: block; font: 700 16px/1.2 var(--pix); color: var(--accent-hi); }
.other span { font: 400 13px/1.35 var(--sans); color: var(--soft); }

#toast {
  position: fixed; left: 50%; bottom: calc(18px + var(--safe-bot)); transform: translate(-50%, 20px); z-index: 9;
  padding: 10px 14px 9px; background: var(--deep); border: 2px solid var(--accent); color: #fff;
  font: 500 14px/1.2 var(--pix); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  max-width: calc(100vw - 24px); text-align: center;
}
#toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.loading { margin-top: 30vh; text-align: center; font: 500 16px/1 var(--pix); color: var(--soft); text-shadow: 0 2px 0 #000; }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.foot { text-align: center; font: 400 12px/1.5 var(--sans); color: var(--soft); background: rgba(5, 3, 8, 0.82); border: 2px solid var(--line); padding: 8px 10px; margin: 0; }
.foot a { color: var(--accent-hi); }

@media (min-width: 900px) {
  #ui { align-items: flex-end; padding-right: max(24px, calc((100vw - 1240px) / 2)); }
  .col { max-width: 430px; margin: auto 0; }
  #ui.center { align-items: center; padding-right: 12px; }
  #ui.center .col { max-width: 520px; }
  .lobby { min-height: 0; justify-content: center; }
  .lobby .gap { display: none; }
}
@media (max-height: 640px) {
  .wordmark { font-size: 38px; }
  .lobby .gap { min-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .blink, .shake, .feedback.suggest, body[data-game="neonrow"] .wordmark { animation: none; }
  .play-card { transition: none; }
}

/* ===== Launch pass (studio reports, 20 Nov 2026) ===== */
/* rules in one line under the start button, and a one-time coaching line on the first prompt */
.rules-line { margin: 12px 0 0; font: 400 13px/1.4 var(--sans); color: var(--soft); text-align: center; }
.coach { margin: 8px 0 0; font: 400 13px/1.35 var(--sans); color: var(--card-muted); }

/* a friend's challenge in the lobby */
.challenge { margin: 0 0 14px; padding: 12px; border: 2px dashed var(--accent); background: rgba(0, 0, 0, 0.35); text-align: center; }
.challenge .ch-k { margin: 0; font: 400 11px/1.3 var(--tiny); letter-spacing: 0.14em; color: var(--accent-hi); }
.challenge .ch-s { margin: 6px 0 0; font: 400 15px/1.35 var(--sans); color: var(--text); }
.challenge .ch-s b { font-family: var(--pix); font-size: 18px; color: var(--accent-hi); }
.challenge .ch-strip { margin: 10px 0 0; }
.challenge .ch-strip .badge { width: 32px; height: 32px; }
.challenge .ch-note { margin: 8px 0 0; font: 400 13px/1.4 var(--sans); color: var(--soft); }

/* head to head on the results */
.h2h { display: flex; flex-direction: column; gap: 10px; }
.h2h .h3 { margin: 0; }
.h2h-row { display: grid; grid-template-columns: 58px 48px minmax(0, 1fr); gap: 8px; align-items: center; }
.h2h-row b { font: 400 11px/1 var(--tiny); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.h2h-s { font: 700 22px/1 var(--pix); color: var(--accent-hi); }
.h2h-b { display: flex; flex-wrap: wrap; gap: 3px; }
.h2h-b .badge { width: 28px; height: 28px; }
.h2h-v { margin: 2px 0 2px; font: 700 18px/1.3 var(--pix); color: var(--text); }

/* sharing */
.share-panel .share-note { margin: 10px 0 0; font: 400 13px/1.4 var(--sans); color: var(--soft); text-align: center; }
.share-panel .res-url { margin: 8px 0 0; font: 400 11px/1.3 var(--tiny); letter-spacing: 0.12em; color: var(--muted); text-align: center; }
.copy-text { width: 100%; box-sizing: border-box; margin: 10px 0 14px; padding: 10px; font: 400 16px/1.35 var(--sans); color: var(--input-ink); background: var(--input); border: 2px solid var(--input-edge); resize: none; }

/* "Next up" (assets/today.js) */
.nextup.panel { display: flex; flex-direction: column; gap: 12px; }
.nextup .nu-k { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.nextup.panel .nu-k { font: 400 11px/1.3 var(--pix); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-hi); }
.nextup.panel .nu-k span { color: var(--muted); }
.nextup.panel .nu-go { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; text-decoration: none; color: var(--text); background: rgba(0, 0, 0, 0.45); border: 2px solid var(--accent); }
.nextup.panel .nu-go:hover { border-color: var(--accent-hi); }
.nextup .nu-go img { width: 96px; height: 64px; image-rendering: pixelated; background: #07060F; }
.nextup.panel .nu-go img { border: 2px solid rgba(0, 0, 0, 0.6); }
.nextup.panel .nu-t b { display: block; font: 700 17px/1.2 var(--pix); color: var(--accent-hi); }
.nextup.panel .nu-t span { display: block; font: 400 13px/1.35 var(--sans); color: var(--soft); }
.nextup.panel .nu-btn { padding: 10px 16px; text-align: center; font: 700 14px/1 var(--pix); letter-spacing: 0.12em; text-transform: uppercase; color: #1A1206; background: var(--accent); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.25); }
.nextup.panel .nu-more { margin: 0; font: 400 13px/1.4 var(--sans); color: var(--soft); }
.nextup.panel .nu-more a { color: var(--accent-hi); }
.nextup .nu-streak { margin: 0; display: flex; gap: 8px; align-items: center; }
.nextup .kg-flame { flex: none; }
.nextup.panel .nu-streak { font: 400 14px/1.4 var(--sans); color: var(--text); }
.nextup.panel .nu-mile { margin: 0; padding: 8px 10px; border: 2px dashed var(--accent); font: 400 12px/1.4 var(--sans); color: var(--accent-hi); }
.nextup.panel .nu-all { margin: 0; font: 700 17px/1.3 var(--pix); color: var(--accent-hi); }
@media (max-width: 480px) { .nextup.panel .nu-go { grid-template-columns: 96px minmax(0, 1fr); } .nextup.panel .nu-btn { grid-column: 1 / -1; } }

/* contrast */
.answer-row input::placeholder { opacity: 1; }
body[data-game="neonrow"] .btn { color: #1A0E06; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }

/* how-to boxes: "Got it" always in reach */
dialog.sheet > .row:last-child { position: sticky; bottom: -18px; margin: 12px -18px -18px; padding: 12px 18px 18px; background: var(--deep); box-shadow: 0 -12px 14px -8px rgba(0, 0, 0, 0.6); }

/* small phones */
@media (max-width: 374px) { .brand b { font-size: 13px; letter-spacing: 0.02em; } }
@media (max-width: 339px) { .brand > span { display: none; } }

/* ===== Motion pass (studio round 2, motion): the reveal card and the results land in a beat, scaled by tier ===== */
:root { --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1); --ease-pop: cubic-bezier(0.3, 1.45, 0.5, 1); }
@keyframes fx-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fx-drop-in { 0% { opacity: 0; transform: translateY(-14px) scale(0.6); } 60% { opacity: 1; transform: translateY(2px) scale(1.08); } 100% { transform: none; } }
@keyframes fx-stamp { from { transform: scale(1.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fx-spark { 0% { transform: translate(0, 0) scale(1.5); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(0.5); opacity: 0; } }
.fx-sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.fx-sparks i { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; animation: fx-spark 0.6s var(--ease-out) both; }
.reveal.fx-in { animation: fx-rise 0.18s var(--ease-out) both; }
.reveal.fx-in .portrait { position: relative; animation: fx-drop-in 0.26s steps(5) both; }
.reveal.fx-in .tier-name, .reveal.fx-in .tier-sub { animation: fx-stamp 0.2s steps(3) 0.12s both; }
.reveal.fx-in .gain { animation: fx-stamp 0.2s var(--ease-pop) 0.22s both; }
.reveal.fx-in .you-said, .reveal.fx-in .shows, .reveal.fx-in .flavor, .reveal.fx-in .said, .reveal.fx-in .could { animation: fx-rise 0.22s var(--ease-out) 0.36s both; }
.reveal.fx-in .row { animation: fx-rise 0.2s var(--ease-out) 0.44s both; }
.reveal.fx-in.t0 .portrait, .reveal.fx-in.t0 .tier-name, .reveal.fx-in.t0 .tier-sub, .reveal.fx-in.t0 .gain { animation: fx-rise 0.2s var(--ease-out) both; }   /* a miss: no stamp */
@keyframes fx-glow { 50% { box-shadow: 0 0 0 4px var(--line), 0 0 40px var(--c); } }
.reveal.fx-in.t5 .portrait, .reveal.fx-in.t6 .portrait { animation: fx-drop-in 0.26s steps(5) both, fx-glow 0.6s var(--ease-out) 0.32s 2; }
.result-head.fx-in .tier-strip .strip-b { animation: fx-stamp 0.2s steps(3) both; }
.result-head.fx-in .tier-strip .strip-b:nth-child(1) { animation-delay: 0.15s; }
.result-head.fx-in .tier-strip .strip-b:nth-child(2) { animation-delay: 0.24s; }
.result-head.fx-in .tier-strip .strip-b:nth-child(3) { animation-delay: 0.33s; }
.result-head.fx-in .tier-strip .strip-b:nth-child(4) { animation-delay: 0.42s; }
.result-head.fx-in .tier-strip .strip-b:nth-child(5) { animation-delay: 0.51s; }
.result-head.fx-in .title { animation: fx-stamp 0.22s steps(3) 0.95s both; }
.result-head.fx-in .quip, .result-head.fx-in .better { animation: fx-rise 0.24s var(--ease-out) 1.1s both; }
@media (prefers-reduced-motion: reduce) { .reveal.fx-in, .reveal.fx-in *, .result-head.fx-in * { animation: none !important; } .fx-sparks { display: none; } }

/* a personal best, stamped above the score */
.result-head .pb-badge { display: inline-block; align-self: center; margin: 10px auto 2px; padding: 6px 9px 4px; background: #F2C14E; color: #1A1020;
  font: 400 11px/1 var(--tiny); letter-spacing: 0.12em; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45); transform: rotate(-2deg); animation: pb-pop 0.4s steps(4) 0.6s both; }
@keyframes pb-pop { from { transform: scale(0.4) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(-2deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .result-head .pb-badge { animation: none; } }

/* Type: the game's name, its big buttons, headings and tier names stay in the pixel display face (Pixelify Sans);
   every small label uses the plain text font (--tiny). Silkscreen is retired. */
.brand b, .wordmark, .btn, .call-label, .tier-name, .h3 { font-family: var(--pix); }

/* Streamer mode (assets/stream.js): zoom the play column; the HUD a little less */
html.stream .col { zoom: var(--kgz, 1); }
html.stream .hud { zoom: min(1.4, var(--kgz, 1)); }
html.stream #ui { padding-top: calc(64px * min(1.4, var(--kgz, 1)) + var(--safe-top, 0px)); padding-bottom: calc(20px + 9vh + var(--safe-bot, 0px)); }
#kg-join { position: fixed; left: 16px; bottom: 16px; z-index: 60; pointer-events: none; padding: .35em .6em; font: 700 calc(18px * var(--kgz, 1))/1.1 var(--tiny, 'Helvetica Neue', Helvetica, Arial, sans-serif); letter-spacing: .06em; background: var(--deep, #140b2b); color: var(--text, #f4ecff); border: 2px solid var(--accent, #ffd23f); }
#kg-join b { color: var(--accent-hi, #ffe680); }
html[data-banner="top"] #kg-join { top: calc(64px * min(1.4, var(--kgz, 1)) + 12px); bottom: auto; }
html[data-banner="off"] #kg-join { display: none; }
#kg-stream-bar { position: fixed; right: 12px; bottom: 12px; z-index: 61; display: flex; gap: 6px; align-items: center; padding: 6px 8px; background: rgba(10, 6, 24, .86); color: #f4ecff; font: 500 13px/1 var(--tiny, 'Helvetica Neue', Helvetica, Arial, sans-serif); }
#kg-stream-bar span { opacity: .75; margin-right: 2px; }
#kg-stream-bar button { font: inherit; color: inherit; background: transparent; border: 1px solid rgba(244, 236, 255, .5); padding: 5px 8px; cursor: pointer; }
@media (max-width: 899px) { #kg-join { font-size: 14px; } #kg-stream-bar { display: none; } }
html.stream .col.lobby { zoom: min(1.25, var(--kgz, 1)); }
