.play-game-wrap {
    background: linear-gradient(145deg, var(--color-surface) 0%, #0d1220 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    position: relative;
}

.play-game-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.game-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.game-hud-stat {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-hud-stat i {
    color: var(--color-secondary);
}

.game-hud-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    display: block;
}

.game-hud-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}

.game-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.45);
}

.game-action-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.55);
}

.game-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-action-btn.secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    box-shadow: none;
}

.game-action-btn.secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.game-message {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary-light);
    min-height: 28px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.game-message.highlight {
    color: var(--color-accent);
    animation: msgPulse 0.6s ease;
}

@keyframes msgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.slots-machine {
    position: relative;
    z-index: 1;
}

.slots-frame {
    background: linear-gradient(180deg, #2d1b69 0%, #1a1033 100%);
    border: 3px solid rgba(139, 92, 246, 0.5);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: inset 0 0 40px rgba(139, 92, 246, 0.15), 0 0 30px rgba(6, 182, 212, 0.2);
}

.slots-reels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.slots-reel {
    background: rgba(8, 12, 22, 0.9);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 180px;
    position: relative;
}

.slots-reel-inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.1s linear;
}

.slots-reel.spinning .slots-reel-inner {
    animation: reelSpin 0.08s linear infinite;
}

@keyframes reelSpin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-60px); }
}

.slot-symbol {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.slot-symbol.sym-star { color: #fbbf24; text-shadow: 0 0 20px rgba(251, 191, 36, 0.6); }
.slot-symbol.sym-gem { color: #06b6d4; text-shadow: 0 0 20px rgba(6, 182, 212, 0.6); }
.slot-symbol.sym-crown { color: #a78bfa; text-shadow: 0 0 20px rgba(167, 139, 250, 0.6); }
.slot-symbol.sym-cherry { color: #f472b6; text-shadow: 0 0 20px rgba(244, 114, 182, 0.6); }
.slot-symbol.sym-bell { color: #fcd34d; text-shadow: 0 0 20px rgba(252, 211, 77, 0.6); }
.slot-symbol.sym-seven { color: #ef4444; text-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }

.slots-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.blackjack-table {
    position: relative;
    z-index: 1;
}

.bj-felt {
    background: radial-gradient(ellipse at center, #0d4f3c 0%, #062e24 100%);
    border: 4px solid #8b6914;
    border-radius: 200px / 80px;
    padding: 40px 32px;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 380px;
}

.bj-hand {
    margin-bottom: 28px;
}

.bj-hand-label {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.bj-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 90px;
}

.bj-card {
    width: 64px;
    height: 90px;
    background: linear-gradient(145deg, #fff 0%, #f1f5f9 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: cardDeal 0.4s ease;
}

.bj-card.red { color: #dc2626; }
.bj-card.black { color: #1e293b; }

.bj-card-value {
    font-size: 1.4rem;
    line-height: 1;
}

.bj-card-suit {
    font-size: 1.1rem;
    margin-top: 4px;
}

.bj-card.hidden-card {
    background: linear-gradient(145deg, #4c1d95 0%, #7c3aed 100%);
    color: #fff;
    font-size: 1.5rem;
}

@keyframes cardDeal {
    from { transform: translateY(-30px) rotate(-5deg); opacity: 0; }
    to { transform: translateY(0) rotate(0); opacity: 1; }
}

.bj-score {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 8px;
}

.bj-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.wheel-game {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 28px;
}

.wheel-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid var(--color-accent);
    z-index: 10;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.wheel-spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3), inset 0 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    position: relative;
    overflow: hidden;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 50%;
    border: 3px solid #fff;
    z-index: 5;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    left: 50%;
    top: 0;
    transform-origin: 0% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 100%, 100% 0, 0 0);
}

.wheel-segment-label {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transform: rotate(22.5deg) translateY(-70px);
}

@media (max-width: 575.98px) {
    .play-game-wrap {
        padding: 20px 16px;
    }

    .wheel-container {
        width: 280px;
        height: 280px;
    }

    .slots-reel {
        height: 150px;
    }

    .slot-symbol {
        height: 50px;
        font-size: 1.5rem;
    }
}
