/* ============================================================
   LUX2PLAY — GAMES PAGE STYLES
   ============================================================ */

/* ===== GAME SECTION TITLES ===== */
.game-section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  background: linear-gradient(135deg, #FFD700, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.game-section-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.win-value { color: var(--success) !important; }
.best-win { color: var(--gold) !important; }
.streak-value { color: #FF6B35 !important; }

/* ============================================================
   SLOT MACHINE
   ============================================================ */
.slot-machine-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
}

.slot-machine {
  background: linear-gradient(180deg, #1A0842 0%, #0D0521 30%, #120830 70%, #0D0521 100%);
  border: 2px solid rgba(255, 215, 0, 0.35);
  border-radius: 24px;
  padding: 30px 36px 36px;
  width: 100%;
  max-width: 680px;
  box-shadow:
    0 0 60px rgba(107, 47, 189, 0.4),
    0 0 120px rgba(255, 215, 0, 0.08),
    inset 0 1px 0 rgba(255, 215, 0, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Machine decorative top */
.machine-top-deco {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.machine-lights {
  display: flex;
  gap: 8px;
  align-items: center;
}

.light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.light.l1 { background: #FF3B3B; animation: lightBlink 0.7s infinite; }
.light.l2 { background: #FFD700; animation: lightBlink 0.7s 0.1s infinite; }
.light.l3 { background: #00E676; animation: lightBlink 0.7s 0.2s infinite; }
.light.l4 { background: #00B0FF; animation: lightBlink 0.7s 0.3s infinite; }
.light.l5 { background: #FF3B3B; animation: lightBlink 0.7s 0.4s infinite; }
.light.l6 { background: #FFD700; animation: lightBlink 0.7s 0.5s infinite; }
.light.l7 { background: #00E676; animation: lightBlink 0.7s 0.6s infinite; }

@keyframes lightBlink {
  0%, 80%, 100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
  40% { opacity: 0.3; box-shadow: none; }
}

.machine-title-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 3px;
  background: linear-gradient(90deg, #FFD700, #FFF0A0, #FF8C00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 2s linear infinite;
}

/* Reels */
.reels-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  margin-bottom: 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(20,10,40,0.8), rgba(0,0,0,0.6));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8), 0 0 20px rgba(255,215,0,0.08);
}

.payline-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.6), rgba(255,140,0,0.6), rgba(255, 215, 0, 0.6), transparent);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

.reel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.reel-frame {
  width: 120px;
  height: 200px;
  background: #080318;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}

.reel-window {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.reel-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transition: top 0.5s cubic-bezier(0.17, 0.67, 0.35, 1);
}

.reel-strip.fast-spin {
  transition: none;
}

.reel-cell {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  line-height: 1;
  user-select: none;
}

.reel-cell.winning {
  background: rgba(255, 215, 0, 0.15);
  animation: winPulse 0.8s ease;
}

.reel-overlay-top,
.reel-overlay-bottom {
  position: absolute;
  left: 0; right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 5;
}

.reel-overlay-top {
  top: 0;
  background: linear-gradient(180deg, rgba(8,3,24,0.95) 0%, transparent 100%);
}

.reel-overlay-bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(8,3,24,0.95) 0%, transparent 100%);
}

.reel-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Bet Controls */
.bet-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  padding: 14px 20px;
}

.bet-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.bet-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bet-btn {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-display);
}

.bet-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.4);
  color: var(--gold);
}

.bet-btn.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.current-bet-display {
  text-align: center;
}

.current-bet-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

/* Spin Button */
.spin-button-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.spin-button {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 30% 30%, #FF9D00, #FF5500);
  box-shadow:
    0 6px 0 #B33D00,
    0 12px 30px rgba(255, 100, 0, 0.5),
    0 0 60px rgba(255, 140, 0, 0.3),
    inset 0 2px 0 rgba(255,255,255,0.3);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.spin-button::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.spin-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 9px 0 #B33D00,
    0 16px 40px rgba(255, 100, 0, 0.7),
    0 0 80px rgba(255, 140, 0, 0.5),
    inset 0 2px 0 rgba(255,255,255,0.3);
}

.spin-button:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #B33D00,
    0 4px 15px rgba(255, 100, 0, 0.4),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

.spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.spin-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.spin-btn-inner i {
  font-size: 2rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.spin-btn-inner span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  letter-spacing: 3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.spin-btn-icon.spinning {
  animation: rotateGold 0.4s linear infinite;
}

.reset-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reset-btn:hover {
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.25);
}

/* Slot result */
.slot-result-display {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

/* Paytable */
.paytable-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  user-select: none;
}

.paytable-toggle:hover {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.05);
}

.paytable {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 12px;
}

.paytable-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.paytable-grid { display: flex; flex-direction: column; gap: 4px; }

.pt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 8px;
  gap: 16px;
}

.pt-row:hover { background: rgba(255,255,255,0.03); }

.pt-header {
  background: rgba(255, 215, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pt-footer {
  background: rgba(255,255,255,0.02);
  font-size: 0.75rem;
  color: var(--text-muted);
  justify-content: center;
  margin-top: 8px;
  font-style: italic;
}

.pt-row span:first-child {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pt-sym { font-size: 1rem; }

.pt-mult {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--success);
  font-weight: 700;
  white-space: nowrap;
}

.pt-mult.jackpot {
  color: var(--gold) !important;
  animation: neonFlicker 4s infinite;
}

/* ============================================================
   CARD GAME
   ============================================================ */
.card-game-wrapper {
  display: flex;
  justify-content: center;
}

.card-game-arena {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Deck Indicator */
.deck-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  margin-bottom: 24px;
}

.deck-stack { position: relative; width: 40px; height: 50px; }

.deck-card {
  position: absolute;
  width: 34px;
  height: 46px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2A0D6B, #1A0842);
  border: 1px solid rgba(255,215,0,0.3);
}

.dc1 { top: 0; left: 3px; transform: rotate(5deg); }
.dc2 { top: 2px; left: 2px; transform: rotate(2deg); }
.dc3 { top: 4px; left: 0; }

.deck-count-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

.deck-count-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 700;
}

/* Cards Display */
.cards-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card-slot-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Playing Card */
.playing-card {
  width: 110px;
  height: 155px;
  perspective: 800px;
  cursor: default;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.playing-card.card-face-down .card-inner {
  /* back face */
}

.playing-card.flipping .card-inner {
  animation: cardReveal 0.5s ease-in-out;
}

@keyframes cardReveal {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(-90deg); }
  100% { transform: rotateY(0deg); }
}

/* Card Front */
.card-inner:not(.card-back) {
  background: linear-gradient(135deg, #FAFAFA 0%, #F0EDE8 100%);
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  border-radius: 12px;
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.card-corner.bottom-right { align-self: flex-end; transform: rotate(180deg); }

.card-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: #1A1A1A;
  display: block;
}

.card-val.red, .card-suit-sm.red { color: #CC0000 !important; }
.card-val.black, .card-suit-sm.black { color: #1A1A1A !important; }

.card-suit-sm {
  font-size: 0.85rem;
  color: #1A1A1A;
  display: block;
}

.card-center-suit {
  font-size: 2.8rem;
  text-align: center;
  line-height: 1;
  color: #1A1A1A;
}

.card-center-suit.red { color: #CC0000; }

/* Card Back */
.card-back {
  background: linear-gradient(135deg, #2A0D6B 0%, #1A0842 50%, #2A0D6B 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.card-back-pattern {
  width: 86px;
  height: 131px;
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,215,0,0.04) 0px,
    rgba(255,215,0,0.04) 2px,
    transparent 2px,
    transparent 10px
  );
}

.back-inner {
  width: 60px;
  height: 100px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 4px;
  background: radial-gradient(circle, rgba(107,47,189,0.3), transparent);
}

/* VS Area */
.vs-area { display: flex; align-items: center; }

.vs-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vs-arrow {
  font-size: 1.6rem;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.vs-arrow.up {
  color: var(--success);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.vs-arrow.down {
  color: #FF4444;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.vs-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Guess Buttons */
.guess-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.guess-btn {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.guess-higher {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 180, 90, 0.15));
  border: 1.5px solid rgba(0, 230, 118, 0.4);
}

.guess-higher:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.35), rgba(0, 180, 90, 0.25));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.3);
}

.guess-lower {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(200, 30, 30, 0.15));
  border: 1.5px solid rgba(255, 68, 68, 0.4);
}

.guess-lower:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.35), rgba(200, 30, 30, 0.25));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 68, 68, 0.3);
}

.guess-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.guess-btn-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.guess-higher .guess-btn-inner i { color: var(--success); font-size: 1.6rem; }
.guess-lower .guess-btn-inner i { color: #FF4444; font-size: 1.6rem; }

.guess-higher .guess-btn-inner span { color: var(--success); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 2px; }
.guess-lower .guess-btn-inner span { color: #FF4444; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 2px; }

.guess-btn-inner small { font-size: 0.75rem; color: var(--text-muted); }

/* Card result */
.card-result-display {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  margin-bottom: 16px;
  width: 100%;
}

/* Cards actions */
.cards-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-start-cards {
  min-width: 180px;
  justify-content: center;
}

.btn-reset-cards {
  min-width: 160px;
  justify-content: center;
}

/* Card value guide */
.card-value-guide {
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  width: 100%;
}

.guide-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.value-sequence {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cv {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.cv-ace {
  color: var(--gold);
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.3);
}

.guide-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* ============================================================
   WINNING CELEBRATION EFFECTS
   ============================================================ */
.jackpot-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 7000;
  text-align: center;
  pointer-events: none;
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.jackpot-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  background: linear-gradient(135deg, #FFD700, #FFF0A0, #FF8C00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: goldShimmer 0.5s linear infinite;
  filter: drop-shadow(0 0 30px rgba(255,215,0,1));
  text-align: center;
}

.jackpot-sub {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(255,215,0,0.8);
  margin-top: 8px;
}

/* Coins rain */
.coins-rain {
  position: fixed;
  inset: 0;
  z-index: 6000;
  pointer-events: none;
  overflow: hidden;
}

.coin-rain-item {
  position: absolute;
  font-size: 1.5rem;
  animation: coinRainFall linear forwards;
  top: -50px;
}

@keyframes coinRainFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ============================================================
   RESPONSIVE GAMES
   ============================================================ */
@media (max-width: 700px) {
  .reels-container { gap: 10px; padding: 16px; }
  .reel-frame { width: 90px; height: 160px; }
  .reel-cell { height: 80px; font-size: 2.2rem; }
  .spin-button { width: 120px; height: 120px; }
  .spin-btn-inner i { font-size: 1.6rem; }
  .spin-btn-inner span { font-size: 0.95rem; }
  .guess-buttons { flex-direction: column; }
  .guess-btn { max-width: 100%; }
  .playing-card { width: 90px; height: 125px; }
  .card-center-suit { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .reel-frame { width: 72px; height: 130px; }
  .reel-cell { height: 65px; font-size: 1.8rem; }
  .machine-title-text { font-size: 0.85rem; letter-spacing: 2px; }
  .slot-machine { padding: 20px 16px 24px; }
  .cards-display { gap: 16px; }
}
