/* Meind Games - meindgames.com
   Night tarmac, lane-line gold, the game's own Lilita for headings. */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/LilitaOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/Barlow-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --tarmac: #1b1d24;        /* page */
  --tarmac-raised: #242731; /* panels */
  --kerb: #30343f;          /* borders */
  --lane: #ffb81f;          /* the road's centre line, and every action */
  --chalk: #eeede8;         /* text */
  --fog: #a3a8b4;           /* quiet text */
  --night: #7fa2ff;         /* the city glow */
  /* the game's brights, used where something should pop */
  --car: #ff7a1a;           /* the Tensai Sprint's orange */
  --sky: #38bdff;           /* midday sky, shields */
  --lime: #7cff6b;          /* springs, boost pads */
  --pink: #ff4f9a;          /* 2X score */
  --violet: #8b5cff;        /* dusk */
  --meter-w: 38px;          /* the road down the side */

  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.33rem;
  --step-2: 1.77rem;
  --step-3: clamp(2.1rem, 4.4vw, 2.9rem);
  --step-4: clamp(2.7rem, 7vw, 4.6rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--tarmac);
  /* fine-grain asphalt */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--chalk);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: var(--lane); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lane); color: var(--tarmac); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-head { padding-block: 1.1rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--chalk); text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0.02em; }
.site-nav { display: flex; gap: clamp(0.9rem, 3vw, 2rem); }
.site-nav a { color: var(--fog); text-decoration: none; font-weight: 600; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--chalk); border-bottom-color: var(--lane); }

/* ---------- the road's centre line, between sections ---------- */
.lane {
  height: 5px; border: 0; margin: 0;
  background: repeating-linear-gradient(90deg, var(--lane) 0 46px, transparent 46px 82px);
  opacity: 0.85;
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-size: 1.15rem; line-height: 1;
  padding: 0.95rem 1.35rem; border-radius: 14px; text-decoration: none;
  border: 2px solid var(--lane); transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn-go { background: var(--lane); color: #1d1607; box-shadow: 0 5px 0 #b37d06; }
.btn-go:hover { transform: translateY(-2px); }
.btn-go:active { transform: translateY(3px); box-shadow: 0 2px 0 #b37d06; }
.btn-soon { color: var(--fog); border-color: var(--kerb); cursor: default; }
.btn small { font-family: var(--body); font-weight: 600; font-size: 0.8rem; color: var(--fog); }
.btn-go small { color: #5a4205; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
/* neon city light over the top of every page */
.site-head + main, .site-head { position: relative; }
body::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 1100px; pointer-events: none;
  background:
    radial-gradient(40rem 32rem at 80% 26%, rgba(139, 92, 255, 0.42), transparent 70%),
    radial-gradient(30rem 24rem at 68% 64%, rgba(56, 189, 255, 0.24), transparent 70%),
    radial-gradient(36rem 26rem at 6% 72%, rgba(255, 122, 26, 0.26), transparent 70%),
    radial-gradient(26rem 18rem at 30% 0%, rgba(255, 79, 154, 0.18), transparent 70%);
}
body { position: relative; isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); position: relative; z-index: 1; }
.hero-mark { width: clamp(150px, 22vw, 230px); margin-bottom: 1.6rem; transform-origin: 50% 60%; }
.hero h1 { max-width: 12ch; }
.hero .lede { font-size: var(--step-1); line-height: 1.45; color: var(--chalk); max-width: 34ch; }
.hero .lede + p { color: var(--fog); }
.skid { position: absolute; inset: auto 0 0 0; width: 100%; height: 46%; z-index: 0; pointer-events: none; }
.skid path { fill: none; stroke: url(#trail); stroke-width: 7; stroke-linecap: round; opacity: 0.95; filter: drop-shadow(0 0 8px rgba(255, 122, 26, 0.8)); }
.skid path + path { stroke: url(#trail2); filter: drop-shadow(0 0 8px rgba(139, 92, 255, 0.85)); }
#sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* the phone, tipped like a car mid-drift */
.showreel { justify-self: center; display: grid; justify-items: center; gap: 1.1rem; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 16;
  border-radius: 38px; padding: 10px; background: #0d0e12;
  border: 2px solid var(--kerb);
  box-shadow: 0 30px 90px -18px rgba(56, 189, 255, 0.55), 0 0 0 2px rgba(139, 92, 255, 0.5), 0 0 0 1px #000 inset;
  transform: rotate(4deg);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #000; }

/* load sequence (js adds .play; without js, or with reduced motion, everything just shows) */
.js .hero-mark, .js .hero h1, .js .hero p, .js .hero .hero-cta, .js .hero .showreel { opacity: 0; }
.js .skid path { stroke-dasharray: 2600; stroke-dashoffset: 2600; }
.play .hero-mark { animation: slam 0.42s cubic-bezier(0.55, 0, 1, 0.45) 0.15s forwards, squash 0.4s ease-out 0.57s; }
.play .skid path { animation: draw 1.1s cubic-bezier(0.3, 0.6, 0.3, 1) 0.5s forwards; }
.play .skid path + path { animation-delay: 0.62s; }
.play .hero h1 { animation: rise 0.5s ease-out 0.72s forwards; }
.play .hero p { animation: rise 0.5s ease-out 0.84s forwards; }
.play .hero .hero-cta { animation: rise 0.5s ease-out 0.96s forwards; }
.play .hero .showreel { animation: phone-in 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.6s forwards; }
@keyframes slam { from { opacity: 0; transform: scale(2.6) rotate(10deg); } 30% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes squash { 0% { transform: scale(1.08, 0.9); } 45% { transform: scale(0.97, 1.04); } 100% { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes phone-in { from { opacity: 0; transform: translateX(40px) rotate(8deg); } to { opacity: 1; transform: none; } }

/* ---------- the game ---------- */
.game { padding-block: clamp(3rem, 8vw, 6rem); }
.game-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.8rem; }
.game-head img.icon { width: 96px; height: 96px; border-radius: 22px; border: 2px solid var(--kerb); }
.game-head .logo { width: min(460px, 70vw); height: auto; }
.game .about { font-size: var(--step-1); line-height: 1.45; max-width: 40ch; }

/* a drive through the day, left to right */
.drive { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-block: 2.4rem; padding: 0; list-style: none; }
.drive li { margin: 0; }
.drive img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; border: 2px solid var(--kerb); }
.drive li { transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.3, 1.4); }
.drive li:hover { transform: rotate(-2.5deg) translateY(-6px); }
.drive li:nth-child(even):hover { transform: rotate(2.5deg) translateY(-6px); }
.drive b { display: block; margin-top: 0.7rem; font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--hue, var(--lane)); }
.drive li:nth-child(1) { --hue: var(--sky); }
.drive li:nth-child(2) { --hue: var(--car); }
.drive li:nth-child(3) { --hue: var(--lime); }
.drive li:nth-child(4) { --hue: var(--pink); }
.drive img { border-color: var(--hue) !important; box-shadow: 0 18px 40px -18px var(--hue); transition: box-shadow 0.25s ease; }
.drive li:hover img { box-shadow: 0 22px 50px -10px var(--hue); }
.drive span { display: block; color: var(--fog); font-size: var(--step--1); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 3rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.features li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.features h3 { transition: color 0.2s ease; }
.features img { width: 64px; height: 64px; }
.features li:hover img { transform: rotate(-8deg) scale(1.12); }
.features h3 { margin-bottom: 0.25em; }
.features p { color: var(--fog); margin: 0; }
.fine { color: var(--fog); font-size: var(--step--1); margin-top: 2rem; }

/* ---------- studio ---------- */
.studio { padding-block: clamp(3rem, 8vw, 6rem); }
.studio .wrap { display: grid; gap: clamp(3rem, 8vw, 5.5rem); }
.studio-intro { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.studio .wordmark { width: clamp(200px, 26vw, 300px); margin-top: 0.4rem; }

/* ---------- reading pages ---------- */
.page { padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem); }
.page h1 { font-size: var(--step-3); }
.page h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.page .meta { color: var(--fog); }
.contact {
  display: grid; gap: 0.3rem; padding: 1.4rem 1.6rem; margin-block: 1.6rem 2.4rem;
  background: var(--tarmac-raised); border-left: 5px solid var(--lane); border-radius: 4px 16px 16px 4px; max-width: 640px;
}
.contact a { font-family: var(--display); font-size: var(--step-1); }
.faq { max-width: 760px; }
.faq details { border-bottom: 2px dashed var(--kerb); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.4rem 1.05rem 0; position: relative;
  font-weight: 600; font-size: var(--step-1); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 3px solid var(--lane); border-bottom: 3px solid var(--lane); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { color: var(--fog); padding-bottom: 0.6rem; }

.game-page .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.game-page .showreel { position: sticky; top: 2rem; align-self: start; }
.game-page .phone { transform: rotate(-3deg); }

/* ---------- footer ---------- */
.site-foot { padding-block: 2.2rem 3rem; color: var(--fog); font-size: var(--step--1); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-foot a { color: var(--chalk); }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .game-page .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .phone, .game-page .phone { width: min(260px, 70vw); }
  .game-page .showreel { position: static; }
  .features { grid-template-columns: 1fr; }
  .drive { grid-template-columns: repeat(2, 1fr); }
  .studio .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .game-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .hero-mark, .js .hero h1, .js .hero p, .js .hero .hero-cta, .js .hero .showreel { opacity: 1; }
  .js .skid path { stroke-dashoffset: 0; }
}

/* ---------- store badges: the official artwork, never restyled ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem 0.9rem; margin-top: 1.7rem; }
.store { display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem; text-decoration: none; border-radius: 10px; }
.store img { height: 54px; width: auto; }
a.store { transition: transform 0.15s ease; }
a.store:hover { transform: translateY(-3px) rotate(-1deg); }
a.store:active { transform: scale(0.97); }
.store.soon { cursor: default; }
.store.soon small { font-weight: 600; font-size: 0.8rem; color: var(--fog); }

/* ---------- the M: tap it and it slams down again ---------- */
.slam { all: unset; display: block; width: fit-content; cursor: pointer; border-radius: 12px; }
.slam:focus-visible { outline: 3px solid var(--night); outline-offset: 6px; }
.slam:hover .hero-mark { transform: rotate(-4deg) scale(1.03); transition: transform 0.2s ease; }
.hero-mark.reslam { animation: slam 0.42s cubic-bezier(0.55, 0, 1, 0.45) forwards, squash 0.4s ease-out 0.42s; }

/* the game's own tutorial finger, sliding over the footage */
.phone .finger {
  object-fit: contain; background: none; border-radius: 0;
  position: absolute; left: 50%; bottom: 16%; width: 30%; height: auto; margin-left: -15%;
  pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
  animation: thumb 2.6s ease-in-out 1.4s infinite;
}
@keyframes thumb { 0%, 100% { transform: translateX(-38%) rotate(-6deg); } 50% { transform: translateX(38%) rotate(6deg); } }
.reel-note { margin: 0; font-family: var(--display); font-size: 1.05rem; color: var(--fog); text-align: center; }

/* ---------- what's on the road: a page out of a game manual ---------- */
.road, .tips, .more { position: relative; padding-block: clamp(3rem, 8vw, 6rem); }
.road { background: radial-gradient(40rem 26rem at 90% 10%, rgba(255, 79, 154, 0.16), transparent 70%), radial-gradient(36rem 24rem at 0% 100%, rgba(56, 189, 255, 0.14), transparent 70%); }
.more { background: radial-gradient(40rem 26rem at 100% 100%, rgba(124, 255, 107, 0.12), transparent 70%), radial-gradient(34rem 24rem at 0% 0%, rgba(139, 92, 255, 0.16), transparent 70%); }
.game { background: radial-gradient(40rem 24rem at 100% 0%, rgba(255, 122, 26, 0.13), transparent 70%); }
.intro { color: var(--fog); font-size: var(--step-1); line-height: 1.45; max-width: 44ch; }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 2.6rem; margin: 2.4rem 0 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: center; }
.legend img, .features img {
  width: 72px; height: 72px; object-fit: contain; padding: 8px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hue, var(--lane)) 70%, transparent) 0%, color-mix(in srgb, var(--hue, var(--lane)) 26%, transparent) 58%, transparent 71%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.3, 1.6);
}
.legend li:nth-child(1), .features li:nth-child(1) { --hue: var(--lane); }
.legend li:nth-child(2), .features li:nth-child(2) { --hue: var(--sky); }
.legend li:nth-child(3), .features li:nth-child(3) { --hue: var(--sky); }
.legend li:nth-child(4), .features li:nth-child(4) { --hue: var(--pink); }
.legend li:nth-child(5), .features li:nth-child(5) { --hue: var(--lime); }
.legend li:nth-child(6), .features li:nth-child(6) { --hue: var(--violet); }
.legend li:nth-child(7) { --hue: var(--pink); }
.legend li:nth-child(8) { --hue: var(--violet); }
.legend li:nth-child(9) { --hue: var(--car); }
.legend h3, .features h3 { color: var(--chalk); }
.legend li:hover h3, .features li:hover h3 { color: var(--hue); }
.legend li:hover img { transform: translateY(-4px) rotate(8deg) scale(1.1); }
.legend h3 { margin-bottom: 0.15em; }
.legend p { margin: 0; color: var(--fog); font-size: 0.98rem; line-height: 1.45; }

/* ---------- the garage: the game's own showroom, PREV and NEXT included ---------- */
.garage-head { display: flex; align-items: center; gap: 1.2rem; }
.garage-head img { width: 84px; height: 84px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); flex: none; }
.garage-head h2 { margin-bottom: 0.15em; }
.garage-head .intro { margin: 0; }
.showroom {
  position: relative; margin-top: 2.2rem; border-radius: 26px; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 1rem 2rem;
  padding: clamp(1.4rem, 4vw, 2.6rem) clamp(1.4rem, 4vw, 3rem) clamp(4.8rem, 7vw, 5.4rem);
  background: radial-gradient(70% 90% at 35% 70%, #3a3150 0%, #231d33 45%, #17141f 100%);
  border: 2px solid var(--kerb);
}
.showroom::before {   /* the turntable the cars sit on */
  content: ""; position: absolute; left: 6%; width: 52%; bottom: 4.9rem; height: 64px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 184, 31, 0.22), rgba(255, 184, 31, 0.05) 70%, transparent);
  border: 2px solid rgba(255, 184, 31, 0.25);
}
.car-spot { position: relative; height: clamp(190px, 26vw, 300px); display: flex; align-items: flex-end; justify-content: center; }
.car-spot img { max-height: 100%; width: auto; max-width: 100%; transform-origin: 50% 90%; }
.car-spot img.out-left { animation: out-left 0.22s ease-in forwards; }
.car-spot img.out-right { animation: out-right 0.22s ease-in forwards; }
.car-spot img.in-left { animation: in-left 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
.car-spot img.in-right { animation: in-right 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
.car-spot img:hover { animation: hop 0.5s cubic-bezier(0.3, 0.7, 0.3, 1.4); }
@keyframes out-left { to { transform: translateX(-60%) skewX(14deg); opacity: 0; } }
@keyframes out-right { to { transform: translateX(60%) skewX(-14deg); opacity: 0; } }
@keyframes in-left { from { transform: translateX(-70%) skewX(-14deg); opacity: 0; } 70% { transform: translateX(3%) skewX(3deg); opacity: 1; } to { transform: none; } }
@keyframes in-right { from { transform: translateX(70%) skewX(14deg); opacity: 0; } 70% { transform: translateX(-3%) skewX(-3deg); opacity: 1; } to { transform: none; } }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-14px) rotate(-2deg); } 70% { transform: translateY(2px) scaleY(0.97); } }
.car-tag { display: grid; gap: 0.3rem; justify-items: start; }
.car-count { font-weight: 600; font-size: var(--step--1); color: var(--fog); font-variant-numeric: tabular-nums; }
.car-tag h3 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0; letter-spacing: 0.01em; }
.car-price { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-family: var(--display); font-size: 1.35rem; color: var(--lane); }
.car-price img { width: 30px; height: 30px; object-fit: contain; }
.car-note { margin: 0.3rem 0 0; color: var(--fog); max-width: 30ch; }
.arcade {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.02em; color: #fff; cursor: pointer;
  background: #f5781f; border: 0; border-radius: 14px; padding: 0.8rem 1.3rem;
  box-shadow: 0 5px 0 #a8460b, 0 10px 18px -8px rgba(0, 0, 0, 0.6); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.arcade:hover { transform: translateY(-2px); }
.arcade:active { transform: translateY(4px); box-shadow: 0 1px 0 #a8460b; }
.showroom .prev, .showroom .next { position: absolute; bottom: 1.2rem; }
.showroom .prev { left: clamp(1.2rem, 4vw, 3rem); }
.showroom .next { right: clamp(1.2rem, 4vw, 3rem); }

/* ---------- car talk: real-world facts and quotes ---------- */
.tip-card {
  position: relative; max-width: 820px; margin-inline: auto; overflow: hidden;
  padding: clamp(1.6rem, 5vw, 2.8rem) clamp(1.3rem, 5vw, 3.2rem);
  background: linear-gradient(135deg, #5b2bff 0%, #8b5cff 55%, #c04cff 100%); border-radius: 28px;
  box-shadow: 0 30px 70px -30px rgba(139, 92, 255, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.12) inset;
  transform: rotate(-1deg);
}
.tip-card::before {   /* the big quote mark */
  content: "\201C"; position: absolute; right: 1.2rem; top: -2.2rem; font-family: var(--display); font-size: 13rem; line-height: 1;
  color: var(--lane); opacity: 0.9; pointer-events: none;
}
.tip-card.is-fact::before { content: "!"; top: -0.6rem; right: 2rem; font-size: 10rem; color: var(--lime); }
.tip-top { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.tip-card h2 { font-size: var(--step-2); color: #fff; margin: 0; }
.tip-kind { font-weight: 600; font-size: 0.85rem; color: #1d1607; background: var(--lane); padding: 0.2rem 0.7rem; border-radius: 999px; transform: rotate(3deg); }
.is-fact .tip-kind { background: var(--lime); }
.tip-body { position: relative; min-height: 9.5rem; margin: 1.3rem 0 1.5rem; display: grid; align-content: center; }
.tip-body.flip { animation: tip-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
@keyframes tip-in { from { opacity: 0; transform: translateY(10px) rotateX(40deg); } to { opacity: 1; transform: none; } }
.talk-quote { margin: 0; }
.talk-quote p { font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.15; color: #fff; max-width: 24ch; margin: 0 0 0.7rem; text-wrap: balance; }
.talk-quote footer { font-weight: 600; color: #fff3c4; }
.talk-quote footer::before { content: "— "; }
.talk-fact { font-size: clamp(1.25rem, 2.5vw, 1.65rem); line-height: 1.4; color: #fff; max-width: 34ch; margin: 0; text-wrap: balance; }
.tip-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.tip-count { color: #e6dcff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- get the game ---------- */
.get { padding-block: clamp(2.5rem, 6vw, 4rem); background: linear-gradient(100deg, var(--car) 0%, #ff9a1f 55%, var(--lane) 100%); color: #1d1205; }
.get .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 1.6rem; align-items: center; }
.get .icon { width: 96px; height: 96px; border-radius: 22px; border: 3px solid #1d1205; transform: rotate(-4deg); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5); }
.get h2 { font-size: var(--step-2); margin: 0 0 0.2em; }
.get p { margin: 0; color: #3b2208; font-weight: 600; }
.get .store.soon small { color: #3b2208; }
.get .stores { margin: 0; }

/* ---------- five coins hidden around the page ---------- */
.secret-coin {
  position: absolute; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 50%; animation: coin-spin 2.4s linear infinite;
}
.secret-coin img { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.secret-coin:hover { animation-duration: 0.6s; }
.secret-coin.got { animation: coin-get 0.5s ease-out forwards; pointer-events: none; }
@keyframes coin-spin { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes coin-get { 0% { transform: scale(1); } 40% { transform: translateY(-30px) scale(1.4); opacity: 1; } 100% { transform: translateY(-60px) scale(0.4); opacity: 0; } }
.secret-coin.c1 { right: 6%; bottom: 7%; }
.secret-coin.c2 { right: 4%; top: 2.2rem; }
.secret-coin.c3 { right: 1.4rem; top: 1.2rem; width: 34px; height: 34px; }
.secret-coin.c4 { left: 7%; bottom: 2.2rem; width: 36px; height: 36px; }
.site-foot .wrap { position: relative; }
.secret-coin.c5 { position: static; width: 30px; height: 30px; }
.coin-count {
  position: fixed; z-index: 50; right: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 0.6rem; max-width: min(360px, calc(100vw - 2rem));
  padding: 0.6rem 1rem 0.6rem 0.7rem; border-radius: 18px; background: #0f1015; border: 2px solid var(--lane);
  font-family: var(--display); font-size: 1rem; line-height: 1.25; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  animation: rise 0.3s ease-out;
}
.coin-count img { width: 28px; height: 28px; flex: none; }
.joke { color: var(--fog); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .phone .finger { animation: none; transform: none; }
  .secret-coin { animation: none; }
}

/* ---------- narrow screens, for the sections above ---------- */
@media (max-width: 860px) {
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showroom { grid-template-columns: 1fr; text-align: center; padding-bottom: 5.2rem; }
  .showroom::before { left: 15%; width: 70%; bottom: auto; top: calc(clamp(1.4rem, 4vw, 2.6rem) + clamp(190px, 46vw, 260px) - 40px); }
  .car-spot { height: clamp(190px, 46vw, 260px); }
  .car-tag { justify-items: center; }
  .car-note { margin-inline: auto; }
  .get .wrap { grid-template-columns: auto minmax(0, 1fr); }
  .get .stores { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .legend { grid-template-columns: 1fr; gap: 1.3rem; }
  .legend li { grid-template-columns: 56px minmax(0, 1fr); }
  .legend img { width: 56px; height: 56px; }
  .stores { gap: 0.6rem; }
  .store img { height: 46px; }
  .arcade { font-size: 1rem; padding: 0.7rem 1rem; }
  .features { grid-template-columns: 1fr; }
  .features li { grid-template-columns: 52px minmax(0, 1fr); }
  .features img { width: 52px; height: 52px; }
  .tip-text { min-height: 5.6em; }
}

/* ---------- the road down the side: the Tensai Sprint is the scroll position ---------- */
.js { scrollbar-width: none; }
.js::-webkit-scrollbar { width: 0; height: 0; }
.meter { display: none; }
.js .meter {
  display: block; position: fixed; z-index: 40; top: 0; right: 0; bottom: 0;
  width: var(--meter-w); padding-right: env(safe-area-inset-right, 0px); box-sizing: content-box;
  cursor: grab; touch-action: none; --road: 0px; background: #2c2f3a;
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.35);
}
/* red-and-white kerbs on both edges and a dashed centre line, all rolling under the car */
.js .meter::before, .js body::after {
  content: ""; position: absolute; inset: 0 env(safe-area-inset-right, 0px) 0 0; pointer-events: none;
  background:
    linear-gradient(#e0483b 50%, #f4f2ec 50%) left 0 top var(--road) / 4px 28px repeat-y,
    linear-gradient(#e0483b 50%, #f4f2ec 50%) right 0 top var(--road) / 4px 28px repeat-y,
    linear-gradient(rgba(255, 255, 255, 0.85) 0 16px, transparent 16px) 50% var(--road) / 3px 34px repeat-y;
}
/* the same road painted down the page itself, under the fixed one. Phone browsers
   won't draw fixed things under the notch, the search bar or the home bar, but they
   do draw the page there, so the road still runs edge to edge. */
.js body::after {
  --road: 0px; left: auto; right: 0; width: var(--meter-w); z-index: 39;
  border-right: env(safe-area-inset-right, 0px) solid #2c2f3a; background-color: #2c2f3a; box-sizing: content-box;
}
.meter img {
  position: absolute; left: calc(var(--meter-w) / 2); top: 0; width: calc(var(--meter-w) - 14px); height: auto;
  transform: translate3d(-50%, 8px, 0); transform-origin: 50% 50%;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); pointer-events: none;
}
/* the part of the screen nothing covers: the car stays inside it */
.meter-band {
  position: fixed; right: 0; width: 0; top: env(safe-area-inset-top, 0px); bottom: env(safe-area-inset-bottom, 0px);
  visibility: hidden; pointer-events: none;
}
.meter:active { cursor: grabbing; }
.coin-count { right: calc(var(--meter-w) + env(safe-area-inset-right, 0px) + 0.8rem); }
/* the page keeps clear of the road, the notch and the home bar */
.js body { padding-right: calc(var(--meter-w) + env(safe-area-inset-right, 0px)); }
body { padding-left: env(safe-area-inset-left, 0px); }
.site-head { padding-top: calc(1.1rem + env(safe-area-inset-top, 0px)); }
.site-foot { padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 860px) {
  :root { --meter-w: 26px; }
}

/* racing-livery stripes under the big headings */
.road h2::after, .more h2::after, .studio h2::after, .page h1::after, .game-page h1::after {
  content: ""; display: block; width: 96px; height: 8px; margin-top: 0.55rem; transform: skewX(-24deg);
  background: linear-gradient(90deg, var(--car) 0 33%, transparent 33% 38%, var(--pink) 38% 66%, transparent 66% 71%, var(--sky) 71%);
}
.tip-card::before { top: -1.1rem; }

/* ---------- the hero's one button: down to Driftline ---------- */
.hero-cta { display: inline-block; margin-top: 1.6rem; text-decoration: none; font-size: 1.2rem; padding: 0.95rem 1.5rem; }
.game .stores { margin: 0 0 0.6rem; }

/* ---------- socials ---------- */
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.socials span { font-family: var(--display); color: var(--chalk); margin-right: 0.3rem; }
.social {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7); transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.3, 1.6);
}
.social svg, .social-btn svg { width: 24px; height: 24px; fill: currentColor; }
.social:hover { transform: translateY(-3px) rotate(-8deg) scale(1.08); }
.social:active { transform: scale(0.95); }
.social.tiktok { background: #111; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 #fe2c55, 0 8px 18px -8px rgba(0, 0, 0, 0.7); }
.social.instagram { background: radial-gradient(circle at 30% 110%, #ffd600 0%, #ff7a00 25%, #ff0069 55%, #d300c5 75%, #7638fa 100%); }
.social.facebook { background: #1877f2; }

/* ---------- meet Delano ---------- */
.founder { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(1.8rem, 6vw, 4.5rem); align-items: center; }
.founder-photo { margin: 0; position: relative; transform: rotate(-3deg); }
.founder-photo::before {   /* a bright card behind the photo, like a sticker on the dash */
  content: ""; position: absolute; inset: 0; border-radius: 26px; transform: rotate(7deg) translate(10px, 8px);
  background: linear-gradient(135deg, var(--car), var(--pink) 60%, var(--violet));
}
.founder-photo img { position: relative; width: 100%; border-radius: 22px; border: 4px solid #fff; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8); }
.founder-text h2 { font-size: var(--step-3); }
.founder-text h2::after {
  content: ""; display: block; width: 96px; height: 8px; margin-top: 0.55rem; transform: skewX(-24deg);
  background: linear-gradient(90deg, var(--car) 0 33%, transparent 33% 38%, var(--pink) 38% 66%, transparent 66% 71%, var(--sky) 71%);
}
.founder-text .lede { font-size: var(--step-1); line-height: 1.45; color: var(--chalk); }
.founder-text p { color: var(--fog); }
.social-btn {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 0.4rem; padding: 0.8rem 1.2rem; border-radius: 14px;
  background: #0a66c2; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.05rem;
  box-shadow: 0 5px 0 #064582, 0 12px 22px -10px rgba(10, 102, 194, 0.8); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #064582; }
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder-photo { width: min(270px, 72%); margin-inline: auto; }
  .studio-intro { grid-template-columns: 1fr; }
}

/* the Games page title is the Driftline wordmark itself */
.logo-title { margin: 0 0 1.2rem; }
.logo-title img { width: min(480px, 100%); height: auto; }
