.landingpage_logo {
    position: relative;
    z-index: 10;
}

.landingpage_logo img {
    filter: drop-shadow(0 0 30px rgba(255, 102, 0, 0.753)) drop-shadow(0 0 60px rgba(255, 165, 0, 0.3));
}

/* Particle System */
.particle-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.fire-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleRise linear infinite;
}

.particle-system02,
.ember-trail02 {
    position: absolute;
    pointer-events: none;
    z-index: 4;
}

.particle-system02 {
    top: -15%;
    left: 35%;
    right: 35%;
    height: 30%;
}


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

    50% {
        transform: translateY(-80px) scale(0.7);
        opacity: 0.8;
    }

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

.ember-trail02 {
    top: -10%;
    left: 40%;
    right: 40%;
    height: 25%;
    z-index: 6;
}

.ember {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle,
            #ffff99 0%,
            #ff6600 60%,
            transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 4px #ff6600, 0 0 8px #ff9900;
    animation: emberFloat linear infinite;
}

@keyframes emberFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx, 0), var(--dy, -120px)) scale(0.3);
        opacity: 0;
    }
}


@keyframes particleRise {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        opacity: 0.8;
        transform: translateY(-100px) scale(0.8) rotate(180deg);
    }

    100% {
        transform: translateY(-200px) scale(0.3) rotate(360deg);
        opacity: 0;
    }
}


.particle-system02,
.ember-trail02 {
    position: absolute;
    pointer-events: none;
    z-index: 4;
}

.particle-system02 {
    top: -15%;
    left: 35%;
    right: 35%;
    height: 30%;
}


.ember-trail02 {
    top: -10%;
    left: 40%;
    right: 40%;
    height: 25%;
    z-index: 6;
}


.landingpage_date {
    animation: dateEntrance 1.5s ease-out .5s both,
        dateShimmer 4s ease-in-out infinite;
}

@keyframes dateEntrance {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotateX(90deg);
    }

    100% {
        opacity: 1;
        transform: translateX(0) rotateX(0deg);
    }
}

@keyframes dateShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

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

.landingpage_date span {
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        text-shadow: 2px 2px 4px #000, 0 0 10px rgba(255, 255, 181, 0.5);
    }

    50% {
        text-shadow: 2px 2px 4px #000, 0 0 20px rgba(255, 255, 181, 0.8);
    }
}

/* Enhanced Button Container */
.button-container {
    animation: buttonsEntrance 1.7s ease-out .5s both;
}

@keyframes buttonsEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

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


/* Enhanced Main Buttons */
.landingpage_btn {

    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    cursor: pointer;
    position: relative;
    overflow: hidden;

    animation: buttonFloat 3s ease-in-out infinite;
}

.landingpage_btn:nth-child(1) {
    animation-delay: 0s;
}

.landingpage_btn:nth-child(2) {
    animation-delay: 0.3s;
}

.landingpage_btn:nth-child(3) {
    animation-delay: 0.6s;
}

.landingpage_btn:nth-child(4) {
    animation-delay: 0.9s;
}

@keyframes buttonFloat {

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

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

.landingpage_btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.landingpage_btn:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.landingpage_btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(47, 113, 255, 0.6),
        0 5px 15px rgba(255, 140, 0, 0.3),
        inset 0 2px 15px rgba(255, 255, 255, 0.4);
    background-position: 100% 100%;
}

.landingpage_btn:active {
    transform: translateY(-3px) scale(1.02);
    transition: all 0.1s;
}


/* Enhanced Popup Buttons */
.landingpage_popupBtn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: popupEntrance 1.7s ease-out .5s both;
}

@keyframes popupEntrance {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }

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

.landingpage_popup {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.landingpage_popup:nth-child(1) {
    animation: popupBounce 2s ease-in-out infinite;
}

.landingpage_popup:nth-child(2) {
    animation: popupBounce 2s ease-in-out infinite 0.5s;
}

.landingpage_popup:nth-child(3) {
    animation: popupBounce 2s ease-in-out infinite 1s;
}

@keyframes popupBounce {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(3deg);
    }

    75% {
        transform: rotate(-1.5deg);
    }
}

.landingpage_popup:hover::before {
    opacity: 1;
}

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

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


:root {
    --star-count: 100;
    --min-size: 1px;
    --max-size: 3px;
    --twinkle-min: 2.5s;
    --twinkle-max: 6s;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: 0.95;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(120, 160, 255, 0.6);
    animation: twinkle var(--dur, 4s) ease-in-out infinite;
    z-index: 1;
    will-change: opacity, transform;
}

@keyframes twinkle {
    0% {
        opacity: 0.15;
        transform: scale(1);
        filter: drop-shadow(0 0 1px #fff);
    }

    40% {
        opacity: 0.95;
        transform: scale(1.2);
        filter: drop-shadow(0 0 4px #fff);
    }

    60% {
        opacity: 0.5;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.2;
        transform: scale(1);
    }
}

.layer-1 {
    z-index: 1;
}

.layer-2 {
    z-index: 2;
}

.layer-3 {
    z-index: 3;
}



/* 🟡 Glow pulse สำหรับ reward box */
.content_rewardLayout {
    border: 3px solid #f8ab16;
    box-shadow: 0 0 12px rgba(248, 171, 22, 0.6);
    animation: glowPulse 2.5s infinite alternate;
}

@keyframes glowPulse {
    from {
        box-shadow: 0 0 10px rgba(248, 171, 22, 0.5);
    }

    to {
        box-shadow: 0 0 25px rgba(248, 171, 22, 1);
    }
}

/* 🌟 Effect พื้นฐาน */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
}

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