* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: #102217; color: #f3f6ef; font-family: Arial, Helvetica, sans-serif; overflow: hidden; overscroll-behavior: none; }
html, body, canvas, button, .swir-v2-root { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
a { color: #c7b4ff; text-decoration: none; }
.swir-v2-root { width: 100vw; height: 100vh; position: relative; background: #102217; }
.swir-v2-topbar { position: absolute; top: 0; left: 0; right: 0; height: 40px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(0,0,0,.62); z-index: 10; }
.swir-v2-topbar span { margin-left: 10px; opacity: .75; }
.swir-v2-actions { display: flex; align-items: center; gap: 10px; }
.swir-v2-actions button { background: #1e2b24; border: 1px solid #607066; color: #fff; border-radius: 8px; padding: 6px 10px; }
#swir-v2-canvas { width: 100vw; height: 100vh; display: block; image-rendering: pixelated; }
.swir-v2-panel { position: absolute; left: 14px; bottom: 14px; z-index: 12; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; font-size: 13px; }
.swir-v2-debug { position: absolute; right: 14px; top: 54px; z-index: 12; max-width: 360px; max-height: 70vh; overflow: auto; white-space: pre-wrap; padding: 10px 12px; background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; font: 12px/1.35 monospace; }
.hidden { display: none !important; }
.swir-v2-joystick { position: absolute; right: 18px; bottom: 18px; z-index: 12; display: none; flex-direction: column; align-items: center; gap: 6px; }
.swir-v2-joystick div { display: flex; gap: 6px; }
.swir-v2-joystick button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.62); color: #fff; font-size: 20px; font-weight: 700; }
.swir-v2-joystick button:active { transform: scale(.97); }
@media (max-width: 900px), (pointer: coarse) { .swir-v2-joystick { display: flex; } .swir-v2-panel { max-width: 170px; } }
