:root {
  --yellow: #fcee0a;
  --cyan: #25e8ff;
  --magenta: #ff2d78;
  --red: #ff4141;
  --ink: #05060b;
  --paper: #e8eefb;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}

#scene,
#overlay {
  position: fixed;
  inset: 0;
  display: block;
}
#scene {
  cursor: crosshair;
}
#overlay {
  pointer-events: none;
}

#boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--yellow);
  font: 700 13px/1 Consolas, "SF Mono", Menlo, monospace;
  letter-spacing: 4px;
  z-index: 40;
  transition: opacity 0.4s ease;
}
#boot.gone {
  opacity: 0;
  pointer-events: none;
}

#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  font-family: Consolas, "SF Mono", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

#brand {
  position: absolute;
  top: 18px;
  left: 24px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
}
#brand b {
  color: var(--yellow);
}
#brand span {
  color: var(--paper);
}
#brand::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 1px;
  width: 4px;
  height: 18px;
  background: var(--yellow);
}

#mission {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 11px;
  text-align: right;
}
#mission i,
#objective i,
#trace i {
  display: block;
  color: #7c879c;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 3px;
  margin-bottom: 3px;
}
#mission b {
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 2px;
}

#objective {
  position: absolute;
  top: 76px;
  right: 24px;
  text-align: right;
  font-size: 11px;
}
#objective b {
  color: var(--cyan);
  font-size: 14px;
}

#trace {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 40vw);
  text-align: center;
  font-size: 10px;
}
#trace .bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
#trace .bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.08s linear;
}

#prompt {
  position: absolute;
  left: 50%;
  bottom: 94px;
  transform: translateX(-50%);
  padding: 9px 16px;
  background: rgba(5, 6, 11, 0.82);
  border: 1px solid var(--yellow);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 2px;
}
#prompt b {
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 1px 6px;
  margin-right: 6px;
}

#controls {
  position: absolute;
  left: 24px;
  bottom: 18px;
  font-size: 9px;
  color: #7c879c;
  letter-spacing: 2px;
}

#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: rgba(252, 238, 10, 0.8);
  border-radius: 50%;
}

#pause,
#result {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 4, 10, 0.78);
  z-index: 20;
}
#pause[hidden],
#result[hidden] {
  display: none;
}

.panel {
  width: min(440px, 86vw);
  padding: 28px 32px 22px;
  background: rgba(8, 11, 19, 0.96);
  border: 1px solid rgba(252, 238, 10, 0.5);
  text-align: left;
}
.panel h1 {
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing: 4px;
  color: var(--paper);
}
.panel .kicker {
  margin: 0 0 10px;
  font: 700 10px/1 Consolas, monospace;
  letter-spacing: 4px;
  color: var(--yellow);
  text-transform: uppercase;
}
.panel .sub {
  margin: 0 0 22px;
  font: 600 10px/1.6 Consolas, monospace;
  letter-spacing: 2px;
  color: #7c879c;
  text-transform: uppercase;
}
.panel button {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 16px;
  background: rgba(252, 238, 10, 0.1);
  border: 1px solid rgba(252, 238, 10, 0.55);
  color: var(--yellow);
  font: 800 13px/1 Consolas, monospace;
  letter-spacing: 3px;
  text-align: left;
  cursor: pointer;
}
.panel button:hover,
.panel button:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  outline: none;
}
.panel .hint {
  margin: 10px 0 0;
  font: 600 9px/1 Consolas, monospace;
  letter-spacing: 2px;
  color: #7c879c;
}
.panel .hint a {
  color: var(--cyan);
  text-decoration: none;
}
.panel .hint a:hover {
  text-decoration: underline;
}
