html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0c1426;
    font-family: Arial, sans-serif;
}

#gameMapApp {
    position: relative;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at top, rgba(156, 118, 72, 0.22), transparent 45%),
        linear-gradient(180deg, #6a472b 0%, #4d331d 100%);
}

#gameMapCanvas,
#gameMapOverlay {
    position: absolute;
    inset: 0;
}

#gameMapCanvas {
    filter: none;
    cursor: crosshair;
}

#gameMapOverlay {
    pointer-events: none;
}

#gameMapTint,
#gameMapGrid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#gameMapTint {
    background: transparent;
    mix-blend-mode: normal;
}

#gameMapGrid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.1;
}

#gameMapHud,
#gameMapLegend {
    position: absolute;
    z-index: 3;
    backdrop-filter: blur(16px);
    background: rgba(7, 14, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    color: #edf3ff;
}

#gameMapHud {
    top: 24px;
    left: 24px;
    width: 340px;
    padding: 20px;
    border-radius: 20px;
}

#gameMapBrand {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(79, 138, 255, 0.2);
    color: #b8d2ff;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#gameMapTitle {
    margin-top: 14px;
    color: #ffffff;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 700;
}

#gameMapSubtitle,
#gameMapHint,
#gameMapStatus,
#gameMapCoords {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}

#gameMapSubtitle,
#gameMapHint {
    color: #cad4e8;
}

#gameMapStatus,
#gameMapCoords {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

#gameMapStatus {
    color: #ffffff;
}

#gameMapCoords {
    color: #b8d2ff;
    font-family: "Courier New", monospace;
    font-size: 13px;
}

#gameMapLegend {
    right: 24px;
    bottom: 24px;
    min-width: 220px;
    padding: 16px;
    border-radius: 18px;
}

.gameMapLegendItem {
    display: flex;
    align-items: center;
}

.gameMapLegendItem + .gameMapLegendItem {
    margin-top: 10px;
}

.gameMapLegendSwatch {
    width: 14px;
    height: 14px;
    margin-right: 10px;
    border-radius: 999px;
}

.gameMapLegendSwatchRoad {
    background: #ffb85c;
}

.gameMapLegendSwatchGreen {
    background: #59d290;
}

.gameMapLegendSwatchBuilding {
    background: #7e95ba;
}

.gameMapLegendText {
    color: #edf3ff;
    font-size: 13px;
}

.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-top-right {
    z-index: 2;
}

.maplibregl-popup-content {
    background: rgba(7, 14, 26, 0.94);
    color: #edf3ff;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.gameMapPlayerMarker {
    position: relative;
    width: 28px;
    height: 28px;
}

.gameMapPlayerShadow,
.gameMapPlayerBody,
.gameMapPlayerHead {
    position: absolute;
    border-radius: 999px;
}

.gameMapPlayerShadow {
    left: 5px;
    right: 5px;
    bottom: 2px;
    height: 8px;
    background: rgba(16, 18, 20, 0.3);
}

.gameMapPlayerBody {
    left: 5px;
    top: 10px;
    width: 18px;
    height: 14px;
    background: #47a9ff;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
}

.gameMapPlayerHead {
    left: 9px;
    top: 2px;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 3px solid #47a9ff;
}

.gameMapTreeMarker {
    position: relative;
    width: 34px;
    height: 34px;
}

.gameMapTreeShadow,
.gameMapTreeLeafA,
.gameMapTreeLeafB,
.gameMapTreeLeafC,
.gameMapTreeLeafD {
    position: absolute;
}

.gameMapTreeShadow {
    inset: 8px 6px 4px 6px;
    background: rgba(20, 45, 20, 0.18);
    border-radius: 999px;
}

.gameMapTreeLeafA,
.gameMapTreeLeafB,
.gameMapTreeLeafC,
.gameMapTreeLeafD {
    border-radius: 999px;
    border: 2px solid rgba(23, 79, 31, 0.2);
}

.gameMapTreeLeafA {
    top: 6px;
    left: 5px;
    width: 18px;
    height: 18px;
    background: #5fd86d;
    z-index: 2;
}

.gameMapTreeLeafB {
    top: 3px;
    left: 13px;
    width: 16px;
    height: 16px;
    background: #8deb72;
    z-index: 3;
}

.gameMapTreeLeafC {
    top: 13px;
    left: 10px;
    width: 17px;
    height: 17px;
    background: #40bf58;
    z-index: 3;
}

.gameMapTreeLeafD {
    top: 10px;
    left: 1px;
    width: 14px;
    height: 14px;
    background: #73df67;
    z-index: 4;
}

@keyframes gameMapMarkerPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.95;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

.gameMapPopupTitle {
    font-size: 14px;
    font-weight: 700;
}

.gameMapPopupText {
    margin-top: 6px;
    color: #cad4e8;
    font-size: 12px;
    line-height: 1.45;
}
