@font-face{font-family:DM;src:url('assets/fonts/dm-sans.ttf') format('truetype');font-weight:100 1000;font-display:swap}@font-face{font-family:Space;src:url('assets/fonts/space-grotesk.ttf') format('truetype');font-weight:300 700;font-display:swap}
:root{color-scheme:dark;--bg:#151b18;--surface:#1e2721;--surface-light:#273229;--ink:#f4f4e8;--muted:#b0bbae;--line:#3b473d;--accent:#d5f99a;--dark:#233326;--coral:#f7b297;--ease-out:cubic-bezier(.16,1,.3,1);font-family:DM,system-ui,sans-serif;background:var(--bg);color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}html{-webkit-tap-highlight-color:transparent;scrollbar-color:#65785c var(--bg)}body{margin:0}::selection{background:var(--accent);color:var(--dark)}button,a,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;user-select:none}button{color:inherit}button:disabled{cursor:default;opacity:.4}button:active:not(:disabled){transform:translateY(1px) scale(.98)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{transition:background .16s,transform .16s var(--ease-out)}[hidden]{display:none!important}svg{display:block}button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1,h2,h3,.wordmark,.footer-brand{font-family:Space,DM,sans-serif;letter-spacing:-.04em}h1{font-size:clamp(38px,4.2vw,58px);line-height:1.1;font-weight:600}h2{font-size:30px;line-height:1.16;font-weight:500}h3{font-size:24px;font-weight:500}p{line-height:1.55}a{color:inherit}.app-shell{max-width:1240px;margin:auto;padding:0 48px}.topbar{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:18px}.wordmark{text-decoration:none;font-size:38px;font-weight:700;display:flex;align-items:center;line-height:1;white-space:nowrap}.logo-dot{color:var(--accent)}.wordmark svg{width:34px;height:34px;margin-left:12px;stroke:var(--accent);stroke-width:2.5;fill:none}.header-note{font-size:13px;color:var(--muted);margin-left:auto}.icon-button{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;background:transparent;border:1px solid var(--line);border-radius:50%;font-size:26px}.icon-button svg{width:22px}.experience{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:64px;padding:42px 0 38px}.creature-panel{min-width:0}.specimen-head{display:flex;align-items:center;justify-content:space-between}.pill{font-size:12px;font-weight:700;letter-spacing:.12em;border:1px solid var(--line);border-radius:5px;padding:7px 9px;display:inline-block;color:var(--muted)}.generation{font:600 13px Space,sans-serif;font-variant-numeric:tabular-nums}.generation span{color:var(--muted);font-weight:400;margin-left:5px}.meet{margin-top:27px}.meet h1 span{color:var(--accent)}.meet p{color:var(--muted);font-size:14px;margin-top:9px;max-width:40ch}.stage{position:relative;height:340px;display:grid;place-items:center;isolation:isolate}.stage-ring{position:absolute;width:280px;height:280px;border:1px solid #3a493b;border-radius:50%;background:#202c22;z-index:-1}.stage-ring:after{content:'';position:absolute;inset:24px;border:1px dashed #43513f;border-radius:50%}.stage-coordinates{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.stage-coordinates span{font-size:12px;font-weight:600;letter-spacing:.13em;line-height:1.8;color:#8e9e8c;writing-mode:vertical-rl;transform:rotate(180deg)}.stage-coordinates svg{width:21px;height:21px;fill:none;stroke:#829576;stroke-width:1}.creature-art{width:365px;height:365px;max-width:100%;transform-origin:50% 70%;z-index:2}.creature-art>svg{width:100%;height:100%;overflow:visible}.creature-art.idle{animation:breathe 4s ease-in-out infinite}.egg-wrap{position:absolute;width:340px;height:340px;z-index:3}.egg-wrap svg{width:100%;height:100%;overflow:visible}.stage-caption{display:flex;align-items:center;gap:8px;font-size:12px;min-height:32px}.status-dot{width:5px;height:5px;background:var(--accent);border-radius:50%;flex-shrink:0}.stage-caption .quiet-button{margin-left:auto;font-size:12px;padding-right:0}.trait-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;min-height:28px}.trait-list span{font-size:12px;padding:6px 8px;border:1px solid var(--line);border-radius:5px;color:var(--muted)}.trait-list .new-trait{background:var(--accent);color:var(--dark);border-color:var(--accent)}.lifecycle{margin-top:24px}.lifecycle>div{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}progress{appearance:none;width:100%;height:4px;margin-top:11px;border:0;border-radius:4px;overflow:hidden;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}.mutation-panel{align-self:start;border-left:1px solid var(--line);padding-left:40px;min-width:0;padding-top:2px}.turn-line{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:700;letter-spacing:.1em;color:var(--accent);margin-bottom:19px}.turn-icon svg{width:17px;height:17px;fill:none;stroke:var(--accent);stroke-width:1.5}.mutation-panel h2{font-size:36px}.panel-description{font-size:13px;color:var(--muted);margin-top:10px;max-width:37ch}.category-row{display:flex;justify-content:space-between;font-size:12px;gap:8px;margin-top:27px;margin-bottom:9px}.category-row span{font-size:12px;color:var(--muted)}select{appearance:auto;width:100%;padding:12px 14px;min-height:46px;font-size:16px;border:1px solid #52604e;border-radius:10px;color:var(--ink);background:var(--surface-light)}.choice-toolbar{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);margin:13px 0 9px;gap:8px}.quiet-button{background:none;border:0;min-height:44px;padding:8px 10px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-underline-offset:4px}.quiet-button svg{width:15px;height:15px}.choice-toolbar .quiet-button{font-size:12px;padding:0;min-height:30px;color:var(--ink)}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.choice{border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0;padding:0 8px 12px;text-align:left;position:relative;overflow:hidden}.choice .preview{height:101px;display:grid;place-items:center;overflow:hidden}.preview svg{width:133px;height:133px;flex-shrink:0}.choice strong{display:block;text-align:center;font-size:12px;font-weight:500;white-space:normal;line-height:1.35}.choice[aria-pressed=true]{border-color:var(--accent);background:#303e2a}.choice[aria-pressed=true]:after{content:'✓';position:absolute;right:8px;top:7px;color:var(--accent);font-size:12px}.option-pager{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.option-pager .quiet-button{font-size:12px;padding:6px 0}.selection-description{font-size:12px;line-height:1.5;min-height:43px;color:var(--muted);padding-top:5px}.primary-button,.secondary-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;width:100%;padding:13px 18px;border:0;border-radius:10px;font-weight:600;font-size:13px}.primary-button{background:var(--accent);color:var(--dark)}.primary-button svg{margin-left:auto}.primary-button>span{margin-right:auto}.secondary-button{background:var(--surface-light);color:var(--ink);border:1px solid var(--line)}.commit-note{font-size:12px;text-align:center;color:var(--muted);margin-top:11px;line-height:1.5}.rules-line{display:flex;gap:9px;align-items:center;font-size:12px;color:var(--muted);margin-top:23px}.rules-line svg{width:16px;height:19px;flex-shrink:0;stroke:#a4b49d;fill:none;stroke-width:1.4}.history-section{border-top:1px solid var(--line);padding-top:27px}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.history-heading h2{font-size:25px}.history-heading p{color:var(--muted);font-size:12px;margin-top:7px}.compact{width:auto;min-height:44px;white-space:nowrap;font-size:12px}.timeline{display:flex;gap:12px;overflow-x:auto;padding:23px 2px 12px;scrollbar-width:thin;scroll-snap-type:x proximity}.timeline-item{background:none;border:0;border-radius:12px;padding:0;flex:0 0 115px;text-align:left;scroll-snap-align:start}.timeline-item .timeline-art{height:95px;background:var(--surface);border-radius:10px;overflow:hidden;display:grid;place-items:center}.timeline-art svg{width:125px;height:125px}.timeline-item small{display:block;font-size:12px;color:var(--muted);margin-top:10px}.timeline-item strong{font-size:12px;font-weight:500;display:block;margin-top:5px}.timeline-item.current .timeline-art{background:#303e2a;outline:1px solid #809b68}.new-relay{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid var(--line);margin-top:24px;padding:30px 0}.new-relay h2{font-size:21px}.new-relay p{font-size:12px;color:var(--muted);margin-top:8px}.new-relay>div:last-child{display:flex;align-items:center;gap:10px}footer{display:flex;align-items:center;gap:24px;border-top:1px solid var(--line);padding:24px 0 max(24px,env(safe-area-inset-bottom));font-size:12px;color:var(--muted)}.footer-brand{color:var(--accent);font-size:23px;font-weight:600}footer .quiet-button{margin-left:auto;font-size:12px;padding-right:0}dialog{width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);background:var(--surface);color:var(--ink);border:1px solid #58634e;border-radius:18px;padding:28px;overscroll-behavior:contain}dialog::backdrop{background:#060d09c9}body:has(dialog[open]){overflow:hidden}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog-top .pill{border:0;padding:0}.dialog-top .icon-button{width:44px;height:44px}dialog h2{font-size:36px}dialog p{font-size:13px;color:var(--muted);margin:16px 0}dialog label{display:block;font-size:12px;margin:22px 0 9px}textarea{width:100%;resize:none;color:var(--ink);border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:12px;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.share-actions{display:flex;gap:10px;margin-top:14px}.share-actions>*{width:50%}.small-note,dialog .small-note{font-size:12px;line-height:1.6}.local-notice{padding:12px;background:#343b2c;border-radius:8px;color:#e1ecce!important;font-size:12px!important}input[type=range]{width:100%;accent-color:var(--accent);min-height:44px}input[type=checkbox]{accent-color:var(--accent);width:20px;height:20px;flex-shrink:0}.check-row{display:flex!important;gap:12px;align-items:center;min-height:44px}.how-to{padding-left:20px;color:var(--muted);font-size:13px;line-height:1.8}.how-to li{padding:5px}.range-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.history-preview{height:250px;display:grid;place-items:center}.history-preview svg{width:280px;height:280px}.history-detail{text-align:center;min-height:40px}.history-events{max-height:180px;overflow:auto;margin-top:20px}.history-event{display:flex;gap:14px;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);padding:13px 4px;font-size:12px;min-height:44px}.history-event span{color:var(--muted);width:55px;flex-shrink:0}.history-event[aria-pressed=true]{color:var(--accent)}.toast{position:fixed;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translate(-50%,12px);background:var(--ink);color:var(--dark);padding:13px 20px;border-radius:10px;font-size:12px;font-weight:600;opacity:0;transition:opacity .2s,transform .2s var(--ease-out);z-index:10;pointer-events:none;width:max-content;max-width:calc(100% - 32px);text-align:center;box-shadow:0 8px 24px #0004}.toast.show{opacity:1;transform:translate(-50%,0)}.skip-button{position:absolute;bottom:10px;right:0;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);font-size:12px;z-index:5}.burst{position:absolute;inset:0;pointer-events:none;z-index:4}.burst i{position:absolute;width:7px;height:7px;background:var(--accent);border-radius:2px;left:50%;top:50%}.completed{padding-top:16px}.result-art{width:100%;height:152px;display:grid;place-items:center}.result-art svg{width:205px;height:205px}.completed h3{text-align:center}.completed p{text-align:center;font-size:12px;color:var(--muted);margin:10px 0 24px}.completed .secondary-button{margin-top:12px}.completed>.quiet-button{width:100%;margin-top:12px}.error-banner{background:#56392d;color:#ffe4d2;font-size:13px;line-height:1.6;padding:16px;border-radius:10px;margin-top:20px}.error-banner button{margin-left:10px;background:transparent;color:inherit;border:1px solid #b98a76;border-radius:6px;min-height:44px;padding:6px 14px}.practice-mode .pill{color:var(--coral);border-color:#765d45}@keyframes breathe{0%,100%{transform:translateY(2px) rotate(-1deg)}50%{transform:translateY(-5px) rotate(1deg)}}@media(hover:hover) and (pointer:fine){button:hover:not(:disabled){background-color:#344331}.primary-button:hover:not(:disabled){background-color:#e5ffbb}.choice:hover:not(:disabled){transform:translateY(-2px);border-color:#8ba278}.quiet-button:hover{color:var(--accent);background:transparent!important}.timeline-item:hover:not(:disabled){background:transparent;transform:translateY(-2px)}}
@media(min-width:1300px){.experience{gap:86px}.mutation-panel{padding-left:48px}.stage{height:370px}.creature-art{width:395px;height:395px}.stage-ring{width:310px;height:310px}.choice .preview{height:108px}}
@media(max-width:1000px){.app-shell{padding:0 30px}.experience{gap:32px}.mutation-panel{padding-left:25px}.mutation-panel h2{font-size:30px}.stage{height:320px}.creature-art{width:320px;height:320px}.stage-ring{width:250px;height:250px}.new-relay{align-items:flex-start}.new-relay>div:last-child{flex-direction:column;align-items:stretch}.category-row{font-size:12px}}
@media(max-width:700px){.app-shell{padding:0 max(22px,env(safe-area-inset-left)) 0 max(22px,env(safe-area-inset-right))}.topbar{height:80px}.wordmark{font-size:32px}.wordmark svg{width:29px;margin-left:8px}.header-note{font-size:12px;max-width:105px;text-align:right;line-height:1.5}.experience{grid-template-columns:1fr;gap:30px;padding:27px 0 30px}.meet{margin-top:22px}.meet h1{font-size:42px}.meet p{font-size:13px}.stage{height:300px}.creature-art{width:330px;height:330px}.stage-ring{width:256px;height:256px}.egg-wrap{width:320px;height:320px}.stage-coordinates{inset:0 3px}.trait-list{gap:5px;margin-top:8px}.lifecycle{margin-top:18px}.mutation-panel{border-left:0;border-top:1px solid var(--line);padding:27px 0 0}.turn-line{margin-bottom:14px}.mutation-panel h2{font-size:32px}.panel-description{font-size:13px;max-width:none}.category-row{margin-top:24px;font-size:12px}.choice .preview{height:112px}.preview svg{height:145px;width:145px}.choice strong{font-size:12px}.choice-toolbar{font-size:12px}.selection-description{min-height:39px}.primary-button,.secondary-button{min-height:52px}.history-heading{align-items:flex-start;flex-direction:column;gap:10px}.history-heading h2{font-size:25px}.history-heading .compact{min-height:44px;padding:9px 12px}.new-relay{flex-direction:column;gap:18px}.new-relay>div:last-child{flex-direction:row;flex-wrap:wrap;width:100%}.new-relay .compact{flex:1}footer{gap:12px;flex-wrap:wrap;padding-top:18px}.footer-brand{font-size:22px}footer>span:nth-child(2){font-size:12px}footer .quiet-button{font-size:12px;padding:0;margin-left:auto;min-height:44px}dialog{padding:22px;max-height:calc(100dvh - 24px)}dialog h2{font-size:32px}.stage-caption{font-size:12px}.stage-caption .quiet-button{font-size:12px}.completed .result-art{height:180px}.result-art svg{width:230px;height:230px}.rules-line{margin-top:20px}}
@media(max-width:360px){.app-shell{padding:0 16px}.header-note{display:none}.stage{height:285px}.creature-art{width:300px;height:300px}.stage-caption{gap:5px;font-size:12px}.choice strong{font-size:12px}.lifecycle>div{font-size:12px}.share-actions{flex-direction:column}.share-actions>*{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.turn-line{margin:16px 0 0}.stage-share{display:none;margin-top:20px}@media(max-width:700px){.stage-share{display:flex}}
