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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #030817;
    font-family: Tahoma, sans-serif;
}

body {
    position: relative;
    color: white;
}

#sky {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.nebula {
    position: fixed;
    inset: -20%;
    z-index: 0;
    background:
        radial-gradient(ellipse at 25% 35%, rgba(46, 61, 132, .25), transparent 45%),
        radial-gradient(ellipse at 75% 60%, rgba(105, 35, 106, .16), transparent 40%),
        radial-gradient(ellipse at 50% 10%, rgba(28, 83, 130, .16), transparent 45%);
    filter: blur(35px);
    animation: nebulaMove 18s ease-in-out infinite alternate;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.55) 100%);
}

.scene {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro {
    position: absolute;
    top: 12%;
    text-align: center;
    animation: introFade 5s ease forwards;
}

.intro span {
    font-size: 10px;
    letter-spacing: 5px;
    color: #aebde7;
}

.intro h1 {
    margin-top: 22px;
    font-size: clamp(23px, 5vw, 38px);
    font-weight: 300;
    text-shadow: 0 0 25px rgba(155,180,255,.5);
}

.intro p {
    margin-top: 15px;
    color: #b8c5e7;
    font-size: 14px;
}

.heart-stage {
    position: relative;
    width: min(650px, 100vw);
    height: min(650px, 100vw);
    display: flex;
    align-items: center;
    justify-content: center;
}

#heart {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 70%;
    opacity: 0;
    text-align: center;
    animation: messageReveal 2s ease 7s forwards;
    pointer-events: none;
}

.message span {
    font-size: clamp(24px, 6vw, 42px);
    color: #fff0f3;
    text-shadow: 0 0 20px #ff426d;
}

.message strong {
    margin-top: 8px;
    font-size: clamp(20px, 5vw, 34px);
    font-weight: 400;
    color: #fff;
    text-shadow: 0 0 20px #ff527c, 0 0 45px #ff164f;
}

.message small {
    margin-top: 15px;
    color: #ffe1e9;
    font-size: clamp(10px, 2.5vw, 14px);
}

@keyframes nebulaMove {
    from { transform: translate(-2%, -1%) scale(1); }
    to { transform: translate(2%, 2%) scale(1.12); }
}

@keyframes introFade {
    0%, 65% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes messageReveal {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 1; filter: blur(0); }
}

/* MOBILE OPTIMIZATION */
html, body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

.scene {
    width: 100vw;
    height: 100dvh;
    min-height: 100%;
}

.heart-stage {
    width: min(100vw, 650px);
    height: min(100vw, 650px);
    flex-shrink: 0;
}

#heart {
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 600px) {
    .heart-stage {
        width: 100vw;
        height: 100vw;
        max-height: 85dvh;
    }

    .message {
        width: 82%;
    }

    .message span {
        font-size: 29px;
    }

    .message strong {
        font-size: 25px;
    }

    .intro {
        top: 15%;
    }
}

