:root {
  --forest: #061208;
  --canopy: #0E2A16;
  --lime: #C6FF3A;
  --amber: #FFB020;
  --fog: #1A2A22;
  --text: #F4FFE4;
  --danger: #FF5A3C;
  --black: #000000;
  --glass: rgba(14, 42, 22, 0.94);
  --black-face: "Arial Black", "Arial Bold", Impact, sans-serif;
  --body: "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--forest);
  color: var(--text);
  overflow: hidden;
  font-family: var(--body);
}
button, input { font: inherit; color: inherit; }
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { cursor: default; opacity: 1; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; display: block; }

.phone {
  width: min(100%, 420px);
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--forest);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--forest);
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.screen[hidden] { display: none !important; }
.home, .drive, .splash { padding: 0; }

.wordmark, .screen-title, .cap, .menu, .trap, .daily, .switch, .chip, .textbtn, .q {
  font-family: var(--black-face);
  font-weight: 900;
  text-transform: uppercase;
}
.wordmark {
  margin: 0;
  color: var(--lime);
  font-size: clamp(32px, 10vw, 42px);
  letter-spacing: 0.04em;
  line-height: 0.92;
  transform: scaleX(0.92);
  transform-origin: left center;
}
.screen-title {
  margin: 0 0 0 4px;
  color: var(--lime);
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.cap {
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.cap.text { color: var(--text); }
.cap.amber { color: var(--amber); }
.cap.center { text-align: center; }
.body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
}

.icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  flex: none;
}
.bar {
  display: flex;
  align-items: center;
  min-height: 56px;
  flex: none;
}
.scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.trap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  min-height: 44px;
  flex: none;
  background: var(--lime);
  color: var(--black);
  font-size: 22px;
  letter-spacing: 0.02em;
  clip-path: polygon(8.75% 0, 100% 0, 91.25% 100%, 0 100%);
}
.trap.equip, .trap.run { font-size: 18px; }
.trap.dialog {
  height: 52px;
  margin-top: 16px;
  font-size: 16px;
  clip-path: polygon(6.4% 0, 100% 0, 93.6% 100%, 0 100%);
}
.menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  height: 52px;
  background: var(--canopy);
  color: var(--lime);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--lime);
}
.menu.danger { color: var(--danger); }
.menu.wide { width: 100%; margin-top: 8px; margin-bottom: 8px; flex: none; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 40px;
  margin-top: 4px;
  padding: 4px 16px 6px 18px;
  color: var(--black);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.chip.lime { background: var(--lime); }
.chip.amber { background: var(--amber); }
.textbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  color: var(--lime);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.textbtn.danger { color: var(--danger); }

.scene, .mini {
  --road: #102418;
  --edge: #1C3A24;
  --lane: #C6FF3A;
  --tree: #062010;
  background: #061208;
}
.scene[data-region="1"], .mini[data-region="1"] {
  --road: #0A1410; --edge: #163028; --lane: #F4FFE4; --tree: #04140C; background: #0A1A14;
}
.scene[data-region="2"], .mini[data-region="2"] {
  --road: #2A241C; --edge: #4A3824; --lane: #FFB020; --tree: #3A2A18; background: #2A1C12;
}
.scene[data-region="3"], .mini[data-region="3"] {
  --road: #07140E; --edge: #0E2A16; --lane: #C6FF3A; --tree: #03140C; background: #020403;
}
.scene[data-region="4"], .mini[data-region="4"] {
  --road: #101816; --edge: #1A2A22; --lane: #FFB020; --tree: #0A120E; background: #0A120E;
}
.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.trees {
  position: absolute;
  left: -12%;
  right: -12%;
  top: 14%;
  height: 92px;
  background: var(--tree);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='92' viewBox='0 0 72 92'%3E%3Cpolygon fill='white' points='8,92 28,16 48,92'/%3E%3Cpolygon fill='white' points='36,92 54,34 72,92'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='92' viewBox='0 0 72 92'%3E%3Cpolygon fill='white' points='8,92 28,16 48,92'/%3E%3Cpolygon fill='white' points='36,92 54,34 72,92'/%3E%3C/svg%3E");
  -webkit-mask-size: 72px 92px;
  mask-size: 72px 92px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
}
.windows { display: none; }
[data-region="4"] .windows {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 16%;
  height: 78px;
  background-image: radial-gradient(circle, #FFB020 1.6px, transparent 2px);
  background-size: 22px 18px;
  opacity: 0.9;
}
.road3d {
  position: absolute;
  left: 0;
  right: 0;
  top: 28%;
  height: 62%;
  perspective: 240px;
  overflow: hidden;
}
.plane {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 0;
  height: 190%;
  transform: rotateX(68deg);
  transform-origin: center top;
  background-color: var(--road);
  background-image:
    linear-gradient(90deg, transparent 46.2%, var(--lane) 46.2% 47.15%, transparent 47.15% 52.85%, var(--lane) 52.85% 53.8%, transparent 53.8%),
    linear-gradient(90deg, var(--edge) 0 12%, transparent 12% 88%, var(--edge) 88% 100%);
  background-size: 100% 36px, 100% 100%;
  background-repeat: repeat-y, no-repeat;
  animation: dash 0.55s linear infinite;
}
@keyframes dash { to { background-position: 0 36px, 0 0; } }
.still .plane, .still .flash { animation: none; }
.scene[data-region="1"]::after, .mini[data-region="1"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(102deg, transparent 0 14px, rgba(213, 230, 218, 0.45) 14px 15px);
  pointer-events: none;
}
.car {
  position: absolute;
  left: 50%;
  bottom: calc(268px + env(safe-area-inset-bottom));
  width: 78px;
  height: 96px;
  transform: translateX(-50%);
  background: var(--rig, #D6F58A);
  border-radius: 18px 18px 12px 12px;
  z-index: 1;
}
.car .glass {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 18px;
  height: 34px;
  background: var(--forest);
  border-radius: 8px;
}
.car .lamps::before, .car .lamps::after {
  content: "";
  position: absolute;
  bottom: 12px;
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: var(--lane, var(--lime));
}
.car .lamps::before { left: 8px; }
.car .lamps::after { right: 8px; }
.glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 86%;
  height: 34%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 28%, rgba(198, 255, 58, 0.34), transparent 68%);
}
[data-region="2"] .glow, [data-region="4"] .glow {
  background: radial-gradient(ellipse at 50% 28%, rgba(255, 176, 32, 0.32), transparent 68%);
}
.flash {
  position: absolute;
  inset: 0;
  background: var(--lime);
  opacity: 0;
  pointer-events: none;
  animation: flare 0.7s ease;
}
@keyframes flare {
  0% { opacity: 0; }
  35% { opacity: 0.28; }
  100% { opacity: 0; }
}

.top-cluster {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 0 calc(16px + env(safe-area-inset-left));
}
.brand { flex: 1; min-width: 0; overflow: hidden; }
.brand .cap { margin-top: 4px; }
.brand .cap.amber { margin-top: 2px; }
.bottom-cluster {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 0 calc(16px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.daily {
  margin-top: 10px;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid var(--amber);
  background: rgba(14, 42, 22, 0.8);
  color: var(--amber);
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.menu-row { display: flex; gap: 12px; }
.daily + .menu-row { margin-top: 12px; }
.menu-row + .menu-row { margin-top: 8px; }
.menu-row .menu { flex: 1; }

.scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms linear;
}
.scrim.on { opacity: 1; pointer-events: auto; }
.side {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: rgba(6, 18, 8, 0.941);
  transition: transform 280ms ease;
  pointer-events: none;
}
.side.start {
  left: 0;
  transform: translateX(-100%);
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.side.end {
  right: 0;
  transform: translateX(100%);
  padding: calc(12px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) 16px;
}
.side.open { transform: translateX(0); pointer-events: auto; }
.still .side, .still .scrim { transition: none; }
.side-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--lime);
}
.side.start .side-accent { clip-path: polygon(0 0, 72% 0, 60% 100%, 0 100%); }
.side.end .side-accent { clip-path: polygon(28% 0, 100% 0, 100% 100%, 40% 100%); }
.side .screen-title { margin: 8px 0 0; }
.side .menu { margin-top: 12px; flex: none; }
.side-scroll { flex: 1; min-height: 0; margin-top: 12px; overflow: auto; overscroll-behavior: contain; }
.done-line {
  margin: 8px 0;
  color: var(--lime);
  font-family: var(--black-face);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.regions { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.regions .bar { padding: 0 4px; }
.plate {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  margin: 0 0 8px;
  overflow: hidden;
  text-align: left;
  color: inherit;
}
.mini { position: absolute; inset: 0; overflow: hidden; }
.mini .trees { top: 0; height: 54px; }
.mini .road3d { top: 22%; height: 90%; }
.shade {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 62%;
  background: rgba(6, 18, 8, 0.67);
}
.plate.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.plate-copy {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  right: 16px;
}
.plate-copy b {
  display: block;
  font-family: var(--black-face);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--lime);
  text-transform: uppercase;
}
.plate-copy span {
  display: block;
  margin-top: 6px;
  font-family: var(--black-face);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
}

.stages { padding-bottom: env(safe-area-inset-bottom); }
.blurb { padding: 0 20px 8px; }
.stage-road { position: relative; }
.ribbon {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 92px;
  transform: translateX(-50%);
  background: var(--canopy);
  clip-path: polygon(34.8% 0, 65.2% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #102418;
  clip-path: polygon(41.3% 0, 58.7% 0, 78.3% 100%, 21.7% 100%);
}
.startcap {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-family: var(--black-face);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lime);
  text-transform: uppercase;
}
.spoke {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: rgba(198, 255, 58, 0.7);
  transform: translateY(-1px);
}
.spoke.left { left: 26%; width: 24%; }
.spoke.right { left: 50%; width: 24%; }
.node {
  position: absolute;
  z-index: 2;
  width: 76px;
  transform: translate(-50%, -22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
}
.node.left { left: 26%; }
.node.right { left: 74%; }
.node b {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--black-face);
  font-size: 12px;
  background: var(--fog);
  color: var(--text);
}
.node.done b, .node.open b { color: var(--black); }
.node.done b { background: var(--lime); }
.node.open b { background: var(--amber); }
.dots { display: flex; gap: 5px; margin-top: 8px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--fog); }
.dots i.on { background: var(--lime); }
.node em {
  margin-top: 4px;
  font-style: normal;
  font-family: var(--black-face);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
}

.garage-screen { padding: env(safe-area-inset-top) calc(16px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
.hint { flex: none; }
.pager {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
}
.pager::-webkit-scrollbar { display: none; }
.rig {
  flex: 0 0 100%;
  scroll-snap-align: start;
  overflow: auto;
  padding: 12px 0;
}
.rig-name {
  margin: 0;
  color: var(--lime);
  font-family: var(--black-face);
  font-size: 32px;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  transform: scaleX(0.92);
  transform-origin: left center;
}
.rig .cap { margin-top: 4px; }
.rig .body { margin-top: 10px; }
.rig .lock {
  margin-top: 8px;
  font-family: var(--black-face);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rig .lock.lime { color: var(--lime); }
.rig .lock.amber { color: var(--amber); }
.equip { margin: 8px 0; }
.segs {
  display: flex;
  align-items: center;
  height: 32px;
  gap: 8px;
}
.side-rig .segs { height: 26px; }
.segs b {
  width: 34%;
  flex: none;
  font-family: var(--black-face);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-transform: uppercase;
}
.seg { display: flex; gap: 4px; flex: 1; height: 10px; }
.seg i { flex: 1; background: var(--fog); }
.seg i.on { background: var(--lime); }
.side-rig { margin-bottom: 14px; }
.side-rig .name {
  font-family: var(--black-face);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--lime);
  text-transform: uppercase;
}
.side-rig .role {
  margin-top: 2px;
  font-family: var(--black-face);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-transform: uppercase;
}
.side-rig .menu { margin-top: 8px; height: 44px; }
.side-rig .lock {
  margin-top: 8px;
  font-family: var(--black-face);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side-rig .lock.lime { color: var(--lime); }
.side-rig .lock.amber { color: var(--amber); }
.side-rig button.lock {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  text-align: left;
  background: none;
}

.missions-screen, .badges-screen {
  padding: env(safe-area-inset-top) calc(16px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.count { padding-bottom: 8px; flex: none; }
.mcard, .bcard, .scard {
  background: var(--canopy);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
}
.scard { padding: 12px; margin-bottom: 14px; }
.mcard h3, .bcard h3, .scard h3 {
  margin: 0;
  font-family: var(--black-face);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--lime);
  text-transform: uppercase;
}
.scard h3 { font-size: 15px; }
.mcard .body, .bcard .body { margin-top: 4px; }
.scard .prog {
  margin-top: 4px;
  font-family: var(--body);
  font-size: 13px;
  color: var(--text);
}
.progress {
  margin-top: 8px;
  font-family: var(--black-face);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}
.state {
  margin-top: 4px;
  font-family: var(--black-face);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.state.lime { color: var(--lime); }
.state.amber { color: var(--amber); }
.meter { height: 12px; margin-top: 8px; background: var(--fog); }
.meter.thin { height: 10px; }
.meter > i { display: block; height: 100%; background: var(--lime); }

.records-screen {
  padding: env(safe-area-inset-top) calc(20px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
}
.emblem { width: 72px; height: 72px; margin-top: 8px; display: block; }
.rec-label { margin-top: 16px; }
.rec-label:first-child { margin-top: 16px; }
.rec-num {
  font-family: var(--black-face);
  font-size: 42px;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--lime);
  text-transform: uppercase;
}
.rec-num.amber { color: var(--amber); }
.unit { color: var(--text); }
.fav {
  margin-top: 4px;
  font-family: var(--black-face);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--lime);
  text-transform: uppercase;
  line-height: 1;
}
.fav-m { margin-top: 4px; }
.trap.run { margin-top: 8px; }

.drive { background: var(--forest); }
#road {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  z-index: 0;
}
.hud-top, .hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
}
.hud-top {
  top: 0;
  display: flex;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 8px calc(16px + env(safe-area-inset-left));
  pointer-events: none;
}
.hud-top .icon { pointer-events: auto; }
.hud-col { flex: 1; min-width: 0; }
.hud-score { margin-right: 8px; display: flex; flex-direction: column; align-items: flex-end; }
.hud-bottom {
  bottom: 0;
  padding: 8px calc(16px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.shield-row { display: flex; align-items: center; }
.shield-row .chip { margin-left: 10px; margin-top: 0; }
.nitro {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  margin-top: 8px;
  gap: 8px;
}
.nitro .cap { width: 54px; flex: none; }
.pips { display: flex; gap: 6px; flex: 1; height: 28px; }
.pips i { flex: 1; border-radius: 4px; background: var(--fog); }
.pips i.on { background: var(--amber); }
.boost {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--lime);
  transform-origin: left center;
  transform: scaleX(0);
}

.settings-screen {
  padding: env(safe-area-inset-top) calc(20px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
}
.settings-form { padding-bottom: 24px; }
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.switch input {
  appearance: none;
  width: 52px;
  height: 32px;
  margin: 0;
  border-radius: 16px;
  background: var(--fog);
  position: relative;
  flex: none;
}
.switch input::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  top: 5px;
  left: 5px;
  background: var(--text);
  transition: left 0.15s linear;
}
.switch input:checked { background: var(--lime); }
.switch input:checked::after { left: 25px; background: var(--black); }
.still .switch input::after { transition: none; }
.gap18 { margin-top: 18px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 8px 0 0;
  background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lime) var(--fill, 35%), #3a3f3c var(--fill, 35%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--lime);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #3a3f3c;
}
input[type="range"]::-moz-range-progress { height: 4px; background: var(--lime); }
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
}
.qrow { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.q { flex: 1; height: 44px; }
.q.on {
  height: 52px;
  background: var(--lime);
  color: var(--black);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  z-index: 1;
}
.q.on::before { display: none; }
.stack { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.stack .menu { width: 100%; }

.modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.modal[hidden] { display: none !important; }
.sheet {
  width: min(100%, 92vw);
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  background: var(--glass);
  border: 1px solid rgba(198, 255, 58, 0.533);
  padding: 18px;
}
.slash {
  width: 180px;
  height: 12px;
  background: var(--lime);
  clip-path: polygon(8.75% 0, 100% 0, 91.25% 100%, 0 100%);
}
.slash.short { width: 160px; }
.sheet h2 {
  margin: 14px 0 0;
  font-family: var(--black-face);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lime);
}
.sheet .cap { margin-top: 14px; }
.sheet .score-num {
  margin-top: 4px;
  font-family: var(--black-face);
  font-size: 42px;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--lime);
}
.sheet .body { margin-top: 4px; }
.sheet .token-line { margin-top: 6px; }
.sheet .chip { margin-top: 12px; }
.sheet .objectives { margin-top: 12px; line-height: 1.45; }
.sheet .badge-line { margin-top: 12px; color: var(--amber); }
.sheet .textbtn { margin-top: 6px; }

@media (max-height: 700px) {
  .car { bottom: 42%; width: 64px; height: 78px; }
  .wordmark { font-size: 34px; }
}
