/* ============================================================
   SunSpin AU — games.css  |  Classic 3×3 Reel Machines
   ============================================================ */

/* ── GAME PAGE LAYOUT ── */
.games-page { padding: 2rem 1rem 4rem; max-width: 1100px; margin: 0 auto; }
.games-full-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 900px) { .games-full-grid { grid-template-columns: 1fr; } }

/* ── GAME CARD ── */
.game-card-full {
  background: linear-gradient(160deg, #1a0a2e 0%, #0d0418 100%);
  border: 1px solid rgba(180,120,255,0.25);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(100,0,200,0.25), 0 0 0 1px rgba(255,255,255,0.04);
}

.game-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(180,120,255,0.15);
}

.game-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #e8d5ff;
  letter-spacing: 0.06em;
}

.game-card-balance {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffd95a;
  background: rgba(255,217,90,0.08);
  border: 1px solid rgba(255,217,90,0.2);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
}

/* ── SLOT MACHINE BODY ── */
.slot-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ── REEL BOARD (3×3) ── */
.reel-board-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

/* payline arrows */
.payline-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #ffd95a;
  opacity: 0.85;
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255,217,90,0.7);
  transition: opacity 0.3s;
}
.payline-arrow.left  { left: -18px; }
.payline-arrow.right { right: -18px; }
.reel-board-wrap.win-active .payline-arrow { opacity: 1; animation: arrowPulse 0.5s ease 3; }
@keyframes arrowPulse { 0%,100%{transform:translateY(-50%) scale(1);} 50%{transform:translateY(-50%) scale(1.4);} }

.reel-board {
  background: linear-gradient(180deg, #0d0120 0%, #120030 50%, #0d0120 100%);
  border: 2px solid rgba(180,100,255,0.4);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

/* center payline glow */
.reel-board::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,217,90,0.5) 20%, rgba(255,217,90,0.7) 50%, rgba(255,217,90,0.5) 80%, transparent);
  pointer-events: none;
  z-index: 5;
}

/* 3-column reel grid */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* individual cell */
.reel-cell {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #1c0540, #0e0228);
  border: 1.5px solid rgba(150,80,255,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

/* inner shine */
.reel-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 100%);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

/* spinning animation */
.reel-cell.spinning {
  animation: reelSpin 0.09s linear infinite;
  filter: blur(1.5px) brightness(0.7);
  border-color: rgba(180,100,255,0.5);
}
@keyframes reelSpin {
  0%   { transform: translateY(-6px); opacity: 0.6; }
  50%  { transform: translateY(6px);  opacity: 0.9; }
  100% { transform: translateY(-6px); opacity: 0.6; }
}

/* winning cell */
.reel-cell.cell-win {
  background: linear-gradient(145deg, rgba(255,200,0,0.18), rgba(255,140,0,0.1));
  border-color: #ffd95a;
  box-shadow: 0 0 18px rgba(255,217,90,0.6), inset 0 0 10px rgba(255,160,0,0.15);
  animation: cellPop 0.5s ease 2;
}
@keyframes cellPop {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

/* ── MESSAGE BANNER ── */
.slot-message {
  width: 100%;
  max-width: 380px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(180,100,255,0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #d8b4ff;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── BOTTOM CONTROLS ── */
.slot-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 380px;
  gap: 1rem;
}

/* BET section */
.bet-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bet-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(200,170,255,0.6);
  text-transform: uppercase;
}

.bet-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bet-btn {
  min-width: 42px;
  padding: 0.35rem 0.55rem;
  background: rgba(140,60,255,0.12);
  border: 1px solid rgba(140,60,255,0.3);
  border-radius: 8px;
  color: #d8b4ff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.bet-btn:hover { background: rgba(140,60,255,0.25); border-color: rgba(200,130,255,0.5); }
.bet-btn.active {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-color: #c084fc;
  color: #fff;
  box-shadow: 0 4px 12px rgba(168,85,247,0.4);
}

/* spins counter */
.spins-info {
  font-size: 0.78rem;
  color: rgba(200,170,255,0.55);
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.spins-info strong { color: #d8b4ff; }

/* ── SPIN BUTTON ── */
.spin-btn-round {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9333ea, #6d28d9);
  border: 3px solid rgba(200,130,255,0.5);
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow:
    0 0 0 4px rgba(147,51,234,0.25),
    0 8px 24px rgba(100,0,200,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

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

.spin-btn-round .spin-icon { font-size: 1.5rem; line-height: 1; }
.spin-btn-round .spin-text { font-size: 0.68rem; letter-spacing: 0.15em; }

.spin-btn-round:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow:
    0 0 0 6px rgba(147,51,234,0.3),
    0 12px 30px rgba(100,0,200,0.6),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.spin-btn-round:active:not(:disabled) { transform: scale(0.96); }
.spin-btn-round:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: saturate(0.4);
}

/* spinning state */
.spin-btn-round.spinning .spin-icon { animation: iconSpin 0.7s linear infinite; }
@keyframes iconSpin { to { transform: rotate(360deg); } }

/* ── WIN FLASH on board ── */
.reel-board-wrap.win-active .reel-board {
  animation: boardFlash 1s ease;
}
@keyframes boardFlash {
  0%,100% { box-shadow: inset 0 0 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04); }
  25%      { box-shadow: inset 0 0 40px rgba(0,0,0,0.7), 0 0 30px rgba(255,217,90,0.5), 0 0 60px rgba(255,150,0,0.3); }
  75%      { box-shadow: inset 0 0 40px rgba(0,0,0,0.7), 0 0 30px rgba(255,217,90,0.5), 0 0 60px rgba(255,150,0,0.3); }
}

/* ── COIN RAIN ── */
.coin-rain-host {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 50;
  border-radius: 22px;
}

.coin-drop {
  position: absolute;
  top: -30px;
  font-size: 1.4rem;
  animation: coinFall linear forwards;
}
@keyframes coinFall {
  to { transform: translateY(520px) rotate(720deg); opacity: 0; }
}

/* ── GAME DISCLAIMER ── */
.game-disclaimer {
  font-size: 0.7rem;
  color: rgba(200,170,255,0.35);
  text-align: center;
  max-width: 380px;
}

/* ── NO MONEY BANNER ── */
.no-money-banner {
  background: rgba(255,200,0,0.05);
  border-top: 1px solid rgba(255,200,0,0.12);
  border-bottom: 1px solid rgba(255,200,0,0.12);
  padding: 1rem 1.5rem;
}
.no-money-inner { display:flex; align-items:center; gap:1rem; max-width:1100px; margin:0 auto; }
.no-money-icon  { font-size:2rem; flex-shrink:0; }
.no-money-text h3 { font-size:0.95rem; color:#ffd95a; margin-bottom:0.25rem; }
.no-money-text p  { font-size:0.82rem; color:rgba(200,170,255,0.7); }

/* ── PAY TABLE SECTION ── */
.pay-table-section { padding:2rem 1.5rem 3rem; max-width:1100px; margin:0 auto; }
