:root { --panel: rgba(18, 16, 12, 0.94); --line: rgba(216, 168, 79, 0.24); --gold: #d8a84f; --text: #f3ead8; --muted: #a99d89; --bg: #080806; --brand-title-font: "Cinzel", Georgia, "Times New Roman", serif; --brand-description-font: "Marcellus", Georgia, "Times New Roman", serif; --sidebar-width: 320px; --sidebar-button-size: 10px; --sidebar-category-group-size: 12px; --sidebar-category-item-size: 12px; --sidebar-icon-size: 22px; --sidebar-icon-wrap-size: 34px; --sidebar-sprite-visible-size: 30px; }
    * { box-sizing: border-box; }
    html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: Georgia, "Times New Roman", serif; }
    body { display: grid; grid-template-columns: var(--sidebar-width) 1fr; overflow: hidden; transition: grid-template-columns .22s ease; }
    body.sidebar-collapsed { grid-template-columns: 0 1fr; }
    body.embed-mode { grid-template-columns: 1fr; cursor: pointer; }
    body.embed-mode .sidebar, body.embed-mode .topbar, body.embed-mode .sidebar-toggle { display: none; }
    .sidebar { height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: 22px 14px 14px 18px; background: linear-gradient(180deg, rgba(31, 28, 21, 0.98), rgba(14, 13, 10, 0.98)); border-right: 1px solid var(--line); z-index: 10; transition: transform .22s ease, opacity .18s ease; transform: translateX(0); transform-origin: left center; }
    .sidebar::-webkit-scrollbar { width: 8px; }
    .sidebar::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); }
    .sidebar::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(216, 168, 79, 0.68), rgba(166, 126, 52, 0.62)); border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 999px; }
    .sidebar::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(239, 196, 105, 0.82), rgba(191, 146, 61, 0.76)); }
    body.sidebar-collapsed .sidebar { transform: translateX(calc(-1 * var(--sidebar-width))); opacity: 0; pointer-events: none; }
    .brand { display: grid; gap: 8px; margin-bottom: 18px; }
    .eyebrow { display: block; color: var(--gold); font-size: 24px; font-family: var(--brand-title-font); font-weight: 700; font-style: normal; text-align: center; letter-spacing: 0.12em; text-transform: uppercase; }
    h1 { margin: 0; font-size: 18px; font-family: var(--brand-description-font); font-weight: 700; font-style: italic; text-align: center; line-height: 1.05; }
    .brand-logo-link { display: block; color: inherit; text-decoration: none; justify-self: center; width: 100%; }
    .brand-logo { display: block; width: min(100%, 280px); max-height: 84px; object-fit: contain; margin: 2px auto 0; }
    .sidebar-map-switcher { display: none; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0 0 12px; }
    .sidebar-map-switcher.is-visible { display: grid; }
    .sidebar-map-button { min-width: 0; border: 1px solid #4d422f; background: #221e18; color: #f3ead8; padding: 8px 10px; cursor: pointer; font-weight: 700; overflow-wrap: anywhere; }
    .sidebar-map-button.is-active { background: #d8a84f; color: #11100e; border-color: #d8a84f; }
    .search-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0 0 14px; border: 1px solid #7c6541; }
    input[type="search"] { width: 100%; padding: 8px; border: 0; background: #11100d; color: var(--text); font: 14px Consolas, monospace; }
    .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
    button { border: 1px solid #3c3428; background: #242017; color: #f4e4c0; padding: 10px 12px; font-weight: 700; font-family: Georgia, "Times New Roman", serif; font-size: var(--sidebar-button-size); cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em; }
    button:hover { border-color: var(--gold); color: #fff0c8; }
    .search-line button { border: 0; border-left: 1px solid #7c6541; padding: 0 18px; background: #11100d; }
    .category-list { flex: 1 1 0; min-height: 120px; display: grid; align-content: start; gap: 7px; overflow-y: scroll; overflow-x: hidden; padding-right: 16px; scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: rgba(216, 168, 79, 0.8) rgba(255, 255, 255, 0.06); }
    .category-list::-webkit-scrollbar { width: 10px; }
    .category-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); }
    .category-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(216, 168, 79, 0.92), rgba(166, 126, 52, 0.82)); border: 1px solid rgba(0, 0, 0, 0.22); border-radius: 999px; }
    .category-list::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(239, 196, 105, 1), rgba(191, 146, 61, 0.92)); }
    .category-group { display: grid; gap: 2px; margin-top: 14px; }
    .category-group-header { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 0 5px; cursor: pointer; user-select: none; }
    .category-group-title { margin: 0 0 5px; color: var(--gold); font-size: var(--sidebar-category-group-size); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
    .category-group-header .category-group-title { margin: 0; }
    .category-row { display: grid; grid-template-columns: var(--sidebar-icon-wrap-size) minmax(0, 1fr) minmax(2.5ch, auto) 24px; align-items: center; gap: 8px; min-width: 0; padding: 0; border-bottom: 1px solid rgba(216, 168, 79, 0.08); color: #f3cf7a; font: var(--sidebar-category-item-size)/1.2 Consolas, monospace; }
    .category-color-swatch { appearance: none; display: block; width: 14px; min-width: 14px; height: 14px; min-height: 14px; margin: 0; padding: 0; justify-self: center; align-self: center; border-radius: 999px; border: 1px solid rgba(255, 244, 210, 0.55); background: var(--category-color, #d9aa43); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); cursor: pointer; font-size: 0; line-height: 0; letter-spacing: 0; text-transform: none; }
    .category-color-swatch:hover { border-color: #fff4d2; }
    .category-icon { width: var(--sidebar-icon-size); height: var(--sidebar-icon-size); object-fit: contain; opacity: 0.86; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65)); }
    .category-icon-sprite { display: block; width: var(--sidebar-icon-size); height: var(--sidebar-icon-size); background-image: url("./assets/sidebar-game-markers.png?v=1778366035234203"); background-repeat: no-repeat; opacity: 0.86; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65)); }
    .category-icon-wrap { display: grid; place-items: center; width: var(--sidebar-icon-wrap-size); height: var(--sidebar-icon-wrap-size); padding: 0; overflow: hidden; justify-self: center; border: 0; border-radius: 999px; background: transparent; }
    .category-icon-wrap.has-background { background: var(--category-color, #d9aa43); box-shadow: inset 0 0 0 1px rgba(255, 244, 210, 0.34), 0 1px 2px rgba(0, 0, 0, 0.55); }
    .category-icon-dot { display: inline-block; width: 14px; height: 14px; justify-self: center; border-radius: 999px; background: var(--category-color, #d9aa43); border: 1px solid rgba(255, 244, 210, 0.55); box-shadow: 0 1px 2px rgba(0,0,0,0.55); }
    .category-name { display: block; min-width: 0; overflow-wrap: anywhere; }
    .category-count { min-width: 2.5ch; color: #8c806b; text-align: right; justify-self: end; font-variant-numeric: tabular-nums; }
    .category-row input { width: 15px; height: 15px; margin: 0; justify-self: end; accent-color: var(--gold); }
    .sidebar-ad-slot { flex: 0 0 272px; display: grid; place-items: center; width: 100%; min-width: 300px; height: 272px; max-height: 272px; margin: 12px 0 0; padding: 10px; overflow: hidden; border: 1px dashed rgba(216, 168, 79, 0.28); background: rgba(255, 255, 255, 0.025); color: rgba(243, 234, 216, 0.42); font: 11px/1.3 Consolas, monospace; text-align: center; }
    .sidebar-ad-slot > * { max-width: 100% !important; max-height: 100% !important; overflow: hidden !important; }
    .sidebar-ad-slot ins.adsbygoogle { display: block; width: 300px !important; min-width: 300px; max-width: 300px !important; height: 250px !important; max-height: 250px !important; }
    .sidebar-ad-slot iframe { max-width: 100% !important; max-height: 100% !important; }
    .sidebar-ad-slot:empty::before { content: "Реклама"; }
    .sidebar-ad-slot-mobile { display: none; }
    .map-wrap { position: relative; min-width: 0; height: 100vh; }
    #map { position: absolute; inset: 0; }
    .embed-open-map { display: none; position: absolute; left: 14px; top: 14px; z-index: 8; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; border: 1px solid rgba(216, 168, 79, 0.72); border-radius: 3px; background: rgba(18, 16, 12, 0.94); color: #fff0c8; font: 700 12px/1 Georgia, "Times New Roman", serif; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38); }
    .embed-open-map:hover, .embed-open-map:focus { background: rgba(31, 28, 21, 0.98); color: #fff6dc; border-color: #d8a84f; outline: 0; }
    body.embed-mode .embed-open-map { display: inline-flex; }
    .maplibregl-ctrl-group.custom-map-controls { overflow: hidden; border-radius: 4px; }
    .maplibregl-ctrl-group .custom-map-control-button { width: 29px; height: 29px; min-height: 29px; padding: 0; display: grid; place-items: center; border: 0; border-bottom: 1px solid #ddd; border-radius: 0; background: #fff; color: #333; font: 800 11px/1 Arial, sans-serif; letter-spacing: 0; text-transform: none; box-shadow: none; }
    .maplibregl-ctrl-group .custom-map-control-button:last-child { border-bottom: 0; }
    .maplibregl-ctrl-group .custom-map-control-button:hover { background: #f2f2f2; color: #000; }
    .maplibregl-ctrl-group .custom-map-control-button:active { background: #e8e8e8; }
    .maplibregl-ctrl-group .custom-map-control-button svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
    @media (max-width: 640px) { body:not(.embed-mode) #fullscreenBtn { display: none !important; } }
    .sidebar-toggle { appearance: none; -webkit-appearance: none; position: fixed; top: 88px; left: calc(var(--sidebar-width) - 1px); z-index: 12; width: 36px; height: 48px; padding: 0; display: grid; place-items: center; border: 1px solid #3c3428 !important; border-left: 0 !important; border-radius: 0 2px 2px 0; outline: 0 !important; background-color: rgba(18, 16, 12, 0.94) !important; background-image: linear-gradient(180deg, rgba(31, 28, 21, 0.98), rgba(14, 13, 10, 0.98)) !important; background-attachment: fixed !important; background-position: 0 0 !important; background-size: 100vw 100vh !important; color: #fff0c8 !important; font-size: 18px; line-height: 1; letter-spacing: 0; text-transform: none; box-shadow: 8px 10px 24px rgba(0,0,0,0.3); transition: left .22s ease; }
    .sidebar-toggle:hover, .sidebar-toggle:focus, .sidebar-toggle:focus-visible, .sidebar-toggle:active { border-color: #3c3428 !important; border-left: 0 !important; outline: 0 !important; background-color: rgba(18, 16, 12, 0.94) !important; background-image: linear-gradient(180deg, rgba(31, 28, 21, 0.98), rgba(14, 13, 10, 0.98)) !important; background-attachment: fixed !important; background-position: 0 0 !important; background-size: 100vw 100vh !important; color: #fff0c8 !important; }
    body.sidebar-collapsed .sidebar-toggle { left: 0; }
    .maplibregl-popup-content { padding: 0 !important; overflow: hidden; background: rgba(17, 16, 14, 0.96); color: var(--text); border: 1px solid #3c3428; border-radius: 2px; box-shadow: 0 12px 32px rgba(0,0,0,0.45); }
    .maplibregl-popup-close-button { top: 2px; right: 2px; width: 18px; height: 18px; padding: 0; display: grid; place-items: center; color: #f2d28f; font: 700 14px/18px Arial, sans-serif; letter-spacing: 0; text-transform: none; background: transparent; }
    .maplibregl-popup-tip { border-top-color: rgba(17, 16, 14, 0.96) !important; border-bottom-color: rgba(17, 16, 14, 0.96) !important; }
    .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
    .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
    .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: rgba(17, 16, 14, 0.96) !important; border-width: 10px 10px 0 !important; }
    .maplibregl-ctrl-compass { display: none !important; }
    .popup-card { width: 100%; overflow: hidden; }
    .popup-body { padding: 12px 14px 14px; }
    .popup-title-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: start; gap: 8px; margin: 0 0 6px; padding-right: 18px; }
    .popup-title { min-width: 0; margin: 0; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
    .popup-copy-link { width: 22px; height: 22px; min-height: 22px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 3px; background: rgba(17, 16, 14, 0.96); color: #f2d28f; cursor: pointer; text-transform: none; letter-spacing: 0; }
    .popup-copy-link:hover, .popup-copy-link:focus { color: #fff0c8; background: rgba(17, 16, 14, 0.96); outline: 0; }
    .popup-copy-link svg { width: 14px; height: 14px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
    .popup-copy-link.is-copied { color: #b8f3b8; }
    .popup-meta { color: #a89a84; display: grid; gap: 5px; margin-bottom: 10px; font-size: 13px; }
    .popup-images { display: grid; gap: 0; margin: 0; }
    .popup-images figure { margin: 0; }
    .popup-image-link { display: block; border: 0; cursor: zoom-in; }
    .popup-image { display: block; width: 100%; max-height: min(42vh, 320px); object-fit: cover; border: 0; }
    .popup-image-caption { margin-top: 4px; color: #a99d89; font: 12px Consolas, monospace; }
    .popup-description { margin-top: 10px; color: #efe6d0; line-height: 1.5; }
    .popup-description p { margin: 8px 0; }
    .popup-description ul { margin: 6px 0 8px 18px; padding: 0; }
    .popup-description li { margin: 3px 0; }
    .popup-description strong { color: #f0d091; }
    .popup-description a { color: #d9aa43; text-decoration: none; border-bottom: 1px solid rgba(217, 170, 67, 0.4); }
    .popup-description a:hover { color: #ffe0a4; border-bottom-color: #ffe0a4; }
    .hover-popup .maplibregl-popup-content { pointer-events: none; }
    .hover-popup .popup-body { padding: 8px 10px 9px; }
    .hover-popup .popup-title { margin: 0; padding-right: 0; white-space: normal; overflow-wrap: anywhere; }
    .image-lightbox { position: fixed; inset: 0; display: none; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.82); z-index: 9999; }
    .image-lightbox.is-open { display: grid; }
    .image-lightbox-dialog { position: relative; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); }
    .image-lightbox-close { position: absolute; top: -12px; right: -12px; width: 36px; height: 36px; min-height: 36px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(18, 16, 12, 0.96); color: #fff4d2; font: 700 24px/36px Arial, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
    .image-lightbox-content { display: block; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); width: auto; height: auto; object-fit: contain; box-shadow: 0 18px 48px rgba(0,0,0,0.45); }
    @media (max-width: 860px) { body { grid-template-columns: 1fr; } .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(calc(100vw - 44px), var(--sidebar-width)); padding: 18px 10px 10px 14px; transform: translateX(-100%); transition: transform .2s ease; opacity: 1; pointer-events: auto; } body.sidebar-collapsed .sidebar { transform: translateX(-100%); opacity: 1; pointer-events: auto; } body.sidebar-open .sidebar { transform: translateX(0); } .brand { justify-items: center; text-align: center; gap: 7px; margin-bottom: 16px; } .eyebrow, h1 { text-align: center; width: 100%; } .brand-logo-link { justify-self: center; } .brand-logo { width: min(92%, 270px); max-height: 92px; margin: 4px auto 0; } .sidebar-toggle { top: 78px; left: 0; } body.sidebar-open .sidebar-toggle { left: calc(min(calc(100vw - 44px), var(--sidebar-width)) - 1px); } .sidebar-ad-slot-desktop { display: none; } .sidebar-ad-slot-mobile { display: grid; } .sidebar-ad-slot { width: 100%; min-width: 0; height: 264px; max-height: 264px; flex-basis: 264px; padding: 6px; } .sidebar-ad-slot ins.adsbygoogle { width: min(300px, 100%) !important; min-width: 0; max-width: 300px !important; height: 250px !important; max-height: 250px !important; } }
