:root {
    --bg: #0f1020;
    --fg: #f7f7f7;
    --accent: #ffe066;
    --blue: #6ecbff;
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%;
    margin: 0;
    font-family: system-ui,Arial,sans-serif;
    overflow: hidden
}

body {
    background: radial-gradient(1200px 600px at 50% -10%,#2a2b4a 0%,#15162d 45%,var(--bg) 100%);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: bgZoom 40s linear infinite alternate;
}

/* Canvases behind everything */
#particles, #fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1
}

/* Stage + overlay */
.stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 5
}

.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(3px);
    z-index: 10
}

.btn {
    padding: 14px 20px;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #222;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer
}

.hidden {
    display: none !important
}

.pulse {
    animation: pulse 1.4s ease-in-out infinite
}

@keyframes pulse {
    0%,100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.06)
    }
}

/* Note below the button */
.gate-note {
    margin-top: 14px;
    color: #ddd;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.85;
}

/* Type sizes */
.t-md {
    font-size: clamp(40px,6.5vw,72px);
    font-weight: 800
}

.t-xl {
    font-size: clamp(52px,8vw,92px);
    font-weight: 800
}

.t-xxl {
    font-size: clamp(60px,12vw,128px);
    font-weight: 900
}

.accent {
    color: var(--accent);
    font-weight: 900
}

.blueText {
    color: var(--blue);
    font-weight: 800
}

/* Gate overlay container */
.gate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Gate button styling */
.gate-button {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .gate-button:hover {
        transform: scale(1.05);
        box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
    }

/* Subtext under the button */
.music-note {
    color: #ccc;
    margin-top: 8px;
    font-size: 0.9em;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}


/* Glow shimmer */
.glow {
    text-shadow: 0 0 20px rgba(255, 224, 102, 1), 0 0 40px rgba(255, 200, 60, 0.8), 0 0 60px rgba(255, 180, 40, 0.6);
    animation: shimmer 2.5s infinite alternate;
}

.soft-glow {
    text-shadow: 0 0 10px rgba(255,255,255,0.6),0 0 20px rgba(255,255,255,0.4);
}

@keyframes shimmer {
    from {
        text-shadow: 0 0 15px rgba(255,224,102,0.8),0 0 25px rgba(255,200,60,0.6)
    }

    to {
        text-shadow: 0 0 25px rgba(255,224,102,1),0 0 45px rgba(255,180,40,0.8)
    }
}

/* Animations */
@keyframes bgZoom {
    from {
        background-size: 100% 100%
    }

    to {
        background-size: 120% 120%
    }
}

@keyframes fadeAwayQuick {
    0% {
        opacity: 1;
        transform: scale(1)
    }

    100% {
        opacity: 0;
        transform: scale(0.7)
    }
}

.fade-away-quick {
    animation: fadeAwayQuick 4.5s ease forwards
}

@keyframes distantFade {
    0% {
        opacity: 1;
        transform: scale(1.4)
    }

    100% {
        opacity: 0;
        transform: scale(0.7)
    }
}

.distant {
    animation: distantFade var(--dur) ease forwards
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeOut {
    to {
        opacity: 0
    }
}

.fade-in {
    animation: fadeIn 1.2s ease forwards
}

.fade-out-fast {
    animation: fadeOut .4s ease forwards
}

@keyframes shrinkFadeIn {
    from {
        opacity: 0;
        transform: scale(1.6)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.shrink-fade-in {
    animation: shrinkFadeIn 3s ease forwards
}
