* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #02060d; color: #d8ecff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }

.stage { position: fixed; inset: 0; transform: scaleX(-1); background: #02060d; }
.stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.stage.xray video {
  filter: grayscale(1) invert(1) contrast(1.5) brightness(.55) sepia(1) hue-rotate(180deg) saturate(3.2);
}
.stage.overlay video { filter: none; }
.stage.skeleton video { visibility: hidden; }

.vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.65) 100%); }
.scan { position: fixed; inset: 0; pointer-events: none; opacity: .12; background: repeating-linear-gradient(to bottom, rgba(120,190,255,.5) 0, rgba(120,190,255,.5) 1px, transparent 1px, transparent 3px); }

header { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; pointer-events: none; }
.logo { font-weight: 800; letter-spacing: .18em; font-size: 15px; color: #fff; text-shadow: 0 0 12px #4db8ff; }
.logo span { color: #4db8ff; }
.fps { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }

.intro { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; background: radial-gradient(ellipse at center, #0b2a4d 0%, #02060d 70%); z-index: 5; }
.intro h1 { font-size: clamp(28px, 6vw, 52px); color: #fff; text-shadow: 0 0 22px #4db8ff; }
.intro p { opacity: .85; max-width: 420px; }
.intro small { opacity: .55; line-height: 1.6; max-width: 420px; }
.intro.gone { display: none; }

button { font: inherit; cursor: pointer; border: 1px solid rgba(120,190,255,.6); background: rgba(10,40,80,.6); color: #e8f5ff; padding: 8px 14px; border-radius: 8px; backdrop-filter: blur(6px); }
button:hover { background: rgba(30,90,170,.7); }
button.big { font-size: 18px; padding: 14px 32px; border-radius: 999px; box-shadow: 0 0 24px rgba(77,184,255,.5); }
button:disabled { opacity: .5; cursor: wait; }

.status { position: fixed; left: 50%; top: 56px; transform: translateX(-50%); font-size: 14px; padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid rgba(120,190,255,.4); z-index: 6; display: none; text-align: center; max-width: 92vw; }
.status.show { display: block; }

.panel { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 14px; background: rgba(2,10,22,.72); border: 1px solid rgba(120,190,255,.35); backdrop-filter: blur(8px); font-size: 13px; z-index: 4; max-width: 96vw; }
.panel.hidden { display: none; }
.panel label { display: flex; align-items: center; gap: 6px; }
select { font: inherit; background: #0a1f38; color: #e8f5ff; border: 1px solid rgba(120,190,255,.5); border-radius: 6px; padding: 5px 8px; }
input[type=checkbox] { accent-color: #4db8ff; width: 15px; height: 15px; }
