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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #f9edd8;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.thank-you-banner {
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -150%);
    background: #18211e;
    color: #f9edd8;
    padding: 18px 28px;
    border: 3px solid #18211e;
    box-shadow: 4px 4px 0 rgba(70, 74, 69, 0.35);
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    will-change: transform, opacity;
    z-index: 1000;
}

.thank-you-banner.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.thank-you-message {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thank-you-title {
    font-size: 16px;
    font-weight: 700;
}

.thank-you-text {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.3px;
}

.thank-you-close {
    background: transparent;
    border: 2px solid #f9edd8;
    color: #f9edd8;
    font-family: inherit;
    padding: 6px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.thank-you-close:hover {
    background: #f9edd8;
    color: #18211e;
}


.intro-copy {
    margin: 28px auto 0;
    max-width: 420px;
    font-size: 15px;
    line-height: 1.6;
    color: #312e2b;
}

.intro-copy a {
    color: #18211e;
    font-weight: 600;
    text-decoration: none;
}

.intro-copy a:hover {
    text-decoration: underline;
}
.container {
    text-align: center;
    max-width: 600px;
}

.logo-container {
    position: relative;
    display: inline-block;
    animation: fadeIn 0.8s ease-in;
    --fireworks-offset-x: -5%;
    --fireworks-offset-y: -22%;
    --fireworks-scale: 1.05;
}

.logo-fireworks {
    position: absolute;
    top: 46%;
    left: 68%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%) translate(var(--fireworks-offset-x), var(--fireworks-offset-y)) scale(var(--fireworks-scale));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* .logo-fireworks::before,
.logo-fireworks::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    opacity: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0) 70%);
    animation-play-state: paused;
    transition: opacity 0.3s ease;
} */

.logo-fireworks::before {
    width: clamp(180px, 42vw, 250px);
    height: clamp(180px, 42vw, 250px);
    animation: pulseGlow 2.8s ease-in-out infinite;
}

.logo-fireworks::after {
    width: clamp(220px, 52vw, 320px);
    height: clamp(220px, 52vw, 320px);
    border: 2px solid rgba(0, 0, 0, 0.25);
    background: none;
    animation: ringPulse 3.2s ease-out infinite;
}

.logo-container.celebrate .logo-fireworks,
.logo-container.celebrate .logo-fireworks::before,
.logo-container.celebrate .logo-fireworks::after {
    opacity: 1;
    animation-play-state: running;
}

.spark {
    --distance: 120px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--spark-color, #000000);
    transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(0) scale(0.4);
    opacity: 0;
    animation: sparkBurst 2.4s ease-out infinite;
    animation-delay: var(--delay, 0s);
    animation-play-state: paused;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
}

.spark::before {
    content: '';
    position: absolute;
    top: 250%;
    left: 50%;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, rgba(249, 96, 52, 0) 0%, rgba(0, 0, 0, 0.8) 60%, rgba(255, 210, 111, 0) 100%);
    transform: translate(-50%, -100%);
    border-radius: 999px;
    opacity: 0.6;
}

.logo-container.celebrate .spark {
    animation-play-state: running;
}

.twinkle {
    --twinkle-x: 0%;
    --twinkle-y: 0%;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000000;
    transform: translate(-50%, -50%) translate(var(--twinkle-x), var(--twinkle-y)) scale(0.3);
    opacity: 0;
    animation: sparkleTwinkle 1.8s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    animation-play-state: paused;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
    mix-blend-mode: screen;
}

.logo-container.celebrate .twinkle {
    animation-play-state: running;
}

.logo-fireworks .spark--1 {
    --angle: -18deg;
    --delay: 0s;
    --spark-color: #000000;
}

.logo-fireworks .spark--2 {
    --angle: 38deg;
    --delay: 0.35s;
    --spark-color: #000000;
}

.logo-fireworks .spark--3 {
    --angle: 104deg;
    --delay: 0.75s;
    --spark-color: #000000;
}

.logo-fireworks .spark--4 {
    --angle: 172deg;
    --delay: 0.2s;
    --spark-color: #000000;
}

.logo-fireworks .spark--5 {
    --angle: 236deg;
    --delay: 0.55s;
    --spark-color: #000000;
}

.logo-fireworks .spark--6 {
    --angle: 304deg;
    --delay: 0.95s;
    --spark-color: #000000;
}

.twinkle--1 {
    --twinkle-x: -26%;
    --twinkle-y: -46%;
    --delay: 0.15s;
}

.twinkle--2 {
    --twinkle-x: 12%;
    --twinkle-y: -54%;
    --delay: 0.65s;
}

.twinkle--3 {
    --twinkle-x: -40%;
    --twinkle-y: -18%;
    --delay: 1.1s;
}

.twinkle--4 {
    --twinkle-x: 28%;
    --twinkle-y: -32%;
    --delay: 1.55s;
}

@keyframes sparkBurst {
    0% {
        transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(0) scale(0.4);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(calc(var(--distance) * -0.6)) scale(1);
        opacity: 1;
    }
    45% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--angle, 0deg)) translateY(calc(var(--distance) * -1.05)) scale(0.1);
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.72);
        opacity: 0;
    }
    30% {
        opacity: 0.65;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.5;
    }
    40% {
        opacity: 0.35;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 0;
    }
}

@keyframes sparkleTwinkle {
    0% {
        transform: translate(-50%, -50%) translate(var(--twinkle-x), var(--twinkle-y)) scale(0.3);
        opacity: 0;
    }
    25% {
        transform: translate(-50%, -50%) translate(var(--twinkle-x), var(--twinkle-y)) scale(1);
        opacity: 1;
    }
    60% {
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--twinkle-x), var(--twinkle-y)) scale(0);
        opacity: 0;
    }
}

.logo-container img {
    width: 512px;
    height: auto;
    transition: transform 0.3s ease;

}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 100px;
    background: #18211e;
    color: #f9edd8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 0;
    border: 3px solid #18211e;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 rgba(70, 74, 69, 0.3);
    animation: fadeIn 1s ease-in 0.3s backwards;
    position: relative;
}

.product-link:hover {
    background: #f9edd8;
    color: #18211e;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(70, 74, 69, 0.3);
}

.product-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.product-link:hover svg {
    transform: translateX(4px);
}

@keyframes logoPulse {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .logo-container {
        --fireworks-offset-x: -4%;
        --fireworks-offset-y: -28%;
        --fireworks-scale: 1.08;
    }

    .logo-container.celebrate .spark {
        --distance: 74px;
    }

    .thank-you-banner {
        width: calc(100% - 32px);
        padding: 16px 20px;
        gap: 12px;
    }

    .thank-you-title {
        font-size: 15px;
    }

    .thank-you-text {
        font-size: 12px;
    }

    .thank-you-close {
        padding: 6px 10px;
        font-size: 12px;
    }

    .logo-container img {
        width: 280px;
    }

    .product-link {
        font-size: 13px;
        padding: 14px 24px;
    }
}