:root {
  --ink: #f4efe4;
  --muted: #c5bdd8;
  --dim: #8b83a8;
  --bg: #0b0720;
  --line: rgba(244, 239, 228, 0.14);
  --orange: #ff6b2d;
  --gold: #ffb24a;
  --cyan: #7ee0d0;
  --ok: #7cff9e;
  --danger: #ff6b7b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Avenir Next", "Segoe UI", "Trebuchet MS", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --climb: 0;
  --kick: 0;
  --radius: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Sky ---- */
.sky {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  --sky-top: color-mix(in srgb, #07051a calc(var(--climb) * 100%), #6ec5ff);
  --sky-mid: color-mix(in srgb, #140e3a calc(var(--climb) * 100%), #b9d9ff);
  --sky-bot: color-mix(in srgb, #1a1048 calc(var(--climb) * 100%), #f2c48a);
}
.sky-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--sky-bot) 0%, var(--sky-mid) 42%, var(--sky-top) 100%);
  transition: background 0.6s linear;
}
.sky.streaking .stars-a { animation: streak-a 0.35s linear infinite; }
.sky.streaking .stars-b { animation: streak-b 0.22s linear infinite; }
@keyframes streak-a { from { transform: translateY(-20%); } to { transform: translateY(20%); } }
@keyframes streak-b { from { transform: translateY(-35%); } to { transform: translateY(35%); } }

.ground {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 22%;
  z-index: 2;
  background:
    radial-gradient(120% 80% at 50% 100%, #2a1a10 0%, #1a120c 60%, transparent 61%),
    linear-gradient(#3a2414, #1a0e08);
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  transform: translateY(calc((var(--climb) + var(--kick)) * 140%));
  opacity: calc(1 - (var(--climb) + var(--kick)) * 1.4);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.5s ease;
}
.pad { display: none; }
.clouds { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.cloud {
  position: absolute; background: #fff; border-radius: 40px; filter: blur(0.5px);
  transform: translateY(calc((var(--climb) + var(--kick)) * -80vh));
  transition: transform 0.7s ease, opacity 0.5s ease;
  opacity: calc(0.9 - (var(--climb) + var(--kick)) * 1.2);
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.c1 { width: 140px; height: 34px; left: 8%; bottom: 28%; }
.c1::before { width: 54px; height: 54px; left: 22px; top: -30px; }
.c1::after { width: 70px; height: 70px; left: 58px; top: -40px; }
.c2 { width: 180px; height: 38px; right: 4%; bottom: 36%; }
.c2::before { width: 70px; height: 70px; left: 30px; top: -36px; }
.c2::after { width: 90px; height: 80px; left: 80px; top: -46px; }
.c3 { width: 110px; height: 28px; left: 6%; bottom: 52%; }
.c3::before { width: 44px; height: 44px; left: 16px; top: -24px; }
.c3::after { width: 56px; height: 50px; left: 44px; top: -28px; }

.stars {
  position: absolute; inset: 0;
  opacity: calc((var(--climb) - 0.22) * 2);
  transition: opacity 0.6s ease;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 60%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 50% 10%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 20% 50%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 44%, #ffd8a0 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 90%, #fff 50%, transparent 51%);
}
body.is-home .stars { opacity: 0.55; }
.stars-b {
  background-image:
    radial-gradient(1px 1px at 15% 35%, #c8fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 40% 15%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 55%, #ffb24a 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 40%, #fff 50%, transparent 51%);
  animation: twinkle 3.6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .9; } }
body:not(.is-home) .stars-b { animation: none; opacity: calc((var(--climb) - 0.22) * 2.2); }

.earth {
  position: absolute; left: 50%; bottom: -40%; width: 160%; height: 70%;
  transform: translateX(-50%) translateY(calc((0.55 - var(--climb) - var(--kick)) * 80%));
  opacity: calc((var(--climb) + var(--kick) - 0.45) * 3);
  background: radial-gradient(ellipse at 50% 0%, #3d7dff 0%, #163a8a 38%, transparent 62%);
  pointer-events: none;
}
.moon {
  position: absolute; right: 12%; top: 10%; width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #e8e0c8 45%, #b9b09a 80%);
  box-shadow: 0 0 40px rgba(255, 240, 200, 0.35);
  opacity: calc((var(--climb) + var(--kick) - 0.7) * 4);
  transform: translateY(calc((0.85 - var(--climb)) * 40px));
}
.sat {
  position: absolute; width: 10px; height: 4px; background: #ddd;
  opacity: calc((var(--climb) - 0.55) * 4);
  box-shadow: 8px 0 0 #aaa, -8px 0 0 #aaa;
}
.sat-a { top: 22%; left: 18%; transform: rotate(-20deg); animation: drift 22s linear infinite; }
.sat-b { top: 36%; right: 22%; transform: rotate(15deg); animation: drift 28s linear infinite reverse; }
@keyframes drift { to { translate: 30px -18px; } }

.rocket-stage {
  position: absolute; left: 50%; bottom: 12%;
  transform: translateX(-50%) translateY(calc((var(--climb) * -14vh) + (var(--kick) * -28vh)));
  transition: transform 0.45s cubic-bezier(.15,.8,.2,1);
  z-index: 4;
}
/* In-game: one consistent baseline so the rocket stays at its climbed height
   through the result card and the next round (launch uses --climb/--kick, not a bottom snap).
   bottom is high enough that the flame clears the console on phones and 1280×800. */
body:not(.is-home):not(.is-how) .rocket-stage { bottom: 58%; }
body.is-launching .rocket-stage { bottom: 58%; }
.stage-pad {
  display: none;
  position: absolute; left: 50%; bottom: 8px;
  width: 130px; height: 20px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 35%, #d7c4a3, #9a8060 60%, #5a4630 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e89a3a, 0 4px 0 #3a2818, 0 0 18px rgba(255, 107, 45, 0.3);
}
body.is-home .stage-pad { display: block; }
.rocket { width: 80px; height: 160px; transform-origin: 50% 80%; }
.rocket.parked { animation: none; }
.rocket.idle { animation: bob 2.4s ease-in-out infinite; }
.rocket.ignite, .rocket.blast { animation: rumble 0.1s linear infinite; }
.rocket.fizzle { animation: sputter 0.45s ease-in; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes rumble {
  0%,100% { transform: translate(0,0) rotate(0); }
  25% { transform: translate(-1.5px, 2px) rotate(-1deg); }
  75% { transform: translate(1.5px, -1px) rotate(1deg); }
}
@keyframes sputter {
  0%,40% { transform: translateY(-6px) rotate(-2deg); }
  70% { transform: translateY(2px) rotate(2deg); }
  100% { transform: translateY(0); }
}
.flame-glow, .flame-outer, .flame-inner { transform-box: fill-box; transform-origin: 50% 0%; }
.flame-glow { fill: rgba(255, 107, 45, 0); }
.rocket.parked .flame-outer, .rocket.parked .flame-inner { fill: transparent; }
.rocket.idle .flame-outer, .rocket.ignite .flame-outer, .rocket.blast .flame-outer { fill: #ff6b2d; animation: flicker 0.16s infinite alternate; }
.rocket.idle .flame-inner, .rocket.ignite .flame-inner, .rocket.blast .flame-inner { fill: #ffd36a; animation: flicker 0.12s infinite alternate-reverse; }
.rocket.idle .flame-glow { fill: rgba(255, 107, 45, 0.18); }
.rocket.ignite .flame-glow, .rocket.blast .flame-glow {
  fill: rgba(255, 160, 40, 0.55);
  animation: glowpulse 0.18s infinite alternate;
}
.rocket.blast .flame-outer { rx: 14; ry: 28; }
.rocket.fizzle .flame-outer { fill: #8a6a4a; animation: none; }
.rocket.fizzle .flame-inner { fill: #c9a06a; animation: none; }
@keyframes flicker { from { transform: scaleY(0.8) translateY(3px); opacity: .75; } to { transform: scaleY(1.25); opacity: 1; } }
@keyframes glowpulse { from { opacity: .4; transform: scale(0.9); } to { opacity: 1; transform: scale(1.25); } }

.steam { position: absolute; left: 50%; bottom: 18px; width: 80px; height: 80px; transform: translateX(-50%); pointer-events: none; }
.steam span {
  position: absolute; bottom: 0; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,0.45); filter: blur(5px);
  animation: vent 2.6s ease-out infinite;
  opacity: 0;
}
.steam span:nth-child(1) { left: 8px; animation-delay: 0s; }
.steam span:nth-child(2) { left: 34px; animation-delay: .8s; }
.steam span:nth-child(3) { left: 56px; animation-delay: 1.5s; }
body.is-home .steam span { opacity: 1; }
@keyframes vent {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  20% { opacity: .55; }
  100% { transform: translateY(-70px) scale(1.6); opacity: 0; }
}

.fx, .flash, .boom-ring, .countdown, .alt-hero { pointer-events: none; }
.fx { position: fixed; inset: 0; z-index: 6; }
.flash {
  position: fixed; inset: 0; z-index: 7;
  background: #fff; opacity: 0;
}
.flash.pop { animation: flashbang 0.45s ease-out; }
@keyframes flashbang { 0% { opacity: .85; } 100% { opacity: 0; } }
.boom-ring {
  position: fixed; left: 50%; top: 52%; z-index: 7;
  width: 20px; height: 20px; margin: -10px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.85); opacity: 0;
}
.boom-ring.pop { animation: boom 0.7s cubic-bezier(.1,.7,.2,1); }
@keyframes boom {
  0% { transform: scale(0.2); opacity: .9; }
  100% { transform: scale(28); opacity: 0; }
}
.countdown {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  font-weight: 800; font-size: clamp(5rem, 22vw, 9rem);
  letter-spacing: -0.06em;
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 107, 45, 0.7), 0 8px 24px rgba(0,0,0,0.5);
}
.countdown.pop { animation: countpop 0.22s cubic-bezier(.2,1.5,.3,1); }
@keyframes countpop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.alt-hero {
  position: fixed;
  top: calc(var(--safe-top) + 52px);
  right: 14px;
  left: auto;
  z-index: 18;
  text-align: right;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
  /* Parked at the top-right so it never covers the centered rocket. */
}
.alt-hero span { font-size: clamp(1.8rem, 7vw, 3.2rem); letter-spacing: -0.04em; }
.alt-hero small { display: block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }

body.shake-1 { animation: sh1 0.35s linear; }
body.shake-2 { animation: sh2 0.45s linear; }
body.shake-3 { animation: sh3 0.55s linear; }
body.shake-4 { animation: sh4 0.65s linear; }
body.shake-6 { animation: sh6 0.9s linear; }
@keyframes sh1 { 25% { transform: translate(-2px, 1px); } 75% { transform: translate(2px, -1px); } }
@keyframes sh2 { 20% { transform: translate(-3px, 2px); } 40% { transform: translate(3px, -2px); } 60% { transform: translate(-2px, 2px); } 80% { transform: translate(2px, -1px); } }
@keyframes sh3 { 15% { transform: translate(-5px, 3px); } 35% { transform: translate(5px, -3px); } 55% { transform: translate(-4px, 2px); } 75% { transform: translate(4px, -2px); } }
@keyframes sh4 { 10% { transform: translate(-7px, 4px) rotate(-0.4deg); } 30% { transform: translate(7px, -4px) rotate(0.4deg); } 50% { transform: translate(-5px, 3px); } 70% { transform: translate(6px, -2px); } 90% { transform: translate(-3px, 2px); } }
@keyframes sh6 { 8% { transform: translate(-10px, 6px) rotate(-0.7deg); } 20% { transform: translate(10px, -5px) rotate(0.6deg); } 36% { transform: translate(-8px, 5px); } 52% { transform: translate(9px, -4px); } 68% { transform: translate(-6px, 4px); } 84% { transform: translate(5px, -3px); } }

/* ---- App chrome ---- */
.app {
  position: relative; z-index: 8;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: calc(12px + var(--safe-top)) 16px calc(10px + var(--safe-bot));
  max-width: 480px; margin: 0 auto;
}
.topbar { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.brand { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gold);
  background:
    radial-gradient(circle at 50% 50%, transparent 55%, var(--gold) 56%, var(--gold) 66%, transparent 67%),
    linear-gradient(#ff6b2d, #ffb24a);
  box-shadow: 0 0 10px rgba(255, 178, 74, 0.5);
}
.brand-name {
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.92rem;
  text-shadow: 0 1px 8px rgba(11, 7, 32, 0.55);
}
.streak-chip, .combo-chip {
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line);
}
.combo-chip {
  margin-left: auto;
  background: linear-gradient(90deg, #5b2dff, #ff6b2d);
  border: 0; color: #fff; letter-spacing: 0.08em; text-transform: uppercase;
  animation: pop 0.35s cubic-bezier(.2,1.4,.3,1);
}
.combo-chip + .streak-chip, .streak-chip { margin-left: 0; }
.combo-chip:first-of-type, #combo-chip.hidden + .streak-chip { margin-left: auto; }
@keyframes pop { from { transform: scale(0.7); opacity: 0; } }
.mute-btn {
  margin-left: auto;
  appearance: none; border: 1px solid var(--line);
  background: rgba(10, 8, 28, 0.55); color: var(--ink);
  font: inherit; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
  white-space: nowrap;
}
.mute-btn[aria-pressed="true"] { color: var(--dim); }
.combo-chip:not(.hidden) ~ .mute-btn, .streak-chip:not(.hidden) ~ .mute-btn { margin-left: 0; }
.error-banner {
  background: #4a1020; color: #ffd0d6; border: 1px solid #ff6b7b;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font-size: 0.88rem;
}

.screen { display: none; flex: 1; flex-direction: column; }
.screen.active { display: flex; animation: fadein 0.3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }

/* ---- Home ---- */
.home-hero { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; text-align: center; padding-top: 6vh; }
.eyebrow {
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.72rem; margin: 0 0 8px;
  color: #6b2400; font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 0 10px rgba(255,255,255,0.45);
}
.wordmark {
  font-size: clamp(3.2rem, 16vw, 4.6rem);
  line-height: 0.9; margin: 0; letter-spacing: -0.04em; font-weight: 800;
  background: linear-gradient(180deg, #fff 20%, #ffb24a 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2px #2a1640;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 0 #2a1640) drop-shadow(0 8px 24px rgba(255, 107, 45, 0.45));
}
.tagline {
  font-size: 1.15rem; color: #3a2a14; margin: 16px 0 0; line-height: 1.35; font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.home-actions { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 6; }
body.is-home .rocket-stage { bottom: 34%; }
body.is-how .rocket-stage { opacity: 0.35; }

/* ---- Buttons ---- */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 800;
  border-radius: 16px; padding: 16px 18px; width: 100%;
  color: var(--ink); background: transparent;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn-primary {
  background: linear-gradient(180deg, #ff8a4a, #ff6b2d);
  color: #2a1006;
  box-shadow: 0 8px 0 #b83f12, 0 16px 28px rgba(255, 107, 45, 0.28);
}
.btn-primary:active { box-shadow: 0 4px 0 #b83f12, 0 8px 16px rgba(255, 107, 45, 0.28); }
.btn-ghost { background: rgba(255,255,255,0.08); border: 1px solid var(--line); }
.btn-text { background: transparent; color: var(--muted); font-weight: 600; padding: 10px; }
.btn-kicker { display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; margin-bottom: 2px; }
.btn:focus-visible, .brand:focus-visible, #answer-input:focus-visible, .mute-btn:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 3px;
}

.card {
  background: #16122f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}
.how-card { margin: auto 0; position: relative; z-index: 7; }
.how-card h2 { margin: 0 0 12px; font-size: 1.4rem; }
.how-list { margin: 0 0 20px; padding-left: 1.15rem; color: var(--muted); line-height: 1.45; }
.how-list li { margin: 0 0 8px; }
.how-list strong, .how-list em { color: var(--ink); font-style: normal; }

/* ---- Play console ---- */
#screen-play { justify-content: flex-end; gap: 0; }
.console {
  width: 100%;
  background: linear-gradient(180deg, rgba(22, 18, 48, 0.96), rgba(10, 8, 28, 0.98));
  border: 1px solid rgba(126, 224, 208, 0.28);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 14px 14px calc(14px + var(--safe-bot));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 178, 74, 0.08), inset 0 1px 0 rgba(255,255,255,0.06);
  margin: 0 -16px calc(-10px - var(--safe-bot));
  width: calc(100% + 32px);
}
body.is-launching .console { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.gauges { display: flex; gap: 8px; margin-bottom: 12px; }
.gauge {
  flex: 1;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(126, 224, 208, 0.16);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 0;
}
.gauge-label, .fuel-label, .gauge-sub {
  display: block; letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 0.58rem; color: var(--cyan); font-weight: 700;
}
.gauge-value { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.15; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.gauge-sub { color: var(--dim); margin-top: 2px; letter-spacing: 0.1em; }
.gauge-combo { background: linear-gradient(180deg, rgba(91,45,255,0.35), rgba(255,107,45,0.2)); border-color: rgba(255,178,74,0.35); }
.gauge-combo .gauge-value { color: var(--gold); }

.prompt-text {
  margin: 0 0 12px; text-align: center;
  font-size: clamp(1.25rem, 5.4vw, 1.7rem);
  font-weight: 800; line-height: 1.25;
  text-wrap: balance; color: #fff;
}
.fuel { margin-bottom: 10px; }
.fuel-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
#timer-num { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1rem; color: var(--cyan); }
.fuel-track {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}
.fuel-bar {
  height: 100%; width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1ec8a0, var(--cyan));
  transform-origin: left center;
  transition: background 0.2s ease;
}
.fuel.warn #timer-num { color: var(--gold); }
.fuel.warn .fuel-bar { background: linear-gradient(90deg, #e8941a, var(--gold)); }
.fuel.hot #timer-num { color: var(--danger); }
.fuel.hot .fuel-bar { background: linear-gradient(90deg, #c41e3a, var(--danger)); }
.fuel.hot { animation: fuelpulse 0.6s ease-in-out infinite; }
@keyframes fuelpulse { 50% { filter: brightness(1.25); } }

.answer-form { display: flex; flex-direction: column; gap: 8px; }
#answer-input {
  width: 100%; border: 1px solid rgba(126, 224, 208, 0.25);
  background: rgba(8, 6, 24, 0.85);
  color: var(--ink);
  font: inherit; font-size: 16px; /* prevent iOS zoom */
  border-radius: 14px; padding: 15px 16px;
  outline: none;
}
#answer-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(126, 224, 208, 0.28), 0 0 24px rgba(126, 224, 208, 0.2);
}
.retry-msg { margin: 0; color: var(--gold); font-size: 0.9rem; text-align: center; animation: shake-x 0.35s ease; }
@keyframes shake-x { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.btn-launch {
  min-height: 56px;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  padding: 16px 18px;
}

/* ---- Result / final ---- */
.result-card, .final-card { margin: auto 0; text-align: center; animation: rise 0.4s cubic-bezier(.2,1.2,.3,1); }
@keyframes rise { from { transform: translateY(24px) scale(0.96); opacity: 0; } }
.result-tier {
  margin: 0; font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em;
  animation: tierin 0.5s cubic-bezier(.2,1.5,.3,1);
}
@keyframes tierin { 0% { transform: scale(0.6) rotate(-4deg); opacity: 0; } 70% { transform: scale(1.08); } }
.result-tier[data-tier="Obvious"] { color: #d7b48a; }
.result-tier[data-tier="Solid"] { color: #7CFF9E; }
.result-tier[data-tier="Sharp"] { color: #7ec8ff; }
.result-tier[data-tier="Oddball"] { color: #c9a6ff; }
.result-tier[data-tier="Unheard Of"] {
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 178, 74, 0.7);
}
.result-points { margin: 4px 0 0; font-size: 1.15rem; font-weight: 700; }
.result-combo {
  display: inline-block; margin: 10px 0 0; padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(90deg, #5b2dff, #ff6b2d);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.result-quip { margin: 12px 0 0; color: var(--muted); font-style: italic; }
.result-vs { margin: 8px 0 14px; font-weight: 700; }
.result-vs.win { color: var(--ok); }
.result-vs.tie { color: var(--gold); }
.result-vs.lose { color: var(--muted); }

.mc-box {
  margin: 0 0 18px; text-align: left;
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--ok);
  border-radius: 0 12px 12px 0;
  padding: 10px 12px 12px;
  font-family: var(--mono);
}
.mc-box header {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ok); margin-bottom: 6px; display: flex; justify-content: space-between;
}
.mc-live { color: var(--danger); letter-spacing: 0.12em; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.mc-answer { margin: 0; font-size: 0.95rem; color: var(--ink); }
.mc-quip { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; min-height: 1.2em; }
.mc-quip.typing::after { content: "▍"; color: var(--ok); animation: blink 0.8s steps(2) infinite; }

.final-alt { margin: 4px 0 0; font-size: 2.4rem; letter-spacing: -0.03em; }
.final-layer { margin: 0 0 16px; color: var(--cyan); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; }
.final-grid { display: flex; justify-content: center; gap: 8px; font-size: 1.6rem; margin-bottom: 10px; }
.final-vs, .final-streak { margin: 0 0 6px; color: var(--muted); }
.final-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.share-toast { margin: 10px 0 0; color: var(--ok); font-weight: 700; }
.lb { margin: 14px 0 4px; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
.lb-label, .lb-title { display: block; margin: 0 0 8px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.lb-total { color: var(--dim); letter-spacing: 0.04em; text-transform: none; font-weight: 600; }
.lb-row { display: flex; gap: 8px; }
#lb-name { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: rgba(255,255,255,0.06); border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; }
#lb-name:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(126,224,208,0.18); }
.lb-row .lb-post { width: auto; flex: 0 0 auto; padding: 10px 20px; min-height: 0; }
#lb-name { min-height: 48px; }
.lb-msg { margin: 8px 0 0; font-size: 0.9rem; color: var(--danger); }
.lb-msg.ok { color: var(--cyan); }
.lb-form { margin-bottom: 14px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lb-list li { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,0.04); font-variant-numeric: tabular-nums; }
.lb-place { text-align: center; color: var(--dim); font-weight: 800; }
.lb-nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.lb-score { color: var(--muted); font-family: var(--mono); font-size: 0.9rem; }
.lb-list li.lb-p1 { background: linear-gradient(90deg, rgba(255,178,74,0.22), rgba(255,178,74,0.04)); }
.lb-list li.lb-me { outline: 2px solid var(--cyan); background: rgba(126,224,208,0.12); animation: lb-pop 0.6s cubic-bezier(.2,1.6,.4,1); }
.lb-list li.lb-you, .lb-list li.lb-empty { display: block; text-align: center; color: var(--muted); }
@keyframes lb-pop { from { transform: scale(0.9); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .lb-list li.lb-me { animation: none; } }

/* ---- Desktop: cinematic, console centered over the scene ---- */
@media (min-width: 900px) {
  .app {
    max-width: 640px;
    padding: 28px 24px 32px;
  }
  body.is-home .rocket-stage { bottom: 38%; transform: translateX(-50%) scale(1.35) translateY(calc((var(--climb) * -14vh) + (var(--kick) * -28vh))); }
  body:not(.is-home):not(.is-how) .rocket-stage,
  body.is-launching .rocket-stage {
    bottom: 58%;
    transform: translateX(-50%) scale(1.25) translateY(calc((var(--climb) * -18vh) + (var(--kick) * -24vh)));
  }
  .alt-hero { top: 72px; right: 32px; }
  .alt-hero span { font-size: 3.2rem; }
  body.is-how .rocket-stage { opacity: 0.4; bottom: 18%; transform: translateX(-50%) scale(1.2); }
  .eyebrow { color: #6b2400; }
  body.is-home .tagline { color: #3a2a14; }
  .wordmark { font-size: 5rem; }
  .home-hero { padding-top: 4vh; }
  .home-actions { max-width: 420px; margin: 0 auto; width: 100%; }
  .btn:hover { filter: brightness(1.05); }
  .btn-ghost:hover { background: rgba(255,255,255,0.14); }
  .btn-text:hover { color: var(--ink); }

  .how-card, .result-card, .final-card { max-width: 520px; margin-left: auto; margin-right: auto; }

  .console {
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    border-radius: 22px;
    border-bottom: 1px solid rgba(126, 224, 208, 0.28);
    padding: 20px 22px 20px;
  }
  .prompt-text { font-size: 1.85rem; }
  #answer-input { font-size: 1.15rem; padding: 16px 18px; }
  .btn-launch { min-height: 60px; font-size: 1.25rem; }
  .gauge-value { font-size: 1.35rem; }
  .result-tier { font-size: 2.1rem; }
  .final-alt { font-size: 3rem; }
}
@media (min-width: 1400px) {
  .wordmark { font-size: 5.4rem; }
  body.is-home .rocket-stage { transform: translateX(-50%) scale(1.55) translateY(calc((var(--climb) * -14vh) + (var(--kick) * -28vh))); }
  body:not(.is-home):not(.is-how) .rocket-stage {
    transform: translateX(-50%) scale(1.55) translateY(calc((var(--climb) * -18vh) + (var(--kick) * -32vh)));
  }
}
@media (min-width: 1800px) {
  html { font-size: 19px; }
  .app { max-width: 720px; }
  .console { max-width: 680px; }
  body.is-home .rocket-stage { transform: translateX(-50%) scale(1.75) translateY(calc((var(--climb) * -14vh) + (var(--kick) * -28vh))); }
  body:not(.is-home):not(.is-how) .rocket-stage {
    transform: translateX(-50%) scale(1.75) translateY(calc((var(--climb) * -18vh) + (var(--kick) * -32vh)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .stars-b, .steam span, .rocket, .sat, .mc-live, .fuel.hot, .flash, .boom-ring, .countdown, .sky.streaking .stars-a, .sky.streaking .stars-b {
    animation: none !important;
  }
  body[class*="shake-"] { animation: none !important; }
}

/* eyebrow on dark cards: crisp gold, no glow */
.card .eyebrow { color: var(--gold); text-shadow: none; }

/* ---- Altitude zones, parallax and ruler ---- */
.stars { inset: -25% 0; }
.stars-a { translate: 0 calc(var(--climb) * 6vh); }
.stars-b { translate: 0 calc(var(--climb) * 14vh); }
.stars-c {
  opacity: calc((var(--climb) - 0.35) * 2.4);
  translate: 0 calc(var(--climb) * 26vh);
  background-size: 180px 180px;
  background-image:
    radial-gradient(0.8px 0.8px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 48% 66%, #dfe8ff 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 82% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 88%, #c8fff6 50%, transparent 51%),
    radial-gradient(0.8px 0.8px at 66% 8%, #fff 50%, transparent 51%);
  transition: opacity 0.6s ease, translate 0.6s ease;
}
.stars-a, .stars-b { transition: opacity 0.6s ease, translate 0.6s ease; }
body.is-home .stars-c { opacity: 0.3; }
.zone-tint, .nebula { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease, background 1.2s ease; }
.sky[data-layer="atmosphere"] .zone-tint { opacity: 1; background: linear-gradient(to top, rgba(255,170,90,0.18), transparent 55%); }
.sky[data-layer="stratosphere"] .zone-tint { opacity: 1; background: linear-gradient(to top, rgba(110,80,200,0.22), transparent 70%); }
.sky[data-layer="orbit"] .zone-tint { opacity: 1; background: linear-gradient(to bottom, rgba(0,0,10,0.35), transparent 60%); }
.sky[data-layer="moon"] .zone-tint { opacity: 1; background: linear-gradient(to bottom, rgba(10,12,22,0.55), rgba(150,160,185,0.16)); }
.sky[data-layer="asteroid-belt"] .zone-tint { opacity: 1; background: radial-gradient(120% 70% at 70% 30%, rgba(150,95,45,0.28), rgba(8,6,10,0.6) 70%); }
.sky[data-layer="deep-space"] .zone-tint { opacity: 1; background: rgba(2,1,8,0.72); }
.sky[data-layer="deep-space"] .nebula {
  opacity: 0.85;
  background:
    radial-gradient(40% 30% at 22% 30%, rgba(170,70,255,0.35), transparent 70%),
    radial-gradient(35% 28% at 78% 62%, rgba(40,210,200,0.25), transparent 70%),
    radial-gradient(25% 20% at 60% 18%, rgba(255,90,150,0.2), transparent 70%);
  filter: blur(8px);
  animation: nebula 24s ease-in-out infinite alternate;
}
@keyframes nebula { to { transform: scale(1.12) rotate(4deg); } }
.moon { transition: width 1.2s ease, height 1.2s ease, top 1.2s ease, right 1.2s ease, opacity 1s ease; }
.sky[data-layer="moon"] .moon { width: 200px; height: 200px; right: 6%; top: 6%; opacity: 1;
  background: radial-gradient(circle at 32% 30%, #fff 0%, #ddd8cc 40%, #a9a39a 75%, #7d786f 100%),
    radial-gradient(circle at 60% 60%, rgba(0,0,0,0.12) 10%, transparent 11%); box-shadow: 0 0 70px rgba(230,235,255,0.35); }
.sky[data-layer="asteroid-belt"] .moon { width: 40px; height: 40px; top: 8%; opacity: 0.6; }
.sky[data-layer="deep-space"] .moon { width: 14px; height: 14px; opacity: 0.35; }
.sky[data-layer="moon"] .earth, .sky[data-layer="asteroid-belt"] .earth, .sky[data-layer="deep-space"] .earth { opacity: 0; transition: opacity 1s ease; }
.belt { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.sky[data-layer="asteroid-belt"] .belt { opacity: 1; }
.sky[data-layer="deep-space"] .belt { opacity: 0.25; }
.rock {
  position: absolute; width: 26px; height: 20px;
  background: radial-gradient(circle at 35% 30%, #b08a68, #6b4f3a 60%, #3a2a20);
  border-radius: 46% 54% 38% 62% / 55% 40% 60% 45%;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.3);
  animation: rockfly 18s linear infinite;
}
.r1 { top: 14%; left: 8%; } .r2 { top: 30%; left: 80%; width: 44px; height: 34px; animation-duration: 26s; }
.r3 { top: 55%; left: 14%; width: 16px; height: 12px; animation-duration: 12s; } .r4 { top: 8%; left: 60%; width: 34px; height: 26px; animation-duration: 22s; animation-direction: reverse; }
.r5 { top: 68%; left: 72%; width: 20px; height: 16px; animation-duration: 15s; } .r6 { top: 42%; left: 40%; width: 12px; height: 10px; animation-duration: 10s; animation-direction: reverse; }
@keyframes rockfly { 0% { translate: -40px -30px; rotate: 0deg; } 100% { translate: 60px 70px; rotate: 360deg; } }

.ruler { position: fixed; left: 14px; top: 96px; bottom: 140px; width: 8px; z-index: 3; pointer-events: none; transition: opacity 0.4s ease; }
body.is-home .ruler, body.is-how .ruler { opacity: 0; }
.ruler-track { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(to top, rgba(242,196,138,0.5), rgba(110,197,255,0.5) 28%, rgba(140,110,255,0.5) 57%, rgba(255,255,255,0.25)); }
.ruler-tick { position: absolute; left: 0; width: 14px; height: 2px; background: rgba(255,255,255,0.6); font-size: 0; color: transparent; }
.ruler-marker { position: absolute; left: -6px; bottom: 0; width: 20px; height: 20px; transform: translateY(50%); transition: bottom 0.6s cubic-bezier(.2,.8,.2,1); }
.ruler-marker::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,45,0.3), 0 0 14px var(--orange); }
.ruler-marker span { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 800 0.72rem var(--mono); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
@media (min-width: 900px) {
  .ruler { left: 28px; }
  .ruler-tick { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.75); line-height: 0; text-indent: 22px; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
}
.zone-toast { position: fixed; left: 50%; top: 16%; z-index: 30; transform: translateX(-50%); text-align: center; pointer-events: none; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.zone-toast small { display: block; font: 700 0.72rem var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.zone-toast strong { display: block; font-size: clamp(1.8rem, 7vw, 3rem); font-weight: 800; letter-spacing: -0.02em; color: var(--gold); -webkit-text-stroke: 1px #2a1640; paint-order: stroke fill; }
.zone-toast.pop { animation: zonepop 2.2s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes zonepop { 0% { opacity: 0; transform: translateX(-50%) scale(0.6); } 15% { opacity: 1; transform: translateX(-50%) scale(1.06); } 25% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
  .rock, .sky[data-layer="deep-space"] .nebula { animation: none !important; }
  .zone-toast.pop { animation: zonefade 2.2s ease both; }
  @keyframes zonefade { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
}
@media (max-width: 899px) {
  .ruler { top: 84px; bottom: auto; height: 34vh; left: 10px; width: 6px; }
  .ruler-marker span { display: none; }
  .sky[data-layer="moon"] .moon { width: 120px; height: 120px; right: 4%; top: 12%; }
}

/* ---- wallet, hangar shop, rewards ---- */
.wallet-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px;
  appearance: none; font: inherit; font-size: 0.74rem; font-weight: 800; color: var(--ink);
  padding: 4px 4px 4px 10px; border-radius: 999px; cursor: pointer;
  background: rgba(10, 8, 28, 0.55); border: 1px solid rgba(255, 209, 102, 0.45);
}
.wallet-chip #wallet-level { background: linear-gradient(90deg, #5b2dff, #8a5bff); color: #fff; border-radius: 999px; padding: 2px 8px; }
.wallet-chip:hover { border-color: #ffd166; }
@media (max-width: 420px) { .wallet-chip { font-size: 0.68rem; padding-left: 8px; } .brand-name { font-size: 0.8rem; } }
.shop-card { display: flex; flex-direction: column; gap: 14px; }
.shop-head { display: flex; align-items: center; gap: 14px; }
.shop-level { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.shop-level small, .shop-hint { color: var(--dim); font-size: 0.8rem; margin: 0; }
.xp-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.xp-fill { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #5b2dff, #7ee0d0); transition: width 0.6s cubic-bezier(.2,.9,.3,1); }
.shop-coins { font-weight: 900; font-size: 1.25rem; color: #ffd166; white-space: nowrap; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 560px) { .shop-grid { grid-template-columns: repeat(2, 1fr); } }
.skin {
  appearance: none; font: inherit; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px 10px; border-radius: 14px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.skin:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.35); }
.skin svg { width: 40px; height: 60px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35)); transition: transform 0.3s; }
.skin:hover svg { transform: translateY(-4px) rotate(-4deg); }
.skin strong { font-size: 0.82rem; }
.skin-tag { font-size: 0.72rem; font-weight: 800; color: #ffd166; }
.skin.on { border-color: #7ee0d0; background: rgba(126,224,208,0.12); box-shadow: 0 0 0 2px rgba(126,224,208,0.25) inset; }
.skin.on .skin-tag { color: #7ee0d0; }
.skin.locked svg { filter: grayscale(1) brightness(0.55); }
.skin.locked .skin-tag, .skin.poor .skin-tag { color: var(--dim); }
.skin.nope { animation: nope 0.35s; }
@keyframes nope { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.final-rewards { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 4px 0 10px; }
.final-rewards .rw { font-weight: 900; font-size: 0.95rem; padding: 5px 12px; border-radius: 999px; animation: pop 0.45s cubic-bezier(.2,1.4,.3,1) both; }
.rw-coins { background: rgba(255,209,102,0.15); color: #ffd166; }
.rw-xp { background: rgba(126,224,208,0.14); color: #7ee0d0; animation-delay: 0.12s !important; }
.rw-up { background: linear-gradient(90deg, #5b2dff, #ff6b2d); color: #fff; animation-delay: 0.25s !important; }
.rw-unlock { flex-basis: 100%; text-align: center; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .final-rewards .rw, .skin.nope { animation: none; } .skin svg, .xp-fill { transition: none; } }

/* ==== Design polish (Bloop, h): tokens, icons, chips, spacing ==== */
:root { --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --chip-h: 30px; --violet: #6a3cff; }
.coin {
  display: inline-block; width: 1.05em; height: 1.05em; margin-right: 0.3em; vertical-align: -0.17em; flex: 0 0 auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='9.5' fill='%23b8741a'/%3E%3Ccircle cx='10' cy='9.3' r='8.6' fill='%23ffcf5a'/%3E%3Ccircle cx='10' cy='9.3' r='6.2' fill='none' stroke='%23e6a52e' stroke-width='1.4'/%3E%3Cpath d='M10 5.6l1.1 2.3 2.5.3-1.8 1.7.5 2.5L10 11.2l-2.3 1.2.5-2.5-1.8-1.7 2.5-.3z' fill='%23fff3c4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-hangar::before {
  content: ""; display: inline-block; width: 1.1em; height: 1.1em; margin-right: 0.45em; vertical-align: -0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5c2.6 2.4 3.6 5.6 3.4 9.6L10 13.6l-3.4-2.5C6.4 7.1 7.4 3.9 10 1.5z' fill='%23f4efe4'/%3E%3Ccircle cx='10' cy='7.2' r='1.6' fill='%237ee0d0'/%3E%3Cpath d='M6.6 10.6 4.5 14.5l3-1.2M13.4 10.6l2.1 3.9-3-1.2' fill='%23ff6b2d'/%3E%3Cpath d='M8.6 14.4h2.8L10 18.4z' fill='%23ffb24a'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* one chip system for the header */
.wallet-chip, .mute-btn, .streak-chip, .combo-chip {
  height: var(--chip-h); display: inline-flex; align-items: center; box-sizing: border-box;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; border-radius: 999px;
}
.mute-btn, .streak-chip, .combo-chip { padding: 0 var(--s3); }
.wallet-chip { padding: 0 3px 0 var(--s3); gap: var(--s2); letter-spacing: 0.02em; }
.wallet-chip #wallet-coins { display: inline-flex; align-items: center; }
.wallet-chip #wallet-level { height: 22px; display: inline-flex; align-items: center; padding: 0 var(--s2); background: var(--violet); }
.brand-mark { width: 26px; height: 26px; border: 0; border-radius: 7px; box-shadow: 0 2px 8px rgba(0,0,0,0.35); background: url("favicon.svg?v=2") center/cover no-repeat; }
/* consistent vertical rhythm between stacked buttons (primary has an 8px base) */
.home-actions, .final-actions { gap: var(--s3); }
.home-actions .btn-primary, .final-actions .btn-primary { margin-bottom: var(--s1); }
/* rocket never climbs into the header during play */
body:not(.is-home):not(.is-how) .rocket-stage { transform: translateX(-50%) translateY(calc((var(--climb) * -8vh) + (var(--kick) * -16vh))); }
/* ruler: hide on menus, never let the km pill collide with a zone label */
body.is-shop .ruler, body.is-how .ruler { opacity: 0; }
.ruler-tick.near { color: transparent !important; text-shadow: none !important; }
.ruler-marker span { padding: 2px 7px; border-radius: 999px; background: rgba(10, 8, 28, 0.78); text-shadow: none; }
/* results grid: crisp tier tiles instead of emoji */
.tier-dot { display: inline-block; width: 30px; height: 30px; border-radius: 9px; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.3); }
.t-obvious { background: #8a6a4b; }
.t-solid { background: #3bb57a; }
.t-sharp { background: #3f86ff; }
.t-oddball { background: var(--violet); }
.t-unheard-of { background: linear-gradient(135deg, #ffe27a, #ffb24a 55%, #ff8a3d); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), 0 0 12px rgba(255,190,80,0.55); }
.t-miss { background: transparent; border: 2px dashed rgba(255,255,255,0.25); box-shadow: none; box-sizing: border-box; }
.skin-tag { display: inline-flex; align-items: center; }
.shop-coins { display: inline-flex; align-items: center; }
.skin.locked svg { filter: saturate(0.55) brightness(0.8) drop-shadow(0 4px 8px rgba(0,0,0,0.35)); opacity: 0.7; }
.skin.locked { border-style: dashed; }
.shop-hint { line-height: 1.4; }
