* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  background: #101217;
  color: #f2f0e6;
  font:
    16px/1.5 'Barlow',
    'PingFang SC',
    system-ui,
    sans-serif;
}
body {
  margin: 0;
}
main {
  max-width: 1250px;
  margin: auto;
}
header,
.dash {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #161b20;
}
h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.06em;
}
.hud {
  display: flex;
  gap: 18px;
  color: #e6cda8;
  font:
    600 14px ui-monospace,
    monospace;
}
.scene {
  position: relative;
  line-height: 0;
  background: #303446;
}
canvas {
  width: 100%;
  height: auto;
  display: block;
}
.dash {
  justify-content: flex-start;
  align-items: center;
  border-top: 2px solid #b77543;
}
.telemetry {
  flex: 1;
}
label,
small {
  font-size: 12px;
}
label {
  color: #d8d4c9;
}
.meter {
  height: 13px;
  max-width: 500px;
  background: #353b40;
  position: relative;
  overflow: hidden;
  margin: 4px 0;
}
.meter i,
.meter b {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
}
.meter i {
  background: #c0d2d9;
  width: 0;
}
.meter b {
  left: 76%;
  width: 16%;
  border: 2px solid #ff993e;
  background: #ff913b66;
}
button {
  font: 700 15px/1.1 inherit;
  font-family: inherit;
  font-weight: 700;
  color: #fff3df;
  min-height: 44px;
  padding: 9px 19px;
  cursor: pointer;
  background: #2b343b;
  border: 1px solid #707a79;
  touch-action: manipulation;
}
button:focus-visible {
  outline: 2px solid #ffbc70;
  outline-offset: -4px;
}
button:disabled {
  opacity: 0.55;
}
#start,
#shift {
  background: #ec8545;
  border-color: #f19d69;
  color: #211c18;
}
kbd {
  font: 11px monospace;
  margin-left: 4px;
}
#overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #171c269c;
  line-height: 1.45;
  padding: 10px;
}
#overlay[hidden] {
  display: none;
}
#overlay > div {
  max-width: 380px;
  padding: 17px 24px;
  text-align: center;
  background: #202830ed;
  border-top: 3px solid #ef9155;
}
h2 {
  margin: 0 0 4px;
  font-size: 25px;
}
p {
  font-size: 14px;
  margin: 0 0 11px;
}
small {
  color: #cebda7;
}
@media (max-width: 570px) {
  header,
  .dash {
    padding: 8px;
    gap: 8px;
  }
  .hud {
    gap: 7px;
    font-size: 11px;
  }
  h1 {
    font-size: 15px;
  }
  button {
    padding: 8px 12px;
  }
  kbd {
    display: none;
  }
  #overlay > div {
    padding: 9px 13px;
  }
  h2 {
    font-size: 18px;
  }
  p {
    font-size: 12px;
  }
  .scene canvas {
    height: clamp(220px, 48vw, 270px);
    object-fit: cover;
  }
}
