/* Header credit wallet chip (signed-in players, operator has credits). */
.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

.credit-chip[hidden] {
  display: none;
}

.credit-chip svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
}

.credit-chip:hover,
.credit-chip.active {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}

.credit-chip:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .credit-chip-code {
    display: none;
  }
}
