/* Overlay */
#spin-wheel-overlay {
    display: none;
    position: fixed;
	padding-top:40px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Container */
#spin-wheel-container {
    position: relative;
    margin: 20px auto;
    background: #a90000;
    border: 1px solid #FFD700;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px #FFD700;
    max-width: 1000px;
	max-height: 1000px;
    width: 90%;
    z-index: 100000;
    box-sizing: border-box;
}

/* Text */
#spin-wheel-container h2 {
    color: #FFFFFF;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    margin-bottom: 5px;
    margin-top: 5px;
    text-shadow: 2px 2px 4px #000;
    font-size: 1.4em;
    font-weight: bold;
}

.spin-wheel-subtitle {
    color: #FFFFFF;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    font-size: 0.85em;
    margin-bottom: 15px;
    margin-top: 0;
    text-shadow: 1px 1px 3px #000;
    letter-spacing: 1px;
}

/* Canvas */
#spin-wheel-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

/* Input & Button */
#spin-email {
    padding: 10px;
    width: 70%;
    max-width: 300px;
    margin-top: 15px;
    border: 2px solid #FFD700;
    border-radius: 5px;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

#spin-btn {
    padding: 10px 20px;
    background: #FFD700;
    color: #a90000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s;
}

#spin-btn:hover {
    background: #ffeb3b;
}

#spin-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Close Button */
#spin-wheel-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #FFD700;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
    z-index: 20;
    line-height: 1;
}

/* Result Modal */
#spin-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spin-result-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    border: 2px solid #FFD700;
    position: relative;
    animation: popIn 0.3s ease-out;
}

.spin-result-content h3 {
    color: #d60000;
    margin-top: 0;
    font-size: 24px;
}

.spin-result-content p {
    font-size: 1.2em;
    margin: 15px 0;
    color: #333;
}

.coupon-box {
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.coupon-box input {
    width: 120px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 5px;
    font-family: monospace;
    font-weight: bold;
    color: #d60000;
}

.coupon-box button {
    cursor: pointer;
    background: #FFD700;
    border: none;
    padding: 5px 10px;
    color: #d60000;
    font-weight: bold;
    border-radius: 3px;
}

.close-result-btn {
    margin-top: 10px;
    background: #a90000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.close-result-btn:hover {
    background: #c00;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media screen and (max-width: 600px) {
    #spin-wheel-container {
        width: 92%;
        max-width: 500px;
        padding: 15px 12px;
        margin: 15px auto;
    }

    #spin-wheel-container h2 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    #spin-email {
        width: 85%;
        padding: 8px;
        font-size: 16px;
        margin-top: 10px;
    }

    #spin-btn {
        font-size: 16px;
        padding: 8px 16px;
    }

    .spin-result-content {
        padding: 20px;
        max-width: 300px;
    }

    .spin-result-content h3 {
        font-size: 20px;
    }
}

@media screen and (max-width: 380px) {
    #spin-wheel-container {
        max-width: 400px;
        padding: 10px 8px;
    }

    #spin-wheel-container h2 {
        font-size: 1em;
    }
}