/* Only half-board dimensions and defence-specific cues override the original board CSS. */
.board{grid-area:auto;--cell:var(--board-cell,24px);width:100%;height:auto;grid-template-columns:repeat(var(--columns),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));border-color:#654e31;aspect-ratio:var(--columns)/var(--rows);touch-action:manipulation}
.board .cell{width:100%;height:100%;min-width:0;min-height:0;padding:0;aspect-ratio:1;border-radius:0}
.board .cell:hover{background:#ffedaa55}

.board .piece{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;pointer-events:none}
.board .cell:focus-visible{outline:2px solid #195ca7;outline-offset:-2px;z-index:3}
.layout{grid-template-columns:minmax(0,1fr) 300px}.board-wrap{padding:16px}.board-heading small{letter-spacing:1px}
.legend i{background:#dec18f}.legend i:last-child{background:#177b70}
@media(max-width:850px){.layout{grid-template-columns:minmax(0,1fr) 245px}.board-wrap{padding:8px}}
@media(max-width:640px){.layout{display:flex}.board-wrap{padding:6px}.board .piece{font-weight:900}}

.dashboard .pace{flex:0 0 130px;white-space:nowrap}.dashboard .pace strong{white-space:nowrap}
@media(max-width:640px){.dashboard .pace{flex:0 0 62px}.dashboard .pace strong{font-size:11px!important}}

.dashboard strong,.dashboard strong small{white-space:nowrap}.dashboard>div{min-width:0}
@media(max-width:640px){.dashboard>div{padding:10px 6px}.dashboard strong{font-size:21px}.dashboard strong small{font-size:9px}.dashboard .pace{flex-basis:58px}.dashboard .pace span{font-size:7px}.headline{gap:10px}.headline>div:first-child{min-width:0}.level{flex-shrink:0}.board-heading{position:sticky;top:0;z-index:4;background:#20271c}}

.spawn-summary{margin:0;padding:0 16px 10px;color:#d6bd9c;font-size:11px;line-height:1.7}

.board .cell.spawnPoint{background:#c84e4055;box-shadow:inset 0 0 0 1px #a7372f}
.board .cell.spawnPoint::after{content:'▼';position:absolute;left:50%;top:0;transform:translateX(-50%);font-size:calc(var(--cell)*.4);line-height:1;color:#981e1b;z-index:3;pointer-events:none}
.board .cell.placementBoundary{border-top:2px dashed #28649d}
.legend i.spawn-key{background:#d77468}

.board .cell.campCross::after{left:-1px;top:-1px;opacity:.8}

@media (max-width:640px) {
  .board-slot.rotate-mobile-board {
    position: relative;
    aspect-ratio: 1 / 2;
    overflow: hidden;
  }
  .rotate-mobile-board > .board {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    transform: translate(-50%, -50%) rotate(270deg);
  }
}
