:root {
  font-family: "Inter Variable", sans-serif;
  font-synthesis: none;
  color: #e6ecf6;
  background: #080e19;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
  outline: none;
}
canvas:focus-visible {
  outline: 2px solid #69d7e6;
  outline-offset: -3px;
}
.hud {
  position: fixed;
  z-index: 2;
  pointer-events: none;
}
.identity {
  left: 46px;
  top: 40px;
}
.identity p {
  font:
    11px "JetBrains Mono Variable",
    monospace;
  letter-spacing: 2px;
  color: #b6c5d7;
  margin: 0 0 15px;
}
.identity p span {
  margin-left: 32px;
  color: #90a4bd;
}
.identity h1 {
  font:
    500 32px "Space Grotesk Variable",
    sans-serif;
  letter-spacing: -1.4px;
  margin: 0;
}
.identity em {
  font-style: normal;
  color: #d4a575;
}
.badge {
  top: 47px;
  right: 46px;
  color: #94d5e2;
  font:
    11px "JetBrains Mono Variable",
    monospace;
  letter-spacing: 1px;
}
.badge i {
  display: inline-block;
  background: #6dd8df;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
}
.chapter {
  left: 46px;
  bottom: 165px;
  width: 400px;
}
.chapter > p {
  font:
    11px "JetBrains Mono Variable",
    monospace;
  letter-spacing: 1px;
  color: #d8ac80;
  margin: 0 0 12px;
}
.chapter h2 {
  font:
    400 27px "Space Grotesk Variable",
    sans-serif;
  letter-spacing: -0.7px;
  margin: 0 0 12px;
}
.chapter > div {
  font-size: 12px;
  line-height: 1.65;
  color: #aebed1;
  max-width: 345px;
}
.parts {
  left: 46px;
  top: 183px;
  display: flex;
  gap: 28px;
  color: #aebed1;
  font:
    11px "JetBrains Mono Variable",
    monospace;
  letter-spacing: 1px;
}
.parts i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
}
.copper {
  background: #e9a569;
}
.blue {
  background: #73d9e5;
}
.steel {
  background: #b1c2d3;
}
.readout {
  right: 46px;
  bottom: 165px;
  text-align: right;
}
.readout > span {
  font:
    11px "JetBrains Mono Variable",
    monospace;
  letter-spacing: 1.5px;
  color: #a9b9cf;
}
.readout strong {
  display: block;
  font:
    400 38px "Space Grotesk Variable",
    sans-serif;
  letter-spacing: -1px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.readout strong small {
  font:
    12px "JetBrains Mono Variable",
    monospace;
  color: #b6c3d4;
}
.readout p {
  font:
    11px "JetBrains Mono Variable",
    monospace;
  color: #8fcae0;
}
.stages {
  left: 46px;
  bottom: 82px;
  display: flex;
  gap: 7px;
  pointer-events: auto;
}
.stages button {
  min-width: 112px;
  text-align: left;
}
.stages small {
  font:
    11px "JetBrains Mono Variable",
    monospace;
  color: #a7b3c4;
  margin-right: 10px;
}
button {
  height: 45px;
  padding: 0 16px;
  background: #122235;
  border: 1px solid #34465e;
  border-radius: 4px;
  color: #e2eaf6;
  font:
    12px "Inter Variable",
    sans-serif;
  cursor: pointer;
}
button:hover {
  background: #23364d;
}
button[aria-pressed="true"] {
  background: #e1b68f;
  border-color: #e1b68f;
  color: #152031;
}
.stages button[aria-pressed="true"] small {
  color: #344253;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #74dce8;
  outline-offset: 4px;
}
.controls {
  right: 46px;
  bottom: 82px;
  display: flex;
  gap: 7px;
  pointer-events: auto;
}
.note {
  left: 46px;
  right: 46px;
  bottom: 24px;
  border-top: 1px solid #2b394c;
  padding-top: 16px;
  margin: 0;
  font:
    11px "JetBrains Mono Variable",
    monospace;
  color: #9bafc7;
}
.note span {
  float: right;
}
.settings {
  right: 46px;
  bottom: 140px;
  width: 320px;
  padding: 20px;
  background: #0f2033ef;
  border: 1px solid #3b5067;
  backdrop-filter: blur(12px);
  border-radius: 7px;
  pointer-events: auto;
}
.settings label {
  font-size: 12px;
}
.settings output {
  float: right;
  color: #f3be8c;
  font-variant-numeric: tabular-nums;
}
.settings input {
  width: 100%;
  height: 25px;
  margin: 16px 0;
  accent-color: #e1b68f;
}
.settings p {
  font-size: 11px;
  line-height: 1.55;
  color: #b3c5d9;
  margin: 0 0 14px;
}
.settings button {
  height: 44px;
}
.settings[hidden],
#fallback[hidden] {
  display: none;
}
#fallback {
  position: fixed;
  z-index: 1;
  left: 20%;
  right: 20%;
  top: 38%;
  font-size: 20px;
  line-height: 1.7;
  padding: 24px;
  border: 1px solid #4c637a;
  background: #0f2033;
}
.capture * {
  transition: none !important;
}
@media (max-width: 600px) {
  .identity {
    left: 20px;
    top: 26px;
  }
  .identity p {
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 12px;
  }
  .identity p span {
    display: none;
  }
  .identity h1 {
    font-size: 26px;
  }
  .badge {
    top: 29px;
    right: 20px;
    font-size: 0;
  }
  .badge i {
    margin: 0;
  }
  .parts {
    left: 20px;
    right: 20px;
    top: 108px;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.2px;
  }
  .parts i {
    width: 4px;
    height: 4px;
    margin-right: 5px;
  }
  .chapter {
    left: 20px;
    right: 20px;
    bottom: 164px;
    width: auto;
  }
  .chapter > p {
    font-size: 11px;
    margin: 0 0 8px;
  }
  .chapter h2 {
    font-size: 23px;
    margin: 0;
  }
  .chapter > div {
    display: none;
  }
  .readout {
    top: 149px;
    right: 20px;
    bottom: auto;
  }
  .readout > span {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .readout strong {
    font-size: 25px;
    margin-top: 5px;
  }
  .readout p {
    font-size: 11px;
    margin-top: 5px;
  }
  .stages {
    left: 20px;
    right: 20px;
    bottom: 105px;
    gap: 6px;
  }
  .stages button {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 11px;
  }
  .stages small {
    font-size: 11px;
    margin-right: 8px;
  }
  .controls {
    right: 20px;
    left: 20px;
    bottom: 51px;
    gap: 6px;
  }
  .controls button {
    flex: 1;
    font-size: 11px;
  }
  .note {
    bottom: 17px;
    left: 20px;
    right: 20px;
    font-size: 11px;
    padding-top: 10px;
  }
  .note span {
    display: none;
  }
  .settings {
    left: 20px;
    right: 20px;
    bottom: 159px;
    width: auto;
    padding: 16px;
  }
  .settings p {
    font-size: 11px;
  }
  .settings input {
    margin: 12px 0;
  }
  .settings button {
    width: 100%;
  }
  body:has(.settings:not([hidden])) .chapter {
    display: none;
  }
  #fallback {
    left: 20px;
    right: 20px;
    top: 31%;
    font-size: 15px;
  }
}
@media (max-height: 650px) and (min-width: 601px) {
  .identity {
    top: 22px;
  }
  .parts {
    top: 140px;
  }
  .chapter {
    bottom: 150px;
  }
  .chapter > div {
    max-width: 310px;
  }
  .chapter h2 {
    font-size: 23px;
  }
  .readout {
    bottom: 150px;
  }
  .stages,
  .controls {
    bottom: 75px;
  }
  .settings {
    bottom: 132px;
  }
}

@media (max-width: 600px) {
  body:has(.settings:not([hidden])) .readout,
  body:has(.settings:not([hidden])) .parts,
  body:has(.settings:not([hidden])) .note {
    display: none;
  }
}

@media (max-width: 600px) {
  .chapter > div {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 8px;
  }
  .parts {
    justify-content: space-between;
    gap: 8px;
  }
}
