:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f7f7fa;--paper:#fff;--text:#252036;--muted:#625b72;--border:#e7e2ee;--accent:#5d43c7;--tint:#f1ecfc;color:var(--text);background:var(--bg);font-synthesis:none;font-family:Manrope,system-ui,sans-serif}*{box-sizing:border-box}body{min-width:280px;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}[data-icon]{flex:none;place-items:center;display:inline-grid}[data-icon] svg{width:18px;height:18px;display:block}.shell{width:min(1320px,100% - 104px);margin-inline:auto}.topbar{border-bottom:1px solid #eae6ef}.topbar-inner{justify-content:space-between;align-items:center;height:68px;display:flex}.brand{letter-spacing:-.65px;align-items:center;gap:10px;font-size:19px;font-weight:800;display:flex}.brand-mark{width:34px;height:34px;color:var(--accent);background:#ece7ff;border-radius:11px}.brand-mark svg{width:20px;height:20px}button.bare{color:var(--muted);background:0 0;border-color:#0000;align-items:center;gap:7px;display:inline-flex}button.bare:hover{background:var(--tint);color:var(--accent);border-color:#0000}.about{font-size:14px}.intro{margin:30px 0 25px}h1{letter-spacing:-.033em;margin:0 0 11px;font-family:Instrument Serif,Georgia,serif;font-size:clamp(48px,6vw,87px);font-weight:400;line-height:.97}h1 em{color:var(--accent);font-weight:inherit}.intro p{color:var(--muted);margin:0;font-size:16px;line-height:1.55}.workspace{grid-template-columns:minmax(0,1fr) 314px;gap:20px;display:grid}.panel{border:1px solid var(--border);background:var(--paper);border-radius:27px;min-width:0;overflow:hidden;box-shadow:0 6px 18px #38285907}.board{flex-direction:column;padding:0 11px;display:flex}.panel-head{justify-content:space-between;align-items:center;gap:10px;min-height:61px;padding:0 18px;display:flex}.panel-head h2,.section-title{letter-spacing:-.025em;align-items:center;gap:8px;margin:0;font-size:16px;font-weight:800;display:flex}.board-heading{align-items:baseline;gap:10px;display:flex}.board-meta{color:var(--muted);white-space:nowrap;font-size:13px}.status{color:#635771;background:#f5f3f7;border-radius:999px;align-items:center;gap:6px;padding:5px 9px;font-size:12px;font-weight:700;display:flex}.status i{background:#8c789f;border-radius:50%;width:6px;height:6px}.status.running{color:var(--accent);background:#eee9ff}.status.running i{background:var(--accent)}.viewport{isolation:isolate;background:radial-gradient(at 48% 38%,#f5f0ff 0%,#ede6fa 57%,#e6ddf4 100%);border-radius:19px;flex:1;min-height:410px;position:relative;overflow:hidden}#canvas-holder,canvas{width:100%;height:100%;position:absolute;inset:0}canvas{touch-action:none;cursor:crosshair;display:block}canvas:focus-visible{outline-offset:-4px}#graphics-error{inset-inline:18px;text-align:center;color:var(--muted);position:absolute;top:43%}.view-tools{background:#fffc;border:1px solid #e1d9ee;border-radius:14px;padding:3px;display:flex;position:absolute;bottom:15px;right:16px;box-shadow:0 4px 12px #4e337014}.view-tools .icon-button{background:0 0;border-color:#0000;border-radius:10px;width:35px;min-height:34px}.view-tools .icon-button:hover{background:var(--tint)}.board-foot{min-height:52px;color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 13px;padding:6px 14px;font-size:13px;display:flex}.legend,.legend span,#board-help{align-items:center;gap:7px;display:flex}.legend{gap:15px}.legend i{border:1px solid #0000;border-radius:3px;width:10px;height:10px}.legend .alive{background:#9d85f6;border-color:#8a6de8}.legend .birth{background:#ffc975;border-color:#daa454}.legend .dead{background:#eeeafa;border-color:#cabce0}#board-help svg{width:14px;height:14px}.sidebar{flex-direction:column;align-self:stretch;padding:5px 18px;display:flex}.sidebar section{padding:15px 0}.sidebar section+section{border-top:1px solid var(--border)}.section-title{margin-bottom:12px}.transport,.board-actions{grid-template-columns:1.25fr 1fr auto;gap:7px;display:grid}.board-actions{grid-template-columns:1.25fr 1fr}button{min-height:40px;color:var(--text);background:#faf8fc;border:1px solid #e7e0f0;border-radius:12px;justify-content:center;align-items:center;gap:7px;padding:0 10px;font-size:14px;font-weight:700;transition:background .15s,border-color .15s;display:inline-flex}button:hover:not(:disabled){background:var(--tint);border-color:#d8cce9}button svg{width:16px;height:16px}button.primary{color:#fff;background:var(--accent);border-color:var(--accent);font-weight:800}button.primary:hover{background:#5035ba;border-color:#5035ba}.icon-button{width:40px;padding:0}.speed{margin:12px 0 13px}.speed div,.chart-title{color:var(--muted);justify-content:space-between;align-items:center;gap:7px;font-size:13px;display:flex}.speed label{color:var(--text);font-weight:700}.speed output{color:var(--accent);font-variant-numeric:tabular-nums;font-weight:800}input[type=range]{appearance:none;cursor:pointer;background:0 0;width:100%;height:17px;margin:5px 0 0;display:block}input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--accent) var(--fill), #e8e0f2 var(--fill));border-radius:6px;height:5px}input[type=range]::-moz-range-track{background:linear-gradient(to right, var(--accent) var(--fill), #e8e0f2 var(--fill));border-radius:6px;height:5px}input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--accent);box-shadow:0 0 0 1px var(--accent);border:2px solid #fff;border-radius:50%;width:14px;height:14px;margin-top:-4.5px}input[type=range]::-moz-range-thumb{background:var(--accent);box-shadow:0 0 0 1px var(--accent);border:2px solid #fff;border-radius:50%;width:11px;height:11px}.metrics{grid-template-columns:1fr 1fr;gap:8px;display:grid}.metrics div{color:var(--muted);background:#f8f5fc;border-radius:12px;gap:1px;padding:8px 10px;font-size:12px;display:grid}.metrics strong{letter-spacing:-.055em;color:var(--text);font-variant-numeric:tabular-nums;font-size:26px;font-weight:800;line-height:1.15}.metrics div:nth-child(2) strong{color:var(--accent)}.chart-title{margin:10px 0 3px}#density{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}#chart{width:100%;height:41px;display:block;overflow:visible}.pattern-list{grid-template-columns:1fr 1fr;gap:7px;display:grid}.pattern-list button{white-space:nowrap;background:#fff;justify-content:flex-start;gap:7px;padding-left:7px}.pattern-list button[aria-pressed=true],.pattern-list button:hover{background:#f5efff;border-color:#bca6ec}.pattern-list svg{color:var(--accent);background:#f0eaff;border-radius:6px;flex:none;width:24px;height:24px;padding:3px}.page-foot{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:10px;margin:15px 0 20px;font-size:12px;display:flex}.page-foot span{align-items:center;gap:7px;display:flex}kbd{background:#fff;border:1px solid #e2dbe9;border-radius:5px;padding:2px 5px;font:10px ui-monospace,monospace}kbd:not(:first-child){margin-left:5px}dialog{width:min(480px,100% - 32px);color:var(--text);background:var(--paper);border:1px solid var(--border);border-radius:24px;padding:0;box-shadow:0 18px 60px #38285930}dialog::backdrop{background:#271c3a55}dialog .panel-head{border-bottom:1px solid var(--border)}dialog .panel-head h2 svg{color:var(--accent)}dialog .panel-content{padding:5px 21px 12px}dialog p,dialog li{color:var(--muted);line-height:1.55}dialog ul{padding-left:24px}@media (width>=1150px) and (height>=930px){.intro{margin-top:42px;margin-bottom:32px}.viewport{min-height:min(55vh,630px)}.sidebar{padding:7px 20px}.sidebar section{padding-block:20px}#chart{height:52px}}@media (width<=1000px){.shell{width:calc(100% - 48px)}.workspace{grid-template-columns:minmax(0,1fr) 282px;gap:14px}.sidebar{padding-inline:13px}}@media (width<=740px){.shell{width:calc(100% - 32px)}.workspace{grid-template-columns:1fr}.viewport{min-height:clamp(250px,74vw,470px)}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px;display:grid}.sidebar section:nth-child(2){border-top:0}.sidebar section:last-child{grid-column:1/-1}.pattern-list{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width<=520px){.topbar-inner{height:56px}.intro{margin:23px 0 20px}h1{font-size:clamp(43px,10.8vw,56px)}.panel{border-radius:22px}.board{padding-inline:8px}.panel-head{min-height:53px;padding-inline:12px}.board-foot{padding-inline:5px}.legend{gap:8px}.viewport{border-radius:15px}.view-tools{bottom:9px;right:9px}.view-tools .icon-button{width:32px;min-height:32px}.sidebar{padding-inline:15px;display:flex}.sidebar section:nth-child(2){border-top:1px solid var(--border)}.pattern-list{grid-template-columns:1fr 1fr}}@media (width<=355px){#board-help [data-icon]{display:none}}
