* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.wheel-selector {
    margin-bottom: 40px;
}

.wheel-types {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wheel-type-btn {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 20px;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    backdrop-filter: blur(10px);
}

.wheel-type-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.wheel-type-btn.active {
    background: rgba(255,255,255,0.3);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.wheel-icon {
    font-size: 2rem;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.wheel-icon.bronze { background: linear-gradient(135deg, #cd7f32, #8b4513); }
.wheel-icon.silver { background: linear-gradient(135deg, #c0c0c0, #808080); }
.wheel-icon.gold { background: linear-gradient(135deg, #ffd700, #ffa500); }

.wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.wheel-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    border: 8px solid #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
    background: conic-gradient(
        #ff6b6b 0deg 45deg,
        #4ecdc4 45deg 90deg,
        #45b7d1 90deg 135deg,
        #96ceb4 135deg 180deg,
        #ffeaa7 180deg 225deg,
        #dda0dd 225deg 270deg,
        #98d8c8 270deg 315deg,
        #f7dc6f 315deg 360deg
    );
}

.wheel::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: conic-gradient(
        #ff5252 0deg 45deg,
        #26a69a 45deg 90deg,
        #42a5f5 90deg 135deg,
        #66bb6a 135deg 180deg,
        #ffee58 180deg 225deg,
        #ab47bc 225deg 270deg,
        #26c6da 270deg 315deg,
        #ffa726 315deg 360deg
    );
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 50%;
    border: 4px solid #fff;
    z-index: 10;
}

.pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #fff;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.spin-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);
}

.spin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(238, 90, 36, 0.4);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.spin-btn:hover .btn-glow {
    left: 100%;
}

.result-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.result-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.result-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #27ae60;
}

.result-text {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #333;
}

.close-result {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.close-result:hover {
    background: #2980b9;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    .wheel-types {
        gap: 10px;
    }
    
    .wheel-type-btn {
        min-width: 100px;
        padding: 15px;
    }
    
    .stats {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .wheel {
        width: 200px;
        height: 200px;
    }
    
    .spin-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .result-card {
        padding: 30px 20px;
    }
}