:root {
  font-family:Inter,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  color:#243b3e;
  background:#cadbd9;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  overflow:hidden
}
button,a,input {
  font:inherit;
  -webkit-tap-highlight-color:transparent
}
button,a {
  color:inherit
}
button {
  cursor:pointer
}
button {
  border:0
}
a {
  text-decoration:none
}
button:focus-visible,a:focus-visible,canvas:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #aecc70;
  outline-offset:4px
}
[hidden] {
  display:none!important
}
#driveApp {
  height:100dvh;
  min-height:0;
  position:relative;
  overflow:hidden
}
#driveCanvas {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
  outline:none
}
.d-top {
  position:absolute;
  top:0;
  left:0;
  right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:28px 36px;
  gap:18px;
  z-index:3;
  background:linear-gradient(#e6eddd70,transparent)
}
.d-back {
  display:flex;
  gap:12px;
  align-items:center;
  font-size:21px
}
.d-back span {
  font-size:11px;
  font-weight:800;
  letter-spacing:1px
}
.d-brand {
  text-align:center;
  display:grid;
  gap:6px;
  transform:translateX(-12px)
}
.d-brand span,.d-eyebrow {
  font:10px ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:2px
}
.d-brand b {
  font-size:15px;
  font-weight:650;
  letter-spacing:5px
}
.d-top-actions {
  display:flex;
  gap:8px
}
.d-icon {
  width:38px;
  height:38px;
  border-radius:50%;
  background:#edf4e5a6;
  border:1px solid #243b3e18;
  font-size:19px;
  backdrop-filter:blur(8px)
}
.d-icon:hover {
  background:#f8f7eb
}
.d-icon[aria-pressed=true] {
  background:#cee99d
}
.d-place {
  position:absolute;
  left:36px;
  top:118px;
  pointer-events:none;
  max-width:280px;
  margin:-14px -18px;
  padding:14px 18px;
  border-radius:12px;
  background:#edf4e5e8;
  box-shadow:0 4px 24px #1d3d3e0a
}
.d-place>span {
  font:10px ui-monospace,monospace;
  letter-spacing:1.8px;
  opacity:.6
}
.d-place h1 {
  font-size:24px;
  letter-spacing:1px;
  margin:12px 0 9px;
  font-weight:500
}
.d-place p {
  font-size:11px;
  opacity:.72;
  line-height:1.6;
  margin:0
}
.d-toast {
  position:absolute;
  top:98px;
  left:50%;
  transform:translateX(-50%);
  max-width:80%;
  background:#edf4eae6;
  backdrop-filter:blur(12px);
  border:1px solid #29454918;
  border-radius:30px;
  padding:10px 18px;
  font-size:12px;
  z-index:6;
  pointer-events:none;
  text-align:center
}
.d-toast:empty {
  display:none
}
.d-welcome,.d-pause-card {
  position:absolute;
  left:8%;
  top:32%;
  max-width:400px;
  z-index:4;
  background:#f2f4e8e8;
  backdrop-filter:blur(16px);
  border:1px solid #fff7;
  border-radius:20px;
  padding:32px 36px;
  box-shadow:0 20px 100px #19373c14
}
.d-welcome h2 {
  font-size:45px;
  font-weight:550;
  letter-spacing:-2px;
  line-height:1.3;
  margin:17px 0 15px
}
.d-welcome h2 span {
  color:#899e5b
}
.d-welcome p,.d-pause-card p {
  font-size:13px;
  line-height:1.9;
  color:#597071
}
.d-primary {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  background:#304d4e;
  color:#f5f6e9;
  border-radius:8px;
  padding:15px 20px;
  font-size:13px;
  font-weight:600;
  margin:22px 0 14px
}
.d-primary:hover {
  background:#1e3b3e
}
.d-welcome small {
  font-size:10px;
  line-height:1.8;
  opacity:.65
}
.d-pause-card {
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  text-align:center;
  min-width:320px
}
.d-pause-card h2 {
  font-size:25px;
  font-weight:500;
  margin:20px 0 10px
}
.d-pause-card .d-primary {
  margin:20px auto 0
}
.d-panel {
  position:absolute;
  top:86px;
  right:28px;
  width:360px;
  max-height:calc(100dvh - 190px);
  overflow:auto;
  overscroll-behavior:contain;
  z-index:5;
  padding:24px;
  background:#f2f4eaf5;
  backdrop-filter:blur(18px);
  border:1px solid #fff8;
  border-radius:16px;
  box-shadow:0 12px 60px #1d3d3e25;
  scrollbar-width:thin
}
.d-panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.d-panel h2 {
  font-size:22px;
  font-weight:500;
  margin:8px 0 17px
}
.d-panel-head .d-eyebrow {
  font-size:8px;
  letter-spacing:1.2px
}
.d-panel .d-icon {
  width:30px;
  height:30px;
  flex-shrink:0
}
.d-panel fieldset {
  border:0;
  padding:0;
  margin:12px 0 22px
}
.d-panel legend {
  font-size:11px;
  font-weight:650;
  margin-bottom:12px;
  opacity:.75
}
.d-choices,.d-vehicles {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px
}
.d-choices button,.d-vehicles button {
  display:flex;
  flex-direction:column;
  align-items:center;
  background:#e5eadd;
  border:1px solid #354d4d17;
  border-radius:9px;
  padding:8px 4px 10px;
  color:#415e5b
}
.d-choices button[aria-pressed=true],.d-vehicles button[aria-pressed=true] {
  border-color:#6b8a59;
  background:#d9e6c6
}
.d-choices i {
  width:100%;
  height:34px;
  display:block;
  border-radius:5px;
  margin-bottom:9px
}
.env-coast {
  background:linear-gradient(165deg,#b4d9df 50%,#93bdb5 50% 60%,#829268 60%)
}
.env-meadow {
  background:linear-gradient(160deg,#d1e1d1 45%,#9db27a 45% 65%,#6e8a62 65%)
}
.env-snow {
  background:linear-gradient(160deg,#abc7d4 45%,#fafbf0 45% 65%,#c3d4d4 65%)
}
.d-choices b,.d-vehicles b {
  font-size:10px;
  font-weight:600
}
.d-choices small,.d-vehicles small {
  font-size:8px;
  opacity:.65;
  margin-top:5px;
  white-space:nowrap
}
.d-vehicles>button>span {
  font-size:28px;
  line-height:1.2;
  margin:4px 0 8px
}
.d-setting-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
  border-top:1px solid #29494817;
  font-size:11px;
  gap:12px
}
.d-setting-row button {
  background:#e2e8da;
  border-radius:7px;
  padding:8px;
  font-size:10px
}
.d-setting-row span b {
  display:block;
  font:10px ui-monospace,monospace;
  opacity:.6;
  margin-top:5px
}
.d-check {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:11px 0;
  gap:20px
}
.d-check b {
  display:block;
  font-size:11px;
  font-weight:500
}
.d-check small {
  display:block;
  font-size:9px;
  opacity:.6;
  margin-top:5px
}
.d-check input {
  accent-color:#6d8c56;
  width:17px;
  height:17px
}
.d-panel details {
  border-top:1px solid #29494817;
  padding-top:16px;
  font-size:11px;
  line-height:1.8
}
.d-panel summary {
  cursor:pointer
}
.d-panel details p {
  font-size:10px;
  opacity:.75;
  margin:10px 0
}
.d-performance {
  display:grid;
  gap:5px;
  border-top:1px solid #29494817;
  padding-top:14px;
  margin-top:16px;
  font:9px ui-monospace,monospace;
  opacity:.75
}
.d-performance output {
  line-height:1.6
}
.d-performance small {
  font:9px inherit
}
.d-bottom {
  position:absolute;
  bottom:28px;
  left:36px;
  right:36px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  pointer-events:none;
  z-index:3;
  color:#f1f5e9;
  text-shadow:0 1px 15px #192a2da0
}
.d-bottom>* {
  pointer-events:auto
}
.d-distance {
  display:grid;
  gap:8px;
  font:9px ui-monospace,monospace;
  min-width:155px
}
.d-distance>span:first-child {
  font-family:inherit;
  font-size:10px
}
.d-distance b {
  font:500 22px ui-monospace,monospace;
  margin:0 6px
}
.d-distance>span:last-child {
  opacity:.65;
  font-size:9px
}
.d-distance>span:last-child b {
  font:inherit;
  margin:0 3px
}
.d-distance small {
  font-size:9px
}
.d-journey-actions {
  display:flex;
  gap:8px
}
.d-journey-actions button {
  background:#eff5e1dd;
  backdrop-filter:blur(12px);
  color:#2d4b4c;
  text-shadow:none;
  border-radius:30px;
  font-size:11px;
  padding:11px 14px;
  border:1px solid #344a3e1a
}
.d-journey-actions #driveAuto {
  display:flex;
  align-items:center;
  gap:8px
}
.d-journey-actions i {
  width:6px;
  height:6px;
  background:#84928b;
  border-radius:50%
}
.d-journey-actions #driveAuto[aria-pressed=true] i {
  background:#719943;
  box-shadow:0 0 0 3px #91b15b22
}
.d-speed {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  min-width:100px
}
.d-speed strong {
  font:300 39px ui-monospace,monospace
}
.d-speed>span {
  font:8px ui-monospace,monospace;
  letter-spacing:2px;
  opacity:.7
}
.d-controls {
  display:none;
  position:absolute;
  left:18px;
  right:18px;
  bottom:max(18px,env(safe-area-inset-bottom));
  align-items:center;
  justify-content:space-between;
  gap:12px;
  z-index:3
}
.d-controls button {
  background:#eaf2e0b8;
  backdrop-filter:blur(8px);
  border:1px solid #fff5;
  border-radius:12px;
  min-width:50px;
  min-height:49px;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  color:#294a4a;
  font-size:18px
}
.d-controls .d-pedals button {
  font-size:11px;
  min-width:56px
}
.d-steer,.d-pedals {
  display:flex;
  gap:7px
}
.d-controls button.is-held {
  background:#c7df9be8;
  transform:translateY(1px)
}
.d-controls>span {
  font-size:9px;
  text-align:center;
  color:#f1f4e6;
  text-shadow:0 1px 8px #223834
}
.d-error {
  position:absolute;
  inset:0;
  z-index:9;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:25px;
  text-align:center;
  background:#e3ebdf
}
.d-error h2 {
  font-weight:500
}
.d-error p {
  font-size:13px;
  line-height:1.9
}
.d-error a {
  margin-top:20px;
  border-bottom:1px solid #294a4a;
  padding-bottom:5px;
  font-size:13px
}
body.is-driving .d-place {
  opacity:1
}
body.has-panel .d-place {
  opacity:.5
}
@media(pointer:coarse),(max-width:700px) {
  .d-controls {
    display:flex
  }
  .d-bottom {
    bottom:92px;
    left:20px;
    right:20px
  }
  .d-distance {
    min-width:80px
  }
  .d-distance>span:first-child {
    font-size:9px
  }
  .d-distance b {
    font-size:20px;
    margin:0 3px
  }
  .d-speed {
    min-width:48px
  }
  .d-speed strong {
    font-size:30px
  }
  .d-journey-actions {
    gap:6px
  }
  .d-journey-actions button {
    padding:10px 11px;
    font-size:10px
  }
  .d-journey-actions #driveReset {
    display:none
  }
  .d-journey-actions #driveCamera {
    font-size:0;
    width:36px;
    height:36px;
    padding:0
  }
  .d-journey-actions #driveCamera:after {
    content:'◉';
    font-size:15px
  }
  .d-top {
    padding:18px 20px;
    gap:10px
  }
  .d-back span {
    display:none
  }
  .d-brand {
    transform:none
  }
  .d-brand span {
    font-size:8px;
    letter-spacing:1.6px
  }
  .d-brand b {
    font-size:13px;
    letter-spacing:3px
  }
  .d-icon {
    width:32px;
    height:32px;
    font-size:16px
  }
  .d-top-actions {
    gap:5px
  }
  .d-place {
    top:91px;
    left:21px;
    max-width:220px
  }
  .d-place>span {
    font-size:8px
  }
  .d-place h1 {
    font-size:19px;
    margin:9px 0 6px
  }
  .d-place p {
    font-size:10px;
    max-width:195px
  }
  .d-toast {
    top:163px;
    max-width:90%;
    font-size:10px;
    padding:9px 13px
  }
  .d-panel {
    top:70px;
    right:12px;
    left:12px;
    width:auto;
    max-height:calc(100dvh - 170px);
    padding:21px
  }
  .d-welcome {
    left:20px;
    right:20px;
    top:27%;
    width:auto;
    max-width:none;
    padding:27px
  }
  .d-welcome h2 {
    font-size:37px;
    margin:15px 0
  }
  .d-welcome p {
    font-size:12px
  }
  .d-welcome .d-eyebrow {
    font-size:8px;
    letter-spacing:1.5px
  }
  .d-welcome small {
    font-size:9px
  }
  .d-primary {
    font-size:12px;
    padding:14px 17px
  }
  .d-pause-card {
    min-width:0;
    width:calc(100% - 40px);
    padding:25px
  }
  .d-pause-card h2 {
    font-size:22px
  }
}
@media(max-height:620px) {
  .d-place {
    display:none
  }
  .d-welcome {
    top:24%;
    padding:23px 28px
  }
  .d-welcome h2 {
    font-size:30px;
    margin:10px 0
  }
  .d-welcome p {
    font-size:11px;
    margin:8px 0
  }
  .d-welcome .d-primary {
    margin:15px 0 10px
  }
  .d-panel {
    max-height:calc(100dvh - 100px)
  }
  .d-bottom {
    bottom:20px
  }
  .d-controls {
    bottom:12px;
    left:20px;
    right:20px
  }
  .d-controls>span {
    display:none
  }
}
@media(max-height:620px) and (pointer:coarse) {
  .d-bottom {
    bottom:78px
  }
  .d-controls {
    bottom:14px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto
  }
}
@media(max-width:700px) and (max-height:620px) {
  .d-bottom {
    bottom:78px
  }
  .d-controls {
    bottom:14px
  }
}
@media(max-height:360px) {
  .d-top {
    padding:10px 18px
  }
  .d-brand b {
    display:none
  }
  .d-welcome {
    top:62px;
    padding:18px 25px
  }
  .d-welcome h2 {
    font-size:23px;
    line-height:1.2;
    margin:8px 0
  }
  .d-welcome h2 br {
    display:none
  }
  .d-welcome p {
    margin:6px 0;
    font-size:10px
  }
  .d-welcome small {
    display:none
  }
  .d-welcome .d-primary {
    margin:10px 0 0;
    padding:11px 15px
  }
  .d-panel {
    top:54px;
    max-height:calc(100dvh - 65px);
    padding:18px
  }
  .d-pause-card {
    padding:20px
  }
  .d-pause-card h2 {
    margin:12px 0 6px
  }
  .d-pause-card .d-primary {
    padding:11px 15px;
    margin-top:13px
  }
}
#driveApp:after {
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:150px;
  background:linear-gradient(transparent,#17393d65);
  pointer-events:none;
  z-index:1
}
@media(max-width:700px) {
  #driveApp:after {
    height:220px
  }
}

.d-vehicle-icon svg {
  display: block;
  width: 76px;
  height: 38px;
}

@media (pointer: coarse), (max-width: 700px) {
  .d-top {
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .d-place {
    top: calc(91px + env(safe-area-inset-top));
    left: max(21px, env(safe-area-inset-left));
  }
  .d-panel {
    top: calc(70px + env(safe-area-inset-top));
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    width: min(360px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    max-height: calc(100dvh - 170px - env(safe-area-inset-top));
  }
  .d-bottom {
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: max(20px, env(safe-area-inset-left));
    right: max(20px, env(safe-area-inset-right));
  }
  .d-controls {
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
  }
}
@media (max-height: 620px) and (pointer: coarse), (max-height: 620px) and (max-width: 700px) {
  .d-top { padding-top: calc(10px + env(safe-area-inset-top)); }
  .d-bottom { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .d-controls { bottom: max(14px, env(safe-area-inset-bottom)); }
  .d-panel { max-height: calc(100dvh - 85px - env(safe-area-inset-top)); }
}

.d-trail-intro { margin-top:18px; font-size:10px }
.d-trail-intro>span { opacity:.65 }
.d-trail-choices { display:flex; gap:7px; margin-top:9px }
.d-trail-choices button { flex:1; min-height:48px; padding:10px 6px; border:1px solid #42594925; border-radius:9px; background:#f5f5e5d9; font-size:11px }
.d-trail-choices small { display:block; font:8px ui-monospace,monospace; margin-top:5px; opacity:.65 }
.d-welcome { max-height:calc(100dvh - 185px); overflow:auto }
.d-welcome .d-primary { margin:16px 0 12px }
.d-passport { padding-bottom:14px; margin-bottom:15px; border-bottom:1px solid #42594920; font-size:11px; line-height:1.7 }
#trailRecords { margin-top:9px; font-size:10px; opacity:.75 }
.d-passport p { font-size:10px; opacity:.7 }
.d-trail-hud { position:absolute; z-index:3; top:115px; right:36px; width:280px; padding:16px 18px; border:1px solid #fff7; background:#edf4e5ee; border-radius:14px; box-shadow:0 4px 25px #19373b12; font-size:11px; pointer-events:none }
.d-trail-hud>div { display:flex; justify-content:space-between; gap:12px }
.d-trail-hud>div:first-child { font-size:13px; margin-bottom:9px }
.d-trail-hud small { display:block; margin-top:9px; font-size:9px; opacity:.65 }
.d-trail-hud progress { width:100%; height:5px; display:block; margin:12px 0; accent-color:#73917a; border:0; border-radius:5px; overflow:hidden }
.d-trail-hud progress::-webkit-progress-bar { background:#c9d8c5 }
.d-trail-hud progress::-webkit-progress-value { background:#648c78 }
.d-trail-result { z-index:7; max-width:430px; max-height:calc(100dvh - 100px); overflow:auto }
#trailResultScore { font-size:14px; font-weight:500 }
#trailReward { font-size:11px }
.d-result-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:17px }
.d-result-actions button { min-height:44px; padding:12px 14px; border-radius:9px; background:#dce7d2; font-size:11px }
.d-result-actions .d-primary { background:#2c4845; color:#f5f1da; flex:1 }
body.has-trail .d-toast { top:260px }
@media(max-width:700px) {
 .d-trail-hud { top:174px; left:20px; right:20px; width:auto; padding:12px 15px }
 .d-trail-hud>div:first-child { font-size:11px; margin-bottom:4px }
 .d-trail-hud progress { margin:9px 0 }
 body.has-trail .d-toast { top:298px }
 .d-welcome { top:23%; max-height:calc(100dvh - 205px); padding:23px }
 .d-trail-choices button { font-size:10px; min-height:48px }
 .d-trail-choices small { font-size:7px }
 .d-top-actions .d-icon { width:36px; height:36px }
}
@media(max-height:620px) {
 .d-welcome { top:70px; max-height:calc(100dvh - 150px); padding:18px 24px }
 .d-welcome h2 { font-size:25px; margin:8px 0 }
 .d-welcome h2 br { display:none }
 .d-welcome p { margin:8px 0 }
 .d-welcome small { display:none }
 .d-trail-intro { margin-top:10px }
 .d-welcome .d-primary { margin:10px 0 0 }
 .d-trail-hud { left:auto; right:20px; top:78px; width:245px; padding:10px 13px }
 .d-trail-hud progress { margin:7px 0 }
 .d-trail-hud small { display:none }
 body.has-trail .d-toast { top:173px }
 .d-trail-result { max-height:calc(100dvh - 80px); padding:20px 24px; width:min(430px,calc(100% - 35px)) }
 .d-trail-result h2 { margin:10px 0 }
 .d-trail-result p { margin:9px 0 }
 .d-result-actions { margin-top:10px }
}
@media(max-height:620px) {
 .d-welcome { width:480px; max-width:calc(100% - 72px); padding:15px 22px; max-height:calc(100dvh - 145px) }
 .d-welcome p { font-size:11px; line-height:1.4; margin:6px 0 }
 .d-welcome .d-trail-intro { margin-top:6px }
 .d-welcome .d-trail-intro>span { display:none }
 .d-welcome .d-trail-choices { margin-top:6px }
 .d-welcome .d-primary { margin:8px 0 0; min-height:44px; padding:11px 17px }
}
@media(max-width:950px) and (max-height:620px) {
 .d-controls { display:flex; bottom:12px }
 .d-bottom { bottom:78px }
 .d-welcome { top:70px; max-height:calc(100dvh - 160px) }
}

.d-vehicles {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.d-vehicles button{min-width:0}.d-vehicles button:nth-child(n+4){margin-top:3px}
