.portal-nav {
    position: fixed;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.portal-hit {
    position: absolute;
    left: 0;
    top: 0;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: transparent;
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.cursor-free .portal-hit,
body.touch-mode .portal-hit {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

body.cursor-free .portal-hit:hover,
body.cursor-free .portal-hit:focus-visible,
body.touch-mode .portal-hit:focus-visible {
    border-color: rgba(255,248,231,0.32);
    background: radial-gradient(circle, rgba(255,248,231,0.08), transparent 64%);
    box-shadow: 0 0 32px rgba(205,222,255,0.13);
    outline: none;
}

body.panel-open .portal-hit {
    opacity: 0;
    pointer-events: none;
}

.star-nav {
    position: fixed;
    inset: 0;
    z-index: 19;
    pointer-events: none;
}

.star-hit {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: rgba(244,247,255,0.9);
    opacity: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

body.cursor-free.panel-open .star-hit,
body.touch-mode.panel-open .star-hit {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.star-hit:hover,
.star-hit:focus-visible,
.star-hit.is-selected {
    border-color: rgba(255,248,231,0.4);
    background: radial-gradient(circle, rgba(255,248,231,0.11), transparent 65%);
    box-shadow: 0 0 38px rgba(205,222,255,0.18);
    outline: none;
}

.star-hit.has-content::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 15px;
    border: 1px solid rgba(220,232,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.star-hit-copy {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    width: max-content;
    max-width: min(250px, 34vw);
    padding: 7px 9px 6px;
    border: 1px solid rgba(224,234,255,0.14);
    border-radius: 3px;
    background: rgba(5,8,17,0.78);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translate(5px, -50%);
    transition: opacity 170ms ease, transform 170ms ease;
    pointer-events: none;
    text-align: left;
}

body.panel-left .star-hit-copy {
    left: auto;
    right: calc(100% + 8px);
    transform: translate(-5px, -50%);
    text-align: right;
}

.star-hit:hover .star-hit-copy,
.star-hit:focus-visible .star-hit-copy,
.star-hit.is-selected .star-hit-copy {
    opacity: 1;
    transform: translate(0, -50%);
}

.star-hit-copy strong,
.star-hit-copy span {
    display: block;
}

.star-hit-copy strong {
    font-family: var(--ui);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.star-hit-copy span {
    margin-top: 2px;
    color: rgba(226,233,247,0.58);
    font-family: var(--mono);
    font-size: 0.54rem;
    line-height: 1.35;
}

body.view-locked,
body.view-locked * {
    cursor: none !important;
}

body.cursor-free {
    cursor: auto;
}
