:root {
  font:
    15px/1.5 "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: #e8eae7;
  background: #181b1a;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px clamp(16px, 3vw, 46px);
  border-bottom: 1px solid #363b37;
  color: #adb5af;
  background: #1d211e;
}
.brand {
  font-weight: 780;
  letter-spacing: 0.15em;
  color: #edf0ea;
}
.mark {
  color: #c4f88a;
  font-size: 24px;
  vertical-align: -2px;
}
.divider {
  height: 18px;
  width: 1px;
  background: #555b54;
}
#status {
  margin-left: auto;
  color: #ccdda8;
  font-size: 13px;
}
main {
  padding: 28px clamp(16px, 3vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 290px);
  gap: 26px;
  max-width: 2000px;
  margin: auto;
}
.bar,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.viewport .bar {
  margin-bottom: 14px;
}
h1,
h2 {
  margin: 0;
  font-weight: 620;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 16px;
}
label,
.hint {
  color: #aeb7b0;
  font-size: 13px;
}
select,
button,
input[type="number"] {
  font: inherit;
  color: #e1e7de;
  background: #242a26;
  border: 1px solid #464f47;
  border-radius: 5px;
  padding: 6px;
}
button {
  cursor: pointer;
  padding: 7px 14px;
}
button:disabled {
  opacity: 0.45;
}
#walk {
  background: #c5ef98;
  color: #192017;
  font-weight: 640;
  border-color: #c5ef98;
}
.stage {
  position: relative;
  background: #101411;
  border: 1px solid #444b46;
  border-radius: 7px;
  overflow: hidden;
}
.stage canvas {
  width: 100%;
  aspect-ratio: 1.5;
  display: block;
  outline: none;
}
#reticle,
#message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#message:not(:empty) {
  background: #141916eb;
  color: white;
  padding: 1em;
  border-radius: 4px;
  min-width: 60%;
}
.controls {
  justify-content: flex-start;
  margin-top: 15px;
  flex-wrap: wrap;
}
input[type="checkbox"] {
  accent-color: #c5ef98;
}
aside section,
details {
  padding: 0 0 16px;
  border-bottom: 1px solid #3a403b;
  margin-bottom: 16px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.metric {
  display: grid;
  color: #a9b3aa;
  font-size: 12px;
}
.metric output {
  color: #eef2eb;
  font:
    500 16px/1.5 ui-monospace,
    monospace;
}
#atlas {
  display: block;
  width: 100%;
  height: 175px;
  background: #101411;
  object-fit: contain;
  margin-top: 12px;
}
.hint {
  margin: 0.7em 0;
}
kbd {
  font:
    12px ui-monospace,
    monospace;
  color: #e7ede2;
}
summary {
  cursor: pointer;
}
details label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.8em 0;
}
details input {
  max-width: 60%;
}
details input[type="number"] {
  width: 64px;
}
@media (max-width: 850px) {
  main {
    grid-template-columns: 1fr;
  }
  .bar {
    flex-wrap: wrap;
  }
  aside {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}
#inspect {
  margin-top: 0.65rem;
}
#inspector {
  width: min(94vw, 1100px);
  max-height: 94vh;
  padding: 18px;
  color: #e8eae7;
  border: 1px solid #525c54;
  border-radius: 8px;
  background: #1d211e;
}
#inspector::backdrop {
  background: #080c0ace;
}
#atlas-large {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 14px auto;
  object-fit: contain;
}
#record-info {
  color: #c3cfc5;
  font:
    13px/1.6 ui-monospace,
    monospace;
}
