:root {
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ts: 1;
  --fs-xs: calc(10.5px * var(--ts));
  --fs-s: calc(12px * var(--ts));
  --fs-m: calc(13.5px * var(--ts));
  --fs-l: calc(15.5px * var(--ts));
  --fs-xl: calc(18px * var(--ts));
  --fs-xxl: calc(24px * var(--ts));
  --fs-hero: calc(30px * var(--ts));
  --fs-num: calc(13px * var(--ts));
  --fs-dist: calc(30px * var(--ts));
  --fs-logo: calc(22px * var(--ts));

  --ink: #fff7ef;
  --ink-2: rgba(255, 247, 239, 0.76);
  --ink-3: rgba(255, 247, 239, 0.5);
  --ink-inv: #ffffff;
  --ink-dark: #2a1a3a;
  --bg-0: #1b1030;
  --card: #2d1f4a;
  --card-2: #221638;
  --card-3: #3a2a5c;
  --card-solid: #33244f;
  --card-hi: #45336d;
  --glass: rgba(24, 12, 44, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.1);
  --veil: rgba(10, 4, 24, 0.62);
  --accent: #ff6b4a;
  --accent-2: #ff9a5c;
  --accent-dark: #c4442c;
  --accent-ink: #ffffff;
  --ok: #34c676;
  --ok-2: #6fe39d;
  --ok-dark: #1f8a50;
  --blue: #4f8dff;
  --blue-2: #7fb0ff;
  --blue-dark: #2c5dc4;
  --violet: #9566ff;
  --violet-2: #b996ff;
  --violet-dark: #6a3ad6;
  --gold: #ffc23d;
  --gold-2: #ffe08a;
  --gold-dark: #c98a12;
  --gold-ink: #4a2d00;
  --warn: #ffb020;
  --danger: #ff4a5c;
  --off: #4a3a6a;
  --dot: #ff3d5f;
  --track: rgba(255, 255, 255, 0.12);
  --vip-a: #3a1f7a;
  --vip-b: #7a3cff;
  --hero-a: #ff9a5c;
  --hero-b: #ff5a8a;
  --prem-a: #4a2d6a;
  --prem-b: #6a2d5a;
  --me-row: #4a3a20;
  --note-color: #ff6b4a;
  --focus: #7fb0ff;

  --i-coin: #ffc23d;
  --i-coin-edge: #c98a0e;
  --i-gem: #4ff0d0;
  --i-gem-edge: #129b84;
  --i-shine: rgba(255, 255, 255, 0.75);
  --i-star: #ffc93c;
  --i-star-edge: #e09b16;
  --i-star-off: #4a3a6a;
  --i-star-off-edge: #5d4a80;
  --i-balloon: #ff5a6e;
  --i-string: #8c90b8;
  --i-cut: #221638;
  --i-fuse: #a8683a;
  --i-spark: #ffc23d;
  --i-cross: #ff4f5e;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 22px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 26px;
  --r-pill: 999px;
  --ctl-h: 36px;
  --ctl-h-s: 28px;
  --ctl-h-l: 46px;
  --play-h: 58px;
  --icon: 18px;
  --icon-s: 14px;
  --icon-l: 26px;
  --tab-h: 60px;
  --hud-h: 56px;
  --rail: 40px;
  --sheet-max: 460px;
  --dialog-max: 360px;
  --shadow-1: 0 2px 10px rgba(5, 0, 20, 0.35);
  --shadow-2: 0 14px 40px rgba(5, 0, 20, 0.55);
  --t-fast: 0.16s;
  --t-mid: 0.28s;
  --t-boot: 0.4s;
  --t-toast: 2.4s;
  --gutter: 12px;
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
  --bump-k: 1.22;
  --press-k: 0.96;
  --hint-y: 40%;
  --preview-w: 96px;
  --preview-h: 64px;
  --look-h: 52px;
  --card-w: 100%;
  --promo-ic: 44px;
  --pip-w: 6px;
  --pip-h: 5px;
  --bar-h: 8px;
  --hud-bar-h: 6px;
  --hud-bar-w: 420px;
  --switch-w: 44px;
  --switch-h: 26px;
  --switch-k: 20px;
  --dot-size: 17px;
  --lvl-size: 34px;
  --xp-w: 56px;
  --badge: 34px;
  --lvl-big: 64px;
  --preview-round: 84px;
  --border-w: 1px;
  --ring-w: 2.5px;

  --m-per-width: 5.6;
  --m-per-height: 10;
  --min-scale: 34;
  --max-scale: 96;
  --bike-x: 0.13;
  --ground: 0.7;
  --menu-zoom: 1.1;
  --menu-bike-x: 0.3;
  --menu-ground: 0.6;
  --menu-gap: 14;
  --menu-tall: 2.7;
  --particle: 0.06;
  --shake-px: 9;
  --fs-float: 20;
  --fs-banner: 30;
  --fs-sub: 15;
  --fs-prompt: 24;
  --fs-post: 11;
  --gauge-w: 4;
  --gauge-dot: 6;
  --gauge-pad: 12;
  --banner-in: 0.3;
  --banner-hold: 1.2;
  --banner-out: 0.4;
  --stroke-k: 0.2;
  --trail-w: 0.12;
  --trail-len: 40;
  --lamp-gap: 9;
  --max-parts: 500;
  --radar-m: 30;
  --radar-h: 34;
  --radar-pad: 14;
  --radar-y: 2.1;
  --radar: rgba(24, 12, 44, 0.72);

  --coin-edge: #c48a12;
  --coin-shine: #fff6cf;
  --gem: #4ff0d0;
  --gem-dark: #129b84;
  --gem-lite: #dcfff7;
  --sweet: #5ff08a;
  --arc: rgba(255, 255, 255, 0.3);
  --bump: #ffcc33;
  --bump-stripe: #2a2130;
  --hole: #120d1c;
  --hole-edge: #4a3f62;
  --ramp: #b98a52;
  --ramp-edge: #f0cf98;
  --ramp-stripe: rgba(40, 20, 10, 0.22);
  --cone: #ff7a1a;
  --cone-stripe: #ffffff;
  --cone-base: #3a2a2a;
  --puddle: rgba(90, 170, 230, 0.6);
  --puddle-hi: rgba(255, 255, 255, 0.65);
  --gust: rgba(255, 255, 255, 0.75);
  --dust: #d2b08e;
  --spark: #ffe66b;
  --splash: rgba(210, 240, 255, 0.9);
  --shadow: rgba(10, 4, 22, 0.4);
  --text-stroke: rgba(30, 10, 42, 0.9);
  --speed-line: rgba(255, 255, 255, 0.22);
  --flag-best: #5ff08a;
  --flag-mile: #ffd34d;
  --flag-finish: #ffffff;
  --flag-check: #1a1522;
  --flag-pole: #221638;
  --skin: #f2c6a0;
  --star: rgba(255, 255, 255, 0.9);
  --deco-a: #ffffff;
  --deco-b: #1a1022;
  --snowcap: #ffffff;
  --water: #2d6fa4;
  --water-hi: rgba(255, 255, 255, 0.35);
  --leaf: #2e9e6a;
  --leaf-2: #2a7a52;
  --trunk: #6a4428;
  --neon-a: #ff3fd0;
  --neon-b: #36f0ff;
  --dot-c: #fffaf2;
}

body.st-sunset,
.st-sunset {
  --sky-a: #241c5c;
  --sky-b: #7d3a8e;
  --sky-c: #ec6a7c;
  --sky-d: #ffb35e;
  --sun: #fff0b8;
  --sun-glow: rgba(255, 220, 150, 0.5);
  --sun-fade: rgba(255, 220, 150, 0);
  --cloud: rgba(255, 214, 224, 0.32);
  --far: #7a3f86;
  --far-2: #8d4a92;
  --near: #4a2a66;
  --near-2: #5b3478;
  --window: rgba(255, 214, 128, 0.85);
  --walk: #5b3c70;
  --walk-line: rgba(255, 255, 255, 0.08);
  --curb: #c8b0cf;
  --road: #2a2140;
  --road-top: #3a2f55;
  --dash: rgba(255, 236, 200, 0.7);
  --lamp: #221638;
  --lamp-light: #fff3c4;
  --lamp-glow: rgba(255, 226, 150, 0.4);
  --lamp-fade: rgba(255, 226, 150, 0);
  --scene: city;
  --deco: clouds;
  --props: lamps;
  --bar: #241c5c;
  --bar-dark: 1;
}

.st-beach {
  --sky-a: #2f7fd6;
  --sky-b: #63b5f0;
  --sky-c: #ffc8a2;
  --sky-d: #ffe1a8;
  --sun: #fff6d0;
  --sun-glow: rgba(255, 240, 190, 0.55);
  --sun-fade: rgba(255, 240, 190, 0);
  --cloud: rgba(255, 255, 255, 0.6);
  --far: #6a9fc0;
  --far-2: #7fb0cc;
  --near: #4a7a8a;
  --near-2: #5a8a9a;
  --window: rgba(255, 240, 200, 0.85);
  --water: #2d8fc4;
  --water-hi: rgba(255, 255, 255, 0.45);
  --leaf: #2e9e6a;
  --trunk: #8a5a3a;
  --walk: #e3c48e;
  --walk-line: rgba(120, 80, 30, 0.14);
  --curb: #f4e2b8;
  --road: #4a4555;
  --road-top: #5d5868;
  --dash: rgba(255, 250, 230, 0.8);
  --lamp: #3b4a5c;
  --lamp-light: #fffbe8;
  --lamp-glow: rgba(255, 250, 220, 0.25);
  --lamp-fade: rgba(255, 250, 220, 0);
  --scene: beach;
  --deco: clouds;
  --props: lamps;
  --bar: #2f7fd6;
  --bar-dark: 1;
}

.st-neon {
  --sky-a: #0b0a2a;
  --sky-b: #22104a;
  --sky-c: #4a1a6b;
  --sky-d: #7a2a7a;
  --sun: #e9e4ff;
  --sun-glow: rgba(200, 180, 255, 0.35);
  --sun-fade: rgba(200, 180, 255, 0);
  --cloud: rgba(120, 90, 200, 0.2);
  --far: #1d1640;
  --far-2: #261c50;
  --near: #2a1d55;
  --near-2: #33236a;
  --window: rgba(120, 220, 255, 0.7);
  --walk: #2a1f4a;
  --walk-line: rgba(54, 240, 255, 0.14);
  --curb: #6a4a9a;
  --road: #17122c;
  --road-top: #241c40;
  --dash: rgba(54, 240, 255, 0.6);
  --lamp: #3a2a6a;
  --lamp-light: #ff8af0;
  --lamp-glow: rgba(255, 90, 230, 0.35);
  --lamp-fade: rgba(255, 90, 230, 0);
  --scene: neon;
  --deco: stars;
  --props: lamps;
  --bar: #0b0a2a;
  --bar-dark: 1;
}

.st-snow {
  --sky-a: #6aa9e6;
  --sky-b: #a9d2f2;
  --sky-c: #e8f2fb;
  --sky-d: #ffffff;
  --sun: #fffbe8;
  --sun-glow: rgba(255, 255, 240, 0.6);
  --sun-fade: rgba(255, 255, 240, 0);
  --cloud: rgba(255, 255, 255, 0.7);
  --far: #8fb0cf;
  --far-2: #b4cbe0;
  --near: #2f5a4e;
  --near-2: #3a6a5c;
  --snowcap: #ffffff;
  --walk: #e9f1f8;
  --walk-line: rgba(80, 110, 150, 0.12);
  --curb: #cfdbe7;
  --road: #48505e;
  --road-top: #5c6575;
  --dash: rgba(255, 255, 255, 0.85);
  --lamp: #4a5a70;
  --lamp-light: #ffffff;
  --lamp-glow: rgba(255, 255, 255, 0.2);
  --lamp-fade: rgba(255, 255, 255, 0);
  --deco-a: #ffffff;
  --scene: snow;
  --deco: snow;
  --props: posts;
  --bar: #6aa9e6;
  --bar-dark: 1;
}

.st-canyon {
  --sky-a: #f08a3c;
  --sky-b: #f7b46a;
  --sky-c: #fbd6a0;
  --sky-d: #ffe6c0;
  --sun: #fff4d0;
  --sun-glow: rgba(255, 240, 200, 0.55);
  --sun-fade: rgba(255, 240, 200, 0);
  --cloud: rgba(255, 240, 220, 0.4);
  --far: #c8603a;
  --far-2: #d9784a;
  --near: #4f7a3a;
  --near-2: #5f8a4a;
  --walk: #d9a46a;
  --walk-line: rgba(90, 40, 10, 0.14);
  --curb: #e6c08a;
  --road: #5a4038;
  --road-top: #6e5046;
  --dash: rgba(255, 236, 200, 0.75);
  --lamp: #6a4030;
  --lamp-light: #fff3c4;
  --lamp-glow: rgba(255, 226, 150, 0.2);
  --lamp-fade: rgba(255, 226, 150, 0);
  --scene: canyon;
  --deco: clouds;
  --props: posts;
  --bar: #f08a3c;
  --bar-dark: 1;
}

.st-harbour {
  --sky-a: #3a4f7a;
  --sky-b: #6a7fa6;
  --sky-c: #e8a07a;
  --sky-d: #f6c79a;
  --sun: #ffe9c0;
  --sun-glow: rgba(255, 220, 170, 0.45);
  --sun-fade: rgba(255, 220, 170, 0);
  --cloud: rgba(255, 230, 220, 0.35);
  --far: #2a3550;
  --far-2: #e0a03a;
  --near: #c4473a;
  --near-2: #2f7a8a;
  --water: #2f4f6e;
  --water-hi: rgba(255, 220, 190, 0.35);
  --walk: #8a8f99;
  --walk-line: rgba(255, 255, 255, 0.1);
  --curb: #b9bdc4;
  --road: #3a3d46;
  --road-top: #4c505b;
  --dash: rgba(255, 220, 120, 0.75);
  --lamp: #263040;
  --lamp-light: #fff3c4;
  --lamp-glow: rgba(255, 226, 150, 0.35);
  --lamp-fade: rgba(255, 226, 150, 0);
  --scene: harbour;
  --deco: clouds;
  --props: lamps;
  --bar: #3a4f7a;
  --bar-dark: 1;
}

.st-forest {
  --sky-a: #7ac3b8;
  --sky-b: #b5e3c8;
  --sky-c: #fbe9b0;
  --sky-d: #ffd9a0;
  --sun: #fffbe0;
  --sun-glow: rgba(255, 250, 210, 0.5);
  --sun-fade: rgba(255, 250, 210, 0);
  --cloud: rgba(255, 255, 255, 0.55);
  --far: #4f8f6a;
  --leaf-2: #3a7a52;
  --leaf: #2a6040;
  --trunk: #5a3a24;
  --walk: #7a6a4a;
  --walk-line: rgba(255, 255, 255, 0.08);
  --curb: #9a8a6a;
  --road: #4a4036;
  --road-top: #5c5044;
  --dash: rgba(255, 240, 200, 0.7);
  --lamp: #4a3a2a;
  --lamp-light: #fff3c4;
  --lamp-glow: rgba(255, 226, 150, 0.2);
  --lamp-fade: rgba(255, 226, 150, 0);
  --scene: forest;
  --deco: clouds;
  --props: posts;
  --bar: #4f8f6a;
  --bar-dark: 0;
}

.st-skyline {
  --sky-a: #10183a;
  --sky-b: #23336a;
  --sky-c: #4a4f9a;
  --sky-d: #9a6ab0;
  --sun: #f4f0ff;
  --sun-glow: rgba(220, 210, 255, 0.35);
  --sun-fade: rgba(220, 210, 255, 0);
  --cloud: rgba(160, 170, 230, 0.22);
  --far: #1a2550;
  --far-2: #22306a;
  --near: #2a3670;
  --near-2: #34428a;
  --window: rgba(255, 230, 160, 0.85);
  --walk: #2a3460;
  --walk-line: rgba(255, 255, 255, 0.08);
  --curb: #7a86c0;
  --road: #161c36;
  --road-top: #222a4a;
  --dash: rgba(255, 230, 160, 0.7);
  --lamp: #1a2246;
  --lamp-light: #fff3c4;
  --lamp-glow: rgba(255, 226, 150, 0.35);
  --lamp-fade: rgba(255, 226, 150, 0);
  --scene: skyline;
  --deco: stars;
  --props: lamps;
  --bar: #10183a;
  --bar-dark: 1;
}

body.ev-halloween.st-sunset,
body.ev-halloween.st-neon,
body.ev-halloween.st-skyline {
  --deco: bats;
  --deco-b: #1a1022;
  --lamp-light: #ffb347;
}

body.ev-winter.st-sunset,
body.ev-winter.st-neon,
body.ev-winter.st-skyline,
body.ev-winter.st-harbour {
  --deco: snow;
  --deco-a: #ffffff;
}

#probe {
  --tyre: #1a1522;
  --rim: #ffd34d;
  --hub: #eceaf4;
  --spoke: #ffd34d;
  --frame: #ff4a5c;
  --frame-dark: #9e2238;
  --stripe: #ffffff;
  --engine: #4a4562;
  --seat: #1e1929;
  --chrome: #dcdee8;
  --light: #fff6c9;
  --tail: #ff3040;
  --suit: #2f7cff;
  --suit-dark: #1c4bb0;
  --suit-trim: #ffffff;
  --helmet: #ffffff;
  --helmet-stripe: #ff4a5c;
  --visor: #1c1736;
  --glove: #1e1929;
  --boot: #1e1929;
  --smoke: rgba(236, 228, 246, 0.75);
  --trail: #ffffff;
  --trail-on: 0;
  --wheel-style: spokes;
  --helmet-deco: stripe;
  --suit-deco: none;
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

#probe.bike-mule { --frame: #3a6ea8; --frame-dark: #1e3a5e; --stripe: #ffd34d; --chrome: #eef0f6; --seat: #4a2a1a; }
#probe.bike-goat { --frame: #ffb020; --frame-dark: #8a5a00; --stripe: #1a1522; --engine: #2a2a2a; }
#probe.bike-hornet { --frame: #2ad17a; --frame-dark: #137a44; --stripe: #111111; --engine: #222222; }
#probe.bike-volt { --frame: #e9ecf5; --frame-dark: #7a8090; --stripe: #36f0ff; --light: #36f0ff; --engine: #3a4050; }
#probe.bike-moth { --frame: #2f6b4f; --frame-dark: #173a2a; --stripe: #e8d2a0; --chrome: #f0e6c8; --seat: #5a3a20; }
#probe.bike-comet { --frame: #ff8ac8; --frame-dark: #b0407a; --stripe: #ffffff; --seat: #3a2030; }
#probe.bike-crown { --frame: #7a3cff; --frame-dark: #3a1a80; --stripe: #ffd34d; --chrome: #ffe08a; }
#probe.bike-husky { --frame: #9fd8ff; --frame-dark: #3a6a8a; --stripe: #ffffff; --engine: #334455; }
#probe.bike-jack { --frame: #ff7a1a; --frame-dark: #7a3000; --stripe: #2a1a10; --light: #ffd34d; }

#probe.suit-denim { --suit: #4a6a9a; --suit-dark: #2a3f60; }
#probe.suit-track { --suit: #ff4a5c; --suit-dark: #a02838; --suit-deco: stripe; --suit-trim: #ffffff; }
#probe.suit-mint { --suit: #3fd0a0; --suit-dark: #1f8a68; }
#probe.suit-leather { --suit: #3a2a2a; --suit-dark: #1a1212; --suit-deco: stripe; --suit-trim: #c8a060; }
#probe.suit-chrome { --suit: #c8d0dc; --suit-dark: #7a8494; --suit-deco: stripe; --suit-trim: #36f0ff; }
#probe.suit-sunrise { --suit: #ffb35e; --suit-dark: #c46a2a; --suit-deco: stripe; --suit-trim: #ff4a5c; }
#probe.suit-royal { --suit: #7a3cff; --suit-dark: #3a1a80; --suit-deco: stripe; --suit-trim: #ffd34d; }
#probe.suit-aurora { --suit: #36f0c0; --suit-dark: #2a6aff; --suit-deco: stripe; --suit-trim: #ff8af0; }
#probe.suit-palm { --suit: #2e9e6a; --suit-dark: #1a5a3a; --suit-deco: stripe; --suit-trim: #ffe08a; }
#probe.suit-neon { --suit: #ff3fd0; --suit-dark: #7a1a6a; --suit-deco: stripe; --suit-trim: #36f0ff; }
#probe.suit-pumpkin { --suit: #ff7a1a; --suit-dark: #7a3000; --suit-deco: stripe; --suit-trim: #2a1a10; }
#probe.suit-frost { --suit: #bfe6ff; --suit-dark: #5a8ab0; --suit-deco: stripe; --suit-trim: #ffffff; }
#probe.suit-bloom { --suit: #ffaad0; --suit-dark: #c05a8a; --suit-deco: stripe; --suit-trim: #ffffff; }
#probe.suit-surf { --suit: #2ab0e0; --suit-dark: #1a6a8a; --suit-deco: stripe; --suit-trim: #ffe08a; }

#probe.helmet-stripe { --helmet: #1e1929; --helmet-stripe: #ffd34d; }
#probe.helmet-flame { --helmet: #1e1929; --helmet-stripe: #ff7a1a; --helmet-deco: flame; }
#probe.helmet-checker { --helmet: #ffffff; --helmet-stripe: #1e1929; --helmet-deco: check; }
#probe.helmet-star { --helmet: #2f7cff; --helmet-stripe: #ffd34d; --helmet-deco: star; }
#probe.helmet-visor { --helmet: #c8d0dc; --helmet-stripe: #36f0ff; --visor: #2a4a7a; --helmet-deco: fin; }
#probe.helmet-sunrise { --helmet: #ffb35e; --helmet-stripe: #ff4a5c; }
#probe.helmet-crown { --helmet: #7a3cff; --helmet-stripe: #ffd34d; --helmet-deco: crown; }
#probe.helmet-comet { --helmet: #ffffff; --helmet-stripe: #36f0ff; --helmet-deco: star; }
#probe.helmet-pine { --helmet: #2e9e6a; --helmet-stripe: #ffffff; }
#probe.helmet-pumpkin { --helmet: #ff7a1a; --helmet-stripe: #2a8a3a; --helmet-deco: stem; }
#probe.helmet-frost { --helmet: #bfe6ff; --helmet-stripe: #ffffff; --helmet-deco: star; }
#probe.helmet-bloom { --helmet: #ffaad0; --helmet-stripe: #ffffff; --helmet-deco: star; }
#probe.helmet-surf { --helmet: #2ab0e0; --helmet-stripe: #ffe08a; --helmet-deco: fin; }

#probe.smoke-peach { --smoke: rgba(255, 190, 150, 0.75); }
#probe.smoke-mint { --smoke: rgba(150, 240, 200, 0.7); }
#probe.smoke-violet { --smoke: rgba(190, 150, 255, 0.7); }
#probe.smoke-gold { --smoke: rgba(255, 215, 90, 0.75); }
#probe.smoke-ink { --smoke: rgba(40, 30, 60, 0.7); }
#probe.smoke-rainbow { --smoke: rgba(255, 130, 220, 0.72); }
#probe.smoke-royal { --smoke: rgba(170, 120, 255, 0.75); }
#probe.smoke-dust { --smoke: rgba(220, 170, 120, 0.75); }
#probe.smoke-ember { --smoke: rgba(255, 120, 40, 0.75); }
#probe.smoke-snow { --smoke: rgba(255, 255, 255, 0.92); }

#probe.trail-sun { --trail: #ffb020; --trail-on: 1; }
#probe.trail-sea { --trail: #36c0ff; --trail-on: 1; }
#probe.trail-lime { --trail: #9cf03a; --trail-on: 1; }
#probe.trail-flare { --trail: #ff4a5c; --trail-on: 1; }
#probe.trail-comet { --trail: #ffffff; --trail-on: 1; }
#probe.trail-royal { --trail: #b07cff; --trail-on: 1; }
#probe.trail-leaf { --trail: #4fd38c; --trail-on: 1; }
#probe.trail-harbour { --trail: #ff8a3a; --trail-on: 1; }
#probe.trail-spark { --trail: #36f0ff; --trail-on: 1; }
#probe.trail-bat { --trail: #7a3cff; --trail-on: 1; }
#probe.trail-petal { --trail: #ffaad0; --trail-on: 1; }

#probe.wheel-mag { --wheel-style: mag; --spoke: #c8ccd8; --rim: #c8ccd8; }
#probe.wheel-disc { --wheel-style: disc; --spoke: #3a3550; --rim: #ff4a5c; }
#probe.wheel-star { --wheel-style: star; --spoke: #ffd34d; --rim: #ffd34d; }
#probe.wheel-neon { --wheel-style: neon; --spoke: #36f0ff; --rim: #36f0ff; }
#probe.wheel-gold { --wheel-style: mag; --spoke: #ffc23d; --rim: #ffe08a; --hub: #ffe08a; }
#probe.wheel-sunrise { --wheel-style: star; --spoke: #ffb35e; --rim: #ff6b4a; }
#probe.wheel-turbo { --wheel-style: disc; --spoke: #ff4a5c; --rim: #ffffff; }
#probe.wheel-royal { --wheel-style: star; --spoke: #b07cff; --rim: #ffd34d; }
#probe.wheel-shell { --wheel-style: mag; --spoke: #fff0f4; --rim: #ffb8c8; }
#probe.wheel-frost { --wheel-style: spokes; --spoke: #bfe6ff; --rim: #ffffff; }
#probe.wheel-sun { --wheel-style: star; --spoke: #ffe08a; --rim: #ffb020; }

html.large {
  --ctl-h: 46px;
  --ctl-h-s: 36px;
  --ctl-h-l: 54px;
  --play-h: 64px;
  --icon: 22px;
  --icon-s: 17px;
  --tab-h: 70px;
  --hud-h: 64px;
  --rail: 48px;
  --badge: 28px;
  --xp-w: 40px;
}

html.large .pill .plus {
  display: none;
}

html.contrast {
  --ink-2: rgba(255, 255, 255, 0.92);
  --ink-3: rgba(255, 255, 255, 0.78);
  --card: #1a1028;
  --card-2: #120a1e;
  --card-3: #2a1d40;
  --card-solid: #241838;
  --line: rgba(255, 255, 255, 0.4);
  --glass: rgba(8, 2, 18, 0.88);
  --glass-edge: rgba(255, 255, 255, 0.6);
  --arc: rgba(255, 255, 255, 0.6);
  --text-stroke: #000000;
  --stroke-k: 0.26;
  --gauge-w: 6;
  --gauge-dot: 8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-size: var(--fs-m);
  color: var(--ink);
  background: var(--bg-0);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: var(--ring-w) solid var(--focus);
  outline-offset: 2px;
}

.ic {
  width: var(--icon);
  height: var(--icon);
  flex: none;
  display: block;
}

.ic.s {
  width: var(--icon-s);
  height: var(--icon-s);
}

.ic.l {
  width: var(--icon-l);
  height: var(--icon-l);
}

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

#boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--sky-a), var(--sky-b) 50%, var(--sky-c));
  transition: opacity var(--t-boot);
}

#boot.gone {
  opacity: 0;
  pointer-events: none;
}

.boot-logo {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: url('icon.svg') center / cover;
  box-shadow: var(--shadow-2);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px 0 6px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: var(--border-w) solid var(--glass-edge);
  box-shadow: var(--shadow-1);
  font-weight: 900;
  font-size: var(--fs-num);
  white-space: nowrap;
}

.pill .plus {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--ok);
  color: var(--ink-inv);
}

.pill .plus .ic {
  width: 12px;
  height: 12px;
}

.bump {
  animation: bump var(--t-mid) ease-out;
}

@keyframes bump {
  from {
    transform: scale(var(--bump-k));
  }
}

#home {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#home > * {
  pointer-events: auto;
}

.top {
  position: absolute;
  top: calc(var(--safe-t) + var(--sp-2));
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.me {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.lvl {
  display: grid;
  place-items: center;
  width: var(--lvl-size);
  height: var(--lvl-size);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  font-weight: 900;
  font-size: var(--fs-l);
  box-shadow: var(--shadow-1);
  flex: none;
}

.lvl.big {
  width: var(--lvl-big);
  height: var(--lvl-big);
  font-size: var(--fs-xxl);
}

.xp {
  width: var(--xp-w);
  height: var(--bar-h);
  border-radius: var(--r-pill);
  background: var(--glass);
  border: var(--border-w) solid var(--glass-edge);
  overflow: hidden;
}

.xp i,
.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
}

.purse {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.logo {
  position: absolute;
  top: calc(var(--safe-t) + var(--sp-2) + var(--lvl-size) + var(--sp-2));
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none !important;
}

.logo h1 {
  margin: 0;
  font-size: var(--fs-logo);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 2px 0 var(--accent-dark);
}

.logo h1 b {
  color: var(--gold);
}

.rails {
  position: absolute;
  top: calc(var(--safe-t) + 92px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.rails.l {
  left: var(--gutter);
}

.rails.r {
  right: var(--gutter);
}

.rail {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--rail);
  height: var(--rail);
  border-radius: var(--r-m);
  background: var(--glass);
  border: var(--border-w) solid var(--glass-edge);
  box-shadow: var(--shadow-1);
  color: var(--ink);
}

.rail.hot {
  background: linear-gradient(180deg, var(--hero-a), var(--hero-b));
}

.rail.vip {
  background: linear-gradient(135deg, var(--vip-a), var(--vip-b));
  color: var(--gold-2);
}

.rail small {
  position: absolute;
  right: 0;
  bottom: -5px;
  min-width: var(--dot-size);
  height: var(--dot-size);
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--warn);
  color: var(--gold-ink);
  font-size: var(--fs-xs);
  font-weight: 900;
  line-height: var(--dot-size);
  text-align: center;
}

.dot {
  position: absolute;
  top: -6px;
  right: 0;
  min-width: var(--dot-size);
  height: var(--dot-size);
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--dot);
  color: var(--ink-inv);
  font-size: var(--fs-xs);
  font-weight: 900;
  line-height: var(--dot-size);
  text-align: center;
  pointer-events: none;
}

.bikechip {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 2 * var(--gutter));
  min-height: var(--ctl-h-s);
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: var(--border-w) solid var(--glass-edge);
  font-size: var(--fs-s);
  white-space: nowrap;
}

.bikechip b {
  font-weight: 900;
}

.bikechip span {
  color: var(--ink-2);
  font-weight: 700;
}

.dock {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--tab-h) + var(--safe-b) + var(--sp-2));
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.boosts {
  display: flex;
  gap: 6px;
}

.boost {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--ctl-h);
  padding: 4px;
  border-radius: var(--r-m);
  background: var(--glass);
  border: var(--border-w) solid var(--glass-edge);
  font-size: var(--fs-s);
  font-weight: 800;
}

.boosts.in .boost {
  background: var(--card-solid);
}

.boost .bn {
  max-width: 100%;
  font-size: var(--fs-xs);
  line-height: 1.15;
  text-align: center;
}

.boost .count {
  position: absolute;
  top: -7px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: var(--dot-size);
  height: var(--dot-size);
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--card-hi);
  font-size: var(--fs-xs);
  font-weight: 900;
}

.boost .count .ic {
  width: 11px;
  height: 11px;
}

.boost .count.buy {
  background: var(--ok);
}

.boost.on {
  background: linear-gradient(180deg, var(--ok-2), var(--ok));
  border-color: var(--ok-2);
  color: var(--ink-dark);
}

.boost.on .count {
  background: var(--ok-dark);
  color: var(--ink-inv);
}

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mode {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 6px 8px;
  border-radius: var(--r-m);
  background: var(--glass);
  border: var(--border-w) solid var(--glass-edge);
  text-align: left;
  min-width: 0;
}

.mode.wide {
  grid-column: span 2;
}

.mode .badge {
  display: grid;
  place-items: center;
  width: var(--badge);
  height: var(--badge);
  border-radius: var(--r-s);
  flex: none;
  color: var(--ink-inv);
}

.mode .badge.endless {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
}

.mode .badge.daily {
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
}

.mode .badge.event {
  background: linear-gradient(180deg, var(--hero-a), var(--hero-b));
}

.mode .badge.levels {
  background: linear-gradient(180deg, var(--violet-2), var(--violet));
}

.mode .txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mode b {
  font-weight: 900;
  font-size: var(--fs-m);
  line-height: 1.15;
}

.mode .txt span {
  color: var(--ink-2);
  font-weight: 700;
  font-size: var(--fs-xs);
  line-height: 1.25;
}

.play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--play-h);
  padding: 6px 18px;
  border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 4px 0 var(--accent-dark), var(--shadow-1);
}

.play:active,
.btn:active,
.mode:active,
.rail:active {
  transform: scale(var(--press-k));
}

.play .pt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.play b {
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.1;
}

.play small {
  font-size: var(--fs-s);
  font-weight: 800;
  opacity: 0.9;
}

#tabs {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tab-h) + var(--safe-b));
  padding: 0 var(--sp-2) var(--safe-b);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: var(--card-2);
  border-top: var(--border-w) solid var(--line);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.tab.on {
  color: var(--ink);
}

.tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab .bubble {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -18px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 3px 0 var(--gold-dark), var(--shadow-1);
}

.tab .dot {
  top: -2px;
  right: 18%;
}

#hud {
  position: fixed;
  z-index: 5;
  top: var(--safe-t);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: var(--sp-2) var(--gutter) 0;
  pointer-events: none;
}

#hud > * {
  pointer-events: auto;
}

.round {
  display: grid;
  place-items: center;
  width: var(--ctl-h-l);
  height: var(--ctl-h-l);
  border-radius: 50%;
  background: var(--glass);
  border: var(--border-w) solid var(--glass-edge);
}

.hud-l {
  justify-self: start;
}

.hud-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  pointer-events: none !important;
  text-shadow: 0 2px 0 var(--text-stroke);
}

.hud-title {
  font-size: var(--fs-xs);
  font-weight: 900;
  color: var(--ink-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hud-dist {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 2px;
}

.hud-dist b {
  font-size: var(--fs-dist);
}

.hud-dist small {
  font-size: var(--fs-s);
  font-weight: 900;
  color: var(--ink-2);
}

.hud-combo {
  min-height: 1.2em;
  margin-top: 3px;
  color: var(--sweet);
  font-size: var(--fs-s);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.hud-r {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none !important;
}

.hud-bar {
  grid-column: 1 / -1;
  position: relative;
  width: calc(100% - 4.5em);
  max-width: var(--hud-bar-w);
  height: var(--hud-bar-h);
  margin: 6px auto 0 0;
  border-radius: var(--r-pill);
  background: var(--glass);
  pointer-events: none !important;
}

.hud-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sweet), var(--gold));
}

.hud-flag {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  color: var(--ink-2);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hud-bar.done i {
  background: var(--gold);
}

.hud-goals {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  margin-top: 6px;
  pointer-events: none !important;
}

.hg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--glass);
  font-size: var(--fs-xs);
  font-weight: 900;
  color: var(--ink-2);
}

.hg.met {
  background: var(--ok);
  color: var(--ink-inv);
}

.hg.lost {
  opacity: 0.45;
}

#hint {
  position: fixed;
  z-index: 6;
  left: 50%;
  top: var(--hint-y);
  max-width: calc(100% - 4 * var(--gutter));
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: var(--border-w) solid var(--glass-edge);
  font-weight: 900;
  font-size: var(--fs-m);
  text-align: center;
  pointer-events: none;
}

#layer {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
}

.wrap {
  position: absolute;
  inset: 0;
}

.veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
  pointer-events: auto;
  animation: fade var(--t-mid) ease-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--sheet-max);
  max-height: calc(100% - var(--safe-t) - 28px);
  display: flex;
  flex-direction: column;
  transform: translateX(-50%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--card-2);
  border-top: var(--border-w) solid var(--line);
  box-shadow: var(--shadow-2);
  pointer-events: auto;
  animation: up var(--t-mid) cubic-bezier(0.2, 0.9, 0.3, 1.1);
  padding-bottom: var(--safe-b);
}

.sheet.full {
  height: calc(100% - var(--safe-t) - 20px);
}

.dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% - 2 * var(--gutter) - 12px);
  max-width: var(--dialog-max);
  max-height: calc(100% - var(--safe-t) - var(--safe-b) - 32px);
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
  border-radius: var(--r-xl);
  background: var(--card-2);
  border: var(--border-w) solid var(--line);
  box-shadow: var(--shadow-2);
  pointer-events: auto;
  animation: pop var(--t-mid) cubic-bezier(0.2, 0.9, 0.3, 1.25);
  overflow: hidden;
}

@keyframes up {
  from {
    transform: translate(-50%, 40%);
    opacity: 0;
  }
}

@keyframes pop {
  from {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
  }
}

.head {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 50px;
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
}

.head h2 {
  flex: 1;
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.15;
  min-width: 0;
}

.head .x {
  display: grid;
  place-items: center;
  width: var(--ctl-h-s);
  height: var(--ctl-h-s);
  border-radius: 50%;
  background: var(--card-3);
  color: var(--ink-2);
}

.head .x .ic {
  width: 14px;
  height: 14px;
}

.body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--sp-3) var(--sp-4);
  -webkit-overflow-scrolling: touch;
}

.foot {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.foot > * {
  flex: 1 1 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--ctl-h);
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-weight: 900;
  font-size: var(--fs-m);
  line-height: 1.1;
  background: var(--card-hi);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--card-3), var(--shadow-1);
  white-space: nowrap;
}

.btn.l {
  min-height: var(--ctl-h-l);
  font-size: var(--fs-l);
}

.btn.s {
  min-height: var(--ctl-h-s);
  padding: 0 10px;
  font-size: var(--fs-s);
}

.btn.main {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 3px 0 var(--accent-dark);
}

.btn.go {
  background: linear-gradient(180deg, var(--ok-2), var(--ok));
  color: var(--ink-inv);
  box-shadow: 0 3px 0 var(--ok-dark);
}

.btn.blue {
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  color: var(--ink-inv);
  box-shadow: 0 3px 0 var(--blue-dark);
}

.btn.gem {
  background: linear-gradient(180deg, var(--violet-2), var(--violet));
  color: var(--ink-inv);
  box-shadow: 0 3px 0 var(--violet-dark);
}

.btn.gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 3px 0 var(--gold-dark);
}

.btn.ghost {
  background: transparent;
  box-shadow: none;
  color: var(--ink-2);
}

.btn:disabled,
.btn.off {
  opacity: 0.45;
  pointer-events: none;
}

.btn.wide {
  width: 100%;
}

.seg {
  display: flex;
  gap: 4px;
  margin: 0 var(--sp-3) var(--sp-2);
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--card-3);
  overflow-x: auto;
  scrollbar-width: none;
}

.picker {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--card-3);
}

.picker b {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-weight: 900;
  font-size: var(--fs-m);
}

.picker button {
  display: grid;
  place-items: center;
  width: var(--ctl-h-s);
  height: var(--ctl-h-s);
  border-radius: 50%;
  background: var(--card-hi);
  flex: none;
}

.seg::-webkit-scrollbar {
  display: none;
}

.seg button {
  position: relative;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--ctl-h-s);
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: var(--fs-s);
  color: var(--ink-2);
  white-space: nowrap;
}

.seg button.on {
  background: var(--card-hi);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.seg button:disabled {
  opacity: 0.45;
}

.purse-row {
  padding: 0 var(--sp-4) var(--sp-2);
  gap: 6px;
}

.card {
  position: relative;
  border-radius: var(--r-m);
  background: var(--card-solid);
  box-shadow: var(--shadow-1);
  padding: var(--sp-3);
  text-align: left;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.stack.tight {
  gap: 4px;
}

.stack.end {
  align-items: flex-end;
  gap: 4px;
}

.row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}

.row.kv {
  justify-content: space-between;
  min-height: 26px;
}

.row .grow,
.grow {
  flex: 1;
  min-width: 0;
}

.row b {
  display: block;
  font-weight: 900;
  font-size: var(--fs-m);
  line-height: 1.2;
}

.row small,
.muted {
  display: block;
  margin: 0;
  color: var(--ink-2);
  font-weight: 700;
  font-size: var(--fs-s);
  line-height: 1.3;
}

.muted.inline {
  display: inline;
}

.sec.row {
  flex-wrap: wrap;
  row-gap: 2px;
}

.sec.row .grow {
  flex: 1 1 auto;
}

.sec {
  margin: var(--sp-3) 2px var(--sp-2);
  font-size: var(--fs-s);
  font-weight: 900;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tile-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--card-3);
  color: var(--ink);
  flex: none;
}

.bar {
  height: var(--bar-h);
  border-radius: var(--r-pill);
  background: var(--track);
  overflow: hidden;
  margin-top: 4px;
  width: 100%;
}

.bar.gold i {
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}

.bar.ok i {
  background: linear-gradient(90deg, var(--ok-2), var(--ok));
}

.reward {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 900;
  font-size: var(--fs-s);
  white-space: nowrap;
}

.reward .ic {
  width: 15px;
  height: 15px;
}

.rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.rewards.center {
  justify-content: center;
}

.grid.levels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-2);
}

.lv {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  aspect-ratio: 1;
  border-radius: var(--r-m);
  background: var(--card-solid);
  box-shadow: 0 3px 0 var(--card-3);
  font-weight: 900;
  font-size: var(--fs-l);
}

.lv.now {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 3px 0 var(--accent-dark);
}

.lv.mile {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 3px 0 var(--gold-dark);
}

.lv.lock {
  background: var(--card-3);
  color: var(--ink-3);
  box-shadow: none;
}

.lv .st {
  display: flex;
}

.lv .st .ic {
  width: 11px;
  height: 11px;
}

.lv .ic.lk {
  width: 14px;
  height: 14px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-3);
  border-radius: var(--r-l);
  background: var(--card-solid);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  text-align: left;
}

.offer.hero {
  background: linear-gradient(135deg, var(--hero-a), var(--hero-b));
}

.offer.vip {
  background: linear-gradient(135deg, var(--vip-a), var(--vip-b));
}

.offer h3 {
  margin: 0;
  font-size: var(--fs-l);
  font-weight: 900;
  line-height: 1.15;
}

.offer small {
  display: block;
  color: var(--ink-2);
  font-weight: 700;
  font-size: var(--fs-s);
}

.offer ul {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: var(--fs-s);
  font-weight: 700;
  line-height: 1.35;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--ink-inv);
  font-size: var(--fs-xs);
  font-weight: 900;
  white-space: nowrap;
}

.tag.gold {
  background: var(--gold);
  color: var(--gold-ink);
}

.tag.ok {
  background: var(--ok);
}

.pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-3) var(--sp-2) var(--sp-2);
  border-radius: var(--r-l);
  background: var(--card-solid);
  box-shadow: var(--shadow-1);
  text-align: center;
  position: relative;
}

.pack .big {
  font-size: var(--fs-xl);
  font-weight: 900;
}

.pack .tag {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.pack .gems3 {
  display: flex;
  align-items: flex-end;
  height: 36px;
}

.pack .gems3 .ic {
  width: 30px;
  height: 30px;
}

.price {
  min-width: 82px;
}

.bikes {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.bikecard {
  display: grid;
  grid-template-columns: var(--preview-w) 1fr;
  align-items: center;
  gap: 4px var(--sp-2);
  padding: var(--sp-2);
  border-radius: var(--r-l);
  background: var(--card-solid);
  box-shadow: var(--shadow-1);
}

.bikecard.on {
  box-shadow: 0 0 0 var(--ring-w) var(--ok), var(--shadow-1);
}

.bikecard canvas {
  width: var(--preview-w);
  height: var(--preview-h);
  flex: none;
}

.bikecard b {
  display: block;
  font-weight: 900;
  font-size: var(--fs-m);
}

.bikecard small {
  display: block;
  color: var(--ink-2);
  font-weight: 700;
  font-size: var(--fs-xs);
  line-height: 1.3;
}

.bikecard .side {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 6px;
  margin-top: 6px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--ink-2);
}

.stat > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pips {
  display: flex;
  gap: 2px;
  flex: none;
}

.pips i {
  width: var(--pip-w);
  height: var(--pip-h);
  flex: none;
  border-radius: 2px;
  background: var(--track);
}

.pips i.on {
  background: var(--gold);
}

.looks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
}

.look {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) 4px;
  border-radius: var(--r-m);
  background: var(--card-solid);
  box-shadow: var(--shadow-1);
  text-align: center;
  min-width: 0;
}

.look.on {
  box-shadow: 0 0 0 var(--ring-w) var(--ok), var(--shadow-1);
}

.look canvas {
  width: 72px;
  height: var(--look-h);
}

.look b {
  font-size: var(--fs-s);
  font-weight: 900;
  line-height: 1.15;
  max-width: 100%;
}

.look small {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

.album {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-2);
  border-radius: var(--r-l);
  background: var(--card-solid);
  box-shadow: var(--shadow-1);
  text-align: left;
  min-width: 0;
}

.album canvas,
.pic canvas {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-s);
  background: var(--card-3);
}

.card-big {
  width: 220px;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
}

.album b {
  font-size: var(--fs-m);
  font-weight: 900;
  line-height: 1.15;
}

.pics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

.pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px;
  border-radius: var(--r-m);
  background: var(--card-solid);
  box-shadow: var(--shadow-1);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-align: center;
  min-width: 0;
}

.pic span {
  max-width: 100%;
  line-height: 1.2;
}

.tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tier {
  display: grid;
  grid-template-columns: 38px 1fr 1fr;
  gap: 6px;
  align-items: stretch;
}

.tier.head-row {
  margin: var(--sp-3) 0 6px;
}

.tier.head-row .sec {
  margin: 0;
}

.tier .n {
  display: grid;
  place-items: center;
  border-radius: var(--r-s);
  background: var(--card-3);
  font-weight: 900;
  font-size: var(--fs-s);
  color: var(--ink-2);
}

.tier.reached .n {
  background: var(--blue);
  color: var(--ink-inv);
}

.slotr {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: var(--r-s);
  background: var(--card-solid);
  min-width: 0;
}

.slotr.prem {
  background: linear-gradient(135deg, var(--prem-a), var(--prem-b));
}

.slotr.done {
  opacity: 0.5;
}

.slotr .claim {
  min-height: 26px;
  padding: 0 9px;
  font-size: var(--fs-xs);
}

.slotr .ic.lk {
  width: 14px;
  height: 14px;
  color: var(--ink-3);
}

.cal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.cal .d {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) 4px;
  border-radius: var(--r-m);
  background: var(--card-solid);
  font-size: var(--fs-xs);
  font-weight: 900;
  text-align: center;
  min-width: 0;
}

.cal .d .rewards {
  justify-content: center;
}

.cal .d.big {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--prem-a), var(--prem-b));
}

.cal .d.today {
  box-shadow: 0 0 0 var(--ring-w) var(--accent);
}

.cal .d.got {
  opacity: 0.5;
}

.board-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: var(--r-s);
  background: var(--card-solid);
  font-weight: 800;
  font-size: var(--fs-m);
}

.lb.me {
  background: var(--me-row);
}

.lb .r {
  font-weight: 900;
  color: var(--ink-2);
  text-align: center;
}

.lb .nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch {
  position: relative;
  width: var(--switch-w);
  height: var(--switch-h);
  border-radius: var(--r-pill);
  background: var(--off);
  flex: none;
  transition: background var(--t-fast);
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: var(--switch-k);
  height: var(--switch-k);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform var(--t-fast);
}

.switch.on {
  background: var(--ok);
}

.switch.on::after {
  transform: translateX(calc(var(--switch-w) - var(--switch-k) - 6px));
}

.set {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 46px;
  padding: 6px var(--sp-3);
  border-radius: var(--r-m);
  background: var(--card-solid);
  text-align: left;
}

.set + .set {
  margin-top: 4px;
}

.set b {
  display: block;
  font-weight: 800;
  font-size: var(--fs-m);
  line-height: 1.2;
}

.set small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.3;
}

.set .val {
  font-weight: 900;
  font-size: var(--fs-s);
  color: var(--ink-2);
  white-space: nowrap;
}

.choices {
  display: flex;
  gap: 4px;
}

.choices button {
  min-width: 34px;
  min-height: var(--ctl-h-s);
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--card-3);
  font-weight: 900;
  font-size: var(--fs-s);
}

.choices button.on {
  background: var(--blue);
  color: var(--ink-inv);
}

.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
  text-align: center;
}

.result h2,
.h-plain {
  margin: 0;
  font-size: var(--fs-xxl);
  font-weight: 900;
  line-height: 1.1;
}

.result .bar {
  max-width: 220px;
}

.big-stars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.big-stars .ic {
  width: 44px;
  height: 44px;
  animation: star-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4) backwards;
}

.big-stars .ic:nth-child(2) {
  width: 56px;
  height: 56px;
  animation-delay: 0.18s;
}

.big-stars .ic:nth-child(3) {
  animation-delay: 0.36s;
}

.big-stars.small .ic,
.big-stars.small .ic:nth-child(2) {
  width: 24px;
  height: 24px;
}

.big-stars .stars-row {
  display: contents;
}

@keyframes star-in {
  from {
    transform: scale(0) rotate(-40deg);
  }
}

.result .score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: var(--fs-hero);
  font-weight: 900;
}

.result .score small {
  font-size: var(--fs-l);
  color: var(--ink-2);
}

.result .gain {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  padding: 8px 14px;
  border-radius: var(--r-l);
  background: var(--card-solid);
}

.goals {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: stretch;
}

.goal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 10px;
  border-radius: var(--r-s);
  background: var(--card-solid);
  font-weight: 800;
  font-size: var(--fs-s);
  text-align: left;
  color: var(--ink-2);
}

.goal-row.done {
  color: var(--ink);
}

.goal-row.done .ic {
  color: var(--sweet);
}

.preview {
  display: grid;
  place-items: center;
  width: var(--preview-round);
  height: var(--preview-round);
  border-radius: var(--r-l);
  background: var(--card-solid);
  box-shadow: var(--shadow-1);
}

.preview.round {
  border-radius: 50%;
}

.preview.warm {
  color: var(--warn);
}

.preview.obstacle {
  color: var(--gold);
}

.input {
  width: 100%;
  min-height: var(--ctl-h-l);
  padding: 0 14px;
  border: 2px solid var(--line);
  border-radius: var(--r-m);
  background: var(--card-solid);
  font: inherit;
  font-weight: 900;
  font-size: var(--fs-l);
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink);
  user-select: text;
  -webkit-user-select: text;
}

.code {
  padding: var(--sp-3);
  border-radius: var(--r-m);
  background: var(--card-solid);
  font-weight: 900;
  font-size: var(--fs-xl);
  letter-spacing: 0.1em;
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
}

.note {
  margin: 0;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-m);
  background: var(--card-3);
  font-size: var(--fs-s);
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.35;
}

.legal-note {
  margin-top: var(--sp-3);
}

.promo-ic {
  width: var(--promo-ic);
  height: var(--promo-ic);
  border-radius: var(--r-s);
}

.center {
  text-align: center;
}

.gap-t {
  margin-top: var(--sp-3);
}

.gap-b {
  margin-bottom: var(--sp-3);
}

.stack.center {
  align-items: center;
}

.stack.center > .btn.wide,
.stack.center > .card {
  align-self: stretch;
}

.stars-row {
  display: inline-flex;
  vertical-align: middle;
  gap: 1px;
}

.stars-row .ic {
  width: 12px;
  height: 12px;
}

#toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  top: calc(var(--safe-t) + 64px);
  max-width: calc(100% - 32px);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--ink-dark);
  font-weight: 800;
  font-size: var(--fs-s);
  box-shadow: var(--shadow-2);
  transform: translateX(-50%);
  animation: toast var(--t-toast) ease forwards;
  pointer-events: none;
  text-align: center;
}

@keyframes toast {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  10%,
  85% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
  }
}

.legal-page {
  overflow: auto;
  height: auto;
  background: var(--card-2);
  user-select: text;
  -webkit-user-select: text;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  font-size: 15px;
  line-height: 1.6;
  user-select: text;
  -webkit-user-select: text;
}

.legal h1 {
  font-size: 26px;
  line-height: 1.2;
}

.legal h2 {
  margin-top: 26px;
  font-size: 18px;
}

.legal a {
  color: var(--blue-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
}

html.reduce *,
html.reduce *::before,
html.reduce *::after {
  animation-duration: 0.01s !important;
  transition-duration: 0.01s !important;
}

@media (max-height: 760px) {
  :root {
    --menu-ground: 0.56;
  }
}

@media (max-width: 360px) {
  :root {
    --gutter: 9px;
  }
}
