/* Game Container Styles */
.game-container {
    min-height: 100vh;
    padding: 100px 24px 60px;
    background: var(--bg-light);
}

.game-header {
    text-align: center;
    margin-bottom: 40px;
}

.game-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.game-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* Game Stats Bar */
.game-stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Game Board */
.game-board {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 40px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Betting Controls */
.betting-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.bet-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: var(--secondary-color);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.bet-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.bet-btn:active {
    transform: translateY(0);
}

/* Game Controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.game-btn {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
}

.game-btn:active:not(:disabled) {
    transform: translateY(0);
}

.game-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.game-btn.secondary {
    background: var(--text-light);
}

.game-btn.secondary:hover:not(:disabled) {
    background: var(--text-dark);
}

/* Payout Table */
.payout-table {
    max-width: 600px;
    margin: 40px auto;
    padding: 32px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.payout-table h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.payout-table table {
    width: 100%;
    border-collapse: collapse;
}

.payout-table tr {
    border-bottom: 1px solid var(--border-color);
}

.payout-table tr:last-child {
    border-bottom: none;
}

.payout-table td {
    padding: 12px 16px;
    font-size: 16px;
}

.payout-table td:first-child {
    color: var(--text-dark);
    font-weight: 600;
}

.payout-table td:last-child {
    text-align: right;
    color: var(--primary-color);
    font-weight: 700;
}

.back-link {
    text-align: center;
    margin-top: 40px;
}

/* POKER STYLES */
.poker-board {
    text-align: center;
}

.poker-hand {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.card-placeholder {
    width: 100px;
    height: 140px;
    perspective: 1000px;
}

.card {
    width: 100%;
    height: 100%;
    background: white;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card.selected {
    border-color: var(--primary-color);
    transform: translateY(-12px);
}

.card-rank {
    font-size: 24px;
    font-weight: 700;
    position: absolute;
    top: 8px;
    left: 8px;
}

.card-suit {
    font-size: 56px;
}

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

.card.black {
    color: var(--text-dark);
}

.card-back {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border: 3px solid var(--secondary-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: var(--shadow);
}

.hand-result {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    min-height: 32px;
    margin: 24px 0;
}

/* SLOTS STYLES */
.slots-board {
    text-align: center;
}

.slots-machine {
    position: relative;
    max-width: 600px;
    margin: 32px auto;
    padding: 40px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.slots-reels {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

.reel {
    width: 120px;
    height: 140px;
    background: white;
    border: 4px solid var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.reel-symbol {
    font-size: 72px;
    animation: reelStop 0.3s ease;
}

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

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

.reel.spinning .reel-symbol {
    animation: reelSpin 0.1s linear infinite;
}

.win-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.win-line.active {
    opacity: 1;
    box-shadow: 0 0 20px var(--accent-color);
}

.slots-result {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    min-height: 32px;
    margin: 24px 0;
}

.bet-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 12px 24px;
    background: var(--bg-light);
    border-radius: 8px;
}

.spin-btn {
    font-size: 24px;
    padding: 20px 60px;
    animation: pulse 2s ease-in-out infinite;
}

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

.spin-btn:disabled {
    animation: none;
}

/* ROULETTE STYLES */
.roulette-board {
    text-align: center;
}

.roulette-wheel-container {
    position: relative;
    max-width: 450px;
    margin: 32px auto;
}

.roulette-wheel-outer {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #2a2a2a;
    border: 16px solid #8B4513;
    box-shadow:
        0 0 0 4px #DAA520,
        0 0 0 8px #8B4513,
        var(--shadow-lg),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    overflow: hidden;
}

.roulette-wheel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from 0deg, #333 0%, #1a1a1a 50%, #333 100%);
    border-radius: 50%;
    opacity: 0.3;
}

.wheel-segment {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 50%;
    transform-origin: bottom center;
    clip-path: polygon(-50% 0%, 50% 0%, 50% 100%, -50% 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 12px;
    box-sizing: border-box;
}

.wheel-segment.red {
    background: linear-gradient(180deg, #c41e3a 0%, #8b0000 100%);
}

.wheel-segment.black {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
}

.wheel-segment.green {
    background: linear-gradient(180deg, #22bb33 0%, #0d5d16 100%);
}

.wheel-segment-number {
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    transform: rotate(180deg);
    margin-top: 8px;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #DAA520, #8B4513);
    border: 6px solid #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow:
        0 0 20px rgba(218, 165, 32, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.wheel-center::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFD700, #DAA520);
    border: 3px solid #B8860B;
}

.winning-number {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    color: #2a2a2a;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.wheel-pointer {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid #FFD700;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    z-index: 5;
}

.wheel-pointer::before {
    content: '';
    position: absolute;
    top: -38px;
    left: -12px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 22px solid #FFD700;
}

.roulette-wheel.spinning {
    animation: none;
}

.roulette-wheel.spin-animation {
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-result {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    min-height: 32px;
    margin: 24px 0;
}

/* Chip Selector */
.chip-selector {
    margin: 32px 0;
}

.chip-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.chips {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-white);
    border: 4px solid var(--primary-dark);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chip:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
}

.chip.active {
    background: var(--accent-color);
    border-color: var(--accent-dark);
    transform: scale(1.15);
}

/* Betting Grid */
.betting-grid {
    margin: 32px 0;
}

.betting-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.bet-option {
    padding: 20px;
    background: var(--bg-light);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

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

.bet-option.red {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border-color: #cc0000;
}

.bet-option.black {
    background: linear-gradient(135deg, #555555 0%, #000000 100%);
    color: white;
    border-color: #000000;
}

.bet-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.bet-chip-count {
    display: block;
    font-size: 20px;
    color: var(--accent-color);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
}

.number-btn {
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid white;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.number-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
    z-index: 1;
}

.number-btn.red {
    background: #ff4444;
    color: white;
}

.number-btn.black {
    background: #333333;
    color: white;
}

.number-btn.green {
    background: #22bb33;
    color: white;
    grid-column: 1 / -1;
}

.number-btn.has-bet {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-color);
}

.number-btn.has-bet::after {
    content: attr(data-bet-count);
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        padding: 80px 16px 40px;
    }

    .game-title {
        font-size: 36px;
    }

    .game-stats-bar {
        flex-direction: column;
        gap: 16px;
    }

    .game-board {
        padding: 24px;
    }

    .poker-hand {
        gap: 8px;
    }

    .card-placeholder {
        width: 60px;
        height: 84px;
    }

    .card-suit {
        font-size: 32px;
    }

    .card-rank {
        font-size: 16px;
    }

    .slots-machine {
        padding: 24px;
    }

    .slots-reels {
        gap: 12px;
    }

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

    .reel-symbol {
        font-size: 48px;
    }

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

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

    .winning-number {
        font-size: 14px;
    }

    .wheel-segment-number {
        font-size: 9px;
    }

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

    .number-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .payout-table {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 28px;
    }

    .stat-value {
        font-size: 24px;
    }

    .game-btn {
        padding: 14px 32px;
        font-size: 16px;
    }

    .card-placeholder {
        width: 50px;
        height: 70px;
    }

    .card-suit {
        font-size: 24px;
    }

    .card-rank {
        font-size: 12px;
        top: 4px;
        left: 4px;
    }

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

    .reel-symbol {
        font-size: 40px;
    }

    .roulette-wheel-outer {
        width: 220px;
        height: 220px;
    }

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

    .winning-number {
        font-size: 12px;
    }

    .wheel-segment-number {
        font-size: 8px;
    }

    .number-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
