:root{color-scheme:dark;--forest:#173c33;--paper:#f5f2e9;--muted:#b0c1b6;--mint:#b7d8b5;--gold:#e3bd78;--edge:rgba(214,232,210,.2);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:#0e2722;color:var(--paper);line-height:1.65}button,input,a{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;background:rgba(205,224,196,.055);border:1px solid var(--edge);padding:13px 18px;border-radius:14px;min-height:48px;text-align:left;white-space:normal;overflow-wrap:anywhere}button:hover{border-color:var(--mint);background:rgba(205,224,196,.1)}button:disabled{opacity:.5;cursor:wait}a{color:var(--mint);text-underline-offset:5px}a:hover{color:var(--paper)}:focus-visible{outline:3px solid var(--gold);outline-offset:5px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2.1rem,4.4vw,4rem);line-height:1.06;letter-spacing:-.05em;font-weight:720;text-wrap:balance;margin-bottom:26px}h2{line-height:1.2;letter-spacing:-.025em}h1:focus{outline:none}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:12px clamp(20px,4vw,64px);border-bottom:1px solid var(--edge);position:relative;z-index:2;background:#102d27}.brand{text-decoration:none;font-weight:800;font-size:22px;letter-spacing:-.02em;color:var(--paper);line-height:1.1}.brand span{display:block;font-size:9px;font-weight:500;letter-spacing:.19em;margin-top:6px;color:var(--muted)}#menu-open{border:0;display:flex;gap:15px;align-items:center;padding-right:0}.skip{position:fixed;top:-90px;left:16px;padding:12px 20px;background:var(--paper);color:var(--forest);z-index:100}.skip:focus{top:10px}.quest-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,1fr);min-height:calc(100svh - 88px)}.city-stage{position:sticky;top:0;align-self:start;height:calc(100svh - 88px);min-height:560px;overflow:hidden;background:#173c33;border-right:1px solid var(--edge)}.city-art{position:absolute;width:132%;height:100%;left:-16%;object-fit:cover}.city-coordinate{position:absolute;z-index:1;left:32px;top:28px;font:10px ui-monospace,monospace;letter-spacing:.12em;color:#adbea8;opacity:.7}.scene-shade{position:absolute;inset:0;background:linear-gradient(180deg,#102c2700 45%,#0c2924cc 80%,#0c2924 100%)}.city-haze{position:absolute;inset:20% 0;background:radial-gradient(ellipse at 80% 50%,#b4d3a922,transparent 60%);z-index:1;pointer-events:none}.scene-bottom{position:absolute;left:32px;right:32px;bottom:32px;display:flex;flex-direction:column;gap:25px;z-index:1}.chapter-badge{font-size:11px;letter-spacing:.04em;color:#c4d4bd;display:flex;gap:9px;align-items:center}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 20px #e3bd7866;flex:none}.character{display:flex;align-items:center;gap:16px}.character small{display:block;letter-spacing:.18em;font-size:9px;color:#a8c1ad}.character strong{font-size:26px;font-weight:600}.character-portrait{position:relative;width:66px;height:66px;border:1px solid #a4c6a5;border-radius:22px;background:radial-gradient(at 30% 25%,#649079,#1a4537);box-shadow:inset 0 0 22px #b7d8b522,0 8px 28px #0004;display:grid;place-items:center}.character-portrait span{color:#e2e8c4;font-size:28px;font-weight:500;letter-spacing:-.05em}.character-portrait i{position:absolute;bottom:9px;width:20px;height:3px;border-radius:2px;background:#debc77}.city-stage[data-speaker="mira"] .character-portrait{border-radius:50%;background:radial-gradient(at 30% 25%,#a4916d,#324834)}.city-stage[data-speaker="bublik"] .character-portrait{border-radius:18px 30px 18px 30px;background:radial-gradient(at 30% 25%,#b18a59,#4c4b30)}.city-stage[data-scene="archive"] .city-archive{filter:drop-shadow(0 0 22px #b5d3a655)}.city-stage[data-scene="core"] .city-core{filter:drop-shadow(0 0 24px #e3bd7866)}.city-stage[data-scene="tunnel"] .city-art{filter:brightness(.7) saturate(.75)}.city-stage[data-scene="bakery"] .city-art{filter:sepia(.16)}.city-stage[data-scene="city"] .city-art{filter:brightness(1.15)}.tram{animation:tram 38s ease-in-out infinite;transform:translate(350px,300px)}.city-signal{animation:signal 5s ease-in-out infinite}@keyframes tram{0%,100%{transform:translate(120px,327px)}50%{transform:translate(650px,300px)}}@keyframes signal{0%,100%{opacity:.35}50%{opacity:.9}}.reading-pane{padding:26px clamp(24px,4.4vw,80px) 48px;max-width:850px;width:100%;margin:auto 0}.reading-meta{display:flex;justify-content:space-between;gap:16px;font-size:10px;letter-spacing:.035em;color:var(--muted);padding-bottom:24px;border-bottom:1px solid var(--edge);margin-bottom:32px}.eyebrow{font:10px ui-monospace,monospace;letter-spacing:.14em;color:var(--gold);margin-bottom:20px}.lead{font-size:clamp(18px,1.7vw,23px);line-height:1.55;color:#c8d5c9;max-width:32em}.quiet{font-size:12px;line-height:1.65;color:var(--muted);margin:20px 0}.primary{font-weight:700;color:var(--forest);background:var(--paper);border-color:var(--paper);text-align:center;padding:17px 24px;width:100%;margin:16px 0 0;box-shadow:0 5px 26px #0001}.primary:hover{color:#0b2922;background:#dfebd7;border-color:#dfebd7}.welcome{padding-top:14px}.welcome h1{max-width:9em}.story-paragraph{font-size:17px;line-height:1.8;color:#e1e6d9;margin-bottom:19px;white-space:pre-line}.choices{display:flex;flex-direction:column;gap:10px;margin-top:30px}.choice{padding:16px 20px;font-weight:550;position:relative;line-height:1.5;transition:background .15s,border-color .15s,transform .15s}.choice:hover{transform:translateX(3px)}.choice:before{content:'↗';color:var(--gold);margin-right:12px;font-size:16px}.tip{border-top:1px solid var(--edge);padding-top:15px;margin-top:28px;color:var(--muted);font-size:13px}.tip summary{cursor:pointer;font-size:12px;color:#b8c9ad;list-style-position:inside}.tip p{margin:16px 0 8px}.tip a{font-size:12px}.scene-card>a{display:block;margin-top:20px}.endings{background:#b4c89b0a;border:1px solid var(--edge);border-radius:14px;padding:20px;margin-top:24px}.endings h2{font-size:16px}.endings p{margin-bottom:4px;font-size:14px;color:var(--mint)}#quest-notice{margin:0;color:var(--gold);font-size:13px;overflow-wrap:anywhere}#quest-notice:not(:empty){background:#e3bd780b;border-left:2px solid var(--gold);padding:14px 16px;margin-bottom:24px}#quest-status:empty{display:none}.pending,.boundary{border:1px solid #debc7755;background:#c4a4620d;border-radius:14px;padding:20px;margin-bottom:24px}.pending h2{font-size:17px}.pending p{font-size:13px}.pending button{width:100%;font-size:13px;margin-top:10px}dialog{color:var(--paper);background:#173c33;border:1px solid #9cb79755;border-radius:22px;max-width:min(540px,calc(100vw - 28px));width:100%;max-height:calc(100svh - 40px);padding:26px;box-shadow:0 30px 120px #0008;overflow:auto}dialog::backdrop{background:#071d18c9;backdrop-filter:blur(5px)}dialog p{font-size:14px;color:#d1ddca}.dialog-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:18px}.dialog-head h2{font-size:25px;margin:6px 0}.dialog-head button{font-size:26px;line-height:1;border:0;padding:8px;min-width:44px}.menu-dialog nav{display:flex;flex-direction:column;gap:8px}.menu-dialog nav>a,.menu-dialog nav>button,.menu-dialog #account-tools>button{display:block;text-decoration:none;padding:12px 15px;color:var(--paper);border-radius:12px;font-size:14px}.menu-dialog nav>a:hover{background:#b7d8b510}.menu-dialog nav>button,.menu-dialog #account-tools>button{width:100%}.help{font-size:14px;border-top:1px solid var(--edge);padding:16px 10px;margin-top:8px}.help summary{cursor:pointer}.help p{font-size:13px;margin-top:14px}.ecosystem{border-top:1px solid var(--edge);margin-top:8px}#journal-content h3{font-size:15px;color:var(--gold);margin:24px 0 8px}#journal-content p{font-size:15px;border-left:1px solid var(--edge);padding-left:15px}#confirm-dialog>button,#adopt-dialog>button{width:100%;margin-top:12px}.still *, .still *:before{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}@media(min-width:1450px){.quest-layout{grid-template-columns:minmax(500px,1.05fr) minmax(620px,1fr)}.reading-pane{padding-top:48px;padding-bottom:64px}}@media(max-width:850px){.topbar{height:72px;padding:10px 22px}.quest-layout{display:block}.city-stage{position:relative;height:300px;min-height:0;border-right:0;border-bottom:1px solid var(--edge)}.city-art{width:100%;height:720px;top:-175px;left:0;object-fit:cover}.city-coordinate{left:23px;top:18px;font-size:8px}.scene-bottom{left:24px;right:24px;bottom:23px;flex-direction:row;align-items:end;justify-content:space-between;gap:16px}.chapter-badge{max-width:50%;font-size:10px;line-height:1.5}.character{gap:10px}.character-portrait{width:48px;height:48px;border-radius:16px}.character-portrait span{font-size:22px}.character-portrait i{width:15px;height:2px;bottom:7px}.character strong{font-size:21px}.character small{font-size:7px}.reading-pane{padding:22px 26px 48px;max-width:700px;margin:0 auto}.reading-meta{font-size:9px;padding-bottom:18px;margin-bottom:26px;gap:16px}.reading-meta span{max-width:50%}.story-paragraph{font-size:16px;line-height:1.75}h1{font-size:36px;letter-spacing:-.045em}.lead{font-size:18px}.eyebrow{font-size:9px}.welcome{padding-top:0}.welcome h1{max-width:10em}.welcome .primary{margin-top:12px}}@media(max-width:390px){.topbar{padding:10px 18px}.city-stage{height:235px}.city-art{height:600px;top:-175px;width:115%;left:-8%}.scene-bottom{left:18px;right:18px;bottom:18px}.chapter-badge{font-size:9px}.reading-pane{padding:20px 20px 40px}h1{font-size:32px}.reading-meta{font-size:8px}.character strong{font-size:18px}.character-portrait{width:42px;height:42px}.choice{padding:15px;font-size:14px}.story-paragraph{font-size:15px}.primary{padding:16px;font-size:15px}dialog{padding:20px}}@media(forced-colors:active){.city-art{display:none}.city-stage{border:1px solid}.choice,.primary{border:1px solid}.character-portrait{border:1px solid}.live-dot{background:CanvasText}}

.city-stage[data-scene="control"] .city-core{filter:drop-shadow(0 0 24px #e3bd7866)}.city-stage[data-scene="tunnels"] .city-art{filter:brightness(.65) saturate(.7)}.city-stage[data-scene="ending"] .city-art{filter:brightness(1.16)}.city-stage[data-scene="roof"] .city-art{transform:translateY(25px) scale(1.08)}.city-stage[data-scene="dispatch"] .city-signal{stroke-width:3px}.city-stage[data-scene="square"] .city-art{filter:brightness(1.08)}

/* Keep the story and decisions readable on small phones. */
.story-paragraph{font-size:18px}
@media(max-width:850px){.choice,.primary{font-size:16px}}

.scene-card h1{scroll-margin-top:24px}
