/* 600x600 additive display: black is see-through, so the background stays pure black and
   everything drawn is bright. Text stays large; the lens is small. */
:root {
  --fg: #f4f6f8;
  --dim: #8d99a6;
  --accent: #7cf7c4;
  --warn: #ffd166;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
html, body {
  margin: 0;
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: #000;
  color: var(--fg);
  touch-action: none; /* opt in to Neural Band drag; read once at load */
}
#scene { position: absolute; inset: 0; width: 600px; height: 600px; display: block; }
.layer { position: absolute; inset: 0; display: none; pointer-events: none; }
.layer.on { display: block; }
button { pointer-events: auto; }

/* Start */
.panel-start.on { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 26px; box-sizing: border-box; text-align: center; }
h1 { margin: 0; font-size: 54px; letter-spacing: 1px; color: var(--accent); }
h2 { margin: 0; font-size: 38px; }
.sub { margin: 6px 0; font-size: 23px; line-height: 1.35; }
.fine { margin: 6px 0 0; font-size: 18px; color: var(--dim); }
.cta {
  margin-top: 12px; padding: 12px 34px; font-family: inherit; font-size: 27px; font-weight: 700; line-height: 1;
  color: #000; background: var(--accent); border: 0; border-radius: 40px; outline: none;
}
.cta:focus { box-shadow: 0 0 0 4px #fff; }

/* HUD */
.count { position: absolute; top: 14px; right: 18px; font-size: 22px; color: var(--warn); }
.crosshair { position: absolute; left: 288px; top: 288px; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; box-sizing: border-box; }
.crosshair.locked { border-color: var(--accent); }
.target, .ring { position: absolute; border-radius: 50%; box-sizing: border-box; display: none; transform: translate(-50%, -50%); }
.target { border: 2px dashed rgba(255,255,255,.55); }
.ring { border: 5px solid var(--accent); }
.lock-label { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font-size: 22px; font-weight: 700; display: none; text-align: center; }
.lock-label small { display: block; font-size: 16px; font-weight: 600; }
.arrow { position: absolute; top: 250px; font-size: 21px; color: var(--warn); display: none; line-height: 1.15; max-width: 150px; }
.arrow b { font-size: 46px; display: block; animation: nudge 0.8s ease-in-out infinite; }
.arrow.left { left: 12px; text-align: left; }
.arrow.right { right: 12px; text-align: right; }
.toast { position: absolute; top: 70px; left: 0; right: 0; text-align: center; font-size: 34px; font-weight: 800; color: #fff; opacity: 0; transition: opacity .25s; text-shadow: 0 0 12px rgba(124,247,196,.6); }
.toast.show { opacity: 1; }
.toast small { display: block; font-size: 22px; font-weight: 600; color: var(--warn); }
.hint { position: absolute; bottom: 18px; left: 20px; right: 20px; text-align: center; font-size: 24px; color: var(--dim); }
.hint.go { color: #000; }
.hint.go span { background: var(--accent); padding: 6px 22px; border-radius: 30px; font-weight: 800; display: inline-block; animation: pulse .9s ease-in-out infinite; }

/* Dex */
.panel-dex.on { display: block; text-align: center; }
.dex-top { position: absolute; top: 16px; left: 0; right: 0; font-size: 21px; color: var(--dim); }
.dex-name { position: absolute; bottom: 104px; left: 0; right: 0; font-size: 36px; font-weight: 800; }
.dex-sub { position: absolute; bottom: 66px; left: 0; right: 0; font-size: 22px; }
.dex-help { position: absolute; bottom: 22px; left: 0; right: 0; }

/* Sensors */
.panel-sensors.on { display: block; background: #000; }
#sensor-raw { position: absolute; top: 14px; left: 16px; right: 16px; margin: 0; font: 16px/1.3 ui-monospace, Menlo, monospace; white-space: pre-wrap; }
.menu { position: absolute; left: 16px; right: 16px; bottom: 10px; margin: 0; padding: 0; list-style: none; font-size: 20px; }
.menu li { padding: 3px 10px; border-radius: 8px; color: var(--dim); }
.menu li.sel { color: #000; background: var(--accent); font-weight: 700; }

.panel-nogl.on { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.arrow.left b { animation-direction: reverse; }
