*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #1a1d21;
  color: #f0f2f4;
  line-height: 1.65;
  min-height: 100vh;
  padding-right: 120px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root {
  --bg: #1a1d21;
  --asphalt: #24282e;
  --ink: #f0f2f4;
  --muted: #9aa3ad;
  --paint: #f5c518;
  --lane: #3d8bfd;
  --line: #3a4048;
  --serif: Georgia, 'Times New Roman', serif;
}

/* ——— HIGHWAY SHIELDS right — large route shields ——— */
.shields {
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shields a {
  width: 96px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 8px 14px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1d21;
  background: #fff;
  border: 3px solid #1a1d21;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
  box-shadow: 2px 3px 0 rgba(0,0,0,0.35);
  transition: transform 0.12s, background 0.12s;
  text-align: center;
  line-height: 1.1;
}
.shields a small {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.shields a:nth-child(1) { background: #f5c518; }
.shields a:nth-child(2) { background: #e8e8e8; }
.shields a:nth-child(3) { background: #3d8bfd; color: #fff; border-color: #1a4a8a; }
.shields a:nth-child(3) small { opacity: 0.85; }
.shields a:nth-child(4) { background: #fff; }
.shields a:hover { transform: scale(1.06); }
.shields a.on {
  outline: 3px solid var(--paint);
  outline-offset: 3px;
  transform: scale(1.06);
}

.brand {
  position: fixed;
  top: 16px;
  left: 20px;
  z-index: 90;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--paint);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 2px;
}

/* ——— YARD: painted stall ——— */
.yard {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background:
    linear-gradient(90deg, transparent 0%, transparent 48%, rgba(245,197,24,0.15) 49%, rgba(245,197,24,0.15) 51%, transparent 52%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.03) 40px,
      rgba(255,255,255,0.03) 42px
    ),
    var(--bg);
}
.stall {
  max-width: 440px;
  border: 3px solid var(--paint);
  padding: 36px 28px;
  background: var(--asphalt);
  position: relative;
}
.stall::before,
.stall::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--paint);
  opacity: 0.5;
}
.stall::before { top: 12px; }
.stall::after { bottom: 12px; }
.stall .k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paint);
  margin-bottom: 10px;
}
.stall h1 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 12px;
}
.stall p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ——— ROAD: lesson map ——— */
.road {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px 56px;
}
.road .k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paint);
  margin-bottom: 8px;
}
.road h1 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 24px;
}
.mile {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  margin-bottom: 8px;
  align-items: stretch;
}
.mile .num {
  background: var(--paint);
  color: #1a1d21;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  min-height: 64px;
}
.mile .body {
  background: var(--asphalt);
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 4px;
}
.mile h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.mile p {
  font-size: 0.9rem;
  color: var(--muted);
}
.road .shot {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.road .shot img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: saturate(0.9);
}

/* ——— TEST: scorecard ——— */
.test {
  max-width: 520px;
  margin: 0 auto;
  padding: 80px 24px 56px;
}
.test .k {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paint);
  margin-bottom: 8px;
}
.test h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 20px;
}
.score {
  background: var(--asphalt);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.score .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.score .row:last-child { border-bottom: none; }
.score .row strong {
  font-size: 0.95rem;
}
.score .row span {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.score .badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(245,197,24,0.15);
  color: var(--paint);
  white-space: nowrap;
}
.test .note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ——— BOOTH: service window ——— */
.booth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 48px;
}
.window {
  width: 100%;
  max-width: 400px;
  background: var(--asphalt);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.window .header {
  background: var(--paint);
  color: #1a1d21;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.window .pane {
  padding: 24px 20px;
}
.window h1 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.window .addr {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.window .addr a {
  color: var(--paint);
  font-weight: 600;
}
.window label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.window input,
.window textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 12px;
  border-radius: 4px;
}
.window input:focus,
.window textarea:focus {
  outline: none;
  border-color: var(--paint);
}
.window textarea { min-height: 80px; resize: vertical; }
.window button {
  width: 100%;
  padding: 14px;
  background: var(--paint);
  color: #1a1d21;
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.window button:hover { filter: brightness(1.08); }

.ft {
  text-align: center;
  padding: 12px 24px 40px;
  font-size: 0.68rem;
  color: var(--muted);
}
.ft strong { color: var(--ink); }

@media (max-width: 700px) {
  body { padding-right: 0; padding-bottom: 110px; }
  .shields {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: #12151a;
  }
  .shields a {
    width: 72px;
    min-height: 70px;
    font-size: 0.68rem;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
    padding: 8px 4px 12px;
  }
}
