::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

* {
    scrollbar-width: none;
}

body {
    margin: 0;
    overflow: hidden;
    background: #000;
    touch-action: none;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    user-select: none;
}

#viewport {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    touch-action: none;
}


#world {
    position: absolute;
    transform-origin: 0 0;
    will-change: transform;
}

#world.dragging {
    transition: none;
}

.tile {
    width: 256px;
    height: 256px;
    position: absolute;
    opacity: 0;
    transition: opacity .5s ease;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.marker {
    position: absolute;
    background: #fff;
    border: 3px solid #00cc66;
    color: #00cc66;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    scale: 1.35;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 10;
    translate: -50% -50% 0; 
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: top 2s linear, left 2s linear, filter 0.5s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

.marker.special {
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 215, 0, 0.7),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 35px rgba(255, 215, 0, 0.3);
}

.marker.hidden {
    opacity: 0;
    pointer-events: none;
}

.marker.zoom-out {
    border-radius: 50%;
    padding: 0;
    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    line-height: 1;
    border: 1px solid #00cc66;
}

.marker.hover {
    filter: brightness(1.05) saturate(1.2);
    z-index: 20;
}

.marker.selected::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid #00cc66;
    border-radius: 50%;
    opacity: 0.8;
    animation: pulse 1.4s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    70% {
        opacity: 0.2;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}
.marker.selected {
    transform: translate(-50%, -50%) scale(1.35);
    z-index: 999;

    box-shadow:
        0 0 0 6px rgba(255,255,255,0.15),
        0 0 25px rgba(0, 204, 102, 0.6),
        0 0 60px rgba(0, 204, 102, 0.35);

    filter: brightness(1.15) saturate(1.2);

    animation: markerPop 0.35s cubic-bezier(.2,.9,.2,1), markerPulse 1.6s ease-in-out infinite;
}

.stop-marker {
    position: absolute;
    width: 12px;
    height: 12px;

    background: rgba(255, 255, 255, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.25);

    backdrop-filter: blur(12px) saturate(220%);
    -webkit-backdrop-filter: blur(12px) saturate(220%);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 700;
    color: #ebebeb;

    box-shadow:
        inset 0 0 6px rgba(255,255,255,0.12),
        0 0 8px rgba(0,0,0,0.15);

    z-index: 6;
    pointer-events: none;

    transform: translate(-50%, -50%);
    transform-origin: center;

    transition: left 0.2s ease, top 0.2s ease;
}

.stop-marker.current {
    background: rgba(0, 128, 255, 0.774);
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    color: #fff;
}

.player-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff3333;
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 1000;
    cursor: pointer;
    box-sizing: border-box;

    transform-origin: center center;
    will-change: transform, left, top;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.player-marker span {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
}

.player-marker:hover span {
    opacity: 1;
    visibility: visible;
}