* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #101e2a;
  color: #e8f1f5;
  font:
    14px system-ui,
    sans-serif;
}
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  touch-action: none;
}
header {
  position: absolute;
  top: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.mark {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -2px;
  border: 1px solid #66828d;
  padding: 7px 12px;
}
.mark span {
  color: #79f0ce;
}
h1 {
  font-size: 16px;
  letter-spacing: 3px;
  margin: 0 0 4px;
}
p {
  font-size: 11px;
  color: #9eb6c5;
  letter-spacing: 2px;
  margin: 0;
}
button {
  cursor: pointer;
  border: 1px solid #526876;
  color: #e8f1f5;
  background: #1c303e;
  padding: 10px 14px;
  border-radius: 5px;
  font: inherit;
}
button:hover {
  border-color: #79f0ce;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #79f0ce;
  outline-offset: 3px;
}
#tune {
  margin-left: auto;
  pointer-events: auto;
}
aside {
  position: absolute;
  right: 32px;
  top: 110px;
  bottom: 100px;
  width: 294px;
  background: #112330ed;
  border: 1px solid #3a5360;
  border-radius: 8px;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: #526876 transparent;
  backdrop-filter: blur(12px);
}
aside.closed {
  display: none;
}
.panel-title {
  font-size: 12px;
  letter-spacing: 2px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}
.panel-title span {
  color: #79f0ce;
}
pre {
  font-size: 11px;
  line-height: 1.85;
  color: #b1c7d1;
  padding: 12px 0;
  border-bottom: 1px solid #344b58;
  font-family: ui-monospace, monospace;
}
details {
  border-bottom: 1px solid #344b58;
  padding: 12px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
label:not(.toggle) {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  margin: 13px 0;
  color: #b9cdd7;
  font-size: 12px;
}
output {
  color: #79f0ce;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  grid-column: 1 / 3;
  width: 100%;
  accent-color: #79f0ce;
  height: 12px;
}
.toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  font-size: 12px;
}
input[type="checkbox"] {
  accent-color: #79f0ce;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.actions button {
  font-size: 12px;
  padding: 9px;
}
.telemetry {
  position: absolute;
  left: 32px;
  bottom: 115px;
  width: 180px;
}
#state {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #79f0ce;
  font-size: 12px;
}
#speed {
  display: block;
  font-size: 64px;
  line-height: 1.2;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.telemetry small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a3bdc9;
}
.dash-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 1px;
  margin: 24px 0 8px;
}
.dash-label b {
  font-weight: 500;
  color: #79f0ce;
}
.track {
  height: 3px;
  background: #405864;
}
.track i {
  display: block;
  background: #79f0ce;
  height: 100%;
  transform-origin: left;
}
footer {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid #4d637366;
  color: #bdd0db;
  font-size: 12px;
}
kbd {
  display: inline-block;
  font: 10px system-ui;
  border: 1px solid #5e7785;
  padding: 4px 6px;
  border-radius: 3px;
  color: #fff;
  margin-right: 5px;
}
#loading {
  position: absolute;
  inset: 45% 10% auto;
  text-align: center;
  color: #79f0ce;
  font-size: 18px;
}
@media (max-width: 800px) {
  aside {
    right: 16px;
    top: 90px;
    width: 260px;
    bottom: 145px;
  }
  header {
    top: 18px;
    left: 16px;
    right: 16px;
  }
  h1 {
    font-size: 12px;
  }
  header p {
    font-size: 9px;
  }
  footer {
    left: 16px;
    right: 16px;
    gap: 8px;
    bottom: 14px;
    max-width: 90%;
  }
  .telemetry {
    left: 16px;
    bottom: 160px;
  }
  .mark {
    font-size: 22px;
  }
  #speed {
    font-size: 44px;
  }
}
input[type="number"] {
  background: #1c303e;
  color: #79f0ce;
  border: 1px solid #526876;
  border-radius: 3px;
  width: 80px;
  padding: 5px;
}
