:root {
    --bg: #08080c;
    --text: #f0ece6;
    --text-dim: #5a5a6e;
    --accent: #c4a882;
    --accent-glow: rgba(196, 168, 130, 0.5);
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-display);
    height: 100vh;
    overflow: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

#constellation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
}

.viewport {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.top-bar {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-dim);
}

.dot {
    color: var(--accent);
}

.clock {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.orbit-system {
    position: relative;
    width: 500px;
    height: 500px;
    flex-shrink: 0;
    overflow: visible;
    z-index: 2;
}

.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.core-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    filter: contrast(1.1);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s;
}

.core-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px var(--accent-glow);
}

.core-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: breathe 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.ring-1 {
    width: 320px;
    height: 320px;
    margin-top: -160px;
    margin-left: -160px;
    animation: spin-ring 25s linear infinite;
}

.ring-2 {
    width: 460px;
    height: 460px;
    margin-top: -230px;
    margin-left: -230px;
    animation: spin-ring 40s linear infinite reverse;
    border-color: rgba(255, 255, 255, 0.04);
}

@keyframes spin-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.orbit-node {
    position: absolute;
    text-decoration: none;
    width: 22px;
    height: 22px;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.node-dot {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow), 0 0 35px rgba(196, 168, 130, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 2;
}

.node-label {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text);
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.orbit-node:hover .node-dot {
    transform: scale(1.5);
    box-shadow: 0 0 25px var(--accent-glow), 0 0 50px var(--accent-glow);
}

.orbit-node:hover .node-label {
    opacity: 1;
    color: var(--accent);
}

.node-1 {
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.node-2 {
    top: 75%;
    left: 93.3%;
    transform: translate(-50%, -50%);
}

.node-3 {
    top: 75%;
    left: 6.7%;
    transform: translate(-50%, -50%);
}

.node-4 {
    top: 25%;
    left: 93.3%;
    transform: translate(-50%, -50%);
}

.node-5 {
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.node-6 {
    top: 25%;
    left: 6.7%;
    transform: translate(-50%, -50%);
}

.bottom-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin-top: 1.5rem;
    gap: 2rem;
}

.name-text {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 60%, var(--text-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: shimmer 6s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.tagline {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
    line-height: 1.5;
}

.id-center {
    display: flex;
    align-items: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 14px;
    border-radius: 100px;
}

.status-dot-live {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.id-right {
    display: flex;
    gap: 2rem;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sv {
    font-size: 1.1rem;
    font-weight: 700;
}

.sl {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.music-widget {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.mw-disc {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: conic-gradient(#1a1a1a, #2a2a2a, #1a1a1a, #222, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.mw-disc.spinning {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mw-disc-inner {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
}

.mw-info {
    display: flex;
    flex-direction: column;
}

.mw-track {
    font-size: 0.78rem;
    font-weight: 600;
}

.mw-artist {
    font-size: 0.62rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.mw-playlist-toggle {
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dim);
    padding: 4px 8px;
    transition: color 0.3s;
    user-select: none;
}

.mw-playlist-toggle:hover {
    color: var(--text);
}

.mw-playlist {
    position: absolute;
    bottom: 50px;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    min-width: 200px;
    display: none;
    backdrop-filter: blur(20px);
}

.mw-playlist.open {
    display: block;
}

.pl-item {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s;
}

.pl-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.pl-item.active {
    color: var(--accent);
    font-weight: 700;
}

.pl-item.active::before {
    content: '▶ ';
    font-size: 0.55rem;
}

.pl-item.faded {
    opacity: 0.3;
}

.anim-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.anim-fade.visible {
    opacity: 1;
}

.anim-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-scale {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anim-scale.visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 700px) {
    .orbit-system {
        width: 320px;
        height: 320px;
    }

    .ring-1 {
        width: 200px;
        height: 200px;
        margin-top: -100px;
        margin-left: -100px;
    }

    .ring-2 {
        width: 300px;
        height: 300px;
        margin-top: -150px;
        margin-left: -150px;
    }

    .core-avatar {
        width: 80px;
        height: 80px;
    }

    .core-glow {
        width: 110px;
        height: 110px;
    }

    .node-label {
        font-size: 0.65rem;
    }

    .bottom-identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .name-text {
        font-size: 1.6rem;
    }
}