#hz-world {
    position: fixed;
    inset: 0;
    z-index: 80000;
    display: none;
    flex-direction: column;
    background: #000;
    color: #8dffae;
    font-family: "Courier New", monospace;
}

#hz-world.open {
    display: flex;
}

.hz-world-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #174b29;
}

.hz-world-header strong {
    letter-spacing: 4px;
}

.hz-world-close {
    border: 1px solid #3f9d5c;
    color: #9affb5;
    background: transparent;
    padding: 8px 14px;
}

.hz-world-map {
    position: relative;
    flex: 1;
    min-height: 420px;
    overflow: hidden;
    background:
        linear-gradient(
            rgba(22, 82, 42, .15) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(22, 82, 42, .15) 1px,
            transparent 1px
        ),
        radial-gradient(
            ellipse at center,
            #06140b 0%,
            #000 72%
        );
    background-size:
        32px 32px,
        32px 32px,
        auto;
}

.hz-world-map::before {
    content: "GLOBAL OPERATIONS NETWORK";
    position: absolute;
    inset: 45% 0 auto;
    color: rgba(90, 255, 135, .05);
    font-size: clamp(18px, 6vw, 58px);
    letter-spacing: 8px;
    text-align: center;
}

.hz-world-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 1px solid #67ff94;
    border-radius: 50%;
    background: #06190d;
    box-shadow:
        0 0 0 5px rgba(80, 255, 130, .06),
        0 0 17px rgba(80, 255, 130, .4);
}

.hz-world-node::after {
    content: attr(data-id);
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #8dffae;
    font-size: 10px;
}

.hz-world-node.locked {
    border-color: #555;
    box-shadow: none;
    opacity: .45;
}

.hz-world-node.completed {
    background: #6cff96;
}

.hz-world-node.active {
    animation: hzWorldPulse 1.3s infinite;
}

.hz-world-details {
    min-height: 190px;
    padding: 17px;
    border-top: 1px solid #174b29;
    background: #020704;
}

.hz-world-details h3 {
    margin: 0 0 10px;
    color: #d9c38c;
    letter-spacing: 2px;
}

.hz-world-details p {
    margin: 5px 0;
    color: #75907d;
    font-size: 12px;
}

#hz-world-select {
    margin-top: 13px;
    padding: 10px 15px;
    border: 1px solid #48bd6b;
    color: #9affb5;
    background: #071a0d;
}

#hz-world-select:disabled {
    opacity: .35;
}

@keyframes hzWorldPulse {
    50% {
        box-shadow:
            0 0 0 12px rgba(80, 255, 130, 0),
            0 0 25px rgba(80, 255, 130, .8);
    }
}


/* HAKER ZIL FLAT WORLD MAP V071 */

#hz-world {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(13, 69, 31, 0.18),
            transparent 58%
        ),
        #000;
}

.hz-world-map {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(280px, 52vh, 560px);
    min-height: 280px;
    overflow: hidden;
    border-top: 1px solid rgba(91, 221, 130, 0.16);
    border-bottom: 1px solid rgba(91, 221, 130, 0.26);

    background-color: #010603;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 4px
        ),
        url("/world-map.svg?v=071");

    background-repeat:
        repeat,
        no-repeat;

    background-position:
        center,
        center;

    background-size:
        auto,
        contain;
}

.hz-world-map::before {
    content: "GLOBAL OPERATIONS NETWORK";
    position: absolute;
    z-index: 3;
    top: 13px;
    left: 18px;
    inset: 13px auto auto 18px;
    color: rgba(138, 255, 171, 0.58);
    font-size: 10px;
    letter-spacing: 3px;
    text-align: left;
    pointer-events: none;
}

.hz-world-map::after {
    content: "FLAT WORLD GRID // FICTIONAL INTELLIGENCE LAYER";
    position: absolute;
    z-index: 3;
    right: 17px;
    bottom: 12px;
    color: rgba(138, 255, 171, 0.34);
    font-size: 8px;
    letter-spacing: 2px;
    pointer-events: none;
}

.hz-world-node {
    z-index: 5;
    width: 16px;
    height: 16px;
}

.hz-world-node::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(103, 255, 148, 0.15);
    border-radius: 50%;
}

.hz-world-node.active::before {
    animation: hzMapRing 1.7s ease-out infinite;
}

.hz-world-details {
    position: relative;
    z-index: 6;
    flex: 1 1 auto;
    min-height: 175px;
    overflow-y: auto;
    background:
        linear-gradient(
            180deg,
            rgba(4, 18, 9, 0.96),
            rgba(0, 5, 2, 0.99)
        );
}

@keyframes hzMapRing {
    0% {
        transform: scale(0.7);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .hz-world-map {
        height: clamp(260px, 44vh, 390px);
        min-height: 260px;
        background-size:
            auto,
            100% auto;
    }

    .hz-world-map::before {
        top: 9px;
        left: 10px;
        font-size: 8px;
        letter-spacing: 2px;
    }

    .hz-world-map::after {
        right: 10px;
        bottom: 8px;
        font-size: 6px;
        letter-spacing: 1px;
    }

    .hz-world-node {
        width: 14px;
        height: 14px;
    }

    .hz-world-details {
        min-height: 205px;
    }
}
