/* ============================================
   CRAZYONOPOLY - Casino Styles
   HappyStoner5420 Games!
   ============================================ */

/* ============================================
   CASINO MAIN SCREEN
   ============================================ */
#casino-screen {
  background: #000;
  overflow: hidden;
}

.casino-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, #1a0a00 0%, #0d0500 50%, #000 100%);
  z-index: 0;
}

.casino-lights {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,159,67,0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 10%, rgba(231,76,60,0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 90%, rgba(255,215,0,0.1) 0%, transparent 40%);
  animation: casinoLightsPulse 3s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes casinoLightsPulse {
  from {
    background:
      radial-gradient(ellipse at 20% 10%, rgba(255,159,67,0.15) 0%, transparent 40%),
      radial-gradient(ellipse at 80% 10%, rgba(231,76,60,0.15) 0%, transparent 40%),
      radial-gradient(ellipse at 50% 90%, rgba(255,215,0,0.1) 0%, transparent 40%);
  }
  to {
    background:
      radial-gradient(ellipse at 25% 15%, rgba(255,159,67,0.3) 0%, transparent 45%),
      radial-gradient(ellipse at 75% 15%, rgba(231,76,60,0.3) 0%, transparent 45%),
      radial-gradient(ellipse at 50% 85%, rgba(255,215,0,0.2) 0%, transparent 45%);
  }
}

.casino-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  padding: 30px 20px;
  max-height: 100vh;
  overflow-y: auto;
}

.casino-title {
  font-family: var(--font-game);
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 6px;
  background: linear-gradient(135deg, #ffd700, #ff9f43, #e74c3c, #ffd700);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: casinoTitleShimmer 3s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255,159,67,0.6));
}

@keyframes casinoTitleShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.casino-subtitle {
  font-family: var(--font-ui);
  font-size: 16px;
  color: rgba(255,200,100,0.7);
  letter-spacing: 2px;
  font-style: italic;
  margin-top: -16px;
}

.casino-balance {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: #5dfc8a;
  background: rgba(0,0,0,0.5);
  padding: 8px 28px;
  border-radius: 30px;
  border: 1px solid rgba(93,252,138,0.3);
  letter-spacing: 2px;
}

/* Casino Games Grid */
.casino-games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 600px) {
  .casino-games {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .casino-games {
    grid-template-columns: 1fr;
  }
}

.casino-game-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px 16px;
  background: linear-gradient(180deg, rgba(30,15,5,0.95), rgba(20,10,2,0.95));
  border: 2px solid rgba(255,159,67,0.3);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.casino-game-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,159,67,0.1), transparent);
  transition: left 0.5s;
}

.casino-game-btn:hover::before {
  left: 100%;
}

.casino-game-btn:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255,215,0,0.7);
  box-shadow: 0 12px 40px rgba(255,159,67,0.4), 0 0 20px rgba(255,215,0,0.2);
  background: linear-gradient(180deg, rgba(50,25,5,0.98), rgba(35,18,3,0.98));
}

.casino-game-btn:active {
  transform: translateY(-2px) scale(1.01);
}

.casino-game-icon {
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  border: 1px solid rgba(255,159,67,0.2);
}

.casino-svg {
  width: 72px;
  height: 72px;
}

.casino-game-btn span {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffd700;
}

.casino-game-btn small {
  font-size: 11px;
  color: rgba(255,200,100,0.6);
  letter-spacing: 1px;
}

.casino-leave-btn {
  padding: 14px 30px;
  background: rgba(20,20,50,0.8);
  border: 1px solid rgba(100,100,200,0.4);
  border-radius: 10px;
  color: rgba(180,180,220,0.8);
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}

.casino-leave-btn:hover {
  background: rgba(40,40,80,0.9);
  color: white;
  border-color: rgba(155,89,182,0.5);
}

/* ============================================
   SLOT MACHINE SCREEN
   ============================================ */
#slot-machine-screen {
  background: #000;
  overflow: hidden;
}

.slot-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, #1a0000 0%, #080000 60%, #000 100%);
  z-index: 0;
}

.slot-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 100vh;
  overflow-y: auto;
}

.slot-title {
  font-family: var(--font-game);
  font-size: clamp(22px, 4vw, 36px);
  letter-spacing: 3px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.6), 0 0 40px rgba(255,100,0,0.4);
  text-align: center;
  animation: slotTitleFlicker 4s ease-in-out infinite;
}

@keyframes slotTitleFlicker {
  0%,90%,100% { opacity: 1; }
  92%          { opacity: 0.6; }
  95%          { opacity: 1; }
  97%          { opacity: 0.3; }
}

/* Slot Machine Body - ULTRA PREMIUM */
.slot-machine-body {
  background: linear-gradient(180deg, 
    #a52a2a 0%, 
    #8b1a1a 15%, 
    #cd3535 30%, 
    #8b1a1a 50%, 
    #5a0f0f 70%, 
    #3d0808 100%);
  border-radius: 28px 28px 16px 16px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow:
    0 15px 60px rgba(0,0,0,0.9),
    0 5px 25px rgba(139,26,26,0.5),
    inset 0 3px 0 rgba(255,150,150,0.4),
    inset 0 -4px 0 rgba(0,0,0,0.6),
    inset 4px 0 20px rgba(0,0,0,0.3),
    inset -4px 0 20px rgba(0,0,0,0.3),
    0 0 100px rgba(200,50,50,0.3);
  border: 4px solid;
  border-image: linear-gradient(180deg, #ffd700, #c8a400, #8b6914, #c8a400, #ffd700) 1;
  position: relative;
  overflow: hidden;
}

.slot-machine-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 24px 24px 0 0;
}

.slot-machine-top {
  margin-bottom: 14px;
}

.slot-lights-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-light-bulb {
  width: 12px; height: 12px;
  border-radius: 50%;
  transition: background 0.2s;
  box-shadow: 0 0 6px currentColor;
}

.slot-light-bulb.on-red    { background: #ff4444; color: #ff4444; }
.slot-light-bulb.on-yellow { background: #ffd700; color: #ffd700; }
.slot-light-bulb.on-green  { background: #44ff44; color: #44ff44; }
.slot-light-bulb.on-blue   { background: #4488ff; color: #4488ff; }
.slot-light-bulb.off       { background: #2a2a2a; color: transparent; }

/* Slot Display - ULTRA PREMIUM */
.slot-display {
  background: linear-gradient(180deg, #050510 0%, #0a0a1a 40%, #151525 60%, #0a0a1a 100%);
  border-radius: 16px;
  padding: 24px;
  border: 5px solid;
  border-image: linear-gradient(180deg, #888, #ccc, #fff, #ccc, #888) 1;
  box-shadow: 
    inset 0 8px 40px rgba(0,0,0,0.95), 
    inset 0 0 60px rgba(0,0,0,0.7),
    inset 0 -4px 20px rgba(100,100,150,0.1),
    0 4px 20px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.slot-display::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.03) 0%, 
    transparent 20%, 
    transparent 80%, 
    rgba(255,255,255,0.03) 100%);
  pointer-events: none;
}

.slot-display::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.8) 0%,
    transparent 20%,
    transparent 80%,
    rgba(0,0,0,0.8) 100%
  );
  z-index: 10;
  pointer-events: none;
}

.slot-reels {
  display: flex;
  gap: 16px;
  justify-content: center;
  height: 140px;
  overflow: hidden;
  padding: 8px 0;
}

.slot-reel {
  flex: 1;
  max-width: 120px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(20,20,40,0.9) 50%, rgba(0,0,0,0.8) 100%);
  border: 3px solid rgba(150,150,180,0.4);
  position: relative;
  box-shadow: 
    inset 0 4px 15px rgba(0,0,0,0.8),
    inset 0 -4px 15px rgba(0,0,0,0.8),
    0 0 20px rgba(100,100,200,0.1);
}

.slot-reel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(0,0,0,0.9), transparent);
  z-index: 5;
  pointer-events: none;
}

.slot-reel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent);
  z-index: 5;
  pointer-events: none;
}

.reel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.reel-symbol {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}

.reel-symbol svg,
.reel-symbol img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.premium-reel-symbol img {
  transition: transform 0.1s ease;
}

.slot-reel:hover .premium-reel-symbol img {
  transform: scale(1.02);
}

/* Spinning animation */
.reel-inner.spinning {
  animation: reelSpin linear infinite;
}

@keyframes reelSpin {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

/* Payline */
.payline {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 3px;
  background: rgba(255,215,0,0.7);
  transform: translateY(-50%);
  z-index: 11;
  box-shadow: 0 0 10px rgba(255,215,0,0.8);
}

.payline::before,
.payline::after {
  content: '▶';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd700;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(255,215,0,0.8);
}

.payline::before { left: -16px; }
.payline::after  { right: -16px; transform: translateY(-50%) rotate(180deg); }

/* Slot Result */
.slot-result {
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
}

.slot-result-win {
  font-family: var(--font-game);
  font-size: 28px;
  letter-spacing: 3px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.8);
  animation: winFlash 0.5s ease-in-out 4;
}

@keyframes winFlash {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.1); }
}

.slot-result-lose {
  font-family: var(--font-ui);
  font-size: 18px;
  color: #888;
  font-style: italic;
}

/* Slot Controls */
.slot-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.bet-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255,100,100,0.3);
}

.bet-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b1a1a, #c0392b);
  border: 1px solid rgba(231,76,60,0.5);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.bet-btn:hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(231,76,60,0.5);
}

.bet-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.bet-label {
  font-size: 9px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#current-bet {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  color: #ffd700;
}

.slot-balance-display {
  font-family: var(--font-ui);
  font-size: 15px;
  color: #5dfc8a;
}

/* Spin Button - ULTRA PREMIUM */
.spin-btn {
  padding: 20px 60px;
  background: linear-gradient(135deg, 
    #8b1a1a 0%, 
    #b52a2a 25%,
    #e74c3c 50%, 
    #c0392b 75%,
    #8b1a1a 100%);
  background-size: 200% 200%;
  animation: spinBtnShimmer 3s ease-in-out infinite;
  border: 3px solid #ffd700;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 
    0 8px 30px rgba(192,57,43,0.6), 
    0 4px 15px rgba(255,215,0,0.3),
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -2px 0 rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

@keyframes spinBtnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.spin-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.spin-btn:hover::before { left: 100%; }

.spin-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(231,76,60,0.7);
}

.spin-btn:active {
  transform: translateY(1px) scale(0.98);
}

.spin-btn span {
  font-family: var(--font-game);
  font-size: 22px;
  letter-spacing: 3px;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

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

/* Slot Lever */
.slot-lever {
  position: absolute;
  right: -28px;
  top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lever-shaft {
  width: 14px;
  height: 80px;
  background: linear-gradient(90deg, #888, #ccc, #888);
  border-radius: 7px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-origin: bottom center;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.lever-shaft.pulled {
  transform: rotate(30deg);
  transition: transform 0.15s ease-in;
}

.lever-ball {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e74c3c, #8b0000);
  box-shadow: 0 0 10px rgba(231,76,60,0.5), inset 0 2px 4px rgba(255,255,255,0.3);
}

/* Paytable */
.paytable {
  background: rgba(15,5,0,0.9);
  border: 1px solid rgba(255,159,67,0.3);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  max-width: 420px;
}

.paytable h3 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,159,67,0.8);
  text-align: center;
  margin-bottom: 12px;
}

.paytable-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  font-size: 12px;
}

.paytable-combo {
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 6px;
}

.paytable-win {
  color: #ffd700;
  font-weight: 700;
  text-align: right;
  font-family: var(--font-ui);
}

.back-btn {
  padding: 10px 24px;
  background: rgba(20,20,50,0.8);
  border: 1px solid rgba(100,100,200,0.3);
  border-radius: 8px;
  color: #bbb;
  font-family: var(--font-ui);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.back-btn:hover {
  background: rgba(40,40,80,0.9);
  color: white;
  border-color: rgba(155,89,182,0.5);
}

/* ============================================
   LUCKY WHEEL
   ============================================ */
#lucky-wheel-screen {
  background: radial-gradient(ellipse at center, #0d001a 0%, #000 100%);
}

.wheel-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 30px;
}

.wheel-canvas-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wheel-canvas {
  filter: drop-shadow(0 0 30px rgba(155,89,182,0.5));
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid #ffd700;
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.8));
  z-index: 10;
}

/* ============================================
   DOUBLE OR NOTHING
   ============================================ */
.double-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px;
  position: relative;
  z-index: 1;
}

.double-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15,15,35,0.9);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: 12px;
  padding: 16px 24px;
}

.double-input-row label {
  font-family: var(--font-ui);
  font-size: 16px;
  color: #aaa;
}

.double-input-row input {
  width: 120px;
  padding: 10px 14px;
  background: rgba(5,5,15,0.9);
  border: 1px solid rgba(100,100,200,0.3);
  border-radius: 8px;
  color: white;
  font-family: var(--font-ui);
  font-size: 18px;
  text-align: center;
}

.double-result {
  font-family: var(--font-game);
  font-size: 48px;
  letter-spacing: 4px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.double-result.win  { color: #5dfc8a; text-shadow: 0 0 30px rgba(93,252,138,0.8); }
.double-result.lose { color: #ff4444; text-shadow: 0 0 30px rgba(255,68,68,0.8); }

/* ============================================
   COIN FLIP
   ============================================ */
.coin-flip-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
  padding: 40px;
}

.coin-3d {
  width: 120px; height: 120px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 1.5s ease-out;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.5));
}

.coin-3d.flipping {
  animation: coinFlipAnim 1.5s ease-out;
}

@keyframes coinFlipAnim {
  0%   { transform: rotateY(0deg) translateY(0); }
  25%  { transform: rotateY(540deg) translateY(-60px); }
  50%  { transform: rotateY(1080deg) translateY(-80px); }
  75%  { transform: rotateY(1440deg) translateY(-40px); }
  100% { transform: rotateY(1800deg) translateY(0); }
}

.coin-face {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-heads {
  background: radial-gradient(circle at 40% 40%, #ffd700, #c8a400, #8b7000);
  border: 4px solid #c8a400;
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.4), inset 0 -2px 8px rgba(0,0,0,0.3);
}

.coin-tails {
  background: radial-gradient(circle at 40% 40%, #c0c0c0, #888, #555);
  border: 4px solid #888;
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.4), inset 0 -2px 8px rgba(0,0,0,0.3);
  transform: rotateY(180deg);
}

.coin-choice-btns {
  display: flex;
  gap: 20px;
}

.coin-choice-btn {
  padding: 12px 30px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.coin-heads-btn {
  background: linear-gradient(135deg, #c8a400, #ffd700);
  color: #000;
  box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.coin-heads-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,215,0,0.6);
}

.coin-tails-btn {
  background: linear-gradient(135deg, #555, #888);
  color: white;
  box-shadow: 0 4px 15px rgba(100,100,100,0.4);
}

.coin-tails-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(150,150,150,0.4);
}

/* ============================================
   BLACKJACK - ULTRA PREMIUM
   ============================================ */
.blackjack-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 40px;
  width: 100%;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.blackjack-title {
  font-family: var(--font-game);
  font-size: 52px;
  letter-spacing: 6px;
  background: linear-gradient(135deg, #5dfc8a 0%, #27ae60 50%, #5dfc8a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bjTitleShimmer 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(93,252,138,0.5));
}

@keyframes bjTitleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.bj-table {
  background: 
    radial-gradient(ellipse at center, rgba(20,80,20,0.3) 0%, transparent 70%),
    linear-gradient(180deg, #0a3a0a 0%, #0f4a0f 30%, #0a3a0a 70%, #052505 100%);
  border: 6px solid;
  border-image: linear-gradient(180deg, #8b5a3c, #d4a574, #8b5a3c) 1;
  border-radius: 30px;
  padding: 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: 
    0 15px 60px rgba(0,0,0,0.9),
    inset 0 0 100px rgba(0,120,0,0.15),
    inset 0 4px 0 rgba(100,200,100,0.1),
    0 0 80px rgba(39,174,96,0.15);
  position: relative;
  overflow: hidden;
}

.bj-table::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 80px;
  border: 3px solid rgba(255,215,0,0.2);
  border-radius: 100px;
  pointer-events: none;
}

.bj-table::after {
  content: 'BLACKJACK PAYS 3:2';
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255,215,0,0.4);
  pointer-events: none;
}

.bj-hand-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(100,200,100,0.7);
  margin-bottom: 8px;
}

.bj-cards-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bj-card {
  width: 85px; height: 125px;
  background: linear-gradient(145deg, #fffef8, #f8f8f0);
  border-radius: 12px;
  border: 2px solid #ddd;
  box-shadow: 
    4px 6px 20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  position: relative;
  font-family: 'Georgia', serif;
  animation: cardDeal 0.4s cubic-bezier(0.34,1.56,0.64,1);
  transition: transform 0.2s ease;
}

.bj-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    6px 10px 30px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

@keyframes cardDeal {
  from { transform: scale(0) rotate(-30deg) translateY(-50px); opacity: 0; }
  to   { transform: scale(1) rotate(0deg) translateY(0); opacity: 1; }
}

.bj-card.face-down {
  background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #1a237e 100%);
  border: 2px solid #3949ab;
  box-shadow: 
    4px 6px 20px rgba(0,0,0,0.6),
    inset 0 0 30px rgba(255,255,255,0.05);
}

.bj-card.face-down::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 6px;
}

.bj-card.face-down::after {
  content: '♠';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: rgba(255,215,0,0.4);
}

.bj-card-rank {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.bj-card-suit {
  font-size: 22px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bj-card.hearts .bj-card-rank,
.bj-card.hearts .bj-card-suit,
.bj-card.diamonds .bj-card-rank,
.bj-card.diamonds .bj-card-suit {
  color: #e74c3c;
}

.bj-card.spades .bj-card-rank,
.bj-card.spades .bj-card-suit,
.bj-card.clubs .bj-card-rank,
.bj-card.clubs .bj-card-suit {
  color: #111;
}

.bj-score {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-top: 8px;
}

.bj-score.bust { color: #e74c3c; }
.bj-score.bj   { color: #ffd700; }

.bj-controls {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.bj-btn {
  padding: 16px 40px;
  font-family: var(--font-game);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  border: 3px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}

.bj-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.bj-btn:hover::before { left: 100%; }

.bj-btn-hit {
  background: linear-gradient(135deg, #1a5200 0%, #27ae60 50%, #2ecc71 100%);
  color: white;
  box-shadow: 
    0 6px 25px rgba(39,174,96,0.5),
    inset 0 2px 0 rgba(255,255,255,0.2);
  border-color: #5dfc8a;
}

.bj-btn-hit:hover {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #58d68d 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(39,174,96,0.7),
    0 0 30px rgba(93,252,138,0.3);
}

.bj-btn-stand {
  background: linear-gradient(135deg, #8b0000 0%, #c0392b 50%, #e74c3c 100%);
  color: white;
  box-shadow: 
    0 6px 25px rgba(192,57,43,0.5),
    inset 0 2px 0 rgba(255,255,255,0.2);
  border-color: #ff8080;
}

.bj-btn-stand:hover {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 50%, #ec7063 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(231,76,60,0.7),
    0 0 30px rgba(255,128,128,0.3);
}

.bj-result-banner {
  font-family: var(--font-game);
  font-size: 36px;
  letter-spacing: 4px;
  text-align: center;
  padding: 14px 30px;
  border-radius: 12px;
  animation: notifPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.bj-result-banner.win  { background: rgba(39,174,96,0.2); border: 2px solid #27ae60; color: #5dfc8a; }
.bj-result-banner.lose { background: rgba(231,76,60,0.2); border: 2px solid #e74c3c; color: #ff8080; }
.bj-result-banner.push { background: rgba(100,100,200,0.2); border: 2px solid #7777cc; color: #bbbbff; }

/* ============================================
   DICE CHALLENGE
   ============================================ */
.dice-challenge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 40px;
  position: relative;
  z-index: 1;
}

.dice-challenge-arena {
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(15,15,35,0.8);
  border: 1px solid rgba(100,100,200,0.3);
  border-radius: 16px;
  padding: 30px 40px;
}

.dice-challenger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dice-challenger h3 {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 2px;
  color: #aaa;
  text-transform: uppercase;
}

.challenge-die {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #fff, #e8e8e8, #ccc);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset -4px -4px 8px rgba(0,0,0,0.2),
    inset 4px 4px 8px rgba(255,255,255,0.8),
    0 6px 20px rgba(0,0,0,0.6);
}

.challenge-die-value {
  font-family: var(--font-game);
  font-size: 40px;
  color: #111;
}

.vs-label {
  font-family: var(--font-game);
  font-size: 36px;
  color: #e74c3c;
  text-shadow: 0 0 20px rgba(231,76,60,0.6);
}
