* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #0D1421 0%, #131B2E 50%, #0D1421 100%);
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0D1421;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F7931A, #627EEA);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD700, #00D395);
}

.sector-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    outline: none;
}

.sector-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(167, 139, 250, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sector-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(167, 139, 250, 0.6);
}

.sector-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(167, 139, 250, 0.4);
}

.sector-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-10px) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(1080deg) scale(0.3);
        opacity: 0;
    }
}

.confetti-particle {
    animation: confetti-fall 2.5s ease-out forwards;
    border-radius: 3px;
}

.vs-badge {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

input:focus {
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .sector-slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.battle-card {
    position: relative;
    overflow: hidden;
}

.battle-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent 30%);
    animation: rotate-shine 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.battle-card:hover::before {
    opacity: 1;
}

@keyframes rotate-shine {
    100% {
        transform: rotate(360deg);
    }
}