:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #eef0e7;
  background: #101719;
  --ink: #eef0e7;
  --muted: #a2ada9;
  --subtle: #6f7d79;
  --accent: #e6ba62;
  --surface: #131c20;
  --surface-raised: #1b262a;
  --line: #c0d0c21f;
  --menu-left: 32px;
}
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
#world.free-look-ready { cursor: grab; touch-action: none; }
#world.free-look-dragging { cursor: grabbing; }
.radio-shortcut { position: fixed; right: 28px; top: 174px; z-index: 6; background: transparent; border: 1px solid #e9f2e64d; border-radius: 50%; width: 48px; height: 48px; padding: 0; text-shadow: 0 1px 5px #000; }
.radio-shortcut small { font-size: 9px; margin-left: 3px; }
.bus-radio { position: fixed; z-index: 9; right: 28px; top: 236px; width: min(340px,calc(100vw - 40px)); padding: 22px; background: #111b20ee; border-top: 2px solid #9ae0cf; box-shadow: 0 14px 40px #0006; }
.bus-radio .eyebrow { font-size: 9px; letter-spacing: 2px; }
.bus-radio h2 { margin-top: 12px; font-size: 21px; }
.bus-radio p { font-size: 11px; color: #b0c5c0; margin-top: 6px; min-height: 30px; }
.radio-controls { display: flex; align-items: center; gap: 6px; margin: 12px 0; }
.radio-controls button { padding: 6px 10px; }
.radio-controls #radioPlay { min-width: 65px; }
.radio-controls label { margin-left: auto; font-size: 9px; letter-spacing: 1px; }
.radio-controls input { display: block; width: 92px; accent-color: #9ae0cf; }
.bus-radio > small { display: block; font-size: 9px; line-height: 1.6; color: #8ca49d; }
.bus-radio.playing { border-color: #e6ba62; }
#lightReadout { color: #a6d8ef; font-size: 9px; }
@media(max-height:600px) { .bus-radio { top: 135px; } .radio-shortcut { top: 90px; right: 88px; } }
button, select, input, a { touch-action: manipulation; }
button, select, input { font: inherit; }
button, select {
  color: inherit;
  background: #192327;
  border: 1px solid #c0d0c230;
  border-radius: 3px;
  min-height: 36px;
}
button { padding: 9px 13px; cursor: pointer; }
select { padding: 8px 26px 8px 11px; cursor: pointer; max-width: 100%; }
button:hover:not(:disabled), select:hover { background: #283236; border-color: #e6ba6280; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled { opacity: .4; cursor: wait; }
a { color: inherit; }
h1, h2, p { margin: 0; }
h1 { font-size: 29px; font-weight: 650; line-height: 1.15; letter-spacing: -.7px; }
h2 { font-size: 25px; font-weight: 600; letter-spacing: -.5px; }
.hidden, [hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#world { display: block; width: 100vw; height: 100vh; outline: none; }
.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.7px;
  line-height: 1.5;
}

/* The game shell: the scene is the background, never a web-page hero. */
.game-header {
  position: fixed;
  inset: 0 0 auto;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #c0d0c218;
  background: linear-gradient(#0d1418ee, #0d141895);
  z-index: 6;
  pointer-events: none;
}
.game-header > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; font-weight: 760; letter-spacing: 3.5px; }
.brand small { display: block; margin-top: 4px; color: #a9b4af; font-size: 7px; font-weight: 500; letter-spacing: 2px; }
.brand-mark { width: 32px; height: 34px; position: relative; color: var(--accent); font: italic 800 33px/34px Arial, sans-serif; letter-spacing: -3px; }
.brand-mark::after, .brand-mark span { content: ""; position: absolute; left: 2px; bottom: 2px; width: 26px; height: 2px; background: var(--accent); }
.brand-mark span { bottom: -3px; width: 20px; }
.session-label { display: flex; gap: 9px; align-items: center; font: 9px ui-monospace, monospace; letter-spacing: .7px; color: #c7d2cb; }
.session-label i, .scene-caption i { width: 5px; height: 5px; display: inline-block; background: #b6c894; border-radius: 50%; }
.session-label span { margin-left: 12px; padding-left: 18px; border-left: 1px solid var(--line); color: #83938d; font-size: 8px; }
.toolbar { display: flex; gap: 5px; font-size: 10px; }
.toolbar button, .toolbar select { min-height: 31px; padding: 6px 10px; background: #111b20dc; }
body.menu-open .toolbar, body:not(.menu-open) .session-label { display: none; }

.game-menu {
  position: fixed;
  inset: 72px 0 30px;
  z-index: 5;
  pointer-events: none;
}
.game-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b1318f7 0%, #0b1318e8 27%, #0b131875 46%, #0b131807 72%);
  pointer-events: none;
}
.menu-navigation {
  position: absolute;
  top: 0;
  left: var(--menu-left);
  right: 32px;
  height: 58px;
  display: flex;
  gap: 30px;
  align-items: stretch;
  border-bottom: 1px solid #d2e0d118;
}
.menu-navigation button {
  position: relative;
  min-width: 88px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #95a29e;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 650;
  pointer-events: auto;
}
.menu-navigation button span { margin-right: 7px; font-size: 8px; color: #687c74; font-weight: 500; }
.menu-navigation button[aria-selected="true"] { color: var(--ink); }
.menu-navigation button[aria-selected="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--accent); }
.menu-navigation button[aria-selected="true"] span { color: var(--accent); }
.menu-navigation button:hover { background: transparent; color: #fff; }
.menu-workspace {
  position: absolute;
  left: var(--menu-left);
  top: 79px;
  bottom: 99px;
  width: 492px;
  max-width: calc(100vw - 64px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #7b897a55 transparent;
  padding-right: 5px;
  pointer-events: auto;
}
.menu-pane { padding-bottom: 12px; }
.pane-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 19px; }
.pane-heading .eyebrow { margin-bottom: 5px; }
.section-count { padding-bottom: 4px; color: #7f918a; font: 8px ui-monospace, monospace; letter-spacing: 1px; white-space: nowrap; }
.pane-description { color: var(--muted); font-size: 12px; line-height: 1.6; margin: -7px 0 18px; }

.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  height: 143px;
  padding: 13px 14px 11px;
  overflow: hidden;
  border: 1px solid #b2c2b527;
  background: #152126ed;
  border-radius: 3px;
}
.route-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, #111b20 0%, #111b20e8 37%, transparent 100%); pointer-events: none; }
.route-card > *:not(.route-art) { position: relative; z-index: 1; }
.route-card.is-selected { border-color: var(--accent); background: #253027; }
.route-card.is-selected::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); z-index: 2; }
.route-art { position: absolute; right: -1px; left: 25%; top: 8px; height: 80px; opacity: .46; }
.route-art svg { width: 100%; height: 100%; fill: none; overflow: visible; }
.route-art .terrain { fill: #385047; stroke: none; }
.route-art .structure { stroke: #9aaea0; stroke-width: 2; fill: none; }
.route-art .road-line { stroke: #d4c99a; stroke-width: 2; fill: none; }
.route-art .context-line { stroke: #52675e; stroke-width: 1; fill: none; }
.route-art .map-road { stroke: #6d8373; stroke-width: 10; fill: none; }
.route-art circle { fill: #ddc377; stroke: #182622; stroke-width: 2; }
.route-card.is-selected .route-art { opacity: .7; }
.route-card-top { display: flex; justify-content: space-between; align-items: center; }
.route-type { font: 8px ui-monospace, monospace; letter-spacing: 1px; color: #c4cbb8; }
.selection-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #a5b3a36b; }
.is-selected .selection-dot { border: 3px solid var(--accent); background: #14201c; }
.route-card strong { font-size: 16px; font-weight: 600; line-height: 1.2; margin-top: 26px; letter-spacing: -.25px; }
.route-description { margin-top: 5px; font-size: 9px; color: #9caca3; }
.route-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 9px; color: #778e82; font: 6.5px ui-monospace, monospace; letter-spacing: .45px; }
.route-card-foot > span { font-size: 8px; color: #b2bb9e; }
.route-card.is-selected .route-card-foot { color: #c7ab70; }
.route-loading { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 12px 0 15px; min-height: 26px; }
.route-loading p { color: #8fa69a; font: 9px/1.45 ui-monospace, monospace; max-width: 290px; }
.route-entry { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.route-entry label { color: #7f9588; font-size: 7px; letter-spacing: .9px; }
.route-entry select { width: 158px; min-height: 26px; padding: 4px 20px 4px 9px; font-size: 9px; background: #172328; }
.text-button { border: 0; padding: 5px 0; min-height: 24px; background: transparent; color: #d6bd83; font-size: 9px; white-space: nowrap; }
.text-button:hover:not(:disabled) { background: transparent; color: #ffdda2; }
.quick-sessions { display: grid; grid-template-columns: 96px 1fr 1fr; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.quick-sessions > span { color: #738980; font-size: 7px; font-weight: 650; letter-spacing: 1px; }
.quick-sessions button { font-size: 9px; padding: 8px 9px; min-height: 31px; text-align: left; background: #122025c9; }
.quick-sessions button span { float: right; color: var(--accent); }

.vehicle-list { display: grid; gap: 9px; }
.vehicle-card { display: grid; grid-template-columns: 24px 40px 1fr 12px; gap: 13px; align-items: center; text-align: left; padding: 17px 15px; background: #142025ed; }
.vehicle-card.is-selected { border-color: var(--accent); background: #222c25; }
.vehicle-number { font: 10px ui-monospace, monospace; color: #748b7d; }
.vehicle-card strong { font-size: 12px; font-weight: 650; letter-spacing: 1px; }
.vehicle-card small { display: block; font-size: 10px; color: #93a69b; margin-top: 6px; }
.vehicle-swatch { height: 39px; border-radius: 2px; box-shadow: inset 0 0 0 1px #fff2; }
.lowfloor-swatch { background: linear-gradient(180deg, #b9b7a0 0 20%, #202c2e 20% 52%, #d5813f 52%); }
.minnal-swatch { background: linear-gradient(165deg, #deded0 0 24%, #273438 24% 53%, #e4e4d8 53% 65%, #aa3843 65% 82%, #e4e4d8 82%); }
.simple-swatch { background: linear-gradient(165deg, #a9b2a7 0 24%, #344442 24% 52%, #c5c9b8 52% 65%, #6f534c 65% 82%, #a4ac9a 82%); }
.swift-swatch { background: linear-gradient(170deg, #e68228 0 23%, #182b30 23% 53%, #e47828 53% 70%, #e9dac0 70% 76%, #c26423 76%); }
.vehicle-loading { padding: 15px 0; min-height: 56px; }
.vehicle-loading p { font: 10px/1.5 ui-monospace, monospace; color: #a1b3a5; }
progress { display: block; width: 100%; height: 3px; margin-top: 9px; accent-color: var(--accent); border: 0; }
.secondary-button { display: flex; justify-content: space-between; width: 100%; min-height: 40px; color: #c6d3c1; background: #172127; font-size: 11px; }
.secondary-button span { color: var(--accent); }
.development-note { margin-top: 17px; color: #7f9489; font-size: 10px; line-height: 1.65; max-width: 450px; }

.settings-list { border-top: 1px solid var(--line); }
.setting-row { min-height: 75px; padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.setting-row label, .setting-row > div { flex: 1; min-width: 0; }
.setting-row strong { display: block; color: #dce4d9; font-size: 12px; font-weight: 550; }
.setting-row label span, .setting-row > div span { display: block; color: #7e9588; font-size: 9px; line-height: 1.5; margin-top: 6px; }
.setting-row select, .setting-toggle { width: 148px; font-size: 11px; flex-shrink: 0; background: #1b272a; }
.setting-row input { width: 18px; height: 18px; accent-color: var(--accent); margin-right: 3px; cursor: pointer; }
.setting-row input[type="range"] { width: min(148px,32vw); min-width: 90px; height: 28px; flex: 0 0 auto; }
.credits-link { display: flex; justify-content: space-between; padding: 14px 0; margin-top: 12px; color: #bfccb8; font-size: 10px; text-decoration: none; border-top: 1px solid var(--line); }
.credits-link span { color: var(--accent); }
.key-bindings { margin: 0; }
.key-bindings > div { display: grid; grid-template-columns: 133px 1fr; gap: 12px; align-items: center; min-height: 42px; border-bottom: 1px solid var(--line); }
.key-bindings dt { display: flex; gap: 5px; }
.key-bindings dd { margin: 0; color: #b7c4b8; font-size: 11px; }
kbd { display: inline-block; padding: 4px 7px; min-width: 23px; text-align: center; font: 9px ui-monospace, monospace; color: #d6dfcf; background: #1b292c; border: 1px solid #bacfb32e; border-bottom-width: 2px; border-radius: 3px; }

.scene-caption { position: absolute; right: 34px; bottom: 116px; text-align: right; max-width: 340px; text-shadow: 0 2px 8px #0009; }
.scene-caption > span { display: block; color: #c6d4bb; font: 8px ui-monospace, monospace; letter-spacing: 1.6px; }
.scene-caption i { margin-right: 6px; }
.scene-caption strong { display: block; font-size: 19px; font-weight: 550; margin-top: 8px; }
.scene-caption small { display: block; color: #a1b69f; font-size: 9px; margin-top: 5px; }
.launch-bar { position: absolute; inset: auto 0 0; min-height: 79px; padding: 15px 32px; display: flex; align-items: center; gap: 40px; border-top: 1px solid #c9d8b727; background: #10191cf5; pointer-events: auto; }
.launch-selection, .launch-route { position: relative; min-width: 190px; }
.launch-selection > span, .launch-route > span { display: block; margin-bottom: 7px; color: #71897b; font-size: 7px; letter-spacing: 1.3px; font-weight: 650; }
.launch-selection strong { font-size: 12px; letter-spacing: 1px; font-weight: 650; }
.launch-selection button { min-height: auto; border: 0; background: none; margin-left: 13px; padding: 0 0 1px; font-size: 9px; color: #c8b477; border-bottom: 1px solid #c8b47755; border-radius: 0; }
.launch-route strong { font-size: 11px; font-weight: 500; color: #b9c7b6; }
.primary { background: var(--accent); color: #17201c; border: 0; border-radius: 3px; font-weight: 700; letter-spacing: 1px; display: flex; justify-content: space-between; align-items: center; }
.primary:hover:not(:disabled) { color: #111a15; background: #f3cd7e; }
.launch-button { margin-left: auto; min-width: 251px; height: 47px; padding: 0 20px; font-size: 11px; }
.launch-arrow { font-size: 23px; font-weight: 400; }
.launch-button:disabled { background: #8d825e; color: #c2c2a1; opacity: .75; }

/* In-drive presentation: transparent navigation and instruments, no app chrome. */
body:not(.menu-open) .game-header { display: none; }
body.menu-open .live-views { display: none !important; }
#drivingUI { --hud-white: #f7faf4; --hud-cyan: #8af2d8; color: var(--hud-white); font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #07151ef2, 0 2px 14px #07151eb3; }
.navigation-hud { position: fixed; left: 32px; top: 32px; width: 244px; pointer-events: none; }
.navigation-hud .route-strip { display: flex; align-items: center; gap: 9px; position: static; padding: 0 12px; background: none; border: 0; }
.route-strip strong { display: block; font-size: 10px; line-height: 1.5; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; max-width: 220px; }
.navigation-mark { color: var(--hud-cyan); font-size: 23px; line-height: 1; }
.navigation-hud .route-map { position: static; width: 100%; padding: 0; background: none; border: 0; }
.navigation-hud .route-map canvas { width: 100%; height: auto; display: block; pointer-events: auto; touch-action: manipulation; filter: drop-shadow(0 2px 5px #06171c99); }
.navigation-hud .journey-card { position: static; width: auto; padding: 0 16px; background: none; border: 0; }
.journey-card .eyebrow { font-size: 8px; letter-spacing: 1.8px; color: #d5e7e2; }
.navigation-instruction { display: flex; align-items: flex-start; gap: 12px; margin-top: 7px; }
.waypoint-mark { color: var(--hud-cyan); font-size: 26px; line-height: 1; }
.navigation-instruction > div { min-width: 0; }
.journey-card strong { display: block; font-size: 12px; line-height: 1.5; font-weight: 550; }
.journey-card #distance { display: block; font-size: 10px; color: #f3f6efc9; line-height: 1.5; margin-top: 2px; }
.journey-progress { display: flex; align-items: center; gap: 9px; margin: 10px 0 0 38px; }
.progress { height: 2px; background: #f3f7f13b; flex: 1; overflow: hidden; box-shadow: 0 1px 3px #0007; }
.progress i { display: block; height: 100%; width: 0; background: var(--hud-cyan); }
#progressPercent { font-size: 8px; color: #e7f0e5b3; }
.pause-shortcut { position: fixed; top: 26px; right: 30px; min-height: 44px; padding: 8px 5px; border: 0; background: transparent; font-size: 9px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; text-shadow: inherit; }
.pause-shortcut::before { content: "Ⅱ"; display: inline-block; font-size: 21px; font-weight: 600; margin-right: 10px; vertical-align: -2px; }
.pause-shortcut:hover:not(:disabled) { background: transparent; color: var(--hud-cyan); }
#drivingUI .cluster { position: fixed; left: auto; top: auto; right: 32px; bottom: 33px; width: 236px; min-width: 0; border: 0; background: none; overflow: visible; }
.drive-meta { display: flex; justify-content: space-between; gap: 14px; padding: 0 25px 7px; font-size: 9px; letter-spacing: .7px; color: #f5f8eee0; }
.drive-meta #clock { font-weight: 650; }
.speed-gauge { position: relative; height: 196px; }
.rpm-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; filter: drop-shadow(0 2px 3px #05151db3); }
.rpm-track { stroke: #eaf4ec66; stroke-width: 2; }
#rpmArc { stroke: var(--hud-cyan); stroke-width: 3; }
.rpm-redline { stroke: #f29c77; stroke-width: 2; opacity: .9; }
.gauge-ticks { stroke: #f0f7ed9c; stroke-width: 1.6; stroke-linecap: butt; }
.speed-value { position: absolute; left: 35px; top: 59px; width: 126px; text-align: center; }
#speedText { display: block; font: italic 650 76px/.9 "Arial Narrow", Inter, "Segoe UI", sans-serif; letter-spacing: -4px; color: #fff; }
.speed-unit { display: block; font-size: 10px; font-weight: 650; letter-spacing: 2px; margin: 11px 0 0 9px; text-transform: uppercase; }
.gear-value { position: absolute; top: 77px; right: 33px; text-align: center; }
#gearText { display: block; color: var(--hud-cyan); font-size: 31px; font-weight: 500; line-height: 1; }
.gear-value small { display: block; font-size: 6px; letter-spacing: 1px; margin-top: 8px; color: #d4e3d9c9; }
.rpm-value { position: absolute; bottom: 17px; left: 63px; display: flex; align-items: baseline; gap: 7px; }
#rpmText { font-size: 15px; color: #e9f1e4; }
.rpm-value small { font-size: 7px; color: #d9e6d7b3; letter-spacing: .5px; }
.drive-assists { display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 8px; letter-spacing: 1px; margin-top: -3px; }
.drive-assists .limit-sign { min-width: 28px; width: 28px; height: 28px; border: 2px solid #f5f7ecb3; border-radius: 50%; display: grid; place-items: center; font: 600 10px/1 Inter, sans-serif; background: none; color: #fff; }
#limiterReadout { color: var(--hud-cyan); }
#cameraName { color: #dae4d1b3; }
#drivingUI .cluster-accessible { display: flex; justify-content: center; gap: 14px; padding: 13px 0 0; font-size: 8px; color: #e4edd9b3; letter-spacing: .3px; }
.hud-compact #drivingUI .cluster-accessible { display: none; }
#drivingUI .ride-status { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 12px; font-size: 9px; text-transform: uppercase; letter-spacing: .6px; background: none; border: 0; padding: 0; }
.ride-status > span:not(.warning) { display: none; }
body:not(.hud-compact) #fuelStatus { display: inline; }
.door-action { position: fixed; bottom: 56px; left: 44px; min-height: 44px; padding: 8px 0; font-size: 12px; font-weight: 600; background: none; border: 0; color: #f5f8eb; text-shadow: inherit; }
.door-action::before { content: "E"; display: inline-grid; place-items: center; border: 1px solid #dfeadd9c; width: 25px; height: 25px; border-radius: 3px; font-size: 11px; margin-right: 10px; }
.drive-hint { position: fixed; left: 44px; bottom: 33px; font-size: 8px; letter-spacing: .7px; color: #e4eddf9c; pointer-events: none; }
.drive-hint span { color: #fff; font-weight: 650; margin-right: 5px; }
.drive-hint i { margin: 0 8px; font-style: normal; color: #d0e0d080; }
.limiter-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.limit-sign { display: grid; place-items: center; background: #dddcc9; color: #172022; border: 3px solid #a84d40; border-radius: 50%; min-width: 33px; height: 33px; font: 650 13px ui-monospace, monospace; }
.limiter-row label { display: block; font-size: 6px; color: #8ca08e; letter-spacing: .8px; margin-bottom: 3px; }
.limiter-row select { min-height: 23px; padding: 2px 13px 2px 0; font: 10px ui-monospace, monospace; border: 0; background: transparent; }
.limiter-row button { min-height: 27px; padding: 4px 6px; color: var(--accent); font: 9px ui-monospace, monospace; }
.limiter-row button[aria-pressed="false"] { color: #849487; }
.live-views .mirror { position: fixed; width: 164px; height: 80px; top: 83px; border: 2px solid #111a1d; border-radius: 3px; box-shadow: 0 2px 9px #0006; pointer-events: none; }
.mirror.left { left: calc(50% - 176px); }
.mirror.right { right: 22px; }
.mirror span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 5px; color: #a9bcad; background: #0c151bd9; font: 6px ui-monospace, monospace; letter-spacing: .8px; }

.attribution { position: fixed; bottom: 8px; left: 22px; z-index: 7; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 44px); font-size: 7px; color: #a7b8a8; text-shadow: 0 1px 4px #000; }
.attribution a { text-decoration: none; white-space: nowrap; }
.attribution span { color: #708b7c; font-size: 6.5px; }
body.menu-open .attribution { left: 32px; }
.stream-status { position: fixed; right: 22px; bottom: 10px; z-index: 7; display: none; gap: 10px; color: #afc7b4; text-shadow: 0 1px 4px #000; font: 7px ui-monospace, monospace; }
.show-diagnostics .stream-status { display: flex; }
body:not(.menu-open).show-diagnostics .stream-status { opacity: .7; }
.show-diagnostics .attribution span { display: none; }
body.menu-open .stream-status { display: none; }
.warning { color: #efaa77 !important; }

#toast { position: fixed; left: 50%; top: 28%; transform: translate(-50%, -8px); max-width: 520px; padding: 12px 17px; border-left: 3px solid var(--accent); background: #122126f2; color: #e3eadd; font-size: 11px; line-height: 1.5; opacity: 0; transition: opacity .18s, transform .18s; pointer-events: none; z-index: 10; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
.voice-caption {position:fixed;left:50%;bottom:7%;transform:translateX(-50%);max-width:min(620px,65vw);padding:8px 22px;color:#f4f2e4;font:500 14px/1.5 system-ui;text-align:center;text-shadow:0 2px 4px #000,0 0 12px #000;background:linear-gradient(90deg,transparent,#0813159c 18%,#0813159c 82%,transparent);opacity:0;pointer-events:none;transition:opacity .2s;z-index:8;}
.voice-caption.visible {opacity:1;}
.asset-notice { position: fixed; right: 22px; top: 174px; z-index: 8; max-width: 300px; background: #16252bef; border-left: 2px solid var(--accent); padding: 10px 12px; font: 10px ui-monospace, monospace; }
.manifest { position: fixed; right: 22px; top: 182px; width: 330px; max-height: calc(100vh - 255px); overflow: auto; padding: 24px; background: #112126f5; border: 1px solid #b6c9b133; border-radius: 3px; z-index: 8; }
.manifest h2 { margin: 9px 0; }
.manifest p { font-size: 10px; line-height: 1.6; color: #8fa58f; margin: 8px 0; }
.passenger-row { display: flex; justify-content: space-between; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.close { position: absolute; right: 9px; top: 7px; padding: 0 7px; border: 0; background: transparent; font-size: 23px; }
.overlay { position: fixed; inset: 0; display: grid; place-items: center; background: #091318b8; z-index: 11; }
.overlay > div { width: min(360px, calc(100vw - 36px)); padding: 30px; background: #131f24; border: 1px solid #b3c8ae3b; border-radius: 3px; box-shadow: 0 20px 80px #0008; }
.overlay h2 { margin: 14px 0 24px; }
.overlay > div > button { width: 100%; margin-top: 10px; min-height: 41px; font-size: 11px; }
.overlay p { color: var(--muted); font-size: 12px; line-height: 1.6; }
dialog { width: min(550px, calc(100vw - 32px)); max-height: 85vh; overflow: auto; color: var(--ink); background: #142127; border: 1px solid #b4c8ac40; border-radius: 3px; padding: 30px; }
dialog::backdrop { background: #071015c9; }
dialog h2 { margin-top: 10px; }
dialog dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px; font-size: 11px; line-height: 1.6; margin: 22px 0; }
dialog dt { color: var(--accent); font-family: ui-monospace, monospace; }
dialog dd { margin: 0; color: #bac7b8; }
dialog p { color: #8fa68f; font-size: 10px; line-height: 1.7; }

/* Options live in Pause, never in a navigation bar over the road. */
body:has(#pauseOverlay:not(.hidden)) #drivingUI { visibility: hidden; }
.overlay > .pause-panel { width: min(640px, calc(100vw - 40px)); padding: 32px 36px; background: #0d1a20ef; border: 1px solid #d0e4d421; border-radius: 2px; }
.pause-panel h2 { font-size: 42px; font-weight: 550; letter-spacing: -1.2px; margin: 10px 0 24px; }
.pause-actions { display: flex; gap: 12px; }
.pause-actions > button { flex: 1; min-height: 45px; font-size: 11px; }
.pause-options { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.pause-panel .toolbar { display: grid !important; grid-template-columns: repeat(4,1fr); max-width: none; gap: 10px; margin-top: 14px; }
.pause-panel .toolbar label, .pause-panel .pause-control { display: flex; flex-direction: column; gap: 7px; color: #8ea69b; font-size: 7px; letter-spacing: .8px; }
.pause-panel .toolbar select, .pause-panel .toolbar button { display: block !important; width: 100%; min-height: 38px; text-align: left; font-size: 10px; color: #e5efdd; }
.pause-panel .limiter-row { margin-top: 18px; padding-top: 16px; gap: 17px; }
.pause-panel .limiter-row select { font-size: 13px; min-height: 34px; }
.pause-panel .limiter-row button { min-height: 36px; padding: 7px 12px; }
.pause-panel .limiter-row small { color: #8ca293; font-size: 9px; margin-left: auto; max-width: 180px; line-height: 1.6; }
.pause-secondary { display: flex; gap: 20px; margin-top: 16px; }
.pause-secondary button { border: 0; padding: 5px 0; background: none; color: #b4c8b6; font-size: 10px; }
body:not(.menu-open) .attribution { opacity: .8; font-size: 8px; }
body:not(.menu-open) .attribution > span { display: none; }
#toast { top: auto; bottom: 27%; padding: 8px 17px; background: linear-gradient(90deg, transparent, #0a2028c9 12%, #0a2028c9 88%, transparent); border: 0; text-align: center; font-size: 12px; text-shadow: 0 1px 3px #000; }

@media (min-width: 1450px) {
  .menu-workspace { width: 545px; top: 100px; }
  .route-card { height: 161px; padding: 16px; }
  .route-card strong { margin-top: 31px; font-size: 18px; }
  .route-description { font-size: 10px; }
  .route-card-foot { font-size: 7px; }
  .pane-heading { margin-bottom: 23px; }
}
@media (max-height: 750px) and (min-width: 901px) {
  .menu-workspace { top: 76px; bottom: 91px; }
  .pane-heading { margin-bottom: 14px; }
  h1 { font-size: 26px; }
  .route-card { height: 130px; padding-top: 11px; }
  .route-card strong { margin-top: 21px; font-size: 15px; }
  .route-description { font-size: 8.5px; }
  .route-loading { margin: 9px 0; }
  .quick-sessions { padding-top: 9px; }
  .scene-caption { bottom: 108px; }
  .setting-row { min-height: 68px; padding: 12px 0; }
  .key-bindings > div { min-height: 37px; }
}
@media (max-width: 1000px) {
  :root { --menu-left: 24px; }
  .game-header { padding: 0 24px; }
  .menu-workspace { width: 460px; }
  .menu-navigation { right: 24px; gap: 20px; }
  .scene-caption { right: 24px; max-width: 260px; }
  .scene-caption strong { font-size: 16px; }
  .scene-caption small { font-size: 8px; max-width: 230px; }
  .launch-bar { padding: 15px 24px; gap: 25px; }
  .launch-route { min-width: 150px; }
  .launch-button { min-width: 208px; }
  .brand { font-size: 15px; gap: 9px; }
  .brand small { font-size: 6px; }
  .live-views .mirror { width: 135px; height: 68px; }
  .mirror.left { left: auto; right: 165px; }
  .attribution span { max-width: 390px; }
}
@media (max-width: 760px) {
  :root { --menu-left: 20px; }
  .game-header { height: 64px; padding: 0 20px; }
  .brand { font-size: 14px; letter-spacing: 2.8px; }
  .brand-mark { font-size: 29px; width: 28px; }
  .session-label { font-size: 8px; }
  .session-label span { display: none; }
  .game-menu { top: 64px; }
  .game-menu::before { background: linear-gradient(90deg, #0a1419ee, #0a1419a6 78%, #0a14196b); }
  .menu-navigation { left: 20px; right: 20px; gap: 0; justify-content: space-between; height: 55px; }
  .menu-navigation button { min-width: 0; padding: 0 9px; font-size: 10px; letter-spacing: 1px; }
  .menu-navigation button span { font-size: 7px; margin-right: 5px; }
  .menu-workspace { top: 79px; left: 20px; width: calc(100vw - 40px); max-width: none; bottom: 145px; padding-right: 2px; }
  .pane-heading { margin-bottom: 18px; }
  .route-card { height: 157px; padding: 14px; }
  .route-card strong { font-size: 17px; margin-top: 32px; }
  .route-description { font-size: 10px; }
  .route-card-foot { font-size: 7px; }
  .route-art { left: 24%; height: 90px; }
  .route-loading p { max-width: 60%; }
  .quick-sessions { margin-top: 3px; }
  .scene-caption { bottom: 94px; left: 20px; right: auto; text-align: left; max-width: calc(100vw - 40px); }
  .scene-caption strong { display: none; }
  .scene-caption small { display: none; }
  .scene-caption > span { font-size: 7px; color: #9eaf98; }
  .launch-bar { min-height: 78px; padding: 13px 20px; gap: 18px; }
  .launch-selection { min-width: 150px; }
  .launch-route { display: none; }
  .launch-button { min-width: 210px; height: 45px; }
  .live-views .mirror { top: 132px; width: 128px; height: 67px; }
  .mirror.right { right: 16px; }
  .mirror.left { left: auto; right: 154px; }
  .attribution, body.menu-open .attribution { left: 20px; right: 20px; max-width: none; flex-direction: column; align-items: flex-start; gap: 3px; bottom: 7px; font-size: 6px; }
  .attribution span { font-size: 6px; max-width: none; }
  .stream-status { right: 16px; font-size: 6px; }
  .show-diagnostics .stream-status #cacheStatus { display: none; }
  .manifest { right: 16px; top: 211px; width: min(330px, calc(100vw - 32px)); }
  #toast { max-width: calc(100vw - 40px); width: max-content; top: 32%; }
}
@media (max-width: 500px) {
  .brand { font-size: 12px; letter-spacing: 2px; }
  .brand small { font-size: 5px; letter-spacing: 1.4px; }
  .session-label { font-size: 7px; }
  .menu-navigation button { font-size: 9px; padding: 0 3px; }
  .menu-navigation button span { display: none; }
  .menu-workspace { top: 75px; }
  h1 { font-size: 25px; }
  .route-grid { gap: 8px; }
  .route-card { height: 146px; padding: 12px 10px; }
  .route-card strong { font-size: 14px; margin-top: 27px; }
  .route-type { font-size: 6.5px; letter-spacing: .6px; }
  .route-description { font-size: 8px; line-height: 1.4; }
  .route-card-foot { font-size: 5.5px; letter-spacing: 0; }
  .route-card-foot > span { font-size: 7px; }
  .section-count { font-size: 7px; }
  .quick-sessions { grid-template-columns: 1fr 1fr; }
  .quick-sessions > span { grid-column: 1 / -1; margin-bottom: 2px; }
  .route-loading { align-items: flex-start; gap: 8px; }
  .route-loading p { font-size: 8px; }
  .text-button { font-size: 8px; }
  .launch-selection { min-width: 122px; }
  .launch-selection strong { font-size: 10px; }
  .launch-selection button { display: block; margin: 6px 0 0; font-size: 8px; }
  .launch-button { min-width: 0; flex: 1; font-size: 9px; padding: 0 13px; }
  .launch-bar { gap: 10px; }
  .vehicle-card { grid-template-columns: 18px 32px 1fr 10px; gap: 10px; padding: 14px 11px; }
  .vehicle-card strong { font-size: 10px; }
  .vehicle-card small { font-size: 8px; }
  .vehicle-swatch { height: 34px; }
  .setting-row { gap: 12px; min-height: 74px; }
  .setting-row select, .setting-toggle { width: 124px; font-size: 10px; }
  .setting-row strong { font-size: 11px; }
  .setting-row label span, .setting-row > div span { font-size: 8px; }
  .key-bindings > div { grid-template-columns: 114px 1fr; gap: 9px; }
  .key-bindings dd { font-size: 10px; }
  .live-views .mirror { top: 120px; width: 105px; height: 57px; }
  .mirror.left { right: 16px; top: 186px; }
}
@media (max-height: 620px) {
  .menu-workspace { bottom: 89px; }
  .scene-caption { display: none; }
  .game-header { height: 57px; }
  .game-menu { top: 57px; }
  .menu-navigation { height: 45px; }
  .menu-workspace { top: 63px; }
  .launch-bar { min-height: 69px; padding-top: 10px; padding-bottom: 10px; }
  .route-card { height: 125px; }
  .route-card strong { margin-top: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  #toast { transition: none; }
}

/* HUD safe areas are independent of the menu's responsive panels above. */
#speedText.overspeed { color: #f8b28e; }
@media (max-width: 900px) {
  .navigation-hud { left: 14px; top: 23px; width: 214px; }
  #drivingUI .cluster { right: 18px; bottom: 30px; width: 214px; }
  .speed-gauge { height: 178px; }
  .speed-value { left: 29px; top: 54px; width: 115px; }
  #speedText { font-size: 66px; }
  .gear-value { top: 69px; right: 28px; }
  .rpm-value { left: 54px; bottom: 16px; }
  .pause-shortcut { right: 19px; top: 16px; }
  .drive-hint { left: 29px; bottom: 28px; }
  .door-action { left: 29px; bottom: 53px; }
}
@media (max-width: 600px), (max-height: 600px) {
  .navigation-hud { left: 12px; top: 20px; width: 177px; }
  .navigation-hud .route-strip { padding-left: 10px; gap: 6px; }
  .route-strip strong { font-size: 8px; letter-spacing: .8px; }
  .navigation-mark { font-size: 19px; }
  .navigation-hud .journey-card { padding: 0 10px; }
  .journey-card .eyebrow { font-size: 6px; }
  .journey-card strong { font-size: 10px; }
  .journey-card #distance { font-size: 8px; }
  .navigation-instruction { gap: 7px; margin-top: 5px; }
  .waypoint-mark { font-size: 21px; }
  .journey-progress { margin-left: 27px; margin-top: 7px; }
  #drivingUI .cluster { left: auto; right: 15px; bottom: 26px; width: 184px; min-width: 0; }
  .speed-gauge { height: 153px; }
  .speed-value { left: 23px; top: 45px; width: 100px; }
  #speedText { font-size: 57px; letter-spacing: -3px; }
  .speed-unit { margin-top: 8px; font-size: 8px; }
  .gear-value { top: 59px; right: 24px; }
  #gearText { font-size: 25px; }
  .gear-value small { font-size: 5px; margin-top: 5px; }
  .rpm-value { left: 43px; bottom: 13px; }
  #rpmText { font-size: 12px; }
  .rpm-value small { font-size: 5.5px; }
  .drive-meta { font-size: 7px; padding: 0 15px 5px; }
  .drive-assists { gap: 8px; font-size: 6px; }
  .drive-assists .limit-sign { width: 23px; height: 23px; min-width: 23px; font-size: 8px; }
  #drivingUI .cluster-accessible { font-size: 6px; padding-top: 8px; gap: 9px; }
  .drive-hint { left: 22px; bottom: 24px; font-size: 6px; }
  .door-action { left: 22px; bottom: 43px; font-size: 10px; }
  .pause-shortcut { top: 12px; right: 16px; font-size: 8px; }
  .overlay > .pause-panel { max-height: calc(100vh - 28px); overflow: auto; padding: 23px; }
  .pause-panel h2 { font-size: 32px; margin-bottom: 18px; }
  .pause-panel .toolbar { grid-template-columns: 1fr 1fr; }
  .pause-options { margin-top: 20px; padding-top: 15px; }
  .pause-panel .limiter-row { flex-wrap: wrap; gap: 10px; }
  .pause-panel .limiter-row small { margin-left: 0; max-width: 100%; }
  #toast { bottom: 30%; max-width: calc(100vw - 30px); font-size: 11px; }
}
.horn-shortcut { position: fixed; right: 32px; top: 76px; width: 44px; height: 44px; padding: 8px; display: flex; align-items: center; gap: 2px; border: 1px solid #ffffff35; border-radius: 50%; color: #f3efe1; background: #101b2360; font-size: 24px; z-index: 5; touch-action: manipulation; }
.horn-shortcut small { font-size: 9px; vertical-align: middle; }
.horn-shortcut:hover, .horn-shortcut.sounding { color: #f6cc74; border-color: #f6cc74; background: #18232cb0; }
.horn-shortcut:focus-visible { outline: 2px solid #f6cc74; outline-offset: 4px; }
.horn-feedback { position: fixed; right: 26px; top: 127px; font-size: 9px; font-weight: 650; letter-spacing: 1.5px; color: #f6cc74; opacity: 0; pointer-events: none; transition: opacity .1s; }
.horn-feedback.visible { opacity: 1; }
