/* ═══════════════════════════════════════════════════════
   AURORA SLOTS – GAME STYLESHEET
═══════════════════════════════════════════════════════ */

.slot-machine {
  padding: 32px 24px 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.07) 0%, transparent 70%),
              linear-gradient(180deg, rgba(30,18,69,0.9) 0%, rgba(13,8,32,0.95) 100%);
  position: relative;
  overflow: hidden;
}

/* Atmospheric aurora glow behind machine */
.slot-machine::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,201,167,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── DECORATIVE LIGHTS ─── */
.slot-lights {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.slot-light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(212,175,55,0.5);
  animation: lightBlink 1.5s infinite;
}
.slot-light:nth-child(even) {
  background: var(--aurora-teal);
  box-shadow: 0 0 8px var(--aurora-teal), 0 0 16px rgba(0,201,167,0.5);
  animation-delay: 0.75s;
}
.slot-light:nth-child(3n) {
  background: var(--aurora-purple);
  box-shadow: 0 0 8px var(--aurora-purple);
  animation-delay: 0.3s;
}
@keyframes lightBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}
.slot-lights.winner .slot-light {
  animation: lightWin 0.3s infinite;
}
@keyframes lightWin {
  0%, 100% { opacity: 1; transform: scale(1.2); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* ─── TITLE ─── */
.slot-machine__title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.4));
}
.slot-machine__title-icon { font-size: 1.4rem; }

/* ─── REELS ─── */
.reels-container {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: rgba(0,0,0,0.5);
  border: 3px solid rgba(212,175,55,0.4);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.6), 0 0 40px rgba(212,175,55,0.1);
  position: relative;
  max-width: 540px;
  margin: 0 auto 8px;
}

.reel-divider {
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(212,175,55,0.4), transparent);
  flex-shrink: 0;
}

.reel-wrap {
  flex: 1;
  overflow: hidden;
  height: 160px;
  position: relative;
}

/* Gradient overlays on top and bottom of reels */
.reel-wrap::before,
.reel-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 50px;
  z-index: 2;
  pointer-events: none;
}
.reel-wrap::before {
  top: 0;
  background: linear-gradient(180deg, rgba(13,8,32,0.85) 0%, transparent 100%);
}
.reel-wrap::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(13,8,32,0.85) 0%, transparent 100%);
}

.reel {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.08s linear;
  will-change: transform;
}

.reel__symbol {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  line-height: 1;
  user-select: none;
  filter: drop-shadow(0 0 8px rgba(212,175,55,0.3));
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.reel__symbol.winning {
  animation: symbolWin 0.5s ease infinite alternate;
}
@keyframes symbolWin {
  from { transform: scale(1); filter: drop-shadow(0 0 10px rgba(212,175,55,0.5)); }
  to   { transform: scale(1.15); filter: drop-shadow(0 0 30px rgba(212,175,55,1)); }
}

/* Center win line */
.win-line {
  width: calc(100% - 48px);
  max-width: 540px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 4px;
  opacity: 0.5;
  transition: all 0.3s;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.win-line.active {
  opacity: 1;
  box-shadow: 0 0 16px var(--gold), 0 0 32px rgba(212,175,55,0.5);
  animation: winLinePulse 0.5s ease infinite alternate;
}
@keyframes winLinePulse {
  from { opacity: 0.7; }
  to { opacity: 1; box-shadow: 0 0 24px var(--gold); }
}

/* ─── RESULT MESSAGE ─── */
.slot-result {
  text-align: center;
  padding: 16px 0 8px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.slot-result__icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}
.slot-result__text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.slot-result__text.win { color: var(--gold-light); font-size: 1.3rem; }
.slot-result__text.lose { color: #ff8080; }
.slot-result__text.jackpot {
  font-size: 1.6rem;
  color: var(--gold);
  animation: jackpotFlash 0.5s ease infinite alternate;
}
@keyframes jackpotFlash {
  from { color: var(--gold); text-shadow: 0 0 20px rgba(212,175,55,0.5); }
  to   { color: var(--gold-light); text-shadow: 0 0 40px rgba(212,175,55,0.8); }
}
.slot-result__amount {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--aurora-green);
  min-height: 36px;
  transition: all 0.3s;
}

/* ─── CONTROLS ─── */
.slot-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.bet-controls, .autoplay-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bet-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.bet-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.bet-btn {
  width: 48px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.bet-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.08);
}
.bet-btn.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px rgba(212,175,55,0.2);
}

/* ─── SPIN BUTTON ─── */
.spin-btn {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold-dark));
  border: 4px solid rgba(212,175,55,0.4);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(212,175,55,0.4), inset 0 2px 4px rgba(255,255,255,0.2), 0 8px 20px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.spin-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 0 50px rgba(212,175,55,0.6), inset 0 2px 4px rgba(255,255,255,0.3), 0 12px 28px rgba(0,0,0,0.5);
}
.spin-btn:active:not(:disabled) { transform: scale(0.96); }
.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spin-btn__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--purple-deep);
}
.spin-btn__icon {
  font-size: 1.6rem;
  transition: transform 0.3s;
}
.spin-btn.spinning .spin-btn__icon { animation: spinIcon 0.3s linear infinite; }
@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
#spin-text {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 2px;
}

/* Auto spin button */
.auto-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.auto-btn:hover { border-color: var(--gold); color: var(--gold); }
.auto-btn.running {
  background: rgba(255,68,68,0.1);
  border-color: #ff6060;
  color: #ff6060;
}

/* ─── PAYTABLE ─── */
.paytable {
  border-top: 1px solid rgba(212,175,55,0.1);
  margin-top: 8px;
  padding-top: 8px;
}
.paytable__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
  transition: var(--transition);
}
.paytable__title:hover { color: var(--gold); }
.paytable__arrow { margin-left: auto; transition: transform 0.3s; }
.paytable.open .paytable__arrow { transform: rotate(180deg); }

.paytable__content {
  display: none;
  padding: 16px 0;
  animation: fadeIn 0.3s ease;
}
.paytable.open .paytable__content { display: block; }
.paytable__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: var(--transition);
}
.paytable__row:hover { background: rgba(212,175,55,0.06); }
.paytable__symbols { font-size: 1.2rem; letter-spacing: 4px; }
.paytable__payout {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 0.85rem;
}
.paytable__note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 12px;
  padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ─── WIN OVERLAY (jackpot) ─── */
.win-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.win-overlay.active { opacity: 1; }
.win-overlay__content {
  background: radial-gradient(ellipse at center, rgba(212,175,55,0.2), rgba(13,8,32,0.9));
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 60px 80px;
  text-align: center;
  animation: jackpotPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes jackpotPop {
  from { transform: scale(0.3); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Coin rain particles */
.coin-particle {
  position: fixed;
  font-size: 1.5rem;
  pointer-events: none;
  animation: coinFall linear forwards;
  z-index: 600;
}
@keyframes coinFall {
  from { opacity: 1; transform: translateY(-20px) rotate(0deg); }
  to   { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .slot-controls { justify-content: center; flex-direction: column; }
  .spin-btn { width: 90px; height: 90px; }
  .reels-container { max-width: 100%; }
  .reel-wrap { height: 120px; }
  .reel__symbol { font-size: 56px; height: 120px; }
}
