:root {
  --bg: #000;
  --line: #39ff14;
  --line-soft: #1a7f12;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
  background: radial-gradient(circle at 50% 70%, #001200 0%, #000 70%);
  color: var(--line);
}

canvas {
  display: block;
}

#hud {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  width: min(28rem, calc(100% - 1.5rem));
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.66);
  padding: 0.65rem 0.8rem;
  backdrop-filter: blur(2px);
}

#hud h1 {
  margin: 0 0 0.35rem;
  letter-spacing: 0.06em;
  font-size: clamp(1rem, 2.7vw, 1.3rem);
}

#hud p {
  margin: 0.2rem 0;
  font-size: clamp(0.78rem, 2vw, 0.92rem);
}

#hud .small {
  margin-top: 0.45rem;
  opacity: 0.9;
}

#abortButton {
  margin-top: 0.6rem;
  width: 100%;
  border: 1px solid var(--line);
  color: var(--line);
  background: #001900;
  padding: 0.52rem;
  font: inherit;
  cursor: pointer;
}

#abortButton:hover,
#abortButton:focus-visible {
  background: #003100;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.85);
}

#overlay h2 {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 2rem);
}

#overlay p {
  margin-top: 0.7rem;
}

.hidden {
  display: none !important;
}
