:root {
  color-scheme: dark;
  --ink: #080f21;
  --yellow: #ffdb42;
  --muted: #b7c4df;
  --line: #ffffff24;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: #f5f7ff;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #77e8ff; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 10;
  left: 1rem;
  top: 1rem;
  padding: .7rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.masthead { min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 850; text-decoration: none; }
.wordmark-brick { color: #ffde39; }
.wordmark-racers { color: #ff8d33; }
.wordmark-online { color: #50b6ff; }
.brand-icon { flex: none; }
nav { display: flex; gap: clamp(13px, 4vw, 32px); }
nav a { font-size: .92rem; text-decoration: none; color: #e0e7fb; font-weight: 700; }
nav a:hover { color: var(--yellow); }
.hero, .download { position: relative; isolation: isolate; }
.hero {
  background: linear-gradient(120deg, #15346d 10%, #0c1c44 78%);
  border-top: 1px solid var(--line);
}
.hero::before, .download::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/studs.png") 0 0 / 512px;
  filter: grayscale(1) contrast(1.32);
  opacity: .56;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  min-height: 530px;
  padding-block: 55px 60px;
}
.hero-copy { text-align: center; }
.hero h1 { margin-bottom: 14px; }
.hero h1 img { width: min(100%, 505px); filter: drop-shadow(0 9px 15px #0007); }
.hero h1 img, .tagline img, .intro { margin-inline: auto; }
.tagline, h2, h3 {
  line-height: 1.08;
}
.tagline img, h2 img, h3 img, .button img {
  width: auto;
  height: .90625em;
  object-fit: contain;
  object-position: left center;
}
.tagline { font-size: clamp(2.3rem, 4.8vw, 4rem); color: var(--yellow); }
.tagline img { object-position: center; }
.intro { color: #d7e2f8; max-width: 41ch; margin-top: 12px; }
.actions { display: flex; justify-content: center; margin-top: 25px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 21px;
  min-height: 50px;
  border: 2px solid #221604;
  border-radius: 16px;
  background: linear-gradient(#ffe75a, #ffc427);
  box-shadow: inset 0 2px #fff49a, 0 3px #9e6108, 0 7px 15px #0004;
  color: white;
  font-size: 1.42rem;
  line-height: 1.1;
  text-decoration: none;
}
.button:hover { background: linear-gradient(#fff087, #ffd448); }
.button:active { transform: translateY(2px); box-shadow: inset 0 2px #fff49a, 0 1px #9e6108; }
.race-shot {
  border: 1px solid #778fbb66;
  border-radius: 18px;
  background: #101a31;
  overflow: hidden;
  box-shadow: 0 22px 35px #0005;
}
.race-shot img { width: 100%; object-fit: cover; aspect-ratio: 1.5; }
.race-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 15px;
  color: var(--muted);
  font-size: .74rem;
}
.race-shot figcaption span:first-child { font-weight: 800; color: #fff; }
.finish-line {
  height: 9px;
  background: repeating-conic-gradient(#d8e2f6 0% 25%, #233051 0% 50%) 0 0 / 9px 9px;
}
.game-section { padding-block: 56px 64px; }
h2 { font-size: clamp(2.25rem, 5vw, 3.6rem); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.features article { border-top: 1px solid var(--line); padding-top: 14px; }
h3 { color: var(--yellow); font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: 5px; }
.features p, .download p, .download-action small { color: var(--muted); }
.download { background: linear-gradient(110deg, #142e64, #102554); border-block: 1px solid var(--line); }
.download-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 215px) auto;
  align-items: center;
  gap: clamp(16px, 4vw, 46px);
  padding-block: 22px;
}
.download p { max-width: 50ch; margin-top: 12px; }
.racer-wave { width: 100%; justify-self: center; filter: drop-shadow(0 9px 10px #0005); }
.download-action { display: grid; gap: 9px; text-align: center; }
.footer { flex-wrap: wrap; padding-block: 22px; color: var(--muted); font-size: .84rem; }
.teaser-page { display: flex; flex-direction: column; min-height: 100vh; }
.teaser-hero {
  flex: 1;
  display: grid;
  align-items: center;
  background: radial-gradient(ellipse at 50% 46%, #1c4389, #0b1838 72%);
}
.teaser-inner {
  width: min(940px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 31%);
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
  padding-block: clamp(42px, 9vh, 96px);
}
.teaser-copy { text-align: center; }
.teaser-copy h1 img { margin-inline: auto; }
.teaser-copy h2 img { width: min(100%, 340px); height: auto; margin-inline: auto; }
.teaser-copy p { color: #d7e2f8; font-size: clamp(1rem, 2vw, 1.16rem); margin-top: 12px; }
.teaser-racer { width: 100%; filter: drop-shadow(0 18px 22px #0008); }
.teaser-footer { justify-content: center; text-align: center; }
@media (max-width: 850px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 38px; min-height: auto; }
  .hero h1 img { width: min(100%, 460px); }
  .race-shot { width: 100%; max-width: 630px; }
  .features { gap: 16px; }
  .download-inner { grid-template-columns: 1fr auto; gap: 16px 26px; padding-block: 30px; }
  .racer-wave { grid-column: 2; grid-row: 1 / 3; width: clamp(94px, 24vw, 180px); }
  .download-action { grid-column: 1; justify-items: start; text-align: left; }
}
@media (max-width: 590px) {
  .shell { width: calc(100% - 36px); }
  .teaser-inner { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .teaser-copy h2 img { width: min(84%, 290px); }
  .teaser-racer { width: clamp(112px, 38vw, 180px); }
  .masthead { min-height: 60px; flex-wrap: wrap; padding-block: 10px; }
  .brand-icon { width: 38px; }
  nav a { font-size: .8rem; }
  .features { grid-template-columns: 1fr; }
  .game-section { padding-block: 44px; }
  .download-action { grid-column: 1 / -1; }
  .racer-wave { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
