*{box-sizing:border-box;margin:0;padding:0;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}html,body{width:100%;height:100%;overflow:hidden;font-family:Arial Rounded MT Bold,Microsoft YaHei,PingFang SC,Hiragino Sans GB,sans-serif;background:linear-gradient(180deg,#8cc8f8,#c8e5fc 55%,#dfeefc);color:#3a2b22}#app{width:100vw;height:100dvh;display:flex;align-items:center;justify-content:center}.phone-stage{position:relative;width:100%;max-width:450px;height:100dvh;overflow:hidden;background:var(--bg-grad-img) center / cover no-repeat,linear-gradient(180deg,#9ad4fb,#e4f2fe);box-shadow:0 18px 55px #12345652}.phone-stage.in-gameplay{background:var(--bg-gameplay-img) center / cover no-repeat,linear-gradient(180deg,#a7d4f6,#dbe9f6)}@media(min-width:500px){.phone-stage{border-radius:26px;height:min(96dvh,900px);border:4px solid rgba(255,255,255,.78)}}.phone-stage:before{content:"";position:absolute;inset:0;background:var(--bg-pat-img) center / 340px repeat;opacity:.16;pointer-events:none;z-index:0}.phone-stage.in-gameplay:before{display:none}.scene-container{position:absolute;inset:0;z-index:1}.yarn-webgl-canvas{width:100%!important;height:100%!important;display:block}.screen-layer{position:absolute;inset:0;z-index:5;pointer-events:none}.screen-layer.hidden,.hidden{display:none!important}.gp-gear-btn{width:46px;height:46px;border:none;background:transparent;padding:0;cursor:pointer;pointer-events:auto;display:flex;align-items:center;justify-content:center;transition:transform .12s ease;flex-shrink:0}.gp-gear-btn:active{transform:scale(.91)}.gp-gear-btn img{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(22,54,96,.24))}.gp-coin-bar{position:relative;display:inline-flex;align-items:center;height:32px;background:#1e35578f;border-radius:999px;padding:0 4px 0 22px;margin-left:16px;cursor:pointer;pointer-events:auto;box-shadow:inset 0 2px 3px #00000038}.gp-coin-icon{position:absolute;left:-16px;top:50%;transform:translateY(-50%);width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.24))}.gp-coin-val{color:#fff;font-size:17px;font-weight:900;letter-spacing:.4px;padding:0 8px 0 4px;text-shadow:0 1.5px 2px rgba(10,24,48,.65)}.gp-coin-plus{width:26px;height:26px;border:none;background:transparent;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer}.gp-coin-plus img{width:26px;height:26px;object-fit:contain}.gp-top-header{position:absolute;top:10px;left:12px;right:12px;height:46px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.gp-level-heading{position:absolute;left:50%;transform:translate(-50%);display:inline-flex;align-items:center;gap:5px;font-size:26px;font-weight:900;color:#f4f9ff;letter-spacing:.8px;white-space:nowrap;-webkit-text-stroke:2px #132885;paint-order:stroke fill;text-shadow:-2px -2px 0 #132885,2px -2px 0 #132885,-2px 2px 0 #132885,2px 2px 0 #132885,0px 3.5px 0 #0d1d66,0px 5px 8px rgba(19,40,133,.28)}.gp-diff-icon{width:28px;height:28px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.3))}.gp-chapter-strip{position:absolute;top:58px;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center;gap:6px;pointer-events:auto;cursor:pointer}.gp-chapter-cell{width:38px;height:38px;border-radius:10px;background:#ffffff5c;display:flex;align-items:center;justify-content:center;padding:4px;transition:transform .15s ease}.gp-chapter-cell img{width:100%;height:100%;object-fit:contain;opacity:.72}.gp-chapter-cell.passed img{opacity:.9}.gp-chapter-cell.active{width:50px;height:50px;border-radius:13px;background:#ffffff9e;box-shadow:0 3px 10px #2d669e24}.gp-chapter-cell.active img{opacity:1;transform:scale(1.06)}.gp-left-pill{position:absolute;top:36.2%;left:14px;background:#84b4e8;border:2px solid rgba(255,255,255,.68);border-radius:999px;padding:4px 16px;font-size:14px;font-weight:900;color:#fff;text-shadow:0 1px 2px rgba(24,64,118,.45);box-shadow:0 3px 8px #22528c2e;pointer-events:none}.gp-tem-box{position:absolute;top:34.8%;right:14px;width:58px;height:58px;pointer-events:none;animation:popBounceIn .25s cubic-bezier(.2,1.4,.4,1)}.gp-tem-box img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(32,60,95,.26))}.gp-tem-badge{position:absolute;bottom:-2px;right:-2px;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:#e52521;border:2px solid #ffffff;color:#fff;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 5px #00000047}@keyframes popBounceIn{0%{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}.gp-zoom-slider{position:absolute;left:14px;bottom:112px;width:24px;height:128px;border-radius:999px;background:#84b4e8;border:2px solid rgba(255,255,255,.72);box-shadow:0 4px 10px #1e4a8033;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:5px 0;pointer-events:auto;touch-action:none}.gp-zoom-step{width:20px;height:18px;border:none;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}.gp-zoom-step img{width:12px;height:12px;object-fit:contain}.gp-zoom-track{position:relative;width:16px;flex:1;margin:3px 0;border-radius:999px;cursor:pointer}.gp-zoom-fill{position:absolute;left:0;right:0;bottom:0;height:25%;background:linear-gradient(180deg,#f9d976,#f3c242);border-radius:999px}.gp-zoom-thumb{position:absolute;left:50%;transform:translate(-50%);bottom:calc(25% - 15px);width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe875,#f7b11c 62%,#d98208);border:2px solid #fff6cc;box-shadow:0 3px 6px #5a340459;pointer-events:none}.gp-boosters-bar{position:absolute;left:50%;bottom:16px;transform:translate(-50%);display:flex;align-items:center;justify-content:center;gap:26px;pointer-events:auto}.gp-booster-medallion{position:relative;width:74px;height:74px;border:none;border-radius:50%;background:var(--btn-boosters-img) center / contain no-repeat;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .12s ease;filter:drop-shadow(0 5px 10px rgba(45,75,110,.22))}.gp-booster-medallion:active{transform:scale(.92)}.gp-booster-medallion.disabled{opacity:.62}.gp-booster-main-icon{width:44px;height:44px;object-fit:contain}.gp-booster-count-badge{position:absolute;right:0;bottom:0;width:24px;height:24px;border-radius:50%;background:#e52521;border:2px solid #ffffff;color:#fff;font-size:13px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px #00000047}.gp-booster-plus-badge{position:absolute;right:0;bottom:0;width:24px;height:24px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}.home-screen{display:flex;flex-direction:column;justify-content:space-between;padding:12px 14px 14px;pointer-events:auto;background:radial-gradient(circle at 50% 48%,#ffffff6b,#87caf82e)}.home-top-bar{display:flex;align-items:center;justify-content:space-between;gap:6px}.heart-bar{padding-right:4px}.heart-sub-timer{font-size:11px;font-weight:800;color:#ffeaa7;margin-right:4px}.home-tower-area{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin:4px 0}.home-brand-banner{position:relative;z-index:2;font-size:26px;font-weight:900;letter-spacing:1px;color:#fff;-webkit-text-stroke:1.8px #132885;paint-order:stroke fill;text-shadow:-1.5px -1.5px 0 #132885,1.5px -1.5px 0 #132885,-1.5px 1.5px 0 #132885,1.5px 1.5px 0 #132885,0px 3.5px 0 #0d1d66,0px 6px 10px rgba(19,40,133,.25)}.home-road-spine{position:absolute;top:42px;bottom:66px;left:50%;transform:translate(-50%);width:34px;background:var(--level-road-img) center / 100% 100% no-repeat;opacity:.9;z-index:0}.home-upcoming-list{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px}.home-road-node{position:relative;width:68px;height:68px;background-position:center;background-size:contain;background-repeat:no-repeat;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .12s ease}.home-road-node:active{transform:scale(.93)}.road-node-thumb{width:44px;height:44px;object-fit:contain;margin-bottom:4px}.road-node-num{position:absolute;bottom:5px;right:9px;font-size:12px;font-weight:900;color:#fff;text-shadow:0 1.5px 3px rgba(0,0,0,.72)}.road-diff-mini{position:absolute;top:-4px;right:-4px;width:22px;height:22px;object-fit:contain}.home-current-pedestal{position:relative;z-index:2;width:min(78%,272px);background:linear-gradient(180deg,#ffffffeb,#ebf7ffeb);border:3px solid #ffffff;border-radius:26px;padding:16px 14px 12px;text-align:center;box-shadow:0 12px 26px #1c4e8038;cursor:pointer}.home-diff-ribbon{position:relative;width:148px;height:30px;margin:-26px auto 4px;display:flex;align-items:center;justify-content:center}.home-diff-ribbon img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.home-diff-ribbon span{position:relative;z-index:1;color:#fff;font-size:12px;font-weight:900;text-shadow:0 1px 3px rgba(0,0,0,.5)}.home-big-thumb{width:148px;height:148px;margin:0 auto 6px;display:flex;align-items:center;justify-content:center;animation:plushFloat 3s ease-in-out infinite}.home-big-thumb img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 10px 14px rgba(0,0,0,.18))}@keyframes plushFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}.home-cur-name{font-size:16px;font-weight:900;color:#2c3e50}.home-start-green-btn{position:relative;z-index:2;width:min(78%,268px);height:62px;border:none;background:var(--btn-green-img) center / 100% 100% no-repeat;color:#fff;font-size:22px;font-weight:900;letter-spacing:1px;text-shadow:0 2px 4px rgba(14,88,22,.68);cursor:pointer;transition:transform .12s ease}.home-start-green-btn:active{transform:scale(.95)}.home-bottom-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:#ffffffa6;border:2px solid rgba(255,255,255,.85);border-radius:22px;padding:6px 8px;box-shadow:0 6px 16px #18447229}.home-tab-item{border:none;background:transparent;border-radius:16px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:13px;font-weight:900;color:#3f5368;cursor:pointer;transition:transform .12s,background .15s}.home-tab-item.active{background:#ffffffeb;color:#132885;box-shadow:0 3px 8px #1328851f}.home-tab-item:active{transform:scale(.94)}.home-tab-item img{width:30px;height:30px;object-fit:contain}.screen-warning-stroke{position:absolute;inset:0;pointer-events:none;background:var(--warn-stroke-img) center / 100% 100% no-repeat;box-shadow:inset 0 0 42px #ff2d41a6;opacity:0;transition:opacity .25s;z-index:4}.screen-warning-stroke.active{opacity:.82;animation:vignetteBlink .95s ease-in-out infinite}@keyframes vignetteBlink{0%,to{opacity:.35}50%{opacity:.88}}.tutorial-overlay{position:absolute;z-index:8;pointer-events:none;transform:translate(-10px,-6px);transition:left .08s linear,top .08s linear}.tutorial-hand-img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(0,0,0,.32));animation:handTapAnim .82s ease-in-out infinite}@keyframes handTapAnim{0%,to{transform:translate(0) scale(1)}50%{transform:translate(-6px,-7px) scale(.9)}}.float-toast-layer{position:absolute;inset:0;pointer-events:none;z-index:25}.float-toast{position:absolute;left:50%;top:34%;transform:translate(-50%);background:#192c4ee6;color:#fff;font-weight:900;font-size:14px;padding:6px 18px;border-radius:999px;border:2px solid rgba(255,255,255,.85);box-shadow:0 6px 16px #00000040;animation:toastFloatUp 1.1s ease forwards;white-space:nowrap}@keyframes toastFloatUp{0%{opacity:0;transform:translate(-50%,10px) scale(.88)}20%{opacity:1;transform:translate(-50%) scale(1.02)}80%{opacity:1;transform:translate(-50%,-14px) scale(1)}to{opacity:0;transform:translate(-50%,-26px) scale(.95)}}.modal-backdrop{position:absolute;inset:0;z-index:30;background:#0e1c309e;backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:18px;pointer-events:auto}.modal-backdrop.hidden{display:none!important}.wood-popup-frame{position:relative;width:100%;max-width:368px;max-height:84dvh;background:var(--frame-popup1-img) center / 100% 100% no-repeat,#c9723c;border-radius:30px;padding:36px 14px 16px;box-shadow:0 18px 42px #0000006b;animation:modalPop .22s cubic-bezier(.2,1.3,.4,1)}@keyframes modalPop{0%{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}.popup-ribbon-header{position:absolute;top:-22px;left:50%;transform:translate(-50%);width:min(88%,300px);height:58px;display:flex;align-items:center;justify-content:center;pointer-events:none}.popup-ribbon-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}.popup-ribbon-title{position:relative;z-index:1;color:#fff;font-size:21px;font-weight:900;letter-spacing:1px;margin-bottom:5px;text-shadow:0 2px 4px rgba(120,16,68,.65)}.popup-corner-close{position:absolute;top:-10px;right:-8px;z-index:3}.modal-close-btn{width:38px;height:38px;border:none;background:var(--btn-close-img) center / contain no-repeat;cursor:pointer;transition:transform .12s}.modal-close-btn:active{transform:scale(.9)}.wood-popup-inner{background:var(--frame-popup2-img) center / 100% 100% no-repeat,#fdf6dc;border-radius:22px;padding:18px 14px 16px;display:flex;flex-direction:column;align-items:center;gap:11px}.mb-showcase-box{width:96px;height:96px;border-radius:22px;background:#ffffffb8;border:2px solid #f2dfb3;display:flex;align-items:center;justify-content:center}.mb-showcase-box img{width:72px;height:72px;object-fit:contain}.win-plush-thumb{width:118px;height:118px;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(0,0,0,.2))}.popup-desc-text{font-size:13.5px;font-weight:800;color:#5b4029;line-height:1.45}.reward-coin-box{display:inline-flex;align-items:center;gap:8px;background:#ffffffd9;border:2px solid #f3d285;border-radius:999px;padding:6px 20px;font-size:24px;font-weight:900;color:#d35400}.reward-coin-box img{width:32px;height:32px;object-fit:contain}.glossy-green-btn,.glossy-blue-btn{width:100%;height:52px;border:none;font-size:17px;font-weight:900;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:transform .12s}.glossy-green-btn{background:var(--btn-green-img) center / 100% 100% no-repeat;text-shadow:0 2px 3px rgba(14,88,22,.65)}.glossy-blue-btn{background:var(--btn-blue-img) center / 100% 100% no-repeat;text-shadow:0 2px 3px rgba(16,56,118,.65)}.glossy-green-btn:active,.glossy-blue-btn:active{transform:scale(.95)}.glossy-green-btn img,.glossy-blue-btn img{width:24px;height:24px;object-fit:contain}.disabled-look{opacity:.6}.secondary-action-btn{width:100%;height:44px;border:none;border-radius:14px;font-size:15px;font-weight:900;color:#fff;cursor:pointer;background:linear-gradient(180deg,#54a0ff,#2e86de);box-shadow:0 4px #1b63ad}.danger-action-btn{background:linear-gradient(180deg,#ff7675,#d63031);box-shadow:0 4px #a32020}.modal-scroll-body{width:100%;overflow-y:auto;max-height:58dvh;padding-right:2px}.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.level-cell{position:relative;background:#ffffffeb;border:2px solid #ead8b1;border-radius:16px;padding:8px 5px;text-align:center;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;transition:transform .12s}.level-cell.current{border-color:#ff9f43;background:#fffdf5;box-shadow:0 0 0 2px #ff9f4359}.level-cell:active{transform:scale(.95)}.cell-diff-tag{position:absolute;top:4px;right:4px;width:20px;height:20px;object-fit:contain}.level-cell-thumb{width:56px;height:56px;object-fit:contain}.level-cell-num{font-size:11px;font-weight:900;color:#d35400}.level-cell-name{font-size:11.5px;font-weight:800;color:#4a3525;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.shop-balance-bar{width:100%;display:flex;justify-content:space-around;align-items:center;background:#ffffffc7;border:2px solid #f0dfb8;padding:6px 12px;border-radius:14px;font-size:15px;font-weight:900;color:#4a3525}.shop-balance-bar span{display:inline-flex;align-items:center;gap:5px}.shop-balance-bar img{width:22px;height:22px;object-fit:contain}.setting-row,.shop-row{width:100%;display:flex;align-items:center;justify-content:space-between;background:#ffffffeb;border:2px solid #ecdcb6;border-radius:16px;padding:9px 12px;margin-bottom:8px}.setting-left{display:flex;align-items:center;gap:10px;font-weight:900;font-size:14px;color:#4a3525}.setting-left img{width:30px;height:30px;object-fit:contain}.shop-sub{font-size:11px;font-weight:700;color:#7f6b58}.toggle-pill{padding:6px 16px;border-radius:999px;border:none;font-weight:900;font-size:13px;cursor:pointer;color:#fff}.toggle-pill.on{background:linear-gradient(180deg,#58db4f,#27ae60);box-shadow:0 3px #1e8449}.toggle-pill.coin-buy{background:linear-gradient(180deg,#ffb142,#e67e22);box-shadow:0 3px #b85d10}.toggle-pill.off{background:#95a5a6;box-shadow:0 3px #7f8c8d}
