:root{color:#ead8aa;--ui-night: #101713;--ui-wood: #241b14;--ui-wood-2: #38281b;--ui-parchment: #ead8aa;--ui-parchment-2: #f6e7bd;--ui-ink: #19130d;--ui-muted: rgba(234, 216, 170, .64);--ui-line: rgba(206, 166, 88, .42);--ui-gold: #d9a84d;--ui-gold-2: #f1cb6b;--ui-bronze: #8b6138;--ui-green: #1e3b31;--danger: #c14b36;--hud-min-width: 0px;--hud-max-width: 1920px;--hud-side-gap: 18px;font-family:PingFang SC,Microsoft YaHei,Noto Sans CJK SC,system-ui,sans-serif;font-synthesis:none;text-rendering:geometricPrecision;background:#18351f}*{box-sizing:border-box}html,body,#game-root{width:100%;height:100%;margin:0;overflow:hidden}button{font:inherit}.ui-icon{display:block;width:1em;height:1em;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.color-icon{width:1em;height:1em}#game-root{position:relative;background:radial-gradient(circle at 50% 36%,rgba(241,220,115,.28),transparent 35%),linear-gradient(180deg,#75b351,#23462b)}#game-root:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;content:"";pointer-events:none;background:linear-gradient(180deg,rgba(19,25,14,.12),transparent 22%),linear-gradient(0deg,rgba(12,16,10,.18),transparent 26%),radial-gradient(circle at 50% 44%,transparent 46%,rgba(13,19,11,.18))}#game-canvas{display:block;width:100%;height:100%;touch-action:none}.tile-hover{position:absolute;z-index:5;pointer-events:none;box-shadow:0 0 0 1px #d8f2ffc7 inset,0 0 14px #1c8dff59}.tile-hover.hover,.tile-hover.build-ok{background:#1c8dff75;border:2px solid rgba(8,77,159,.96)}.tile-hover.build-bad{background:#cf3a2d80;border:2px solid rgba(120,20,18,.98);box-shadow:0 0 0 1px #ffdcd8c7 inset,0 0 14px #cf3a2d59}.supply-cache-label{position:absolute;z-index:5;pointer-events:none;transform:translate(-50%,calc(-100% - 6px));padding:2px 6px;border:1px solid rgba(240,201,116,.86);border-radius:4px;color:#ffe6a6;background:#1e150cd1;box-shadow:0 2px 8px #0a080552;font-size:12px;font-weight:800;line-height:1.2;text-shadow:0 1px 0 rgba(0,0,0,.65);white-space:nowrap}.supply-cache-label.talisman-drop-label{color:#fff0a8;border-color:#ffe8928a;background:#2e1e44db;box-shadow:0 0 16px #9b78ff57}.talisman-attention-label{position:absolute;z-index:8;transform:translate(-50%,calc(-100% - 8px));padding:5px 9px;border:1px solid rgba(255,232,146,.82);border-radius:7px;color:#1d102d;font-size:13px;font-weight:900;line-height:1.1;white-space:nowrap;pointer-events:none;background:linear-gradient(180deg,#fff0a8,#d9a84d);box-shadow:0 0 0 1px #2b180c57,0 0 18px #ffe17675,0 8px 18px #0a08054d;animation:talisman-attention-label-pulse .92s ease-in-out infinite}.tutorial-cell-hint{position:absolute;z-index:4;pointer-events:none;background:#27a3ff47;border:2px solid rgba(195,235,255,.92);box-shadow:0 0 0 2px #114e9780 inset,0 0 18px #2597ff94,0 0 34px #2597ff42;animation:tutorial-cell-pulse .92s ease-in-out infinite}@keyframes tutorial-cell-pulse{0%,to{opacity:.54;transform:scale(.94)}50%{opacity:.96;transform:scale(1.04)}}.route-cell-hint{position:absolute;z-index:3;pointer-events:none;background:#d52f2433;border:1px solid rgba(255,217,191,.52);box-shadow:0 0 0 1px #86221a52 inset,0 0 20px #d52f2452;animation:route-cell-breathe 1.35s ease-in-out infinite}@keyframes route-cell-breathe{0%,to{opacity:.24}50%{opacity:.52}}.wave-warning{position:absolute;z-index:4;display:grid;place-items:center;pointer-events:none;color:#ffe7dc;font-size:clamp(18px,2.4vw,34px);font-weight:900;line-height:1;text-shadow:0 2px 0 rgba(94,13,10,.85),0 0 10px rgba(255,225,210,.8);background:#ce262185;border:2px solid rgba(110,12,10,.95);box-shadow:0 0 0 2px #ffd6ca8c inset,0 0 20px #cf2a238c;animation:wave-warning-pulse 1s ease-in-out infinite}@keyframes wave-warning-pulse{0%,to{opacity:.58;transform:scale(.96)}50%{opacity:.98;transform:scale(1.02)}}.hidden{display:none!important}.screen,.hud,.toast,.modal{position:absolute;z-index:6}.menu-screen{top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:clamp(30px,7vh,76px) 20px clamp(28px,8vh,78px);pointer-events:none}.menu-title{display:grid;place-items:center;gap:clamp(7px,1vw,14px);width:min(980px,92vw);text-align:center;margin-top:-20px}.menu-title img{display:block;width:auto;max-width:min(100%,900px);max-height:min(32vh,310px);object-fit:contain;filter:drop-shadow(0 16px 26px rgba(18,25,13,.28))}.menu-summary{position:relative;display:inline-flex;align-items:center;justify-content:center;width:fit-content;max-width:min(720px,calc(100vw - 40px));min-height:42px;margin:clamp(-28px,-1.4vh,-18px) 0 auto;padding:9px clamp(18px,2.6vw,34px);color:#fff0b8;font-size:clamp(15px,1.45vw,21px);font-weight:860;line-height:1.3;letter-spacing:.06em;text-align:center;border:1px solid rgba(255,226,139,.56);border-radius:8px;background:linear-gradient(90deg,rgba(243,189,75,.14),transparent 18%,transparent 82%,rgba(243,189,75,.14)),linear-gradient(180deg,#37522deb,#162b1ff0);box-shadow:0 8px 18px #131f0f38,inset 0 1px #fff7c72e;text-shadow:0 1px 0 rgba(42,24,10,.65),0 0 10px rgba(255,224,131,.22)}.menu-summary:before,.menu-summary:after{width:7px;height:7px;margin:0 12px;content:"";flex:0 0 auto;background:#f1cb6b;border-radius:2px;box-shadow:0 0 0 1px #482c1273,0 0 8px #ffdb7852;transform:rotate(45deg)}.menu-actions{display:flex;flex-direction:column;align-items:center;gap:14px;pointer-events:auto}.menu-tabs{display:inline-flex;gap:6px;padding:5px;border:1px solid rgba(241,203,107,.26);border-radius:999px;background:#181b129e;box-shadow:0 8px 20px #0a090638}.menu-tab{min-width:98px;min-height:34px;padding:0 14px;border:1px solid transparent;border-radius:999px;color:var(--ui-parchment-2);font-size:14px;font-weight:820;cursor:pointer;background:transparent}.menu-tab.selected{color:#15130d;border-color:#ffe892d1;background:linear-gradient(180deg,var(--ui-gold-2),var(--ui-gold))}.menu-tab-panel{display:grid;align-content:start;justify-items:center;gap:10px;width:min(860px,calc(100vw - 32px));height:124px;padding:2px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(241,203,107,.38) rgba(10,9,6,.18)}.menu-primary-actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}.menu-empty{margin:0;min-height:34px;padding:8px 14px;border:1px solid rgba(241,203,107,.28);border-radius:8px;color:var(--ui-muted);font-size:13px;font-weight:760;background:#0f161185}.level-select{display:grid;grid-template-columns:repeat(4,minmax(142px,196px));gap:10px;width:min(820px,calc(100vw - 32px))}.level-card{display:grid;align-content:start;gap:6px;min-height:104px;padding:12px;border:1px solid rgba(241,203,107,.34);border-radius:8px;color:var(--ui-parchment-2);text-align:left;cursor:pointer;background:linear-gradient(180deg,#312418eb,#120f0cf0);box-shadow:0 12px 28px #0a090647,inset 0 1px #ffefbe12}.level-card:hover:not(:disabled),.level-card.selected{border-color:#f1cb6bb8;transform:translateY(-2px);filter:brightness(1.05)}.level-card.selected{background:linear-gradient(180deg,#2e483af5,#111f19f5)}.level-card.locked{opacity:.62;cursor:pointer;filter:grayscale(.3)}.level-card .level-index{color:var(--ui-muted);font-size:11px;font-weight:820}.level-card strong{color:var(--ui-gold-2);font-size:16px;line-height:1.1}.level-card span:last-child{color:var(--ui-muted);font-size:12px;font-weight:680;line-height:1.35}.custom-level-select{display:grid;grid-template-columns:repeat(4,minmax(136px,1fr));gap:8px;width:min(820px,calc(100vw - 32px))}.custom-level-card{position:relative;display:block;min-height:104px;padding:12px 34px 12px 12px;border:1px solid rgba(120,205,255,.28);border-radius:8px;color:var(--ui-parchment-2);text-align:left;background:linear-gradient(180deg,#1c3233eb,#0d1618f0);box-shadow:0 10px 24px #0a09063d,inset 0 1px #ffefbe0f}.custom-level-card:hover,.custom-level-card.selected{border-color:#78cdffb8;filter:brightness(1.06);transform:translateY(-2px)}.custom-level-open{display:grid;align-content:start;gap:6px;width:100%;min-height:78px;min-width:0;padding:2px;border:0;color:inherit;text-align:left;cursor:pointer;background:transparent}.custom-level-card span{color:#bee8ffc2;font-size:11px;font-weight:820}.custom-level-card strong{overflow:hidden;color:#d9f3ff;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.custom-level-card small{color:var(--ui-muted);font-size:12px;font-weight:700;line-height:1.35}.custom-level-delete{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:26px;height:26px;padding:0;border:1px solid rgba(193,75,54,.42);border-radius:7px;color:#ffd1bd;font-size:0;font-weight:820;cursor:pointer;background:#341c16bd;opacity:0;transform:scale(.88);transition:opacity .14s ease,transform .14s ease,border-color .14s ease,background .14s ease;pointer-events:none}.custom-level-delete:before{width:13px;height:2px;content:"";background:#ffe0d4;border-radius:999px;box-shadow:0 1px 1px #0f080573;transform:rotate(45deg)}.custom-level-delete:after{position:absolute;width:13px;height:2px;content:"";background:#ffe0d4;border-radius:999px;box-shadow:0 1px 1px #0f080573;transform:rotate(-45deg)}.custom-level-card:hover .custom-level-delete,.custom-level-card:focus-within .custom-level-delete,.custom-level-delete:focus-visible{opacity:1;transform:scale(1);pointer-events:auto}.custom-level-delete:hover,.custom-level-delete:focus-visible{border-color:#ff8767db;background:#7a2b1ce6;transform:scale(1.06);outline:none}.custom-level-more-card{display:grid;place-items:center;align-content:center;min-height:104px;padding-right:12px;text-align:center;cursor:pointer}.community-map-list,.community-all-list{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:8px;width:min(820px,calc(100vw - 32px))}.community-card{display:grid;align-content:start;gap:6px;min-height:104px;padding:12px;border:1px solid rgba(145,223,101,.3);border-radius:8px;color:var(--ui-parchment-2);text-align:left;cursor:pointer;background:linear-gradient(180deg,#1e3a24eb,#0d1711f2);box-shadow:0 10px 24px #0a09063d,inset 0 1px #ffefbe0f}.community-card:hover,.community-card.selected{border-color:#91df65c2;filter:brightness(1.06);transform:translateY(-2px)}.community-card span{color:#d0f4b4c7;font-size:11px;font-weight:820}.community-card strong{overflow:hidden;color:#ecffd6;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.community-card small{color:var(--ui-muted);font-size:12px;font-weight:700;line-height:1.35}.community-more-card{place-items:center;align-content:center;text-align:center}.map-browser-page{top:0;right:0;bottom:0;left:0;z-index:7;pointer-events:none}.map-browser-drawer{position:absolute;top:max(18px,env(safe-area-inset-top,0px));right:max(18px,env(safe-area-inset-right,0px));bottom:max(18px,env(safe-area-inset-bottom,0px));display:grid;grid-template-rows:auto auto auto 1fr auto;gap:12px;width:min(460px,44vw);min-width:360px;padding:18px;border:1px solid rgba(241,203,107,.34);border-radius:8px;color:var(--ui-parchment-2);pointer-events:auto;background:linear-gradient(180deg,#261f17f5,#0d1310fa);box-shadow:0 22px 48px #0809066b,inset 0 1px #ffefbe14}.map-browser-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.map-browser-header h2{margin:0 0 5px;color:var(--ui-gold-2);font-size:clamp(22px,3vw,30px);line-height:1.1}.map-browser-header p,.map-browser-status{margin:0;color:var(--ui-muted);font-size:13px;font-weight:720;line-height:1.35}.map-browser-search{display:grid;gap:6px;min-width:0}.map-browser-search span{color:#fff5cfc2;font-size:12px;font-weight:820}.map-browser-search input{width:100%;min-width:0;height:38px;padding:0 12px;border:1px solid rgba(241,203,107,.3);border-radius:8px;color:var(--ui-parchment-2);font:inherit;font-size:14px;background:#0d120fd1;outline:none}.map-browser-search input:focus{border-color:#f1cb6bb8;box-shadow:0 0 0 2px #d9a84d29}.map-browser-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;min-height:0;padding-right:4px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(241,203,107,.42) rgba(10,9,6,.22);padding-top:2px}.map-browser-list::-webkit-scrollbar{width:6px}.map-browser-list::-webkit-scrollbar-thumb{border-radius:999px;background:#f1cb6b6b}.map-browser-card,.map-browser-list .community-card{display:grid;align-content:start;gap:6px;width:100%;min-width:0;min-height:104px;padding:12px;border:1px solid rgba(120,205,255,.28);border-radius:8px;color:var(--ui-parchment-2);text-align:left;cursor:pointer;background:linear-gradient(180deg,#1c3233eb,#0d1618f0);box-shadow:0 10px 24px #0a09063d,inset 0 1px #ffefbe0f}.map-browser-list .community-card{border-color:#91df654d;background:linear-gradient(180deg,#1e3a24eb,#0d1711f2)}.map-browser-card:hover,.map-browser-card.selected,.map-browser-list .community-card:hover,.map-browser-list .community-card.selected{transform:translateY(-2px);filter:brightness(1.06)}.map-browser-card:hover,.map-browser-card.selected{border-color:#78cdffb8}.map-browser-list .community-card:hover,.map-browser-list .community-card.selected{border-color:#91df65c2}.map-browser-card span,.map-browser-list .community-card span{overflow:hidden;color:#bee8ffc2;font-size:11px;font-weight:820;text-overflow:ellipsis;white-space:nowrap}.map-browser-list .community-card span{color:#d0f4b4c7}.map-browser-card strong,.map-browser-list .community-card strong{overflow:hidden;color:#d9f3ff;font-size:15px;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.map-browser-list .community-card strong{color:#ecffd6}.map-browser-card small,.map-browser-list .community-card small{color:var(--ui-muted);font-size:12px;font-weight:700;line-height:1.35}.map-browser-actions{display:flex;gap:8px;align-items:stretch;justify-content:stretch}.map-browser-actions .wood-button,.map-browser-actions .round-start{flex:1 1 0;min-width:0}.map-browser-actions .wood-button{min-height:58px}.round-start{min-width:clamp(160px,18vw,230px);min-height:58px;padding:0 30px;border:1px solid rgba(241,203,107,.72);border-radius:999px;color:#fff9df;font-size:clamp(20px,2.4vw,30px);font-weight:850;text-shadow:0 1px 0 rgba(44,27,12,.35);cursor:pointer;box-shadow:0 10px 24px #110d0852,inset 0 0 0 1px #fff8d214;background:linear-gradient(180deg,#27483b,#13241d);transition:transform .14s ease,background .14s ease,filter .14s ease}.editor-cta{position:relative;display:inline-grid;place-items:center;min-width:clamp(160px,18vw,230px);min-height:58px;padding:0 30px;border:1px solid rgba(145,223,101,.68);border-radius:999px;color:#ecffd6;font-size:clamp(20px,2.4vw,30px);font-weight:850;text-shadow:0 1px 0 rgba(14,26,12,.72);cursor:pointer;background:linear-gradient(180deg,#1f2c24f5,#0e1612f5);box-shadow:0 10px 24px #110d0852,inset 0 0 0 1px #fff8d214;transition:transform .14s ease,background .14s ease,filter .14s ease}.editor-cta:after{position:absolute;top:9px;right:13px;width:10px;height:10px;content:"";border-radius:50%;background:#6fe35e;box-shadow:0 0 0 2px #0d1c13c7,0 0 12px #6fe35edb}.editor-cta:hover,.editor-cta:focus-visible{border-color:#c4f58af5;filter:brightness(1.06)}.editor-cta:focus-visible{outline:2px solid rgba(241,203,107,.72);outline-offset:3px}.reset-progress-button{display:none;min-height:34px;padding:0 16px;border:1px solid rgba(241,203,107,.38);border-radius:999px;color:#fff5cfdb;font-size:13px;font-weight:760;cursor:pointer;background:#1f1810b3;box-shadow:inset 0 1px #ffefbe14}.reset-progress-button:hover{border-color:#f1cb6bad;color:#fff9df;filter:brightness(1.06)}.round-start:hover,.wood-button:hover,.icon-button:hover,.editor-cta:hover,.build-card:hover{filter:brightness(1.04)}.round-start:disabled{cursor:not-allowed;color:#f6e7bd9e;border-color:#cea65847;background:linear-gradient(180deg,#3d382be6,#191713f0);box-shadow:0 8px 20px #110d0838,inset 0 0 0 1px #fff8d20a;filter:none}.round-start:active,.wood-button:active,.icon-button:active,.editor-cta:active,.build-card:active{transform:translateY(3px)}.wood-button{min-width:clamp(86px,10vw,132px);min-height:40px;padding:0 18px;border:1px solid var(--ui-line);border-radius:999px;color:var(--ui-parchment-2);font-size:clamp(15px,1.4vw,18px);font-weight:760;cursor:pointer;background:linear-gradient(180deg,#2e2217eb,#16120eeb);box-shadow:0 8px 22px #110d0847}.editor-panel{position:absolute;top:14px;right:14px;bottom:14px;z-index:8;display:grid;grid-template-rows:auto 1fr auto auto auto;gap:10px;width:min(650px,calc(100vw - 28px));max-width:calc(100vw - 28px);padding:12px;overflow:hidden;color:var(--ui-parchment-2);pointer-events:auto;border:1px solid rgba(241,203,107,.38);border-radius:8px;background:linear-gradient(180deg,#231d16f7,#0d110ff7);box-shadow:0 18px 40px #0908066b,inset 0 1px #ffefbe14}.editor-pan-hint{position:absolute;left:16px;bottom:16px;z-index:9;padding:8px 12px;border:1px solid rgba(241,203,107,.42);border-radius:8px;color:var(--ui-parchment-2);font-size:13px;font-weight:780;background:linear-gradient(180deg,#231d16e0,#0d110fe6);box-shadow:0 10px 24px #0908064d,inset 0 1px #ffefbe14;pointer-events:none}.editor-header{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:10px;align-items:center;min-width:0}.editor-name,.editor-json,.editor-resource-list input,.editor-spawn-row input,.editor-wave-settings input,.editor-event-row input,.editor-event-row select{border:1px solid rgba(241,203,107,.28);border-radius:7px;color:var(--ui-parchment-2);background:#090e0b6b}.editor-name{min-width:0;height:38px;padding:0 11px;font-size:17px;font-weight:820}.editor-actions,.editor-wave-actions,.editor-json-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end;min-width:0}.editor-actions{flex-wrap:nowrap}.editor-actions .wood-button,.editor-wave-actions .wood-button,.editor-json-actions .wood-button,#editor-add-event-button{min-width:72px;min-height:32px;padding:0 12px;font-size:14px;white-space:nowrap}#editor-add-event-button{justify-self:start;align-self:start}.editor-body{display:grid;grid-template-columns:minmax(170px,.72fr) minmax(360px,1.48fr);gap:10px;min-height:0;min-width:0;overflow:hidden}.editor-footer{display:flex;justify-content:flex-end;min-width:0}.editor-section{display:grid;grid-template-rows:auto auto 1fr;gap:8px;min-height:0;min-width:0;padding:10px;overflow:hidden;border:1px solid rgba(234,216,170,.14);border-radius:8px;background:#f4dea70d}.editor-map-section{grid-template-rows:auto auto auto 1fr}.editor-section h2{margin:0;color:var(--ui-gold-2);font-size:15px}.editor-section-title-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;min-width:0}.editor-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.editor-tool{display:flex;align-items:center;justify-content:space-between;min-width:0;min-height:34px;padding:0 9px;border:1px solid rgba(241,203,107,.22);border-radius:7px;color:var(--ui-parchment-2);cursor:pointer;background:#0f161185}.editor-tool.selected{color:#15130d;border-color:#ffe892d1;background:linear-gradient(180deg,var(--ui-gold-2),var(--ui-gold))}.editor-tool strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.editor-tool span{color:inherit;font-size:11px;font-weight:900;opacity:.72}.editor-resource-list,.editor-wave-settings{display:grid;gap:6px}.editor-resource-list{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-resource-list label,.editor-wave-settings label{display:grid;gap:4px;min-width:0;color:var(--ui-muted);font-size:11px;font-weight:760}.editor-resource-list input,.editor-spawn-row input,.editor-wave-settings input{width:100%;min-width:0;height:28px;padding:0 7px;font-size:12px}.editor-wave-settings{padding:7px;border:1px solid rgba(234,216,170,.12);border-radius:8px;background:#090e0b3d}.editor-spawn-list,.editor-wave-list,.editor-event-list{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(241,203,107,.42) rgba(10,9,6,.22)}.editor-spawn-list{display:grid;align-content:start;gap:6px}.editor-spawn-row{display:grid;grid-template-columns:24px minmax(30px,88px) auto 30px;gap:6px;align-items:center;min-height:30px;padding:4px 5px;border-radius:7px;background:#090e0b52}.editor-spawn-row span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;color:#fff1db;font-size:12px;font-weight:900;background:#b64f45}.editor-spawn-row strong,.editor-spawn-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-spawn-row small{color:var(--ui-muted);font-size:11px}.editor-spawn-row button,.editor-event-row button{min-width:0;min-height:26px;border:1px solid rgba(193,75,54,.36);border-radius:6px;color:#ffd1bd;cursor:pointer;background:#6927196b}.editor-wave-section{grid-template-rows:auto auto auto auto 1fr auto}.editor-wave-list{display:flex;gap:6px;padding-bottom:2px;overflow-x:auto}.editor-wave-tab{flex:0 0 auto;min-height:34px;padding:0 10px;border:1px solid rgba(241,203,107,.22);border-radius:999px;color:var(--ui-parchment-2);cursor:pointer;background:#0f161185}.editor-wave-tab.selected{color:#15130d;border-color:#ffe892d1;background:linear-gradient(180deg,var(--ui-gold-2),var(--ui-gold))}.editor-wave-tab span{margin-left:5px;font-size:11px;opacity:.78}.editor-event-list{display:grid;align-content:start;gap:8px}.editor-event-row{display:grid;grid-template-columns:repeat(4,minmax(54px,1fr)) 60px;gap:6px;align-items:end;padding:8px;border:1px solid rgba(234,216,170,.12);border-radius:8px;background:#090e0b47}.editor-event-row label{display:grid;gap:3px;min-width:0;color:var(--ui-muted);font-size:11px;font-weight:760}.editor-event-row input,.editor-event-row select{width:100%;min-width:0;height:28px;padding:0 6px;font-size:12px}.editor-json{width:100%;min-height:280px;padding:8px;resize:none;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.4}.editor-empty{margin:0;color:var(--ui-muted);font-size:12px;line-height:1.4}.editor-status{min-height:18px;margin:0;overflow:hidden;color:#bfffd4e6;font-size:12px;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.editor-status.error{color:#ffd1bd}.editor-validation{min-height:18px;margin:0;overflow:hidden;color:#efd898e6;font-size:12px;font-weight:760;text-overflow:ellipsis;white-space:nowrap}.editor-validation.ready{color:#bfffd4e6}.editor-validation.blocked{color:#ffd1bd}.editor-marker{position:absolute;z-index:5;display:grid;place-items:center;color:#fff4d4;font-size:13px;font-weight:950;line-height:1;text-shadow:0 1px 0 rgba(54,24,10,.9),0 0 8px rgba(255,225,150,.52);pointer-events:none}.editor-marker.command{color:#fff0a8}.editor-marker.spawn{color:#ffe0d4}.hud{left:50%;right:auto;bottom:18px;display:grid;grid-template-columns:114px 204px minmax(130px,1fr) minmax(186px,232px) 104px minmax(164px,214px);gap:8px;align-items:stretch;width:clamp(var(--hud-min-width),calc(100vw - var(--hud-side-gap) - var(--hud-side-gap)),var(--hud-max-width));height:126px;transform:translate(-50%);pointer-events:none}.hud>*{min-height:0;height:100%}.minimap-panel,.time-panel,.resource-bar,.wave-panel,.buildbar,.manual-panel,.inspector,.toast,.modal-panel{border:1px solid var(--ui-line);border-radius:8px;background:linear-gradient(180deg,#312418f0,#17120df5);box-shadow:0 12px 30px #0a090657,inset 0 1px #ffefbe14}.minimap-panel{display:grid;place-items:center;min-width:114px;padding:7px;pointer-events:auto}.minimap-canvas{display:block;justify-self:center;width:98px;height:98px;margin-inline:auto;border-radius:6px;image-rendering:pixelated;box-shadow:inset 0 0 0 1px #0a0e0a66}.time-panel{display:grid;grid-template-rows:32px 44px 26px;gap:6px;padding:8px;pointer-events:auto}.game-time{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;border-radius:7px;background:#090e0b59}.game-time span,.wave-panel span{color:var(--ui-muted);font-size:11px;font-weight:760;white-space:nowrap}.game-time strong{color:var(--ui-gold-2);font-size:19px;line-height:1}.resource-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);align-items:center;align-content:stretch;gap:6px;width:auto;padding:8px;min-width:0;pointer-events:auto;border:1px solid rgba(206,166,88,.3);border-radius:8px;background:linear-gradient(180deg,#19211bf5,#0b120ff5);box-shadow:0 12px 28px #0b110c47,inset 0 1px #ffefbe0f}.resource{display:inline-flex;align-items:center;gap:6px;min-height:30px;height:100%;min-width:0;padding:4px 7px 4px 4px;border:1px solid rgba(234,216,170,.1);border-radius:7px;color:var(--ui-parchment-2);font-size:13px;font-weight:820;white-space:nowrap;text-shadow:none;background:#f4dea70f;box-shadow:inset 0 0 0 1px #0a0e0a2e;cursor:help}.resource-mark{display:grid;place-items:center;flex:0 0 auto;width:24px;height:24px;border-radius:50%;color:#fff9df;font-size:22px;font-weight:900;background:transparent}.resource-value{min-width:0;overflow:hidden;text-overflow:ellipsis}.resource.warn{color:#7a2e1f;border-color:#c14b3680;background:#41171199}.resource:focus-visible,.wave-panel:focus-visible,.icon-button:focus-visible{outline:2px solid rgba(241,203,107,.62);outline-offset:2px}.wave-panel{position:static;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;min-width:0;min-height:0;padding:5px 9px;text-align:center;transform:none;pointer-events:auto;cursor:help}.wave-panel strong{color:var(--ui-gold-2);font-size:18px;line-height:1;white-space:nowrap}.speed-panel{display:flex;gap:5px;align-items:center;justify-content:center;min-width:0;min-height:0;padding:2px 0 0;justify-self:stretch;pointer-events:auto}.icon-button{width:28px;height:22px;border:1px solid transparent;border-radius:999px;color:var(--ui-muted);font-size:12px;font-weight:820;cursor:pointer;background:transparent}.speed-button{width:44px;border-color:#f1cb6b3d;color:var(--ui-parchment-2);background:#f4dea712}.seal-button{width:32px;border-color:#ffe89257;color:#fff4c8;background:linear-gradient(180deg,#6f4dad6b,#2b1e4a7a)}.seal-button.ready{color:#20130b;border-color:#ffee9bdb;background:linear-gradient(180deg,#fff0a8,#d9a84d);box-shadow:0 0 16px #ffe17661}.seal-button.active{color:#1d102d;background:linear-gradient(180deg,#ffe991,#9b78ff);box-shadow:0 0 0 1px #fff8d261 inset,0 0 22px #9b78ff8c}.icon-button.disabled{opacity:.58}.audio-button{width:34px;border-color:#f1cb6b3d;color:var(--ui-parchment-2);background:#f4dea712}.icon-button.back-button{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);left:calc(env(safe-area-inset-left,0px) + 12px);z-index:14;width:72px;height:44px;border-color:#78cdff57;color:#d9f3ff;background:#192520c7;font-size:16px;box-shadow:0 8px 18px #080b0847,inset 0 1px #ffffff14;pointer-events:auto}.icon-button.active{color:#111912;background:linear-gradient(180deg,var(--ui-gold-2),var(--ui-gold))}.manual-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);align-items:stretch;justify-content:stretch;gap:6px;min-width:0;padding:8px;pointer-events:auto;border-color:#ffe89252;background:linear-gradient(180deg,#2a1f2bf5,#120e16f5)}.talisman-slot{position:relative;display:grid;place-items:center;min-width:0;min-height:0;border:1px solid rgba(255,232,146,.24);border-radius:8px;color:var(--talisman-accent);cursor:pointer;background:radial-gradient(circle at 50% 24%,color-mix(in srgb,var(--talisman-color) 28%,transparent),transparent 68%),linear-gradient(180deg,#31233ae6,#120e16eb);box-shadow:inset 0 0 0 1px #fff7d614,0 5px 10px #0807062e;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease,opacity .14s ease}.talisman-slot.ready{border-color:color-mix(in srgb,var(--talisman-accent) 72%,transparent);box-shadow:inset 0 0 0 1px #fff7d629,0 0 14px color-mix(in srgb,var(--talisman-color) 36%,transparent)}.talisman-slot.active,.talisman-slot.tutorial-recommended{color:#1d102d;border-color:#ffee9be6;background:radial-gradient(circle,color-mix(in srgb,var(--talisman-accent) 62%,transparent),transparent 70%),linear-gradient(180deg,var(--talisman-accent),var(--talisman-color));box-shadow:inset 0 0 0 1px #fff7d657,0 0 22px color-mix(in srgb,var(--talisman-color) 58%,transparent);transform:translateY(-1px)}.talisman-slot.tutorial-recommended{animation:tutorial-talisman-slot-pulse .92s ease-in-out infinite}.talisman-slot.tutorial-recommended:after{position:absolute;top:-26px;left:50%;z-index:2;transform:translate(-50%);padding:3px 7px;border:1px solid rgba(255,232,146,.9);border-radius:999px;color:#1d102d;font-size:11px;font-weight:950;line-height:1;white-space:nowrap;content:"点这里";pointer-events:none;background:linear-gradient(180deg,#fff4b8,#d9a84d);box-shadow:0 0 12px #ffe17694,0 6px 12px #08070647;animation:tutorial-talisman-label-pulse .92s ease-in-out infinite}.talisman-slot.disabled{opacity:.42;filter:saturate(.55) grayscale(.2)}.talisman-slot.nudge{opacity:1;filter:none;animation:build-card-nudge .68s ease-in-out var(--nudge-count, 2)}.talisman-glyph{font-size:16px;font-weight:950;line-height:1;text-shadow:0 1px 0 rgba(42,18,10,.66),0 0 8px color-mix(in srgb,var(--talisman-color) 48%,transparent)}.talisman-count,.talisman-hotkey{position:absolute;display:grid;place-items:center;line-height:1;pointer-events:none}.talisman-count{right:3px;bottom:3px;min-width:14px;height:14px;padding:0 3px;border-radius:999px;color:#15120d;font-size:10px;font-weight:900;background:var(--talisman-accent)}.talisman-hotkey{top:3px;left:4px;color:#fff6d4b8;font-size:9px;font-weight:860}.buildbar{display:flex;flex-wrap:wrap;gap:8px;align-content:flex-start;align-items:center;justify-content:start;width:auto;min-width:0;padding:10px;overflow-x:hidden;overflow-y:auto;pointer-events:auto;scrollbar-width:thin;scrollbar-color:rgba(241,203,107,.42) rgba(10,9,6,.22);border:1px solid rgba(241,203,107,.34);border-radius:8px;background:linear-gradient(180deg,#35271bf5,#120f0cf5);box-shadow:0 16px 34px #0a09065c,inset 0 1px #ffefbe14}.buildbar::-webkit-scrollbar{width:6px;height:6px}.buildbar::-webkit-scrollbar-thumb{border-radius:999px;background:#f1cb6b6b}.build-card{position:relative;display:grid;place-items:center;flex:0 0 32px;align-items:center;width:32px;height:32px;min-width:0;min-height:0;padding:0;border:0;border-radius:8px;color:var(--ui-parchment-2);cursor:pointer;background:transparent;box-shadow:none;transition:transform .12s ease,background .12s ease,filter .12s ease,box-shadow .12s ease}.build-card:after{position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;z-index:0;content:"";pointer-events:none;border:1px solid rgba(255,232,146,0);border-radius:12px;opacity:0;background:radial-gradient(circle,rgba(241,203,107,.2) 0%,rgba(241,203,107,.08) 48%,transparent 76%);box-shadow:none;transform:scale(.86);transition:opacity .14s ease,transform .14s ease,border-color .14s ease,box-shadow .14s ease}.build-card:not(.disabled):hover{background:radial-gradient(circle,rgba(241,203,107,.2) 0%,rgba(241,203,107,.08) 42%,transparent 72%);transform:translateY(-2px) scale(1.04)}.build-card.selected{background:radial-gradient(circle,rgba(241,203,107,.28) 0%,rgba(217,168,77,.12) 48%,transparent 76%);outline:0;box-shadow:0 0 20px #d9a84d47;transform:translateY(-2px) scale(1.05)}.build-card.selected:after{opacity:1;border-color:#ffe892f0;box-shadow:0 0 0 1px #452911c7,0 0 14px #f1cb6bc7,0 0 28px #ffd66b42,inset 0 0 12px #ffefbe2e;transform:scale(1)}.build-card.selected .build-icon{filter:drop-shadow(0 0 5px rgba(255,236,166,.78)) drop-shadow(0 0 12px rgba(241,203,107,.38)) brightness(1.07) saturate(1.08);transform:scale(1.06)}.build-card.tutorial-recommended{opacity:1;filter:none}.build-card.tutorial-recommended:after{opacity:1;border-color:#ffe892e6;box-shadow:0 0 0 1px #452911b8,0 0 14px #f1cb6bc2,0 0 28px #ffd66b47;transform:scale(1);animation:tutorial-build-card-pulse .92s ease-in-out infinite}.build-card.tutorial-recommended .build-icon{filter:drop-shadow(0 0 5px rgba(255,236,166,.76)) brightness(1.1) saturate(1.12);animation:tutorial-build-icon-pulse .92s ease-in-out infinite}@keyframes tutorial-build-card-pulse{0%,to{box-shadow:0 0 0 1px #452911b8,0 0 10px #f1cb6b9e,0 0 22px #ffd66b38}50%{box-shadow:0 0 0 1px #452911b8,0 0 18px #f1cb6be6,0 0 34px #ffd66b5c}}@keyframes tutorial-build-icon-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}@keyframes tutorial-talisman-slot-pulse{0%,to{box-shadow:inset 0 0 0 1px #fff7d657,0 0 16px #ffe17670,0 0 24px color-mix(in srgb,var(--talisman-color) 42%,transparent)}50%{box-shadow:inset 0 0 0 1px #fff7d675,0 0 26px #ffe176c2,0 0 42px color-mix(in srgb,var(--talisman-color) 62%,transparent)}}@keyframes tutorial-talisman-label-pulse{0%,to{transform:translate(-50%) translateY(0)}50%{transform:translate(-50%) translateY(-4px)}}@keyframes talisman-attention-label-pulse{0%,to{transform:translate(-50%,calc(-100% - 8px)) scale(1)}50%{transform:translate(-50%,calc(-100% - 12px)) scale(1.05)}}.tool-card{color:#fff3c8}.tool-card:before{position:absolute;left:-4px;width:1px;height:24px;content:"";background:#f1cb6b33}.tool-card.selected:after{border-color:#78cdfff5;background:radial-gradient(circle,rgba(69,167,255,.24) 0%,rgba(241,203,107,.08) 44%,transparent 76%);box-shadow:0 0 0 1px #142a38c7,0 0 14px #4ab0ffc7,0 0 26px #f1cb6b33,inset 0 0 12px #d5f1ff2e}.tool-card.selected .build-icon{filter:drop-shadow(0 0 5px rgba(190,232,255,.8)) drop-shadow(0 0 12px rgba(74,176,255,.42)) brightness(1.08) saturate(1.1)}.build-card.disabled{cursor:not-allowed;opacity:.42;filter:saturate(.55) grayscale(.2)}.build-card.nudge{opacity:1;filter:none;animation:build-card-nudge .68s ease-in-out var(--nudge-count, 2)}.build-card.nudge .build-icon{animation:build-icon-nudge .68s ease-in-out var(--nudge-count, 2)}.build-icon{position:relative;z-index:1;display:grid;place-items:center;width:32px;height:32px;color:#151d18;font-size:32px;font-weight:900;text-shadow:none;background:transparent;box-shadow:none;transition:filter .14s ease,transform .14s ease}@keyframes build-card-nudge{0%,to{transform:translateY(0) scale(1);box-shadow:none}38%{transform:translateY(-5px) scale(1.12);box-shadow:0 0 22px #f1cb6b85}68%{transform:translateY(1px) scale(1.04)}}@keyframes build-icon-nudge{0%,to{filter:brightness(1)}45%{filter:brightness(1.25) saturate(1.18)}}.build-copy{display:grid;justify-items:center;gap:2px;min-width:0;width:100%}.build-copy strong{display:inline-flex;align-items:center;justify-content:center;gap:4px;overflow:hidden;width:100%;font-size:11px;line-height:1.15;text-align:center;text-overflow:ellipsis;white-space:nowrap}.build-cost{display:none;gap:4px;min-height:18px;overflow:hidden}.cost-chip{display:inline-flex;align-items:center;gap:3px;min-width:0;min-height:18px;padding:1px 5px;border-radius:999px;color:var(--ui-muted);font-size:11px;font-weight:760;background:#eed79f14}.cost-chip .ui-icon{flex:0 0 auto;width:15px;height:15px;padding:2px;border-radius:50%;color:#fff9df;background:var(--ui-bronze);stroke-width:2.1}.cost-chip.gold .ui-icon{background:var(--ui-gold)}.cost-chip span{color:#fff9df;font-size:10px;font-weight:850}.build-copy>span:not(.build-cost){overflow:hidden;color:var(--ui-muted);font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.inspector{min-width:0;padding:10px;overflow:hidden;color:var(--ui-parchment-2);pointer-events:auto}.inspector h3{margin:0 0 5px;color:var(--ui-gold-2);font-size:15px}.inspector p{margin:0 0 5px;color:var(--ui-muted);font-size:11px;font-weight:680;line-height:1.32}.inspector .build-cost{display:flex;margin:6px 0 8px}.inspector .meters{display:grid;gap:5px}.build-tooltip{position:fixed;z-index:20;width:min(300px,calc(100vw - 32px));padding:12px;border:1px solid rgba(241,203,107,.42);border-radius:8px;color:var(--ui-parchment-2);background:linear-gradient(180deg,#312418fa,#100d0afa);box-shadow:0 16px 34px #0a09066b,inset 0 1px #ffefbe14;pointer-events:none}.build-tooltip:before{position:absolute;top:18px;left:-7px;width:12px;height:12px;content:"";border-left:1px solid rgba(241,203,107,.42);border-bottom:1px solid rgba(241,203,107,.42);background:#312418fa;transform:rotate(45deg)}.build-tooltip.below:before{top:-7px;left:var(--tooltip-arrow-left, 24px);border-left:1px solid rgba(241,203,107,.42);border-top:1px solid rgba(241,203,107,.42);border-bottom:0}.build-tooltip.above:before{top:auto;bottom:-7px;left:var(--tooltip-arrow-left, 24px);border-left:0;border-top:0;border-right:1px solid rgba(241,203,107,.42);border-bottom:1px solid rgba(241,203,107,.42)}.tooltip-title{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;padding-bottom:10px;border-bottom:1px solid rgba(234,216,170,.12)}.tooltip-title strong{display:block;color:var(--ui-gold-2);font-size:17px;line-height:1.15}.tooltip-subtitle{display:block;margin-top:2px;color:var(--ui-muted);font-size:12px}.tooltip-icon{display:grid;place-items:center;width:34px;height:34px;color:var(--ui-gold-2);font-size:22px;background:none}.tooltip-icon .ui-icon{width:34px;height:34px;stroke-width:2}.seal-tooltip-icon{width:38px;height:38px;color:#151d18;font-size:23px;font-weight:900;border-radius:7px;background:linear-gradient(180deg,var(--ui-gold-2),var(--ui-gold));text-shadow:0 1px 0 rgba(255,247,214,.28)}.tooltip-section{display:grid;gap:4px;padding-top:9px}.tooltip-label{color:var(--ui-gold-2);font-size:12px;font-weight:820}.tooltip-section p{margin:0;color:var(--ui-muted);font-size:13px;font-weight:680;line-height:1.45}.tooltip-cost{display:flex;flex-wrap:wrap;gap:5px}.tooltip-empty{color:var(--ui-muted);font-size:13px}.tooltip-rows{display:grid;gap:5px}.tooltip-row{display:block;min-width:0;color:var(--ui-muted);font-size:13px;font-weight:680;line-height:1.35}.tooltip-status{margin-top:10px;padding:7px 8px;border-radius:7px;font-size:13px;font-weight:780;line-height:1.35}.tooltip-status.ok{color:#f8e5a7;background:#31552f61}.tooltip-status.warn{color:#ffd1bd;background:#6927197a}.meter{height:6px;overflow:hidden;border:0;border-radius:999px;background:#ead8aa1f}.meter span{display:block;height:100%;background:linear-gradient(90deg,#e25336,#ffd56d,#62a744)}.toast{left:50%;bottom:154px;max-width:min(540px,calc(100vw - 32px));padding:8px 12px;color:var(--ui-parchment-2);font-size:13px;font-weight:720;text-align:center;transform:translate(-50%);pointer-events:none}#menu:not(.hidden)~.toast{top:clamp(16px,3vh,28px);right:clamp(16px,3vw,32px);bottom:auto;left:auto;max-width:min(340px,calc(100vw - 32px));transform:none}.floating-text{position:absolute;z-index:9;min-width:44px;color:#fff1b0;font-size:17px;font-weight:900;line-height:1;text-align:center;text-shadow:0 2px 0 rgba(54,24,10,.92),0 0 10px rgba(255,231,130,.55);pointer-events:none;transform:translate(-50%,-50%);animation:floating-text-pop .88s ease-out forwards}.floating-text.crit{color:#fff8cf;font-size:22px;text-shadow:0 2px 0 rgba(83,18,13,.95),0 0 14px rgba(255,111,76,.7),0 0 24px rgba(255,235,142,.5)}.floating-text.reward{min-width:90px;color:#bfffd4;font-size:13px;text-shadow:0 2px 0 rgba(13,42,23,.95),0 0 10px rgba(98,255,154,.45)}.talisman-pickup-flight{position:absolute;z-index:12;display:grid;place-items:center;width:30px;height:38px;border:1px solid rgba(255,232,146,.72);border-radius:6px;color:#2a1a0f;font-size:16px;font-weight:950;line-height:1;text-shadow:none;pointer-events:none;background:linear-gradient(180deg,#fff0a8,#d9a84d);box-shadow:0 0 16px #ffe17670,inset 0 0 0 1px #fff7d66b;transform:translate(-50%,-50%) scale(.8);opacity:0;transition:transform .62s cubic-bezier(.2,.74,.22,1),opacity .14s ease}.talisman-pickup-flight.active{opacity:1;transform:translate(calc(-50% + var(--fly-x)),calc(-50% + var(--fly-y))) scale(.58)}@keyframes floating-text-pop{0%{opacity:0;transform:translate(-50%,-42%) scale(.72)}12%{opacity:1;transform:translate(-50%,-58%) scale(1.16)}to{opacity:0;transform:translate(-50%,-128%) scale(.92)}}.modal{top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:20px;background:#161c107a;pointer-events:auto}.modal-panel{width:min(460px,92vw);padding:22px;text-align:center}.modal-panel h2{margin:0 0 8px;color:var(--ui-gold-2);font-size:clamp(28px,5vw,42px);line-height:1.05}.modal-panel p{margin:0 0 20px;color:var(--ui-muted);font-size:15px;font-weight:680;line-height:1.45}.modal-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}.publish-panel{text-align:left}.publish-panel h2,.publish-panel p{text-align:center}.publish-field{display:grid;gap:7px;margin:0 0 18px;color:var(--ui-muted);font-size:13px;font-weight:820}.publish-field input{height:42px;padding:0 12px;border:1px solid rgba(241,203,107,.34);border-radius:8px;color:var(--ui-parchment-2);font-size:16px;font-weight:760;background:#090e0b6b}.editor-json-panel{display:grid;grid-template-rows:auto auto minmax(280px,56vh) auto;gap:12px;width:min(760px,92vw);text-align:left}.editor-json-panel h2,.editor-json-panel p{text-align:center}.editor-json-panel .editor-json{min-height:0;height:100%}.community-browser-panel{position:absolute;left:50%;bottom:8px;width:min(920px,calc(100vw - 36px));max-height:min(300px,42vh);display:grid;grid-template-rows:auto 1fr;gap:10px;transform:translate(-50%);text-align:left}.community-browser-header{display:flex;align-items:start;justify-content:space-between;gap:12px}.community-browser-header h2,.community-browser-header p{text-align:left}.community-browser-header h2{margin-bottom:4px;font-size:clamp(20px,3vw,26px)}.community-all-list{width:100%;padding-top:2px;max-height:208px;overflow-y:auto;padding-right:4px;grid-template-columns:repeat(4,minmax(150px,1fr))}.wood-button.secondary{color:var(--ui-parchment);background:linear-gradient(180deg,#1f2c24eb,#0e1612eb)}@media (max-width: 760px){.menu-screen{justify-content:center;gap:24px}.menu-summary{max-width:min(360px,calc(100vw - 28px));min-height:38px;padding:8px 14px;font-size:14px;letter-spacing:.03em}.menu-summary:before,.menu-summary:after{width:6px;height:6px;margin:0 8px}.level-select,.custom-level-select,.community-map-list{grid-template-columns:1fr;width:min(360px,calc(100vw - 28px))}.community-all-list{grid-template-columns:repeat(2,minmax(140px,1fr));width:100%}.map-browser-drawer{top:auto;right:max(8px,env(safe-area-inset-right,0px));bottom:max(8px,env(safe-area-inset-bottom,0px));left:max(8px,env(safe-area-inset-left,0px));width:auto;min-width:0;max-height:min(66vh,560px);padding:14px}.map-browser-list{grid-template-columns:repeat(2,minmax(0,1fr))}.map-browser-header{align-items:center}.map-browser-header h2{font-size:22px}.map-browser-card,.map-browser-list .community-card{min-height:96px;padding:10px}.menu-tabs{max-width:calc(100vw - 28px);overflow-x:auto}.menu-tab{min-width:86px;font-size:13px}.menu-primary-actions{flex-direction:column;width:min(360px,calc(100vw - 28px));gap:8px}.round-start,.editor-cta{width:100%;min-width:0}.editor-cta{min-height:58px}.level-card{min-height:78px}.editor-panel{top:8px;right:8px;bottom:8px;left:8px;width:auto}.editor-header,.editor-body{grid-template-columns:1fr}.editor-actions,.editor-wave-actions,.editor-json-actions,.editor-footer{justify-content:flex-start}.editor-body{overflow-y:auto}.editor-section{min-height:220px}.editor-event-row{grid-template-columns:repeat(2,minmax(72px,1fr)) 34px}.hud{top:10px;left:10px;right:10px;display:grid;grid-template-columns:1fr auto;grid-template-areas:"resources resources" "wave speed";width:auto;transform:none;gap:6px;align-items:start}.resource-bar{grid-area:resources;flex:1 1 auto;flex-wrap:nowrap;min-width:0;overflow-x:auto;scrollbar-width:none}.resource-bar::-webkit-scrollbar{display:none}.resource{flex:0 0 auto;min-height:28px;padding:3px 7px 3px 4px;font-size:12px}.resource-mark{width:20px;height:20px;font-size:15px}.wave-panel{grid-area:wave;justify-self:start;min-width:78px;padding:5px 7px}.wave-panel span{font-size:11px}.wave-panel strong{font-size:18px}.speed-panel{grid-area:speed;justify-self:end;min-height:38px;padding:4px}.icon-button{width:28px;height:28px;font-size:12px}.manual-panel{grid-template-columns:repeat(6,30px);grid-auto-rows:34px;gap:4px;padding:4px;height:44px;min-height:44px;justify-self:end}.talisman-slot{width:30px;height:34px;border-radius:8px}.talisman-glyph{font-size:15px}.talisman-hotkey{display:none}.buildbar{bottom:8px;gap:6px;padding:6px}.build-card{flex-basis:36px;width:36px;height:36px;min-width:0;padding:0}.build-icon{width:34px;height:34px;font-size:34px}.build-copy strong{font-size:14px}.build-cost{display:none}.toast{top:94px;bottom:auto}#menu:not(.hidden)~.toast{top:12px;right:auto;left:50%;max-width:calc(100vw - 28px);transform:translate(-50%)}.inspector{bottom:84px}}
