* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 400px;
    width: 100%;
}

.wheel-container {
    position: relative;
    margin: 0 auto 40px;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 
        0 0 0 8px #ffd700,
        0 0 20px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.1);
}

#wheelCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #ffd700;
    border: 6px solid #ff6b6b;
    border-radius: 50%;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ff6b6b;
    font-size: 16px;
}

/* Чёткая стационарная стрелка на 12 часов, направленная ВНИЗ */
.fixed-pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pointer-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #ff0000;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
    animation: glow 1.5s ease-in-out infinite alternate;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn {
    padding: 18px 35px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn {
    background: linear-gradient(45deg, #ff6b6b, #ffd700);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    border: 3px solid white;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.7);
}

.start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.result {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Анимации */
@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.8));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(255, 0, 0, 1));
        transform: scale(1.1);
    }
}

/* Конфетти для выигрыша */
.confetti {
    position: fixed;
    width: 15px;
    height: 15px;
    opacity: 0;
    z-index: 1000;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Простые точки для невыигрышного результата */
.simple-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    z-index: 1000;
}

@keyframes dot-fall {
    0% {
        transform: translateY(-100vh) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
}

/* Подсветка выпавшего сектора для выигрыша */
.wheel.highlight {
    animation: highlight 0.5s ease-in-out 3;
}

@keyframes highlight {
    0%, 100% {
        box-shadow: 0 0 0 8px #ffd700, 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 0 12px #ff6b6b, 0 0 30px rgba(255, 107, 107, 0.8);
    }
}

/* Легкое мерцание для невыигрыша */
.wheel.light-glow {
    animation: light-glow 2s ease-in-out 1;
}

@keyframes light-glow {
    0%, 100% {
        box-shadow: 0 0 0 8px #ffd700, 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 0 10px #cccccc, 0 0 25px rgba(204, 204, 204, 0.6);
    }
}

/* Анимация вспышки для фейерверка */
@keyframes flash {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Дополнительные стили для усиленного фейерверка */
.firework {
    position: fixed;
    width: 20px;
    height: 20px;
    opacity: 0;
    z-index: 1000;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

@keyframes firework-explosion {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
}

/* Старые анимации вращения (оставлены для совместимости) */
@keyframes spin-fast {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-final {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Стили для разных типов результатов */
.result.win {
    background: rgba(106, 255, 106, 0.3);
    border: 2px solid rgba(76, 255, 76, 0.5);
    color: #ddffdd;
}

.result.normal {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}
.result.error {
    background: rgba(255, 0, 0, 0.3);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: #ffdddd;
}
