/* Minimal Wheel CSS - No 3D transforms, no layout forcing */

.wheel-game {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
}

/* Wheel Display */
.wheel-display {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
}

.wheel-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* No transitions - JavaScript handles all animation */
}

.wheel-arrow {
    position: absolute;
    top: 50%;
    left: -20px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    z-index: 10;
}

/* Game Status */
.game-status {
    margin-bottom: 25px;
}

.status-text {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* Game Controls */
.game-controls {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.control-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Table-based control items - no more flexbox shifting */
.control-item {
    text-align: center;
    vertical-align: middle;
    padding: 10px;
}

.control-label {
    font-size: 11px;
    color: #ccc;
    font-weight: bold;
    text-transform: uppercase;
}

.control-value {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
}

/* Make win amount green and bigger like slots */
#last-win {
    color: #00ff00 !important;
    font-size: 2em !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.bet-controls {
    flex-direction: row;
    gap: 5px;
}

.bet-btn {
    background: #444;
    border: 1px solid #666;
    color: #fff;
    font-size: 12px;
    width: 30px;
    height: 25px;
    border-radius: 3px;
    cursor: pointer;
}

.bet-btn:hover {
    background: #555;
}

.spin-btn {
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    border: 2px solid #cc4125;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.spin-btn:hover {
    background: linear-gradient(145deg, #ff7b7b, #fe6a62);
    transform: translateY(-1px);
}

.spin-btn:active {
    transform: translateY(1px);
}

.spin-btn:disabled {
    background: #666 !important;
    cursor: not-allowed;
    transform: none;
    opacity: 1 !important; /* Make sure disabled button stays visible */
    display: inline-block !important; /* Prevent hiding */
}

.faucet-row {
    margin-top: 15px;
}

.faucet-btn {
    background: linear-gradient(145deg, #45b7aa, #3a9691);
    border: 1px solid #2f7a73;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    width: 200px;
}

.faucet-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.faucet-btn:not(:disabled):hover {
    background: linear-gradient(145deg, #55c7ba, #4aa29a);
}

/* Result Effects */
.wheel-image.result-win {
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.6));
}

.wheel-image.result-lose {
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.4));
}

.wheel-image.result-jackpot {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    animation: jackpot-glow 1s ease-in-out infinite alternate;
}

@keyframes jackpot-glow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
    100% { filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1)); }
}

/* Spinning dots animation */
.spinning-dots {
    display: inline-block;
    min-width: 3em; /* Fixed width to prevent layout shifts */
    text-align: center;
}

.spinning-dots span {
    display: inline-block;
    font-size: 1.2em; /* Slightly larger dots */
    opacity: 0.7;
    animation: dot-ripple 1.4s infinite ease-in-out;
}

.spinning-dots span:nth-child(1) {
    animation-delay: 0s;
}

.spinning-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.spinning-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-ripple {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Wheel display cell - simple styling */
.wheel-display-cell {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px;
    text-align: center;
    vertical-align: top;
}

/* Wheel controls cell - integrate with main table layout */
.wheel-controls-cell {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 15px;
    vertical-align: top;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 580px) {
    .wheel-game {
        margin: 10px;
        padding: 15px;
    }
    
    .wheel-display {
        width: 250px;
        height: 250px;
    }
    
    .control-row {
        gap: 15px;
    }
    
    .spin-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
