:root{color:#fff3dc;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-optical-sizing:auto;--gold:#f5d894;--pink:#f779cf;--cyan:#72e8f0;--ink:#171328;background:#100e20;font-family:Noto Serif TC,KaiTi,DFKai-SB,Microsoft JhengHei,serif;font-size:16px;font-weight:500}*{box-sizing:border-box}html,body,#app{place-items:center;width:100%;min-width:320px;height:100%;min-height:100%;margin:0;display:grid;overflow:hidden}body{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;background:radial-gradient(at 50% 5%,#502e6957,#0000 57%),#100e20;place-items:center;display:grid}button{color:inherit;font:inherit}.game-shell{aspect-ratio:1180/820;isolation:isolate;background:#15132a;flex-direction:column;width:min(100vw,144vh);min-width:320px;height:min(100vh,69.45vw);min-height:0;display:flex;position:relative;overflow:hidden;box-shadow:0 30px 100px #02020c9e,0 0 0 1px #f4cd9126}.stage{background:#17162f;flex:0 0 54.878%;position:relative;overflow:hidden}#battle-canvas{width:100%;height:100%;display:block;position:absolute;inset:0}.stage-vignette{pointer-events:none;background:linear-gradient(#0a091b61,#0000 22% 76%,#090a1a57);position:absolute;inset:0}.stage-topline{z-index:1;color:#fde5c8c2;text-shadow:0 2px 9px #11101f;justify-content:space-between;align-items:center;display:flex;position:absolute;inset:21px 31px auto}.brand-mark{letter-spacing:.21em;align-items:center;gap:9px;font:500 13px/1 DM Mono,monospace;display:flex}.brand-sigil{color:var(--gold);text-shadow:0 0 13px #ffcf7bbf;font:20px/1 Georgia,serif}.stage-chapter{letter-spacing:.1em;opacity:.77;align-items:center;gap:10px;font:10px/1 DM Mono,monospace;display:flex}.stage-chapter i{background:var(--pink);width:3px;height:3px;box-shadow:0 0 9px var(--pink);border-radius:50%}.battle-callout{color:#ffeecfd1;letter-spacing:.12em;text-shadow:0 0 12px #ff7fd29e;font:500 clamp(11px,1.15vw,15px)/1.4 DM Mono,monospace;transition:color .18s;position:absolute;bottom:11%;right:7.3%}.assist-hint{z-index:2;color:#e4ffff;opacity:0;pointer-events:none;background:linear-gradient(110deg,#2c295ad6,#26435eb0);border:1px solid #85efef5e;border-radius:24px 20px 24px 18px;align-items:center;gap:9px;padding:8px 14px 8px 10px;font-size:clamp(11px,1vw,14px);transition:opacity .24s,transform .24s cubic-bezier(.2,1.5,.5,1);display:flex;position:absolute;top:21%;right:4.4%;transform:translateY(8px)scale(.96);box-shadow:0 0 22px #52e3ee3d,inset 0 0 18px #6bf0f014}.assist-hint.is-visible{opacity:1;animation:1.7s ease-in-out infinite fairy-pulse;transform:translateY(0)scale(1)}.fairy-orb{color:#fff4ad;background:radial-gradient(circle at 34% 30%,#fff8d5,#82f2f1 36%,#7373c6 73%);border-radius:50%;place-items:center;width:25px;height:25px;display:grid;box-shadow:0 0 17px #70f7f1cc}.hud{z-index:2;background:radial-gradient(at 50% -13%,#9a4d9733,#0000 50%),linear-gradient(165deg,#21172e,#151328 67%,#111326);border-top:1px solid #f8dba17a;flex-direction:column;flex:auto;min-height:0;padding:18px 5.3% 22px;display:flex;position:relative;box-shadow:0 -7px 25px #08081940}.hud:before,.hud:after{content:"";pointer-events:none;height:1px;position:absolute;left:0;right:0}.hud:before{background:linear-gradient(90deg,#0000,#ee6bcf63,#6ce2ed57,#0000);top:4px}.hud:after{background:linear-gradient(90deg,#0000 7%,#e5b07436 50%,#0000 93%);bottom:6px}.hud-ornament{color:#f0cb8c80;text-shadow:0 0 12px #ffbad766;pointer-events:none;font:24px/1 Georgia,serif;position:absolute}.ornament-left{top:42%;left:2.8%}.ornament-right{color:#78e5f091;bottom:24%;right:2.8%}.hud-header,.hud-footer{z-index:1;justify-content:space-between;align-items:center;display:flex;position:relative}.hud-header{color:#fbe2c0c4;letter-spacing:.06em;flex:none;min-height:28px;font-size:clamp(11px,1.05vw,14px)}.quest-label{align-items:center;gap:9px;display:flex}.quest-dot{background:#fa8ed6;border-radius:50%;width:7px;height:7px;box-shadow:0 0 11px #ed5ec6}.quest-divider{color:#ffe2a380;margin:0 1px}.progress-label{color:#96e3ebde;letter-spacing:.08em;font:11px/1 DM Mono,monospace}.card-frame{background:radial-gradient(at 50% 100%,#a0398630,#0000 57%),linear-gradient(111deg,#271b36ed,#1c1b34f7 50%,#211932ed);border:1px solid #f4c98c78;border-radius:17px 13px 19px 14px;flex-direction:column;flex:auto;justify-content:center;align-items:center;width:min(88%,860px);min-width:0;min-height:70px;margin:0 auto 10px;padding:12px 34px;display:flex;position:relative;transform:rotate(-.15deg);box-shadow:0 0 0 3px #ecb5850e,0 0 24px #dd58ba1a,inset 0 0 25px #78dce40b;container-type:inline-size}.card-frame:before{content:"";pointer-events:none;border:1px solid #76e4ec2e;border-radius:12px;position:absolute;inset:4px}.card-kicker{z-index:1;color:#f5cc94c2;letter-spacing:.19em;text-shadow:0 0 10px #f391d64d;flex:none;margin:8px 0 7px;font-size:clamp(10px,.88vw,12px);position:relative}.reading-card{z-index:1;color:#fff4dc;letter-spacing:.17em;text-align:center;text-indent:.17em;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;text-shadow:0 2px #572f4de0,0 0 16px #f5a5da47;filter:drop-shadow(0 3px #131125b8);justify-content:center;align-items:center;width:100%;min-width:0;font-size:clamp(28px,4.2vw,56px);font-weight:800;line-height:1.24;display:flex;position:relative}.card-corner{z-index:1;border-style:solid;border-color:#f3d09ad9;width:10px;height:10px;position:absolute}.corner-tl{border-width:1px 0 0 1px;top:-1px;left:16px}.corner-tr{border-width:1px 1px 0 0;top:-1px;right:16px}.corner-bl{border-width:0 0 1px 1px;bottom:-1px;left:16px}.corner-br{border-width:0 1px 1px 0;bottom:-1px;right:16px}.card-glint{background:linear-gradient(90deg,#0000,#ffe7b7d9,#0000);width:62%;height:1px;position:absolute;top:-1px;left:19%;box-shadow:0 0 9px #ffdba9a6}.hud-footer{flex:none;gap:16px;min-height:68px}.battle-stats{flex-direction:column;align-items:flex-start;gap:5px;min-width:160px;display:flex}.combo-stat{color:#f7d59dc2;letter-spacing:.13em;font:10px/1.2 DM Mono,monospace}.combo-stat b{color:#fff0bc;text-shadow:0 0 9px #ffd171b3;padding-left:4px;font-size:15px;font-weight:500}.status-text{color:#ccc3dcc7;letter-spacing:.035em;font-size:clamp(10px,.9vw,12px)}.actions{justify-content:flex-end;align-items:center;gap:13px;display:flex}.hit-button{color:#fff6dd;text-shadow:0 1px 4px #261031cc;cursor:pointer;background:radial-gradient(at 25% 0,#ffe0984d,#0000 50%),linear-gradient(116deg,#b83e9b,#853693 52%,#45508e);border:1px solid #ffdeabc4;border-radius:13px 10px 15px 11px;justify-content:center;align-items:center;gap:7px;min-width:242px;min-height:54px;padding:7px 20px 6px;font-size:15px;font-weight:800;transition:transform .12s,filter .12s,box-shadow .12s;display:flex;position:relative;overflow:hidden;box-shadow:0 5px #35234d,0 0 18px #ef5bc84d,inset 0 1px #ffffff4d}.hit-button:before{content:"";pointer-events:none;border:1px solid #ffe7c438;border-radius:9px;position:absolute;inset:3px}.hit-button:hover{filter:brightness(1.13)saturate(1.09);box-shadow:0 5px #35234d,0 0 28px #ef5bc885,inset 0 1px #ffffff4d}.hit-button:active{transform:translateY(3px)scale(.99);box-shadow:0 2px #35234d,0 0 17px #ef5bc866}.hit-button:focus-visible,.restart-button:focus-visible{outline-offset:3px;outline:2px solid #fff1ad}.hit-button small{color:#ffe4c1ab;letter-spacing:.08em;margin-left:2px;font:8px/1 DM Mono,monospace}.button-spark{color:#ffe98e;filter:drop-shadow(0 0 6px #fff3a2);font-size:17px}.hit-button.is-complete{background:linear-gradient(116deg,#b38d4c,#9e5189 52%,#546e9b);border-color:#fff1abe6}.hit-button:disabled{cursor:default}.restart-button{color:#e2d7eac9;cursor:pointer;background:#231f39b3;border:1px solid #ccbedb45;border-radius:9px 7px 10px 8px;min-height:42px;padding:0 15px;font-size:12px;transition:background .15s,border-color .15s}.restart-button:hover{background:#302f4ee6;border-color:#76e4ec99}@keyframes fairy-pulse{0%,to{box-shadow:0 0 19px #52e3ee33,inset 0 0 18px #6bf0f012}50%{box-shadow:0 0 29px #52e3ee6b,inset 0 0 20px #6bf0f024}}@media (width<=760px){.game-shell{width:100vw;height:69.45vw;min-height:310px}.stage{flex-basis:51%}.hud{padding:5px 3% 7px}.hud-header{min-height:20px}.card-kicker{margin:2px 0 5px}.card-frame{width:94%;min-height:50px;margin-bottom:3px;padding:5px 10px}.reading-card{letter-spacing:.08em}.hud-footer{min-height:46px}.stage-topline{inset:12px 16px auto}.stage-chapter{font-size:8px}.brand-mark{font-size:10px}.hud-footer{gap:5px;min-height:46px}.battle-stats{min-width:100px}.actions{gap:7px}.hit-button{min-width:0;min-height:46px;padding:6px 11px;font-size:12px}.hit-button small{display:none}.restart-button{min-height:38px;padding:0 9px;font-size:10px}}@media (width<=360px){.reading-card{letter-spacing:.02em;text-indent:.08em}}@media (height<=560px){.game-shell{width:144vh;height:100vh}.hud{padding-top:8px;padding-bottom:10px}.card-frame{min-height:54px;margin-bottom:5px}.hud-footer{min-height:46px}.hit-button{min-height:44px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.stage-controls{align-items:center;gap:16px;display:flex}.parent-open-button,.manual-hit-button,.sfx-toggle,.wardrobe-open-button{color:#fff2d8e6;cursor:pointer;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#15142bb3;border:1px solid #f8dca66b;box-shadow:0 0 12px #59d9ea21,inset 0 0 12px #fd7ed314}.parent-open-button{border-radius:9px;padding:6px 11px;font-size:11px}.sfx-toggle{border:1px solid #70e7ee61;border-radius:8px;place-items:center;width:31px;height:29px;padding:3px;font-size:13px;display:grid}.wardrobe-open-button{border:1px solid #ee89d561;border-radius:9px;padding:6px 9px;font-size:11px}.manual-hit-button{z-index:2;color:#bafaff;text-shadow:0 0 9px #59e6efb3;border-color:#70e7ee75;border-radius:8px 11px 8px 10px;padding:6px 12px;font-size:11px;position:absolute;top:57px;left:28px}.parent-open-button:hover,.manual-hit-button:hover,.wardrobe-open-button:hover{filter:brightness(1.15);border-color:#ffe4a6d1}.reading-row{flex:auto;justify-content:center;align-items:stretch;gap:12px;width:100%;min-width:0;min-height:0;display:flex}.reading-row .card-frame{flex:auto;width:auto;max-width:860px;margin:0}.reading-char{cursor:pointer;border-radius:6px;flex:none;transition:color .1s,background .1s,text-shadow .1s,transform .1s}.reading-char:hover,.reading-char:focus-visible{color:#9af9ff;text-shadow:0 0 12px #61eaf3,0 0 23px #70eff1c7;outline:none}.reading-char.is-speaking{color:#ffe98e;text-shadow:0 0 10px #ffe783,0 0 22px #ffc962d1;background:#f5d37d1f;transform:translateY(-3px)scale(1.09)}.reading-char.is-matched{color:#a4fbff;text-shadow:0 0 9px #79f4fa,0 0 19px #6febf1c7;background:#60ebef24}.reading-char.is-speaking.is-matched{color:#ffe98e;text-shadow:0 0 10px #ffe783,0 0 22px #ffc962d1;background:#f5d37d1f}.transcript-preview{color:#89e2e8ad;text-align:center;text-overflow:ellipsis;white-space:nowrap;flex:0 0 17px;width:100%;font-size:10px;line-height:15px;overflow:hidden}.sentence-read-button{color:#c2fbff;cursor:pointer;background:linear-gradient(145deg,#2f2d55f5,#262343f2);border:1px solid #71e7ef7a;border-radius:13px 10px 14px 11px;flex-direction:column;flex:0 0 58px;justify-content:center;align-self:center;align-items:center;min-height:58px;padding:5px;display:flex;box-shadow:0 0 15px #45deed24,inset 0 0 13px #58e5ef14}.sentence-read-button span{font-size:20px;line-height:1.15}.sentence-read-button small{white-space:nowrap;margin-top:2px;font-size:9px}.sentence-read-button:hover{color:#fff1bd;border-color:#ffe1a0d9;box-shadow:0 0 20px #4de9f152}.soundwave-hud{flex:0 0 17px;align-items:center;gap:10px;width:min(88%,860px);height:17px;margin:4px auto 0;display:flex}.soundwave-label,.mic-status{color:#bddde5b3;letter-spacing:.08em;white-space:nowrap;flex:none;font:8px/1 DM Mono,monospace}.mic-status{color:#f1cadcc2;text-align:right;letter-spacing:0;min-width:72px;font-family:Noto Serif TC,KaiTi,serif;font-size:9px}.soundwave-track{background:#0d1025cc;border:1px solid #81bcd052;border-radius:8px;flex:auto;height:7px;position:relative;overflow:hidden;box-shadow:inset 0 1px 3px #0009}.soundwave-fill{border-radius:inherit;background:linear-gradient(90deg,#ed69c3,#ab7aff 46%,#5feaf1);width:0;height:100%;transition:width 45ms linear;box-shadow:0 0 11px #65e9f2}.start-button{color:#fff7df;text-shadow:0 1px 5px #230f2ccc;cursor:pointer;background:radial-gradient(at 30% 0,#ffe9a947,#0000 55%),linear-gradient(112deg,#c344a4,#8b3e9f 52%,#455e9b);border:1px solid #ffe4b1d1;border-radius:13px 10px 15px 11px;min-width:212px;min-height:54px;padding:8px 20px;font-size:16px;font-weight:800;transition:filter .12s,transform .12s;position:relative;box-shadow:0 5px #35234d,0 0 19px #f15bc757,inset 0 1px #ffffff4d}.start-button:hover{filter:brightness(1.13)}.start-button:active{transform:translateY(3px)}.start-button:disabled{cursor:wait;filter:saturate(.65)}.start-button[hidden]{display:none}.start-button:focus-visible,.manual-hit-button:focus-visible,.parent-open-button:focus-visible,.sfx-toggle:focus-visible,.wardrobe-open-button:focus-visible,.sentence-read-button:focus-visible{outline-offset:3px;outline:2px solid #fff0ae}.parent-dialog{color:#fff2dd;background:radial-gradient(at 12% 0,#cc4aad33,#0000 38%),linear-gradient(145deg,#21172e,#15152c 72%,#171a32);border:1px solid #f5d09785;border-radius:20px 16px 21px 17px;width:min(720px,100vw - 28px);max-width:none;max-height:min(90vh,760px);padding:0;overflow:auto;box-shadow:0 20px 80px #000000a6,0 0 34px #70d4e529}.parent-dialog::backdrop{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#070714b8}.parent-panel{padding:25px 28px 27px}.gate-panel{width:min(390px,100vw - 28px)}.parent-eyebrow{color:#7ee8f0c2;letter-spacing:.16em;margin:0 0 5px;font:9px/1.3 DM Mono,monospace}.parent-panel h2{color:#fff0d6;margin:0;font-size:23px;font-weight:700}.parent-panel label{color:#fae0c1db;margin:13px 0 6px;font-size:13px;display:block}.parent-panel input,.parent-panel textarea{color:#fff4e2;background:#0c0e21c2;border:1px solid #85d6e04f;border-radius:9px;width:100%;font:14px/1.55 Noto Serif TC,KaiTi,Microsoft JhengHei,serif}.parent-panel input{min-height:40px;padding:7px 10px}.parent-panel textarea{resize:vertical;min-height:92px;padding:9px 11px}.parent-panel input:focus,.parent-panel textarea:focus{outline-offset:1px;outline:2px solid #6fe9eebf}.parent-panel input::placeholder,.parent-panel textarea::placeholder{color:#c6b9d280}.parent-actions,.parent-header{justify-content:space-between;align-items:center;display:flex}.parent-actions{justify-content:flex-end;gap:9px;margin-top:14px}.parent-primary,.parent-secondary,.parent-close,.saved-quest-delete,.saved-quest-select{cursor:pointer;border:1px solid #edcf9f6e;border-radius:9px}.parent-primary{color:#fff5dc;background:linear-gradient(110deg,#b83f9b,#7350a2);min-height:40px;padding:8px 15px;font-weight:700;box-shadow:0 0 14px #e255bc2e}.parent-secondary{color:#ecdee6cc;background:#2e2743d6;min-height:38px;padding:7px 13px}.parent-close{color:#ffedd7cc;background:#26213dcc;width:36px;height:36px;font-size:25px;line-height:1}.parent-header{margin-bottom:15px}.match-strictness{border:1px solid #85d6e033;border-radius:10px;align-items:center;gap:16px;margin:0 0 16px;padding:10px 12px 12px;display:flex}.match-strictness legend{color:#fae0c1db;padding:0 6px;font-size:12px}.parent-panel .match-strictness label{color:#efe0d6cc;align-items:center;gap:6px;margin:0;font-size:11px;display:inline-flex}.parent-panel .match-strictness input{accent-color:#75e9ef;width:14px;min-height:14px;margin:0}.quest-editor{border-bottom:1px solid #e1c9a129;padding-bottom:17px}.preview-heading{color:#f6dcb4e6;justify-content:space-between;align-items:center;margin:13px 0 8px;font-size:12px;display:flex}.preview-heading span{color:#7ae0eaa6;letter-spacing:.08em;font:8px/1 DM Mono,monospace}.chunk-preview,.weak-character-list{flex-wrap:wrap;gap:7px;display:flex}.preview-chunk{color:#fff0da;background:#6a34684f;border:1px solid #e581cb4f;border-radius:9px 7px 10px;padding:5px 9px;font-size:12px}.chunk-preview.is-empty,.weak-character-list.is-empty{color:#cac0d68f;font-size:11px}.quest-status,.parent-error,#quest-status{color:#ffc0cf;min-height:17px;margin-top:6px;font-size:11px}.save-quest-button{width:100%;margin-top:5px}.saved-quests{border-bottom:1px solid #e1c9a129;padding:2px 0 13px}.saved-quest-row{align-items:center;gap:8px;margin-top:6px;display:flex}.saved-quest-select{color:#fff0dced;text-align:left;background:#2b2644c2;flex:1;min-height:35px;padding:6px 10px}.saved-quest-delete{color:#fbb1c5c2;background:#5224433d;border-color:#ee84aa42;min-height:32px;padding:5px 9px;font-size:10px}.weak-characters{padding-top:2px}.weak-character-pill{color:#c6f7f3;background:#31586042;border:1px solid #71dde44f;border-radius:15px;padding:5px 9px;font-size:11px}.wardrobe-dialog{width:min(790px,100vw - 28px)}.wardrobe-panel{padding:24px 27px 22px}.wardrobe-section{border-top:1px solid #e1c9a129;padding:12px 0 15px}.wardrobe-section-heading{color:#f6dcb4d6;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px;font-size:11px;display:flex}.wardrobe-section-heading h3{color:#fff0d6;align-items:center;gap:7px;margin:0;font-size:15px;display:flex}.wardrobe-section-heading>span{color:#c3bcd394;font-size:10px}.wardrobe-count{color:#bdfaff;background:#5ac5d329;border-radius:10px;place-items:center;min-width:20px;height:20px;padding:0 5px;font:10px/1 DM Mono,monospace;display:grid}.wardrobe-grid{scrollbar-color:#7fdbe44d #100f214d;scrollbar-width:thin;grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:8px;max-height:205px;padding:2px 3px 4px 1px;display:grid;overflow:auto}.wardrobe-item-button{color:#fff1e0e0;text-align:left;cursor:pointer;background:linear-gradient(130deg,#2a2545d1,#1f1f3bd9);border:1px solid #9bc9d933;border-radius:11px 9px 12px;align-items:center;gap:9px;min-width:0;min-height:54px;padding:7px 9px;transition:border-color .13s,background .13s,transform .13s;display:flex}.wardrobe-item-button:hover{border-color:#77eaf08c;transform:translateY(-1px)}.wardrobe-item-button.is-equipped{background:linear-gradient(130deg,#683c6ebd,#2c3a59c7);border-color:#ffdc81c7;box-shadow:0 0 13px #6fe6ee21,inset 0 0 13px #fbc27614}.wardrobe-item-icon{text-shadow:0 0 11px;background:#1010259e;border-radius:50%;flex:0 0 34px;place-items:center;width:34px;height:34px;font-size:21px;display:grid}.wardrobe-item-details{flex-direction:column;gap:3px;min-width:0;display:flex}.wardrobe-item-name{text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.wardrobe-item-details small{color:#9ce1e8a6;font-size:9px}.wardrobe-target-toggle{background:#0c0e2185;border:1px solid #86dce430;border-radius:20px;gap:4px;margin:1px 0 11px;padding:4px;display:inline-flex}.wardrobe-target-toggle button{color:#e8dfecb3;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:16px;min-height:32px;padding:5px 13px;font-size:11px}.wardrobe-target-toggle button[aria-pressed=true]{color:#fff3d4;background:linear-gradient(110deg,#b04397c7,#495b93bf);border-color:#f2cf8e82;box-shadow:0 0 13px #75e1ed24}.wardrobe-clear-button{color:#dfd7e9c2;cursor:pointer;background:#231f39a8;border:1px solid #cbbdda3b;border-radius:8px;margin-top:9px;padding:6px 11px;font-size:10px}.wardrobe-status{color:#9af4f5;min-height:17px;font-size:11px}.parent-open-button:hover,.manual-hit-button:hover,.sentence-read-button:hover,.start-button:hover,.parent-primary:hover,.saved-quest-select:hover,.saved-quest-delete:hover{filter:brightness(1.13)}@media (width<=760px){.stage{flex-basis:45%}.hud{padding:3px 3% 5px}.hud-header{min-height:18px}.card-kicker{margin:1px 0 3px}.reading-row{flex:none;gap:4px;min-height:46px}.stage-controls{gap:5px}.stage-topline{inset-inline:10px}.stage-chapter{letter-spacing:.04em;gap:4px;font-size:7px}.parent-open-button{padding:4px 6px;font-size:9px}.wardrobe-open-button{padding:4px 5px;font-size:8px}.sfx-toggle{width:25px;height:24px;font-size:11px}.manual-hit-button{padding:4px 8px;font-size:9px;top:42px;left:12px}.reading-row{gap:5px}.reading-row .card-frame{min-height:46px;margin-bottom:2px;padding:5px 7px}.reading-card{letter-spacing:.04em;font-size:clamp(20px,4.2vw,40px)}.sentence-read-button{flex-basis:43px;min-height:45px;padding:3px}.sentence-read-button span{font-size:16px}.sentence-read-button small{font-size:8px}.soundwave-hud{flex-basis:12px;gap:6px;width:94%;height:12px;margin-top:1px}.soundwave-label{font-size:7px}.mic-status{min-width:62px;font-size:8px}.soundwave-track{height:6px}.transcript-preview{flex-basis:14px;font-size:8px;line-height:13px}.hud-footer{min-height:44px}.start-button{min-width:0;min-height:40px;padding:6px 10px;font-size:12px}.restart-button{min-height:36px}.actions{gap:6px}.quest-status,#quest-status{margin-top:3px}.parent-panel{padding:20px 17px}.wardrobe-panel{padding:18px 14px 14px}.wardrobe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:175px}.wardrobe-item-button{gap:6px;min-height:46px;padding:5px 6px}.wardrobe-item-icon{flex-basis:29px;width:29px;height:29px;font-size:18px}.wardrobe-item-name{font-size:10px}.match-strictness{flex-wrap:wrap;gap:8px 12px}}@media (width<=360px){.reading-row .card-frame{padding-inline:4px}.reading-card{letter-spacing:0;text-indent:0}}.mode-switcher{background:#101027b8;border:1px solid #73dfed52;border-radius:999px;flex:none;align-items:center;gap:2px;padding:3px;display:flex;box-shadow:inset 0 0 12px #f86fd017,0 0 14px #6be3ef1a}.mode-switcher button{color:#ede4e7c2;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:999px;min-height:29px;padding:5px 10px;font-size:10px;transition:color .14s,background .14s,box-shadow .14s}.mode-switcher button[aria-pressed=true]{color:#fff4da;background:linear-gradient(110deg,#b83e9bdb,#455c95e0);box-shadow:0 0 12px #ed61cc54,inset 0 1px #ffffff3b}.mode-switcher button:focus-visible,.homework-option-pill:focus-visible,.homework-pause-button:focus-visible,.homework-hit-button:focus-visible,.homework-start-button:focus-visible{outline-offset:3px;outline:2px solid #fff0ae}.reading-mode-panel,.homework-mode-panel{display:contents}.reading-mode-panel[hidden],.homework-mode-panel[hidden],.homework-setup[hidden],.homework-active[hidden]{display:none}.homework-panel{flex-direction:column;flex:auto;justify-content:center;gap:10px;min-width:0;min-height:0;display:flex;position:relative}.homework-setup{flex-direction:column;flex:auto;justify-content:space-evenly;gap:7px;min-height:0;display:flex}.homework-heading,.homework-active-header,.homework-bottom-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.homework-heading h2{color:#fff2d6;text-shadow:0 0 13px #ed73cb3b;margin:0;font-size:clamp(17px,2vw,23px)}.homework-eyebrow{color:#7ee8f0ba;letter-spacing:.16em;margin:0 0 2px;font:8px/1.3 DM Mono,monospace}.homework-time-sigil{color:var(--gold);text-shadow:0 0 15px #ffd27799;font-size:24px}.homework-options{background:#10112859;border:1px solid #85d6e033;border-radius:12px;flex-wrap:wrap;align-items:center;gap:8px 15px;min-width:0;margin:0;padding:7px 10px 9px;display:flex}.homework-options legend{color:#fae0c1d6;padding:0 5px;font-size:11px}.homework-option-list{flex-wrap:wrap;gap:6px;display:flex}.homework-option-pill{color:#f1e5e4d1;cursor:pointer;background:#2b2848b3;border:1px solid #8dcedc47;border-radius:999px;min-height:32px;padding:5px 12px;font-size:11px;transition:color .13s,border-color .13s,box-shadow .13s}.homework-option-pill[aria-pressed=true]{color:#fff0bd;background:linear-gradient(105deg,#ab439099,#455d968c);border-color:#ffda93bd;box-shadow:0 0 13px #ef6dcf30,inset 0 0 10px #ffdf9c12}.homework-start-button{color:#fff5df;cursor:pointer;background:linear-gradient(110deg,#a647a7,#7752ae 52%,#376c9c);border:1px solid #ffe1a1bf;border-radius:13px 10px 15px 11px;align-self:flex-end;min-height:48px;padding:8px 23px;font-size:15px;font-weight:800;box-shadow:0 4px #35234d,0 0 21px #ee61c84f,inset 0 1px #ffffff42}.homework-active{flex-direction:column;flex:auto;justify-content:space-between;gap:10px;min-height:0;display:flex}.homework-active-header{color:#fbe2c0d9;flex:none;min-height:22px;font-size:11px}.homework-mode-label{align-items:center;gap:8px;display:flex}.homework-phase{color:#8be8edcc;text-align:right;font-size:10px}.homework-combat-row{flex:auto;grid-template-columns:minmax(170px,.82fr) minmax(245px,1.18fr);align-items:center;gap:clamp(16px,5vw,62px);min-height:0;display:grid}.homework-clock-column,.homework-action-column{flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;display:flex}.homework-timer{color:#fff2d4;letter-spacing:-.07em;text-shadow:0 0 15px #62e0ed4f,0 0 30px #e663c22b;font-variant-numeric:tabular-nums;font:700 clamp(38px,6vw,66px)/1 DM Mono,monospace}.homework-step{color:#f5d49de0;letter-spacing:.04em;font-size:14px}.homework-pause-button,.homework-reset-button{color:#ebe2ebcc;cursor:pointer;background:#23213dc2;border:1px solid #b5c6e242;border-radius:9px;min-height:34px;padding:5px 12px;font-size:11px}.homework-action-column{gap:6px}.homework-hit-button{color:#fff5dc;cursor:pointer;background:radial-gradient(at 30% 0,#ffe09842,#0000 50%),linear-gradient(116deg,#b83e9b,#853693 52%,#45508e);border:1px solid #ffe5aed4;border-radius:17px 13px 19px 14px;grid-template-rows:1fr 1fr;grid-template-columns:auto 1fr;align-content:center;place-items:center;column-gap:9px;width:min(100%,360px);min-height:94px;padding:12px 19px;transition:filter .12s,transform .12s,opacity .12s;display:grid;box-shadow:0 5px #35234d,0 0 21px #ef5bc852,inset 0 1px #ffffff4d}.homework-hit-button span{color:#fff1a7;filter:drop-shadow(0 0 10px #ffe176b3);grid-row:1/3;font-size:38px}.homework-hit-button strong{white-space:nowrap;align-self:end;font-size:clamp(15px,1.7vw,20px)}.homework-hit-button small{color:#ffe8ccc2;align-self:start;font-size:11px}.homework-hit-button:hover:not(:disabled){filter:brightness(1.13)}.homework-hit-button:active:not(:disabled){transform:translateY(3px)}.homework-hit-button:disabled{opacity:.59;cursor:not-allowed;filter:saturate(.55)}.homework-recharge{background:#0b0f24cc;border:1px solid #80c6da61;border-radius:10px;width:min(92%,310px);height:8px;overflow:hidden;box-shadow:inset 0 1px 3px #0000008a}.homework-recharge-fill{border-radius:inherit;background:linear-gradient(90deg,#ee65be,#ae83ff 46%,#5feaf1);width:100%;height:100%;transition:width .18s linear;box-shadow:0 0 11px #65e9f2}.homework-cooldown-label{color:#bbe1e5c7;text-align:center;min-height:15px;font-size:10px}.homework-bottom-row{flex:none;min-height:31px}.homework-steps-track{flex:auto;align-items:center;gap:7px;max-width:370px;display:flex}.homework-step-segment{background:#ababc729;border:1px solid #b1aecf3d;border-radius:9px;flex:1 1 0;height:7px}.homework-step-segment.is-cleared{background:linear-gradient(90deg,#eb75c6,#73ebed);border-color:#ffdc93b0;box-shadow:0 0 11px #66e9ef8f}.homework-reset-button{min-height:30px;font-size:10px}.homework-banner{z-index:4;color:#fff4c2;text-align:center;opacity:0;pointer-events:none;background:linear-gradient(105deg,#6d3378f5,#2f517af5);border:1px solid #ffe1a39c;border-radius:999px;max-width:90%;padding:8px 17px;font-size:13px;font-weight:700;transition:opacity .17s,transform .17s;position:absolute;top:8%;left:50%;transform:translate(-50%,-7px)scale(.96);box-shadow:0 0 20px #f16acf54,inset 0 0 12px #85f2f01f}.homework-banner.is-visible{opacity:1;transform:translate(-50%)scale(1)}.homework-victory-dialog{color:#fff4df;background:radial-gradient(at 50% 0,#e55bbc3d,#0000 54%),linear-gradient(145deg,#241936,#15152c 75%,#17223b);border:1px solid #ffdfa3ba;border-radius:22px 17px 24px 18px;width:min(430px,100vw - 32px);max-width:none;padding:0;box-shadow:0 22px 90px #000000b3,0 0 36px #79e3ed33}.homework-victory-dialog::backdrop{-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#070714bd}.homework-victory-card{text-align:center;flex-direction:column;align-items:center;padding:32px 26px 26px;display:flex;position:relative}.homework-victory-close{color:#f8e9da;cursor:pointer;background:#26213dcc;border:1px solid #edcf9f59;border-radius:9px;width:34px;height:34px;font-size:22px;position:absolute;top:12px;right:12px}.homework-victory-sparkle{color:#ffe797;text-shadow:0 0 20px #f4a8d7;margin-bottom:5px;font-size:28px}.homework-victory-card h2{color:#fff0d6;margin:4px 0 12px;font-size:25px}.homework-victory-summary,.homework-gem-balance{color:#ffe5bbeb;margin:4px 0;font-size:14px}.homework-gem-balance{color:#a7f4f3;font-size:12px}.homework-gacha-button{color:#fff5dd;cursor:pointer;background:linear-gradient(110deg,#a647a7,#7752ae 52%,#376c9c);border:1px solid #ffe1a1b8;border-radius:12px;min-height:45px;margin-top:15px;padding:8px 19px;font-weight:700;box-shadow:0 0 20px #ed63ca40}.homework-gacha-button:disabled{opacity:.55;cursor:not-allowed}.homework-gacha-result{color:#a7f4f3;min-height:24px;margin-top:11px;font-size:13px}.parent-panel .homework-cooldown-options label{color:#efe0d6cc;align-items:center;gap:6px;margin:0;font-size:11px;display:inline-flex}.homework-cooldown-options{border:1px solid #85d6e033;border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 16px;padding:10px 12px 12px;display:flex}.homework-cooldown-options legend{color:#fae0c1db;padding:0 6px;font-size:12px}.parent-panel .homework-cooldown-options input{accent-color:#75e9ef;width:14px;min-height:14px;margin:0}@media (width<=760px){.stage-chapter{display:none}.stage-controls{gap:4px}.mode-switcher{gap:0;padding:2px}.mode-switcher button{min-height:25px;padding:4px 6px;font-size:8px}.homework-panel{gap:4px}.homework-setup{gap:3px}.homework-options{gap:4px 8px;padding:4px 7px 6px}.homework-options legend{font-size:9px}.homework-option-list{gap:4px}.homework-option-pill{min-height:27px;padding:4px 8px;font-size:9px}.homework-start-button{min-height:38px;padding:5px 13px;font-size:12px}.homework-active{gap:4px}.homework-combat-row{grid-template-columns:minmax(110px,.8fr) minmax(160px,1.2fr);gap:10px}.homework-timer{font-size:clamp(31px,8vw,48px)}.homework-step{font-size:11px}.homework-hit-button{column-gap:5px;min-height:68px;padding:7px 9px}.homework-hit-button span{font-size:27px}.homework-hit-button strong{font-size:13px}.homework-hit-button small,.homework-cooldown-label{font-size:8px}}html,body{touch-action:manipulation;overscroll-behavior:none;width:100%;height:100dvh;max-height:100dvh;position:fixed;inset:0;overflow:hidden}#app{width:100%;height:100dvh;max-height:100dvh}.game-shell{aspect-ratio:auto;width:100%;max-width:1440px;height:100dvh;max-height:100dvh}.stage{flex:1 1 0;min-height:36dvh}.stage-topline{inset:calc(10px + env(safe-area-inset-top)) 18px auto;gap:8px}.mode-switcher button,.manual-hit-button,.wardrobe-open-button,.parent-open-button,.sfx-toggle{min-height:36px}.hud{-webkit-overflow-scrolling:touch;max-height:58dvh;padding:8px 18px calc(14px + env(safe-area-inset-bottom));flex:none;gap:4px;overflow-y:auto}.reading-row{flex:0 auto;min-height:54px}.card-frame,.reading-row .card-frame{min-height:54px;margin-bottom:0;padding:6px 18px}.hud-footer{flex:none;min-height:52px;padding-top:2px}.start-button,.homework-start-button,.homework-hit-button{animation:2.2s ease-in-out infinite kid-cta-glow}.start-button{min-height:50px;padding:8px 24px;font-size:16px}.homework-panel,.homework-setup,.homework-active{gap:6px}.homework-options{padding:6px 10px 8px}.homework-option-pill{min-height:36px;padding:6px 14px;font-size:13px}.homework-start-button{align-self:center;width:100%;max-width:340px;min-height:50px;font-size:16px}.homework-hit-button{min-height:82px}@keyframes kid-cta-glow{0%,to{box-shadow:0 5px #35234d,0 0 18px #f15bc759,inset 0 1px #ffffff4d}50%{box-shadow:0 5px #35234d,0 0 30px #72e8f0a6,inset 0 1px #ffffff73}}@media (height<=840px){.card-kicker{margin:2px 0}.homework-heading h2{font-size:17px}}.stage:after{z-index:3;content:"";pointer-events:none;opacity:0;will-change:opacity;transition:opacity .22s;position:absolute;inset:0;box-shadow:inset 0 0 65px #ff2e7ec7,inset 0 0 18px #ff5252d9}.game-shell[data-danger=warn] .stage:after{opacity:.55;animation:1.1s ease-in-out infinite danger-border-pulse}.game-shell[data-danger=critical] .stage:after{opacity:.95;animation:.45s ease-in-out infinite danger-border-pulse}.game-shell[data-danger=critical] .battle-callout{color:#ff9ec4;text-shadow:0 0 16px #ff3880f2;font-weight:800}.game-shell[data-danger=critical] .start-button,.game-shell[data-danger=critical] .homework-hit-button:not(:disabled){background:linear-gradient(112deg,#e02d6e,#c93b2b 55%,#d97a1e);border-color:#ffe07d;animation:.55s ease-in-out infinite urgent-cta-pulse}.stage.is-shaking{animation:.24s cubic-bezier(.36,.07,.19,.97) stage-impact-shake}@keyframes danger-border-pulse{0%,to{opacity:.35}50%{opacity:1}}@keyframes urgent-cta-pulse{0%,to{transform:scale(1);box-shadow:0 5px #4a1628,0 0 22px #ff3e76a6}50%{transform:scale(1.03);box-shadow:0 5px #4a1628,0 0 36px #ffd65cf2}}@keyframes stage-impact-shake{0%,to{transform:translate(0,0)}20%{transform:translate(-7px,3px)}45%{transform:translate(7px,-4px)}70%{transform:translate(-5px,2px)}85%{transform:translate(4px,-2px)}}
