:root{--ink:#173f42;--muted:#6e8986;--cream:#f7f9ed;--coral:#f47f61;--yellow:#f3c861;--sea:#218b91;--line:#dce9db;--shadow:0 14px 42px #173f4210}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer;border:0;color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #ed9c37;outline-offset:3px}button:disabled{cursor:default;opacity:.45}button[hidden],[hidden]{display:none!important}i,em{font-style:normal}a{color:inherit;text-decoration:none}.site-header{max-width:1180px;margin:0 auto;padding:20px 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px}.brand img{width:100px;height:47px;object-fit:contain;mix-blend-mode:multiply}.brand>span{border-left:1px solid #d5ded0;padding-left:14px;font-size:12px;font-weight:600;letter-spacing:1px}.brand small{display:block;font-size:8px;letter-spacing:1.3px;margin-top:4px;color:var(--muted)}.header-actions{display:flex;gap:9px}.icon-btn,.small-btn{background:#fff9;border:1px solid var(--line);border-radius:11px;padding:9px 13px;font-size:12px;font-weight:650}.home{max-width:1124px;margin:22px auto 0;display:grid;grid-template-columns:1fr 1.08fr;gap:35px;align-items:center;padding:0 8px}.home-copy{padding:18px 0 28px 25px}.eyebrow{font-size:12px;font-weight:650;letter-spacing:2px;display:flex;align-items:center;gap:8px;color:#6a9087}.eyebrow>span{width:7px;height:7px;border-radius:50%;background:#f2af56}h1{font-size:clamp(40px,4.3vw,58px);line-height:1.28;letter-spacing:-2px;margin:24px 0 16px;font-weight:850}h1>span{color:var(--coral)}.home-intro{font-size:17px;line-height:1.9;color:var(--muted)}.home-facts{display:flex;gap:24px;font-size:11px;margin:27px 0 30px;color:var(--muted)}.home-facts b{display:block;color:var(--ink);font-size:28px;letter-spacing:-1px;font-weight:800;margin-bottom:3px}.start-actions{display:flex;flex-direction:column;gap:10px;max-width:330px}.primary{display:flex;align-items:center;justify-content:center;gap:30px;background:var(--ink);color:#fff;border-radius:16px;min-height:55px;padding:14px 23px;font-size:17px;font-weight:750;box-shadow:0 7px 0 #cfdccf;transition:transform .15s,background .2s}.primary:hover{background:#246165;transform:translateY(-1px)}.primary:active{transform:translateY(3px);box-shadow:0 3px 0 #cfdccf}.primary span{font-size:25px}.secondary{min-height:46px;padding:12px 20px;background:#fff9;border:1px solid #b9d6c5;border-radius:13px;font-size:14px;font-weight:700}.save-info{color:var(--muted);font-size:11px;line-height:1.6;margin-top:20px}.best-info{font-size:12px;color:#ab8541}.cover{aspect-ratio:1/1.12;position:relative;isolation:isolate;border-radius:130px 130px 40px 40px;overflow:hidden;background:linear-gradient(#f5f8ecaa,#a4dddc40 45%,#54c7cd99),url('assets/waterpark.jpg.png') center 60%/cover;box-shadow:inset 0 0 60px #f7f9ed88,0 20px 40px #38554c12}.cover:after{content:'';position:absolute;inset:0;background:linear-gradient(#f8faebf5 0%,#f8faebda 20%,transparent 60%);z-index:-1}.cover-title{position:absolute;top:9%;left:0;right:0;text-align:center;color:#db8a56;font-size:19px;letter-spacing:5px;font-weight:800;z-index:1}.cover-title>span{display:block;color:#20595c;font-size:42px;letter-spacing:2px;line-height:1.4}.cover-title>small{font-size:9px;letter-spacing:2.5px;display:block;color:#63938a;margin-top:10px}.cover-ring{position:absolute;bottom:12%;width:80%;height:18%;left:10%;border-radius:50%;background:#d7e7aee0;border:12px solid #fff9;box-shadow:0 18px 0 #6fb8b8,0 26px 0 #fff5}.cover-hero{position:absolute;width:51%;height:auto;z-index:3;filter:drop-shadow(0 15px 12px #123b3b20)}.hero-turtle{left:12%;bottom:9%;width:58%;z-index:5;transform:rotate(-7deg)}.hero-star{left:1%;bottom:32%;width:43%;transform:rotate(-6deg);z-index:2}.hero-blue{right:-3%;bottom:13%;transform:rotate(9deg)}.hero-purple{right:5%;bottom:35%;width:45%;transform:rotate(5deg);z-index:2}.cover-stamp{position:absolute;bottom:39%;left:43%;z-index:6;transform:rotate(-7deg);background:#fff6ce;color:#8a653a;border:1px solid #e6c47b;border-radius:50%;width:90px;height:90px;display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:1.7;font-size:11px;box-shadow:0 6px 12px #25443b17}.cover-stamp strong{font-size:14px}.cover-bottom{position:absolute;bottom:4%;left:0;right:0;text-align:center;font-size:11px;color:#175f63;letter-spacing:1px;font-weight:600}.home-guide{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:29px 24px;border-top:1px solid var(--line);margin-top:20px}.home-guide>div{position:relative;padding-left:37px}.home-guide span{position:absolute;left:0;top:0;font-size:12px;color:#b3a67c}.home-guide b{font-size:14px}.home-guide p{font-size:12px;color:var(--muted);line-height:1.8;margin:8px 0 0}.footer{text-align:center;color:#92a297;font-size:11px;padding:25px 15px;line-height:1.8}.footer span{padding:0 7px}
.play{max-width:1020px;margin:0 auto;padding:0 22px}.play-top{display:flex;justify-content:space-between;align-items:center;margin:5px 0 16px;gap:15px}.game-name{font-size:20px;font-weight:850}.game-name span{display:block;color:var(--muted);font-size:10px;letter-spacing:1px;margin-top:6px;font-weight:500}.game-controls{display:flex;gap:7px}.dashboard{display:grid;grid-template-columns:repeat(4,1fr);background:#fff9;border:1px solid var(--line);border-radius:16px;padding:11px 0;margin-bottom:16px;box-shadow:var(--shadow)}.dashboard>div{text-align:center;border-right:1px solid var(--line)}.dashboard>div:last-child{border:0}.dashboard span{font-size:10px;color:var(--muted);display:block;letter-spacing:1px}.dashboard b{font-size:24px;display:block;margin-top:2px;font-variant-numeric:tabular-nums;line-height:1.3}.dashboard small{font-size:12px;color:var(--muted);font-weight:500}.dashboard>div:first-child b{color:#b58a32}.dashboard>div:nth-child(2) b{color:#d96e5c}.battle-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.battlefield{min-width:0}.map-wrap{position:relative;background:#73c9cc;border-radius:28px;overflow:hidden;border:6px solid #fff;box-shadow:0 8px 30px #184e4420;aspect-ratio:480/560}#board{display:block;width:100%;height:100%;touch-action:manipulation}.pad-overlay{position:absolute;inset:0}.pad-btn{position:absolute;width:10.8%;height:9.3%;transform:translate(-50%,-50%);border-radius:50%;background:transparent;border:0;padding:0}.pad-btn:focus-visible{outline:3px solid #fff9;outline-offset:-5px}.map-tip{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);max-width:90%;white-space:nowrap;padding:7px 12px;border-radius:20px;background:#174a44d9;color:#fff;font-size:10px;pointer-events:none}.wave-banner{position:absolute;left:5%;right:5%;top:40%;padding:17px;border:1px solid #fff7;background:#154b48ec;color:#fff4d3;border-radius:18px;text-align:center;font-size:23px;font-weight:800;box-shadow:0 10px 25px #17474030;pointer-events:none}.skill-bar{display:flex;gap:10px;margin-top:12px}.skill{flex:1;display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:15px;padding:10px 12px;text-align:left;min-width:0;position:relative;overflow:hidden}.skill-icon{font-size:28px;width:28px;flex:none;color:#4e9ca2}.skill b{display:block;font-size:13px}.skill small{display:block;font-size:9px;color:var(--muted);margin-top:4px;white-space:nowrap}.skill em{margin-left:auto;font-size:11px;font-weight:700;color:#458c77}.skill:disabled{opacity:.65}.command-panel{display:flex;flex-direction:column;gap:15px}.wave-card,.tower-shop,.selection{border:1px solid var(--line);border-radius:20px;background:#fff9;padding:18px}.wave-card{background:#e7efda}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;font-weight:750}.section-heading>small{font-size:9px;font-weight:500;color:var(--muted)}#enemy-count{font-size:10px;color:#6c8d77}.wave-card h2{font-size:20px;line-height:1.4;margin:12px 0 5px}.wave-card p{font-size:11px;line-height:1.7;color:#6b8478;margin:6px 0 15px;min-height:34px}.primary.compact{width:100%;font-size:13px;min-height:42px;padding:10px 12px;border-radius:12px;box-shadow:0 4px 0 #cad7bd}.tower-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.tower-option{position:relative;border:1.5px solid #e5eada;background:#fbfcf6;border-radius:14px;display:flex;flex-direction:column;align-items:center;padding:6px 5px 10px;transition:border-color .15s,background .15s}.tower-option.selected{border-color:#e6af49;background:#fff5d6}.tower-option.unaffordable{opacity:.53}.tower-option canvas{width:66px;height:62px;object-fit:contain}.tower-option b{font-size:12px}.tower-option small{font-size:9px;color:var(--muted);margin:3px 0}.tower-option em{font-size:11px;color:#a88032;font-weight:750}.selection-empty{text-align:center;padding:8px 3px}.selection-empty>span{font-size:29px;color:#d5ba7e}.selection h3{margin:9px 0 7px;font-size:15px}.selection p{font-size:11px;color:var(--muted);line-height:1.75;margin:0}.tower-title{display:flex;justify-content:space-between;align-items:center}.tower-title h3{margin:0}.level-dots{letter-spacing:3px;color:#dfaf4a;font-size:12px}.tower-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.tower-stats span{font-size:9px;color:var(--muted)}.tower-stats b{display:block;font-size:17px;color:var(--ink);margin-top:4px}.target-row{display:flex;align-items:center;gap:6px;margin:12px 0;font-size:10px}.target-row>span{margin-right:auto;color:var(--muted)}.target-row button{padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}.target-row button.active{background:#dfeadc;border-color:#95b59c}.upgrade{width:100%;padding:11px 10px;border-radius:11px;background:#efd08b;font-size:12px;font-weight:750}.sell{display:block;margin:12px auto 0;background:transparent;color:#8e9990;font-size:10px;text-decoration:underline;text-underline-offset:3px}.strategy-note{font-size:10px;line-height:1.8;color:#8b9c8c;padding:0 8px}.toast{position:fixed;bottom:max(30px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#173f42ed;color:#fff;padding:12px 20px;border-radius:14px;font-size:13px;box-shadow:0 6px 28px #173f4230;max-width:90vw;text-align:center;z-index:50;pointer-events:none}
dialog{border:0;border-radius:27px;padding:0;max-width:440px;width:calc(100% - 32px);background:#fbfcf2;color:var(--ink);box-shadow:0 25px 90px #123f4266;max-height:88dvh}dialog::backdrop{background:#102e37a8;backdrop-filter:blur(5px)}.dialog-inner{position:relative;padding:31px 26px 27px}.dialog-close{position:absolute;right:13px;top:9px;background:transparent;font-size:27px;font-weight:300;color:#8ca294;width:32px;height:32px}.dialog-tag{font-size:10px;letter-spacing:2px;color:#91a180;text-align:center;text-transform:uppercase}.dialog-title{font-size:29px;text-align:center;margin:14px 0 10px;letter-spacing:-1px}.dialog-description{font-size:13px;line-height:1.9;text-align:center;color:var(--muted);margin:0 0 20px}.dialog-buttons{display:flex;flex-direction:column;gap:12px;margin-top:25px}.dialog-buttons .primary{font-size:15px;min-height:48px;box-shadow:0 4px 0 #cfdccf}.dialog-buttons .secondary{font-size:13px}.help-list{padding:0;list-style:none;counter-reset:help}.help-list li{counter-increment:help;padding:12px 0 12px 33px;position:relative;border-bottom:1px solid var(--line);font-size:12px;line-height:1.8;color:var(--muted)}.help-list li:before{content:counter(help);position:absolute;left:0;top:14px;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;background:#e5eddb;color:#719571;font-size:10px;font-weight:700}.help-list strong{color:var(--ink)}.result-medal{text-align:center;font-size:65px;color:#d4ae5e;line-height:1.3}.result-stats{display:flex;justify-content:space-around;background:#eaf0e1;padding:15px;border-radius:15px;text-align:center}.result-stats b{font-size:24px;display:block}.result-stats small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.pause-note{text-align:center;font-size:11px;color:#9ca790;margin:12px 0}.mobile-only{display:none}
@media(min-width:1300px){.play{max-width:1050px}.battle-layout{grid-template-columns:minmax(0,600px) 300px;justify-content:center}.dashboard{max-width:922px;margin-left:auto;margin-right:auto}.play-top{max-width:922px;margin-left:auto;margin-right:auto}}
@media(max-width:760px){.site-header{padding:13px 18px}.brand img{width:83px;height:36px}.brand>span{font-size:10px;padding-left:10px}.brand small{font-size:6px;letter-spacing:.8px}.icon-btn{font-size:10px;padding:8px 10px;border-radius:9px}.header-actions{gap:6px}.home{margin:0;display:flex;flex-direction:column;gap:0;padding:0 20px}.home-copy{padding:22px 3px 25px;width:100%;z-index:2}.eyebrow{font-size:9px;letter-spacing:1.6px}h1{font-size:clamp(35px,8.8vw,50px);margin:17px 0 8px;line-height:1.23;letter-spacing:-1.7px}.home-intro{font-size:12px;line-height:1.8;margin:13px 0}.home-facts{gap:25px;margin:19px 0 21px;font-size:9px}.home-facts b{font-size:24px}.start-actions{max-width:none}.start-actions .primary{min-height:50px;font-size:15px}.save-info{margin:16px 0 0;font-size:10px}.best-info{margin:10px 0 0;font-size:10px}.cover{order:-1;width:100%;aspect-ratio:1.35;margin-top:10px;border-radius:45px 45px 24px 24px}.cover-title{top:7%;font-size:12px;letter-spacing:3px}.cover-title>span{font-size:27px;letter-spacing:2px}.cover-title>small{font-size:6px;margin-top:4px}.cover-ring{bottom:9%;border-width:7px;box-shadow:0 10px 0 #6fb8b8,0 15px 0 #fff5}.cover-hero{width:43%}.hero-turtle{width:50%;bottom:3%;left:19%}.hero-star{width:37%;bottom:10%;left:1%}.hero-blue{width:40%;bottom:6%;right:-1%}.hero-purple{width:33%;bottom:25%;right:9%}.cover-stamp{width:60px;height:60px;font-size:7px;left:42%;bottom:31%}.cover-stamp strong{font-size:9px}.cover-bottom{font-size:7px;bottom:3%}.home-guide{margin-top:5px;padding:22px 3px;gap:14px}.home-guide>div{padding-left:0}.home-guide span{position:static;display:block;margin-bottom:6px;font-size:10px}.home-guide b{font-size:11px}.home-guide p{font-size:10px}.footer{font-size:9px;padding:19px 10px}.play{padding:0 10px}.play-top{margin:5px 4px 10px}.game-name{font-size:16px}.game-name span{font-size:9px;margin-top:3px}.small-btn{font-size:11px;padding:8px 11px}.dashboard{padding:8px 0;margin-bottom:10px;border-radius:13px}.dashboard span{font-size:8px;letter-spacing:0}.dashboard b{font-size:21px}.dashboard small{font-size:10px}.battle-layout{display:flex;flex-direction:column;gap:12px}.battlefield{width:100%}.map-wrap{border-width:4px;border-radius:21px}.map-tip{font-size:9px;padding:6px 10px;bottom:6px}.wave-banner{font-size:20px}.skill-bar{margin-top:8px;gap:7px}.skill{padding:9px 9px;gap:7px;border-radius:12px}.skill-icon{font-size:25px;width:23px}.skill b{font-size:11px}.skill small{font-size:8px}.skill em{font-size:9px}.command-panel{width:100%;display:grid;grid-template-columns:1fr;gap:10px}.tower-shop{order:-1;padding:12px;border-radius:16px}.tower-options{grid-template-columns:repeat(4,1fr);gap:6px;margin-top:9px}.tower-option{padding:3px 2px 8px;border-radius:11px}.tower-option canvas{width:55px;height:49px}.tower-option b{font-size:10px}.tower-option small{font-size:8px}.tower-option em{font-size:10px}.section-heading{font-size:11px}.section-heading>small{font-size:8px}.wave-card{padding:13px 15px;border-radius:15px;display:grid;grid-template-columns:1fr 128px;column-gap:12px}.wave-card .section-heading{grid-column:1/-1}.wave-card h2{font-size:16px;margin:8px 0 3px}.wave-card p{font-size:10px;line-height:1.6;margin:0;min-height:0}.wave-card .primary{grid-column:2;grid-row:2/4;align-self:center;font-size:11px;box-shadow:0 3px 0 #cad7bd;min-height:41px}.selection{padding:14px;border-radius:15px}.selection-empty{display:flex;align-items:center;gap:10px;text-align:left;padding:0}.selection-empty>span{font-size:26px}.selection-empty h3{font-size:11px;white-space:nowrap;margin:0}.selection-empty p{font-size:9px}.tower-stats{margin:10px 0}.tower-stats b{font-size:16px}.selection p{font-size:10px}.strategy-note{font-size:9px;padding:1px 4px}.dialog-inner{padding:29px 23px 24px}.dialog-title{font-size:26px}.dialog-description{font-size:12px}.mobile-only{display:initial}body.playing .site-header{padding-top:8px;padding-bottom:7px}body.playing .brand>span{display:none}body.playing .brand img{height:30px;width:75px}body.playing .footer{padding-top:13px}}
@media(min-width:761px){.play{max-width:850px}.battle-layout{grid-template-columns:minmax(0,480px) 300px;justify-content:center}.map-wrap{max-width:480px}.dashboard,.play-top{max-width:802px}.cover-stamp{left:1%;bottom:15%;width:74px;height:74px;font-size:9px}.cover-stamp strong{font-size:12px}}
@media(max-width:760px){body.playing .tower-shop{position:fixed;bottom:0;left:0;right:0;border-radius:19px 19px 0 0;background:#f7f9edfa;border:1px solid #dce6d0;z-index:15;padding:8px 12px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -5px 25px #173f4214}.tower-shop .tower-options{margin-top:6px}.tower-shop .tower-option{flex-direction:row;flex-wrap:wrap;justify-content:center;padding:4px 2px 6px}.tower-shop .tower-option canvas{width:47px;height:44px}.tower-shop .tower-option b{width:100%;font-size:10px}.tower-shop .tower-option small{display:none}.tower-shop .tower-option em{font-size:9px;margin-top:2px}.play{padding-bottom:125px}.selection{display:none}.selection.has-tower{display:block;position:fixed;left:8px;right:8px;bottom:8px;z-index:18;background:#fafcf1;box-shadow:0 -12px 40px #173f4233;padding:15px 18px 12px}.tower-title .icon-btn{padding:4px 9px;font-size:16px}.selection .tower-stats{margin:9px 0 5px}.selection .target-row{margin:8px 0}.selection .sell{margin-top:10px}.strategy-note{display:none}body.playing .footer{display:none}.wave-card{padding:11px 13px;margin-bottom:0}.wave-card .primary{font-size:10px}.wave-card h2{font-size:14px}.wave-card p{font-size:9px}.toast{bottom:140px}.cover-stamp{bottom:9%;left:1%;width:48px;height:48px;font-size:6px}.cover-stamp strong{font-size:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
