* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

body {
    display: grid;
    place-items: start;
    min-height: 100vh;
    overflow: hidden;
    background: #ffffff;
    border: none;
    outline: none;
}

button,
input,
select {
    font: inherit;
}

.ad {
    position: relative;
    width: min(100vw, 320px);
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #ffffff;
    border: none;
    outline: none;
}

.dt-logo {
    position: absolute;
    top: 0%;
    right: -0%;
    width: 23px;
    height: auto;
    z-index: 10;
    border: none;
    outline: none;
}

.screen {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease;
}

.screen.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.screen-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hair-food-img {
    object-fit: contain;
    transform: scale(0.30) translateY(65%);
    z-index: 1;
}

.product-img {
    object-fit: contain;
    transform: scale(0.75) translateY(25%);
    z-index: 1;
}

.airtime-img {
    object-fit: contain;
    transform: scale(0.7) translateY(15%);
    z-index: 1;
}

.confetti {
    position: absolute;
    z-index: 3;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    top: -12%;
    width: 8px;
    height: 14px;
    background: var(--confetti-color);
    opacity: 0;
    animation: confetti-fall 2.4s linear var(--confetti-delay) forwards;
}

.hotspot {
    position: absolute;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.hotspot:focus-visible,
.image-input:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.title-image {
    position: absolute;
    z-index: 2;
    top: 15%;
    left: 15%;
    width: 70%;
    height: auto;
    animation: title-bounce 2.5s ease-in-out infinite alternate;
}

@keyframes title-bounce {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.02);
    }

    100% {
        transform: translateY(2px) scale(0.99);
    }
}

.wheel-board {
    position: absolute;
    z-index: 1;
    left: 7%;
    top: 28%;
    width: 85%;
    height: auto;
}

.wheel-pointer {
    position: absolute;
    z-index: 2;
    top: 27%;
    left: 50%;
    transform: translateX(-50%);
    width: 7%;
    height: auto;
}

.spin-button {
    position: absolute;
    z-index: 2;
    left: 21%;
    bottom: 2.2%;
    width: 58%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    animation: button-pulse 2s ease-in-out infinite;
}

.spin-button img {
    display: block;
    width: 100%;
    height: auto;
}

.spin-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    border-radius: 999px;
}

.spin-button:active {
    transform: scale(.97);
}

.hand-gesture {
    position: absolute;
    z-index: 3;
    left: 65%;
    bottom: 0%;
    width: 7%;
    height: auto;
    animation: hand-bounce 0.8s infinite alternate ease-in-out;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@keyframes hand-bounce {
    from {
        transform: translate(5px, 5px);
    }

    to {
        transform: translate(-5px, -5px);
    }
}

.spin-error {
    position: absolute;
    z-index: 3;
    left: 8%;
    right: 8%;
    bottom: 13%;
    margin: 0;
    color: #5d002f;
    font: 700 12px/1.3 Arial, sans-serif;
    text-align: center;
}

.wheel-board {
    transform: rotate(0deg);
}

.wheel-board.idle {
    animation: wheel-idle 2.2s ease-in-out infinite;
}

.wheel-board.spinning {
    animation: wheel-spin 2.5s cubic-bezier(.12, .65, .18, 1) both;
}

.image-input {
    position: absolute;
    z-index: 2;
    left: 9.5%;
    width: 81%;
    height: 7%;
    padding: 0 6%;
    border: 2px solid #8b0048;
    border-radius: 999px;
    color: #222222;
    background: rgba(255, 255, 255, 0.85);
    font-family: Arial, sans-serif;
    font-size: clamp(14px, 5vw, 20px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.image-input:focus {
    border-color: #e9007f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(233, 0, 127, 0.35);
}

.image-input::placeholder {
    color: #666666;
    font-size: clamp(12px, 4.2vw, 16px);
}

.input-name {
    top: 33.5%;
}

.input-phone {
    top: 43.5%;
}

.input-email {
    top: 53.8%;
}

.input-location {
    top: 64%;
}

select.image-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select.image-input option {
    background: #ffffff;
    color: #333333;
}

select.image-input:invalid {
    color: #777777;
}


.submit-hotspot {
    left: 25%;
    bottom: 8%;
    width: 50%;
    height: 10%;
}

.learn-hotspot {
    left: 26%;
    bottom: 2%;
    width: 48%;
    height: 9%;
    animation: button-pulse 2s ease-in-out infinite;
}

.credit-confirmation {
    position: absolute;
    z-index: 2;
    left: 10%;
    right: 10%;
    top: 34%;
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    background: rgba(93, 0, 47, .9);
    font: 700 14px/1.35 Arial, sans-serif;
    text-align: center;
}

.form-error {
    position: absolute;
    z-index: 3;
    left: 10%;
    right: 10%;
    bottom: 20%;
    margin: 0;
    color: #5d002f;
    font: 700 12px/1.2 Arial, sans-serif;
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .screen {
        transition: none;
    }
}

@keyframes wheel-spin {
    to {
        transform: rotate(calc(1440deg + var(--landing-angle)));
    }
}

@keyframes wheel-idle {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

@keyframes button-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translate3d(0, -20px, 0) rotate(0deg);
    }

    100% {
        opacity: .9;
        transform: translate3d(var(--confetti-drift), 560px, 0) rotate(720deg);
    }
}

.reward-expiry {
    position: absolute;
    z-index: 4;
    left: 12%;
    right: 12%;
    bottom: 12.5%;
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(93, 0, 47, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.6);
    font: 700 12px/1.3 Arial, sans-serif;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.credit-confirmation:empty,
.reward-expiry:empty,
.form-error:empty,
.spin-error:empty,
.credit-confirmation[hidden],
.reward-expiry[hidden] {
    display: none !important;
}

.floating-product {
    position: absolute;
    z-index: 1;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.22));
}

.fp-1 {
    top: 5%;
    left: 4%;
    width: 13%;
    animation: float-product-1 2.8s ease-in-out infinite alternate;
}

.fp-2 {
    top: 14%;
    right: 5%;
    width: 14%;
    animation: float-product-2 3.2s ease-in-out infinite alternate 0.4s;
}

.fp-3 {
    top: 48%;
    left: 3%;
    width: 13%;
    animation: float-product-3 2.6s ease-in-out infinite alternate 0.8s;
}

.fp-4 {
    top: 52%;
    right: 3%;
    width: 14%;
    animation: float-product-4 3.0s ease-in-out infinite alternate 0.2s;
}

.fp-5 {
    bottom: 12%;
    left: 6%;
    width: 13%;
    animation: float-product-5 3.4s ease-in-out infinite alternate 0.6s;
}

@keyframes float-product-1 {
    0% {
        transform: translateY(0px) rotate(-4deg);
    }

    100% {
        transform: translateY(-7px) rotate(4deg);
    }
}

@keyframes float-product-2 {
    0% {
        transform: translateY(0px) rotate(5deg);
    }

    100% {
        transform: translateY(-8px) rotate(-3deg);
    }
}

@keyframes float-product-3 {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }

    100% {
        transform: translateY(-6px) rotate(3deg);
    }
}

@keyframes float-product-4 {
    0% {
        transform: translateY(0px) rotate(3deg);
    }

    100% {
        transform: translateY(-7px) rotate(-4deg);
    }
}

@keyframes float-product-5 {
    0% {
        transform: translateY(0px) rotate(-3deg);
    }

    100% {
        transform: translateY(-8px) rotate(5deg);
    }
}