/* Slidekicks landing page: the game's sticker UI and comic store look (ui-theme.css palette). */
@font-face { font-family: Bangers; src: url('assets/fonts/Bangers-Regular.ttf') format('truetype'); font-display: swap; }
/* Digits in Lilita One, like the game (Bangers' 1 and 7 look alike). */
@font-face { font-family: SlidekicksZiffern; src: url('assets/fonts/LilitaOne-Regular.ttf') format('truetype');
  font-display: swap; unicode-range: U+0030-0039, U+002B-002E, U+003A; size-adjust: 88%; }

:root {
  --ink: #12263f; --ink-soft: #40506a; --paper: #fff6dc; --paper-2: #f0e6c8; --white: #fff;
  --lime: #b8ef4a; --lime-deep: #3d8a12; --sky: #63d2ff; --sky-deep: #1f8fd8;
  --gold: #ffd23f; --gold-soft: #ffe58a; --gold-deep: #f0a81e; --coral: #ff7a66; --deep: #16304f;
  --display: SlidekicksZiffern, Bangers, Impact, "Arial Narrow", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --bw: 4px; --drop: 6px 6px 0 var(--ink); --drop-sm: 4px 4px 0 var(--ink);
  /* Cartoon timing: quick release, clear overshoot, short settle. */
  --spring: cubic-bezier(.3, 1.7, .5, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.55 var(--text); }
img, video, svg { display: block; max-width: 100%; }
/* width/height attributes reserve the space; the height must follow the width. */
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; }
.skip:focus { left: 16px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  transition: background .25s, box-shadow .25s, transform .3s;
}
.topbar.solid { background: var(--paper); box-shadow: 0 4px 0 var(--ink); }
.topbar-logo img { height: 40px; width: auto; transition: transform .35s var(--spring), opacity .25s; }
.topbar:not(.solid) .topbar-logo img { opacity: 0; transform: translateY(-8px) scale(.8); }
.topbar-nav { display: none; gap: 6px; margin-left: auto; }
.topbar-nav a { padding: 6px 12px; border-radius: 12px; font: 400 21px/1 var(--display); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.topbar-nav a:hover { background: var(--gold); box-shadow: 0 3px 0 var(--ink); }
.lang {
  margin-left: auto; min-width: 48px; height: 44px; padding: 0 12px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--white); color: var(--ink); box-shadow: 0 3px 0 var(--ink); font: 400 20px/1 var(--display); cursor: pointer;
}
@media (min-width: 860px) { .topbar-nav { display: flex; } .lang { margin-left: 8px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px;
  border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink);
  font: 400 24px/1 var(--display); letter-spacing: .03em; text-decoration: none; text-transform: uppercase; color: var(--ink);
  cursor: pointer; transition: transform .28s var(--spring), box-shadow .28s var(--spring);
}
.btn svg { width: 28px; height: 28px; flex: none; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 9px 0 var(--ink); }
/* Press: squash into the shadow, spring back on release. */
.btn:active { transform: translateY(5px) scale(1.04, .92); box-shadow: 0 1px 0 var(--ink); transition-duration: .06s; }
.btn-store { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 #000; }
.btn-store span { display: grid; text-align: left; }
.btn-store small { font: 600 13px/1.1 var(--text); letter-spacing: 0; text-transform: none; opacity: .85; }
.btn-store b { font-weight: 400; font-size: 26px; color: var(--gold); }
.btn-store:hover { box-shadow: 0 9px 0 #000; }
.btn-ghost { background: var(--white); }

/* ---------- Comic pieces ---------- */
.caption {
  display: inline-block; padding: .14em .45em .08em; border: var(--bw) solid var(--ink); border-radius: 6px;
  background: var(--gold); box-shadow: var(--drop); font-size: clamp(38px, 7.4vw, 66px); text-transform: uppercase;
  transform: rotate(-2deg);
}
.caption-gold { background: var(--gold); }
.burst { position: absolute; display: grid; place-items: center; width: 150px; aspect-ratio: 200 / 140; pointer-events: none; }
/* Fill and stroke are inherited into the <use> copy of the shape. */
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  fill: var(--burst, var(--gold)); stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; }
.burst span { position: relative; font: 400 30px/1 var(--display); color: var(--coral); letter-spacing: .02em; transform: rotate(-8deg);
  -webkit-text-stroke: 1.5px var(--ink); text-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.b-sky { --burst: var(--sky); } .b-lime { --burst: var(--lime); } .b-coral { --burst: var(--gold); }
.b-sky span, .b-lime span { color: var(--paper); }
.coin {
  position: absolute; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink);
  background: radial-gradient(circle at 50% 50%, var(--gold) 0 46%, var(--gold-deep) 47% 58%, var(--gold) 59%);
  box-shadow: inset -4px -5px 0 rgba(0,0,0,.12), 2px 3px 0 var(--ink);
}
.coin::after { content: 'S'; position: absolute; inset: 0; display: grid; place-items: center; font: 400 22px/1 Bangers, sans-serif; color: var(--gold-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(84px + env(safe-area-inset-top)) 16px 120px;
  background: radial-gradient(120% 90% at 70% 40%, var(--gold-soft), var(--gold) 60%);
}
.hero-rays {
  position: absolute; inset: -50%; z-index: -2;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.34) 0 7deg, transparent 7deg 18deg);
  animation: spin 120s linear infinite;
}
.hero-dots {
  position: absolute; inset: 0; z-index: -1; opacity: .18;
  background: radial-gradient(var(--gold-deep) 1.6px, transparent 1.8px) 0 0 / 14px 14px;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
          mask: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
}
.hero-inner { display: grid; justify-items: center; gap: 18px; max-width: 1180px; margin: 0 auto; align-items: center; text-align: center; }
/* Phones: logo and title, then the trailer, then the pitch and the buttons. */
.hero-copy { display: contents; }
.hero-logo, .hero-title { order: 1; } .hero-stage { order: 2; } .hero-lead, .hero-cta, .hero-facts { order: 3; }
.hero-logo { width: min(560px, 88vw); height: auto; filter: drop-shadow(0 8px 0 rgba(18,38,63,.25)); }
.hero-title { --r: -3deg; display: grid; justify-items: center; text-transform: uppercase; transform: rotate(var(--r)); }
.hero-title .line { font-size: clamp(34px, 8vw, 54px); color: var(--ink); }
.hero-title .big { font-size: clamp(48px, 12vw, 86px); color: var(--white); -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill; text-shadow: 3px 4px 0 var(--ink); }
.hero-lead { max-width: 34em; padding: 14px 18px; border: 3px solid var(--ink); border-radius: 18px; background: var(--paper); box-shadow: var(--drop-sm); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.hero-facts li { padding: 5px 12px; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); font: 400 18px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.hero-facts li:nth-child(2) { background: var(--lime); } .hero-facts li:nth-child(3) { background: var(--sky); }

/* The top padding leaves room for the KABOOM sticker above the phone, so it only grazes the bezel and keeps the HUD free. */
.hero-stage { position: relative; justify-self: center; width: min(400px, 88vw); padding: 72px 0 20px; }
.hero-art {
  position: absolute; margin: 0; right: -4%; top: calc(4% + 62px); width: 66%; aspect-ratio: 2 / 3; overflow: hidden;
  border: 6px solid var(--ink); border-radius: 10px; box-shadow: var(--drop); transform: rotate(6deg); background: var(--sky);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.phone {
  position: relative; width: 62%; margin-left: 4%; aspect-ratio: 886 / 1920; overflow: hidden;
  border: 9px solid var(--ink); border-radius: 42px; background: #0b1726; box-shadow: 10px 12px 0 rgba(18,38,63,.9);
  transform: rotate(-4deg);
}
.phone::after { content: ''; position: absolute; top: 9px; left: 50%; width: 30%; height: 18px; border-radius: 12px; background: var(--ink); transform: translateX(-50%); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.burst-hero { width: clamp(104px, 30vw, 140px); left: 38%; top: 0; transform: rotate(-12deg); }
.burst-hero span { font-size: clamp(21px, 6vw, 28px); }
.c1 { left: 6%; top: 3%; } .c2 { right: 2%; bottom: 14%; width: 34px; height: 34px; } .c3 { left: -2%; bottom: 22%; width: 30px; height: 30px; }
.coin { animation: bob 2.8s ease-in-out infinite; } .c2 { animation-delay: -1s; } .c3 { animation-delay: -1.9s; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }

@media (min-width: 900px) {
  .hero { padding-bottom: 150px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 40px; text-align: left; }
  .hero-copy { display: grid; justify-items: start; gap: 18px; }
  .hero-title { justify-items: start; }
  .hero-cta, .hero-facts { justify-content: flex-start; }
  .hero-stage { width: 440px; }
  .burst-hero { top: -16px; }
}

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 2; margin: -6px -10px 0; padding: 14px 0; overflow: hidden; background: var(--ink); transform: rotate(-1.5deg); }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker-track span { padding-right: .4em; font: 400 clamp(26px, 4vw, 38px)/1 var(--display); letter-spacing: .05em; color: var(--gold); white-space: nowrap; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 16px; text-align: center; overflow: hidden; }
.section-lead { max-width: 36em; margin: 22px auto 0; font-size: 18px; font-weight: 600; color: var(--ink-soft); }
.section-lead.light { color: #d9e6f5; }

/* How to play */
.play { background: var(--paper) radial-gradient(rgba(18,38,63,.07) 1.5px, transparent 1.7px) 0 0 / 16px 16px; }
.panels { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px); gap: 22px; max-width: 1120px; margin: 44px auto 0; padding: 12px 8px 26px;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.panels::-webkit-scrollbar { display: none; }
.panel { position: relative; scroll-snap-align: center; padding: 12px 12px 18px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--white); box-shadow: var(--drop); text-align: left; }
.panel:nth-child(2) { transform: rotate(1.2deg); } .panel:nth-child(1), .panel:nth-child(3) { transform: rotate(-1deg); }
.panel-img { aspect-ratio: 4 / 5; overflow: hidden; border: 3px solid var(--ink); border-radius: 10px; background: var(--deep); }
.panel-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.panel-step { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font: 400 32px/1 var(--display); text-transform: uppercase; }
.panel-step b { display: grid; place-items: center; width: 40px; height: 40px; border: 3px solid var(--ink); border-radius: 50%; background: var(--gold); font-weight: 400; font-size: 24px; }
.panel-text { color: var(--ink-soft); font-weight: 600; }
.burst-sm { width: 112px; right: -18px; top: -26px; transform: rotate(10deg); }
.burst-sm span { font-size: 24px; }
@media (min-width: 900px) {
  .panels { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}

/* The slide: the turtle rides it as the page scrolls. */
.ride { position: relative; height: clamp(150px, 20vw, 230px); max-width: 1300px; margin: 30px auto 0; }
.ride-slide { width: 100%; height: 100%; overflow: visible; }
.ride-lip { fill: none; stroke: var(--ink); stroke-width: 62px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ride-water { fill: none; stroke: var(--gold); stroke-width: 50px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ride-shine { fill: none; stroke: #4cc9e8; stroke-width: 34px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ride-rider { position: absolute; left: 0; top: 0; width: clamp(80px, 11vw, 130px); height: auto; transform-origin: 50% 80%;
  filter: drop-shadow(0 5px 0 rgba(18,38,63,.35)); will-change: transform; }

/* Crew */
.crew { background: linear-gradient(#63d2ff, #a8e9ff); }
.clouds { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background:
    radial-gradient(60px 34px at 12% 14%, #fff 98%, transparent), radial-gradient(90px 44px at 18% 12%, #fff 98%, transparent),
    radial-gradient(70px 36px at 84% 22%, #fff 98%, transparent), radial-gradient(110px 48px at 91% 20%, #fff 98%, transparent),
    radial-gradient(80px 38px at 70% 88%, #fff 98%, transparent), radial-gradient(60px 30px at 8% 82%, #fff 98%, transparent); }
.crew-head { position: relative; display: inline-block; }
.burst-md { width: 124px; right: -26px; top: -86px; transform: rotate(12deg); }
@media (min-width: 700px) { .burst-md { width: 150px; right: -128px; top: -50px; } }
/* Narrow screens: the sticker stands above the caption, inside the section. */
@media (max-width: 699px) { .crew, .trails { padding-top: 104px; } }
.burst-md span { font-size: 26px; color: var(--paper); }
.crew-grid { --cols: 2; --gap: 16px; position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap);
  max-width: 1100px; margin: 40px auto 0; padding: 0; list-style: none; }
.crew-grid > li { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
/* Nine heroes: 3 x 3 on tablets, 5 + 4 on wide screens. */
@media (min-width: 640px) { .crew-grid { --cols: 3; } }
@media (min-width: 1100px) { .crew-grid { --cols: 5; --gap: 20px; max-width: 1240px; } }
.hero-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 12px 16px;
  border: var(--bw) solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: var(--drop); }
.hero-card .hop { position: relative; width: 100%; aspect-ratio: 1.18; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-card .hop::before { content: ''; position: absolute; left: 12%; right: 12%; top: 8%; bottom: 4%; border: 3px solid var(--ink); border-radius: 50%;
  background: var(--plate, var(--lime)); }
.hero-card img { position: relative; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 92%; }
.hero-card[data-plate="sky"] { --plate: var(--sky); } .hero-card[data-plate="coral"] { --plate: #ffb3a6; }
.hero-card[data-plate="gold"] { --plate: var(--gold); } .hero-card[data-plate="night"] { --plate: #8b7bd8; }
.hero-card h3 { font-size: clamp(24px, 3vw, 30px); text-transform: uppercase; }
.hero-card p { font-size: 14px; line-height: 1.35; color: var(--ink-soft); font-weight: 600; }
.tag { margin-top: 4px; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font: 700 12px/1.3 var(--text); text-transform: uppercase; letter-spacing: .04em; }
.tag.coins { display: inline-flex; align-items: center; gap: 6px; font: 400 18px/1 var(--display); }
.tag.coins::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: var(--gold); }
.tag.iap { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.crew-note { position: relative; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.hop.hopping img { animation: hop .7s linear; }

/* Trails */
.trails { background: linear-gradient(#a8e9ff, var(--lime) 38%, #d9f78f); }
.trails-head { position: relative; display: inline-block; }
.trail-grid { --cols: 2; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap) var(--gap);
  max-width: 980px; margin: 40px auto 0; padding: 0; list-style: none; }
.trail-grid > li { width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (min-width: 640px) { .trail-grid { --cols: 3; --gap: 24px; } }
.trail-card { display: grid; justify-items: center; gap: 8px; }
.trail-card img { width: 100%; aspect-ratio: 600 / 669; object-fit: cover; border: var(--bw) solid var(--ink); border-radius: 20px;
  background: #1a5a55; box-shadow: var(--drop); }
.trail-card:nth-child(odd) img { transform: rotate(-1.5deg); } .trail-card:nth-child(even) img { transform: rotate(1.5deg); }
.trail-card h3 { position: relative; margin-top: -26px; padding: 6px 12px 4px; border: 3px solid var(--ink); border-radius: 10px;
  background: var(--gold); font-size: clamp(20px, 2.6vw, 26px); text-transform: uppercase; transform: rotate(-2deg); }
.trail-card .tag { margin-top: 0; }

/* Worlds */
.worlds { background: var(--deep); color: var(--paper); }
.stars { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(#fff 1px, transparent 1.4px) 0 0 / 46px 46px, radial-gradient(#ffd23f 1.2px, transparent 1.6px) 23px 17px / 70px 70px; }
.worlds-head { position: relative; }
.carousel { position: relative; max-width: 1240px; margin: 44px auto 0; }
.car-track { display: flex; gap: 20px; margin: 0; padding: 16px max(16px, calc(50% - 600px)) 34px; list-style: none; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.world { position: relative; flex: none; width: clamp(170px, 46vw, 230px); aspect-ratio: 400 / 866; scroll-snap-align: center;
  border: 5px solid var(--paper); border-radius: 26px; overflow: hidden; box-shadow: 8px 8px 0 #000; background: #0b1726; }
.world:nth-child(odd) { transform: rotate(-2deg); } .world:nth-child(even) { transform: rotate(2deg) translateY(10px); }
.world img { width: 100%; height: 100%; object-fit: cover; }
.world > span { position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 6px 8px; border: 3px solid var(--ink); border-radius: 10px;
  background: var(--gold); color: var(--ink); font: 400 21px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; text-align: center; transform: rotate(-2deg); }
/* The finale: the last world of the route, reached by rocket. */
.world-space { border-color: var(--gold); }
.world-space > span { background: #8b7bd8; color: var(--paper); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.world-more { display: grid; place-items: center; background: var(--coral); }
.world-more div { display: grid; gap: 10px; padding: 16px; color: var(--ink); }
.world-more b { font: 400 76px/1 var(--display); color: var(--paper); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.world-more span { font: 400 22px/1.15 var(--display); text-transform: uppercase; }
.car-btn { display: none; position: absolute; top: 50%; z-index: 2; width: 56px; height: 56px; margin-top: -28px; padding: 0; border: var(--bw) solid var(--ink); border-radius: 50%;
  background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 #000; cursor: pointer; transition: transform .25s var(--spring); }
.car-btn svg { width: 28px; height: 28px; margin: auto; }
.car-btn:active { transform: translateY(4px) scale(1.06, .9); }
.prev { left: 8px; } .next { right: 8px; }
@media (min-width: 760px) { .car-btn { display: grid; } }

/* Friends */
.friends { background: var(--lime) radial-gradient(rgba(61,138,18,.25) 1.6px, transparent 1.8px) 0 0 / 16px 16px; }
.duo { display: grid; gap: 26px; max-width: 1100px; margin: 44px auto 0; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.card { padding: 26px 22px; border: var(--bw) solid var(--ink); border-radius: 26px; background: var(--paper); box-shadow: 8px 8px 0 var(--ink); text-align: left; }
.card h3 { font-size: clamp(32px, 4vw, 42px); text-transform: uppercase; }
.card > p { margin-top: 10px; font-weight: 600; color: var(--ink-soft); }
.race { transform: rotate(-1deg); } .rank { transform: rotate(1deg); }
.room { margin-top: 20px; }
.room-code { display: grid; justify-items: center; width: max-content; margin: 0 auto 16px; padding: 8px 22px 10px; border: 3px solid var(--ink); border-radius: 16px;
  background: var(--white); box-shadow: var(--drop-sm); }
.room-code small { padding: 1px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sky); font: 400 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.room-code b { font: 400 44px/1.1 var(--display); letter-spacing: .08em; }
.seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.seats li { position: relative; display: grid; justify-items: center; padding: 0 0 8px; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); box-shadow: 0 3px 0 var(--ink); overflow: hidden; }
.seats img { width: 100%; aspect-ratio: 1.1; object-fit: contain; background: #bfeeff; border-bottom: 3px solid var(--ink); padding: 4px; }
.seats i { position: absolute; left: 5px; top: 5px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--c); font: normal 400 15px/1 var(--display); }
.seats span { padding: 6px 4px 0; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; -webkit-hyphens: auto; hyphens: auto; }
.board { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.board li { position: relative; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 8px 14px 8px 8px;
  border: 3px solid var(--ink); border-radius: 14px; background: var(--white); box-shadow: 0 3px 0 var(--ink); }
.board li.me { background: var(--lime); }
.medal { display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper-2); font: 400 19px/1 var(--display); }
.m1 { background: var(--gold); } .m2 { background: #dfe6ee; } .m3 { background: var(--gold-deep); }
.who { font-weight: 700; } .who em { font-style: normal; color: var(--lime-deep); }
.board b { font: 400 24px/1 var(--display); }
.crown { position: absolute; left: 2px; top: -16px; width: 30px; height: 30px; transform: rotate(-16deg); }

/* Daily + style */
.extras { background: var(--paper) radial-gradient(rgba(18,38,63,.07) 1.5px, transparent 1.7px) 0 0 / 16px 16px; }
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: 'copy copy' 'a b'; gap: 28px 18px; max-width: 1140px; margin: 44px auto 0; align-items: center; }
.extras-grid .tilt:first-child { grid-area: a; } .extras-grid .tilt:last-child { grid-area: b; } .extras-copy { grid-area: copy; }
.extras-grid .tilt { margin: 0 auto; width: min(300px, 100%); transform: rotate(var(--r)); border: var(--bw) solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--drop); background: var(--white); }
.extras-copy { display: grid; gap: 16px; text-align: left; }
.feature { padding: 18px 20px; border: 3px solid var(--ink); border-radius: 20px; background: var(--white); box-shadow: var(--drop-sm); }
.feature h3 { font-size: 30px; text-transform: uppercase; }
.feature p { margin-top: 6px; color: var(--ink-soft); font-weight: 600; }
.feature:nth-child(1) h3 { color: var(--sky-deep); } .feature:nth-child(2) h3 { color: #d1442f; } .feature:nth-child(3) h3 { color: var(--lime-deep); }
@media (min-width: 980px) { .extras-grid { grid-template-columns: 1fr 1.2fr 1fr; grid-template-areas: 'a copy b'; gap: 28px; } .extras-grid .tilt { width: min(270px, 100%); } }

/* Finale */
.finale { position: relative; overflow: hidden; isolation: isolate; padding: clamp(70px, 10vw, 130px) 16px; background: var(--gold); text-align: center; }
.finale .hero-rays { animation-duration: 90s; }
.finale-inner { display: grid; justify-items: center; gap: 18px; max-width: 760px; margin: 0 auto; }
.bubble { position: relative; padding: 18px 30px; border: var(--bw) solid var(--ink); border-radius: 50% / 46%; background: var(--white); box-shadow: var(--drop); }
.bubble::after { content: ''; position: absolute; left: 46%; bottom: -26px; width: 34px; height: 34px; background: var(--white);
  border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); transform: skewX(-25deg) rotate(45deg); }
.bubble h2 { font-size: clamp(40px, 8vw, 76px); text-transform: uppercase; }
.finale-turtle { width: min(340px, 70vw); height: auto; transform-origin: 50% 90%; filter: drop-shadow(0 10px 0 rgba(18,38,63,.3)); }
.finale-note { font-weight: 700; }

/* Footer */
.footer { display: grid; justify-items: center; gap: 16px; padding: 46px 16px calc(36px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); text-align: center; }
.footer img { width: 180px; height: auto; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.footer a { font: 400 22px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--gold); }
.footer a:hover { text-decoration: underline; }
.footer p { font-size: 14px; opacity: .8; }

/* Toast and coin burst */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40; padding: 12px 20px; border: var(--bw) solid var(--ink); border-radius: 18px;
  background: var(--paper); box-shadow: var(--drop-sm); font: 400 24px/1 var(--display); text-transform: uppercase; opacity: 0; pointer-events: none;
  transform: translate(-50%, 30px) scale(.8); transition: opacity .2s, transform .35s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.fly-coin { position: fixed; left: 0; top: 0; z-index: 45; width: 26px; height: 26px; pointer-events: none; animation: none; }

/* ---------- Motion ---------- */
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
/* Entrance: stretched on the way up, past the mark, squash on landing, settle. */
@keyframes pop-in {
  0% { opacity: 0; transform: translateY(46px) scale(.82, 1.16) rotate(var(--r, 0deg)); }
  48% { opacity: 1; transform: translateY(-12px) scale(.96, 1.07) rotate(var(--r, 0deg)); }
  66% { transform: translateY(5px) scale(1.08, .9) rotate(var(--r, 0deg)); }
  82% { transform: translateY(-2px) scale(.98, 1.03) rotate(var(--r, 0deg)); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(var(--r, 0deg)); }
}
@keyframes burst-in {
  0% { opacity: 0; transform: scale(.2) rotate(-30deg); }
  55% { opacity: 1; transform: scale(1.22) rotate(14deg); }
  75% { transform: scale(.92) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(var(--br, 10deg)); }
}
/* Hop: crouch and hold, spring up stretched, short apex, fall faster, squash on landing, settle. */
@keyframes hop {
  0% { transform: none; }
  22% { transform: translateY(6%) scale(1.16, .8); }
  32% { transform: translateY(6%) scale(1.18, .78); }
  44% { transform: translateY(-34%) scale(.86, 1.18) rotate(-4deg); }
  56% { transform: translateY(-40%) scale(1, 1) rotate(3deg); animation-timing-function: ease-in; }
  72% { transform: translateY(4%) scale(1.2, .8); }
  86% { transform: translateY(-3%) scale(.96, 1.05); }
  100% { transform: none; }
}
.js .pop { opacity: 0; animation: pop-in .7s var(--d, 0s) both cubic-bezier(.25, .6, .35, 1); }
.js .hero-logo.pop { animation-duration: .8s; }
.js .burst-hero { opacity: 0; --br: -12deg; animation: burst-in .55s .75s both; }
.js .reveal { opacity: 0; }
.js .reveal.in { animation: pop-in .7s var(--d, 0s) both cubic-bezier(.25, .6, .35, 1); }
.js .panel.reveal.in:nth-child(1) { --r: -1deg; } .js .panel.reveal.in:nth-child(2) { --r: 1.2deg; } .js .panel.reveal.in:nth-child(3) { --r: -1deg; }
.js .race.reveal.in { --r: -1deg; } .js .rank.reveal.in { --r: 1deg; }
.js .caption.reveal.in { --r: -2deg; }
.js .burst-md.reveal.in { --br: 12deg; animation: burst-in .55s var(--d, 0s) both; }
.js .panel .burst-sm { opacity: 0; }
.js .panel.in .burst-sm { --br: 10deg; animation: burst-in .5s calc(var(--d, 0s) + .45s) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-rays, .ticker-track, .coin { animation: none !important; }
  .js .pop, .js .reveal.in, .js .burst-hero, .js .burst-md.reveal.in, .js .panel.in .burst-sm { animation: fade .4s var(--d, 0s) both !important; }
  .hop.hopping img { animation: none; }
  .btn, .car-btn { transition: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Privacy and imprint ---------- */
.legal-page { background: var(--paper) radial-gradient(rgba(18,38,63,.06) 1.5px, transparent 1.7px) 0 0 / 16px 16px; }
.legal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 820px; margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px 8px; }
.legal-head img { width: 170px; height: auto; }
.legal-lang a { font-weight: 700; }
.legal { display: grid; gap: 28px; max-width: 820px; margin: 0 auto; padding: 12px 16px 60px; }
.legal article { padding: clamp(20px, 4vw, 40px); border: var(--bw) solid var(--ink); border-radius: 24px; background: var(--white); box-shadow: var(--drop); }
.legal h1 { display: inline-block; margin-bottom: 8px; padding: .1em .4em .04em; border: var(--bw) solid var(--ink); border-radius: 6px; background: var(--gold);
  box-shadow: var(--drop-sm); font-size: clamp(36px, 7vw, 54px); text-transform: uppercase; transform: rotate(-1.5deg); }
.legal h2 { margin: 28px 0 8px; font-size: 28px; text-transform: uppercase; color: var(--sky-deep); }
.legal h3 { margin: 18px 0 6px; font: 700 18px/1.3 var(--text); }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 1.2em; }
.legal .stand { color: var(--ink-soft); font-size: 14px; }
.legal mark { padding: 0 .2em; border-radius: 4px; background: var(--coral); color: var(--ink); }
.legal code { font-size: .9em; }
