:root{--bg-deep: #061412;--glass-bg: rgba(8, 24, 21, .72);--glass-border: rgba(94, 242, 184, .22);--glass-border-strong: rgba(94, 242, 184, .45);--text-main: #e6f5ef;--text-muted: #8fb8aa;--accent-emerald: #34d399;--accent-cyan: #38e8ff;--accent-violet: #c084fc;--accent-amber: #fbbf24;--accent-rose: #fb7185}*{box-sizing:border-box;margin:0;padding:0}html,body{width:100%;height:100%;overflow:hidden;background:var(--bg-deep);color:var(--text-main);font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased;user-select:none}.font-mono-tech{font-family:JetBrains Mono,ui-monospace,monospace}.hidden{display:none!important}#canvas-container{position:fixed;inset:0;z-index:1}#loading-overlay{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:radial-gradient(circle at center,#0e2d26,#051210);transition:opacity .6s ease}.spinner-ring{width:44px;height:44px;border-radius:50%;border:2px solid rgba(52,211,153,.2);border-top-color:#34d399;border-right-color:#c084fc;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-title{font-size:20px;letter-spacing:.28em;font-weight:600;color:#d1fae5}.loading-sub{font-size:11px;letter-spacing:.22em;color:var(--accent-emerald)}.glass-panel{background:var(--glass-bg);border:1px solid var(--glass-border);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-radius:12px;box-shadow:0 10px 30px #00000059,inset 0 1px #ffffff0f}.thin-scroll{overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(94,242,184,.3) transparent}#toast-banner{position:fixed;bottom:20px;left:50%;transform:translate(-50%) translateY(16px);z-index:60;padding:8px 16px;font-size:12px;color:#d1fae5;opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease}#toast-banner.toast-visible{opacity:1;transform:translate(-50%) translateY(0)}#error-banner{position:fixed;top:14px;left:50%;transform:translate(-50%);z-index:90;padding:8px 14px;font-size:11px;color:#fecdd3;border-color:#fb718580}#show-hud-btn{position:fixed;top:14px;right:14px;z-index:40}#hud-root{position:fixed;inset:0;z-index:10;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;padding:14px}.hud-top-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;width:100%}.hud-left-col{display:flex;flex-direction:column;gap:10px;width:318px;max-height:calc(100vh - 28px)}.hud-right-col{display:flex;flex-direction:column;align-items:flex-end;gap:10px;max-width:calc(100vw - 360px)}.hud-left-col>*,.hud-right-col>*{pointer-events:auto}.header-brand-card{padding:10px 12px;display:flex;flex-direction:column;gap:8px}.brand-top{display:flex;align-items:center;gap:10px}.brand-icon{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#34d39940,#c084fc40);border:1px solid rgba(52,211,153,.45);color:#6ee7b7}.brand-title{font-size:13px;font-weight:700;letter-spacing:.14em;color:#ecfdf5}.header-subtitle{font-size:9px;letter-spacing:.14em;color:var(--text-muted)}.stats-strip{display:flex;flex-wrap:wrap;gap:7px 10px;font-size:10px;align-items:center}.stat-chip{display:inline-flex;align-items:center;gap:4px}.stat-dot{width:6px;height:6px;border-radius:50%;display:inline-block}.dot-cyan{background:var(--accent-cyan);box-shadow:0 0 6px var(--accent-cyan)}.dot-emerald{background:var(--accent-emerald);box-shadow:0 0 6px var(--accent-emerald)}.dot-violet{background:var(--accent-violet);box-shadow:0 0 6px var(--accent-violet)}.dot-amber{background:var(--accent-amber);box-shadow:0 0 6px var(--accent-amber)}.hud-btn{background:#0e2a24b8;border:1px solid rgba(94,242,184,.22);color:var(--text-main);padding:5px 9px;border-radius:7px;font-size:11px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;transition:background .16s ease,border-color .16s ease,transform .12s ease}.hud-btn:hover:not(:disabled){background:#184438e0;border-color:var(--glass-border-strong)}.hud-btn:disabled{opacity:.42;cursor:not-allowed}.hud-btn.active-btn{background:#34d39942;border-color:#34d399cc;color:#ecfdf5;box-shadow:0 0 12px #34d39938}.hud-btn-icon{padding:4px;width:26px;height:26px}.w-full{width:100%}#top-toolbar{padding:6px 8px;display:flex;flex-wrap:wrap;align-items:center;gap:5px}.toolbar-group{display:flex;align-items:center;gap:4px}.toolbar-divider{width:1px;height:18px;background:#5ef2b833;margin:0 2px}#inspector-card{padding:12px;display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 140px)}.insp-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.insp-badges{display:flex;align-items:center;gap:6px;margin-bottom:3px}.kind-badge{font-size:9px;padding:2px 6px;border-radius:4px;background:#34d39933;color:#6ee7b7;letter-spacing:.08em}.insp-name{font-size:14px;font-weight:600;color:#f0fdf4;line-height:1.25}.insp-stage{font-size:10px;color:var(--text-muted);margin-top:2px}.bars-stack{display:flex;flex-direction:column;gap:6px}.bar-head{display:flex;justify-content:space-between;font-size:9px;margin-bottom:3px}.bar-track{height:5px;border-radius:4px;background:#ffffff14;overflow:hidden}.bar-fill{height:100%;border-radius:4px;transition:width .16s linear}.bar-hp{background:linear-gradient(90deg,#f43f5e,#fb7185)}.bar-en{background:linear-gradient(90deg,#f59e0b,#fcd34d)}.bar-age{background:linear-gradient(90deg,#06b6d4,#67e8f9)}.traits-wrap{display:flex;flex-wrap:wrap;gap:4px}.trait-pill{font-size:10px;padding:2px 6px;border-radius:5px;border:1px solid rgba(255,255,255,.12);background:#0c221ea6}.trait-cyan{color:#67e8f9;border-color:#38e8ff59}.trait-emerald{color:#6ee7b7;border-color:#34d39959}.trait-amber{color:#fde68a;border-color:#fbbf2459}.trait-rose{color:#fda4af;border-color:#fb718559}.trait-fuchsia{color:#e9d5ff;border-color:#c084fc61}.trait-slate{color:#cbd5e1}.insp-meta-box{display:flex;justify-content:space-between;font-size:10px;padding:5px 8px;border-radius:6px;background:#0000003d}.btn-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.btn-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.telemetry-card{width:280px;padding:9px 10px;display:flex;flex-direction:column;gap:6px}.telemetry-head{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.12em;color:var(--text-muted)}#pop-graph-canvas{width:100%;height:54px;border-radius:6px;background:#030c0a8c}#biosphere-feed{max-height:112px;display:flex;flex-direction:column;gap:3px;font-size:10px;line-height:1.35}.feed-item{padding:2px 4px;border-radius:4px;background:#ffffff08}.side-drawer{width:340px;max-height:calc(100vh - 120px);padding:12px;display:flex;flex-direction:column;gap:10px}.drawer-head{display:flex;justify-content:space-between;align-items:center}.drawer-title{font-size:12px;font-weight:700;letter-spacing:.12em;color:#d1fae5}.codex-list{display:flex;flex-direction:column;gap:6px;max-height:420px}.codex-row{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:#ffffff0a;border:1px solid rgba(94,242,184,.14);cursor:pointer}.codex-row:hover{border-color:#5ef2b873;background:#34d3991a}.codex-extinct{opacity:.45;cursor:default}.codex-swatch{width:22px;height:22px;border-radius:50%;flex-shrink:0;border:1px solid rgba(255,255,255,.25)}.codex-info{flex:1;min-width:0}.codex-name{font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.codex-sub{font-size:9px;color:var(--text-muted)}.codex-pop{text-align:right;font-size:11px;display:flex;flex-direction:column}.codex-pop span{font-size:9px;color:var(--text-muted)}.lab-section{display:flex;flex-direction:column;gap:6px}.lab-section-title{font-size:10px;letter-spacing:.1em;color:var(--accent-emerald);text-transform:uppercase}.lab-slider-row{display:flex;flex-direction:column;gap:3px;font-size:10px}.lab-slider-row label{display:flex;justify-content:space-between;color:var(--text-muted)}.lab-slider-row input[type=range]{width:100%;accent-color:#34d399}.lab-check-row{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text-main)}.lab-preset-btn{flex-direction:column;align-items:flex-start;text-align:left;padding:7px 9px;width:100%}.lab-preset-btn strong{font-size:11px;color:#d1fae5}.lab-preset-btn span{font-size:9px;color:var(--text-muted);font-weight:400}#pip-eye-box{position:fixed;bottom:16px;right:16px;z-index:25;width:268px;padding:7px;display:flex;flex-direction:column;gap:6px;pointer-events:auto}.pip-header{display:flex;justify-content:space-between;align-items:center;font-size:10px}#pip-eye-viewport{position:relative;width:100%;height:150px;border-radius:8px;overflow:hidden;border:1px solid rgba(94,242,184,.3)}#pip-eye-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#full-eye-hud{position:fixed;inset:0;z-index:30;pointer-events:none}#full-eye-canvas{position:absolute;inset:0;width:100%;height:100%}.full-eye-bar{position:absolute;bottom:20px;left:50%;transform:translate(-50%);padding:9px 14px;display:flex;align-items:center;gap:14px;pointer-events:auto}.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-violet-200{color:#ddd6fe}.text-violet-300{color:#c4b5fd}.text-fuchsia-300{color:#f0abfc}.text-amber-200{color:#fde68a}.text-amber-300{color:#fcd34d}.text-rose-200{color:#fecdd3}.text-rose-300{color:#fda4af}.text-slate-200{color:#e2e8f0}.text-slate-300{color:#cbd5e1}.text-slate-400{color:#94a3b8}
