/* ==========================================================================
   Toy Dash: Party Race, byteonyx.com/toy-dash/
   The game's own Sticker look: white cards and puffy buttons with a thick
   navy outline and a hard navy shadow, the home screen's sky with soft
   clouds and a floating toy island, the TOY DASH logo, Lilita One for
   headings and Fredoka for words, the golden wind-up key.
   Contrast (WCAG): navy on white 15.2, on gold 9.4, on mint 6.9; white on
   navy 15.2, on deep purple #6a4cf5 5.3. Navy on sky or coral is only 4.3,
   so those two colours carry no small text.
   ========================================================================== */

@font-face {
  font-family: "Lilita One";
  src: url("fonts/lilita-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #1e2556;
  --ink-soft: #454b7a;
  --gold: #ffc928;
  --gold-hi: #ffdc63;
  --gold-lo: #f2ad0d;
  --purple: #7b5cff;
  --purple-deep: #6a4cf5;
  --mint: #22cc8f;
  --mint-hi: #4ddba6;
  --sky: #3d8bff;
  --coral: #f0566a;
  --logo-dash: #5fd2ff;
  --ribbon: #ff4f9a;
  --page: #eaf5ff;
  --card: #ffffff;
  --sky-top: #3d8bff;
  --sky-low: #b4e1ff;
  --heading: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --line: 3px;
  --lift: 6px;
  --radius: 22px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--purple-deep); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 14px; border: var(--line) solid var(--ink); border-radius: 12px; }

h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; }
.fine { font-size: .9rem; color: var(--ink-soft); }

/* Sticker words: a fill over a thick navy outline and a hard navy shadow,
   the way the game sets "QUALIFIED!" and its logo. */
.stk {
  -webkit-text-stroke: .16em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--ink);
}

/* --------------------------------------------------------------- header --- */

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: #fff;
  border-bottom: var(--line) solid var(--ink);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.crumb { color: var(--ink-soft); font-size: .92rem; white-space: nowrap; text-decoration: none; }
.crumb:hover { color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--heading); font-size: 1.35rem; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ink); }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .98rem; padding: 4px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.head-actions { display: flex; gap: 10px; margin-left: 8px; }
@media (max-width: 960px) { .nav { display: none; } .head-actions { margin-left: auto; } }
@media (max-width: 520px) { .crumb { display: none; } }
@media (max-width: 420px) { .site-head .brand span { display: none; } }
.brand, .btn { white-space: nowrap; }

/* -------------------------------------------------------------- buttons --- */

/* Puffy two-tone buttons, like PLAY and HOST in the game. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px 13px;
  font-family: var(--heading); font-size: 1.2rem; letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--gold-hi) 0 52%, var(--gold) 52% 100%);
  border: var(--line) solid var(--ink); border-radius: 16px;
  box-shadow: inset 0 -5px 0 var(--gold-lo), 0 var(--lift) 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: inset 0 -5px 0 var(--gold-lo), 0 8px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: inset 0 -3px 0 var(--gold-lo), 0 1px 0 var(--ink); }
.btn-white { background: linear-gradient(#fff 0 52%, #eef3ff 52% 100%); box-shadow: inset 0 -5px 0 #d5ddf5, 0 var(--lift) 0 var(--ink); }
.btn-white:hover { box-shadow: inset 0 -5px 0 #d5ddf5, 0 8px 0 var(--ink); }
.btn-sm { padding: 6px 14px 7px; font-size: .98rem; border-radius: 12px; --lift: 4px; }
.btn .ico { width: 1em; height: 1em; flex: 0 0 auto; }
.btn-big { padding: 15px 30px 16px; font-size: 1.35rem; border-radius: 18px; }
.btn-big .ico { width: 1.1em; height: 1.1em; }
@media (max-width: 560px) { .head-privacy { display: none; } }
@media (max-width: 420px) { .btn-big { padding: 13px 16px 14px; font-size: 1.08rem; } }

/* -------------------------------------------------------------- stickers --- */

.card {
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 var(--lift) 0 var(--ink);
}

/* A screen of the real game in a white rim with a navy outline. */
.screen {
  background: #fff; padding: 8px;
  border: var(--line) solid var(--ink); border-radius: 22px;
  box-shadow: 0 var(--lift) 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
}
.screen img { width: 100%; border-radius: 14px; }

/* The golden wind-up key: it turns round its shaft, as if somebody wound
   it, so from the side its bow flattens and opens again. */
.key { display: block; color: var(--gold); }
.key svg { width: 100%; height: 100%; overflow: visible; }
.key.turning svg { animation: wind 1.4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes wind {
  0%, 15% { transform: scaleY(1); }
  50% { transform: scaleY(.12); }
  85%, 100% { transform: scaleY(1); }
}

/* Soft clouds from one symbol. */
.cloud { position: absolute; pointer-events: none; z-index: 0; }
.cloud svg { width: 100%; height: auto; display: block; }
.drift { animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(18px); } }

/* ----------------------------------------------------------------- hero --- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-top) 0%, #6fb4ff 45%, var(--sky-low) 100%);
  padding: 64px 0 150px;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.store-name { font-size: .95rem; margin-bottom: 18px; color: #fff; text-shadow: 0 1px 0 rgba(30, 37, 86, .5); }

.logo { display: inline-flex; flex-direction: column; align-items: center; margin: 0 0 22px; }
.logo-word { font-family: var(--heading); font-size: clamp(3.6rem, 9vw, 6rem); line-height: .95; letter-spacing: .02em; }
.logo-word .toy { color: var(--gold); }
.logo-word .dash { color: var(--logo-dash); margin-left: .18em; }
.ribbon {
  position: relative; margin-top: 4px;
  font-family: var(--heading); font-size: 1.5rem; letter-spacing: .1em; /* 24 px: large text, so white on the pink (3.1) passes */
  color: #fff; background: var(--ribbon);
  padding: 2px 22px 3px;
  border: var(--line) solid var(--ink); border-radius: 8px;
  box-shadow: 0 4px 0 var(--ink);
  transform: rotate(-2deg);
}
.ribbon::before, .ribbon::after { content: "\2605"; color: var(--gold); margin: 0 8px; }

.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead {
  background: rgba(255, 255, 255, .94); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: 18px;
  padding: 14px 18px; max-width: 34em; box-shadow: 0 5px 0 var(--ink);
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 26px 0 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.facts li { color: var(--ink); font-size: .98rem; }
.facts li + li::before { content: "\00b7"; margin-right: 14px; }

/* The stage: a phone on its side, standing on the toy island. */
.stage { position: relative; padding: 0 56px 0 0; }
.phone {
  position: relative; z-index: 2;
  aspect-ratio: 20 / 9;
  background: #0d1030;
  border: 11px solid var(--ink); border-radius: 34px;
  box-shadow: 0 10px 0 rgba(30, 37, 86, .35);
  overflow: hidden;
}
.phone::after { /* the camera hole */
  content: ""; position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -4px;
  border-radius: 50%; background: #2c3370; z-index: 3;
}
.phone .frames { position: absolute; inset: 0; }
.phone .frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: frame 16s infinite; }
.phone .frames img:nth-child(1) { animation-delay: 0s; }
.phone .frames img:nth-child(2) { animation-delay: 4s; }
.phone .frames img:nth-child(3) { animation-delay: 8s; }
.phone .frames img:nth-child(4) { animation-delay: 12s; }
@keyframes frame { 0% { opacity: 0; } 3% { opacity: 1; } 25% { opacity: 1; } 28% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .phone .frames img:first-child { opacity: 1; }
}
.stage .key { position: absolute; z-index: 1; right: 0; top: 50%; width: 92px; height: 70px; margin-top: -50px; }
.go {
  position: absolute; z-index: 3; left: -26px; top: -30px;
  font-family: var(--heading); font-size: 3.4rem; line-height: 1; color: var(--gold);
  transform: rotate(-12deg);
}
.island { position: relative; z-index: 1; width: 112%; margin: -26px 0 0 -6%; }
.island svg { width: 100%; height: auto; display: block; }
.stage .pal { position: absolute; z-index: 3; bottom: 6%; left: -4%; width: 31%; }
.stage .pal img { transform: scaleX(-1); }
.phone-caption { position: relative; z-index: 3; text-align: center; margin: 4px 0 0; font-size: .92rem; color: var(--ink); }

.hero-edge { position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1; line-height: 0; }
.hero-edge svg { width: 100%; height: 110px; display: block; }

/* Pal heads in the sky: tap one and it boings. */
.float { position: absolute; z-index: 1; width: calc(var(--w, 84px) * var(--size, 1)); animation: bob 5.5s ease-in-out infinite; }
.float button { all: unset; display: block; cursor: pointer; border-radius: 30%; }
.float button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.float img { width: 100%; filter: drop-shadow(0 6px 0 rgba(30, 37, 86, .22)); }
.float.boing img { animation: boing .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--tilt, 0deg) * -1)); } }
@keyframes boing {
  0% { transform: scale(1, 1); }
  18% { transform: scale(1.25, .72) translateY(14px); }
  42% { transform: scale(.86, 1.2) translateY(-46px); }
  66% { transform: scale(1.08, .92) translateY(0); }
  100% { transform: scale(1, 1); }
}
.spark { position: absolute; z-index: 4; width: 16px; height: 16px; pointer-events: none;
  clip-path: polygon(50% 0, 62% 36%, 100% 38%, 70% 60%, 80% 100%, 50% 76%, 20% 100%, 30% 60%, 0 38%, 38% 36%);
  animation: spark .8s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.3); opacity: 0; } }
.boing-word {
  position: absolute; z-index: 5; pointer-events: none;
  font-family: var(--heading); font-size: 1.5rem; color: var(--mint-hi);
  -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill;
  transform: translate(-50%, -50%) rotate(-8deg);
  animation: word .8s ease-out forwards;
}
@keyframes word { 0% { opacity: 0; margin-top: 0; } 20% { opacity: 1; } 100% { opacity: 0; margin-top: -60px; } }

@media (max-width: 900px) {
  .hero { padding: 40px 0 120px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero .wrap > :first-child { text-align: center; }
  .logo { margin-left: auto; margin-right: auto; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .facts { justify-content: center; }
  .stage { max-width: 620px; margin: 0 auto; width: 100%; padding-right: 44px; }
  .stage .key { width: 68px; height: 52px; margin-top: -40px; }
  .go { font-size: 2.4rem; left: -10px; top: -22px; }
}
@media (max-width: 560px) {
  .float { --size: .72; }
  .float.hide-small { display: none; }
  .facts { gap: 6px 10px; }
  .facts li + li::before { content: none; }
  .facts li { background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 2px 12px; }
  .hero-edge svg { height: 56px; }
}

/* ------------------------------------------------------------- sections --- */

section { padding: clamp(60px, 9vw, 110px) 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { color: var(--ink-soft); }

/* A big rounded panel in one of the game's colours. */
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  border: var(--line) solid var(--ink); border-radius: 36px;
  box-shadow: 0 10px 0 var(--ink);
  padding: clamp(36px, 6vw, 70px) clamp(18px, 5vw, 60px);
}
.panel::before { /* a soft race-check in the corner */
  content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 260px; height: 260px;
  background: repeating-conic-gradient(rgba(255, 255, 255, .13) 0 25%, transparent 0 50%) 0 0 / 40px 40px;
  transform: rotate(14deg); border-radius: 30px;
}
.panel .section-head .lead { color: inherit; }
.p-purple { background: var(--purple-deep); color: #fff; }
.p-purple h2 { color: #fff; }
.p-mint { background: var(--mint); color: var(--ink); }
.p-gold { background: var(--gold); color: var(--ink); }
.p-gold::before, .p-mint::before { background: repeating-conic-gradient(rgba(30, 37, 86, .07) 0 25%, transparent 0 50%) 0 0 / 40px 40px; }
.p-navy { background: var(--ink); color: #fff; }
.p-navy h2 { color: #fff; }
.p-navy .card { box-shadow: 0 var(--lift) 0 var(--gold); }

/* The race ribbon between parts. */
.checker {
  height: 18px; border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink);
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 18px 18px;
}

/* how to play: the game's own controls */
.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.control { padding: 26px 24px 24px; text-align: center; }
.control p { margin: 0; color: var(--ink-soft); }
.pad { width: 104px; height: 104px; margin: 0 auto 16px; display: grid; place-items: center; }
.stick { border-radius: 50%; background: rgba(30, 37, 86, .12); border: var(--line) solid var(--ink); }
.stick span { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: var(--line) solid var(--ink); box-shadow: 0 4px 0 var(--ink); transform: translateX(18px); }
.round-btn {
  border-radius: 50%; border: var(--line) solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  display: grid; place-items: center; align-content: center; gap: 0;
  font-family: var(--heading); font-size: .95rem; letter-spacing: .04em;
}
.round-btn svg { width: 44px; height: 44px; }
.jump { background: linear-gradient(var(--gold-hi) 0 52%, var(--gold) 52%); color: var(--ink); }
.boing-btn { background: linear-gradient(var(--mint-hi) 0 52%, var(--mint) 52%); color: var(--ink); }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.flow figure { margin: 0; }
.flow figcaption { text-align: center; margin-top: 18px; }
.flow figcaption b { display: block; font-family: var(--heading); font-weight: 400; font-size: 1.35rem; }
.flow figcaption span { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 860px) { .controls, .flow { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }

/* the rounds */
.rounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.round { overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.round img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--line) solid var(--ink); }
.round .body { padding: 18px 20px 20px; }
.round .name {
  display: inline-block; margin: -38px 0 10px; position: relative;
  font-family: var(--heading); font-size: 1.2rem; letter-spacing: .03em;
  background: var(--gold); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: 12px; padding: 3px 12px;
  box-shadow: 0 4px 0 var(--ink);
}
.round p { margin: 0; color: var(--ink-soft); }
.round.more { justify-content: center; text-align: center; padding: 26px 22px; background: #fff7d6; }
.round.more h3 { margin-bottom: 10px; }
@media (max-width: 960px) { .rounds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rounds { grid-template-columns: 1fr; } }

/* ways to play: show cards, like the game's Choose a Show screen */
.shows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.show { overflow: hidden; display: flex; flex-direction: column; }
.show .top { position: relative; height: 128px; display: grid; place-items: center; border-bottom: var(--line) solid var(--ink); }
.show .top svg { width: 74px; height: 74px; }
.show .tag {
  position: absolute; left: 12px; top: 12px;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: #fff; border-radius: 8px; padding: 2px 9px;
}
.show .body { padding: 18px 18px 20px; }
.show h3 { font-size: 1.5rem; margin-bottom: 8px; }
.show p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.s-show .top { background: var(--purple); }
.s-week .top { background: var(--coral); }
.s-friends .top { background: var(--sky); }
.s-book .top { background: var(--mint); }
@media (max-width: 960px) { .shows { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .shows { grid-template-columns: 1fr; } }

/* split: words and pictures */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.stack { position: relative; padding-bottom: 18%; }
.stack .screen:nth-child(2) { position: absolute; width: 74%; right: -2%; bottom: 0; }
.stack .screen:first-child { width: 82%; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; padding: 14px 16px 14px 66px; background: #fff; border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 50%; margin-top: -19px; width: 38px; height: 38px;
  display: grid; place-items: center;
  font-family: var(--heading); font-size: 1.3rem;
  background: var(--gold); border: var(--line) solid var(--ink); border-radius: 50%;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 0; list-style: none; }
.chips li { background: #fff; color: var(--ink); border: var(--line) solid var(--ink); border-radius: 999px; padding: 5px 14px; font-size: .95rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
}

/* the Pals on their shelf */
.shelf { position: relative; max-width: 1060px; margin: 0 auto; }
.shelf .row { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; padding: 0 3%; }
.shelf .row img { width: 14%; margin: 0 -2.3%; }
.shelf .row img:nth-child(odd) { margin-bottom: 1.4%; }
.shelf .board { position: relative; z-index: 1; margin-top: -4.5%; }
.shelf .board svg { width: 100%; height: auto; display: block; }
.pals-more { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 56px; }
.pals-more ul { padding-left: 1.1em; margin: 0; }
.pals-more li { margin-bottom: .5em; }
@media (max-width: 900px) {
  .pals-more { grid-template-columns: 1fr; }
  .shelf .row img { width: 21%; margin: 0 -2.6%; }
  .shelf .row img.extra { display: none; }
}

/* every day */
.daily { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.daily .card { padding: 22px 20px; }
.daily h3 { margin-bottom: 8px; }
.daily p { margin: 0; color: var(--ink-soft); }
.daily-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
@media (max-width: 860px) { .daily, .daily-shots { grid-template-columns: 1fr; } }

/* screens */
.strip {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 22px; margin: 0 -4px;
}
.strip img {
  flex: 0 0 auto; width: min(80vw, 400px); aspect-ratio: 16 / 9; object-fit: cover;
  border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink);
  scroll-snap-align: start; background: #fff;
}

/* good to know */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { padding: 26px 18px 22px; text-align: center; color: var(--ink); }
.tile svg { width: 56px; height: 56px; margin: 0 auto 12px; display: block; }
.tile b { display: block; font-family: var(--heading); font-weight: 400; font-size: 1.3rem; margin-bottom: 4px; }
.tile span { font-size: .95rem; color: var(--ink-soft); }
.panel-foot { text-align: center; margin: 40px 0 0; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

/* faq: the wind-up key turns when a question opens */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { padding: 0 22px; --lift: 4px; }
.faq summary {
  cursor: pointer; font-size: 1.1rem; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .key { flex: 0 0 auto; width: 34px; height: 26px; transition: transform .25s ease; }
.faq details[open] summary .key { transform: rotate(90deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 18px; }

/* ---------------------------------------------------------------- footer --- */

.site-foot { background: var(--ink); color: rgba(255, 255, 255, .82); padding: 40px 0 44px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--gold); text-decoration: underline; }
.site-foot .studio { display: flex; align-items: center; gap: 10px; }
.site-foot .studio img { border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-foot .fine { flex-basis: 100%; color: rgba(255, 255, 255, .72); margin: 8px 0 0; }
.site-foot .fine a { text-decoration: underline; }

/* --------------------------------------------------------------- privacy --- */

.legal { padding: 54px 0 90px; }
.prose { max-width: 800px; margin: 0 auto; }
.prose h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); }
.prose h2 { font-size: 1.6rem; margin-top: 2.1em; scroll-margin-top: 90px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-soft); font-size: .95rem; }
.meta-row strong { color: var(--ink); }
.note, .toc {
  background: #fff; border: var(--line) solid var(--ink); border-radius: 20px;
  box-shadow: 0 5px 0 var(--ink); padding: 18px 22px; margin: 26px 0;
}
.note { background: #fff7d6; }
.note p:last-child { margin: 0; }
.toc b { font-family: var(--heading); font-weight: 400; font-size: 1.2rem; }
.toc ol { columns: 2; margin: 8px 0 0; padding-left: 1.3em; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.data-table-wrap { overflow-x: auto; border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: 11px 14px; border-bottom: 2px solid #dfe6f7; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { background: var(--gold); border-bottom: var(--line) solid var(--ink); }

/* --------------------------------------------------------- ready to race --- */

/* The last word on the page: the sky, three Pals cheering on the toy
   island, and one store button. */
.p-sky { background: linear-gradient(var(--sky-top), #7cc0ff); color: #fff; }
.ready { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.ready h2 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.ready h2 em { font-style: normal; color: var(--gold); }
.ready .lead { color: #fff; text-shadow: 0 1px 0 rgba(30, 37, 86, .45); max-width: 30em; margin: 0 0 28px; }
.ready-pals { position: relative; }
.ready-pals img { position: relative; z-index: 2; width: 36%; margin: 0 -5%; vertical-align: bottom; animation: bob 5.5s ease-in-out infinite; }
.ready-pals img:nth-child(2) { width: 42%; animation-delay: -1.8s; }
.ready-pals img:nth-child(3) { animation-delay: -3.6s; }
.ready-pals { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; }
.ready-pals .island { flex-basis: 100%; width: 100%; margin: -9% 0 0; }
@media (max-width: 860px) {
  .ready { grid-template-columns: 1fr; text-align: center; }
  .ready .lead { margin-left: auto; margin-right: auto; }
  .ready-pals { max-width: 420px; margin: 0 auto; }
}

/* -------------------------------------------------------------- trailer --- */
/* A poster until pressed, then the YouTube player (as Bubble Springs' page). */
.video { max-width: 960px; margin: 0 auto; }
.video-poster, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--ink);
  box-shadow: 0 var(--lift) 0 var(--ink); }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vw, 28px); display: inline-flex;
  align-items: center; gap: 10px; padding: 14px 24px 14px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 700; white-space: nowrap; transition: transform .18s ease; }
.video-play svg { width: 24px; height: 24px; fill: currentColor; }
.video-poster:hover .video-play { transform: scale(1.05); }
.video figcaption { margin-top: 14px; text-align: center; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 600px) {
  .video-play { padding: 13px; }
  .video-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .video-play { transition: none; } }
