:root { color-scheme: dark; font-family: ui-sans-serif, system-ui, sans-serif; color: #edf2ed; background: #111a18; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
#viewport { position: fixed; inset: 0; outline: none; touch-action: none; background: radial-gradient(ellipse at 55% 70%, #35453a, #111a18 70%); }
#viewport video { width: 100% !important; height: 100% !important; object-fit: contain; }
header, footer { position: fixed; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 25px 32px; gap: 20px; pointer-events: none; }
header { top: 0; background: linear-gradient(#101814d9, transparent); }
footer { bottom: 0; background: linear-gradient(transparent, #101814ec); }
h1 { margin: 5px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.6px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; color: #b7cfbb; }
#connection { font-size: 12px; background: #15201cd9; padding: 9px 13px; border: 1px solid #ffffff25; border-radius: 20px; }
.session-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: end; }
#flight-status { font-size: 12px; padding: 9px 13px; background: #15201ce8; border-radius: 20px; }
#fly-drone { background: #c1e4ab; color: #172417; font-weight: 600; }
#fly-drone.flying { background: #efd49a; color: #2e2515; }
.panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 36px; width: min(420px, calc(100% - 40px)); background: #14211eef; border: 1px solid #bfd2bc30; border-radius: 12px; box-shadow: 0 24px 90px #0005; }
h2 { font-size: 30px; font-weight: 500; letter-spacing: -1px; margin: 16px 0; }
p { font-size: 14px; line-height: 1.6; color: #b4c2b9; }
button { background: #263a30; color: #f0f6ee; border: 1px solid #a4b6a650; padding: 10px 16px; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; pointer-events: auto; }
button:hover { background: #3b5042; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible { outline: 2px solid #c1e4ab; outline-offset: 3px; }
a { color: #c1e4ab; pointer-events: auto; font-size: 12px; }
.credits { overflow: auto; }
.credits main { max-width: 760px; margin: 60px auto; padding: 24px; }
#connect { width: 100%; margin-top: 12px; background: #c1e4ab; color: #172417; border: 0; font-weight: 600; }
#message { font-size: 12px; margin-bottom: 0; }
#controls { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: #d5dfd6; }
kbd { font: inherit; color: #fff; margin-right: 5px; }
#touch { display: none; position: fixed; right: 20px; bottom: 105px; gap: 6px; grid-template-columns: repeat(3, 48px); touch-action: none; }
#touch button { height: 44px; }
[hidden] { display: none !important; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: end; }
#event-camera { position: fixed; top: 105px; right: 32px; width: 360px; max-width: calc(100% - 40px); max-height: calc(100dvh - 210px); overflow: auto; padding: 20px; background: #14211ef5; border: 1px solid #bfd2bc40; border-radius: 12px; box-shadow: 0 16px 60px #0006; }
.sensor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sensor-heading h2 { font-size: 22px; margin: 6px 0 16px; }
#event-close { padding: 5px 10px; font-size: 22px; align-self: start; }
.sensor-modes { display: flex; gap: 6px; margin-bottom: 12px; }
.sensor-modes button { flex: 1; padding: 7px; }
.sensor-modes button[aria-pressed=true] { background: #c1e4ab; color: #172417; }
.sensor-image { position: relative; aspect-ratio: 4 / 3; background: #0c1418; display: grid; place-items: center; border-radius: 4px; overflow: hidden; }
.sensor-image img { width: 100%; height: auto; image-rendering: pixelated; }
#event-placeholder { font-size: 13px; color: #b4c2b9; }
#event-status { margin-top: 12px; font-size: 12px; color: #c1e4ab; }
#event-stats { margin-top: 6px; font: 12px ui-monospace, monospace; }
#event-camera p { font-size: 12px; line-height: 1.5; margin: 12px 0; }
#event-camera .positive { color: #ff7057; }
#event-camera .negative { color: #53afff; }
#event-download { width: 100%; }
#event-download-status { margin-bottom: 0 !important; }
@media (pointer: coarse) { #touch { display: grid; } #controls { display: none; } }
@media (max-width: 600px) { header, footer { padding: 20px; } h1 { font-size: 20px; } #controls { display: none; } #event-camera { right: 20px; } .actions button { padding: 8px 10px; font-size: 12px; } }
