:root{color-scheme:dark;--bg:#141222;--panel:#1d192f;--text:#f0e9df;--muted:#9c93b0;--line:#373047;--gold:#eac49a;--pink:#d7a0d4;--lilac:#aca3e7;font-family:Arial,'PingFang SC','Microsoft YaHei',sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 68% 10%,#2f244145,transparent 65%)}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button:disabled{opacity:.3;cursor:default}button:not(:disabled):hover{filter:brightness(1.17)}[hidden]{display:none!important}.site-header{max-width:1280px;margin:auto;height:78px;display:flex;align-items:center;padding:0 42px;border-bottom:1px solid #30283e;gap:36px}.brand{font-weight:700;font-size:17px;letter-spacing:-.4px}.brand-icon{font-size:22px;margin-right:3px}.brand-dot{color:var(--gold)}.back{font-size:11px;color:var(--muted)}.back:hover{color:var(--gold)}.header-tag{margin-left:auto;color:#756b88;font:9px 'Courier New',monospace;letter-spacing:1.6px}main{max-width:1236px;padding:40px 42px 0;margin:auto}.heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:29px}.eyebrow{font:10px 'Courier New',monospace;letter-spacing:2px;color:var(--gold);display:flex;align-items:center;gap:9px}.star{font-size:17px}.heading h1{font-weight:500;letter-spacing:1px;font-size:34px;margin:16px 0 10px}.heading h1>span{font:italic 32px Georgia,'Times New Roman',serif;letter-spacing:-1px;color:#ac9dbd;margin-left:13px}.heading p{font-size:12px;letter-spacing:1px;color:var(--muted);margin:0}.heading-meta{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted);padding-bottom:3px}.meta-dot{width:5px;height:5px;border-radius:50%;background:#c7bcdd}.meta-divider{color:#51465d;margin:0 5px}.game-panel{border:1px solid #443851;border-radius:15px;background:var(--panel);box-shadow:0 25px 80px #0003;overflow:hidden;position:relative}.game-top{height:77px;display:flex;align-items:center;padding:0 25px;gap:25px;border-bottom:1px solid #443851}.chapter-title{display:flex;align-items:center;gap:13px}.chapter-index{font:28px Georgia,serif;color:#8f7b9d;border-right:1px solid #443851;padding-right:15px}.chapter-title>div{display:flex;flex-direction:column;gap:7px}.micro{font:8px 'Courier New',monospace;letter-spacing:1.5px;color:#9e8da9}.chapter-title strong{font-size:13px;font-weight:400;letter-spacing:1px}.hud{margin-left:auto;display:flex;align-items:center;gap:30px}.hearts{display:flex;gap:5px;font-size:21px;color:#dda5ba}.hearts .empty{color:#4b3b52}.score-block{display:flex;flex-direction:column;gap:5px}.score-block strong{font:23px 'Courier New',monospace;letter-spacing:1px}.best-block strong{color:#9d8caa}.game-actions{display:flex;gap:5px;padding-left:20px;border-left:1px solid #443851}.icon-btn{font-size:20px;position:relative;width:30px;height:32px;color:#c7b7d2;border-radius:5px}.icon-btn:hover{background:#382d46}#sound-cross{position:absolute;font-size:14px;left:13px;top:11px;color:#8d789a}.stage{position:relative;aspect-ratio:5/3;background:#272034;overflow:hidden;isolation:isolate}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.stage-label{position:absolute;top:18px;left:22px;display:flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1px;color:#aa95ba;pointer-events:none}.stage-label .star{font-size:16px;color:#a38fbc}.overlay{position:absolute;inset:0;display:flex;align-items:center;padding:4% 5%;background:linear-gradient(90deg,#1b142569,transparent 70%)}.intro-card{width:40%;max-width:390px;padding:0;color:var(--text)}.card-eyebrow{font:9px 'Courier New',monospace;color:var(--gold);letter-spacing:1.9px}.intro-card h2{font-size:32px;line-height:1.45;font-weight:500;letter-spacing:1px;margin:18px 0 17px}.intro-card p{font-size:12px;line-height:1.9;color:#afa0bb;margin:0 0 22px}.choices{border-top:1px solid #89739833;border-bottom:1px solid #89739833;padding:7px 0;margin:0 0 23px}.choice-row{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:10px;margin:9px 0;color:#bcaac5}.choice-row>div{display:flex;gap:3px;background:#17121e80;border:1px solid #4e3a5a66;padding:3px;border-radius:6px}.choice-row button{font-size:10px;padding:7px 10px;border-radius:3px;color:#a48eaf}.choice-row .selected{background:#554164;color:#f5e7ed}.primary{padding:14px 18px;width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid #f0cfab;background:#ebc49b;color:#33253c;font-size:12px;font-weight:700;border-radius:6px;box-shadow:0 5px 20px #1c142544}.primary span{font-size:19px}.text-button{font-size:11px;color:#bda6cb;margin-top:15px;text-decoration:underline;text-underline-offset:5px}.card-note{font-size:9px;color:#8a779a;margin-top:22px;letter-spacing:.5px}.level-progress{position:absolute;left:22px;right:22px;bottom:17px;display:flex;align-items:center;gap:12px;font:8px 'Courier New',monospace;color:#907d9f;letter-spacing:1px;pointer-events:none}.level-progress>div{height:3px;background:#53405e66;flex:1;border-radius:3px;overflow:hidden}.level-progress i{display:block;width:0;height:3px;background:#c2a2cc;transition:width .3s}.combo{position:absolute;right:27px;top:34px;display:flex;align-items:baseline;gap:7px;pointer-events:none;color:#f5d3a2}.combo strong{font:italic 36px Georgia,serif}.combo span{font-size:10px}.toast{position:absolute;left:50%;bottom:55px;transform:translateX(-50%);padding:9px 15px;border:1px solid #8a729a55;border-radius:30px;background:#20172dd9;font-size:11px;color:#e5c7ef;pointer-events:none;opacity:0;transition:opacity .2s;white-space:nowrap}.toast.visible{opacity:1}.spellbar{display:flex;align-items:center;padding:18px 25px;gap:25px;background:linear-gradient(110deg,#211a33,#1b172a);border-top:1px solid #443851}.spellbar-caption{display:flex;flex-direction:column;gap:7px;min-width:150px}.spellbar-caption strong{font-size:12px;font-weight:400;letter-spacing:1px}.spellbar-caption>span:last-child{font-size:9px;color:#8e7b9c}.spell-list{display:flex;gap:12px;flex:1;justify-content:center}.spell-list button{width:74px;position:relative;border:1px solid #4c3b5c;background:#34273f66;border-radius:9px;display:flex;align-items:center;flex-direction:column;padding:5px 4px 9px;color:#dbc4e3;gap:2px;transition:background .2s,box-shadow .2s}.spell-list button.active{background:#795682;box-shadow:0 0 20px #ab78b659}.spell-list svg{width:37px;height:37px;fill:none;stroke:currentColor;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}.spell-list button:nth-child(1){color:#c7b6f8}.spell-list button:nth-child(2){color:#eec99e}.spell-list button:nth-child(3){color:#aad6c8}.spell-list button:nth-child(4){color:#e8adc5}.spell-list button:nth-child(5){color:#eedb99}.spell-list span{font-size:9px;letter-spacing:.5px;color:#b6a1c2}.spell-list kbd{display:none;position:absolute;top:5px;right:6px;font-size:8px;background:none;border:0;color:#92809f}body.assist .spell-list kbd{display:block}.help{border:1px solid #5c486b;border-radius:50%;width:26px;height:26px;color:#a28cab;font:15px Georgia,serif;margin-left:auto;flex-shrink:0}.chapters{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #393044;border-radius:9px;margin-top:23px;overflow:hidden}.chapter{display:flex;align-items:center;gap:11px;padding:19px 17px;border-right:1px solid #393044;opacity:.53;position:relative}.chapter:last-child{border:0}.chapter.active{background:#2b2039;opacity:1}.chapter.active:before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:#d4aedc}.chapter.done{opacity:.8}.chapter-num{font:23px Georgia,serif;color:#a58caf}.chapter>div{display:flex;flex-direction:column;gap:6px}.chapter-type{font:6px 'Courier New',monospace;letter-spacing:.8px;color:#a08cad}.chapter strong{font-size:10px;font-weight:400;color:#d1c0db;white-space:nowrap}.chapter-sign{margin-left:auto;font-size:20px;color:#bea2c9}.bottom-note{display:flex;justify-content:space-between;gap:20px;padding:10px 0;font-size:9px;color:#867491}.bottom-note p:first-child>span{color:var(--gold);margin-right:5px}.bottom-note kbd{font:9px 'Courier New',monospace;padding:2px 4px;border:1px solid #45364f;border-radius:3px;margin-left:4px}.note-divider{margin:0 8px;color:#4b3c54}footer{border-top:1px solid #332a3d;margin-top:15px;padding:24px 0;display:flex;justify-content:space-between;gap:10px;font:9px 'Courier New',monospace;color:#74647f;letter-spacing:.5px}footer span>span{margin:0 12px}footer>span:last-child{font-family:Arial,sans-serif;letter-spacing:1px}.practice{position:absolute;left:30px;top:60px;width:290px;padding:19px 20px;border:1px solid #7d6192;border-radius:10px;background:#251c36eb;pointer-events:none}.practice .card-eyebrow{display:block;font-size:8px}.practice strong{display:block;font-size:18px;font-weight:400;margin-top:12px}.practice p{font-size:10px;color:#b7a0c8;line-height:1.7}.practice button{pointer-events:auto;font-size:10px;color:#eac49a;text-decoration:underline;text-underline-offset:3px;padding:5px 0}.end-stats{display:flex;gap:24px;margin:20px 0}.end-stats>div{display:flex;flex-direction:column;gap:6px}.end-stats strong{font:25px 'Courier New',monospace;color:var(--gold)}.end-stats span{font-size:9px;color:#aa91b7}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.game-panel:fullscreen{border:0;border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#141222}.game-panel:fullscreen .game-top,.game-panel:fullscreen .spellbar{width:min(100%,1250px)}.game-panel:fullscreen .stage{width:min(100%,calc((100vh - 180px)*5/3));flex-shrink:0;max-height:calc(100vh - 180px)}body.embed .site-header,body.embed .heading,body.embed .chapters,body.embed .bottom-note,body.embed footer{display:none}body.embed main{padding:0;max-width:1200px}
@media(max-width:1050px){main{padding:28px 25px 0}.site-header{padding:0 25px}.game-top{gap:15px;padding:0 18px}.hud{gap:20px}.game-actions{padding-left:10px}.intro-card h2{font-size:26px;margin:12px 0}.intro-card p{font-size:11px;margin-bottom:14px}.choices{margin-bottom:16px}.card-note{margin-top:13px}.chapter{padding:15px 12px;gap:8px}.chapter-type{font-size:5px}.spellbar-caption{min-width:130px}.spell-list{gap:9px}.spell-list button{width:66px}.spellbar{gap:15px}.hearts{font-size:18px;gap:3px}}
@media(max-width:700px){.site-header{height:61px;padding:0 18px;gap:10px}.brand{font-size:15px}.back{margin-left:auto;font-size:10px}.header-tag{display:none}main{padding:24px 12px 0}.heading{margin:0 6px 22px}.heading h1{font-size:27px;margin-top:13px;letter-spacing:0}.heading h1>span{font-size:23px;display:block;margin:8px 0 0}.heading p{font-size:10px;letter-spacing:0}.eyebrow{font-size:8px;letter-spacing:1.3px}.heading-meta{display:none}.game-panel{border-radius:11px}.game-top{height:70px;padding:0 12px;gap:12px;flex-wrap:wrap}.chapter-index{font-size:22px;padding-right:9px}.chapter-title{gap:9px}.chapter-title strong{font-size:10px}.chapter-title .micro{display:none}.chapter-title>div{gap:0}.hud{gap:13px}.hearts{gap:2px;font-size:15px}.score-block strong{font-size:18px}.score-block .micro{font-size:6px;letter-spacing:.8px}.score-block{gap:4px}.best-block{display:none}.game-actions{padding-left:0;gap:0;border:0}.icon-btn{width:23px;font-size:17px}.stage{aspect-ratio:3/4}canvas{object-fit:fill}.stage-label{top:12px;left:13px;font-size:8px;letter-spacing:0}.stage-label .star{font-size:13px}.overlay{padding:28px 24px;align-items:center;background:linear-gradient(90deg,#1b1425e8,#1b1425b0 65%,#1b142557)}.intro-card{width:85%;max-width:300px}.intro-card h2{font-size:27px;margin:14px 0}.intro-card p{font-size:11px;margin-bottom:17px}.card-eyebrow{font-size:8px;letter-spacing:1px}.choices{margin-bottom:18px}.choice-row button{padding:7px 10px}.primary{padding:12px 15px}.card-note{font-size:8px;margin-top:16px}.text-button{font-size:10px;margin-top:13px}.combo{right:13px;top:34px}.combo strong{font-size:28px}.combo span{font-size:8px}.spellbar{padding:13px 12px;gap:8px;flex-wrap:wrap}.spellbar-caption{flex-direction:row;align-items:center;width:100%;min-width:0;gap:8px}.spellbar-caption .micro{font-size:7px;letter-spacing:.8px}.spellbar-caption strong{font-size:10px}.spellbar-caption>span:last-child{margin-left:auto;font-size:8px}.spell-list{gap:6px;justify-content:space-between}.spell-list button{flex:1;min-width:0;max-width:70px;padding:3px 2px 7px;border-radius:7px}.spell-list svg{width:31px;height:31px}.spell-list span{font-size:8px}.help{width:22px;height:22px;font-size:13px}.chapters{margin-top:16px;border-radius:7px}.chapter{flex-direction:column;padding:10px 3px;gap:5px;text-align:center}.chapter-num{font-size:17px}.chapter-type,.chapter-sign{display:none}.chapter strong{font-size:8px}.bottom-note{padding:7px 3px;flex-direction:column;gap:0;font-size:8px}.bottom-note p{margin:5px 0}.bottom-note p:last-child{display:none}footer{margin:4px 5px 0;padding:19px 0;font-size:7px}footer>span:last-child{display:none}footer span>span{margin:0 7px}.level-progress{left:13px;right:13px;bottom:12px;font-size:7px;gap:8px}.practice{left:15px;top:40px;width:220px;padding:15px}.practice strong{font-size:16px}.practice p{font-size:9px}.toast{font-size:10px;padding:8px 12px;bottom:40px}.game-panel:fullscreen .stage{width:100%;max-height:calc(100dvh - 170px);aspect-ratio:3/4;flex:1}.game-panel:fullscreen .game-top,.game-panel:fullscreen .spellbar{flex-shrink:0}body.embed .stage{aspect-ratio:3/4}}
@media(max-width:700px){.stage{width:100%;min-width:0;max-width:100%;min-height:500px}.spell-list{min-width:0;flex:1 1 0}.spell-list button{width:0;flex:1 1 0}.intro-card{width:100%}.game-panel:fullscreen .stage{min-height:0}}
@media(max-width:370px){.game-top{padding:0 10px;gap:8px;flex-wrap:nowrap}.chapter-title{gap:6px}.chapter-index{font-size:20px;padding-right:6px}.hearts{font-size:13px;gap:1px}.hud{gap:9px}.icon-btn{width:20px}.overlay{padding:28px 18px}.intro-card h2{font-size:24px}.spell-list span{font-size:7px}.spellbar-caption .micro{font-size:6px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* English edition: difficulty progression and an adjustable audio mix. */
.difficulty-note#difficulty-note{margin:0 0 7px;font-size:9px;line-height:1.5;min-height:27px;color:#b5a1bf;letter-spacing:.1px}.choice-row [data-difficulty="expert"].selected{background:#74536e;color:#ffe0bb}.intro-card h2{letter-spacing:0}.toast{max-width:90%;white-space:normal;text-align:center;line-height:1.5;width:max-content}.chapter-title{min-width:0}.chapter-title strong{white-space:nowrap}.audio-panel{position:absolute;top:68px;right:18px;z-index:20;width:280px;max-width:calc(100% - 30px);padding:18px;background:#2a2039f7;border:1px solid #8d7099;border-radius:12px;box-shadow:0 15px 45px #0008;backdrop-filter:blur(16px)}.audio-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.audio-heading strong{font:18px Georgia,serif;font-weight:400}.audio-heading button{font-size:25px;width:30px;height:30px;color:#dac3df}.audio-panel label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#d8c5df;margin-top:15px}.audio-panel output{font:11px 'Courier New',monospace;color:var(--gold)}.audio-panel input[type=range]{width:100%;height:28px;margin:4px 0;accent-color:var(--gold);cursor:pointer}.audio-panel>button{width:100%;margin-top:12px;border:1px solid #80628c;border-radius:5px;padding:10px;font-size:11px;background:#41304f}.audio-panel p{font-size:9px;color:#a68ab6;line-height:1.5;margin:12px 0 0}.end-stats{gap:18px}.end-stats span{font:8px 'Courier New',monospace;letter-spacing:.4px}.chapter-sign{flex-shrink:0}.game-actions,.hud{flex-shrink:0}
@media(max-width:1050px){.chapter{gap:7px;padding:15px 10px}.chapter strong{font-size:9px}.chapter-sign{display:none}}
@media(max-width:700px){.stage{min-height:540px}.intro-card h2{font-size:29px;line-height:1.2;margin:13px 0}.intro-card p{line-height:1.7}.choice-row{gap:6px}.choice-row button{padding:7px 8px;font-size:10px}.card-note{font-size:7px;letter-spacing:.2px}.stage-label{max-width:85%;font-size:8px}.chapter-title{flex:1;gap:7px}.chapter-title>div{min-width:0}.chapter-title strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;max-width:96px;letter-spacing:0}.game-top{gap:9px}.hearts{font-size:14px;gap:2px}.hud{gap:12px}.spellbar-caption{flex-wrap:wrap;gap:5px 7px}.spellbar-caption .micro{font-size:6px}.spellbar-caption strong{font-size:9px;letter-spacing:0}.spellbar-caption>span:last-child{font-size:7px}.chapter strong{font-size:8px;white-space:normal;line-height:1.4}.chapter{padding:10px 3px;gap:5px}.heading h1{font-size:27px}.heading p{font-size:10px;line-height:1.6;max-width:285px}.audio-panel{top:65px;right:12px}.end-stats strong{font-size:22px}.end-stats span{font-size:7px}.game-panel:fullscreen .stage{min-height:0}}
@media(max-width:370px){.chapter-index{font-size:19px;padding-right:5px}.chapter-title{gap:5px}.chapter-title strong{max-width:64px;font-size:9px}.hearts{font-size:12px;gap:1px}.hud{gap:8px}.score-block strong{font-size:17px}.game-top{gap:7px;padding:0 9px}.intro-card h2{font-size:27px}.intro-card p{font-size:10px}.difficulty-note#difficulty-note{font-size:8px}.choices{margin-bottom:13px}.primary{padding:12px}.card-note{font-size:6px}.level-progress{font-size:6px;gap:5px}}
