:root { --bg:#070b16; --surface:#10182a; --surface2:#151f35; --line:rgba(151,175,224,.14); --text:#eef4ff; --muted:#90a0bb; --cyan:#4ee8e1; --purple:#9c7cff; --green:#57e48f; --red:#ff5e71; }
* { box-sizing:border-box; } body { margin:0; min-width:320px; color:var(--text); font:14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:radial-gradient(circle at 14% 0%, #182c4d 0, transparent 29rem), radial-gradient(circle at 87% 11%, #261c4b 0, transparent 29rem), var(--bg); }
.app-shell { max-width:1440px; margin:auto; padding:34px clamp(18px,4vw,54px) 48px; }.hero { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:26px; }.eyebrow { margin:0 0 5px; color:var(--cyan); font-size:10px; font-weight:800; letter-spacing:.15em; }.hero h1 { margin:0; font-size:clamp(38px,5vw,63px); line-height:1; letter-spacing:-.065em; }.hero h1 span { color:var(--cyan); }.subtitle { max-width:650px; margin:12px 0 0; color:var(--muted); font-size:15px; }.status-pill { display:flex; gap:9px; align-items:center; flex:none; color:#b9c8e4; background:rgba(13,25,47,.75); border:1px solid var(--line); border-radius:99px; padding:9px 13px; }.status-pill i { width:8px; height:8px; background:var(--green); border-radius:50%; box-shadow:0 0 12px var(--green); }.card { background:linear-gradient(145deg, rgba(21,31,53,.92), rgba(12,19,34,.94)); border:1px solid var(--line); box-shadow:0 16px 50px rgba(0,0,0,.18); border-radius:18px; }.dashboard { display:grid; grid-template-columns:minmax(0,1.82fr) minmax(290px,.8fr); gap:20px; }.world-card { padding:20px; }.card-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; margin-bottom:16px; }.card-heading h2 { margin:0; font-size:19px; letter-spacing:-.02em; }.compact { margin-bottom:17px; }.world-legend,.chart-legend { display:flex; flex-wrap:wrap; gap:7px; align-items:center; color:var(--muted); font-size:11px; }.world-legend span,.chart-legend span { display:inline-block; }.food-key,.bacteria-key { width:8px; height:8px; border-radius:50%; }.food-key { background:var(--green); box-shadow:0 0 8px var(--green); }.bacteria-key { background:linear-gradient(135deg,var(--red),#6fbeea); }.canvas-wrap { height:clamp(360px,52vh,600px); overflow:hidden; border:1px solid rgba(101,145,214,.2); border-radius:13px; background:#07101c; }.canvas-wrap canvas, #chartCanvas { display:block; width:100%; height:100%; }.model-note { margin:13px 2px 0; color:var(--muted); font-size:12px; }.control-panel { padding:20px; }.button-row { display:flex; gap:9px; margin-bottom:17px; } button,select,input { font:inherit; } button { cursor:pointer; border:0; color:var(--text); font-weight:700; }.primary { flex:1; padding:11px; border-radius:10px; background:linear-gradient(110deg,#35d9d2,#608aff); color:#061225; }.secondary { width:44px; border:1px solid var(--line); border-radius:10px; background:#18243c; font-size:22px; }.speed-control { display:flex; justify-content:space-between; align-items:center; padding:13px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); }.segmented { display:flex; padding:3px; background:#0a1221; border-radius:8px; }.segmented button { padding:4px 9px; border-radius:5px; background:transparent; color:var(--muted); font-size:12px; }.segmented button.active { background:#283957; color:white; }.control-label { display:grid; gap:7px; padding:15px 0 10px; color:var(--muted); font-size:12px; }.control-label select { padding:10px; color:var(--text); background:#0b1425; border:1px solid var(--line); border-radius:8px; outline:none; }.sliders { display:grid; gap:13px; }.range-control { display:grid; gap:7px; color:var(--muted); font-size:12px; }.range-control span { display:flex; justify-content:space-between; }.range-control b { color:#dce6fa; } input[type="range"] { appearance:none; width:100%; height:4px; border-radius:4px; background:#263653; accent-color:var(--cyan); } input[type="range"]::-webkit-slider-thumb { appearance:none; width:13px; height:13px; border-radius:50%; background:var(--cyan); box-shadow:0 0 0 3px rgba(78,232,225,.15); }.lower-grid { display:grid; grid-template-columns:1fr 1.24fr; align-items:stretch; gap:20px; margin-top:20px; }.telemetry-column { display:grid; align-content:start; gap:20px; }.stats-card,.chart-card { padding:20px; }.generation { color:var(--purple); background:rgba(156,124,255,.12); border-radius:99px; padding:5px 9px; font-size:11px; }.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.stat { min-height:83px; padding:12px; border:1px solid rgba(151,175,224,.1); border-radius:10px; background:rgba(4,10,22,.24); }.stat span { display:block; min-height:30px; color:var(--muted); font-size:11px; }.stat strong { display:block; font-size:21px; letter-spacing:-.03em; }.chart-card { min-height:250px; height:100%; }.chart-card #chartCanvas { height:172px; }
.trait-legend { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 15px; margin:13px 2px 0; color:var(--muted); font-size:11px; line-height:1.35; }.trait-item { display:inline-flex; align-items:flex-start; gap:6px; }.trait-item b { color:#dbe7fb; }.trait-dot { flex:none; width:9px; height:9px; margin-top:3px; border-radius:50%; box-shadow:0 0 9px currentColor; }.speed-dot { color:#ff5e71; background:#ff5e71; }.efficiency-dot { color:#57e48f; background:#57e48f; }.life-dot { color:#5d9eff; background:#5d9eff; }.mixed-dot { color:#d878d8; background:linear-gradient(135deg,#ff5e71 0 33%,#57e48f 33% 66%,#5d9eff 66%); }.population-line,.efficiency-line { width:14px; height:2px; border-radius:3px; }.population-line { background:#4ee8e1; box-shadow:0 0 7px #4ee8e1; }.efficiency-line { background:#a783ff; box-shadow:0 0 7px #a783ff; }.model-note { margin-top:10px; }.chart-note { margin:10px 0 0; color:var(--muted); font-size:11px; line-height:1.4; }
.toggle-control { display:flex; justify-content:space-between; align-items:center; margin:12px 0 2px; color:var(--muted); cursor:pointer; }.toggle-control span { display:flex; align-items:center; gap:7px; }.predator-dot { width:9px; height:9px; border-radius:50%; background:#ff8b5b; box-shadow:0 0 8px #ff8b5b; }.toggle-control input { position:absolute; opacity:0; }.toggle-track { position:relative; width:34px; height:19px; border-radius:20px; background:#263653; transition:.2s; }.toggle-track::after { content:""; position:absolute; top:3px; left:3px; width:13px; height:13px; border-radius:50%; background:#9dacbf; transition:.2s; }.toggle-control input:checked + .toggle-track { background:#a5556e; }.toggle-control input:checked + .toggle-track::after { transform:translateX(15px); background:#ffd3bf; }.chart-legend label { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }.chart-legend input { accent-color:#5d9eff; margin:0 0 0 3px; }.population-line,.efficiency-line,.life-line { width:14px; height:2px; border-radius:3px; }.life-line { background:#5d9eff; box-shadow:0 0 7px #5d9eff; }
.temperature-note { margin:14px 0 0; padding:10px; border-radius:9px; background:rgba(78,232,225,.06); color:var(--muted); font-size:11px; line-height:1.4; }
.evolution-info { margin-top:14px; padding:12px; border:1px solid rgba(151,175,224,.1); border-radius:10px; background:rgba(4,10,22,.2); }.evolution-info p:last-child { margin:0; color:var(--muted); font-size:11px; line-height:1.45; }
.selected-card { margin-top:16px; padding-top:15px; border-top:1px solid var(--line); }.selected-empty { margin:0; color:var(--muted); font-size:11px; line-height:1.45; }.selected-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }.selected-value { padding:7px; border-radius:7px; background:rgba(4,10,22,.28); }.selected-value span { display:block; color:var(--muted); font-size:10px; line-height:1.2; }.selected-value b { display:block; margin-top:2px; color:#e9f2ff; font-size:12px; }.selected-event { margin:10px 0 0; padding:8px; border-radius:7px; background:rgba(255,190,80,.08); color:#f2cc83; font-size:10px; line-height:1.4; }.selected-note { margin:10px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }.strategy-card { grid-column:1; padding:18px 20px; }.strategy-card h2 { margin:0; font-size:17px; }.strategy-card p:last-child { margin:7px 0 0; color:var(--muted); font-size:12px; }
@media(max-width:860px) { .dashboard,.lower-grid { grid-template-columns:1fr; }.control-panel { order:2; }.strategy-card { grid-column:auto; }.canvas-wrap { height:440px; } }.@media(max-width:560px) { .app-shell { padding:25px 14px 32px; }.hero { align-items:flex-start; flex-direction:column; }.stats-grid { grid-template-columns:repeat(2,1fr); }.world-card,.control-panel,.stats-card,.chart-card,.strategy-card { padding:15px; }.world-legend { display:none; }.trait-legend { grid-template-columns:1fr; }.canvas-wrap { height:350px; } }
