@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;800;900&display=swap');:root{color-scheme:dark;--ground:#141c19;--panel:#202922;--ink:#e7dec7;--muted:#9caa95;--line:#69725a66;--red:#8b3a3a;--gold:#c5b385;--serif:'Noto Serif SC','Songti SC','SimSun',serif;--sans:'Microsoft YaHei',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--serif);font-size:14px}[hidden]{display:none!important}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #edc99b;outline-offset:4px}button{border:0;background:none}a{color:inherit;text-decoration:none}button:disabled{cursor:default;opacity:.4}.masthead{height:91px;max-width:1512px;padding:0 4.2%;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center;font-size:23px;font-weight:600;letter-spacing:3px}.brand-seal{font-size:28px;border:1px solid #b8674f;width:39px;height:45px;display:grid;place-items:center;color:#d67c5c;letter-spacing:0}.brand small{display:block;font-size:11px;letter-spacing:2px;font-weight:400;color:var(--muted);margin-top:4px}.chapter-mark{font-size:11px;letter-spacing:3px;color:#b4b7a2}.red-dot{display:inline-block;width:5px;height:5px;background:#c76d4e;border-radius:50%;margin-right:12px}.header-actions{display:flex;align-items:center;gap:24px;font-size:12px}.header-actions button{padding:8px 0;color:#c5c5ae}.header-actions button:hover{color:#f4dfb4}.header-actions button:last-child{font-family:var(--sans);font-size:17px;border-left:1px solid var(--line);padding-left:23px}#gameContainer{position:relative;width:calc(100% - 80px);max-width:1432px;margin:28px auto 0;overflow:hidden;isolation:isolate;border:1px solid #72795a80;background:#404c3d}#stage{aspect-ratio:16/9;position:relative}#gameCanvas{width:100%;height:100%;display:block;touch-action:manipulation}.screen{position:absolute;inset:0;z-index:30;display:none}.screen.active{display:flex}.menu-screen{align-items:center;background-color:#17231ce8}.menu-content{position:relative;margin-left:7%;padding-bottom:40px;width:44%}.menu-eyebrow{color:#c1b58f;font-size:11px;letter-spacing:4px;display:flex;align-items:center;gap:12px}.menu-eyebrow>span{width:26px;height:1px;background:var(--red)}.game-title{font-weight:600;font-size:clamp(58px,7.3vw,112px);letter-spacing:10px;line-height:1.13;margin:27px 0 29px;color:#e8dfc1}.game-title>span{display:block;margin-left:52px}.menu-poem{font-size:14px;color:#b9bda5;line-height:2.3;letter-spacing:3px}.menu-buttons{display:flex;gap:12px;margin-top:30px}.btn{padding:14px 22px;min-height:46px;font-size:12px;letter-spacing:2px;text-align:left;display:inline-flex;justify-content:space-between;align-items:center;gap:28px;transition:background .18s,color .18s}.btn-primary{background:var(--red);color:#fff0d4}.btn-primary:hover{background:#cb674d}.btn-secondary{border:1px solid #8b927471;color:#c2c5ab;background:#1b271b40}.btn-secondary:hover{border-color:#c8ba93;background:#344030}.menu-desc{color:#83917f;font-size:11px;letter-spacing:3px;margin-top:25px}.menu-inscription{position:absolute;right:8%;top:16%;display:flex;flex-direction:column;align-items:center;gap:18px;writing-mode:vertical-rl}.menu-inscription>span{font-size:20px;letter-spacing:7px;text-shadow:none}.menu-inscription small{font-size:11px;letter-spacing:5px;background:#884632;padding:13px 6px;color:#e1c89f}.menu-foot{position:absolute;bottom:27px;left:7%;right:5%;display:flex;justify-content:space-between;font-size:11px;letter-spacing:3px;color:#a0ac92}.menu-foot>span:first-child{display:flex;align-items:center;gap:15px}.foot-line{width:40px;height:1px;background:#858f6b}.page-footer{padding:21px 42px 18px;max-width:1512px;margin:auto;display:flex;justify-content:space-between;color:#87917e;font-size:11px;letter-spacing:1px}.page-footer i{font-style:normal;margin:0 9px;color:#54614f}.page-footer b{color:#bf7152;margin:0 8px}/* 战场界面：命火与来敌在上，九式法器在下。 */.hud{position:absolute;top:0;left:0;right:0;min-height:76px;padding:15px 24px;display:flex;align-items:center;gap:30px;background:#152019ec;z-index:4;border-bottom:1px solid #97997655}.scene-heading{min-width:150px;border-right:1px solid var(--line);padding-right:25px}.scene-heading small{display:block;font-size:11px;letter-spacing:3px;color:#b5a477;margin-bottom:4px}.scene-heading strong{font-size:18px;letter-spacing:2px;font-weight:500}.hud-resources{display:flex;gap:30px}.hud-item{display:flex;align-items:center;gap:12px}.hud-label{font-size:11px;color:#b1bba0;white-space:nowrap}.hud-label.health-mark:before{content:'◆';color:#ce785c;margin-right:6px}.hud-value{font-family:var(--sans);font-weight:600;font-size:21px;font-variant-numeric:tabular-nums}.wave-status{margin-left:auto;font-size:11px;min-width:110px;letter-spacing:1px}.wave-track{height:3px;background:#68765a70;margin-top:9px}.wave-fill{height:100%;background:#c8b47c;transition:width .3s}.battle-meta{position:absolute;left:22px;right:22px;top:91px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#eee2bc;letter-spacing:2px;z-index:3;pointer-events:none;text-shadow:none}.battle-meta button{background:#26392ce8;padding:10px 17px;border:1px solid #a6aa7860;font-size:11px;letter-spacing:1px;pointer-events:auto}.battle-meta button:hover{background:#45513a}.tower-panel{position:absolute;bottom:0;left:0;right:0;display:flex;gap:0;background:#18221aee;z-index:5;min-height:104px;border-top:1px solid #92957270;padding:9px 15px 8px}.panel-title{font-size:11px;writing-mode:vertical-rl;letter-spacing:5px;color:#acb391;padding:10px 11px 0 1px;white-space:nowrap}.build-card{position:relative;flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;padding:0 3px 4px;border-right:1px solid #777f5640;border-bottom:1px solid transparent}.build-card:last-child{border-right:0}.build-card:hover{background:#3c493747}.build-card.selected{background:#5d60442b;border-bottom-color:#e1c28c}.bc-image{height:51px;width:56px;object-fit:contain}.bc-body{display:flex;flex-direction:column;gap:5px}.bc-name{font-size:11px;letter-spacing:1px;white-space:nowrap}.bc-cost{font-size:11px;color:#baa778;font-family:var(--sans)}.bc-cost i{font-style:normal;font-size:11px}.bc-key{position:absolute;top:3px;right:8px;color:#88987a;font-size:11px;font-family:var(--sans)}.build-card.unaffordable .bc-cost{color:#8a8d78}.build-card.unaffordable .bc-image{opacity:.5}.item-panel{position:absolute;right:18px;bottom:128px;display:flex;gap:7px;z-index:5}.item-panel .panel-title{display:none}.item-card{width:58px;height:70px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;background:#263322e8;border:1px solid #a1a27755}.ic-glyph{font-size:21px;color:#d1b77a;line-height:1}.ic-name{font-size:11px}.ic-cost{font-size:11px;font-family:var(--sans);color:#b7a47c}.ic-cost i{font-style:normal}.item-card:hover{background:#435039}.unaffordable{color:#a7aa91}.story-bar{position:absolute;left:22px;bottom:122px;padding:9px 13px;background:#1a291ee8;font-size:11px;max-width:65%;z-index:5;line-height:1.6;border-left:2px solid #ac7954}.toast{position:absolute;left:50%;top:110px;transform:translateX(-50%);z-index:20;background:#202d23ed;padding:13px 25px;border:1px solid #b39c6b66;white-space:nowrap;font-size:13px}.hud-buff{position:absolute;right:20px;top:145px;font-size:11px;color:#e8c978}.tower-card{position:absolute;width:230px;background:#1c281ff7;border:1px solid #adb28990;z-index:25;padding:16px;font-size:11px}.tc-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}.tc-glyph img{width:48px;height:55px;object-fit:contain}.tc-title{display:flex;flex-direction:column;gap:7px}.tc-name{font-size:15px}.tc-stars{color:#cab079}.tc-row{display:flex;gap:8px;padding:6px 0;border-bottom:1px solid #b9b78a25;font-family:var(--sans)}.tc-label{flex:1;color:#a9b499}.tc-now{min-width:24px}.tc-arrow,.tc-max{color:#87967b;font-size:11px}.tc-up{color:#d9c391;min-width:24px;text-align:right}.tc-trait{font-size:11px;color:#cabb8f;line-height:1.6;padding:9px 0}.tc-trait.preview{color:#a4b095}.tc-actions{display:flex;gap:7px;margin-top:12px}.tc-btn{padding:8px;flex:1;background:#52603b;font-size:11px}.tc-sell-btn{background:#513b2e}.tc-hint{font-size:11px;color:#8c9b80;margin-top:11px}.tc-btn.off{opacity:.5}.hurt{animation:hurt .35s}@keyframes hurt{50%{color:#e35d46}}.scene-select-screen{background:#18231ff5;align-items:center;justify-content:center}.scene-content{width:86%;padding:22px 0}.section-kicker{font-size:11px;letter-spacing:3px;color:#b28f63}.scene-title{font-size:34px;font-weight:500;letter-spacing:4px;margin:12px 0}.scene-intro{font-size:11px;color:#9fab96;letter-spacing:1px;line-height:1.8}.scene-list{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:30px 0}.scene-card{border-top:1px solid #b09e6f65;background:#29342a;position:relative;padding:20px 17px 16px;min-height:245px;display:flex;flex-direction:column}.scene-card-number{font-size:11px;color:#c19b66;letter-spacing:2px}.scene-card-visual{font-size:46px;font-weight:400;color:#9b9e7c;line-height:1;margin:19px 0 14px}.scene-card-title{font-size:16px;letter-spacing:2px;margin-bottom:8px}.scene-card-desc{font-size:11px;color:#a1ad95;line-height:1.9;flex:1}.btn-scene{padding:10px 0 0;min-height:30px;color:#cbb891;display:flex;justify-content:space-between;width:100%;border-top:1px solid #a4ab7b35;margin-top:14px;letter-spacing:2px;font-size:11px}.scene-card:hover{background:#33402e}.scene-card:nth-child(2){background:#35372a}.scene-card:nth-child(3){background:#263834}.scene-card:nth-child(4){background:#293339}.result-screen{align-items:center;justify-content:center;background:#16221bee}.result-content{width:340px;text-align:center}.result-seal{display:inline-block;border:2px solid #a5593e;padding:2px 12px;color:#c67d5b;font-size:45px;margin-bottom:12px}.result-content h2{font-size:36px;letter-spacing:4px;font-weight:500;margin:13px 0}.result-content>p:not(.section-kicker){font-size:12px;color:var(--muted)}.result-stats{margin:25px 0}.stat-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.stat-row span{color:var(--muted)}.modal{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;background:#07130cce;padding:20px}.modal-content{background:#202d23;width:580px;max-height:90dvh;overflow:auto;border:1px solid #a8a57b80;padding:30px}.modal-header{display:flex;justify-content:space-between;gap:20px}.modal-header h2{font-size:22px;font-weight:500;margin:13px 0}.modal-header p{margin:0}.btn-close{font-family:var(--sans);font-size:28px;align-self:flex-start;padding:0 7px}.modal-body{font-size:12px;line-height:2;color:#b9c3ab}.modal-body b{display:block;color:#e0d5b2;font-weight:500;letter-spacing:2px;margin-top:16px}.help-keys{border-top:1px solid var(--line);padding-top:15px;font-size:11px}@media(min-width:1600px){#gameContainer{max-width:1370px;margin-top:35px}}@media(max-width:1000px){.masthead{height:76px}.brand{font-size:20px}.chapter-mark{font-size:11px;letter-spacing:2px}.header-actions{gap:17px}#gameContainer{width:calc(100% - 40px);margin-top:20px}.menu-content{padding-bottom:20px}.game-title{margin:16px 0;font-size:65px;letter-spacing:7px}.menu-poem{font-size:11px;letter-spacing:2px}.menu-buttons{margin-top:17px;gap:8px}.btn{padding:11px 14px;font-size:11px;gap:18px;min-height:39px}.menu-desc{font-size:11px;margin-top:16px}.menu-eyebrow{font-size:11px;letter-spacing:2px}.menu-foot{font-size:11px;bottom:18px}.hud{padding:9px 15px;min-height:60px;gap:15px}.scene-heading{min-width:110px;padding-right:10px}.scene-heading strong{font-size:14px}.hud-resources{gap:18px}.hud-item{gap:7px}.hud-value{font-size:17px}.hud-label{font-size:11px}.wave-status{min-width:90px;font-size:11px}.battle-meta{top:72px;left:15px;right:15px;font-size:11px}.battle-meta button{font-size:11px;padding:8px 12px}.tower-panel{padding:5px 7px;min-height:83px}.bc-image{height:40px;width:44px}.bc-name{font-size:11px;letter-spacing:0}.bc-cost{font-size:11px}.bc-key{right:3px;font-size:11px}.panel-title{font-size:11px;padding:10px 6px 0 0}.bc-body{gap:4px}.item-panel{bottom:97px;right:13px}.item-card{height:57px;width:48px;gap:3px}.ic-glyph{font-size:17px}.ic-name{font-size:11px}.story-bar{bottom:97px;left:14px;font-size:11px;padding:7px 10px}.toast{top:86px;font-size:11px;padding:10px 17px}.page-footer{padding:17px 22px;font-size:11px}.desktop-hint{display:none}.scene-content{width:89%;padding:15px 0}.scene-title{font-size:25px;margin:7px 0}.scene-intro{font-size:11px}.scene-list{gap:10px;margin:17px 0}.scene-card{padding:12px;min-height:184px}.scene-card-visual{font-size:32px;margin:12px 0}.scene-card-title{font-size:12px}.scene-card-desc{font-size:11px}.scene-card-number{font-size:11px}.btn-scene{font-size:11px;margin-top:8px;padding-top:8px}.section-kicker{font-size:11px}.tower-card{width:210px;padding:12px}.tc-trait{font-size:11px}.tc-row{padding:4px 0}.tc-hint{font-size:11px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}/* 手机只提供横屏游戏；竖屏显示朝向提示。 */.orientation-guard{position:fixed;inset:0;z-index:200;background:var(--ground);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;gap:18px}.orientation-guard h2{font-size:25px;font-weight:500;letter-spacing:3px;margin:7px 0 0}.orientation-guard p{font-size:13px;line-height:1.9;color:var(--muted);margin:0;max-width:270px}.orientation-guard .brand-seal{margin-bottom:8px}.rotate-device{width:70px;height:42px;border:2px solid var(--gold);position:relative;margin:20px 0}.rotate-device:after{content:'↻';position:absolute;inset:-22px;font-family:var(--sans);font-size:75px;line-height:80px;color:var(--red)}@media(max-width:1024px) and (orientation:portrait){body{height:100dvh;overflow:hidden}.masthead,#gameContainer,.page-footer,.modal{visibility:hidden}}@media(max-width:1200px) and (max-height:600px) and (orientation:landscape){  body{--board-width:min(calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right)),calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom))*16/9));--board-height:calc(var(--board-width)*9/16);height:100dvh;overflow:hidden;display:flex;align-items:center;justify-content:center}  #gameContainer{width:var(--board-width);height:var(--board-height);max-width:none;min-height:0;margin:0;border:0;flex:none}  #stage{width:100%;height:100%;aspect-ratio:16/9}#gameCanvas{width:100%;height:100%;position:static;transform:none}  .masthead{position:fixed;top:calc((100dvh - var(--board-height))/2);right:calc((100vw - var(--board-width))/2);width:184px;height:44px;z-index:45;border:0;padding:0 9px;background:#152019;gap:8px}  .brand{gap:0;letter-spacing:0}.brand>span:not(.brand-seal){display:none}.brand-seal{width:24px;height:29px;font-size:19px}.chapter-mark,.page-footer{display:none}.header-actions{gap:12px;font-size:11px}.header-actions button{min-height:36px;min-width:28px;padding:4px 0}.header-actions button:last-child{padding-left:9px;font-size:11px}  .menu-content{margin-left:6%;padding-bottom:17px;width:56%}.menu-eyebrow{letter-spacing:2px;font-size:11px}.game-title{font-size:clamp(40px,6.5vw,58px);line-height:1.2;letter-spacing:5px;margin:12px 0}.game-title>span{display:inline;margin:0}.menu-poem{font-size:12px;line-height:1.9;letter-spacing:2px;margin:10px 0}.menu-buttons{margin-top:16px;gap:9px}.btn{min-height:36px;padding:10px 15px;gap:20px;font-size:11px}.menu-desc{font-size:11px;letter-spacing:2px;margin-top:13px}.menu-inscription{right:9%;top:26%;gap:12px}.menu-inscription>span{font-size:16px;letter-spacing:5px}.menu-inscription small{font-size:11px;padding:9px 5px;letter-spacing:3px}.menu-foot{bottom:14px;left:6%;right:5%;font-size:11px;letter-spacing:1px}.foot-line{width:25px}  .hud{min-height:44px;height:44px;padding:5px 10px;gap:11px;padding-right:192px;align-items:center}.scene-heading{min-width:85px;padding-right:10px}.scene-heading small{display:none}.scene-heading strong{font-size:13px;letter-spacing:1px}.hud-resources{gap:13px}.hud-item{gap:5px}.hud-label{font-size:11px}.hud-label.health-mark:before{display:none}.hud-value{font-size:15px}.wave-status{font-size:11px;min-width:67px;letter-spacing:0}.wave-track{margin-top:5px}  .battle-meta{top:50px;left:10px;right:10px;font-size:11px}.battle-meta>span{display:none}.battle-meta button{margin-left:auto;min-height:32px;padding:6px 10px;font-size:11px;letter-spacing:0}  .tower-panel{min-height:76px;padding:4px 5px 3px;display:flex;gap:0}.tower-panel>.panel-title{font-size:11px;padding:8px 6px 0 0;letter-spacing:3px}.build-card{padding:0 2px 3px;min-height:68px}.bc-image{height:34px;width:38px}.bc-body{gap:2px}.bc-name{font-size:11px;letter-spacing:0}.bc-cost{font-size:11px;white-space:nowrap}.bc-key{display:none}  .item-panel{bottom:84px;right:8px;gap:5px}.item-card{width:47px;height:53px;gap:2px;padding:2px}.ic-glyph{font-size:17px}.ic-name,.ic-cost{font-size:11px;line-height:1.2;white-space:nowrap}.story-bar{bottom:84px;left:9px;max-width:65%;font-size:11px;padding:6px 9px;line-height:1.5}.toast{top:55px;padding:8px 13px;font-size:11px}.hud-buff{top:91px;right:10px}  .scene-content{width:89%;padding:10px 0}.section-kicker{font-size:11px;letter-spacing:2px}.scene-title{font-size:24px;margin:5px 0}.scene-intro{font-size:11px;margin:6px 0;line-height:1.5}.scene-list{grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}.scene-card{padding:10px 12px;min-height:172px}.scene-card-number{font-size:11px;letter-spacing:0}.scene-card-visual{font-size:28px;margin:10px 0}.scene-card-title{font-size:13px;margin-bottom:6px;letter-spacing:1px}.scene-card-desc{font-size:11px;line-height:1.6}.btn-scene{min-height:28px;padding:6px 0 0;margin-top:8px;font-size:11px}.scene-content>#backBtn{min-height:31px;padding:7px 12px}  .tower-card{width:224px;max-height:calc(100% - 54px);overflow-y:auto;padding:10px;font-size:11px}.tc-head{margin-bottom:5px;gap:9px}.tc-glyph img{width:34px;height:37px}.tc-title{gap:3px}.tc-name{font-size:13px}.tc-row{padding:3px 0}.tc-trait{padding:5px 0;font-size:11px;line-height:1.4}.tc-actions{margin-top:7px}.tc-btn{min-height:33px;padding:7px;font-size:11px}.tc-hint{display:none}  .result-content{width:310px}.result-seal{font-size:29px;margin:0 0 5px;padding:0 9px}.result-content h2{font-size:26px;margin:7px 0}.result-content>p{margin:5px 0}.result-stats{margin:12px 0}.stat-row{padding:6px 0}.modal{padding:12px}.modal-content{padding:19px;max-height:calc(100dvh - 24px)}.modal-header h2{font-size:19px;margin:8px 0}.modal-body{font-size:11px;line-height:1.7}.modal-body b{margin-top:12px}}