/* 1. RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background-color: #000;
}

/* 2. GAME CONTAINER */
.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
}

/* 2.5 SPLASH SCREEN */
.splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1005;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.splash-screen img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: top center;
}

.start-button {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    max-width: 300px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #FF6F00 0%, #FF8F00 50%, #FFB300 100%);
    color: white;
    border: 3px solid #FFD700;
    border-radius: 35px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 1010;
    box-shadow:
        0 8px 20px rgba(255, 111, 0, 0.6),
        0 0 25px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: startButtonPulse 1.5s ease-in-out infinite;
}

.start-button:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow:
        0 12px 30px rgba(255, 111, 0, 0.8),
        0 0 35px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.start-button:active {
    transform: translateX(-50%) scale(0.98);
    box-shadow:
        0 5px 15px rgba(255, 111, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes startButtonPulse {

    0%,
    100% {
        box-shadow:
            0 8px 20px rgba(255, 111, 0, 0.6),
            0 0 25px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow:
            0 12px 30px rgba(255, 111, 0, 0.8),
            0 0 35px rgba(255, 215, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* 2.5.1 BRAND LOGO */
.brand-logo {
    position: absolute;
    top: 1vh;
    left: 2vw;
    width: 35vw;
    max-width: 150px;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* 2.6 IPHONE FRAME */
.iphone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1006;
    pointer-events: none;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* 3. BACKGROUNDS */
.background {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.background.active {
    opacity: 1;
}

/* 4. CHARACTERS */
.character {
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    height: 65vh;
    width: auto;
    z-index: 2;
    transition: opacity 0.5s ease, filter 2s ease;
}

/* 5. SPOTS - Individual positioned spots on body parts */
.spot {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 3;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.spot img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.spot-label {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    color: #FFD700;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.95), rgba(255, 143, 0, 0.95));
    padding: 5px 12px;
    border-radius: 15px;
    border: 2px solid #FFD700;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.spot-label.active {
    transform: translateX(-50%) scale(1);
    animation: labelPop 0.5s ease-out;
}

@keyframes labelPop {
    0% {
        transform: translateX(-50%) scale(0) rotate(-10deg);
    }

    50% {
        transform: translateX(-50%) scale(1.2) rotate(5deg);
    }

    100% {
        transform: translateX(-50%) scale(1) rotate(0deg);
    }
}

.spot:hover {
    transform: scale(1.1);
}

.spot.clickable {
    animation: spotPulse 1s infinite;
}

@keyframes spotPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Position 4 spots on body parts with better spacing */
#spot1 {
    left: 50%;
    top: 23%;
    transform: translateX(-50%);
}

#spot2 {
    left: 58%;
    top: 39%;
}

#spot3 {
    left: 50%;
    top: 57%;
    transform: translateX(-50%);
}

#spot4 {
    left: 50%;
    top: 77%;
    transform: translateX(-50%);
}

/* 6. SCAN BEAM */
.scan-beam {
    position: absolute;
    width: 100vw;
    height: 120px;
    left: 0;
    top: -120px;
    z-index: 4;
    opacity: 0;
}

.scan-beam.scanning {
    opacity: 0.9;
    animation: scanUpDown 4s linear infinite;
}

@keyframes scanUpDown {
    0% {
        top: -120px;
    }

    50% {
        top: 100vh;
    }

    100% {
        top: -120px;
    }
}

/* 7. UI ELEMENTS */
.hold-button-container {
    position: absolute;
    bottom: 15vh;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
}

.hold-button {
    width: 200px;
    height: 250px;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.1s ease;
    z-index: 6;
}

.hold-button:active {
    transform: scale(0.95);
}

.progress-container {
    position: absolute;
    top: 12vh;
    left: 10vw;
    width: 80vw;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    border-radius: 20px;
    z-index: 10;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00AA44 0%, #00FF66 100%);
    border-radius: 20px;
    transition: width 300ms ease;
}

.progress-text {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    position: absolute;
    bottom: 6vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    max-width: 380px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #FF6F00 0%, #FF8F00 50%, #FFB300 100%);
    color: white;
    border: 2px solid #FFD700;
    border-radius: 30px;
    box-shadow:
        0 8px 20px rgba(255, 111, 0, 0.6),
        0 0 15px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 15;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
    animation: ctaPulse 1.5s ease-in-out infinite;
}

.cta-button:active {
    transform: translateX(-50%) scale(0.98);
    box-shadow:
        0 5px 15px rgba(255, 111, 0, 0.5),
        0 0 10px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-main {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-price {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.95;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 8. TEXT ELEMENTS */
.prompt-text {
    position: absolute;
    bottom: 21vh;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: pulse 2s infinite;
}

.release-prompt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    z-index: 20;
}

.success-text {
    position: absolute;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 400px;
    text-align: center;
    color: white;
    z-index: 15;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 25px;
    animation: fadeInDown 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 8px 24px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
    animation: badgeGlow 2s ease-in-out infinite;
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 3px 10px rgba(255, 215, 0, 0.5);
    }

    50% {
        box-shadow: 0 3px 18px rgba(255, 215, 0, 0.8);
    }
}

.success-text h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 0;
    color: #FFFFFF;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.success-subtitle-bottom {
    position: absolute;
    bottom: 18vh;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 85vw;
    text-align: center;
    z-index: 15;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.success-subtitle-bottom p {
    font-size: 12px;
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3px;
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-jar {
    position: absolute;
    bottom: 26vh;
    left: 50%;
    width: 45vw;
    max-width: 300px;
    height: auto;
    z-index: 10;
    transform: translateX(-50%) translateY(200vh);
    filter: drop-shadow(0 8px 20px rgba(255, 111, 0, 0.6));
}

.product-glow {
    position: absolute;
    bottom: 26vh;
    left: 50%;
    width: 60vw;
    height: 60vw;
    max-width: 400px;
    max-height: 400px;
    transform: translateX(-50%) translateY(50%);
    background: radial-gradient(circle,
            rgba(255, 215, 0, 0.3) 0%,
            rgba(255, 165, 0, 0.2) 30%,
            rgba(255, 111, 0, 0.1) 50%,
            transparent 70%);
    z-index: 8;
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(50%) scale(1.1);
    }
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 100;
}

/* 9. ANIMATIONS */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes ctaPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow:
            0 8px 20px rgba(255, 111, 0, 0.6),
            0 0 15px rgba(255, 215, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        transform: translateX(-50%) scale(1.03);
        box-shadow:
            0 12px 30px rgba(255, 111, 0, 0.8),
            0 0 25px rgba(255, 215, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes slideUp {
    0% {
        transform: translateX(-50%) translateY(200vh);
        opacity: 0;
    }

    60% {
        transform: translateX(-50%) translateY(-5vh);
        opacity: 1;
    }

    80% {
        transform: translateX(-50%) translateY(2vh);
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.pulse {
    animation: pulse 0.6s infinite;
}

.sparkle {
    position: absolute;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 20;
    box-shadow:
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 165, 0, 0.4);
    animation: sparkleFloat 1.5s linear forwards;
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

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

    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* 10. UTILITY CLASSES */
.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}