*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
/* Sky High. One column of cloud-white cards over a drifting daytime sky; a sky view on top that runs
   from the grass to space; and a full-screen flight that follows each answer up. */
:root {
  color-scheme: light;
  --sky-top: #4aaaf0;
  --sky-mid: #8dd0fb;
  --sky-low: #e2f4ff;
  --card: rgba(255, 255, 255, 0.9);
  --card-edge: rgba(255, 255, 255, 0.75);
  --line: rgba(21, 48, 77, 0.1);
  --line-strong: rgba(21, 48, 77, 0.18);
  --ink: #12304f;
  --dim: #4a6683;
  --faint: #8197ad;
  --sun: #ffc83d;
  --sun-deep: #e8a817;
  --sun-ink: #3a2900;
  --blue: #2a72de;
  --blue-soft: #e7f2fe;
  --coral: #ff5d6c;
  --coral-ink: #b3222f;
  --coral-soft: #ffe6e8;
  --t-ground: #9a7b58;
  --t-trees: #2f8a49;
  --t-cloud: #1a88b0;
  --t-jet: #2163d6;
  --t-strato: #7445e0;
  --t-space: #0f1748;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --r-sm: 12px; --r-md: 18px; --r-lg: 28px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -12px rgba(18, 62, 112, 0.28), 0 4px 12px rgba(18, 62, 112, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html, body { min-height: 100%; }
body {
  background:
    radial-gradient(55vmax 55vmax at 90% -10%, rgba(255, 238, 178, 0.95) 0%, rgba(255, 238, 178, 0.35) 24%, rgba(255, 238, 178, 0) 48%) fixed,
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%) fixed,
    var(--sky-mid);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.app { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; padding-block: 16px 48px; display: flex; flex-direction: column; gap: 14px; }
button { -webkit-tap-highlight-color: transparent; }
svg { flex: none; }

/* header */
header.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--ink); background: var(--card); border: 1px solid var(--card-edge); border-radius: 999px; padding: 5px 16px 5px 10px; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(18, 62, 112, 0.35); }
.brand b { color: var(--blue); font-weight: 700; }
.brand-mark { width: 26px; height: 26px; color: var(--coral); }
.bar-right { display: flex; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--card-edge); background: var(--card); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px -8px rgba(18, 62, 112, 0.35); transition: transform 0.15s var(--ease-out), background 0.15s; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: #fff; transform: translateY(-1px); }
.icon-btn[aria-pressed="false"] { color: var(--faint); }

/* sky view */
.skyview { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #8dd0fb; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
.skyview canvas { display: block; width: 100%; height: 230px; }
.skyview::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55); pointer-events: none; }
.skyview-cap { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.skyview-cap span { background: rgba(255, 255, 255, 0.9); color: var(--ink); border-radius: 999px; padding: 3px 11px; font-family: var(--display); font-weight: 600; font-size: 0.8rem; box-shadow: 0 2px 8px rgba(18, 62, 112, 0.12); }
.skyview-cap span:empty { display: none; }

/* cards */
.card { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r-lg); padding: 24px 22px; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; animation: card-in 0.4s var(--ease-out); }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 4px 12px; }
h1.title { font-family: var(--display); font-weight: 700; font-size: clamp(3.2rem, 15vw, 4.8rem); line-height: 0.92; letter-spacing: -0.02em; margin: -4px 0 0; }
h1.title em { font-style: normal; background: linear-gradient(180deg, #3d8af0, #1f5fcf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 0; color: var(--dim); max-width: 48ch; font-size: 1.02rem; }
.lede strong { color: var(--ink); }
h2.sec { font-family: var(--display); font-weight: 700; font-size: 2rem; margin: 0; line-height: 1.1; letter-spacing: -0.01em; }
.fineprint { font-size: 0.82rem; color: var(--faint); margin: 0; }

/* buttons */
.btn { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.005em; border-radius: 999px; padding: 12px 22px; cursor: pointer; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); transition: transform 0.12s var(--ease-out), box-shadow 0.15s, background 0.15s, border-color 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { border-color: rgba(21, 48, 77, 0.32); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #ffd45e, var(--sun)); border-color: transparent; color: var(--sun-ink); box-shadow: 0 4px 0 var(--sun-deep), 0 10px 20px -8px rgba(232, 168, 23, 0.6); }
.btn.primary:hover { background: linear-gradient(180deg, #ffdc78, #ffcf52); }
.btn.primary:active { box-shadow: 0 1px 0 var(--sun-deep); transform: translateY(3px); }
.btn.big { font-size: 1.2rem; padding: 16px 24px; }
.btn:focus-visible, .icon-btn:focus-visible, .brand:focus-visible, input:focus-visible, .row-btn:focus-visible, .mode:focus-visible, .pack-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 auto; }

/* home */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats:empty { display: none; }
.stats div { background: var(--blue-soft); border-radius: var(--r-md); padding: 10px 12px; font-size: 0.8rem; color: var(--dim); line-height: 1.25; }
.stats b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: inherit; transition: transform 0.15s var(--ease-out), border-color 0.15s, box-shadow 0.15s; }
.mode:hover { transform: translateY(-2px); border-color: rgba(42, 114, 222, 0.35); box-shadow: 0 10px 20px -12px rgba(18, 62, 112, 0.35); }
.mode-ico { width: 26px; height: 26px; color: var(--blue); margin-bottom: 6px; }
.mode b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.mode small { color: var(--dim); font-size: 0.8rem; line-height: 1.3; }
@media (max-width: 480px) { .modes { grid-template-columns: 1fr; } .mode { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; } .mode-ico { margin: 0; } .mode small { flex-basis: 100%; padding-left: 38px; margin-top: -4px; } }

/* round */
.round-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.round-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.round-label { font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--blue); }
.round-pack { font-size: 0.82rem; color: var(--faint); }
.pips { display: flex; gap: 6px; }
.pips:empty { display: none; }
.pip { width: 26px; height: 6px; border-radius: 3px; background: rgba(21, 48, 77, 0.12); transition: background 0.3s; }
.pip.now { background: var(--blue); animation: pip 1.6s ease-in-out infinite; }
.pip.ground { background: var(--t-ground); } .pip.trees { background: var(--t-trees); } .pip.cloud { background: var(--t-cloud); }
.pip.jet { background: var(--t-jet); } .pip.strato { background: var(--t-strato); } .pip.space { background: linear-gradient(90deg, var(--t-space), #4152b8); }
@keyframes pip { 50% { opacity: 0.45; } }
.timer { position: relative; width: 64px; height: 64px; flex: none; }
.timer svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 5.5; }
.timer .track { stroke: rgba(42, 114, 222, 0.12); }
.timer .arc { stroke: var(--blue); stroke-linecap: round; transition: stroke 0.3s; }
.timer.low .arc { stroke: var(--coral); }
.timer.low { animation: tick 1s ease-in-out infinite; }
@keyframes tick { 50% { transform: scale(1.06); } }
.timer span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.timer.low span { color: var(--coral-ink); }
.prompt { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 7.5vw, 2.7rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
form.answer { position: relative; display: flex; }
form.answer input { flex: 1; min-width: 0; font: inherit; font-size: 1.2rem; padding: 16px 132px 16px 22px; border-radius: 999px; border: 2px solid var(--line-strong); background: #fff; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
form.answer input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 5px rgba(42, 114, 222, 0.15); }
form.answer input::placeholder { color: var(--faint); }
.btn.launch { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 18px; }
.btn.launch svg { width: 20px; height: 20px; }
form.answer input.nope { border-color: var(--coral); animation: nudge 0.35s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.retry-msg { margin: -6px 0 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--coral-soft); color: var(--coral-ink); animation: card-in 0.25s var(--ease-out); }
.retry-msg b { color: var(--ink); font-family: var(--display); font-weight: 600; }
.suggest-btn { font: inherit; font-family: var(--display); font-weight: 600; color: #fff; background: var(--blue); border: 0; border-radius: 999px; padding: 2px 12px; margin: 0 2px; cursor: pointer; }
.suggest-btn:hover { background: #1f5fcf; }
.judging { display: flex; align-items: center; gap: 12px; color: var(--dim); min-height: 56px; }
.spinner { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 3px solid rgba(42, 114, 222, 0.2); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* lives */
.lives { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: var(--r-md); background: var(--coral-soft); }
.lives-row { display: flex; gap: 6px; }
.lives-label { font-family: var(--display); font-weight: 600; color: var(--coral-ink); font-size: 1.05rem; }
.life { display: block; width: 28px; height: 46px; color: var(--coral); transform-origin: 50% 30%; }
.life svg { width: 100%; height: 100%; display: block; overflow: visible; }
.life .bb { transform-origin: 12px 13px; transform-box: view-box; }
.life:not(.gone):not(.popping) { animation: bob 2.4s ease-in-out infinite; }
.life:nth-child(2) { animation-delay: -0.8s !important; }
.life:nth-child(3) { animation-delay: -1.6s !important; }
.life.gone .bb { opacity: 0; }
.life.gone .str { opacity: 0.25; }
.life.popping .bb { animation: popit 0.4s ease-out forwards; }
.life.popping .str { animation: dropstr 0.6s ease-in forwards; }
.lives.last { background: #ffd4d8; }
.lives.last .life:not(.gone):not(.popping) { animation: wobble 0.9s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes wobble { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes popit { 40% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes dropstr { to { opacity: 0.25; transform: translateY(6px); } }
.life-msg { margin: 0; padding: 10px 14px; border-radius: var(--r-sm); background: var(--coral-soft); color: var(--coral-ink); font-weight: 700; }
.life-msg b { font-family: var(--display); font-size: 1.15rem; margin-right: 4px; }

/* the result */
.reveal { display: flex; flex-direction: column; gap: 14px; animation: card-in 0.35s var(--ease-out); }
.reveal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tier { font-family: var(--display); font-weight: 600; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px; color: #fff; opacity: 0; transform: scale(0.6); }
.tier.on { opacity: 1; transform: none; transition: opacity 0.3s, transform 0.5s var(--ease-spring); }
.tier.ground { background: var(--t-ground); }
.tier.trees { background: var(--t-trees); }
.tier.cloud { background: var(--t-cloud); }
.tier.jet { background: var(--t-jet); }
.tier.strato { background: linear-gradient(100deg, #5b33c9, #8a5cf0); box-shadow: 0 0 18px rgba(138, 92, 240, 0.45); }
.tier.space { color: #ffd75e; background: linear-gradient(100deg, #0d1440, #2a3488 45%, #0d1440 60%); background-size: 200% 100%; box-shadow: 0 0 24px rgba(255, 200, 61, 0.5); }
.tier.space.on { animation: shimmer 2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pts { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 4px 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.verdict .ans { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.05; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.verdict.miss .ans { color: var(--coral-ink); }
.verdict.trees .ans { color: var(--t-trees); } .verdict.cloud .ans { color: var(--t-cloud); } .verdict.jet .ans { color: var(--t-jet); }
.verdict.strato .ans { color: var(--t-strato); } .verdict.space .ans { color: var(--t-space); }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-track { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #cfe9d3 0 20%, #cfeaf5 20% 40%, #d3e1fa 40% 60%, #e2d8fb 60% 80%, #d5d8ea 80%); }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--t-trees) 0, var(--t-cloud) 25%, var(--t-jet) 50%, var(--t-strato) 75%, var(--t-space) 100%); background-size: 600px 100%; transition: width 1s var(--ease-out); }
.meter-dot { position: absolute; top: 50%; left: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); box-shadow: 0 2px 8px rgba(18, 62, 112, 0.3); transition: left 1s var(--ease-out); }
.meter-labels { display: grid; grid-template-columns: repeat(5, 1fr); font-size: 0.72rem; color: var(--faint); text-align: center; }
.meta { font-size: 0.95rem; color: var(--dim); margin: 0; }
.note { margin: 0; color: var(--faint); font-style: italic; font-size: 0.9rem; }
.common { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.common-label { font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--faint); margin-right: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: #f1f5f9; color: var(--dim); border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; }
.chips span b { color: var(--ink); font-weight: 700; margin-right: 4px; }
.card.shake { animation: shake 0.5s; }
@keyframes shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, -1px); } 80% { transform: translate(2px, 1px); } }

/* summary */
.sky-name { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; margin: -4px 0 0; overflow-wrap: anywhere; background: linear-gradient(180deg, #3d8af0, #1f5fcf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score { display: flex; align-items: baseline; gap: 8px; }
.score-num { font-family: var(--display); font-weight: 600; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.score-of { color: var(--dim); }
.best-line { margin: -6px 0 0; color: var(--dim); }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.log .dot { width: 12px; height: 12px; border-radius: 50%; grid-row: span 2; }
.log .q { font-size: 0.82rem; color: var(--faint); }
.log .a { font-weight: 700; overflow-wrap: anywhere; }
.log .a.miss { color: var(--coral-ink); font-weight: 400; }
.log .p { grid-row: span 2; text-align: right; font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.log .p small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.75rem; color: var(--faint); }
.sharebox { width: 100%; font: inherit; font-size: 0.92rem; line-height: 1.55; background: var(--blue-soft); color: var(--ink); border: 0; border-radius: var(--r-md); padding: 12px 14px; resize: none; }

/* lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.row-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform 0.15s var(--ease-out), border-color 0.15s; }
.row-btn:hover { transform: translateY(-1px); border-color: rgba(42, 114, 222, 0.35); }
.row-btn .r-main { display: flex; flex-direction: column; min-width: 0; font-family: var(--display); font-weight: 600; }
.row-btn .r-main small { font-family: var(--body); font-weight: 400; color: var(--dim); font-size: 0.82rem; }
.row-btn .r-side { font-size: 0.9rem; color: var(--blue); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-btn .r-side.todo { color: #fff; background: var(--blue); border-radius: 999px; padding: 3px 12px; font-family: var(--display); font-weight: 600; }
.pack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pack-card { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; cursor: pointer; transition: transform 0.15s var(--ease-out), border-color 0.15s, box-shadow 0.15s; }
.pack-card:hover { transform: translateY(-2px); border-color: rgba(42, 114, 222, 0.35); box-shadow: 0 10px 20px -12px rgba(18, 62, 112, 0.35); }
.pack-card b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.pack-card small { color: var(--dim); font-size: 0.82rem; line-height: 1.35; }
.pack-card .pk-foot { margin-top: 6px; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--faint); }
.pack-card .pk-foot span:last-child { color: var(--blue); font-weight: 700; }
@media (max-width: 420px) { .pack-grid { grid-template-columns: 1fr; } }

/* how to */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--dim); }
.steps li b { color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-family: var(--display); font-weight: 700; display: grid; place-items: center; }
.scale { display: flex; flex-direction: column; gap: 8px; }
.scale-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--t-trees), var(--t-cloud), var(--t-jet), var(--t-strato), var(--t-space)); }
.scale-stops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: 0.75rem; color: var(--dim); text-align: center; line-height: 1.3; }
.scale-stops b { display: block; font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--ink); }

/* the flight */
.flight { position: fixed; inset: 0; z-index: 4; cursor: pointer; opacity: 0; transition: opacity 0.35s ease; }
.flight.on { opacity: 1; }
.flight canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flight-hud { position: absolute; inset: 0; pointer-events: none; }
.alt { position: absolute; left: max(20px, env(safe-area-inset-left)); top: max(20px, env(safe-area-inset-top)); display: flex; flex-direction: column; color: #fff; text-shadow: 0 2px 14px rgba(8, 28, 60, 0.45); }
.alt-num { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.alt-zone { font-family: var(--display); font-weight: 600; font-size: 1rem; opacity: 0.9; margin-top: 4px; }
.gauge { position: absolute; right: max(20px, env(safe-area-inset-right)); top: 18%; bottom: 18%; width: 10px; }
.gauge-track { position: absolute; inset: 0; border-radius: 5px; background: linear-gradient(0deg, #6cc66a 0 4%, #8fd0ff 4% 30%, #3f86e0 30% 55%, #4b3fb8 55% 82%, #0b1036 82%); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 6px 20px rgba(8, 28, 60, 0.3); }
.gauge-dot { position: absolute; left: 50%; bottom: 0; width: 22px; height: 22px; margin: 0 0 -11px -11px; border-radius: 50%; background: #fff; border: 4px solid var(--coral); box-shadow: 0 2px 10px rgba(8, 28, 60, 0.45); }
.flight-title { position: absolute; left: 0; right: 0; top: 64%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 24px; text-align: center; color: #fff; pointer-events: none; }
.ft-tier { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 12vw, 5.6rem); line-height: 0.95; letter-spacing: -0.02em; text-shadow: 0 4px 30px rgba(8, 28, 60, 0.5); animation: title-in 0.7s var(--ease-spring) both; }
.ft-ans { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 4.5vw, 1.6rem); color: var(--ink); background: #fff; border-radius: 999px; padding: 6px 20px; box-shadow: 0 10px 30px rgba(8, 28, 60, 0.3); animation: title-in 0.6s 0.12s var(--ease-spring) both; overflow-wrap: anywhere; max-width: 90vw; }
.ft-sub { font-size: 1.05rem; font-weight: 700; text-shadow: 0 2px 12px rgba(8, 28, 60, 0.55); animation: title-in 0.6s 0.22s var(--ease-out) both; }
.flight-title.space .ft-tier { background: linear-gradient(180deg, #fff6d0, #ffc83d); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 24px rgba(255, 200, 61, 0.6)); }
.flight-title.ground .ft-tier { color: #fff; }
@keyframes title-in { from { opacity: 0; transform: translateY(16px) scale(0.92); } to { opacity: 1; transform: none; } }
.flight-skip { position: absolute; left: 0; right: 0; bottom: max(22px, env(safe-area-inset-bottom)); text-align: center; color: rgba(255, 255, 255, 0.85); font-family: var(--display); font-weight: 600; font-size: 0.9rem; text-shadow: 0 2px 10px rgba(8, 28, 60, 0.5); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .card, .reveal, .tier.on, .tier.space.on, .card.shake, .spinner, form.answer input.nope, .life, .life .bb, .life .str, .pip.now, .timer.low, .retry-msg, .ft-tier, .ft-ans, .ft-sub { animation: none !important; }
  .life.popping .bb { opacity: 0; }
  .btn, .mode, .row-btn, .pack-card, .meter-fill, .meter-dot, .flight { transition: none; }
}
