:root{color-scheme:dark;--bg:#11151c;--panel:#1b212b;--panel-2:#232b37;--ink:#f2f0ed;--muted:#9fa8b5;--soft:#bdc4cd;--line:#ffffff14;--accent:#e9aa82;--accent-ink:#25190f;--good:#a6cfb3;--bad:#f19d91;--font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;--reader:17px;--art-width:47%}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;border:0;background:none;touch-action:manipulation}button:disabled{cursor:default;opacity:.38}a{color:var(--accent);text-underline-offset:4px}button,summary,a,input{outline-offset:5px}button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent)}button:active:not(:disabled){transform:scale(.98)}svg{width:22px;height:22px;stroke-width:1.65;flex-shrink:0;display:inline-block;vertical-align:middle}button{transition:background .18s,transform .16s,color .18s}h1,h2,h3,p{margin-top:0}h1,h2,h3{text-wrap:balance}h1:focus{outline:0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;z-index:100;top:-70px;left:16px;background:var(--bg);padding:15px}.skip-link:not(:focus){clip-path:inset(50%);width:1px;height:1px;padding:0;overflow:hidden}.skip-link:focus{top:10px}
.game-header{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:27px 32px;pointer-events:none}.game-header button{pointer-events:auto}.brand{display:flex;align-items:center;gap:12px;text-align:left;color:white;padding:0;filter:drop-shadow(0 2px 8px #0005)}.brand-symbol{font:600 40px/1 Georgia,serif;letter-spacing:-7px;width:36px;display:inline-block}.brand-symbol>span{color:var(--accent)}.brand>span:last-child{font-size:12px;letter-spacing:2.5px;font-weight:700}.brand small{display:block;font-size:10px;letter-spacing:4px;font-weight:400;margin-top:5px;opacity:.8}.header-actions{display:flex;gap:10px}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#ffffff0c;color:var(--soft)}.icon-button:hover{background:#ffffff19;color:white}.glass{background:#13192278;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid #ffffff12}.glass.playing{color:var(--accent)}
.game-shell{display:grid;grid-template-columns:var(--art-width) 1fr;min-height:100svh}.art-stage{position:sticky;top:0;height:100svh;overflow:hidden;background:#263244}.scene-image{width:100%;height:100%;object-fit:cover;object-position:53% 50%;display:block}.art-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0d15203b 0%,transparent 32%,#10151c0a 52%,#10151ccf 100%)}.art-caption{position:absolute;left:8%;bottom:7%;right:8%;text-shadow:0 2px 18px #0004}.chapter-number{font-size:14px;font-weight:600;margin-bottom:17px;letter-spacing:1px}.chapter-number span{font-weight:400;opacity:.5;margin-left:8px}.art-chapter{font-size:clamp(42px,5.2vw,76px);font-weight:600;line-height:1.04;letter-spacing:-2.9px;margin-bottom:32px}.act-progress{display:flex;gap:8px;max-width:200px}.act-progress i{height:3px;flex:1;background:#ffffff30;border-radius:3px}.act-progress i.reached{background:var(--accent)}.art-location{display:flex;align-items:center;gap:9px;color:#eee8dfd9;font-size:12px;margin:20px 0 0}.art-location svg{width:16px;height:16px}.reading-pane{height:100svh;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#35404d transparent}.reading-inner{max-width:696px;padding:104px 52px 132px;margin:auto}.intro-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;gap:15px;padding-bottom:25px;margin-bottom:35px;border-bottom:1px solid var(--line)}.intro-meta span:first-child{color:var(--soft)}.player-hud{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:34px}.player-identity{display:flex;align-items:center;gap:12px;text-align:left;padding:0;min-width:0}.avatar{width:42px;height:42px;border:1px solid #e9aa8233;border-radius:15px;background:#e9aa820b;display:flex;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0}.player-identity>span:last-child{min-width:0}.player-identity b{display:block;font-weight:600;font-size:13px;max-width:160px;overflow:hidden;text-overflow:ellipsis}.player-identity small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.vitals{display:flex;align-items:center;gap:15px;font-size:12px}.vitals>span{display:flex;gap:5px;align-items:center;white-space:nowrap}.vitals svg{width:16px;height:16px;color:var(--muted)}.vitals>span:first-child svg{color:var(--bad)}.vitals b{font-variant-numeric:tabular-nums;font-weight:600}.scene-kicker{display:flex;align-items:center;gap:16px;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:15px}.scene-kicker>span:first-child{color:var(--accent);font-size:10px;font-weight:650;letter-spacing:1.7px}.scene-heading h1{font-size:clamp(30px,3.1vw,46px);font-weight:580;line-height:1.08;letter-spacing:-1.7px;margin:0 0 30px;text-wrap:balance}.prose{font-size:var(--reader);line-height:1.75;color:var(--soft);letter-spacing:.02px}.prose p{margin-bottom:20px}.prose p:last-child{margin-bottom:0}.prose .dialogue{color:var(--ink);border-left:2px solid var(--accent);padding-left:20px;margin:25px 0;font-weight:450}.decisions-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:36px 0 15px}.decisions-heading h2{font-size:14px;margin:0;font-weight:600}.decisions-heading>span{font-size:10px;display:flex;gap:5px;align-items:center;color:var(--muted)}.decisions-heading svg{width:14px;height:14px}.choices{display:grid;gap:9px}.choice{display:flex;align-items:center;gap:15px;text-align:left;background:var(--panel);border:1px solid #ffffff08;border-radius:17px;min-height:88px;padding:18px;position:relative}.choice:not(:disabled):hover{background:#2b303a;border-color:#e9aa8260}.choice-key{height:28px;width:28px;border:1px solid #ffffff21;flex-shrink:0;border-radius:50%;color:var(--muted);font-size:11px;font-weight:650;display:flex;align-items:center;justify-content:center}.choice-key svg{width:14px;height:14px}.choice-copy{display:flex;flex-direction:column;gap:9px;flex:1}.choice-title{font-size:calc(var(--reader) - 2px);line-height:1.4;font-weight:500;letter-spacing:-.15px}.choice-meta{font-size:10px;line-height:1.45;display:flex;gap:6px;align-items:center;color:var(--muted)}.choice-meta svg{width:12px;height:12px}.choice-arrow{width:15px;height:15px;color:#697585}.choice.special .choice-meta{color:var(--accent)}.choice.danger .choice-meta{color:var(--bad)}.start-game{margin-top:35px}.starting-professions{display:flex;align-items:center;margin-bottom:20px}.starting-professions>span{width:37px;height:37px;border-radius:50%;background:var(--panel-2);border:3px solid var(--bg);display:flex;align-items:center;justify-content:center;margin-right:-8px;color:var(--soft)}.starting-professions svg{width:16px;height:16px}.starting-professions p{margin:0 0 0 21px;font-size:11px;line-height:1.5;color:var(--muted)}.starting-professions b{color:var(--soft);font-weight:500}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:14px 21px;border-radius:14px;font-weight:600;font-size:14px}.primary{background:var(--accent);color:var(--accent-ink)}.primary:hover{background:#fac5a3}.primary svg{width:18px;height:18px}.secondary{background:var(--panel-2);color:var(--ink)}.secondary:hover{background:#313b49}.full{width:100%}.start-button{width:100%;justify-content:space-between;height:57px;font-size:15px}.start-caption{text-align:center;font-size:10px;color:var(--muted);margin:13px 0 0}.scene-note{font-size:12px;color:var(--muted);margin-top:32px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.scene-note summary{list-style:none;min-height:55px;display:flex;align-items:center;gap:10px;cursor:pointer}.scene-note summary::-webkit-details-marker{display:none}.scene-note summary svg:first-child{width:16px;height:16px}.scene-note summary svg:last-child{width:14px;height:14px;margin-left:auto;transition:transform .2s}.scene-note[open] summary svg:last-child{transform:rotate(90deg)}.scene-note p{line-height:1.7;margin:0 0 20px}.story-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:16px}.save-status{display:flex;gap:6px;align-items:center;font-size:10px;color:var(--muted)}.save-status svg{width:12px;height:12px}.rewind-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;color:var(--soft);font-size:11px;padding:5px 0}.rewind-button svg{width:16px;height:16px}.rewind-button b{font-size:10px;background:var(--panel-2);padding:5px 7px;border-radius:6px}.memory,.resource-warning{display:flex;align-items:flex-start;gap:12px;margin:25px 0;font-size:13px;line-height:1.6;padding:15px 18px;border-radius:13px;background:#e9aa820a;color:var(--accent)}.memory>svg,.resource-warning>svg{width:18px;height:18px;margin-top:2px}.memory strong{display:block;font-size:10px;letter-spacing:.5px;margin-bottom:6px}.memory div{color:var(--soft)}.memory strong{color:var(--accent)}.resource-warning{color:var(--bad);background:#ef958810;margin:0 0 22px}
.dock{position:fixed;z-index:8;bottom:22px;left:calc(var(--art-width) + (100% - var(--art-width))/2);transform:translateX(-50%);display:flex;gap:6px;background:#2a303cd9;border:1px solid #ffffff15;box-shadow:0 12px 40px #0005,inset 0 1px #ffffff09;backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);padding:6px;border-radius:24px;width:310px}.dock button{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--muted);border-radius:18px;padding:10px 15px 8px;font-size:9px;font-weight:500}.dock svg{width:22px;height:22px;stroke-width:1.7}.dock button.active{background:#ffffff10;color:var(--ink)}.dock button.active svg{color:var(--accent)}.dock button:hover{background:#ffffff0c}.stage-enter .scene-image{animation:art-arrive .55s ease-out}.stage-enter .reading-inner{animation:page-arrive .35s ease-out}@keyframes art-arrive{from{opacity:.4;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}@keyframes page-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* Native-style sheets, with one focus-trapped surface for every secondary task. */
dialog{color:var(--ink);background:#1a2029;border:1px solid #ffffff13;width:min(660px,calc(100% - 36px));max-height:90svh;border-radius:28px;padding:0;box-shadow:0 35px 110px #0008;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#45505f transparent}body:has(dialog[open]){overflow:hidden}dialog::backdrop{background:#070b12a8;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}dialog[open]{animation:sheet-enter .25s ease-out}@keyframes sheet-enter{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}.modal-inner{padding:32px}.modal-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:25px}.modal-top .icon-button{width:44px;height:44px;flex-shrink:0}.modal-top .icon-button svg{width:18px;height:18px}.eyebrow{color:var(--accent);font-size:10px;letter-spacing:1.6px;font-weight:600;margin:0 0 10px}.modal-top h2{font-size:28px;letter-spacing:-.8px;line-height:1.13;margin:0;font-weight:600}.modal-intro{font-size:14px;line-height:1.65;color:var(--muted);margin-bottom:24px}.input-label{display:block;margin:22px 0 10px;font-size:12px;color:var(--soft);font-weight:600}.name-input{display:block;width:100%;padding:15px 17px;background:#10161e;border:1px solid #ffffff0f;border-radius:13px;font-size:17px;color:var(--ink)}.archetypes{display:grid;grid-template-columns:1fr 1fr;gap:9px}.archetype{display:flex;align-items:center;text-align:left;gap:12px;min-height:88px;border-radius:16px;background:var(--panel-2);border:1px solid transparent;padding:16px}.archetype>svg{width:25px;height:25px;color:var(--muted)}.archetype b{font-size:12px;display:block;margin-bottom:6px;line-height:1.3}.archetype small{font-size:10px;line-height:1.4;color:var(--muted);display:block}.archetype.selected{border-color:#e9aa8288;background:#e9aa8211}.archetype.selected>svg{color:var(--accent)}.bio-panel{margin:22px 0 28px}.bio-panel>p{font-size:14px;line-height:1.7;color:var(--soft)}.bio-facts{display:grid;gap:7px;font-size:12px;line-height:1.55;color:var(--muted)}.bio-facts strong{color:var(--soft);font-weight:600}.points-header{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;margin:25px 0 15px}.points-header b{font-size:10px;background:#e9aa8217;color:var(--accent);padding:7px 10px;border-radius:8px;white-space:nowrap}.allocate{background:#10161e;border-radius:17px;overflow:hidden}.allocate-row{display:flex;align-items:center;gap:12px;padding:9px 17px;border-bottom:1px solid var(--line);font-size:13px}.allocate-row:last-child{border:0}.allocate-row>svg{width:18px;height:18px;color:var(--muted)}.stepper{margin-left:auto;display:flex;align-items:center;background:var(--panel-2);border-radius:10px}.stepper button{height:44px;width:44px;font-size:22px;color:var(--accent)}.stepper b{width:26px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}.modal-footer{display:grid;gap:18px;margin-top:20px}.modal-footer small{font-size:11px;color:var(--muted);line-height:1.6}.modal-footer .primary{width:100%;min-height:52px}.text-button{display:inline-flex;align-items:center;gap:7px;min-height:44px;color:var(--accent);font-size:12px}.text-button svg{width:16px;height:16px}.mini-attrs{margin:22px 0;background:#111721;border-radius:16px;padding:8px 16px}.mini-attr{display:flex;align-items:center;gap:10px;padding:13px 0;font-size:12px;border-bottom:1px solid var(--line)}.mini-attr:last-child{border:0}.mini-attr>svg{width:16px;height:16px;color:var(--muted)}.mini-attr>b{width:10px;text-align:right;font-size:12px}.dots{display:flex;gap:4px;margin-left:auto}.dots i{width:7px;height:7px;background:#ffffff10;border-radius:50%}.dots i.on{background:var(--accent)}.inventory{margin-top:27px}.inventory h3,.section-label{font-size:11px;font-weight:550;color:var(--muted);letter-spacing:.6px}.inventory h3 svg{width:17px;height:17px;margin-right:5px}.item-list{display:flex;gap:7px;flex-wrap:wrap}.item{background:#303845;padding:10px 13px;font-size:11px;line-height:1.3;border-radius:9px;color:var(--soft)}.journey{margin:25px 0;display:grid;grid-template-columns:1fr 1fr;gap:20px}.journey-step{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px}.journey-dot{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #ffffff24;flex-shrink:0}.journey-dot svg{width:14px;height:14px}.journey-step.current{color:var(--ink)}.journey-step.current .journey-dot{color:var(--accent);border-color:var(--accent)}.journey-step small{display:block;font-size:9px;margin-top:5px;color:var(--muted)}.journey-step.done .journey-dot{color:var(--good);background:#a6cfb30a}.tabs{display:flex;background:#111721;padding:4px;border-radius:12px;margin-bottom:25px;gap:4px}.tabs button{flex:1;min-height:40px;font-size:12px;border-radius:9px;color:var(--muted);padding:8px}.tabs button.selected{background:#333c4a;color:var(--ink);box-shadow:0 2px 4px #0003}.history-prose{color:var(--soft);font-size:14px;line-height:1.8}.history-prose h3{font-size:16px;color:var(--ink);margin:28px 0 10px}.history-prose strong{font-weight:600;color:var(--ink)}.source{padding:5px 0 20px;margin-bottom:18px;border-bottom:1px solid var(--line);font-size:13px;line-height:1.7}.source a{font-weight:600;text-decoration:none}.source small{display:block;color:var(--muted);margin:8px 0}.source p{color:var(--soft);margin:0}.journal-list{list-style:none;margin:0;padding:0}.journal-entry{padding:5px 0 25px 22px;position:relative;border-left:1px solid #ffffff16}.journal-entry:before{content:'';position:absolute;left:-4px;top:8px;width:7px;height:7px;border-radius:50%;background:var(--accent)}.journal-entry small{font-size:10px;color:var(--accent)}.journal-entry h3{font-size:19px;margin:10px 0 13px;letter-spacing:-.4px}.journal-entry p{font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:10px}.journal-entry .journal-choice{color:var(--ink);font-weight:500}.relation-card{display:flex;gap:15px;border-bottom:1px solid var(--line);padding:20px 0}.relation-initials{width:44px;height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#2e3845;color:var(--accent);border-radius:15px;font-size:12px}.relation-card h3{font-size:15px;margin:0 0 5px}.relation-card small{font-size:10px;color:var(--muted)}.relation-status{display:block;color:var(--accent);font-size:11px;margin:13px 0 8px}.relation-card p{font-size:13px;line-height:1.7;color:var(--muted);margin:0}.empty-info{font-size:12px;line-height:1.7;color:var(--muted);margin:22px 0}.settings-group{background:#111721;border-radius:16px;padding:0 17px;margin-bottom:27px}.setting-row{padding:19px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.setting-row h3{font-size:14px;margin:0 0 7px}.setting-row p{font-size:12px;color:var(--muted);margin:0}.switch{width:49px;height:29px;border-radius:20px;background:#3c4653;padding:3px;flex-shrink:0}.switch i{display:block;background:white;border-radius:50%;width:23px;height:23px;transition:transform .2s;box-shadow:0 2px 3px #0004}.switch.on{background:var(--accent)}.switch.on i{transform:translateX(20px)}.setting-link{display:flex;align-items:center;gap:12px;width:100%;min-height:57px;border-bottom:1px solid var(--line);text-align:left;padding:12px 0;font-size:13px}.setting-link:last-child{border:0}.setting-link>svg:first-child{color:var(--muted);width:19px;height:19px}.setting-link>svg:last-child{margin-left:auto;width:14px;height:14px;color:var(--muted)}.setting-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.danger-button{color:var(--bad)}.outcome-story{font-size:21px;line-height:1.6;letter-spacing:-.35px;margin-bottom:25px}.deltas{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 30px}.delta{font-size:12px;display:flex;align-items:center;gap:7px;background:#101720;padding:10px 12px;border-radius:11px;line-height:1.4}.delta svg{width:15px;height:15px}.delta small{font-size:10px;color:var(--muted)}.positive{color:var(--good)}.negative{color:var(--bad)}.roll-result{font-size:12px;display:flex;align-items:center;gap:8px;background:#111721;border-radius:12px;padding:15px;color:var(--soft)}.roll-result span{margin-left:auto;font-size:10px;color:var(--muted)}.roll-result b{font-size:20px;color:var(--ink)}.roll-result svg{width:18px;height:18px}dialog[data-kind="outcome"]{max-width:530px}
/* Optional score. No media is downloaded until the player asks to listen. */
.music-cover{height:172px;border-radius:18px;background:linear-gradient(135deg,#38404e,#192330);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:1px solid #ffffff09}.music-cover>svg{width:34px;height:34px;color:var(--accent)}.music-cover>span{font-size:11px;letter-spacing:3px;margin-top:3px}.music-cover b{font-weight:400;color:var(--accent)}.music-cover small{font-size:10px;color:var(--muted)}.now-playing{display:flex;align-items:center;justify-content:space-between;margin:24px 0}.now-playing small{font-size:10px;color:var(--accent)}.now-playing h3{font-size:20px;margin:7px 0;letter-spacing:-.4px}.now-playing p{font-size:12px;margin:0;color:var(--muted)}.equalizer{display:flex;align-items:center;gap:4px;height:24px}.equalizer i{width:3px;height:6px;border-radius:3px;background:var(--accent)}.equalizer.playing i{animation:equalize .8s ease-in-out infinite alternate}.equalizer i:nth-child(2){animation-delay:-.3s}.equalizer i:nth-child(3){animation-delay:-.6s}.equalizer i:nth-child(4){animation-delay:-.2s}@keyframes equalize{to{height:23px}}.volume-control{display:flex;gap:15px;align-items:center;padding:23px 5px;color:var(--muted)}.volume-control svg{width:18px;height:18px}.volume-control input{width:100%;accent-color:var(--accent);min-height:28px;cursor:pointer}.track-list{background:#111721;border-radius:15px;padding:0 16px}.track-list button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 0;text-align:left;font-size:13px;border-bottom:1px solid var(--line);min-height:64px}.track-list button:last-child{border:0}.track-list button>span>svg{width:15px;height:15px;margin-right:6px}.track-list small{display:block;color:var(--muted);margin-top:7px;font-size:10px}.track-list button>svg{width:17px;height:17px;color:var(--muted)}.track-list button.selected{color:var(--accent)}.track-list button.selected>svg{color:var(--accent)}.music-credit{font-size:10px;color:var(--muted);line-height:1.7;margin:20px 0 0}.music-credit a{color:var(--soft)}
.ending-card{text-align:center;padding:20px 0}.ending-card>img{width:46px;height:46px;opacity:.6;margin-bottom:28px}.ending-card h1{font-size:49px;letter-spacing:-1.5px;line-height:1.1;margin-bottom:12px;overflow-wrap:anywhere}.life-years{color:var(--muted);font-size:15px;letter-spacing:3px;margin-bottom:38px}.ending-card h2{font-size:25px;letter-spacing:-.7px;line-height:1.2;margin-bottom:13px}.ending-rule{width:35px;height:1px;background:var(--accent);margin:30px auto}.ending-card .prose{font-size:17px}.legacy{text-align:left;background:var(--panel);padding:22px;border-radius:17px;margin:28px 0}.legacy h3{font-size:10px;letter-spacing:1px;color:var(--accent);margin-bottom:16px}.legacy p{font-size:13px;line-height:1.8;color:var(--soft);margin-bottom:13px}.legacy p:last-child{margin-bottom:0}.ending-facts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;border-bottom:1px solid var(--line);padding-bottom:28px}.ending-facts span{font-size:10px;color:var(--muted);line-height:1.4}.ending-facts b{display:block;font-size:30px;font-weight:500;color:var(--ink);margin-bottom:7px}.ending-actions{display:grid;gap:12px;margin:27px 0}.ending-actions .text-button{justify-content:center}.ending-card .rewind-button{margin:auto}.ghost-label{font-size:10px;color:var(--muted);line-height:1.6;margin:20px 0 0}#toast{position:fixed;left:50%;bottom:110px;transform:translate(-50%,15px);border:1px solid #ffffff19;background:#313a47;box-shadow:0 8px 40px #0005;padding:15px 21px;z-index:100;border-radius:16px;max-width:calc(100% - 32px);width:max-content;font-size:12px;line-height:1.5;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translate(-50%,0)}.large-text{--reader:20px}
@media(min-width:1500px){:root{--art-width:51%}.reading-inner{padding-top:116px}.scene-heading h1{font-size:46px}}
@media(max-width:1100px) and (min-width:761px){:root{--art-width:40%}.reading-inner{padding-left:32px;padding-right:32px}.vitals{gap:10px}.art-chapter{font-size:46px}.art-caption{bottom:11%}}
@media(max-width:760px){:root{--reader:16px}.game-header{padding:19px 20px;padding-top:calc(19px + env(safe-area-inset-top));position:absolute}.brand-symbol{font-size:34px;width:30px}.brand{gap:10px}.brand>span:last-child{font-size:10px;letter-spacing:2px}.brand small{font-size:8px;margin-top:4px}.header-actions{gap:8px}.icon-button{width:44px;height:44px}.header-actions svg{width:19px;height:19px}.game-shell{display:block;min-height:100svh}.art-stage{height:380px;height:48svh;min-height:280px;max-height:440px;position:relative}.scene-image{object-position:50% 47%}.art-shade{background:linear-gradient(180deg,#0c142044,transparent 48%,#11151c9c 85%,#11151c)}.art-caption{left:24px;bottom:30px;right:24px}.chapter-number{font-size:11px;margin-bottom:9px}.chapter-number span{margin-left:4px}.art-chapter{font-size:37px;letter-spacing:-1.4px;line-height:1.08;margin:0;max-width:70%}.art-chapter br{display:none}.act-progress{position:absolute;right:0;bottom:8px;width:64px;gap:4px}.act-progress i{height:3px}.art-location{display:none}.reading-pane{height:auto;overflow:visible;position:relative;border-radius:0}.reading-inner{padding:0 24px 130px;max-width:570px}.intro-meta{font-size:10px;margin-bottom:27px;padding:15px 0 21px}.player-hud{padding:10px 0 20px;margin-bottom:27px}.player-identity{gap:9px}.avatar{width:36px;height:36px;border-radius:12px}.avatar svg{width:19px;height:19px}.player-identity b{font-size:12px;max-width:130px}.player-identity small{font-size:9px}.vitals{gap:11px;font-size:11px}.vitals svg{width:14px;height:14px}.vitals>span{gap:4px}.scene-kicker{font-size:10px;gap:10px;margin-bottom:13px}.scene-kicker>span:first-child{font-size:9px;letter-spacing:1.4px}.scene-heading h1{font-size:33px;letter-spacing:-1.25px;margin-bottom:25px;line-height:1.12}.prose{line-height:1.75}.prose p{margin-bottom:19px}.prose .dialogue{padding-left:16px;margin:24px 0}.decisions-heading{margin-top:31px}.choice{min-height:86px;padding:16px 14px;border-radius:16px;gap:12px}.choice-title{font-size:calc(var(--reader) - 1px);line-height:1.45}.choice-copy{gap:8px}.choice-key{width:25px;height:25px;font-size:10px}.choice-meta{font-size:10px}.choice-arrow{width:13px;height:13px}.dock{left:50%;width:min(320px,calc(100% - 48px));bottom:calc(16px + env(safe-area-inset-bottom));border-radius:25px}.dock button{padding:10px 17px 9px}.dock svg{width:23px;height:23px}.dock button>span:last-child{font-size:9px}.story-bottom{gap:5px}.save-status{font-size:9px}.rewind-button{font-size:10px;gap:5px}.rewind-button b{font-size:9px}.start-caption{font-size:9px}.scene-note{margin-top:26px}.scene-note summary{min-height:56px}.scene-note p{font-size:12px}.start-game{margin-top:30px}.starting-professions{margin-bottom:20px}.starting-professions p{font-size:11px}.start-button{height:55px}.memory,.resource-warning{font-size:12px}.game-header .glass{background:#14212b85}dialog{width:100%;max-width:100%;max-height:92svh;border-radius:27px 27px 0 0;margin:auto 0 0;left:0;right:0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}dialog:before{content:'';display:block;width:34px;height:4px;border-radius:5px;background:#ffffff30;margin:10px auto 0}.modal-inner{padding:22px 24px 32px}.modal-top{margin-bottom:22px}.modal-top h2{font-size:27px}.modal-intro{font-size:13px}.modal-top .eyebrow{font-size:9px}.archetype{padding:13px 11px;gap:10px;min-height:93px}.archetype>svg{width:21px;height:21px}.archetype b{font-size:11px}.archetype small{font-size:9px}.bio-panel>p{font-size:13px}.bio-facts{font-size:11px}.points-header{font-size:11px;gap:8px}.points-header b{font-size:9px;padding:7px 8px}.allocate-row{padding:8px 14px}.stepper button{height:44px;width:44px}.dots{gap:4px}.dots i{width:6px;height:6px}.mini-attr{font-size:11px;gap:8px}.journey{gap:19px 14px}.journey-step{font-size:10px}.journey-step small{font-size:9px}.outcome-story{font-size:20px;line-height:1.6}.roll-result{font-size:11px}.roll-result span{font-size:9px}dialog[data-kind="outcome"]{max-width:100%}.setting-buttons{display:grid}.setting-buttons button{width:100%}.music-cover{height:150px}.ending-card h1{font-size:42px}.ending-card>img{width:40px}.ending-card .prose{font-size:16px}#toast{bottom:calc(110px + env(safe-area-inset-bottom));font-size:11px}.large-text{--reader:19px}}
@media(max-width:360px){.reading-inner{padding-left:19px;padding-right:19px}.game-header{padding-left:19px;padding-right:19px}.scene-heading h1{font-size:30px}.art-caption{left:19px;right:19px}.art-chapter{font-size:33px}.vitals{gap:8px}.player-identity b{max-width:100px}.player-identity small{max-width:100px}.vitals svg{width:12px;height:12px}.modal-inner{padding-left:19px;padding-right:19px}.mini-attr{font-size:10px;gap:7px}.dots{gap:3px}.dots i{width:5px;height:5px}.choice{gap:9px}.choice-arrow{display:none}.points-header{align-items:flex-start}.archetype{display:block}.archetype>svg{margin-bottom:8px}.story-bottom{flex-wrap:wrap}.scene-kicker{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Title screen: a game menu first, an illustrated introduction below. */
[hidden]{display:none!important}.back-home{min-height:44px;display:flex;align-items:center;gap:7px;padding:0 14px;border-radius:30px;border:1px solid #ffffff17;background:#13192299;color:var(--soft);font-size:12px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.back-home svg{width:17px;height:17px}.back-home:hover{color:var(--ink);background:#293340}.home-nav{display:flex;align-items:center;gap:32px;margin-left:auto;margin-right:36px;pointer-events:auto}.home-nav button{min-height:44px;font-size:12px;color:#e0e1e3b3;padding:0}.home-nav button:hover{color:white}.is-home .game-header{padding:30px 5.8%;position:absolute}.is-home .header-actions{gap:10px}.is-home .game-header .glass{background:#11192366}.home-screen{background:#11151c}.home-hero{position:relative;isolation:isolate;min-height:900px;min-height:max(900px,100svh);overflow:hidden;display:flex;align-items:center}.home-art,.home-veil{position:absolute;inset:0;z-index:-1}.home-art{background:#243041;overflow:hidden}.home-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.8s ease-in-out;will-change:opacity}.home-slide.is-current{opacity:1}.home-veil{background:linear-gradient(90deg,#0b111bec 0%,#101622d9 26%,#0f1827a8 44%,#0f182717 76%),linear-gradient(0deg,#11151c 0%,#11151c70 13%,transparent 35%,#0e162e24 82%,#11182473 100%)}.home-main{position:relative;width:min(800px,65%);margin:115px 0 145px 7.5%;animation:home-arrive .8s ease-out both}.home-eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:2.2px;color:#d3d6de;margin-bottom:32px;font-weight:500}.home-eyebrow>span{display:block;width:6px;height:6px;border:1px solid var(--accent);border-radius:50%;box-shadow:0 0 0 5px #e9aa8212}.home-title{font-size:clamp(62px,7.2vw,111px);line-height:.98;font-weight:520;letter-spacing:-5px;display:inline-block;margin:0 0 35px;color:#f6f3ec;text-shadow:0 2px 24px #06101c20;outline:0}.home-year{display:flex;justify-content:center;align-items:center;gap:22px;font-family:Georgia,serif;font-size:29px;font-weight:400;letter-spacing:12px;margin:23px 0 0 7px;color:var(--accent);line-height:1}.home-year i{width:64px;height:1px;background:linear-gradient(90deg,transparent,#e9aa8288);margin-right:0}.home-year i:last-child{background:linear-gradient(90deg,#e9aa8288,transparent);margin-left:-12px}.home-tagline{font-size:clamp(29px,3vw,44px);font-weight:500;line-height:1.14;letter-spacing:-1.3px;margin:0 0 20px;color:#f2efea}.home-description{color:#bbc4d1;line-height:1.8;font-size:15px;max-width:420px;margin-bottom:32px;text-wrap:pretty}.home-game-menu{max-width:467px}.home-play-buttons{display:flex;gap:12px;align-items:stretch}.home-play{min-width:246px;min-height:56px;justify-content:space-between;padding:17px 23px;font-size:14px;border-radius:14px;box-shadow:0 6px 30px #0002}.home-play svg{width:20px;height:20px}.home-new{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px;border:1px solid #ffffff30;border-radius:14px;min-height:56px;color:#d8dee7;background:#ffffff05;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:13px;white-space:nowrap}.home-new:hover{background:#ffffff14;border-color:#ffffff55}.home-new>span{font-size:20px;font-weight:300}.home-new svg{width:16px;height:16px}.home-save{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:15px 0;margin-top:8px;color:var(--soft);min-height:68px}.home-save>img{width:43px;height:43px;object-fit:cover;border:1px solid #ffffff2a;border-radius:11px;filter:saturate(.6);flex-shrink:0}.home-save>span:nth-child(2){min-width:0}.home-save b{font-size:12px;line-height:1.45;font-weight:550;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.home-save b i{font-style:normal;font-weight:400;color:var(--muted)}.home-save small{display:block;font-size:10px;line-height:1.5;color:#919dae;margin-top:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.home-saved-dot{width:5px;height:5px;border-radius:50%;background:#adcab5;display:block;flex-shrink:0}.home-save>.home-saved-dot{margin-left:auto}.home-first-save{display:flex;align-items:center;gap:8px;font-size:10px;color:#a8b4c5;margin:22px 0 9px}.home-meta{display:flex;align-items:center;gap:12px;color:#9caaba;font-size:10px;margin-top:20px}.home-meta i{display:block;width:3px;height:3px;background:#ffffff3b;border-radius:50%}.home-scene-controls{position:absolute;right:6.4%;bottom:155px;width:272px;z-index:2}.home-scene-caption{text-shadow:0 2px 8px #0006}.home-scene-caption>span{color:#d6dce4b3;font-size:10px;letter-spacing:2px;font-variant-numeric:tabular-nums}.home-scene-caption h3{font-size:21px;letter-spacing:-.4px;font-weight:500;margin:12px 0 8px;line-height:1.2}.home-scene-caption p{font-size:11px;line-height:1.6;color:#c3cbd6;margin:0}.home-slide-controls{display:flex;align-items:center;gap:18px;margin-top:16px}.home-slide-selectors{display:flex;gap:7px;flex:1}.home-slide-selectors button{height:44px;flex:1;padding:0;display:flex;align-items:center;justify-content:center}.home-slide-selectors button>span{display:block;width:100%;height:2px;background:#ffffff42;border-radius:5px;transition:background .3s,height .3s}.home-slide-selectors button.selected>span{background:var(--accent);height:3px}.home-slide-selectors button:hover>span{background:#eee}.home-motion{width:36px;min-width:44px;height:44px;display:flex;justify-content:center;align-items:center;border-radius:50%;background:#ffffff09;border:1px solid #ffffff25;color:#e0e5eb}.home-motion svg{width:17px;height:17px}.home-hero-bottom{position:absolute;bottom:42px;left:7.5%;right:6.4%;display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #ffffff21;padding-top:24px}.home-discover{display:flex;align-items:center;gap:15px;min-height:44px;padding:0;font-size:11px;color:#b5bfcc}.home-discover svg{width:16px;height:16px;color:var(--accent)}.home-studio{font-size:9px;color:#8e9bad;letter-spacing:1.1px}.home-studio b{color:#c1c9d3;margin-left:6px;font-weight:550;letter-spacing:2px}.home-experience{padding:92px 7.5% 0;max-width:1680px;margin:auto}.experience-intro{display:grid;grid-template-columns:1.2fr 1fr;column-gap:80px;align-items:end;margin-bottom:49px}.experience-intro .eyebrow{grid-column:1/-1;line-height:1.6;font-size:9px;letter-spacing:1.7px;margin-bottom:19px}.experience-intro h2{font-size:clamp(30px,3.2vw,49px);line-height:1.13;letter-spacing:-1.7px;font-weight:500;margin:0}.experience-intro>p:last-child{font-size:14px;line-height:1.8;color:var(--muted);max-width:380px;margin:0 0 3px}.home-paths{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:23px}.path-visual{position:relative;aspect-ratio:1/1.18;border-radius:14px;overflow:hidden;background:#27313d}.path-visual:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0e152777,transparent 50%)}.path-visual img{width:100%;height:100%;object-fit:cover;transition:transform .8s}.home-path:hover img{transform:scale(1.035)}.path-visual span{position:absolute;z-index:1;bottom:17px;left:19px;font-size:11px;letter-spacing:1px;color:#fff9}.path-text{padding:22px 0}.path-text h3{font-size:19px;line-height:1.25;letter-spacing:-.5px;font-weight:500;margin-bottom:12px;text-wrap:pretty}.path-text p{font-size:12px;line-height:1.8;color:var(--muted);margin-bottom:20px;max-width:270px}.path-text>span{font-size:8px;color:var(--accent);letter-spacing:1.1px}.home-invitation{display:flex;align-items:center;justify-content:space-between;gap:35px;margin-top:76px;padding:56px 0 64px;border-top:1px solid #ffffff14;border-bottom:1px solid #ffffff14}.home-invitation .eyebrow{font-size:9px;margin-bottom:17px;letter-spacing:1.5px}.home-invitation h2{font-size:clamp(29px,3vw,44px);line-height:1.13;letter-spacing:-1.3px;font-weight:500;margin:0}.home-invitation>div:last-child{text-align:center;min-width:250px}.home-invitation .primary{min-height:53px;width:100%;justify-content:space-between;font-size:13px}.home-invitation>div>p:last-child:not(.eyebrow){font-size:10px;line-height:1.8;color:var(--muted);margin:15px 0 0}.home-footer{max-width:1680px;padding:42px 7.5% 30px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:25px;flex-wrap:wrap}.postmode-credit{display:flex;align-items:center;gap:18px;font-size:12px;color:var(--muted)}.postmode-credit b{font-weight:550;color:var(--ink)}.postmode-credit a{min-height:44px;display:flex;align-items:center;gap:9px;color:var(--soft);font-size:10px;text-decoration:none;border:1px solid #ffffff1d;border-radius:30px;padding:10px 15px}.postmode-credit a:hover{color:var(--ink);background:#ffffff09}.postmode-credit svg{width:12px;height:12px}.home-footer-links{display:flex;align-items:center;gap:23px}.home-footer-links button{font-size:10px;color:var(--muted);min-height:44px;padding:0}.home-footer-links button:hover{color:var(--ink)}.home-footer>p{width:100%;border-top:1px solid #ffffff09;margin:15px 0 0;padding-top:25px;font-size:9px;color:#7e8b9f;display:flex;justify-content:space-between;gap:15px}.home-footer>p>span{color:#7e8b9f}.how-to-play{padding:0;margin:30px 0;list-style:none}.how-to-play li{display:flex;gap:20px;margin:0 0 25px}.how-to-play li>span{font-size:12px;color:var(--accent);padding-top:3px}.how-to-play h3{font-size:16px;margin:0 0 9px;font-weight:550}.how-to-play p{font-size:13px;line-height:1.75;color:var(--soft);margin:0}@keyframes home-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(min-width:1600px){.home-main{margin-left:9%;width:850px}.home-title{font-size:126px}.home-description{font-size:16px;max-width:450px}.home-hero-bottom{left:9%}}
@media(max-width:1100px) and (min-width:761px){.home-title{font-size:76px;letter-spacing:-4px}.home-main{margin-left:6%;width:65%;margin-top:140px;margin-bottom:175px}.home-tagline{font-size:36px}.home-description{max-width:380px;font-size:14px}.home-hero{min-height:880px}.home-scene-controls{width:224px;right:5%;bottom:147px}.home-scene-caption h3{font-size:18px}.home-scene-caption p{max-width:200px}.home-veil{background:linear-gradient(90deg,#0b111be8 0%,#101622d1 34%,#0f182771 65%,#0f182723 100%),linear-gradient(0deg,#11151c,transparent 36%)}.home-play{min-width:218px;font-size:13px;padding:16px 19px}.home-new{font-size:12px;padding:15px}.home-game-menu{max-width:420px}.home-meta{font-size:9px}.home-experience{padding:70px 6% 0}.experience-intro{gap:25px}.home-paths{gap:15px}.path-visual{aspect-ratio:1/1.4}.path-text h3{font-size:17px}.path-text p{font-size:11px}.path-text>span{font-size:7px}.home-footer{padding-left:6%;padding-right:6%}.home-footer-links{gap:15px}.home-nav{gap:23px;margin-right:26px}.home-invitation{margin-top:45px}}
@media(max-width:760px){.back-home{font-size:10px;padding:0 10px;gap:5px}.back-home svg{width:15px;height:15px}.game-header:has(.back-home:not([hidden])){gap:12px}.game-header:has(.back-home:not([hidden])) .brand>span:last-child{display:none}.game-header:has(.back-home:not([hidden])) .brand-symbol{width:33px}.game-header:has(.back-home:not([hidden])) .header-actions{gap:8px}.is-home .game-header{padding:21px 24px;padding-top:calc(21px + env(safe-area-inset-top))}.home-nav{display:none}.is-home .header-actions{gap:8px}.home-hero{display:block;min-height:0;min-height:max(860px,100svh);padding-bottom:28px}.home-art{height:100%;bottom:auto}.home-slide{object-position:58% 25%!important}.home-veil{background:linear-gradient(0deg,#11151c 0%,#101723eb 21%,#111b2cd6 46%,#101a2980 73%,#07121d40 100%)}.home-main{padding-top:calc(150px + env(safe-area-inset-top));width:auto;margin:0 24px 0;animation-duration:.5s}.home-eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:25px;gap:9px}.home-eyebrow>span{width:5px;height:5px;box-shadow:0 0 0 4px #e9aa8212}.home-title{font-size:clamp(45px,12.6vw,83px);letter-spacing:-2.8px;margin-bottom:28px;display:block;text-align:left}.home-year{font-size:21px;letter-spacing:9px;gap:18px;justify-content:flex-start;margin:16px 0 0 2px}.home-year i{width:45px}.home-tagline{font-size:30px;letter-spacing:-1px;line-height:1.14;margin-bottom:16px}.home-description{font-size:13px;line-height:1.85;margin-bottom:24px;max-width:365px;color:#c0c9d6}.home-game-menu{max-width:100%}.home-play-buttons{gap:9px;flex-wrap:wrap}.home-play{flex:1;min-width:190px;font-size:13px;min-height:53px;padding:15px 17px}.home-new{min-height:53px;padding:13px 14px;font-size:12px;gap:9px;flex:1;justify-content:space-between}.home-play-buttons:has(.home-new) .home-play{flex-basis:100%}.home-play-buttons .home-new{background:#16202ccc;border-color:#ffffff25}.home-save{margin-top:4px;padding:14px 0;gap:10px}.home-save>img{width:37px;height:37px;border-radius:10px}.home-save b{font-size:11px}.home-save small{font-size:9px}.home-meta{font-size:9px;gap:10px;margin-top:13px}.home-first-save{font-size:9px;margin:16px 0 0}.home-scene-controls{position:relative;width:auto;right:auto;bottom:auto;display:flex;align-items:center;gap:20px;margin:38px 24px 0;border-top:1px solid #ffffff1c;padding-top:17px}.home-scene-caption{flex:1;min-width:0}.home-scene-caption>span{font-size:8px;letter-spacing:1px}.home-scene-caption h3{font-size:13px;letter-spacing:-.2px;margin:8px 0 0;line-height:1.35}.home-scene-caption p{display:none}.home-slide-controls{margin:0;gap:12px;min-width:133px}.home-slide-selectors{width:83px;gap:6px;flex:none}.home-slide-selectors button{width:16px;flex:1}.home-motion{width:36px;min-width:36px;height:44px;border:0;background:none}.home-motion svg{width:16px;height:16px}.home-hero-bottom{position:relative;left:auto;right:auto;bottom:auto;margin:25px 24px 0;padding-top:19px;gap:10px;border-top:1px solid #ffffff0d}.home-discover{font-size:10px;gap:10px;min-height:44px}.home-studio{font-size:7px;letter-spacing:.5px}.home-studio b{display:block;font-size:9px;letter-spacing:1.5px;margin:6px 0 0}.home-experience{padding:54px 24px 0}.experience-intro{display:block;margin-bottom:31px}.experience-intro .eyebrow{font-size:8px;line-height:1.7;letter-spacing:1.1px;max-width:270px;margin-bottom:20px}.experience-intro h2{font-size:32px;letter-spacing:-1.2px;margin-bottom:19px}.experience-intro>p:last-child{font-size:13px;line-height:1.8}.home-paths{grid-template-columns:1fr 1fr;gap:15px}.path-visual{aspect-ratio:1/1.3;border-radius:11px}.path-visual span{font-size:9px;bottom:13px;left:14px}.path-text{padding:17px 0 21px}.path-text h3{font-size:17px;letter-spacing:-.4px;margin-bottom:10px;line-height:1.25}.path-text p{font-size:11px;line-height:1.75;margin-bottom:14px}.path-text>span{font-size:7px;letter-spacing:.6px;line-height:1.7;display:block}.home-invitation{display:block;margin-top:36px;padding:35px 0 39px}.home-invitation .eyebrow{font-size:8px;margin-bottom:17px;letter-spacing:1.2px}.home-invitation h2{font-size:31px;letter-spacing:-1px}.home-invitation>div:last-child{margin-top:27px;min-width:0}.home-invitation .primary{min-height:52px;font-size:13px}.home-invitation>div>p:last-child:not(.eyebrow){font-size:10px}.home-footer{padding:24px 24px calc(23px + env(safe-area-inset-bottom));gap:18px}.postmode-credit{justify-content:space-between;width:100%;font-size:12px;gap:12px}.postmode-credit a{font-size:10px;padding:9px 13px}.home-footer-links{width:100%;justify-content:space-between;gap:10px}.home-footer-links button{font-size:9px}.home-footer>p{font-size:8px;margin-top:4px;padding-top:21px}.how-to-play li{gap:15px}.how-to-play p{font-size:12px}.how-to-play h3{font-size:15px}}
@media(max-width:360px){.is-home .game-header{padding-left:20px;padding-right:20px}.home-main{margin-left:20px;margin-right:20px;padding-top:135px}.home-title{font-size:44px;letter-spacing:-2.5px}.home-eyebrow{font-size:7px;letter-spacing:1.2px}.home-tagline{font-size:28px}.home-description{font-size:12px}.home-scene-controls{margin-left:20px;margin-right:20px;gap:12px}.home-slide-controls{min-width:109px;gap:4px}.home-slide-selectors{width:72px}.home-scene-caption h3{font-size:12px}.home-hero-bottom{margin-left:20px;margin-right:20px}.home-experience{padding-left:20px;padding-right:20px}.experience-intro h2{font-size:29px}.home-paths{gap:12px}.path-text h3{font-size:15px}.path-text p{font-size:10px}.home-footer{padding-left:20px;padding-right:20px}.home-footer-links button{font-size:8px}.home-invitation h2{font-size:29px}}
@media(prefers-reduced-motion:reduce){.home-slide{transform:none!important;transition:none!important}.home-main{animation:none!important}.home-path:hover img{transform:none}}

/* Character creation keeps navigation fixed while each step gets its own view. */
dialog[data-kind="create"]{width:min(600px,calc(100% - 36px));height:min(700px,92dvh);max-height:92dvh;overflow:hidden;padding:0}
dialog[data-kind="create"]::before{display:none}
dialog[data-kind="create"] #modal-content{height:100%;min-height:0}
dialog[data-kind="create"] .modal-inner{height:100%;min-height:0;display:flex;flex-direction:column;padding:0}
.creator-header{flex-shrink:0;padding:28px 28px 0}
.creator-header .modal-top{margin-bottom:23px;align-items:center}
.creator-header .modal-top h2{font-size:27px;outline:none}
.creator-header .eyebrow{font-size:9px;letter-spacing:1.4px;margin-bottom:10px}
.creator-progress{display:flex;list-style:none;gap:16px;padding:0 0 20px;margin:0;border-bottom:1px solid var(--line)}
.creator-progress li{flex:1;display:flex;align-items:center;gap:8px;font-size:11px;color:#8993a2;white-space:nowrap}
.creator-progress li>span{width:23px;height:23px;border-radius:50%;border:1px solid #ffffff26;display:flex;align-items:center;justify-content:center;font-size:10px}
.creator-progress li svg{width:12px;height:12px}
.creator-progress .current{color:var(--ink)}
.creator-progress .current>span{color:var(--accent-ink);background:var(--accent);border-color:var(--accent)}
.creator-progress .done{color:var(--soft)}
.creator-progress .done>span{color:var(--accent);border-color:#e9aa824d;background:#e9aa8210}
.creator-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 28px;scrollbar-width:thin;scrollbar-color:#45505f transparent}
.creator-intro{font-size:13px;color:var(--soft);line-height:1.65;margin:0 0 17px}
.creator-name-step{min-height:100%;display:flex;flex-direction:column;justify-content:center;padding-bottom:16px}
.creator-prologue{display:flex;align-items:center;gap:15px;margin-bottom:25px}
.creator-prologue>span{width:58px;height:58px;display:grid;place-items:center;border:1px solid #e9aa823b;background:#e9aa8209;border-radius:19px;color:var(--accent)}
.creator-prologue svg{width:28px;height:28px}
.creator-prologue p{font-size:14px;margin:0;color:var(--ink)}
.creator-prologue small{display:block;font-size:11px;color:var(--muted);margin-top:7px}
.creator-name-step .creator-intro{font-size:17px;line-height:1.65;color:var(--soft);letter-spacing:-.2px}
.creator-name-step .input-label{margin:16px 0 10px}
.creator-name-step .name-input{font-size:20px;padding:17px 18px}
.creator-hint{font-size:11px;line-height:1.6;color:var(--muted);margin:12px 0 0}
.creator-body .archetypes{gap:9px}
.creator-body .archetype{position:relative;min-height:83px;padding:12px;display:flex;gap:10px}
.creator-body .archetype>svg{width:22px;height:22px;margin:0}
.creator-body .archetype>span{min-width:0;flex:1}
.creator-body .archetype b{font-size:12px;margin-bottom:5px;padding-right:10px}
.creator-body .archetype small{font-size:10px;line-height:1.5}
.creator-body .archetype .creator-selected{position:absolute;right:8px;top:8px;width:11px;height:11px}
.creator-traits{display:grid;gap:10px;margin-top:20px}
.creator-traits p{display:grid;grid-template-columns:67px 1fr;gap:10px;font-size:12px;line-height:1.55;margin:0;color:var(--muted)}
.creator-traits b{font-weight:500;color:var(--soft)}
.creator-traits .creator-perk b{color:var(--accent)}
.creator-bio{border-top:1px solid var(--line);margin-top:17px}
.creator-bio summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:11px;color:var(--soft);cursor:pointer;list-style:none}
.creator-bio summary::-webkit-details-marker{display:none}
.creator-bio summary svg{width:14px;height:14px;transition:transform .2s}
.creator-bio[open] summary svg{transform:rotate(90deg)}
.creator-bio p{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 10px}
.creator-identity{display:flex;align-items:center;gap:8px;margin:0 0 16px;color:var(--soft);font-size:12px;line-height:1.5}
.creator-identity>span{min-width:0;overflow-wrap:anywhere}
.creator-identity svg{width:16px;height:16px;color:var(--accent)}
.creator-identity i{font-style:normal;color:var(--muted)}
.creator-body .points-header{margin:0 0 12px;align-items:center;font-size:12px;gap:8px}
.creator-body .points-header b{font-size:10px;padding:6px 8px}
.creator-body .allocate-row{padding:1px 12px;gap:10px;min-height:48px;font-size:12px}
.creator-body .allocate-row>svg{width:16px;height:16px}
.creator-body .stepper{background:transparent}
.creator-body .stepper button{width:44px;height:44px;font-size:21px}
.creator-body .stepper b{width:24px}
.creator-footer{display:flex;align-items:center;gap:13px;flex-shrink:0;padding:17px 28px 23px;border-top:1px solid var(--line);background:#1a2029}
.creator-footer .primary{flex:1;min-width:0;min-height:52px;justify-content:space-between;gap:9px;padding:14px 18px;font-size:13px}
.creator-back{display:flex;align-items:center;justify-content:center;gap:4px;min-width:68px;min-height:48px;padding:0 6px 0 0;font-size:12px;color:var(--soft)}
.creator-back svg{width:15px;height:15px;transform:rotate(180deg)}
@media(max-width:760px){
 dialog[data-kind="create"]{width:100%;height:min(708px,94dvh);max-height:94dvh;margin:auto 0 0}
 .creator-header{padding:12px 24px 0}
 .creator-header:before{content:'';display:block;width:34px;height:4px;background:#ffffff30;border-radius:5px;margin:0 auto 21px}
 .creator-header .modal-top{margin-bottom:20px;gap:12px}
 .creator-header .modal-top h2{font-size:25px;letter-spacing:-.7px}
 .creator-header .eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:9px}
 .creator-progress{gap:9px;padding-bottom:17px}
 .creator-progress li{font-size:10px;gap:7px}
 .creator-body{padding:17px 24px}
 .creator-body .archetype{min-height:83px;padding:11px 10px;gap:8px}
 .creator-body .archetype>svg{width:20px;height:20px}
 .creator-body .archetype b{font-size:11px}
 .creator-body .archetype small{font-size:9px}
 .creator-traits{margin-top:17px;gap:9px}
 .creator-traits p{font-size:11px;grid-template-columns:62px 1fr;gap:8px}
 .creator-bio{margin-top:14px}
 .creator-footer{padding:15px 24px calc(19px + env(safe-area-inset-bottom));gap:10px}
 .creator-footer .primary{font-size:12px;padding:14px 16px}
}
@media(max-width:360px){
 .creator-header{padding-left:19px;padding-right:19px}
 .creator-header .modal-top h2{font-size:23px}
 .creator-progress li{font-size:9px;gap:5px}
 .creator-body{padding-left:19px;padding-right:19px}
 .creator-body .archetype{gap:7px;padding:10px 8px}
 .creator-body .archetype>svg{width:17px;height:17px}
 .creator-body .archetype b{font-size:10px}
 .creator-body .archetype small{font-size:9px}
 .creator-body .allocate-row{gap:7px;padding-left:9px;padding-right:5px;font-size:11px}
 .creator-body .points-header{font-size:11px}
 .creator-body .points-header b{font-size:9px}
 .creator-footer{padding-left:19px;padding-right:19px;gap:8px}
 .creator-footer .primary{font-size:11px;padding-left:12px;padding-right:12px}
 .creator-back{min-width:53px;font-size:11px}
}

/* Music options belong to Settings; the header button toggles playback directly. */
.music-back{margin:-8px 0 12px;gap:4px}
.music-back svg{transform:rotate(180deg)}
