body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #020312, #000);
    color: #fff;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
}

header h1 {
    font-size: 3rem;
}

/* Space */
.space {
    position: relative;
    height: 85vh;
}

/* Planets */
.planet {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.4s, box-shadow 0.4s;
}

.planet:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(255,255,255,0.8);
}

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

/* Sizes & Colors */
.sun { width: 160px; height: 160px; background: radial-gradient(circle, #fff700, #ff8c00); top: 40%; left: 5%; }
.mercury { width: 40px; height: 40px; background: #aaa; top: 20%; left: 25%; }
.venus { width: 55px; height: 55px; background: #e0b05c; top: 50%; left: 30%; }
.earth { width: 60px; height: 60px; background: #2a9df4; top: 30%; left: 37%; }
.mars { width: 50px; height: 50px; background: #c1440e; top: 65%; left: 42%; }
.jupiter { width: 110px; height: 110px; background: #d9b38c; top: 20%; left: 55%; }
.saturn { width: 95px; height: 95px; background: #f4e4b2; top: 55%; left: 62%; }
.uranus { width: 75px; height: 75px; background: #9fe3e3; top: 30%; left: 72%; }
.neptune { width: 70px; height: 70px; background: #3b4cc0; top: 60%; left: 80%; }

/* Info Panel */
.panel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 420px;
    height: 100%;
    background: rgba(10,10,25,0.95);
    backdrop-filter: blur(12px);
    padding: 30px;
    transition: right 0.5s;
    overflow-y: auto;
}

.panel.active {
    right: 0;
}

.panel h2 {
    color: #ffd700;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}