/* Derpy Rush site. Colours, outlines and fonts are the game's own (Lilita One + ink #1d0f33). */
@font-face { font-family: 'Lilita One'; src: url(/media/fonts/LilitaOne-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 600 900; font-display: swap; src: url(/media/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-weight: 600 900; font-display: swap; src: url(/media/fonts/nunito-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-weight: 600 900; font-display: swap; src: url(/media/fonts/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #1d0f33;
  --night: #1b0b33;
  --night2: #261049;
  --plum: #3a1a78;
  --sun: #ffe14d;
  --pink: #ff4fa3;
  --cyan: #2de2e6;
  --green: #5df25d;
  --orange: #ff9b2d;
  --gold: #e89a00;
  --blue: #3d8bff;
  --violet: #8f7bff;
  --cream: #fff5e4;
  --grass: #84dc5a;
  --grass2: #4fae35;
  --soil: #a8683a;
  --soil2: #7a4524;
  --text: #f1e9ff;
  --muted: #cbbcf0;
  --display: 'Lilita One', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hud: 66px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 700 18px/1.5 var(--body); overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 900; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { position: relative; scroll-margin-top: var(--hud); }

/* ---------- game-style text ---------- */
.title {
  font: 400 clamp(38px, 5.4vw, 70px)/1 var(--display);
  color: #fff; letter-spacing: .01em; margin: 0 0 16px;
  -webkit-text-stroke: .15em var(--ink); paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--ink);
  text-wrap: balance;
}
.title.ink { color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 40em; margin: 0 0 28px; text-wrap: pretty; }
.outl { -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 400 18px/1 var(--display); letter-spacing: .03em; color: #fff; text-decoration: none;
  padding: 11px 18px 12px; border-radius: 14px; border: 3px solid var(--ink);
  -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill;
  box-shadow: 0 5px 0 var(--ink), inset 0 3px 0 rgba(255,255,255,.35);
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink), inset 0 3px 0 rgba(255,255,255,.35); }
.btn-gold { background: linear-gradient(#ffb72e, var(--gold)); }
.round-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--ink); cursor: pointer;
  background: linear-gradient(#5aa2ff, #2f6fe0); box-shadow: 0 5px 0 var(--ink), inset 0 3px 0 rgba(255,255,255,.35);
  display: inline-grid; place-items: center; transition: transform .08s, box-shadow .08s;
}
.round-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.arrow { width: 0; height: 0; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; filter: drop-shadow(0 2px 0 var(--ink)); }
.arrow.l { transform: scaleX(-1); margin: 0 4px 0 0; }

/* ---------- HUD (the in-game race HUD, driven by scroll) ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hud);
  display: flex; align-items: center; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  pointer-events: none;
}
.panel { background: rgba(29, 15, 51, .84); border: 2px solid rgba(255,255,255,.14); border-radius: 15px; box-shadow: 0 4px 0 rgba(0,0,0,.28); }
.hud-pos { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 4px; padding: 4px 12px 5px; min-width: 104px; }
.pos { font: 400 31px/1 var(--display); color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; transition: color .2s; }
.pos sup { font-size: .52em; vertical-align: .62em; margin-left: 1px; }
.pos.top3 { color: var(--green); }
.pos.first { color: var(--sun); }
.pos.bump { animation: bump .35s; }
.hud-pos small { font: 400 15px/1 var(--display); color: #fff; opacity: .85; padding-bottom: 4px; }
.clock { grid-column: 1 / -1; font: 800 12px/1.1 var(--body); color: #fff; opacity: .9; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.hud-track { flex: 1; max-width: 560px; margin: 0 auto; padding: 6px 14px 10px; text-align: center; }
.leg { display: block; font: 400 13px/1.2 var(--display); letter-spacing: .06em; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { position: relative; height: 12px; border-radius: 8px; background: #3b2a5c; box-shadow: inset 0 2px 0 rgba(0,0,0,.35); }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: linear-gradient(90deg, #ff4fa3, #ff7ac0); }
.track .finish-tick { position: absolute; right: 3px; top: -5px; bottom: -5px; width: 3px; border-radius: 2px; background: #fff; }
.track .dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--ink); }
.track .dot.you { width: 20px; height: 20px; margin: -10px 0 0 -10px; background: #ff8a1a; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink); z-index: 2; }
.hud-get { pointer-events: auto; font-size: 16px; padding: 10px 14px 11px; white-space: nowrap; }

/* ---------- characters with googly eyes ---------- */
.ch { position: relative; display: block; line-height: 0; width: calc(var(--cw) * var(--u, .5) * var(--k, 1) * 1px); }
.ch img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.ch .eyes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ch .eyes .w { fill: #fff; }
.ch .eyes .p { fill: var(--ink); }
.ch .eyes .h { fill: #fff; }

/* ---------- hero ---------- */
.hero {
  min-height: min(100svh, 980px); padding: calc(var(--hud) + 28px) 0 120px; overflow: hidden;
  background: radial-gradient(120% 90% at 66% 42%, #a466ff 0%, #7434e6 28%, #4c1bab 58%, #26104f 100%);
}
.rays { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rays::before {
  content: ''; position: absolute; left: 66%; top: 44%; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.08) 0deg 7.5deg, rgba(255,255,255,0) 7.5deg 15deg);
  animation: spin 160s linear infinite;
}
.hero-in { position: relative; z-index: 1; max-width: 1260px; margin: 0 auto; padding: 0 20px; display: grid; gap: 36px; align-items: center; }
.logo { margin: 0 0 10px; font: 400 clamp(76px, 12.5vw, 150px)/.86 var(--display); letter-spacing: .01em; filter: drop-shadow(0 .06em 0 var(--ink)); }
.logo > span { display: block; white-space: nowrap; }
.logo span span { display: inline-block; -webkit-text-stroke: .13em var(--ink); paint-order: stroke fill; transform-origin: 50% 90%; }
.logo .w1 span:nth-child(1) { color: #ff3d5e; }
.logo .w1 span:nth-child(2) { color: #ff8a1a; }
.logo .w1 span:nth-child(3) { color: #ffd21f; }
.logo .w1 span:nth-child(4) { color: #6ee34f; }
.logo .w1 span:nth-child(5) { color: #33d6f2; }
.logo .w2 span { color: #fff; }
.js .logo span span { animation: drop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.logo .w1 span:nth-child(2) { animation-delay: .05s; } .logo .w1 span:nth-child(3) { animation-delay: .1s; }
.logo .w1 span:nth-child(4) { animation-delay: .15s; } .logo .w1 span:nth-child(5) { animation-delay: .2s; }
.logo .w2 span:nth-child(1) { animation-delay: .28s; } .logo .w2 span:nth-child(2) { animation-delay: .33s; }
.logo .w2 span:nth-child(3) { animation-delay: .38s; } .logo .w2 span:nth-child(4) { animation-delay: .43s; }
.logo span span.jig { animation: jiggle .5s ease-out; animation-delay: 0s !important; }
.tag { font: 400 clamp(26px, 3vw, 36px)/1.1 var(--display); color: var(--sun); -webkit-text-stroke: .17em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink); margin: 6px 0 12px; }
.sub { font-size: clamp(18px, 1.6vw, 21px); color: #f3ebff; max-width: 30em; margin: 0 0 24px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store { position: relative; display: block; line-height: 0; border-radius: 12px; transition: transform .12s; }
.store:hover { transform: translateY(-2px) rotate(-1deg); }
.store img { height: 54px; width: auto; }
.store[data-store=apple] img { height: 54px; }
.stores.big .store img { height: 64px; }
.store .soon { display: none; position: absolute; right: -16px; top: -17px; font: 400 12px/1 var(--display); letter-spacing: .04em; color: var(--ink); background: var(--sun); border: 3px solid var(--ink); border-radius: 10px; padding: 5px 7px 4px; transform: rotate(6deg); white-space: nowrap; }
.store.is-soon { cursor: default; }
.store.is-soon img { opacity: .55; filter: grayscale(.4); }
.store.is-soon .soon { display: block; }
.store.is-soon:hover { transform: none; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0; font-size: 15px; color: #e6d9ff; }
.facts span::before { content: '★'; color: var(--sun); margin-right: 6px; -webkit-text-stroke: 0; }
.trailer-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0; border: 0; background: none; cursor: pointer; font: 400 19px/1 var(--display); letter-spacing: .03em; color: #fff; -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; }
.trailer-btn .tri, .screen-play .tri { width: 40px; height: 40px; border-radius: 50%; background: var(--pink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); position: relative; flex: none; }
.trailer-btn .tri::after, .screen-play .tri::after { content: ''; position: absolute; left: 14px; top: 10px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.trailer-btn:hover .tri { transform: scale(1.08); }

.hero-stage { position: relative; margin: 70px 6px 0; }
.screen { position: relative; z-index: 2; aspect-ratio: 16 / 9; border-radius: 28px; border: 8px solid var(--ink); background: #1d0f33 url(/media/gameplay-poster.webp) center/cover; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 14px 0 rgba(15, 5, 35, .45); }
.screen::after { content: ''; position: absolute; inset: 0; border-radius: 20px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.28); pointer-events: none; }
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(29,15,51,.25); cursor: pointer; }
.screen-play[hidden] { display: none; }
.screen-play .tri { width: 76px; height: 76px; }
.screen-play .tri::after { left: 28px; top: 21px; border-width: 14px 0 14px 23px; }
.peek { position: absolute; z-index: 1; right: 9%; bottom: calc(100% - 46px); --u: .31; transform: rotate(-2deg); cursor: pointer; }
.peek .ch { transform-origin: 50% 100%; }
.peek .ch.hop { animation: hop .45s cubic-bezier(.3, 1.4, .5, 1); }
.bubble {
  position: absolute; right: 90%; bottom: 30%; z-index: 4; margin: 0; white-space: nowrap;
  font: 800 16px/1.2 var(--body); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 7px 12px;
  box-shadow: 0 4px 0 rgba(29,15,51,.35); opacity: 0; transform: scale(.6) rotate(-4deg); transform-origin: 100% 100%; transition: opacity .18s, transform .25s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none;
}
.bubble::after { content: ''; position: absolute; right: -11px; bottom: 9px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--ink); }
.bubble.on { opacity: 1; transform: scale(1) rotate(-4deg); }
.sitter { position: absolute; z-index: 3; left: -14px; bottom: -20px; --u: .36; transform: rotate(-4deg); }
.ground { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 74px; background: linear-gradient(var(--grass) 0 16px, var(--grass2) 16px 22px, var(--soil) 22px); }
.ground::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 14px; background: radial-gradient(circle at 50% 100%, var(--grass) 12px, transparent 12.5px) 0 0 / 30px 14px repeat-x; }
.ground::after { content: ''; position: absolute; left: 0; right: 0; top: 22px; bottom: 0; background:
  repeating-linear-gradient(0deg, transparent 0 24px, rgba(0,0,0,.18) 24px 27px),
  repeating-linear-gradient(90deg, transparent 0 52px, rgba(0,0,0,.14) 52px 55px); }
.runner { position: absolute; left: 0; bottom: 52px; width: calc(var(--fw) * 1px * .55); height: calc(var(--fh) * 1px * .55); background-size: calc(var(--fw) * var(--frames) * 1px * .55) 100%; background-repeat: no-repeat; transform: translateX(-140px); }
.runner.go { animation: run-across var(--dur, 9s) linear forwards, run-frames .38s steps(12) infinite; }

/* ---------- racers ---------- */
.racers { padding: 110px 0 120px; background:
  radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.5), transparent 2px) 0 0 / 160px 140px,
  radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,.4), transparent 2px) 0 0 / 120px 110px,
  linear-gradient(var(--night), var(--night2)); }
.roster { display: grid; gap: 26px; }
.spot {
  position: relative; display: grid; gap: 8px; padding: 18px 22px 24px; border-radius: 30px;
  background: linear-gradient(170deg, #4a22a0, #2a1258 70%); border: 4px solid var(--ink); box-shadow: 0 8px 0 rgba(0,0,0,.3), inset 0 0 0 3px rgba(255,255,255,.1);
}
.spot-ch { position: relative; height: 250px; display: flex; align-items: flex-end; justify-content: center; --u: .9; }
.spot-ch::before { content: ''; position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -140px 0 0 -130px; border-radius: 50%; background: radial-gradient(circle, rgba(255,225,77,.35), rgba(255,225,77,0) 65%); }
.podium { position: absolute; left: 50%; bottom: 6px; width: 190px; height: 34px; margin-left: -95px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,4,25,.6), rgba(10,4,25,0)); }
.spot-ch .ch { position: relative; margin-bottom: 18px; }
.spot-ch .ch.enter { animation: enter .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.rarity { justify-self: start; font: 400 13px/1 var(--display); letter-spacing: .08em; color: var(--ink); background: var(--rc, #9fb4ff); border: 3px solid var(--ink); border-radius: 9px; padding: 5px 9px 4px; }
.spot-name { margin: 2px 0 0; font: 400 clamp(32px, 3.4vw, 42px)/1 var(--display); color: #fff; -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink); }
.spot-tag { margin: 2px 0 6px; font-size: 19px; color: #f1e7ff; min-height: 3em; }
.power { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(15,6,34,.55); border: 2px solid rgba(255,255,255,.1); }
.power-k { grid-row: span 2; font: 400 13px/1 var(--display); letter-spacing: .08em; color: var(--ink); background: var(--ac, var(--green)); border: 3px solid var(--ink); border-radius: 50%; width: 62px; height: 62px; display: grid; place-items: center; text-align: center; transform: rotate(-8deg); }
.power-name { font: 400 21px/1.05 var(--display); letter-spacing: .02em; color: var(--ac, var(--green)); -webkit-text-stroke: .17em var(--ink); paint-order: stroke fill; }
.power-desc { font-size: 16px; color: var(--muted); line-height: 1.35; }
.pack-chip { justify-self: start; margin-top: 6px; font: 400 13px/1 var(--display); letter-spacing: .06em; color: #fff; background: linear-gradient(#ff7ad9, #c43ab0); border: 3px solid var(--ink); border-radius: 9px; padding: 5px 9px 4px; -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; align-content: start; }
.tile {
  position: relative; width: 100%; aspect-ratio: 1 / 1.08; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 8px; cursor: pointer;
  border-radius: 18px; border: 3px solid rgba(255,255,255,.08); background: radial-gradient(90% 60% at 50% 100%, rgba(255,255,255,.1), rgba(255,255,255,.03)); transition: transform .12s, border-color .12s, background .12s;
}
.tile::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 0; height: 4px; border-radius: 4px; background: var(--rc); opacity: .75; }
.tile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.25); }
.tile[aria-pressed=true] { border-color: var(--sun); background: radial-gradient(90% 60% at 50% 100%, rgba(255,225,77,.28), rgba(255,225,77,.06)); }
.tile .ch { --u: var(--tu, .32); }
.tile:hover .ch, .tile .ch.hop { animation: hop .42s cubic-bezier(.3, 1.4, .5, 1); }
.tile .gem { position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, #ff9be6, #c43ab0); border: 2px solid var(--ink); }

/* ---------- controls playground (daytime) ---------- */
.controls { padding: 120px 0 150px; color: var(--ink); background: linear-gradient(#fff 0 20px, #8fd2ff 150px, #6cc0ff 34%, #a9e1ff 72%, #d6f2ff); }
.controls::before { content: ''; position: absolute; z-index: 1; left: 0; right: 0; top: -34px; height: 56px; pointer-events: none; background:
  radial-gradient(circle at 50% 100%, #fff 33px, transparent 34px) 0 0 / 92px 56px repeat-x,
  radial-gradient(circle at 50% 100%, #fff 24px, transparent 25px) 46px 16px / 92px 40px repeat-x; }
.controls .clouds { position: absolute; inset: 0; overflow: hidden; }
.controls .title { margin-top: 10px; }
.controls .lead { color: #183255; }
.clouds i { position: absolute; display: block; width: 180px; height: 54px; border-radius: 40px; background: #fff; opacity: .85; animation: drift 60s linear infinite; }
.clouds i::before, .clouds i::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.clouds i::before { width: 76px; height: 76px; left: 26px; top: -34px; }
.clouds i::after { width: 96px; height: 96px; left: 72px; top: -50px; }
.clouds i:nth-child(1) { top: 120px; left: 6%; }
.clouds i:nth-child(2) { top: 230px; left: 62%; transform: scale(.7); animation-duration: 80s; }
.clouds i:nth-child(3) { top: 520px; left: 30%; transform: scale(.55); animation-duration: 95s; opacity: .6; }
.clouds i:nth-child(4) { top: 90px; left: 82%; transform: scale(.85); animation-duration: 70s; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; position: relative; z-index: 1; }
.moves { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.moves li { display: flex; align-items: center; gap: 14px; font-size: 19px; color: var(--ink); }
.mv { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink), inset 0 0 0 3px rgba(255,255,255,.5); background: #2f6fe0; }
.mv:not(.mv-run)::after { content: ''; position: absolute; inset: 15%; background: var(--ico) center / contain no-repeat; filter: brightness(0) invert(1) drop-shadow(0 1px 0 var(--ink)); }
.mv-run { background-color: #3f7ce8; }
.mv-run::after { content: ''; display: block; margin: 13px 0 0 16px; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent #fff; }
.mv-jump { background-color: #3cb84a; }
.mv-dive { background-color: #ff8a1a; }
.mv-power { background-color: #1fb8c4; }
.keys { font-size: 15px; color: #2a4a74; margin: 0; }
.stage {
  position: relative; aspect-ratio: 16 / 9; border-radius: 26px; border: 6px solid var(--ink); overflow: hidden; outline-offset: 4px; touch-action: manipulation;
  background: linear-gradient(#ffb487, #ffd7a8 55%, #ffe9c9); box-shadow: 0 10px 0 rgba(29,15,51,.35);
}
.hills { position: absolute; left: -5%; right: -5%; bottom: 16%; height: 40%; background:
  radial-gradient(circle at 50% 100%, #f39a6c 46%, transparent 47%) 0 100% / 34% 100% repeat-x,
  radial-gradient(circle at 50% 100%, #e98760 40%, transparent 41%) 17% 100% / 26% 80% repeat-x; opacity: .8; }
.plat { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: linear-gradient(var(--grass) 0 22%, var(--grass2) 22% 32%, var(--soil) 32%); }
.plat::after { content: ''; position: absolute; inset: 32% 0 0; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(0,0,0,.16) 46px 49px), repeating-linear-gradient(0deg, transparent 0 16px, rgba(0,0,0,.15) 16px 18px); }
.hammer { position: absolute; top: -6%; right: 22%; width: 0; height: 0; z-index: 2; }
.hammer .rope { position: absolute; left: -4px; top: 0; width: 8px; height: calc(var(--L) * 1px); background: #8b5a2b; border: 2px solid var(--ink); border-radius: 4px; transform-origin: 50% 0; transform: rotate(var(--a, 0rad)); }
.hammer .head { position: absolute; left: calc(var(--hx) * 1px); top: calc(var(--hy) * 1px); width: 92px; height: 60px; border-radius: 30% / 44%; border: 4px solid var(--ink);
  background: linear-gradient(90deg, transparent 17%, #fff 17% 29%, transparent 29% 71%, #fff 71% 83%, transparent 83%), linear-gradient(#ff7272, #d92b3f);
  box-shadow: inset 0 5px 0 rgba(255,255,255,.35), inset 0 -6px 0 rgba(0,0,0,.18); transform: translate(-50%, -50%) rotate(var(--a, 0rad)); }
.hammer .head::before, .hammer .head::after { content: ''; position: absolute; top: 22%; width: 15%; height: 30%; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: inset 4px -2px 0 -1px var(--ink); }
.hammer .head::before { left: 34%; } .hammer .head::after { left: 52%; }
.blob { position: absolute; left: 0; bottom: 16%; z-index: 3; width: 0; height: 0; }
.blob-in { position: absolute; left: 0; bottom: 0; transform-origin: 50% 100%; }
.blob-in .ch { --u: .3; }
.blob-in img { max-width: none; }
.blob-in .sprite { display: block; background-repeat: no-repeat; }
.pops { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.pop { position: absolute; font: 400 34px/1 var(--display); color: #fff; -webkit-text-stroke: .22em var(--ink); paint-order: stroke fill; white-space: nowrap; animation: popup .9s ease-out forwards; }
.pop.bonk { color: #ff4fa3; }
.pop.mega { color: var(--green); }
.pad { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 20px; gap: 10px; }
.pad-l, .pad-r { display: flex; gap: 12px; align-items: flex-end; }
.tb {
  position: relative; width: 74px; height: 74px; border-radius: 50%; border: 4px solid var(--ink); cursor: pointer; padding: 0;
  background: var(--bc); box-shadow: 0 6px 0 var(--ink), inset 0 0 0 4px rgba(255,255,255,.55); transition: transform .06s, box-shadow .06s;
  display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.tb.down { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink), inset 0 0 0 4px rgba(255,255,255,.8); }
.tb-left, .tb-right { --bc: #3f7ce8; }
.tb-left .arrow { transform: scaleX(-1); margin: 0 4px 0 0; }
.tb-jump { --bc: #3cb84a; width: 92px; height: 92px; }
.tb-dive { --bc: #ff8a1a; }
.tb-power { --bc: #1fb8c4; }
.tb .ico { width: 64%; height: 64%; background: center / contain no-repeat; filter: brightness(0) invert(1) drop-shadow(0 2px 0 var(--ink)); }
.tb-l { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); font: 400 14px/1 var(--display); letter-spacing: .05em; color: #fff; -webkit-text-stroke: .25em var(--ink); paint-order: stroke fill; white-space: nowrap; }
.tb .cool { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); pointer-events: none; }
.tb .cool circle { fill: none; stroke: var(--cyan); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(45,226,230,.8)); }
.grass-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: linear-gradient(var(--grass) 0 14px, var(--grass2) 14px 20px, var(--soil) 20px 46px, var(--soil2) 46px); }
.grass-edge::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 14px; background: radial-gradient(circle at 50% 100%, var(--grass) 12px, transparent 12.5px) 0 0 / 30px 14px repeat-x; }

/* ---------- courses ---------- */
.courses { padding: 110px 0 100px; background: linear-gradient(var(--soil2) 0, #2b1240 70px, var(--night) 260px, var(--night2)); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 26px; }
.tab { cursor: pointer; font: 400 17px/1 var(--display); letter-spacing: .04em; color: #fff; padding: 11px 16px 12px; border-radius: 14px; border: 3px solid var(--ink);
  background: var(--plum); -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; box-shadow: 0 5px 0 var(--ink); transition: transform .08s, background .15s; }
.tab[aria-selected=true] { background: linear-gradient(#ff7ac0, var(--pink)); }
.tab:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.rail { position: relative; scroll-padding: 0 max(20px, calc((100vw - 1160px) / 2)); display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100vw - 1160px) / 2)) 26px; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail.drag * { pointer-events: none; }
.card { flex: 0 0 min(82vw, 600px); scroll-snap-align: start; margin: 0; }
.card .shot { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; border: 6px solid var(--ink); overflow: hidden; background: #2a1650; box-shadow: 0 10px 0 rgba(0,0,0,.35); transform: rotate(var(--r, 0deg)); }
.card .shot::after { content: ''; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.22); }
.card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 6px 0; }
.card .wchip { font: 400 12px/1 var(--display); letter-spacing: .08em; color: var(--ink); background: var(--wc); border: 3px solid var(--ink); border-radius: 8px; padding: 4px 7px 3px; }
.card .cname { font: 400 27px/1.05 var(--display); color: #fff; -webkit-text-stroke: .17em var(--ink); paint-order: stroke fill; }
.card .csub { font-size: 17px; color: var(--muted); }
.rail-nav { display: flex; justify-content: flex-end; gap: 12px; }

/* ---------- modes ---------- */
.modes { padding: 100px 0 130px; background: linear-gradient(var(--night2), #33106a); }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 26px; }
.mode { position: relative; border-radius: 26px; overflow: hidden; background: #1d0f33; border: 4px solid var(--ink); box-shadow: 0 0 0 4px var(--mc), 0 12px 0 4px rgba(0,0,0,.3); margin: 4px; }
.mode img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 4px solid var(--ink); }
.mode-b { padding: 16px 18px 20px; }
.mode h3 { margin: 0 0 6px; font: 400 30px/1 var(--display); letter-spacing: .02em; color: var(--mc); -webkit-text-stroke: .17em var(--ink); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--ink); }
.mode .goal { margin: 0 0 4px; font-size: 18px; color: #fff; }
.mode .blurb { margin: 0; font-size: 16px; color: var(--muted); }
.mode .mchip { position: absolute; top: 14px; right: 14px; font: 400 12px/1 var(--display); letter-spacing: .06em; color: #fff; background: linear-gradient(#ffb72e, var(--gold)); border: 3px solid var(--ink); border-radius: 9px; padding: 5px 8px 4px; -webkit-text-stroke: .22em var(--ink); paint-order: stroke fill; }

/* ---------- grown-ups (paper) ---------- */
.grownups { padding: 120px 0 110px; background: var(--cream); color: var(--ink); }
.grownups::before { content: ''; position: absolute; left: 0; right: 0; top: -28px; height: 29px; background: radial-gradient(circle at 50% 100%, var(--cream) 28px, transparent 29px) 0 0 / 66px 29px repeat-x; }
.grownups .title { font-size: clamp(40px, 5vw, 62px); }
.grownups .lead { color: #4d3d6e; }
.gu-ch { --u: .55; display: flex; justify-content: flex-start; padding-left: 8px; }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; min-height: 38px; padding-left: 50px; font-size: 19px; line-height: 1.4; color: #2a1a47; }
.checks li::before { content: ''; position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: #3cb84a; border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.checks li::after { content: ''; position: absolute; left: 12px; top: 5px; width: 9px; height: 16px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(40deg); }
.gu-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; }
.gu-links a { font-weight: 900; color: #6a2fd6; text-underline-offset: 4px; }

/* ---------- finish ---------- */
.finish { padding: 40px 0 0; text-align: center; overflow: hidden; background: linear-gradient(#ffb37a, #ff7aa0 45%, #a24be6 100%); }
.arch { position: relative; display: flex; justify-content: center; align-items: flex-start; height: 150px; max-width: 760px; margin: 0 auto; }
.arch .post { width: 26px; height: 150px; border: 4px solid var(--ink); border-radius: 8px; background: repeating-linear-gradient(-45deg, #ff3d5e 0 14px, #fff 14px 28px); }
.banner { flex: 1; margin-top: 16px; height: 78px; border: 4px solid var(--ink); display: grid; place-items: center;
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 34px 34px; }
.banner span { font: 400 clamp(30px, 5vw, 48px)/1 var(--display); letter-spacing: .06em; color: var(--sun); -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; background: none; padding: 0 14px; filter: drop-shadow(0 3px 0 var(--ink)); }
.finish .wrap { position: relative; z-index: 2; padding-top: 20px; }
.finish .title.big { font-size: clamp(54px, 9vw, 110px); }
.finish .lead { margin: 0 auto 26px; color: var(--ink); font-weight: 900; }
.finish .stores { justify-content: center; }
.youwin { position: absolute; left: 0; right: 0; top: -48px; margin: 0; font: 400 clamp(34px, 5vw, 52px)/1 var(--display); color: var(--sun); -webkit-text-stroke: .2em var(--ink); paint-order: stroke fill; opacity: 0; transform: scale(.3) rotate(-6deg); pointer-events: none; }
.youwin.on { animation: win 1.1s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.qr { display: none; align-items: center; justify-content: center; gap: 14px; margin: 22px auto 0; max-width: 420px; text-align: left; }
.qr img { width: 112px; height: 112px; padding: 7px; background: #fff; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); }
.qr span { font-size: 17px; font-weight: 900; color: var(--ink); }
@media (hover: hover) and (pointer: fine) and (min-width: 720px) { .qr { display: flex; } }
.mytime { min-height: 1.5em; margin: 14px 0 0; font-size: 16px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.party { position: relative; height: 230px; margin-top: 30px; display: flex; justify-content: center; align-items: flex-end; gap: clamp(0px, 1.4vw, 18px); padding-bottom: 54px; }
.party::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: linear-gradient(var(--grass) 0 14px, var(--grass2) 14px 20px, var(--soil) 20px); }
.party::after { content: ''; position: absolute; left: 0; right: 0; bottom: 46px; height: 14px; background: radial-gradient(circle at 50% 100%, var(--grass) 12px, transparent 12.5px) 0 0 / 30px 14px repeat-x; }
.party .ch { position: relative; z-index: 1; --u: .34; animation: hop 1.2s ease-in-out infinite; animation-delay: var(--d, 0s); transform-origin: 50% 100%; }
.party .ch.big { --u: .42; }

/* ---------- footer ---------- */
.foot { background: var(--night); padding: 34px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.foot-brand img { border-radius: 12px; border: 3px solid var(--ink); }
.foot-brand b { font: 400 19px/1 var(--display); color: #fff; letter-spacing: .02em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: #fff; text-underline-offset: 4px; }
.lang { display: flex; align-items: center; gap: 10px; }
.lang select { font: 800 15px var(--body); color: #fff; background: var(--plum); border: 3px solid var(--ink); border-radius: 10px; padding: 7px 10px; }

/* ---------- trailer dialog + confetti ---------- */
.trailer-dlg { width: min(94vw, 1100px); padding: 0; border: 0; background: transparent; overflow: visible; }
.trailer-dlg::backdrop { background: rgba(14, 5, 30, .82); }
.dlg-in { position: relative; }
.dlg-frame { aspect-ratio: 16 / 9; border-radius: 22px; border: 6px solid var(--ink); overflow: hidden; background: #000; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.dlg-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.dlg-x { position: absolute; right: -14px; top: -18px; background: linear-gradient(#ff7ac0, var(--pink)); }
.x { position: relative; width: 22px; height: 22px; }
.x::before, .x::after { content: ''; position: absolute; left: 9px; top: -1px; width: 5px; height: 24px; border-radius: 3px; background: #fff; transform: rotate(45deg); }
.x::after { transform: rotate(-45deg); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- layout breakpoints ---------- */
@media (min-width: 720px) {
  .roster { grid-template-columns: minmax(300px, 380px) 1fr; align-items: start; }
  .spot { position: sticky; top: calc(var(--hud) + 18px); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
}
@media (min-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 48px; }
  .hero-stage { margin: 84px 10px 0 0; }
  .two { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
  .grownups .two { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
}
@media (max-width: 719px) {
  :root { --hud: 58px; }
  body { font-size: 17px; }
  .hud { gap: 7px; padding-top: 8px; }
  .hud-pos { min-width: 0; padding: 3px 9px 4px; }
  .pos { font-size: 25px; -webkit-text-stroke-width: 5px; }
  .hud-pos small { font-size: 13px; }
  .clock { font-size: 11px; }
  .hud-track { padding: 5px 10px 9px; }
  .leg { font-size: 11px; margin-bottom: 4px; }
  .hud-get { font-size: 14px; padding: 9px 10px 10px; }
  .hero { padding-bottom: 110px; }
  .peek { --u: .23; right: 7%; bottom: calc(100% - 32px); }
  .sitter { --u: .25; left: -6px; bottom: -14px; }
  .bubble { font-size: 14px; }
  .store img, .store[data-store=apple] img { height: 48px; }
  .stores.big .store img { height: 52px; }
  .spot-ch { height: 210px; --u: .72; }
  .tb { width: clamp(46px, 14vw, 64px); height: clamp(46px, 14vw, 64px); }
  .tb-jump { width: clamp(56px, 18vw, 78px); height: clamp(56px, 18vw, 78px); }
  .pad-l, .pad-r { gap: 7px; }
  .party { height: 190px; }
  .party .ch { --u: .25; }
  .party .ch.big { --u: .32; }
  .party .ch:nth-child(1), .party .ch:nth-child(7) { display: none; }
}
@media (max-width: 380px) {
  .hud-get { display: none; }
}

/* ---------- motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drop { 0% { transform: translateY(-60px) scale(.6, 1.3); opacity: 0; } 60% { transform: translateY(4px) scale(1.12, .85); opacity: 1; } 100% { transform: none; } }
@keyframes jiggle { 0% { transform: none; } 25% { transform: scale(1.18, .8); } 50% { transform: scale(.88, 1.14) translateY(-6px); } 75% { transform: scale(1.06, .95); } 100% { transform: none; } }
@keyframes hop { 0%, 100% { transform: none; } 30% { transform: translateY(-16%) scale(.94, 1.08); } 60% { transform: translateY(0) scale(1.1, .9); } }
@keyframes enter { 0% { transform: scale(.4, .2); opacity: 0; } 60% { transform: scale(1.08, .94); opacity: 1; } 100% { transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes popup { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 20% { transform: translate(-50%, -10px) scale(1.15); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -54px) scale(1); opacity: 0; } }
@keyframes win { 0% { opacity: 0; transform: scale(.3) rotate(-6deg); } 100% { opacity: 1; transform: scale(1) rotate(-4deg); } }
@keyframes drift { from { translate: 0 0; } to { translate: 40vw 0; } }
@keyframes run-across { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes run-frames { from { background-position: 0 0; } to { background-position: calc(var(--fw) * var(--frames) * -1px * .55) 0; } }

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