:root{color-scheme:dark;--ink:#2d3c26;--cream:#fff6dc;--muted:#a3afa1;--green:#b5d762;--outline:#41533a}
*{box-sizing:border-box}
html,body{-webkit-text-size-adjust:100%;text-size-adjust:100%;margin:0;min-height:100%;background:#15251b}
body{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--cream);background:radial-gradient(ellipse at 48% 16%,#344832 0,#1d3022 43%,#101e17 100%);font-size:14px}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer;border:0;color:inherit}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #ffdf7f;outline-offset:4px}
a{color:inherit;text-decoration:none}
button{transition:background .16s,transform .16s,box-shadow .16s}
button:active:not(:disabled){transform:translateY(2px)}
svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
i{display:inline-flex;width:20px;height:20px;vertical-align:middle;flex-shrink:0;font-style:normal}
.game-shell{width:calc(100% - 32px);margin:0 auto}
.masthead{height:104px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.brand{display:flex;align-items:center;gap:13px}
.brand-mark{color:#b9d685;width:39px;height:45px}
.brand-mark svg{stroke-width:1.65}
.brand-name{font-size:25px;font-weight:900;letter-spacing:1px;line-height:1.05}
.brand-name>span{font-size:16px;color:#b8ce99;margin:0 3px;vertical-align:2px}
.brand-name small{display:block;font-size:8px;font-weight:500;letter-spacing:4.3px;margin-top:9px;color:#bcc5aa}
.session-label{display:flex;align-items:center;gap:9px;font-size:12px;color:#b0bba8;letter-spacing:.6px}
.live-dot{width:6px;height:6px;background:#afcf7d;border-radius:50%;box-shadow:0 0 12px #d0e99d44}
.header-actions{display:flex;gap:12px;align-items:center}
.text-button{display:flex;align-items:center;gap:9px;background:transparent;font-size:12px;color:#d4dcc5;padding:8px 12px}
.text-button:hover{color:white}
.icon-button{width:37px;height:37px;background:#ffffff06;color:#cdd5bc;border:1px solid #ffffff17;border-radius:50%;display:grid;place-items:center}
.icon-button:hover{background:#ffffff16}
.icon-button i{width:17px;height:17px}
.play-container{border:1px solid #6c77542d;border-radius:18px;box-shadow:0 30px 75px #0005,0 2px 0 #ffffff0a;position:relative;overflow:hidden;background:#2a3825}
.seed-bank{height:126px;background:linear-gradient(#394a2b,#29391f);box-shadow:inset 0 2px #b6bc7130;display:flex;align-items:center;gap:15px;padding:12px 24px;position:relative;z-index:5;border-bottom:5px solid #28381e}
.sun-meter{width:96px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;position:relative;gap:2px}
.sun-symbol{width:36px;height:36px;color:#ffdb65;filter:drop-shadow(0 0 9px #ffdc5555)}
.sun-symbol svg{stroke-width:1.8}
.sun-meter strong{font-size:30px;font-variant-numeric:tabular-nums;line-height:1.08;color:#ffe694;letter-spacing:1px}
.sun-meter>span{font-size:12px;letter-spacing:2px;color:#b1bc91;margin-top:4px}
.sun-meter.pop strong{animation:sunpop .35s ease-out}
.seed-divider{height:70px;width:1px;background:#ffffff16;box-shadow:1px 0 #0003;margin:0 5px;flex-shrink:0}
.seed-cards{display:flex;align-items:center;gap:10px;flex:1;justify-content:space-evenly}
.seed-card{width:94px;height:98px;flex:1;max-width:114px;min-width:57px;border-radius:8px 8px 6px 6px;background:linear-gradient(135deg,#f5eccb,#ddd6af);border:2px solid #827d4f;box-shadow:0 4px 0 #17260f,0 5px 10px #0003;position:relative;padding:0;color:#324021;overflow:hidden;isolation:isolate}
.seed-card:before{content:"";position:absolute;top:15px;right:0;bottom:24px;left:0;background:radial-gradient(ellipse,#fffaddaa,transparent 75%);z-index:-1}
.seed-card:hover{transform:translateY(-4px);border-color:#e8eb9c;box-shadow:0 5px 0 #17260f,0 5px 20px #d8e58725}
.seed-card.selected{border-color:#ffea82;transform:translateY(-6px);box-shadow:0 4px #7d9d32,0 0 0 3px #bfe075,0 0 25px #d8e58744}
.seed-card .seed-name{position:absolute;top:5px;left:0;width:100%;font-size:12px;font-weight:750;letter-spacing:.5px;z-index:2}
.seed-card .seed-key{position:absolute;top:4px;left:5px;font-size:8px;color:#737b4d;z-index:3}
.seed-card img{height:61px;width:78px;object-fit:contain;position:absolute;top:16px;left:50%;transform:translateX(-50%);filter:drop-shadow(0 3px 2px #28361130)}
.seed-price{position:absolute;bottom:0;left:0;right:0;height:21px;background:#d3c997;display:flex;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:850;border-top:1px solid #98946b66}
.seed-price i{width:13px;height:13px;color:#8b7228}
.seed-card.unaffordable{filter:saturate(.58) brightness(.76)}
.seed-card .cooldown{position:absolute;top:0;right:0;bottom:0;left:0;background:#13271dbd;transform:scaleY(0);transform-origin:bottom;z-index:4;pointer-events:none}
.seed-card .cool-time{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:white;font-size:25px;font-weight:750;text-shadow:0 2px #000;z-index:5;pointer-events:none}
.shovel{width:70px;flex-shrink:0;height:94px;display:flex;align-items:center;justify-content:center;gap:10px;flex-direction:column;background:linear-gradient(#25341d,#1e2d18);border:1px solid #6b774453;border-radius:8px;box-shadow:inset 0 2px 6px #0002}
.shovel>i{width:36px;height:40px;color:#c1bf9e;transform:rotate(-20deg)}
.shovel>span{font-size:12px;color:#c5c8aa}
.shovel.selected{outline:2px solid #e6d994;background:#455435}
.shovel kbd{margin-left:5px}
.seed-tooltip{position:absolute;top:119px;max-width:260px;background:#fff7dd;color:#39472b;border:1px solid #e6d9b1;border-radius:10px;padding:14px 17px;font-size:12px;line-height:1.8;box-shadow:0 7px 20px #0003;display:none;pointer-events:none}
.seed-tooltip strong{display:block;font-size:14px}
.seed-tooltip small{color:#798158;margin-left:8px;font-weight:400}
.garden-wrap{position:relative;aspect-ratio:1440/810;isolation:isolate;overflow:hidden;background:#87a343}
#garden{display:block;width:100%;height:100%;touch-action:none;outline-offset:-5px;cursor:default}
.field-topbar{position:absolute;left:24px;right:24px;top:20px;display:flex;justify-content:space-between;pointer-events:none;z-index:2}
.location-pill,.weather-pill{display:flex;align-items:center;gap:7px;border-radius:20px;background:#24311dc9;box-shadow:0 2px 10px #0002;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:12px;padding:8px 13px;color:#f0f1d3;letter-spacing:1px}
.location-pill i,.weather-pill i{width:13px;height:13px}
.weather-pill{background:#fff9ddd9;color:#506039}
.overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:4;display:flex;align-items:center}
.hidden{display:none!important}
.home-overlay{background:linear-gradient(90deg,#18271d35 0%,transparent 65%)}
.welcome-card{position:relative;margin-left:5.1%;width:400px;padding:35px 37px 26px;background:linear-gradient(125deg,#fffbed,#f3ebce);color:var(--ink);border:1px solid #fff5d5;border-radius:5px 25px 5px 25px;box-shadow:0 16px 35px #2331154a;transform:rotate(-1deg)}
.welcome-card:before,.welcome-card:after{content:"";position:absolute;width:58px;height:19px;background:#e9d9a598;top:-8px;left:30px;transform:rotate(-11deg);box-shadow:0 1px 0 #f5e8caaa}
.welcome-card:after{top:auto;left:auto;bottom:-7px;right:30px;transform:rotate(-15deg)}
.eyebrow{font-size:12px;font-weight:650;letter-spacing:2.2px;display:flex;gap:8px;align-items:center;color:#77845b}
.eyebrow>span{display:inline-block;background:#819354;height:6px;width:6px;border-radius:50%}
h1{font-size:48px;letter-spacing:-2px;line-height:1.3;margin:21px 0 15px;font-weight:950;color:#31432b}
h1 span{color:#b16a3a}
p{line-height:1.9}
.welcome-card>p{font-size:12px;color:#81866c;margin:0}
.home-rule{height:1px;background:#d5d3b8;margin:23px 0 18px}
.mode-tabs{display:flex;gap:22px}
.mode-tabs button{background:transparent;padding:0 0 7px;color:#969b83;font-size:13px;font-weight:700;border-bottom:2px solid transparent}
.mode-tabs button.active{color:#3b4d28;border-color:#5e793b}
.level-picker{display:flex;gap:8px;margin-top:17px}
.level-chip{background:#e6e5cd;border:1px solid #d7d9bf;color:#8c9277;height:30px;flex:1;border-radius:5px;font-size:11px}
.level-chip.active{background:#e0e9c4;border-color:#93a76b;color:#4c6633}
.level-chip span{font-weight:850;padding-right:5px}
.welcome-card .mode-description{margin:12px 0 17px;font-size:12px;line-height:1.5;min-height:15px;color:#94977c}
.primary-button{display:flex;align-items:center;justify-content:center;gap:13px;min-height:49px;width:100%;padding:12px 20px;background:#42632e;color:#fffbde;border:1px solid #365628;border-bottom:4px solid #294620;border-radius:7px;font-size:14px;font-weight:700;letter-spacing:1px;box-shadow:inset 0 1px #c6df8255,0 4px 10px #2a4c2020}
.primary-button:hover{background:#527738;box-shadow:inset 0 1px #c6df8255,0 4px 15px #2a4c2033}
.start-button{justify-content:space-between}
.primary-button i{width:19px;height:19px}
.welcome-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:#8d9279;margin-top:16px}
.welcome-footer>span{display:flex;align-items:center;gap:4px}
.welcome-footer i{width:12px;height:12px}
.welcome-footer button{font-size:12px;background:transparent;color:#718355;text-decoration:underline;text-underline-offset:3px;padding:0}
.home-caption{position:absolute;right:7%;top:14%;text-align:right;color:#fffcd9;text-shadow:0 2px 9px #263a23b0;pointer-events:none;transform:rotate(2deg)}
.home-caption>span:first-child{font-size:12px;letter-spacing:4px}
.home-caption strong{display:block;font-size:35px;line-height:1.45;margin:9px 0 10px;font-weight:900}
.caption-line{width:45px;height:3px;border-radius:2px;background:#f7da80;display:block;margin:0 0 12px auto}
.home-caption small{font-size:12px;letter-spacing:1px}
.game-footer{height:85px;background:#263620;display:flex;align-items:center;padding:0 30px;justify-content:space-between;gap:35px;box-shadow:inset 0 2px #b1c28918}
.level-indicator{display:flex;align-items:center;gap:13px;min-width:250px}
.level-number{width:37px;height:39px;display:grid;place-items:center;border-radius:7px;color:#d0d998;background:#414f2d;font-weight:800;font-size:17px;font-variant-numeric:tabular-nums;border:1px solid #6c774233}
.level-indicator strong{display:block;font-size:13px;font-weight:650;letter-spacing:1px}
.level-indicator small{display:block;font-size:12px;margin-top:6px;color:#9ba98b}
.wave-progress{max-width:380px;flex:1}
.progress-label{display:flex;justify-content:space-between;color:#b6c2a1;font-size:12px;margin-bottom:11px;letter-spacing:1px}
.progress-track{height:6px;border-radius:4px;background:#132510;position:relative;box-shadow:0 1px #64794a44}
.progress-track>div{width:0;height:100%;border-radius:4px;background:linear-gradient(90deg,#799b47,#d4dc72);transition:width .3s}
.flag{position:absolute;bottom:-1px;width:12px;height:20px;transform:translateX(-50%);color:#7b8d5b}
.flag i{width:12px;height:20px}
.flag.final{color:#d8b779}
.game-controls{display:flex;gap:11px;align-items:center}
.speed-button{height:36px;width:43px;border-radius:6px;background:#ffffff08;border:1px solid #7e8a583b;color:#b5c39b;font-size:12px;font-weight:600}
.speed-button.active{background:#61763b;color:#edf9c6}
.pause-button{display:flex;align-items:center;gap:8px;background:#3d4e2e;border:1px solid #7e8a582e;border-radius:6px;height:36px;padding:0 16px;color:#d3d9b7;font-size:11px}
.pause-button i{width:13px;height:13px}
.bottom-note{display:flex;justify-content:space-between;gap:20px;color:#71816f;font-size:12px;letter-spacing:.5px;padding:23px 3px 25px}
.bottom-note>span{display:flex;align-items:center;gap:7px}
.bottom-note i{height:13px;width:13px;color:#94a67b}
kbd{font-family:inherit;font-size:8px;border:1px solid #8c9a723b;border-radius:3px;padding:2px 4px;color:inherit}
b{font-weight:400;margin:0 3px;color:#55664c}
.dialog-overlay{justify-content:center;background:#1527107d;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.pause-card,.result-card{width:375px;text-align:center;background:linear-gradient(125deg,#fffbed,#f1e9ca);border-radius:20px;color:var(--ink);box-shadow:0 20px 70px #0004;border:1px solid #fff4d5;padding:30px 40px}
.pause-card .eyebrow,.result-card .eyebrow{justify-content:center;font-size:8px}
.pause-flower{height:95px;margin:15px 0 5px}
.pause-flower img{width:95px;height:95px;object-fit:contain;animation:sway 3s ease-in-out infinite}
.pause-card h2,.result-card h2{font-size:27px;letter-spacing:1px;margin:12px 0 8px;font-weight:850}
.pause-card p,.result-card p{color:#82896d;font-size:12px;margin:6px 0 23px}
.secondary-button{display:block;border-radius:6px;color:#5b6c40;background:#e1e7cb;border:1px solid #c9d3af;width:100%;margin-top:11px;padding:11px;font-size:12px}
.quiet-button{background:transparent;color:#85906f;padding:14px 0 0;font-size:11px}
.result-card{width:400px;padding:25px 34px}
.result-card .primary-button{margin-top:22px}
#resultIllustration{height:88px}
#resultIllustration img{height:100%;width:100px;object-fit:contain}
.result-stars{display:flex;justify-content:center;gap:8px;color:#b8bda1;margin:13px 0 20px}
.result-stars i{width:28px;height:28px}
.result-stars .earned{color:#dbad3d;filter:drop-shadow(0 2px 0 #ae7f19)}
.result-stars .earned svg{fill:#f1cd5c}
.result-stats{display:flex;justify-content:center;gap:23px;border-top:1px solid #dcdcc0;border-bottom:1px solid #dcdcc0;padding:14px 0}
.stat strong{display:block;font-size:23px;color:#536737}
.stat span{display:block;font-size:12px;color:#8c917a;margin-top:5px}
.wave-banner{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%) scale(.9);opacity:0;pointer-events:none;color:#fff0ac;font-size:32px;text-align:center;font-weight:950;width:85%;text-shadow:0 3px #6c351c,2px 0 #6c351c,-2px 0 #6c351c,0 0 25px #0008;z-index:6;transition:opacity .3s,transform .3s;letter-spacing:3px}
.wave-banner small{display:block;font-size:12px;margin-top:10px;font-weight:500;letter-spacing:4px;color:#fff9db}
.wave-banner.visible{opacity:1;transform:translate(-50%,-50%) scale(1)}
.toast{position:absolute;left:50%;bottom:28px;transform:translate(-50%,10px);border:1px solid #f8edc144;background:#29351fed;box-shadow:0 3px 15px #0002;color:#f9f2ce;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:30px;padding:11px 20px;font-size:12px;opacity:0;transition:.2s;pointer-events:none;z-index:9;white-space:nowrap}
.toast.visible{opacity:1;transform:translate(-50%,0)}
.loading-cover{position:absolute;top:0;right:0;bottom:0;left:0;z-index:20;background:#283c25;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px}
.loading-cover strong{font-size:15px;font-weight:500;letter-spacing:2px}
.loading-cover span{font-size:11px;color:#a9bb8c}
.loading-sun{width:48px;height:48px;color:#e3d77c;animation:spin 10s linear infinite;margin-bottom:5px}
.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#07140cb8;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:center;z-index:30;padding:24px}
.modal{position:relative;width:790px;max-width:100%;max-height:88vh;overflow-y:auto;background:#f7f3df;color:#3d4a31;border:1px solid #fff6d8;border-radius:20px;box-shadow:0 30px 120px #0008;padding:37px 40px}
.modal-close{position:absolute;right:20px;top:20px;color:#748262;background:#dce2c9;border-color:#cad3b8;z-index:1}
.modal .eyebrow{font-size:12px}
.modal h2{font-size:29px;margin:12px 0 8px;letter-spacing:1px}
.modal-intro{font-size:12px;color:#939982;margin:0 0 25px}
.almanac-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.almanac-card{background:#eeeeda;border:1px solid #dfe2c9;border-radius:11px;padding:16px 13px 14px;text-align:center}
.almanac-card img{height:85px;width:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #43502320)}
.almanac-card h3{font-size:13px;margin:12px 0 3px}
.almanac-card .role{font-size:12px;color:#959d7a;letter-spacing:1px}
.almanac-card p{font-size:12px;line-height:1.8;color:#7e886c;text-align:left;min-height:54px;margin:10px 0}
.plant-numbers{border-top:1px solid #d4dbbd;padding-top:10px;display:flex;justify-content:space-between;gap:5px;font-size:12px;color:#758158}
.plant-numbers i{width:12px;height:12px;vertical-align:-2px;margin-right:2px}
.settings-section{margin-top:20px;background:#ecefdc;padding:8px 20px;border-radius:10px;border:1px solid #dce1c7}
.setting-row{display:flex;align-items:center;justify-content:space-between;padding:16px 0;gap:20px;border-bottom:1px solid #d7dfc0}
.setting-row:last-child{border-bottom:0}
.setting-row strong{display:block;font-size:13px;font-weight:650}
.setting-row small{display:block;color:#8c9677;font-size:12px;margin-top:6px}
.toggle{width:40px;height:23px;background:#c8cfb3;border-radius:15px;position:relative;flex-shrink:0;padding:3px}
.toggle:after{content:"";display:block;width:17px;height:17px;border-radius:50%;background:#fffced;box-shadow:0 1px 3px #0002;transition:transform .15s}
.toggle.on{background:#72904b}
.toggle.on:after{transform:translateX(17px)}
.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}
.help-item{display:flex;gap:12px;background:#ebefd9;border-radius:10px;padding:18px 15px}
.help-item>i{color:#7c9356;width:26px;height:26px;flex-shrink:0}
.help-item strong{font-size:12px}
.help-item p{font-size:11px;color:#879273;margin:6px 0 0}
.key-help{border-top:1px solid #d4dbc1;padding-top:18px;margin-top:22px;line-height:2.7;color:#879273;font-size:11px}
.key-help kbd{color:#5d6e46;border-color:#c6cfb2;font-size:12px;padding:3px 6px;margin:0 4px}
.tip-box{border-left:3px solid #a7ba78;margin-top:18px;background:#e9edd8;padding:12px 15px;font-size:11px;line-height:1.9;color:#7d8c63}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.confetti-note{font-size:11px;text-align:center;margin-top:20px;color:#9aa27f}
.rank-tabs{display:flex;gap:20px;margin:0 0 16px;border-bottom:1px solid #dfe2c9}
.rank-tabs button{background:transparent;padding:0 0 9px;color:#969b83;font-size:13px;font-weight:700;border-bottom:2px solid transparent;margin-bottom:-1px}
.rank-tabs button.active{color:#3b4d28;border-color:#5e793b}
.rank-meta{display:flex;flex-wrap:wrap;gap:10px 26px;align-items:center;background:#ecefdc;border:1px solid #dce1c7;border-radius:10px;padding:12px 18px;margin-bottom:16px}
.rank-meta>span{display:flex;align-items:baseline;gap:8px;font-size:11px;color:#8c9677}
.rank-meta strong{font-size:12px;color:#3d4a31}
.rank-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.rank-row{display:flex;align-items:center;gap:12px;background:#eeeeda;border:1px solid #dfe2c9;border-radius:10px;padding:9px 14px}
.rank-row:first-child{border-color:#e2cf8e;background:#f6f1d8}
.rank-no{width:24px;flex-shrink:0;text-align:center;font-size:15px;font-weight:800;color:#8b9a6c;font-variant-numeric:tabular-nums}
.rank-row:first-child .rank-no{color:#c79a35}
.rank-avatar{width:32px;height:32px;flex-shrink:0;border-radius:50%;background:#dfe4cc;object-fit:cover}
.rank-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rank-name{font-size:12px;font-weight:650;color:#3d4a31;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-name:hover{color:#6f8b3f}
.rank-wave,.rank-time{font-size:12px;color:#959d7a}
.rank-score{flex-shrink:0;font-size:16px;color:#5d7431;font-variant-numeric:tabular-nums}
.rank-empty{font-size:11px;color:#9aa27f;text-align:center;margin:22px 0 6px}
.rank-rules{margin-top:22px;border-top:1px solid #d4dbbd;padding-top:15px}
.rank-rules h3{font-size:14px;margin:0 0 4px}
.rank-rules-intro{font-size:12px;color:#959d7a;margin:0 0 10px}
.rank-rule-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.rank-rule-list li{background:#ecefdc;border:1px solid #dce1c7;border-radius:9px;padding:9px 13px}
.rank-rule-head{display:flex;align-items:center;gap:9px}
.rank-rule-rank{font-size:12px;color:#7d8c63;background:#dfe4cc;border-radius:99px;padding:2px 8px}
.rank-rule-head strong{font-size:12px}
.rank-rule-reward,.rank-rule-desc{display:block;font-size:12px;color:#8c9677;margin-top:4px}
@media(max-width:760px){.rank-meta{padding:10px 12px;gap:6px 16px}
.rank-avatar{width:26px;height:26px}
.rank-score{font-size:14px}
}
@keyframes spin{to{transform:rotate(360deg)}
}@keyframes sway{0%,100%{transform:rotate(-4deg)}
50%{transform:rotate(4deg)}
}@keyframes sunpop{50%{transform:scale(1.15);color:white}
}@media(min-width:1000px){.game-shell{width:calc(100% - 64px)}
}@media(min-width:1900px){.game-shell{width:calc(100% - 160px)}
}@media(max-height:950px) and (min-width:1000px){.masthead{height:85px}
.seed-bank{height:116px;padding-top:8px;padding-bottom:8px}
.seed-card{height:94px;max-width:102px}
.seed-card img{height:57px}
.seed-tooltip{top:107px}
.game-footer{height:73px}
.bottom-note{padding-top:18px}
.welcome-card{width:360px;padding:25px 29px 22px}
h1{font-size:43px;margin:16px 0 12px}
.home-rule{margin:18px 0 15px}
.home-caption strong{font-size:31px}
.home-caption{top:15%;right:7%}
.level-picker{margin-top:14px}
.welcome-card .mode-description{margin:10px 0 14px}

}@media(max-width:1100px){.game-shell{width:calc(100% - 32px)}
.session-label{display:none}
.seed-bank{padding-left:12px;padding-right:12px;gap:8px}
.sun-meter{width:75px}
.seed-cards{gap:7px}
.seed-divider{margin:0 2px}
.shovel{width:57px}
.last-divider{display:none}
.seed-card .seed-key{display:none}
.welcome-card{width:340px;padding:23px 28px 20px}
h1{font-size:39px;margin:13px 0}
.home-rule{margin:15px 0}

.home-caption strong{font-size:29px}
.welcome-card .mode-description{margin:9px 0 12px}
.home-caption small{font-size:8px}
.game-footer{gap:25px;padding:0 20px}
.level-indicator{min-width:220px}
.bottom-note .keyboard-hint{display:none}
}@media(max-width:760px){.game-shell{width:calc(100% - 20px)}
.masthead{height:77px;gap:10px}
.brand-name{font-size:19px}
.brand-name>span{font-size:12px}
.brand-name small{font-size:6px;letter-spacing:3px}
.brand-mark{width:28px}
.brand{gap:8px}
.header-actions{gap:7px}
.text-button{padding:4px}
.text-button span{display:none}
.icon-button{width:30px;height:30px}
.header-actions .icon-button:nth-last-child(2){display:none}
.play-container{border-radius:12px}
.seed-bank{height:102px;padding:8px 8px;gap:6px}
.sun-meter{width:47px}
.sun-meter strong{font-size:22px}
.sun-symbol{width:28px;height:28px}
.sun-meter>span{font-size:7px;letter-spacing:0}
.seed-divider{display:none}
.seed-cards{gap:5px;overflow-x:auto;padding:4px 3px 7px;justify-content:flex-start;scrollbar-width:none}
.seed-card{flex:0 0 63px;height:82px}
.seed-card img{height:48px;width:62px;top:15px}
.seed-card .seed-name{font-size:8px}
.seed-price{height:18px;font-size:12px}
.shovel{width:41px;height:77px}
.shovel>i{width:25px;height:30px}
.shovel>span{font-size:8px}
.shovel kbd{display:none}
.garden-wrap{aspect-ratio:1440/980}
.field-topbar{left:10px;right:10px;top:10px}
.location-pill,.weather-pill{font-size:8px;padding:6px 8px;letter-spacing:0}
.field-topbar i{width:10px;height:10px}
.welcome-card{width:270px;margin-left:5%;padding:19px 22px 16px}
.eyebrow{font-size:8px;letter-spacing:1px}
h1{font-size:33px;margin:10px 0}
.welcome-card>p{font-size:12px}
.home-rule{margin:11px 0}
.mode-tabs{gap:18px}
.mode-tabs button{font-size:11px}
.level-picker{gap:5px;margin-top:10px}
.level-chip{font-size:12px;height:26px}
.level-chip span{padding-right:3px}
.welcome-card .mode-description{font-size:8px;margin:8px 0 11px}
.primary-button{min-height:41px;font-size:12px;padding:9px 12px}
.welcome-footer{margin-top:12px;gap:6px;font-size:7px}

.welcome-footer i{display:none}
.home-caption{display:none}
.game-footer{height:75px;padding:0 12px;gap:15px}
.level-indicator{min-width:0;gap:8px}
.level-number{width:28px;height:33px;font-size:13px}
.level-indicator strong{font-size:12px;letter-spacing:0}
.level-indicator small{font-size:7px;max-width:145px;line-height:1.5;margin-top:4px}
.wave-progress{max-width:190px;min-width:75px}
.progress-label{font-size:7px;letter-spacing:0}
.game-controls{gap:6px}
.pause-button{width:32px;height:30px;padding:0;justify-content:center}
.pause-button span{display:none}
.speed-button{width:30px;height:30px;font-size:12px}
.bottom-note{font-size:8px;padding:17px 0;gap:10px}
.bottom-note>span{gap:3px}
.bottom-note i{width:11px}
.modal{padding:26px 21px;border-radius:15px}
.modal h2{font-size:24px}
.modal-close{top:16px;right:16px}
.modal-intro{font-size:12px;padding-right:25px}
.almanac-grid{grid-template-columns:repeat(2,1fr);gap:9px}
.almanac-card{padding:12px 10px}
.almanac-card p{min-height:0}
.almanac-card img{height:75px}
.help-grid{grid-template-columns:1fr}
.help-item{padding:13px}
.toast{bottom:12px;font-size:12px;padding:9px 15px}
.wave-banner{font-size:20px}
.wave-banner small{font-size:12px;letter-spacing:2px}
.pause-card,.result-card{padding:17px 25px;width:290px}
.pause-flower{height:65px;margin-top:10px}
.pause-flower img{width:65px;height:65px}
.pause-card h2,.result-card h2{font-size:23px}
.pause-card p,.result-card p{font-size:11px;margin-bottom:13px}
.result-card #resultIllustration{height:55px}
.result-stars{margin:10px 0}
.result-stars i{width:21px;height:21px}
.result-stats{padding:10px 0}
.stat strong{font-size:19px}
.stat span{font-size:8px}
.result-card .primary-button{margin-top:14px}
.seed-tooltip{display:none!important}
}@media(max-width:470px){.garden-wrap{aspect-ratio:1440/1430}
.welcome-card{margin:0 auto;transform:rotate(-1deg)}
.welcome-card>p{line-height:1.75}
.game-footer{gap:10px}
.level-indicator small{max-width:95px}
.progress-label #waveLabel{max-width:65px}
.bottom-note>span:last-child{font-size:7px}
.settings-section{padding:5px 13px}
}.pvz-page{padding-bottom:40px}
.pvz-standalone{margin:8px 0 0}
.pvz-standalone__card{width:1040px;max-width:100%;width:min(1040px,100%);margin:0 auto;background:#f7f3df;color:#3d4a31;border:1px solid #fff6d8;border-radius:20px;box-shadow:0 30px 120px #0008;padding:44px 48px 40px}
.pvz-standalone__card h2{font-size:29px;margin:12px 0 8px;letter-spacing:1px}
@media(max-width:900px){.pvz-page{padding-bottom:24px}
.pvz-standalone__card{padding:28px 22px 26px;border-radius:16px}
}body.pvz-reduced .live-dot,body.pvz-reduced .sun-symbol i,body.pvz-reduced .loading-sun i{animation:none!important}
body.pvz-reduced .seed-card,body.pvz-reduced .shovel,body.pvz-reduced .primary-button,body.pvz-reduced .secondary-button,body.pvz-reduced .icon-button,body.pvz-reduced .text-button{transition:none!important}
@media(min-width:1000px) and (min-height:760px) and (max-height:950px){.welcome-card{width:330px;padding:21px 25px 18px}
.welcome-card h1{font-size:37px;margin:12px 0}
.welcome-card .eyebrow{font-size:8px}
.welcome-card>p{font-size:12px}
.welcome-card .home-rule{margin:14px 0}
.welcome-card .mode-tabs button{font-size:11px}
.welcome-card .level-chip{font-size:12px;height:27px}
.welcome-card .primary-button{min-height:42px;font-size:12px}
.welcome-card .welcome-footer{margin-top:11px}
.welcome-card .mode-description{font-size:12px;margin:9px 0 12px}
.home-caption strong{font-size:27px}
.home-caption{top:15%;right:6%}
.seed-bank{gap:9px;padding-left:12px;padding-right:12px}
.sun-meter{width:75px}
.seed-cards{gap:8px}
.shovel{width:59px}
.seed-card .seed-key{display:none}
.bottom-note{padding-top:17px;padding-bottom:17px}
.bottom-note .keyboard-hint{font-size:8px;gap:5px}
}@media(max-width:760px){body.pvz-game .garden-wrap{aspect-ratio:1440/810}
body.pvz-game .field-topbar{top:7px}
body.pvz-game .weather-pill{display:none}
body.pvz-game .toast{font-size:8px;bottom:9px;max-width:95%;white-space:normal;text-align:center}
body.pvz-game .dialog-overlay{position:fixed;z-index:20}
body.pvz-game .dialog-overlay .pause-card,body.pvz-game .dialog-overlay .result-card{max-height:90vh;max-height:calc(var(--pvz-vh,1vh) * 90);max-height:90dvh;overflow:auto}
body.pvz-game #garden{height:100%;width:100%}
}@media(min-width:761px) and (max-height:759px){.masthead{height:70px}
.seed-bank{height:105px}
.welcome-card{width:305px;padding:18px 23px}
.welcome-card h1{font-size:32px}
.welcome-card .home-rule{margin:10px 0}
.welcome-card>p{font-size:12px}
.welcome-card .primary-button{min-height:40px}
.welcome-footer{margin-top:10px}
.welcome-card .mode-description{font-size:12px}
.seed-card{height:89px}
}.level-chip{white-space:nowrap;padding-left:3px;padding-right:3px}
@media(max-width:760px){.level-chip{font-size:8px}
.text-button i{width:20px;height:20px}
}@media (max-height:520px) and (orientation:landscape){.game-shell{width:calc(100% - 16px);width:min(calc(100% - 16px),calc((100dvh - 85px)*1.77778 + 94px));max-width:none}
.masthead{height:38px}
.brand-mark{width:21px;height:25px}
.brand-name{font-size:15px}
.brand-name>span{font-size:12px}
.brand-name small,.session-label{display:none}
.header-actions{gap:7px}
.icon-button{width:25px;height:25px}
.text-button{padding:2px}
.text-button span{display:none}
.text-button i{width:16px;height:16px}
.play-container{display:grid;grid-template-columns:94px minmax(0,1fr);border-radius:8px}
.seed-bank{grid-column:1;grid-row:1 / 3;flex-direction:column;height:100%;padding:5px;gap:4px;border-bottom:0;border-right:3px solid #24371e;justify-content:space-between}
.sun-meter{flex-direction:row;width:75px;justify-content:center;gap:8px}
.sun-symbol{width:22px;height:22px}
.sun-meter strong{font-size:22px}
.sun-meter>span,.seed-divider{display:none}
.seed-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;overflow:visible;flex:0;width:100%;padding:0}
.seed-card{width:39px;min-width:0;max-width:none;height:54px;border-width:1px;border-radius:4px;box-shadow:0 2px #17260f}
.seed-card .seed-name{top:2px;font-size:6px;letter-spacing:0}
.seed-card .seed-key{display:none}
.seed-card img{width:37px;height:33px;top:10px}
.seed-card.selected{transform:translateY(-1px);box-shadow:0 0 0 2px #e6eca3}
.seed-card .seed-price{height:11px;font-size:8px;gap:2px}
.seed-price i{width:8px;height:8px}
.seed-card .cool-time{font-size:17px}
.seed-tooltip{display:none!important}
.shovel{width:79px;height:25px;flex-direction:row;gap:9px;border-radius:4px}
.shovel>i{width:20px;height:20px}
.shovel>span{font-size:12px}
.shovel kbd{display:none}
.garden-wrap{grid-column:2;grid-row:1;aspect-ratio:1440/810;min-height:0}
#garden{width:100%;height:100%}
.field-topbar{top:7px;left:8px;right:8px}
.location-pill{font-size:7px;padding:4px 7px;letter-spacing:0}
.weather-pill{display:none}
.game-footer{grid-column:2;grid-row:2;height:40px;padding:0 10px;gap:14px}
.level-number{width:23px;height:26px;font-size:12px}
.level-indicator{min-width:0;gap:6px}
.level-indicator strong{font-size:12px}
.level-indicator small{font-size:6px;max-width:120px;margin-top:3px}
.progress-label{font-size:6px;margin-bottom:7px}
.progress-track{height:4px}
.flag,.flag i{width:9px;height:15px}
.speed-button,.pause-button{height:25px;width:29px;font-size:12px;padding:0;justify-content:center}
.pause-button span{display:none}
.game-controls{gap:5px}
.bottom-note{display:none}
.toast{font-size:8px;bottom:8px;padding:7px 12px;max-width:95%;white-space:normal;text-align:center}
.wave-banner{font-size:20px}
.wave-banner small{font-size:8px}
.dialog-overlay{position:fixed;z-index:20}
.pause-card,.result-card{max-height:92vh;max-height:calc(var(--pvz-vh,1vh) * 92);max-height:92dvh;overflow:auto;padding:18px 25px;width:300px}
.pause-flower{height:55px;margin:7px 0}
.pause-flower img{width:55px;height:55px}
.pause-card h2,.result-card h2{font-size:22px}
.pause-card p,.result-card p{margin-bottom:12px;font-size:12px}
.primary-button{min-height:36px;padding:8px 15px;font-size:11px}
}.level-chip{position:relative}
.level-earned{position:absolute;right:-3px;top:-6px;border-radius:5px;padding:1px 4px;background:#7b9350;color:#fff2b7;font-size:7px;font-style:normal;line-height:1.3;box-shadow:0 1px 2px #0001}
@media(max-width:760px) and (orientation:portrait){body.pvz-game{overflow:hidden}
body.pvz-game .game-shell{width:100%;margin:0}
body.pvz-game .masthead{display:none}
body.pvz-game .play-container{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100vh;height:calc(var(--pvz-vh,1vh) * 100);height:100dvh;display:block;border:0;border-radius:0;background:#15251b;overflow:hidden}
body.pvz-game .garden-wrap{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;aspect-ratio:auto;min-height:0;background:radial-gradient(ellipse at 50% 20%,#344832 0,#1d3022 43%,#101e17 100%)}
body.pvz-game #garden{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}
body.pvz-game .seed-bank{position:absolute;top:0;left:0;right:0;z-index:6;height:64px;min-height:0;padding:5px 8px;padding-top:5px;padding-top:calc(5px + env(safe-area-inset-top,0px));border-bottom:0;display:flex;flex-direction:row;align-items:center;gap:6px;background:linear-gradient(180deg,#29391fee,#29391fcc 72%,#29391f00)}
body.pvz-game .seed-divider{display:none}
body.pvz-game .sun-meter{width:48px;flex:0 0 48px}
body.pvz-game .sun-meter strong{font-size:20px}
body.pvz-game .sun-symbol{width:24px;height:24px}
body.pvz-game .seed-cards{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;padding:2px 2px 5px;width:auto;flex:1 1 auto;min-width:0;justify-content:flex-start;scrollbar-width:none}
body.pvz-game .seed-card{flex:0 0 48px;height:54px}
body.pvz-game .seed-card img{width:46px;height:36px;top:8px}
body.pvz-game .shovel{width:40px;height:52px;flex:0 0 40px}
body.pvz-game .game-footer{position:absolute;left:0;right:0;bottom:0;z-index:6;height:46px;min-height:0;padding:4px 10px;padding-bottom:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px));background:linear-gradient(0deg,#263620ee,#263620cc 72%,#26362000)}
body.pvz-game .field-topbar{top:64px;top:calc(64px + env(safe-area-inset-top,0px));left:8px;right:8px}
body.pvz-game .toast{bottom:46px;bottom:calc(46px + env(safe-area-inset-bottom,0px))}
body.pvz-game .dialog-overlay{position:fixed;z-index:20}
body.pvz-game .loading-cover{position:fixed;z-index:21}
}@media(max-height:520px) and (orientation:landscape) and (max-width:1100px){body.pvz-game{overflow:hidden}
body.pvz-game .game-shell{width:100%;margin:0}
body.pvz-game .masthead{display:none}
body.pvz-game .play-container{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100vh;height:calc(var(--pvz-vh,1vh) * 100);height:100dvh;display:flex;border:0;border-radius:0;background:#15251b;overflow:hidden}
body.pvz-game .garden-wrap{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;aspect-ratio:auto;min-height:0;background:#15251b}
body.pvz-game #garden{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}
body.pvz-game .seed-bank{position:absolute;top:0;left:0;right:0;z-index:6;height:58px;min-height:0;padding:4px 7px;padding-top:4px;padding-top:calc(4px + env(safe-area-inset-top,0px));border-bottom:0;display:flex;flex-direction:row;align-items:center;gap:5px;background:linear-gradient(180deg,#29391fee,#29391fcc 72%,#29391f00)}
body.pvz-game .seed-divider{display:none}
body.pvz-game .sun-meter{width:44px;flex:0 0 44px;flex-direction:row;justify-content:center;gap:5px}
body.pvz-game .sun-meter strong{font-size:18px}
body.pvz-game .sun-symbol{width:22px;height:22px}
body.pvz-game .seed-cards{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:2px 2px 4px;width:auto;flex:1 1 auto;min-width:0;justify-content:flex-start;scrollbar-width:none}
body.pvz-game .seed-card{flex:0 0 44px;height:50px}
body.pvz-game .seed-card img{width:42px;height:33px;top:7px}
body.pvz-game .shovel{width:36px;height:48px;flex:0 0 36px}
body.pvz-game .game-footer{position:absolute;left:0;right:0;bottom:0;z-index:6;height:42px;min-height:0;padding:3px 10px;padding-bottom:3px;padding-bottom:calc(3px + env(safe-area-inset-bottom,0px));background:linear-gradient(0deg,#263620ee,#263620cc 72%,#26362000)}
body.pvz-game .field-topbar{top:58px;top:calc(58px + env(safe-area-inset-top,0px));left:8px;right:8px}
body.pvz-game .toast{bottom:42px;bottom:calc(42px + env(safe-area-inset-bottom,0px))}
body.pvz-game .dialog-overlay{position:fixed;z-index:20}
body.pvz-game .loading-cover{position:fixed;z-index:21}
}body.pvz-game .bottom-note{display:none}
@media(max-width:760px) and (orientation:portrait){body.pvz-game .sun-meter strong{font-size:20px;font-size:clamp(20px,5vw,26px)}
body.pvz-game .seed-card .seed-name{font-size:12px;font-size:clamp(9px,2.3vw,10px)}
body.pvz-game .seed-card img{width:40px;height:28px;top:8px}
body.pvz-game .seed-price{height:15px;font-size:12px;font-size:clamp(10px,2.6vw,12px)}
body.pvz-game .shovel>span{font-size:12px;font-size:clamp(9px,2.2vw,11px)}
body.pvz-game .location-pill{font-size:8px;font-size:clamp(8px,2vw,10px)}
body.pvz-game .level-indicator strong{font-size:12px;font-size:clamp(10px,2.3vw,12px)}
body.pvz-game .level-indicator small{font-size:8px;font-size:clamp(8px,1.8vw,10px)}
body.pvz-game .progress-label{font-size:8px;font-size:clamp(8px,1.8vw,10px)}
body.pvz-game .speed-button,body.pvz-game .pause-button{font-size:12px;font-size:clamp(10px,2.3vw,12px)}
body.pvz-game .toast{font-size:12px;font-size:clamp(9px,2.2vw,11px)}
body.pvz-game .wave-banner{font-size:18px;font-size:clamp(18px,5vw,24px)}
}@media(max-height:520px) and (orientation:landscape) and (max-width:1100px){body.pvz-game .sun-meter strong{font-size:18px;font-size:clamp(18px,3vw,24px)}
body.pvz-game .seed-card .seed-name{font-size:12px;font-size:clamp(9px,1.4vw,11px)}
body.pvz-game .seed-card img{width:38px;height:26px;top:6px}
body.pvz-game .seed-price{height:14px;font-size:12px;font-size:clamp(10px,1.5vw,12px)}
body.pvz-game .shovel>span{font-size:12px;font-size:clamp(9px,1.4vw,11px)}
body.pvz-game .location-pill{font-size:8px;font-size:clamp(8px,1.2vw,10px)}
body.pvz-game .level-indicator strong{font-size:12px;font-size:clamp(10px,1.5vw,12px)}
body.pvz-game .level-indicator small{font-size:8px;font-size:clamp(8px,1.2vw,10px);max-width:120px}
body.pvz-game .progress-label{font-size:8px;font-size:clamp(8px,1.2vw,10px)}
body.pvz-game .speed-button,body.pvz-game .pause-button{font-size:12px;font-size:clamp(10px,1.5vw,12px)}
body.pvz-game .toast{font-size:12px;font-size:clamp(9px,1.3vw,11px)}
body.pvz-game .wave-banner{font-size:18px;font-size:clamp(18px,4vw,24px)}
}@media(max-width:760px) and (orientation:portrait){body.pvz-game .seed-bank{height:auto;min-height:0;padding:6px 8px;padding-top:6px;padding-top:calc(6px + env(safe-area-inset-top,0px));display:grid;grid-template-columns:54px minmax(0,1fr) 44px;grid-template-rows:auto auto;gap:4px 6px;align-items:center}
body.pvz-game .sun-meter{grid-column:1;grid-row:1 / span 2;align-self:stretch;width:54px;flex:0 0 54px;flex-direction:column;justify-content:center;gap:2px}
body.pvz-game .sun-symbol{width:26px;height:26px}
body.pvz-game .sun-meter strong{font-size:20px;font-size:clamp(20px,5vw,26px)}
body.pvz-game .sun-meter>span{display:block;font-size:8px;font-size:clamp(8px,1.8vw,9px);letter-spacing:0;margin-top:2px}
body.pvz-game .seed-cards{grid-column:2;grid-row:1 / span 2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:auto;min-width:0;padding:0;overflow:visible;align-items:stretch}
body.pvz-game .seed-card{width:auto;min-width:0;max-width:none;height:50px;flex:none}
body.pvz-game .seed-card .seed-name{top:2px;font-size:12px;font-size:clamp(9px,2.2vw,10px)}
body.pvz-game .seed-card img{width:36px;height:26px;top:8px}
body.pvz-game .seed-price{height:14px;font-size:12px;font-size:clamp(9px,2.4vw,11px)}
body.pvz-game .shovel{grid-column:3;grid-row:1 / span 2;align-self:stretch;width:44px;height:auto;min-height:104px;flex:0 0 44px;flex-direction:column;gap:2px}
body.pvz-game .shovel>i{width:24px;height:26px}
body.pvz-game .shovel>span{font-size:12px;font-size:clamp(9px,2.2vw,10px);white-space:nowrap}
body.pvz-game .game-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px 10px;height:auto;min-height:72px;padding:6px 10px;padding-bottom:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px));align-items:center}
body.pvz-game .level-indicator{grid-column:1;grid-row:1;width:auto;min-width:0;max-width:none;gap:8px}
body.pvz-game .level-indicator>div{min-width:0}
body.pvz-game .level-indicator strong{display:block;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-size:clamp(10px,2.4vw,12px);line-height:1.15}
body.pvz-game .level-indicator small{display:block;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px;font-size:clamp(8px,2vw,10px);line-height:1.15;margin-top:2px}
body.pvz-game .game-controls{grid-column:2;grid-row:1;justify-self:end}
body.pvz-game .wave-progress{grid-column:1 / -1;grid-row:2;width:100%;max-width:none;min-width:0}
body.pvz-game .progress-label{margin-bottom:4px}
}@media(max-height:520px) and (orientation:landscape) and (max-width:1100px){body.pvz-game .seed-bank{height:64px;min-height:0;padding:6px 8px;padding-top:6px;padding-top:calc(6px + env(safe-area-inset-top,0px));gap:8px;justify-content:space-between}
body.pvz-game .sun-meter{width:52px;flex:0 0 52px;flex-direction:column;justify-content:center;gap:1px}
body.pvz-game .sun-symbol{width:24px;height:24px}
body.pvz-game .sun-meter strong{font-size:20px;font-size:clamp(20px,2.4vw,24px)}
body.pvz-game .sun-meter>span{display:none}
body.pvz-game .seed-cards{justify-content:space-evenly;gap:4px;padding:0;flex:1 1 auto;min-width:0;overflow-x:auto}
body.pvz-game .seed-card{flex:0 0 52px;height:52px}
body.pvz-game .shovel{width:44px;height:52px;flex:0 0 44px;flex-direction:column;gap:2px}
body.pvz-game .shovel>i{width:24px;height:26px}
body.pvz-game .shovel>span{font-size:12px;font-size:clamp(9px,1.3vw,10px);line-height:1}
body.pvz-game .game-footer{height:42px;padding:3px 10px;padding-bottom:3px;padding-bottom:calc(3px + env(safe-area-inset-bottom,0px));gap:12px}
body.pvz-game .level-indicator{flex:0 0 auto;min-width:0;max-width:240px;max-width:min(42vw,240px);gap:8px}
body.pvz-game .level-number{width:26px;height:30px;font-size:12px;flex:0 0 26px}
body.pvz-game .level-indicator>div{min-width:0}
body.pvz-game .level-indicator strong{display:block;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-size:clamp(10px,1.5vw,12px);line-height:1.15}
body.pvz-game .level-indicator small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px;font-size:clamp(8px,1.2vw,10px);line-height:1.15;margin-top:2px}
body.pvz-game .wave-progress{flex:1 1 auto;max-width:300px;max-width:min(38vw,300px);min-width:0}
body.pvz-game .game-controls{flex:0 0 auto}
}@media(max-width:760px) and (orientation:portrait){body.pvz-game .field-topbar{top:116px;top:calc(116px + env(safe-area-inset-top,0px))}
body.pvz-game .toast{bottom:72px;bottom:calc(72px + env(safe-area-inset-bottom,0px))}
}@media(max-height:520px) and (orientation:landscape) and (max-width:1100px){body.pvz-game .seed-cards{justify-content:space-between}
body.pvz-game .level-indicator{flex:1 1 auto;max-width:240px;max-width:min(42vw,240px)}
body.pvz-game .level-indicator>div{flex:1 1 auto;min-width:0}
body.pvz-game .field-topbar{top:64px;top:calc(64px + env(safe-area-inset-top,0px))}
body.pvz-game .toast{bottom:42px;bottom:calc(42px + env(safe-area-inset-bottom,0px))}
}@media (min-width:761px) and (min-height:521px){body.pvz-game{height:100vh;height:calc(var(--pvz-vh,1vh) * 100);height:100dvh;overflow:hidden;background:#15251b}
body.pvz-game .game-shell{position:relative;width:100%;height:100vh;height:calc(var(--pvz-vh,1vh) * 100);height:100dvh;margin:0;overflow:hidden}
body.pvz-game .masthead{position:absolute;top:0;right:0;bottom:0;left:0;height:auto;z-index:12;padding:0 0 0 14px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;pointer-events:none}
body.pvz-game .masthead>*{pointer-events:auto}
body.pvz-game .brand{width:42px;height:42px;justify-content:center;gap:0;border-radius:50%;background:#16261cd9;border:1px solid #ffffff2e;box-shadow:0 4px 12px #0004;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
body.pvz-game .brand .brand-name{display:none}
body.pvz-game .brand .brand-mark{width:24px;height:28px}
body.pvz-game .header-actions{flex-direction:column;gap:9px}
body.pvz-game .header-actions .text-button,body.pvz-game .header-actions .icon-button{width:42px;height:42px;padding:0;border-radius:50%;display:grid;place-items:center;background:#16261cd9;border:1px solid #ffffff2e;color:#e2e9d2;box-shadow:0 4px 12px #0004;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
body.pvz-game .header-actions .text-button:hover,body.pvz-game .header-actions .icon-button:hover{background:#2c4022f2;color:#fff}
body.pvz-game .header-actions .text-button span{display:none}
body.pvz-game .header-actions .text-button i,body.pvz-game .header-actions .icon-button i{width:19px;height:19px}
body.pvz-game .session-label{position:fixed;right:18px;bottom:96px;z-index:12;max-width:60vw;max-width:min(60vw,420px);padding:9px 15px;border-radius:20px;background:#16261cd9;border:1px solid #ffffff2e;color:#e6ecd8;box-shadow:0 4px 14px #0004;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.pvz-game .play-container{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;background:#15251b;overflow:hidden}
body.pvz-game .garden-wrap{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;aspect-ratio:auto;min-height:0;background:radial-gradient(ellipse at 50% 22%,#344832 0,#1d3022 45%,#101e17 100%)}
body.pvz-game #garden{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}
body.pvz-game .seed-bank{position:absolute;top:0;left:0;right:0;z-index:6;height:118px;min-height:0;padding:10px 22px;border-bottom:0;background:linear-gradient(180deg,#394a2bf2,#29391fdb 74%,#29391f00)}
body.pvz-game .seed-card .seed-name{display:none}
body.pvz-game .seed-tooltip{top:130px}
body.pvz-game .field-topbar{top:142px;left:24px;right:24px}
body.pvz-game .game-footer{position:absolute;left:0;right:0;bottom:0;z-index:6;height:82px;padding:0 26px;background:linear-gradient(0deg,#263620f2,#263620db 74%,#26362000)}
body.pvz-game .bottom-note{display:none}
body.pvz-game .dialog-overlay{position:fixed;z-index:20}
body.pvz-game .loading-cover{position:fixed;z-index:21}
body.pvz-game .modal-backdrop{z-index:40}
body.pvz-game .toast{z-index:14;bottom:96px}
body.pvz-game .wave-banner{z-index:14}
body.pvz-game .home-overlay{padding:118px 0 82px}
body.pvz-game .welcome-card{margin-left:88px;width:380px}
body.pvz-game .home-caption{right:9%}
}@media(max-width:760px),(max-height:520px) and (orientation:landscape) and (max-width:1100px){body.pvz-game .game-shell{position:relative;width:100%;height:100vh;height:calc(var(--pvz-vh,1vh) * 100);height:100dvh;margin:0;overflow:hidden}
body.pvz-game .masthead{position:absolute;top:0;right:0;bottom:0;left:0;height:auto;z-index:12;padding:0 0 0 8px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;pointer-events:none}
body.pvz-game .masthead>*{pointer-events:auto}
body.pvz-game .brand{width:38px;height:38px;justify-content:center;gap:0;border-radius:50%;background:#16261cd9;border:1px solid #ffffff2e;box-shadow:0 3px 10px #0004;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body.pvz-game .brand .brand-name{display:none}
body.pvz-game .brand .brand-mark{width:22px;height:26px}
body.pvz-game .header-actions{flex-direction:column;align-items:center;gap:7px}
body.pvz-game .header-actions .text-button,body.pvz-game .header-actions .icon-button{width:38px;height:38px;padding:0;border-radius:50%;display:grid;place-items:center;background:#16261cd9;border:1px solid #ffffff2e;color:#e2e9d2;box-shadow:0 3px 10px #0004;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body.pvz-game .header-actions .text-button span{display:none}
body.pvz-game .header-actions .text-button i,body.pvz-game .header-actions .icon-button i{width:18px;height:18px}
body.pvz-game .session-label{display:flex;position:fixed;right:10px;bottom:126px;bottom:calc(126px + env(safe-area-inset-bottom,0px));z-index:12;max-width:72vw;padding:7px 12px;border-radius:20px;background:#16261cd9;border:1px solid #ffffff2e;color:#e6ecd8;box-shadow:0 3px 10px #0004;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.pvz-game .welcome-card{width:270px;max-width:calc(100vw - 74px);width:min(270px,calc(100vw - 74px));margin-left:56px}
}@media(max-height:520px) and (orientation:landscape) and (max-width:1100px){body.pvz-game .session-label{bottom:45px}
body.pvz-game .welcome-card{width:300px;max-width:calc(100vw - 74px);width:min(300px,calc(100vw - 74px));margin-left:56px;max-height:calc(100vh - 112px);max-height:calc((var(--pvz-vh,1vh) * 100) - 112px);max-height:calc(100dvh - 112px);overflow:auto}
}body.pvz-game .seed-card .seed-name{display:none}
@media(max-height:520px) and (orientation:landscape) and (max-width:1100px){body.pvz-game .welcome-card{padding:12px 18px 10px}
body.pvz-game .welcome-card h1{font-size:23px;margin:6px 0}
body.pvz-game .welcome-card .eyebrow{font-size:8px}
body.pvz-game .welcome-card>p{font-size:12px;line-height:1.5}
body.pvz-game .welcome-card .home-rule{margin:7px 0}
body.pvz-game .welcome-card .mode-tabs button{font-size:12px;padding-bottom:4px}
body.pvz-game .welcome-card .level-picker{margin-top:8px;gap:5px}
body.pvz-game .welcome-card .level-chip{font-size:8px;height:22px}
body.pvz-game .welcome-card .mode-description{font-size:8px;margin:6px 0 8px;min-height:0}
body.pvz-game .welcome-card .primary-button{min-height:32px;font-size:11px;padding:6px 12px}
body.pvz-game .welcome-card .welcome-footer{margin-top:6px}
}body.pvz-game .garden-wrap{isolation:auto}
@media(max-height:520px) and (orientation:landscape) and (max-width:1100px){body.pvz-game .field-topbar{left:56px}
}

.seed-cards::-webkit-scrollbar{display:none}
@supports not (aspect-ratio:1/1){.garden-wrap:before{content:"";display:block;padding-top:56.25%}
#garden{position:absolute;top:0;right:0;bottom:0;left:0}
}
.pvz-no-flex-gap .mode-tabs>button+button{margin-left:22px}
.pvz-no-flex-gap .level-picker>.level-chip+.level-chip{margin-left:8px}
.pvz-no-flex-gap .primary-button>i{margin-left:13px}
.pvz-no-flex-gap .seed-price>i{margin-right:4px}
.pvz-no-flex-gap .location-pill>span,.pvz-no-flex-gap .weather-pill>span{margin-left:7px}
.pvz-no-flex-gap .game-controls>button+button{margin-left:11px}
.pvz-no-flex-gap .level-indicator>div{margin-left:13px}
.pvz-no-flex-gap .pause-button>span{margin-left:8px}
.pvz-no-flex-gap .welcome-footer>button{margin-left:10px}
.pvz-no-flex-gap .welcome-footer>span>i{margin-right:4px}
.pvz-no-flex-gap .seed-cards>.seed-card+.seed-card{margin-left:10px}
.pvz-no-flex-gap .text-button>span{margin-left:9px}
.pvz-no-flex-gap .brand-mark{margin-right:13px}
.pvz-no-flex-gap .session-label>.live-dot{margin-right:9px}
.pvz-no-flex-gap .help-item>i{margin-right:12px}
.pvz-no-flex-gap .result-stars>i+i{margin-left:8px}
.pvz-no-flex-gap .result-stats>.stat+.stat{margin-left:23px}
.pvz-no-flex-gap .rank-row>*+*{margin-left:12px}
.pvz-no-flex-gap .rank-list>.rank-row+.rank-row{margin-top:6px}
.pvz-no-flex-gap .rank-rule-list>li+li{margin-top:7px}
.pvz-no-flex-gap .rank-tabs>button+button{margin-left:20px}
.pvz-no-flex-gap .rank-rule-head>strong{margin-left:9px}
.pvz-no-flex-gap .rank-meta>span>strong{margin-left:8px}
@media(max-width:1100px){.pvz-no-flex-gap .seed-cards>.seed-card+.seed-card{margin-left:7px}}
@media(max-width:760px){.pvz-no-flex-gap .mode-tabs>button+button{margin-left:18px}
.pvz-no-flex-gap .level-picker>.level-chip+.level-chip{margin-left:5px}
.pvz-no-flex-gap .game-controls>button+button{margin-left:6px}
.pvz-no-flex-gap .level-indicator>div{margin-left:8px}
.pvz-no-flex-gap .welcome-footer>button{margin-left:6px}
.pvz-no-flex-gap .seed-cards>.seed-card+.seed-card{margin-left:5px}
.pvz-no-flex-gap .brand-mark{margin-right:8px}
}
@media(min-width:761px) and (min-height:521px){.pvz-no-flex-gap body.pvz-game .masthead>.header-actions{margin-top:9px}
.pvz-no-flex-gap body.pvz-game .header-actions>*+*{margin-top:9px}
.pvz-no-flex-gap body.pvz-game .brand-mark{margin-right:0}
}
@media(max-width:760px),(max-height:520px) and (orientation:landscape) and (max-width:1100px){.pvz-no-flex-gap body.pvz-game .masthead>.header-actions{margin-top:7px}
.pvz-no-flex-gap body.pvz-game .header-actions>*+*{margin-top:7px}
.pvz-no-flex-gap body.pvz-game .brand-mark{margin-right:0}
}
@media(max-width:760px) and (orientation:portrait){.pvz-no-flex-gap body.pvz-game .seed-cards>.seed-card+.seed-card{margin-left:0}}
@media(max-height:520px) and (orientation:landscape) and (max-width:1100px){.pvz-no-flex-gap body.pvz-game .seed-cards>.seed-card+.seed-card{margin-left:4px}
.pvz-no-flex-gap body.pvz-game .game-controls>button+button{margin-left:5px}
.pvz-no-flex-gap body.pvz-game .level-indicator>div{margin-left:8px}
.pvz-no-flex-gap body.pvz-game .welcome-card .level-picker>.level-chip+.level-chip{margin-left:5px}
}
@media(max-height:520px) and (orientation:landscape){.pvz-no-flex-gap .seed-card .seed-price>i{margin-right:2px}}
@media(min-width:1000px) and (min-height:760px) and (max-height:950px){.pvz-no-flex-gap .seed-cards>.seed-card+.seed-card{margin-left:8px}}
@media(min-width:1101px) and (max-height:520px) and (orientation:landscape){.pvz-no-flex-gap .seed-cards>.seed-card+.seed-card{margin-left:0}}

html.pvz-landscape-rotated{height:100%;overflow:hidden}
.pvz-landscape-rotated body{position:fixed;top:0;left:var(--pvz-landscape-height);width:var(--pvz-landscape-width);height:var(--pvz-landscape-height);min-height:0;transform:rotate(90deg);transform-origin:0 0;overflow:auto}
.pvz-landscape-rotated .modal{max-height:calc(var(--pvz-landscape-height) * .88)}
.pvz-landscape-rotated .modal-backdrop{padding:16px}
.pvz-landscape-rotated .almanac-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.pvz-landscape-rotated .help-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pvz-landscape-rotated body.pvz-game{overflow:hidden}
.pvz-landscape-rotated body.pvz-game .game-shell{position:relative;width:100%;height:100%;margin:0}
.pvz-landscape-rotated body.pvz-game .play-container{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block;border:0;border-radius:0;overflow:hidden;background:#15251b}
.pvz-landscape-rotated body.pvz-game .garden-wrap{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;aspect-ratio:auto;min-height:0;background:#15251b}
.pvz-landscape-rotated body.pvz-game #garden{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain}
.pvz-landscape-rotated body.pvz-game .seed-bank{position:absolute;top:0;left:0;right:0;z-index:6;display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:64px;min-height:0;padding:6px 8px;padding-left:calc(8px + env(safe-area-inset-top,0px));padding-right:calc(8px + env(safe-area-inset-bottom,0px));gap:8px;border:0;background:linear-gradient(180deg,#29391fee,#29391fcc 72%,#29391f00)}
.pvz-landscape-rotated body.pvz-game .seed-divider{display:none}
.pvz-landscape-rotated body.pvz-game .sun-meter{width:52px;flex:0 0 52px;flex-direction:column;justify-content:center;gap:1px}
.pvz-landscape-rotated body.pvz-game .sun-meter strong{font-size:20px}
.pvz-landscape-rotated body.pvz-game .sun-symbol{width:24px;height:24px}
.pvz-landscape-rotated body.pvz-game .sun-meter>span{display:none}
.pvz-landscape-rotated body.pvz-game .seed-cards{display:flex;flex-wrap:nowrap;justify-content:space-between;flex:1 1 auto;width:auto;min-width:0;padding:0;gap:4px;overflow-x:auto}
.pvz-landscape-rotated body.pvz-game .seed-card{width:52px;min-width:0;max-width:none;flex:0 0 52px;height:52px}
.pvz-landscape-rotated body.pvz-game .seed-card img{width:38px;height:26px;top:6px}
.pvz-landscape-rotated body.pvz-game .seed-key{display:none}
.pvz-landscape-rotated body.pvz-game .seed-price{height:14px;font-size:11px}
.pvz-landscape-rotated body.pvz-game .seed-price i{width:8px;height:8px}
.pvz-landscape-rotated body.pvz-game .shovel{width:44px;height:52px;min-height:0;flex:0 0 44px;flex-direction:column;gap:2px}
.pvz-landscape-rotated body.pvz-game .shovel>i{width:24px;height:26px}
.pvz-landscape-rotated body.pvz-game .shovel>span{font-size:10px;line-height:1}
.pvz-landscape-rotated body.pvz-game .shovel kbd{display:none}
.pvz-landscape-rotated body.pvz-game .field-topbar{top:64px;left:56px;right:8px}
.pvz-landscape-rotated body.pvz-game .location-pill{font-size:9px;padding:4px 7px}
.pvz-landscape-rotated body.pvz-game .weather-pill{display:none}
.pvz-landscape-rotated body.pvz-game .game-footer{position:absolute;left:0;right:0;bottom:0;z-index:6;display:flex;align-items:center;height:42px;min-height:0;padding:3px 10px;padding-left:calc(10px + env(safe-area-inset-top,0px));padding-right:calc(10px + env(safe-area-inset-bottom,0px));gap:12px;background:linear-gradient(0deg,#263620ee,#263620cc 72%,#26362000)}
.pvz-landscape-rotated body.pvz-game .level-indicator{flex:1 1 auto;width:auto;min-width:0;max-width:42%;gap:8px}
.pvz-landscape-rotated body.pvz-game .level-number{width:26px;height:30px;flex:0 0 26px;font-size:12px}
.pvz-landscape-rotated body.pvz-game .level-indicator>div{min-width:0}
.pvz-landscape-rotated body.pvz-game .level-indicator strong{display:block;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;line-height:1.15}
.pvz-landscape-rotated body.pvz-game .level-indicator small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;line-height:1.15;margin-top:2px}
.pvz-landscape-rotated body.pvz-game .wave-progress{flex:1 1 auto;width:auto;min-width:0;max-width:38%}
.pvz-landscape-rotated body.pvz-game .progress-label{font-size:9px;margin-bottom:7px}
.pvz-landscape-rotated body.pvz-game .progress-label #waveLabel{max-width:none}
.pvz-landscape-rotated body.pvz-game .progress-track{height:4px}
.pvz-landscape-rotated body.pvz-game .flag,.pvz-landscape-rotated body.pvz-game .flag i{width:9px;height:15px}
.pvz-landscape-rotated body.pvz-game .game-controls{flex:0 0 auto;gap:5px}
.pvz-landscape-rotated body.pvz-game .speed-button,.pvz-landscape-rotated body.pvz-game .pause-button{height:25px;width:29px;font-size:11px;padding:0;justify-content:center}
.pvz-landscape-rotated body.pvz-game .pause-button span{display:none}
.pvz-landscape-rotated body.pvz-game .session-label{bottom:45px;max-width:72%}
.pvz-landscape-rotated body.pvz-game .welcome-card{width:300px;max-width:calc(100% - 74px);margin-left:56px;max-height:calc(var(--pvz-landscape-height) - 112px);overflow:auto;padding:12px 18px 10px}
.pvz-landscape-rotated body.pvz-game .home-overlay{padding:64px 0 42px}
.pvz-landscape-rotated body.pvz-game .welcome-card h1{font-size:23px;margin:6px 0}
.pvz-landscape-rotated body.pvz-game .welcome-card .eyebrow{font-size:8px}
.pvz-landscape-rotated body.pvz-game .welcome-card>p{font-size:12px;line-height:1.5}
.pvz-landscape-rotated body.pvz-game .welcome-card .home-rule{margin:7px 0}
.pvz-landscape-rotated body.pvz-game .welcome-card .mode-tabs button{font-size:12px;padding-bottom:4px}
.pvz-landscape-rotated body.pvz-game .welcome-card .level-picker{margin-top:8px;gap:5px}
.pvz-landscape-rotated body.pvz-game .welcome-card .level-chip{font-size:8px;height:22px}
.pvz-landscape-rotated body.pvz-game .welcome-card .mode-description{font-size:8px;margin:6px 0 8px;min-height:0}
.pvz-landscape-rotated body.pvz-game .welcome-card .primary-button{min-height:32px;font-size:11px;padding:6px 12px}
.pvz-landscape-rotated body.pvz-game .welcome-card .welcome-footer{margin-top:6px}
.pvz-landscape-rotated body.pvz-game .toast{bottom:42px;font-size:11px}
.pvz-landscape-rotated body.pvz-game .wave-banner{font-size:22px}
.pvz-landscape-rotated body.pvz-game .dialog-overlay .pause-card,.pvz-landscape-rotated body.pvz-game .dialog-overlay .result-card{max-height:calc(var(--pvz-landscape-height) * .9);overflow:auto}
.pvz-landscape-rotated.pvz-no-flex-gap body.pvz-game .seed-cards>.seed-card+.seed-card{margin-left:4px}
.pvz-landscape-rotated.pvz-no-flex-gap body.pvz-game .game-controls>button+button{margin-left:5px}
