.gamenexus-menu-map-viewport {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 72vh;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--wow-cyan) #07141e;
}

.gamenexus-menu-map-viewport:focus-visible {
    outline: 1px solid var(--wow-cyan);
    outline-offset: -1px;
}

.gamenexus-menu-map {
    --map-node-width: 180px;
    --map-branch-gap: 128px;
    position: relative;
    width: max-content;
    min-width: 100%;
    padding: 24px 12px;
    box-sizing: border-box;
    isolation: isolate;
}

.gamenexus-menu-map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.gamenexus-menu-map-lines path {
    fill: none;
    stroke: var(--wow-cyan);
    stroke-width: 1.5px;
    vector-effect: non-scaling-stroke;
}

.gamenexus-menu-map-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gamenexus-menu-map-branch {
    display: flex;
    align-items: center;
    gap: var(--map-branch-gap);
    margin: 0;
    padding: 0;
}

.gamenexus-menu-map-node {
    position: relative;
    z-index: 1;
    display: block;
    flex: 0 0 var(--map-node-width);
    width: var(--map-node-width);
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid #2a3a47;
    background: #07141e;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
}

.gamenexus-menu-map-node.is-root {
    border-color: var(--wow-cyan);
    color: var(--text);
    font-weight: 800;
}

a.gamenexus-menu-map-node {
    border-color: var(--wow-cyan);
    color: var(--wow-cyan);
}

a.gamenexus-menu-map-node:hover,
a.gamenexus-menu-map-node:focus-visible {
    background: #103047;
    color: #f2f5f7;
    text-decoration: none;
    outline: 2px solid var(--wow-cyan);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .gamenexus-menu-map {
        --map-node-width: 150px;
        --map-branch-gap: 100px;
        padding: 16px 8px;
    }
}
