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

body {
    margin: 0;
    overflow: hidden;
    background-color: #050510; /* Deep twilight */
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    /* Prevent pull-to-refresh on mobile */
    touch-action: none; 
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* UI Overlay (Mobile First) */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(10,5,20,0.8) 0%, rgba(5,5,15,1) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 2s ease-in-out, visibility 2s;
    padding: 20px;
}

#ui-layer.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pre-prompt {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: #d8b4e2;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInSlideUp 2s ease-out 0.5s forwards;
}

.main-name {
    font-family: 'Playfair Display', serif;
    font-size: 5rem; /* Massive on mobile */
    font-style: italic;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 180, 200, 0.8), 0 0 60px rgba(255, 180, 200, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInSlideUp 2s ease-out 1.5s forwards;
    -webkit-tap-highlight-color: transparent;
}

.main-name:active,
.main-name:hover {
    text-shadow: 0 0 50px rgba(255, 200, 220, 1), 0 0 80px rgba(255, 200, 220, 0.6);
    transform: scale(1.05);
}

.subtitle {
    font-size: 0.95rem; /* Scaled for mobile */
    letter-spacing: 2px;
    color: #fce4ec;
    text-align: center;
    opacity: 0;
    animation: fadeInSlideUp 2s ease-out 2.5s forwards;
}

.pulse-text {
    animation: fadeInSlideUp 2s ease-out 2.5s forwards, pulseOpacity 3s infinite 4.5s;
}

/* Keyframes for the cinematic entrance */
@keyframes fadeInSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulseOpacity {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Tablet & Desktop Adjustments */
@media (min-width: 768px) {
    .pre-prompt {
        font-size: 1.8rem;
        letter-spacing: 5px;
    }
    .main-name {
        font-size: 8rem;
    }
    .subtitle {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }
}