:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#07080c;--bg-2:#10131a;--ink:#efe6d6;--muted:#9a9284;--copper:#c46a3a;--copper-2:#e08a52;--sulfur:#d4b44a;--neon:#3de0c5;--danger:#c23b4a;--panel:#0c0e12db;--font-ui:"SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;--font-story:Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px)}*{box-sizing:border-box}html,body,#app{background:var(--bg);height:100%;min-height:100%;color:var(--ink);margin:0}body{font-family:var(--font-ui);overflow:hidden}button,.choice{touch-action:manipulation;font:inherit;color:inherit;cursor:pointer;background:#1a1e26;border:1px solid #3a332a;border-radius:12px;min-height:48px;padding:.85rem 1rem}button:disabled{opacity:.4;cursor:not-allowed}button:not(:disabled):hover,.choice:hover{border-color:var(--copper)}button.primary{border-color:var(--copper);color:#f6e7d4;background:linear-gradient(#5a2e1c,#3a1c12)}.shell{max-width:520px;height:100dvh;min-height:100dvh;padding-top:var(--safe-t);padding-bottom:var(--safe-b);background:#07080c;flex-direction:column;margin:0 auto;display:flex;position:relative;overflow:hidden}.shell.illustrated{max-width:none}.topbar{letter-spacing:.08em;text-transform:uppercase;color:var(--muted);z-index:2;background:linear-gradient(#07080c8c,#0000);justify-content:space-between;align-items:center;gap:.5rem;width:100%;max-width:520px;margin:0 auto;padding:.55rem .75rem;font-size:.72rem;display:flex;position:relative}.topbar button{min-height:36px;padding:.3rem .6rem;font-size:.7rem}.chapter-strip{font-family:var(--font-story);color:var(--sulfur);z-index:2;text-shadow:0 1px 10px #000;width:100%;max-width:520px;margin:0 auto;padding:0 .75rem .35rem;font-size:.92rem;position:relative}.scene-wrap{z-index:0;min-height:0;position:absolute;inset:0}.shell.overlay-ui .scene-wrap,.shell.illustrated .scene-wrap{min-height:0;position:absolute;inset:0}.shell.overlay-ui .screen,.shell.illustrated .screen{z-index:2;background:linear-gradient(#0000,#07080c6b 10%,#07080ceb 34%);gap:.55rem;width:100%;max-width:520px;max-height:60dvh;margin-top:auto;margin-left:auto;margin-right:auto;padding-top:2.2rem;position:relative}.scene-wrap canvas{width:100%;height:100%;display:block}.panel{z-index:2;background:linear-gradient(#07080c1f,#07080cd1 16%,#07080cf0);border-top:1px solid #c46a3a33;flex-direction:column;gap:.75rem;width:100%;max-width:520px;max-height:48dvh;margin:auto auto 0;padding:.9rem 1rem 1.1rem;display:flex;position:relative;overflow-y:auto}.speaker{letter-spacing:.14em;text-transform:uppercase;color:var(--copper-2);font-size:.68rem}.story{font-family:var(--font-story);margin:0;font-size:1.08rem;line-height:1.45}.advance{align-self:flex-end}.screen{flex-direction:column;flex:1;gap:.85rem;padding:1.2rem 1.1rem 1.4rem;display:flex;overflow:auto}.shell.overlay-ui .screen,.shell.illustrated .screen{flex:0 auto}.kicker{color:var(--sulfur);letter-spacing:.18em;text-transform:uppercase;font-size:.7rem}h1,h2{font-family:var(--font-story);margin:0;font-weight:600;line-height:1.15}h1{color:var(--copper-2);text-shadow:0 0 24px #c46a3a59;font-size:clamp(1.9rem,8vw,3rem)}.subtitle{color:var(--sulfur);font-size:.95rem}.lede{font-family:var(--font-story);color:var(--ink);margin:0;line-height:1.45}.muted{color:var(--muted);font-size:.85rem;line-height:1.4}.col{flex-direction:column;gap:.6rem;display:flex}.notice{background:#0e0c0ac7;border:1px solid #3a2a18;border-radius:14px;padding:1rem}.chapter-list{flex-direction:column;gap:.5rem;display:flex}.chapter-btn{text-align:left;flex-direction:column;gap:.15rem;display:flex}.chapter-btn small{color:var(--muted)}.chapter-btn.locked{opacity:.35}.album-grid{grid-template-columns:1fr 1fr;gap:.6rem;padding-bottom:1.5rem;display:grid}.panel .fact-card{min-height:0}.fact-card{text-align:left;background:#0e0c0ad1;border:1px solid #3a2a1c;border-radius:12px;min-height:120px;padding:.7rem}.fact-card h3{color:var(--sulfur);margin:0 0 .4rem;font-size:.85rem}.fact-card p{font-family:var(--font-story);margin:0;font-size:.82rem;line-height:1.35}.fact-card.locked{color:var(--muted)}.toast{border:1px solid var(--copper);z-index:3;background:#1a120e;border-radius:12px;padding:.7rem .8rem;position:absolute;bottom:.8rem;left:.8rem;right:.8rem}.toast strong{color:var(--sulfur);letter-spacing:.1em;text-transform:uppercase;margin-bottom:.25rem;font-size:.72rem;display:block}.minigame{flex-direction:column;gap:.65rem;display:flex}.game-hint{color:var(--muted);margin:0;font-size:.86rem;line-height:1.4}.copper-plate{letter-spacing:.2em;background:linear-gradient(#d0874e,#8a3e1c);border-color:#f0b27a;min-height:96px;font-weight:700}.copper-plate.held{filter:brightness(1.15);box-shadow:0 0 24px #c46a3a8c}.hz-meter,.charge-bar,.rhythm-lane{background:#0c0e12;border:1px solid #3a3328;border-radius:99px;height:18px;position:relative;overflow:hidden}.hz-needle,.rhythm-note,.charge-fill{background:var(--neon);width:10%;position:absolute;top:0;bottom:0}.hz-needle{width:4px;left:20%}.charge-fill{background:linear-gradient(90deg, var(--copper), var(--sulfur));width:0;left:0}.hz-label{color:var(--neon);font-size:.78rem}.clamp-row,.choice-row,.choice-col,.kit{flex-wrap:wrap;gap:.45rem;display:flex}.choice-col{flex-direction:column}.clamp{flex:40%}.clamp.hot{background:#163050;border-color:#6ad;box-shadow:0 0 16px #50a0ff73}.clamp.tight{border-color:var(--neon);background:#1c2a1c}.clamp.shocked,.minigame.flash{outline:2px solid var(--danger)}.wall-talk{min-height:2.6em;color:var(--sulfur);font-family:var(--font-story);margin:0;font-style:italic}.sneak-stage{background:#12141a;border:1px solid #2a2a30;border-radius:12px;height:120px;position:relative;overflow:hidden}.sneak-coat{background:#6b7280;border-radius:8px 8px 0 0;width:36px;height:78px;position:absolute;top:18px;right:8%}.sneak-coat.watching{background:#9aa0aa;box-shadow:0 0 18px #c23b4a73}.sneak-look{color:var(--muted);text-align:right;width:90px;font-size:.68rem;position:absolute;top:8px;right:52px}.sneak-you{background:#22262e;border-radius:8px;padding:.3rem .45rem;font-size:.7rem;position:absolute;bottom:10px;left:8%}.dialog-log{flex-direction:column;gap:.45rem;max-height:28vh;display:flex;overflow:auto}.said{font-family:var(--font-story);margin:0;font-size:.95rem;line-height:1.35}.said.ai strong{color:var(--neon)}.said.lana strong{color:var(--copper-2)}.throw-arena{background:#1a1016;border:1px solid #3a2030;border-radius:12px;height:150px;position:relative}.throw-target{border:1px solid var(--neon);background:#3de0c559;place-items:center;width:90px;height:58px;font-size:.75rem;display:grid;position:absolute;top:12px;left:50%;transform:translate(-50%)}.throw-target.smashed{border-color:var(--danger);background:#3a1020;text-decoration:line-through}.bottle{border:1px solid var(--sulfur);touch-action:none;background:#8a6a20;border-radius:8px 8px 12px 12px;place-items:center;width:46px;height:54px;display:grid;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.breathe-btn,.ampere-btn,.gate-btn,.steel-door{min-height:64px}.breathe-btn{border-color:var(--sulfur);background:#1a1610}.patch-stage{flex-direction:column;gap:.5rem;display:flex}.stump{min-height:64px;color:var(--muted);border:1px dashed #5a4030;border-radius:12px;place-items:center;display:grid}.stump.canned{color:var(--ink);border-style:solid}.stump.taped{border-color:var(--copper);background:#1a120e}.rhythm-lane{height:28px}.rhythm-hit{background:#2a2410;width:8%;position:absolute;top:0;bottom:0;left:46%}.rhythm-hit.hot{background:#3de0c559}.rhythm-note{background:var(--copper-2);width:12px}.water-level{background:#285a5a59;border-radius:8px;height:20%}.skip-btn{color:var(--muted);background:0 0;border:none;min-height:36px;font-size:.75rem;text-decoration:underline}.fade-layer{text-align:center;font-family:var(--font-story);z-index:4;background:#050508;place-items:center;padding:1.5rem;display:grid;position:absolute;inset:0}.credits-text{font-family:var(--font-story);white-space:pre-wrap;line-height:1.5}.menu-overlay{z-index:6;background:#050608db;flex-direction:column;justify-content:center;gap:.6rem;padding:1.4rem;display:flex;position:absolute;inset:0}.title-block{margin-top:auto}.legal-links{color:var(--muted);opacity:.7;justify-content:center;align-items:center;gap:.45rem;margin-top:.35rem;font-size:.72rem;display:flex}.legal-links a{color:inherit;text-underline-offset:2px;padding:.25rem .1rem;text-decoration:underline}.legal-links a:hover,.legal-links a:focus-visible{opacity:1}.legal-links.shell-foot{z-index:2;width:100%;max-width:520px;padding:.1rem 0 max(.5rem,env(safe-area-inset-bottom));background:#07080ceb;margin:0 auto;position:relative}.shell.illustrated .book-screen{max-height:none;padding-bottom:max(1.2rem, calc(.75rem + env(safe-area-inset-bottom)));overflow:visible}.book-times{color:var(--muted);justify-content:space-between;font-size:.75rem;display:flex}.book-screen input[type=range]{width:100%;accent-color:var(--copper)}.book-controls{grid-template-columns:1fr 1.2fr 1fr;gap:.45rem;display:grid}.book-actions{flex-direction:column;align-items:stretch;gap:.45rem;display:flex}.book-list-desktop{max-height:min(38vh,360px);padding-bottom:.2rem;display:none;overflow:auto}.book-row{flex-direction:row;justify-content:space-between;align-items:center;gap:.75rem;width:100%}.book-row strong{min-width:0}.book-row small{font-variant-numeric:tabular-nums;flex:none}.book-list .chapter-btn.on,.book-sheet-list .chapter-btn.on,.book-list .chapter-btn.playing,.book-sheet-list .chapter-btn.playing{border-color:var(--copper);background:#1a120e}.download{color:var(--sulfur);text-underline-offset:2px;align-self:flex-start;margin:.15rem 0 0;padding:.35rem 0;font-size:.85rem;text-decoration:underline;display:inline-block;position:static}.book-sheet-root{z-index:8;position:absolute;inset:0}.book-sheet-root[hidden]{display:none}.book-sheet-backdrop{background:#050608b8;position:absolute;inset:0}.book-sheet{background:#10131a;border:1px solid #3a332a;border-bottom:0;border-radius:16px 16px 0 0;flex-direction:column;max-width:520px;max-height:min(72dvh,640px);margin:0 auto;display:flex;position:absolute;bottom:0;left:0;right:0}.book-sheet-head{justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem .9rem .45rem;display:flex}.book-sheet-head h3{letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:.95rem}.book-sheet-x{min-width:40px;min-height:40px;padding:0;font-size:1.4rem;line-height:1}.book-sheet-list{min-height:0;padding:.35rem .9rem calc(1rem + env(safe-area-inset-bottom));flex:1;overflow-y:auto}@media (width>=720px){.book-list-desktop{display:flex}}
