:root{font-family:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif;color:#eef8ff;background:#071827;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 50% -10%,#1b5470 0,#0b263b 35%,#071827 75%);min-height:100vh}.shell{width:100%;max-width:430px;min-height:100vh;margin:auto;padding:20px 18px 96px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin:4px 0 20px}.eyebrow{display:block;color:#77b8c6;font-size:10px;letter-spacing:.18em;font-weight:800}.topbar h1{margin:5px 0 0;font-size:21px;letter-spacing:.02em}.sync{font-size:11px;color:#9cc5c7;background:#123546;border:1px solid #245565;padding:8px 10px;border-radius:99px}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#56e0b2;margin-right:5px}.hero-card,.tree-card,.notice{border:1px solid rgba(120,209,207,.22);background:linear-gradient(135deg,rgba(22,70,87,.92),rgba(11,34,53,.96));box-shadow:0 14px 40px rgba(0,0,0,.2);border-radius:22px}.hero-card{display:flex;min-height:166px;overflow:hidden;padding:22px 18px 18px}.hero-copy{flex:1;z-index:1}.hero-copy h2{font-size:22px;line-height:1.25;margin:13px 0 8px;max-width:225px}.hero-copy p{color:#acd2d3;font-size:12px;line-height:1.6;margin:0;max-width:220px}.hero-card img{width:126px;height:126px;align-self:end;margin:-4px -20px -16px 0}.tag{display:inline-block;color:#9ee9de;font-size:10px;background:#173f4b;border:1px solid #2e7c7e;border-radius:99px;padding:5px 9px}.accent{color:#ffd689;background:#4a3a28;border-color:#7d6742}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0 25px}.resource{display:flex;align-items:center;gap:9px;background:#0d2a3d;border:1px solid #174456;border-radius:14px;padding:10px}.resource-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;color:#ffda85;background:#4a3a28;font-size:13px}.resource b,.resource small{display:block}.resource b{font-size:15px}.resource small{font-size:10px;color:#79a8ae;margin-top:2px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:10px}.section-head h2{font-size:18px;margin:5px 0 0}.level{font-size:11px;color:#ffd582}.tree-card{display:grid;grid-template-columns:42% 58%;overflow:hidden;min-height:192px}.tree-art{position:relative;overflow:hidden;background:linear-gradient(160deg,#123b4d,#0c263e);display:grid;place-items:center}.moon{position:absolute;width:98px;height:98px;background:rgba(131,225,213,.13);border-radius:50%;top:20px;left:27px}.tree{position:relative;color:#66d9bb;font-size:74px;text-shadow:0 0 28px rgba(80,221,182,.7);transform:rotate(20deg)}.spark{position:absolute;color:#ffe19a}.s1{top:34px;left:28px}.s2{right:20px;top:70px}.s3{bottom:31px;left:28px}.tree-info{padding:18px 16px}.tree-info h3{margin:12px 0 4px;font-size:20px}.tree-info p{color:#9fc5ca;font-size:11px;line-height:1.5;margin:0 0 14px}.primary{width:100%;min-height:44px;border:0;border-radius:12px;background:linear-gradient(100deg,#ffd77d,#eea554);color:#172433;font-weight:800;cursor:pointer}.primary span{float:right;font-size:18px}.result{display:block;color:#6f9ca4;font-size:9px;margin-top:9px}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.quick-actions button{min-height:82px;border:1px solid #174456;border-radius:15px;background:#0d2a3d;color:#dceff0;padding:10px 4px;cursor:pointer}.module-view{margin-top:18px;padding:16px;border:1px solid rgba(120,209,207,.22);background:linear-gradient(135deg,rgba(22,70,87,.92),rgba(11,34,53,.96));box-shadow:0 14px 40px rgba(0,0,0,.2);border-radius:22px}.module-view[hidden]{display:none}.module-back{border:1px solid #4c6875;border-radius:10px;background:#163446;color:#dceff0;padding:8px 10px;cursor:pointer}.shelter-panel{margin-top:18px;padding:16px;border:1px solid rgba(120,209,207,.22);background:linear-gradient(135deg,rgba(22,70,87,.92),rgba(11,34,53,.96));box-shadow:0 14px 40px rgba(0,0,0,.2);border-radius:22px}.shelter-panel[hidden]{display:none},.quick-actions b,.quick-actions small{display:block}.quick-actions span{font-size:20px;color:#69d5c4;margin-bottom:6px}.quick-actions b{font-size:11px}.quick-actions small{font-size:9px;color:#709ba4;margin-top:4px}.notice{display:flex;align-items:center;gap:11px;padding:12px 14px;margin-top:8px;color:#ffd582}.notice p{flex:1;margin:0;color:#8fb5bb;font-size:10px;line-height:1.45}.notice p b{color:#cbe4e4;font-size:11px}.bottom-nav{position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:min(430px,100%);display:grid;grid-template-columns:repeat(5,1fr);padding:10px 10px max(10px,env(safe-area-inset-bottom));background:rgba(6,22,35,.94);backdrop-filter:blur(12px);border-top:1px solid #173e50}.bottom-nav a{text-align:center;color:#6d98a1;font-size:10px;text-decoration:none}.bottom-nav a span{display:block;font-size:19px;line-height:23px}.bottom-nav a.active{color:#70e0c4}@media(min-width:600px){.shell{padding-top:35px}}
.equipment-panel{margin-top:18px}.equipment-list{display:grid;gap:10px}.equipment-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.04)}.equipment-item small{display:block;color:#9da8bf;margin-top:5px}.equipment-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.equip-button,.lock-button,.unlock-button,.dismantle-button{border:0;border-radius:10px;padding:8px 10px;color:#1b2030;font-weight:700;cursor:pointer}.equip-button{background:#ffd166}.lock-button,.unlock-button{background:#8bd3dd}.dismantle-button{background:#ff9b85}.equipped{color:#87e7c2;font-size:12px}

.shelter-panel{margin-top:18px;padding:16px;border:1px solid rgba(120,209,207,.22);background:linear-gradient(135deg,rgba(22,70,87,.92),rgba(11,34,53,.96));box-shadow:0 14px 40px rgba(0,0,0,.2);border-radius:22px}.shelter-intro{color:#9fc5ca;font-size:11px;line-height:1.5}.shelter-summary{display:flex;justify-content:space-between;gap:6px;color:#ffd582;font-size:10px;margin:12px 0}.shelter-rooms{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.shelter-room{position:relative;min-height:68px;text-align:left;border:1px solid #174456;border-radius:14px;background:#0d2a3d;color:#dceff0;padding:10px;cursor:pointer}.shelter-room.selected{border-color:#70e0c4;background:linear-gradient(135deg,#174e55,#113447);box-shadow:0 0 0 2px rgba(112,224,196,.18)}.shelter-room b,.shelter-room small{display:block}.shelter-room small{color:#79a8ae;margin-top:5px;font-size:9px}.shelter-room em{position:absolute;right:8px;top:8px;color:#70e0c4;font-style:normal;font-size:9px}.shelter-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end;margin-top:12px}.shelter-controls label{color:#9fc5ca;font-size:10px}.shelter-controls input{display:block;width:100%;margin-top:5px;min-height:42px;border:1px solid #245565;border-radius:10px;background:#081e30;color:#eef8ff;padding:0 10px}.shelter-controls .primary{min-height:42px}.shelter-controls .secondary{min-height:42px;border:1px solid #4c6875;border-radius:12px;background:#163446;color:#dceff0;font-weight:700;cursor:pointer}.shelter-controls .secondary:disabled,.shelter-controls .primary:disabled{opacity:.55;cursor:not-allowed}
/* 鍗曞睆妯″潡鍖栧睍绀猴細姣忎釜鐜╂硶鐙崰涓€涓鍥撅紝鍐呭鍦ㄩ灞忓唴瀹屾垚锛屼笉渚濊禆椤甸潰绾靛悜婊氬姩銆?*/
.module-shell{max-width:980px;min-height:100dvh;padding:18px 24px 112px}.module-screen{min-height:clamp(420px,calc(100dvh - 260px),650px);position:relative}.module-screen>.module-view{margin-top:0}.module-view[hidden]{display:none!important}.home-view{display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(300px,.95fr);min-height:clamp(420px,calc(100dvh - 290px),620px);overflow:hidden;padding:0}.home-visual{position:relative;display:grid;place-items:center;background:radial-gradient(circle at 50% 38%,rgba(77,217,189,.24),transparent 33%),linear-gradient(145deg,#123e51,#081e31)}.home-visual .tree{font-size:170px;color:#6ee0be;text-shadow:0 0 55px rgba(92,230,191,.8);transform:rotate(20deg)}.home-visual .tag{position:absolute;top:28px;left:28px}.home-visual .spark{font-size:24px}.home-copy{display:flex;flex-direction:column;justify-content:center;padding:40px}.home-copy h2{font-size:clamp(28px,4vw,46px);line-height:1.16;margin:14px 0}.home-copy p{color:#acd2d3;line-height:1.8;max-width:360px}.home-copy .tag{width:max-content;margin:18px 0 24px}.home-copy .primary{max-width:340px}.home-copy .result{min-height:18px}.module-nav{position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:min(980px,100%);display:grid;grid-template-columns:repeat(5,1fr);padding:10px 16px max(10px,env(safe-area-inset-bottom));background:rgba(6,22,35,.96);backdrop-filter:blur(12px);border-top:1px solid #173e50}.module-tab{border:0;background:transparent;color:#759da5;text-align:center;cursor:pointer;padding:7px 4px}.module-tab span,.module-tab b,.module-tab small{display:block}.module-tab span{font-size:20px;color:#66d8c1}.module-tab b{font-size:12px;margin-top:3px}.module-tab small{font-size:10px;margin-top:3px}.module-tab.active{color:#eef8ff}.module-tab.active span{color:#ffd27d}.module-shell .equipment-panel{min-height:clamp(420px,calc(100dvh - 290px),620px);overflow:auto}.module-shell .equipment-list{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.module-shell .equipment-item{min-height:120px}.shelter-route .shelter-screen{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:18px}.shelter-route .shelter-panel,.shelter-route .shelter-history{margin-top:0;min-height:clamp(420px,calc(100dvh - 170px),700px);overflow:auto}.shelter-route .shelter-rooms{grid-template-columns:repeat(4,1fr)}.shelter-route .shelter-room{min-height:110px}.shelter-route .history-item{margin-top:10px}@media(max-width:700px){.module-shell{padding:12px 12px 94px}.home-view{grid-template-columns:1fr;min-height:calc(100dvh - 235px)}.home-visual{min-height:210px}.home-visual .tree{font-size:120px}.home-copy{padding:24px}.home-copy h2{font-size:28px}.module-shell .equipment-list{grid-template-columns:1fr}.shelter-route .shelter-screen{display:flex;flex-direction:column;min-height:0}.shelter-route .shelter-panel,.shelter-route .shelter-history{min-height:0}.shelter-route .shelter-rooms{grid-template-columns:repeat(2,1fr)}.shelter-route .shelter-room{min-height:78px}.shelter-route .shelter-history{max-height:210px}}
.topbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.history-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 130px auto;gap:8px;margin-bottom:12px}.history-toolbar input,.history-toolbar select{min-height:38px;border:1px solid #245565;border-radius:10px;background:#081e30;color:#eef8ff;padding:0 10px}.history-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}.history-page-actions{display:flex;gap:8px}.history-item{padding:12px 14px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.04)}.history-item span,.history-item small{display:block}.history-item span{margin-top:6px}.history-item small{margin-top:6px;color:#9fc5ca;line-height:1.6}.auth-panel[hidden]{display:none!important}.auth-panel:not([hidden]){display:grid!important}.auth-panel{position:fixed;inset:0;z-index:20;background:rgba(4,14,24,.78);place-items:center;padding:18px}.auth-card{width:min(460px,100%);padding:18px;border:1px solid rgba(120,209,207,.22);background:linear-gradient(135deg,rgba(22,70,87,.98),rgba(11,34,53,.99));box-shadow:0 14px 40px rgba(0,0,0,.35);border-radius:22px}.auth-tabs{display:flex;gap:8px;margin-bottom:12px}.auth-tab.active{border-color:#70e0c4;color:#eef8ff}.auth-form{display:grid;gap:10px}.auth-form input{min-height:42px;border:1px solid #245565;border-radius:10px;background:#081e30;color:#eef8ff;padding:0 12px}@media(max-width:700px){.topbar-actions{align-items:stretch}.history-toolbar{grid-template-columns:1fr}.history-pagination{align-items:flex-start}.history-page-actions{width:100%}.history-page-actions .module-back{flex:1}}




/* �Զ�������Ϸ�����Ӿ��� */
.home-view{grid-template-columns:minmax(0,1.18fr) minmax(280px,.82fr);min-height:clamp(470px,calc(100dvh - 220px),680px);padding:0;overflow:hidden;background:#10293a;border-color:rgba(110,222,194,.28)}
.game-scene{position:relative;min-height:470px;overflow:hidden;background:linear-gradient(180deg,#173c5c 0%,#24546a 52%,#193f49 100%);isolation:isolate}
.scene-sky{position:absolute;inset:0 0 34% 0;background:linear-gradient(180deg,#102d52,#236079 76%,#2e6f72);z-index:-2}.scene-moon{position:absolute;width:105px;height:105px;right:12%;top:13%;border-radius:50%;background:#ffd987;box-shadow:0 0 0 14px rgba(255,216,135,.08),0 0 45px rgba(255,216,135,.38)}.scene-star{position:absolute;width:4px;height:4px;border-radius:50%;background:#d8fff0;box-shadow:0 0 9px #c4fff0}.star-a{left:14%;top:22%}.star-b{left:48%;top:13%}.star-c{right:33%;top:31%}
.scene-ground{position:absolute;inset:62% -10% -16% -10%;background:linear-gradient(165deg,#183f44,#0c292f 70%);transform:rotate(-4deg);z-index:-1}.scene-ground:before,.scene-ground:after{content:"";position:absolute;bottom:20%;width:180px;height:90px;border-radius:50%;background:#245451;filter:blur(1px)}.scene-ground:before{left:3%}.scene-ground:after{right:0;background:#1d494b}.scene-tag{position:absolute;top:18px;left:18px;color:#e4fff3;background:rgba(11,39,52,.62);border-color:rgba(141,246,216,.45);backdrop-filter:blur(8px);z-index:4}.scene-hud{position:absolute;top:18px;right:18px;display:grid;gap:3px;text-align:right;color:#dfffee;font-size:11px;z-index:4}.scene-hud span:last-child{color:#ffd782;font-size:10px}.scene-hud b{color:#fff1ae;font-size:16px}
.scene-tree-art{position:absolute;left:15%;bottom:18%;width:210px;height:280px;filter:drop-shadow(0 15px 10px rgba(0,0,0,.3));z-index:1}.tree-trunk{position:absolute;left:93px;bottom:0;width:40px;height:180px;border-radius:20px 25px 10px 10px;background:linear-gradient(90deg,#6b4a32,#b27745 45%,#533a2c);transform:rotate(7deg)}.tree-trunk:after{content:"";position:absolute;right:-28px;top:80px;width:70px;height:22px;border-radius:22px;background:#765139;transform:rotate(-28deg)}.tree-canopy{position:absolute;border-radius:48% 52% 45% 55%;background:radial-gradient(circle at 35% 30%,#8bf0ba 0 10%,#3bbd96 38%,#177264 76%);box-shadow:inset -18px -16px 0 rgba(5,75,67,.25),0 0 30px rgba(73,231,177,.24)}.canopy-back{width:156px;height:150px;left:18px;top:12px;transform:rotate(-18deg);opacity:.78}.canopy-main{width:190px;height:180px;left:34px;top:54px;transform:rotate(8deg)}.tree-ring{position:absolute;bottom:0;left:54px;width:115px;height:20px;border:4px solid #b8804d;border-radius:50%;opacity:.8}.ring-one{transform:rotate(8deg)}.ring-two{bottom:7px;transform:scale(.7) rotate(8deg)}
.chopper{position:absolute;left:45%;bottom:15%;width:120px;height:220px;z-index:3;filter:drop-shadow(0 14px 8px rgba(0,0,0,.3));transform-origin:bottom center}.chopper>*{position:absolute;display:block}.chopper-shadow{width:106px;height:22px;left:5px;bottom:-3px;border-radius:50%;background:rgba(3,25,29,.55)}.chopper-body{left:37px;bottom:34px;width:48px;height:90px;border-radius:22px 25px 16px 16px;background:linear-gradient(90deg,#e8795f,#c94d50);border:3px solid #7d3948}.chopper-pack{left:27px;bottom:65px;width:25px;height:54px;border-radius:9px;background:#315d78;border:3px solid #1e3b55}.chopper-head{left:42px;bottom:126px;width:39px;height:43px;border-radius:48% 48% 45% 45%;background:#eeb58b;border:3px solid #874b4b;z-index:2}.chopper-hat{left:32px;bottom:155px;width:60px;height:17px;border-radius:18px 18px 5px 5px;background:#5dd0bd;border:3px solid #245d67;z-index:3}.chopper-hat:after{content:"";position:absolute;left:16px;top:-10px;width:28px;height:14px;border-radius:50% 50% 0 0;background:#3c9c9f}.chopper-arm{width:47px;height:15px;border-radius:12px;background:#e9a27f;border:3px solid #874b4b;bottom:92px;z-index:4}.arm-back{left:12px;transform:rotate(34deg)}.arm-front{left:62px;transform:rotate(-42deg)}.axe-handle{left:74px;bottom:84px;width:105px;height:8px;border-radius:8px;background:#85583b;transform:rotate(-42deg);z-index:5}.axe-head{left:143px;bottom:137px;width:30px;height:25px;border-radius:4px 15px 15px 4px;background:#bde3d8;border:3px solid #427b7a;transform:rotate(-42deg);z-index:6}.wood-chip{position:absolute;color:#ffe08d;font-size:25px;font-weight:900;z-index:5;opacity:0}.chip-a{left:63%;bottom:49%}.chip-b{left:70%;bottom:57%;font-size:18px}.chip-c{left:59%;bottom:60%;font-size:16px}.scene-bubble{position:absolute;right:10%;bottom:27%;padding:9px 12px;border-radius:14px 14px 4px 14px;color:#17303d;background:#e8fff0;font-size:11px;font-weight:900;z-index:5;box-shadow:0 8px 18px rgba(0,0,0,.18)}.scene-bubble span{display:block;color:#5d8c88;font-size:9px;margin-top:3px;font-weight:600}
.is-chopping .chopper{animation:chopHero 1.2s ease-in-out infinite}.is-chopping .axe-handle{animation:axeSwing 1.2s ease-in-out infinite}.is-chopping .wood-chip{animation:chipFly 1.2s ease-out infinite}.is-chopping .chip-b{animation-delay:.18s}.is-chopping .chip-c{animation-delay:.34s}.is-chopping .scene-bubble{animation:bubblePulse 1.8s ease-in-out infinite}.is-chopping .scene-tree-art{animation:treeShake 1.2s ease-in-out infinite}@keyframes chopHero{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3px) rotate(-2deg)}}@keyframes axeSwing{0%,100%{transform:rotate(-42deg)}45%{transform:rotate(-78deg)}65%{transform:rotate(-25deg)}}@keyframes chipFly{0%{opacity:0;transform:translate(0,12px) rotate(0)}30%{opacity:1}100%{opacity:0;transform:translate(28px,-32px) rotate(120deg)}}@keyframes bubblePulse{50%{transform:translateY(-4px)}}@keyframes treeShake{45%{transform:rotate(1deg)}55%{transform:rotate(-1deg)}}
.home-copy{display:flex;flex-direction:column;justify-content:center;padding:34px 30px;background:linear-gradient(160deg,#102f40,#0d2334)}.copy-kicker{display:flex;align-items:center;justify-content:space-between;gap:10px}.live-pill{color:#86eac3;font-size:10px}.live-pill i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#56e0b2;box-shadow:0 0 8px #56e0b2;margin-right:5px}.home-copy h2{font-size:clamp(26px,3vw,38px);line-height:1.18;margin:18px 0 12px}.home-copy h2 em{display:block;color:#ffd27d;font-style:normal}.home-copy>p{max-width:390px;color:#a8cbd0;line-height:1.7;font-size:13px}.tree-status-card{margin:15px 0;padding:14px;border:1px solid rgba(113,212,194,.2);border-radius:14px;background:rgba(2,18,29,.38)}.tree-status-card>small{display:block;color:#9ec5c6;line-height:1.6}.status-mini{display:flex;gap:12px;margin-top:10px;color:#75a7ad;font-size:10px}.stat-bars{display:grid;gap:8px;margin-top:12px}.stat-bars span{display:grid;grid-template-columns:34px 1fr 42px;gap:7px;align-items:center;font-size:10px;color:#b4d3d1}.stat-bars i{height:6px;border-radius:99px;background:#1a4050;overflow:hidden}.stat-bars u{display:block;height:100%;width:0;background:linear-gradient(90deg,#e46c67,#ffd27d);border-radius:99px;text-decoration:none;transition:width .35s}.stat-bars span:first-child u{background:linear-gradient(90deg,#48cfae,#d8f58a)}.stat-bars strong{font-size:9px;text-align:right;color:#e6f5e7}.action-row{display:flex;gap:8px;align-items:stretch}.action-row .primary{flex:1}.supply-button{min-width:100px;border:1px solid #6a9170;border-radius:12px;background:#2e6d5c;color:#e1ffdc;font-weight:800;cursor:pointer}.supply-button b{display:block;color:#ffe18c;font-size:10px;margin-top:2px}
@media(max-width:700px){.home-view{display:flex;flex-direction:column;min-height:0}.game-scene{min-height:330px}.scene-tree-art{transform:scale(.78);transform-origin:bottom left;left:5%;bottom:8%}.chopper{transform:scale(.78);transform-origin:bottom center;left:42%;bottom:8%}.scene-bubble{right:5%;bottom:22%}.home-copy{padding:24px 20px 28px}.home-copy h2{font-size:29px}.action-row{flex-direction:column}.supply-button{min-height:42px}}

/* �Ӿ�ǿ��������ɰ�խ��Ƭ���򸲸��µ���Ϸ���� */
@media(min-width:701px){.module-shell{max-width:1180px}.module-shell .resource-grid{grid-template-columns:repeat(3,minmax(150px,240px));justify-content:start}.module-shell .module-screen{max-width:1180px}.module-shell .home-view{display:grid}.module-shell .bottom-nav{max-width:1180px}}

/* ��ɫ����� SVG �������� emoji/CSS ����ͼ�θ��ӽ���Ϸ���� */
.forest-illustration{position:absolute;left:0;right:0;bottom:5%;width:100%;height:78%;overflow:visible;z-index:2;filter:drop-shadow(0 18px 10px rgba(0,0,0,.24))}.hero-svg{transform-origin:438px 383px}.svg-axe{transform-origin:482px 257px}.is-chopping .hero-svg{animation:heroBob 1.15s ease-in-out infinite}.is-chopping .svg-axe{animation:svgAxe 1.15s ease-in-out infinite}.is-chopping .svg-leaves{animation:leafFloat 1.2s ease-in-out infinite}.forest-illustration .hero-svg circle{filter:drop-shadow(1px 3px 0 rgba(40,20,30,.2))}@keyframes heroBob{0%,100%{transform:translateY(0) rotate(0)}45%{transform:translateY(-3px) rotate(-2deg)}70%{transform:translateY(1px) rotate(2deg)}}@keyframes svgAxe{0%,100%{transform:rotate(0)}42%{transform:rotate(-28deg)}68%{transform:rotate(22deg)}}@keyframes leafFloat{50%{transform:translate(4px,-3px)}}
.game-scene:after{content:"";position:absolute;inset:auto 0 0;height:24%;background:linear-gradient(180deg,transparent,rgba(5,23,29,.25));pointer-events:none;z-index:4}.scene-bubble{z-index:6}
@media(max-width:700px){.forest-illustration{height:82%;bottom:0;left:-5%;width:110%}.scene-tag{top:12px;left:12px}.scene-hud{top:12px;right:12px}}
.phaser-viewport{position:absolute;inset:0;z-index:1;opacity:1}.phaser-viewport canvas{display:block;width:100%!important;height:100%!important}.game-scene>.forest-illustration{display:none}.scene-tag,.scene-hud,.scene-bubble{z-index:8}

/* 自动砍树信息层：只作用于首页砍树模块，荒潮页面保持原有布局与规则。 */
.resource{min-height:62px}.resource b{font-variant-numeric:tabular-nums}.scene-toolbar{position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:18px;z-index:8;pointer-events:none}.scene-toolbar .scene-tag{position:static}.scene-mode{padding:6px 9px;border:1px solid rgba(167,235,218,.22);border-radius:999px;background:rgba(8,31,43,.42);color:#9fd4cf;font-size:9px;letter-spacing:.04em}.scene-hud{top:72px}.scene-hud-count{display:flex;align-items:baseline;justify-content:flex-end;gap:5px}.scene-hud-count em{font-size:10px;color:#a8d8d0;font-style:normal}.scene-hud small{color:#9ec8c5;font-size:9px}.scene-callout{position:absolute;left:18px;bottom:24px;display:flex;align-items:center;gap:9px;max-width:235px;padding:10px 12px;border:1px solid rgba(141,246,216,.2);border-radius:14px;background:rgba(5,29,40,.68);backdrop-filter:blur(8px);z-index:8}.scene-callout i{width:8px;height:8px;border-radius:50%;background:#ffd27d;box-shadow:0 0 12px rgba(255,210,125,.8)}.scene-callout b,.scene-callout small{display:block}.scene-callout b{font-size:11px;color:#edfff2}.scene-callout small{margin-top:2px;color:#95c4c3;font-size:9px;line-height:1.4}.scene-bubble{right:9%;bottom:28%;padding:10px 13px;min-width:116px}.scene-bubble b,.scene-bubble span{display:block}.scene-bubble b{font-size:12px}.scene-bubble span{font-size:9px}.home-copy{justify-content:flex-start;gap:12px;padding:26px 28px;overflow:auto}.home-copy>p{margin:0}.copy-kicker{min-height:18px}.status-pill{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border:1px solid rgba(255,210,125,.28);border-radius:999px;background:rgba(255,210,125,.08);color:#ffd27d;font-size:9px;white-space:nowrap}.status-pill i{width:6px;height:6px;border-radius:50%;background:#ffd27d;box-shadow:0 0 8px rgba(255,210,125,.7)}.tree-control-card,.tree-forecast-card,.pity-card{border:1px solid rgba(113,212,194,.18);border-radius:16px;background:rgba(2,18,29,.34);padding:13px}.tree-control-card{display:grid;gap:10px}.tree-control-head,.panel-label{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tree-control-head strong{display:block;margin-top:4px;font-size:14px;color:#ecfff1}.tree-control-head small,.panel-label small{color:#7da9ad;font-size:9px}.tree-control-card .tree-status-card{margin:0;padding:0;border:0;background:transparent}.tree-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.tree-mini-grid span,.forecast-grid span,.pity-row span{display:block;padding:8px 9px;border-radius:11px;background:rgba(255,255,255,.035)}.tree-mini-grid small,.forecast-grid small,.pity-row small{display:block;color:#7fa8ad;font-size:9px}.tree-mini-grid b,.forecast-grid b,.pity-row b{display:block;margin-top:4px;color:#efffe9;font-size:13px;font-variant-numeric:tabular-nums}.tree-forecast-card{padding:12px 13px}.panel-label>span{color:#a5d0cc;font-size:10px}.panel-label>b{color:#ffd27d;font-size:10px}.forecast-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}.forecast-grid span{background:rgba(33,88,91,.22)}.harvest-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.harvest-summary span{display:flex;align-items:baseline;justify-content:space-between;gap:5px;padding:9px 10px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.035)}.harvest-summary b{color:#ffd27d;font-size:15px;font-variant-numeric:tabular-nums}.harvest-summary small{color:#8fb7b5;font-size:9px}.pity-card{padding:12px 13px}.pity-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.pity-track{display:grid;gap:5px;margin-top:9px}.pity-track i{display:block;width:18%;height:5px;border-radius:999px;background:linear-gradient(90deg,#66d9bb,#ffd27d);transition:width .35s}.pity-track i+ i{background:linear-gradient(90deg,#8db7ff,#d9a7ff)}.tree-end-note{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border-left:2px solid #69d7bc;background:rgba(104,215,188,.06);color:#8db9b8;font-size:9px;line-height:1.45}.tree-end-note b{color:#c9f1df;white-space:nowrap}.tree-end-note span{color:#7fa7ab}.action-row{margin-top:2px}.home-copy h2{margin:2px 0 0}.home-copy .result{min-height:15px;margin-top:-4px}.stat-bars{margin-top:7px}
@media(max-width:700px){.home-copy{gap:10px;padding:22px 18px 26px;overflow:visible}.scene-toolbar{padding:12px}.scene-mode{display:none}.scene-hud{top:54px;right:12px}.scene-callout{left:12px;bottom:14px;max-width:210px}.scene-bubble{right:5%;bottom:25%}.tree-control-card,.tree-forecast-card,.pity-card{padding:11px}.home-copy h2{margin:1px 0 0}.home-copy>p{font-size:12px;line-height:1.6}.tree-mini-grid b,.forecast-grid b,.pity-row b{font-size:12px}.harvest-summary span{padding:8px}.tree-end-note{font-size:9px}.tree-end-note b{white-space:normal}.resource-grid{margin-bottom:16px}}
@media(min-width:701px){.home-copy{scrollbar-width:thin;scrollbar-color:#2b6266 transparent}.home-copy::-webkit-scrollbar{width:5px}.home-copy::-webkit-scrollbar-thumb{background:#2b6266;border-radius:99px}}

/* 砍树状态轨道与回报摘要：只作用于首页砍树模块 */
.tree-phase-track{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding-top:4px}.tree-phase-track:before{content:"";position:absolute;left:13%;right:13%;top:15px;height:1px;background:rgba(123,208,193,.22)}.tree-phase-track span{position:relative;display:grid;justify-items:center;gap:4px;color:#6f9ea4;font-size:9px;text-align:center}.tree-phase-track i{display:grid;place-items:center;width:22px;height:22px;border:1px solid rgba(123,208,193,.25);border-radius:50%;background:#0c2b3b;color:#7fa8ad;font-style:normal;font-size:10px;z-index:1}.tree-phase-track b{font-weight:700}.tree-phase-track span.is-active{color:#efffe9}.tree-phase-track span.is-active i{border-color:#ffd27d;background:#70552e;color:#fff2be;box-shadow:0 0 0 4px rgba(255,210,125,.08),0 0 16px rgba(255,210,125,.22)}.tree-phase-track span.is-complete:not(.is-active) i{border-color:#68d7bc;background:#174d4f;color:#c8f5df}.tree-drop-feed{padding:12px 13px;border:1px solid rgba(113,212,194,.18);border-radius:16px;background:rgba(2,18,29,.27)}.tree-drop-feed p{margin:9px 0 1px;color:#7fa7ab;font-size:10px;line-height:1.5}.drop-feed-list{display:grid;gap:7px;margin-top:9px}.drop-feed-item{display:flex;align-items:center;gap:8px;min-height:34px;padding:7px 8px;border-radius:10px;background:rgba(255,255,255,.035)}.drop-feed-item>span{min-width:0;flex:1}.drop-feed-item b,.drop-feed-item small{display:block}.drop-feed-item b{color:#eaffef;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.drop-feed-item small{margin-top:2px;color:#759da4;font-size:9px}.drop-feed-item strong{color:#ffd27d;font-size:12px;font-variant-numeric:tabular-nums}.drop-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#ffd27d;box-shadow:0 0 9px rgba(255,210,125,.45)}.drop-dot.drop-equipment{background:#a6b9ff;box-shadow:0 0 9px rgba(166,185,255,.55)}.drop-dot.drop-fragment{background:#cc9dff;box-shadow:0 0 9px rgba(204,157,255,.55)}.drop-dot.drop-core{background:#7ce4d4;box-shadow:0 0 9px rgba(124,228,212,.55)}.game-scene[data-state="running"] .scene-callout{border-color:rgba(104,215,188,.45)}.game-scene[data-state="running"] .scene-callout i{background:#68d7bc;box-shadow:0 0 12px rgba(104,215,188,.9)}.game-scene[data-state="settled"] .scene-callout{border-color:rgba(255,210,125,.35)}.game-scene[data-state="settled"] .scene-callout i{background:#ffd27d;box-shadow:0 0 12px rgba(255,210,125,.8)}.game-scene[data-state="settled"] .scene-mode{color:#ffd27d;border-color:rgba(255,210,125,.3)}.status-pill.is-running{border-color:rgba(104,215,188,.45);background:rgba(104,215,188,.1);color:#8df0cf}.status-pill.is-running i{background:#68d7bc;box-shadow:0 0 8px rgba(104,215,188,.8)}.status-pill.is-settled{border-color:rgba(255,210,125,.38);background:rgba(255,210,125,.1)}.action-row .primary:disabled{filter:saturate(.55);opacity:.72;cursor:wait}.tree-control-card,.tree-forecast-card,.tree-drop-feed,.pity-card{transition:border-color .25s,background .25s}.tree-control-card:focus-within,.tree-drop-feed:hover{border-color:rgba(141,246,216,.35);background:rgba(4,26,38,.42)}
@media(max-width:700px){.tree-phase-track{margin-top:2px}.tree-phase-track:before{left:12%;right:12%}.tree-drop-feed{padding:11px}.drop-feed-item{min-height:32px}.scene-callout{backdrop-filter:blur(10px)}}

/* 首屏紧凑布局：砍树核心状态固定可见，次要数据集中到可展开详情 */
.tree-extra-details{min-width:0;border:1px solid rgba(113,212,194,.18);border-radius:14px;background:rgba(2,18,29,.2);overflow:hidden}.tree-extra-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 11px;color:#bfe9db;font-size:10px;font-weight:800;cursor:pointer;list-style:none}.tree-extra-details>summary::-webkit-details-marker{display:none}.tree-extra-details>summary:after{content:"＋";color:#ffd27d;font-size:14px;line-height:1}.tree-extra-details[open]>summary:after{content:"－"}.tree-extra-details>summary small{color:#789fa5;font-size:9px;font-weight:600}.tree-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 8px 8px}.tree-extra-grid>.tree-forecast-card,.tree-extra-grid>.tree-drop-feed,.tree-extra-grid>.pity-card{min-width:0;padding:9px;border-radius:11px}.tree-extra-grid>.harvest-summary{min-width:0;padding:0}.tree-extra-grid .forecast-grid{gap:5px;margin-top:6px}.tree-extra-grid .forecast-grid span,.tree-extra-grid .pity-row span{padding:6px 7px}.tree-extra-grid .forecast-grid b,.tree-extra-grid .pity-row b{font-size:11px}.tree-extra-grid .harvest-summary span{padding:7px 8px}.tree-extra-grid .harvest-summary b{font-size:13px}.tree-extra-grid .tree-drop-feed p{margin:5px 0 0;font-size:9px}.tree-extra-grid .drop-feed-list{grid-template-columns:1fr 1fr;gap:4px;margin-top:5px}.tree-extra-grid .drop-feed-item{min-height:28px;padding:5px 6px}.tree-extra-grid .drop-feed-item b{font-size:9px}.tree-extra-grid .drop-feed-item small{font-size:8px}.tree-extra-grid .drop-feed-item strong{font-size:10px}.tree-extra-grid .pity-track{margin-top:6px}
@media(min-width:701px){.home-copy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px 9px;padding:18px 20px;overflow:hidden}.home-copy>.copy-kicker,.home-copy>h2,.home-copy>p,.home-copy>.tree-control-card,.home-copy>.tree-extra-details,.home-copy>.action-row,.home-copy>.result,.home-copy>.tree-end-note{grid-column:1/-1}.home-copy h2{font-size:clamp(24px,2.7vw,34px);line-height:1.08;margin:0}.home-copy>p{max-width:none;font-size:11px;line-height:1.4}.home-copy>.tree-control-card{padding:10px;gap:7px}.tree-control-head strong{font-size:12px}.tree-control-head small{font-size:8px}.tree-status-card>small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-bars{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:4px}.tree-mini-grid{gap:5px}.tree-mini-grid span{padding:6px 7px}.tree-mini-grid b{font-size:11px}.tree-phase-track{padding-top:1px}.tree-phase-track i{width:19px;height:19px}.tree-phase-track:before{top:10px}.tree-extra-details>summary{padding:6px 9px}.tree-extra-grid{gap:6px;padding:0 6px 6px}.tree-extra-grid>.tree-forecast-card,.tree-extra-grid>.tree-drop-feed,.tree-extra-grid>.pity-card{padding:7px}.tree-extra-grid .panel-label>span{font-size:9px}.tree-extra-grid .panel-label>b,.tree-extra-grid .panel-label small{font-size:8px}.home-copy .action-row{margin-top:0}.home-copy .result{min-height:12px;margin-top:-2px}.home-copy .tree-end-note{padding:6px 8px;font-size:8px}.home-copy .tree-end-note b{font-size:8px}.home-copy .tree-end-note span{font-size:8px}}
@media(max-width:700px){.home-copy{gap:8px;padding:16px 14px 20px;overflow:visible}.home-copy h2{font-size:23px;line-height:1.12;margin:0}.home-copy>p{font-size:11px;line-height:1.45}.home-copy>.tree-control-card{padding:10px;gap:7px}.tree-status-card{margin:0}.tree-status-card>small{font-size:9px}.stat-bars{gap:6px;margin-top:5px}.tree-mini-grid{gap:5px}.tree-mini-grid span{padding:6px 7px}.tree-mini-grid b{font-size:11px}.tree-phase-track i{width:20px;height:20px}.tree-extra-details>summary{padding:7px 9px}.tree-extra-grid{gap:6px;padding:0 6px 6px}.tree-extra-grid .forecast-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-copy>.action-row{margin-top:0}.home-copy .result{margin-top:-2px}.home-copy .tree-end-note{padding:6px 8px;font-size:8px}.home-copy .tree-end-note b{white-space:normal}}
@media(max-width:380px){.home-copy{padding-left:11px;padding-right:11px}.home-copy h2{font-size:21px}.tree-extra-grid{grid-template-columns:1fr}.tree-extra-grid .forecast-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:701px){.module-shell{padding-top:10px}.topbar{margin-bottom:12px}.resource-grid{margin-top:8px;margin-bottom:12px}.home-copy{gap:6px;padding:12px 16px}.home-copy>.copy-kicker{min-height:16px}.home-copy h2{font-size:clamp(23px,2.3vw,30px);line-height:1.03}.home-copy>p{display:none}.home-copy>.tree-control-card{padding:8px;gap:5px}.tree-control-head strong{font-size:11px}.tree-control-head small{font-size:8px}.tree-status-card>small{display:none}.stat-bars{gap:5px;margin-top:2px}.stat-bars span{grid-template-columns:30px 1fr 34px;gap:5px}.tree-mini-grid span{padding:5px 6px}.tree-mini-grid small{font-size:8px}.tree-mini-grid b{font-size:10px;margin-top:2px}.tree-phase-track{padding-top:0}.tree-phase-track span{gap:2px;font-size:8px}.tree-phase-track i{width:18px;height:18px;font-size:9px}.tree-phase-track:before{top:9px}.tree-extra-details>summary{padding:5px 8px}.home-copy>.action-row{min-height:38px}.home-copy .primary{min-height:38px}.home-copy .result{min-height:10px}.home-copy .tree-end-note{padding:4px 7px;line-height:1.25}}
@media(min-width:701px){.module-shell{padding-bottom:0}.module-screen{min-height:0}.home-view{height:calc(100dvh - 252px);min-height:0;max-height:calc(100dvh - 252px)}.game-scene{min-height:0}}
@media(max-width:700px){.game-scene{min-height:240px}.home-copy{gap:6px;padding:12px 12px 14px}.home-copy>p{display:none}.home-copy h2{font-size:21px;line-height:1.05}.home-copy>.tree-control-card{padding:8px;gap:5px}.tree-control-head strong{font-size:11px}.tree-control-head small{font-size:8px}.tree-status-card>small{display:none}.stat-bars{gap:5px;margin-top:2px}.stat-bars span{grid-template-columns:28px 1fr 32px;gap:4px}.tree-mini-grid span{padding:5px 6px}.tree-mini-grid small{font-size:8px}.tree-mini-grid b{font-size:10px;margin-top:2px}.tree-phase-track{padding-top:0}.tree-phase-track span{gap:2px;font-size:8px}.tree-phase-track i{width:18px;height:18px;font-size:9px}.tree-phase-track:before{top:9px}.home-copy .action-row{min-height:38px}.home-copy .primary{min-height:38px}.home-copy .result{min-height:10px}.home-copy .tree-end-note{padding:4px 7px;line-height:1.25;font-size:8px}}
@media(max-width:700px){.tree-phase-track,.home-copy .tree-end-note{display:none}}
@media(max-width:380px){.game-scene{min-height:220px}}

/* 砍树场景最终视觉层：以柔和的潮林插画作为首屏，避免大型纹理精灵阻塞加载或裁切角色。 */
.game-scene{background:linear-gradient(180deg,#102f46 0%,#184856 48%,#173d43 100%);}
.scene-sky{background:linear-gradient(180deg,#0d2540 0%,#173f59 66%,#245a60 100%);}
.scene-moon{width:78px;height:78px;right:16%;top:14%;background:rgba(255,218,151,.78);box-shadow:0 0 0 12px rgba(255,218,151,.06),0 0 32px rgba(255,218,151,.2);}
.scene-ground{inset:64% -10% -14% -10%;background:linear-gradient(165deg,#19464a,#102e34 72%);}
.scene-ground:before,.scene-ground:after{background:#285b56;opacity:.72;}
.phaser-viewport{display:none!important;}
.game-scene.has-phaser .phaser-viewport{display:block!important;}
.game-scene.has-phaser .forest-illustration{display:none!important;}
.forest-illustration.is-visible{display:block!important;position:absolute;left:2%;right:auto;bottom:2%;width:96%;height:84%;overflow:visible;z-index:3;filter:drop-shadow(0 18px 10px rgba(0,0,0,.3));}
.forest-illustration .hero-svg{filter:drop-shadow(0 10px 6px rgba(0,0,0,.22));}
.forest-illustration .svg-leaves circle{opacity:.72;}
.tree-extra-details:not([open])>.tree-extra-grid{display:none!important;}
.scene-bubble{background:#e4f5e8;color:#24423e;box-shadow:0 8px 18px rgba(0,0,0,.2);}
.scene-callout{background:rgba(8,35,43,.76);}
.home-copy{background:linear-gradient(160deg,#112f3d,#0c2432);}
.equipment-item{align-items:flex-start;min-height:0;}
.equipment-main{min-width:0;flex:1;}
.equipment-title{display:flex;align-items:center;gap:7px;min-width:0;}
.equipment-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.equipment-title em{font-style:normal;font-size:9px;padding:3px 6px;border-radius:999px;background:rgba(255,210,125,.12);color:#ffd27d;white-space:nowrap;}
.equipment-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#244d57;color:#bce8d8;flex:0 0 auto;}
.equipment-main>small{display:block;color:#9da8bf;margin-top:6px;}
.equipment-stats{display:block;color:#c3ebda;font-size:10px;margin-top:8px;line-height:1.45;}
.quality-rare .equipment-icon{background:#3e426c;color:#c7c9ff;}.quality-epic .equipment-icon{background:#593b68;color:#e2baff;}.quality-legendary .equipment-icon{background:#6b4a2b;color:#ffe3a1;}
.equipment-empty{display:grid;justify-items:center;gap:6px;padding:28px 14px;border:1px dashed rgba(126,211,194,.25);border-radius:16px;color:#9fc5ca;text-align:center;}
.equipment-empty>span{font-size:28px;color:#ffd27d;}.equipment-empty small{color:#779da4;}.equipment-empty .module-back{margin-top:5px;}
@media(min-width:701px){.forest-illustration.is-visible{left:0;width:100%;height:86%;bottom:1%;}.home-copy{overflow:hidden;}.equipment-item{padding:12px 14px;}.equipment-actions{max-width:170px;}}
@media(max-width:700px){.forest-illustration.is-visible{left:-4%;width:112%;height:96%;bottom:0;}.game-scene{min-height:232px;}.scene-bubble{display:none;}.equipment-item{flex-direction:column;}.equipment-actions{width:100%;justify-content:flex-start;}.equipment-actions button{flex:1;}.equipment-title b{max-width:190px;}}
@media(max-width:700px){.module-shell{padding-bottom:86px;}}

/* Never expose the old vector placeholder. Use the generated raster frame until Phaser is ready. */
.game-scene>.forest-illustration,
.game-scene>.forest-illustration.is-visible{display:none!important;}
.raster-fallback{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;transition:opacity .18s ease;}
.raster-fallback.is-hidden{display:none!important;}
.raster-fallback img{position:absolute;display:block;object-fit:contain;filter:drop-shadow(0 14px 10px rgba(0,0,0,.28));}
.raster-fallback-tree{left:10%;bottom:7%;width:57%;height:68%;}
.raster-fallback-hero{left:55%;bottom:8%;width:31%;height:50%;}
.game-scene[data-renderer="raster-fallback"] .raster-fallback{opacity:1;}
@media(max-width:700px){
  .raster-fallback-tree{left:4%;bottom:3%;width:66%;height:74%;}
  .raster-fallback-hero{left:54%;bottom:7%;width:38%;height:55%;}
}

/* Keep the status bubble in the open sky area instead of covering the chopper. */
.tree-player-settings{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;position:relative;z-index:8;}
.tree-player-settings .tree-config-card,.tree-player-settings .tree-growth-card{margin-top:0;min-width:0;}
.tree-player-settings .tree-config-card{pointer-events:auto;}
.equipment-capacity-tools{display:flex;align-items:center;gap:8px;}
.equipment-capacity-tools .module-back{padding:6px 8px;font-size:10px;}
.equipment-capacity-tools .module-back:disabled{opacity:.55;cursor:not-allowed;}
.equipment-load-more{display:block;width:100%;margin-top:10px;text-align:center;}
.equipment-load-more[hidden]{display:none;}
.equipment-list[aria-busy="true"]{opacity:.65;pointer-events:none;}
@media(max-width:700px){.tree-player-settings{grid-template-columns:1fr;}.equipment-capacity-tools{align-items:flex-end;flex-direction:column;gap:5px;}.equipment-capacity-tools .module-back{width:100%;}}

@media(min-width:701px){.scene-bubble{left:18px;top:72px;right:auto;bottom:auto;}}
.tree-config-card{display:grid;gap:9px;margin-top:10px;padding:12px 14px;border:1px solid rgba(120,209,207,.18);border-radius:14px;background:rgba(2,18,29,.3)}.config-switch,.config-select{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#b9d8d7;font-size:11px}.config-switch input{width:17px;height:17px;accent-color:#70e0c4}.config-select select{min-height:32px;border:1px solid #245565;border-radius:8px;background:#081e30;color:#eef8ff;padding:0 8px}.tree-config-card .secondary{min-height:36px;border:1px solid #4c6875;border-radius:10px;background:#163446;color:#dceff0;font-weight:700;cursor:pointer}.tree-config-card .secondary:disabled{opacity:.55;cursor:not-allowed}
.tree-growth-card{display:grid;gap:9px;margin-top:10px;padding:12px 14px;border:1px solid rgba(255,210,125,.2);border-radius:14px;background:rgba(46,35,24,.28)}.growth-cost{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.growth-cost span{display:grid;gap:3px;text-align:center}.growth-cost b{color:#ffd27d;font-size:15px}.growth-cost small{color:#9fc5ca;font-size:9px}.tree-growth-card .secondary{min-height:36px;border:1px solid #7d6742;border-radius:10px;background:#4a3a28;color:#ffe6a7;font-weight:700;cursor:pointer}.tree-growth-card .secondary:disabled{opacity:.55;cursor:not-allowed}

/* 中等宽度下让玩家砍树设置卡片独立成行，同时压缩内部间距保留操作按钮 */
@media (min-width:701px) and (max-width:980px){
  .tree-player-settings{grid-template-columns:1fr;gap:8px;}
  .tree-player-settings .tree-config-card,
  .tree-player-settings .tree-growth-card{width:100%;padding:8px 10px;gap:6px;}
  .tree-player-settings .config-select{align-items:center;flex-direction:row;gap:8px;}
  .tree-player-settings .config-select select{width:auto;min-width:0;flex:1;min-height:30px;}
  .tree-player-settings .tree-config-card .secondary,
  .tree-player-settings .tree-growth-card .secondary{min-height:30px;}
  .tree-player-settings .tree-growth-card{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;}
  .tree-player-settings .tree-growth-card>.panel-label,
  .tree-player-settings .tree-growth-card>.result{grid-column:1/-1;}
  .tree-player-settings .tree-growth-card>.growth-cost{grid-column:1;}
  .tree-player-settings .tree-growth-card>.secondary{grid-column:2;grid-row:2;min-width:108px;}
  .home-copy>.tree-control-card{padding:7px;gap:4px;}
  .home-copy>.tree-control-card .tree-status-card{margin:0;}
}

/* P8：人物装备展示、品质动态光边与移动端详情弹层 */
@keyframes equipmentGlowCommon{0%,100%{box-shadow:0 0 0 1px rgba(190,220,235,.18),0 0 8px rgba(190,220,235,.08)}50%{box-shadow:0 0 0 1px rgba(220,240,255,.45),0 0 18px rgba(190,220,255,.22)}}
@keyframes equipmentGlowUncommon{0%,100%{box-shadow:0 0 0 1px rgba(117,225,177,.2),0 0 9px rgba(117,225,177,.08)}50%{box-shadow:0 0 0 1px rgba(117,245,185,.58),0 0 20px rgba(117,225,177,.28)}}
@keyframes equipmentGlowRare{0%,100%{box-shadow:0 0 0 1px rgba(125,164,255,.22),0 0 10px rgba(125,164,255,.1)}50%{box-shadow:0 0 0 1px rgba(145,186,255,.68),0 0 23px rgba(105,151,255,.32)}}
@keyframes equipmentGlowEpic{0%,100%{box-shadow:0 0 0 1px rgba(210,145,255,.24),0 0 11px rgba(210,145,255,.1)}50%{box-shadow:0 0 0 1px rgba(229,177,255,.72),0 0 25px rgba(197,119,255,.34)}}
@keyframes equipmentGlowLegendary{0%,100%{box-shadow:0 0 0 1px rgba(255,191,91,.28),0 0 12px rgba(255,191,91,.12)}50%{box-shadow:0 0 0 1px rgba(255,225,143,.82),0 0 29px rgba(255,174,66,.42)}}
.equipment-item.quality-common,.character-slot.quality-common,.equipment-detail-card.quality-common,.enhancement-choice.quality-common,.enhance-selected-card.quality-common{animation:equipmentGlowCommon 2.8s ease-in-out infinite;border-color:rgba(190,220,235,.32)}
.equipment-item.quality-uncommon,.character-slot.quality-uncommon,.equipment-detail-card.quality-uncommon,.enhancement-choice.quality-uncommon,.enhance-selected-card.quality-uncommon{animation:equipmentGlowUncommon 2.45s ease-in-out infinite;border-color:rgba(117,225,177,.36)}
.equipment-item.quality-rare,.character-slot.quality-rare,.equipment-detail-card.quality-rare,.enhancement-choice.quality-rare,.enhance-selected-card.quality-rare{animation:equipmentGlowRare 2.2s ease-in-out infinite;border-color:rgba(125,164,255,.42)}
.equipment-item.quality-epic,.character-slot.quality-epic,.equipment-detail-card.quality-epic,.enhancement-choice.quality-epic,.enhance-selected-card.quality-epic{animation:equipmentGlowEpic 1.95s ease-in-out infinite;border-color:rgba(210,145,255,.46)}
.equipment-item.quality-legendary,.character-slot.quality-legendary,.equipment-detail-card.quality-legendary,.enhancement-choice.quality-legendary,.enhance-selected-card.quality-legendary{animation:equipmentGlowLegendary 1.7s ease-in-out infinite;border-color:rgba(255,191,91,.5)}
.profile-panel{margin-top:18px;min-height:clamp(420px,calc(100dvh - 290px),620px);overflow:auto}.profile-card{display:grid;gap:18px}.character-stage{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:stretch;padding:18px;border:1px solid rgba(120,209,207,.22);border-radius:20px;background:radial-gradient(circle at 20% 20%,rgba(116,224,190,.2),transparent 42%),linear-gradient(135deg,rgba(22,70,87,.9),rgba(11,34,53,.96))}.character-avatar{display:grid;place-items:center;align-content:center;gap:8px;min-height:190px;border:1px solid rgba(255,210,125,.3);border-radius:18px;background:linear-gradient(160deg,rgba(255,211,130,.16),rgba(11,30,45,.4));color:#ffd27d}.character-avatar span{font-size:78px;line-height:1;text-shadow:0 0 28px rgba(255,210,125,.42)}.character-avatar small{font-size:10px;color:#c6e7de}.character-identity{display:grid;align-content:center;gap:8px}.character-identity>b{font-size:24px;color:#efffe9}.character-identity>small{color:#9fc5ca;font-size:11px}.character-attribute-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:5px}.character-attribute-grid span{padding:9px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(255,255,255,.045)}.character-attribute-grid b,.character-attribute-grid small{display:block}.character-attribute-grid b{color:#ffd27d;font-size:15px}.character-attribute-grid small{margin-top:3px;color:#8fb7b5;font-size:9px}.character-loadout{display:grid;gap:10px;padding:14px;border:1px solid rgba(120,209,207,.18);border-radius:18px;background:rgba(2,18,29,.28)}.character-slot-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.character-slot{display:grid;place-items:center;gap:4px;min-height:100px;padding:9px 6px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.04);color:#eef8ff;cursor:pointer}.character-slot span{font-size:24px;color:#ffd27d}.character-slot b{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.character-slot small{font-size:8px;color:#8fb7b5}.character-slot.empty{color:#577d84;cursor:default;animation:none}.equipment-detail-modal{position:fixed;inset:0;z-index:30;display:none;place-items:center;padding:18px;background:rgba(3,12,22,.72);backdrop-filter:blur(8px)}.equipment-detail-modal.is-open{display:grid}.equipment-detail-card{position:relative;width:min(390px,100%);display:grid;gap:9px;padding:24px 20px;border:1px solid rgba(255,255,255,.2);border-radius:20px;background:linear-gradient(145deg,#153b4b,#0a2132);color:#eef8ff}.equipment-detail-close{position:absolute;top:8px;right:10px;border:0;background:transparent;color:#b7d9d8;font-size:26px;cursor:pointer}.equipment-detail-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:17px;background:rgba(255,210,125,.14);color:#ffd27d;font-size:32px}.equipment-detail-title{display:flex;align-items:center;gap:9px}.equipment-detail-title b{font-size:20px}.equipment-detail-title em{font-size:11px;font-style:normal;color:#ffd27d}.equipment-detail-card>small{color:#8fb7b5}.equipment-detail-card>p{margin:4px 0;color:#cce8e1;font-size:11px;line-height:1.6}.equipment-detail-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.equipment-detail-stats span{display:flex;justify-content:space-between;padding:8px 9px;border-radius:10px;background:rgba(255,255,255,.05);color:#9fc5ca;font-size:10px}.equipment-detail-stats b{color:#ffd27d}.equipment-item{cursor:pointer}
@media(max-width:700px){.character-stage{grid-template-columns:92px 1fr;gap:12px;padding:12px}.character-avatar{min-height:150px}.character-avatar span{font-size:55px}.character-identity>b{font-size:18px}.character-attribute-grid{grid-template-columns:repeat(2,1fr)}.character-slot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.character-slot{min-height:84px}.equipment-detail-modal{padding:12px}.equipment-detail-card{padding:22px 16px}.equipment-item{cursor:pointer}}
/* HP bar states for the tree-chopping scene */
.stat-bars i{height:7px;border-radius:99px;background:#173642;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(145,224,207,.12)}
.stat-bars u{transition:width .35s,background .25s}
.stat-bars .hp-stat[data-state="healthy"] u{background:linear-gradient(90deg,#43d09f,#b8ef86)}
.stat-bars .hp-stat[data-state="warning"] u{background:linear-gradient(90deg,#f0b45f,#ffe28a)}
.stat-bars .hp-stat[data-state="critical"] u{background:linear-gradient(90deg,#e87568,#ffb06b)}
.stat-bars .hp-stat[data-state="empty"] u{background:#d95f68}
.stat-bars .hp-stat[data-state="syncing"] u{background:linear-gradient(90deg,#46646a,#6d8a8d)}
.stat-bars strong{font-variant-numeric:tabular-nums}
.equipment-icon{position:relative;overflow:hidden;width:56px;height:56px;border-radius:12px;}
.equipment-icon img,.character-slot-icon img,.equipment-detail-icon img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;}
.equipment-icon img,.character-slot-icon img,.equipment-detail-icon img{min-width:0;min-height:0;max-width:100%;max-height:100%;}
.character-slot-icon{display:grid;place-items:center;overflow:hidden;width:52px;height:52px;border-radius:12px;background:rgba(255,210,125,.08);}
.equipment-detail-icon{overflow:hidden;width:76px;height:76px;}

/* P9：收益详情展开层独立于场景层，避免被固定画布或卡片裁切。 */
.home-view,.home-copy{overflow:visible!important}
.tree-extra-details{position:relative;z-index:20;overflow:visible}
.tree-extra-details[open]{z-index:60}
.tree-extra-details[open]>.tree-extra-grid{position:absolute;left:0;right:0;top:100%;z-index:61;margin-top:6px;max-height:min(62dvh,460px);overflow:auto;padding:8px;border:1px solid rgba(113,212,194,.26);border-radius:14px;background:linear-gradient(145deg,rgba(13,43,55,.98),rgba(7,25,39,.99));box-shadow:0 18px 38px rgba(0,0,0,.38)}
.equipment-icon img,.character-slot-icon img,.equipment-detail-icon img{object-fit:contain;object-position:center;width:100%;height:100%;border:0;box-shadow:none;background:transparent;transform:none}
.equipment-icon,.character-slot-icon,.equipment-detail-icon{background:rgba(4,24,35,.35);padding:3px}
@media(max-width:700px){.tree-extra-details[open]>.tree-extra-grid{position:relative;top:auto;left:auto;right:auto;max-height:none;margin-top:0;box-shadow:none}.equipment-icon img,.character-slot-icon img,.equipment-detail-icon img{object-fit:contain}}

/* Keep tree controls clickable above the fixed module nav on short viewports. */
.action-row{position:relative;z-index:4}

/* 背包分类与固定导航的独立滚动区，避免最后一件物品被底部导航遮挡。 */
.inventory-tabs{display:flex;gap:7px;margin:0 0 12px;padding:4px;border-radius:12px;background:rgba(2,18,29,.32)}
.inventory-tab{flex:1;border:1px solid transparent;border-radius:9px;background:transparent;color:#8fb7b5;padding:8px 6px;font-weight:700;cursor:pointer}
.inventory-tab.is-active{border-color:rgba(112,224,196,.42);background:rgba(112,224,196,.12);color:#effff2}
.inventory-subpanel[hidden]{display:none!important}
.inventory-asset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.inventory-asset-card{display:flex;align-items:center;gap:9px;min-height:62px;padding:10px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(255,255,255,.045)}
.inventory-asset-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(255,210,125,.13);color:#ffd27d;font-size:20px}
.inventory-asset-card b,.inventory-asset-card small{display:block}.inventory-asset-card b{font-size:11px}.inventory-asset-card small{margin-top:4px;color:#ffd27d;font-size:13px;font-variant-numeric:tabular-nums}
.inventory-asset-card{position:relative}.inventory-asset-card>div{min-width:0;flex:1}.inventory-asset-hint{font-size:9px!important;color:#8fb7b5!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.inventory-use-button{flex:0 0 auto;border:1px solid rgba(255,210,125,.5);border-radius:8px;padding:5px 7px;background:rgba(255,210,125,.12);color:#ffe7ae;font-size:10px;font-weight:700;cursor:pointer}.inventory-use-button:hover:not(:disabled){background:rgba(255,210,125,.22)}.inventory-use-button:disabled{opacity:.42;cursor:not-allowed}
.module-shell .equipment-panel{padding-bottom:calc(112px + env(safe-area-inset-bottom));}
@media(max-width:700px){.module-shell .equipment-panel{padding-bottom:calc(120px + env(safe-area-inset-bottom));overflow:visible}.inventory-asset-grid{grid-template-columns:1fr 1fr}.inventory-tabs{position:sticky;top:-1px;z-index:5}}

/* P12：背包页使用紧凑、自适应的底部导航，避免遮挡最后一行内容。 */
.module-nav{
  --module-nav-bg:rgba(6,22,35,.94);
  --module-nav-fg:#759da5;
  --module-nav-active:#eff8ff;
  --module-nav-accent:#ffd27d;
  min-height:58px;
  z-index:70;
  padding:6px 10px max(6px,env(safe-area-inset-bottom));
  background:var(--module-nav-bg);
  color:var(--module-nav-fg);
  border-top-color:rgba(112,181,185,.34);
}
.module-tab{padding:4px 3px;color:var(--module-nav-fg);line-height:1.05}
.module-tab span{font-size:17px;line-height:18px;color:currentColor}
.module-tab b{font-size:10px;margin-top:2px;color:currentColor}
.module-tab small{font-size:8px;margin-top:1px;color:currentColor;opacity:.82}
.module-tab.active{color:var(--module-nav-active)}
.module-tab.active span{color:var(--module-nav-accent)}
.module-shell .equipment-panel{padding-bottom:calc(76px + env(safe-area-inset-bottom));}
.tree-status-card>.stamina-hint{display:block!important;margin-top:5px;color:#8fb7b5;font-size:9px;line-height:1.35;}
@media(max-width:700px){
  .module-shell{padding-bottom:72px}
  .module-shell .equipment-panel{padding-bottom:calc(72px + env(safe-area-inset-bottom));}
}
@media(prefers-color-scheme:light){
  .module-shell.module-active-equipment .module-nav{
    --module-nav-bg:rgba(239,249,249,.96);
    --module-nav-fg:#4d7377;
    --module-nav-active:#163f46;
    --module-nav-accent:#b56b17;
    border-top-color:#b6d7d5;
    box-shadow:0 -5px 18px rgba(33,85,87,.12);
  }
}
[data-theme="light"] .module-shell.module-active-equipment .module-nav{
  --module-nav-bg:rgba(239,249,249,.96);
  --module-nav-fg:#4d7377;
  --module-nav-active:#163f46;
  --module-nav-accent:#b56b17;
  border-top-color:#b6d7d5;
  box-shadow:0 -5px 18px rgba(33,85,87,.12);
}
@media(prefers-reduced-motion:reduce){.module-nav{backdrop-filter:none}.module-tab{transition:none}}

/* weapon enhancement module */
.enhancement-panel{margin-top:18px;min-height:clamp(420px,calc(100dvh - 290px),620px);overflow:auto}
.enhancement-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(300px,1.2fr);gap:16px}
.enhancement-picker,.enhancement-console{display:grid;align-content:start;gap:12px;padding:18px;border:1px solid rgba(120,209,207,.2);border-radius:18px;background:rgba(2,18,29,.3)}
.enhance-select{width:100%;padding:11px 12px;border-radius:11px;border:1px solid rgba(120,209,207,.32);background:#102d3b;color:#eff8ff;font:inherit}
.enhancement-choice-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-top:2px}.enhancement-choice-head span{font-size:11px;font-weight:800;color:#e8fff0}.enhancement-choice-head small{font-size:9px;color:#8fb7b5;text-align:right}.enhancement-choice-list{display:grid;gap:7px;max-height:292px;overflow:auto;padding-right:2px}.enhancement-choice{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:8px 9px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.035);color:#eff8ff;text-align:left;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}.enhancement-choice:hover{border-color:rgba(112,224,196,.4);background:rgba(112,224,196,.08)}.enhancement-choice[aria-selected="true"]{border-color:#ffd27d;background:linear-gradient(100deg,rgba(255,210,125,.17),rgba(112,224,196,.1));box-shadow:0 0 0 1px rgba(255,210,125,.25),0 8px 20px rgba(0,0,0,.12)}.enhancement-choice-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:rgba(4,24,35,.55);overflow:hidden}.enhancement-choice-icon img{width:36px;height:36px;object-fit:contain}.enhancement-choice-copy{min-width:0}.enhancement-choice-copy b,.enhancement-choice-copy small,.enhancement-choice-copy em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.enhancement-choice-copy b{font-size:11px}.enhancement-choice-copy small{margin-top:2px;color:#ffd27d;font-size:9px}.enhancement-choice-copy em{margin-top:3px;color:#a8ced0;font-size:9px;font-style:normal}.enhancement-choice-action{font-size:9px;color:#ffd27d;white-space:nowrap}.enhance-selected-card{display:flex;align-items:center;gap:12px;min-height:98px;padding:12px;border:1px dashed rgba(255,210,125,.3);border-radius:14px;background:rgba(255,255,255,.035)}.enhance-selected-card img{width:62px;height:62px;object-fit:contain;border-radius:11px;background:rgba(4,24,35,.45);padding:4px}.enhance-selected-card b,.enhance-selected-card small,.enhance-selected-card span{display:block}.enhance-selected-copy{min-width:0}.enhance-selected-title{display:flex;align-items:center;gap:6px;min-width:0}.enhance-selected-title b{color:#efffe9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.enhance-selected-title em,.enhance-selected-title i{font-size:9px;font-style:normal;white-space:nowrap}.enhance-selected-title em{color:#ffd27d}.enhance-selected-title i{color:#8fb7b5}.enhance-selected-card small{margin-top:5px;color:#9fc5ca;font-size:10px}.enhance-selected-card span{margin-top:5px;color:#b9dcda;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.enhance-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.enhance-stat-grid span{padding:10px 9px;border-radius:11px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}.enhance-stat-grid small,.enhance-stat-grid b{display:block}.enhance-stat-grid small{font-size:9px;color:#8fb7b5}.enhance-stat-grid b{margin-top:4px;color:#ffd27d;font-size:15px}
.enhance-affixes{display:grid;gap:8px;padding-top:4px}.enhance-affixes #enhance-affix-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.enhance-affixes #enhance-affix-list>span{display:flex;justify-content:space-between;gap:8px;padding:8px 9px;border-radius:10px;background:rgba(255,255,255,.05);font-size:10px}.enhance-affixes #enhance-affix-list small{color:#9fc5ca}.enhance-affixes #enhance-affix-list b{color:#ffd27d;text-align:right}.enhance-submit{width:100%;margin-top:2px}.enhance-submit:disabled{opacity:.55;cursor:not-allowed}.enhancement-panel .result{min-height:18px}.enhancement-panel .result.is-success{color:#8df0cf}.enhancement-panel .result.is-error{color:#ffb0a0}
.module-nav{grid-template-columns:repeat(7,minmax(0,1fr))}
@media(max-width:700px){.enhancement-panel{min-height:0;overflow:visible}.enhancement-layout{grid-template-columns:1fr}.enhancement-picker,.enhancement-console{padding:14px}.enhance-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.enhance-affixes #enhance-affix-list{grid-template-columns:1fr}.enhancement-choice-list{max-height:330px}.enhancement-choice-head{align-items:flex-start;flex-direction:column;gap:3px}.enhancement-choice-head small{text-align:left}.enhance-selected-title{flex-wrap:wrap}.module-nav{grid-template-columns:repeat(7,minmax(0,1fr));padding-left:4px;padding-right:4px}.module-tab b{font-size:9px}.module-tab small{font-size:7px}}

/* 背包内容永远预留实际固定导航高度，最后一项必须能滚到导航栏上方。 */
.module-shell{
  --module-nav-space:72px;
  padding-bottom:calc(var(--module-nav-space) + env(safe-area-inset-bottom));
}
.module-shell .equipment-panel{
  padding-bottom:calc(var(--module-nav-space) + env(safe-area-inset-bottom));
}
@media(max-width:700px){
  .module-shell.module-active-equipment{
    padding-bottom:calc(var(--module-nav-space) + env(safe-area-inset-bottom));
  }
  .module-shell.module-active-equipment .equipment-panel{
    padding-bottom:calc(var(--module-nav-space) + env(safe-area-inset-bottom));
  }
}

/* 强化选择卡沿用背包装备卡的品质边框：选中提示只用外轮廓，不覆盖品质光效。 */
.enhancement-choice,
.enhance-selected-card{
  border-radius:16px;
  background:rgba(255,255,255,.04);
}
.enhance-selected-card{border-style:solid;}
.enhancement-choice.quality-common,
.enhance-selected-card.quality-common{--quality-frame-border:rgba(190,220,235,.32);}
.enhancement-choice.quality-uncommon,
.enhance-selected-card.quality-uncommon{--quality-frame-border:rgba(117,225,177,.36);}
.enhancement-choice.quality-rare,
.enhance-selected-card.quality-rare{--quality-frame-border:rgba(125,164,255,.42);}
.enhancement-choice.quality-epic,
.enhance-selected-card.quality-epic{--quality-frame-border:rgba(210,145,255,.46);}
.enhancement-choice.quality-legendary,
.enhance-selected-card.quality-legendary{--quality-frame-border:rgba(255,191,91,.5);}
.enhancement-choice[aria-selected="true"]{
  border-color:var(--quality-frame-border,rgba(255,255,255,.09));
  outline:1px solid rgba(255,210,125,.62);
  outline-offset:1px;
  background:linear-gradient(100deg,rgba(255,210,125,.13),rgba(112,224,196,.08));
}
.enhancement-choice:hover:not([aria-selected="true"]){
  border-color:var(--quality-frame-border,rgba(112,224,196,.4));
  background:rgba(255,255,255,.06);
}
