.game-play-section {
    padding: 40px 0 80px;
    background: var(--color-bg-main);
}

.game-page-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    text-align: center;
}

.game-page-type {
    text-align: center;
    font-size: 13px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.game-widget {
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 32px;
    background: linear-gradient(160deg, var(--color-bg-card), var(--game-bg, var(--color-bg-deep)));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 60px var(--game-glow, rgba(99, 102, 241, 0.1));
    position: relative;
    overflow: hidden;
}

.game-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--game-primary), var(--game-secondary), var(--game-accent));
}

.game-widget.flash-win {
    animation: flashWin 0.6s ease;
}

@keyframes flashWin {
    0%, 100% { box-shadow: 0 0 60px var(--game-glow); }
    50% { box-shadow: 0 0 100px var(--game-accent), 0 0 40px var(--game-primary); }
}

.game-hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.game-hud-stat {
    font-size: 14px;
    color: var(--color-text-muted);
}

.game-hud-stat i {
    color: var(--game-accent, var(--color-gold));
    margin-right: 6px;
}

.game-hud-stat strong {
    color: var(--color-text);
}

.game-message {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: right;
    flex: 1;
    min-width: 160px;
}

.game-message.msg-success { color: #34d399; }
.game-message.msg-warn { color: #fbbf24; }

.game-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: #0a0612;
    background: linear-gradient(135deg, var(--game-accent, var(--color-gold)), var(--game-primary, var(--color-gold-light)));
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px var(--game-glow);
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--game-glow);
}

.game-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slot-machine {
    position: relative;
    text-align: center;
}

.slot-glow {
    position: absolute;
    inset: 20%;
    background: radial-gradient(circle, var(--game-glow) 0%, transparent 70%);
    pointer-events: none;
}

.slot-reels {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.slot-reel {
    width: 100px;
    height: 80px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--game-primary);
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--game-glow);
}

.slot-reel.spinning {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 25px var(--game-primary);
}

.reel-strip {
    transition: none;
}

.slot-symbol {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--game-primary);
    text-shadow: 0 0 10px var(--game-glow);
}

.bj-table, .roulette-table, .bac-table, .dice-table, .poker-table, .tiles-table {
    text-align: center;
}

.bj-area {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.bj-area h4 {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.bj-cards {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 90px;
}

.bj-card {
    width: 60px;
    height: 84px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: dealCard 0.4s ease;
}

.bj-card.red { color: #dc2626; }

.bj-card.hidden-card {
    background: linear-gradient(135deg, var(--game-secondary), var(--game-primary));
    color: transparent;
}

.bj-card.hidden-card span {
    color: var(--color-text);
    font-size: 24px;
}

@keyframes dealCard {
    from { transform: translateY(-20px) rotate(-5deg); opacity: 0; }
    to { transform: translateY(0) rotate(0); opacity: 1; }
}

.bj-controls, .slot-controls, .roulette-bets, .bac-bets, .dice-bets, .tiles-bets, .poker-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.roulette-wheel-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1a1a2e, var(--game-primary), #1a1a2e, var(--game-secondary), #1a1a2e, var(--game-accent), #1a1a2e);
    border: 4px solid var(--game-accent);
    box-shadow: 0 0 40px var(--game-glow), inset 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.wheel-inner {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: var(--color-bg-deep);
    border: 2px solid var(--game-primary);
}

.roulette-ball {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    transition: transform 4s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: 50% 100px;
}

.roulette-result {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--game-primary);
    text-shadow: 0 0 20px var(--game-glow);
    margin-top: 16px;
}

.bet-btn {
    padding: 10px 18px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bet-btn:hover, .bet-btn.active {
    border-color: var(--game-primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 15px var(--game-glow);
}

.bet-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.bet-color.red { background: #ef4444; }
.bet-color.black { background: #1a1a2e; border: 1px solid #444; }

.bac-hands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.bac-hand {
    padding: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.bac-hand h4 {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.bac-cards {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.bac-card {
    width: 50px;
    height: 70px;
    background: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #111;
    animation: dealCard 0.4s ease;
}

.bac-total {
    font-size: 12px;
    color: var(--game-accent);
}

.dice-area {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.die, .tile-die {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #fff, #e2e8f0);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--game-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px var(--game-glow);
    border: 2px solid var(--game-accent);
}

.die.rolling, .tile-die.rolling {
    animation: diceRoll 0.3s ease infinite;
}

@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.05); }
    75% { transform: rotate(-10deg) scale(0.95); }
}

.tiles-dice-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tile-die {
    width: 70px;
    height: 70px;
    font-size: 28px;
    background: linear-gradient(145deg, var(--game-secondary), var(--game-primary));
    color: #fff;
}

.poker-hand {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    min-height: 120px;
}

.poker-card {
    width: 70px;
    height: 100px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.poker-card.red { color: #dc2626; }
.poker-card:not(.red) { color: #111; }

.poker-card.held {
    transform: translateY(-12px);
    border-color: var(--game-accent);
    box-shadow: 0 8px 24px var(--game-glow);
}

.pc-rank { font-size: 20px; font-weight: 700; }
.pc-suit { font-size: 18px; }

.game-page-disclaimer {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-gold);
    border-radius: var(--radius-md);
}

.game-page-disclaimer h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-page-disclaimer h3 i {
    color: var(--color-gold);
}

.game-page-disclaimer p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 10px;
}

.game-page-disclaimer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .game-widget {
        padding: 20px 16px;
    }

    .slot-reel {
        width: 80px;
    }

    .slot-symbol {
        font-size: 11px;
    }

    .bac-hands {
        grid-template-columns: 1fr;
    }
}
