.roulette-area {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

.roulette-wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

#roulette-canvas {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,0,0,0.3), 0 0 40px rgba(0,0,0,0.5);
}

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

.last-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #111;
    border: 3px solid #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    z-index: 1;
    font-family: 'Lucida Console', monospace;
}

.betting-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bet-info {
    background: #111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 10px;
}

.current-bet-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.bet-amount {
    color: #ffd700;
    font-weight: bold;
    font-family: 'Lucida Console', monospace;
}

.bet-chips {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.chip-label {
    color: #888;
    font-size: 11px;
    margin-right: 4px;
}

.chip {
    padding: 4px 10px;
    background: linear-gradient(180deg, #333 0%, #222 100%);
    border: 2px solid #555;
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Lucida Console', monospace;
    transition: all 0.15s;
}

.chip:hover {
    background: linear-gradient(180deg, #444 0%, #333 100%);
    border-color: #777;
}

.chip.selected {
    background: linear-gradient(180deg, #ffd700 0%, #daa520 100%);
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.bet-type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}

.bet-btn {
    padding: 8px 4px;
    border: 1px solid #444;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    text-align: center;
    transition: all 0.15s;
}

.bet-btn:hover {
    filter: brightness(1.3);
    transform: scale(1.02);
}

.bet-btn:active {
    transform: scale(0.98);
}

.bet-btn.spinning {
    pointer-events: none;
    opacity: 0.5;
}

.red-bet {
    background: linear-gradient(180deg, #cc0000 0%, #880000 100%);
}

.black-bet {
    background: linear-gradient(180deg, #333 0%, #111 100%);
}

.green-bet {
    background: linear-gradient(180deg, #008800 0%, #004400 100%);
}

.odd-bet, .even-bet {
    background: linear-gradient(180deg, #444 0%, #222 100%);
}

.low-bet, .high-bet {
    background: linear-gradient(180deg, #555 0%, #333 100%);
}

.third1-bet {
    background: linear-gradient(180deg, #8B0000 0%, #5B0000 100%);
}

.third2-bet {
    background: linear-gradient(180deg, #333 0%, #111 100%);
}

.third3-bet {
    background: linear-gradient(180deg, #8B0000 0%, #5B0000 100%);
}

.number-grid {
    border: 1px solid #333;
    border-radius: 3px;
    overflow: hidden;
}

.number-grid-row {
    display: flex;
}

.num-cell {
    flex: 1;
    padding: 5px 2px;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    border: 1px solid #333;
    transition: all 0.15s;
    min-width: 0;
}

.num-cell:hover {
    filter: brightness(1.4);
    transform: scale(1.1);
    z-index: 1;
}

.num-cell.red {
    background: #cc0000;
}

.num-cell:not(.red):not(.green) {
    background: #222;
}

.num-cell.green {
    background: #008800;
}

.num-cell.winning {
    animation: winFlash 0.5s ease-in-out 3;
    box-shadow: 0 0 15px rgba(255,215,0,0.8);
    z-index: 2;
}

@keyframes winFlash {
    0%, 100% { background: #ffd700; color: #000; }
    50% { background: #fff; color: #000; }
}

.bet-btn.won {
    animation: betWon 0.5s ease-in-out;
}

@keyframes betWon {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 20px rgba(68,255,68,0.8); border-color: #44ff44; }
}

.bet-btn.lost {
    animation: betLost 0.5s ease-in-out;
}

@keyframes betLost {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 20px rgba(255,0,0,0.8); border-color: #ff0000; }
}

.roulette-area.spinning .bet-btn,
.roulette-area.spinning .chip,
.roulette-area.spinning .num-cell {
    pointer-events: none;
    opacity: 0.6;
}

.win-amount-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Lucida Console', monospace;
    z-index: 50002;
    animation: popupAnim 2s ease-out forwards;
    pointer-events: none;
}

.win-amount-popup.win {
    background: rgba(0, 80, 0, 0.9);
    color: #44ff44;
    border: 2px solid #44ff44;
    text-shadow: 0 0 10px rgba(68,255,68,0.5);
}

.win-amount-popup.lose {
    background: rgba(80, 0, 0, 0.9);
    color: #ff4444;
    border: 2px solid #ff4444;
    text-shadow: 0 0 10px rgba(255,0,0,0.5);
}

@keyframes popupAnim {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    40% {
        transform: translate(-50%, -50%) scale(1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80%) scale(0.8);
    }
}
