*{box-sizing:border-box}body{margin:0;background:#333;color:#f4f4f1;font:15px "Segoe UI","Microsoft YaHei",sans-serif}#view{display:block;width:100vw;height:100vh;touch-action:none}header,aside,footer,#states,#speed,#help,#mini,#msg{position:fixed;background:#191d22ed;border:1px solid #73767880}header,footer{display:flex;align-items:center;gap:16px;padding:12px 18px}header{top:2.5%;left:2%;right:2%}header strong,#speed strong{color:#e5ff12;font:bold italic 40px Arial}header b{font-size:20px}small{display:block;color:#c5c8cb;font:600 11px Arial;letter-spacing:.05em;margin-bottom:4px}.spacer{flex:1}button,select{border:0;background:#3a3e44;color:white;padding:9px;cursor:pointer;font:inherit}button:hover,select:hover{background:#51565c}aside{top:17%;padding:16px;width:clamp(165px,16vw,225px)}#maps{left:2%}#paints{right:2%}aside h2{margin:3px 0 12px}aside button{display:block;text-align:left;width:100%;margin-top:4px}#maps button{color:#e5ff12}.on,#play{background:#e5ff12;color:#191d22}i{display:inline-block;width:18px;height:18px;vertical-align:middle;margin-right:10px;border:1px solid #999}footer{bottom:5%;left:50%;transform:translateX(-50%);white-space:nowrap}#drive{display:none}.driving #drive{display:block}.driving aside,.driving footer,.driving #model{display:none}#mini{bottom:8%;left:2%}#speed{bottom:8%;right:2%;padding:14px}#states{right:2%;top:18%;padding:12px}#help{bottom:2%;left:2%;right:2%;padding:8px;text-align:center;font-size:13px}#msg{left:50%;top:15%;transform:translateX(-50%);padding:8px 18px;color:white}#msg:empty{display:none}output{font:12px monospace;color:#c6ceaf}

@media (max-width: 800px) {
  .garage-overview aside {display:none}
  .garage-overview footer {width:96%; bottom:2%; flex-wrap:wrap; justify-content:center; gap:6px; padding:8px}
  .garage-overview footer > div {display:none}
  .garage-overview footer select {max-width:46%}
  .garage-overview header {gap:8px; padding:8px}
}

#language {flex:none}
footer {max-width:96vw}
footer select {min-width:0; text-overflow:ellipsis}
@media (max-width:900px) {
  footer {width:96%; justify-content:center; flex-wrap:wrap; gap:6px; padding:8px}
  footer > div {display:none}
  footer select {max-width:46%}
  header {gap:6px; padding:8px}
  header #model {min-width:0; max-width:30vw}
}
@media (max-width:520px) {
  header #perf {display:none}
  header strong {font-size:24px}
  header b {font-size:16px}
  header select {padding:6px 3px}
  aside {width:40%; padding:8px}
  aside h2 {font-size:17px}
  #help {max-height:13vh; overflow:auto}
  #mini,#speed {bottom:17%}
}
