:root {
  --bg: #02030a;
  --panel: rgba(10, 14, 28, 0.78);
  --line: rgba(140, 170, 255, 0.18);
  --text: #dfe6ff;
  --muted: #8b95b8;
  --accent: #7fb2ff;
  --accent-2: #ffcf7a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font: 13px/1.4 "Segoe UI", system-ui, sans-serif; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: auto; cursor: pointer;
  font-size: 11px; color: var(--text); text-shadow: 0 0 4px #000, 0 0 2px #000; will-change: transform;
  display: flex; align-items: center; gap: 5px; }
.lbl i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.lbl.moon { font-size: 10px; color: var(--muted); }
.lbl.star { color: var(--accent-2); font-weight: 600; }
.lbl:hover { color: #fff; }

.panel { position: fixed; top: 12px; bottom: 12px; background: var(--panel); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 12px; overflow-y: auto; padding: 12px 14px; z-index: 2; }
#bodies { left: 12px; width: 190px; }
#controls { right: 12px; width: 270px; }
body.hide-ui .panel, body.hide-ui #hint { display: none; }

h1 { font-size: 15px; margin: 0 0 10px; letter-spacing: .02em; }
h1 span { color: var(--accent); font-weight: 400; }
h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; }
section { padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }

.group { margin: 8px 0 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.body-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 6px; border-radius: 6px;
  background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.body-btn.moon { padding-left: 22px; font-size: 12px; color: var(--muted); }
.body-btn:hover { background: rgba(127, 178, 255, .12); }
.body-btn.active { background: rgba(127, 178, 255, .25); color: #fff; }
.body-btn i { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.big { font-size: 18px; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.row { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; }
button { background: rgba(127, 178, 255, .12); color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 9px; cursor: pointer; font: inherit; }
button:hover { background: rgba(127, 178, 255, .25); }
button.on { background: var(--accent); color: #031026; border-color: var(--accent); }
.seg button { flex: 1; }

label { display: block; margin: 8px 0; color: var(--muted); }
label output { float: right; color: var(--text); font-variant-numeric: tabular-nums; }
label.check { display: flex; align-items: center; gap: 6px; margin: 4px 0; color: var(--text); }
input[type=range] { width: 100%; accent-color: var(--accent); margin-top: 4px; }
select { width: 100%; margin-top: 4px; background: #0d1326; color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px; font: inherit; }

dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

#hint { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); color: var(--muted);
  font-size: 12px; background: var(--panel); padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line);
  z-index: 2; white-space: nowrap; }
kbd { background: #1a2240; border-radius: 3px; padding: 0 4px; font-size: 11px; }

@media (max-width: 800px) {
  #bodies { display: none; }
  #controls { top: auto; height: 45vh; left: 12px; width: auto; }
  #hint { display: none; }
}
.credits { font-size: 11px; color: var(--muted); line-height: 1.5; }
