/* Tiny Toy Car Turbo: site styles. Warm wood, gold accents, italic condensed headings. */
:root {
  --wood-dark: #1f160f;
  --wood: #2e2219;
  --wood-mid: #4a3829;
  --wood-light: #6b4f36;
  --ink: #fff6ea;
  --muted: #d9c8b2;
  --dim: #a8947c;
  --gold: #ffd21f;
  --gold-hi: #ffe066;
  --gold-deep: #c98a05;
  --red: #e2402f;
  --card: rgba(20, 12, 6, 0.42);
  --line: rgba(255, 210, 31, 0.28);
  --radius: 18px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --num: 'Russo One', 'Barlow Condensed', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--wood);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 190, 110, 0.22), transparent 70%),
    repeating-linear-gradient(92deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 9px, rgba(255, 220, 170, 0.025) 9px 11px, transparent 11px 23px),
    linear-gradient(180deg, var(--wood-mid) 0, var(--wood) 900px, var(--wood-dark) 100%);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* Headings */
.title {
  font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 7vw, 58px); line-height: 0.98; letter-spacing: 0.5px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}
.title em { color: var(--gold); font-style: italic; display: inline-block; }
.sub { color: var(--muted); max-width: 640px; margin: 12px 0 0; font-size: 18px; }
.tag {
  display: inline-block; font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: 14px; line-height: 1; padding: 6px 10px 5px; border-radius: 6px;
  background: var(--gold); color: #241603;
}

/* App Store button */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 16px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #f5b800);
  color: #1d1203; text-decoration: none; box-shadow: 0 5px 0 #9c6c06, 0 14px 26px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-btn img { width: 48px; height: 48px; border-radius: 11px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.store-btn span { display: flex; flex-direction: column; font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 28px; line-height: 0.95; letter-spacing: 0.5px; }
.store-btn small { font-size: 14px; font-weight: 700; letter-spacing: 1px; opacity: 0.8; }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #9c6c06, 0 18px 30px rgba(0, 0, 0, 0.45); }
.store-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #9c6c06, 0 8px 16px rgba(0, 0, 0, 0.4); }
.store-btn:focus-visible, .shots-nav:focus-visible, .shots:focus-visible, .footer a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Hero */
.hero { padding: 22px 0 34px; position: relative; }
.hero-grid { display: grid; gap: 26px; align-items: center; }
.hero-copy { text-align: center; }
.logo img { width: min(520px, 100%); margin: 0 auto -6px; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.5)); }
.kicker {
  font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; color: var(--gold-hi);
  font-size: clamp(24px, 5.4vw, 34px); line-height: 1.05; margin: 0 0 8px; letter-spacing: 0.5px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
.lede { color: var(--muted); margin: 0 auto 20px; max-width: 520px; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 14px 18px; flex-wrap: wrap; }
.free-note { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-size: 18px; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.badges li {
  font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: 1.2px; font-size: 15px;
  padding: 5px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--gold);
}
.device {
  position: relative; border-radius: 26px; padding: 9px; background: linear-gradient(160deg, #3a3a40, #121214 40%, #26262b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 26px 50px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 210, 31, 0.12);
}
.device video { width: 100%; aspect-ratio: 1280 / 590; border-radius: 18px; background: #000; object-fit: cover; }
@media (min-width: 960px) {
  .hero { padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 5fr 7fr; gap: 44px; }
  .hero-copy { text-align: left; }
  .logo img { margin: 0 0 -6px -10px; }
  .lede { margin-left: 0; }
  .cta-row, .badges { justify-content: flex-start; }
  .device { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }
}

/* Stats strip */
.stats {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; text-align: center; }
.stats-grid div { display: flex; flex-direction: column; align-items: center; }
.stats b { font-family: var(--num); font-weight: 400; font-size: clamp(40px, 10vw, 60px); line-height: 1; color: var(--gold); text-shadow: 0 4px 0 #8a5a00, 0 8px 18px rgba(0, 0, 0, 0.5); }
.stats span { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: 1px; font-size: 17px; color: var(--muted); line-height: 1.15; margin-top: 8px; max-width: 22ch; }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.block { padding: 64px 0 8px; }
@media (min-width: 960px) { .block { padding-top: 96px; } }

/* Screenshot strip */
.shots-wrap { position: relative; margin-top: 26px; }
.shots {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  padding: 6px 16px 22px; scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent; overscroll-behavior-x: contain;
}
.shots li { flex: 0 0 88%; scroll-snap-align: center; }
.shots img { width: 100%; aspect-ratio: 1400 / 644; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); border: 2px solid rgba(255, 255, 255, 0.08); }
.shots-nav {
  display: none; position: absolute; top: calc(50% - 30px); z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--gold); color: #241603; font: 700 36px/1 var(--head); cursor: pointer; box-shadow: 0 4px 0 #9c6c06, 0 10px 20px rgba(0, 0, 0, 0.45);
  padding: 0 0 4px;
}
.shots-nav.prev { left: 18px; } .shots-nav.next { right: 18px; }
@media (min-width: 700px) {
  .shots li { flex-basis: 62%; }
  .shots { padding-left: max(28px, calc((100vw - 1124px) / 2)); padding-right: max(28px, calc((100vw - 1124px) / 2)); scroll-padding: 0 max(28px, calc((100vw - 1124px) / 2)); }
  .shots li { scroll-snap-align: start; }
}
@media (min-width: 960px) {
  .shots li { flex-basis: 640px; }
  .shots-nav { display: block; }
}

/* Tracks */
.tracks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.track { position: relative; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); isolation: isolate; }
.track img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s ease; }
.track:hover img { transform: scale(1.04); }
.track-text { padding: 9px 11px 12px; }
.track h3 { font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 21px; line-height: 1; color: var(--gold-hi); }
.track p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.track.featured { grid-column: 1 / -1; }
.track.featured img { aspect-ratio: 16 / 10; }
.track.featured .track-text {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(15, 9, 4, 0.88) 60%);
}
.track.featured h3 { font-size: clamp(32px, 7vw, 54px); margin-top: 8px; }
.track.featured p { font-size: 16px; max-width: 460px; color: var(--ink); }
@media (min-width: 960px) {
  .tracks { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .track.featured { grid-column: span 2; grid-row: span 2; }
  .track.featured img { height: 100%; aspect-ratio: auto; position: absolute; inset: 0; }
  .track.featured { min-height: 100%; }
  .track.featured .track-text { padding: 80px 24px 22px; }
  .track h3 { font-size: 23px; }
}
.more { margin: 18px 0 0; color: var(--dim); font-family: var(--head); font-style: italic; font-weight: 600; font-size: 20px; text-align: center; }

/* Garage: all the vehicles, grouped by kind, with filter buttons (added by the script, so without it every group simply shows) */
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.kinds[hidden] { display: none; }
.kinds button {
  font: italic 700 16px/1 var(--head); text-transform: uppercase; letter-spacing: 0.6px; cursor: pointer;
  padding: 8px 13px 7px; border-radius: 999px; border: 1px solid rgba(255, 210, 31, 0.35);
  background: rgba(0, 0, 0, 0.28); color: var(--gold-hi); -webkit-tap-highlight-color: transparent;
}
.kinds button small { font-size: 13px; color: var(--dim); margin-left: 3px; }
.kinds button:hover { border-color: var(--gold); }
.kinds button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.kinds button[aria-pressed='true'] { background: var(--gold); border-color: var(--gold); color: #241603; }
.kinds button[aria-pressed='true'] small { color: rgba(36, 22, 3, 0.65); }
.garage-group { margin-top: 30px; }
.garage-group[hidden] { display: none; }
.garage-kind {
  display: flex; align-items: baseline; gap: 10px; font-family: var(--head); font-style: italic; font-weight: 800;
  text-transform: uppercase; font-size: 26px; line-height: 1; color: var(--ink);
}
.garage-kind::after { content: ''; flex: 1; height: 1px; background: var(--line); align-self: center; }
.garage-kind small { font-size: 17px; color: var(--gold); font-weight: 700; }
.cars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.cars li {
  position: relative; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 235, 200, 0.07), rgba(0, 0, 0, 0.25)); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); padding-bottom: 11px; display: flex; flex-direction: column;
}
.cars img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 8px; background: rgba(0, 0, 0, 0.25); }
.cars b { font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 19px; line-height: 1; color: var(--gold-hi); padding: 0 10px; }
.cars span { color: var(--muted); font-size: 13px; line-height: 1.3; padding: 4px 10px 0; }
.cars .free::before {
  content: 'Free'; position: absolute; top: 8px; left: 8px; font: italic 700 13px/1 var(--head); text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 7px 3px; border-radius: 5px; background: var(--gold); color: #241603; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
@media (min-width: 600px) {
  .cars { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cars b { font-size: 21px; padding: 0 12px; }
  .cars span { font-size: 14px; padding: 4px 12px 0; }
}
@media (min-width: 860px) { .cars { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .cars { grid-template-columns: repeat(5, 1fr); gap: 16px; } .garage-group { margin-top: 38px; } }

/* Features */
.features { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.features li { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius); padding: 18px 18px 16px; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: start; }
.features li > svg { grid-row: span 2; width: 40px; height: 40px; margin: 0; }
.features svg { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 10px; }
.features svg .fill { fill: var(--gold); stroke: none; }
.features h3 { font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 25px; line-height: 1.05; }
.features p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .features li { display: block; padding: 22px 22px 20px; }
  .features li > svg { width: 44px; height: 44px; margin-bottom: 10px; }
}
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* Free vs Full Game */
.deal { display: grid; gap: 14px; margin-top: 28px; }
.deal-col { border-radius: 22px; padding: 24px 22px; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.08); }
.deal-col h3 { font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 6vw, 40px); line-height: 1; margin: 12px 0 8px; }
.deal-col p { margin: 0; color: var(--muted); }
.deal-col .tag { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
.deal-col.gold { background: linear-gradient(150deg, rgba(255, 210, 31, 0.24), rgba(255, 150, 20, 0.08) 60%, rgba(0, 0, 0, 0.25)); border-color: rgba(255, 210, 31, 0.5); }
.deal-col .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 10px; }
.deal-col .price b { font-family: var(--head); font-style: italic; font-weight: 800; font-size: clamp(40px, 8vw, 56px); line-height: 1; color: var(--gold-hi); }
.deal-col .price span { font-family: var(--head); font-style: italic; font-weight: 700; letter-spacing: 0.5px; color: var(--muted); font-size: 17px; }
.deal-col .later { margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(255, 210, 31, 0.3); font-size: 14px; }
.deal-col.gold .tag { background: var(--gold); color: #241603; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.chips li { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: 0.6px; font-size: 15px; padding: 4px 11px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: var(--gold-hi); }
@media (min-width: 800px) { .deal { grid-template-columns: 1fr 1fr; gap: 18px; } .deal-col { padding: 30px 30px 28px; } }

/* Final call to action */
.final { padding: 80px 0 70px; text-align: center; }
.final-logo { width: min(300px, 70%); margin: 0 auto 12px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5)); }
.final .title { margin-bottom: 26px; }
.fine { color: var(--dim); font-size: 15px; margin: 18px 0 0; }

/* Footer */
.footer { background: rgba(0, 0, 0, 0.35); border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer-grid { display: grid; gap: 18px; justify-items: center; text-align: center; }
.studio { display: flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 16px; }
.studio img { width: 84px; height: auto; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.footer nav a { text-decoration: none; font-weight: 600; }
.footer nav a:hover { text-decoration: underline; }
.copy { margin: 0; color: var(--dim); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: auto 1fr auto; text-align: left; } .footer nav { justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .device { transform: none !important; }
}

/* Text pages (support, privacy) */
.page-head { max-width: 760px; padding: 18px 16px 8px; }
.page-head a { display: inline-block; }
.page-head img { width: 180px; height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); }
.page { max-width: 760px; margin: 0 auto; padding: 10px 16px 64px; }
.page .doc { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 22px; padding: 26px 20px 28px; }
@media (min-width: 700px) { .page .doc { padding: 36px 40px 40px; } }
.page h1 { font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(34px, 7vw, 48px); line-height: 1; }
.page h1 em { color: var(--gold); font-style: italic; }
.page h2 { font-family: var(--head); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 25px; line-height: 1.1; color: var(--gold-hi); margin: 30px 0 4px; }
.page p { color: var(--muted); margin: 10px 0 0; }
.page strong { color: var(--ink); }
.page .back { display: inline-block; margin-top: 26px; font-family: var(--head); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
