body {
    margin: 0;
    overflow: hidden;
}

canvas {
    display: block;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 24px;
}

/* Container fixed at bottom-right */
#planet-menu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4f46e5;
    /* Indigo-600 */
    box-shadow: 0 4px 12px rgb(79 70 229 / 0.5);
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1000;
    cursor: pointer;
}

/* Expanded state: move to center and become bigger */
#planet-menu.expanded {
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);
    width: 400px;
    height: 400px;
    border-radius: 1rem;
    background: #1e293b;
    /* Indigo-900 */
    cursor: default;
}

/* Hide toggle btn when expanded */
#planet-menu.expanded #menu-toggle {
    display: none;
}

/* Planet selector container */
.planet-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
    height: 100%;
    overflow-y: auto;
}

/* Initially hidden */
.hidden {
    display: none;
}

/* Planet buttons */
.planet-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #6366f1;
    /* Indigo-500 */
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 0 6px rgb(99 102 241 / 0.7);
    transition: background-color 0.3s ease;
}

.planet-btn:hover {
    background: #4338ca;
    /* Indigo-700 */
}

/* Planet detail area */
.planet-detail {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: #312e81;
    /* Indigo-800 */
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-y: auto;
    color: white;
    box-shadow: inset 0 0 15px rgb(99 102 241 / 0.8);
}

/* Add a close button inside detail */
.planet-detail-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    /* Red-500 */
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
}