/* Mobile-first expedition camp, v12. Gated departure choices and local building upgrade feedback. */
*{box-sizing:border-box}
:root{font-family:"Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;color:#294235;background:#dce5d7;font-synthesis:none;--ink:#294235;--muted:#74816c;--green:#496a42;--deep:#2c503d;--cream:#fbf9ed;--line:#dce1ca;--gold:#efc875}
html,body{margin:0;min-height:100%;overscroll-behavior:none}
body{overflow:hidden}
button{font:inherit;color:inherit;cursor:pointer;border:0;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:3px solid #d6a445;outline-offset:2px}
button:disabled{cursor:default;opacity:.48}
button svg{pointer-events:none}
button,a{touch-action:manipulation}
svg{display:block}
h1,h2,h3,p{margin:0}
button[hidden],[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.notice-dot{position:absolute;right:5px;top:5px;width:10px;height:10px;background:#ce684e;border:2px solid #fff8e7;border-radius:50%;pointer-events:none;z-index:5}
.is-guided{outline:2px solid #d6ae58;outline-offset:3px;animation:notice-guide 2s ease-in-out 2}
.app{--game-h:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));container:game/inline-size;width:min(100%,430px);height:100dvh;margin:auto;background:var(--cream);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 0 60px #3349341a;padding-top:env(safe-area-inset-top,0px);position:relative}
.hud{display:flex;align-items:center;gap:7px;flex-shrink:0;min-height:50px;padding:7px 12px 5px;background:#fbf9ed;z-index:4}
.icon-button{width:36px;height:36px;flex:none;border:1px solid #d7debf;border-radius:50%;font-weight:800;font-size:18px;background:#f2f4e6}
.resource-bar{display:flex;gap:5px;flex:1;min-width:0;padding:0}
.resource{display:flex;gap:3px;align-items:center;flex:1;min-width:0;min-height:40px;padding:10px 5px 4px;border-radius:10px;background:#eeefdf;overflow:visible;position:relative;text-align:left;transition:background .18s,box-shadow .18s,color .18s}
.resource svg{width:18px;height:18px;flex:none}
.resource-amounts{display:flex;align-items:baseline;justify-content:flex-end;gap:1px;flex:1;min-width:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.resource b{display:inline-block;font-size:16px;line-height:1.15;font-variant-numeric:tabular-nums;min-width:0;transition:color .18s}
.resource-number{position:relative;display:inline-flex;align-items:baseline;min-width:0}
.resource-floats{position:absolute;left:50%;bottom:calc(100% + 1px);height:0;pointer-events:none;z-index:6}
.resource-delta{position:absolute;left:0;bottom:0;white-space:nowrap;font-size:19px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums;text-shadow:0 1px #fffef4,1px 0 #fffef4,-1px 0 #fffef4;animation:balance-arc 1.05s ease-out both;--drift:5px}
.resource-delta.gain{color:#4e7b3e}
.resource-delta.spend{color:#a4664d}
.resource small{display:inline-block;margin:0;color:#707963;font-size:11px;line-height:1.15;font-variant-numeric:tabular-nums;white-space:nowrap;flex:none}
.language-setting{margin:14px 0 18px}
.language-setting h3{margin:0 0 8px;font-size:14px;color:var(--ink)}
.language-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.language-options button{min-height:44px;padding:8px 4px;border:1px solid #d4d7c7;border-radius:12px;background:#f7f5ed;font-size:14px;font-weight:700;color:#526052}
.language-options button[aria-pressed="true"]{color:#294c36;border-color:#5e8666;background:#deead8;box-shadow:inset 0 0 0 1px #5e8666}
.squad-bar{padding:1px 12px 8px;border-bottom:1px solid var(--line);flex-shrink:0;background:linear-gradient(180deg,#fbf9ed,#f2f2e4)}
.strip-title,.queue-header{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);min-height:22px;margin-bottom:4px;gap:8px}
.strip-title button,.queue-header button{display:flex;align-items:center;gap:4px;background:transparent;padding:1px 0 1px 9px;color:#6b7d57;font-size:12px;min-height:22px}
.strip-title svg,.queue-header svg{width:17px;height:17px}
.squad-slots{display:flex;gap:6px}
.squad-slot{height:54px;flex:1;min-width:0;position:relative;background:#e8eddb;border:1px solid #d8dfc8;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;overflow:hidden;font-size:13px;padding:4px}
.squad-slot b{font-size:13px;white-space:nowrap;line-height:1.25}
.squad-slot small{font-size:12px;color:#718166;white-space:nowrap}
.squad-slot .slot-icon{height:22px;width:22px}
.squad-slot .slot-icon svg{width:100%;height:100%}
.squad-slot.active{border-color:#6e8e50;background:#f3edcd;box-shadow:inset 0 0 0 1px #6e8e50}
.squad-slot.empty{border:1px dashed #aebb99;background:#f6f6eb}
.squad-slot.empty:active{background:#e6ebcd}
.squad-slot.locked{opacity:.6;background:transparent}
.squad-slot.locked svg{width:20px}
.squad-slot .slot-progress{position:absolute;bottom:0;left:0;height:3px;background:#8faa66;opacity:.7}
.view{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain;padding:14px 14px 18px}
.view.forge-view{display:flex;flex-direction:column;padding:8px 12px 7px;overflow:hidden}
.section-title{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:13px}
.section-title h2{font-size:22px;letter-spacing:.4px}
.eyebrow{color:#83916f;font-size:12px;letter-spacing:1px;margin-bottom:5px}
.subtle{font-size:13px;color:var(--muted);line-height:1.6}
.text-button:not(.mother-btn){background:none;color:#657c50;font-size:14px;padding:9px 3px;min-height:40px}
.scene-shell{position:relative;overflow:hidden;border-radius:17px;border:1px solid #c9d6b2;background:#dce8bb;flex:1 1 0;min-height:130px;isolation:isolate}
.scene-shell canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.scene-head{position:absolute;left:10px;right:10px;top:9px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;z-index:1}
.scene-tag{font-size:12px;color:#496647;background:#fffce6e8;padding:5px 8px;border-radius:7px;max-width:64%;line-height:1.3}
.power-badge{display:flex;flex-direction:column;align-items:flex-end;padding:5px 9px;background:#fffbe8eb;border-radius:9px;color:#4c6139;transform-origin:top right}
.power-badge small{font-size:12px;line-height:1.2}
.power-badge strong{font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}
.power-badge.is-gain{animation:power-gain .7s ease-out}
.scene-foot{position:absolute;left:10px;right:10px;bottom:7px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#58704a;pointer-events:none;z-index:1;gap:6px}
.scene-foot span{background:#fffce7d9;border-radius:5px;padding:3px 6px;line-height:1.3}
.factor-badge{display:inline-block;white-space:nowrap;font-size:12px;line-height:1.4;font-weight:600;color:#738050}
.loot-panel .factor-badge{font-size:12px}
.scene-feedback{position:absolute;z-index:2;left:0;right:122px;top:0;bottom:7px;display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0;padding:4px 5px 4px 9px;background:var(--cream);border-left:4px solid #7da858;border-radius:0;color:#416b35;pointer-events:none;transform-origin:left center;animation:feedback-pop 1.05s both}
.scene-feedback strong{display:block;min-width:0;font-size:20px;font-weight:900;line-height:1.15;letter-spacing:.2px;white-space:nowrap}
.scene-feedback small{display:block;flex:none;margin:0;padding:4px 6px;border-radius:7px;background:#e4edcf;color:#60783f;font-size:12px;font-weight:800;line-height:1.15;white-space:nowrap}
.scene-feedback.upgrade,.scene-feedback.is-upgrade{color:#805299;border-left-color:#ad81c0}
.forge-panel{position:relative;flex-shrink:0;padding-top:9px}
.forge-layout{position:relative}
.forge-panel.is-choosing .forge-layout{visibility:hidden;pointer-events:none}
.forge-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:7px;min-height:46px}
.forge-heading h2{font-size:20px;line-height:1.25}
.forge-heading p{font-size:12px;color:#81906f;margin-top:3px}
.remaining{display:flex;align-items:center;gap:7px;background:#edeaca;padding:5px 10px;border-radius:10px;flex:none;position:relative;z-index:3}
.remaining small{font-size:12px;line-height:1.25}
.remaining b{font-size:29px;color:#6b7239;line-height:1;font-variant-numeric:tabular-nums}
.remaining.is-last{background:#f1d99a;box-shadow:0 0 0 2px #deb461;animation:last-call 1.1s ease-in-out infinite}
.board{--tile:clamp(52px,calc((var(--game-h) - 127px)/10),72px);display:grid;grid-template-columns:repeat(4,var(--tile));grid-template-rows:repeat(4,var(--tile));gap:6px;padding:7px;background:#c8d4af;border:1px solid #b7c59d;border-radius:14px;margin:auto;width:max-content;max-width:100%;touch-action:none;user-select:none;box-shadow:inset 0 2px 3px #59734818}
.cell{position:relative;border-radius:9px;padding:0;display:flex;justify-content:center;align-items:center;background:#b9c89f77;border:1px solid #afbf9477;min-width:0;box-shadow:inset 0 1px 2px #72805b0c}
.cell.empty:after{content:"";width:3px;height:3px;border-radius:50%;background:#9bab81}
.cell .tile{position:absolute;inset:0;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--quality);border:2px solid #f6ffe7aa;box-shadow:0 2px 3px #4a60413b,inset 0 0 8px #ffffff66}
.tile>svg{width:78%;height:78%;filter:drop-shadow(0 1px 1px #18342618)}
.rank-pips{position:absolute;bottom:3px;display:flex;gap:2px}
.rank-pips i{width:3px;height:3px;background:#5c6039;transform:rotate(45deg)}
.rank-pips.high{display:grid;grid-template-columns:repeat(5,3px);gap:2px}
.cell.merge:is([data-tier="5"],[data-tier="6"],[data-tier="7"],[data-tier="8"],[data-tier="9"],[data-tier="10"]){z-index:3;animation:merge-tier .95s ease-out}
.cell.merge:is([data-tier="5"],[data-tier="6"],[data-tier="7"],[data-tier="8"],[data-tier="9"],[data-tier="10"]):before{content:"";position:absolute;inset:-5px;border:2px solid var(--merge-glow);border-radius:12px;pointer-events:none;animation:merge-ring .8s .12s ease-out both}
.cell.merge{animation:merge .45s}
.cell.merge[data-tier="2"],.cell.merge[data-tier="3"],.cell.merge[data-tier="4"]{z-index:3;--merge-glow:#b0ecff;animation:merge-tier .7s ease-out}
.cell.merge[data-tier="3"]{--merge-glow:#e2bdff;animation:merge-tier .85s ease-out}
.cell.merge[data-tier="4"]{--merge-glow:#ffe49b;animation:merge-tier .9s ease-out}
.cell.merge[data-tier]:after{content:"";position:absolute;inset:-5px;border:2px solid var(--merge-glow);border-radius:12px;box-shadow:0 0 12px var(--merge-glow);pointer-events:none;animation:merge-ring .7s ease-out both}
.cell.merge[data-tier="3"]:before,.cell.merge[data-tier="4"]:before{content:"";position:absolute;inset:-5px;border:2px solid var(--merge-glow);border-radius:12px;pointer-events:none;animation:merge-ring .72s .12s ease-out both}
.cell.spawn{animation:spawn .35s}
.forge-progress{height:3px;background:#e5e7d6;border-radius:4px;margin-top:6px;overflow:hidden}
.forge-progress i{display:block;height:100%;background:#9ab86c;transition:width .2s}
.draft-panel{position:absolute;inset:0;z-index:4;display:flex;min-height:0;flex-direction:column;justify-content:center;padding:8px 0 45px;background:var(--cream);animation:choice-enter .32s ease-out both}
.draft-title{text-align:center;margin-bottom:12px}
.draft-title h2{font-size:21px}
.draft-title p{font-size:13px;color:#849071;margin-top:5px}
.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.choice{min-height:177px;border:1px solid #d4d8ba;border-radius:14px;background:linear-gradient(#fffdf0,#f0efd9);padding:13px 4px 11px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 4px 0 #dadcc3}
.is-choosing .choice{animation:choice-breathe 2.8s .4s ease-in-out infinite}
.choice:active{transform:translateY(2px);box-shadow:0 2px 0 #dadcc3}
.choice-art{width:52px;height:52px;background:var(--quality,#edd791);border:2px solid #fffdf1;border-radius:11px;padding:3px;box-shadow:0 2px 5px #66784d1f;display:flex;justify-content:center;align-items:center}
.choice-art svg{width:100%;height:100%}
.choice b{font-size:14px;margin-top:11px;line-height:1.35;text-align:center}
.choice strong{font-size:27px;color:#7d7b3e;margin:5px 0}
.choice small{font-size:12px;color:#7b8967;line-height:1.3;text-align:center}
.bottom-nav{flex-shrink:0;height:calc(56px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);border-top:1px solid #dee3ce;display:flex;background:#fbf9ed;z-index:4}
.bottom-nav button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;background:transparent;position:relative;color:#869477;min-height:44px}
.bottom-nav svg{width:25px;height:25px}
.bottom-nav strong{font-size:15px}
.bottom-nav button.selected{color:#456b3b;background:#edf0df}
.bottom-nav i{height:9px;width:9px;background:#ce684e;border:2px solid #fbf9ed;border-radius:50%;position:absolute;top:11px;left:calc(50% + 31px)}
.stats-row{display:flex;gap:10px;margin-bottom:15px}
.stat{flex:1;border:1px solid #e2e4cf;border-radius:12px;padding:11px 12px;background:#f3f3e6}
.stat small{font-size:12px;display:block;color:#849174;margin-bottom:3px}
.stat strong{font-size:25px;color:#5d7042;font-variant-numeric:tabular-nums}
.stat em{font-style:normal;font-size:13px;color:#8b957e;margin-left:4px}
.team-list{display:flex;flex-direction:column;gap:11px}
.team-card{background:#fffdf2;border:1px solid #dce0ca;border-radius:16px;overflow:hidden;position:relative}
.team-open{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:transparent;padding:12px}
.team-art{width:78px;height:82px;flex-shrink:0;border-radius:11px;overflow:hidden;background:#e9edda}
.team-art>svg{width:100%;height:100%;object-fit:cover}
.team-info{flex:1;min-width:0}
.team-info h3{font-size:16px;display:flex;justify-content:space-between;gap:5px;align-items:center}
.team-info .status{font-size:12px;background:#ecf0df;border-radius:5px;padding:3px 5px;color:#72905e;white-space:nowrap}
.team-info p{font-size:13px;color:#839175;margin-top:6px}
.team-info .team-power{font-size:13px;color:#6b7b4c}
.day-progress{display:block;height:4px;background:#eceddc;border-radius:4px;margin-top:10px;overflow:hidden}
.day-progress i{display:block;background:#aac584;height:100%;border-radius:4px}
.team-reward{border-top:1px dashed #e5e5cc;display:flex;align-items:center;justify-content:space-between;padding:9px 12px;font-size:12px;color:#81906f;gap:7px}
.loot-values{display:flex;gap:11px;align-items:center}
.loot-value{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:15px;font-weight:650}
.loot-value svg{width:20px;height:20px;flex:none}
.collect{border-radius:8px;background:#e4bb65;color:#5d552f;font-weight:750;padding:9px 12px;font-size:14px;min-height:42px}
.empty-team{width:100%;min-height:94px;border:1px dashed #afc197;border-radius:15px;background:#f2f4e7;display:flex;gap:14px;align-items:center;padding:17px;text-align:left;position:relative}
.empty-team>span{width:44px;height:44px;flex:none;border:1px solid #ccd8b6;border-radius:50%;padding:10px;color:#789965}
.empty-team svg{width:100%;height:100%}
.empty-team b{font-size:17px}
.empty-team small{display:block;color:#829270;font-size:13px;margin-top:6px;line-height:1.4}
.home-note{font-size:13px;color:#89967b;text-align:center;margin:17px 0;line-height:1.6}
.primary:not(.mother-btn){border-radius:11px;padding:13px 17px;background:#5a774a;color:#fffbe6;font-weight:750;font-size:16px;min-height:48px;box-shadow:0 3px 0 #3d5933}
.secondary:not(.mother-btn){border:1px solid #d5ddc0;background:#f3f4e8;border-radius:11px;padding:12px 17px;min-height:48px;font-size:15px}
.wide{width:100%}
.camp-view{padding-top:7px}
.app.camp-mode{background:#dfe7c6;padding-top:0}
.camp-mode .hud{position:absolute;top:0;left:0;right:0;padding-top:calc(7px + env(safe-area-inset-top,0px));background:transparent;z-index:10}
.camp-mode .resource{background:#fffde5e8;box-shadow:0 2px 8px #49643b18}
.camp-mode .icon-button{background:#fffde5e8;border-color:#c3cfa7}
.camp-mode .camp-view{padding:0 0 16px;background:#dfe7c6;scroll-padding-top:60px;overflow-anchor:none}
.camp-mode .buildings{padding:0 12px}
.camp-illustration{height:clamp(380px,calc(var(--game-h)*.58 + 10px),510px);position:relative;background:#dfe7c6;border:0;border-radius:0;overflow:hidden;margin-bottom:12px;isolation:isolate}
.camp-illustration>svg{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.18);transform-origin:50% 68%}
.camp-motion{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.camp-hotspots{position:absolute;inset:0;z-index:2;pointer-events:none}
.map-building{cursor:pointer;pointer-events:none;outline:none}
.building-hit{fill:transparent;pointer-events:all;touch-action:manipulation}
.map-building:active .building-hit{fill:#fff3bd22}
.map-building:focus-visible .building-hit{stroke:#d6a445;stroke-width:4;stroke-dasharray:7 5}
.building-map-dot{fill:#ce684e;stroke:#fff8e7;stroke-width:3;pointer-events:none}
.camp-upgrade-layer{position:absolute;inset:0;pointer-events:none;z-index:3}
.building-body.is-upgraded{transform-box:fill-box;transform-origin:50% 90%;animation:building-rebound .65s ease-out var(--upgrade-age,0ms) both}
.map-upgrade-ring{fill:#ffe8a52b;stroke:#f4c45f;stroke-width:5;transform-box:fill-box;transform-origin:center;animation:upgrade-ring .9s ease-out var(--upgrade-age,0ms) both}
.map-upgrade-stars{fill:#f8d470;stroke:#fff2b2;stroke-width:1.5;animation:upgrade-stars 1.2s ease-out var(--upgrade-age,0ms) both}
.map-upgrade-level{text-anchor:middle;font:800 21px "Microsoft YaHei UI",sans-serif;fill:#8a6728;paint-order:stroke;stroke:#fff7d8;stroke-width:5;animation:upgrade-label 1.2s ease-out var(--upgrade-age,0ms) both}
.newly-unlocked,.newly-unlocked .pin-icon{animation:slot-unlocked 1.2s ease-out both}
.map-squads{position:absolute;left:9px;right:9px;bottom:10px;display:flex;justify-content:space-around;align-items:flex-start;gap:5px;z-index:3}
.map-squad{background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:2px;min-width:0;flex:1;min-height:68px;position:relative;color:#3b5736;text-align:center}
.map-squad>span:first-child,.map-squad .pin-icon,.map-squad .map-slot-icon{height:46px;width:46px;border:2px solid #fff9d7;border-radius:50%;background:#729257;box-shadow:0 3px 0 #425d36,0 5px 12px #47613935;display:flex;align-items:center;justify-content:center;padding:8px;position:relative}
.map-squad>svg{height:47px;width:47px;border:2px solid #fff9d7;border-radius:50%;padding:8px;background:#729257;box-shadow:0 3px 0 #425d36}
.map-squad svg{width:100%;height:100%}
.map-squad b,.map-squad strong{display:block;font-size:13px;line-height:1.25;margin-top:6px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.map-squad.empty>span:first-child,.map-squad.empty .pin-icon,.map-squad.empty .map-slot-icon{border:2px dashed #9aac7a;background:#fff9de;box-shadow:0 3px 0 #9aae7f}
.map-squad.active>span:first-child,.map-squad.active .pin-icon,.map-squad.active .map-slot-icon{background:#e9bc62;border-color:#fff5c9;box-shadow:0 3px 0 #a4823c,0 0 0 4px #fff1b480}
.map-squad .notice-dot{right:-3px;top:-3px}
.map-squad.locked{opacity:.6}
.map-squad.locked>span:first-child{background:#bec9a4;box-shadow:0 3px 0 #899b72}
.map-squad:active{transform:translateY(2px)}
.buildings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.building:not(.camp-building-card){border:1px solid #dce0c9;border-radius:14px;background:#fffdf1;padding:12px;position:relative;scroll-margin:14px}
.building-open{display:flex;width:100%;align-items:center;gap:8px;background:transparent;text-align:left;padding:0;margin-bottom:10px;min-height:46px}
.building-top{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.building-icon{height:39px;width:39px;flex:none;border-radius:9px;padding:4px;background:#eaf0db;position:relative}
.building:not(.camp-building-card).is-upgraded{animation:building-rebound .6s ease-out var(--upgrade-age,0ms) both;border-color:#d4b362}
.upgrade-icon{animation:building-rebound .65s ease-out var(--upgrade-age,0ms) both}
.building-burst{position:absolute;inset:-9px;pointer-events:none;border:2px solid #f2c769;border-radius:50%;box-shadow:0 0 14px #f7d8758c;animation:upgrade-ring .9s ease-out var(--upgrade-age,0ms) both}
.building-burst i{position:absolute;width:10px;height:10px;background:#f3c25b;clip-path:polygon(50% 0,63% 35%,100% 50%,63% 64%,50% 100%,36% 64%,0 50%,36% 35%)}
.building-burst i:nth-child(1){left:-5px;top:45%}.building-burst i:nth-child(2){right:-5px;top:38%}.building-burst i:nth-child(3){left:15%;top:-7px}.building-burst i:nth-child(4){right:12%;top:-4px}.building-burst i:nth-child(5){right:18%;bottom:-6px}
.building-gain{position:absolute;left:7px;right:7px;bottom:58px;padding:6px;border:1px solid #e1c478;border-radius:9px;background:#fff8dbf5;text-align:center;pointer-events:none;box-shadow:0 3px 9px #ad934329;animation:upgrade-label 1.2s ease-out var(--upgrade-age,0ms) both}
.building-gain b{display:block;font-size:12px;color:#a18646;margin-bottom:2px}.building-gain strong{font-size:14px;line-height:1.3;color:#6e703d}
.building-icon svg{width:100%;height:100%}
.building:not(.camp-building-card).is-building-starting{animation:construction-start-edge .65s ease-out}
.building:not(.camp-building-card).is-building-starting .building-icon img,#dialogBody:not(.mother-body).is-building-starting .building-tip-icon img{transform-origin:50% 90%;animation:construction-start-icon .65s ease-out}
.building:not(.camp-building-card).is-building-starting .build-progress,#dialogBody:not(.mother-body).is-building-starting .construction-big{animation:construction-start-edge .65s ease-out}
.building:not(.camp-building-card) h3{font-size:17px}
.building:not(.camp-building-card) .level{display:block;font-size:12px;color:#8a9877;margin-top:3px}
.building-effect{font-size:13px;line-height:1.65;color:#5e7651;min-height:44px}
.building-cost{display:flex;gap:7px;margin:10px 0;font-size:12px;min-height:21px}
.building-cost .loot-values{gap:7px;flex-wrap:wrap}
.building-cost .loot-value{font-size:13px;font-weight:550;gap:3px}
.building-cost svg{width:17px;height:17px}
.building-upgrade{position:relative;width:100%;border-radius:9px;min-height:44px;background:#e4ecd0;color:#557342;font-weight:750;font-size:14px}
.building-upgrade.affordable{background:#6b854e;color:#fffbe3;box-shadow:0 2px 0 #4e6a38}
.defense-stock{padding:10px;border:1px solid #d9dfbd;border-radius:11px;background:#f0f3de;margin-bottom:10px}
.defense-stock-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#7b8b61;margin-bottom:9px}
.defense-stock-heading b{font-size:15px;color:#5a7245;margin-left:4px;font-variant-numeric:tabular-nums}
.defense-stock-heading strong{font-size:12px;color:#79994f;font-weight:650}
.defense-stock .loot-values{justify-content:space-around;gap:10px}
.defense-stock .loot-value{font-size:17px;line-height:1.3}
.defense-stock-track{height:5px;border-radius:5px;background:#dfe5c9;overflow:hidden;margin-top:9px}
.defense-stock-track i{display:block;height:100%;background:#9cb86d;border-radius:5px;transition:width .28s}
.defense-stock.is-full{background:#f5ebc9;border-color:#ddbf7c}
.defense-stock.is-full .defense-stock-heading strong{color:#a77b35;font-weight:800}
.defense-stock.is-full .defense-stock-track i{background:#d1a64f}
.defense-dialog .building-tip-heading{margin-bottom:13px}
.defense-dialog .building-benefits{margin:13px 0}
.defense-dialog .building-tip-status{margin-top:10px;margin-bottom:10px}
.building-dialog{padding:24px 18px 20px;max-width:386px}
.building-tip-heading{display:flex;align-items:center;gap:13px;padding-right:20px;margin-bottom:20px}
.building-tip-icon{width:58px;height:58px;flex:none;padding:7px;background:#e9efd9;border:1px solid #d5debd;border-radius:15px;position:relative}
.building-tip-icon svg{width:100%;height:100%}
.building-tip-heading h2{font-size:24px;margin:0 0 4px}
.building-tip-heading p{font-size:13px;color:#879470}
.building-tip-heading.is-upgraded p{color:#927129;background:#fbebbc;border-radius:5px;box-shadow:0 0 0 3px #fbebbc;animation:upgrade-level 1.2s ease-out var(--upgrade-age,0ms) both}
.building-benefits{border:1px solid #dce1c9;border-radius:12px;overflow:hidden;background:#f4f5e8}
.benefit-head,.benefit-row{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:7px;align-items:center;padding:12px 10px;font-size:13px;line-height:1.4}
.benefit-head{padding-top:8px;padding-bottom:8px;color:#889273;background:#e9edd8;font-size:12px}
.benefit-row+.benefit-row{border-top:1px solid #dfe5cd}
.benefit-row>span{color:#687d53}
.benefit-head>span:not(:first-child),.benefit-row>b,.benefit-row>strong{text-align:center}
.benefit-row b{font-size:14px;font-weight:600;color:#7a8563}
.benefit-row strong{font-size:15px;color:#4e7440}
.building-tip-note{font-size:12px;color:#859375;line-height:1.6;margin:11px 1px 16px}
.building-tip-cost{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;color:#738763}
.building-tip-cost .loot-values{gap:10px}
.building-tip-cost .loot-value{font-size:14px}
.building-tip-status{font-size:13px;color:#9c8057;line-height:1.45;min-height:19px;margin:13px 0 12px;text-align:center}
.building-tip-status.success{color:#5b7d40;font-weight:750}
.building-dialog .primary:not(.mother-btn){position:relative}
.report-open{position:relative;padding-right:20px}
.departure-view:not(.mother-view){display:flex;flex-direction:column;gap:11px;padding:11px 12px 14px;overflow:hidden}
.departure-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex:none;padding:0 2px}
.departure-heading h2{font-size:24px;color:#48633c;line-height:1.35}.departure-heading p{font-size:13px;color:#7f8d6b}
.departure-scene{flex:1;min-height:190px;border-color:#bdce9f}
.departure-controls{flex:none;display:flex;flex-direction:column;gap:11px}
.departure-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.departure-choice{min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid #d3dcbf;border-radius:12px;background:#f0f2e2;color:#758365;padding:8px 5px}
.departure-choice span{font-size:14px;font-weight:750;line-height:1.3;text-align:center;overflow-wrap:break-word}.departure-choice span b{font-size:17px;color:#65794d}.departure-choice strong{font-size:17px;color:#5f7447}
.departure-choice[aria-pressed="true"]{border-color:#6c8c49;background:#e3edc9;box-shadow:inset 0 0 0 1px #6c8c49,0 3px 0 #c1ce9f}
.departure-controls .primary:not(.mother-btn){min-height:48px;font-size:18px}
.launch-view{display:flex;flex-direction:column;padding:14px 12px 17px;overflow:hidden;gap:12px;background:radial-gradient(ellipse at 50% 16%,#fff3c2,#f9f8e9 62%)}
.launch-heading{text-align:center;flex:none;padding:10px 4px 3px;animation:launch-title .5s both}
.launch-heading h2{font-size:34px;letter-spacing:4px;color:#476333;line-height:1.15;text-shadow:0 2px #fff8ce}
.launch-heading p{font-size:14px;color:#85905f;margin-top:7px}
.launch-heading .eyebrow{font-size:13px;letter-spacing:3px;color:#9a8843;margin:0 0 8px}
.launch-banner{display:flex;align-items:center;justify-content:center;width:56px;height:56px;padding:9px;margin:0 auto 9px;border:1px solid #d6bb69;border-radius:17px;background:#f3df9b80;box-shadow:0 3px 0 #d9c68055}
.launch-banner svg{width:100%;height:100%}
.launch-scene{min-height:180px;flex:1;border-color:#b9cb98;box-shadow:0 8px 0 #dce3c228}
.launch-footer{display:flex;justify-content:center;align-items:center;gap:25px;padding:7px 0;flex:none;text-align:center;font-size:14px;color:#7b885f}
.launch-footer strong,.launch-footer b{font-size:28px;color:#496a39;display:block;line-height:1.25}
.launch-footer small{font-size:13px}
.launch-view .primary:not(.mother-btn),.launch-view .secondary:not(.mother-btn){flex:none;width:100%}
.adventure-view{padding-top:8px;padding-bottom:12px}
.adventure-top{display:flex;align-items:center;gap:10px;margin-bottom:11px;min-height:44px}
.back-button{width:42px;height:42px;flex:none;border-radius:50%;border:1px solid #d8dfc6;background:#f5f6e8;padding:11px}
.back-button svg{width:100%;height:100%}
.adventure-top h2{font-size:21px}
.adventure-top small{display:block;font-size:13px;color:#7d8d6b;margin-top:3px}
.day-label{margin-left:auto;white-space:nowrap;border-radius:10px;background:#eeebd0;padding:9px 10px;color:#737b41;font-size:14px}
.adventure-scene{height:clamp(300px,calc(var(--game-h)*.54 - 30px),460px);flex:none;border-radius:18px}
.adventure-overlay{position:absolute;left:8px;right:8px;top:8px;display:flex;align-items:center;gap:8px;z-index:2;pointer-events:none}
.adventure-overlay .back-button{width:44px;height:44px;background:#fffce5ec;pointer-events:auto}
.adventure-overlay .scene-tag{font-size:13px;padding:6px 9px}
.adventure-overlay .day-label{font-size:14px;background:#fff4cceb;margin-left:auto;padding:8px 10px}
.adventure-stats{display:flex;gap:10px;align-items:center;padding:10px 1px}
.adventure-stats .power-inline{font-size:14px;white-space:nowrap}
.power-inline b{font-size:25px;margin-left:5px;color:#617a47}
.health-box{margin-left:auto;flex:1;max-width:176px;font-size:12px;color:#81906f}
.health-box span{display:flex;justify-content:space-between;gap:5px}
.health-track{height:8px;border-radius:8px;background:#e5e8d4;margin-top:6px;overflow:hidden}
.health-track i{display:block;background:#8bb872;height:100%;border-radius:8px;transition:width .4s}
.loot-panel{padding:14px;border:1px solid #dce1c7;border-radius:14px;background:#f1f3e3;margin-bottom:15px}
.loot-panel>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:8px}
.loot-panel h3{font-size:16px}
.loot-panel h3 span{font-size:14px;font-weight:500;color:#7b8e69}
.loot-panel small{font-size:12px;color:#82916f}
.loot-panel .loot-values{justify-content:space-around}
.loot-panel .loot-value{font-size:21px;gap:7px}
.loot-panel .loot-value svg{height:26px;width:26px}
.journey-log{margin-top:15px}
.journey-log h3{font-size:16px;display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:8px}
.journey-log h3 span{font-weight:400;font-size:12px;color:#8a987b}
.log-row{font-size:14px;display:flex;gap:12px;line-height:1.6;padding:9px 0;border-bottom:1px solid #e9eadc}
.log-row b{color:#84946d;font-weight:600;min-width:46px}
.log-row span{color:#67795c}
.recall-button{display:block;margin:12px auto;background:none;color:#859574;font-size:13px;padding:11px;min-height:44px}
.ended-view:not(.mother-view){padding-top:10px;padding-bottom:13px}
.expedition-result{padding:15px 14px 14px;border:1px solid #ddc88d;border-radius:20px;background:radial-gradient(ellipse at 50% 15%,#fff7d8,#f2e6bb 70%);text-align:center;box-shadow:0 4px 0 #d7c79540;position:relative;overflow:hidden}
.expedition-result .eyebrow{letter-spacing:2px;color:#a28b46}
.expedition-result h2{font-size:25px;color:#5d6539;line-height:1.35}
.expedition-result>p{font-size:14px;line-height:1.6;color:#8b8455;margin-top:8px}
.expedition-result>svg,.result-emblem{width:56px;height:56px;margin:0 auto 10px}
.result-days{display:flex;justify-content:center;align-items:baseline;gap:6px;margin:9px 0 7px;font-size:18px;color:#8a7d43}
.result-days .number,.result-days strong{font-size:59px;line-height:1;font-weight:900;color:#5d6e37;font-variant-numeric:tabular-nums;letter-spacing:-2px}
.result-resources{padding:10px 0;border-top:1px dashed #cdbb7a;border-bottom:1px dashed #cdbb7a;margin:12px 0 9px;display:grid;grid-template-columns:auto 1fr;column-gap:7px;row-gap:9px;align-items:center}
.result-resources>p,.result-resources>small{font-size:13px;color:#93824b;margin-bottom:10px;display:block}
.result-resources .loot-values{justify-content:space-around;gap:12px;flex-wrap:wrap;grid-column:1/-1;grid-row:2}
.result-resources .loot-value{font-size:21px;gap:5px;color:#647341}
.result-resources .loot-value svg{width:23px;height:23px}
.result-actions{display:flex;flex-direction:column;gap:9px;margin-top:13px}
.result-actions>*{width:100%;min-height:48px}
.report-latest{display:block;width:100%;border:1px solid #d9d8b6;background:#f4efd3;border-radius:13px;padding:13px 14px;margin-top:13px;text-align:left;color:#728052}
.report-latest strong,.report-latest b{display:block;font-size:15px;color:#576a3e;margin-bottom:5px}
.report-latest p,.report-latest small{font-size:13px;line-height:1.5}
.report-latest .loot-values{margin-top:9px;gap:15px}
.route-choices{display:flex;flex-direction:column;gap:11px;margin-top:20px}
.route-choice{background:#f4f4e6;border:1px solid #dce2c7;border-radius:14px;display:flex;align-items:center;gap:13px;padding:9px;text-align:left;min-height:86px}
.route-choice .route-image{width:82px;height:76px;flex:none;border-radius:10px;overflow:hidden}
.route-image svg{width:100%;height:100%}
.route-choice strong{font-size:18px;display:block}
.route-choice small{display:block;font-size:14px;color:#85936f;margin-top:7px}
.route-choice .route-icon{margin-left:auto;margin-right:7px;width:27px;flex:none}
.route-choice .route-icon svg{width:100%}
dialog{border:1px solid #d6ddbf;background:#fffdf1;border-radius:22px;padding:27px 20px;color:var(--ink);width:calc(100% - 28px);max-width:410px;max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 15px 80px #1e352b44}
dialog::backdrop{background:#263d3580;backdrop-filter:blur(3px)}
dialog h2{font-size:24px;line-height:1.35;margin:5px 0 9px}
dialog>p{font-size:14px;line-height:1.6;color:#7e8c6e}
.close{position:absolute;right:8px;top:6px;font-size:27px;background:none;width:44px;height:44px;color:#899776}
.help-list{list-style:none;padding:0;margin:23px 0}
.help-list li{display:flex;gap:12px;margin:18px 0;align-items:center;font-size:16px}
.help-list b{background:#e9eed5;border-radius:12px;width:37px;height:41px;flex:none;display:flex;align-items:center;justify-content:center;color:#7e965e}
.help-list small{font-size:13px;color:#84946f;display:block;margin-top:5px;line-height:1.45}
.help-note{font-size:13px!important;border-top:1px solid #e3e6d4;padding-top:14px}
.quality-help{margin:16px 0;font-size:15px}
.quality-help summary{cursor:pointer;font-weight:700;min-height:40px;line-height:40px}
.quality-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:6px 0 10px}
.quality-strip>span{display:flex;align-items:center;justify-content:center;min-height:40px;background:var(--quality);border:2px solid #f6ffe7aa;border-radius:8px;box-shadow:0 2px 3px #4a60413b,inset 0 0 8px #ffffff66}
.quality-strip b{color:#24372d;font-size:15px;text-shadow:0 1px 2px #fff8}
.quality-help p{font-size:14px;line-height:1.6;color:#738366}
.dialog-actions{display:flex;gap:12px;margin-top:24px}
.dialog-actions>*{flex:1}
.toast{position:fixed;top:50%;bottom:auto;left:50%;transform:translate(-50%,calc(-50% + 8px));background:#314f3ef0;color:#fffbe9;border:1px solid #657c55;padding:13px 18px;border-radius:12px;max-width:min(350px,calc(100% - 40px));width:max-content;text-align:center;font-size:16px;font-weight:700;line-height:1.5;box-shadow:0 5px 20px #25412b22;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:30}
.toast.show{opacity:1;transform:translate(-50%,-50%)}
.report-list{margin-top:15px}
.report-card{padding:14px 0;border-bottom:1px solid #e6e8d5}
.report-card h3{font-size:16px;margin-bottom:6px}
.report-card p{font-size:13px;color:#81916f;margin-bottom:9px;line-height:1.5}
.empty-note{text-align:center;color:#899a75;font-size:14px;line-height:1.7;padding:34px 10px}
.launch-pulse{animation:launch 1s}
.resource:active{transform:translateY(1px)}
.resource.is-full{background:#f8e2db;box-shadow:inset 0 0 0 1px #d69a87;color:#b54735}
.resource.is-full b{color:#b54735}
.resource.is-full small{color:#ad6854}
.resource.is-gaining b{color:#627f4d}
.resource.is-spending b{color:#986e50}
.resource-popover{position:absolute;top:50%;bottom:auto;left:50%;right:auto;transform:translate(-50%,-50%);width:max-content;max-width:calc(100% - 40px);z-index:45;padding:14px 18px;border:1px solid #d9c383;border-radius:12px;background:#fffae9f7;color:#785f30;box-shadow:0 5px 20px #38512c2a;text-align:center;font-size:16px;font-weight:700;line-height:1.5;pointer-events:none}
.resource-popover:not([hidden]){animation:resource-pop .18s ease-out both}
#forgeHeading{position:relative;isolation:isolate}
#forgeHeading:has(.scene-feedback) .forge-heading>div:first-child{visibility:hidden}
.scene-feedback.upgrade small,.scene-feedback.is-upgrade small{background:#f2e5b9;color:#8e6a35}
.toast.centered{min-width:230px;padding:17px 22px;border:2px solid #dfc477;border-radius:17px;background:#385e3df5;color:#fff5ce;font-size:18px;font-weight:850;box-shadow:0 10px 34px #273f3650}
.scene-foot span:empty{display:none}
.result-crest{display:flex;width:34px;height:34px;margin:0;padding:5px;border-radius:10px;background:#f2db91;border:1px solid #d7bd6f;box-shadow:0 2px 0 #c5b27355;position:absolute;left:12px;top:12px}
.result-crest svg{width:100%;height:100%}
.result-days small{font-size:15px;letter-spacing:1px}
.result-days>b{font-size:19px;color:#8a7d43;letter-spacing:0}
.report-new-record{position:absolute;top:14px;right:4px;z-index:2;display:flex;align-items:center;justify-content:center;width:84px;min-height:42px;gap:0;margin:0;padding:4px 6px;border:3px double #b2803d;border-radius:5px;background:#ffe2a444;color:#a16c30;font-size:15px;line-height:1.1;font-weight:900;white-space:nowrap;text-shadow:0 1px #fff4d2;box-shadow:none;pointer-events:none;transform:rotate(-10deg);animation:report-record-pop .4s ease-out both}
.report-new-record>span{display:none}
.app:lang(en) .report-new-record{font-size:14px;line-height:1.05;white-space:normal}
@keyframes report-record-pop{0%{opacity:0;transform:rotate(-16deg) scale(1.28)}65%{opacity:1;transform:rotate(-10deg) scale(.98)}100%{opacity:1;transform:rotate(-10deg) scale(1)}}
@media(prefers-reduced-motion:reduce){.report-new-record{animation:none}}
.result-summary{display:flex;align-items:center;justify-content:center;gap:22px;font-size:12px;color:#99884b;margin:8px 0 0;line-height:1.4}
.result-summary b{font-size:15px;color:#6e7943;margin-left:4px}
.result-resources h3{font-size:14px;font-weight:650;color:#92814a;margin-bottom:12px;grid-column:1;grid-row:1;line-height:1.3;margin:0;text-align:left}
.result-resources>p{margin:0;font-size:12px;grid-column:2;grid-row:1;display:block;line-height:1.3;text-align:right}
.slot-freed{display:flex;align-items:center;justify-content:center;gap:7px;color:#627c42;font-size:13px;padding-top:1px;line-height:1.3}
.slot-freed svg{width:20px;height:20px;flex:none}
.report-latest>span{font-size:13px;color:#89936e}
.report-latest b{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:5px 0 0}
.report-latest b svg{width:20px;height:20px;flex:none}
.ended-view:not(.mother-view) .adventure-top{margin-bottom:9px}
.expedition-result>.eyebrow{font-size:12px;line-height:1.2;margin:1px 0 5px;letter-spacing:1px}
.expedition-result>.result-reason{font-size:13px;line-height:1.45;margin:6px 0 0}
@keyframes resource-pop{from{opacity:0;transform:translate(-50%,calc(-50% + 8px)) scale(.98)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes balance-arc{0%{opacity:0;transform:translate(-50%,1px) scale(.92)}18%{opacity:1;transform:translate(calc(-50% - 2px),-1px) scale(1)}46%{opacity:1;transform:translate(-50%,-1.5px)}80%{opacity:.8;transform:translate(calc(-50% + var(--drift)),1px)}100%{opacity:0;transform:translate(calc(-50% + var(--drift)*1.5),5px)}}
@keyframes building-rebound{0%,100%{transform:scale(1)}20%{transform:scale(1.05,.91)}47%{transform:scale(.96,1.08)}72%{transform:scale(1.02,.98)}}
@keyframes construction-start-icon{0%,100%{transform:scale(1);filter:brightness(1)}22%{transform:scale(1.055,.95);filter:brightness(1.12)}52%{transform:scale(.98,1.045);filter:brightness(1.06)}76%{transform:scale(1.015,.99)}}
@keyframes construction-start-edge{0%,100%{box-shadow:0 0 0 0 #d7b96800}28%{box-shadow:0 0 0 3px #d7b96880}65%{box-shadow:0 0 0 1px #d7b96838}}
@keyframes upgrade-ring{0%{opacity:0;transform:scale(.68)}18%{opacity:1}72%{opacity:.65}100%{opacity:0;transform:scale(1.4)}}
@keyframes upgrade-stars{0%{opacity:0;transform:translateY(6px)}22%,65%{opacity:1}100%{opacity:0;transform:translateY(-12px)}}
@keyframes upgrade-label{0%{opacity:0;transform:translateY(5px) scale(.96)}20%,78%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-3px)}}
@keyframes upgrade-level{0%,100%{filter:brightness(1)}35%{filter:brightness(1.2)}}
@keyframes slot-unlocked{0%,100%{box-shadow:none}35%,68%{box-shadow:0 0 0 4px #f5d77a,0 0 18px #f3d271}}
@keyframes merge{0%,100%{transform:scale(1)}40%{transform:scale(1.14);filter:brightness(1.14)}}
@keyframes spawn{0%{transform:scale(.3);opacity:.2}70%{transform:scale(1.06)}100%{transform:scale(1);opacity:1}}
@keyframes launch{0%,100%{box-shadow:0 0 0 0 #e7c56c00}40%{box-shadow:0 0 0 5px #e7c56c55}}
@keyframes power-gain{0%,100%{transform:scale(1)}30%{transform:scale(1.2);background:#fff2a7;color:#86642d}60%{transform:scale(.98)}}
@keyframes feedback-pop{0%{opacity:0;transform:translateX(-7px) scale(.97)}16%{opacity:1;transform:translateX(2px) scale(1.015)}28%,79%{opacity:1;transform:translateX(0) scale(1)}100%{opacity:0;transform:translateX(0) scale(1)}}
@keyframes last-call{0%,100%{box-shadow:0 0 0 1px #deb461}50%{box-shadow:0 0 0 4px #deb46155}}
@keyframes launch-title{from{opacity:0;transform:translateY(10px) scale(.92)}to{opacity:1;transform:none}}
@keyframes choice-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes choice-breathe{0%,100%{border-color:#d4d8ba;box-shadow:0 4px 0 #dadcc3}50%{border-color:#b9c78e;box-shadow:0 4px 0 #dadcc3,0 0 0 2px #e3d99545}}
@keyframes notice-guide{0%,100%{outline-color:#d6ae5880}50%{outline-color:#bd9140}}
@keyframes merge-tier{0%,100%{transform:scale(1);filter:brightness(1)}30%{transform:translateY(-3px) scale(1.18);filter:brightness(1.22)}65%{transform:scale(.98)}}
@keyframes merge-ring{0%{opacity:0;transform:scale(.82)}18%{opacity:.95}100%{opacity:0;transform:scale(1.23)}}
@media(min-width:650px){body{display:grid;place-items:center;min-height:100dvh;padding:16px 0;background:radial-gradient(ellipse at top,#eff0df,#cbd9c7)}
.app{--game-h:min(900px,calc(100dvh - 32px));height:var(--game-h);width:min(430px,max(320px,calc((100dvh - 32px)*.52)));border:1px solid #b6c7a8;border-radius:25px}}
@media(max-height:710px){.hud{min-height:44px;padding-top:4px;padding-bottom:4px}
.resource{min-height:34px}
.squad-bar{padding-bottom:6px}
.strip-title,.queue-header{min-height:18px;margin-bottom:3px}
.squad-slot{height:48px}
.bottom-nav{height:calc(50px + env(safe-area-inset-bottom,0px))}
.view.forge-view{padding-top:6px;padding-bottom:5px}
.forge-panel{padding-top:7px}
.forge-heading{min-height:44px;margin-bottom:6px}
.forge-heading h2{font-size:19px}
.forge-heading p{font-size:12px}
.remaining b{font-size:26px}
.remaining{padding:4px 9px}
.board{gap:5px;padding:6px}
.forge-progress{margin-top:5px}
.scene-head{top:7px}
.scene-foot{bottom:6px}
.power-badge strong{font-size:25px}
.draft-panel{padding-top:6px;padding-bottom:40px}
.draft-title{margin-bottom:11px}
.draft-title h2{font-size:20px}
.choice{min-height:158px;padding:10px 3px}
.choice-art{width:46px;height:46px}
.choice b{margin-top:9px}
.camp-mode .hud{padding-top:calc(4px + env(safe-area-inset-top,0px))}
.camp-illustration{height:clamp(370px,calc(var(--game-h)*.58 + 10px),420px)}
.launch-heading{padding-top:5px}
.launch-heading h2{font-size:30px}
.launch-view{gap:9px}
.launch-footer strong,.launch-footer b{font-size:25px}
.adventure-scene{height:clamp(280px,calc(var(--game-h)*.54 - 30px),360px)}
.adventure-stats{padding-top:8px;padding-bottom:8px}
.scene-feedback{bottom:6px}}
@container game (max-width:360px){.hud{padding-left:9px;padding-right:9px;gap:5px}
.resource{padding-left:4px;padding-right:4px;gap:2px}
.resource svg{width:16px;height:16px}
.resource b{font-size:14px}
.resource small{font-size:10px}
.squad-bar{padding-left:9px;padding-right:9px}
.squad-slots{gap:4px}
.squad-slot b{font-size:12px}
.squad-slot small{font-size:11px}
.view,.view.forge-view{padding-left:10px;padding-right:10px}
.board{--tile:clamp(48px,calc((var(--game-h) - 150px)/10),64px)}
.forge-heading p{font-size:11px}
.team-open{padding:10px;gap:9px}
.team-art{width:65px;height:78px}
.team-info h3{font-size:15px}
.team-info .status{font-size:11px}
.team-reward{padding:9px 10px}
.team-reward .loot-values{gap:8px}
.team-reward>span{font-size:11px}
.building:not(.camp-building-card){padding:10px}
.building:not(.camp-building-card) h3{font-size:16px}
.building-icon{width:34px;height:34px}
.building-top{gap:6px}
.building-effect{font-size:13px}
.adventure-stats{gap:7px}
.adventure-stats .power-inline{font-size:13px}
.power-inline b{font-size:22px}
.health-box{font-size:11px}
.journey-log h3 span{font-size:11px}
.choice b{font-size:13px}
.choice small{font-size:11px}
.scene-feedback{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;right:114px;padding:2px 4px 2px 7px}
.scene-feedback strong{font-size:18px}
.scene-feedback small{font-size:11px;padding:3px 5px}}
@media(max-height:610px){.scene-shell{min-height:110px}
.departure-view:not(.mother-view){gap:8px;padding-top:7px;padding-bottom:8px}.departure-heading h2{font-size:21px}.departure-scene{min-height:155px}.departure-choice{min-height:68px;gap:4px}.departure-controls{gap:8px}.departure-controls .primary:not(.mother-btn){min-height:44px}
.board{--tile:48px;gap:5px;padding:6px}
.forge-heading p{display:none}
.forge-heading{min-height:42px}
.remaining b{font-size:24px}
.squad-slot{height:44px}
.bottom-nav{height:calc(48px + env(safe-area-inset-bottom,0px))}
.view.forge-view{padding-top:5px;padding-bottom:4px}
.draft-title .eyebrow{display:none}
.choice{min-height:145px}
.choice-art{width:42px;height:42px}
.launch-heading h2{font-size:28px}
.launch-heading p{font-size:13px}
.launch-footer{padding:3px 0;gap:20px}
.launch-scene{min-height:170px}
.adventure-view{padding-top:5px;padding-bottom:5px}
.adventure-scene{height:280px}
.adventure-stats{padding-top:6px;padding-bottom:6px}
.adventure-view .loot-panel{padding:10px;margin-bottom:10px}
.adventure-view .loot-panel>div:first-child{margin-bottom:7px}
.adventure-view .loot-panel h3{font-size:14px}
.adventure-view .loot-panel .loot-value{font-size:20px}
.expedition-result{padding-top:18px}
.result-days .number,.result-days strong{font-size:54px}
.forge-view .forge-progress{display:none}
.ended-view:not(.mother-view){padding-top:8px}
.result-actions{margin-top:10px}
.scene-feedback{bottom:6px}}
@media(max-height:520px){html,body{overflow:auto;min-height:100%}
.app{height:auto;min-height:100dvh;overflow:visible}
.view{overflow:visible;flex:none}
.view.forge-view{overflow:visible;display:block}
.forge-view .scene-shell{height:160px}
.board{--tile:48px}
.launch-view{min-height:470px}
.launch-scene{flex:none;height:250px}
.bottom-nav{position:sticky;bottom:0}
.camp-illustration{height:370px}
.adventure-scene{height:250px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.scene-feedback{opacity:1}}
[data-app-boot] body{visibility:hidden}
.app:lang(en) .choice b span{display:block}
.app:lang(en) .choice b{font-size:13px;line-height:1.2}
.app:lang(en) .forge-heading h2{font-size:18px}
.app:lang(en) .scene-feedback{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;right:114px}
.app:lang(en) .scene-feedback strong{font-size:18px}
.app:lang(en) .building-open>span:last-child{min-width:0}
.app:lang(en) .building:not(.camp-building-card) h3{font-size:16px;line-height:1.15}
