:root{color-scheme:dark;--abyss:#030c12;--ivory:#e8e4d4;--muted:#9aafb4;--cyan:#80e1df;--amber:#deb581;--line:rgba(158,196,197,.22)}
*{box-sizing:border-box}html{background:var(--abyss)}body{margin:0;color:var(--ivory);font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--abyss)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.42}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}button{border:0}a{color:inherit}button[hidden],[hidden]{display:none!important}#ocean{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}.vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(3,12,18,.35),transparent 45%,rgba(3,12,18,.7));z-index:1}.shell{min-height:100svh;min-height:100vh;min-height:100svh;padding:22px 40px 16px;position:relative;z-index:2;display:flex;flex-direction:column;max-width:1800px;margin:auto}.masthead{display:flex;align-items:center;gap:22px;min-height:44px}.return-link{min-width:44px;display:inline-flex;gap:11px;align-items:center;min-height:44px;text-decoration:none;font-size:12px;letter-spacing:.025em}.return-link>span:first-child{font-size:24px;color:var(--cyan)}.edition{font-size:9px;letter-spacing:.18em;color:var(--muted);display:flex;align-items:center;gap:14px}.edition i{height:1px;width:30px;background:var(--line)}.utility{margin-left:auto;display:flex;gap:8px;align-items:center}.quiet{min-width:44px;min-height:44px;background:transparent;border:1px solid transparent;border-radius:50%;font-size:20px}.quiet:hover{border-color:var(--line);background:rgba(128,225,223,.05)}#help-button{font-size:12px;padding:0 10px;border-radius:2px}.story{margin-top:clamp(18px,3.6vh,40px);max-width:500px;pointer-events:none}.eyebrow{font-size:9px;font-weight:500;letter-spacing:.21em;color:var(--cyan);margin:0 0 14px}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(36px,4.1vw,64px);font-weight:400;letter-spacing:-.035em;line-height:1.04;margin:0 0 17px;text-wrap:balance}#chapter-description{font-size:14px;line-height:1.65;color:#b8c7c8;margin:0;max-width:420px;text-wrap:pretty}.stage-space{position:relative;flex:1;min-height:190px;cursor:crosshair}.depth-mark{position:absolute;left:0;top:20%;display:flex;flex-direction:column;gap:4px;color:var(--muted);pointer-events:none}.depth-mark>span:first-child{font:italic 25px Georgia,serif;color:var(--ivory)}.depth-mark small{font-size:8px;letter-spacing:.12em}.depth-rule{height:40px;border-left:1px solid var(--line);margin:5px 0}.scale-caption{position:absolute;right:0;bottom:10px;color:var(--muted);font-size:8px;letter-spacing:.17em;pointer-events:none}.console{width:min(640px,100%);margin:0 auto;position:relative;background:linear-gradient(180deg,rgba(3,12,18,0),rgba(3,12,18,.78));padding:8px 0 0}.status-row{display:flex;justify-content:space-between;gap:12px;font-size:9px;letter-spacing:.16em;color:var(--muted)}#role-label{color:var(--cyan)}#progress-text{font-variant-numeric:tabular-nums;letter-spacing:.04em}progress{appearance:none;-webkit-appearance:none;border:0;width:100%;height:2px;display:block;margin:9px 0 8px;background:rgba(140,187,192,.15);color:var(--cyan)}progress::-webkit-progress-bar{background:rgba(140,187,192,.15)}progress::-webkit-progress-value{background:var(--cyan)}progress::-moz-progress-bar{background:var(--cyan)}.regions{display:flex;gap:0;border-bottom:1px solid var(--line);margin-bottom:7px}.region{background:transparent;min-height:50px;flex:1;min-width:0;padding:5px 4px;text-align:center;border-bottom:1px solid transparent;color:var(--muted);font-size:12px}.region small{display:block;font-size:9px;letter-spacing:.025em;margin-top:2px}.region[aria-pressed="true"]{color:var(--ivory);border-bottom-color:var(--cyan);background:linear-gradient(0deg,rgba(128,225,223,.085),transparent)}.region.done small{color:var(--cyan)}.region:hover{background:rgba(128,225,223,.06)}.resource-status{font-size:11px;margin:8px 0 10px;min-height:17px;color:#b8c7c8;text-align:center;font-variant-numeric:tabular-nums}.action-row{display:flex;gap:9px;align-items:stretch}.primary,.chemical{min-height:50px;border-radius:2px;padding:11px 20px;flex:1;display:flex;align-items:center;justify-content:center;gap:14px;font-size:13px;line-height:1.3;background:var(--ivory);color:#102129;transition:background .18s}.primary:hover:not(:disabled){background:#fff9e9}.primary small,.chemical small{font-size:9px;display:block}.steer{width:48px;min-height:50px;background:transparent;border:1px solid var(--line);color:var(--cyan);font-size:18px;border-radius:2px}.steer:hover{background:rgba(128,225,223,.09)}.chemistry-actions{display:flex;gap:8px;flex:1}.chemistry-actions button{flex-direction:column;gap:3px;padding:9px 6px}.chemical{background:rgba(11,40,48,.8);color:var(--cyan);border:1px solid #3e7379}.chemical:hover:not(:disabled){background:#153e48}.input-hint{font-size:9px;color:var(--muted);text-align:center;margin:10px 0 0;letter-spacing:.025em}.input-hint span{margin-left:10px;color:#718b94}.footer{display:flex;justify-content:space-between;gap:12px;margin-top:20px;color:var(--muted);font-size:9px;letter-spacing:.015em}.legend{letter-spacing:.13em;font-size:8px}.legend i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--cyan);margin-right:6px;box-shadow:0 0 9px #80e1df}.pause-overlay{position:fixed;inset:66px 0 0;z-index:4;background:rgba(3,12,18,.91);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:25px;backdrop-filter:blur(8px)}.pause-overlay p{font:italic 40px Georgia,serif;margin:0}.pause-overlay button{flex:0;min-width:200px}.pause-overlay small{margin-left:8px}.masthead{position:relative;z-index:5}dialog{width:min(600px,calc(100% - 28px));max-height:calc(100svh - 32px);border:1px solid #34555d;background:#081820;color:var(--ivory);padding:24px 30px 28px;border-radius:3px;box-shadow:0 25px 100px #000b;overflow:auto}dialog::backdrop{background:rgba(0,6,10,.82);backdrop-filter:blur(5px)}.guide-top{display:flex;justify-content:space-between;align-items:center}.guide-top .eyebrow{margin:0}dialog h2{font:32px/1.15 Georgia,serif;margin:15px 0 20px}dialog h3{font:23px/1.2 Georgia,serif;margin:28px 0 12px}dialog p,dialog dd{font-size:13px;line-height:1.7;color:#b9c9cb}dialog dt{color:var(--cyan);font-size:12px;margin-top:16px}dialog dd{margin:3px 0 0}kbd{font:11px system-ui;border:1px solid #43616a;border-radius:3px;padding:1px 5px;white-space:nowrap}.text-button{background:none;color:var(--cyan);text-align:left;padding:12px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px;font-size:12px}.sources{font-size:10px!important;border-top:1px solid var(--line);padding-top:15px;margin-bottom:0}.sources a{color:var(--cyan);display:inline-flex;align-items:center;min-height:44px;padding:8px 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.no-script{position:fixed;inset:0;z-index:20;background:var(--abyss);padding:20vh 10vw;font:22px/1.8 Georgia,serif}.no-script a{display:block;color:var(--cyan)}body[data-phase="micro"] .depth-mark{color:var(--cyan)}body[data-phase="final"] .story{max-width:570px}body[data-phase="final"] h1{font-style:italic}body[data-phase="final"] .console{max-width:540px}body[data-phase="final"] .region{cursor:pointer}.advance{background:var(--cyan)}.advance:hover:not(:disabled){background:#bcf8ee}
@media(min-width:1100px){.story{margin-left:2vw}.stage-space{min-height:210px}.depth-mark{left:2vw}.console{margin-top:-8px}.footer{margin-top:24px}}
@media(max-width:700px){.shell{padding:12px 20px 12px}.masthead{gap:10px}.edition{font-size:8px;letter-spacing:.1em}.edition i{display:none}.return-words{display:none}.utility{gap:2px}.story{margin-top:20px;max-width:340px}h1{font-size:40px;margin-bottom:12px}#chapter-description{font-size:12px;line-height:1.55;max-width:330px}.eyebrow{font-size:8px;letter-spacing:.14em;margin-bottom:10px}.stage-space{min-height:210px}.depth-mark{top:16%;gap:2px}.depth-mark>span:first-child{font-size:20px}.depth-mark small{font-size:7px}.depth-rule{height:26px}.scale-caption{font-size:7px;letter-spacing:.09em;bottom:8px;max-width:70%;text-align:right}.console{padding-top:4px}.resource-status{font-size:10px}.input-hint{font-size:8px;line-height:1.4}.input-hint span{display:none}.footer{margin-top:14px;font-size:8px;line-height:1.3}.legend{font-size:7px;max-width:116px;text-align:right}.action-row{gap:6px}.steer{width:44px;flex-shrink:0}.primary,.chemical{padding:10px 12px;font-size:12px}.chemistry-actions{gap:5px}.chemistry-actions button{font-size:11px;padding:6px 4px}.chemistry-actions small{font-size:8px}.status-row{font-size:8px}.region{font-size:11px;min-height:46px}.region small{font-size:8px}.pause-overlay{inset:66px 0 0}.pause-overlay p{font-size:30px}dialog{padding:15px 20px}}
@media(max-width:380px){.shell{padding:8px 12px 10px}.edition{font-size:7px;max-width:92px;line-height:1.6;letter-spacing:.1em}.masthead{gap:5px}.utility{gap:0}.quiet{min-width:44px}.story{margin-top:13px}h1{font-size:35px}.eyebrow{font-size:7px}.stage-space{min-height:165px}.footer{margin-top:10px}.scale-caption{max-width:65%}}
@media(max-height:650px) and (max-width:700px){.story{margin-top:7px}h1{font-size:32px;margin-bottom:7px}#chapter-description{font-size:11px;line-height:1.45}.eyebrow{margin-bottom:7px;font-size:7px}.stage-space{min-height:102px}.depth-mark{top:8%}.depth-rule{height:15px;margin:3px 0}.resource-status{margin:5px 0 7px;font-size:9px;min-height:14px}.status-row{font-size:7px}.region{min-height:44px;padding:3px}.primary,.chemical,.steer{min-height:46px}.input-hint{margin:6px 0 0}.footer{margin-top:9px}.console{padding-top:0}.scale-caption{font-size:6px}.legend{font-size:6px}.depth-mark small{font-size:6px}}
@media(max-height:600px) and (min-width:701px){.shell{padding-top:10px}.story{margin-top:8px}h1{font-size:36px;margin-bottom:8px}.eyebrow{margin-bottom:6px}.stage-space{min-height:150px}.console{max-width:570px}.footer{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.legend i{box-shadow:none}}
body.still *,body.still *::before,body.still *::after{transition:none!important;animation:none!important}
