:root{--bg-abyss: #020c16;--glass-bg: rgba(4, 17, 29, .74);--glass-border: rgba(94, 216, 248, .25);--glass-border-strong: rgba(110, 238, 255, .52);--glass-inset: rgba(154, 245, 255, .12);--text-primary: #e6f7ff;--text-muted: #94b8c9;--accent-cyan: #38e8ff;--accent-emerald: #34f5a8;--accent-amber: #fbbf24;--accent-rose: #fb7185;--accent-fuchsia: #e879f9;--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace}*{box-sizing:border-box;user-select:none;-webkit-user-select:none}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:var(--bg-abyss);font-family:var(--font-sans);color:var(--text-primary)}body.cursor-feed #canvas-container canvas{cursor:crosshair}.hidden{display:none!important}.font-mono-tech{font-family:var(--font-mono)}#canvas-container{position:fixed;inset:0;width:100vw;height:100vh;z-index:1}#canvas-container canvas{display:block;width:100%;height:100%;outline:none}.glass-panel{background:var(--glass-bg);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--glass-border);box-shadow:0 12px 34px #0000008a,inset 0 1px 0 var(--glass-inset)}#loading-overlay{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bg-abyss);text-align:center;padding:1.5rem;transition:opacity .6s ease}.spinner-box{width:48px;height:48px;border-radius:14px;border:1px solid rgba(56,232,255,.4);background:#082a3e80;display:flex;align-items:center;justify-content:center;margin-bottom:12px;box-shadow:0 0 24px #22d3ee47}.spinner-ring{width:24px;height:24px;border-radius:999px;border:2px solid #67e8f9;border-top-color:transparent;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-title{margin:0;font-size:1.25rem;font-weight:700;letter-spacing:.2em;color:#cffafe}.loading-sub{margin:4px 0 0;font-size:.72rem;letter-spacing:.14em;color:#67e8f9cc}#toast-banner{position:fixed;top:16px;left:50%;transform:translate(-50%,-8px);z-index:50;pointer-events:none;opacity:0;padding:8px 16px;border-radius:12px;font-size:12px;font-weight:500;color:#cffafe;border-color:#38e8ff6b;transition:opacity .24s ease,transform .24s ease}#toast-banner.toast-visible{opacity:1;transform:translate(-50%)}#error-banner{position:fixed;bottom:16px;left:50%;transform:translate(-50%);z-index:50;max-width:520px;padding:10px 16px;border-radius:12px;border-color:#fb7185a6;color:#fecdd3;font-size:12px}.hud-btn{background:#0a2336c7;border:1px solid rgba(94,216,248,.26);color:#dcf7ff;border-radius:10px;padding:5px 10px;font-size:11px;font-weight:500;font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;white-space:nowrap;transition:background .16s ease,border-color .16s ease,transform .12s ease,box-shadow .16s ease}.hud-btn:hover:not(:disabled){background:#123c58eb;border-color:#6eeeffa6;box-shadow:0 0 14px #38d4f840}.hud-btn:active:not(:disabled){transform:scale(.97)}.hud-btn.active-btn{background:linear-gradient(135deg,#0e7ea8e6,#0ea4a2d9);border-color:#96faffcc;color:#fff;box-shadow:0 0 14px #2de0f057}.hud-btn:disabled{opacity:.4;cursor:not-allowed;filter:grayscale(.45)}.hud-btn-icon{padding:5px;border-radius:8px}#show-hud-btn{position:fixed;top:12px;right:12px;z-index:40;padding:8px 14px;font-size:12px}#hud-root{position:fixed;inset:0;z-index:20;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:14px;gap:10px}.hud-top-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.hud-left-col{display:flex;flex-direction:column;gap:10px;align-items:flex-start;max-width:100%}.hud-right-col{display:flex;flex-direction:column;gap:8px;align-items:flex-end;max-width:100%}.header-brand-card{pointer-events:auto;border-radius:16px;padding:10px 14px;width:max-content;min-width:max-content;display:flex;flex-direction:column;gap:7px}.brand-top{display:flex;align-items:center;gap:10px}.brand-icon{width:32px;height:32px;border-radius:11px;background:linear-gradient(135deg,#22d3ee52,#14b8a638);border:1px solid rgba(103,232,249,.42);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#67e8f9}.brand-title{font-size:15px;font-weight:700;letter-spacing:.16em;color:#fff;line-height:1.15;white-space:nowrap}.header-subtitle{font-size:10px;letter-spacing:.14em;color:#67e8f9f0;white-space:nowrap;margin-top:2px}.stats-strip{display:flex;align-items:center;gap:10px;padding-top:6px;border-top:1px solid rgba(56,232,255,.16);font-size:10px;white-space:nowrap}.stat-chip{display:inline-flex;align-items:center;gap:4px}.stat-dot{width:6px;height:6px;border-radius:999px}.dot-cyan{background:var(--accent-cyan)}.dot-emerald{background:var(--accent-emerald)}.dot-amber{background:var(--accent-amber)}#top-toolbar{pointer-events:auto;border-radius:16px;padding:7px 9px;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}.toolbar-group{display:flex;align-items:center;gap:4px}.toolbar-divider{width:1px;height:20px;background:#38e8ff33}.feed-panel{pointer-events:auto;border-radius:14px;padding:8px 10px;width:284px;display:flex;flex-direction:column;gap:5px}.panel-eyebrow{font-size:9px;letter-spacing:.12em;color:#a5f3fccc;text-transform:uppercase}#event-log{height:68px;overflow-y:auto;display:flex;flex-direction:column;gap:3px;font-size:10px;line-height:1.35}.text-cyan-100{color:#cffafe}.text-cyan-200{color:#a5f3fc}.text-cyan-300{color:#67e8f9}.text-emerald-200{color:#a7f3d0}.text-emerald-300{color:#6ee7b7}.text-amber-200{color:#fde68a}.text-amber-300{color:#fcd34d}.text-rose-200{color:#fecdd3}.text-rose-300{color:#fda4af}.text-pink-300{color:#f9a8d4}.text-fuchsia-300{color:#f0abfc}.text-slate-200{color:#e2e8f0}.text-slate-300{color:#cbd5e1}.text-slate-400{color:#94a3b8}#inspector-card{pointer-events:auto;border-radius:16px;padding:13px;width:308px;max-height:58vh;overflow-y:auto;display:flex;flex-direction:column;gap:9px}.insp-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.insp-badges{display:flex;align-items:center;gap:6px}.kind-badge{font-size:9px;padding:2px 6px;border-radius:6px;background:#083344d9;color:#a5f3fc;border:1px solid rgba(56,232,255,.32);text-transform:uppercase}.insp-name{margin:4px 0 0;font-size:14px;font-weight:600;font-style:italic;color:#fff}.insp-stage{font-size:10px;color:#fcd34d;margin-top:2px}.bars-stack{display:flex;flex-direction:column;gap:6px}.bar-head{display:flex;justify-content:space-between;font-size:10px;margin-bottom:2px}.bar-track{width:100%;height:6px;border-radius:999px;background:#0f172ae6;overflow:hidden}.bar-fill{height:100%;border-radius:999px;transition:width .15s ease}.bar-hp{background:linear-gradient(90deg,#f43f5e,#34d399)}.bar-en{background:linear-gradient(90deg,#f59e0b,#67e8f9)}.bar-age{background:linear-gradient(90deg,#38bdf8,#818cf8)}.traits-wrap{display:flex;flex-wrap:wrap;gap:4px}.trait-badge{font-family:var(--font-mono);font-size:9px;padding:2px 6px;border-radius:6px;background:#083344c7;color:#a5f3fc;border:1px solid rgba(56,232,255,.24);text-transform:capitalize}.insp-meta-box{display:flex;align-items:center;justify-content:space-between;font-size:10px;background:#020a148c;border:1px solid rgba(56,232,255,.16);border-radius:10px;padding:6px 9px}.btn-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:6px}.btn-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px}.w-full{width:100%}.side-drawer{position:fixed;top:76px;right:14px;z-index:32;width:340px;max-width:calc(100vw - 28px);max-height:calc(100vh - 155px);border-radius:16px;padding:13px;display:flex;flex-direction:column;gap:10px;pointer-events:auto;overflow:hidden}.drawer-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.drawer-title{margin:0;font-size:13px;font-weight:700;letter-spacing:.1em;color:#fff}.drawer-scroll{overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:3px}.codex-filters{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.codex-summary{font-size:10px;color:var(--text-muted)}.codex-item{background:#030e19ad;border:1px solid rgba(94,216,248,.2);border-radius:12px;padding:9px;display:flex;flex-direction:column;gap:6px}.codex-extinct{opacity:.62;border-color:#94a3b838}.codex-item-top{display:flex;align-items:center;gap:9px}.codex-swatch{width:26px;height:26px;border-radius:999px;border:1px solid rgba(255,255,255,.35);flex-shrink:0}.codex-meta{min-width:0;flex:1}.codex-name{font-size:12px;font-weight:600;font-style:italic;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.codex-sub{font-family:var(--font-mono);font-size:9px;color:#94b8c9;margin-top:2px}.codex-pop{text-align:right;font-family:var(--font-mono)}.codex-pop-num{display:block;font-size:14px;font-weight:700;color:var(--accent-cyan);line-height:1}.codex-pop-peak{font-size:9px;color:#94a3b8}.codex-traits{display:flex;flex-wrap:wrap;gap:4px}.codex-locate-btn{width:100%;padding:4px 8px;font-size:10px}.codex-empty{text-align:center;padding:24px 10px;font-size:11px;color:var(--text-muted)}.lab-section{background:#030e199e;border:1px solid rgba(94,216,248,.16);border-radius:12px;padding:9px 10px;display:flex;flex-direction:column;gap:7px}.lab-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px}.lab-slider{width:100%;accent-color:#38e8ff;cursor:pointer}.lab-select{width:100%;background:#081e30e6;border:1px solid rgba(94,216,248,.3);border-radius:8px;color:#e6f7ff;padding:5px 7px;font-size:11px;font-family:inherit;outline:none}.lab-preset-btn{width:100%;justify-content:flex-start;padding:6px 10px}.hud-bottom-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}#bottom-left-graph{pointer-events:auto;border-radius:16px;padding:9px 10px;width:288px;display:flex;flex-direction:column;gap:6px}.graph-header{display:flex;align-items:center;justify-content:space-between;font-size:9px}.graph-legend{display:flex;align-items:center;gap:6px}.graph-box{width:100%;height:70px;border-radius:10px;background:#020a14ad;border:1px solid rgba(56,232,255,.16);overflow:hidden}#pop-graph-canvas{width:100%;height:100%;display:block}#bottom-cam-bar{pointer-events:auto;border-radius:16px;padding:6px 11px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.cam-hint{font-size:10px;color:#a5f3fcc7}#pip-eyecam-container{position:fixed;bottom:16px;right:14px;z-index:30;width:336px;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;border:1px solid rgba(105,224,250,.5);box-shadow:0 18px 46px #000000b8,0 0 22px #28d2ff33;background:transparent;pointer-events:auto}.pip-header{border:0;border-bottom:1px solid rgba(94,216,248,.25);padding:6px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.pip-title-wrap{display:flex;align-items:center;gap:7px;min-width:0}.live-dot{width:8px;height:8px;border-radius:999px;background:#34d399;box-shadow:0 0 8px #34d399;flex-shrink:0;animation:pulseDot 1.8s ease-in-out infinite}@keyframes pulseDot{0%,to{opacity:1}50%{opacity:.4}}#pip-viewport{position:relative;width:100%;aspect-ratio:16 / 10;overflow:hidden;background:transparent;transition:backdrop-filter .2s ease}#pip-sensory-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:block}.pip-footer-pills{position:absolute;bottom:6px;left:8px;right:8px;display:flex;justify-content:space-between;pointer-events:none}.mini-pill{font-size:9px;padding:2px 6px;border-radius:6px;background:#020a14c2;border:1px solid rgba(56,232,255,.3);text-transform:uppercase}#eye-fullscreen-overlay{position:fixed;inset:0;z-index:30;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:16px}#eye-sensory-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;display:block}.eye-hud-bar{position:relative;z-index:10;pointer-events:auto;align-self:center;background:#040e18bd;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid rgba(98,220,248,.34);box-shadow:0 10px 30px #0000008f,inset 0 1px #8cf8ff24;border-radius:16px;padding:8px 14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}#eye-hud-top{width:100%;max-width:860px}.eye-bars-wrap{display:flex;align-items:center;gap:12px}.eye-mini-bar{width:86px}.thin-scroll::-webkit-scrollbar{width:4px}.thin-scroll::-webkit-scrollbar-track{background:#05101c59;border-radius:999px}.thin-scroll::-webkit-scrollbar-thumb{background:#5ed8f56b;border-radius:999px}@media(max-width:900px){.feed-panel,.cam-hint{display:none}#pip-eyecam-container{width:262px}#inspector-card{width:274px}}
