/* AIR READY — visual identity: night test site, Ano White, visor gold, cold-gas cyan, sodium orange */
:root {
  --bg: #070b16;
  --bg2: #0d1428;
  --panel: #121a30;
  --panel2: #18223d;
  --line: #26314f;
  --ink: #eef2f8;
  --muted: #a3aec4;
  --accent: #ff7a1a;
  --accent-ink: #1a0c02;
  --air: #5be3ff;
  --gold: #e8c26a;
  --danger: #ff5a68;
  --ok: #4ade80;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 14px;
  --font-d: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-b: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f3efe7;
  --bg2: #e9e2d5;
  --panel: #ffffff;
  --panel2: #f7f3ec;
  --line: #d8cfbf;
  --ink: #141824;
  --muted: #535b70;
  --accent: #c94d06;
  --accent-ink: #ffffff;
  --air: #08779a;
  --gold: #8f6a12;
  --danger: #c0283a;
  --ok: #15803d;
  --shadow: 0 10px 30px rgba(60, 40, 10, .12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-b);
  min-height: 100vh; overflow-x: hidden;
  background-image: radial-gradient(1200px 500px at 80% -10%, rgba(255, 122, 26, .10), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(91, 227, 255, .07), transparent 60%);
}
[hidden] { display: none !important; }
img, svg, canvas { max-width: 100%; }
a { color: var(--air); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
kbd {
  font: 600 .8em/1 var(--font-d); padding: .2em .45em; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel2); color: var(--ink); box-shadow: 0 2px 0 var(--line);
}
:focus-visible { outline: 3px solid var(--air); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.15rem/1 var(--font-d); letter-spacing: .08em; }
.brand img { width: 32px; height: 32px; }
.brand span b { color: var(--accent); }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font: 600 .95rem/1 var(--font-d); padding: 10px 12px; border-radius: 10px; }
.site-nav a:hover { background: var(--panel2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--panel); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; font-size: 1.05rem; flex: none;
}
.icon-btn:hover { border-color: var(--accent); }
#nav-toggle { display: none; }
@media (max-width: 820px) {
  #nav-toggle { display: inline-grid; margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); cursor: pointer;
  font: 700 1rem/1.1 var(--font-d); letter-spacing: .03em; text-decoration: none; transition: transform .12s, border-color .12s, background .12s;
}
.btn:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(255, 122, 26, .3); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-air { background: transparent; border-color: var(--air); color: var(--air); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero strip */
.hero { padding: 26px 0 14px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: end; }
.eyebrow { font: 700 .8rem/1.2 var(--font-d); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.hero h1 { margin-bottom: .15em; }
.hero h1 .air { color: var(--air); }
.hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 60ch; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip {
  display: inline-flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  min-width: 96px;
}
.chip b { font: 700 1.35rem/1.1 var(--font-d); color: var(--ink); }
.chip span { font-size: .75rem; color: var(--muted); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .chips { justify-content: flex-start; }
  .chip { min-width: 0; flex: 1 1 28%; }
}

/* game stage */
.stage-sec { padding: 6px 0 20px; }
.stage {
  position: relative; width: 100%; height: min(72vh, 640px); min-height: 420px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #070b16; user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
@media (max-width: 600px) {
  .stage-sec .wrap { width: 100%; }
  .stage { border-radius: 0; border-left: 0; border-right: 0; height: min(78vh, 680px); min-height: 460px; }
}
.overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 5;
  background: linear-gradient(180deg, rgba(5, 7, 15, .55), rgba(5, 7, 15, .82)); color: #eef2f8; overflow-y: auto;
}
.overlay .panel {
  width: min(680px, 100%); max-height: 100%; overflow-y: auto; background: rgba(13, 20, 40, .92); border: 1px solid #2a3658;
  border-radius: 18px; padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: pop .25s ease-out;
}
.overlay .panel.wide { width: min(900px, 100%); }
.overlay h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: .2em; }
.overlay p { color: #c3cbe0; }
.overlay .kicker { font: 700 .8rem/1.2 var(--font-d); letter-spacing: .16em; text-transform: uppercase; color: #ff9a4d; margin: 0 0 6px; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.menu-inner { text-align: center; }
.menu-title { font: 700 clamp(2.4rem, 9vw, 4.6rem)/1 var(--font-d); letter-spacing: .06em; margin: 0 0 4px; }
.menu-title b { color: #ff7a1a; }
.menu-sub { margin: 0 auto 18px; max-width: 46ch; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 12px; }
.mode {
  text-align: left; padding: 16px; border-radius: 14px; border: 1px solid #2a3658; background: #141d36; color: #eef2f8; cursor: pointer;
  font: inherit; display: flex; flex-direction: column; gap: 4px; transition: transform .12s, border-color .12s;
}
.mode:hover, .mode:focus-visible { border-color: #ff7a1a; transform: translateY(-2px); }
.mode .m-ico { font-size: 1.6rem; line-height: 1; }
.mode strong { font: 700 1.15rem/1.2 var(--font-d); }
.mode span { font-size: .85rem; color: #a3aec4; }
.mode.feature { background: linear-gradient(160deg, #3a1d0b, #141d36 70%); border-color: #ff7a1a; }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } .mode { flex-direction: row; align-items: center; gap: 12px; } .mode .m-txt { display: flex; flex-direction: column; } }
.challenge {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; border: 1px dashed #5be3ff; background: rgba(91, 227, 255, .08);
  display: flex; gap: 12px; align-items: center; justify-content: space-between; text-align: left; flex-wrap: wrap;
}
.challenge p { margin: 0; color: #eef2f8; }

.act { margin-bottom: 18px; }
.act h3 { margin: 0 0 2px; }
.act-performance h3 { color: #eef2f8; }
.act-thrust h3 { color: #ffb45c; }
.act-rocket h3 { color: #5be3ff; }
.act-blurb { font-size: .9rem; margin-bottom: 8px; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
@media (max-width: 420px) { .overlay { padding: 8px; } .overlay .panel { padding: 16px; } }
.level-btn {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 12px; border: 1px solid #2a3658; background: #141d36; color: #eef2f8; cursor: pointer; font: inherit;
}
.level-btn:hover, .level-btn:focus-visible { border-color: #ff7a1a; }
.level-btn.done { border-color: #3c5a44; }
.lv-num { grid-row: span 2; font: 700 1.5rem/1 var(--font-d); color: #ff9a4d; width: 1.6em; text-align: center; }
.lv-name { font: 600 .92rem/1.2 var(--font-d); }
.lv-stars i { font-style: normal; color: #3a4566; font-size: .9rem; }
.lv-stars i.on { color: #e8c26a; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

.goals { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.goals li { padding: 8px 12px; border-radius: 10px; background: #141d36; border: 1px solid #2a3658; font-size: .95rem; }
.goals li::before { content: "★ "; color: #3a4566; }
.goals li.got::before { color: #e8c26a; }
.ctrl-list { list-style: none; padding: 0; margin: 0 0 14px; font-size: .9rem; color: #c3cbe0; display: grid; gap: 4px; }
.ctrl-list kbd { background: #1d2846; color: #fff; border-color: #34406a; box-shadow: 0 2px 0 #34406a; }

.trim-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; }
@media (max-width: 420px) { .trim-pick { grid-template-columns: 1fr; } }
.hud-top > .hud-box { min-width: 0; }
@media (max-width: 420px) { .hud-name { max-width: 28vw; } .hud-speed { min-width: 0; } .hud-speed .hud-label { display: none; } }
.trim-pick label { cursor: pointer; }
.trim-pick input { position: absolute; opacity: 0; pointer-events: none; }
.trim-pick span { display: block; padding: 12px; border-radius: 12px; border: 1px solid #2a3658; background: #141d36; text-align: center; font: 700 1rem/1.2 var(--font-d); }
.trim-pick small { display: block; font: 400 .75rem/1.3 var(--font-b); color: #a3aec4; margin-top: 4px; }
.trim-pick input:checked + span { border-color: #ff7a1a; background: #2a1a10; }
.trim-pick input:focus-visible + span { outline: 3px solid #5be3ff; }
.seed-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.seed-row input {
  width: 9ch; min-height: 44px; border-radius: 10px; border: 1px solid #2a3658; background: #0b1124; color: #fff; font: 700 1.1rem var(--font-d); padding: 6px 10px;
}

/* result */
.res-stars { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.res-stars li { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: #141d36; font-size: .95rem; color: #8892ab; }
.res-stars li .st { font-size: 1.4rem; color: #3a4566; line-height: 1; }
.res-stars li.on { color: #eef2f8; }
.res-stars li.on .st { color: #e8c26a; animation: starpop .5s ease-out both; }
.res-stars li:nth-child(2).on .st { animation-delay: .15s; }
.res-stars li:nth-child(3).on .st { animation-delay: .3s; }
@keyframes starpop { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.35); } 100% { transform: none; } }
.res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; }
.res-stats div { background: #141d36; border-radius: 10px; padding: 8px 10px; border: 1px solid #2a3658; }
.res-stats dt { font-size: .72rem; color: #a3aec4; text-transform: uppercase; letter-spacing: .06em; }
.res-stats dd { margin: 0; font: 700 1.05rem/1.25 var(--font-d); color: #fff; overflow-wrap: anywhere; }
@media (max-width: 560px) { .res-stats { grid-template-columns: repeat(2, 1fr); } }
#ov-result.fail h2 { color: #ff8a95; }

/* HUD */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; font-family: var(--font-d); color: #fff; }
.hud-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hud-box { background: rgba(5, 8, 18, .62); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 6px 12px; }
.hud-score { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.hud-label { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: #a3aec4; }
.hud-name { font-size: .78rem; color: #ffb45c; max-width: 40vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-right { display: flex; gap: 6px; align-items: flex-start; }
.hud-speed { text-align: right; min-width: 72px; }
.hud-speed b { font-size: 1.6rem; line-height: 1.1; display: block; }
.hud-btns { display: flex; gap: 6px; pointer-events: auto; }
.hud-btns button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(5, 8, 18, .62); color: #fff; cursor: pointer; font-size: 1rem; }
.hud-btns button:hover { border-color: #ff7a1a; }
.hud-trick { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); font-size: 1rem; font-weight: 700; color: #ffd27a; text-shadow: 0 2px 6px #000; white-space: nowrap; }
.hud-air { position: absolute; left: 10px; bottom: 12px; width: min(300px, 46%); }
.air-bar { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); }
.air-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #2bb8d9, #5be3ff); border-radius: 99px; transition: width .1s linear; }
.air-fill.low { background: linear-gradient(90deg, #ff4d5e, #ff9a4d); }
.air-row { display: flex; justify-content: space-between; font-size: .75rem; margin-bottom: 3px; text-shadow: 0 1px 3px #000; }
.hud-prog { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.hud-prog i { display: block; height: 100%; width: 0; background: #ff7a1a; }
.hud-time { font-size: .9rem; color: #c3cbe0; }

/* touch controls */
.touch { position: absolute; left: 0; right: 0; bottom: 0; display: none; justify-content: space-between; padding: 10px; z-index: 4; pointer-events: none; }
.touch .tgrp { display: flex; gap: 10px; align-items: flex-end; pointer-events: auto; }
.tbtn {
  width: 70px; height: 70px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: rgba(10, 14, 28, .55); color: #fff;
  font: 700 .8rem/1.1 var(--font-d); display: grid; place-items: center; touch-action: none; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.tbtn big { font-size: 1.6rem; line-height: 1; display: block; }
.tbtn.down { background: rgba(255, 122, 26, .55); border-color: #ff7a1a; }
.tbtn.lift { border-color: #5be3ff; }
.tbtn.boost { border-color: #ffb45c; }
.touch[data-trim="performance"] .boost, .touch[data-trim="performance"] .lift, .touch[data-trim="thrust"] .lift { display: none; }
@media (hover: none), (pointer: coarse) {
  .stage.playing .touch { display: flex; }
  .stage.playing .hud-air { bottom: 92px; }
}
.touch-hint { display: none; }
@media (hover: none), (pointer: coarse) { .touch-hint { display: block; } .key-hint { display: none; } }

/* sections */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); display: block; transition: transform .15s, border-color .15s;
}
a.card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .ico { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.howto div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.howto h3 { font-size: 1rem; color: var(--accent); }
.howto p { margin: 0; color: var(--muted); font-size: .92rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.fact b { display: block; font: 700 1.7rem/1.1 var(--font-d); color: var(--accent); }
.fact span { font-size: .9rem; color: var(--muted); }
.quote { border-left: 4px solid var(--accent); padding: 6px 0 6px 16px; margin: 18px 0; font: 600 1.15rem/1.4 var(--font-d); }
.quote cite { display: block; font: 400 .85rem var(--font-b); color: var(--muted); margin-top: 4px; font-style: normal; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.page-hero { padding: 34px 0 10px; }
.page-hero .lede { color: var(--muted); font-size: 1.1rem; max-width: 64ch; }
.note { font-size: .85rem; color: var(--muted); border: 1px dashed var(--line); padding: 10px 12px; border-radius: 10px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; transition: .25s; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; pointer-events: none; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* garage */
.garage { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .garage { grid-template-columns: 1fr; } }
.showroom { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #070b16; aspect-ratio: 16 / 10; }
.showroom canvas { width: 100%; height: 100%; display: block; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.seg button { flex: 1 1 auto; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 6px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--line); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--muted); font-weight: 600; width: 42%; }
.spec td { font-family: var(--font-d); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp thead th { font-family: var(--font-d); background: var(--panel2); }
.cmp td.up { color: var(--ok); } .cmp td.down { color: var(--danger); }
.stat-bars { display: grid; gap: 10px; margin: 10px 0 16px; }
.sbar label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.sbar .track { height: 10px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; }
.sbar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .4s; }

/* lab */
.lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .lab-grid { grid-template-columns: 1fr; } }
.ctrl { margin-bottom: 14px; }
.ctrl label { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: .95rem; }
.ctrl output { font-family: var(--font-d); color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 30px; }
.big-out { font: 700 clamp(2.4rem, 8vw, 3.6rem)/1 var(--font-d); color: var(--air); }
.tank { height: 26px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; margin: 10px 0; }
.tank i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #2bb8d9, var(--air)); }
.race { display: grid; gap: 8px; margin: 12px 0; }
.lane { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; font-size: .88rem; }
.lane .road { position: relative; height: 34px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); overflow: hidden; }
.lane .road::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; background: repeating-linear-gradient(0deg, #fff 0 4px, #111 4px 8px); }
.lane .car { position: absolute; left: 0; top: 50%; transform: translate(0, -50%); width: 46px; height: 18px; }
.lane b { font-family: var(--font-d); text-align: right; }
@media (max-width: 520px) { .lane { grid-template-columns: 84px 1fr 52px; font-size: .78rem; } }
.react-pad {
  height: 220px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel2); display: grid; place-items: center; text-align: center;
  cursor: pointer; font: 700 1.4rem/1.3 var(--font-d); padding: 16px; transition: background .1s; color: var(--ink); width: 100%;
}
.react-pad.wait { background: #4a1418; color: #fff; border-color: #ff5a68; }
.react-pad.go { background: #0f5132; color: #fff; border-color: #4ade80; }
.lights { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.lights i { width: 22px; height: 22px; border-radius: 50%; background: #333; display: block; }
.lights i.on { background: #ff3b3b; box-shadow: 0 0 12px #ff3b3b; }
.lights.go i { background: #4ade80; box-shadow: 0 0 12px #4ade80; }

/* timeline + quiz */
.tl { position: relative; margin: 20px 0; padding-left: 28px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--air), var(--accent)); border-radius: 3px; }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item::before { content: ""; position: absolute; left: -25px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl-item.promise::before { border-color: var(--air); }
.tl-item button {
  width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--ink); font: inherit;
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.tl-item button:hover { border-color: var(--accent); }
.tl-date { font: 700 .85rem/1.2 var(--font-d); color: var(--accent); letter-spacing: .06em; }
.tl-title { font: 700 1.05rem/1.3 var(--font-d); display: block; }
.tl-body { padding: 10px 14px 4px; color: var(--muted); }
.tl-tag { font-size: .7rem; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; color: var(--muted); }
.tl-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.tl-filter button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.wait-meter { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 16px 0; }
.wait-meter .bar { height: 14px; border-radius: 99px; background: var(--panel2); overflow: hidden; border: 1px solid var(--line); margin: 8px 0; position: relative; }
.wait-meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--air), var(--accent)); }
.quiz { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.q-top { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin-bottom: 8px; gap: 10px; flex-wrap: wrap; }
.q-text { font: 700 1.3rem/1.35 var(--font-d); margin-bottom: 14px; }
.q-opts { display: grid; gap: 8px; }
.q-opts button { text-align: left; justify-content: flex-start; min-height: 52px; font-family: var(--font-b); font-weight: 600; }
.q-opts button.right { background: color-mix(in srgb, var(--ok) 22%, var(--panel2)); border-color: var(--ok); }
.q-opts button.wrong { background: color-mix(in srgb, var(--danger) 22%, var(--panel2)); border-color: var(--danger); }
.q-explain { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.q-progress { height: 6px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-bottom: 14px; }
.q-progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.q-result { text-align: center; }
.q-result .big-out { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
