/* BAD FIELD TRIP — Gateway Kit (from ORDER-242 design notes)
   Palette sampled from the plates. 6px ink outlines, hard shadows, flat fills. */
@font-face {
  font-family: 'Bad Field Trip';
  src: url('fonts/BadFieldTrip-Regular-v3.ttf') format('truetype');
  font-display: swap;
}
:root {
  --ink: #2a1112;
  --green: #066940;
  --red: #ee3335;
  --sign-red: #c54031;
  --cream: #ffdaad;
  --awning: #ab352f;
  --yellow: #fec118;
  --mint: #a0ebac;
  --blue: #104e87;
  --neon: #f74d67;
  --dark: #2a1e2c;
  --horizon: #fdac74;
  --sky: #feb85c;
  --asphalt: #734c51;
  --stucco: #fbd29e;
  --roof: #fb692b;
  --gold: #fec512;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--sky);
}
.bft {
  font-family: 'Bad Field Trip', 'Arial Black', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 400;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ---------- street-sign chrome ---------- */
.sign {
  display: inline-block;
  font-family: 'Arial Black', Arial, sans-serif;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: 4px solid var(--ink);
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px #fff, 6px 6px 0 var(--ink);
  padding: .45em .9em;
  font-size: 15px;
  letter-spacing: .03em;
  transition: transform .12s ease;
}
.sign:hover { transform: translate(-2px, -2px) rotate(-1.2deg); }
.sign.gold { background: var(--gold); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 6px 6px 0 var(--ink); }
.sign.red { background: var(--red); }
.sign.active { background: var(--ink); color: var(--gold); }

header.top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 22px; position: relative; z-index: 5;
}
header.top .badge { width: 84px; filter: drop-shadow(5px 5px 0 rgba(42,17,18,.9)); }
nav.signs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- panels & boards ---------- */
.panel {
  background: var(--cream);
  border: 6px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--ink);
}
.board-head {
  background: var(--roof); color: #fff;
  font-family: 'Bad Field Trip', 'Arial Black', sans-serif; text-transform: uppercase;
  text-align: center; padding: 10px 8px; font-size: clamp(18px, 3vw, 28px);
  border-bottom: 6px solid var(--ink); border-radius: 8px 8px 0 0;
}
.bulbs {
  height: 16px;
  background-image:
    radial-gradient(circle at 8px 8px, #fff6cf 4px, var(--yellow) 5.5px, rgba(0,0,0,0) 7px),
    radial-gradient(circle at 22px 8px, var(--yellow) 4px, rgba(0,0,0,0) 6px);
  background-size: 28px 16px;
  animation: chase 1.2s steps(2) infinite;
}
@keyframes chase { 50% { background-position: 14px 0, 14px 0; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: url('plates/street.jpg') center 62% / cover no-repeat;
  border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink);
  overflow: hidden;
  min-height: 640px;
}
.hero .wordmark {
  width: min(620px, 82vw); margin: 26px auto 0;
  filter: drop-shadow(7px 7px 0 rgba(42,17,18,.85));
  position: relative; z-index: 3;
}
.hero .host {
  position: absolute; right: 2.5%; bottom: 0; height: min(430px, 62%);
  z-index: 2;
}
.drivein {
  width: min(520px, 88vw); margin: 30px auto 90px; position: relative; z-index: 3;
  background: var(--cream);
}
.drivein .screen { position: relative; border-top: 6px solid var(--ink); }
.drivein .screen img { width: 100%; }
.playdisc {
  position: absolute; inset: 0; margin: auto; width: 96px; height: 96px;
  border-radius: 50%; border: 6px solid var(--ink); background: var(--yellow);
  cursor: pointer; box-shadow: 6px 6px 0 var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease;
}
.playdisc:hover { transform: scale(1.07); }
.playdisc::after {
  content: ''; border-left: 30px solid var(--ink);
  border-top: 19px solid transparent; border-bottom: 19px solid transparent;
  margin-left: 8px;
}
.doors {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  padding: 26px 16px 34px; background: var(--horizon);
  border-bottom: 6px solid var(--ink);
}
.doors .sign { font-size: clamp(18px, 3vw, 26px); padding: .55em 1.1em; }

/* ---------- cast ---------- */
.skybands {
  background: linear-gradient(to bottom,
    #bb6f95 0 18%, #d97a8e 18% 38%, #ea827c 38% 58%, #fcce85 58% 78%, var(--horizon) 78% 100%);
  border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink);
  padding: 10px 20px 54px;
}
.awning {
  height: 34px; border-bottom: 6px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--awning) 0 46px, var(--cream) 46px 92px);
}
h1.page-title {
  text-align: center; font-size: clamp(38px, 7vw, 74px); color: #fff;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink); margin: 26px 0 8px;
}
.cast-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px 22px; max-width: 1180px; margin: 26px auto 0; align-items: end;
}
.doorway { text-align: center; }
.doorway .arch {
  position: relative; height: 330px; margin: 0 auto; max-width: 250px;
  border: 6px solid var(--ink); border-bottom: none;
  border-radius: 999px 999px 0 0; overflow: hidden;
  box-shadow: 8px 0 0 rgba(42,17,18,.9);
}
.doorway .arch img {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 96%; width: auto; max-width: none;
  transition: opacity .18s ease;
}
.doorway .arch img.side { opacity: 0; }
.doorway:hover .arch img.side, .doorway:focus-within .arch img.side { opacity: 1; }
.doorway:hover .arch img.front, .doorway:focus-within .arch img.front { opacity: 0; }
.doorway .namesign { margin-top: 14px; position: relative; }
.sticker {
  display: inline-block; background: var(--gold); color: var(--ink);
  font-family: 'Arial Black', Arial, sans-serif; font-size: 12px;
  border: 3px solid var(--ink); border-radius: 6px; padding: 2px 8px;
  transform: rotate(-4deg); margin-left: 8px; vertical-align: middle;
}

/* ---------- holding state ---------- */
.holding {
  position: relative; border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink);
  min-height: 560px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.holding::before { content: ''; position: absolute; inset: 0; background: rgba(42,30,44,.45); }
.holding .card {
  position: relative; text-align: center; padding: 38px 44px; max-width: 620px;
  margin: 60px 16px;
}
.holding .card img.badge-lg { width: 150px; margin: 0 auto 10px; }
.holding .qmark {
  font-family: 'Arial Black', Arial, sans-serif; font-size: 92px; line-height: 1;
  color: var(--gold); -webkit-text-stroke: 3px var(--ink); text-shadow: 6px 6px 0 var(--ink);
}
.holding h1 { font-size: clamp(34px, 6vw, 58px); margin: 8px 0 2px; }
.holding h2 { font-size: clamp(24px, 4.5vw, 40px); margin: 2px 0 6px; color: var(--sign-red); }

/* ---------- game ---------- */
.gamehero {
  position: relative; border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink);
  background: url('plates/street.jpg') left center / cover no-repeat; min-height: 430px;
  display: flex; align-items: center; justify-content: center; padding: 48px 16px;
}
.titlecard { text-align: center; padding: 30px 46px; }
.titlecard h1 {
  font-size: clamp(44px, 8vw, 88px); margin: 0; color: var(--blue);
  text-shadow: 3px 3px 0 var(--red), 7px 7px 0 var(--ink);
}
.roadstrip {
  background: var(--asphalt); border-bottom: 6px solid var(--ink);
  position: relative; overflow: hidden; padding: 18px 0 0;
}
.roadstrip .crew { display: flex; gap: 8vw; justify-content: center; align-items: flex-end; }
.roadstrip .crew img { height: 210px; width: auto; animation: bob 1s ease-in-out infinite alternate; }
.roadstrip .crew img:nth-child(2) { animation-delay: .3s; }
.roadstrip .crew img:nth-child(3) { animation-delay: .6s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-7px); } }
.roadline { height: 12px; margin-top: 10px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 54px, transparent 54px 108px); }
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px; max-width: 1100px; margin: 0 auto; padding: 34px 20px 46px;
}
.feature { padding: 14px; text-align: center; }
.feature h3 { font-size: 24px; margin: 8px 0 10px; }
.feature img { border: 4px solid var(--ink); border-radius: 8px; margin: 0 auto; }
.swatches { display: flex; height: 74px; border: 4px solid var(--ink); border-radius: 8px; overflow: hidden; }
.swatches span { flex: 1; }

/* ---------- music ---------- */
.dusk { background: var(--dark); border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink); padding-bottom: 54px; }
.dusk h1.page-title { color: var(--neon); text-shadow: 0 0 18px rgba(247,77,103,.8), 5px 5px 0 var(--ink); -webkit-text-stroke: 0; }
.labelmark { text-align: center; margin: 10px auto 4px; }
.labelmark img { width: 210px; margin: 0 auto; }
.labelmark .cap { color: var(--cream); font-size: 22px; margin-top: 6px; }
.tracks { max-width: 860px; margin: 26px auto 0; padding: 0 18px; display: grid; gap: 24px; }
.track { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; padding: 16px; }
.track img { border: 4px solid var(--ink); border-radius: 8px; width: 150px; height: 110px; object-fit: cover; }
.track h3 { margin: 0 0 10px; font-size: 26px; }
.track audio { width: 100%; }
@media (max-width: 560px) { .track { grid-template-columns: 1fr; } .track img { width: 100%; height: 140px; } }

/* ---------- footer ---------- */
footer { background: var(--dark); color: var(--cream); }
footer .awning { border-bottom: 6px solid var(--ink); }
.lane {
  position: relative; height: 118px; overflow: hidden; background: var(--asphalt);
  border-bottom: 6px solid var(--ink);
}
.lane::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 16px; height: 8px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 46px, transparent 46px 92px);
}
.lane .walker {
  position: absolute; bottom: 22px; height: 92px; width: auto;
  animation: cross 20s linear infinite;
}
@keyframes cross { from { left: -90px; } to { left: 100%; } }
footer .foot-inner {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; padding: 20px 22px 28px;
}
footer .foot-title { font-size: 24px; color: #fff; }
footer nav.signs .sign { font-size: 12px; box-shadow: inset 0 0 0 2px #fff, 4px 4px 0 rgba(0,0,0,.6); }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; background: rgba(42,30,44,.82);
}
.modal.open { display: flex; }
.modal .frame { width: min(880px, 94vw); background: var(--cream); }
.modal video { width: 100%; display: block; border-top: 6px solid var(--ink); background: #000; }
.modal .close {
  float: right; margin: 8px; background: var(--red); color: #fff; cursor: pointer;
  border: 4px solid var(--ink); border-radius: 8px; font-family: 'Arial Black', Arial, sans-serif;
  padding: 4px 12px; box-shadow: 4px 4px 0 var(--ink);
}

@media (max-width: 720px) {
  .hero { min-height: 520px; }
  .hero .host { height: 250px; right: 0; }
  header.top .badge { width: 58px; }
  .doorway .arch { height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .lane .walker { left: 42%; }
}
