:root{color-scheme:dark;--bg:#03131a;--panel:#0b2025;--ink:#e5eadf;--muted:#9ab7b6;--gold:#e8b576;--line:#29474b;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);min-width:280px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;font-size:12px;letter-spacing:.04em;min-height:46px;border:1px solid transparent;border-radius:2px;padding:12px 18px;background:var(--panel);color:var(--ink);cursor:pointer;transition:background .2s,color .2s}button:hover:enabled{background:#18363b}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,summary:focus-visible,canvas:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button[aria-pressed=true]{color:var(--gold);border-color:#6f5b40}button span{color:var(--gold)}[hidden]{display:none!important}.masthead{height:112px;padding:32px clamp(24px,4vw,72px);padding-top:max(32px,env(safe-area-inset-top));display:flex;align-items:flex-start;justify-content:space-between;gap:20px;position:relative;z-index:2}.wordmark{color:var(--ink);text-decoration:none;font-weight:600;font-size:18px;letter-spacing:.05em;line-height:1.5}.wordmark span{display:block;font-weight:400;font-size:9px;letter-spacing:.09em;color:var(--muted);margin-top:7px}.settings{display:flex;gap:8px}.settings button{min-width:88px;text-transform:uppercase;font-size:10px}.settings #fullscreen{min-width:46px;font-size:22px;padding:4px 12px}main{max-width:1920px;margin:auto;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.85fr);min-height:calc(100svh - 112px);padding:0 clamp(24px,4vw,72px) 28px;gap:clamp(32px,6vw,110px)}.stage{position:relative;min-width:0;min-height:560px;height:calc(100svh - 140px);max-height:1150px;align-self:start;overflow:hidden;border-radius:3px}.stage canvas{display:block;width:100%;height:calc(100% - 88px);touch-action:none;outline:none;background:var(--bg)}.stage-footer{position:absolute;inset:auto 0 0}nav{display:flex;gap:8px}nav button{flex:1;padding:12px 8px;font-size:11px;white-space:nowrap}nav button span{font-size:9px;margin-right:10px;opacity:.65}.gesture-hint{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin:18px 0 4px}.touch-hint{display:none}.story{align-self:center;padding:30px 0 8px;max-width:470px;width:100%}.eyebrow{font-size:10px;letter-spacing:.09em;color:var(--gold);padding-bottom:24px;border-bottom:1px solid var(--line);margin:0 0 34px}h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(35px,3.4vw,62px);line-height:1.12;letter-spacing:-.035em;margin:0 0 30px}#description,#invitation{font-size:14px;line-height:1.65;color:var(--muted);max-width:365px}#invitation{margin-top:18px}.actions{display:grid;gap:10px;margin:36px 0 42px}.actions button{text-align:left;min-height:50px}.actions .primary{background:var(--gold);color:#1e2925;display:flex;justify-content:space-between}.actions .primary:hover:enabled{background:#f4ca93}.primary span{color:inherit}.ritual{border-top:1px solid var(--line);padding-top:20px}.progress-row{display:flex;align-items:center;gap:22px;margin-bottom:20px}#seed-progress{font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin:0;color:var(--muted)}#seed-marks{display:flex;gap:11px;padding:3px}#seed-marks i{display:block;width:6px;height:6px;background:#35545a;transform:rotate(45deg)}#seed-marks i.awake{background:var(--gold);box-shadow:0 0 10px #e8b57655}.ritual-buttons{display:flex;gap:10px}.ritual-buttons #awaken{flex:1;display:flex;justify-content:space-between;text-align:left}.help{margin-top:22px;color:var(--muted);font-size:11px;line-height:1.6}.help summary{cursor:pointer;min-height:32px;padding:8px 0}.help p{max-width:390px}.loading{position:absolute;inset:0 0 88px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--bg);gap:14px;padding:30px;z-index:1}.loading-moon{width:70px;height:70px;fill:none;stroke:var(--gold);stroke-width:1;margin-bottom:10px}.loading p{font:26px/1.3 Georgia,serif;max-width:280px;margin:0}.loading small{color:var(--muted);font-size:11px;max-width:320px;line-height:1.6}progress{width:190px;height:3px;border:0;appearance:none;background:var(--line);margin:10px 0}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--gold)}progress::-moz-progress-bar{background:var(--gold)}noscript{position:fixed;inset:30%;background:var(--panel);padding:30px;text-align:center;z-index:10}
@media(pointer:coarse){.mouse-hint{display:none}.touch-hint{display:inline}}
@media(max-width:760px){.masthead{height:88px;padding:20px 20px 12px;padding-top:max(20px,env(safe-area-inset-top));align-items:center;gap:8px}.wordmark{font-size:15px}.wordmark span{font-size:7px;letter-spacing:.04em;max-width:165px;line-height:1.4}.settings{gap:5px}.settings button{min-width:62px;padding:10px 9px;font-size:9px}.settings #fullscreen{display:none}main{display:flex;flex-direction:column;gap:25px;min-height:0;padding:0 20px max(24px,env(safe-area-inset-bottom))}.stage{width:100%;height:clamp(340px,58svh,610px);min-height:0;max-height:none}.stage canvas{height:calc(100% - 70px)}.stage-footer nav{gap:6px}.stage-footer nav button{min-height:44px;padding:10px 5px;font-size:10px}.stage-footer nav button span{display:none}.gesture-hint{margin:12px 0 2px;font-size:8px;text-align:center}.loading{bottom:70px}.story{max-width:none;padding:0;align-self:stretch}.eyebrow{font-size:9px;padding-bottom:13px;margin-bottom:18px}h1{font-size:38px;margin-bottom:18px;max-width:100%}h1 br{display:none}#description{font-size:13px;line-height:1.6;max-width:none;margin:0}#invitation{display:none}.actions{grid-template-columns:1.3fr 1fr;gap:8px;margin:22px 0}.actions button{font-size:10px;padding:12px;min-height:46px}.ritual{padding-top:18px}.progress-row{margin-bottom:16px}.help{margin-top:14px}.help summary{min-height:44px}.help p{font-size:12px}.loading p{font-size:23px}}
@media(max-width:350px){.masthead{padding-left:14px;padding-right:14px}.wordmark span{max-width:115px}main{padding-left:14px;padding-right:14px}.settings button{min-width:56px;padding:8px 6px}h1{font-size:33px}.actions{grid-template-columns:1fr}.stage{height:350px}}
@media(min-width:761px) and (max-height:650px){.masthead{height:84px;padding-top:20px}main{gap:30px;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr)}.stage{height:calc(100svh - 110px);min-height:400px}.story{padding-top:8px}.eyebrow{margin-bottom:18px;padding-bottom:12px}h1{font-size:34px;margin-bottom:18px}.actions{margin:20px 0}#invitation{display:none}.help{margin-top:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
