:root {
  color-scheme: dark;
  font-family: Arial, sans-serif;
  background: #111216;
  color: #ddd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 520px;
  margin: 8vh auto;
  padding: 32px;
}
h1 {
  font-family:
    Impact,
    Arial Black,
    sans-serif;
  font-style: italic;
  font-size: 70px;
  line-height: 0.85;
  letter-spacing: -2px;
  color: #c6c8cb;
  margin: 35px 0 22px;
}
h1 span {
  font-size: 36px;
  letter-spacing: 1px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #bb5a46;
}
p {
  line-height: 1.6;
}
.hint,
.note {
  font-size: 13px;
  color: #92959c;
}
.note {
  margin-top: 32px;
}
button,
.import {
  display: block;
  width: 100%;
  padding: 15px;
  margin: 12px 0;
  border: 1px solid #555a63;
  border-radius: 3px;
  background: #282b31;
  color: #fff;
  font: 600 14px Arial;
  cursor: pointer;
}
button#play {
  background: #802e21;
  border-color: #b64c36;
  letter-spacing: 2px;
}
button:disabled {
  opacity: 0.4;
  cursor: wait;
}
input {
  display: block;
  margin-top: 10px;
  max-width: 100%;
}
#game {
  position: fixed;
  inset: 0;
  background: #000;
}
canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}
#game button {
  position: absolute;
  width: auto;
  bottom: 16px;
  opacity: 0.8;
}
#capture {
  left: 16px;
}
#fullscreen {
  right: 16px;
}
#telemetry {
  position: absolute;
  right: 12px;
  top: 8px;
  color: #fff;
  background: #000a;
  font: 11px monospace;
  pointer-events: none;
}
#diagnostics {
  position: relative;
  max-width: 900px;
  margin: 20px auto;
  font: 12px monospace;
}
#log {
  max-height: 250px;
  overflow: auto;
  white-space: pre-wrap;
}
[hidden] {
  display: none !important;
}
body.playing #diagnostics {
  display: none;
}
#canvas {
  touch-action: none;
}
#touch-toggle {
  position: fixed;
  left: 220px;
  bottom: 28px;
  z-index: 3;
}
#touch {
  position: fixed;
  inset: auto 20px 90px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
#touch[hidden] {
  display: none;
}
#touch button,
#move-pad {
  pointer-events: auto;
  touch-action: none;
  opacity: 0.6;
}
#move-pad {
  margin-right: auto;
  border: 1px solid #aaa;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  background: #2227;
  user-select: none;
}
#touch button {
  padding: 14px 8px;
}
#local-tests {
  position: fixed;
  top: 30px;
  left: 10px;
  z-index: 5;
}
#local-tests button {
  font-size: 11px;
  padding: 6px;
  margin: 2px;
}
#game #local-tests button,
#game #touch button {
  position: static;
  display: inline-block;
  width: auto;
}
#game #touch-toggle {
  bottom: 16px;
}
#local-tests {
  background: #1119;
}

#game #menu {
  right: 140px;
}
#bot-telemetry {
  display: block;
  max-width: 600px;
  font: 11px monospace;
  white-space: pre-wrap;
  color: white;
}
#local-tests {
  pointer-events: none;
}
#local-tests button {
  pointer-events: auto;
}
#bot-telemetry {
  position: fixed;
  bottom: 80px;
  left: 10px;
  background: #1119;
}
