:root{--paper:#f5f2df;--ink:#294d3d;--green:#44794d;--line:#d8dec4;--yellow:#f7d86d;--cream:#fffdf2;--shadow:#2349361a;font-family:"Hannotate SC","Yuanti SC","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 0%,#e0e7c5,transparent 50%),var(--paper)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #ed9f3d;outline-offset:3px}button:disabled{cursor:default;opacity:.55}.site-nav{height:42px;display:flex;justify-content:space-between;align-items:center;padding:0 max(20px,calc((100vw - 1370px)/2));background:#fffdf080;border-bottom:1px solid #d5dec0;font-size:12px;position:sticky;top:0;z-index:20}.site-nav a{color:#56725a;text-decoration:none;font-weight:700}.game-shell{max-width:1410px;margin:auto;padding:25px 28px 10px}.masthead{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:2px}.leaf-mark{font-size:21px;color:#78a15c;vertical-align:middle}h1{font-size:46px;letter-spacing:1px;line-height:1.1;margin:6px 0 0;transform:rotate(-1deg)}h1 span{color:#65954b}h1 i{color:#d79941;margin-left:6px;font-style:normal}.head-right{text-align:right}.head-right p{font-size:14px;margin:0 0 12px;color:#79906a}.utility{display:flex;justify-content:flex-end;gap:8px}.utility button{background:#fffdf0;border:1px solid #d6dec3;border-radius:20px;padding:8px 15px;font-size:12px;min-height:36px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px}.play-column{min-width:0}.hud{display:flex;align-items:center;gap:16px;margin-bottom:10px;min-height:50px}.coin-badge{background:var(--yellow);border:1.5px solid #deb857;box-shadow:0 3px 0 #d9b76360;border-radius:15px;display:flex;align-items:center;gap:8px;padding:8px 14px;min-width:139px}.coin-badge>span{font-size:25px;color:#a16f20}.coin-badge strong{font-size:23px;font-variant-numeric:tabular-nums}.coin-badge small{font-size:11px}.stage-copy{display:flex;flex-direction:column;gap:4px;font-size:15px}.stage-copy span{font-size:11px;color:#79906a}.wave-dots{display:flex;gap:7px;margin-left:auto}.wave-dots span{width:27px;height:27px;border:1.5px solid #cbd7b9;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:#fffdf0;color:#95a78d}.wave-dots .current{background:#64944d;color:white;border-color:#64944d}.wave-dots .done{background:#d9e8ba;color:#507438}.field{position:relative;isolation:isolate;border:5px solid var(--cream);border-radius:24px;overflow:hidden;box-shadow:0 10px 30px #31533816,0 0 0 1px #cad8b5;background:#bddd83;aspect-ratio:1100/530}canvas{display:block;width:100%;height:100%;touch-action:none}.field-label{position:absolute;bottom:12px;right:14px;font-size:10px;color:#426e3f;letter-spacing:2px;pointer-events:none}.slot{position:absolute;width:6.9%;height:18%;transform:translate(-50%,-70%);background:transparent;border:0;border-radius:40%;font-size:0;z-index:2}.slot:disabled{opacity:1}.slot.chosen{outline:2px dashed #fff4c3;outline-offset:-2px;cursor:crosshair}.overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:flex-end;padding:22px;pointer-events:none}.overlay[hidden]{display:none}.note{pointer-events:auto;max-width:340px;background:#fffef0f5;border:1px solid #d9d7b5;border-radius:18px;padding:20px 23px;box-shadow:0 8px 0 #4c71371a;transform:rotate(-1deg)}.note-label{font-size:11px;letter-spacing:3px;color:#9c813b}.note h2{font-size:25px;margin:6px 0 8px}.note p{font-size:12px;line-height:1.7;margin:0 0 14px;color:#6d805c}.primary{background:#477f50;color:#fffef0;border-radius:12px;box-shadow:0 4px 0 #2f633c;font-size:16px;font-weight:800;padding:12px 18px;min-height:46px}.primary span{margin-left:15px}.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #2f633c}.note .tiny{font-size:10px;margin:12px 0 0;text-align:center}.overlay.end{background:#fffdf035;align-items:center;justify-content:center;backdrop-filter:blur(2px)}.overlay.end .note{transform:rotate(-1deg);text-align:center;max-width:370px}.action-bar{display:flex;align-items:center;gap:15px;min-height:78px;margin-top:13px;background:#fffdf099;border:1px solid #d7dec1;border-radius:17px;padding:11px 18px}.ammo{display:grid;grid-template-columns:auto auto;align-items:center;gap:1px 10px;min-width:140px}.ammo>span{font-size:13px;font-weight:700}.ammo strong{font-size:19px;font-variant-numeric:tabular-nums}.ammo small{grid-column:1/3;font-size:10px;color:#8a9675}.change-weapon{border:1.5px solid #ced9b6;background:#ecf1da;border-radius:11px;padding:10px 13px;display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap;min-height:45px}kbd{font:700 11px "PingFang SC",sans-serif;background:#fffdf3;border:1px solid #d3dabe;border-bottom-width:3px;border-radius:5px;padding:2px 5px;color:#5c7250}.desktop-hint{font-size:10px;line-height:2.2;color:#81916f;margin:0 0 0 auto}.desktop-hint span{padding:0 5px}.status{margin:12px 5px 0;color:#67835a;font-size:12px;min-height:20px}.garden{background:#fffdf0b8;border:1px solid #dce2c9;border-radius:23px;padding:18px 14px}.section-heading{display:flex;align-items:center;gap:8px}.section-heading>span{font-size:10px;background:#e4ead2;border-radius:50%;padding:5px}.section-heading h2{font-size:17px;margin:0}.section-heading small{font-size:9px;color:#80946d;margin-left:auto}.aside-tip{font-size:10px;color:#8d977b;margin:9px 0 12px}.plant-shop{display:grid;grid-template-columns:1fr 1fr;gap:8px}.plant-card{position:relative;background:#f2f4e1;border:1.5px solid #dce3c4;border-radius:14px;min-height:108px;padding:6px 3px 8px;display:flex;align-items:center;flex-direction:column;transition:transform .15s,border-color .15s}.plant-card:hover{transform:translateY(-2px)}.plant-card.selected{border-color:#648d41;background:#e7efc7;box-shadow:0 0 0 2px #648d412a}.plant-card svg{width:52px;height:49px}.plant-card strong{font-size:12px}.plant-card small{font-size:9px;color:#89936e;margin:2px 0}.plant-card .price{font-size:12px;font-weight:800;color:#ae8031}.shovel{background:none;border-bottom:1px dashed #d7dfbd;display:flex;justify-content:space-between;width:100%;padding:12px 2px;color:#7e916d;font-size:11px;margin:3px 0 17px}.shovel span{font-size:9px}.shovel.selected{color:#b47b25}.weapon-shop{display:grid;gap:7px;margin-top:12px}.weapon-card{display:flex;align-items:center;gap:8px;padding:7px 9px;background:#f3f2e3;border:1.5px solid #e1e1c9;border-radius:12px;text-align:left;width:100%;min-height:52px}.weapon-card.active{border-color:#97af77;background:#e8edce}.weapon-card svg{width:45px;height:33px}.weapon-card>span{display:flex;flex-direction:column;gap:2px;flex:1}.weapon-card strong{font-size:11px}.weapon-card small{font-size:9px;color:#8b9678}.weapon-card b{font-size:11px;color:#ad8131;white-space:nowrap}.warm-note{font-size:10px;line-height:1.8;color:#9aa282;text-align:center;margin:16px 0 0}footer{display:flex;gap:15px;justify-content:center;margin:22px 0 4px;font-size:10px;color:#97a084}footer span{color:#bea15b}.touch-controls{display:none}.boss-hud{position:absolute;top:14px;left:29%;right:29%;background:#fffbeaef;border:2px solid #d7b779;border-radius:13px;padding:7px 12px;z-index:3;font-size:12px}.boss-hud[hidden]{display:none}.boss-hud span{display:flex;justify-content:space-between;gap:10px}.boss-hud b{font-size:9px;font-weight:500;color:#9b8054}.boss-hud>div{height:7px;background:#e7ddba;border-radius:10px;margin-top:5px;overflow:hidden}.boss-hud i{display:block;height:100%;background:#e1ac46;transition:width .2s}dialog{border:1px solid #d5dfbd;border-radius:24px;background:#fffef1;padding:30px;color:var(--ink);max-width:650px;width:calc(100% - 32px);box-shadow:0 30px 80px #294d3d40}dialog::backdrop{background:#31563b55;backdrop-filter:blur(4px)}dialog h2{font-size:28px}.close{position:absolute;top:13px;right:15px;font-size:28px;background:none}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 25px}.help-grid p{font-size:13px;line-height:1.9;color:#788366}.help-grid b{display:block;color:#406745}.close-help{width:100%;margin-top:15px}
@media(pointer:coarse){.touch-controls{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.touch-controls>div{display:flex;gap:9px}.touch-controls button{width:64px;height:54px;border-radius:15px;background:#e2eacb;border:1.5px solid #c3d3a4;box-shadow:0 3px 0 #c3d3a4;font-size:19px;touch-action:none;user-select:none}.touch-controls button small{font-size:9px;display:block}.touch-controls #fire{background:#f4d46d;border-color:#d3b450;box-shadow:0 3px 0 #d3b450;width:84px}.touch-controls>span{font-size:10px;color:#8b9879}.desktop-hint{display:none}}
@media(min-width:1450px){.game-shell{padding-top:35px}.masthead{margin-bottom:28px}}
@media(max-width:1000px){.game-shell{padding:18px}.game-layout{grid-template-columns:minmax(0,1fr) 210px;gap:14px}.garden{padding:14px 10px}.desktop-hint{display:none}.note{padding:15px 18px;max-width:280px}.note h2{font-size:21px}.note p{font-size:11px}.overlay{padding:14px}.plant-card{min-height:99px}.head-right p{display:none}}
@media(max-width:740px){.site-nav{padding:0 16px;height:38px;font-size:10px}.game-shell{padding:14px 12px}.masthead{margin-bottom:14px}.eyebrow{font-size:9px;letter-spacing:1px}h1{font-size:34px}.utility{gap:4px}.utility button{padding:7px 9px;font-size:10px;min-height:34px}.utility #sound{font-size:0;width:34px}.utility #sound:before{content:'♪';font-size:17px}.game-layout{grid-template-columns:1fr;gap:14px}.hud{gap:10px;margin-bottom:8px}.coin-badge{min-width:105px;gap:6px;padding:6px 10px}.coin-badge strong{font-size:20px}.coin-badge>span{font-size:20px}.stage-copy{font-size:12px}.stage-copy span{font-size:9px}.wave-dots{gap:3px}.wave-dots span{width:19px;height:19px;font-size:9px}.field{border-width:3px;border-radius:17px}.overlay{padding:8px}.note{padding:11px 13px;max-width:230px;border-radius:12px}.note-label{font-size:8px}.note h2{font-size:17px;margin:3px 0 4px}.note p{font-size:10px;line-height:1.4;margin:0 0 9px}.note .tiny{display:none}.primary{font-size:12px;padding:8px 14px;min-height:38px}.field-label{font-size:7px;bottom:8px;right:8px;letter-spacing:1px}.action-bar{gap:9px;margin-top:9px;padding:9px 12px;min-height:62px;justify-content:space-between}.ammo{min-width:130px}.status{font-size:11px;margin-top:11px}.garden{padding:13px}.plant-shop{grid-template-columns:repeat(4,1fr)}.plant-card{min-height:101px}.plant-card svg{width:49px;height:44px}.section-heading h2{font-size:15px}.aside-tip{margin:7px 0 9px}.shovel{margin-bottom:10px;padding:10px 2px}.weapon-shop{display:flex;gap:6px}.weapon-card{flex-wrap:wrap;justify-content:center;text-align:center;gap:1px;padding:6px;min-width:0;flex:1}.weapon-card svg{width:45px;height:30px}.weapon-card>span{flex-basis:100%}.weapon-card b{font-size:10px;margin-top:3px}.warm-note{display:none}footer{font-size:9px;gap:10px;margin-top:15px}.boss-hud{top:7px;left:28%;right:28%;padding:4px 8px;font-size:9px}.boss-hud b{display:none}.boss-hud>div{height:5px;margin-top:3px}.help-grid{grid-template-columns:1fr;gap:0}.help-grid p{margin:6px 0;font-size:12px}dialog{padding:23px}.change-weapon{min-height:44px}}
@media(max-height:600px) and (orientation:landscape) and (pointer:coarse){.site-nav{height:27px}.game-shell{padding:8px 12px}.masthead{margin-bottom:5px}.eyebrow,.head-right p,footer,.warm-note,.desktop-hint{display:none}h1{font-size:23px;margin:0}.utility button{min-height:27px;padding:3px 10px}.game-layout{grid-template-columns:minmax(0,1fr) 185px;gap:10px}.hud{min-height:34px;margin-bottom:5px}.coin-badge{min-width:90px;padding:3px 8px}.coin-badge strong{font-size:16px}.stage-copy{font-size:11px}.stage-copy span{font-size:8px}.field{max-height:calc(100svh - 195px)}.garden{padding:9px}.plant-shop{grid-template-columns:1fr 1fr;gap:5px}.plant-card{min-height:70px;padding:3px}.plant-card svg{height:28px}.plant-card strong{font-size:10px}.plant-card small{display:none}.plant-card .price{font-size:10px}.section-heading h2{font-size:12px}.aside-tip{font-size:8px;margin:5px 0}.section-heading>span{padding:3px}.section-heading small{font-size:8px}.weapon-shop{display:flex;gap:4px}.weapon-card svg{display:none}.weapon-card{padding:5px 2px;min-height:40px}.weapon-card strong{font-size:8px}.weapon-card small{display:none}.weapon-card b{font-size:8px}.shovel{font-size:9px;margin:0 0 7px;padding:8px 0}.shovel span{font-size:8px}.action-bar{padding:5px 10px;min-height:44px;margin-top:5px;float:left;width:60%;gap:5px}.ammo strong{font-size:14px}.ammo>span{font-size:10px}.ammo small{font-size:8px}.change-weapon{padding:5px 8px;min-height:33px;font-size:10px}.touch-controls{margin-top:5px;padding-left:10px;gap:8px}.touch-controls>span{display:none}.touch-controls button{height:43px;width:42px}.touch-controls #fire{width:50px}.status{clear:both;padding-top:6px;margin-top:0;font-size:9px}.note{padding:9px 13px;max-width:260px}.note h2{font-size:17px}.note p{font-size:10px;margin-bottom:7px}.note .tiny{display:none}.note-label{font-size:8px}.primary{min-height:33px;padding:6px 13px;font-size:12px}}
/* 矮屏也让发射和按键提示紧挨战场，不需要滚动找操作。 */
@media(min-width:1001px) and (max-height:850px){.game-shell{max-width:1280px;padding-top:13px}.masthead{margin-bottom:12px}h1{font-size:37px}.head-right p{margin-bottom:6px}.game-layout{grid-template-columns:minmax(0,1fr) 228px;gap:18px}.garden{padding:13px 12px}.plant-card{min-height:90px}.plant-card svg{height:37px}.weapon-card{min-height:45px;padding:5px 8px}.warm-note{margin-top:9px}.shovel{margin-bottom:11px;padding:9px 2px}.action-bar{min-height:64px;padding:8px 14px;margin-top:9px}.status{margin-top:9px}footer{margin-top:12px}.field{max-height:calc(100svh - 310px)}}
.stage-copy{min-width:0}.stage-copy strong{white-space:nowrap}.stage-copy span{line-height:1.4}
@media(max-width:420px){.hud{gap:7px}.stage-copy strong{font-size:11px}.coin-badge{min-width:90px;padding:5px 8px}.coin-badge small{font-size:9px}.wave-dots{gap:2px}.wave-dots span{width:16px;height:16px;font-size:8px}}
@media(max-height:600px) and (orientation:landscape) and (pointer:coarse){.game-shell{padding:6px 10px}.site-nav{height:24px}.masthead{height:25px;margin-bottom:3px}.hud{min-height:32px;margin-bottom:4px}.coin-badge{min-height:30px}.field{width:100%;height:calc(100svh - 165px);max-height:none;aspect-ratio:auto}.garden{padding:8px;max-height:calc(100svh - 64px);overflow-y:auto}.plant-card{min-height:59px}.plant-card svg{height:25px}.plant-card .price{font-size:9px}.aside-tip{font-size:8px;margin:4px 0 6px}.shovel{padding:6px 0;margin-bottom:6px}.weapon-shop{display:grid;grid-template-columns:1fr;gap:4px;margin-top:7px}.weapon-card{display:flex;flex-wrap:nowrap;min-height:35px;text-align:left;justify-content:space-between;padding:5px 8px}.weapon-card>span{flex:1;min-width:0}.weapon-card strong{font-size:10px;white-space:nowrap}.weapon-card b{font-size:9px;flex-shrink:0}.weapon-card svg{display:block;width:27px;height:21px;margin-right:4px}.status{font-size:9px}.ammo{min-width:115px}.action-bar{width:59%}.touch-controls{padding-left:8px}.touch-controls>div{gap:6px}}

/* 月夜冒险：八位朋友分栏陈列，道具可随时切换。 */
[role="tabpanel"][hidden]{display:none}.shop-tabs{display:flex;background:#e9edd8;border-radius:12px;padding:4px;gap:3px;margin-bottom:12px}.shop-tabs button{flex:1;background:none;padding:9px 3px;border-radius:9px;font-size:11px;font-weight:700;min-height:38px;white-space:nowrap}.shop-tabs button[aria-selected="true"]{background:#fffef3;box-shadow:0 2px 5px #294d3d14;color:#376645}.shop-tabs b{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#dce8bd;font-size:9px;margin-left:2px}.plant-card{min-height:95px;padding:4px 2px 6px}.plant-card svg{height:39px;width:46px}.plant-card small{font-size:8px;white-space:nowrap}.plant-card.locked{filter:saturate(.5);opacity:.62}.unlock-label:empty{display:none}.unlock-label{position:absolute;bottom:5px;background:#ecebd9;inset-inline:3px;font-size:9px;color:#6b7257;padding:2px 0;border-radius:4px}.upgrade-note{font-size:10px;line-height:1.7;color:#829269;text-align:center;margin:9px 0 0}.shovel{margin-bottom:0}.change-weapon span{font-size:17px}.text-button{display:block;margin:10px auto 0;padding:7px 9px;min-height:32px;font-size:10px;color:#7b8869;background:transparent;text-decoration:underline;text-underline-offset:3px}.text-button[hidden]{display:none}.wave-dots{gap:3px;display:grid;grid-template-columns:repeat(5,18px);grid-template-rows:repeat(3,18px);flex-shrink:0}.wave-dots span{width:18px;height:18px;font-size:8px}.hud{min-height:61px}.wave-dots span[title*="5关"],.wave-dots span[title*="10关"]{font-size:9px}.boss-hud strong{font-size:inherit}.ammo strong{font-size:27px;line-height:1}.garden{align-self:start}.field-label{background:#eaf4d9a6;border-radius:6px;padding:3px 5px}body[data-chapter="1"]{background:radial-gradient(ellipse at 10% 0%,#eddfbc,transparent 50%),#f6efdd}body[data-chapter="2"]{background:radial-gradient(ellipse at 10% 0%,#d8ddea,transparent 50%),#edf0e7}
@media(min-width:1001px) and (max-height:850px){.plant-card{min-height:91px}.plant-card svg{height:35px}.shop-tabs{margin-bottom:8px}.aside-tip{margin:7px 0 9px}.garden{padding:11px}.upgrade-note{font-size:9px}.field{max-height:calc(100svh - 325px)}}
@media(max-width:1000px) and (min-width:741px){.stage-copy strong{white-space:normal}.hud{gap:8px}.wave-dots{grid-template-columns:repeat(5,14px);grid-template-rows:repeat(3,14px)}.wave-dots span{width:14px;height:14px;font-size:7px}.coin-badge{min-width:113px;padding:7px 9px}.plant-card{min-height:96px}.plant-card small{font-size:7px}.shop-tabs button{font-size:10px}}
@media(max-width:740px){.hud{min-height:53px}.wave-dots{grid-template-columns:repeat(5,13px);grid-template-rows:repeat(3,13px);gap:2px}.wave-dots span{width:13px;height:13px;font-size:7px}.shop-tabs{margin-bottom:9px}.shop-tabs button{min-height:42px;font-size:12px}.plant-card{min-height:96px}.plant-card svg{height:37px}.plant-card strong{font-size:11px}.plant-card small{font-size:8px}.change-weapon{min-height:44px}.text-button{min-height:28px;margin-top:4px;padding:4px 6px;font-size:9px}.note p{font-size:9px}.note{max-width:230px}.upgrade-note{margin-top:5px;font-size:9px}.unlock-label{font-size:8px}.boss-hud{left:27%;right:27%}}
@media(max-width:420px){.stage-copy strong{font-size:10px}.stage-copy span{font-size:8px}.hud{gap:6px}.coin-badge{min-width:84px;padding:5px 7px}.coin-badge strong{font-size:18px}.coin-badge small{font-size:8px}.wave-dots{grid-template-columns:repeat(5,12px);grid-template-rows:repeat(3,12px)}.wave-dots span{width:12px;height:12px;font-size:6px}.plant-card small{font-size:7px}}
@media(max-height:600px) and (orientation:landscape) and (pointer:coarse){.hud{min-height:32px}.wave-dots{display:flex;gap:2px}.wave-dots span{width:12px;height:12px;font-size:6px}.shop-tabs{padding:3px;margin-bottom:5px}.shop-tabs button{font-size:9px;min-height:31px;padding:5px 2px}.shop-tabs b{width:13px;height:13px;font-size:8px}.plant-card{min-height:60px}.plant-card svg{height:25px}.plant-card strong{font-size:9px}.plant-card small{display:none}.upgrade-note{font-size:8px;line-height:1.5}.unlock-label{font-size:7px;padding:1px 0;bottom:3px}.change-weapon{min-height:33px}.text-button{min-height:22px;margin-top:3px;padding:3px 6px}.stage-copy strong{font-size:10px}.wave-dots{margin-left:auto}.note{max-width:270px}.note p{font-size:9px}.boss-hud{top:5px}}

.plant-card small{white-space:normal;line-height:1.35;max-width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:22px;padding:0 3px}.plant-card{min-height:105px}
@media(max-height:600px) and (orientation:landscape) and (pointer:coarse){.plant-card small{display:none}.plant-card{min-height:60px}}
