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

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

header h1 {
    font-size: 3rem;
}

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

/* Cosmic Objects */
.object {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: float 7s ease-in-out infinite;
    transition: 0.4s;
    font-weight: bold;
}

.object:hover {
    transform: scale(1.25);
    box-shadow: 0 0 45px rgba(0,255,255,0.9);
}

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

/* Types */
.galaxy {
    background: radial-gradient(circle, #8a2be2, #2b004f);
    top: 15%;
    left: 10%;
}

.blackhole {
    background: radial-gradient(circle, #000, #111);
    box-shadow: inset 0 0 25px #00f6ff;
    top: 40%;
    left: 45%;
}

.nebula {
    background: radial-gradient(circle, #ff0055, #2a0012);
    top: 20%;
    right: 10%;
}

.star {
    background: radial-gradient(circle, #fff5cc, #ff9800);
    bottom: 18%;
    left: 25%;
}

.planet {
    background: radial-gradient(circle, #4facfe, #003b7a);
    bottom: 15%;
    right: 30%;
}

/* 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 ease;
    overflow-y: auto;
}

.panel.active {
    right: 0;
}

.panel h2 {
    color: #00f6ff;
}

.info-block {
    margin-top: 25px;
}

.info-block h3 {
    color: #ffd700;
}

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