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

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Noto Sans', sans-serif;
    background: linear-gradient(180deg, white 0%, #7c3aed 100%);
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Screen Container */
.screen {
    position: relative;
    width: 100%;
    height: 100vh;
    display: block;
}

.screen.hidden {
    display: none;
}

/* Screen 1: Winner Announcement */
.winner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.winner-title {
    position: absolute;
    font-family: 'Poppins', 'Noto Sans', sans-serif;
    font-weight: 600;
    height: 132px;
    line-height: 120px;
    left: 50%;
    font-size: 36px;
    text-align: center;
    color: white;
    top: 208px;
    transform: translateX(-50%);
    width: 313px;
    margin: 0;
    font-variation-settings: 'CTGR' 0, 'wdth' 100, 'wght' 600;
}

.winner-title .bold {
    font-weight: 700;
    font-variation-settings: 'CTGR' 0, 'wdth' 100, 'wght' 700;
}

.congratulations-text {
    position: absolute;
    font-family: 'Poppins', 'Noto Sans', sans-serif;
    font-weight: 600;
    line-height: normal;
    left: 50%;
    font-size: 18px;
    text-align: center;
    color: white;
    top: 340px;
    transform: translateX(-50%);
    width: 300px;
    margin: 0;
    font-variation-settings: 'CTGR' 0, 'wdth' 100, 'wght' 600;
}

.claim-button {
    position: absolute;
    background: white;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.25);
    top: 441px;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    white-space: nowrap;
    color: #9f00e3;
    font-variation-settings: 'CTGR' 0, 'wdth' 100, 'wght' 600;
    transition: background 0.2s ease;
}

.claim-button:hover {
    background: #8b00cc;
    color: white;
}

.claim-button:active {
    transform: translateX(-50%) scale(0.98);
}

.rainbow-phone {
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(90deg,
            #ff0000, #ff8000, #ffff00,
            #00ff00, #00ffff, #0000ff,
            #8000ff, #ff00ff, #ff0000);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }

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

.phone-heading {
    position: absolute;
    font-family: 'Poppins', 'Noto Sans', sans-serif;
    font-weight: 600;
    line-height: normal;
    left: 50%;
    font-size: 24px;
    text-align: center;
    white-space: nowrap;
    color: white;
    top: 265px;
    transform: translateX(-50%);
    font-variation-settings: 'CTGR' 0, 'wdth' 100, 'wght' 600;
}

@keyframes constant-shake {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    10% {
        transform: translateX(-1px) translateY(-1px);
    }

    20% {
        transform: translateX(1px) translateY(1px);
    }

    30% {
        transform: translateX(-1px) translateY(1px);
    }

    40% {
        transform: translateX(1px) translateY(-1px);
    }

    50% {
        transform: translateX(-1px) translateY(-1px);
    }

    60% {
        transform: translateX(1px) translateY(1px);
    }

    70% {
        transform: translateX(-1px) translateY(1px);
    }

    80% {
        transform: translateX(1px) translateY(-1px);
    }

    90% {
        transform: translateX(-1px) translateY(-1px);
    }
}

.constant-shake {
    position: absolute;
    font-family: 'Poppins', 'Noto Sans', sans-serif;
    font-weight: 600;
    line-height: normal;
    left: 50%;
    font-size: 24px;
    text-align: center;
    white-space: nowrap;
    color: white;
    top: 265px;
    transform: translateX(-50%);
    font-variation-settings: 'CTGR' 0, 'wdth' 100, 'wght' 600;
    animation: constant-shake 0.5s infinite linear;
    display: inline-block;
    margin-left: -150px;
}

.phone-heading p {
    margin: 0;
    margin-bottom: 0;
}

.phone-number-box {
    width: 400px;
    position: absolute;
    background: rgba(0, 0, 0, 0);
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    border-radius: 10px;
    top: 401px;
}

.phone-number {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: normal;
    font-style: normal;
    text-align: center;
    font-size: 24px;
    text-align: center;
    white-space: nowrap;
    color: white;
    margin: 0;
}

/* Responsive adjustments for mobile */
@media (max-width: 393px) {
    .winner-title {
        font-size: 32px;
        line-height: 100px;
        width: 90%;
    }

    .congratulations-text {
        width: 90%;
        font-size: 16px;
    }

    .claim-button {
        font-size: 18px;
    }

    .phone-heading {
        font-size: 22px;
    }

    .phone-number {
        font-size: 22px;
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.content {
    padding: 20px;
}
