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

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at center, #2b0b1c, #0a0306);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(236, 72, 153, 0.2);
    max-width: 600px;
    width: 90%;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    background: linear-gradient(to right, #ff758c, #ff7eb3, #fbc2eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 117, 140, 0.4);
}

header p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 300;
}

.roulette-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(251, 194, 235, 0.4);
    background: #111;
}

@media (max-width: 500px) {
    .roulette-container {
        width: 300px;
        height: 300px;
    }
    #wheel {
        width: 300px !important;
        height: 300px !important;
    }
    header h1 {
        font-size: 3rem;
    }
}

.pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    background-color: #fff;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

#wheel {
    border-radius: 50%;
    transition: transform cubic-bezier(0.17, 0.67, 0.12, 0.99) 6s;
    width: 100%;
    height: 100%;
}

#spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 117, 140, 0.5), inset 0 -3px 5px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#spin-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 15px 30px rgba(255, 117, 140, 0.7), inset 0 -3px 5px rgba(0,0,0,0.2);
}

#spin-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #1f0b18, #3b1029);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 117, 140, 0.3);
    box-shadow: 0 0 60px rgba(255, 117, 140, 0.3);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    max-width: 90%;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #ff7eb3;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 126, 179, 0.4);
}

.modal-prize {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.close-btn {
    background: transparent;
    border: 2px solid #ff7eb3;
    color: #ff7eb3;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ff7eb3;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 126, 179, 0.4);
}
