:root{color-scheme:dark;--ink:#101e25;--panel:#1b3038;--line:#38515a;--text:#e4ecde;--muted:#a4bab9;--gold:#f3cf7a}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#213b3c;color:var(--text);font:15px/1.4 'Trebuchet MS',sans-serif}main,.board{position:fixed;inset:0}canvas{display:block;width:100%;height:100%;touch-action:manipulation}button{font:inherit;color:inherit;background:#263f47;border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-height:44px;min-width:44px;cursor:pointer;touch-action:manipulation}button:hover{background:#365761}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.primary{background:var(--gold);color:var(--ink);font-weight:bold;border-color:var(--gold)}.hud{position:fixed;top:max(8px,env(safe-area-inset-top));left:8px;display:flex;align-items:center;gap:12px;background:#10252ced;border:1px solid var(--line);border-radius:10px;padding:6px 10px;z-index:2}.hud small{display:block;font-size:10px;color:var(--muted)}.hud strong{font-size:15px;font-variant-numeric:tabular-nums}.hud button{padding:8px;min-width:44px}.hud #gold{color:var(--gold)}.wave-controls{position:fixed;bottom:max(8px,env(safe-area-inset-bottom));left:8px;right:8px;display:flex;align-items:center;justify-content:space-between;gap:12px;z-index:2;pointer-events:none}.wave-controls>*{pointer-events:auto}.wave-controls span{font-size:12px;background:#10252ce8;padding:10px;border-radius:6px}.game-menu{position:fixed;right:8px;top:max(8px,env(safe-area-inset-top));z-index:3}.game-menu summary{list-style:none;cursor:pointer;background:#10252ced;border:1px solid var(--line);border-radius:8px;width:44px;height:44px;display:grid;place-items:center;font-size:23px}.game-menu>div{position:absolute;right:0;top:52px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:18px;width:min(300px,calc(100vw - 16px));max-height:calc(100dvh - 130px);overflow:auto}.game-menu small{display:block;margin-top:10px;color:var(--muted)}h2,h3,p{margin:0 0 10px}h2{font-size:20px}h3{font-size:16px}p{color:var(--muted);font-size:13px}.sheet{position:fixed;bottom:max(8px,env(safe-area-inset-bottom));left:8px;right:8px;max-width:550px;margin:auto;z-index:4;background:#1b3038f5;border:1px solid #6b8685;border-radius:14px;padding:18px;max-height:calc(100dvh - 80px);overflow:auto;box-shadow:0 8px 40px #071a25aa}.sheet[hidden],.overlay[hidden],#notice[hidden]{display:none}.sheet h2,.sheet h3{padding-right:44px}.close,.close-inspector{position:absolute;right:6px;top:6px;width:44px;height:44px;background:transparent;border:0;font-size:20px}.tower-card{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;width:100%;text-align:left;margin-top:8px;padding:14px 10px;min-height:70px}.tower-icon{font-size:26px}.tower-card strong{font-size:16px}.tower-card small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.price{color:var(--gold);font-size:14px}.attributes{font-size:13px}#improve,#sell{width:calc(50% - 5px);margin-top:4px}#sell{margin-left:6px}.pad-input{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;padding:0;background:transparent;border:0;border-radius:50%}.pad-input:hover{background:#f3cf7a18}#notice{position:fixed;top:80px;left:50%;transform:translateX(-50%);z-index:3;background:var(--gold);color:var(--ink);padding:9px 14px;border-radius:6px;font-size:13px;font-weight:bold;max-width:90%;width:max-content;pointer-events:none}.overlay{position:fixed;inset:0;display:grid;place-items:center;background:#081419dc;z-index:6;padding:12px;overflow:auto}.modal{width:min(800px,100%);max-height:calc(100dvh - 24px);overflow:auto;text-align:center;background:var(--panel);border:1px solid #6b8685;border-radius:14px;padding:22px}.modal-symbol{color:var(--gold);font-size:30px}.modal h2{font:28px Georgia,serif}.modal>p{margin-bottom:18px}#choices{display:flex;gap:12px}.choice{flex:1;min-width:0;text-align:left;padding:18px}.choice span{display:block;font-size:26px;color:var(--gold);margin-bottom:8px}.choice strong{display:block}.choice p{margin:8px 0 0}.relics li,#relic-list li{font-size:13px}#relic-list{padding-left:18px}@media(max-width:500px){.hud{gap:8px;padding:4px 6px}.hud strong{font-size:13px}.hud button{padding:6px}.game-menu{top:70px}.sheet{padding:14px}.tower-card{gap:7px;grid-template-columns:28px 1fr auto}.tower-card strong{font-size:15px}.tower-card small{font-size:11px}.wave-controls span{max-width:50%}#choices{flex-direction:column}.choice{padding:14px}.choice span{float:left;margin:0 12px 0 0}.modal h2{font-size:25px}}@media(orientation:landscape) and (max-height:500px){.sheet{left:auto;width:360px;max-height:calc(100dvh - 70px)}.tower-card{padding:8px;min-height:60px}.sheet>p{display:none}.modal{padding:16px}.modal-symbol{display:none}.modal h2{font-size:23px}.modal>p{margin-bottom:12px}.choice{padding:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.unlock-choice{border-color:var(--gold);background:#354947}.unlock-choice strong{color:var(--gold)}

.research-status{padding:10px;border-left:3px solid var(--gold);background:#10252c88;margin:10px 0}.research-status strong{font-size:14px}.research-status p{margin:5px 0 0}.path-tree{margin-top:14px;border-top:1px solid var(--line);padding-top:4px}.path-tree summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:14px}.path-tree summary::before{content:'▸';margin-right:8px}.path-tree[open] summary::before{content:'▾'}.path-tree>p{font-size:12px}.branch{border:1px solid var(--line);border-radius:8px;padding:10px;margin-top:10px}.branch.excluded{opacity:.55}.branch h4{margin:0 0 5px;font-size:15px}.branch small{display:block;font-size:11px;font-weight:normal;color:var(--muted)}.branch ol{padding-left:22px;margin:8px 0}.branch li{padding:6px 0;font-size:13px}.branch li p{font-size:12px;margin:4px 0 0}.branch .researched>strong{color:var(--gold)}.reward-kind{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}.choice .reward-kind+span{margin-bottom:5px}@media(max-width:500px){.choice p{font-size:12px}.modal h2{font-size:23px}}

.research-status .installed-effect{color:var(--text);border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:8px}

/* Pixelwacht: crisp navy frames, warm gold, original pixel sprites. */
:root{--ink:#10263d;--panel:#182e46;--line:#527e83;--text:#ebe4c5;--muted:#a8bec0;--gold:#edc56b}
html,body{background:#244e4d;font-family:'Trebuchet MS',sans-serif}
canvas,img{image-rendering:pixelated}
button{background:#244457;border:2px solid #527e83;border-radius:2px;box-shadow:inset 0 2px #769497,inset 0 -2px #12263d,2px 2px #0c2033}
button:hover{background:#315b68}button:active{transform:translateY(1px)}button:disabled{opacity:.55}
.primary{background:#edc56b;border-color:#fff0b1;box-shadow:inset 0 -3px #b08645,2px 2px #10263d;color:#182e46}
h2,h3,.tower-card strong,.hud strong,.modal h2,.choice strong{font-family:'Courier New',monospace;font-weight:900;letter-spacing:-.5px}
.hud{background:#142a42f5;border:2px solid #527e83;border-radius:2px;box-shadow:inset 0 2px #78928c,3px 3px #0c2033;padding:4px 8px;gap:10px}
.hud small{color:#b7c7c1}.hud strong{font-size:16px}.hud button{padding:5px;box-shadow:inset 0 2px #527e83}.hud #lives{color:#ffc29d}
.wave-controls span{background:#142a42ee;border:1px solid #527e83;border-radius:1px;color:#dce2c6;box-shadow:2px 2px #10263d}
.game-menu summary{background:#182e46;border:2px solid #6f9290;border-radius:2px;box-shadow:2px 2px #10263d;color:#edc56b}
.game-menu>div,.sheet,.modal{background:#182e46fa;border:2px solid #7e9e98;border-radius:2px;box-shadow:inset 0 2px #bed0b0,4px 4px #0c2033,0 8px 30px #0c203366}
.sheet h2,.sheet h3{color:var(--gold)}.close,.close-inspector{box-shadow:none;color:#c4d5ce}
.tower-card{grid-template-columns:44px 1fr auto;gap:10px;padding:10px;min-height:76px;background:#234357}
.tower-icon{display:grid;place-items:center}.tower-icon img{width:44px;height:54px;object-fit:contain}.tower-card strong{font-size:16px}.tower-card small{font-size:12px}.price{font-weight:bold;white-space:nowrap}
.pad-input{border-radius:0;box-shadow:none}.pad-input:hover{background:#edc56b18}.pad-input:active{transform:translate(-50%,-50%)}
#notice{border:2px solid #fff0b1;border-radius:1px;box-shadow:3px 3px #10263d}
.overlay{background:#0c2033e8}.modal h2{font-size:26px;color:#edc56b}.modal-symbol{font-family:monospace}.choice{background:#234357}.choice span img{width:44px;height:54px;object-fit:contain}.unlock-choice{border-color:#edc56b;background:#2b4c57}.choice .reward-kind{letter-spacing:1px;text-transform:uppercase;font-size:10px}.branch{border-radius:1px;background:#203a50}.research-status{background:#10263d99}
@media(max-width:500px){.hud{gap:7px;padding:3px 5px}.hud strong{font-size:14px}.hud small{font-size:9px}.hud button{padding:4px}.game-menu{top:max(8px,env(safe-area-inset-top))}.tower-card{grid-template-columns:40px 1fr auto;gap:7px}.tower-card strong{font-size:15px}.tower-card small{font-size:11px}.tower-icon img{width:40px;height:49px}.choice span img{width:36px;height:44px}.modal h2{font-size:23px}}
@media(orientation:landscape) and (max-height:500px){.tower-card{min-height:64px;padding:6px 8px}.tower-icon img{width:36px;height:44px}}

@media(max-width:500px){.hud{max-width:calc(100vw - 68px);gap:6px}.hud>div{min-width:0}.hud strong{font-size:12px;white-space:nowrap}.hud #gold{display:block;max-width:54px;overflow:hidden;text-overflow:ellipsis}.wave-controls span{max-width:50%}}
@media(max-width:500px){.hud>div{flex-shrink:0}.hud strong{display:block;padding-right:2px}}

.upgrade-catalogue{margin:12px 0}.upgrade-catalogue summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--gold)}.upgrade-catalogue article{border-top:1px solid var(--line);padding:10px 0}.upgrade-catalogue p{margin:5px 0}.upgrade-catalogue article small{margin:0}#relic-list li{margin-bottom:10px}#relic-list li small{margin-top:3px}

.upgrade-icon{display:inline-block;vertical-align:middle;flex-shrink:0}.upgrade-catalogue article>.upgrade-icon{float:left;margin:0 10px 6px 0}.upgrade-catalogue article{display:flow-root}.upgrade-catalogue article>strong{display:block;min-height:36px;line-height:36px}.upgrade-catalogue article p{clear:both}#relic-list .upgrade-icon{width:28px;height:28px;margin-right:5px}.branch li .upgrade-icon{width:26px;height:26px;margin-right:6px}.choice span>.upgrade-icon{width:44px;height:44px}.choice .reward-kind+span{min-height:44px}@media(max-width:500px){.choice span>.upgrade-icon{width:36px;height:36px}}
.menu-actions{display:grid;gap:8px;margin:14px 0}.enemy-heading,.tower-heading{display:flex;align-items:center;gap:12px;padding-right:38px;margin-bottom:12px}.enemy-heading img,.tower-heading img{width:48px;height:60px;object-fit:contain;flex-shrink:0}.enemy-heading h2,.tower-heading h3{margin:0;padding:0}.enemy-inspector{max-width:420px}.enemy-inspector .primary,.boss-preview .primary{width:100%}.boss-preview{max-width:420px}.enemy-inspector[hidden],.boss-preview[hidden]{display:none}.game-menu #save-status{font-size:11px}#choices:has(#continue-run){flex-direction:column}#choices:has(#continue-run) button{width:100%}.enemy-inspector h3{margin-top:12px}@media(orientation:landscape) and (max-height:500px){.enemy-heading img{width:32px;height:40px}.enemy-heading{margin-bottom:4px}.enemy-inspector p{font-size:12px;margin-bottom:5px}.enemy-inspector h3{margin-top:5px}.enemy-inspector{top:65px;bottom:8px}}

.choice-block{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.choice-block .choice{width:100%;flex:1}.synergy-choice{border-color:#89dce6}.rare-choice{border-color:#c5a5eb}.rare-choice .reward-kind{color:#c5a5eb}.banish-card{color:#e8a5a5}.active-links{border-left:3px solid #89dce6;padding-left:8px}#draft-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}#draft-tools[hidden]{display:none}#draft-tools button{flex:1;min-width:100px;font-size:12px}#draft-tools p{flex-basis:100%;font-size:11px;margin:0;color:#a8bec0}#choices:has(.choice-block:nth-child(4)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:500px){#choices:has(.choice-block:nth-child(4)){display:flex;flex-direction:column}.choice-block{flex:none}.choice-block .choice{flex:auto}.modal{padding:14px}.choice-block .choice p{font-size:12px}}

#choices:has(.team-card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.team-card{display:flex;flex-direction:column;align-items:center;gap:6px}.team-card[aria-pressed="true"]{border-color:var(--gold)}#confirm-team{grid-column:1/-1}.team-card small{font-size:11px}

/* Tower workshop: fixed navigation and actions around a scrolling ledger. */
#inspector{display:flex;flex-direction:column;width:420px;height:610px;max-height:calc(100dvh - 156px);max-width:calc(100vw - 16px);left:auto;right:12px;bottom:72px;margin:0;padding:0;overflow:hidden;border-color:#8ca8a1}
#inspector[hidden]{display:none}
.tower-menu-head{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr) 42px;align-items:center;gap:12px;padding:16px 48px 14px 16px;background:#203c50;border-bottom:1px solid #527e83}
.tower-portrait{display:flex;justify-content:center;align-items:center;height:66px;background:#10263d;box-shadow:inset 0 -3px #527e83}
.tower-portrait img{width:52px;height:64px;object-fit:contain}.tower-menu-head h3{font-size:20px;line-height:1.1;padding:0;margin:3px 0 5px;overflow-wrap:anywhere}.tower-menu-head small{font-size:11px;color:#b8cfca}.tower-menu-head p{font-size:12px;margin:0;color:#edc56b;line-height:1.25}.tower-level-badge{align-self:center;display:block;color:#edc56b;text-align:center;font:900 28px/1 'Courier New',monospace}.tower-level-badge small{display:block;margin-top:5px;color:#b8cfca;font:11px 'Trebuchet MS',sans-serif}
.tower-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#10263d;flex-shrink:0;border-bottom:1px solid #527e83;padding:0 8px;gap:4px}.tower-tabs button{box-shadow:none;border:0;border-bottom:3px solid transparent;background:transparent;min-height:48px;padding:10px 4px;font-weight:bold;font-size:13px;color:#a8bec0}.tower-tabs button[aria-selected="true"]{border-bottom-color:#edc56b;color:#fff0b1;background:#244457}.tower-tabs button:focus-visible{outline-offset:-4px}
#inspector .tower-content{flex:1;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain;scrollbar-color:#527e83 #10263d}#inspector .tower-content[hidden]{display:none}.tower-content h4{margin:0;font-size:14px;line-height:1.3;color:#ebe4c5}.tower-content p{font-size:13px;line-height:1.5;margin:7px 0 0}.tower-content small{font-size:11px;color:#a8bec0}
.tower-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid #527e83;border-left:1px solid #527e83;margin-bottom:16px}.tower-stats>div{padding:10px 12px;border-right:1px solid #527e83;border-bottom:1px solid #527e83;background:#10263d77}.tower-stats strong{display:block;font:900 24px/1.1 'Courier New',monospace;color:#ebe4c5}.tower-stats span{display:block;margin-top:4px;color:#a8bec0;font-size:11px}.tower-dot{display:flex;gap:10px;align-items:center;padding:0 0 14px!important}.tower-dot small{display:block;margin-top:2px}
.tower-section-heading{display:flex;gap:8px;justify-content:space-between;align-items:center;margin:18px 0 10px}.tower-section-heading:first-child{margin-top:0}.tower-section-heading h4{color:#edc56b}.tower-level-track{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;margin-bottom:14px}.tower-level-track span{display:grid;place-items:center;min-height:25px;background:#10263d;color:#789a9c;font-size:11px;border-bottom:3px solid #385a68}.tower-level-track .installed{background:#edc56b;color:#10263d;border-bottom-color:#b08645;font-weight:bold}.tower-level-track .available{color:#89dce6;border-bottom-color:#89dce6}
.tower-upgrade-note{margin-top:10px;border-left:3px solid #527e83;padding:10px 12px;background:#10263d66}.tower-upgrade-note>small{display:block;margin-bottom:4px}.next-upgrade{border-left-color:#edc56b}.tower-hint{font-size:11px!important;color:#89dce6!important}.tower-bonus{padding:9px 0;border-bottom:1px solid #385a68;color:#89dce6}
.tower-path-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tower-path-picker button{padding:8px 4px;min-height:66px;box-shadow:none;font-size:11px;overflow-wrap:anywhere}.tower-path-picker strong{display:block;line-height:1.35}.tower-path-picker small{display:block;margin-top:5px;font-size:10px}.tower-path-picker button[aria-pressed="true"]{border-color:#edc56b;color:#fff0b1;background:#304b55}.tower-path-intro{padding:14px 0 10px;border-bottom:1px solid #527e83}.tower-path-intro small{display:block;margin-top:8px}.tower-stage-list{list-style:none;padding:0;margin:0}.tower-stage-list li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:14px 0;border-bottom:1px solid #385a68}.tower-stage-icon{display:flex;flex-direction:column;align-items:center;gap:6px;position:relative}.tower-stage-icon .upgrade-icon{width:34px;height:34px}.tower-stage-icon small{font-size:10px;white-space:nowrap}.tower-stage-state{display:block;margin-bottom:4px}.tower-stage-list .installed h4,.tower-stage-list .installed .tower-stage-state{color:#edc56b}.tower-stage-list .researched .tower-stage-state{color:#89dce6}.tower-stage-list.excluded{opacity:.65}
.tower-connections{background:#10263d66;padding:10px 12px;border-left:3px solid #89dce6}.tower-connections>div{display:flex;gap:10px;align-items:center;padding:6px 0}.tower-connections img{width:36px;height:44px;object-fit:contain}.tower-connections strong,.tower-connections small{display:block}.tower-connections strong{font-size:13px}.tower-connections small{margin-top:3px}.tower-connections p{margin:0}.tower-synergy{border-bottom:1px solid #385a68;padding:12px 0}.tower-synergy-title{display:flex;gap:10px;align-items:center}.tower-synergy-title small{display:block;margin-bottom:4px}.tower-synergy.owned .tower-synergy-title small{color:#89dce6}.tower-synergy.unavailable{opacity:.65}
.tower-actions{flex-shrink:0;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px;padding:12px 14px;background:#10263d;border-top:1px solid #527e83}#inspector .tower-actions #improve,#inspector .tower-actions #sell{width:auto;margin:0;min-height:50px;padding:8px;font-size:12px}#inspector .tower-actions #sell{background:transparent;box-shadow:none;color:#a8bec0;border-color:#385a68}#sell small{display:block;font-size:10px;color:#a8bec0;margin-top:2px}.tower-gold-short{grid-column:1/-1;color:#edc56b;font-size:11px;text-align:center}
@media(max-width:600px) and (orientation:portrait){#inspector{left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;height:76dvh;max-height:calc(100dvh - 92px);max-width:none}.tower-menu-head{padding:12px 44px 12px 12px;gap:9px;grid-template-columns:48px minmax(0,1fr) 32px}.tower-menu-head h3{font-size:18px}.tower-portrait{height:58px}.tower-portrait img{width:44px;height:56px}.tower-level-badge{font-size:24px}#inspector .tower-content{padding:12px}.tower-path-picker button{font-size:10px}.tower-actions{padding:10px 12px}}
@media(orientation:landscape) and (max-height:500px){#inspector{top:66px;bottom:8px;right:8px;width:390px;height:auto;max-height:none}.tower-menu-head{grid-template-columns:36px minmax(0,1fr) 32px;gap:9px;padding:7px 44px 7px 10px}.tower-menu-head h3{font-size:16px;margin:2px 0}.tower-menu-head>div>small{display:none}.tower-portrait{height:40px}.tower-portrait img{width:32px;height:40px}.tower-level-badge{font-size:22px}.tower-tabs button{min-height:44px;padding:7px 4px}.tower-actions{padding:7px 10px}#inspector .tower-actions #improve,#inspector .tower-actions #sell{min-height:44px}.tower-stats strong{font-size:20px}#inspector .tower-content{padding:10px 12px}}

#inspector .tower-actions #improve small{display:block;font-size:10px;margin-top:3px;color:inherit;font-weight:normal}
.rarity-common{--rarity-color:#edc56b}.rarity-rare{--rarity-color:#79bfff}.rarity-legendary{--rarity-color:#c5a5eb}
.choice.rarity-common,.choice.rarity-rare,.choice.rarity-legendary{border-color:var(--rarity-color);box-shadow:inset 0 3px var(--rarity-color),inset 0 -2px #12263d,2px 2px #0c2033}.choice .rarity-badge,.rarity-badge{display:inline-block;float:none;font:700 10px/1.4 'Trebuchet MS',sans-serif;letter-spacing:0;padding:3px 7px;border:1px solid var(--rarity-color);color:var(--rarity-color);background:#10263d;white-space:nowrap;margin:0 0 7px}.choice .rarity-badge{font-size:11px}.choice .rarity-badge+strong{color:var(--rarity-color)}#relic-list .rarity-badge{margin:3px 0}.rarity-entry>.rarity-badge{float:right;margin-left:8px}.tower-content .rarity-badge{margin:6px 0 0}.tower-stage-list .rarity-badge{font-size:10px}

/* Nearby touch controls: build immediately, hold to inspect. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#build-panel{position:fixed;z-index:5;display:flex;align-items:center;gap:6px;padding:7px;background:#182e46fa;border:2px solid #8ca8a1;box-shadow:3px 3px #0c2033;max-width:calc(100vw - 16px)}
#build-panel[hidden],#build-info[hidden]{display:none}
#tower-shop{display:flex;gap:6px}.build-icon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:54px;height:66px;padding:4px;touch-action:none;user-select:none;-webkit-touch-callout:none}
.build-icon img{width:34px;height:40px;object-fit:contain;pointer-events:none}.build-icon small{font-size:11px;font-weight:bold;color:#edc56b;pointer-events:none}.build-icon[aria-disabled="true"]{opacity:.5}.build-icon[aria-expanded="true"]{border-color:#edc56b;background:#355463}#close-shop{padding:4px;box-shadow:none;background:transparent;border-color:transparent;font-size:18px}
#build-info{position:fixed;z-index:5;display:flex;gap:8px;width:260px;max-width:calc(100vw - 16px);padding:10px;background:#10263df5;border:2px solid #edc56b;box-shadow:3px 3px #0c2033;pointer-events:none}#build-info>img{width:32px;height:40px;object-fit:contain;flex-shrink:0}#build-info strong{font-size:14px;color:#edc56b}#build-info p{margin:4px 0;font-size:12px}#build-info small{font-size:11px}#build-info .hold-hint{font-size:10px;color:#89dce6}
#inspector{width:300px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 80px);height:270px;right:auto;bottom:auto;margin:0}
.tower-menu-head{grid-template-columns:32px minmax(0,1fr) 24px;gap:8px;padding:7px 46px 7px 8px;flex-shrink:0;order:0;min-height:60px}.tower-portrait{height:40px}.tower-portrait img{width:32px;height:40px}.tower-menu-head h3{font-size:15px;margin:2px 0}.tower-menu-head small{font-size:9px}.tower-menu-head p{font-size:10px}.tower-level-badge{font-size:20px}.tower-level-badge small{font-size:9px;margin-top:2px}.tower-tabs{order:1;padding:0 5px;gap:2px}.tower-tabs button{min-height:44px;padding:6px 3px;font-size:12px}
#inspector .tower-content{order:2;padding:9px;min-height:0}.tower-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:7px}.tower-stats>div{padding:6px 3px;text-align:center}.tower-stats strong{font-size:18px}.tower-stats span{font-size:9px;margin-top:2px}.compact-upgrade{border-left:2px solid #edc56b;padding-left:8px}.compact-upgrade h4{font-size:12px;margin-top:2px}.compact-upgrade p{font-size:11px;line-height:1.35;margin-top:3px}.compact-upgrade small{font-size:10px}.tower-content .compact-effect{font-size:11px;margin:4px 0 7px;color:#89dce6}
.tower-actions{order:3;padding:6px;gap:6px}#inspector .tower-actions #improve,#inspector .tower-actions #sell{min-height:44px;padding:5px;font-size:11px}#inspector .tower-actions #improve small{font-size:9px;margin-top:2px}.tower-gold-short{font-size:10px}
#inspector[data-side="below"] .tower-actions{order:1;border-top:0;border-bottom:1px solid #527e83}#inspector[data-side="below"] .tower-tabs{order:2}#inspector[data-side="below"] .tower-content{order:3}
.tower-path-picker button{min-height:58px}.tower-path-picker strong{font-size:10px}.tower-stage-list li{gap:8px;padding:10px 0}.tower-content p{font-size:12px}.tower-section-heading{margin:12px 0 7px}.tower-section-heading small{font-size:10px}.tower-connections{padding:6px 8px}.tower-synergy-title{gap:7px}
#build-panel{flex-wrap:wrap;width:242px}#build-confirm{display:flex;gap:6px;width:100%;border-top:1px solid #527e83;padding-top:6px}#build-confirm[hidden]{display:none}#confirm-build{flex:1;padding:6px;font-size:12px}#cancel-build{padding:6px;font-size:20px}#build-panel .build-icon[aria-expanded="true"]{border-color:#edc56b}
.target-priority-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:11px;color:#edc56b}.target-priority-label select{width:164px;min-height:44px;padding:6px;color:#ebe4c5;background:#10263d;border:2px solid #527e83;font:12px 'Trebuchet MS',sans-serif;border-radius:2px}.target-priority-label select:focus-visible{outline:2px solid #edc56b}
