/* Full battlefield remains unobscured except when an explicit codex/deck icon is opened. */
.v3-lobby-tools{display:grid!important;grid-template-columns:1fr 1fr;gap:6px!important}.v3-lobby-tools button{font-size:12px!important;padding:8px!important}.v3-loadout-note{color:#b9c9b2;font-size:10px;text-align:center;margin:5px 0}.v3-shell{height:94dvh;max-height:900px;display:flex;flex-direction:column;overflow:hidden}.v3-shell .codex-header{flex-shrink:0}.v3-note{font-size:12px;line-height:1.65;color:#abc0b7;margin:8px 12px}.v3-warning{font-size:12px;color:#efb68a}.v3-presets{display:flex;gap:6px;padding:0 12px 8px;flex-wrap:wrap}.v3-presets button,.v3-tabs button,.v3-tier-filters button,.v3-zoom button{border:1px solid #48636a;background:#25414b;color:#dbe5d4;border-radius:5px;padding:7px 10px;min-height:34px;font:inherit;font-size:12px;cursor:pointer}.v3-deck-main{display:grid;grid-template-columns:minmax(0,1fr) 215px;gap:10px;flex:1;min-height:0;padding:0 12px;overflow:auto}.v3-card-pool{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;align-content:start}.v3-deck-card{position:relative;border:1px solid #355660;background:#193640;color:#dce8da;border-radius:7px;min-width:0;padding:5px;display:flex;align-items:center;flex-direction:column;cursor:pointer;font:inherit}.v3-deck-card img{width:64px;height:59px;object-fit:contain;image-rendering:pixelated}.v3-deck-card strong{font-size:12px;line-height:1.4}.v3-deck-card small{font-size:10px;color:#abc4b8;margin:3px 0}.v3-deck-card span{font-size:10px;color:#e1cca0;line-height:1.3}.v3-deck-card.selected{border:2px solid #e1c889;background:#304845;padding:4px}.v3-deck-card:disabled{opacity:1;cursor:default}.v3-card-check{position:absolute;right:5px;top:4px;color:#f1d898;font-size:13px}.v3-deck-summary h3{margin:0 0 8px;color:#e9d49e;font-size:15px}.v3-synergy{border:1px solid #35525a;border-radius:5px;padding:7px;margin-bottom:6px;opacity:.55;background:#16313a}.v3-synergy.active{opacity:1;border-color:#9f946c;background:#344842}.v3-synergy strong{display:block;color:#e7d39f;font-size:12px}.v3-synergy small{display:block;color:#c6d6c7;font-size:11px;line-height:1.5;margin-top:3px}#deckBuilder .primary{align-self:center;margin:8px;min-height:36px;padding:8px 24px}.v3-deck-affinity{align-self:center;margin-bottom:8px;padding:5px 16px!important;font-size:11px!important}.v3-racebar{gap:6px;align-items:center;flex-shrink:0}.v3-tabs{display:flex;margin-left:auto;gap:5px}.v3-tabs button.active,.v3-tier-filters button.active{border-color:#e2c681;color:#f7e4b5;background:#48544a}.v3-atlas-main{display:grid;grid-template-columns:minmax(0,1fr) 275px;min-height:0;flex:1}.v3-atlas-view{min-width:0;overflow:auto;background:#102e37}.v3-atlas-detail{min-width:0;overflow:auto;padding:12px;background:#17313a;border-left:1px solid #3b545b}.v3-atlas-detail h4{color:#e4c989;font-size:13px;margin:16px 0 8px}.v3-detail-hero{display:grid;grid-template-columns:78px 1fr;gap:3px;align-items:center}.v3-detail-hero img{grid-row:span 4;width:76px;height:72px;object-fit:contain;image-rendering:pixelated}.v3-detail-hero h3{font-size:16px;margin:0;color:#f1e4c4}.v3-detail-hero small{font-size:11px;color:#aac5bd}.v3-detail-hero p{font-size:12px;color:#e4c58b;margin:0}.v3-ability{font-size:12px;line-height:1.65;padding:6px 0;margin:0;border-bottom:1px solid #284953;color:#d0dfd0}.v3-recipe{display:grid;grid-template-columns:1fr 20px 1fr;align-items:center;gap:5px;padding:9px;margin:8px;border:1px solid #36565d;border-radius:8px;background:#193640}.v3-recipe.ready{border-color:#d1b976}.v3-materials,.v3-results{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;min-width:0}.v3-results{padding-top:16px;position:relative}.v3-choose-label{position:absolute;left:0;top:0;right:0;text-align:center;color:#d6bf8d;font-size:10px}.v3-mini-unit{position:relative;color:#dfe7d6;background:#24414a;border:1px solid #426069;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:64px;max-width:94px;flex:1;padding:3px;cursor:pointer;font:inherit;overflow:hidden}.v3-mini-unit img{width:45px;height:43px;object-fit:contain;image-rendering:pixelated}.v3-mini-unit strong{font-size:11px;line-height:1.4;text-align:center}.v3-mini-unit small{font-size:10px;line-height:1.4;color:#b4c7b7}.v3-mini-unit em{position:absolute;left:3px;top:2px;font-size:10px;font-style:normal;background:#16343b;padding:1px 3px;border-radius:3px}.ok{color:#cfe6a8}.missing{color:#efab8e}.v3-plus,.v3-arrow{font-size:18px;color:#dfc694;text-align:center}.v3-result-choice{display:flex;flex:1;flex-direction:column;max-width:100px;min-width:62px}.v3-craft{background:#485e45;border:1px solid #b9bb7d;color:#f1ebc3;border-radius:3px;padding:4px;margin-top:4px;min-height:30px;cursor:pointer;font-size:11px}.v3-atlas-detail .v3-recipe{display:flex;flex-direction:column;margin:8px 0;padding:7px}.v3-atlas-detail .v3-arrow{transform:rotate(90deg);height:16px;line-height:16px}.v3-atlas-detail .v3-mini-unit{min-width:52px}.v3-tier-filters{display:flex;gap:6px;padding:8px;position:sticky;top:0;z-index:2;background:#14313af5}.v3-zoom{display:flex;gap:4px;margin-left:auto;margin-right:8px}.v3-graph-viewport{position:relative;touch-action:none;overflow:hidden;cursor:grab;background-image:radial-gradient(#456264 1px,transparent 1px);background-size:16px 16px}.v3-graph{position:absolute;left:0;top:0;transform-origin:0 0}.v3-graph-unit{position:absolute!important;width:170px;max-width:none;height:66px;display:grid;grid-template-columns:52px 1fr;opacity:.56;padding:4px}.v3-graph-unit img{grid-row:span 2;width:52px;height:55px}.v3-graph-unit strong{font-size:12px}.v3-graph-unit.related{opacity:1;border-color:#8ca995}.v3-graph-unit.selected{opacity:1;border:2px solid #f1d487;background:#4a5b4b}.v3-col-label{position:absolute;top:0;width:170px;text-align:center;color:#e5cf95;font-size:13px}.v3-graph-lines{position:absolute;inset:0;pointer-events:none}.v3-graph-lines path{fill:none;stroke:#83a397;opacity:.09;stroke-width:1.5}.v3-graph-lines path.related{stroke:#e1c87f;opacity:.9;stroke-width:2.5}.v3-counter{padding:12px}.v3-counter h3{color:#ecd293;font-size:15px;margin:12px 0}.v3-counter-row{display:flex;justify-content:space-between;gap:12px;padding:10px;border-bottom:1px solid #35565d;font-size:12px;line-height:1.6;color:#c5d9cb}.v3-counter-row strong{color:#ecd9ac;min-width:90px}.v3-element-ring{text-align:center;padding:16px;background:#26454d;color:#e1d49c;font-weight:700;font-size:15px;border-radius:6px}.v3-zoom.hidden{display:none}
@media(max-height:480px){.faction-home .mini-crest{display:none}.faction-home h1{font-size:30px!important}.faction-home .intro{display:none}.faction-home .race-figures{display:none}.faction-home .subtitle{margin:2px 0!important}.faction-home .race-description{margin:3px 0;font-size:10px}.v3-shell .codex-header{padding:8px 12px}.v3-shell .codex-header h2{font-size:17px}.v3-shell .codex-header small{font-size:9px}.v3-card-pool{grid-template-columns:repeat(4,minmax(0,1fr))}.v3-deck-card img{height:42px;width:48px}.v3-deck-main{grid-template-columns:minmax(0,1fr) 200px}.v3-note{font-size:11px;margin:5px 10px}.v3-shell .codex-filters{padding:6px 10px}.v3-atlas-main{grid-template-columns:minmax(0,1fr) 235px}.v3-ability{font-size:11px}.v3-recipe{margin:6px;padding:7px}.v3-deck-card span{font-size:9px}.v3-tabs button,.v3-zoom button{padding:5px 8px;font-size:11px;min-height:30px}}
@media(max-width:760px){.v3-atlas-main{grid-template-columns:minmax(0,1fr) 200px}.v3-mini-unit{min-width:48px}.v3-mini-unit img{width:38px;height:36px}.v3-mini-unit strong{font-size:10px}.v3-materials,.v3-results{gap:2px}.v3-plus{font-size:13px}.v3-recipe{grid-template-columns:1fr 12px 1fr}.v3-deck-main{grid-template-columns:minmax(0,1fr) 170px}.v3-deck-card strong{font-size:10px}.v3-deck-card small{font-size:9px}.v3-counter-row{flex-direction:column;gap:2px}.v3-zoom button{padding:4px 6px}.v3-tabs button{padding:5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Keep the action row compact in landscape; the card pool scrolls independently. */
.v3-deck-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;padding:6px 12px}.v3-deck-actions .primary,.v3-deck-actions .secondary{margin:0!important;min-height:36px!important;width:auto!important;max-width:none!important;padding:7px 15px!important;font-size:12px!important}.v3-deck-actions .v3-deck-affinity{margin:0!important}
