/* On The Road Creative — ride the bus
   Palette: brand tokens. Type: Bricolage Grotesque (display/UI) + Instrument Serif (captions).
   The ride starts in afternoon light and drives into night: --night goes 0 → 1 (set by JS). */

:root {
  --brand-primary:   #3B82F6;
  --brand-secondary: #8B5CF6;
  --brand-deep:      #4C1D95;
  --brand-accent:    #0EA5E9;
  --brand-gradient:  linear-gradient(135deg, #0EA5E9 0%, #3B82F6 30%, #8B5CF6 60%, #6D28D9 85%, #4C1D95 100%);

  --n-900: #0F0A1F;
  --n-800: #1E1B2E;
  --n-600: #3F3B52;
  --n-400: #8E8AA3;
  --n-200: #D9D7E3;
  --n-50:  #F7F6FB;

  --bg:         #0F0A1F;
  --surface:    #1E1B2E;
  --border:     #3F3B52;
  --text:       #F7F6FB;
  --text-muted: #8E8AA3;
  --link:       #A78BFA;

  --success: #10B981;
  --warning: #F59E0B;
  --error:   #EF4444;
  --info:    #0EA5E9;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --nav-h: 64px;

  /* ride-time text colours, driven by JS as day turns to night */
  --ride-text: var(--text);
  --ride-muted: var(--text-muted);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--link); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 0; border-radius: 999px;
  background: var(--brand-primary);
  color: #fff; font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-secondary); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost {
  padding: 0.7rem 1.1rem;
  border: 1px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit;
  font-weight: 600; white-space: nowrap; opacity: .9;
}
.btn-ghost:hover { opacity: 1; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 1.25rem;
  color: var(--ride-text);
  transition: opacity .4s;
}
body.mode-plain .nav { background: linear-gradient(to bottom, rgba(15,10,31,.95), rgba(15,10,31,0)); color: var(--text); }
body.mode-ignition .nav { color: var(--text); }
body.is-loading .nav,
body.mode-ignition .route,
body.mode-ignition .odometer,
body.mode-ignition #toggle-mode,
body.mode-plain .route,
body.mode-plain .odometer,
body.mode-plain #toggle-sound { opacity: 0; pointer-events: none; }
.btn-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; opacity: .9; }
.btn-icon .snd-off { display: none; }
.btn-icon[aria-pressed="false"] .snd-on { display: none; }
.btn-icon[aria-pressed="false"] .snd-off { display: block; }
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-brand img { width: 36px; height: 36px; filter: brightness(0) invert(calc(1 - var(--day, 0) * 0.85)); opacity: .92; transition: filter .4s; }
body.mode-plain .nav-brand img, body.mode-ignition .nav-brand img { filter: brightness(0) invert(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.odometer { font-variant-numeric: tabular-nums; color: var(--ride-muted); white-space: nowrap; }
.odometer b { color: var(--ride-text); font-weight: 600; }

.route { position: relative; flex: 1; max-width: 420px; height: 4px; margin: 0 auto; }
.route-line { position: absolute; inset: 0; border-radius: 2px; background: rgba(185,169,245,.2); }
.route-line::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px;
  width: var(--p, 0%); background: var(--brand-accent);
  transition: width .2s linear;
}

/* ---------- IGNITION (afternoon) ---------- */
.ignition {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 1rem 3rem;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 45% at 50% 108%, rgba(245,179,138,.55), transparent 70%),
    linear-gradient(to bottom, #1A1033 0%, #3B2A7A 45%, #8B5CF6 80%, #C98CB0 100%);
}
body.mode-ride .ignition, body.mode-plain .ignition { display: none; }
.ignition-bus { position: relative; width: clamp(180px, 36vw, 300px); margin-bottom: 2rem; }
.ignition-bus img { width: 100%; height: auto; filter: brightness(0) invert(1) drop-shadow(0 20px 50px rgba(10,7,22,.45)); opacity: .96; }
.headlight {
  position: absolute; width: 11%; height: 7%; border-radius: 50%;
  background: #fff; opacity: 0;
  top: 79.5%;
  transition: opacity .25s;
}
.headlight-l { left: 17%; } .headlight-r { right: 17%; }
.ignition.lit .headlight {
  opacity: 1;
  box-shadow: 0 0 10px #fff, 0 0 30px var(--brand-accent), 0 0 80px var(--brand-accent), 0 0 160px rgba(14,165,233,.5);
}
.ignition.lit .ignition-bus img { animation: rumble .35s linear infinite; }
@keyframes rumble { 0%,100%{transform:translate(0,0)} 25%{transform:translate(1px,-1px)} 50%{transform:translate(-1px,1px)} 75%{transform:translate(1px,1px)} }
.ignition-kicker { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: #FFD9A0; margin-bottom: .5rem; }
.ignition-title { font-size: clamp(3rem, 10vw, 6.5rem); }
.ignition-sub { max-width: 36rem; margin: 1.25rem auto 2rem; color: var(--n-200); font-size: 1.1rem; }
.ignition-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.ignition-hint { margin-top: 2.5rem; font-size: .85rem; color: var(--n-200); opacity: .8; }
.ignition-hint b { color: #fff; font-weight: 600; }

/* ---------- RIDE (driver's seat) ---------- */
.ride { display: none; }
body.mode-ride .ride { display: block; }
.track { height: 10000px; }
.stage { position: fixed; inset: 0; overflow: hidden; background: var(--bg); --night: 1; }
#road { position: absolute; inset: 0; display: block; cursor: pointer; }

/* the instrument cluster */
.dash {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  height: var(--dash-h, 15vh); min-height: 108px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  background:
    radial-gradient(120% 140% at 50% 120%, rgba(139,92,246,.18), transparent 60%),
    linear-gradient(to bottom, rgba(10,8,20,.55) 0%, #0B0917 18%, #06050E 100%);
  border-top: 1px solid rgba(185,169,245,.22);
  box-shadow: 0 -30px 90px rgba(6,5,14,.75), inset 0 1px 0 rgba(255,255,255,.06);
  --glow: 0;
}
.dash::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(to right, transparent, rgba(14,165,233,calc(.2 + var(--glow) * .7)), transparent); }
.dash-left, .dash-right { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.dash-right { justify-content: flex-end; }
.dash-label { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: rgba(217,215,227,.55); display: inline-flex; align-items: center; gap: .4rem; }
.dash-led { width: 5px; height: 5px; border-radius: 50%; background: rgba(217,215,227,.18); transition: background .25s, box-shadow .25s; }

/* rotary headlight knob */
.knob { display: flex; flex-direction: column; align-items: center; gap: .5rem; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.knob-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from 210deg, rgba(14,165,233,0) 0deg, rgba(14,165,233,0) 300deg, rgba(14,165,233,0) 360deg), radial-gradient(circle at 50% 35%, #2A2342, #0E0B1C 70%);
  box-shadow: 0 0 0 1px rgba(185,169,245,.25), inset 0 2px 6px rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.5); transition: box-shadow .3s; }
.knob-face { width: 36px; height: 36px; border-radius: 50%; position: relative; background: radial-gradient(circle at 40% 30%, #3B3260, #17132A 75%); box-shadow: inset 0 1px 1px rgba(255,255,255,.12); transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.knob-notch { position: absolute; left: 50%; top: 4px; width: 3px; height: 10px; margin-left: -1.5px; border-radius: 2px; background: rgba(217,215,227,.5); transition: background .3s, box-shadow .3s; }
.knob[aria-pressed="true"] .knob-face { transform: rotate(60deg); }
.knob[aria-pressed="true"] .knob-notch { background: var(--brand-accent); box-shadow: 0 0 8px var(--brand-accent); }
.knob[aria-pressed="true"] .knob-ring { box-shadow: 0 0 0 1px rgba(14,165,233,.6), 0 0 22px rgba(14,165,233,.35), inset 0 2px 6px rgba(255,255,255,.08); }
.knob[aria-pressed="true"] .dash-led { background: var(--brand-accent); box-shadow: 0 0 10px var(--brand-accent); }
.knob:hover .knob-face { filter: brightness(1.15); }

/* horn button */
.horn { display: flex; flex-direction: column; align-items: center; gap: .5rem; background: none; border: 0; padding: 0; cursor: pointer; color: rgba(217,215,227,.8); }
.horn-face { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2A2342, #0E0B1C 70%); box-shadow: 0 0 0 1px rgba(185,169,245,.25), inset 0 2px 6px rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.5); transition: transform .1s, box-shadow .2s; }
.horn:active .horn-face { transform: translateY(2px) scale(.97); box-shadow: 0 0 0 1px rgba(185,169,245,.4), inset 0 2px 10px rgba(0,0,0,.6); }
.horn:hover { color: #fff; }

/* speedometer */
.dial { position: relative; width: 200px; height: 120px; --v: 0; }
.dial svg { display: block; overflow: visible; }
.dial-track { fill: none; stroke: rgba(185,169,245,.18); stroke-width: 3; stroke-linecap: round; }
.dial-fill { fill: none; stroke: url(#dialArc); stroke-width: 3; stroke-linecap: round; stroke-dasharray: var(--v) 1; filter: drop-shadow(0 0 calc(4px + var(--glow) * 6px) rgba(14,165,233,.8)); transition: stroke-dasharray .15s linear; }
.dial-ticks line { stroke: rgba(217,215,227,.35); stroke-width: 1.5; stroke-linecap: round; }
.dial-ticks line.major { stroke: rgba(217,215,227,.7); stroke-width: 2; }
.needle line { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255,255,255,.6)); }
.needle circle { fill: #0B0917; stroke: #fff; stroke-width: 2; }
.needle { transition: transform .2s cubic-bezier(.2,.8,.3,1); transform: rotate(-120deg); }
.dash-speed { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: baseline; gap: .3rem; color: #fff; font-variant-numeric: tabular-nums; }
.dash-speed b { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.04em; text-shadow: 0 0 calc(var(--glow) * 18px) rgba(14,165,233,.9); }
.dash-speed small { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }

/* odometer */
.odo { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.odo-digits { display: inline-flex; align-items: baseline; gap: .3rem; padding: .25rem .6rem; border-radius: 6px; background: linear-gradient(to bottom, #0F0C1E, #07060F); box-shadow: inset 0 1px 3px rgba(0,0,0,.8), 0 0 0 1px rgba(185,169,245,.18); color: #fff; font-variant-numeric: tabular-nums; }
.odo-digits b { font-size: 1.05rem; font-weight: 500; letter-spacing: .04em; }
.odo-digits small { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.dash-logo { filter: brightness(0) invert(1); opacity: .45; }
.dash.honk .dial { animation: hoodhop .3s ease-out; }
.dash.flash::after { content: ""; position: absolute; inset: -1px 0 0 0; pointer-events: none; background: radial-gradient(60% 120% at 12% 50%, rgba(14,165,233,.55), transparent 60%); animation: dashflash 1.1s ease-out forwards; }
@keyframes dashflash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.dash.flash .knob-ring { animation: knobflare .9s ease-out; }
@keyframes knobflare { 15% { box-shadow: 0 0 0 2px rgba(14,165,233,1), 0 0 48px 10px rgba(14,165,233,.7), inset 0 2px 6px rgba(255,255,255,.08); } }
.dash.flash .dash-speed b, .dash.flash .dial-fill { animation: textflare .9s ease-out; }
@keyframes textflare { 15% { filter: drop-shadow(0 0 16px rgba(14,165,233,1)) brightness(1.6); } }
@keyframes hoodhop { 30% { transform: translateY(-5px); } }

/* captions take the light of the day */
.caption { color: var(--ride-text); }

.exit-prompt {
  position: absolute; left: 50%; bottom: calc(var(--dash-h, 15vh) + 1.5rem); transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center;
  padding: .6rem .6rem .6rem 1.1rem; border-radius: 999px;
  background: rgba(15,10,31,.78); color: #fff; border: 1px solid rgba(185,169,245,.35); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(10,7,22,.5);
  animation: cardin .25s ease-out;
}
.exit-prompt[hidden] { display: none; }
.ducks-panel .btn { background: #F2C75C; }
.ducks-panel .btn:hover { background: #fff; }
.exit-prompt span { opacity: .85; font-size: .9rem; }
.exit-prompt b { font-weight: 800; }
.exit-prompt .btn { padding: .55rem 1rem; background: var(--brand-accent); color: #0F0A1F; }
.exit-prompt .btn:hover { background: #fff; }

.caption {
  position: absolute; left: 50%; top: calc(var(--nav-h) + 4vh); transform: translateX(-50%); z-index: 4;
  width: min(26ch, 90vw); text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.15; letter-spacing: -0.01em;
  color: var(--ride-text);
  opacity: 0; transition: opacity .5s;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(10,7,22,.6);
}
.caption.show { opacity: 1; }

.toast {
  position: absolute; left: 1.25rem; top: calc(var(--nav-h) + 1rem); transform: translate(0, -8px); z-index: 6;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  font-size: .9rem; opacity: 0; transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(0, 0); }
.toast b { color: var(--brand-accent); }
.toast.badge { background: rgba(15,10,31,.85); border-color: rgba(185,169,245,.4); color: #fff; }

.drive-hint {
  position: absolute; left: 50%; bottom: calc(var(--dash-h, 15vh) + 1.5rem); transform: translateX(-50%); z-index: 4;
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; letter-spacing: .08em; color: var(--ride-text);
  transition: opacity .5s;
}
.drive-hint span { width: 14px; height: 22px; border: 2px solid currentColor; border-radius: 8px; position: relative; opacity: .7; }
.drive-hint span::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; margin-left: -1px; background: currentColor; border-radius: 1px; animation: wheelhint 1.4s infinite; }
@keyframes wheelhint { 0%{top:4px;opacity:1} 100%{top:12px;opacity:0} }
.drive-hint.hide { opacity: 0; }

.hud {
  position: absolute; right: 1.25rem; bottom: calc(var(--dash-h, 15vh) + 1rem); z-index: 6;
  display: flex; align-items: center; gap: .9rem;
  font-size: .8rem; color: var(--ride-text); font-variant-numeric: tabular-nums;
}
.hud-item { white-space: nowrap; }
.hud-badges { display: inline-flex; gap: .3rem; }
.hud-badges span, .badges span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(15,10,31,.7); border: 1px solid rgba(185,169,245,.4); color: #fff; font-size: .8rem;
  animation: badgein .4s ease-out;
}
@keyframes badgein { from { transform: scale(0); } 60% { transform: scale(1.3); } }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.badges span { width: auto; height: auto; padding: .35rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; display: inline-flex; gap: .4rem; }

/* fork in the road */
.fork {
  position: absolute; left: 1.25rem; bottom: calc(var(--dash-h, 15vh) + 1.5rem); z-index: 6;
  width: min(420px, 92vw); padding: 1.3rem 1.5rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15,10,31,.5);
  animation: cardin .3s ease-out;
}
.fork[hidden] { display: none; }
.fork-kicker { font-family: var(--serif); font-style: italic; color: var(--brand-accent); font-size: 1.1rem; }
.fork h2 { font-size: 1.8rem; margin: .2rem 0 .6rem; }
.fork-copy { color: var(--n-200); margin-bottom: 1rem; }
.fork-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.fork-actions .btn-ghost { color: var(--text); }
.fork-msg { margin-top: .9rem; font-family: var(--serif); font-style: italic; color: var(--warning); }
.fork-msg[hidden] { display: none; }

/* ---------- CARD ---------- */
.card-wrap {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(15,10,31,.6);
  backdrop-filter: blur(4px);
}
.card-wrap[hidden] { display: none; }
.card {
  width: min(560px, 100%);
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem;
  animation: cardin .25s ease-out;
}
@keyframes cardin { from { opacity: 0; transform: translateY(10px) scale(.98);} }
.card-kicker { font-family: var(--serif); font-style: italic; color: var(--brand-accent); font-size: 1.1rem; margin-bottom: .4rem; }
.card h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.card p, .card li { color: var(--n-200); margin-bottom: .75rem; }
.card ol { padding-left: 1.2rem; margin: 0; }
.card .card-note { color: var(--text-muted); font-size: .95rem; }
.card .btn { margin-top: .5rem; }

/* ---------- PLAIN ---------- */
.plain { display: none; position: relative; z-index: 5; background: var(--bg); }
body.mode-plain .plain, body.mode-ride .plain { display: block; }
body.mode-ride .plain .plain-hero, body.mode-ride .plain .plain-grid { display: none; }
body.mode-ride .contact { min-height: 100vh; box-shadow: 0 -40px 80px rgba(15,10,31,.9); }
.plain > section { padding: 5rem max(1.25rem, calc((100% - 64rem) / 2)); }
.plain-hero { padding-top: calc(var(--nav-h) + 4rem) !important; }
.plain-hero h2 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 22ch; }
.plain-hero p { margin-top: 1.25rem; max-width: 46rem; color: var(--n-200); font-size: 1.15rem; }
.plain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem 3rem; }
.plain-grid article h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.plain-grid article p, .plain-grid article li { color: var(--n-200); }
.plain-grid article p + p { margin-top: .6rem; }
.plain-grid ol { padding-left: 1.2rem; margin: 0; }
.plain-grid li + li { margin-top: .5rem; }

.contact { background: linear-gradient(to bottom, var(--bg), #1A1033); }
.contact-inner { max-width: 36rem; margin: 0 auto; padding-top: var(--nav-h); }
.contact-kicker { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--brand-accent); margin-bottom: .5rem; min-height: 1.5em; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.contact-copy { margin: 1rem 0 2rem; color: var(--n-200); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem;
  background: var(--n-900); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(14,165,233,.25); }
.field.hp { position: absolute; left: -9999px; }
#form-status { margin-top: 1rem; min-height: 1.5em; }
#form-status.ok { color: var(--success); }
#form-status.err { color: var(--error); }

.footer {
  padding: 3rem 1.25rem 4rem; text-align: center;
  font-size: .9rem;
  background: var(--brand-deep); color: var(--n-200);
}
.footer img { margin: 0 auto 1rem; opacity: .9; }
.footer p + p { margin-top: .4rem; opacity: .8; }

/* plain page extras */
.plain-cities h2 { font-size: 2rem; margin-bottom: 1.5rem; }
.plain-cities ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.plain-cities li a { display: block; padding: 1rem 1.25rem; border-left: 3px solid var(--brand-accent); background: var(--surface); color: var(--text); text-decoration: none; height: 100%; }
.plain-cities li a:hover { background: var(--n-600); }
.plain-cities li b { display: block; font-size: 1.2rem; }
.plain-cities li span { color: var(--text-muted); font-size: .9rem; }
.plain-cities > p { color: var(--text-muted); }
.plain-grid article h3 a { color: var(--text); text-decoration: none; }
.plain-grid article h3 a:hover { color: var(--link); }
.card h2 a { color: inherit; text-decoration: none; pointer-events: none; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; margin-bottom: 1.25rem; }
.footer-links a { color: var(--n-200); font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
body.mode-ride .plain .plain-cities { display: none; }

/* ---------- MOBILE ---------- */
@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .nav { padding: 0 .9rem; gap: .75rem; }
  .nav-brand span { display: none; }
  .route { max-width: none; }
  .nav-right { gap: .6rem; }
  .nav .btn-ghost { padding: .5rem .8rem; font-size: .85rem; }
  .caption { font-size: 1.2rem; width: 92vw; top: calc(var(--nav-h) + 4.5vh); }
  .toast { font-size: .8rem; max-width: 90vw; left: .9rem; }
  .dash { --dash-h: 14vh; min-height: 100px; padding: 0 .7rem; grid-template-columns: auto 1fr auto; }
  .dash-left, .dash-right { gap: .6rem; }
  .knob-ring, .horn-face { width: 42px; height: 42px; }
  .knob-face { width: 28px; height: 28px; }
  .dial { width: 140px; height: 86px; }
  .dial svg { width: 140px; height: 86px; }
  .dash-speed b { font-size: 1.3rem; }
  .odo:last-of-type, .dash-logo { display: none; }
  .dash-label { font-size: .52rem; }
  .hud { right: .9rem; bottom: calc(12vh + .8rem); gap: .5rem; font-size: .72rem; }
  .drive-hint { bottom: calc(var(--dash-h, 15vh) + 1rem); }
  .exit-prompt { bottom: calc(12vh + 3.2rem); width: 92vw; border-radius: 18px; padding: .6rem .8rem; }
  .fork { bottom: calc(12vh + 1rem); }
  .fork { left: 4vw; bottom: calc(var(--dash-h, 15vh) + 1rem); padding: 1.1rem 1.2rem; }
  .fork h2 { font-size: 1.4rem; }
  .card { padding: 1.5rem; }
  .plain > section { padding: 3.5rem 1rem; }
  .plain-hero { padding-top: calc(var(--nav-h) + 2.5rem) !important; }
}

/* ---------- MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
