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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: "Playfair Display", serif;
}

#app.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Background image */
#app.scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./bg.jpg") center center / cover no-repeat;
    z-index: 0;
    transform: scale(1.02);
}

/* Cinematic vignette (global) */
#app.scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 22%,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(10, 25, 55, 0.18) 45%,
            rgba(0, 0, 0, 0.62) 100%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.06) 0%,
            rgba(0, 0, 0, 0.20) 55%,
            rgba(0, 0, 0, 0.36) 100%);
}

/* ============================
     BUTTERFLIES CANVAS
  ============================ */
#app canvas {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 6 !important;
    pointer-events: none !important;

    background: transparent !important;
    mix-blend-mode: screen;
    opacity: 1;

    filter: hue-rotate(210deg) saturate(2.25) contrast(1.15) brightness(1.08);
}

@media (max-width: 520px) {
    #app canvas {
        mix-blend-mode: lighten;
        filter: hue-rotate(210deg) saturate(2.0) contrast(1.12) brightness(1.06);
    }
}

/* ============================
     TEXT (NO BOX, BUT ULTRA-READABLE)
  ============================ */
.overlay-text {
    position: absolute;
    z-index: 20;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;

    width: min(980px, 92vw);
    padding: 8px 12px;

    animation: floatIn 2.0s ease forwards;
}

/* ✅ Shadow veil behind text area (NOT a box)
     It’s a soft mist/gradient that makes text readable on clouds. */
.overlay-text::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: min(980px, 96vw);
    height: 240px;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(closest-side at 50% 50%,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.36) 52%,
            rgba(0, 0, 0, 0.00) 100%);

    filter: blur(14px);
    opacity: 0.92;
}

/* Title */
.overlay-text h1 {
    font-weight: 600;
    font-size: clamp(2.3rem, 4.6vw, 4.3rem);
    letter-spacing: 0.11em;
    line-height: 1.06;
    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.99);

    /* ✅ Thin stroke makes white readable on bright sky */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.40);

    /* ✅ Deep cinematic shadows + cool glow */
    text-shadow:
        0 6px 28px rgba(0, 0, 0, 0.95),
        0 2px 0 rgba(0, 0, 0, 0.45),
        0 0 30px rgba(120, 185, 255, 0.34),
        0 0 90px rgba(80, 140, 255, 0.22);
}

/* Subtitle */
.overlay-text p {
    font-weight: 400;
    font-size: clamp(1.06rem, 1.45vw, 1.42rem);
    line-height: 1.95;
    font-style: italic;

    color: rgba(240, 248, 255, 0.98);

    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.32);

    text-shadow:
        0 5px 22px rgba(0, 0, 0, 0.92),
        0 1px 0 rgba(0, 0, 0, 0.38),
        0 0 20px rgba(140, 205, 255, 0.22),
        0 0 60px rgba(70, 120, 255, 0.16);
}

/* Entry animation */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px) scale(0.99);
        filter: blur(0.6px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
        filter: blur(0px);
    }
}