:root{color:#d5d8d9;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#101714;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline-offset:3px;outline:2px solid #dfba78}button{color:inherit}h1,h2,h3,p{margin:0}button{border:0}::selection{color:#fff;background:#806343}#root{min-height:100svh}.app{--ink:#eee9de;--muted:#abb2a7;--gold:#c4b38a;--line:#c4b38a33;min-height:100svh;color:var(--ink);background:#101714;flex-direction:column;display:flex}button{background:0 0;border:1px solid #0000;border-radius:3px;min-height:44px;padding:10px 16px;line-height:1.5;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#ffffff0b}button:disabled{cursor:not-allowed}.primary,.secondary{justify-content:center;align-items:center;gap:16px;padding:12px 20px;display:inline-flex}.primary{background:var(--gold);color:#142019;border-color:var(--gold);font-weight:600}.primary:hover:not(:disabled){background:#dacba8;border-color:#dacba8}.secondary{border-color:var(--line)}.secondary:hover:not(:disabled){border-color:#c4b38a88}.topbar{min-height:60px;padding:6px max(24px, env(safe-area-inset-right)) 6px max(24px, env(safe-area-inset-left));background:#111a16;border-bottom:1px solid #ffffff0d;justify-content:space-between;align-items:center;gap:16px;display:flex}.brand{letter-spacing:.1em;white-space:nowrap;padding:6px 0;font:22px/1.4 Songti SC,serif}.brand span,.title-menu h1 span{color:#b65a49}.brand small{display:none}.top-actions{gap:4px;font-size:14px;display:flex}.top-actions button[aria-pressed=true]{color:var(--gold)}.landing .topbar{background:0 0;border:0;justify-content:flex-end}.landing .brand{display:none}.hero{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);align-items:center;gap:clamp(32px,5vw,80px);width:min(1240px,100%);margin:auto;padding:32px 40px 64px;display:grid}.title-art{object-fit:contain;width:100%;height:auto;max-height:65svh;display:block}.title-menu{width:100%;max-width:320px}.title-menu h1{letter-spacing:.12em;white-space:nowrap;font:500 clamp(34px,4vw,52px)/1.5 Songti SC,serif}.title-subtitle{color:var(--muted);letter-spacing:.12em;margin:8px 0 32px;font:14px/1.8 Songti SC,serif}.start-actions{gap:10px;display:grid}.start-actions button{text-align:left;justify-content:space-between;width:100%}.save-hint{color:var(--muted);margin-top:18px;font-size:12px}.reader{--reader-width:min(calc(100% - 48px), calc(54svh * 480 / 272), 1100px);flex-direction:column;flex:1;min-width:0;display:flex}.reader-ended .scene-stage{display:none}.reader-ended .dialogue-panel{align-content:center;display:grid}.scene-stage{background:#070a08;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}.scene-composition{width:var(--reader-width);aspect-ratio:480/272;height:auto;display:block;overflow:hidden}.dialogue-panel{border-top:1px solid var(--line);padding:24px 0 max(12px, env(safe-area-inset-bottom));background:#141e18;flex:1}.dialogue-content{width:var(--reader-width);grid-template-columns:minmax(0,1fr) auto;gap:0 32px;margin:auto;display:grid}.story-text{letter-spacing:.025em;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);min-width:0;font-family:Songti SC,Noto Serif CJK SC,serif;line-height:1.95}.story-text:lang(ja){line-break:strict;font-family:Hiragino Mincho ProN,Yu Mincho,Noto Serif CJK JP,serif}.reader-bottom{align-self:start;align-items:flex-start;display:flex}.reader-bottom button{min-width:110px}.reader-tools{color:var(--muted);border-top:1px solid #ffffff10;flex-wrap:wrap;grid-column:1/-1;justify-content:flex-end;gap:4px 12px;margin-top:22px;padding-top:8px;font-size:13px;display:flex}.reader-tools button{padding:8px 10px}.story-text:has(+.story-choices){grid-column:1/-1}.story-choices{grid-column:1/-1;gap:10px;margin-top:20px;display:grid}.story-choices button{text-align:left;white-space:pre-line;overflow-wrap:anywhere;background:#1a2921;border:1px solid #6c755c;padding:14px 18px}.story-choices button:hover:not(:disabled){border-color:var(--gold);background:#26362a}.story-choices small{color:var(--gold);margin-top:6px;display:block}.courage{color:var(--gold);font-size:13px}.ending,.name-form,.confirmation,.credit-card{grid-column:1/-1;min-width:0;line-height:1.8}.ending h1{font:500 clamp(22px,3vw,30px)/1.6 Songti SC,serif}.ending p{color:var(--muted);margin:12px 0}.ending button{max-width:100%;margin:12px 10px 0 0}.confirmation p{margin-bottom:16px}.confirmation button{margin:0 12px 8px 0}.credit-card{text-align:center;padding:8px 0}.credit-card h2{color:var(--gold);margin-bottom:16px;font-size:16px;font-weight:500}.credit-card p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.credit-card button{margin:18px 6px 0}.eyebrow{color:var(--muted);font-size:13px}.name-form h2{font:500 26px/1.6 serif}.name-form p{color:var(--muted);margin:8px 0 16px}.name-form label{font-size:14px;display:block}.name-form input{border:1px solid var(--gold);color:var(--ink);background:#0f1913;border-radius:3px;width:min(100%,340px);margin:8px 0 18px;padding:12px;font-size:18px;display:block}dialog{color:#eee9de;background:#151f19;border:1px solid #636d59;border-radius:6px;width:min(700px,100% - 32px);max-height:calc(100svh - 48px);padding:24px;box-shadow:0 20px 80px #0009}dialog[open]{flex-direction:column;display:flex;overflow:hidden}dialog::backdrop{background:#050907bd}.dialog-head{border-bottom:1px solid #c4b38a33;flex:none;justify-content:space-between;align-items:center;gap:12px;padding-bottom:12px;display:flex}.dialog-head h2{font:500 23px/1.5 Songti SC,serif}.dialog-head button{flex:none;width:44px;padding:0;font-size:24px}.dialog-body{overscroll-behavior:contain;overflow-wrap:anywhere;scrollbar-gutter:stable;min-width:0;min-height:0;padding-top:20px;overflow-y:auto}.chapter-menu{grid-template-columns:1fr 1fr;gap:28px;display:grid}.chapter-menu h3{color:#c4b38a;padding:0 12px 12px;font-size:13px;font-weight:500}.chapter-menu button{text-align:left;border-top:1px solid #ffffff12;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:16px 12px;font-family:Songti SC,serif;display:flex}.chapter-menu button span{color:#c4b38a;flex-shrink:0}.notice,.panel-notice{color:#17231b;background:#ded5bd;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;font-size:14px;line-height:1.6;display:flex}.notice{border-radius:4px;flex:none;width:max-content;max-width:calc(100% - 32px);margin:12px auto;position:relative}.notice button,.panel-notice button{flex-shrink:0}.panel-notice{flex:none;margin-top:12px}.backlog article{border-bottom:1px solid #ffffff16;padding:20px 0}.backlog p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.backlog-order{color:#abb2a7;font:13px/1.7 system-ui}.backlog .secondary{margin-top:18px}.save-list>p,.terms>p,.settings p{color:#abb2a7;margin-bottom:18px;font-size:14px;line-height:1.8}.save-slot{border-bottom:1px solid #ffffff16;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;display:flex}.save-slot h3{font-size:15px;font-weight:500}.save-slot p{color:#abb2a7;margin-top:8px;font-size:13px;line-height:1.7}.save-slot>div:last-child{flex-shrink:0;gap:8px;display:flex}.save-slot button{border-color:#c4b38a44;font-size:14px}.settings label{margin-bottom:26px;font-size:15px;display:block}.settings label span{float:right;color:#c4b38a}.settings input{accent-color:#c4b38a;width:100%;min-width:0;min-height:32px;margin:12px 0 0;display:block}.settings hr{border:0;border-top:1px solid #ffffff20;margin:24px 0}.terms>div{border-top:1px solid #ffffff16;padding:18px 0}.terms h3{margin-bottom:10px;font:500 21px/1.6 Songti SC,serif}.term-definition{white-space:pre-line;overflow-wrap:anywhere;line-height:1.9}.loading{text-align:center;place-content:center;gap:24px;min-height:100svh;padding:24px;display:grid}.loading h1{font:500 32px/1.5 serif}.scene-stage:has(.logic-board){display:block;overflow:visible}.logic-board{background:#101b15;width:min(1120px,100%);margin:auto;padding:20px 24px}.logic-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.logic-toolbar h2{font:500 22px/1.4 Songti SC,serif}.logic-toolbar label{align-items:center;gap:8px;font-size:13px;display:flex}.logic-toolbar input{accent-color:#c4b38a;width:120px;min-height:32px}.logic-board p{font-size:14px;line-height:1.8}.logic-hint{color:#abb2a7;margin:10px 0 16px}.logic-scroll{background:#e9e4d2;border:1px solid #636d59;max-height:58svh;overflow:auto}.logic-scroll svg{height:auto;margin-inline:auto;display:block}.logic-field{cursor:pointer}.logic-field rect{fill:#182822;stroke:#baa777;stroke-width:2px}.logic-field text{fill:#f6eed9;font-size:16px}.logic-field:focus rect,.logic-field:hover rect,.logic-field.selected rect{stroke:#fff;stroke-width:4px}.logic-field.selected rect{fill:#3e5039}.logic-editor{grid-template-columns:1fr 1fr;gap:16px;margin-top:18px;display:grid}.logic-editor label{gap:8px;font-size:14px;display:grid}.logic-editor select{color:#eee7d7;width:100%;min-width:0;min-height:46px;font:inherit;background:#182822;border:1px solid #73785b;border-radius:3px;padding:10px}.logic-editor p,.logic-editor>button{grid-column:1/-1}.logic-editor>button{justify-self:end}.logic-detail{white-space:pre-line;border:1px solid #73785b;margin-top:12px;padding:12px}.logic-detail button{float:right}.text-color-1{color:#e8c980}.text-color-2{color:#f2bc76}.text-color-7{color:#add5c3}.story-text .story-keyword,.story-keyword{min-height:0;font-family:inherit;font-weight:600;line-height:inherit;white-space:normal;text-underline-offset:.24em;cursor:pointer;background:0 0;border:0;border-radius:2px;padding:0;text-decoration:underline;text-decoration-thickness:1px;display:inline}.story-keyword:hover{background:#d8bd7920}.collection-feedback{flex-wrap:wrap;grid-column:1/-1;gap:6px 12px;display:flex}.collection-feedback:has(button){padding:14px 0 0}.collection-feedback button{max-width:100%;font:inherit;text-align:left;overflow-wrap:anywhere;color:#e8c980;border:1px solid #b69b594d;padding:8px 12px;font-size:13px}.keyword-notebook{flex-wrap:wrap;gap:10px;padding:0;list-style:none;display:flex}.keyword-notebook li{color:#add5c3;border-bottom:1px solid #b69b594d;padding:8px 12px}.collection-flight{z-index:5;pointer-events:none;color:#f2bc76;white-space:nowrap;font-weight:600;position:fixed;overflow:hidden}@media (width<=700px){.topbar{min-height:54px;padding:4px max(12px, env(safe-area-inset-right)) 4px max(12px, env(safe-area-inset-left));gap:8px}.brand{letter-spacing:.03em;font-size:19px}.top-actions{gap:0;font-size:13px}.top-actions button{padding:8px 10px}.hero{padding:16px 24px max(32px, env(safe-area-inset-bottom));grid-template-columns:1fr;gap:24px}.title-art{max-height:28svh}.title-menu{max-width:360px;margin:auto}.title-menu h1{font-size:34px}.title-subtitle{margin:4px 0 20px;font-size:13px}.save-hint{margin-top:12px}.reader{--reader-width:min(calc(100% - 36px - env(safe-area-inset-left) - env(safe-area-inset-right)), calc(40svh * 480 / 272))}.dialogue-panel{padding:18px 0 max(12px, env(safe-area-inset-bottom))}.dialogue-content{grid-template-columns:1fr}.reader-bottom{grid-row:1;justify-content:flex-end;margin:0 0 14px}.reader-tools{justify-content:flex-start;gap:0 4px;margin-top:18px}.reader-tools button{padding:8px}.ending button{width:100%;margin:10px 0 0;display:flex}.credit-card button{max-width:100%}dialog{width:calc(100% - 24px);max-height:calc(100svh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:16px}.dialog-head h2{font-size:21px}.chapter-menu{grid-template-columns:1fr;gap:22px}.save-slot{flex-direction:column;align-items:flex-start;gap:12px}.save-slot>div:last-child{align-self:flex-end}.logic-board{padding:12px}.logic-toolbar{gap:6px}.logic-toolbar h2{width:100%;font-size:19px}.logic-editor{grid-template-columns:1fr}.logic-editor select{font-size:16px}.logic-editor>button{width:100%}}@media (height<=500px) and (width>=701px){.topbar{min-height:48px;padding-block:2px}.dialogue-content{grid-template-columns:1fr}.reader-bottom{grid-row:1;justify-content:flex-end;margin-bottom:14px}.dialogue-panel{padding-top:12px}.story-text{line-height:1.65}.reader-tools{margin-top:12px}.hero{gap:24px;padding-block:16px}.title-art{max-height:65svh}.title-menu h1{font-size:32px}.title-subtitle{margin-bottom:14px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.language-picker{min-width:0;color:var(--gold);align-items:center;gap:6px;display:inline-flex}.language-picker>span{white-space:nowrap;font-size:12px}.language-picker select{color:var(--ink);border:1px solid var(--line);max-width:160px;min-height:44px;font:inherit;background:#111a16;border-radius:3px;padding:8px}.topbar,.top-actions{flex-wrap:wrap}.top-actions{justify-content:flex-end}.title-menu h1{white-space:normal;overflow-wrap:anywhere}.start-actions button,.chapter-menu button,.story-choices button,.collection-feedback button{text-align:start}.story-text,.dialogue-content,.dialog-head h2,.save-slot>div{overflow-wrap:anywhere}.dialogue-content>*,.save-slot>div{min-width:0}.scene-composition,.logic-scroll{direction:ltr}[dir=rtl] .settings label span,[dir=rtl] .logic-detail button{float:left}[dir=rtl] .story-text{letter-spacing:normal}.story-text:lang(ar),.story-text:lang(ur){font-family:Noto Naskh Arabic,Geeza Pro,serif;line-height:2}@media (width<=700px){.topbar{align-items:flex-start}.top-actions{flex:100%;justify-content:space-between}.language-picker select{max-width:140px;font-size:16px}}[dir=rtl] .forward-arrow{display:inline-block;transform:scaleX(-1)}.language-picker{direction:ltr}:where(:lang(ar),:lang(ur),:lang(hi),:lang(mr),:lang(bn),:lang(ta),:lang(te)) :is(.brand,.title-menu h1,.title-subtitle){letter-spacing:normal}.game-confirmation{border-color:#a4946b;width:min(440px,100% - 32px);padding:28px}.game-confirmation::backdrop{background:#050907a8}.confirmation-copy{overscroll-behavior:contain;min-height:0;overflow-y:auto}.confirmation-copy h2{color:#d1bf92;margin:0 0 16px;font-size:24px;font-weight:500}.confirmation-copy p{color:#ddd6c7;overflow-wrap:anywhere;margin:0;line-height:1.85}.confirmation-actions{flex:none;justify-content:flex-end;gap:12px;padding-top:26px;display:flex}.confirmation-actions button{white-space:normal;overflow-wrap:anywhere;min-width:96px;min-height:44px}@media (width<=480px){.game-confirmation{padding:22px}.confirmation-actions>button{flex:1;min-width:0}}.collection-search{z-index:1;background:#151f19;border-bottom:1px solid #c4b38a33;margin-bottom:16px;padding:0 0 16px;position:sticky;top:0;box-shadow:0 -20px #151f19}.terms>.collection-search{border-top:0;padding:0 0 16px}.collection-search label{color:#c4b38a;margin-bottom:8px;font-size:14px;display:block}.collection-search>div{align-items:center;gap:8px;display:flex}.collection-search input{color:#eee9de;background:#0f1913;border:1px solid #73785b;border-radius:3px;flex:1;width:100%;min-width:0;min-height:44px;padding:8px 12px;font-size:16px}.collection-search button{overflow-wrap:anywhere;border:1px solid #c4b38a44;flex:0 auto;font-size:14px}.collection-selected{background:#c4b38a10;box-shadow:inset 3px 0 #c4b38a;padding-inline:12px!important}[dir=rtl] .collection-selected{box-shadow:inset -3px 0 #c4b38a}.logic-scroll g[role=button]{cursor:pointer}.logic-scroll g[role=button]:focus-visible{outline-offset:3px;outline:3px solid #755315}.logic-field.readonly{cursor:default}.logic-field.readonly:hover rect{stroke:#baa777;stroke-width:2px}.logic-detail,.logic-editor{scroll-margin-block:20px}.logic-detail p{overflow-wrap:anywhere}.story-text span:lang(ar),.story-text span:lang(ur){letter-spacing:normal;font-family:Noto Naskh Arabic,Geeza Pro,serif}span.story-keyword{cursor:text;text-decoration:none}.story-choices button:disabled{opacity:.7;border-style:dashed}.settings input,.logic-toolbar input{min-height:44px}.name-form input[aria-invalid=true]{border-color:#e19b88}.name-form [role=alert]{color:#f3b9a9}.evidence-caption{width:var(--reader-width);color:var(--gold,#c5b47d);overflow-wrap:anywhere;margin:0 auto 12px;padding:.5rem 0;font-size:.9rem}.evidence-caption summary{cursor:pointer;width:fit-content;padding:.35rem 0}.evidence-caption p{color:var(--text,#eee9dc);white-space:pre-wrap;line-height:1.8}.media-status{z-index:30;color:#f3e7bb;overflow-wrap:anywhere;background:#153c30;border-bottom:1px solid #9c8950;padding:12px 20px;position:sticky;top:0}.media-status button{margin-inline-start:16px}.media-status details{margin-top:8px;font-size:14px}
