:root {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #e8efff;
  background: #060b18;
  font-synthesis: none;
  --line: rgba(156,193,219,.15);
  --muted: #8a9ab5;
  --aqua: #75e6d9;
  --rose: #fa92a9;
  --panel: rgba(8,15,34,.77);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; min-width: 320px; overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #7deade; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .45; }
[hidden] { display: none !important; }
.app { width: 100%; height: 100%; min-height: 480px; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 54% 46%, #17263a 0%, #091024 45%, #050817 100%); }
#universe { width: 100%; height: 100%; display: block; outline: none; cursor: grab; touch-action: none; }
#universe:active { cursor: grabbing; }
.screen-vignette { pointer-events: none; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 51% 43%, transparent 30%, rgba(2,6,18,.40) 76%, rgba(1,4,15,.70) 100%); }
.screen-grain { pointer-events:none; position:absolute; inset:0; opacity:.17; mix-blend-mode:screen; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 190 190' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E"); }
.topbar { position:absolute; top:0; left:0; right:0; z-index:10; min-height:110px; display:flex; align-items:flex-start; justify-content:space-between; padding:25px clamp(20px,3.3vw,54px); gap:24px; pointer-events:none; }
.topbar > * { pointer-events:auto; }
.brand-block { display:flex; align-items:flex-start; gap:16px; min-width:0; }
.brand-glyph { width:36px; height:36px; border:1px solid rgba(109,232,219,.33); border-radius:50%; position:relative; margin-top:7px; box-shadow: 0 0 26px rgba(58,201,194,.08), inset 0 0 17px rgba(52,225,203,.1); flex-shrink:0; }
.brand-glyph span { display:block; position:absolute; top:50%; left:50%; border:1px solid #8aefdc; width:20px; height:20px; border-radius:50%; transform:translate(-50%,-50%); }
.brand-glyph span:nth-child(2) { width:5px; height:5px; border:0; background:#ffc2a7; box-shadow:0 0 11px #ff9779; }
.brand-glyph span:nth-child(3) { width:30px; height:11px; border-color:rgba(125,239,220,.65); transform:translate(-50%,-50%) rotate(-32deg); }
.eyebrow, .section-index, .sub-heading, .viewport-label, .panel-pin, .range-ends, .object-heading, .plot-heading, .chart-foot, .readout-label, .seed-chip, .footer-signature, .scientific-note, .launch-note { font-family: 'Consolas','SFMono-Regular',monospace; letter-spacing: .11em; }
.eyebrow { color:#8fa6bf; font-size:9px; letter-spacing:.23em; margin:2px 0 6px; }
.slash { color:#fca6b7; margin:0 5px; }
h1,h2,h3,p { margin-top:0; }
h1 { font-weight:790; font-size:clamp(24px,2.34vw,39px); letter-spacing:-.07em; line-height:1.02; margin-bottom:4px; white-space:nowrap; }
h1 em { font-style:normal; font-weight:380; color:#c9fff0; }
.title-dot { color:#f4a2b0; }
.subtitle { font-size:9px; letter-spacing:.24em; font-weight:610; color:#b2c8da; margin-bottom:0; }
.top-actions { display:flex; align-items:center; gap:12px; margin-top:3px; }
.simulation-chip, .seed-chip { color:#c5d5e4; font-family:'Consolas',monospace; font-size:10px; letter-spacing:.13em; padding:9px 11px; border:1px solid rgba(154,204,220,.18); border-radius:8px; background:rgba(7,13,32,.57); backdrop-filter:blur(15px); white-space:nowrap; }
.status-dot, .live-dot { display:inline-block; vertical-align:middle; width:6px; height:6px; border-radius:50%; background:#69ecc7; box-shadow:0 0 10px #56dfbc; margin-right:8px; animation: breathing 2.8s ease-in-out infinite; }
@keyframes breathing { 0%,100% {opacity:1} 50% {opacity:.44} }
.seed-chip strong { color:#e7fcfd; font-weight:600; margin-left:6px; }
.icon-button,.mobile-menu { border:1px solid var(--line); background:rgba(10,20,39,.66); color:#d6f5f3; backdrop-filter:blur(12px); border-radius:8px; }
.icon-button { height:36px; width:36px; font-weight:650; font-size:18px; }
.icon-button:hover,.camera-btn:hover,.secondary-button:hover { background:rgba(62,103,131,.35); }
.mobile-menu { display:none; font-family:monospace; font-size:10px; letter-spacing:.13em; padding:11px 12px; }
.mobile-menu span { color:var(--aqua); font-size:17px; vertical-align:middle; }
.panel { z-index:6; position:absolute; top:130px; bottom:110px; border:1px solid var(--line); background:linear-gradient(143deg, rgba(13,24,46,.85),rgba(6,15,32,.72)); backdrop-filter:blur(30px) saturate(120%); box-shadow:0 13px 38px rgba(0,0,0,.22), inset 0 1px rgba(206,248,255,.055); border-radius:14px; padding:22px 21px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#31526c transparent; }
.controls-panel { left:clamp(16px,2.35vw,34px); width:clamp(268px,21.7vw,325px); }
.science-panel { right:clamp(16px,2.35vw,34px); width:clamp(268px,21.8vw,330px); }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; }
.section-index { color:#72d5ca; font-size:9px; font-weight:600; margin-bottom:6px; }
.panel h2 { font-size:20px; letter-spacing:-.04em; margin:0; font-weight:650; }
.panel-pin { font-size:9px; color:var(--aqua); padding:6px 8px; border:1px solid rgba(105,214,205,.21); border-radius:5px; }
.panel-intro { font-size:12px; line-height:1.65; color:#9aaec2; margin-bottom:22px; }
.control-group { margin-bottom:21px; }
.control-group.compact { margin-bottom:16px; }
.control-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:9px; }
.control-heading label,.small-label { font-size:11px; font-weight:560; color:#c9d5e5; }
.control-heading strong { color:#a5fff0; font-family:monospace; font-size:11px; white-space:nowrap; font-weight:500; }
.hint-icon { opacity:.45; }
input[type=range] { width:100%; display:block; height:18px; margin:2px 0 4px; appearance:none; background:none; cursor:pointer; }
input[type=range]::-webkit-slider-runnable-track { background:linear-gradient(90deg,#2f9999,#535f96); border-radius:10px; height:3px; }
input[type=range]::-moz-range-track { background:linear-gradient(90deg,#2f9999,#535f96); border-radius:10px; height:3px; }
input[type=range]::-webkit-slider-thumb { appearance:none; height:12px; width:12px; border:3px solid #9effe4; border-radius:50%; background:#142f44; box-shadow:0 0 0 3px rgba(127,225,213,.12),0 0 12px rgba(107,230,223,.44); margin-top:-4.5px; }
input[type=range]::-moz-range-thumb { height:8px; width:8px; border:3px solid #9effe4; border-radius:50%; background:#142f44; }
.range-ends { display:flex; justify-content:space-between; font-size:8px; color:#677d9a; margin-top:4px; }
.stability-pill { display:flex; gap:9px; align-items:center; font-family:monospace; letter-spacing:.07em; font-size:9px; border:1px solid rgba(94,235,179,.2); background:rgba(29,115,88,.09); color:#88f5d0; padding:10px 11px; border-radius:7px; margin-top:16px; }
.stability-pill.unstable { border-color:rgba(249,111,132,.32); background:rgba(158,42,77,.14); color:#ff9daa; }
.indicator { height:6px; width:6px; border-radius:50%; background:currentColor; box-shadow:0 0 7px currentColor; }
.scientific-note { font-size:9px; line-height:1.6; letter-spacing:.02em; color:#8195ad; margin-top:9px; }
.panel-divider { height:1px; background:linear-gradient(90deg,transparent,rgba(140,197,210,.22),transparent); margin:21px 0; }
.panel-divider.short { margin:16px 0; }
.sub-heading { color:#b2c7da; font-size:10px; font-weight:bold; letter-spacing:.16em; margin-bottom:17px; }
.tiny-star { color:var(--rose); }
.small-label { display:block; margin-bottom:8px; }
select { appearance:none; width:100%; background:#101e33; border:1px solid rgba(143,198,218,.19); padding:11px 29px 11px 12px; border-radius:8px; color:#e2f0f4; font-size:11px; background-image:linear-gradient(45deg,transparent 50%,#8ee6d6 50%),linear-gradient(135deg,#8ee6d6 50%,transparent 50%); background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%; background-size:5px 5px; background-repeat:no-repeat; }
.launch-button { width:100%; padding:14px 12px; border:1px solid #abe6dd; color:#07262f; background:linear-gradient(100deg,#93ecd9,#bff6e3); border-radius:8px; box-shadow:0 8px 22px rgba(72,210,194,.14); display:flex; align-items:center; justify-content:space-between; font-weight:800; font-size:11px; letter-spacing:.12em; transition:transform .2s,filter .2s; }
.launch-button:hover { transform:translateY(-2px); filter:brightness(1.1); }
.launch-symbol { font-size:19px; }
.launch-arrow { font-size:15px; }
.launch-note { font-size:9px; line-height:1.6; letter-spacing:.02em; color:#8293aa; margin-top:11px; }
.toggle-row { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:15px 0; font-size:11px; color:#c6d7e7; }
.toggle-row span small { display:block; font-size:9px; color:#72849d; margin-top:3px; }
.toggle-button { background:rgba(36,86,87,.24); color:#92eee2; border:1px solid rgba(101,222,213,.24); border-radius:6px; padding:7px; font:9px monospace; }
.switch { flex-shrink:0; position:relative; width:32px; height:17px; border-radius:12px; border:1px solid rgba(160,189,212,.22); background:#293044; transition:background .2s; }
.switch span { display:block; width:11px; height:11px; position:absolute; top:2px; left:2px; border-radius:50%; background:#8b99b0; transition:transform .2s,background .2s; }
.switch.on { background:#275f63; border-color:#53bbb2; }
.switch.on span { transform:translateX(15px); background:#b2ffea; }
.radar-icon { height:30px; width:30px; border:1px solid rgba(118,224,220,.3); border-radius:50%; position:relative; background:repeating-radial-gradient(circle,transparent 0px,transparent 5px,rgba(104,214,209,.25) 6px, transparent 7px); }
.radar-icon::after { content:""; position:absolute; width:50%; height:1px; background:#76e9dc; left:50%; top:50%; transform-origin:left; transform:rotate(-40deg); box-shadow:0 0 7px #6ae9d9; }
.hero-metric { background:radial-gradient(ellipse at 100% 0%,rgba(72,188,178,.11),transparent 65%); border:1px solid rgba(115,213,215,.16); padding:15px; border-radius:10px; margin-bottom:15px; }
.hero-metric > span,.metric > span { font:9px monospace; letter-spacing:.1em; color:#8ca9bd; }
.hero-metric > div { font-size:34px; font-weight:680; letter-spacing:-.065em; margin-top:7px; font-variant-numeric:tabular-nums; }
.hero-metric small,.metric small { color:#7a95a8; font-size:11px; font-weight:450; letter-spacing:0; }
.metric-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px 11px; margin-bottom:23px; }
.metric { min-width:0; }
.metric > span { display:block; font-size:8px; margin-bottom:5px; }
.metric strong { display:block; font-size:16px; white-space:nowrap; font-weight:580; font-variant-numeric:tabular-nums; color:#e7f2ff; }
.plot-heading { display:flex; justify-content:space-between; font-size:9px; color:#b3cedd; gap:6px; }
.plot-heading > span { color:#7a94ad; font-size:8px; white-space:nowrap; }
.live-dot { width:5px; height:5px; margin-right:5px; }
.chart-wrap { height:115px; margin:15px -4px 0; }
#resonanceChart { display:block; height:100%; width:100%; }
.chart-foot { display:flex; justify-content:space-between; margin-top:4px; font-size:8px; color:#58718f; }
.object-heading { font-size:9px; color:#7f94ac; margin-bottom:8px; }
.select-crosshair { float:right; font-size:15px; color:#7de0d6; }
.object-name { color:#f2f8ff; font-weight:700; font-size:14px; letter-spacing:.015em; }
.object-kind { color:#77e6d9; font-size:10px; margin-top:5px; }
.object-info { color:#95a8bc; font-size:11px; line-height:1.65; margin-top:9px; }
.viewport-controls { position:absolute; z-index:3; bottom:124px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:10px; pointer-events:none; text-align:center; width:max-content; max-width:90vw; }
.viewport-controls > * { pointer-events:auto; }
.viewport-label { font-size:9px; color:#9eb2c3; text-shadow:0 2px 10px #060d1a; }
.view-buttons { display:flex; gap:5px; border-radius:9px; border:1px solid rgba(133,191,216,.18); padding:5px; background:rgba(9,17,35,.71); backdrop-filter:blur(16px); box-shadow:0 5px 19px rgba(0,0,0,.25); }
.camera-btn { color:#aabdd2; font:10px monospace; background:transparent; padding:10px 12px; border:1px solid transparent; border-radius:6px; letter-spacing:.07em; }
.camera-btn.active { border-color:rgba(118,233,220,.25); background:rgba(72,183,173,.17); color:#a6ffee; }
.viewport-hint { color:#839ab0; font:9px monospace; letter-spacing:.11em; margin:0; text-shadow:0 2px 9px #050b16; }
.viewport-hint span { color:#e8afbc; }
.transport-bar { position:absolute; bottom:0; left:0; right:0; height:88px; z-index:7; border-top:1px solid var(--line); background:linear-gradient(90deg,rgba(9,18,37,.92),rgba(13,29,47,.89)); backdrop-filter:blur(25px); padding:15px clamp(16px,3vw,52px); display:flex; align-items:center; gap:clamp(15px,2.8vw,47px); }
.playback-buttons { display:flex; align-items:center; gap:9px; }
.play-button { width:43px; height:43px; background:#8eefdd; color:#072b34; border:1px solid #b0f9e9; border-radius:8px; font-size:18px; font-weight:850; }
.play-button:hover { filter:brightness(1.12); }
.secondary-button { height:43px; border-radius:8px; border:1px solid rgba(161,207,220,.18); background:rgba(29,51,74,.4); color:#d0e1ec; font:10px monospace; letter-spacing:.08em; padding:0 14px; white-space:nowrap; }
.speed-control { min-width:130px; width:clamp(155px,17vw,250px); display:grid; grid-template-columns:1fr 43px; align-items:center; gap:2px 12px; }
.speed-control label { font:9px monospace; letter-spacing:.09em; color:#91a9bd; grid-column:1/-1; }
.speed-control strong { font:12px monospace; color:#a2f4e8; text-align:right; }
.speed-control input { grid-row:2; margin:0; }
.footer-readout { display:flex; flex-direction:column; gap:7px; white-space:nowrap; }
.readout-label { font-size:9px; color:#839bb0; }
.footer-readout strong { font:13px monospace; color:#dce7f8; }
.footer-signature { color:#718ba2; margin-left:auto; font-size:9px; white-space:nowrap; }
.footer-signature span { color:#82dfd3; font-size:18px; vertical-align:middle; margin:0 5px; }
.label-layer { position:absolute; inset:0; z-index:2; pointer-events:none; overflow:hidden; }
.sky-label { position:absolute; left:0; top:0; transform:translate(-50%,-50%); pointer-events:none; display:flex; align-items:center; gap:8px; white-space:nowrap; font:9px monospace; letter-spacing:.11em; color:#d7ebf6; text-shadow:0 0 10px #070f20,0 1px 7px #030811; }
.sky-label .pip { width:5px; height:5px; border-radius:50%; background:var(--aqua); box-shadow:0 0 8px var(--aqua); }
.sky-label.rose .pip { background:var(--rose); box-shadow:0 0 8px var(--rose); }
.sky-label.primary .pip { background:#ffc586; box-shadow:0 0 8px #ffb866; }
.toast { position:absolute; z-index:18; pointer-events:none; top:113px; left:50%; transform:translate(-50%,-6px); opacity:0; background:rgba(11,31,43,.93); border:1px solid rgba(102,225,208,.4); padding:12px 17px; color:#d9fffa; border-radius:9px; font:11px monospace; letter-spacing:.02em; max-width:85vw; text-align:center; transition:opacity .3s,transform .3s; }
.toast.visible { opacity:1; transform:translate(-50%,0); }
.overlay,.error-overlay { position:absolute; inset:0; z-index:30; background:rgba(2,8,20,.79); backdrop-filter:blur(18px); overflow-y:auto; padding:40px 20px; display:grid; place-items:center; }
.guide-dialog { position:relative; max-width:810px; width:100%; padding:clamp(23px,4.5vw,52px); border-radius:16px; border:1px solid rgba(139,235,225,.24); background:linear-gradient(135deg,#111f36,#0a1427 70%); box-shadow:0 25px 110px rgba(0,0,0,.55); }
.close-guide { position:absolute; top:14px; right:20px; color:#a9d9df; background:transparent; border:0; font-size:30px; }
.guide-dialog h2 { font-size:clamp(27px,4vw,43px); margin:14px 0 12px; letter-spacing:-.055em; }
.guide-dialog h2 em { font-style:normal; color:#84e6d6; font-weight:450; }
.guide-lead { font-size:14px; color:#b8cadb; line-height:1.7; max-width:660px; }
.guide-columns { display:grid; grid-template-columns:1fr 1fr; gap:26px 36px; margin:29px 0; }
.guide-numeral { color:#8eecdd; font:12px monospace; }
.guide-columns h3 { margin:7px 0; font-size:15px; font-weight:700; }
.guide-columns p { color:#99adbf; font-size:12px; line-height:1.65; margin:0; }
.guide-equation { padding:19px 22px; border-radius:9px; background:rgba(32,60,78,.35); border:1px solid rgba(127,210,211,.19); margin:18px 0; }
.guide-equation > span { display:block; font:9px monospace; color:#8ae4d4; margin-bottom:12px; letter-spacing:.15em; }
.guide-equation > div { font-size:17px; letter-spacing:.01em; }
.guide-equation small { color:#93b2c7; display:block; margin-top:10px; line-height:1.5; }
.eq-separator { color:var(--rose); margin:0 10px; }
.guide-disclaimer { font-size:11px; line-height:1.7; color:#8ea4ba; margin-bottom:24px; }
.guide-disclaimer strong { color:#c4d9e4; }
.guide-start { max-width:350px; }
.error-box { max-width:510px; border-radius:14px; padding:35px; background:#101d30; border:1px solid rgba(249,133,153,.35); }
.error-box h2 { font-size:26px; }
.error-box p { color:#bbcad5; line-height:1.6; }
@media (max-height:760px) and (min-width:701px) { .panel {top:113px; bottom:96px; padding:17px;} .topbar { padding-top:15px; } .viewport-controls { bottom:98px; } .viewport-hint { display:none; } .transport-bar {height:77px;} }
@media (max-width:1200px) { .panel { width:260px; padding:17px; } .footer-signature {display:none;} .camera-btn {padding:9px 8px;font-size:9px;} .topbar {padding-left:23px;padding-right:23px;} .viewport-hint {font-size:8px;} }
@media (max-width:940px) { .topbar {min-height:100px;} .science-panel { right:13px;width:237px; } .controls-panel {left:13px; width:244px;} .panel {top:114px; bottom:111px; padding:14px;} .panel h2 {font-size:17px;} .panel-intro {font-size:11px;} .hero-metric > div {font-size:27px;} .metric strong {font-size:13px;} .camera-btn {font-size:8px; padding:8px 6px;} .viewport-controls {bottom:103px;} .viewport-hint {display:none;} .transport-bar {gap:17px;padding:12px 17px;} .hide-small {display:none;} }
@media (max-width:700px) { .app {min-height:400px;} .topbar {align-items:flex-start; padding:16px 13px;gap:6px;} .brand-glyph {width:25px;height:25px;margin-top:3px;} .brand-glyph span:nth-child(3) {width:22px;} .brand-glyph span {width:15px;height:15px;} .brand-block {gap:9px;} .eyebrow {font-size:7px; letter-spacing:.12em;margin:1px 0 5px;} h1 {font-size:21px;} .subtitle {font-size:7px;letter-spacing:.12em;} .top-actions {gap:6px; flex-wrap:wrap; justify-content:flex-end; max-width:140px;} .simulation-chip,.seed-chip {display:none;} .icon-button {height:29px;width:30px;font-size:14px;} .mobile-menu {display:block; padding:7px;font-size:8px;} .controls-panel {display:none; top:80px; bottom:85px;left:9px;right:9px;width:auto;z-index:17; padding:18px; background:rgba(8,18,34,.94); } .controls-panel.open {display:block;} .science-panel {top:86px;bottom:auto;right:9px;width:min(225px,57vw); max-height: min(39vh,330px);padding:12px;overflow:auto;} .science-panel .panel-head {margin-bottom:9px;} .science-panel h2 {font-size:15px;} .hero-metric {padding:8px;margin-bottom:10px;} .hero-metric > span {font-size:7px;} .hero-metric > div {font-size:24px;} .metric-grid {gap:9px 5px;margin-bottom:11px;} .metric > span {font-size:7px;} .metric strong {font-size:12px;} .chart-wrap {height:68px;margin-top:7px;} .plot-heading {font-size:7px;} .object-info {font-size:9px;margin-bottom:0;} .object-name {font-size:11px;} .object-kind {font-size:9px;} .viewport-controls {left:10px;transform:none;bottom:99px;align-items:flex-start;max-width:calc(100vw - 20px);gap:6px;} .viewport-label {font-size:8px;} .view-buttons {flex-wrap:wrap; max-width:240px;gap:2px;} .camera-btn {font-size:8px;padding:7px 7px;} .transport-bar {height:80px;padding:9px 10px;gap:13px;} .play-button {width:34px;height:36px;font-size:16px;} .secondary-button {height:36px;font-size:9px;padding:0 10px;} .speed-control {flex:1;width:auto;min-width:100px;} .speed-control label {font-size:8px;} .speed-control strong {font-size:10px;} .footer-readout {display:none;} .toast {top:80px;font-size:9px;} .guide-columns {grid-template-columns:1fr;gap:17px;} .overlay {place-items:start center;padding:18px 10px;} .guide-dialog {padding:24px 17px;} .guide-equation > div {font-size:13px;} }
@media (max-width:400px) { .brand-glyph {display:none;} h1 {font-size:19px;} .subtitle {font-size:6px;} .topbar {padding-left:10px;} .science-panel {width:57vw;} .speed-control {min-width:95px;} }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }
