.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 400px);
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    color: var(--color-ocean-dark);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--color-gray-light);
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    color: var(--color-gray);
    margin-right: 0.5rem;
}

.stat-value {
    color: var(--color-ocean-dark);
    font-weight: bold;
    font-size: 1.25rem;
}

.game-board {
    background: linear-gradient(135deg, var(--color-ocean-blue) 0%, var(--color-harbor-teal) 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.game-message {
    text-align: center;
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--color-harbor-teal);
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-control:hover {
    background: var(--color-ocean-blue);
    transform: scale(1.1);
}

.bet-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-ocean-dark);
    min-width: 100px;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-info {
    background: var(--color-gray-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.game-info h3 {
    color: var(--color-ocean-dark);
    margin-bottom: 0.5rem;
}

.poker-table {
    display: grid;
    gap: 2rem;
}

.dealer-section, .player-section {
    text-align: center;
}

.dealer-section h3, .player-section h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-holder {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    min-height: 140px;
    flex-wrap: wrap;
}

.card {
    width: 80px;
    height: 120px;
    background: var(--color-white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: var(--shadow-md);
    animation: cardDeal 0.5s ease;
    position: relative;
}

.card.red {
    color: #dc3545;
}

.card.black {
    color: #000;
}

.card-back {
    background: linear-gradient(135deg, var(--color-ocean-dark) 0%, var(--color-ocean-blue) 100%);
    color: var(--color-anchor-gold);
}

.card-rank {
    font-size: 1.5rem;
}

.card-suit {
    font-size: 2.5rem;
}

.hand-result {
    margin-top: 1rem;
    color: var(--color-anchor-gold);
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 30px;
}

.slots-machine {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.reel {
    width: 120px;
    height: 300px;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.reel-strip {
    position: absolute;
    width: 100%;
    will-change: transform;
}

.reel-strip.spinning {
    transition: none;
}

.reel-symbol {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 2px solid var(--color-gray-light);
}

.reel-window {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    height: 100px;
    border: 3px solid var(--color-anchor-gold);
    pointer-events: none;
    z-index: 10;
}

.roulette-wheel {
    width: 350px;
    height: 350px;
    margin: 0 auto 2rem;
    position: relative;
}

.wheel-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 4.5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    overflow: visible;
}

.wheel-segment {
    position: absolute;
    width: 160px;
    height: 175px;
    top: 0;
    left: 50%;
    margin-left: -80px;
    transform-origin: 50% 100%;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    display: flex;
    justify-content: center;
    padding-top: 15px;
    box-sizing: border-box;
}

.wheel-number {
    color: var(--color-white);
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    z-index: 5;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--color-anchor-gold);
    z-index: 20;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.betting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.bet-option {
    background: var(--color-white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
}

.bet-option:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.bet-option.selected {
    border-color: var(--color-anchor-gold);
    background: var(--color-sand);
}

.bet-option.red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: var(--color-white);
}

.bet-option.black {
    background: linear-gradient(135deg, #2d3436 0%, #000 100%);
    color: var(--color-white);
}

.bet-number {
    font-size: 1.5rem;
    font-weight: bold;
}

.bet-label {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

@keyframes cardDeal {
    from {
        opacity: 0;
        transform: translateY(-20px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateY(0);
    }
}

@keyframes spin {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.win-animation {
    animation: pulse 0.5s ease infinite;
}

@media (max-width: 768px) {
    .game-board {
        padding: 2rem 1rem;
    }

    .slots-machine {
        flex-wrap: wrap;
    }

    .reel {
        width: 100px;
        height: 250px;
    }

    .roulette-wheel {
        width: 280px;
        height: 280px;
    }

    .betting-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }

    .card {
        width: 60px;
        height: 90px;
        font-size: 1.5rem;
    }
}
