:root {
  --green: #00ff66;
  --green-dim: #0a3d1f;
  --bg: #000000;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--green);
  font-family: "DejaVu Sans Mono", "SF Mono", Menlo, Consolas, monospace;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* The stage is a centered square so the round radar maps cleanly onto a
   round display. On a wide screen it letterboxes; on a round panel it fills. */
#stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}

#radar {
  display: block;
  width: 100vmin;
  height: 100vmin;
}

body.hud-hidden #panel-toggle { display: none; }

/* ---- settings panel ---- */
#panel-toggle {
  position: absolute;
  top: 2.5vmin;
  right: 2.5vmin;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(0, 20, 8, 0.7);
  color: var(--green);
  border: 1px solid var(--green);
  cursor: pointer;
}

#weather-toggle {
  position: absolute;
  bottom: 2.5vmin;
  left: 2.5vmin;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  border-radius: 50%;
  background: rgba(0, 20, 8, 0.7);
  color: var(--green);
  border: 1px solid var(--green);
  cursor: pointer;
  font-family: inherit;
}
#weather-toggle.on {
  background: #002d12;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.55);
}
body.hud-hidden #weather-toggle { display: none; }

#panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(86vw, 340px);
  background: rgba(0, 14, 6, 0.94);
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.25);
  z-index: 10;
}
#panel h2 { margin: 0 0 0.8rem; font-size: 1rem; letter-spacing: 0.08em; }
#panel label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}
#panel label.row { justify-content: flex-start; }
#panel input[type="number"] {
  width: 9rem;
  background: #001a0a;
  border: 1px solid var(--green-dim);
  color: var(--green);
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  font-family: inherit;
}
.panel-actions { display: flex; gap: 0.6rem; margin-top: 0.9rem; }
#panel button {
  flex: 1;
  background: #002d12;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  font-family: inherit;
}
#panel button:hover { background: #004a1e; }
.hint { margin: 0.9rem 0 0; font-size: 0.7rem; opacity: 0.65; }
.hint b { color: #fff; }
