/* ============================================
   SLOT MACHINE GAME STYLES
   ============================================ */

/* Slot Machine Container */
.slot-machine {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.9), rgba(10, 14, 26, 0.95));
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow), inset 0 0 60px rgba(240, 185, 11, 0.03);
}

.slot-machine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.slot-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-shadow: 0 0 20px var(--gold-glow);
}

/* Slot Grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 16px;
  position: relative;
}

.slot-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(25, 35, 55, 0.6));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 2.2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.slot-cell.spinning {
  animation: slotSpin 0.1s linear infinite;
}

.slot-cell.win {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  animation: winPulse 0.5s ease-in-out 3;
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.1), rgba(255, 213, 79, 0.05));
}

.slot-cell.jackpot {
  border-color: var(--gold-light);
  box-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(240, 185, 11, 0.2);
  animation: jackpotPulse 0.3s ease-in-out 5;
}

/* Win Lines */
.win-line {
  position: absolute;
  background: var(--gold);
  opacity: 0;
  z-index: 10;
  transition: opacity 0.3s;
}

.win-line.active {
  opacity: 0.6;
  animation: winLineGlow 1s ease-in-out infinite;
}

/* Spin Button */
.spin-container {
  margin-top: 8px;
}

.spin-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold-gradient);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #000;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 2px;
  box-shadow: var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.spin-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.spin-btn:hover::after {
  transform: translateX(100%);
}

.spin-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(240, 185, 11, 0.5);
}

.spin-btn:active {
  transform: translateY(-1px);
}

.spin-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.spin-btn.spinning {
  animation: btnPulse 0.5s ease-in-out infinite;
}

.spin-cost {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-main);
  font-weight: 400;
  letter-spacing: 0;
}

/* Win Display */
.win-display {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9997;
  text-align: center;
  animation: winPopup 0.5s ease-out;
  pointer-events: none;
}

.win-display-card {
  background: rgba(10, 14, 26, 0.95);
  border: 2px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 30px 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px var(--gold-glow);
}

.win-display-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 900;
  text-shadow: 0 0 30px var(--gold-glow);
}

.win-display-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.win-display-type {
  font-size: 1rem;
  color: var(--gold-light);
  margin-top: 8px;
  font-weight: 600;
}

/* Jackpot Display */
.jackpot-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9996;
  animation: fadeIn 0.3s;
}

/* Spin History */
.spin-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.spin-history-grid {
  display: flex;
  gap: 2px;
  font-size: 0.9rem;
}

.spin-history-result {
  flex: 1;
  text-align: right;
}

.spin-history-result.win {
  color: var(--green);
  font-weight: 600;
}

.spin-history-result.loss {
  color: var(--text-muted);
}

/* Paytable */
.paytable {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.paytable-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.paytable-symbol {
  font-size: 1.3rem;
}

.paytable-mult {
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

/* Lottery Ticket Award */
.ticket-award {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), rgba(41, 121, 255, 0.1));
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  animation: slideUp 0.3s ease;
}

.ticket-award-icon {
  font-size: 1.3rem;
}

.ticket-award-text {
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 500;
}

/* Confetti particles */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9995;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall 3s ease-in forwards;
}
