:root {
  --red: #2ec6ff;
  --red-deep: #0b7ec9;
  --hot: #e10600;
  --bg: #061018;
  --panel: #0b1824;
  --card: #10202e;
  --border: #1e3a52;
  --text: #f3f3f3;
  --muted: #9bb3c6;
  --white: #ffffff;
  --max: 1120px;
  --header: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(46, 198, 255, 0.16), transparent 55%),
    radial-gradient(900px 420px at 10% 8%, rgba(225, 6, 0, 0.08), transparent 50%),
    var(--bg);
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.eyebrow,
.brand strong,
.btn,
.price,
.step {
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2 {
  font-style: italic;
  line-height: 0.95;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
}

h1 span {
  display: block;
}

h1 span:first-child {
  color: var(--red);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin: 0.4rem 0;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
}

.scene {
  position: relative;
  isolation: isolate;
  background-color: #07141c;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(6, 16, 24, 0.22) 0%,
    rgba(6, 16, 24, 0.38) 50%,
    rgba(6, 16, 24, 0.52) 100%
  );
}

.hero-home.scene::before {
  background: linear-gradient(
    180deg,
    rgba(6, 16, 24, 0.28) 0%,
    rgba(6, 16, 24, 0.48) 55%,
    rgba(6, 16, 24, 0.62) 100%
  );
}

.scene > * {
  position: relative;
  z-index: 1;
}

.scene h1,
.scene h2,
.scene .lede,
.scene .section-head p {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.scene[data-scene="motorsport"] {
  background-image: url("/images/scenes/scene-motorsport.jpg");
}
.scene[data-scene="hockey"] {
  background-image: url("/images/scenes/scene-hockey.jpg");
}
.scene[data-scene="lacrosse"] {
  background-image: url("/images/scenes/scene-lacrosse.jpg");
}
.scene[data-scene="skiing"] {
  background-image: url("/images/scenes/scene-skiing.jpg");
}
.scene[data-scene="bike"] {
  background-image: url("/images/scenes/scene-bike.jpg");
}
.scene[data-scene="skate"] {
  background-image: url("/images/scenes/scene-skate.jpg");
}
.scene[data-scene="basketball"] {
  background-image: url("/images/scenes/scene-basketball.jpg");
}
.scene[data-scene="soccer"] {
  background-image: url("/images/scenes/scene-soccer.jpg");
}

#home-view {
  position: relative;
}

.egg {
  position: absolute;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.22;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.egg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.egg:hover,
.egg:focus-visible {
  opacity: 0.95;
  outline: none;
}

.egg.is-found {
  visibility: hidden;
  pointer-events: none;
}

.egg-visor {
  top: 18%;
  left: 5%;
}
.egg-ski {
  top: 28%;
  right: 6%;
  left: auto;
}
.egg-puck {
  top: 22%;
  right: 8%;
  left: auto;
}
.egg-lax {
  top: 1.2rem;
  right: 1.2rem;
  left: auto;
}
.egg-pedal {
  top: 18%;
  left: 4%;
}
.egg-deck {
  bottom: 12%;
  right: 7%;
  left: auto;
  top: auto;
}
.egg-hoop {
  top: 22%;
  right: 6%;
  left: auto;
}
.egg-ball {
  top: 30%;
  left: 5%;
}

.credits-chip {
  margin: 0 auto 0 0.15rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  background: rgba(6, 16, 24, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.credits-chip strong {
  color: var(--red);
  margin-left: 0.3rem;
}

.credits-chip.is-hot {
  border-color: var(--red);
}

.credits-chip.pulse {
  animation: credit-pulse 0.6s ease;
}

@keyframes credit-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.credit-toasts {
  position: fixed;
  top: calc(var(--header) + 0.6rem);
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  display: grid;
  gap: 0.4rem;
  width: min(22rem, calc(100% - 2rem));
  pointer-events: none;
}

.credit-toast {
  padding: 0.75rem 0.9rem;
  background: rgba(7, 16, 24, 0.94);
  border: 1px solid var(--red);
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.credit-toast.in {
  opacity: 1;
  transform: none;
}

.credit-toast.out {
  opacity: 0;
}

.credit-toast strong {
  display: block;
  color: var(--white);
}

.credit-toast span {
  color: var(--muted);
  font-size: 0.88rem;
}

.price-credits {
  margin: 0.2rem 0 0;
  color: var(--red);
  font-size: 0.95rem;
}

.price-credits s {
  color: var(--muted);
  margin-right: 0.45rem;
}

.site-header,
main,
.site-footer,
.car-modal {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: max(0.6rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) 0.6rem
    max(1.25rem, env(safe-area-inset-left));
  background: rgba(6, 16, 24, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #000;
  object-fit: contain;
}

.brand span {
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  text-decoration: none;
  font-family: Impact, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.site-nav a:hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: transparent;
  padding: 10px 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
}

.hero,
.section,
.site-footer {
  width: 100%;
  margin-inline: 0;
  padding-left: max(1rem, env(safe-area-inset-left), calc((100% - var(--max)) / 2));
  padding-right: max(1rem, env(safe-area-inset-right), calc((100% - var(--max)) / 2));
}

.hero {
  display: grid;
  gap: 2rem;
  padding: 3.5rem 0 4rem;
  align-items: center;
}

.hero-home {
  justify-items: center;
  text-align: center;
  padding: 2.2rem 0 3.2rem;
  gap: 1.4rem;
}

.hero-home .hero-copy {
  max-width: 40rem;
}

.hero-home .hero-actions,
.hero-home .lede {
  margin-inline: auto;
}

.hero-home .hero-actions {
  align-items: center;
}

.hero-home .hero-secondary {
  justify-content: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
}

.lede {
  max-width: 38rem;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.hero-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.game-promo {
  width: min(100%, 30rem);
}

.game-promo-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.game-promo-note {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
}

.btn-play {
  flex: 1;
  min-height: 56px;
  padding: 1rem 1.5rem;
  border: 0;
  background: linear-gradient(180deg, #3ad2ff, var(--red-deep));
  color: #041018;
  font-size: 1.12rem;
  box-shadow: 0 0 0 5px rgba(46, 198, 255, 0.22);
}

.game-hype {
  color: var(--red);
  font-size: 1.55rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.game-hype-top {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.35rem;
  animation: hype-down 0.7s ease-in-out infinite;
}

.game-hype-left {
  animation: hype-left 0.7s ease-in-out infinite;
}

.game-hype-right {
  animation: hype-right 0.7s ease-in-out infinite;
}

body.game-promo-past .game-hype {
  opacity: 0;
  visibility: hidden;
}

body.game-promo-past .btn-play {
  box-shadow: none;
}

@keyframes hype-down {
  0%,
  100% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes hype-left {
  0%,
  100% {
    transform: translateX(-7px);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes hype-right {
  0%,
  100% {
    transform: scaleX(-1) translateX(-7px);
  }
  50% {
    transform: scaleX(-1) translateX(4px);
  }
}

@keyframes play-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(46, 198, 255, 0.22);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(46, 198, 255, 0.08);
  }
}

body:not(.game-promo-past) .btn-play {
  animation: play-pulse 1.25s ease-in-out infinite;
}

.hero-badge {
  justify-self: center;
}

.hero-badge img {
  width: min(560px, 90vw);
  height: auto;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 0 0 4px #0b1824, 0 0 0 7px var(--red), 0 30px 80px rgba(46, 198, 255, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.3rem;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.92rem;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: var(--red-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.tricks-section.scene {
  background-color: #0a1a08;
  background-image: url("/images/scenes/scene-skate.jpg");
  padding-top: 5.2rem;
  padding-bottom: 4.4rem;
  box-shadow: inset 0 0 0 6px rgba(57, 255, 20, 0.35), 0 0 28px rgba(57, 255, 20, 0.25);
}

.tricks-section.scene::before {
  background: rgba(57, 255, 20, 0.28);
}

.tricks-section .section-head {
  max-width: 44rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.tricks-section .eyebrow {
  color: #d8ffc8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.tricks-section h2 {
  color: #39ff14;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 0 22px rgba(57, 255, 20, 0.7);
}

.tricks-section .section-head p,
.tricks-section .form-note {
  color: #f3fff0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

#tricks-submit,
#tricks-results {
  display: grid;
  justify-items: center;
}

#tricks-submit[hidden],
#tricks-results[hidden] {
  display: none;
}

.tricks-form {
  width: min(36rem, 100%);
  margin: 0 auto;
  text-align: left;
}

.tricks-form .btn {
  width: 100%;
  background: #031400;
  color: #39ff14;
  border: 2px solid #031400;
  font-size: 1.15rem;
}

.tricks-form .btn:hover {
  background: #062800;
}

.tricks-form input,
.tricks-form select {
  background: #031400;
  border-color: #031400;
  color: #39ff14;
}

.tricks-form label {
  color: #e8ffe0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.tricks-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.tricks-sports {
  width: min(52rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
}

.tricks-sport {
  min-height: 72px;
  padding: 0.9rem 0.8rem;
  border: 2px solid #031400;
  background: #031400;
  color: #39ff14;
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.tricks-sport small {
  display: block;
  margin-top: 0.35rem;
  color: #9dff8a;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.tricks-sport.is-on {
  background: #062800;
  box-shadow: 0 0 0 3px #031400;
}

.tricks-podium {
  width: min(52rem, 100%);
  margin: 1.6rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.75rem;
  align-items: end;
}

.podium-place {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 0.8rem 0.9rem;
  border: 1px solid var(--border);
  background: rgba(7, 7, 7, 0.82);
  text-align: center;
  min-height: 12rem;
}

.podium-place.is-first {
  min-height: 15rem;
  border-color: #f5c518;
}

.podium-place.is-second {
  border-color: #c5c5c5;
}

.podium-place.is-third {
  border-color: #c47a3a;
}

.podium-place b {
  display: block;
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  font-size: 1.15rem;
}

.podium-place span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clip-player {
  position: relative;
  background: #000;
}

.clip-player video {
  width: 100%;
  display: block;
  background: #000;
}

.clip-player video::-webkit-media-controls-overlay-play-button,
.clip-player video::-webkit-media-controls-start-playback-button {
  display: none;
  pointer-events: none;
  opacity: 0;
}

.clip-play {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.clip-player.is-on .clip-play {
  opacity: 0;
  pointer-events: none;
}

.clip-player.is-holding .clip-play {
  pointer-events: auto;
}

.podium-place video {
  width: 100%;
  max-height: 220px;
  background: #000;
  object-fit: contain;
}

.podium-place p {
  margin: 0;
  color: var(--white);
}

@media (max-width: 720px) {
  .tricks-names,
  .tricks-podium {
    grid-template-columns: 1fr;
  }

  .podium-place,
  .podium-place.is-first {
    min-height: 0;
  }
}

.kind-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: -0.6rem 0 2rem;
}

.kind-nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
}

.kind-nav a:hover {
  color: var(--white);
  border-color: #555;
}

.kind-nav a.is-active {
  color: var(--white);
  border-color: var(--red, #e10600);
}

.builder-kind-title {
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.builder-kind-title strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.custom-missing {
  margin: 0 0 2rem;
  padding: 3.5rem 1.25rem;
  border: 1px solid var(--border);
  background: #0c0c0c;
  color: var(--muted);
  text-align: center;
  font-size: 1.15rem;
}

.kind-stack {
  display: grid;
  gap: 0;
  width: calc(100% + 2 * max(1rem, env(safe-area-inset-left), calc((100% - var(--max)) / 2)));
  margin-left: calc(-1 * max(1rem, env(safe-area-inset-left), calc((100% - var(--max)) / 2)));
  margin-right: calc(-1 * max(1rem, env(safe-area-inset-right), calc((100% - var(--max)) / 2)));
}

.kind-block {
  scroll-margin-top: calc(var(--header) + 1rem);
  padding: 2.4rem max(1rem, env(safe-area-inset-left), calc((100% - var(--max)) / 2));
  background-color: rgba(7, 20, 28, 0.35);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  isolation: isolate;
}

.kind-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 16, 24, 0.28), rgba(6, 16, 24, 0.48));
}

.kind-block > * {
  position: relative;
  z-index: 1;
}

.kind-block[data-scene="motorsport"] {
  background-image: url("/images/scenes/scene-motorsport.jpg");
}
.kind-block[data-scene="hockey"] {
  background-image: url("/images/scenes/scene-hockey.jpg");
}
.kind-block[data-scene="lacrosse"] {
  background-image: url("/images/scenes/scene-lacrosse.jpg");
}
.kind-block[data-scene="skiing"] {
  background-image: url("/images/scenes/scene-skiing.jpg");
}
.kind-block[data-scene="bike"] {
  background-image: url("/images/scenes/scene-bike.jpg");
}
.kind-block[data-scene="skate"] {
  background-image: url("/images/scenes/scene-skate.jpg");
}
.kind-block[data-scene="basketball"] {
  background-image: url("/images/scenes/scene-basketball.jpg");
}
.kind-block[data-scene="soccer"] {
  background-image: url("/images/scenes/scene-soccer.jpg");
}

.kind-head {
  margin-bottom: 1.1rem;
}

.kind-head h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.kind-empty {
  margin: 0;
  color: var(--muted);
}

.sport-picker {
  padding-top: 1.5rem;
}

.sport-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.sport-tile {
  display: grid;
  align-content: end;
  gap: 0.2rem;
  min-height: 132px;
  padding: 1rem 1rem 1.1rem;
  text-decoration: none;
  border: 1px solid var(--border);
  background-color: var(--card);
  background-size: cover;
  background-position: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.sport-tile[data-sport="motorsport"] {
  background-image: linear-gradient(180deg, rgba(6, 16, 24, 0.15), rgba(6, 16, 24, 0.82)),
    url("/images/scenes/scene-motorsport.jpg");
}
.sport-tile[data-sport="hockey"] {
  background-image: linear-gradient(180deg, rgba(6, 16, 24, 0.12), rgba(6, 16, 24, 0.8)),
    url("/images/scenes/scene-hockey.jpg");
}
.sport-tile[data-sport="lacrosse"] {
  background-image: linear-gradient(180deg, rgba(6, 16, 24, 0.12), rgba(6, 16, 24, 0.8)),
    url("/images/scenes/scene-lacrosse.jpg");
}
.sport-tile[data-sport="skiing"] {
  background-image: linear-gradient(180deg, rgba(6, 16, 24, 0.08), rgba(6, 16, 24, 0.78)),
    url("/images/scenes/scene-skiing.jpg");
}
.sport-tile[data-sport="bike"] {
  background-image: linear-gradient(180deg, rgba(6, 16, 24, 0.12), rgba(6, 16, 24, 0.8)),
    url("/images/scenes/scene-bike.jpg");
}
.sport-tile[data-sport="skate"] {
  background-image: linear-gradient(180deg, rgba(6, 16, 24, 0.18), rgba(6, 16, 24, 0.82)),
    url("/images/scenes/scene-skate.jpg");
}
.sport-tile[data-sport="basketball"] {
  background-image: linear-gradient(180deg, rgba(6, 16, 24, 0.12), rgba(6, 16, 24, 0.8)),
    url("/images/scenes/scene-basketball.jpg");
}
.sport-tile[data-sport="soccer"] {
  background-image: linear-gradient(180deg, rgba(6, 16, 24, 0.12), rgba(6, 16, 24, 0.8)),
    url("/images/scenes/scene-soccer.jpg");
}

.sport-tile strong {
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--white);
}

.sport-tile span {
  color: #d7e6f2;
  font-size: 0.88rem;
}

.sport-tile:hover {
  border-color: var(--red);
}

@media (min-width: 700px) {
  .sport-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.car-grid,
.craft-grid,
.video-grid {
  display: grid;
  gap: 1.25rem;
}

.car-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

@media (min-width: 700px) {
  .car-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
    gap: 1.25rem;
  }
}

.car-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .car-card:hover {
    transform: translateY(-4px);
    border-color: #555;
  }
}

.car-card .thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0c0c0c;
}

.car-card img,
.car-card .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-card .body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  overflow-wrap: anywhere;
}

.car-card h3 {
  margin: 0;
}

.taste-card {
  cursor: default;
}

.taste-card:hover {
  transform: none;
}

@media (max-width: 699px) {
  #taste-grid.car-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .taste-card .thumb {
    aspect-ratio: 1 / 1;
  }
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.status {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d7d7d;
}

.status.available {
  color: #3ddc84;
}

.status.limited {
  color: #f5c518;
}

.status.made-to-order {
  color: #7ab8ff;
}

.status.sold {
  color: #ff6b6b;
}

.price {
  margin: 0;
  font-size: 1.35rem;
  color: var(--white);
}

.back-link {
  display: inline-block;
  margin: 0 0 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--white);
}

.product-layout {
  display: grid;
  gap: 1.75rem;
}

.product-photo img,
.product-photo video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--border);
  display: block;
}

.product-copy h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.product-copy #product-tagline,
.product-copy #product-desc {
  max-width: 40rem;
}

.product-copy .price {
  font-size: 1.8rem;
  margin-top: 0.4rem;
}

.product-copy .status {
  margin: 0.35rem 0 0;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.meetup-form {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.meetup-lead {
  margin: 0 0 0.2rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.meetup-form .optional {
  color: #6d6d6d;
  letter-spacing: 0;
  text-transform: none;
}

.meetup-grid {
  display: grid;
  gap: 0.9rem;
}

.fulfill-choice {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.fulfill-choice legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.inquire-form .fulfill-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border);
  background: #0c0c0c;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.inquire-form .fulfill-option:has(input:checked) {
  border-color: var(--white);
}

.fulfill-option input {
  width: auto;
  min-height: 0;
  margin-top: 0.25rem;
  accent-color: var(--red);
}

.fulfill-option strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--white);
}

.fulfill-option span {
  color: var(--muted);
  font-size: 0.92rem;
}

.filament-choice {
  margin-top: 0.35rem;
}

.filament-choice .fulfill-option span {
  line-height: 1.45;
}

@media (min-width: 560px) {
  .meetup-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 2.4rem;
  }
}

.craft-grid {
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

.craft-grid li {
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: var(--panel);
}

.step {
  color: var(--red);
  font-size: 1.6rem;
}

.video-grid {
  display: grid;
  gap: 1.5rem;
}

.video-grid:has(.empty-films) {
  grid-template-columns: 1fr;
}

.shorts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 17.5rem));
  justify-content: center;
  gap: 1.25rem;
}

.video-card .yt-play {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: inherit;
  display: grid;
  place-items: center;
}

.video-card.short .yt-play {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
}

.video-card.short iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  background: #000;
  border-radius: 12px;
}

.video-card h3 {
  margin: 0.8rem 0 0;
  font-size: 1.05rem;
}

.video-card.short h3 {
  text-align: center;
  font-size: 0.95rem;
}

.empty-films {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px dashed #3a3a3a;
  background: radial-gradient(circle at 50% 30%, rgba(225, 6, 0, 0.18), transparent 55%), var(--panel);
  text-align: center;
  padding: 2rem;
}

.empty-films strong {
  display: block;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 2rem;
  color: var(--white);
}

.inquire-layout {
  display: grid;
  gap: 2rem;
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.75rem;
  gap: 0.5rem;
  width: min(var(--max), 100%);
  margin: 0 auto 2.2rem;
  align-items: start;
}

.builder-stage {
  position: relative;
  min-height: 22rem;
  height: min(62vw, 28rem);
  background: #0c0c0c;
  border: 1px solid var(--border);
  overflow: hidden;
  touch-action: none;
}

#builder-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.builder-hint {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.65rem;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  pointer-events: none;
  text-shadow: 0 1px 8px #000;
}

.builder-number {
  display: grid;
  gap: 0.55rem;
}

.number-row {
  display: grid;
  gap: 0.85rem;
}

.builder-number label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.builder-number input,
.builder-number select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  background: #0c0c0c;
  color: var(--white);
  font: inherit;
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
}

.builder-number input {
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (min-width: 560px) {
  .number-row {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    column-gap: 1.35rem;
  }
}

#number-color-tray {
  margin-top: 0.15rem;
}

.builder-paints,
.builder-stencils {
  display: grid;
  gap: 0.55rem;
}

.paint-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.paint-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

.paint-chip.is-active,
.stencil-actions .btn.is-active {
  border-color: var(--white);
}

.paint-chip.is-eraser .paint-dot {
  background:
    linear-gradient(135deg, transparent 46%, #f3f3f3 46%, #f3f3f3 54%, transparent 54%),
    #2a2a2a;
}

.paint-chip.is-carbon .paint-dot {
  background:
    repeating-linear-gradient(90deg, #1a1a1c 0 2px, #3a3a40 2px 4px),
    repeating-linear-gradient(0deg, #121214 0 2px, #2c2c32 2px 4px);
}

.paint-chip.is-light .paint-dot {
  border-color: rgba(0, 0, 0, 0.35);
}

.paint-dot {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--paint, #e10600);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.builder-stage.is-painting {
  cursor: crosshair;
}

.builder-stage.is-erasing {
  cursor: cell;
}

.stencil-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stencil-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  min-width: 4.6rem;
  min-height: 52px;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

.stencil-chip.is-active {
  border-color: var(--white);
}

.stencil-bar {
  display: block;
  width: 2.15rem;
  height: var(--bar, 4px);
  border-radius: 99px;
  background: var(--white);
}

.stencil-chip span:last-child {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stencil-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sticker-rotate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.builder-stickers {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  position: sticky;
  top: calc(var(--header) + 0.4rem);
  height: min(22rem, calc(100dvh - var(--header) - 0.8rem));
  padding: 0.4rem;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
}

.builder-stickers .builder-side-note {
  display: none;
}

.builder-side-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sticker-tray {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sticker-chip {
  display: grid;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--border);
  background: #0c0c0c;
  color: var(--white);
  font: inherit;
  cursor: grab;
  touch-action: none;
  min-width: 0;
}

.sticker-chip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #151515;
  pointer-events: none;
}

.sticker-chip span {
  display: none;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticker-ghost {
  position: fixed;
  width: 64px;
  height: 64px;
  object-fit: contain;
  pointer-events: none;
  z-index: 80;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}

.builder-form-title {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.35rem;
}

@media (min-width: 860px) {
  .builder {
    grid-template-columns: minmax(0, 1fr) 22.5rem;
    gap: 1rem;
  }

  .builder-stage {
    height: 28rem;
  }

  .builder-stickers {
    position: static;
    height: auto;
    padding: 1rem;
    gap: 0.55rem;
    overflow: visible;
  }

  .builder-stickers .builder-side-note {
    display: block;
  }

  .sticker-tray {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    max-height: none;
    overflow: visible;
  }

  .sticker-chip span {
    display: block;
  }
}

.inquire-form {
  display: grid;
  gap: 0.9rem;
}

.inquire-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.inquire-form input,
.inquire-form select,
.inquire-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border);
  background: #0c0c0c;
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

.custom-quote {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: #101010;
}

.custom-quote .eyebrow {
  margin: 0 0 0.25rem;
}

.custom-quote-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.custom-quote-row.is-total {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
}

.custom-quote-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-banner {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.8rem 1.25rem;
  background: #12351f;
  color: #b6f5cf;
  text-align: center;
}

.error {
  color: #ff6b6b;
  margin: 0.4rem 0 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0 max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom)));
  border-top: 1px solid var(--border);
}

.site-footer img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #000;
}

.site-footer .copy {
  margin-left: auto;
  font-size: 0.9rem;
}

.car-modal {
  width: min(920px, calc(100vw - 1.5rem));
  max-height: min(92dvh, 920px);
  padding: 0;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  overflow: auto;
}

.car-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.car-modal article {
  display: grid;
  position: relative;
}

.car-modal img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.modal-body {
  padding: 1.25rem 1.4rem 1.6rem;
}

.modal-close {
  position: absolute;
  top: max(0.6rem, env(safe-area-inset-top));
  right: max(0.6rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin: 1rem 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border);
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.spec-list dt {
  color: var(--muted);
  text-transform: capitalize;
}

.spec-list dd {
  margin: 0;
}

.modal-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 840px) {
  .hero:not(.hero-home),
  .inquire-layout,
  .car-modal article {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .car-modal img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .craft-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    max-height: calc(100dvh - 100%);
    overflow: auto;
    background: #07141e;
    border-bottom: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    min-height: 48px;
    padding: 0.95rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
  }
}

@media (max-width: 699px) {
  .egg {
    width: 42px;
    height: 42px;
    opacity: 0.28;
  }

  .credits-chip {
    font-size: 0.62rem;
    padding: 0.28rem 0.5rem;
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .brand small {
    display: none;
  }

  .hero,
  .section {
    padding-top: 2.2rem;
    padding-bottom: 2.4rem;
  }

  .hero {
    gap: 1.4rem;
    padding-top: 2rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 1.2rem;
  }

  .game-promo,
  .hero-secondary {
    width: 100%;
  }

  .hero-secondary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .inquire-form .btn,
  .section-head .btn,
  .product-actions .btn,
  .btn-play {
    width: 100%;
  }

  .car-card .body {
    padding: 0.7rem 0.65rem 0.8rem;
    gap: 0.2rem;
  }

  .car-card h3 {
    font-size: 1rem;
  }

  .car-card .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .car-card:not(.taste-card) .body > p:not(.eyebrow) {
    display: none;
  }

  .car-card .price {
    font-size: 1.05rem;
  }

  .car-card .status {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .meta-row {
    gap: 0.35rem;
    padding-top: 0.35rem;
    flex-wrap: wrap;
  }

  .craft-grid {
    grid-template-columns: 1fr;
  }

  .spec-list,
  .modal-cta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions {
    width: 100%;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .car-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
  }

  .modal-body {
    padding: 1.1rem 1.1rem max(1.4rem, env(safe-area-inset-bottom));
  }

  .site-footer .copy {
    margin-left: 0;
    width: 100%;
  }
}

body.delivery-open {
  overflow: hidden;
}

#delivery-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: #05070d;
}

#delivery-overlay[hidden] {
  display: none;
}

.delivery-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dl-sky {
  position: absolute;
  inset: 0 0 36%;
  background:
    radial-gradient(ellipse at 78% 22%, rgba(225, 6, 0, 0.18), transparent 36%),
    radial-gradient(ellipse at 50% 100%, #1b2433 0%, transparent 55%),
    linear-gradient(180deg, #070b14 0%, #152033 42%, #3a2a28 78%, #5a4030 100%);
}

.dl-stars {
  position: absolute;
  inset: 0 0 40%;
  background-image:
    radial-gradient(1px 1px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 18% 42%, #dbe7ff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 41% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 67% 38%, #c9d4ff 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 10%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 28%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 48%, #fff 50%, transparent 51%);
  opacity: 0.85;
}

.dl-moon {
  position: absolute;
  top: 10%;
  right: 16%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6d6, #e8d48a 55%, #c4a45a);
  box-shadow: 0 0 28px rgba(255, 236, 180, 0.45);
}

.dl-cloud {
  position: absolute;
  height: 22px;
  border-radius: 20px;
  background: rgba(255, 220, 190, 0.12);
  filter: blur(1px);
}

.dl-cloud-1 {
  width: 120px;
  top: 18%;
  left: 12%;
}

.dl-cloud-2 {
  width: 80px;
  top: 26%;
  left: 38%;
}

.dl-hills {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 34%;
  height: 18%;
  background:
    radial-gradient(ellipse at 18% 120%, #142016 42%, transparent 43%),
    radial-gradient(ellipse at 48% 130%, #101810 50%, transparent 51%),
    radial-gradient(ellipse at 82% 120%, #162018 46%, transparent 47%);
}

.dl-city {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36%;
  height: 16%;
  background:
    linear-gradient(90deg, transparent 6%, #0c1018 6% 9%, transparent 9% 14%, #10151f 14% 19%, transparent 19% 22%,
      #0b0f16 22% 28%, transparent 28% 33%, #121826 33% 36%, transparent 36% 41%, #0d121c 41% 48%, transparent 48% 54%,
      #10141d 54% 58%, transparent 58% 63%, #0a0e16 63% 70%, transparent 70% 74%, #141a26 74% 78%, transparent 78% 84%,
      #0c1018 84% 90%, transparent 90%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(245, 197, 24, 0.18) 18px 19px, transparent 19px 34px);
  background-size: 100% 100%, 160px 40%;
  background-position: 0 0, 0 30%;
  background-repeat: no-repeat, repeat-x;
  opacity: 0.95;
}

.dl-parallax {
  position: absolute;
  left: -20%;
  width: 160%;
  pointer-events: none;
}

.dl-trees-back {
  bottom: 32%;
  height: 12%;
  background:
    radial-gradient(ellipse at 10% 100%, #0d1a10 22%, transparent 23%),
    radial-gradient(ellipse at 22% 100%, #122016 18%, transparent 19%),
    radial-gradient(ellipse at 36% 100%, #0e1c12 24%, transparent 25%),
    radial-gradient(ellipse at 51% 100%, #132418 20%, transparent 21%),
    radial-gradient(ellipse at 68% 100%, #0d1a10 26%, transparent 27%),
    radial-gradient(ellipse at 84% 100%, #152616 18%, transparent 19%),
    radial-gradient(ellipse at 96% 100%, #0f1e13 22%, transparent 23%);
}

.dl-fence {
  bottom: 29%;
  height: 5%;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, #3a2a1c 18px 21px, transparent 21px 38px),
    linear-gradient(#5a4030, #5a4030) 0 45% / 100% 2px no-repeat;
  opacity: 0.7;
}

.dl-lamps {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28%;
  height: 22%;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.dl-lamps span {
  width: 4px;
  height: 100%;
  background: linear-gradient(#8a8a8a, #333);
  position: relative;
}

.dl-lamps span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18px;
  height: 8px;
  transform: translateX(-20%);
  background: #c9c9c9;
  border-radius: 2px 8px 2px 2px;
}

.dl-lamps span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 70px;
  height: 90px;
  transform: translateX(-18%);
  background: radial-gradient(ellipse at 30% 0, rgba(255, 220, 140, 0.28), transparent 70%);
  pointer-events: none;
}

.dl-speed {
  position: absolute;
  inset: 20% 0 30%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 52px,
    rgba(255, 255, 255, 0.06) 52px 54px
  );
  opacity: 0;
}

#delivery-overlay.is-playing .dl-speed {
  animation: speed-lines 0.26s linear 0.1s 8 both;
}

#delivery-overlay.is-playing .dl-parallax,
#delivery-overlay.is-playing .dl-lamps,
#delivery-overlay.is-playing .dl-city {
  animation: scene-drift 2.35s linear forwards;
}

.dl-grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16%;
  height: 16%;
  background:
    repeating-linear-gradient(90deg, #163116 0 7px, #1a3a1a 7px 14px),
    linear-gradient(180deg, #244224, #102010);
}

.dl-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10%;
  height: 16%;
  z-index: 2;
}

.dl-asphalt {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #2a2a2a, #161616 40%, #101010 70%, #1c1c1c);
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.35) inset;
}

.dl-edge {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, #f3f3f3 0 36px, transparent 36px 16px, #f3f3f3 16px 52px);
}

.dl-edge-top {
  top: 6px;
}

.dl-edge-bot {
  bottom: 10px;
}

.dl-lane {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  height: 5px;
  background: repeating-linear-gradient(90deg, #f5c518 0 34px, transparent 34px 62px);
}

.dl-bots {
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 3px;
  background: repeating-linear-gradient(90deg, #f5c518 0 8px, transparent 8px 46px);
  opacity: 0.45;
}

.dl-shoulder {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, #6a4a2a 0 10px, #4a341c 10px 20px);
}

#delivery-overlay.is-playing .dl-lane,
#delivery-overlay.is-playing .dl-edge,
#delivery-overlay.is-playing .dl-bots,
#delivery-overlay.is-playing .dl-asphalt,
#delivery-overlay.is-playing .dl-grass {
  animation: road-scroll 0.28s linear 9;
}

.dl-meetup {
  position: absolute;
  right: max(6%, env(safe-area-inset-right));
  bottom: 24%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
}

.dl-spot {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.dl-sign {
  padding: 0.25rem 0.45rem 0.3rem;
  background: #111;
  border: 2px solid #f5c518;
  color: #fff;
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dl-sign small {
  display: block;
  color: var(--red);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.15rem;
}

.dl-table {
  width: 42px;
  height: 10px;
  background: #3a2a1c;
  border-radius: 2px;
  box-shadow: 0 8px 0 #24180f;
}

.delivery-car {
  position: absolute;
  left: -46%;
  bottom: 13%;
  width: min(320px, 64vw);
  z-index: 4;
}

#delivery-overlay.is-playing .delivery-car {
  animation: car-deliver 2.35s cubic-bezier(0.16, 0.84, 0.22, 1) forwards;
}

.car-shadow {
  position: absolute;
  left: 12%;
  right: 8%;
  bottom: 2px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(4px);
}

.car-glow {
  position: absolute;
  inset: auto 8% 4px;
  height: 16px;
  background: radial-gradient(ellipse, rgba(225, 6, 0, 0.5), transparent 70%);
  filter: blur(6px);
}

.car-headlight {
  position: absolute;
  right: 2%;
  bottom: 38%;
  width: 70px;
  height: 18px;
  background: linear-gradient(90deg, rgba(255, 230, 140, 0), rgba(255, 230, 140, 0.55));
  filter: blur(2px);
  opacity: 0.85;
}

.car-livery {
  position: absolute;
  left: 30%;
  bottom: 42px;
  width: 38%;
  aspect-ratio: 4 / 3;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transform: rotate(-8deg);
  z-index: 2;
}

.car-livery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-body {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55));
}

.car-exhaust {
  position: absolute;
  left: 2%;
  bottom: 28%;
  width: 28px;
  height: 10px;
  border-radius: 50%;
  background: rgba(180, 180, 180, 0.35);
  filter: blur(3px);
  opacity: 0;
}

#delivery-overlay.is-playing .car-exhaust {
  animation: exhaust-puff 0.4s linear 5;
}

.car-dust {
  position: absolute;
  left: -10%;
  bottom: 6px;
  width: 46%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  opacity: 0;
}

#delivery-overlay.is-done .car-dust {
  animation: dust-puff 0.45s ease-out;
}

.delivery-buyer {
  position: relative;
  width: 48px;
  height: 104px;
}

.buyer-head {
  width: 22px;
  height: 22px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e2c2a4;
  box-shadow: inset -3px -2px 0 #c9a07e;
}

.buyer-neck {
  width: 8px;
  height: 6px;
  margin: 0 auto;
  background: #d4a88a;
}

.buyer-torso {
  width: 28px;
  height: 34px;
  margin: 0 auto;
  border-radius: 8px 8px 4px 4px;
  background: #e10600;
}

.buyer-leg {
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 2px;
}

.buyer-leg-l {
  left: 12px;
}

.buyer-leg-r {
  right: 12px;
}

.buyer-arm {
  position: absolute;
  right: -6px;
  top: 30px;
  width: 28px;
  height: 6px;
  background: #e2c2a4;
  border-radius: 4px;
  transform-origin: left center;
  transform: rotate(18deg);
}

#delivery-overlay.is-done .buyer-arm {
  animation: cash-hand 0.4s ease-out forwards;
}

.buyer-cash {
  position: absolute;
  right: -18px;
  top: 12px;
  width: 28px;
  height: 20px;
  display: grid;
  place-items: center;
  background: #3ddc84;
  color: #072214;
  font-weight: 800;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(8px);
}

#delivery-overlay.is-done .buyer-cash {
  animation: cash-pop 0.4s 0.12s ease-out forwards;
}

.delivery-copy {
  position: relative;
  z-index: 5;
  width: min(36rem, calc(100% - 2rem));
  margin: 0 auto max(1.6rem, env(safe-area-inset-bottom));
  padding: 1.2rem 1.3rem 1.3rem;
  background: rgba(7, 7, 7, 0.9);
  border: 1px solid var(--border);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}

#delivery-overlay.is-done .delivery-copy {
  animation: copy-in 0.45s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.delivery-copy h2 {
  color: var(--white);
}

.delivery-copy p {
  margin: 0 0 1rem;
}

@keyframes speed-lines {
  from {
    opacity: 0.7;
    transform: translateX(0);
  }
  to {
    opacity: 0.15;
    transform: translateX(-48px);
  }
}

@keyframes road-scroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -62px 0;
  }
}

@keyframes scene-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-8%);
  }
}

@keyframes car-deliver {
  0% {
    transform: translateX(0) rotate(-3deg);
  }
  72% {
    transform: translateX(calc(50vw + 4%)) rotate(0deg);
  }
  84% {
    transform: translateX(calc(46vw + 4%)) rotate(-1.5deg);
  }
  100% {
    transform: translateX(calc(44vw + 2%)) rotate(0deg);
  }
}

@keyframes dust-puff {
  0% {
    opacity: 0;
    transform: scaleX(0.4);
  }
  40% {
    opacity: 0.8;
    transform: scaleX(1.15);
  }
  100% {
    opacity: 0;
    transform: scaleX(1.4);
  }
}

@keyframes exhaust-puff {
  0% {
    opacity: 0.5;
    transform: translateX(0) scale(0.7);
  }
  100% {
    opacity: 0;
    transform: translateX(-18px) scale(1.4);
  }
}

@keyframes cash-hand {
  to {
    transform: rotate(-12deg);
  }
}

@keyframes cash-pop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes copy-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  @keyframes car-deliver {
    0% {
      transform: translateX(0) rotate(-3deg);
    }
    72% {
      transform: translateX(28vw) rotate(0deg);
    }
    84% {
      transform: translateX(22vw) rotate(-1.5deg);
    }
    100% {
      transform: translateX(16vw) rotate(0deg);
    }
  }

  .dl-meetup {
    right: 4%;
  }

  .dl-moon {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #delivery-overlay.is-playing .dl-speed,
  #delivery-overlay.is-playing .dl-lane,
  #delivery-overlay.is-playing .dl-edge,
  #delivery-overlay.is-playing .dl-bots,
  #delivery-overlay.is-playing .dl-asphalt,
  #delivery-overlay.is-playing .dl-grass,
  #delivery-overlay.is-playing .dl-parallax,
  #delivery-overlay.is-playing .dl-lamps,
  #delivery-overlay.is-playing .dl-city,
  #delivery-overlay.is-playing .delivery-car,
  #delivery-overlay.is-playing .car-exhaust,
  #delivery-overlay.is-done .car-dust,
  #delivery-overlay.is-done .buyer-arm,
  #delivery-overlay.is-done .buyer-cash {
    animation: none;
  }

  #delivery-overlay.is-playing .delivery-car {
    left: auto;
    right: 28%;
  }

  #delivery-overlay.is-done .delivery-copy,
  #delivery-overlay.is-playing .delivery-copy {
    opacity: 1;
    transform: none;
  }

  .buyer-cash {
    opacity: 1;
    transform: none;
  }

  .game-hype-top,
  .game-hype-left,
  .game-hype-right,
  body:not(.game-promo-past) .btn-play {
    animation: none;
  }
}

#game-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: stretch;
  padding: 0;
  background: #05070a;
}

#game-overlay[hidden] {
  display: none;
}

body.game-open {
  overflow: hidden;
}

.game-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #05070a;
  border: 0;
  overflow: hidden;
}

.game-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  min-height: 52px;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--border);
}

.game-score,
.game-level,
.game-best,
.game-coins,
.game-sport-chip {
  margin: 0;
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.78rem;
}

.game-score strong,
.game-level strong,
.game-best strong,
.game-coins strong,
.game-sport-chip strong {
  color: var(--white);
  margin-left: 0.25rem;
}

.game-toasts {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: min(92%, 22rem);
  pointer-events: none;
}

.game-toast {
  padding: 0.7rem 0.85rem;
  background: rgba(7, 7, 7, 0.94);
  border: 1px solid var(--red);
  text-align: center;
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.game-toast.in {
  opacity: 1;
  transform: none;
}

.game-toast.out {
  opacity: 0;
  transform: translateY(-8px);
}

.game-toast strong {
  display: block;
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  font-size: 1.05rem;
}

.game-toast span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.game-skin-label {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.game-skins {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.game-skin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.4rem 0.35rem;
  border: 1px solid var(--border);
  background: #111;
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.game-skin strong {
  font-size: 0.78rem;
}

.game-skin small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.game-skin.on {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.game-skin:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.game-close {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

#game-canvas {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  touch-action: none;
  background: #101010;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #070b10;
}

.game-pad {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.game-pad-mid {
  display: flex;
  gap: 1.4rem;
}

.game-pad button,
.game-attack-btn {
  width: 52px;
  height: 52px;
  border: 1px solid #3a3a42;
  background: #16161c;
  color: #f4f4f4;
  font-size: 1.1rem;
  line-height: 1;
  touch-action: manipulation;
  user-select: none;
}

.game-attack-btn {
  width: 68px;
  height: 68px;
  border-color: #e10600;
  background: #e10600;
  font-family: Impact, "Arial Narrow", system-ui, sans-serif;
  font-size: 1.8rem;
}

.game-controls-hint {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.game-reveal {
  position: absolute;
  inset: 52px 0 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.1rem;
  background: rgba(4, 8, 12, 0.94);
  text-align: center;
}

.game-reveal[hidden] {
  display: none;
}

.game-reveal h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.5rem;
}

.game-reveal-stage {
  position: relative;
  width: min(220px, 72vw);
  height: min(220px, 72vw);
  border: 2px solid var(--white);
  background: #0a0a0a;
  overflow: hidden;
}

.game-reveal-stage canvas,
.game-reveal-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: opacity 0.9s ease;
}

.game-reveal-stage img {
  opacity: 0;
}

.game-reveal-stage.is-photo canvas {
  opacity: 0;
}

.game-reveal-stage.is-photo img {
  opacity: 1;
}

.game-reveal .btn-play {
  width: min(100%, 16rem);
}

.game-panel {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1.2rem;
  max-height: calc(100% - 4.6rem);
  overflow-y: auto;
  padding: 1.1rem 1.15rem 1.2rem;
  background: rgba(7, 7, 7, 0.92);
  border: 1px solid var(--border);
  text-align: center;
}

.game-panel h2 {
  color: var(--white);
}

.game-panel .btn-play {
  width: 100%;
  margin-top: 0.4rem;
}

.game-skin-goals {
  margin: 0.15rem 0 0.75rem;
  text-align: left;
}

.game-skin-goals span {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
