 :root {
            --neon-purple: #6a3dff;
            --neon-purple-glow: 0 0 8px rgba(106, 61, 255, 0.6);
            --bg-gradient: radial-gradient(ellipse at center, #0a0a14 0%, #05020a 80%);
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-gradient);
            color: white;
            min-height: 100vh;
        }
        
        .game-window {
            background: rgba(15, 15, 25, 0.8);
            backdrop-filter: blur(10px);
            border-radius: 12px;
            overflow: hidden;
            
        }
        .content {
            align-items: center;
            justify-content: center;
            display: flex;
        }
        
        .window-header {
            background: rgba(106, 61, 255, 0.15);
            border-bottom: 1px solid rgba(106, 61, 255, 0.3);
        }
        
        .close-button {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }
        
        .close-button:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }
        .bottom-ui-bar .left-icons #soundToggle {
    color: #cbd5e1;
}
.bottom-ui-bar .left-icons #soundToggle:hover {
    color: #e5e7eb;
}
.bet-group {
    position: relative;
}
        .bet-input {
            padding: 12px 96px 12px 44px;
            border: 1px solid rgba(106,61,255,0.35);
            border-radius: 10px;
            background: transparent;
            color: #e5e7eb;
            transition: all 0.3s ease;
        }
        
        .bet-input:focus {
            outline: none;
            border-color: rgba(106, 61, 255, 0.6);
            box-shadow: var(--neon-purple-glow);
        }
        .bet-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #f1c40f;
}
.bet-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}
.bet-chip {
    padding: 6px 8px;
    font-size: 12px;
    border: 1px solid rgba(229,231,235,0.4);
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    color: #e5e7eb;
}
        .bet-button {
            background: linear-gradient(135deg, #6a3dff, #8b66ff);
            border-radius: 6px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
        
        .bet-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), var(--neon-purple-glow);
        }
        
        .bet-button:active {
            transform: translateY(0);
        }
        
        .stats-container {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 8px;
            border: 1px solid rgba(106, 61, 255, 0.15);
        }
        
        .stats-item {
            border-bottom: 1px solid rgba(106, 61, 255, 0.1);
        }
        
        .stats-item:last-child {
            border-bottom: none;
        }
        
        .game-area {
            border: 1px solid rgba(106, 61, 255, 0.15);
        }
        
        .positive {
            color: #4ade80;
        }
        
        .negative {
            color: #f87171;
        }
        
        .input-addon {
            background: rgba(106, 61, 255, 0.2);
            border: 1px solid rgba(106, 61, 255, 0.3);
            border-left: none;
            border-radius: 0 6px 6px 0;
        }
        
        .quick-bet {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(106, 61, 255, 0.2);
            border-radius: 4px;
            transition: all 0.2s ease;
        }
        
        .quick-bet:hover {
            background: rgba(106, 61, 255, 0.15);
            border-color: rgba(106, 61, 255, 0.4);
        }
        canvas {
  width: 100%;
  height: auto;
  display: block;
}
        .action-button {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(106, 61, 255, 0.2);
            border-radius: 8px;
            padding: 0.75rem;
            font-weight: 500;
            transition: all 0.3s ease;
            width: 100%;
            text-align: center;
            margin-bottom: 0.5rem;
        }
        
        .action-button:hover:not(:disabled) {
            background: rgba(106, 61, 255, 0.15);
            border-color: rgba(106, 61, 255, 0.4);
            transform: translateY(-2px);
        }
        
        .action-button:active:not(:disabled) {
            transform: translateY(0);
        }
        
        .action-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
#deckStack {
  position: absolute;
  top: -50px;
  right: 100px;
  width: 40px;
  height: 60px;
  pointer-events: none;
  z-index: 10;
  overflow: visible; 
}

.card-back {
    position: absolute;
    width: 90px;
    height: 130px;
    border-radius: 8px;
    background: url("/main/img/bjback.png") center/cover no-repeat;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.offset1 { top: -1px; left: -1px; }
.offset2 { top: -2px; left: -2px; }
.offset3 { top: -3px; left: -3px; }
.offset4 { top: -4px; left: -4px; }

@media (max-width: 990px) {
  #deckStack {
    display: none;
  }
}

.order-1 {
  order: 1;
}
.order-2 {
  order: 2;
}
@media (min-width: 768px) {
  .md\:order-1 {
    order: 1;
  }
  .md\:order-2 {
    order: 2;
  }
}
