/* ============================================================
   24h Nürburgring 2027 — camper edition. Racing-telemetry theme inherited from gptour
   Mobile-first. No external CDN. No build step.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-elev: #161616;
  --bg-card: #1c1c1c;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --text-dim: #999;
  --accent: #f7d31a;       /* race yellow */
  --accent-2: #ff3b3b;     /* sector red */
  --green: #4ce28a;        /* purple sector / fastest */
  --purple: #c673ff;       /* personal best */
  --carbon: linear-gradient(135deg, #1a1a1a 25%, #222 25%, #222 50%, #1a1a1a 50%, #1a1a1a 75%, #222 75%);
  --asphalt: repeating-linear-gradient(90deg, #0d0d0d, #0d0d0d 14px, #161616 14px, #161616 28px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

/* ============================================================
   HERO + COUNTDOWN
   ============================================================ */

.hero {
  position: relative;
  background: var(--asphalt);
  padding: 1rem 0 0;
  border-bottom: 4px solid var(--accent);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, #fff 0 24px, #000 24px 48px);
  opacity: 0.9;
}

.countdown {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--line);
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 700;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  margin-bottom: 0.5rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.cd-cell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0.6rem 0.3rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.cd-blink { animation: blink 1s step-end infinite; }

@keyframes blink {
  50% { opacity: 0.3; }
}

.cd-lbl {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.cd-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin-top: 0.7rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.cd-sec-item b { color: var(--green); font-weight: 900; }
.cd-sec-dim { opacity: 0.65; }

/* Ticker */
.ticker {
  background: var(--accent);
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.ticker-track {
  display: inline-block;
  padding: 0.5rem 0;
  animation: tick 30s linear infinite;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.ticker-track span {
  margin: 0 1.5rem;
  display: inline-block;
}

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-inner {
  padding: 2rem 1.2rem 2.5rem;
  text-align: center;
  position: relative;
}

.kicker {
  font-size: 0.7rem;
  color: var(--accent-2);
  letter-spacing: 0.3em;
  font-weight: 800;
  margin-bottom: 0.8rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.hero h1 {
  font-size: clamp(3rem, 12vw, 5.5rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 .city {
  background: linear-gradient(180deg, var(--accent), #ff8a00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 32ch;
  margin: 0 auto 1.5rem;
  font-style: italic;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 540px;
  margin: 0 auto;
}

.hero-meta > div {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.6rem 0.4rem;
  text-align: left;
}

.hero-meta span {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.hero-meta strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--accent);
}

/* ============================================================
   HERO — BOOKED INDICATOR
   ============================================================ */

.hero-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.hs-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  background: rgba(76, 226, 138, 0.12);
  border: 1px solid rgba(76, 226, 138, 0.4);
  border-radius: 999px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.hs-pill b {
  color: var(--green);
  font-weight: 900;
}

.hero-booked {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.7rem;
  background: var(--accent);
  color: #000;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 2px;
}

/* ============================================================
   HOTEL — BOOKED BADGE
   ============================================================ */

.booked-badge {
  position: absolute;
  top: 1.1rem;
  right: 1rem;
  background: var(--accent);
  color: #000;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
}

/* ============================================================
   TABS
   ============================================================ */

.tabs {
  display: flex;
  overflow-x: auto;
  background: var(--bg-elev);
  border-bottom: 2px solid var(--line);
  z-index: 10;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 0.9rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.tab.active, .tab:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   SECTIONS — DAY HEAD
   ============================================================ */

main { padding-bottom: 4rem; }

section {
  padding: 2rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.day-head {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.day-num {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.6rem;
  font-weight: 800;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.day-head h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.day-sub {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.95rem;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
}

.timeline li {
  position: relative;
  padding: 1rem 0 1rem 4.5rem;
  border-bottom: 1px solid var(--line);
}

.timeline li:last-child { border-bottom: none; }

.timeline time {
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 4rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  text-align: right;
  padding-right: 0.6rem;
  border-right: 2px solid var(--line);
}

.timeline li.hot time {
  color: var(--accent-2);
  border-right-color: var(--accent-2);
}

.timeline li.hot::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-2);
}

.timeline h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.timeline p {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 0.4rem;
}

.timeline p.note {
  font-size: 0.8rem;
  color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding: 0.4rem 0.7rem;
  margin-top: 0.5rem;
  background: rgba(247, 211, 26, 0.05);
  border-radius: 0 4px 4px 0;
}

.timeline p.alt {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  font-style: italic;
}

.timeline ul.note-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.3rem;
  font-size: 0.82rem;
  display: grid;
  gap: 0.3rem;
}

.timeline ul.note-list li {
  background: var(--bg-elev);
  border-left: 2px solid var(--accent-2);
  padding: 0.35rem 0.6rem;
  border-radius: 0 3px 3px 0;
  color: var(--text-dim);
  line-height: 1.45;
}

.timeline ul.note-list li strong {
  color: var(--accent);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

/* Price + beer + rating tags */

.price, .beer, .rating {
  display: inline-block;
  font-size: 0.7rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  margin-left: 0.3rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.price {
  background: rgba(76, 226, 138, 0.15);
  color: var(--green);
  border: 1px solid rgba(76, 226, 138, 0.3);
}

.price.lux {
  background: rgba(247, 211, 26, 0.15);
  color: var(--accent);
  border-color: rgba(247, 211, 26, 0.3);
}

.price.free {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid var(--line);
}

.beer {
  background: rgba(255, 138, 0, 0.15);
  color: #ffae42;
  border: 1px solid rgba(255, 138, 0, 0.3);
}

.rating {
  background: rgba(198, 115, 255, 0.15);
  color: var(--purple);
  border: 1px solid rgba(198, 115, 255, 0.3);
}

.star { color: var(--accent); }

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: var(--accent);
}

/* ============================================================
   HOTEL GRID
   ============================================================ */

.hotels { background: var(--bg); }

.hotel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hotel-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem;
  transition: border-color 0.2s;
}

.hotel-card.hot { border-color: var(--accent); }
.hotel-card:hover { border-color: var(--accent); }

/* Only one hotel is booked — keep the single card from stretching wide */
.hotel-grid-single { max-width: 640px; }

.hotel-card h3 { padding-right: 6.5rem; }

.hotel-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hotel-card .hotel-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.hotel-card p { font-size: 0.88rem; }

.hotel-facts {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
}

.hotel-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.32rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.82rem;
}

.hotel-facts li:last-child { border-bottom: none; }

.hotel-facts li span {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.hotel-facts li strong {
  font-weight: 700;
  text-align: right;
  color: var(--text);
}

.hotel-price {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem !important;
  color: var(--green) !important;
}

.hotel-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-card);
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

/* ============================================================
   PRIME / ACTIVITY GRID
   ============================================================ */

.prime { background: var(--bg-elev); }

.prime-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.prime-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem;
  transition: border-color 0.2s;
}

.prime-card.hot { border-color: var(--accent-2); }

.prime-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.prime-card.hot h3 { color: var(--accent-2); }

.prime-card p { font-size: 0.88rem; }
.prime-card p + p { margin-top: 0.6rem; }
.prime-card p.note { font-size: 0.78rem; }

.prime-card ul {
  list-style: none;
  padding: 0;
  margin-top: 0.4rem;
}

.prime-card li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--line);
}

.prime-card li:last-child { border-bottom: none; }

.prime-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   LOGISTIK / FLIGHT / BUDGET
   ============================================================ */

.logistik { background: var(--bg); }

.logi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.logi-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem;
}

.logi-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

.logi-card-unknown {
  border-color: rgba(198, 115, 255, 0.35);
  border-left: 3px solid var(--purple);
}

.logi-card-unknown h3 { color: var(--purple); }
.logi-card-unknown li::before { color: var(--purple); }

.logi-card p { font-size: 0.88rem; }
.logi-card p + p { margin-top: 0.5rem; }
.logi-card p.note { font-size: 0.78rem; color: var(--text-dim); }

.logi-card ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.logi-card li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.1rem;
  font-size: 0.85rem;
}

.logi-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   BUDGET TABLE
   ============================================================ */

.budget-table {
  margin-top: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.budget-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.budget-row:last-child { border-bottom: none; }

.budget-cell {
  padding: 0.7rem 0.8rem;
  border-right: 1px solid var(--line);
}

.budget-cell:last-child { border-right: none; }

.budget-row.budget-head {
  background: rgba(247, 211, 26, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.budget-row.budget-misc { color: var(--text-dim); }

.budget-row.budget-total {
  background: rgba(255, 59, 59, 0.1);
  color: var(--accent-2);
  font-weight: 700;
  border-top: 2px solid var(--accent-2);
}

/* ============================================================
   RENTAL CAR — BMW M235 hero + spec cards
   ============================================================ */

.rental {
  background: var(--bg-elev);
  position: relative;
}

.rental::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  /* BMW M tri-stripe: light blue · purple · red */
  background: linear-gradient(90deg,
    transparent 0%, transparent 30%,
    #2e96d8 30%, #2e96d8 53%,
    #6a5fa6 53%, #6a5fa6 76%,
    #e22229 76%, #e22229 99%,
    transparent 99%);
}

.rental-hero {
  margin: 0 0 1.5rem;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.rental-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.rental-hero figcaption {
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0.5rem 0.8rem;
  background: var(--bg-card);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.rental-hero figcaption a { color: var(--accent); }

.rental-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.rental-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem;
  position: relative;
}

.rental-card::before {
  content: "";
  position: absolute;
  left: 0; top: 1rem; bottom: 1rem;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.rental-card.rental-booking::before { background: #2e96d8; }
.rental-card.rental-specs::before { background: #6a5fa6; }
.rental-card.rental-facts::before { background: var(--accent-2); }
.rental-card.rental-tips::before { background: var(--accent); }

/* Hard warning card — do not take the rental on track */
.rental-card.rental-danger {
  border-color: rgba(255, 59, 59, 0.5);
  background: linear-gradient(180deg, rgba(255, 59, 59, 0.07), var(--bg-card) 60%);
  grid-column: 1 / -1;
}

.rental-card.rental-danger::before {
  background: repeating-linear-gradient(
    45deg, var(--accent-2) 0 6px, #1a1a1a 6px 12px
  );
}

.rental-card.rental-danger h3 { color: var(--accent-2); }

.rental-danger-lead {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.6rem;
}

.rental-card.rental-danger .rental-facts-list li::before { color: var(--accent-2); }

.rental-card.rental-danger .rental-note {
  background: rgba(76, 226, 138, 0.07);
  border-left-color: var(--green);
}

.rental-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.rental-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rental-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
}

.rental-list li:last-child { border-bottom: none; }

.rental-list li span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.rental-list li strong {
  font-weight: 700;
  text-align: right;
  color: var(--text);
}

.rental-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rental-facts-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.6rem;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--line);
  line-height: 1.45;
}

.rental-facts-list li:last-child { border-bottom: none; }

.rental-facts-list li::before {
  content: "▸";
  position: absolute;
  left: 0.3rem;
  top: 0.5rem;
  color: var(--accent-2);
  font-weight: 800;
}

.rental-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: rgba(247, 211, 26, 0.05);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
  line-height: 1.5;
}

/* ============================================================
   RACE INTEL — series, cars, teams, drivers, track
   Following the rental-card section pattern: top tri-stripe,
   per-card left accent bar, telemetry-grid stats, racing
   palette (accent yellow / accent-2 red / green / purple).
   ============================================================ */

.race-intel {
  background: var(--bg-elev);
  position: relative;
}

.race-intel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  /* GTWCEU paddock-stripe: accent · accent-2 · green */
  background: linear-gradient(90deg,
    var(--accent) 0%, var(--accent) 33.33%,
    var(--accent-2) 33.33%, var(--accent-2) 66.66%,
    var(--green) 66.66%, var(--green) 100%);
}

.intel-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Card chassis — matches .rental-card pattern */
.intel-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem 1.2rem 1.2rem 1.5rem;
  position: relative;
  transition: border-color 0.2s;
}

.intel-card::before {
  content: "";
  position: absolute;
  left: 0; top: 1rem; bottom: 1rem;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.intel-card-hero::before { background: var(--accent); }
.intel-card-gt3::before { background: var(--green); }
.intel-card-classes::before {
  background: linear-gradient(180deg,
    #e60000 0%, #e60000 25%,
    #f5c518 25%, #f5c518 50%,
    #c0c0c0 50%, #c0c0c0 75%,
    #b87333 75%, #b87333 100%);
}
.intel-card-mfg::before { background: var(--accent-2); }
.intel-card-teams::before { background: #2e96d8; }
.intel-card-favorites::before { background: var(--accent); }
.intel-card-track::before {
  background: linear-gradient(180deg,
    var(--accent-2) 0%, var(--accent-2) 33.33%,
    var(--accent) 33.33%, var(--accent) 66.66%,
    var(--green) 66.66%, var(--green) 100%);
}
.intel-card-watch::before { background: var(--accent-2); }
.intel-card-vars::before { background: var(--purple); }

/* Danish crews — Dannebrog stripe */
.intel-card-danish::before { background: #c8102e; }
.intel-card-danish { border-color: rgba(200, 16, 46, 0.45); }
.intel-card-danish .intel-tag { background: #c8102e; color: #fff; }
.intel-card-danish .fav-list li::before { background: #c8102e; color: #fff; }

/* Rossi — VR46 yellow */
.intel-card-rossi::before { background: #ffe000; }
.intel-card-rossi .intel-tag { background: #ffe000; color: #000; }

/* GT3 Revival — heritage green */
.intel-card-revival::before { background: var(--green); }
.intel-card-revival .intel-tag { background: var(--green); color: #000; }

.intel-card.intel-card-hero {
  border-color: var(--accent);
}

.intel-card:hover { border-color: var(--accent); }

/* Tag chip — matches .day-num */
.intel-tag {
  display: inline-block;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--bg);
  background: var(--accent);
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.7rem;
}

.intel-card-mfg .intel-tag,
.intel-card-watch .intel-tag { background: var(--accent-2); color: #fff; }
.intel-card-teams .intel-tag { background: #2e96d8; color: #fff; }
.intel-card-gt3 .intel-tag { background: var(--green); }
.intel-card-vars .intel-tag { background: var(--purple); color: #fff; }

.intel-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.intel-card-hero h3 { font-size: 1.25rem; }

.intel-card > p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.intel-foot {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
  line-height: 1.5;
}

/* TELEMETRY STATS GRID — like rental-list cells */
.intel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.9rem 0;
}

.intel-stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-radius: 0 3px 3px 0;
}

.intel-stat .stat-label {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 800;
  text-transform: uppercase;
}

.intel-stat .stat-val {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
}

/* Generic list — matches .logi-card ul */
.intel-list, .team-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.intel-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.2rem;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--line);
  line-height: 1.5;
}

.intel-list li:last-child { border-bottom: none; }

.intel-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0.4rem;
  color: var(--accent);
  font-weight: 800;
}

.intel-list-spaced li {
  padding: 0.7rem 0 0.7rem 1.2rem;
  font-size: 0.88rem;
}

.intel-list-spaced li::before { top: 0.7rem; }

/* TEAM LIST — bullet + brand-tag aligned right */
.team-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.2rem;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--line);
  line-height: 1.5;
}

.team-list li:last-child { border-bottom: none; }

.team-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: #2e96d8;
  font-weight: 800;
}

.team-list li em {
  color: #2e96d8;
  font-style: normal;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CLASS HIERARCHY — flag-pill + description */
.class-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin: 0.8rem 0;
}

.class-row {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.class-tag {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 0.3rem 0;
  border-radius: 2px;
  text-transform: uppercase;
}

.class-pro    { background: #e60000; color: #fff; box-shadow: 0 0 0 1px #ff4040 inset; }
.class-gold   { background: #f5c518; color: #000; }
.class-silver { background: #c0c0c0; color: #000; }
.class-bronze { background: #b87333; color: #fff; }

/* MANUFACTURERS — matrix rows like a BoP table */
.mfg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.mfg-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: var(--bg);
  font-size: 0.82rem;
  line-height: 1.45;
  border-bottom: 1px dashed var(--line);
}

.mfg-row:last-child { border-bottom: none; }
.mfg-row:nth-child(even) { background: rgba(0,0,0,0.25); }
.mfg-row:hover { background: rgba(247, 211, 26, 0.05); }

.mfg-row strong {
  color: var(--accent);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: center;
}

.mfg-row span { color: var(--text-dim); }

/* FAVORITES — championship standings table */
.fav-list {
  counter-reset: fav;
  display: grid;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.fav-list li {
  counter-increment: fav;
  position: relative;
  padding: 0.7rem 0.8rem 0.7rem 3.6rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.86rem;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
}

.fav-list li:hover {
  border-color: var(--accent);
  background: rgba(247, 211, 26, 0.04);
}

.fav-list li::before {
  content: "P" counter(fav);
  position: absolute;
  left: 0.6rem;
  top: 0.65rem;
  width: 2.4rem;
  text-align: center;
  padding: 0.3rem 0;
  background: var(--accent);
  color: #000;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  border-radius: 2px;
}

.fav-list li:nth-child(1)::before { background: #f5c518; }
.fav-list li:nth-child(2)::before { background: #c0c0c0; }
.fav-list li:nth-child(3)::before { background: #b87333; color: #fff; }

.fav-list li strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.fav-list li .fav-meta {
  display: block;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.fav-list li em {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* GP-STRECKE — sector cards with purple-sector color convention */
.sector-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0.9rem 0;
}

.sector {
  position: relative;
  background: var(--bg);
  padding: 0.8rem 0.9rem 0.8rem 3.6rem;
  border-radius: 3px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.sector strong {
  color: var(--accent);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.sector p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.sector-num {
  position: absolute;
  left: 0.7rem;
  top: 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: 50%;
  letter-spacing: 0.02em;
}

.sector-1 { border-left-color: var(--accent-2); }
.sector-2 { border-left-color: var(--accent); }
.sector-3 { border-left-color: var(--green); }

.sector-1 .sector-num { background: var(--accent-2); color: #fff; }
.sector-2 .sector-num { background: var(--accent); }
.sector-3 .sector-num { background: var(--green); }

.sector-1 strong { color: var(--accent-2); }
.sector-3 strong { color: var(--green); }

.corner-watch {
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 3px 3px 0;
  padding: 0.75rem 0.9rem;
  margin-top: 0.8rem;
  font-size: 0.85rem;
}

.corner-watch strong { color: var(--accent); }

.corner-watch ul {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
}

.corner-watch li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.corner-watch li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-2);
}

.corner-watch li strong { color: var(--text); }

/* WATCH LIST — race-procedure checklist */
.watch-list {
  counter-reset: watch;
  display: grid;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.watch-list li {
  counter-increment: watch;
  position: relative;
  padding: 0.6rem 0.8rem 0.6rem 3.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.85rem;
  line-height: 1.5;
  transition: border-color 0.2s;
}

.watch-list li:hover { border-color: var(--accent-2); }

.watch-list li::before {
  content: counter(watch, decimal-leading-zero);
  position: absolute;
  left: 0.6rem;
  top: 0.55rem;
  width: 2rem;
  text-align: center;
  padding: 0.25rem 0;
  background: var(--accent-2);
  color: #fff;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.watch-list li strong { color: var(--accent-2); }

/* ============================================================
   ROAMING RACE CAR — drives across the bottom every now and then
   ============================================================ */

.race-car {
  position: fixed;
  bottom: 14px;
  left: 0;
  width: 140px;
  height: 50px;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-180px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.race-car svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* The single-shot drive — added/removed by JS */
.race-car.driving {
  animation: rc-drive 3.2s cubic-bezier(0.45, 0.02, 0.55, 1) forwards;
}

.race-car.driving-rtl {
  animation: rc-drive-rtl 3.2s cubic-bezier(0.45, 0.02, 0.55, 1) forwards;
  transform: scaleX(-1) translateX(-180px);
}

@keyframes rc-drive {
  0%   { opacity: 0; transform: translateX(-180px); }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(100vw + 60px)); }
}

@keyframes rc-drive-rtl {
  0%   { opacity: 0; transform: scaleX(-1) translateX(-180px); }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { opacity: 0; transform: scaleX(-1) translateX(calc(100vw + 60px)); }
}

/* Subtle wobble while driving — adds life */
.race-car.driving svg,
.race-car.driving-rtl svg {
  animation: rc-bob 0.18s ease-in-out infinite alternate;
}

@keyframes rc-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-1.5px); }
}

@media (max-width: 480px) {
  .race-car { width: 100px; height: 36px; bottom: 10px; }
}

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

/* ============================================================
   BUDGET CARDS — per pass, grouped by category
   ============================================================ */

/* Headline banner — paid vs. remaining vs. total */
.budget-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.bb-cell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 0 5px 5px 0;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bb-lbl {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--text-dim);
}

.bb-val {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
}

.bb-note {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.bb-paid { border-left-color: var(--green); background: rgba(76, 226, 138, 0.06); }
.bb-paid .bb-val, .bb-paid .bb-lbl { color: var(--green); }

.bb-left { border-left-color: var(--accent); background: rgba(247, 211, 26, 0.06); }
.bb-left .bb-val, .bb-left .bb-lbl { color: var(--accent); }

.bb-total { border-left-color: var(--accent-2); background: rgba(255, 59, 59, 0.06); }
.bb-total .bb-val, .bb-total .bb-lbl { color: var(--accent-2); }

.budget-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

/* Card variants — locked / open / option */
.budget-card-locked { border-color: rgba(76, 226, 138, 0.35); }
.budget-card-locked .budget-card-head { border-bottom-color: var(--green); }
.budget-card-locked .budget-group-head { color: var(--green); }
.budget-card-locked .budget-subtotal span:last-child { color: var(--green); }

.budget-card-open { border-color: rgba(247, 211, 26, 0.3); }
.budget-card-open .budget-card-head { border-bottom-color: var(--accent); }

.budget-card-option { border-color: rgba(198, 115, 255, 0.3); }
.budget-card-option .budget-card-head { border-bottom-color: var(--purple); }
.budget-card-option .budget-group-head { color: var(--purple); }

.ps-tag-green { background: var(--green) !important; color: #000 !important; }
.ps-tag-purple { background: var(--purple) !important; color: #fff !important; }

/* Paid lines are settled — dim the amount, it is not money you still owe */
.budget-line-paid span:last-child {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(76, 226, 138, 0.5);
}

.budget-card-total-paid {
  background: rgba(76, 226, 138, 0.1);
  border-color: rgba(76, 226, 138, 0.3);
}

.budget-card-total-paid span:first-child,
.budget-card-total-paid span:last-child { color: var(--green); }

.budget-card-total-option {
  background: rgba(198, 115, 255, 0.1);
  border-color: rgba(198, 115, 255, 0.3);
}

.budget-card-total-option span:first-child,
.budget-card-total-option span:last-child { color: var(--purple); }

.budget-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.budget-card-head {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
}

.budget-card-head .ps-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--bg);
  background: var(--accent-2);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.4rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.budget-card-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.budget-group {
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--line);
}

.budget-group:last-of-type { border-bottom: none; }

.budget-group-head {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.budget-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.85rem;
  padding: 0.25rem 0;
}

.budget-line span:last-child {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.budget-line-note span:first-child {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
}

.budget-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.78rem;
  padding: 0.5rem 0 0.1rem;
  border-top: 1px dotted var(--line);
  margin-top: 0.3rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.budget-subtotal span:last-child {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  color: var(--accent);
}

.budget-card-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.5rem;
  padding: 0.9rem 0.9rem;
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid rgba(255, 59, 59, 0.3);
  border-radius: 4px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.budget-card-total span:first-child {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  font-weight: 800;
}

.budget-card-total span:last-child {
  font-size: 1.3rem;
  color: var(--accent-2);
  font-weight: 900;
}

.budget-card-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
}

/* Paid pill */
.paid {
  display: inline-block;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  font-weight: 800;
  color: var(--green);
  background: rgba(76, 226, 138, 0.15);
  border: 1px solid rgba(76, 226, 138, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  font-style: normal;
  margin-left: 0.4rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  vertical-align: middle;
}

/* Paid amounts in parens are dimmed (already covered) */
.budget-line span:last-child {
  /* unchanged */
}

/* Paid summary block (under total) */
.budget-paid-summary {
  margin-top: 0.7rem;
  background: rgba(76, 226, 138, 0.06);
  border: 1px solid rgba(76, 226, 138, 0.2);
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.budget-paid-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(76, 226, 138, 0.2);
}

.budget-paid-line:last-child { border-bottom: none; }

.budget-paid-line span:first-child { color: var(--green); }
.budget-paid-line span:last-child { color: var(--green); font-weight: 800; }

.budget-paid-line.budget-remaining span:first-child { color: var(--accent); }
.budget-paid-line.budget-remaining span:last-child { color: var(--accent); }

.budget-summary {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.budget-summary h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.budget-summary p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================================================
   STATUS BOARD — go / no-go at T-minus
   ============================================================ */

.status-board {
  background: var(--bg-elev);
  position: relative;
}

.status-board::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--green) 0%, var(--green) 40%,
    var(--accent) 40%, var(--accent) 80%,
    var(--purple) 80%, var(--purple) 100%);
}

.sb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.sb-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 0 0 6px 6px;
  padding: 1.1rem 1.2rem;
}

.sb-col-done { border-top-color: var(--green); }
.sb-col-todo { border-top-color: var(--accent); }
.sb-col-pack { border-top-color: var(--purple); }

.sb-col h3 {
  font-size: 0.82rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}

.sb-col-done h3 { color: var(--green); }
.sb-col-todo h3 { color: var(--accent); }
.sb-col-pack h3 { color: var(--purple); }

.sb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.sb-list li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
}

.sb-list li:last-child { border-bottom: none; }

.sb-chip {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.25rem 0.15rem;
  border-radius: 2px;
  margin-top: 0.1rem;
}

.sb-done { background: var(--green); color: #000; }
.sb-todo { background: var(--accent); color: #000; }
.sb-opt  { background: var(--purple); color: #fff; }
.sb-warn { background: var(--accent-2); color: #fff; }

.sb-list strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.sb-list em {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: normal;
  line-height: 1.45;
  margin-top: 0.15rem;
}

.sb-foot {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border-left: 3px solid var(--accent-2);
  border-radius: 0 4px 4px 0;
  padding: 0.8rem 1rem;
  line-height: 1.55;
}

/* ============================================================
   PROGRAM — the official session timetable
   ============================================================ */

.program { background: var(--bg); }

.prog-day {
  margin-bottom: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.prog-day-head {
  background: rgba(247, 211, 26, 0.1);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.prog-day-head strong {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}

.prog-day-head span {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.prog-row {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
  align-items: baseline;
}

.prog-row:last-child { border-bottom: none; }
.prog-row:nth-child(even) { background: rgba(0, 0, 0, 0.22); }

.prog-time {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.prog-row.prog-key { background: rgba(255, 59, 59, 0.08); }
.prog-row.prog-key .prog-time { color: var(--accent-2); }
.prog-row.prog-key .prog-what strong { color: var(--accent-2); }

.prog-what strong {
  color: var(--text);
  font-weight: 700;
}

.prog-what em {
  display: block;
  font-style: normal;
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
  line-height: 1.45;
}

.prog-series {
  display: inline-block;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 2px;
  margin-left: 0.35rem;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  border: 1px solid var(--line);
}

.prog-series.ps-gt3 { background: rgba(247, 211, 26, 0.15); color: var(--accent); border-color: rgba(247, 211, 26, 0.35); }
.prog-series.ps-gt4 { background: rgba(76, 226, 138, 0.15); color: var(--green); border-color: rgba(76, 226, 138, 0.35); }
.prog-series.ps-fan { background: rgba(198, 115, 255, 0.15); color: var(--purple); border-color: rgba(198, 115, 255, 0.35); }

.prog-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 0.8rem 1rem;
  line-height: 1.55;
  margin-top: 0.4rem;
}

/* ============================================================
   FOOD — named places, what to order, booking status
   ============================================================ */

.food { background: var(--bg-elev); position: relative; }

.food::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #b02020 0%, #b02020 50%, var(--accent) 50%, var(--accent) 100%);
}

.food-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.food-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  position: relative;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.food-card:hover { border-color: var(--accent); }
.food-card.hot { border-color: var(--accent-2); }

.food-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
  line-height: 1.3;
  padding-right: 6rem;
}

.food-when {
  position: absolute;
  top: 1rem;
  right: 1rem;
  max-width: 5.6rem;
  text-align: center;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

.food-meta {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.food-card p { font-size: 0.86rem; line-height: 1.55; }
.food-card p + p { margin-top: 0.5rem; }

.food-order {
  margin-top: 0.7rem;
  padding: 0.55rem 0.75rem;
  background: rgba(247, 211, 26, 0.06);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.food-order strong { color: var(--accent); }

.food-book {
  margin-top: auto;
  padding-top: 0.7rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px dashed var(--line);
}

.food-book b { color: var(--accent-2); font-weight: 800; }

/* Local-specialities strip */
.food-specials {
  margin-top: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 0 6px 6px 0;
  padding: 1.1rem 1.2rem;
}

.food-specials h3 {
  font-size: 0.85rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

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

.spec-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.7rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.84rem;
  line-height: 1.5;
}

.spec-row:last-child { border-bottom: none; }

.spec-row strong {
  color: var(--accent);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: start;
  padding-top: 0.1rem;
}

.spec-row span { color: var(--text-dim); }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 2rem 1.2rem 3rem;
  text-align: center;
  background: var(--bg);
  border-top: 4px solid var(--accent);
}

footer .disclaimer {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 auto 1rem;
}

footer .brand {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 800;
}

/* ============================================================
   DESKTOP +
   ============================================================ */

@media (min-width: 720px) {
  section { padding: 3rem 2rem; }

  .hero-inner { padding: 3rem 2rem 4rem; }

  .hotel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hotel-grid-single {
    grid-template-columns: 1fr;
  }

  .prime-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .budget-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .budget-banner {
    grid-template-columns: repeat(3, 1fr);
  }

  .rental-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intel-stack {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .intel-card-hero,
  .intel-card-danish,
  .intel-card-favorites,
  .intel-card-track,
  .intel-card-watch {
    grid-column: 1 / -1;
  }

  .intel-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline li { padding-left: 5.5rem; }
  .timeline time { width: 5rem; font-size: 0.95rem; }

  .sb-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }

  .food-grid { grid-template-columns: repeat(2, 1fr); }

  .spec-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1.6rem; }

  .prog-row { grid-template-columns: 6rem 1fr; }
}

@media (min-width: 1024px) {
  .prime-grid, .logi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hotel-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1100px;
    margin: 0 auto;
  }

  .hotel-grid-single {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0;
  }

  .hero-inner { padding: 4rem 2rem 5rem; }

  main { max-width: 1100px; margin: 0 auto; }
}

/* ============================================================
   RACE DAY — banner + live tab (added on race day)
   ============================================================ */

.tab-live {
  color: var(--accent-2) !important;
  font-weight: 900;
}

.raceday {
  display: block;
  margin: .9rem;
  padding: .9rem 1rem;
  background: linear-gradient(135deg, #1c1c1c, #241010);
  border: 1px solid var(--accent-2);
  border-left: 5px solid var(--accent-2);
  border-radius: 8px;
  color: var(--text);
}
.raceday:hover { color: var(--text); border-color: var(--accent); }
.rd-tag {
  display: inline-block;
  background: var(--accent-2);
  color: #0a0a0a;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .16em;
  padding: .2rem .45rem;
  border-radius: 3px;
  margin-bottom: .4rem;
}
.raceday strong { display: block; font-size: 1.02rem; margin-bottom: .2rem; }
.raceday em {
  display: block;
  font-style: normal;
  font-size: .8rem;
  color: var(--text-dim);
}

.sb-foot-old { color: #666; font-style: italic; }

/* ============================================================
   24H CAMPER EDITION — components added on top of the gptour base
   ============================================================ */

/* Hero pills: nothing is booked yet, so pills can be open/todo, not only paid */
.hs-pill.hs-open {
  background: rgba(255, 59, 59, 0.1);
  border-color: rgba(255, 59, 59, 0.45);
}
.hs-pill.hs-open b { color: var(--accent-2); }

.hs-pill.hs-soon {
  background: rgba(247, 211, 26, 0.1);
  border-color: rgba(247, 211, 26, 0.45);
}
.hs-pill.hs-soon b { color: var(--accent); }

.hero-booked.hero-open {
  background: var(--accent-2);
  color: #fff;
}

/* Est. marker for numbers that are research, not receipts */
.est {
  display: inline-block;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.05rem 0.35rem;
  border: 1px dashed var(--text-dim);
  border-radius: 2px;
  color: var(--text-dim);
  vertical-align: middle;
  margin-left: 0.3rem;
}

/* ------------------------------------------------------------
   STINT CLOCK — 24 hour blocks from lights out to chequered flag
   ------------------------------------------------------------ */

.stint { background: var(--bg-elev); position: relative; }

.stint::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, #fff 0 12px, #000 12px 24px);
  opacity: 0.6;
}

.stint-clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  margin: 0 auto 0.8rem;
  max-width: 900px;
}

.st-h {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: 3px;
  padding: 0.4rem 0.3rem 0.45rem;
  min-height: 3.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.st-h time {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.st-h span {
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.st-h.st-night { background: #121218; }

.st-watch { border-top-color: var(--accent); }
.st-walk  { border-top-color: var(--green); }
.st-sleep { border-top-color: var(--purple); }
.st-sleep span { color: var(--text-dim); }
.st-eat   { border-top-color: #ffae42; }
.st-key   { border-top-color: var(--accent-2); background: rgba(255, 59, 59, 0.08); }
.st-key time { color: var(--accent-2); }

.stint-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin-bottom: 1.4rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.stint-legend i {
  display: inline-block;
  width: 0.8rem;
  height: 0.35rem;
  margin-right: 0.35rem;
  vertical-align: middle;
  border-radius: 1px;
}

.lg-watch { background: var(--accent); }
.lg-walk  { background: var(--green); }
.lg-sleep { background: var(--purple); }
.lg-eat   { background: #ffae42; }
.lg-key   { background: var(--accent-2); }

/* ------------------------------------------------------------
   CAMPING AREAS — hotel-card derivative with a vibe meter
   ------------------------------------------------------------ */

.camp { background: var(--bg); }

.vibe {
  display: inline-block;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 0.18rem 0.45rem;
  border-radius: 2px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.vibe-party { background: var(--accent-2); color: #fff; }
.vibe-mid   { background: var(--accent); color: #000; }
.vibe-chill { background: var(--green); color: #000; }
.vibe-van   { background: #2e96d8; color: #fff; }

.meter {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 0.5rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.meter-bar {
  height: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1px;
  overflow: hidden;
}

.meter-bar b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--accent), var(--accent-2));
}

/* ------------------------------------------------------------
   CAMPER PROVIDERS — verdict chips on rental cards
   ------------------------------------------------------------ */

.verdict {
  float: right;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  margin-left: 0.5rem;
}

.verdict-ok  { background: var(--green); color: #000; }
.verdict-no  { background: var(--accent-2); color: #fff; }
.verdict-unk { background: var(--purple); color: #fff; }

.rental-card.rental-pick::before { background: var(--green); }
.rental-card.rental-pick { border-color: rgba(76, 226, 138, 0.45); }
.rental-card.rental-alt::before  { background: #2e96d8; }
.rental-card.rental-out::before  { background: var(--accent-2); }
.rental-card.rental-out { opacity: 0.8; }

.rental-card blockquote {
  margin: 0.6rem 0 0.2rem;
  padding: 0.45rem 0.7rem;
  border-left: 2px solid var(--line);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
}

/* ------------------------------------------------------------
   PACK LIST — tickable, remembered per phone
   ------------------------------------------------------------ */

.pack-grid {
  display: grid;
  gap: 1rem;
}

.pack-col {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--purple);
  border-radius: 6px;
  padding: 1rem 1.1rem;
}

.pack-col h3 {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--purple);
  margin-bottom: 0.6rem;
}

.pack-list { list-style: none; }

.pack-list li { border-bottom: 1px solid var(--line); }
.pack-list li:last-child { border-bottom: none; }

.pack-list label {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: 0.86rem;
}

.pack-list input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.12rem;
  border: 2px solid var(--text-dim);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.pack-list input:checked {
  background: var(--green);
  border-color: var(--green);
}

.pack-list input:checked::after {
  content: "";
  width: 0.35rem;
  height: 0.6rem;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.pack-list input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pack-list input:checked + span { color: var(--text-dim); text-decoration: line-through; }

.pack-list em {
  display: block;
  font-style: normal;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.pack-progress {
  text-align: center;
  margin-top: 1rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.pack-progress b { color: var(--green); }

.pack-reset {
  margin-left: 0.8rem;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font: inherit;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  cursor: pointer;
}

.pack-reset:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------
   ROAMING CAMPER — the slow sibling of the GT3 car
   ------------------------------------------------------------ */

.camper-van {
  position: fixed;
  bottom: 12px;
  left: 0;
  width: 120px;
  height: 62px;
  z-index: 29;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-160px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.camper-van svg { width: 100%; height: 100%; display: block; }

.camper-van.driving {
  animation: cv-drive 9s linear forwards;
}

@keyframes cv-drive {
  0%   { opacity: 0; transform: translateX(-160px); }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(100vw + 40px)); }
}

.camper-van.driving svg {
  animation: rc-bob 0.35s ease-in-out infinite alternate;
}

@media (max-width: 480px) {
  .camper-van { width: 88px; height: 46px; bottom: 8px; }
}

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

@media (min-width: 720px) {
  .stint-clock { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pack-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

@media (min-width: 1024px) {
  .stint-clock { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------
   SHOPPING LISTS — item · qty · price rows
   ------------------------------------------------------------ */

.buy-list { list-style: none; margin-top: 0.4rem; }

.buy-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.4;
}

.buy-list .q {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.buy-list .e {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  min-width: 3.4rem;
  text-align: right;
}

.buy-list li.buy-head {
  display: block;
  padding-top: 0.8rem;
  border-bottom: 1px solid var(--accent);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.buy-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
}

.food-card .buy-total + p,
.food-card .buy-list + p { margin-top: 0.6rem; }

.meal-plan { margin-bottom: 1.4rem; }

/* ============================================================
   BYG TUREN — trip cost builder (ported from vegasfinalboss)
   ============================================================ */

.builder { background: var(--bg-elev); position: relative; }

.builder::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, #fff 0 12px, #000 12px 24px);
  opacity: 0.6;
}

.tab-builder { color: var(--green) !important; }

.builder-num { background: var(--green); }

.builder-card {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(160deg, #0f1a12 0%, var(--bg-card) 55%);
  border: 1px solid rgba(76, 226, 138, 0.3);
  border-radius: 10px;
  padding: 1rem 0.95rem 1.1rem;
}

/* presets */
.bt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px dashed var(--line);
}

.bt-presets-label,
.bt-total-label,
.bt-when-grid span {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.bt-presets-label { width: 100%; font-size: 0.6rem; }

.bt-preset {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.55rem 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--preset-color, var(--line));
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
}

.bt-preset:hover { transform: translateY(-2px); box-shadow: 0 0 14px color-mix(in srgb, var(--preset-color) 35%, transparent); }
.bt-preset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bt-preset-emoji { font-size: 1.1rem; line-height: 1; }
.bt-preset-name {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--preset-color);
}
.bt-preset-sub { font-size: 0.62rem; color: var(--text-dim); line-height: 1.3; }

/* rows */
.bt-row { padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.bt-row:last-child { border-bottom: none; }

.bt-row-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.bt-row-label { font-size: 0.86rem; font-weight: 700; }

.bt-row-value {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green);
  text-align: right;
}

.bt-row-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  color: var(--text-dim);
}

.bt-row-note {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-dim);
}

/* slider */
.bt-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}

.bt-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(76, 226, 138, 0.6), rgba(247, 211, 26, 0.6), rgba(255, 59, 59, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bt-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(76, 226, 138, 0.6), rgba(247, 211, 26, 0.6), rgba(255, 59, 59, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bt-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border-radius: 50%;
  background: repeating-conic-gradient(#fff 0 25%, #0a0a0a 0 50%) 50% / 10px 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(247, 211, 26, 0.55);
}

.bt-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: repeating-conic-gradient(#fff 0 25%, #0a0a0a 0 50%) 50% / 10px 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(247, 211, 26, 0.55);
}

.bt-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }

/* segmented pickers */
.bt-seg-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.bt-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem 0.3rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-dim);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.bt-seg-name { font-size: 0.72rem; font-weight: 800; text-align: center; line-height: 1.2; }
.bt-seg-sub {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  text-align: center;
  opacity: 0.8;
}

.bt-seg.active {
  border-color: var(--seg-color, var(--accent));
  color: var(--seg-color, var(--accent));
  background: color-mix(in srgb, var(--seg-color, #f7d31a) 12%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--seg-color, #f7d31a) 28%, transparent);
}

.bt-seg:focus-visible, .bt-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* chips */
.bt-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.bt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.15s;
}

.bt-chip em {
  font-style: normal;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.64rem;
  opacity: 0.8;
}

.bt-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(247, 211, 26, 0.1);
}

/* result */
.bt-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(247, 211, 26, 0.35);
}

.bt-total-head { text-align: center; margin-bottom: 0.8rem; }
.bt-total-label { display: block; font-size: 0.62rem; }

.bt-total {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(2.1rem, 10vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.bt-total-sub { display: block; font-size: 0.74rem; line-height: 1.5; color: var(--text-dim); }
.bt-total-sub strong { color: var(--green); }

.bt-bar {
  display: flex;
  height: 14px;
  margin-bottom: 0.9rem;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.4);
}

.bt-bar-seg { min-width: 2px; transition: flex 0.35s ease; }

.bt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.bt-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }

.bt-table thead th {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-align: left;
  color: var(--text-dim);
}

.bt-table th.num, .bt-table td.num { text-align: right; white-space: nowrap; }

.bt-table tbody td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.bt-table tbody td em {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.66rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--text-dim);
}

.bt-table td.num { font-family: "SF Mono", Menlo, Consolas, monospace; font-weight: 700; }
.bt-table td.pct { font-weight: 400; color: var(--text-dim); }

.bt-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.4rem;
  border-radius: 50%;
  vertical-align: 1px;
}

.bt-table tr.total-row td {
  padding-top: 0.6rem;
  border-top: 2px solid rgba(247, 211, 26, 0.45);
  border-bottom: none;
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--accent);
}

/* when the money falls */
.bt-when, .bt-reality {
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.bt-when h4, .bt-reality h4 {
  margin-bottom: 0.6rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.bt-when-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.bt-when-grid > div { text-align: center; }
.bt-when-grid span { display: block; font-size: 0.55rem; letter-spacing: 0.12em; }
.bt-when-grid strong { display: block; font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; }

.bt-when-note { font-size: 0.72rem; line-height: 1.5; color: var(--text-dim); }

.bt-reality { border-color: rgba(255, 59, 59, 0.35); }
.bt-reality h4 { color: var(--accent-2); }

.bt-reality-list { list-style: none; display: grid; gap: 0.45rem; }
.bt-reality-list li { font-size: 0.78rem; line-height: 1.45; }

.bt-flag {
  display: inline-block;
  min-width: 3.4rem;
  margin-right: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 900;
  text-align: center;
}

.bt-flag.good { background: rgba(76, 226, 138, 0.18); color: var(--green); }
.bt-flag.mid  { background: rgba(247, 211, 26, 0.18); color: var(--accent); }
.bt-flag.bad  { background: rgba(255, 59, 59, 0.18); color: #ff8080; }

.bt-disclaimer {
  margin-top: 1rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--text-dim);
}

@media (min-width: 720px) {
  .builder-card { padding: 1.4rem 1.6rem 1.5rem; }
  .bt-when-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* BYG TUREN — review fixes */
.bt-seg-name, .bt-seg-sub { overflow-wrap: anywhere; hyphens: auto; }

.bt-seg.active {
  font-weight: 900;
  background: rgba(247, 211, 26, 0.08);
  background: color-mix(in srgb, var(--seg-color, #f7d31a) 12%, transparent);
}

.bt-seg.active .bt-seg-name::before { content: "✓ "; }

.bt-preset.active {
  background: rgba(247, 211, 26, 0.08);
  background: color-mix(in srgb, var(--preset-color) 14%, transparent);
  box-shadow: inset 0 0 0 1px var(--preset-color);
}

.bt-verdict {
  margin: 0 0 0.9rem;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}

.bt-verdict.ok   { background: rgba(76, 226, 138, 0.1); border: 1px solid rgba(76, 226, 138, 0.4); color: var(--green); }
.bt-verdict.over { background: rgba(255, 59, 59, 0.1); border: 1px solid rgba(255, 59, 59, 0.4); color: #ff8080; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bt-bar-seg { transition: none; }
  .bt-preset:hover { transform: none; }
}

/* Narrow phones (320 px): let the shopping cards shrink and the hero title fit */
.food-grid { grid-template-columns: minmax(0, 1fr); }
.food-card { min-width: 0; }
.buy-list .q { white-space: normal; text-align: right; max-width: 6rem; }

@media (min-width: 720px) {
  .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 2.5rem; }
}
