/* =============================================
   FunPeacockClub — Games Page Styles
   ============================================= */

/* Game tab buttons */
.game-tab-btn {
  background: transparent;
  border: 2px solid var(--light-gray);
  color: var(--text-mid);
  padding: 10px 24px;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-bottom: -1px;
}

.game-tab-btn:hover {
  background: var(--light-gray);
  color: var(--dark);
}

.game-tab-btn.active {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: white;
  position: relative;
  z-index: 1;
}

/* Reel spinning animation */
@keyframes reelSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

.reel-spinning {
  animation: reelSpin 0.08s linear infinite;
}

/* Card flip animation */
@keyframes cardReveal {
  0% { transform: rotateY(90deg) scale(0.8); opacity: 0; }
  100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.card-reveal {
  animation: cardReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Coin rain animation */
@keyframes coinFall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(360deg); opacity: 0; }
}

.coin-rain {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.5rem;
  animation: coinFall 1.5s ease-in forwards;
}

/* Jackpot overlay */
.jackpot-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.jackpot-box {
  background: linear-gradient(135deg, #1A2B2B, #243535);
  border: 3px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  text-align: center;
  box-shadow: 0 0 60px rgba(212,175,55,0.4);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.jackpot-box h2 {
  color: var(--gold-light);
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: jackpot-pulse 0.5s ease-in-out infinite alternate;
}

.jackpot-box p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.jackpot-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}

/* Streak bonus visual */
.streak-bonus-badge {
  position: fixed;
  top: 100px;
  right: 24px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  z-index: 4000;
  animation: popIn 0.4s ease, fadeOut 0.5s ease 2s forwards;
  box-shadow: var(--shadow-md);
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-20px); }
}

/* Win confetti dot */
.confetti-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Low balance warning */
.low-balance-warning {
  background: linear-gradient(135deg, rgba(198,40,40,0.08), rgba(229,57,53,0.12));
  border: 1.5px solid rgba(198,40,40,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #C62828;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
  display: none;
}

.low-balance-warning.show { display: block; }

/* Reel glow on win */
.reel-win-glow {
  box-shadow: 0 0 20px rgba(212,175,55,0.6), inset 0 0 10px rgba(212,175,55,0.1) !important;
  border-color: var(--gold) !important;
}
