.play-game {
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(160deg, #1a1030 0%, #14101f 50%, #0f0a1a 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.play-game::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.game-hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.game-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent-soft);
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 50px;
}

.game-credits i {
    font-size: 0.9rem;
}

.game-message {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-teal);
    min-height: 1.4em;
    text-align: center;
    flex: 1;
}

.game-message.win {
    color: var(--color-accent-soft);
    animation: gamePulse 0.6s ease;
}

.game-message.lose {
    color: #f87171;
}

@keyframes gamePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-game {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, #5b21b6 100%);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.btn-game:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
}

.btn-game:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-game-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border);
    box-shadow: none;
}

.btn-game-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.game-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.slot-reels {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.slot-reel {
    width: 100px;
    height: 120px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(124, 58, 237, 0.4);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-accent-soft);
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(124, 58, 237, 0.2);
}

.slot-reel .slot-seven {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-teal);
}

.slot-reel.spinning {
    animation: slotBlur 0.1s linear infinite;
}

@keyframes slotBlur {
    0%, 100% { filter: blur(0); }
    50% { filter: blur(2px); }
}

.slot-reel.win-glow {
    animation: slotWin 0.8s ease infinite alternate;
    border-color: var(--color-accent-soft);
}

@keyframes slotWin {
    from { box-shadow: 0 0 15px rgba(251, 191, 36, 0.4); }
    to { box-shadow: 0 0 30px rgba(251, 191, 36, 0.8); }
}

.card-table {
    min-height: 280px;
    position: relative;
    z-index: 1;
}

.card-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.card-hand {
    text-align: center;
}

.card-hand-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.card-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    min-height: 90px;
}

.card-row-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    opacity: 0.4;
}

.playing-card {
    width: 62px;
    height: 88px;
    background: linear-gradient(145deg, #fff 0%, #f0f0f5 100%);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: cardDeal 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.playing-card.red {
    color: #dc2626;
}

.playing-card.black {
    color: #1a1a2e;
}

.playing-card.back {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    color: transparent;
    border: 2px solid var(--color-primary-light);
}

.playing-card .card-suit {
    font-size: 1rem;
    line-height: 1;
}

@keyframes cardDeal {
    from { transform: translateY(-20px) rotateY(90deg); opacity: 0; }
    to { transform: translateY(0) rotateY(0); opacity: 1; }
}

.roulette-wheel-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.roulette-wheel {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: relative;
    border: 6px solid var(--color-accent-soft);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.roulette-wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #dc2626 0deg 9.73deg, #1a1a2e 9.73deg 19.46deg,
        #dc2626 19.46deg 29.19deg, #1a1a2e 29.19deg 38.92deg,
        #dc2626 38.92deg 48.65deg, #1a1a2e 48.65deg 58.38deg,
        #dc2626 58.38deg 68.11deg, #1a1a2e 68.11deg 77.84deg,
        #dc2626 77.84deg 87.57deg, #1a1a2e 87.57deg 97.3deg,
        #dc2626 97.3deg 107.03deg, #1a1a2e 107.03deg 116.76deg,
        #dc2626 116.76deg 126.49deg, #1a1a2e 126.49deg 136.22deg,
        #dc2626 136.22deg 145.95deg, #1a1a2e 145.95deg 155.68deg,
        #dc2626 155.68deg 165.41deg, #1a1a2e 165.41deg 175.14deg,
        #dc2626 175.14deg 184.87deg, #1a1a2e 184.87deg 194.6deg,
        #dc2626 194.6deg 204.33deg, #1a1a2e 204.33deg 214.06deg,
        #dc2626 214.06deg 223.79deg, #1a1a2e 223.79deg 233.52deg,
        #dc2626 233.52deg 243.25deg, #1a1a2e 243.25deg 252.98deg,
        #dc2626 252.98deg 262.71deg, #1a1a2e 262.71deg 272.44deg,
        #dc2626 272.44deg 282.17deg, #1a1a2e 282.17deg 291.9deg,
        #dc2626 291.9deg 301.63deg, #1a1a2e 301.63deg 311.36deg,
        #dc2626 311.36deg 321.09deg, #1a1a2e 321.09deg 330.82deg,
        #dc2626 330.82deg 340.55deg, #16a34a 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(--color-accent-soft);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.roulette-bets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.bet-chip {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    background: rgba(124, 58, 237, 0.15);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bet-chip:hover {
    border-color: var(--color-primary-light);
}

.bet-chip.selected {
    background: rgba(124, 58, 237, 0.35);
    border-color: var(--color-primary-light);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.bet-chip.red-chip.selected {
    background: rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
}

.bet-chip.black-chip.selected {
    background: rgba(30, 30, 50, 0.8);
    border-color: #a8a3b8;
}

.baccarat-table {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.baccarat-hands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.baccarat-hand {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-align: center;
}

.baccarat-hand.active {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.baccarat-hand h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.baccarat-score {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent-soft);
    margin-top: 0.5rem;
}

.holdem-community {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(45, 212, 191, 0.05);
    border: 1px dashed rgba(45, 212, 191, 0.2);
    border-radius: var(--radius-md);
}

@media (max-width: 575.98px) {
    .play-game {
        padding: 1.25rem;
    }

    .slot-reel {
        width: 80px;
        height: 100px;
        font-size: 2.25rem;
    }

    .playing-card {
        width: 52px;
        height: 74px;
        font-size: 1rem;
    }

    .roulette-wheel {
        width: 180px;
        height: 180px;
    }

    .baccarat-hands {
        grid-template-columns: 1fr;
    }

    .game-actions {
        flex-direction: column;
    }

    .btn-game {
        width: 100%;
    }
}
