/* Land Battle is a single viewport; board zones never scroll or hide cards. */
.shell.land-board-fit:has(.tabletop){width:100%;max-width:none;height:100dvh;min-height:0;padding:6px 10px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:5px;overflow:clip}
.shell.land-board-fit>.top{grid-row:1;min-height:35px;padding:0;gap:12px}.land-board-fit .top .brand{font-size:16px;margin:0}.land-board-fit .top .eyebrow{font-size:11px}.land-board-fit .table-status{font-size:12px;gap:12px}.land-board-fit .table-status span{display:flex;gap:5px;align-items:center}.land-board-fit .table-status small{font-size:12px}.land-board-fit .top button{min-height:34px;padding:6px 10px}
.shell.land-board-fit>.board{grid-row:2;display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;gap:5px;overflow:visible}
.shell.land-board-fit .turnbar{padding:4px 9px;min-height:36px;margin:0;flex:none}.land-board-fit .turnbar .phase-pills{display:none}.land-board-fit .phase-current>div{display:flex;align-items:center;gap:12px}.shell.land-board-fit .phase-current h2{font-size:16px;white-space:nowrap}.shell.land-board-fit .phase-current p{font-size:13px;margin:0;line-height:1.25}
.land-table-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:8px;min-height:0}
.shell.land-board-fit .tabletop.land-table{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:5px;min-height:0;padding:7px;margin:0;border-radius:9px;overflow:visible}
.land-command-row{display:flex;flex-direction:column;gap:4px;min-width:0}.land-command-line{display:flex;align-items:center;gap:7px;min-width:0}.land-command-line .land-warden{display:flex;align-items:center;gap:5px;background:transparent;border:1px solid #526c60;border-radius:5px;width:140px;min-width:100px;min-height:42px;padding:3px;color:#e7eada;flex-shrink:0}.land-warden img{width:30px;height:36px;object-fit:cover;border-radius:4px}.land-warden strong{font-size:12px;line-height:1.2;text-align:left}
.land-command-line .warden-play{width:95px;min-width:70px;min-height:40px;padding:4px;font-size:12px}.land-command-line .warden-play small{font-size:11px}
.land-counters{display:flex;gap:5px;flex:1;justify-content:space-evenly;min-width:0}.land-counter{display:flex;flex-direction:column;text-align:center;white-space:nowrap}.land-counter b{font-size:17px;line-height:1.1}.land-counter small{font-size:11px;color:#c0d2c7}.land-counter.ready b{color:#efd58f}.land-counter.health b{color:#f0a4a0}.land-counter.arcana b{color:#c6b2f5}.land-counter.biomass b{color:#a1df9b}
.land-piles{display:grid;grid-template-columns:repeat(3,auto);gap:4px;font-size:12px}.land-piles>*{padding:5px;border:1px solid #4b685b;border-radius:5px;background:#0d211d;display:flex;flex-direction:column;text-align:center;justify-content:center;min-height:36px;color:#d9e6dc}.land-piles button{font-size:12px;min-height:36px}
.land-support-row{display:flex;flex-wrap:wrap;gap:4px;align-items:stretch;min-width:0}.land-camp-count,.land-support-empty,.land-empty-structure{font-size:11px;padding:5px;align-self:center;color:#9fb9ab}.land-empty-structure{border:1px dashed #6a827c70;border-radius:4px}.land-support-card{display:flex;align-items:center;gap:5px;background:#162d26;border:1px solid #66785f;border-radius:5px;padding:4px 6px;min-width:0;flex:1 1 90px;max-width:170px;min-height:30px;color:#e3e8d8;text-align:left}.land-support-card>span{font-size:10px;text-transform:capitalize;color:#b8c9b6}.land-support-card>strong{font-size:12px;line-height:1.15;overflow-wrap:anywhere}.land-support-card[data-card-type=equipment]{border-color:#c18a60}.land-support-card[data-card-type=relic]{border-color:#af83cd}
.land-location-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;min-height:0}.land-full-location{display:grid;grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);gap:4px;min-width:0;min-height:0;border:1px solid #4e6b62;border-radius:7px;padding:5px;background:#10211eb0}.land-full-location.open{border-color:#bca06b}
.land-army{display:grid;grid-template-rows:18px minmax(0,1fr);gap:3px;min-width:0;min-height:0}.land-army>header{display:flex;justify-content:space-between;font-size:11px;color:#aac5b7;padding:0 3px}.land-army>header strong{font-size:12px}.enemy-army>header{color:#d9afa5}
.land-all-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:4px;min-width:0;min-height:0}
.land-visible-slot.empty{display:grid;place-items:center;border:1px dashed #54726877;border-radius:5px;color:#68877a;background:#13262044;font-size:12px}
.shell.land-board-fit .tabletop .land-visible-slot.card{width:100%;min-width:0;height:100%;min-height:0;padding:4px;display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;column-gap:4px;row-gap:2px;border:1px solid #587266;border-radius:5px;text-align:left;background:#19332b;color:#edf0df;overflow:visible;transform:none}
.land-visible-slot>img{grid-column:1;grid-row:1;width:28px;height:36px;max-height:100%;object-fit:cover;border-radius:3px}.land-visible-slot>strong{grid-column:2;grid-row:1;align-self:center;font-size:12px;line-height:1.15;overflow-wrap:anywhere;font-weight:600}.land-unit-values{grid-column:1/-1;grid-row:2;font-size:14px;line-height:1.2;display:flex;justify-content:space-between;white-space:nowrap}.land-visible-slot>small{grid-column:1/-1;grid-row:3;font-size:10px;line-height:1.1;white-space:normal}
.shell.land-board-fit .tabletop .land-visible-slot.interactive-card{border-color:#cbb576}.shell.land-board-fit .tabletop .land-visible-slot.attack-selected{border:2px solid #f1ac78;background:#49372a}.shell.land-board-fit .tabletop .land-visible-slot.selected-card{outline:2px solid #e6dbb0;outline-offset:0}.shell.land-board-fit .tabletop .land-visible-slot.exhausted{opacity:.75;background:#242d29}
.land-terrain.front-location{min-width:0;width:100%;min-height:45px;padding:4px 8px;border-radius:5px;background:#25382b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;color:#eedfbd}.land-terrain small{font-size:10px}.land-terrain strong{font-size:14px}.land-terrain span{font-size:11px;line-height:1.2}
.land-detail-rail{min-height:0;min-width:0;display:flex;flex-direction:column;gap:9px;padding:12px;background:#10251ff5;border:1px solid #64816a;border-radius:8px;overflow:visible}.land-detail-rail header>small{font-size:10px;letter-spacing:.08em;color:#a7beae}.land-detail-rail h2{font-size:19px;line-height:1.2;margin:6px 0;overflow-wrap:anywhere}.land-detail-values{font-size:13px;line-height:1.4;color:#e1c992}.land-detail-rail nav{display:flex;gap:5px;margin-top:8px}.land-detail-rail nav button{flex:1;min-height:34px;padding:5px;font-size:13px}.land-detail-rail [aria-pressed=true]{border-color:#d4b779;background:#36513a}.land-detail-content{font-size:15px;line-height:1.45;min-height:0;flex:1;overflow:visible}.land-detail-content p{margin:6px 0 10px}.land-detail-content h3{font-size:17px;margin:6px 0}.land-detail-content small{font-size:12px;color:#a8c2b1}.land-complete-text{overflow-wrap:anywhere;white-space:pre-line}.land-detail-pages{align-items:center;flex-shrink:0}.land-detail-pages span{font-size:13px;white-space:nowrap}.land-detail-actions{display:flex;flex-wrap:wrap;gap:5px;flex-shrink:0}.land-detail-actions button{font-size:13px;min-height:36px;padding:6px 8px}.land-detail-rail footer{display:flex;gap:5px;flex-shrink:0}.land-detail-rail footer button{flex:1;font-size:12px;padding:6px;min-height:32px}.land-detail-list{display:grid;grid-template-columns:1fr;gap:7px}.land-detail-list .land-support-card{max-width:none;min-height:40px}
.land-attack-review{display:flex;flex-direction:column;gap:12px}.land-attack-review label{font-size:13px;display:block}.land-attack-review select{width:100%;padding:6px;font-size:13px;min-height:32px}
.shell.land-board-fit .bottom-game-bar.land-bottom{grid-row:3;position:static;display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:8px;width:100%;padding:0;min-height:0;background:transparent}
.shell.land-board-fit .hand-dock.land-hand{position:static;left:auto;right:auto;bottom:auto;transform:none;width:100%;padding:3px 0;background:transparent;border:0;box-shadow:none;min-height:0;max-height:none;overflow:visible}.land-hand>header{display:flex;gap:10px;align-items:center;padding:0 4px 4px;font-size:13px}.land-hand>header>span{color:#a8bcad;font-size:12px;flex:1}.land-hand>header>button{min-height:28px;padding:3px 7px;font-size:12px}
.land-entire-hand{display:grid;grid-template-columns:repeat(var(--hand-columns),minmax(0,1fr));gap:4px;overflow:visible}.land-hand-card{border:1px solid #586f60;background:#183026;color:#e7ecdf;border-radius:5px;padding:4px;min-width:0;text-align:left;min-height:38px;display:flex;flex-direction:column;gap:2px}.land-hand-card strong{font-size:11px;line-height:1.1;overflow-wrap:anywhere}.land-hand-card small{font-size:10px;color:#d4c290}.land-hand-card.usable{border-color:#c8b576}.land-hand-card.selected{outline:2px solid #e3d39b}.land-entire-hand.expanded .land-hand-card{min-height:55px}.land-entire-hand.expanded strong{font-size:12px}
.shell.land-board-fit .phase-progress{min-height:0;display:flex;flex-direction:column;justify-content:center;padding:5px 9px;gap:4px}.shell.land-board-fit .phase-progress button{min-height:36px;font-size:13px;white-space:normal}.land-board-fit .mat-reports,.land-board-fit .hand-quick-preview{display:none!important}.land-board-fit .menus:not([hidden]){position:fixed;z-index:65;left:15px;top:55px;max-width:calc(100vw - 30px)}
@media(max-width:1100px){.land-table-layout{grid-template-columns:minmax(0,1fr) 235px;gap:5px}.shell.land-board-fit:has(.tabletop){padding:4px 6px}.land-command-line{gap:4px;flex-wrap:wrap}.land-command-line .land-warden{width:130px;min-height:36px}.land-command-line .warden-play{width:90px;min-height:34px}.land-counters{min-width:230px}.land-piles{grid-template-columns:repeat(3,auto);width:100%}.land-piles>*{flex-direction:row;gap:6px;min-height:25px;padding:2px 6px}.land-piles button{min-height:25px}.land-location-columns{gap:4px}.land-full-location{padding:3px;gap:3px}.land-detail-rail{padding:9px;gap:6px}.land-detail-content{font-size:14px;line-height:1.4}.land-detail-rail h2{font-size:17px}.land-detail-values{font-size:12px}.shell.land-board-fit .tabletop .land-visible-slot.card{grid-template-columns:1fr;padding:3px}.land-visible-slot>img{display:none}.land-visible-slot>strong{grid-column:1;font-size:12px}.land-unit-values{font-size:13px}.land-visible-slot>small{font-size:10px}.land-support-card{flex-basis:75px;max-width:135px;padding:3px}.land-support-card>span{display:none}.land-support-card>strong{font-size:11px}.land-empty-structure{font-size:10px;padding:3px}.land-camp-count{font-size:10px}.land-hand>header>span{display:none}}
@media(max-height:740px){.land-detail-rail{gap:4px;padding:8px}.land-detail-content{font-size:14px;line-height:1.3}.land-detail-rail h2{font-size:16px}.land-detail-rail header>small{display:none}.land-terrain.front-location{min-height:36px}.land-terrain span{font-size:10px}.land-command-line .land-warden{min-height:32px}.land-warden img{height:28px}.land-support-card{min-height:24px}.land-command-line .warden-play{min-height:32px}.land-hand-card strong{font-size:10px}.land-hand-card{min-height:32px}.land-entire-hand.expanded .land-hand-card{min-height:40px}}

.land-detail-rail .front-deck-status{position:static;top:auto;right:auto;width:auto;height:auto;margin:0;padding:6px;z-index:auto;max-width:none}
.land-order{display:flex;gap:5px;margin-top:3px}.land-order button{min-height:26px;padding:2px 10px;font-size:13px}.land-attack-review{gap:8px}.land-detail-content>.primary{margin-top:9px;min-height:36px}
.land-board-fit .land-command-line.mat-command{flex-direction:row;align-self:stretch;max-height:none}

/* The board keeps its full width. Details and the expanded hand float above it. */
.land-table-layout{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:32px minmax(0,1fr);gap:5px}
.land-board-tools{display:flex;align-items:center;gap:6px;min-width:0}.land-board-tools button{min-height:30px;padding:4px 10px;font-size:12px}.land-board-tools>span{font-size:12px;color:#e6d3a1}
.land-detail-rail{position:absolute;right:0;top:37px;bottom:0;width:min(320px,42vw);box-sizing:border-box;z-index:46;box-shadow:-12px 4px 35px #0009;background:#10251ffa}
.land-details-close{float:right;min-height:30px;padding:3px 8px;font-size:12px;margin:0 0 6px 6px}
.land-location-columns{gap:18px}.land-full-location{background:#10211e50;border-color:#4e6b6260;padding:8px;gap:6px}.land-full-location.open{border-color:#bca06b88}.land-all-slots{gap:8px}.land-visible-slot.empty{background:transparent;border-color:#54726844;opacity:.7}.land-visible-slot.empty:disabled{cursor:default}.arranging .land-visible-slot.empty:not(:disabled){border:2px dashed #e5cf87;color:#f4e4b0;opacity:1;cursor:pointer}.arranging .own-army .card{cursor:grab}
.shell.land-board-fit .tabletop .land-visible-slot.card{padding:6px;grid-template-columns:42px minmax(0,1fr);column-gap:7px}.land-visible-slot>img{display:block;width:42px;height:50px}.land-visible-slot>strong{grid-column:2;font-size:14px}.land-visible-slot>small{font-size:12px}.land-unit-values{font-size:16px}
.shell.land-board-fit .bottom-game-bar.land-bottom{height:72px;position:relative;pointer-events:none;z-index:30;align-items:end}
.shell.land-board-fit .hand-dock.land-hand{position:absolute;bottom:0;left:0;right:225px;width:auto;transform:none;pointer-events:none;z-index:31;padding:0}
.land-hand>header{pointer-events:auto;justify-content:center;min-height:32px}.land-hand>header>span{flex:0}.land-hand>header>button{pointer-events:auto;min-height:32px;background:#142920f5}
.land-entire-hand{pointer-events:auto}.land-entire-hand.expanded{padding:9px 8px 4px;border-radius:9px;background:#101b18ee;box-shadow:0 -14px 35px #0007;gap:6px}
.land-hand-card{pointer-events:auto;min-height:36px}.land-entire-hand.expanded .land-hand-card{min-height:170px;justify-content:flex-start;padding:6px;border-top:3px solid var(--type-color,#b5cbac)}
.land-hand-card img{width:100%;height:75px;object-fit:cover;border-radius:4px}.land-entire-hand.expanded strong{font-size:13px;line-height:1.2}.land-hand-stats{font-size:14px;margin-top:auto;color:#f2dec0}.land-hand-card small{font-size:12px}.land-entire-hand.expanded .land-hand-card:hover,.land-entire-hand.expanded .land-hand-card:focus-visible{outline:2px solid #e6cc8a;transform:translateY(-5px)}
.shell.land-board-fit .phase-progress{pointer-events:auto;grid-column:2;align-self:end}
@media(max-width:1100px){.land-table-layout{grid-template-columns:minmax(0,1fr)}.land-location-columns{gap:8px}.land-full-location{padding:4px}.land-all-slots{gap:5px}.land-command-line{flex-wrap:nowrap}.land-piles{width:auto}.land-piles>*{flex-direction:column;gap:2px}.land-counters{min-width:0}.land-hand>header>span{display:none}.shell.land-board-fit .tabletop .land-visible-slot.card{grid-template-columns:30px minmax(0,1fr);padding:4px;column-gap:4px}.land-visible-slot>img{width:30px;height:40px}.land-visible-slot>strong{font-size:12px}.land-visible-slot>small{font-size:11px}.land-unit-values{font-size:14px}.land-entire-hand.expanded .land-hand-card{min-height:150px}.land-hand-card img{height:60px}}
@media(prefers-reduced-motion:reduce){.land-entire-hand.expanded .land-hand-card:hover{transform:none}}
.shell.land-board-fit .hand-dock.land-hand{left:50%;right:auto;width:calc(100% - 440px);transform:translateX(-50%)}
.shell.land-board-fit .hand-dock.land-hand:not(.minimized){width:min(1100px,calc(100% - 32px));bottom:76px}
.shell.land-board-fit .hand-dock.land-hand:not(.minimized)>header{background:#10251ff5;border-radius:7px 7px 0 0;padding:4px 8px}

