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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0a0a;
    font-family: 'Arial', sans-serif;
    color: #fff;
}

.wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.wallpaper.active {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 120px rgba(0,0,0,0.8);
    z-index: 1;
    pointer-events: none;
}

.beam {
    position: fixed;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(255,255,255,0.03) 100%);
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

#textRain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.main {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5vw;
}

.title {
    font-size: clamp(42px, 8vw, 150px);
    font-weight: 900;
    line-height: 1.08;
    background: linear-gradient(270deg, #ff6ec7, #ffb86b, #fff56b, #7cffb2, #59d9ff, #c17cff, #ff6ec7);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(255, 120, 220, 0.8))
            drop-shadow(0 0 32px rgba(180, 120, 255, 0.7))
            drop-shadow(0 0 100px rgba(120, 60, 255, 0.5));
    animation: rainbow 5s linear infinite, floating 3s ease-in-out infinite;
}

.subtitle {
    margin-top: 18px;
    font-size: clamp(16px, 2vw, 30px);
    opacity: 0.82;
    letter-spacing: 0.12em;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

@keyframes rainbow {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 400%;
    }
}

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

.hud {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 6;
    text-align: right;
}

#clock {
    font-size: clamp(22px, 2vw, 38px);
    font-weight: 700;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

#date {
    opacity: 0.7;
    margin-top: 6px;
}

.mouseGlow {
    position: fixed;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

@media (orientation: portrait) {
    .title {
        font-size: clamp(34px, 10vw, 82px);
    }
}
