* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.launch-body {
    margin: 0;
    overflow: hidden;
    background: #050816;
    color: #fff;
    font-family: var(--font-family);
}

#particles-js,
.aurora-field,
#celebrationCanvas {
    position: fixed;
    inset: 0;
}

#particles-js {
    z-index: 1;
}

.aurora-field {
    z-index: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(108, 99, 255, .35), transparent 30%),
        radial-gradient(circle at 80% 15%, rgba(0, 229, 255, .22), transparent 26%),
        radial-gradient(circle at 50% 90%, rgba(139, 92, 246, .28), transparent 34%),
        linear-gradient(145deg, #050816 0%, #071028 45%, #03040b 100%);
    filter: saturate(1.25);
    animation: auroraShift 16s ease-in-out infinite alternate;
}

.aurora-field::before,
.aurora-field::after {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        conic-gradient(from 180deg at 50% 50%, transparent, rgba(108, 99, 255, .18), transparent, rgba(0, 229, 255, .12), transparent);
    opacity: .7;
    filter: blur(36px);
    animation: fieldRotate 28s linear infinite;
}

.aurora-field::after {
    animation-direction: reverse;
    opacity: .45;
}

#celebrationCanvas {
    z-index: 7;
    pointer-events: none;
}

.launch-stage {
    position: relative;
    z-index: 3;
    min-height: 100vh;
}

.launch-screen {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transform: scale(.98);
}

.launch-screen.is-active {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.hero-shell {
    width: min(1120px, 100%);
    display: grid;
    justify-items: center;
    gap: clamp(18px, 3vw, 32px);
    text-align: center;
}

.brand-lockup {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.brand-logo {
    width: clamp(82px, 10vw, 128px);
    height: clamp(82px, 10vw, 128px);
    object-fit: contain;
    filter: drop-shadow(0 18px 42px rgba(0, 229, 255, .25));
}

.brand-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #c6b7ff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand-lockup h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 6.8rem);
    line-height: .95;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 0 50px rgba(108, 99, 255, .35);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .22);
    backdrop-filter: blur(20px);
}

.guest-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.guest-label span {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 28px);
    width: min(880px, 100%);
}

.vip-card {
    position: relative;
    min-height: 286px;
    padding: 22px 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
    backdrop-filter: blur(20px);
    overflow: hidden;
    animation: floatCard 5s ease-in-out infinite;
    animation-delay: calc(var(--delay) * .55s);
}

.vip-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, .75), rgba(108, 99, 255, .2), rgba(255, 255, 255, .08));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .7;
}

.vip-card:hover {
    box-shadow: 0 28px 90px rgba(108, 99, 255, .38), 0 0 32px rgba(0, 229, 255, .18);
    transform: translateY(-8px);
}

.vip-photo-frame {
    position: relative;
    width: 124px;
    height: 124px;
    margin: 0 auto 18px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--primary), var(--secondary));
    box-shadow: 0 0 40px rgba(108, 99, 255, .4);
}

.vip-photo {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    background: #10152e;
}

.vip-card h2 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
}

.vip-card p,
.vip-card small {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, .76);
}

.vip-card p {
    font-size: .82rem;
}

.vip-card small {
    margin-top: 4px;
    font-size: .74rem;
}

.launch-action {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.launch-action p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.launch-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: min(360px, calc(100vw - 48px));
    min-height: 76px;
    padding: 0 34px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
    color: #fff;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 0 32px rgba(0, 229, 255, .38), 0 20px 60px rgba(108, 99, 255, .48);
    overflow: hidden;
    isolation: isolate;
    animation: pulseLaunch 2.4s ease-in-out infinite;
}

.launch-button::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
    transform: translateX(-100%);
    animation: buttonShine 4s ease-in-out infinite;
}

.launch-button:hover {
    transform: scale(1.04);
}

.launch-button .ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    transform: translate(-50%, -50%);
    animation: ripple .7s ease-out forwards;
}

.cinematic-card,
.success-panel {
    width: min(680px, calc(100vw - 32px));
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
    text-align: center;
    backdrop-filter: blur(24px);
}

.rocket-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    margin: 0 auto 26px;
}

.orbit-ring,
.orbit-ring::before,
.orbit-ring::after {
    position: absolute;
    inset: 0;
    content: "";
    border: 1px solid rgba(0, 229, 255, .38);
    border-radius: 50%;
    animation: ringPulse 2.6s ease-in-out infinite;
}

.orbit-ring::before {
    inset: 22px;
    border-color: rgba(108, 99, 255, .5);
    animation-delay: .2s;
}

.orbit-ring::after {
    inset: 44px;
    border-color: rgba(255, 255, 255, .18);
    animation-delay: .45s;
}

.rocket-icon {
    position: relative;
    color: #fff;
    font-size: 4.5rem;
    text-shadow: 0 0 30px rgba(0, 229, 255, .7);
    transform: rotate(-42deg);
}

.prep-screen h2,
.success-panel h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
}

.prep-screen p,
.success-panel p {
    color: rgba(255, 255, 255, .78);
}

.launch-progress {
    height: 8px;
    margin-top: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}

.launch-progress .progress-bar,
.redirect-meter div {
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 24px rgba(0, 229, 255, .55);
}

.countdown-screen {
    text-align: center;
}

.countdown-rings {
    position: absolute;
    width: min(68vw, 620px);
    aspect-ratio: 1;
}

.countdown-rings span {
    position: absolute;
    inset: calc(var(--i, 0) * 8%);
    border: 1px solid rgba(108, 99, 255, .32);
    border-radius: 50%;
    animation: ringPulse 2.4s ease-in-out infinite;
}

.countdown-rings span:nth-child(1) {
    --i: 0;
}

.countdown-rings span:nth-child(2) {
    --i: 1;
    animation-delay: .22s;
}

.countdown-rings span:nth-child(3) {
    --i: 2;
    animation-delay: .4s;
}

.countdown-rings span:nth-child(4) {
    --i: 3;
    animation-delay: .62s;
}

.countdown-label {
    position: relative;
    margin: 0 0 18px;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
}

.countdown-number {
    position: relative;
    font-size: clamp(7rem, 24vw, 18rem);
    line-height: .8;
    font-weight: 900;
    text-shadow: 0 0 24px rgba(255, 255, 255, .65), 0 0 70px rgba(108, 99, 255, .9);
}

.countdown-track {
    position: relative;
    display: flex;
    justify-content: center;
    gap: clamp(14px, 3vw, 36px);
    margin-top: 36px;
}

.countdown-track span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
}

.countdown-track span.is-current {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 26px rgba(108, 99, 255, .75);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 800;
}

.success-logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 16px;
}

.success-zero {
    margin: 12px 0 22px;
    font-size: clamp(6rem, 19vw, 14rem);
    line-height: .8;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 229, 255, .8), 0 0 80px rgba(108, 99, 255, .8);
}

.launch-timestamp {
    margin-bottom: 16px;
}

.success-guests {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 28px;
}

.success-guests span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .86);
    font-size: .86rem;
}

.redirect-meter {
    width: min(320px, 100%);
    height: 7px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}

.redirect-meter div {
    height: 100%;
}

@keyframes auroraShift {
    from {
        transform: scale(1);
        filter: hue-rotate(0deg) saturate(1.15);
    }
    to {
        transform: scale(1.06);
        filter: hue-rotate(22deg) saturate(1.35);
    }
}

@keyframes fieldRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseLaunch {
    0%,
    100% {
        box-shadow: 0 0 30px rgba(0, 229, 255, .34), 0 20px 60px rgba(108, 99, 255, .48);
    }
    50% {
        box-shadow: 0 0 54px rgba(0, 229, 255, .55), 0 26px 86px rgba(108, 99, 255, .62);
    }
}

@keyframes buttonShine {
    0%,
    65% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes ripple {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(18);
    }
}

@keyframes ringPulse {
    0%,
    100% {
        transform: scale(.98);
        opacity: .55;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@media (max-width: 820px) {
    body.launch-body {
        overflow-y: auto;
    }

    .launch-screen {
        position: absolute;
        min-height: 100vh;
        padding: 28px 16px;
    }

    .hero-screen {
        align-items: start;
    }

    .vip-grid {
        grid-template-columns: 1fr;
        width: min(380px, 100%);
    }

    .vip-card {
        min-height: auto;
    }

    .launch-button {
        min-height: 66px;
    }
}

@media (min-width: 821px) and (max-height: 800px) {
    .launch-screen {
        padding: 14px;
    }

    .hero-shell {
        gap: 12px;
    }

    .brand-lockup {
        gap: 8px;
    }

    .brand-logo {
        width: 68px;
        height: 68px;
    }

    .brand-kicker {
        margin-bottom: 4px;
        font-size: .68rem;
    }

    .brand-lockup h1 {
        font-size: clamp(2rem, 4.2vw, 4.2rem);
    }

    .event-meta span {
        padding: 6px 11px;
        font-size: .8rem;
    }

    .guest-label {
        font-size: .68rem;
    }

    .vip-grid {
        max-width: 760px;
        gap: 14px;
    }

    .vip-card {
        min-height: 188px;
        padding: 13px 12px;
    }

    .vip-photo-frame {
        width: 82px;
        height: 82px;
        margin-bottom: 9px;
    }

    .vip-card h2 {
        font-size: .9rem;
    }

    .vip-card p {
        font-size: .74rem;
    }

    .vip-card small {
        font-size: .68rem;
    }

    .launch-button {
        min-height: 56px;
        min-width: 300px;
        font-size: .98rem;
    }

    .launch-action {
        gap: 8px;
    }

    .launch-action p {
        font-size: .78rem;
    }
}
