/* --- YOUR ORIGINAL BASE STYLES --- */
body {
    margin: 0; 
    padding: 0;  
    background-color: #070B24;
    overflow: hidden; 
    position: relative;
    min-height: 100vh;
}
.titlee {
    display: inline-block; 
}
h1 {
    font-family: "Nova Cut", system-ui;
    color: #E7E2CE;
    font-weight: 400;
    font-style: normal;
    font-size: 160px;
    margin: 0; 
    padding-left: 60px; 
    padding-top: 40px;
    position: relative;
    z-index: 10;
}
h2 {
    font-family: "Nova Cut", system-ui;
    color: #E7E2CE;
    font-weight: 400;
    font-style: normal;
    font-size: 128px;
    margin: 0; 
    padding-left: 80px;
    position: relative;
    z-index: 10;
}
#buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    margin-left: 70px;
    position: relative;
    z-index: 10;
}
.menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 600px;
    height: 130px;
    text-align: center;
    text-decoration: none;
    font-family: "Nova Round", system-ui;
    color: #E7E2CE;
    font-size: 38px;
    letter-spacing: 3px;
    border-image-source: url('../media/main_borders.png');
    border-image-slice: 30 60 50 60 fill;
    border-image-width: 30px 60px 50px 60px;
    border-image-repeat: stretch;
    position: relative;
}

.menu-btn:hover {
    filter: brightness(1.4);
    animation: float 1.5s ease-in-out infinite;
}

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

/* --- BACKGROUND TWINKLE STARS --- */
.stars {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
                radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
                radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    animation: starTwinkle 8s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

#space-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* --- OPTIMIZED OVERLAY TO PREVENT CLIPPING BOUNDARIES --- */
#planet-3d-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
}