:root{--bg:#17110c;--surface:#221810;--raised:#2e2116;--text:#f1e4c8;--muted:#bfae90;--border:#4a3a2a;--accent:#e3a548;--on-accent:#1b130c;--danger:#e8836a;--ok:#8fd694;--font-display:"IM Fell English SC", Georgia, serif;--font-story:"Alegreya", Georgia, serif;--font-ui:"Alegreya Sans", system-ui, -apple-system, "Segoe UI", sans-serif;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:var(--font-ui);font-size:17px;line-height:1.5}body{background:var(--bg);color:var(--text);margin:0}h1,h2,.scenario-title,.sheet-title,.section h3,.topbar h1{font-family:var(--font-display);letter-spacing:.01em;font-weight:400}.section textarea,.read-along{font-family:var(--font-story);font-size:1.05rem}.app{flex-direction:column;gap:16px;max-width:640px;margin:0 auto;padding:24px 16px 48px;display:flex}h1{margin:0;font-size:1.6rem}h2{margin:0;font-size:1.3rem}h3{margin:0;font-size:1.05rem}.field{flex-direction:column;gap:6px;display:flex}.field>span{font-weight:600}details>summary{cursor:pointer;align-items:center;min-height:32px;font-weight:600;display:flex}details[open]>summary{margin-bottom:8px}.settings,.custom,.diag{flex-direction:column;gap:12px;display:flex}.settings[open],.custom[open]{border:1px solid var(--border);border-radius:8px;padding:12px}textarea,input{box-sizing:border-box;width:100%;font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);resize:vertical;border-radius:8px;padding:10px 12px;font-size:16px}button{font:inherit;border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);cursor:pointer;border-radius:8px;padding:0 16px}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}button.big{min-height:56px;font-size:1.05rem}button.link{min-height:32px;color:var(--accent);background:0 0;border:none;align-self:flex-start;padding:0;text-decoration:underline}.status{color:var(--muted);margin:0}.status.error{color:var(--danger)}div.status{flex-direction:column;align-items:flex-start;gap:10px;display:flex}div.status p{margin:0}.reading-status{align-items:center;gap:10px;display:flex}.reading-thumb{object-fit:cover;border:1px solid var(--border);border-radius:8px;flex-shrink:0;width:44px;height:44px}.reading-status .chip{align-self:center}.reading-status.found .chip{color:var(--text);border-color:var(--accent)}.status.loading:before{content:"";vertical-align:-1px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:12px;height:12px;margin-right:8px;animation:.8s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.check{align-items:flex-start;gap:10px;min-height:44px;display:flex}.check input{flex:none;width:20px;height:20px;margin:2px 0 0}textarea[readonly]{opacity:.8}.photo-actions{flex-direction:column;gap:8px;display:flex}.scenario{flex-direction:column;gap:12px;display:flex}.section{border:1px solid var(--border);background:var(--surface);border-radius:10px;flex-direction:column;gap:10px;padding:12px;display:flex}.section.current{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.section header{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.section-actions{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.section-actions .primary{flex:1}.badge{background:var(--bg);border:1px solid var(--border);color:var(--muted);border-radius:999px;padding:2px 8px;font-size:.8rem}.badge.done{color:var(--ok);border-color:var(--ok)}.hidden-text{color:var(--muted);margin:0;font-style:italic}.rules{color:var(--muted);flex-direction:column;gap:12px;display:flex}.diag{color:var(--muted);font-size:.85rem}.diag ul{margin:0;padding-left:18px}.player{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border);flex-direction:column;gap:10px;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -4px 16px #0000001f}.player-info,.player .controls{width:100%;max-width:608px;margin:0 auto}.player-info{flex-direction:column;gap:2px;font-size:.95rem;display:flex}.player-info .ended{color:var(--ok);font-weight:600}.player-info .error{color:var(--danger)}.controls{grid-template-columns:1fr 1fr 1fr 44px;gap:8px;display:grid}.controls .close{padding:0}.topbar{justify-content:space-between;align-items:center;min-height:44px;display:flex}.icon-button{border-radius:22px;justify-content:center;align-items:center;width:44px;min-height:44px;padding:0;display:inline-flex}.back-button{color:var(--accent);background:0 0;border:none;align-items:center;gap:4px;padding:0 8px 0 0;font-weight:600;display:inline-flex}.scenario-title{margin:0;font-size:1.5rem;line-height:1.25}.muted{color:var(--muted)}.scan-card{text-align:center;border:2px solid var(--accent);background:var(--surface);border-radius:16px;flex-direction:column;align-items:center;gap:10px;padding:20px 16px;display:flex}.scan-card strong{font-size:1.15rem}.scan-card p{color:var(--muted);margin:0}.scan-card .primary{width:100%}.scan-alternatives{color:var(--muted);align-items:center;gap:10px;display:flex}.scan-alternatives .link,.add-page .link{align-self:center}.scenario-list h2,.group-title{margin:8px 0 0;font-size:1.05rem}.scenario-list ul{flex-direction:column;gap:8px;margin:10px 0 0;padding:0;list-style:none;display:flex}.scenario-list li{align-items:stretch;gap:6px;display:flex}.scenario-item{text-align:left;flex-direction:column;flex:1;align-items:flex-start;gap:2px;min-width:0;padding:12px 14px;font-weight:400;display:flex}.scenario-item strong{font-weight:600}.scenario-list .delete{color:var(--muted);background:0 0;border:none;align-self:center}.empty{border:1.5px dashed var(--border);color:var(--muted);text-align:center;border-radius:10px;margin:10px 0 0;padding:18px}.chip{background:var(--surface);border:1px solid var(--border);color:var(--muted);border-radius:999px;align-self:flex-start;margin:0;padding:6px 12px;font-size:.9rem}.chip.loading:before{content:"";vertical-align:-1px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:10px;height:10px;margin-right:8px;animation:.8s linear infinite spin;display:inline-block}.skeleton{border:1.5px dashed var(--border);min-height:64px;color:var(--muted);border-radius:10px;justify-content:center;align-items:center;animation:1.6s ease-in-out infinite pulse;display:flex}@keyframes pulse{50%{opacity:.55}}button.primary.active:disabled{opacity:1;cursor:default}.add-page{border-top:1px solid var(--border);flex-direction:column;gap:8px;padding-top:8px;display:flex}.add-page-actions{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.settings-list{flex-direction:column;gap:18px;display:flex}.settings-list select{width:100%;min-height:44px;font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:8px;padding:0 10px;font-size:16px}.camera{z-index:50;color:#fff;background:#000;position:fixed;inset:0;overflow:hidden}.camera-video{object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.camera-top{top:calc(12px + env(safe-area-inset-top));justify-content:space-between;display:flex;position:absolute;left:16px;right:16px}.camera-round{color:#fff;background:#00000073;border:none;border-radius:24px;justify-content:center;align-items:center;width:48px;height:48px;min-height:48px;padding:0;display:inline-flex}.camera-round.on{color:#120d09;background:#e3a548}.camera-guide{inset:calc(68px + env(safe-area-inset-top)) 0 156px;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;display:flex;position:absolute}.camera-frame{--corner:#e3a548;--len:36px;--thick:4px;aspect-ratio:1/1.414;background:linear-gradient(var(--corner), var(--corner)) top left / var(--len) var(--thick), linear-gradient(var(--corner), var(--corner)) top left / var(--thick) var(--len), linear-gradient(var(--corner), var(--corner)) top right / var(--len) var(--thick), linear-gradient(var(--corner), var(--corner)) top right / var(--thick) var(--len), linear-gradient(var(--corner), var(--corner)) bottom left / var(--len) var(--thick), linear-gradient(var(--corner), var(--corner)) bottom left / var(--thick) var(--len), linear-gradient(var(--corner), var(--corner)) bottom right / var(--len) var(--thick), linear-gradient(var(--corner), var(--corner)) bottom right / var(--thick) var(--len);background-repeat:no-repeat;border-radius:12px;flex:none;width:auto;height:min(100%,138.572vw);position:relative;box-shadow:0 0 0 100vmax #0000004d}.camera-message{text-align:center;margin:0;position:absolute;top:40%;left:24px;right:24px}.camera-message.error{background:#000000b3;border-radius:14px;flex-direction:column;gap:14px;padding:18px;display:flex}.camera-message.error p{margin:0}.camera-bottom{padding:14px 28px calc(24px + env(safe-area-inset-bottom));background:linear-gradient(#0000,#000000bf);flex-direction:column;gap:14px;display:flex;position:absolute;bottom:0;left:0;right:0}.camera-tips{text-align:center;color:#f1e4c8;margin:0;font-size:.9rem}.camera-controls{justify-content:space-between;align-items:center;display:flex}.camera-spacer{width:48px}@media (orientation:landscape) and (height<=600px){.camera-top{right:auto;left:calc(12px + env(safe-area-inset-left));flex-direction:column;gap:12px}.camera-guide{inset:12px calc(128px + env(safe-area-inset-right)) 12px calc(76px + env(safe-area-inset-left))}.camera-frame{aspect-ratio:1.414;width:min(100%,141.4dvh - 33.936px);height:auto}.camera-bottom{width:120px;padding:12px calc(16px + env(safe-area-inset-right)) 12px 16px;background:linear-gradient(270deg,#000000bf,#0000);justify-content:center;top:0;left:auto}.camera-tips{display:none}.camera-controls{flex-direction:column-reverse;gap:22px}.camera-spacer{height:48px}}.shutter{background:0 0;border:4px solid #fff;border-radius:39px;justify-content:center;align-items:center;width:78px;height:78px;min-height:78px;padding:0;display:inline-flex}.shutter span{background:#fff;border-radius:30px;width:60px;height:60px;transition:transform .1s}.shutter:active span{transform:scale(.9)}.app.with-player{padding-bottom:190px}.player.mini{color:#f1e4c8;max-width:none;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#120d09;border-top:none;border-radius:16px 16px 0 0;gap:8px}.player.mini>*{box-sizing:border-box;width:100%;max-width:608px;margin-left:auto;margin-right:auto}.player button{color:inherit;background:0 0;border-color:#4a3a2a}.player .icon-button{border:none}.mini-row{align-items:center;gap:6px;display:flex}.mini-info{text-align:left;border:none;flex-direction:column;flex:1;align-items:flex-start;gap:1px;min-width:0;padding:0;font-size:.85rem;font-weight:400;display:flex}.mini-info strong{font-size:.95rem}.mini-info span,.player-status{color:#bfae90}.mini-info .ended,.player-status.ended{color:#8fd694;font-weight:600}.player-error{color:#e8836a;margin:0;font-size:.85rem}.play-toggle{border-radius:23px;justify-content:center;align-items:center;width:46px;min-height:46px;padding:0;display:inline-flex;color:#120d09!important;background:#e3a548!important;border:none!important}.play-toggle.big{border-radius:34px;width:68px;min-height:68px}.skip{justify-content:center;align-items:center;width:46px;min-height:46px;padding:0;display:inline-flex;position:relative;border:none!important}.skip span{font-size:.6rem;font-weight:700;position:absolute;top:50%;left:50%;transform:translate(-50%,-38%)}.progress{background:#4a3a2a;border-radius:2px;height:4px;overflow:hidden}.progress>div{background:#e3a548;height:100%;transition:width .1s linear}.times{color:#bfae90;font-variant-numeric:tabular-nums;justify-content:space-between;font-size:.8rem;display:flex}.read-along{margin:0;line-height:1.55}.read-along .word.said{color:#f1e4c8}.read-along .word{color:#8f7f66;transition:color .12s,background-color .12s}.read-along .word.now{color:#120d09;background:#e3a548;border-radius:4px;box-shadow:0 0 0 2px #e3a548}.player-status{font-size:.9rem}.inline-player{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:14px;flex-direction:column;gap:8px;margin-top:4px;padding:12px 14px 14px;display:flex}.inline-player button{color:inherit;border-color:var(--border);background:0 0}.inline-player-top{justify-content:space-between;align-items:center;gap:12px;font-size:.9rem;display:flex}.inline-controls{justify-content:center;align-items:center;gap:32px;margin:-6px 0 10px;display:flex}.inline-player .sound-button{border:1px solid var(--border);text-align:left;min-height:56px;font:inherit;border-radius:12px;align-items:center;gap:12px;padding:8px 14px;display:flex}.speeds{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.speeds button{min-height:40px;font-size:.9rem}.speeds button.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.read-along.inline{border:1px solid var(--border);background:var(--surface);white-space:pre-wrap;border-radius:8px;max-height:16em;margin:0;padding:10px 12px;font-size:1.05rem;line-height:1.6;overflow-y:auto}.read-along.inline .word{color:var(--muted)}.read-along.inline .word.said{color:var(--text)}.read-along.inline .word.now{color:#120d09;background:#e3a548;border-radius:4px;box-shadow:0 0 0 2px #e3a548}.onboarding{flex-direction:column;gap:18px;min-height:calc(100vh - 96px);display:flex}.onboarding h1{margin:0;font-size:1.7rem;line-height:1.2}.onboarding .primary.big{margin-top:auto}.onboarding-top{justify-content:space-between;align-items:center;display:flex}.dots{gap:6px;display:inline-flex}.dots span{background:var(--border);border-radius:4px;width:8px;height:8px}.dots span.on{background:var(--accent);width:22px}.emblem{background:var(--surface);border:2px solid var(--accent);width:96px;height:96px;color:var(--accent);border-radius:48px;justify-content:center;align-items:center;margin-top:12px;display:flex}.how-it-works,.tips{flex-direction:column;gap:10px;margin:0;padding-left:22px;font-size:1.05rem;line-height:1.45;display:flex}.voice-picker{border:none;flex-direction:column;gap:8px;margin:0;padding:0;display:flex}.voice-picker legend{margin-bottom:6px;padding:0;font-weight:600}.voice-option{border:1.5px solid var(--border);background:var(--surface);border-radius:10px;align-items:center;gap:8px;padding:6px 6px 6px 12px;display:flex}.voice-option.selected{border-color:var(--accent)}.voice-option label{cursor:pointer;flex:1;align-items:center;gap:10px;min-height:44px;display:flex}.voice-option label>span{flex-direction:column;display:flex}.voice-option small{color:var(--muted)}.voice-option input{width:20px;height:20px;accent-color:var(--accent);margin:0}.voice-option .preview{border-radius:22px;justify-content:center;align-items:center;width:44px;min-height:44px;padding:0;display:inline-flex}.error-text{color:var(--danger)}.install-tip{border:1px solid var(--border);background:var(--surface);border-radius:12px;flex-direction:column;gap:10px;padding:14px;display:flex}.install-tip div{align-items:center;gap:16px;display:flex}.brand-icon{color:var(--accent);flex:none}.scan-card{border-color:var(--accent);background:var(--surface)}.scan-card strong{font-family:var(--font-display);font-size:1.45rem;font-weight:400}.scenario-item{background:var(--surface);flex-direction:row;align-items:center;gap:12px}.scenario-item-text{flex-direction:column;gap:2px;min-width:0;display:flex}.scenario-item strong{font-family:var(--font-story);font-size:1.1rem;font-weight:500}.empty{flex-direction:column;align-items:center;gap:8px;display:flex}.badge{align-items:center;gap:4px;display:inline-flex}.section-actions button{gap:6px}.section h3{font-size:1.25rem}.scenario-list h2,.group-title{font-family:var(--font-display);color:var(--accent);font-size:1.2rem;font-weight:400}.voice-picker legend{align-items:center;gap:6px;display:inline-flex}.mini-info .ended,.player-status.ended{color:var(--accent);align-items:center;gap:6px;display:inline-flex}.emblem{border-color:var(--accent);color:var(--accent)}button{font-family:var(--font-ui)}.balance-chip{border:1px solid var(--border);background:var(--raised);color:var(--text);font-family:var(--font-story);border-radius:999px;align-self:flex-start;align-items:center;gap:.4rem;margin:0 0 .75rem;padding:.3rem .75rem;font-size:.95rem;display:inline-flex}.balance{font-family:var(--font-display);color:var(--accent);font-size:1.4rem}.trial-note{font-family:var(--font-story);margin:.25rem 0 0}.oot-sheet{border:1px solid var(--accent);background:var(--surface);width:100%;max-width:30rem;max-height:92dvh;color:var(--text);overscroll-behavior:contain;border-bottom:none;border-radius:20px 20px 0 0;margin:auto auto 0;padding:0;overflow-y:auto;box-shadow:0 -12px 40px #0009}.oot-sheet[open]{animation:.22s ease-out sheet-in}.oot-sheet::backdrop{background:#0a0704b3}@keyframes sheet-in{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.oot-sheet[open]{animation:none}}@media (width>=640px){.oot-sheet{border-bottom:1px solid var(--accent);border-radius:20px;margin:auto}}.oot-body{padding:1.4rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));flex-direction:column;gap:.9rem;display:flex}.oot-head{align-items:center;gap:.75rem;display:flex}.oot-head h2{font-family:var(--font-display);color:var(--text);outline:none;margin:0;font-size:1.6rem;line-height:1.15}.oot-text{font-family:var(--font-story);color:var(--muted);margin:0}.oot-footer{flex-wrap:wrap;justify-content:space-between;gap:.5rem 1rem;display:flex}.packs.compact{gap:.6rem}.packs.compact .pack{padding:.7rem .9rem}.packs.compact .pack-price{font-size:1.5rem}.toast{left:50%;bottom:calc(1rem + env(safe-area-inset-bottom));z-index:30;border:1px solid var(--accent);background:var(--raised);width:max-content;max-width:calc(100% - 2rem);color:var(--text);font-family:var(--font-story);border-radius:12px;flex-wrap:wrap;align-items:center;gap:.25rem .75rem;padding:.65rem 1rem;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 8px 24px #00000073}.app.with-player .toast{bottom:calc(6.5rem + env(safe-area-inset-bottom))}.balance-chip.low{border-color:var(--accent)}.balance-chip.empty{border-color:var(--accent);background:var(--accent);color:var(--on-accent)}.balance-chip.empty .brand-icon,.balance-chip.empty .balance-more{color:var(--on-accent)}.balance-chip.empty .balance-more{font-weight:700}button.balance-chip{white-space:nowrap;cursor:pointer;min-height:0;font:inherit;font-family:var(--font-story);flex-flow:row}.balance-more{color:var(--accent);font-family:var(--font-ui);margin-left:.25rem;font-size:.85rem}.packs{flex-direction:column;gap:.75rem;display:flex}.pack{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:12px;grid-template-columns:1fr auto;align-items:baseline;gap:.15rem 1rem;padding:1rem 1.1rem;display:grid;position:relative}.pack input{opacity:0;pointer-events:none;position:absolute}.pack.selected{border-color:var(--accent);background:var(--raised);box-shadow:0 0 0 1px var(--accent)}.pack:focus-within{outline:2px solid var(--accent);outline-offset:2px}.pack-title{font-family:var(--font-display);color:var(--text);grid-area:1/1;font-size:1.35rem}.pack-price{font-family:var(--font-display);color:var(--accent);grid-area:1/2/span 2;align-self:center;font-size:1.8rem}.pack-tagline{font-family:var(--font-story);color:var(--muted);grid-area:2/1}.pack small{grid-area:3/1/auto/-1}.pack-badge{background:var(--accent);color:var(--on-accent);border-radius:999px;padding:.1rem .6rem;font-size:.75rem;font-weight:600;position:absolute;top:-.65rem;right:1rem}.pack-note{font-family:var(--font-story);margin:0}.topup-result p{font-family:var(--font-story);margin:0 0 .5rem}.signed-in-email{overflow-wrap:anywhere}.signed-in-confirm{gap:10px;display:grid}.signed-in-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.restore-intro{font-family:var(--font-story);color:var(--text);margin:0}.code-input{font-family:var(--font-display);letter-spacing:.4em;text-align:center;font-size:1.8rem}.camera-tips strong{color:var(--accent);font-weight:600}.photo-review{z-index:60;color:var(--text);background:#000;flex-direction:column;display:flex;position:fixed;inset:0}.photo-review-image{object-fit:contain;opacity:.85;flex:1 1 0;width:100%;min-height:0}.photo-review-panel{padding:1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));border-top:1px solid var(--accent);background:var(--surface);border-radius:20px 20px 0 0;flex-direction:column;gap:.75rem;display:flex}.photo-review-panel h2{font-family:var(--font-display);color:var(--text);margin:0;font-size:1.5rem}.photo-review-panel p{font-family:var(--font-story);color:var(--muted);margin:0}.sound-button-text{flex-direction:column;flex:1;min-width:0;display:flex}.sound-button-text small{color:#bfae90;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sound-button-adjust{color:#e3a548;flex:none;font-weight:600}.sound-button-adjust:after{content:" ›"}.sound-sheet{box-sizing:border-box;width:calc(100% - 16px);max-width:34rem;height:calc(92dvh - 8px);max-height:calc(92dvh - 8px);margin:auto auto calc(8px + env(safe-area-inset-bottom));border:1px solid var(--accent);border-radius:20px}.sound-sheet .oot-body:before{content:"";background:var(--border);border-radius:3px;align-self:center;width:44px;height:5px;margin:-.4rem 0 .2rem}.sound-sheet .oot-body{gap:1.1rem}.sound-sheet .oot-head h2{flex:1;font-size:1.4rem}.sound-close{width:44px;height:44px;color:var(--text);background:0 0;flex:none;place-items:center;padding:0;display:grid}.sound-channel{border-top:1px solid var(--border);gap:.7rem;padding-top:1rem;display:grid}.sound-channel h3{font-family:var(--font-display);color:var(--text);margin:0;font-size:1.3rem}.sound-chips{flex-wrap:wrap;gap:.5rem;display:flex}.sound-chip{border:1px solid var(--border);background:var(--bg);min-height:48px;color:var(--text);font:inherit;border-radius:999px;flex-direction:column;justify-content:center;align-items:center;padding:.4rem 1rem;font-size:1rem;line-height:1.15;display:inline-flex}.sound-chip small{color:var(--muted);font-size:.75rem}.sound-chip.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent);font-weight:600}.sound-chip.on small{color:var(--on-accent)}.sound-volume{color:var(--muted);gap:.25rem;display:grid}.sound-volume output{color:var(--text)}.sound-volume input[type=range]{width:100%;min-height:44px;accent-color:var(--accent);background:0 0;border:none;margin:0;padding:0}.sound-sheet .error{color:var(--danger);margin:0}.sound-done{min-height:52px;margin-top:.5rem}@media (width>=640px){.sound-sheet{height:auto;max-height:92dvh;margin:auto}.sound-sheet .oot-body:before{display:none}}.purchases-soon{font-family:var(--font-story);color:var(--muted);align-items:center;gap:8px;margin:0;display:flex}
