:root {
    --primary: #f26d21;
    /* Family Day Orange */
    --primary-dark: #d95a12;
    --secondary: #2b678c;
    /* Teal Blue */
    --accent: #ffc14d;
    /* Warm Gold */
    --bg-dark: #0f1c2b;
    /* Dark Deep Blue background */
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --radius: 0.5rem;
    /* rounded-xl */
}

input,
textarea,
select,
button {
    outline: none !important;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
    opacity: 0.5;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(242, 109, 33, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

/* Base Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(242, 109, 33, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.fixed[class*="top-[-10%]"] {
    background: radial-gradient(circle, rgba(242, 109, 33, 0.4) 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite alternate;
}

.fixed[class*="bottom-[-10%]"] {
    background: radial-gradient(circle, rgba(43, 103, 140, 0.4) 0%, transparent 70%);
    animation: pulse-glow 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Animations */
@keyframes roll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-15px);
        opacity: 0;
    }

    51% {
        transform: translateY(15px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-roll {
    animation: roll 0.2s infinite;
}

@keyframes rainbow-border {
    0% {
        border-color: #3b82f6;
    }

    33% {
        border-color: #ec4899;
    }

    66% {
        border-color: #eab308;
    }

    100% {
        border-color: #3b82f6;
    }
}

.winner-border {
    animation: rainbow-border 2s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Base Styles */
@keyframes bg-shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    background: linear-gradient(-45deg, #000000, #0a0f16, #001a2c, #1a0a00);
    background-size: 400% 400%;
    animation: bg-shimmer 15s ease infinite;
    color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

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

input,
select,
textarea {
    background: rgba(15, 28, 43, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    color: white !important;
    transition: all 0.2s;
    outline: none !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Modal Transitions */
#winnersModal.hidden,
#drawModal.hidden,
#rangesModal.hidden {
    display: none;
}

@keyframes winnerReveal {
    0% {
        transform: scale(0.5);
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

.reveal-winner {
    animation: winnerReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay {
    background: rgba(10, 20, 30, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #0a0f16;
    border: 4px solid #ffc14d;
    border-radius: 2.5rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 193, 77, 0.1);
}

.leaderboard-ribbon {
    background: linear-gradient(to bottom, #f26d21, #d95a12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.leaderboard-ribbon::before,
.leaderboard-ribbon::after {
    content: '';
    position: absolute;
    top: 5px;
    width: 25px;
    height: 100%;
    background: #8b3410;
    z-index: -1;
}

.leaderboard-ribbon::before {
    left: -15px;
    transform: skewY(20deg);
}

.leaderboard-ribbon::after {
    right: -15px;
    transform: skewY(-20deg);
}

.winner-row {
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.winner-row:hover {
    transform: scale(1.02) translateX(5px);
}

.winner-row-orange {
    background: linear-gradient(to right, #f26d21, #ff8c42);
}

.winner-row-teal {
    background: linear-gradient(to right, #2b678c, #3a8dbf);
}

.winner-row-gold {
    background: linear-gradient(to right, #ffc14d, #ffd482);
}

.winner-row-pink {
    background: linear-gradient(to right, #ec4899, #f472b6);
}

.prize-pill {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.prize-reveal-text {
    text-shadow: 0 0 40px rgba(43, 103, 140, 0.8), 0 0 10px rgba(255, 255, 255, 0.3);
    animation: prize-pulse 2s infinite;
}

@keyframes prize-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.3);
    }
}