.play-game-wrap {
    background: linear-gradient(160deg, #0f1525 0%, #0a0e18 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: var(--sb-radius-lg);
    padding: 28px 24px 32px;
    box-shadow: var(--sb-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    position: relative;
}

.play-game-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.play-hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.play-hud-stat {
    font-family: var(--sb-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-gray-300);
}

.play-hud-stat strong {
    color: var(--sb-teal-light);
    font-size: 18px;
    margin-left: 6px;
}

.play-message {
    min-height: 24px;
    text-align: center;
    font-family: var(--sb-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-teal-light);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.play-message.is-flash {
    animation: msgFlash 0.5s ease;
}

@keyframes msgFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; transform: scale(1.02); }
}

.slot-machine {
    position: relative;
    z-index: 1;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.slot-machine::before {
    display: none;
}

.slot-cabinet {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1a1040 0%, #0f1528 40%, #0a0e18 100%);
    border: 2px solid rgba(245, 158, 11, 0.35);
    border-radius: 24px;
    padding: 0 0 28px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.slot-cabinet-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 120px;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.slot-cabinet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.25) 0%, rgba(20, 184, 166, 0.15) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.slot-cabinet-brand {
    font-family: var(--sb-font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--sb-white);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.slot-cabinet-brand i {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.slot-cabinet-lights {
    display: flex;
    gap: 8px;
}

.slot-cabinet-lights span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.8);
    animation: slotLight 1.2s ease-in-out infinite;
}

.slot-cabinet-lights span:nth-child(2) {
    animation-delay: 0.2s;
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.slot-cabinet-lights span:nth-child(3) {
    animation-delay: 0.4s;
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.8);
}

@keyframes slotLight {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.slot-hud {
    display: flex;
    gap: 12px;
    padding: 20px 24px 0;
    position: relative;
    z-index: 1;
}

.slot-hud-panel {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
}

.slot-hud-panel-accent {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.06);
}

.slot-hud-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--sb-gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.slot-hud-value {
    font-family: var(--sb-font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--sb-teal-light);
    line-height: 1;
}

.slot-hud-panel-accent .slot-hud-value {
    color: #fbbf24;
}

.slot-message {
    min-height: 22px;
    text-align: center;
    font-family: var(--sb-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--sb-gray-300);
    margin: 16px 24px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.slot-message.is-spin {
    color: var(--sb-teal-light);
}

.slot-message.is-win {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    animation: msgFlash 0.6s ease;
}

.slot-message.is-warn {
    color: var(--sb-rose);
}

.slot-window {
    margin: 0 24px 16px;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.4s ease;
}

.slot-window.is-win .slot-window-frame {
    box-shadow:
        0 0 30px rgba(251, 191, 36, 0.4),
        inset 0 0 40px rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.5);
}

.slot-window-frame {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #050810 0%, #0c1220 100%);
    border: 3px solid rgba(20, 184, 166, 0.35);
    border-radius: 16px;
    padding: 16px 14px;
    position: relative;
    box-shadow: inset 0 4px 24px rgba(0, 0, 0, 0.6);
}

.slot-reel-col {
    width: 108px;
    height: 108px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(180deg, #12182a 0%, #0a0e18 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.slot-reel-col.is-spinning {
    filter: blur(0.5px);
}

.slot-reel-col.is-spinning::after {
    opacity: 1;
}

.slot-reel-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
}

.slot-reel-strip {
    will-change: transform;
}

.slot-symbol {
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
}

.slot-symbol.sym-star {
    color: #fbbf24;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.5));
}

.slot-symbol.sym-gem {
    color: #22d3ee;
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.5));
}

.slot-symbol.sym-moon {
    color: #a78bfa;
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.5));
}

.slot-symbol.sym-sun {
    color: #fb923c;
    filter: drop-shadow(0 0 12px rgba(251, 146, 60, 0.5));
}

.slot-symbol.sym-bolt {
    color: #14b8a6;
    filter: drop-shadow(0 0 12px rgba(20, 184, 166, 0.5));
}

.slot-payline {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.6), transparent);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
    pointer-events: none;
    z-index: 3;
}

.slot-symbols-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 0 24px 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--sb-gray-500);
}

.slot-symbols-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slot-symbols-legend i {
    font-size: 14px;
}

.slot-controls {
    display: flex;
    justify-content: center;
    padding: 0 24px;
}

.slot-spin-btn {
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.slot-spin-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.slot-spin-btn-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #14b8a6, #f59e0b, #a78bfa, #14b8a6);
    animation: slotRingSpin 3s linear infinite;
    opacity: 0.85;
}

.slot-spin-btn:disabled .slot-spin-btn-ring {
    animation-play-state: paused;
}

@keyframes slotRingSpin {
    to { transform: rotate(360deg); }
}

.slot-spin-btn-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(145deg, #14b8a6 0%, #0d9488 100%);
    font-family: var(--sb-font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--sb-dark);
    box-shadow:
        0 8px 32px rgba(20, 184, 166, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slot-spin-btn:hover:not(:disabled) .slot-spin-btn-inner {
    transform: scale(1.04);
    box-shadow:
        0 12px 40px rgba(20, 184, 166, 0.55),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.slot-spin-btn:active:not(:disabled) .slot-spin-btn-inner {
    transform: scale(0.98);
}

.slot-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.play-btn {
    font-family: var(--sb-font-heading);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 32px;
    border: none;
    border-radius: var(--sb-radius);
    background: var(--sb-teal);
    color: var(--sb-dark);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.35);
}

.play-btn:hover:not(:disabled) {
    background: var(--sb-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(20, 184, 166, 0.45);
}

.play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.play-btn-secondary {
    background: transparent;
    color: var(--sb-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.play-btn-secondary:hover:not(:disabled) {
    border-color: var(--sb-teal);
    color: var(--sb-teal-light);
    box-shadow: none;
}

.bj-table {
    position: relative;
    z-index: 1;
}

.bj-cards-area {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 28px;
}

.bj-hand {
    text-align: center;
}

.bj-hand-label {
    font-family: var(--sb-font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--sb-gray-500);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bj-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 90px;
}

.bj-card {
    width: 62px;
    height: 88px;
    background: linear-gradient(145deg, #ffffff 0%, #e8ecf0 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--sb-font-heading);
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: cardDeal 0.35s ease;
}

.bj-card.is-red {
    color: #e11d48;
}

.bj-card.is-black {
    color: #1e293b;
}

.bj-card.is-hidden {
    background: linear-gradient(145deg, #1a2235 0%, #0f1525 100%);
    color: var(--sb-teal-light);
    font-size: 28px;
}

@keyframes cardDeal {
    from { transform: translateY(-20px) rotate(-5deg); opacity: 0; }
    to { transform: translateY(0) rotate(0); opacity: 1; }
}

.bj-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.roulette-game {
    position: relative;
    z-index: 1;
    text-align: center;
}

.roulette-wheel-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 28px;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--sb-gold, #f59e0b);
    box-shadow: 0 0 40px rgba(245, 158, 11, 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(
        #e11d48 0deg 10deg, #1e293b 10deg 20deg,
        #e11d48 20deg 30deg, #1e293b 30deg 40deg,
        #e11d48 40deg 50deg, #1e293b 50deg 60deg,
        #e11d48 60deg 70deg, #1e293b 70deg 80deg,
        #e11d48 80deg 90deg, #1e293b 90deg 100deg,
        #e11d48 100deg 110deg, #1e293b 110deg 120deg,
        #e11d48 120deg 130deg, #1e293b 130deg 140deg,
        #e11d48 140deg 150deg, #1e293b 150deg 160deg,
        #e11d48 160deg 170deg, #1e293b 170deg 180deg,
        #e11d48 180deg 190deg, #1e293b 190deg 200deg,
        #e11d48 200deg 210deg, #1e293b 210deg 220deg,
        #e11d48 220deg 230deg, #1e293b 230deg 240deg,
        #e11d48 240deg 250deg, #1e293b 250deg 260deg,
        #e11d48 260deg 270deg, #1e293b 270deg 280deg,
        #e11d48 280deg 290deg, #1e293b 290deg 300deg,
        #e11d48 300deg 310deg, #1e293b 310deg 320deg,
        #e11d48 320deg 330deg, #1e293b 330deg 340deg,
        #14b8a6 340deg 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(--sb-teal-light);
    filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.6));
    z-index: 2;
}

.roulette-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--sb-dark-soft);
    border: 2px solid var(--sb-gold, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--sb-gold, #f59e0b);
    z-index: 2;
}

.roulette-bets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.roulette-bet {
    font-family: var(--sb-font-heading);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--sb-radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--sb-gray-300);
    cursor: pointer;
    transition: all 0.2s ease;
}

.roulette-bet.is-active {
    border-color: var(--sb-teal);
    background: rgba(20, 184, 166, 0.15);
    color: var(--sb-teal-light);
}

.roulette-bet-b-red.is-active {
    border-color: #e11d48;
    background: rgba(225, 29, 72, 0.15);
    color: #fb7185;
}

.roulette-bet-b-black.is-active {
    border-color: #64748b;
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
}

.roulette-bet-b-teal.is-active {
    border-color: var(--sb-teal);
    background: rgba(20, 184, 166, 0.15);
    color: var(--sb-teal-light);
}

@media (max-width: 575.98px) {
    .slot-cabinet {
        border-radius: 18px;
    }

    .slot-cabinet-header {
        padding: 14px 16px;
    }

    .slot-cabinet-brand {
        font-size: 15px;
    }

    .slot-hud {
        padding: 16px 16px 0;
    }

    .slot-hud-value {
        font-size: 20px;
    }

    .slot-window {
        margin: 0 16px 12px;
    }

    .slot-window-frame {
        padding: 12px 10px;
        gap: 6px;
    }

    .slot-reel-col {
        width: 88px;
        height: 88px;
    }

    .slot-symbol {
        height: 88px;
        font-size: 34px;
    }

    .slot-spin-btn-inner {
        width: 130px;
        height: 130px;
        font-size: 14px;
    }

    .slot-symbols-legend {
        padding: 0 16px 16px;
        gap: 8px 12px;
    }

    .roulette-wheel-wrap {
        width: 220px;
        height: 220px;
    }

    .content-panel {
        padding: 28px 20px;
    }
}
