@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 5 is drawn like its S (FL 305 read as FL 30S), so digits come from a
   re-spaced Silkscreen cut: tools/pixel_digits.py. Declared last, so it wins for 0-9. */
@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'); }

/* Climb Corp: corporate pixel noir. Navy glass, steel, brass, one red light at the top. */
:root {
  --navy: #0B1426;
  --navy2: #101B33;
  --steel: #2B3A55;
  --steel2: #3B4A63;
  --glass: #7FD6FF;
  --brass: #C9A227;
  --brass-hi: #F2D16B;
  --brass-lo: #6E5A12;
  --amber: #FFB000;
  --red: #E5484D;
  --li: #0A66C2;
  --paper: #F4F0E6;
  --paper2: #E7E0CF;
  --ink: #141A26;
  --muted: #8FA0B8;
  --ok: #3FCF6E;
  --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);
}

* { box-sizing: border-box; font-variant-ligatures: none !important; }
html, body {
  overflow-wrap: break-word; margin: 0; height: 100%; }
body {
  background: var(--navy);
  color: #E9EEF5;
  font: 16px/1.45 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-variant-ligatures: none;
}
button, input { font: inherit; color: inherit; }
img, canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
canvas { image-rendering: pixelated; }
.px { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; 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; }

#tower { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; }
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.ceil-label {
  position: absolute; left: 0; transform: translateY(-50%);
  font: 400 11px/1 var(--tiny); letter-spacing: 0.02em; white-space: nowrap;
  padding: 3px 6px 2px; border: 2px solid currentColor; background: rgba(11, 20, 38, 0.82);
  transition: opacity 0.2s, transform 0.2s;
}
.ceil-label .px { margin: -4px 5px -3px -2px; }
.ceil-label.passed { opacity: 0.35; text-decoration: line-through; }
.ceil-label.hit { opacity: 1; transform: translateY(-50%) scale(1.12); background: currentColor; }
.ceil-label.hit span { color: var(--navy); }

/* --------------------------------------------------------------- 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(rgba(11, 20, 38, 0.94), rgba(11, 20, 38, 0.78));
  border-bottom: 2px solid var(--brass);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.brand .mark { width: 22px; height: 26px; flex: none; }
.brand b { font: 400 16px/1 var(--tiny); letter-spacing: 0.04em; color: var(--brass-hi); }
.brand small { font: 400 10px/1 var(--tiny); color: var(--muted); display: block; margin-top: 3px; letter-spacing: 0.08em; }
.hud .spacer { flex: 1; }
.floor-dial {
  display: flex; align-items: baseline; gap: 6px; padding: 4px 10px 3px;
  background: #050A14; border: 2px solid var(--steel2); box-shadow: inset 0 0 0 2px #000, inset 0 0 12px rgba(255, 176, 0, 0.15);
  font: 700 22px/1 var(--pix); color: var(--amber); text-shadow: 0 0 8px rgba(255, 176, 0, 0.55); min-width: 92px; justify-content: flex-end;
}
.floor-dial small { font: 400 10px/1 var(--tiny); color: #9a7a2a; text-shadow: none; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  background: var(--steel); border: 2px solid #050A14; color: #fff;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.18), 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); }

/* --------------------------------------------------------------- layers */
#ui {
  position: fixed; left: 0; right: 0; bottom: 0; top: 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;
}
#ui.passthrough { pointer-events: none; }
#ui.passthrough > * { pointer-events: auto; }
.col { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }

/* --------------------------------------------------------------- panels */
.panel {
  background: rgba(16, 27, 51, 0.94);
  border: 2px solid #050A14;
  box-shadow: inset 0 0 0 2px var(--steel), inset 4px 4px 0 rgba(255, 255, 255, 0.05), 0 6px 0 rgba(0, 0, 0, 0.45);
  padding: 18px 18px 16px;
}
.memo {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid #050A14;
  box-shadow: inset 0 0 0 2px #fff, inset -4px -4px 0 var(--paper2), 0 6px 0 rgba(0, 0, 0, 0.5);
  padding: 14px 16px 16px;
}
.memo::before {
  /* binder clip */
  content: ''; position: absolute; top: -8px; left: 50%; width: 46px; height: 12px; margin-left: -23px;
  background: linear-gradient(#9AA3B0, #5D646F); border: 2px solid #050A14;
}
.memo-head {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font: 400 10px/1.3 var(--tiny); letter-spacing: 0.06em; color: #5D646F;
  border-bottom: 2px dashed #C7BFAE; padding-bottom: 8px; margin-bottom: 10px;
}
.memo-head b { color: var(--li); font-weight: 400; }
.prompt-text { font: 700 clamp(22px, 5.6vw, 30px)/1.2 var(--pix); letter-spacing: 0.01em; margin: 2px 0 12px; color: var(--ink); }

.timer {
  height: 14px; border: 2px solid #050A14; background: #1B2436; 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(--glass) 0 10px, #5FB8E6 10px 12px);
  transition: background 0.3s;
}
.timer.warn i { background: repeating-linear-gradient(90deg, var(--amber) 0 10px, #D99200 10px 12px); }
.timer.crit i { background: repeating-linear-gradient(90deg, var(--red) 0 10px, #B3343A 10px 12px); }
.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(--ink); }
.grace { font: 400 11px/1 var(--tiny); letter-spacing: 0.08em; color: var(--li); 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(--ink);
  background: #fff; border: 2px solid #050A14; border-radius: 0;
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.12);
  outline: none;
}
.answer-row input:focus { box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(10, 102, 194, 0.45); }
.answer-row input::placeholder { color: #9AA3B0; font-weight: 500; }
.feedback { min-height: 22px; margin-top: 8px; font: 500 14px/1.3 var(--pix); color: #B3343A; }
.feedback.note { color: #8A5A00; }
/* "did you mean": a sticky note stuck 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 #050A14; box-shadow: 4px 4px 0 rgba(5, 10, 20, 0.22);
  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: #050A14; 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: #0A66C2; }
.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); } }

/* --------------------------------------------------------------- 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: #1A1206; background: linear-gradient(var(--brass-hi), var(--brass));
  border: 2px solid #050A14;
  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(--brass-lo), 0 4px 0 2px #050A14;
  transition: transform 0.05s;
}
.btn:active { transform: translateY(3px); box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 0 var(--brass-lo), 0 1px 0 2px #050A14; }
.btn:focus-visible, .icon-btn:focus-visible, .call:focus-visible { outline: 3px solid var(--glass); outline-offset: 3px; }
.btn.blue { color: #fff; background: linear-gradient(#2B83DA, var(--li)); 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 #050A14; }
.btn.steel { color: #E9EEF5; background: linear-gradient(var(--steel2), var(--steel)); box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.15), inset -3px -3px 0 rgba(0, 0, 0, 0.3), 0 4px 0 #18223A, 0 4px 0 2px #050A14; }
.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; }
.linkish { background: none; border: 0; padding: 0; color: var(--glass); text-decoration: underline; cursor: pointer; font: 500 14px/1.3 var(--pix); }

/* the elevator call button */
.call-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 4px; }
.call {
  width: 104px; height: 104px; border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 35% 30%, #FFF0B8, var(--brass) 45%, #8C7016 75%);
  border: 4px solid #050A14;
  box-shadow: 0 0 0 6px #3B4A63, 0 0 0 8px #050A14, 0 8px 0 8px rgba(0, 0, 0, 0.45);
  display: grid; place-items: center; transition: transform 0.06s;
}
.call:active { transform: translateY(3px) scale(0.98); }
.call .lamp {
  width: 48px; height: 48px; border-radius: 50%; background: #2A1F05; border: 3px solid #050A14;
  display: grid; place-items: center; box-shadow: inset 0 0 10px #000;
}
.call .lamp svg { width: 26px; height: 26px; fill: #FFD25A; filter: drop-shadow(0 0 6px #FFB000); animation: glow 1.6s infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 1px #FFB000); opacity: 0.75; } }
.call-label { font: 400 16px/1 var(--tiny); letter-spacing: 0.08em; color: var(--brass-hi); text-transform: uppercase; text-shadow: 2px 2px 0 #050A14; }

/* --------------------------------------------------------------- lobby */
.logo-block { text-align: center; padding: 6px 0 2px; }
.wordmark { font: 400 clamp(38px, 11vw, 58px)/1 var(--tiny); letter-spacing: 0.02em; color: #fff; text-shadow: 3px 3px 0 var(--li), 6px 6px 0 #050A14; margin: 0; }
.wordmark em { font-style: normal; color: var(--brass-hi); }
.tagline { margin: 10px auto 0; max-width: 34ch; font: 400 15px/1.45 var(--serif); color: #C9D4E3; }
.edition { font: 400 11px/1 var(--tiny); letter-spacing: 0.1em; color: var(--muted); text-align: center; margin-top: 12px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { background: #0A1222; border: 2px solid var(--steel); padding: 8px 6px 7px; text-align: center; }
.mini-stats b { display: block; font: 700 20px/1 var(--pix); color: var(--amber); }
.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: #E9EEF5; background: var(--navy2); border: 2px solid #050A14; padding: 18px;
  box-shadow: inset 0 0 0 2px var(--steel), 0 10px 0 rgba(0, 0, 0, 0.5);
}
dialog.sheet::backdrop { background: rgba(5, 10, 20, 0.7); }
dialog.sheet h2 { font: 700 24px/1.1 var(--pix); margin: 0 0 8px; color: var(--brass-hi); }
dialog.sheet p, dialog.sheet li { font-size: 15px; color: #C9D4E3; }
dialog.sheet ul.rules { padding-left: 18px; margin: 8px 0; }
.fine { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* --------------------------------------------------------------- reveal */
.reveal { text-align: center; }
.reveal .portrait { display: grid; place-items: center; margin: 2px auto 8px; width: 112px; height: 112px; background: #050A14; border: 2px solid var(--c, var(--brass)); box-shadow: 0 0 0 4px #050A14, 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 #050A14; }
.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; }
.gain small { font-size: 16px; color: var(--muted); }
.you-said { margin: 10px 0 0; font: 400 15px/1.35 var(--sans); color: #C9D4E3; }
.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: #E9EEF5; }
.said { margin: 10px auto 0; display: inline-block; padding: 5px 10px 4px; background: #0A1222; border: 2px solid var(--steel); font: 500 13px/1.2 var(--pix); color: var(--glass); }
.could { margin: 12px 0 0; font: 400 13px/1.45 var(--sans); color: var(--muted); }
.could b { color: #E9EEF5; }
.fact {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-bot)); transform: translate(-50%, 12px); z-index: 6;
  max-width: min(440px, calc(100vw - 24px)); padding: 8px 12px 7px;
  background: #050A14; border: 2px solid var(--glass); color: var(--glass);
  font: 500 13px/1.3 var(--pix); text-align: center; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.fact .px { margin-right: 6px; }
.fact.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------- 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(--amber); text-shadow: 0 0 18px rgba(255, 176, 0, 0.45), 3px 3px 0 #050A14; margin: 8px 0 0; }
.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: #C9D4E3; 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(--glass); 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(--steel2); min-height: 3px; position: relative; }
.hist i.me { background: var(--amber); box-shadow: 0 0 10px rgba(255, 176, 0, 0.6); }
.hist-axis { display: flex; justify-content: space-between; font: 400 9px/1 var(--tiny); color: var(--muted); }
.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(--glass); 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: #0A1222; border: 2px solid #050A14; }
.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: #E9EEF5; padding: 3px 7px 2px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); overflow-wrap: anywhere; }
.chip.you { border: 2px solid var(--c); background: #050A14; 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; }
.h3 { font: 400 14px/1.2 var(--tiny); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-hi); margin: 0 0 12px; }
.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: #0A1222; border: 2px solid var(--steel); color: #E9EEF5; 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(--brass); }
.archive button.done span { color: var(--amber); }

#toast {
  position: fixed; left: 50%; bottom: calc(18px + var(--safe-bot)); transform: translate(-50%, 20px); z-index: 9;
  padding: 10px 14px 9px; background: #050A14; border: 2px solid var(--brass); 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(--muted); }
.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.foot { text-align: center; font: 400 12px/1.5 var(--sans); color: #C9D4E3; background: rgba(5, 10, 20, 0.82); border: 2px solid #050A14; padding: 8px 10px; margin: 0; }
.foot a { color: var(--glass); }

/* building directory: an elevator-lobby board docked under the tower on phones */
.dir-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.dir-head .h3 { margin: 0; }
.dir-head .btn { flex: 0 0 auto; }
.dir .panel { padding: 12px; }
.dir-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dir-b {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; cursor: pointer; text-align: left;
  background: #0A1222; border: 2px solid var(--steel); color: #C9D4E3;
}
.dir-b b { font: 700 15px/1 var(--pix); color: var(--amber); min-width: 30px; text-align: right; text-shadow: 0 0 6px rgba(255, 176, 0, 0.35); }
.dir-b span { font: 400 9px/1.25 var(--tiny); letter-spacing: 0.03em; }
.dir-b.tenant span { color: #fff; }
.dir-b.mark { border-color: #3B4A63; background: #0E1830; }
.dir-b.mark span { color: var(--brass-hi); }
.dir-hint { margin: -4px 0 10px; font: 400 12px/1.4 var(--sans); color: var(--muted); }
#ui.dock { pointer-events: none; }
#ui.dock > .col { pointer-events: auto; }
#tower { touch-action: none; }
body:has(#ui.dock) #tower { cursor: grab; }
.dir-b.on { border-color: var(--amber); background: #14203A; }
.dir-b:focus-visible { outline: 3px solid var(--glass); outline-offset: 1px; }
/* "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: 899px) {
  #ui.dock { justify-content: flex-end; }
  .dir-grid { max-height: 34vh; overflow-y: auto; }
}

/* while riding, keep the tower clear: the memo shrinks to the top */
body.riding .play-card { opacity: 0.0; transform: translateY(-12px); pointer-events: none; }
.play-card { transition: opacity 0.25s, transform 0.25s; }

@media (min-width: 900px) {
  #ui { align-items: flex-end; padding-right: max(24px, calc((100vw - 1200px) / 2)); }
  .col { max-width: 440px; }
  #ui.center { align-items: center; padding-right: 12px; }
  #ui.center .col { max-width: 520px; }
}
@media (max-height: 640px) {
  .call { width: 84px; height: 84px; }
  .wordmark { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .call .lamp svg, .blink { animation: none; }
  .shake { animation: none; }
  .feedback.suggest { animation: none; }
}

/* lobby: a plaque at the top, the call button at the bottom, the building in between */
.lobby { min-height: calc(100dvh - 84px - var(--safe-top) - var(--safe-bot)); justify-content: space-between; }
.lobby .plaque { padding: 14px 16px 12px; }
.lobby .gap { flex: 1; min-height: 120px; }
.lobby .tagline { margin-top: 8px; font-size: 14px; }
@media (min-width: 900px) { .lobby .gap { display: none; } .lobby { justify-content: center; } }

/* the other Dailyables games, under the results */
.others-list { display: grid; gap: 8px; }
.other { display: block; padding: 10px 12px; text-decoration: none; color: #E9EEF5; background: #0A1222; border: 2px solid var(--steel); }
.other:hover { border-color: var(--brass); }
.other:focus-visible { outline: 3px solid var(--glass); outline-offset: 3px; }
.other b { display: block; font: 700 16px/1.2 var(--pix); color: var(--brass-hi); }
.other span { font: 400 13px/1.35 var(--sans); color: #C9D4E3; }

/* ===== Launch pass (studio reports, 20 Nov 2026) ===== */
.rules-line { margin: 10px 0 0; font: 400 13px/1.4 var(--sans); color: #C9D4E3; text-align: center; }
.coach { margin: 8px 0 0; font: 400 13px/1.35 var(--sans); color: #5D646F; }

/* a friend's challenge in the lobby */
.challenge { margin: 0 0 14px; padding: 12px; border: 2px dashed var(--brass); 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(--brass-hi); }
.challenge .ch-s { margin: 6px 0 0; font: 400 15px/1.35 var(--sans); color: #E9EEF5; }
.challenge .ch-s b { font-family: var(--pix); font-size: 18px; color: var(--brass-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: #C9D4E3; }

/* 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 64px 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 20px/1 var(--pix); color: var(--brass-hi); }
.h2h-b { display: flex; flex-wrap: wrap; gap: 3px; }
.h2h-b .badge { width: 26px; height: 26px; }
.h2h-v { margin: 2px 0 2px; font: 700 18px/1.3 var(--pix); color: #E9EEF5; }

/* sharing */
.share-panel .share-note { margin: 10px 0 0; font: 400 13px/1.4 var(--sans); color: #C9D4E3; 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(--ink); background: var(--paper); border: 2px solid var(--brass); 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(--brass-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: #E9EEF5; background: rgba(0, 0, 0, 0.45); border: 2px solid var(--brass); }
.nextup.panel .nu-go:hover { border-color: var(--brass-hi); }
.nextup .nu-go img { width: 96px; height: 64px; image-rendering: pixelated; background: #07060F; 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(--brass-hi); }
.nextup.panel .nu-t span { display: block; font: 400 13px/1.35 var(--sans); color: #C9D4E3; }
.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(--brass); 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: #C9D4E3; }
.nextup.panel .nu-more a { color: var(--brass-hi); }
.nextup .nu-streak { margin: 0; display: flex; gap: 8px; align-items: center; font: 400 14px/1.4 var(--sans); color: #E9EEF5; }
.nextup .kg-flame { flex: none; }
.nextup.panel .nu-mile { margin: 0; padding: 8px 10px; border: 2px dashed var(--brass); font: 400 12px/1.4 var(--sans); color: var(--brass-hi); }
.nextup.panel .nu-all { margin: 0; font: 700 17px/1.3 var(--pix); color: var(--brass-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 */
dialog.sheet a { color: var(--glass); }
.answer-row input::placeholder { color: #6B7280; }

/* 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(--navy2); box-shadow: 0 -12px 14px -8px rgba(0, 0, 0, 0.6); }

/* 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); }
