/* Enhanced casino game graphics — stages, cards, fallbacks */

.casino-card-img-wrap {
  position: relative;
  min-height: 120px;
  background: linear-gradient(145deg, #1a1030 0%, #0d1b2a 50%, #16213e 100%);
  overflow: hidden;
}
.casino-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0,212,255,0.15), transparent 55%);
  pointer-events: none;
}
.casino-card-img-wrap img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.3s;
}
.casino-card:hover .casino-card-img-wrap img { transform: scale(1.06); }
.casino-card-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 42px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.casino-card-fallback small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* Game type gradient themes */
.casino-card[data-theme="crash"] .casino-card-img-wrap { background: linear-gradient(135deg,#2d1b4e,#ff6b35); }
.casino-card[data-theme="instant"] .casino-card-img-wrap { background: linear-gradient(135deg,#0f3460,#00d4ff); }
.casino-card[data-theme="cards"] .casino-card-img-wrap { background: linear-gradient(135deg,#1b4332,#40916c); }
.casino-card[data-theme="slots"] .casino-card-img-wrap { background: linear-gradient(135deg,#4a1942,#ff006e); }
.casino-card[data-theme="lottery"] .casino-card-img-wrap { background: linear-gradient(135deg,#3d2c00,#ffd700); }

/* Play stage enhancements */
.cg-stage {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.12), transparent 60%),
              linear-gradient(180deg, #1a0f2e 0%, #0a0515 100%);
  border: 1px solid rgba(0,212,255,0.2);
  box-shadow: inset 0 0 60px rgba(0,212,255,0.06), 0 8px 32px rgba(0,0,0,0.4);
  min-height: 240px;
}
.cg-stage::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.015) 2px,
    rgba(255,255,255,0.015) 4px
  );
  animation: cgScan 8s linear infinite;
  pointer-events: none;
}
@keyframes cgScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(40px); }
}

.cg-coin {
  width: 140px;
  height: 140px;
  box-shadow: 0 0 40px rgba(255,215,0,0.35), 0 8px 24px rgba(0,0,0,0.5);
}
.cg-coin-face {
  font-size: 18px;
  border-width: 5px;
  box-shadow: inset 0 -4px 8px rgba(0,0,0,0.3), inset 0 4px 8px rgba(255,255,255,0.2);
}

.cg-dice-num {
  font-size: 88px;
  background: linear-gradient(180deg, #fff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.4));
}

.cg-chip {
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  font-size: 15px;
}
.cg-chip.on {
  box-shadow: 0 0 0 3px #ffd700, 0 8px 20px rgba(255,215,0,0.25);
}

.cg-result.win {
  animation: cgPulseWin 0.6s ease;
}
@keyframes cgPulseWin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.ug-stage-wrap {
  background: linear-gradient(180deg, #12122a, #0a0a18);
  border-radius: 16px;
  border: 1px solid var(--border2);
  padding: 20px;
  margin-bottom: 14px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ug-wheel-display {
  font-size: 64px;
  animation: ugSpinHint 2s ease-in-out infinite;
}
@keyframes ugSpinHint {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.mines-grid { display: grid; gap: 8px; margin: 12px auto; max-width: 280px; }
.mines-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.12);
  background: linear-gradient(145deg, #2a2a4a, #1a1a2e);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.mines-cell:hover:not(.revealed) { border-color: var(--cyan); transform: scale(1.05); }
.mines-cell.gem { background: linear-gradient(145deg,#1b4332,#52b788); border-color: #52b788; }
.mines-cell.bomb { background: linear-gradient(145deg,#4a0000,#ff3d5a); border-color: #ff3d5a; }

.plinko-board {
  min-height: 200px;
  background: radial-gradient(circle at 50% 0%, rgba(168,85,247,0.2), transparent 70%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.roulette-wheel-ui {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid #ffd700;
  background: conic-gradient(#e74c3c 0deg 180deg, #111 180deg 360deg);
  box-shadow: 0 0 30px rgba(255,215,0,0.3);
  animation: rouletteIdle 4s linear infinite;
}
@keyframes rouletteIdle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.slot-reels {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px;
}
.slot-reel {
  width: 64px;
  height: 80px;
  background: linear-gradient(180deg, #222, #444);
  border: 3px solid #ffd700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.5);
}
