.wheel-overlay {
    position: fixed;
    top: -40px; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    overflow-y: auto;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
}

.wheel-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px 40px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease;
}

.wheel-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wheel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wheel-header h2 {
    font-size: 1.8rem;
    color: #003366;
    margin: 0;
}

.wheel-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.wheel-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 20px auto;
}

#wheel-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 480px) {
    .wheel-content {
        padding: 20px 20px;
    }

    .wheel-header h2 {
        font-size: 1.4rem;
    }

    .wheel-register input {
        font-size: 1.2rem;
        padding: 8px;
    }

    .wheel-btn {
        font-size: 1.2rem;
        padding: 8px 18px;
    }

    #spin-button {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

.spin-btn {
    display: inline-block;
    background: #0077aa;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#spin-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 1.4rem;
    background: #8b0000;
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

#spin-button:hover {
    background: #a30000;
}

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

.wheel-result {
    font-size: 1.3rem;
    color: #007700;
    font-weight: 500;
    text-align: center;
}

.wheel-register {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wheel-register h4 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
}

.wheel-register input {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    font-size: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wheel-btn {
    display: inline-block;
    padding: 6px 10px 6px 10px;
    font-size: 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wheel-btn.secondary {
    background: #f0ad4e;
    color: #fff;
}

.wheel-btn.success {
    background: #5cb85c;
    color: #fff;
}

.wheel-btn.secondary:hover {
    background: #ec971f;
}

.wheel-btn.success:hover {
    background: #449d44;
}

.wheel-error {
    color: #d9534f;
    margin-top: 8px;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { opacity: 0; } 
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
