/* Pure-color tactical board with user-supplied map objects. */
.tactical-scroll { background: #050c09; }
.tactical-board .grid-cell,
.tactical-board .grid-cell:not(.terrain-void):not(.boss-unit),
.tactical-board .grid-cell.boss-unit {
  background-image: none !important;
  background-color: #10231a !important;
  background-size: auto !important;
  background-position: center !important;
}

.tactical-board .terrain-plain { background-color: #10231a !important; }
.tactical-board .terrain-forest { background-color: #132b20 !important; }
.tactical-board .terrain-ruin { background-color: #18271f !important; }
.tactical-board .terrain-water { background-color: #0d2630 !important; }
.tactical-board .terrain-ridge { background-color: #17251f !important; }
.tactical-board .terrain-fort { background-color: #1b2d23 !important; }
.tactical-board .terrain-void { background: #050c09 !important; }

.tactical-board .grid-cell:not(.terrain-void) {
  border-color: #294a3a !important;
}

/* 已探索但离开当前视野：比地面略亮的深墨绿薄雾。未探索浓雾沿用 tactical.css。 */
.tactical-board .fog-explored .fog-layer {
  background: radial-gradient(circle at 36% 30%,rgba(48,91,70,.72),rgba(20,52,39,.88));
  box-shadow: inset 0 0 10px rgba(102,151,127,.14);
  backdrop-filter: saturate(.72) brightness(.7);
}

.tactical-board .grid-cell::after {
  pointer-events: none;
}

.tactical-board .grid-cell.blocked::before {
  z-index: 4;
  background: rgba(7,12,10,.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  backdrop-filter: none;
}

.tactical-map-art {
  position: relative;
  z-index: 5;
  display: block;
  width: 94%;
  height: 94%;
  margin: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.65));
}

.terrain-object { z-index: 2; width: 96%; height: 96%; opacity: .92; }
.resource-art { filter: drop-shadow(0 0 5px rgba(68,190,255,.72)); }
.objective-art { width: 90%; height: 90%; filter: drop-shadow(0 0 5px rgba(218,188,106,.7)); }
.chest-art { width: 100%; height: 100%; }
.chest-legendary .chest-art { animation: tactical-art-glow 1.25s ease-in-out infinite; }
.beast-art { z-index: 7; width: 106%; height: 106%; }
.beast-art.boss { width: 122%; height: 122%; filter: drop-shadow(0 0 7px rgba(255,103,73,.9)); }

.encounter-portrait .tactical-map-art.beast-art { width: 104px; height: 92px; }
.encounter-portrait .tactical-map-art.beast-art.boss { width: 124px; height: 108px; }

@keyframes tactical-art-glow {
  50% { transform: translateY(-1px) scale(1.06); filter: brightness(1.18) drop-shadow(0 0 8px rgba(255,201,85,.95)); }
}
