/* Main page: the coins field and slider under the stake. The stage with the skins is in forge-stage.css. */

.stake-coins {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 300px;
  color: var(--ash);
  font-size: 0.85rem;
}

.coins-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
}

.coins-amount {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white-hot);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.coins-head > span:first-child {
  white-space: nowrap;
}

.coins-input {
  width: 90px;
  padding: 5px 8px;
}

.coins-max {
  padding: 4px 8px;
  background: var(--iron-light);
  border: var(--border);
  border-radius: var(--radius);
  color: var(--ember-light);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.coins-max:hover:not(:disabled) {
  border-color: var(--line-ember);
}

.coins-max:disabled {
  color: var(--ash);
  cursor: default;
  opacity: 0.5;
}

.coins-edit {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--iron-light);
  border: var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.coins-edit svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ash);
  stroke-width: 2;
  stroke-linejoin: round;
}

.coins-edit:hover:not(:disabled) {
  border-color: var(--line-ember);
}

.coins-edit:hover:not(:disabled) svg {
  stroke: var(--ember-light);
}

/* The slider: a groove that fills up with heat, and our coin as the handle */
.coins-slider {
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.coins-slider:disabled {
  cursor: default;
  opacity: 0.45;
}

.coins-slider:focus-visible {
  outline: 2px solid var(--ember-light);
  outline-offset: 2px;
  border-radius: var(--radius-inner);
}

.coins-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(90deg, var(--ember-dark), var(--ember-light)) 0 0 / var(--fill, 0%) 100% no-repeat, var(--soot);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--steel);
}

.coins-slider::-moz-range-track {
  height: 8px;
  background: linear-gradient(90deg, var(--ember-dark), var(--ember-light)) 0 0 / var(--fill, 0%) 100% no-repeat, var(--soot);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--steel);
}

.coins-slider::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -9px;
  background: url("../images/coin.png") center / cover;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  -webkit-appearance: none;
  appearance: none;
}

.coins-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  background: url("../images/coin.png") center / cover;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.slot .stake-total {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white-hot);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
