﻿:root {
    --primary: #1a365d;
    --primary-dark: #153060;
    --success: #38a169;
    --rim: #0b5aa6;
    --brand: #0b5aa6;
    --blue: #2c86c7;
    --green: #46ab74;
    --sky: #53b2e4;
}
.spin-wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ center horizontally */
    text-align: center;
}

.spin-wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
    /* 🔹 Ensure SVG scales and stays behind */
    .spin-wheel-container svg {
        display: block;
        width: 400px;
        height: 400px;
        margin: auto;
    }
.user-info {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.user-info-label {
    flex: 0 0 130px; /* fixed width for alignment */
    font-weight: 600;
    color: #2d3748;
    text-align: right;
}

.user-info-value {
    flex: 1;
    color: #1a365d;
    font-weight: 500;
    word-break: break-word; /* ensures long emails/IDs wrap */
}


.welcome-message {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
}

/* 🔹 Pointer directly above wheel */
.pointer {
    position: absolute;
    top: -40px; /* adjust to sit above rim */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
   /* border-top: 40px solid var(--rim); */
    margin: 0; /* remove old margin */
    z-index: 10;
}

.stage {
    position: relative;
}

.dpp-spin-wheel-container svg {
    width: 400px;
    height: 400px;
    display: block;
}

#wheelGroup {
    transition: transform 4s cubic-bezier(.33,1,.68,1);
    transform-origin: 200px 200px;
}

/* 🔹 Center badge perfectly in middle */
.center-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    z-index: 5;
    /* ❌ removed fixed background, border, color */
}

.form-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

button {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

#spinBtn {
    background: var(--primary);
    color: white;
}

#claimBtn {
    background: var(--success);
    color: white;
}

#result {
    font-weight: bold;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-top: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #2d3748;
    font-size: 18px;
    max-width: 500px;
    width: 100%;
}
/* 🔹 Error / Validation Alert */
.alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .alert-error::before {
        content: "⚠️";
        font-size: 20px;
    }


/* 🔹 Responsive styles */
@media (max-width: 768px) {
    svg {
        width: 300px;
        height: 300px;
    }

    .center-brand {
        width: 70px;
        height: 70px;
        font-size: 16px;
    }

    .pointer {
        border-left: 18px solid transparent;
        border-right: 18px solid transparent;
        border-top: 32px solid var(--rim);
    }

    button {
        flex: 1;
        font-size: 14px;
        padding: 12px 20px;
    }

    #result {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    svg {
        width: 250px;
        height: 250px;
    }

    .center-brand {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }

    .user-info, .form-container, #result {
        padding: 12px;
        font-size: 14px;
    }

    .user-info-label, .user-info-value {
        font-size: 14px;
    }
}
