:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#e7eee6;background:#102a32;font-synthesis:none;--gold:#f2ce86;--muted:#9fbbb7;--line:#d9e8df26}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -20%,#36594d 0,transparent 65%),#102a32;min-width:320px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #f8d892;outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.site-nav{max-width:1376px;margin:auto;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;font-size:13px}.brand{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:1px}.brand>span:last-child{font-weight:400;color:#9bb5b2;border-left:1px solid #46605f;margin-left:6px;padding-left:16px}.brand-mark{display:grid;place-items:center;width:29px;height:29px;background:#e8cc91;color:#25423f;border-radius:8px;font-family:serif;font-size:19px}.back-link{color:#b2c7c2}.back-link:hover{color:var(--gold)}main{max-width:1320px;margin:auto;padding:6px 24px 0}.game-shell{border:1px solid #b6d3bf2c;border-radius:18px;overflow:hidden;box-shadow:0 22px 75px #051b2770;background:#132e36}.game-heading{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:#16343b;border-bottom:1px solid var(--line)}.game-heading>div{display:flex;align-items:center;gap:13px}.series{font:12px Georgia,serif;letter-spacing:2px;color:#e3c486;border:1px solid #c4b98155;padding:5px 7px;border-radius:4px}.game-heading strong{font-size:17px;letter-spacing:2px}.edition{font-size:11px;color:var(--muted);border-left:1px solid #526b69;padding-left:14px}.toolbar button{background:transparent;color:#b8cbc6;font-size:12px;padding:8px 2px}.toolbar button:hover{color:var(--gold)}.viewport{position:relative;aspect-ratio:16/9;isolation:isolate;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none}.screen{position:absolute;inset:0;z-index:3}.home-screen{background:linear-gradient(90deg,#163936e0 0%,#1639369e 36%,#16393600 74%);display:flex;align-items:center}.home-copy{width:66%;padding:3.4% 6%}.overline{font-size:12px;letter-spacing:4px;color:#e6cf9b;margin:0 0 14px}.home-copy h1{font-family:"Songti SC","STSong",serif;font-size:clamp(44px,7.3vw,96px);line-height:1.05;letter-spacing:10px;margin:0;color:#fff6da;text-shadow:0 4px 30px #183c3244;font-weight:900}.home-copy h1 span{color:#e8c888}.intro{font-size:14px;line-height:1.9;letter-spacing:1px;color:#d3dfd1;margin:18px 0 21px}.hero-options{display:flex;gap:9px}.hero-choice{display:flex;align-items:center;gap:9px;padding:10px 14px 10px 10px;background:#14312f80;border:1px solid #9bbbaa55;border-radius:9px;transition:background .15s,transform .15s}.hero-choice:hover{transform:translateY(-2px)}.hero-choice[aria-pressed=true]{background:#e3d29d;border-color:#f6dfab;color:#243f39}.hero-choice .portrait{width:30px;height:34px;display:grid;place-items:center;font-family:serif;font-size:22px;border-radius:6px;background:#d9d1a320}.hero-choice b{display:block;font-size:13px}.hero-choice small{display:block;font-size:10px;margin-top:3px;opacity:.75}.hero-caption{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#c5d4c6;margin:13px 0 20px}.hero-caption b{color:#ebd8a8;font-size:12px}.menu-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.primary,.secondary{min-height:43px;border-radius:7px;padding:11px 21px;font-size:13px;font-weight:700;transition:filter .15s,transform .15s}.primary{background:linear-gradient(135deg,#f6daa0,#dcb970);color:#233c37;box-shadow:0 5px 19px #122e3b20}.primary span{padding-left:22px}.primary:hover,.secondary:hover{filter:brightness(1.1);transform:translateY(-1px)}.secondary{background:#24473eab;border:1px solid #abc3ab55;color:#e5e9d6}.icon-action,.text-button{background:transparent;font-size:12px;color:#d4dfcf;padding:12px 4px}.icon-action:hover,.text-button:hover{color:#f5dca7}.save-status{font-size:10px;color:#a9bfb3;letter-spacing:1px;margin:16px 0 0}.scene-seal{position:absolute;right:7%;top:14%;font:20px/1.8 "Songti SC",serif;color:#eef0d3;border:1px solid #eff3d369;padding:11px 9px;background:#1b4d4733}.hud{position:absolute;top:20px;left:22px;right:22px;display:flex;align-items:start;justify-content:space-between;z-index:2;pointer-events:none}.hero-hud{display:flex;gap:9px;align-items:center;background:#102f3c80;padding:9px 12px;border:1px solid #d8e6cb33;border-radius:10px;backdrop-filter:blur(8px)}#hero-symbol{font:28px serif;border:1px solid #e5cea078;color:#f8d999;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;background:#173e45}.vitals{width:174px}.hero-line{display:flex;justify-content:space-between;margin-bottom:6px}.hero-line b{font-size:12px}.hero-line small{font-size:10px;color:#becbc1}.meter{height:10px;background:#12313a;margin-top:5px;border-radius:3px;position:relative;overflow:hidden;border:1px solid #e9edcf22}.meter i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#4fa686,#b4ddb3);transition:width .12s}.meter.mana i{background:linear-gradient(90deg,#4a91b8,#95d7db)}.meter span{position:absolute;inset:0;text-align:center;font:8px/9px system-ui;color:#fff;text-shadow:0 1px 2px #173e45}.stage-hud{position:absolute;left:50%;transform:translateX(-50%);text-align:center;top:5px;text-shadow:0 2px 8px #173744}.stage-hud b{display:block;font-size:16px;letter-spacing:3px}.stage-hud span{display:block;margin-top:5px;font-size:10px;color:#e1e7d9}.right-hud{display:flex;align-items:center;gap:12px;font-size:13px}.coin-label{color:#f3d596;background:#17364188;padding:8px 12px;border-radius:7px}.right-hud button{pointer-events:auto;background:#193840a6;border:1px solid #d8e6cb44;font-size:20px;border-radius:7px;width:35px;height:35px}.battle-banner{position:absolute;left:50%;top:27%;transform:translateX(-50%);padding:12px 36px;white-space:nowrap;font:700 22px "Songti SC",serif;letter-spacing:3px;background:linear-gradient(90deg,transparent,#16333dd9,transparent);color:#fce2b0;text-shadow:0 2px 5px #20343b;pointer-events:none;opacity:0;transition:opacity .3s;z-index:2}.battle-banner.show{opacity:1}.panel-screen{background:#102d37ba;backdrop-filter:blur(8px);display:grid;place-items:center;padding:22px;overflow:auto}.panel{width:min(100%,820px);padding:29px;border:1px solid #a5bca756;border-radius:16px;background:linear-gradient(150deg,#2c4d47f5,#183a3df5);box-shadow:0 12px 45px #0e273444}.panel h2{font-family:"Songti SC",serif;font-size:32px;letter-spacing:3px;margin:0;color:#f3e6c8}.panel .overline{font-size:10px;margin-bottom:8px}.panel-subtitle{color:#b9cfc5;font-size:12px;line-height:1.8;margin:10px 0 21px}.compact{max-width:400px;text-align:center}.compact>button{display:block;width:100%;margin-top:12px}.compact>button.text-button{margin-top:4px}.stage-options,.upgrade-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.stage-card{border:1px solid #9ab6a94d;border-radius:9px;background:#1b393d;padding:0;text-align:left;overflow:hidden;position:relative}.stage-card img{width:100%;aspect-ratio:1.9;object-fit:cover;display:block}.stage-card div{padding:12px}.stage-card .stage-id{font-size:10px;color:#b8cebd}.stage-card b{display:block;font-size:16px;color:#f0dfba;margin:6px 0}.stage-card p{font-size:10px;line-height:1.8;color:#b4c8bd;margin:0}.stage-card small{display:block;margin-top:12px;color:#efd194;letter-spacing:3px}.stage-card:hover:not(:disabled){border-color:#e6cf91}.stage-card:disabled{filter:saturate(.4)}.panel-title{display:flex;align-items:center;justify-content:space-between}.currency{font-size:13px;color:#eed296}.upgrade-card{padding:17px;background:#132e3266;border:1px solid #a4bba538;border-radius:9px}.upgrade-icon{font-size:28px;color:#ebd5a3}.upgrade-card h3{font-size:15px;margin:12px 0 6px}.upgrade-card p{font-size:11px;color:#b2c7bd;line-height:1.8}.upgrade-card button{font-size:11px;padding:9px 10px;width:100%;margin-top:10px;min-height:36px}.equipment-summary{font-size:11px;color:#b5cbbf;margin:-8px 0 22px}.result-stars{font-size:32px;color:#ebc573;letter-spacing:9px;margin-top:16px}.result-stats{display:flex;justify-content:space-around;gap:7px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;margin:15px 0 20px}.result-stats b{font-size:20px;color:#ecd299;display:block}.result-stats span{font-size:10px;color:#adc6bc}.help-panel{max-width:650px}.help-panel>p:not(.overline){font-size:12px;line-height:1.8;color:#c3d4cb}.key-guide{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:25px 0;font-size:12px;color:#e3e4cb}.key-guide span{line-height:1.8}kbd{font:11px system-ui;background:#62796a55;border:1px solid #bbd2b744;border-radius:3px;padding:3px 6px;margin-right:3px}.controls{display:flex;align-items:center;justify-content:space-between;padding:14px 22px;gap:10px;background:#15313a;border-top:1px solid var(--line);user-select:none;touch-action:none}.move-controls,.action-controls{display:flex;gap:8px}.controls button{position:relative;border:1px solid #acc3ad45;border-radius:9px;background:#24464a;height:56px;min-width:53px;padding:7px 13px;touch-action:none;overflow:hidden}.controls button>span{font-size:13px;display:block;position:relative;z-index:1}.controls button>small{font-size:9px;display:block;margin-top:5px;color:#acc2be;position:relative;z-index:1}.controls .move-controls button>span{font-size:20px}.controls button.held{background:#66856a}.controls .attack-button{background:#d6be85;color:#263e3c;min-width:70px;border-color:#efd59b}.attack-button small{color:#42574a!important}.skill-button{min-width:95px!important}.skill-button i{position:absolute;inset:0;background:#0c222abf;transform-origin:bottom;pointer-events:none}.skill-button.empty{opacity:.55}.combat-tip{font-size:11px;line-height:1.7;color:#d0d8c4;white-space:nowrap}.combat-tip span{font-size:10px;color:#8ca9a6}.under-game{display:flex;align-items:center;justify-content:space-between;color:#8daaa5;font-size:10px;padding:5px 3px}.under-game p{display:flex;align-items:center;gap:12px}.status-dot{width:5px;height:5px;border-radius:50%;background:#8cbd91}.under-game>span{opacity:.7}.game-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin:37px 0 48px;padding:0 12px}.note-number{display:block;font:20px serif;color:#d4c492;float:left;margin-right:13px;border-right:1px solid #96b2a647;padding-right:14px}.game-notes h2{font-size:13px;font-weight:600;letter-spacing:1px;margin:3px 0 12px}.game-notes p{color:#90afa7;font-size:11px;line-height:1.9;margin:0}footer{max-width:1280px;margin:auto;padding:20px 24px 28px;border-top:1px solid #98b7a61f;font-size:10px;color:#789b95;line-height:1.8}footer span{padding:0 10px}footer a{margin-left:14px;color:#b2bda2}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#f2e6c9;color:#234239;padding:12px 22px;border-radius:8px;z-index:20;font-size:13px;box-shadow:0 8px 28px #10293233;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90%;text-align:center}#toast.show{opacity:1}.no-script{position:absolute;top:40%;left:20%;padding:30px;background:#16343b}.game-shell:fullscreen{height:100dvh;width:100vw;border-radius:0;display:flex;flex-direction:column;align-items:center}.game-shell:fullscreen .game-heading,.game-shell:fullscreen .controls{width:100%}.game-shell:fullscreen .viewport{width:min(100%,calc((100dvh - 147px)*16/9));flex:1;min-height:0;aspect-ratio:16/9}.game-shell:fullscreen canvas{object-fit:contain}.game-shell.expanded{position:fixed;inset:0;z-index:50;border-radius:0;height:100dvh;overflow:auto}.game-shell.expanded .viewport{max-height:calc(100dvh - 130px)}@media(min-width:1450px){.home-copy h1{font-size:96px}}@media(max-width:1000px){.home-copy{padding:3% 5%;width:71%}.home-copy h1{font-size:62px}.intro{font-size:12px;margin:12px 0 14px}.hero-choice{padding:7px}.hero-caption{margin:9px 0 12px}.hero-caption span{display:none}.menu-actions{gap:7px}.menu-actions .primary,.menu-actions .secondary{padding:9px 15px;min-height:39px}.save-status{margin-top:11px}.combat-tip{display:none}.hud{top:12px;left:12px;right:12px}.hero-hud{padding:6px 8px}.vitals{width:145px}.stage-hud b{font-size:14px}.controls{padding:10px 14px}.panel{padding:20px}.panel h2{font-size:27px}.stage-options{margin-bottom:15px}.panel-subtitle{margin:8px 0 14px}}@media(max-width:700px){main{padding:0 10px}.site-nav{padding:17px 15px;font-size:11px}.brand>span:last-child{padding-left:9px;margin-left:0}.game-heading{height:49px;padding:0 12px}.game-heading strong{font-size:14px}.game-heading>div{gap:8px}.edition{display:none}.toolbar button{font-size:10px}.toolbar{gap:12px!important}.series{font-size:10px;padding:3px 5px}.game-shell{border-radius:12px}.viewport{aspect-ratio:4/3}.viewport canvas{object-fit:cover;object-position:50%;}body.is-playing .viewport{aspect-ratio:16/9}.home-screen{background:linear-gradient(90deg,#173b36ed,#173b3677)}.home-copy{width:100%;padding:7% 6%}.home-copy .overline{font-size:9px;letter-spacing:3px;margin-bottom:9px}.home-copy h1{font-size:50px;letter-spacing:6px}.intro{font-size:11px;line-height:1.7;margin:10px 0 14px}.hero-options{gap:6px}.hero-choice{padding:6px 8px;gap:6px}.hero-choice b{font-size:11px}.hero-choice small{font-size:8px}.hero-choice .portrait{font-size:19px;width:24px;height:29px}.hero-caption b{font-size:10px}.menu-actions .primary,.menu-actions .secondary{font-size:11px;padding:9px 13px}.icon-action{font-size:10px}.save-status{font-size:9px;margin-top:12px}.scene-seal{display:none}.hud{top:7px;left:7px;right:7px}.hero-hud{gap:6px;padding:4px 6px;border-radius:6px}.vitals{width:96px}.hero-line{margin-bottom:2px}.hero-line b{font-size:9px}.hero-line small{font-size:7px}#hero-symbol{width:27px;height:27px;font-size:19px}.meter{height:7px;margin-top:3px}.meter span{font-size:6px;line-height:6px}.stage-hud{top:4px}.stage-hud b{font-size:11px;letter-spacing:1px}.stage-hud span{font-size:7px;margin-top:2px}.right-hud{gap:4px}.coin-label{font-size:9px;padding:5px 7px}.right-hud button{width:27px;height:27px;font-size:15px}.battle-banner{font-size:15px;top:30%;padding:9px 18px}.controls{gap:8px;padding:10px 8px;flex-wrap:wrap}.move-controls,.action-controls{gap:5px}.controls button{min-width:38px;height:47px;padding:6px 7px;border-radius:7px}.controls button>span{font-size:10px}.controls button>small{font-size:7px}.controls .move-controls button>span{font-size:16px}.skill-button{min-width:57px!important}.controls .attack-button{min-width:45px}.panel-screen{padding:10px}.panel{padding:17px;border-radius:11px;max-height:100%;overflow:auto}.panel h2{font-size:23px}.panel .overline{font-size:8px;letter-spacing:2px}.panel-subtitle{font-size:10px;line-height:1.6;margin:8px 0 12px}.stage-options{gap:7px}.stage-card div{padding:8px}.stage-card b{font-size:12px;margin:4px 0}.stage-card p{display:none}.stage-card small{font-size:9px;margin-top:7px}.stage-card .stage-id{font-size:8px}.stage-card img{aspect-ratio:1.4}.panel .secondary,.panel .primary{min-height:35px;padding:8px 13px;font-size:11px}.upgrade-options{gap:6px;margin-bottom:15px}.upgrade-card{padding:9px}.upgrade-icon{font-size:20px}.upgrade-card h3{font-size:12px;margin:8px 0}.upgrade-card p{font-size:9px}.upgrade-card button{font-size:9px!important;padding:7px 4px!important}.currency{font-size:10px}.equipment-summary{font-size:9px;margin:0 0 12px}.key-guide{gap:8px;font-size:10px;margin:14px 0;grid-template-columns:1fr}.help-panel>p:not(.overline){font-size:10px}.result-stars{font-size:24px;margin-top:9px}.result-stats{padding:9px 0;margin:9px 0}.result-stats b{font-size:15px}.result-stats span{font-size:8px}.compact>button{margin-top:8px}.under-game{font-size:8px}.under-game p{gap:7px}.under-game>span{display:none}.game-notes{gap:19px;grid-template-columns:1fr;margin:27px 6px}.game-notes h2{font-size:12px;margin:0 0 8px}.game-notes p{font-size:10px}.note-number{font-size:19px}.game-notes>div{padding-left:39px;position:relative}.note-number{position:absolute;left:0}footer{padding:17px 17px 22px;font-size:9px}}@media(max-width:430px){.controls{justify-content:center}.move-controls{margin-right:auto}.action-controls{width:100%;justify-content:space-between}.action-controls button{flex:1}.viewport{aspect-ratio:1.12}.home-copy h1{font-size:49px}.menu-actions .icon-action{padding:7px 0}.hero-choice{padding:6px}.hero-caption{margin:11px 0 15px}}@media(max-height:520px) and (orientation:landscape){.site-nav,.under-game,.game-notes,footer{display:none}main{padding:0}.game-shell{border-radius:0;border:0}.game-heading{height:36px}.viewport,body.is-playing .viewport{aspect-ratio:16/9;height:calc(100dvh - 105px);width:100%;}canvas{object-fit:contain!important}.home-screen{background:linear-gradient(90deg,#163936f0,#16393666 65%,transparent)}.home-copy{padding:12px 6%;width:75%}.home-copy h1{font-size:42px}.home-copy .overline{margin-bottom:5px}.intro{font-size:10px;margin:7px 0}.hero-caption{display:none}.hero-options{margin:8px 0}.hero-choice{padding:4px 8px}.hero-choice .portrait{height:22px}.save-status{display:none}.menu-actions .primary,.menu-actions .secondary{min-height:30px;padding:7px 12px}.controls{height:69px;flex-wrap:nowrap;padding:7px 15px}.action-controls{width:auto}.controls button{height:45px}.panel-screen{padding:8px}.panel{padding:15px;max-height:100%;overflow:auto}.stage-card img{display:none}.stage-card p{display:none}.panel-subtitle{margin:5px 0 9px}.key-guide{grid-template-columns:1fr 1fr}.panel h2{font-size:22px}.panel .overline{margin-bottom:4px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
