/* style.css */


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

body {
    background-color: #87CEEB;
    overflow: hidden;
    /* dvh = Dynamic Viewport Height (Essential for iPhone Centering) */
    height: 100dvh; 
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Comic Neue', sans-serif !important;
    position: relative;
    touch-action: manipulation; /* Prevents accidental zooming on mobile clicks */
}

/* --- SKY & PLANE --- */
.sky-scene {
    position: fixed;
    top: 10%;
    width: 100%;
    z-index: 15;
    pointer-events: none;
}

.plane-container {
    position: absolute;
    display: flex;
    align-items: center;
    right: -100%; 
    animation: fly-across 12s linear infinite;
}

.plane { font-size: 50px; transform: scaleX(-1); }

.banner {
    background: white; border: 2px solid black; padding: 10px 20px;
    font-weight: bold; font-size: 20px; position: relative; margin-left: 5px;
    white-space: nowrap;
}

.banner::before {
    content: ''; position: absolute; left: -15px; top: 50%;
    width: 15px; height: 2px; background: black;
}

/* --- LOGO CONTAINER --- */
.landing-logo {
    position: absolute;
    text-align: center;
    z-index: 5; 
    left: 50%;
    top: 120%; 
    transform: translateX(-50%);
    animation: scroll-to-center 2.5s ease-out forwards;
    animation-delay: 0.5s;
    white-space: nowrap;
}

/* --- UI ELEMENTS --- */
.grass-foreground {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 25vh;
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    z-index: 10; border-top: 10px solid #27ae60;
}

.container {
    background: white; 
    padding: 40px 20px; 
    border-radius: 30px;
    border: 5px solid black; 
    text-align: center; 
    max-width: 500px;
    width: 90%; 
    z-index: 100; 
    display: none; /* Controlled by JS revealPayment */
    flex-direction: column; 
    gap: 20px;
    margin: auto; /* Force vertical centering in flex container */
}

.container.show { 
    display: flex; 
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

button {
    width: 100%; 
    padding: 20px 15px; 
    border-radius: 15px; 
    border: 4px solid black;
    font-family: inherit; 
    font-size: 18px; 
    font-weight: 800; 
    cursor: pointer;
    background: white; 
    box-shadow: 0 6px 0px #000;
    transition: transform 0.1s;
}

button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0px #000;
}

button:disabled {
    cursor: not-allowed;
    transform: none !important;
}

.early-bird-btn {
    background: #cccccc;
    color: #666666;
    filter: grayscale(100%);
    cursor: not-allowed;
    opacity: 0.6;
}
.normal-btn {
    background: #FFE66D;
    animation: urgent-pulse 1s infinite;
}
.premium-btn { background: linear-gradient(90deg, #ff9a9e, #fad0c4); }

.price {
    display: block;
    font-size: 13px;
    font-weight: normal;
    margin-top: 5px;
}

.footer { font-size: 14px; margin-top: 10px; color: #333; }

/* --- ANIMATIONS & CHAOS --- */

/* The individual click emojis */
@keyframes clickPop {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -250px) rotate(20deg) scale(1.5); opacity: 0; }
}

/* The mass balloon shower */
.mass-balloon {
    position: fixed;
    bottom: -10vh;
    z-index: 999999;
    pointer-events: none;
    user-select: none;
    animation: balloonFloatUp linear forwards;
}

@keyframes balloonFloatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(-130vh) rotate(45deg); opacity: 0; }
}

@keyframes urgent-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes fly-across { from { right: -100%; } to { right: 100%; } }

@keyframes pop-in { 
    from { transform: scale(0); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

@keyframes scroll-to-center {
    0% { top: 120%; transform: translate(-50%, 0); }
    100% { top: 50%; transform: translate(-50%, -50%); }
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 480px) {
    .rainbow-text { font-size: 42px; }
    .container { padding: 30px 15px; }
    button { font-size: 16px; padding: 15px 10px; }
    .landing-subtitle { font-size: 14px; }
}

/* BACKGROUND DRIFT ANIMATION */
.background-drift {
    position: fixed;
    bottom: -50px;
    z-index: 0; /* Stays behind the grass and container */
    pointer-events: none;
    user-select: none;
    animation: driftUp linear forwards;
}

@keyframes driftUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        /* Subtle side-to-side sway */
        transform: translateY(-60vh) translateX(30px) rotate(180deg);
    }
    100% {
        transform: translateY(-110vh) translateX(-20px) rotate(360deg);
    }
}