/* VaultvectraSpin - Maple Reels slots */

.slots-machine {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.14), transparent 50%),
    linear-gradient(165deg, #122820 0%, #0a1410 55%, #0e1c16 100%);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 3px;
  padding: 1.75rem 1.35rem 1.85rem;
  color: var(--cream);
  box-shadow:
    0 0 0 1px rgba(10, 20, 16, 0.8) inset,
    0 24px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.slots-machine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(224, 196, 90, 0.06) 48%,
    transparent 56%
  );
  background-size: 220% 100%;
  animation: vaultShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

.slots-title {
  position: relative;
  margin: 0 0 0.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}

.slots-sub {
  position: relative;
  margin: 0 0 1.35rem;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(232, 240, 234, 0.65);
}

.slots-hud {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 3px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.slots-hud span {
  color: var(--gold-soft);
}

.slots-reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.35rem;
  padding: 1.1rem;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201, 162, 39, 0.08), transparent 60%),
    linear-gradient(180deg, #061410, #0e221a);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 3px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
}

.slots-reel {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(201, 162, 39, 0.16), transparent 55%),
    linear-gradient(180deg, #1a332a 0%, #0c1c16 100%);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 3px;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease;
}

.slots-reel.is-spinning {
  animation: reelBlur 0.12s linear infinite;
}

@keyframes reelBlur {
  0%, 100% { filter: blur(0); transform: translateY(0); }
  50% { filter: blur(1px); transform: translateY(3px); }
}

.slots-message {
  position: relative;
  min-height: 1.5em;
  margin: 0 0 1.15rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-soft);
}

.slots-message.is-win {
  color: var(--gold-bright);
  animation: winPulse 0.5s ease;
}

.slots-message.is-lose {
  color: rgba(232, 240, 234, 0.72);
  font-family: var(--font-body);
  font-size: 1rem;
}

.slots-controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.bet-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bet-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.bet-group button {
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border: 1px solid var(--gold-deep);
  border-radius: 3px;
  cursor: pointer;
}

.bet-group button:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-soft));
}

.bet-group button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bet-value {
  min-width: 3ch;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.spin-btn {
  min-width: 150px;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, #a8841a 100%);
  border: 1px solid var(--gold-deep);
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.4);
}

.spin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.slots-help {
  position: relative;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(232, 240, 234, 0.58);
  text-align: center;
  line-height: 1.5;
}
