#board .cell.kobolt-mine {
  background: radial-gradient(ellipse at center, #493327 0 28%, #a87833 32% 56%, #dfb35d 58% 64%, #8b5e31 66%) !important;
  box-shadow: inset 0 0 0 2px #f5d574, inset 0 0 12px #34261b !important;
}
.kobolt-mine-mark, .kobolt-mine-progress { display: none; pointer-events: none; }
.kobolt-mine .kobolt-mine-mark {
  display: block; position: absolute; right: 2px; top: 1px;
  color: #ffe285; font-size: 11px; line-height: 1; text-shadow: 0 1px 2px #24150a;
}
.kobolt-mine .kobolt-mine-progress {
  display: block; position: absolute; bottom: 1px; left: 2px; right: 2px;
  height: 3px; border-radius: 2px; background: #ffd954;
  transform: scaleX(var(--mining-progress, 0)); transform-origin: left center;
}
.kobolt-action { cursor: pointer; position: relative; }
#board .cell.kobolt-mine-abundant {
  background: radial-gradient(ellipse at center, #53430f 0 28%, #e7b738 32% 56%, #fff1a5 58% 64%, #b78d20 66%) !important;
  box-shadow: inset 0 0 0 2px #fff4ab, inset 0 0 13px #ffe963 !important;
}
.kobolt-mine-abundant .kobolt-mine-mark { color: #fff6bd; }
#board .cell.kobolt-mine-diamond {
  background: radial-gradient(ellipse at center, #264c6c 0 28%, #4abacb 32% 56%, #d5ffff 58% 64%, #549cc0 66%) !important;
  box-shadow: inset 0 0 0 2px #d7ffff, inset 0 0 13px #8eefff !important;
}
.talent-node .talent-reference-icon {
  width: 40px; height: 40px; display: block; margin: auto;
  border-radius: 6px; background-repeat: no-repeat;
}
.kobolt-ore {
  position: absolute; top: 1px; left: 1px; right: 1px; z-index: 4;
  padding: 1px 0; border-radius: 4px; background: #3c281be8; color: #ffe695;
  font-size: clamp(7px, 1.8vw, 10px); font-weight: 900; text-align: center;
  pointer-events: none; white-space: pre-line; line-height: 1.1;
}

#arena > .kobolt-bonus-popup {
  position:absolute; z-index:30; transform:translate(-50%,-100%);
  padding:6px 10px; border:1px solid #ffe9a0; border-radius:8px;
  background:#302413ee; color:#ffe68c; font:900 clamp(10px,2.7vw,14px)/1.2 system-ui;
  text-shadow:0 1px 2px #000; white-space:nowrap; pointer-events:none;
  box-shadow:0 2px 8px #0008; animation:kobolt-bonus-appear 1.5s ease-out both;
}
@keyframes kobolt-bonus-appear {
  0% {opacity:0; margin-top:6px;}
  12%,82% {opacity:1; margin-top:0;}
  100% {opacity:0; margin-top:-8px;}
}
@media (prefers-reduced-motion:reduce) { #arena > .kobolt-bonus-popup {animation:none;} }

/* Floating, outlined lettering without a panel behind it. */
#arena > .kobolt-bonus-popup {
  padding:0; border:0; border-radius:0; background:transparent; box-shadow:none;
  color:#fff0a3; font-size:clamp(12px,3.2vw,17px); font-weight:1000;
  -webkit-text-stroke:3px #603012; paint-order:stroke fill;
  text-shadow:0 2px 0 #603012,0 3px 3px #24150980;
}
.kobolt-ore { font-size:clamp(8px,2vw,11px); line-height:1.3; white-space:nowrap; }

/* Mine illustrations remain below the unit sprites and mining progress. */
#board .cell.kobolt-mine {
  background:transparent url('../assets/kobolt_mine_base.png') center/contain no-repeat !important;
  box-shadow:none !important;
}
#board .cell.kobolt-mine-abundant {
  background-image:url('../assets/kobolt_mine_doree.png') !important;
}
#board .cell.kobolt-mine-diamond {
  background-image:url('../assets/kobolt_mine_diamant.png') !important;
}
#board .cell.kobolt-mine .kobolt-mine-mark { display:none; }

#deck .deck-slot > img.kobolt-crown-bonus-icon {
  display:block; position:absolute; bottom:-7px; left:-7px; top:auto; right:auto;
  width:27px; height:27px; max-width:none; object-fit:contain; padding:0; margin:0;
  border:0; border-radius:0; background:transparent; box-shadow:none; transform:none;
  z-index:20; pointer-events:none; filter:drop-shadow(0 1px 1px #21152dcc);
}
#deck .deck-slot > img.kobolt-crown-bonus-icon[hidden] { display:none; }

#deck .kobolt-bonus-break {
  position:absolute; left:-7px; bottom:-7px; width:27px; height:27px;
  z-index:21; pointer-events:none;
}
#deck .kobolt-bonus-break > span {
  position:absolute; inset:0;
  background:url('../assets/kobolt_bonus_couronne.png') center/contain no-repeat;
  animation:kobolt-ore-shatter .65s ease-out both;
}
@keyframes kobolt-ore-shatter {
  0% {opacity:1; transform:translate(0,0) rotate(0) scale(1); filter:brightness(1.5);}
  28% {opacity:1; filter:brightness(1.15);}
  100% {opacity:0; transform:translate(var(--break-x),var(--break-y)) rotate(var(--break-angle)) scale(.55); filter:brightness(1);}
}
@media (prefers-reduced-motion:reduce) {
  #deck .kobolt-bonus-break > span {animation:kobolt-ore-soft-fade .65s linear both;}
}
@keyframes kobolt-ore-soft-fade {from {opacity:1;} to {opacity:0;}}

/* No extraction countdown is visible on the board. */
#board .cell.kobolt-mine .kobolt-mine-progress { display:none !important; }
