html {
    box-sizing: border-box;
    font-size: 16px;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #0d2e1c;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.roulette-wheel {
    position: relative;
    width: 90vw;
    max-width: 450px;
}

#wheelCanvas {
    width: 100%;
    height: auto;
}

.pointer {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid #ffd700;
    z-index: 10;
}

.game-info {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ffd700;
    width: 100%;
    max-width: 500px;
}

.betting-area {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.betting-table, .outside-bets {
    display: grid;
    gap: 4px;
    width: 100%;
}

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

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

.bet-option {
    padding: 10px 5px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid #2c3e50;
}

/* --- COLOR FIXES HERE --- */
.bet-option.number.red { background-color: #c0392b; }
.bet-option.number.black { background-color: #2c3e50; }
.bet-option.number.green { background-color: #27ae60; }
.bet-option.group { background-color: #2980b9; }

.bet-option:hover {
    transform: scale(1.1);
    z-index: 5;
    border-color: #f1c40f;
}

.chip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background-color: #f1c40f;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #333;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.highlight-winner {
    box-shadow: 0 0 20px 5px #f1c40f;
    transform: scale(1.1);
    border-color: #f1c40f !important;
}

/* Tablet and Desktop Styles */
@media (min-width: 768px) {
    .game-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }

    .roulette-wheel {
        width: 450px;
    }

    .game-info {
        width: auto;
        min-width: 300px;
    }
}
