/* V1.28Beta · Coin counter
   Coins live on the character card header so every combatant's balance is
   public without adding another battle-side panel. */

.coin-counter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 34px;
  height: 24px;
  padding: 0 8px 0 6px;
  border: 1px solid rgba(172, 116, 17, 0.62);
  border-radius: 999px;
  color: #fff4bd !important;
  -webkit-text-fill-color: #fff4bd !important;
  background:
    linear-gradient(180deg, rgba(73, 48, 10, 0.94), rgba(32, 20, 4, 0.96)),
    #3b2708;
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 179, 0.28),
    0 2px 7px rgba(34, 21, 2, 0.28);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px #000 !important;
  white-space: nowrap;
}

.coin-counter::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1px solid #fff0a8;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff8c8 0 11%, transparent 12%),
    radial-gradient(circle, #ffd966 0 42%, #d7991e 44% 66%, #7b4d08 68% 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 236, 140, 0.3),
    0 0 7px rgba(255, 199, 56, 0.35);
}

.fighter-head > .coin-counter {
  margin-inline-start: auto;
}

.team-info header > .team-coin-counter {
  margin-inline-start: auto;
  min-width: 30px;
  height: 20px;
  padding: 0 6px 0 5px;
  gap: 4px;
  font-size: 10px;
}

.team-info header > .team-coin-counter::before {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
}

@media (max-width: 899px) {
  .fighter-head > .coin-counter {
    min-width: 29px;
    height: 16px;
    padding: 0 5px 0 4px;
    gap: 3px;
    font-size: 9px !important;
  }

  .fighter-head > .coin-counter::before {
    width: 9px;
    height: 9px;
    flex-basis: 9px;
    border-width: 1px;
  }

  .team-info header > .team-coin-counter {
    min-width: 26px;
    height: 17px;
    padding: 0 4px;
    font-size: 9px;
  }
}

.battle.identity-battle .seat-ring[data-seats="10"] .team-info header > .team-coin-counter {
  min-width: 23px;
  height: 15px;
  padding: 0 4px;
  gap: 3px;
  font-size: 8px;
}

.battle.identity-battle .seat-ring[data-seats="10"] .team-info header > .team-coin-counter::before {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
}
