:root{color-scheme:light;font-family:Noto Sans SC,PingFang SC,Microsoft YaHei,Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:16px;font-weight:700;color:#3c2b20;background:#f6e8bd}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}button{border:0;font:inherit}.game-shell{position:relative;width:100%;height:100%;background:#f6e8bd}.game-shell:after{position:absolute;top:0;right:0;bottom:0;left:0;background:repeating-linear-gradient(8deg,rgb(63 45 34 / 5%) 0 1px,transparent 1px 18px),repeating-linear-gradient(96deg,rgb(63 45 34 / 4%) 0 1px,transparent 1px 24px);content:"";mix-blend-mode:multiply;pointer-events:none}.game-canvas{display:block;width:100%;height:100%;outline:none}.home-screen{position:absolute;top:0;right:0;bottom:0;left:0;z-index:9;display:grid;align-items:center;padding:56px;overflow:hidden;background-color:#2f2118;background-image:linear-gradient(90deg,#2f2118e5,#2f211894 36%,#2f21182e 68%),linear-gradient(0deg,#2f21187f,#2f21181a 46%,#2f211870),var(--home-cover);background-position:center;background-size:cover;color:#fff7cf;pointer-events:auto;transition:opacity .24s ease,visibility .24s ease,transform .48s ease}.home-screen:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:0;background:repeating-linear-gradient(6deg,rgb(255 244 201 / 8%) 0 1px,transparent 1px 18px),radial-gradient(circle at 74% 34%,rgb(255 211 66 / 16%),transparent 34%),radial-gradient(circle at 18% 78%,rgb(114 205 247 / 13%),transparent 31%);content:"";pointer-events:none}.home-screen.is-hidden{visibility:hidden;opacity:0;pointer-events:none;transform:scale(1.015)}.home-stage{position:relative;z-index:1;display:grid;width:min(630px,calc(100vw - 48px));gap:18px;margin-left:min(7vw,92px);text-shadow:0 3px 0 #2f2118,0 12px 34px rgb(0 0 0 / 42%)}.home-kicker{width:fit-content;margin:0;padding:8px 12px;transform:rotate(-.4deg);border:3px solid #3f2d22;border-radius:999px;color:#2e2119;background:#ffd342;box-shadow:3px 4px #3f2d22;font-size:.82rem;font-weight:950;line-height:1;text-shadow:none}.home-stage h1{max-width:11em;margin:0;color:#fff4c9;font-size:4.2rem;font-weight:950;letter-spacing:0;line-height:.96}.home-copy{max-width:520px;margin:0;color:#ffeeb2;font-size:1.18rem;font-weight:850;line-height:1.42}.home-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.start-game-button,.continue-game-button{justify-self:start;min-width:176px;min-height:54px;padding:0 26px;transform:rotate(-.45deg);border:3px solid #3f2d22;border-radius:8px 11px 7px 10px;color:#2e2119;background:#ff8a5f;box-shadow:5px 6px #3f2d22,0 18px 36px #00000042;cursor:pointer;font-size:1.12rem;font-weight:950;transition:transform .13s ease,background .13s ease,box-shadow .13s ease}.start-game-button:hover,.start-game-button:focus-visible,.continue-game-button:hover,.continue-game-button:focus-visible{transform:translateY(-2px) rotate(-.45deg);background:#ffd342;box-shadow:5px 7px #3f2d22,0 20px 40px #0000004d;outline:none}.continue-game-button{background:#72cdf7}.continue-game-button.is-hidden{display:none}.home-meta{display:flex;max-width:520px;flex-wrap:wrap;gap:8px}.home-meta span{padding:7px 10px;border:2px solid rgb(255 244 201 / 82%);border-radius:999px;color:#fff7cf;background:#2f2118a3;box-shadow:0 8px 18px #0000002e;font-size:.76rem;line-height:1}.hud{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;pointer-events:none}.resource-bar{position:absolute;top:12px;left:50%;display:flex;max-width:min(860px,calc(100vw - 28px));min-height:38px;transform:translate(-50%) rotate(-.18deg);align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;padding:6px;border:3px solid #3f2d22;border-radius:8px 11px 7px 10px;background:#fff4c9;box-shadow:3px 4px #3f2d22,0 12px 30px #3f2d2229}.resource-pill{display:grid;min-width:78px;grid-template-columns:auto 1fr;align-items:center;gap:6px;padding:6px 8px;border:2px solid #3f2d22;border-radius:8px 6px 9px 7px;color:#3c2b20;background:#ffeeb2}.resource-pill:nth-child(2n){transform:rotate(.45deg)}.resource-pill:nth-child(odd){transform:rotate(-.3deg)}.resource-pill span:first-child{display:grid;width:23px;height:23px;place-items:center;border:2px solid #3f2d22;border-radius:50% 46% 53% 44%;color:#2f2118;font-size:.76rem;font-weight:950;line-height:1}.resource-pill.credits span:first-child{background:#ffd342}.resource-pill.wood span:first-child{background:#d79a53}.resource-pill.stone span:first-child{background:#c0a27c}.resource-pill.research span:first-child{background:#72cdf7}.resource-pill.food span:first-child{background:#a8df62}.resource-pill.power span:first-child{background:#80df65}.resource-pill.workers span:first-child{background:#72cdf7}.resource-pill.threat span:first-child{background:#f26955}.resource-pill.shortage{background:#ffd8ca}.resource-value{display:flex;flex-direction:column;line-height:1.04}.resource-value strong{color:#2e2119;font-size:.92rem;font-weight:950}.resource-value small{color:#6c513b;font-size:.62rem}.build-dock{position:absolute;bottom:18px;left:50%;display:grid;width:min(1040px,calc(100vw - 560px));min-width:850px;grid-template-columns:minmax(310px,5fr) minmax(240px,4fr) minmax(130px,2fr) minmax(76px,1fr);gap:10px;transform:translate(-50%) rotate(-.1deg);pointer-events:auto}.build-group{display:grid;gap:6px;padding:8px;border:3px solid #3f2d22;border-radius:8px 11px 7px 10px;background:#fff4c9;box-shadow:3px 4px #3f2d22,0 12px 28px #3f2d2226}.build-group h3{margin:0;color:#6c513b;font-size:.64rem;font-weight:950;letter-spacing:0;line-height:1}.build-group-grid{display:grid;gap:7px}.build-group:nth-child(1) .build-group-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.build-group:nth-child(2) .build-group-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.build-group:nth-child(3) .build-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.build-group:nth-child(4) .build-group-grid{grid-template-columns:minmax(0,1fr)}.build-button{display:grid;min-height:74px;grid-template-rows:28px auto 15px;align-items:center;justify-items:center;gap:3px;padding:7px 5px 6px;border:2px solid #3f2d22;border-radius:8px 11px 7px 10px;color:#3c2b20;background:#fff0b8;box-shadow:2px 3px #3f2d22;cursor:pointer;transition:transform .12s ease,background .12s ease,box-shadow .12s ease}.build-button:nth-child(2n){transform:rotate(.65deg)}.build-button:nth-child(odd){transform:rotate(-.55deg)}.build-button:hover{background:#fff7d5;box-shadow:2px 3px #3f2d22,0 8px 18px #3f2d2224}.build-button.selected{background:#ffd342;box-shadow:2px 3px #3f2d22}.build-button:disabled{transform:none;opacity:.46;cursor:not-allowed}.build-button.cannot-afford{opacity:.62;background:#d8c48d;cursor:help}.build-button.cannot-afford:hover{background:#e7d59f;box-shadow:2px 3px #3f2d22,0 8px 18px #3f2d221f}.build-button.selected.cannot-afford{opacity:.8;background:#e4c75f}.build-icon{display:grid;width:28px;height:28px;place-items:center;border:2px solid #3f2d22;border-radius:46% 54% 48% 52%;color:#2e2119;font-size:.78rem;font-weight:950;line-height:1}.build-button[data-kind=hab] .build-icon{background:#72cdf7}.build-button[data-kind=generator] .build-icon{background:#80df65}.build-button[data-kind=pylon] .build-icon{background:#72cdf7}.build-button[data-kind=farm] .build-icon{background:#a8df62}.build-button[data-kind=sawmill] .build-icon{background:#d79a53}.build-button[data-kind=quarry] .build-icon{background:#d0a06a}.build-button[data-kind=workshop] .build-icon{background:#72cdf7}.build-button[data-kind=barracks] .build-icon{background:#ff8a5f}.build-button[data-kind=wall] .build-icon{background:#e4b060}.build-button[data-kind=turret] .build-icon{background:#ffd342}.build-button[data-kind=sniper] .build-icon{background:#f4d77a}.build-button[data-kind=trap] .build-icon{background:#f26955}.build-name{overflow:hidden;max-width:100%;color:#2e2119;font-size:.74rem;font-weight:950;line-height:1.08;text-align:center;text-overflow:ellipsis;white-space:nowrap}.build-cost{color:#76563b;font-size:.58rem;line-height:1}.command-panel{position:absolute;top:86px;left:18px;display:grid;width:332px;gap:9px;padding:12px;transform:rotate(.18deg);border:3px solid #3f2d22;border-radius:10px 7px 11px 8px;background:#fff4c9;box-shadow:4px 5px #3f2d22,0 14px 34px #3f2d222e;pointer-events:auto}.wave-row{display:grid;grid-template-columns:1fr;gap:10px}.wave-title{margin:0;color:#2e2119;font-size:1rem;font-weight:950;line-height:1.15}.wave-subtitle{margin:3px 0 0;color:#6c513b;font-size:.72rem;line-height:1.22}.control-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.pause-button,.launch-button,.scout-button,.flare-button,.rally-button,.recruit-button,.overdrive-button,.repair-button,.demolish-button,.building-upgrade-button,.building-repair-button,.auto-repair-button,.help-button,.restart-button,.share-button{min-height:36px;border:2px solid #3f2d22;border-radius:8px 10px 7px 11px;color:#2e2119;cursor:pointer;box-shadow:2px 3px #3f2d22;font-size:.78rem}.pause-button{background:#b6d9e8}.help-button{background:#ffeeb2}.launch-button{background:#ff8a5f}.scout-button{background:#ffe070}.scout-button.cannot-afford{background:#d8c48d}.flare-button{background:#9bd9f4}.flare-button.active{background:#ffd342}.flare-button.cannot-afford{background:#d8c48d}.rally-button{background:#7fc8ef}.rally-button.active{background:#ffe070}.recruit-button{background:#9fdc7a}.recruit-button.cannot-afford{background:#d8c48d}.overdrive-button{background:#ffd166}.overdrive-button.active{background:#7fc8ef}.overdrive-button.cannot-afford{background:#d8c48d}.repair-button{background:#b7dfa5}.repair-button.cannot-afford{background:#d8c48d}.demolish-button{background:#f5b36f}.demolish-button.active{background:#f26955}.building-upgrade-button{background:#ffd342}.building-repair-button{background:#b7dfa5}.auto-repair-button{background:#ffeeb2}.auto-repair-button.active{background:#80df65}.building-upgrade-button.cannot-afford,.building-repair-button.cannot-afford{background:#d8c48d}.share-button{position:absolute;right:16px;bottom:18px;z-index:5;min-width:118px;padding:0 12px;transform:rotate(.25deg);background:#fff4c9;pointer-events:auto}.pause-button:hover,.launch-button:hover,.scout-button:hover,.flare-button:hover,.rally-button:hover,.recruit-button:hover,.overdrive-button:hover,.repair-button:hover,.demolish-button:hover,.building-upgrade-button:hover,.building-repair-button:hover,.auto-repair-button:hover,.help-button:hover,.restart-button:hover,.share-button:hover{transform:translateY(-1px)}.share-button:hover{transform:translateY(-1px) rotate(.25deg)}.pause-button:disabled,.launch-button:disabled,.scout-button:disabled,.flare-button:disabled,.rally-button:disabled,.recruit-button:disabled,.overdrive-button:disabled,.repair-button:disabled,.demolish-button:disabled,.building-upgrade-button:disabled,.building-repair-button:disabled,.auto-repair-button:disabled,.share-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.wave-compass{display:inline-flex;width:fit-content;max-width:100%;align-items:center;gap:7px;padding:6px 9px;border:2px solid #3f2d22;border-radius:999px;color:#3c2b20;background:#ffeeb2;font-size:.72rem;line-height:1}.wave-compass span{display:grid;width:22px;height:22px;place-items:center;border:2px solid #3f2d22;border-radius:50%;background:#f26955;color:#2e2119;font-size:.86rem;font-weight:950}.health-track,.progress-track{overflow:hidden;height:12px;border:2px solid #3f2d22;border-radius:999px;background:#f6df9a}.health-fill{width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#80df65,#ffd342,#f26955);transform-origin:left}.progress-fill{width:0%;height:100%;border-radius:inherit;background:repeating-linear-gradient(-45deg,#f26955 0,#f26955 9px,#ffd342 9px,#ffd342 18px);transform-origin:left}.mission-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.mission-item{display:grid;min-height:40px;grid-template-columns:20px 1fr;align-items:center;gap:6px;padding:6px;border:2px solid #3f2d22;border-radius:7px 9px 6px 8px;background:#fff0b8}.mission-item span{display:grid;width:20px;height:20px;place-items:center;border:2px solid #3f2d22;border-radius:50%;background:#ffe070;line-height:1}.mission-item strong{display:block;color:#2e2119;font-size:.62rem;line-height:1.05}.mission-item small{display:block;overflow:hidden;color:#6c513b;font-size:.54rem;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.mission-item.completed{background:#dff1b7}.mission-item.completed span{background:#80df65}.building-action-panel{display:grid;gap:8px;padding:7px;border:2px solid #3f2d22;border-radius:8px 10px 7px 9px;background:#fff0b8}.building-action-panel.empty{opacity:.82}.building-action-kicker{margin:0 0 3px;color:#f26955;font-size:.58rem;font-weight:950;line-height:1}.building-action-panel h3{margin:0;color:#2e2119;font-size:.82rem;font-weight:950;line-height:1.08}.building-action-panel small{display:block;margin-top:3px;color:#6c513b;font-size:.62rem;line-height:1.2}.building-action-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.building-action-buttons button{min-height:32px;padding:0 5px;font-size:.66rem;line-height:1.05}.event-feed{display:grid;gap:6px;min-height:42px}.event-line{min-height:18px;color:#4f3828;font-size:.74rem;line-height:1.2}.tactical-sidebar{position:absolute;top:86px;right:16px;display:grid;width:238px;gap:10px;pointer-events:auto}.sidebar-card{display:grid;gap:8px;padding:9px;border:3px solid #3f2d22;border-radius:8px 11px 7px 10px;color:#2e2119;background:#fff4c9;box-shadow:4px 5px #3f2d22,0 14px 32px #3f2d2229}.minimap-panel{transform:rotate(.22deg)}.research-panel{transform:rotate(-.18deg)}.codex-panel{transform:rotate(.14deg)}.defender-roster-panel{transform:rotate(-.12deg)}.sidebar-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;line-height:1}.sidebar-title span{font-size:.76rem;font-weight:950}.sidebar-title small{color:#6c513b;font-size:.58rem}.minimap{display:block;width:100%;max-height:168px;height:auto;aspect-ratio:1;border:2px solid #3f2d22;border-radius:7px 9px 6px 8px;background:#f5dfad}.research-head{display:grid;justify-items:start;gap:5px;color:#2e2119;font-size:.76rem;line-height:1}.research-head strong{display:grid;min-width:38px;height:25px;place-items:center;border:2px solid #3f2d22;border-radius:7px 9px 6px 8px;background:#72cdf7;font-size:.76rem}.selection-box{position:fixed;z-index:7;display:none;border:2px solid #2f91c9;border-radius:6px 8px 5px 7px;background:#72cdf72e;box-shadow:0 0 0 2px #fff4c97a inset;pointer-events:none}.selection-box.visible{display:block}.research-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.research-button{display:grid;min-height:46px;grid-template-columns:22px 1fr auto;align-items:center;justify-items:start;gap:5px;padding:6px;border:2px solid #3f2d22;border-radius:8px 10px 7px 9px;color:#2e2119;background:#fff0b8;box-shadow:3px 4px #3f2d22;cursor:pointer}.research-button:hover{transform:translateY(-1px);background:#fff7d5}.research-button:disabled{cursor:not-allowed;opacity:.58;transform:none}.research-button.researched{background:#80df65;opacity:1}.research-button.cannot-afford:not(.researched){background:#d8c48d}.research-button span{display:grid;width:22px;height:22px;place-items:center;border:2px solid #3f2d22;border-radius:50%;background:var(--research-color, #72cdf7);font-size:.68rem;font-weight:950}.research-button strong{overflow:hidden;max-width:100%;font-size:.64rem;line-height:1.05;text-align:left;text-overflow:ellipsis;white-space:nowrap}.research-button small{color:#6c513b;font-size:.52rem;line-height:1}.codex-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.codex-card{display:grid;min-height:42px;grid-template-columns:20px 1fr;align-items:center;gap:5px;padding:6px;border:2px solid #3f2d22;border-radius:7px 9px 6px 8px;color:#2e2119;background:#fff0b8;box-shadow:2px 3px #3f2d22;cursor:help;text-align:left}.codex-card span{grid-row:span 2;display:grid;width:20px;height:20px;place-items:center;border:2px solid #3f2d22;border-radius:50%;background:var(--codex-color, #9ce35f);font-size:.64rem;font-weight:950;line-height:1}.codex-card strong{overflow:hidden;max-width:100%;font-size:.56rem;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}.codex-card small{color:#6c513b;font-size:.48rem;line-height:1}.codex-card.unknown{opacity:.56;background:#d8c48d}.defender-roster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.defender-role-pill{display:grid;min-height:36px;grid-template-columns:auto 1fr;align-items:center;gap:5px;padding:5px;border:2px solid #3f2d22;border-radius:7px 9px 6px 8px;background:#fff0b8}.defender-role-pill span{display:grid;width:22px;height:22px;place-items:center;border:2px solid #3f2d22;border-radius:50%;background:var(--role-color, #72cdf7);font-size:.62rem;line-height:1}.defender-role-pill strong{font-size:.72rem;text-align:center}.reticle{position:absolute;inset:auto 50% 50% auto;display:none;width:14px;height:14px;transform:translate(50%,50%);border:2px solid rgb(242 105 85 / 74%);border-radius:50%}.banner{position:absolute;top:78px;left:50%;min-width:min(440px,calc(100vw - 32px));transform:translate(-50%) rotate(-.45deg);padding:11px 15px;border:3px solid #3f2d22;border-radius:9px 7px 12px 8px;color:#2e2119;background:#ffd342;box-shadow:4px 5px #3f2d22,0 16px 34px #3f2d222e;font-size:.88rem;line-height:1.25;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease}.banner.visible{transform:translate(-50%) translateY(4px) rotate(-.45deg);opacity:1}.game-tooltip{position:absolute;z-index:8;display:block;width:max-content;max-width:min(430px,calc(100vw - 28px));padding:11px 14px;transform:translateY(4px) rotate(-.18deg);border:3px solid #3f2d22;border-radius:8px 10px 7px 11px;color:#2e2119;background:#fff4c9;box-shadow:4px 5px #3f2d22,0 14px 30px #3f2d2238;font-size:.82rem;font-weight:850;line-height:1.38;opacity:0;pointer-events:none;transition:opacity .11s ease,transform .11s ease}.game-tooltip.visible{transform:translateY(0) rotate(-.18deg);opacity:1}.tutorial-panel{position:absolute;top:0;right:0;bottom:0;left:0;display:none;place-items:center;padding:24px;background:#3f2d223d;pointer-events:auto;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.tutorial-panel.visible{display:grid}.tutorial-card{display:grid;width:min(620px,calc(100vw - 48px));gap:14px;padding:18px;transform:rotate(-.18deg);border:3px solid #3f2d22;border-radius:9px 12px 8px 11px;color:#2e2119;background:#fff4c9;box-shadow:6px 7px #3f2d22,0 18px 46px #3f2d2247}.tutorial-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.tutorial-head p{margin:0;color:#f26955;font-size:.76rem;font-weight:950;line-height:1}.tutorial-head button{min-height:36px;padding:0 14px;border:2px solid #3f2d22;border-radius:8px 10px 7px 11px;color:#2e2119;background:#ff8a5f;box-shadow:2px 3px #3f2d22;cursor:pointer}.tutorial-card h2{margin:0;font-size:1.35rem;font-weight:950;letter-spacing:0;line-height:1.12}.tutorial-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tutorial-steps div{display:grid;align-content:start;gap:8px;min-height:132px;padding:12px;border:2px solid #3f2d22;border-radius:8px 11px 7px 10px;background:#fff0b8}.tutorial-steps strong{display:grid;width:30px;height:30px;place-items:center;border:2px solid #3f2d22;border-radius:50%;background:#ffd342;font-size:.86rem}.tutorial-steps span{color:#4f3828;font-size:.76rem;line-height:1.34}.tutorial-note{margin:0;color:#6c513b;font-size:.76rem;line-height:1.35}.upgrade-panel{position:absolute;top:0;right:0;bottom:0;left:0;display:none;place-items:center;padding:24px;background:#3f2d2247;pointer-events:auto;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.upgrade-panel.visible{display:grid}.upgrade-card{display:grid;width:min(720px,calc(100vw - 48px));gap:13px;padding:18px;transform:rotate(-.25deg);border:3px solid #3f2d22;border-radius:9px 12px 8px 11px;color:#2e2119;background:#fff4c9;box-shadow:6px 7px #3f2d22,0 18px 46px #3f2d2247}.upgrade-kicker{margin:0;color:#f26955;font-size:.76rem;font-weight:950;line-height:1}.upgrade-card h2{margin:0;font-size:1.28rem;font-weight:950;letter-spacing:0;line-height:1.15}.upgrade-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.upgrade-choice{display:grid;min-height:142px;align-content:start;gap:8px;padding:12px;border:3px solid #3f2d22;border-radius:8px 11px 7px 10px;color:#2e2119;background:#fff0b8;box-shadow:4px 5px #3f2d22;cursor:pointer;text-align:left}.upgrade-choice:hover{transform:translateY(-2px);background:#fff7d5}.upgrade-icon{display:grid;width:34px;height:34px;place-items:center;border:2px solid #3f2d22;border-radius:50%;background:var(--upgrade-color, #ffd342);font-size:.86rem;font-weight:950}.upgrade-choice strong{font-size:.96rem;font-weight:950;line-height:1.08}.upgrade-choice small{color:#6c513b;font-size:.72rem;line-height:1.28}.end-screen{position:absolute;top:0;right:0;bottom:0;left:0;display:none;place-items:center;padding:24px;background:#3f2d226b;pointer-events:auto;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.end-card{display:grid;width:min(440px,calc(100vw - 48px));gap:13px;padding:22px;transform:rotate(-.35deg);border:3px solid #3f2d22;border-radius:9px 12px 8px 11px;color:#2e2119;background:#fff4c9;box-shadow:6px 7px #3f2d22,0 18px 46px #3f2d2247;text-align:center}.end-card h1{margin:0;font-size:1.8rem;font-weight:950;letter-spacing:0}.end-card p{margin:0;color:#6c513b;line-height:1.45}.restart-button{justify-self:center;min-width:132px;background:#80df65}@media(max-height:820px)and (min-width:900px){.resource-bar{top:8px;max-width:min(680px,calc(100vw - 420px));min-height:34px;gap:4px;padding:4px}.resource-pill{min-width:72px;gap:5px;padding:4px 6px}.resource-pill span:first-child{width:20px;height:20px;font-size:.68rem}.resource-value strong{font-size:.82rem}.resource-value small{font-size:.56rem}.command-panel{top:76px;left:16px;width:304px;gap:7px;padding:9px}.wave-row{gap:7px}.wave-title{font-size:.92rem}.wave-subtitle{font-size:.66rem}.control-buttons{gap:5px}.pause-button,.launch-button,.scout-button,.flare-button,.rally-button,.recruit-button,.overdrive-button,.repair-button,.demolish-button,.building-upgrade-button,.building-repair-button,.auto-repair-button,.help-button{min-height:31px;font-size:.7rem}.wave-compass{padding:5px 7px;font-size:.66rem}.wave-compass span{width:19px;height:19px;font-size:.76rem}.health-track,.progress-track{height:10px}.mission-panel{gap:5px}.mission-item{min-height:34px;grid-template-columns:18px 1fr;gap:5px;padding:5px}.mission-item span{width:18px;height:18px;font-size:.66rem}.mission-item strong{font-size:.56rem}.mission-item small{font-size:.48rem}.building-action-panel{gap:6px;padding:6px}.building-action-kicker{font-size:.52rem}.building-action-panel h3{font-size:.72rem}.building-action-panel small{font-size:.56rem}.building-action-buttons{gap:5px}.building-action-buttons button{min-height:29px;padding:0 4px;font-size:.58rem}.event-feed{gap:4px;min-height:36px}.event-line{min-height:15px;font-size:.66rem;line-height:1.12}.tactical-sidebar{top:78px;right:14px;width:222px;gap:8px}.sidebar-card{gap:7px;padding:7px}.sidebar-title span{font-size:.7rem}.sidebar-title small{font-size:.52rem}.minimap{max-height:150px}.research-head{gap:4px;font-size:.68rem}.research-head strong{min-width:32px;height:22px;font-size:.68rem}.research-grid{gap:5px}.research-button{min-height:39px;grid-template-columns:19px 1fr auto;gap:4px;padding:4px}.research-button span{width:19px;height:19px;font-size:.56rem}.research-button strong{font-size:.56rem}.research-button small{font-size:.46rem}.codex-grid{gap:5px}.codex-card{min-height:36px;grid-template-columns:18px 1fr;gap:4px;padding:4px}.codex-card span{width:18px;height:18px;font-size:.54rem}.codex-card strong{font-size:.5rem}.codex-card small{font-size:.44rem}.defender-roster{gap:5px}.defender-role-pill{min-height:32px;gap:4px;padding:4px}.defender-role-pill span{width:18px;height:18px;font-size:.52rem}.defender-role-pill strong{font-size:.66rem}.build-dock{right:272px;bottom:10px;left:348px;width:auto;min-width:0;grid-template-columns:minmax(255px,5fr) minmax(210px,4fr) minmax(112px,2fr) minmax(66px,1fr);gap:8px;transform:rotate(-.1deg)}.build-group{gap:5px;padding:6px}.build-group h3{font-size:.56rem}.build-group-grid{gap:5px}.build-button{min-height:62px;grid-template-rows:23px auto 13px;gap:2px;padding:5px 3px 4px}.build-icon{width:23px;height:23px;font-size:.62rem}.build-name{font-size:.62rem}.build-cost{font-size:.48rem}.share-button{right:14px;bottom:10px;min-width:108px;min-height:32px;font-size:.68rem}}@media(max-width:780px){.home-screen{align-items:end;padding:24px 18px 42px;background-image:linear-gradient(0deg,#2f2118f0,#2f21189e 48%,#2f21182e),var(--home-cover)}.home-stage{width:100%;gap:13px;margin-left:0}.home-stage h1{max-width:8em;font-size:2.62rem;line-height:1}.home-copy{max-width:20em;font-size:.98rem;line-height:1.36}.start-game-button{width:min(240px,100%);min-height:50px;font-size:1rem}.home-meta span{font-size:.68rem}.resource-bar{left:14px;display:grid;width:calc(100vw - 28px);max-width:none;grid-template-columns:repeat(4,minmax(0,1fr));transform:rotate(-.2deg)}.resource-pill{min-width:0;padding:6px}.resource-value strong{font-size:.86rem}.resource-value small{font-size:.62rem}.build-dock{right:12px;bottom:12px;left:12px;width:auto;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px}.build-button{min-height:68px;grid-template-rows:25px auto 15px;padding:5px 2px;box-shadow:3px 4px #3f2d22}.build-icon{width:27px;height:27px;font-size:.68rem}.build-name{font-size:.58rem}.build-cost{font-size:.48rem}.command-panel{right:12px;bottom:84px;left:12px;width:auto;transform:rotate(.18deg)}.research-panel{top:126px;right:12px;left:12px;width:auto;padding:8px;transform:rotate(-.12deg)}.research-head{justify-items:start;font-size:.72rem}.research-grid{gap:5px}.research-button{min-height:52px;grid-template-rows:20px auto 12px;padding:4px 2px;box-shadow:2px 3px #3f2d22}.research-button span{width:20px;height:20px;font-size:.58rem}.research-button strong{font-size:.52rem}.research-button small{font-size:.48rem}.wave-row{grid-template-columns:1fr auto;gap:8px}.pause-button,.launch-button,.scout-button,.rally-button,.recruit-button,.overdrive-button,.repair-button,.help-button{min-width:76px;min-height:34px;font-size:.72rem}.wave-compass{font-size:.68rem}.minimap{display:none}.tutorial-card{gap:10px;padding:14px}.tutorial-card h2{font-size:1.08rem}.tutorial-steps{grid-template-columns:1fr;gap:8px}.tutorial-steps div{min-height:0;grid-template-columns:auto 1fr;align-items:center;gap:10px;padding:10px}.upgrade-panel{padding:14px}.upgrade-card{gap:10px;padding:14px}.upgrade-card h2{font-size:1.02rem}.upgrade-choices{grid-template-columns:1fr;gap:8px}.upgrade-choice{min-height:94px;grid-template-columns:auto 1fr;align-items:center;gap:7px 10px;padding:10px}.upgrade-choice small{grid-column:2;font-size:.68rem}}
