/* ===== GAMES SHARED STYLES ===== */

.game-page { background: var(--bg-deep); min-height: 100vh; }

.game-hero {
  padding: 5.5rem 5% 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,201,167,0.07) 0%, transparent 70%);
  flex-wrap: wrap;
}
.game-hero-info h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.4rem; }
.game-hero-info p { font-size: 0.9rem; color: var(--text-muted); }

.wallet-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.wallet-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 18px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-chip .label { color: var(--text-subtle); font-size: 0.75rem; }
.wallet-chip .value { color: var(--gold); font-weight: 700; font-family: 'Raleway', sans-serif; font-size: 1rem; }

/* ===== SLOTS ===== */
.slots-arena { padding: 3rem 5%; display: flex; flex-direction: column; align-items: center; gap: 2rem; }

.slots-machine {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  position: relative;
}

.slots-display {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  min-height: 140px;
}

.reel-window {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,201,167,0.25);
  border-radius: 10px;
  width: 110px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.5);
}
.reel-symbol {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; line-height: 1;
}
.reel-window.spinning .reel-symbol {
  animation: reelSpin 0.12s steps(1) infinite;
}
@keyframes reelSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

.slots-win-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--aurora-teal), transparent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.slots-win-line.show { opacity: 1; }

.slots-controls { display: flex; flex-direction: column; gap: 1rem; }
.bet-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius);
  padding: 10px 16px;
}
.bet-row label { font-size: 0.8rem; color: var(--text-subtle); letter-spacing: 0.05em; text-transform: uppercase; }
.bet-adjust { display: flex; align-items: center; gap: 10px; }
.bet-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.bet-btn:hover { border-color: var(--aurora-teal); color: var(--aurora-teal); }
#bet-amount { font-size: 1rem; font-weight: 700; color: var(--gold); min-width: 50px; text-align: center; font-family: 'Raleway', sans-serif; }

.spin-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--aurora-teal), var(--aurora-blue));
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(0,201,167,0.3);
}
.spin-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,201,167,0.45); }
.spin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.slots-history {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 560px;
}
.slots-history h3 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 1rem; }
.history-list { display: flex; flex-direction: column; gap: 0.5rem; }
.history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  font-size: 0.85rem;
}
.history-item .symbols { letter-spacing: 0.2em; }
.history-item .win { color: var(--aurora-green); font-weight: 600; }
.history-item .loss { color: var(--text-subtle); }

.payout-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 560px;
}
.payout-table h3 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 1rem; }
.payout-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.payout-row:last-child { border-bottom: none; }
.payout-row .symbols { font-size: 1.2rem; letter-spacing: 0.1em; }
.payout-row .multiplier { color: var(--gold); font-weight: 700; font-family: 'Raleway', sans-serif; }

/* ===== ROULETTE ===== */
.roulette-arena { padding: 3rem 5%; display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; justify-content: center; }

.roulette-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-width: 280px;
}

.roulette-wheel {
  width: 280px; height: 280px;
  position: relative;
}
.wheel-svg { width: 100%; height: 100%; }
.wheel-inner { transform-origin: 140px 140px; transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99); }
.wheel-pointer {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 28px solid var(--gold);
  filter: drop-shadow(0 2px 6px rgba(232,184,75,0.6));
}

.roulette-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 12px 24px;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  min-width: 140px;
  text-align: center;
}

.roulette-betting {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  flex: 1;
  min-width: 300px;
  max-width: 520px;
}
.roulette-betting h3 { font-size: 1rem; margin-bottom: 1.25rem; color: var(--text-primary); }

.bet-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 1.25rem;
}
.bet-number {
  aspect-ratio: 1;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.bet-number:hover { border-color: var(--gold); transform: scale(1.1); }
.bet-number.selected { border-color: var(--gold); box-shadow: 0 0 10px rgba(232,184,75,0.5); }
.bet-number.zero { background: rgba(0,201,167,0.25); color: var(--aurora-teal); }
.bet-number.red { background: rgba(220, 60, 60, 0.3); color: #ff8080; }
.bet-number.black { background: rgba(30, 30, 40, 0.8); color: var(--text-muted); }

.outside-bets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 1.25rem;
}
.outside-bet {
  padding: 10px 6px;
  border-radius: 8px;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.outside-bet:hover { border-color: var(--border-glow); color: var(--text-primary); }
.outside-bet.selected { border-color: var(--gold); color: var(--gold); background: rgba(232,184,75,0.08); }

.roulette-spin-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== BLACKJACK ===== */
.bj-arena { padding: 3rem 5%; display: flex; flex-direction: column; align-items: center; gap: 2rem; }

.bj-table {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.bj-hand-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.bj-hand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bj-hand-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bj-hand-label .score {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.bj-cards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 90px;
  align-items: center;
}
.play-card {
  width: 60px; height: 88px;
  border-radius: 8px;
  background: #fff;
  color: #1a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  position: relative;
  animation: cardDeal 0.3s ease;
}
.play-card.red { color: #c0392b; }
.play-card.hidden {
  background: linear-gradient(135deg, #0ea5e9, #0a3d6b);
  color: transparent;
}
.play-card.hidden::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 5px;
}
@keyframes cardDeal {
  from { transform: translateY(-20px) scale(0.8); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.card-suit { font-size: 1.4rem; line-height: 1; margin-top: 2px; }

.bj-divider { border: none; border-top: 1px solid var(--border); }

.bj-status {
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  min-height: 40px;
}
.bj-status.win { color: var(--aurora-green); }
.bj-status.lose { color: #ff6b6b; }
.bj-status.push { color: var(--gold); }

.bj-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bj-btn {
  flex: 1;
  min-width: 90px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  border: 1px solid var(--border);
  background: var(--bg-mid);
  color: var(--text-primary);
  transition: all var(--transition);
}
.bj-btn:hover:not(:disabled) { border-color: var(--aurora-teal); color: var(--aurora-teal); }
.bj-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.bj-btn.primary { background: linear-gradient(135deg, var(--aurora-teal), var(--aurora-blue)); border-color: transparent; color: #fff; box-shadow: 0 4px 18px rgba(0,201,167,0.25); }
.bj-btn.primary:hover:not(:disabled) { transform: translateY(-1px); color: #fff; }

.bj-info { display: flex; gap: 2rem; padding: 1rem 0; border-top: 1px solid var(--border); margin-top: 1rem; }
.bj-info-stat { text-align: center; flex: 1; }
.bj-info-stat .stat-val { font-size: 1.2rem; font-weight: 700; font-family: 'Raleway', sans-serif; color: var(--gold); }
.bj-info-stat .stat-label { font-size: 0.75rem; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== WIN ANIMATIONS ===== */
.win-flash {
  animation: winFlash 0.6s ease;
}
@keyframes winFlash {
  0%, 100% { box-shadow: var(--shadow-glow), var(--shadow-card); }
  50% { box-shadow: 0 0 60px rgba(57,224,152,0.6), var(--shadow-card); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .reel-window { width: 80px; height: 80px; font-size: 2.5rem; }
  .slots-display { gap: 0.5rem; }
  .bet-grid { grid-template-columns: repeat(5, 1fr); }
}
