:root {
  --bg:          #0d0d0d;
  --road:        #1c1c1c;
  --sign-green:  #1a6b2e;
  --sign-text:   #ffffff;
  --stripe:      #f5c518;
  --accent:      #3ecf6e;
  --text:        #d8d8d8;
  --text-muted:  #888;
  --font-hwy:    'Arial Narrow', 'Franklin Gothic Medium', 'Gill Sans', sans-serif;
  --font-body:   system-ui, -apple-system, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ── Road Strip ─────────────────────────────────────────────────── */

.road-strip {
  position: relative;
  width: 100%;
  height: 190px;
  background: var(--road);
  overflow: hidden;
  border-top: 3px solid #111;
  border-bottom: 3px solid #111;
}

/* Dashed lane markers */
.road-strip::before,
.road-strip::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 0;
  border-top: 3px dashed var(--stripe);
  opacity: 0.45;
}
.road-strip::before { top: 63px; }
.road-strip::after  { top: 127px; }

@keyframes drive {
  from { transform: translateX(-200px); }
  to   { transform: translateX(calc(100vw + 300px)); }
}

.vehicle {
  position: absolute;
  animation: drive linear infinite;
}

.vehicle svg {
  display: block;
  transform: rotate(90deg);
  transform-origin: center center;
}

.v-compact  { top: -10px; animation-duration: 8s;  animation-delay: 0s; }
.v-police   { top: -10px; animation-duration: 12s; animation-delay: -5s; }
.v-sedan    { top: 50px;  animation-duration: 10s; animation-delay: -3s; }
.v-sports   { top: 108px; animation-duration: 7s;  animation-delay: -1s; }
.v-crossover{ top: 106px; animation-duration: 13s; animation-delay: -7s; }

@media (prefers-reduced-motion: reduce) {
  .vehicle { animation: none; display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 56px;
  background: var(--bg);
  text-align: center;
}

.sign-panel {
  display: inline-block;
  background: var(--sign-green);
  border: 5px solid #fff;
  padding: 20px 40px;
  margin-bottom: 20px;
  position: relative;
}

.sign-panel::before,
.sign-panel::after {
  content: '';
  position: absolute;
  top: 4px; bottom: 4px; left: 4px; right: 4px;
  border: 1px solid rgba(255,255,255,0.3);
  pointer-events: none;
}

.sign-panel h1 {
  font-family: var(--font-hwy);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--sign-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 440px;
}

.play-btn {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: var(--font-hwy);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 48px;
  border-radius: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 18px rgba(62, 207, 110, 0.35);
}
.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(62, 207, 110, 0.5);
}

/* ── Sections ────────────────────────────────────────────────────── */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 52px 0;
  border-bottom: 1px solid #222;
}
section:last-child { border-bottom: none; }

h2 {
  font-family: var(--font-hwy);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ── How to Play ─────────────────────────────────────────────────── */

.instructions {
  list-style: none;
  display: grid;
  gap: 14px;
}

.instructions li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
}

.key {
  display: inline-block;
  background: #2a2a2a;
  border: 1px solid #444;
  border-bottom-width: 3px;
  color: #fff;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── About / Links ───────────────────────────────────────────────── */

.about p { margin-bottom: 12px; }

.credits-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.credits-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid #1f1f1f;
}

.credits-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.credit-name {
  min-width: 180px;
  color: #fff;
  font-family: var(--font-hwy);
  letter-spacing: 0.03em;
}

.credits-list a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

.credits-list a:hover {
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}

.link-list a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.link-list a:hover {
  background: var(--accent);
  color: #000;
}

/* ── Footer ──────────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid #1a1a1a;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero { padding: 40px 16px 40px; }
  .sign-panel { padding: 14px 22px; }
  .play-btn { display: block; text-align: center; }
  .road-strip { height: 140px; }
  .road-strip::before { top: 47px; }
  .road-strip::after  { top: 93px; }
  .v-compact  { top: -15px; }
  .v-police   { top: -15px; }
  .v-sedan    { top: 30px;  }
  .v-sports   { top: 75px;  }
  .v-crossover{ top: 75px;  }
  .vehicle svg { transform: rotate(90deg) scale(0.75); }
}
