*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    overflow: hidden;
    background: #020b18;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #f0f4ff;
}

#space {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    gap: 0;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeUp .8s .1s both;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #f0b429;
    border: 1px solid rgba(240, 180, 41, .3);
    padding: .3rem 1.1rem;
    border-radius: 999px;
    margin-bottom: .9rem;
    background: rgba(240, 180, 41, .07);
}

.site-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.05;
    background: linear-gradient(135deg, #f0f4ff 40%, #f0b429 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-sub {
    font-size: .95rem;
    color: rgba(240, 244, 255, .45);
    font-weight: 300;
    margin-top: .4rem;
    letter-spacing: .04em;
}

.orbit-wrap {
    position: relative;
    width: 100%;
    max-width: 780px;
    height: 340px;
    perspective: 900px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.orbit-wrap:active {
    cursor: grabbing;
}

.orbit-wrap.stopped {
    cursor: default;
}

.orbit-ring {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    height: 80px;
    border: 1px solid rgba(240, 180, 41, .12);
    border-radius: 50%;
    pointer-events: none;
}

.planets {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planet-slot {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform-style: preserve-3d;
    transition: z-index 0s;
}

.planet-canvas-wrap {
    position: relative;
    border-radius: 50%;
    overflow: visible;
    filter: drop-shadow(0 0 0px transparent);
    transition: filter .4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planet-canvas-wrap.active {
    filter: drop-shadow(0 0 22px var(--glow));
}

canvas.planet {
    border-radius: 50%;
    display: block;
    cursor: pointer;
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
    width: 100%;
    height: 100%;
}

canvas.planet:hover {
    transform: scale(1.07);
}

.stopped canvas.planet:hover {
    transform: scale(1.12);
}

.atmo {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--glow);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.planet-label {
    text-align: center;
    pointer-events: none;
    transition: opacity .5s;
}

.label-name {
    font-size: 14px;
    font-weight: 600;
    color: #f0f4ff;
    letter-spacing: .02em;
}

.dots {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin-top: 1.4rem;
    animation: fadeUp .7s .5s both;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(240, 244, 255, .2);
    cursor: pointer;
    transition: all .3s;
    border: none;
    padding: 0;
}

.dot.on {
    width: 20px;
    border-radius: 4px;
    background: #f0b429;
}

.nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: .9rem;
    animation: fadeUp .7s .6s both;
}

.nav-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(240, 244, 255, .18);
    background: rgba(240, 244, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: rgba(240, 244, 255, .6);
    transition: all .2s;
}

.nav-btn:hover {
    background: rgba(240, 180, 41, .12);
    border-color: rgba(240, 180, 41, .4);
    color: #f0b429;
}

.nav-hint {
    font-size: 11px;
    color: rgba(240, 244, 255, .25);
    letter-spacing: .06em;
}

.nav-hint.stopped-hint {
    color: rgba(240, 180, 41, .5);
}

.detail {
    width: 100%;
    max-width: 480px;
    margin-top: 1.8rem;
    background: rgba(15, 28, 58, .72);
    border: 1px solid rgba(240, 180, 41, .15);
    border-radius: 1.2rem;
    padding: 1.3rem 1.6rem;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeUp .7s .7s both;
    min-height: 70px;
    transition: border-color .3s;
}

.detail.stopped {
    border-color: rgba(240, 180, 41, .5);
    cursor: pointer;
}

.detail-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.detail-text .dt {
    font-size: 15px;
    font-weight: 600;
    color: #f0f4ff;
}

.detail-text .dd {
    font-size: 12px;
    color: rgba(240, 244, 255, .45);
    margin-top: 3px;
    line-height: 1.5;
}

.detail-link {
    font-size: 11px;
    color: #f0b429;
    margin-top: 5px;
    display: none;
    cursor: pointer;
}

.detail.stopped .detail-link {
    display: block;
}

.resume-btn {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
    background: rgba(240, 180, 41, .12);
    border: 1px solid rgba(240, 180, 41, .3);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: 12px;
    color: #f0b429;
    cursor: pointer;
    transition: all .2s;
}

.resume-btn:hover {
    background: rgba(240, 180, 41, .22);
}

.detail.stopped .resume-btn {
    display: flex;
}

.footer {
    margin-top: 2rem;
    font-size: 11px;
    color: rgba(240, 244, 255, .18);
    letter-spacing: .08em;
    animation: fadeUp .7s .8s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}