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

body {
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page {
    text-align: center;
    width: 100%;
    padding: 0 24px;
}

.title-wrap {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 1.4;
    position: relative;
    display: inline-block;
    white-space: nowrap;

    /* Text with sweeping golden gradient — dark base, bright sweep */
    background: linear-gradient(90deg,
        #2A1F0A 0%,
        #2A1F0A 35%,
        #8B6914 40%,
        #DAA520 44%,
        #FFD700 47%,
        #FFFDE8 50%,
        #FFD700 53%,
        #DAA520 56%,
        #8B6914 60%,
        #2A1F0A 65%,
        #2A1F0A 100%
    );
    background-size: 250% 100%;
    background-position: var(--sweep, 100%) 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtle ambient glow */
.title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    text-shadow:
        0 0 40px rgba(218, 165, 32, 0.05),
        0 0 80px rgba(218, 165, 32, 0.03);
    z-index: -2;
    pointer-events: none;
}

/* Sweeping golden glow behind the text */
.title::after {
    content: attr(data-text);
    position: absolute;
    top: -40px;
    left: -100px;
    padding: 40px 100px;
    color: transparent;
    text-shadow:
        0 0 8px rgba(255, 248, 180, 1),
        0 0 20px rgba(255, 215, 0, 1),
        0 0 40px rgba(255, 215, 0, 0.8),
        0 0 80px rgba(255, 200, 0, 0.5),
        0 0 140px rgba(218, 165, 32, 0.3),
        0 0 200px rgba(218, 165, 32, 0.15);
    z-index: -1;
    pointer-events: none;

    /*
     * Two mask layers composited together:
     * 1) Fixed edge fade — always softens glow at all 4 edges
     * 2) Moving sweep spotlight — the animated golden hotspot
     * Composite: intersect — glow only shows where BOTH allow it
     */
    -webkit-mask-image:
        /* Edge fade (fixed) */
        linear-gradient(to right, transparent, white 12%, white 88%, transparent),
        /* Sweep spotlight (animated) */
        linear-gradient(90deg,
            transparent 0%,
            transparent 34%,
            rgba(255,255,255,0.15) 40%,
            rgba(255,255,255,0.6) 45%,
            white 48%,
            white 52%,
            rgba(255,255,255,0.6) 55%,
            rgba(255,255,255,0.15) 60%,
            transparent 66%,
            transparent 100%
        );
    -webkit-mask-size: 100% 100%, var(--mask-size, 250%) 100%;
    -webkit-mask-position: 0 0, var(--mask-pos, 100%) 0;
    -webkit-mask-composite: source-in;

    mask-image:
        linear-gradient(to right, transparent, white 12%, white 88%, transparent),
        linear-gradient(90deg,
            transparent 0%,
            transparent 34%,
            rgba(255,255,255,0.15) 40%,
            rgba(255,255,255,0.6) 45%,
            white 48%,
            white 52%,
            rgba(255,255,255,0.6) 55%,
            rgba(255,255,255,0.15) 60%,
            transparent 66%,
            transparent 100%
        );
    mask-size: 100% 100%, var(--mask-size, 250%) 100%;
    mask-position: 0 0, var(--mask-pos, 100%) 0;
    mask-composite: intersect;
}

/* Golden light orb that travels with the sweep */
.glow-orb {
    position: absolute;
    top: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 250, 220, 0.5) 0%,
        rgba(255, 215, 0, 0.35) 25%,
        rgba(218, 165, 32, 0.12) 50%,
        transparent 75%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: none;
}
