:root { color-scheme: dark; --paper: #f3eee5; --muted: #aaa9b5; --amber: #ebbb78; --ink: #090b16; --line: rgba(235, 225, 216, .17); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.clean-view .topbar, .clean-view .drive-hud, .clean-view .screen-grain, .clean-view .toast, .clean-view .light-controls { visibility: hidden; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--ink); }
body, button { font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
body { color: var(--paper); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border: 0; border-radius: 0; background: none; font-size: 13px; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
button:disabled { opacity: .45; cursor: wait; }
button, a { touch-action: manipulation; }
button { transition: color .2s, background .2s, border-color .2s, transform .2s; }
button:active { transform: translateY(1px); }
button:hover { color: #fff; }
a { color: inherit; text-decoration: none; }
#app { width: 100%; height: 100%; position: relative; isolation: isolate; touch-action: none; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #141321; }
.screen-grain { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 15; height: 104px; padding: 0 4.4%; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(#080a1499, transparent); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 150px; }
.brand-mark { width: 25px; height: 29px; color: var(--amber); }
.brand > span { font-size: 16px; letter-spacing: 3px; font-weight: 600; line-height: 1.5; }
.brand small { display: block; font-family: Arial, sans-serif; font-size: 7px; letter-spacing: 1.8px; font-weight: 400; color: #d4c9bd; }
.topbar-status { font-size: 10px; letter-spacing: 1.2px; color: #bbb8c3; display: flex; align-items: center; gap: 9px; }
.status-dot { display: inline-block; width: 5px; height: 5px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 10px #ebbb7833; }
.utility { display: flex; align-items: center; gap: 25px; }
.utility-button { display: inline-flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 11px; letter-spacing: 1px; color: #d9d4da; white-space: nowrap; }
.utility-button span { color: #9b99a4; font-size: 10px; }
.utility-button .expand-icon { color: #d8d3db; font-size: 22px; line-height: 12px; }
.music-settings-button { gap: 5px; }
.music-settings-button > span:first-child { font-size: 20px; line-height: 1; }
.music-settings-button.is-playing > span { color: var(--amber); }
.music-panel { position: absolute; top: 79px; right: 4.4%; width: min(280px, 88vw); padding: 17px 19px; border: 1px solid #bda38265; border-radius: 8px; background: #10121cf5; box-shadow: 0 12px 32px #0007; }
.music-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.music-heading button { font-size: 23px; padding: 0 3px; line-height: 1; color: #b7adbc; }
.music-panel > strong { font-size: 19px; font-weight: 500; color: #f1d7af; }
.music-panel > strong > span { font-size: 12px; margin-left: 5px; color: #c1b2c0; }
.music-source { margin: 7px 0 15px; font-size: 10px; color: #9b92a5; }
.music-switch-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
#musicStatus { font-size: 10px; color: #bcb2c5; line-height: 1.7; }
#musicToggleButton { flex-shrink: 0; padding: 9px 12px; border: 1px solid #a497b14d; border-radius: 4px; font-size: 11px; }
#musicToggleButton[aria-pressed="true"] { border-color: #ebbb7870; color: var(--amber); background: #ebbb7810; }
.music-volume-label { display: flex; justify-content: space-between; margin: 15px 0 2px; font-size: 10px; color: #c9bfce; }
.music-volume-label output { color: var(--amber); font-variant-numeric: tabular-nums; }
#musicVolume { display: block; width: 100%; margin: 0; height: 30px; accent-color: var(--amber); cursor: pointer; touch-action: pan-x; }
#musicVolume:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
body[data-mode="paused"] .topbar { z-index: 28; }
.topbar:has(#musicPanel:not([hidden])) { z-index: 28; }
@media (max-width: 1100px) { .music-panel { top: 65px; } }
@media (max-width: 700px) { .music-button-label { display: none; } .music-settings-button { min-width: 18px; justify-content: center; } .music-panel { top: 61px; right: 6%; } }
@media (max-height: 500px) and (orientation: landscape) { .music-panel { top: 48px; right: 4%; padding: 12px 17px; } }
.home-overlay { position: absolute; inset: 0; z-index: 4; }
.home-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #080b18ed 0%, #080b18d4 20%, #0a0b1855 45%, transparent 68%), linear-gradient(0deg, #070a17d9 0%, transparent 30%); }
.hero { position: absolute; left: 8.1%; top: 25%; }
.eyebrow { font-family: Arial, sans-serif; font-size: 9px; letter-spacing: 3.2px; color: var(--amber); display: flex; align-items: center; gap: 13px; }
.eyebrow > span { display: inline-block; width: 23px; height: 1px; background: var(--amber); }
h1 { font-size: clamp(42px, 4.5vw, 72px); letter-spacing: -.035em; line-height: 1.4; margin: 24px 0 19px; font-weight: 600; text-shadow: 0 2px 24px #07081344; }
.hero-description { color: #b7b3c0; font-size: 12px; letter-spacing: 1px; line-height: 2.2; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.button-primary { min-height: 51px; min-width: 181px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; background: var(--amber); color: #211b19; font-size: 12px; font-weight: 600; letter-spacing: 1.3px; }
.button-primary > span { font-size: 21px; font-weight: 400; line-height: 1; }
.button-primary:hover { color: #191516; background: #fbd499; box-shadow: 0 5px 28px #eaba781a; }
.button-reference { font-size: 11px; color: #d0cbd4; display: inline-flex; align-items: center; gap: 10px; padding: 15px 0; letter-spacing: 1px; }
.play-icon { font-size: 20px; line-height: 1; color: var(--amber); }
.hero-caption { display: flex; align-items: center; gap: 10px; color: #827f90; font-size: 9px; letter-spacing: 1px; margin-top: 24px; }
.caption-line { display: inline-block; width: 16px; height: 1px; background: #827f9066; }
.home-bottom { position: absolute; bottom: 6.5%; left: 8.1%; right: 4.4%; display: flex; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.tiny-label { display: block; font-family: Arial, 'Microsoft YaHei', sans-serif; font-size: 8px; letter-spacing: 2.4px; color: #97919f; font-weight: 400; }
.scene-caption { border-left: 1px solid #d6ba893f; padding-left: 13px; }
.scene-caption p { color: #a8a0b0; font-size: 10px; letter-spacing: 1.5px; margin: 9px 0 0; }
.keyboard-guide { padding: 0 0 0 24px; border-left: 1px solid var(--line); color: #aaa4b2; width: 248px; }
.guide-title { font-size: 10px; color: #d1cbd5; letter-spacing: 1px; margin-bottom: 16px; }
.guide-title > span { margin-left: 10px; color: #767082; font-size: 7px; letter-spacing: 1.6px; }
.guide-row { display: grid; grid-template-columns: 75px 51px 27px 1fr; align-items: center; gap: 4px; margin: 8px 0; font-size: 9px; }
.key-group { display: flex; align-items: center; gap: 4px; }
kbd { font-family: Arial, 'Microsoft YaHei', sans-serif; border: 1px solid #afa6bd40; border-radius: 2px; min-width: 20px; height: 20px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: #c5bdcf; font-weight: 400; background: #15142150; }
.key-or { color: #645f70; font-size: 9px; }
.wide-key { font-size: 8px; min-width: 32px; }
.guide-extra { display: flex; gap: 18px; font-size: 8px; color: #81798b; margin-top: 12px; }
.guide-extra > span { white-space: nowrap; }
.guide-extra kbd { border: 0; background: none; min-width: auto; height: auto; padding-right: 4px; color: #9f96ab; }
.drive-hud { position: absolute; inset: 0; pointer-events: none; z-index: 5; text-shadow: 0 1px 8px #070715dd; }
.traffic-status { position: absolute; top: 136px; left: 4.4%; max-width: 27%; padding-left: 13px; border-left: 1px solid #ebbb7880; }
.traffic-status .tiny-label { font-size: 7px; color: #bcafa5; }
.traffic-status h2 { margin: 9px 0 7px; font-size: 17px; letter-spacing: 2px; font-weight: 500; }
.traffic-status p { margin: 0; font-size: 10px; line-height: 1.8; color: #d0c6cc; letter-spacing: .5px; }
.incident-status { position: absolute; top: 136px; right: 4.4%; width: min(250px, 24%); padding-right: 13px; border-right: 1px solid #ebbb7880; text-align: right; }
.incident-status .tiny-label { font-size: 7px; color: #bcafa5; }
.incident-status h2 { margin: 9px 0 7px; font-size: 16px; letter-spacing: 1px; font-weight: 500; color: #f2d3a3; }
.incident-status p { margin: 0; font-size: 10px; line-height: 1.8; color: #d0c6cc; }
.journey-info { position: absolute; bottom: 7%; left: 4.4%; display: flex; gap: 28px; }
.journey-info > div { display: flex; flex-direction: column; gap: 9px; font-size: 9px; color: #b5aabc; }
.journey-info strong { color: #e5dce5; font: 400 15px Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.speedometer { position: absolute; right: 4.4%; bottom: 6%; display: grid; grid-template-columns: 32px auto; gap: 0 14px; align-items: center; }
.gear { padding-top: 13px; text-align: center; }
.gear > span { display: block; color: #a79ab2; font: 7px Arial, sans-serif; letter-spacing: 1px; }
.gear strong { display: block; font: 400 25px 'Barlow Condensed', Arial, sans-serif; color: var(--amber); margin-top: 7px; }
.speed { display: flex; align-items: baseline; gap: 8px; }
.speed > strong { font: 500 clamp(64px, 6vw, 90px)/1 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif; letter-spacing: -2px; font-variant-numeric: tabular-nums; min-width: 110px; text-align: right; }
.speed > span { font: 11px Arial, sans-serif; color: #b9acbd; }
.speed-label { grid-column: 2; text-align: right; font: 7px Arial, sans-serif; letter-spacing: 2.5px; color: #a297ad; margin-top: 9px; }
.speed-label .status-dot { width: 3px; height: 3px; margin: 0 5px 1px 0; }
.driving-hint { position: absolute; bottom: 5.5%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 8px; color: #b4a9bc; white-space: nowrap; }
.driving-hint > span { padding: 0 4px; color: #756c84; }
.driving-hint kbd { height: 17px; min-width: 17px; font-size: 8px; }
.light-controls { position: absolute; z-index: 12; left: 50%; bottom: 11%; transform: translateX(-50%); display: flex; gap: 7px; max-width: calc(100% - 32px); user-select: none; -webkit-user-select: none; }
.light-button { display: grid; grid-template-columns: 22px auto; gap: 3px 6px; align-items: center; min-height: 46px; padding: 7px 10px; border: 1px solid #b4a5c02e; border-radius: 4px; background: #10121cc9; color: #8f879d; backdrop-filter: blur(8px); flex: 0 1 auto; touch-action: none; }
.light-button svg { grid-row: 1 / 3; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.light-button > span { font-size: 9px; white-space: nowrap; }
.light-button kbd { justify-self: start; border: 0; padding: 0; background: none; min-width: 0; height: 11px; font-size: 8px; color: inherit; }
.light-button.is-active { border-color: #9fd28d80; }
.light-button.is-lit { color: #a9ed8e; background: #203c25d9; border-color: #a9ed8e99; }
.light-button.is-lit svg { filter: drop-shadow(0 0 5px #a9ed8e55); }
.high-beam-button.is-active { border-color: #7cbeff80; }
.high-beam-button.is-lit { color: #85c4ff; background: #1a3553d9; border-color: #85c4ff99; }
.high-beam-button.is-lit svg { filter: drop-shadow(0 0 5px #85c4ff66); }
.horn-button.pressed, .horn-button.is-active { color: #f6ce8f; border-color: #e8bd7b99; background: #6c5028d9; }
.toast { position: absolute; z-index: 18; left: 50%; top: 71%; transform: translateX(-50%); padding: 11px 21px; background: #10121cd9; border: 1px solid #dfbe874d; color: #f5cf92; font-size: 13px; letter-spacing: 1px; text-align: center; max-width: 80%; backdrop-filter: blur(10px); pointer-events: none; }
.modal-overlay { position: absolute; inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; background: #090b16c9; backdrop-filter: blur(10px); padding: 30px; }
.pause-panel { width: min(540px, 100%); text-align: center; padding: 45px 24px; }
.modal-overlay .eyebrow { justify-content: center; }
.modal-overlay h2 { margin: 23px 0 15px; font-size: clamp(25px, 3vw, 36px); font-weight: 500; letter-spacing: -1px; }
.panel-copy { margin: 0 0 32px; color: #a9a0b3; font-size: 12px; line-height: 1.9; }
.modal-overlay .button-primary { min-width: 210px; }
.secondary-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 23px; }
.secondary-actions button { padding: 8px 0; color: #c2b8cc; font-size: 11px; letter-spacing: 1px; }
.secondary-actions button:hover { color: var(--amber); }
.secondary-actions > span { display: block; width: 1px; height: 11px; background: var(--line); }
.panel-footnote { margin-top: 43px; color: #72697e; font-size: 9px; letter-spacing: 1px; }
.panel-footnote kbd { margin: 0 5px; }
.reference-overlay { position: absolute; inset: 0; z-index: 30; background: #080910f5; padding: 3% 5%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.reference-header { width: min(1150px, 100%); display: flex; justify-content: space-between; align-items: center; }
.reference-header h2 { font-size: 17px; font-weight: 500; letter-spacing: 2px; margin: 8px 0 0; }
.reference-header .utility-button { gap: 20px; }
.reference-header .utility-button span { font-size: 27px; font-weight: 200; }
#referenceVideo { max-width: min(1150px, 100%); max-height: 75vh; min-height: 0; background: #000; box-shadow: 0 15px 70px #0005; }
.reference-caption { color: #8f869e; font-size: 10px; letter-spacing: 1px; margin: 0; }
.loading-overlay { position: absolute; inset: 0; z-index: 50; background: #0b0d17; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.loading-overlay p { color: #b0a5bb; font-size: 11px; letter-spacing: 1.5px; margin: -8px 0 0; }
.loading-road { width: 32px; height: 55px; border-left: 1px solid #d9af7455; border-right: 1px solid #d9af7455; transform: perspective(70px) rotateX(35deg); overflow: hidden; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.loading-road i { width: 1px; height: 13px; flex-shrink: 0; background: var(--amber); animation: road-flow 1s linear infinite; }
@keyframes road-flow { to { transform: translateY(23px); } }
.fatal-error { position: absolute; z-index: 60; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 30px; background: #17151f; border: 1px solid #ba8878; line-height: 1.9; color: #f0c0ab; width: min(520px, 85%); font-size: 13px; white-space: pre-wrap; }
.touch-controls { position: absolute; inset: auto 4% 17%; z-index: 12; display: flex; justify-content: space-between; pointer-events: none; user-select: none; -webkit-user-select: none; }
.touch-steering, .touch-pedals { display: flex; gap: 12px; align-items: flex-end; }
.touch-controls button { pointer-events: auto; touch-action: none; height: 60px; width: 62px; font-size: 24px; background: #10122188; border: 1px solid #dfc9e444; backdrop-filter: blur(8px); border-radius: 5px; }
.touch-pedals button { font-size: 12px; }
.touch-pedals .touch-throttle { height: 77px; color: #efc98f; border-color: #d4aa6c66; background: #6b533455; }
.touch-controls button:active, .touch-controls button.pressed { background: #d2a46866; border-color: var(--amber); }
@media (min-width: 1800px) { .hero { top: 27%; } .hero-description { font-size: 14px; } .hero-actions { margin-top: 43px; } .button-primary { min-height: 57px; min-width: 200px; } }
@media (max-width: 1000px) { .topbar { height: 86px; } .topbar-status { display: none; } .hero { left: 7%; top: 23%; } h1 { font-size: 48px; } .home-bottom { left: 7%; bottom: 5%; } .keyboard-guide { width: 248px; } .traffic-status { top: 111px; } .driving-hint { display: none; } }
@media (max-height: 680px) and (min-width: 701px) { .topbar { height: 78px; } .hero { top: 21%; } h1 { font-size: 43px; line-height: 1.3; margin: 17px 0 13px; } .hero-description { font-size: 10px; } .hero-actions { margin-top: 21px; } .hero-caption { margin-top: 15px; } .button-primary { min-height: 45px; } .home-bottom { bottom: 5%; } .scene-caption { display: none; } .keyboard-guide { margin-left: auto; } .traffic-status { top: 94px; } }
@media (max-width: 700px) {
  .topbar { height: 78px; padding: 0 6%; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 19px; height: 26px; }
  .brand > span { font-size: 13px; letter-spacing: 2px; }
  .brand small { font-size: 5px; letter-spacing: 1.2px; }
  .utility { gap: 12px; }
  .utility-button { font-size: 9px; gap: 5px; }
  .hero { left: 8%; top: 24%; }
  .home-shade { background: linear-gradient(90deg, #080b18dd, #080b1877 60%, #080b1820), linear-gradient(0deg, #070a17c9, transparent 40%); }
  .eyebrow { font-size: 8px; letter-spacing: 2.5px; }
  h1 { font-size: clamp(41px, 9vw, 59px); margin-top: 22px; }
  .hero-description { font-size: 11px; }
  .hero-actions { gap: 22px; margin-top: 29px; }
  .button-primary { min-width: 166px; min-height: 48px; padding: 0 18px; }
  .button-reference { font-size: 10px; }
  .hero-caption { font-size: 8px; }
  .home-bottom { left: 8%; bottom: 7%; }
  .keyboard-guide { display: none; }
  .scene-caption p { font-size: 9px; }
  .traffic-status { left: 6%; top: 110px; max-width: 35%; padding-left: 9px; }
  .traffic-status h2 { font-size: 13px; letter-spacing: 1px; }
  .traffic-status p { font-size: 9px; line-height: 1.7; }
  .traffic-status .tiny-label { font-size: 6px; letter-spacing: 1.5px; }
  .journey-info { left: 6%; bottom: 5%; gap: 18px; }
  .journey-info > div { gap: 7px; font-size: 8px; }
  .journey-info strong { font-size: 12px; }
  .speedometer { right: 6%; bottom: 4.2%; gap: 0 7px; }
  .speed > strong { font-size: 62px; min-width: 83px; }
  .speed > span { font-size: 9px; }
  .gear > span { font-size: 6px; }
  .gear strong { font-size: 23px; }
  .speed-label { font-size: 6px; }
  .light-controls { bottom: calc(17% + 91px); gap: 5px; }
  .light-button { grid-template-columns: 20px auto; gap: 3px 4px; padding: 7px; }
  .light-button svg { width: 20px; height: 20px; }
  .modal-overlay { padding: 20px; }
  .pause-panel { padding: 30px 5px; }
  .toast { font-size: 11px; top: auto; bottom: calc(17% + 151px); width: max-content; }
  .reference-overlay { padding: 5%; gap: 20px; }
  .reference-header h2 { font-size: 14px; }
  .reference-caption { font-size: 8px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { height: 58px; padding: 0 4%; }
  .brand-mark { width: 20px; height: 25px; }
  .brand > span { font-size: 12px; }
  .brand small { font-size: 6px; }
  .hero { top: 22%; left: 7%; }
  .hero .eyebrow { font-size: 7px; }
  h1 { font-size: 32px; margin: 13px 0 9px; line-height: 1.25; }
  .hero-description { font-size: 9px; line-height: 1.8; }
  .hero-actions { margin-top: 17px; gap: 20px; }
  .button-primary { min-height: 40px; min-width: 155px; font-size: 10px; }
  .hero-caption, .scene-caption { display: none; }
  .keyboard-guide { transform: scale(.85); transform-origin: bottom right; }
  .traffic-status { top: 76px; max-width: 28%; }
  .traffic-status h2 { font-size: 13px; margin: 6px 0; }
  .traffic-status p { font-size: 8px; }
  .speed > strong { font-size: 54px; min-width: 80px; }
  .touch-controls { bottom: 43%; }
  .touch-controls button { width: 49px; height: 44px; }
  .touch-pedals .touch-throttle { height: 58px; }
  .light-controls { bottom: calc(25% + 8px); }
  .light-button { grid-template-columns: 20px auto; gap: 3px 4px; padding: 6px; }
  .toast { top: auto; bottom: calc(25% + 66px); }
  .pause-panel { padding: 10px 0; }
  .modal-overlay h2 { font-size: 25px; margin: 15px 0 10px; }
  .panel-copy { margin-bottom: 20px; font-size: 10px; }
  .panel-footnote { margin-top: 18px; }
  .secondary-actions { margin-top: 13px; }
  .reference-overlay { padding: 12px 5%; gap: 10px; }
  .reference-header { width: min(1150px, 100%); }
  .reference-header .tiny-label, .reference-caption { display: none; }
  .reference-header h2 { margin-top: 0; font-size: 12px; }
  #referenceVideo { max-height: 76vh; }
}
@media (max-width: 370px) {
  .utility { gap: 8px; }
  .brand > span { font-size: 12px; letter-spacing: 1px; }
  .light-controls { gap: 4px; }
  .light-button { grid-template-columns: 18px auto; padding: 6px; }
  .light-button svg { width: 18px; height: 18px; }
  .light-button > span { font-size: 8px; }
  .journey-info { gap: 13px; }
  .journey-info strong { font-size: 10px; }
  .speed > strong { font-size: 54px; min-width: 72px; }
}
@media (pointer: coarse) and (min-width: 701px) and (min-height: 501px) { .light-controls { bottom: calc(17% + 91px); } }
@media (max-width: 1000px) { .incident-status { top: 111px; } .incident-status h2 { font-size: 13px; } .incident-status p { font-size: 9px; } }
@media (max-width: 700px) { .incident-status { top: 110px; right: 6%; width: 43%; padding-right: 9px; } .traffic-status h2 { font-size: 11px; letter-spacing: 0; } }
@media (max-height: 500px) and (orientation: landscape) { .incident-status { top: 76px; width: 27%; } .incident-status h2 { margin: 6px 0; font-size: 12px; } .incident-status p { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* The supplied driver stays in the upper left in either camera view. */
.driver-portrait { position: absolute; top: 111px; left: 4.4%; width: clamp(116px, 12vw, 174px); margin: 0; overflow: hidden; border: 1px solid #bda38265; border-radius: 9px; background: #10111b; box-shadow: 0 8px 24px #0005; transition: border-color .2s, box-shadow .2s; }
.driver-face { display: block; width: 100%; height: auto; }
.driver-portrait figcaption { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 4px; font-size: 10px; color: #e3c394; letter-spacing: 1px; background: #11131eee; }
.driver-status-dot { width: 4px; height: 4px; border-radius: 50%; background: #abc59a; }
.driver-angry { display: none; }
.driver-portrait[data-mood="angry"] { border-color: #cf715fbb; box-shadow: 0 0 20px #9b3b253d; }
.driver-portrait[data-mood="angry"] .driver-smile { display: none; }
.driver-portrait[data-mood="angry"] .driver-angry { display: block; }
.driver-portrait[data-mood="angry"] figcaption { color: #ffa18b; }
.driver-portrait[data-mood="angry"] .driver-status-dot { background: #ee775f; }
.traffic-status { top: calc(144px + clamp(116px, 12vw, 174px) * .87); max-width: 25%; }
.traffic-status h2 { font-size: 13px; letter-spacing: 1px; margin: 6px 0; }
.camera-button { gap: 6px; }
.camera-button span { color: #ead8ba; font-size: 10px; }
.camera-button kbd { min-width: 17px; height: 17px; font-size: 8px; color: #d6bd94; }
@media (max-width: 1100px) { .utility { gap: 17px; } }
@media (max-width: 1000px) { .driver-portrait { top: 91px; width: 130px; } .traffic-status { top: 244px; } }
@media (max-height: 680px) and (min-width: 701px) { .driver-portrait { top: 84px; width: 116px; } .traffic-status { top: 222px; } }
@media (max-width: 700px) {
  .driver-portrait { top: 88px; left: 6%; width: 104px; }
  .driver-portrait figcaption { font-size: 9px; padding: 5px 3px; }
  .traffic-status { top: 212px; max-width: 40%; }
  .traffic-status h2 { font-size: 10px; }
  .traffic-status p { font-size: 8px; }
  .utility { gap: 10px; }
  .camera-button span { font-size: 9px; }
  .camera-button kbd { display: none; }
  body[data-mode="running"] .brand small, body[data-mode="paused"] .brand small { display: none; }
  body[data-mode="running"] .brand-mark, body[data-mode="paused"] .brand-mark { display: none; }
  body[data-mode="running"] .brand > span, body[data-mode="paused"] .brand > span { font-size: 11px; letter-spacing: 1px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .driver-portrait { top: 67px; left: 4%; width: 89px; }
  .driver-portrait figcaption { font-size: 8px; padding: 4px 2px; }
  .traffic-status { top: 78px; left: calc(4% + 101px); width: min(14vw, 132px); max-width: none; padding-left: 8px; }
  .traffic-status .tiny-label { display: none; }
  .traffic-status h2 { font-size: 10px; margin: 2px 0; }
  .traffic-status p { font-size: 7px; }
}
@media (max-width: 370px) { .utility { gap: 8px; } .utility-button { gap: 3px; font-size: 8px; } .camera-button span { font-size: 8px; } }
@media (max-width: 700px) and (orientation: portrait) {
  .traffic-status { top: 95px; left: calc(6% + 117px); width: calc(88% - 117px); max-width: none; }
  .incident-status { top: 157px; right: 6%; width: calc(88% - 117px); }
  .incident-status h2 { margin: 6px 0; font-size: 11px; }
  .incident-status p { font-size: 8px; line-height: 1.6; }
}
/* Leave the player's body unobstructed in the raised chase camera. */
@media (pointer: fine) and (min-width: 701px) and (min-height: 501px) {
  body[data-camera="third"] .toast { top: 78%; }
}
@media (pointer: coarse) and (max-height: 500px) and (orientation: landscape) {
  body[data-camera="third"] .light-controls { bottom: clamp(6px, calc(100vh - 372px), 18px); }
  body[data-camera="third"] .toast { top: auto; bottom: calc(clamp(6px, calc(100vh - 372px), 18px) + 54px); padding: 6px 12px; font-size: 10px; line-height: 1.45; max-width: 52%; }
}
