.game-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.game-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.12), rgba(45, 106, 79, 0.08));
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 12px;
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--cream-muted);
}

.game-stat strong {
    color: var(--gold-light);
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
}

.game-body {
    padding: 28px 24px 32px;
}

.slot-machine {
    text-align: center;
}

.slot-reels {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    perspective: 800px;
}

.slot-reel {
    width: 80px;
    height: 240px;
    background: linear-gradient(180deg, #1a1814 0%, #0c0b09 50%, #1a1814 100%);
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 162, 39, 0.1);
}

.slot-reel::before,
.slot-reel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 2;
    pointer-events: none;
}

.slot-reel::before {
    top: 0;
    background: linear-gradient(180deg, rgba(12, 11, 9, 0.9), transparent);
}

.slot-reel::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(12, 11, 9, 0.9), transparent);
}

.slot-reel-inner {
    transition: transform 0.1s linear;
}

.slot-symbol {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.5);
}

.slot-symbol.sym-emerald { color: #40916c; text-shadow: 0 0 20px rgba(64, 145, 108, 0.5); }
.slot-symbol.sym-crimson { color: #c9184a; text-shadow: 0 0 20px rgba(201, 24, 74, 0.5); }
.slot-symbol.sym-purple { color: #9d4edd; text-shadow: 0 0 20px rgba(157, 78, 221, 0.5); }

.slot-win-line {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    height: 80px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    pointer-events: none;
    opacity: 0.4;
    box-shadow: 0 0 20px var(--glow-gold);
}

.slot-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.slot-message {
    min-height: 28px;
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--gold-light);
    font-weight: 600;
}

.btn-spin {
    padding: 16px 48px;
    font-size: 1rem;
    min-width: 180px;
}

.btn-spin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.blackjack-table {
    text-align: center;
}

.bj-zones {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
}

.bj-zone {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.2), rgba(12, 11, 9, 0.8));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    min-height: 120px;
}

.bj-zone-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 14px;
    font-weight: 600;
}

.bj-cards {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 90px;
    align-items: center;
}

.bj-card {
    width: 62px;
    height: 88px;
    background: linear-gradient(145deg, #f0ebe3, #d4cfc7);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1814;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: cardDeal 0.35s ease;
    position: relative;
}

.bj-card.red { color: #c9184a; }

.bj-card.hidden {
    background: linear-gradient(145deg, #2d6a4f, #1a1814);
    color: transparent;
}

.bj-card.hidden::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px dashed rgba(201, 162, 39, 0.4);
    border-radius: 4px;
}

.bj-card .card-val { font-size: 1.1rem; }
.bj-card .card-suit { font-size: 1.3rem; margin-top: 2px; }

@keyframes cardDeal {
    from { opacity: 0; transform: translateY(-30px) rotate(-5deg); }
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

.bj-score {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--cream-muted);
}

.bj-score strong { color: var(--gold-light); }

.bj-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bj-message {
    min-height: 28px;
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--gold-light);
    font-weight: 600;
}

.roulette-game {
    text-align: center;
}

.roulette-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.roulette-wheel-wrap {
    position: relative;
    width: 280px;
    height: 280px;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: conic-gradient(
        #c9184a 0deg 9.73deg, #1a1814 9.73deg 19.46deg,
        #c9184a 19.46deg 29.19deg, #1a1814 29.19deg 38.92deg,
        #c9184a 38.92deg 48.65deg, #1a1814 48.65deg 58.38deg,
        #c9184a 58.38deg 68.11deg, #1a1814 68.11deg 77.84deg,
        #c9184a 77.84deg 87.57deg, #1a1814 87.57deg 97.3deg,
        #c9184a 97.3deg 107.03deg, #1a1814 107.03deg 116.76deg,
        #c9184a 116.76deg 126.49deg, #1a1814 126.49deg 136.22deg,
        #c9184a 136.22deg 145.95deg, #1a1814 145.95deg 155.68deg,
        #c9184a 155.68deg 165.41deg, #1a1814 165.41deg 175.14deg,
        #c9184a 175.14deg 184.87deg, #1a1814 184.87deg 194.6deg,
        #c9184a 194.6deg 204.33deg, #1a1814 204.33deg 214.06deg,
        #c9184a 214.06deg 223.79deg, #1a1814 223.79deg 233.52deg,
        #c9184a 233.52deg 243.25deg, #1a1814 243.25deg 252.98deg,
        #c9184a 252.98deg 262.71deg, #1a1814 262.71deg 272.44deg,
        #c9184a 272.44deg 282.17deg, #1a1814 282.17deg 291.9deg,
        #c9184a 291.9deg 301.63deg, #1a1814 301.63deg 311.36deg,
        #c9184a 311.36deg 321.09deg, #1a1814 321.09deg 330.82deg,
        #c9184a 330.82deg 340.55deg, #40916c 340.55deg 360deg
    );
}

.roulette-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 18px solid var(--gold);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--bg-elevated);
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--gold);
    z-index: 1;
}

.roulette-bets {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 500px;
}

.bet-chip {
    padding: 12px 20px;
    background: var(--bg-surface);
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--cream);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.bet-chip:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.bet-chip.selected {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold-light);
    box-shadow: 0 0 16px var(--glow-gold);
}

.bet-chip.chip-red.selected { border-color: #c9184a; background: rgba(201, 24, 74, 0.15); color: #ff6b8a; }
.bet-chip.chip-black.selected { border-color: #666; background: rgba(100, 100, 100, 0.2); }

.roulette-message {
    min-height: 28px;
    font-size: 0.95rem;
    color: var(--gold-light);
    font-weight: 600;
}

.roulette-result {
    font-family: 'Exo 2', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
    margin: 8px 0;
    min-height: 40px;
}

@media (max-width: 575.98px) {
    .slot-reel { width: 60px; height: 180px; }
    .slot-symbol { height: 60px; font-size: 1.5rem; }
    .slot-win-line { height: 60px; }
    .roulette-wheel-wrap { width: 220px; height: 220px; }
    .bj-card { width: 52px; height: 74px; }
}
