.game-container {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: var(--spacing-2xl);
    background: var(--bg-primary);
}

.game-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(196, 30, 58, 0.2);
}

.game-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--ruby-primary), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 1.25rem;
}

.balance-label {
    color: var(--text-secondary);
}

.balance-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.currency {
    color: var(--text-muted);
    font-size: 1rem;
}

.roulette-game,
.slots-game,
.blackjack-game {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.roulette-wheel-container {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.roulette-wheel {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border: 8px solid var(--ruby-primary);
    box-shadow: 0 0 40px var(--ruby-glow), inset 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-wheel.spinning {
    animation: wheelSpin 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

@keyframes wheelSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(1800deg);
    }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--ruby-primary), var(--ruby-dark));
    border-radius: 50%;
    border: 4px solid var(--gold-primary);
    box-shadow: 0 0 20px var(--ruby-glow);
}

.wheel-ball {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.winning-number {
    margin-top: var(--spacing-lg);
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--gold-primary);
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.betting-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(196, 30, 58, 0.2);
}

.bet-controls {
    margin-bottom: var(--spacing-lg);
}

.chip-selector {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.chip {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--ruby-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.chip::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 2px dashed var(--ruby-primary);
    opacity: 0.3;
}

.chip:hover,
.chip.active {
    border-color: var(--gold-primary);
    background: linear-gradient(135deg, var(--ruby-primary), var(--ruby-dark));
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--ruby-glow);
}

.current-bet {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.current-bet strong {
    color: var(--gold-primary);
    font-size: 1.5rem;
}

.betting-board {
    margin-bottom: var(--spacing-lg);
}

.number-grid {
    margin-bottom: var(--spacing-md);
}

.number-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: center;
}

.bet-number {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    background: var(--bg-tertiary);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.bet-number.red {
    background: linear-gradient(135deg, #8B1538, #C41E3A);
}

.bet-number.black {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.bet-number.green {
    background: linear-gradient(135deg, #047857, #059669);
    width: 100%;
}

.bet-number:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--ruby-glow);
    border-color: var(--gold-primary);
}

.bet-number.has-bet::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-primary);
}

.outside-bets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-sm);
}

.bet-option {
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border: 2px solid rgba(196, 30, 58, 0.3);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bet-option:hover {
    background: var(--ruby-primary);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.bet-option.has-bet {
    background: linear-gradient(135deg, var(--ruby-primary), var(--ruby-dark));
    border-color: var(--gold-primary);
}

.game-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.action-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--ruby-primary), var(--ruby-dark));
    color: white;
    box-shadow: 0 4px 20px var(--ruby-glow);
}

.action-btn.primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px var(--ruby-glow);
}

.action-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--ruby-primary);
}

.action-btn.secondary:hover:not(:disabled) {
    background: var(--ruby-primary);
    border-color: var(--gold-primary);
}

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

.game-info {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(196, 30, 58, 0.2);
}

.game-info h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--ruby-primary);
}

.recent-numbers {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.recent-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: numberPop 0.3s ease-out;
}

@keyframes numberPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.slots-machine {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    border: 2px solid var(--ruby-primary);
    box-shadow: 0 0 40px var(--ruby-glow);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.slots-display {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: 3px solid var(--gold-primary);
    position: relative;
    overflow: hidden;
}

.win-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-primary);
    transform: translateY(-50%);
    opacity: 0.3;
}

.reel {
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 2px solid var(--ruby-primary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.1s ease;
}

.reel.spinning {
    animation: reelSpin 0.5s ease-in-out;
}

@keyframes reelSpin {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.symbol {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
}

.bet-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(196, 30, 58, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.bet-amount {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.bet-amount label {
    color: var(--text-secondary);
    font-weight: 600;
}

.bet-amount input {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--ruby-primary);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    width: 120px;
}

.bet-amount input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--ruby-glow);
}

.current-win {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.current-win strong {
    color: var(--gold-primary);
    font-size: 1.3rem;
}

.paytable {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
}

.paytable h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--ruby-primary);
    text-align: center;
}

.paytable-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.paytable-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(196, 30, 58, 0.2);
}

.combo {
    font-size: 1.5rem;
}

.payout {
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 1.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid rgba(196, 30, 58, 0.2);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.dealer-section,
.player-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(196, 30, 58, 0.2);
}

.dealer-section h3,
.player-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--ruby-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score {
    color: var(--gold-primary);
    font-size: 1.75rem;
}

.card-hand {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    min-height: 140px;
}

.card {
    width: 90px;
    height: 130px;
    background: white;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: cardDeal 0.3s ease-out;
}

@keyframes cardDeal {
    from {
        transform: translateY(-100px) rotate(-10deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

.card.red {
    color: var(--ruby-primary);
}

.card.black {
    color: #000;
}

.card.back {
    background: linear-gradient(135deg, var(--ruby-primary), var(--ruby-dark));
    color: var(--gold-primary);
}

.card .value {
    font-size: 2rem;
}

.card .suit {
    font-size: 1.5rem;
    margin-top: -0.5rem;
}

.game-message {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    padding: var(--spacing-lg);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
    border: 2px solid var(--ruby-primary);
    color: var(--gold-primary);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-content ul {
    list-style: none;
    padding: 0;
}

.rules-content li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--ruby-primary);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .roulette-wheel {
        width: 250px;
        height: 250px;
    }

    .wheel-center {
        width: 80px;
        height: 80px;
    }

    .number-row {
        flex-wrap: wrap;
    }

    .bet-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .outside-bets {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .reel {
        width: 90px;
        height: 150px;
    }

    .symbol {
        font-size: 2.5rem;
        height: 50px;
    }

    .bet-section {
        flex-direction: column;
        text-align: center;
    }

    .card {
        width: 70px;
        height: 100px;
        font-size: 1.5rem;
    }

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

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