/* Game Selection Tabs */
.game-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
}

.game-tab:hover {
    border-color: #90EE90;
    transform: scale(1.05);
}

.game-tab.active {
    border-color: #90EE90;
    background: rgba(144, 238, 144, 0.2);
}

.game-content {
    display: none;
}

.game-content.active {
    display: block;
}

/* Coin Flip Styles */
.coin-choice {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.coin-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.coin-option:hover {
    border-color: #90EE90;
    transform: scale(1.05);
}

.coin-option.selected {
    border-color: #90EE90;
    background: rgba(144, 238, 144, 0.2);
}

.coin-emoji {
    display: none;
}

/* Coinflip Bet Buttons - Match Place Bet Button Style */
.coinflip-bet-buttons {
    display: flex;
    gap: 2%;
    justify-content: center;
    margin-top: 20px;
}

.coinflip-bet-btn {
    background: #000000 !important;
    border: 2px solid #90EE90 !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(144, 238, 144, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    font-size: 16px !important;
    padding: 16px 25px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    cursor: pointer;
    text-align: center;
}

.coinflip-bet-btn:hover {
    background: #1a1a1a !important;
    box-shadow: 0 0 25px rgba(144, 238, 144, 0.8), 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(-2px) !important;
    border-color: #7CFC00 !important;
}

.coinflip-bet-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.3), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.coinflip-bet-btn.confirming {
    background: linear-gradient(45deg, #6c757d, #868e96) !important;
    border-color: #6c757d !important;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.5), 0 2px 8px rgba(108, 117, 125, 0.3) !important;
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.coinflip-bet-btn.confirming:hover {
    background: linear-gradient(45deg, #6c757d, #868e96) !important;
    transform: none !important;
    box-shadow: 0 0 10px rgba(108, 117, 125, 0.5), 0 2px 8px rgba(108, 117, 125, 0.3) !important;
}

/* Dice Styles */
.dice-choice {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.dice-choice.range-grid {
    grid-template-columns: repeat(2, 1fr);
}

.dice-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dice-option:hover {
    border-color: #90EE90;
    transform: scale(1.05);
}

.dice-option.selected {
    border-color: #90EE90;
    background: rgba(144, 238, 144, 0.2);
}

.dice-emoji {
    font-size: 32px;
    margin-bottom: 5px;
}

.dice-bet-type {
    margin-bottom: 20px;
}

.bet-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.bet-type-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.bet-type-tab.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #90EE90;
}

/* Pro Mode Styles */
.pro-mode-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.probability-control {
    margin-bottom: 20px;
}

.probability-slider-container {
    position: relative;
    margin: 20px 0;
}

.probability-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #000000;
    outline: none;
    border: 1px solid white;
    -webkit-appearance: none;
    appearance: none;
}

.probability-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.probability-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.probability-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.probability-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.multiplier-value {
    font-size: 18px;
    color: white;
}

.potential-win-value {
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.probability-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.probability-preset-btn {
    background: #000000;
    border: 1px solid white;
    padding: 10px 8px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.probability-preset-btn:hover {
    background: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Responsive design for games */
@media (max-width: 768px) {
    .coin-choice {
        flex-direction: column;
        align-items: center;
    }

    .coinflip-bet-buttons {
        flex-direction: row;
        gap: 2%;
        justify-content: center;
    }

    .coinflip-bet-btn {
        font-size: 14px !important;
        padding: 12px 16px !important;
        flex: 1;
        max-width: 48%;
    }

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

    .dice-choice.range-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-tabs {
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .game-tab {
        font-size: 14px;
        padding: 12px 15px;
        min-width: auto;
        flex: 1;
        max-width: 32%;
    }

    .bet-type-tabs {
        flex-wrap: wrap;
    }

    .probability-display {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .probability-presets {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .probability-preset-btn {
        font-size: 11px;
        padding: 8px 4px;
    }
}
