*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#050816;
    color:white;
    overflow-x:hidden;
}

/* SPAZIO */

.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: radial-gradient(circle at top, #0b1b3a, #050816 70%);
}

.nebula {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,191,255,0.25), transparent 70%);
    filter: blur(40px);
    animation: float 10s infinite ease-in-out;
    z-index: -2;
}

@keyframes float {
    0% { transform: translate(0,0); }
    50% { transform: translate(80px, -60px); }
    100% { transform: translate(0,0); }
}

/* STELLE */

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%,100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* NAVBAR */

.navbar{
    width:100%;
    padding:20px 50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:fixed;
    top:0;
    left:0;
    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,0.08);
    z-index:999;
}

.logo{
    font-size:30px;
    font-weight:bold;
    color:#00bfff;
    text-shadow:0 0 15px #00bfff;
}

.nav-links{
    display:flex;
    gap:25px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    transition:0.3s;
}

.nav-links a:hover{
    color:#00bfff;
}

/* HERO */

.hero{
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    text-align:center;
}

.hero h1{
    font-size:95px;
    color:#00bfff;
    text-shadow:0 0 30px #00bfff;
}

.hero p{
    margin-top:20px;
    font-size:24px;
    color:#dbeafe;
}

.play-btn{
    margin-top:35px;
    padding:16px 40px;
    border:none;
    border-radius:14px;
    background:#00bfff;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 0 20px rgba(0,191,255,0.5);
}

.play-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 0 35px rgba(0,191,255,0.9);
}

/* MODALITÀ */

.modes{
    padding:100px 20px;
    text-align:center;
}

.modes h2{
    font-size:40px;
    margin-bottom:50px;
    color:#00bfff;
}

.modes-grid{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.mode-card{
    width:280px;
    padding:25px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(0,191,255,0.2);
    border-radius:15px;
    backdrop-filter:blur(10px);
    transition:0.3s;
}

.mode-card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 25px rgba(0,191,255,0.3);
}

.mode-card h3{
    margin-bottom:15px;
    color:#00bfff;
}

.mode-card p{
    color:#cbd5e1;
    font-size:14px;
}

/* MOBILE */

@media(max-width:768px){

    .hero h1{
        font-size:60px;
    }

    .nav-links{
        display:none;
    }

    .modes-grid{
        flex-direction:column;
        align-items:center;
    }

}

#copy-msg{
    display:block;
    font-size:14px;
    margin-top:10px;
    color:#00bfff;
}

.mode-card img{
    border-radius:10px;
    margin-bottom:10px;
    box-shadow:0 0 20px rgba(0,191,255,0.3);
}