.roulette-wheel-container {
    text-align: center;
    margin-bottom: 40px;
}

.roulette-wheel {
    width: 350px;
    height: 350px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #2d0a0a 40%, #7c2d12 60%, #dc2626 80%, #7c2d12 100%);
    border: 15px solid var(--gold);
    position: relative;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.7),
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 0 0 3px #8b4513;
}

.roulette-wheel::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #dc2626 0deg 9.73deg,
        #1f2937 9.73deg 19.46deg,
        #dc2626 19.46deg 29.19deg,
        #1f2937 29.19deg 38.92deg,
        #dc2626 38.92deg 48.65deg,
        #1f2937 48.65deg 58.38deg,
        #dc2626 58.38deg 68.11deg,
        #1f2937 68.11deg 77.84deg,
        #dc2626 77.84deg 87.57deg,
        #1f2937 87.57deg 97.30deg,
        #dc2626 97.30deg 107.03deg,
        #1f2937 107.03deg 116.76deg,
        #dc2626 116.76deg 126.49deg,
        #1f2937 126.49deg 136.22deg,
        #dc2626 136.22deg 145.95deg,
        #1f2937 145.95deg 155.68deg,
        #dc2626 155.68deg 165.41deg,
        #1f2937 165.41deg 175.14deg,
        #dc2626 175.14deg 184.87deg,
        #1f2937 184.87deg 194.60deg,
        #dc2626 194.60deg 204.33deg,
        #1f2937 204.33deg 214.06deg,
        #dc2626 214.06deg 223.79deg,
        #1f2937 223.79deg 233.52deg,
        #dc2626 233.52deg 243.25deg,
        #1f2937 243.25deg 252.98deg,
        #dc2626 252.98deg 262.71deg,
        #1f2937 262.71deg 272.44deg,
        #dc2626 272.44deg 282.17deg,
        #1f2937 282.17deg 291.90deg,
        #dc2626 291.90deg 301.63deg,
        #1f2937 301.63deg 311.36deg,
        #dc2626 311.36deg 321.09deg,
        #1f2937 321.09deg 330.82deg,
        #dc2626 330.82deg 340.55deg,
        #1f2937 340.55deg 350.28deg,
        #dc2626 350.28deg 360deg
    );
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
}

.roulette-wheel::after {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

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

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

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 50%;
    border: 6px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.8),
        inset 0 0 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.wheel-center::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.2);
}

.ball {
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0);
    border-radius: 50%;
    box-shadow:
        0 0 15px rgba(255, 255, 255, 0.9),
        0 3px 8px rgba(0, 0, 0, 0.5),
        inset -2px -2px 4px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
}

.roulette-wheel.spinning .ball {
    animation: ballSpin 3s cubic-bezier(0.17, 0.67, 0.3, 0.96);
}

@keyframes ballSpin {
    0% {
        transform: translateX(-50%) rotate(0deg) translateX(95px);
    }
    100% {
        transform: translateX(-50%) rotate(-2160deg) translateX(95px);
    }
}

.winning-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.betting-area {
    margin: 40px 0;
}

.betting-area h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.chip-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.chip {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    background: var(--dark-card);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.chip:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.5);
}

.chip.active {
    background: var(--gold);
    color: var(--dark-bg);
    border-color: var(--text-primary);
}

.betting-grid {
    background: var(--dark-card);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

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

.number {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-size: 16px;
}

.number.red {
    background: #dc2626;
    color: white;
}

.number.black {
    background: #1f2937;
    color: white;
}

.number.zero {
    background: #16a34a;
    color: white;
    grid-column: span 2;
}

.number:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.number.has-bet::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    border: 2px solid white;
}

.number.winning {
    animation: numberWin 1s ease;
}

@keyframes numberWin {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); box-shadow: 0 0 30px var(--gold); }
}

.outside-bets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.outside-bet {
    padding: 15px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.outside-bet:hover {
    border-color: var(--primary-light);
    background: var(--dark-hover);
}

.outside-bet.has-bet {
    border-color: var(--gold);
    background: rgba(251, 191, 36, 0.1);
}

.game-message {
    margin-top: 30px;
    padding: 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-message.win {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    animation: messageWin 0.5s ease;
}

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

.game-message.lose {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.game-rules {
    background: var(--dark-card);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.game-rules h2,
.game-rules h3 {
    color: var(--primary-light);
    margin-bottom: 15px;
}

.game-rules h3 {
    margin-top: 20px;
}

.game-rules ol,
.game-rules ul {
    margin: 20px 0;
    padding-left: 30px;
    color: var(--text-secondary);
}

.game-rules li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.game-rules .disclaimer {
    margin-top: 20px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: 5px;
    color: var(--text-secondary);
}

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

    .roulette-wheel::before {
        inset: 15px;
    }

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

    .ball {
        width: 14px;
        height: 14px;
        top: -75px;
    }

    @keyframes ballSpin {
        0% {
            transform: translateX(-50%) rotate(0deg) translateX(75px);
        }
        100% {
            transform: translateX(-50%) rotate(-2160deg) translateX(75px);
        }
    }

    .chip-selector {
        gap: 5px;
    }

    .chip {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }

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

    .number {
        font-size: 14px;
    }

    .outside-bets {
        grid-template-columns: 1fr;
    }
}
