/* ============================================================
   controls.css — Botones del juego
   ============================================================ */

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.09s ease, filter 0.15s ease,
              background 0.18s ease, border-color 0.18s ease;
}

button:active   { transform: scale(0.92); }
button:disabled { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.8); }

button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ——— Botón de compra de bonus ——— */

.btn-bonus {
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.62);
  border: 3px solid var(--gold);
  border-radius: 10px;
  padding: 10px 16px;
  text-shadow: var(--shadow-pixel);
  box-shadow: inset 0 0 14px rgba(255, 196, 0, 0.18), 0 3px 0 rgba(0, 0, 0, 0.5);
}

.btn-bonus:hover:not(:disabled) {
  background: rgba(255, 196, 0, 0.2);
  filter: brightness(1.15);
}

.btn-bonus.active {
  background: var(--gold);
  color: #1A1A1A;
  box-shadow: 0 0 16px rgba(255, 196, 0, 0.75), 0 3px 0 rgba(0, 0, 0, 0.5);
}

/* ——— Iconos secundarios (ajustes / sonido) ——— */

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--ui-border);
  line-height: 1;
}

.btn-icon:hover { background: rgba(255, 255, 255, 0.16); }
.btn-icon.muted { opacity: 0.55; }
.btn-icon canvas { display: block; width: 18px; height: 18px; }

/* ——— Botones auxiliares: rápido y autoplay ——— */

.btn-aux {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(24, 24, 30, 0.82);
  border: 2px solid var(--ui-border);
}

.btn-aux svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.btn-aux canvas { display: block; width: 22px; height: 22px; }
#btn-autoplay canvas { width: 24px; height: 24px; }

.btn-aux:hover:not(:disabled) { background: rgba(52, 52, 62, 0.9); }

.btn-aux.active {
  background: var(--gold);
  border-color: #fff;
  box-shadow: 0 0 14px rgba(255, 196, 0, 0.65);
}

.btn-aux.active svg { fill: #1A1A1A; }

.autoplay-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  padding: 0 3px;
  font-family: var(--font-pixel);
  font-size: 8px;
  line-height: 17px;
  color: #1A1A1A;
  background: var(--gold);
  border: 2px solid #1A1A1A;
  border-radius: 9px;
  text-align: center;
}

.autoplay-count:empty { display: none; }

/* ——— Ajuste de apuesta ——— */

.btn-square {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  font-size: 22px;
  font-weight: 700;
  background: rgba(24, 24, 30, 0.82);
  border: 2px solid var(--ui-border);
  color: #fff;
  padding-bottom: 2px;
}

.btn-square:hover:not(:disabled) { background: rgba(52, 52, 62, 0.9); }
.btn-square canvas { display: block; width: 16px; height: 16px; }

/* ——— Botón principal de giro ——— */

.btn-spin {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #34343E 0%, #16161C 100%);
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.55), inset 0 0 18px rgba(0, 0, 0, 0.7);
}

.btn-spin svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.btn-spin canvas { display: block; width: 36px; height: 36px; }

.btn-spin:hover:not(:disabled) {
  border-color: var(--gold);
  filter: brightness(1.2);
}

.btn-spin:disabled { box-shadow: none; }

/* ——— Móvil ——— */

@media (max-width: 720px) {
  .btn-bonus  { font-size: 9px; padding: 8px 11px; border-width: 2px; }
  .btn-icon   { width: 28px; height: 28px; font-size: 13px; }
  .btn-icon canvas { width: 14px; height: 14px; }
  .btn-aux    { width: 36px; height: 36px; }
  .btn-aux svg{ width: 16px; height: 16px; }
  .btn-aux canvas { width: 17px; height: 17px; }
  #btn-autoplay canvas { width: 19px; height: 19px; }
  .btn-square { width: 34px; height: 34px; font-size: 19px; }
  .btn-square canvas { width: 13px; height: 13px; }
  .btn-spin   { width: 58px; height: 58px; }
  .btn-spin svg { width: 28px; height: 28px; }
  .btn-spin canvas { width: 28px; height: 28px; }
  .aux-row, .spin-row { gap: 7px; }
}
