/* ═══════════════════════════════════════════════════════
   Зоряна Памʼять — style.css
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'KharkivTone';
  src: url('/fonts/KharkivTone-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AeroMaticsStencil';
  src: url('/fonts/Aero_Matics_Stencil_Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #03070e;
  --surface:   #070d1a;
  --surface2:  #0a1220;
  --border:    rgba(255,255,255,.07);
  --border2:   rgba(255,255,255,.12);
  --text:      #d0dce8;
  --text2:     #8a9cb0;
  --muted:     #3a5068;
  --accent:    #00c8ff;
  --accent2:   #0088bb;
  --yellow:    #d4a800;
  --yellow2:   #f0c030;
  --star:      #c8a040;
  --neon-blue: #00ccff;
  --neon-yel:  #d4a800;
  --panel:     360px;
  --bar:       54px;
  --radius:    10px;
  --radius-lg: 14px;
  --ease:      cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Geologica', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
 /*  overflow: hidden;*/
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }

/* ── TOPBAR ────────────────────────────────────────── */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: rgba(3,7,14,.96);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 700;
  animation: fadeDown .5s var(--ease);
}

@keyframes fadeDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

#logo {
  font-family: 'AeroMaticsStencil', 'KharkivTone', 'Yeseva One', 'Unbounded', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--yellow2);
  white-space: nowrap;
  letter-spacing: .04em;
  text-shadow: 0 0 12px rgba(212,168,0,.5);
}
#logo em { color: var(--accent); font-style: normal; text-shadow: 0 0 10px rgba(0,200,255,.5); }

.tstat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .3s;
}
.tstat strong { color: var(--text); font-weight: 500; transition: color .3s; }
.tstat:hover { color: var(--text2); }

/* ── Кастомний tooltip в стилі туру — золота обводка ── */
.zp-hint { position: relative; }

/* балун — за замовчуванням ЗВЕРХУ */
.zp-hint::after {
  content: attr(data-hint);
  position: absolute;
  bottom: calc(100% + 10px);
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  background: #0b1627;
  border: 1px solid rgba(255,215,0,.45);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 400;
  color: #a8c0d8;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,215,0,.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 9999;
}
/* стрілка — за замовчуванням вниз (балун вгорі) */
.zp-hint::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(255,215,0,.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  z-index: 9999;
}

/* модифікатор — підказка ЗНИЗУ */
.zp-hint--down::after {
  bottom: auto;
  top: calc(100% + 10px);
}
.zp-hint--down::before {
  bottom: auto;
  top: calc(100% + 2px);
  border-top-color: transparent;
  border-bottom-color: rgba(255,215,0,.5);
}

.zp-hint:hover::after,
.zp-hint:hover::before { opacity: 1; }

/* Touch-пристрої (телефони/планшети): :hover тут не природна взаємодія, а балун в шапці
   обрізається горизонтальним скролом #topbar — вимикаємо hover-балон, замість нього
   #hint-toast показується по тапу (JS, index.html) */
@media (pointer: coarse) {
  .zp-hint::after,
  .zp-hint::before,
  .zp-hint:hover::after,
  .zp-hint:hover::before { display: none; }
}

/* Toast для підказок в шапці на touch-пристроях — по центру знизу, поза overflow-контейнерами */
#hint-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  background: #0b1627;
  border: 1px solid rgba(255,215,0,.45);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 12.5px;
  color: #a8c0d8;
  white-space: nowrap;
  max-width: 88vw;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,215,0,.08);
  pointer-events: none;
  opacity: 0;
  z-index: 99999;
  transition: opacity .2s ease, transform .2s ease;
}
#hint-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.tdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2a9a50;
  box-shadow: 0 0 6px #2a9a50;
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;box-shadow:0 0 6px #2a9a50} 50%{opacity:.4;box-shadow:none} }

/* Search */
#sw {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
#sw-input {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  position: relative;
}
#search {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px 7px 32px;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
#search:focus {
  border-color: rgba(0,200,255,.35);
  background: rgba(0,200,255,.04);
  box-shadow: 0 0 0 3px rgba(0,200,255,.08);
}
#search::placeholder { color: var(--muted); }
.sico {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
  transition: color .25s;
}
#search:focus ~ .sico { color: var(--accent); }

#sdrop {
  position: absolute;
  top: calc(100% + 5px); left: 0; right: 0;
  background: #080e1c;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  display: none;
  z-index: 9000;
  box-shadow: 0 12px 32px rgba(0,0,0,.7);
  overflow: hidden;
  animation: fadeUp .2s var(--ease);
}
@keyframes fadeUp {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.sdi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s, transform .15s;
}
.sdi:last-child { border-bottom: none; }
.sdi:hover { background: rgba(0,200,255,.07); transform: translateX(3px); }
.sdi-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sdi-name { font-size: 12px; font-weight: 500; color: var(--text); }
.sdi-loc  { font-size: 11px; color: var(--text2); margin-top: 1px; }

/* ── Search розширений ── */

/* Кнопка очистки */
#search-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  transition: background .15s, color .15s;
  z-index: 2;
}
#search-clear:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* Підсвітка збігів */
mark.shl {
  background: rgba(0,200,255,.25);
  color: #a0efff;
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}

/* Заголовок секції: «Населені пункти» / «Меморіали» */
.sdi-section-hdr {
  padding: 5px 14px 2px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--text-secondary, #8a9cb0);
  text-transform: uppercase;
  cursor: default;
  user-select: none;
  opacity: .7;
}

/* Іконка міста (порожнє коло) */
.sdi-city-ico {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #a0d7ff;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Рівень населеного пункту */
.sdi-tier {
  font-size: 9px;
  color: var(--text-secondary, #8a9cb0);
  margin-left: 5px;
  opacity: .85;
  font-weight: 400;
}

/* Позивний у результаті */
.sdi-call {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: var(--accent);
  background: rgba(0,200,255,.1);
  border: 1px solid rgba(0,200,255,.2);
  border-radius: 4px;
  padding: 0 5px;
  vertical-align: middle;
}

/* Тіло результату */
.sdi-body { flex: 1; min-width: 0; }
.sdi-name { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdi-loc  { font-size: 11px; color: var(--text2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Активний елемент (клавіатурна навігація) */
.sdi-active {
  background: rgba(0,200,255,.12) !important;
  transform: translateX(3px);
}

/* Пустий результат */
.sdi-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 14px;
  cursor: default;
}
.sdi-empty:hover { background: none !important; transform: none !important; }

/* Loader */
.sdi-loader {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 12px 14px;
  cursor: default;
}
.sdi-loader:hover { background: none !important; transform: none !important; }

/* Spinner */
.sld {
  width: 14px; height: 14px;
  border: 2px solid rgba(0,200,255,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scrollbar всередині списку */
#sdrop { max-height: 360px; overflow-y: auto; }
#sdrop::-webkit-scrollbar { width: 4px; }
#sdrop::-webkit-scrollbar-track { background: transparent; }
#sdrop::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Auth buttons */
#un {
  font-size: 11px;
  color: var(--accent);
  display: none;
  white-space: nowrap;
  animation: fadeIn .3s var(--ease);
}
@keyframes fadeIn { from{opacity:0;transform:scale(.95)} to{opacity:1;transform:scale(1)} }

#btn-logout {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 11px;
  cursor: pointer;
  display: none;
  padding: 6px 12px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
#btn-logout:hover { background: rgba(255,255,255,.09); color: var(--text); border-color: var(--border2); }
#btn-logout:active { transform: scale(.96); }

#btn-auth {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 11px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
#btn-auth:hover {
  background: rgba(255,255,255,.09);
  color: var(--text);
  border-color: var(--border2);
}
#btn-auth:active { transform: scale(.96); }

#btn-add {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 11px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
#btn-add:hover {
  background: rgba(255,255,255,.09);
  color: var(--text);
  border-color: var(--border2);
}
#btn-add:active { transform: scale(.96); }

/* Smoke toggle switch */
#smoke-ctrl {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}
#smoke-lbl {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s;
}
#smoke-ctrl:has(.smoke-toggle.active) #smoke-lbl {
  color: var(--accent);
}
.smoke-toggle {
  width: 38px;
  height: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border2);
  border-radius: 10px;
  position: relative;
  flex-shrink: 0;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.smoke-toggle.active {
  background: rgba(0,200,255,.2);
  border-color: rgba(0,200,255,.55);
  box-shadow: 0 0 10px rgba(0,200,255,.2);
}
.smoke-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform .25s cubic-bezier(.4,0,.2,1), background .25s;
}
.smoke-toggle.active .smoke-thumb {
  transform: translateX(18px);
  background: var(--accent);
}
#smoke-ctrl:hover .smoke-toggle { opacity: .85; }

/* ── View switcher button ── */
#view-switcher, .view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 11px;
  font-family: inherit;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
#view-switcher:hover, .view-switcher:hover {
  background: rgba(255,255,255,.09);
  color: var(--text);
  border-color: var(--border2);
}
#view-switcher:active, .view-switcher:active { transform: scale(.96); }

/* Coffee button — патріотичний жовтий */
#btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #b8860b, #ffd700);
  border: none;
  border-radius: 8px;
  color: #1a0d00;
  font-size: 11px;
  font-weight: 400;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .04em;
  text-decoration: none;
  transition: opacity .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 0 8px rgba(255,215,0,.3);
  flex-shrink: 0;
}
#btn-coffee:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255,215,0,.55);
}
#btn-coffee:active { transform: scale(.96); }

/* Spacer між лівою і правою групою топбару */
#topbar-spacer { display: none; }

/* ── Мобільний пошук (overlay) — базові стилі ── */
#btn-search-mob { display: none; }

#mob-search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar);
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  background: rgba(3,7,14,.99);
  border-bottom: 1px solid var(--border);
  z-index: 9500;
  /* без backdrop-filter — щоб не створювати stacking context що обрізає #sdrop */
  overflow: visible;
}
/* #sdrop у мобільному пошуку — fixed щоб виходив за межі overlay */
#mob-sw-input #sdrop {
  position: fixed;
  top: var(--bar);
  left: 0; right: 0;
  width: 100%;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: calc(100vh - var(--bar) - 16px);
  z-index: 9501;
}

#mob-search-back {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 5px 8px;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
#mob-search-back:hover { background: rgba(255,255,255,.06); color: var(--text); }

#mob-sw-input {
  flex: 1;
  position: relative;
  min-width: 0;
}

#mob-search {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 32px 7px 32px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .25s, background .25s;
}
#mob-search:focus {
  border-color: rgba(0,200,255,.35);
  background: rgba(0,200,255,.04);
}

#mob-search-clear {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--muted); font-size: 13px;
  cursor: pointer; display: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  transition: background .15s;
}
#mob-search-clear:hover { background: rgba(255,255,255,.08); color: var(--text); }

/* Планшет ≤1000px: горизонтальний скрол топбару — резерв коли pointer:coarse не спрацював (DevTools) */
@media (max-width: 1000px) {
  #topbar { flex-wrap: nowrap; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #topbar::-webkit-scrollbar { display: none; }
  #topbar > * { flex-shrink: 0; }
  #topbar-spacer { flex: 0 0 12px; min-width: 12px; }
  #sw { display: none !important; }
  #btn-search-mob { display: inline-flex !important; align-items: center; justify-content: center; padding: 5px 9px; flex-shrink: 0; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 8px; color: var(--text2); font-size: 14px; cursor: pointer; }
  .tstat-word { display: none !important; }
  .smoke-lbl-full { display: none !important; }
  #app-version { display: none; }
}

/* Планшет/телефон ≤768px: тільки іконки, компактний топбар */
@media (max-width: 768px) {
  #topbar { gap: 8px; padding: 0 8px; overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #topbar::-webkit-scrollbar { display: none; }

  /* Ховаємо текст кнопок — тільки іконки */
  .prof-txt, .logout-txt, .auth-txt, .add-txt, .cf-txt { display: none !important; }
  .logout-ico, .auth-ico, .add-ico { margin-right: 0; font-size: 14px; }

  /* Кнопки — компактний розмір під іконку */
  #btn-profile  { padding: 6px 9px !important; min-width: 0; }
  #btn-logout   { padding: 6px 9px !important; min-width: 0; }
  #btn-add      { padding: 6px 9px !important; min-width: 0; }
  #btn-auth     { padding: 6px 9px !important; min-width: 0; }
  #btn-coffee   { padding: 6px 8px !important; min-width: 0; }

  /* Пошук не розтягується занадто */
  #sw { max-width: 160px; }

  #logo-text { display: none; }

  /* iOS: запобігає auto-zoom при фокусі на input */
  input, select, textarea { font-size: 16px; }

  /* Oblast labels — менший розмір */
  #oblast-labels text { font-size: 60px; }

  /* Form grid — одна колонка */
  .fr { grid-template-columns: 1fr; }
}

/* ── MAP ───────────────────────────────────────────── */
#map-wrap {
  z-index: 600;
  position: fixed;
  top: var(--bar); left: 0; right: 0; bottom: 0;
  overflow: visible; /* body { overflow:hidden } кліпує viewport — тут треба visible щоб зовнішнє свічення не обрізалось */
  cursor: grab;
  background: #03070e;
}
#map-wrap.grabbing { cursor: grabbing !important; }
#map-wrap.picking  { cursor: crosshair !important; }
/* cursor — успадковувана властивість, а JS перемикає його на #map-wrap
   (grab↔pointer при наведенні на точку, grabbing при драгу, crosshair при виборі).
   Без цього правила кожне перемикання перераховувало стилі ~1560 нащадків (SVG-карта,
   підписи міст) і змушувало перемальовувати весь шар #map-wrap — GPU-растеризація
   до ~200 мс, через що підвисав дим. Ці шари pointer-events:none і ніколи не є
   ціллю hit-test (курсор завжди береться з самого #map-wrap), тож фіксоване
   значення нічого не змінює візуально — лише обриває успадкування. */
#svg-layer, #city-overlay { cursor: default; }

#svg-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  /* Окремий композитний шар: під час плавного зуму карта масштабується CSS-трансформацією
     (GPU, без перерастеризації), а чіткий viewBox комітиться після зупинки (index.html, _commitTr) */
  will-change: transform;
  transform-origin: 0 0;
}

/* Море — canvas під SVG, хвилі без заливки */
#sea-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
    mix-blend-mode: normal;
  z-index: 0;        /* SVG іде після в DOM → природньо зверху */
}

/* Oblast styles */
#ukraine-svg g path,
#ukraine-svg g polygon {
  fill: #0d2240;
  stroke: #1e4a7a;
  stroke-width: 2;
  transition: fill .25s;
  cursor: default;
}
#ukraine-svg g path:hover,
#ukraine-svg g polygon:hover {
  fill: #143060;
}
/* Свічення по контуру країни — фолбек до завантаження JS/кольорів */
#ukraine-svg #contours path {
    stroke: #ffd700;
    stroke-width: 5px;
}
#ukraine-svg #contours {
    filter:
        drop-shadow(0 0 4px  #ffd700)
        drop-shadow(0 0 12px #ffd700cc)
        drop-shadow(0 0 28px #ffd70077);
}

/* Oblast labels */
#ukraine-svg text { pointer-events: none; }
#oblast-labels text {
  font-family: Arial, sans-serif;
  font-size: 145px;
  fill: rgba(160,195,220,.45);
  font-weight: 400;
}

#canvas-layer {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  will-change: contents, transform;
  transform: translateZ(0);
  z-index: 5;                    /* над фото, під димом (#fluid z:900) */
}

/* #map-photo — SVG <image> всередині <svg>, позиціонується SVG-атрибутами x/y/width/height */
/* clip-path та mask-image встановлюються через JS в applyMapPhoto() */
#map-photo {
  pointer-events: none;
  transition: opacity .4s ease;
}

/* Pick bar */
#pick-bar {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(0,200,255,.12);
  border: 1px solid rgba(0,200,255,.35);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 12px;
  color: var(--accent);
  display: none;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  z-index: 650;
  transition: transform .3s var(--ease), opacity .3s;
  opacity: 0;
}
#pick-bar.on {
  display: block;
  animation: pickBarIn .3s var(--ease) forwards;
}
@keyframes pickBarIn {
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Fullscreen button — притиснута до лівого боку #zoom */
#btn-fs {
  position: absolute;
  bottom: 22px;
  right: calc(22px + 36px + 4px);
  z-index: 650;
  animation: fadeIn .5s .3s var(--ease) both;
}

/* Zoom */
#zoom {
  position: absolute;
  bottom: 22px; right: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 650;
  animation: fadeIn .5s .3s var(--ease) both;
}
#zoom-scale {
  width: 36px;
  text-align: center;
  font-size: 7.5px;
  color: #888;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-top: -5px;
  padding-bottom: 2px;
  pointer-events: none;
}
#zoom-vis-count {
  width: 36px;
  text-align: center;
  font-size: 8px;
  color: #888;
  letter-spacing: .03em;
  opacity: .6;
  line-height: 1;
  margin-bottom: 2px;
  pointer-events: none;
}
.zbtn {
  width: 36px; height: 36px;
  background: rgba(7,13,26,.9);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, transform .1s, border-color .2s;
}
.zbtn:hover {
  background: rgba(0,200,255,.1);
  color: var(--accent);
  border-color: rgba(0,200,255,.2);
}
.zbtn:active { transform: scale(.9); }

/* ── Нижні блоки карти ──────────────────────────────── */
#bottom-blocks {
  position: absolute;
  bottom: clamp(12px, 2.2vw, 4px);
  left:   clamp(12px, 2.2vw, 2px);
  width:  248px;
  z-index: 650;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: stretch;
  align-items: stretch;
  gap: clamp(6px, 1vw, 10px);
  animation: fadeIn .5s .4s var(--ease) both;
}

#count, #site-rules { flex: 1; }

#count,
#site-rules {
  background: rgba(7,13,26,.92);
  border-radius: var(--radius);
  padding: clamp(8px, 1.2vw, 12px) clamp(10px, 1.6vw, 18px);
  cursor: pointer;
  transition: background .22s, border-color .22s, box-shadow .22s, transform .15s;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
}

#count      { border: 1px solid rgba(240,192,48,.25); }
#site-rules { border: 1px solid rgba(0,200,255,.2); }

#count:hover {
  background: rgba(14,24,48,.97);
  border-color: rgba(240,192,48,.6);
  box-shadow: 0 0 22px rgba(240,192,48,.25);
  transform: translateY(-2px);
}
#site-rules:hover {
  background: rgba(5,18,38,.97);
  border-color: rgba(0,200,255,.5);
  box-shadow: 0 0 22px rgba(0,200,255,.2);
  transform: translateY(-2px);
}

/* Count — вміст */
#count strong {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(16px, 2.8vw, 22px);
  color: var(--yellow2);
  text-shadow: 0 0 14px rgba(212,168,0,.4);
  line-height: 1;
  margin-bottom: 2px;
}
#count span {
  font-size: clamp(9px, 1.2vw, 11px);
  color: var(--muted);
}

/* Site rules — вміст */
#site-rules { gap: clamp(2px, .5vw, 4px); }
.sr-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(7px, 1vw, 8px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: clamp(2px, .4vw, 4px);
  opacity: .7;
}
.sr-link {
  font-size: clamp(9px, 1.2vw, 11px);
  color: var(--text2);
  text-decoration: none;
  line-height: 1.5;
  transition: color .18s;
  white-space: nowrap;
  cursor: pointer;
}
.sr-link:hover { color: #00e5ff; }

/* М'яке пульсуюче підсвічування — привертає увагу без нав'язливості (3.2с цикл) */
.sr-link--highlight,
.bb-link--highlight {
  animation: linkGlowPulse 3.2s ease-in-out infinite;
}
@keyframes linkGlowPulse {
  0%, 100% { color: var(--text2); text-shadow: none; }
  50%      { color: #ffd54f; text-shadow: 0 0 6px rgba(255,213,79,.55); }
}
.sr-link--highlight:hover,
.bb-link--highlight:hover { animation-play-state: paused; color: #00e5ff; text-shadow: none; }

/* ── «Нові надходження» (v3.58): над блоками статистики (на місці вимкненого чату), той самий стиль.
   Відступ знизу ставить _rbPlace(). Сяйво рамки — окремий шар ::before, анімується лише opacity ── */
#recent-block {
  position: absolute;
  left: clamp(12px, 2.2vw, 2px);
  bottom: 130px;
  width: 248px;
  box-sizing: border-box;
  z-index: 650;
  background: rgba(7,13,26,.92);
  border: 1px solid rgba(240,192,48,.35);
  border-radius: var(--radius);
  padding: clamp(8px, 1.2vw, 12px) clamp(10px, 1.6vw, 18px);
  animation: fadeIn .5s .2s var(--ease) both;
}
#recent-block[hidden] { display: none; }
#recent-block::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255,213,79,.9);
  box-shadow: 0 0 18px rgba(240,192,48,.45), inset 0 0 10px rgba(240,192,48,.12);
  pointer-events: none;
  opacity: .15;
  animation: rbGlow 3.2s ease-in-out infinite;
}
@keyframes rbGlow { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.rb-title {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(7px, 1vw, 8px);
  font-weight: 700;
  color: var(--yellow2);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: clamp(3px, .5vw, 6px);
}
.rb-count { font-weight: 400; letter-spacing: 0; color: var(--muted); }
.rb-list { display: flex; flex-direction: column; gap: 2px; transition: opacity .35s ease; }
.rb-list.rb-fade { opacity: 0; }
.rb-item {
  display: flex; align-items: baseline; gap: 6px;
  font-size: clamp(9px, 1.2vw, 11px);
  line-height: 1.5;
  color: var(--text2);
  text-decoration: none;
  cursor: pointer;
  animation: rbItemIn .45s var(--ease) both;
}
.rb-star { color: var(--yellow2); font-size: .85em; text-shadow: 0 0 6px rgba(240,192,48,.6); }
.rb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .18s; }
.rb-item:hover .rb-name { color: #ffd54f; }
.rb-added { flex-shrink: 0; font-size: .85em; color: var(--yellow2); opacity: .75; }
@keyframes rbItemIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* на тач-пристроях лівий нижній кут займають FAB-кнопки — блоку там немає, як і статистики */
@media (pointer: coarse) { #recent-block { display: none !important; } }
@media (prefers-reduced-motion: reduce) { #recent-block::before, #bb-fab.bb-fab-new::after { animation: none; opacity: .6; } .rb-item { animation: none; } }

/* Мобільна адаптація блоків */
@media (max-width: 480px) {
  #bottom-blocks { gap: 5px; }
  #count strong  { font-size: 14px; }
  #count span,
  .sr-link       { font-size: 8px; }
  .sr-title      { font-size: 9px; }

  /* Oblast labels ще менше */
  #oblast-labels text { font-size: 40px; }

  /* Search dropdown — повна ширина */
  #sdrop { max-height: 50vh; width: calc(100vw - 24px); left: 12px; }

  /* Search box — займає весь вільний простір */
  #sw { flex: 1; max-width: calc(100vw - 120px); }
}

/* ── FAB кнопки для мобільних (≤768px) ── */

/* Кнопка чату — FAB */
#mc-fab {
  display: none;
}

/* Кнопка bottom-blocks — FAB */
#bb-fab {
  display: none;
}

/* Попап bottom-blocks на мобільному */
#bb-popup {
  display: none;
}

@media (pointer: coarse) {
  /* Ховаємо оригінальні блоки — на будь-якому touch-пристрої (portrait і landscape) */
  #micro-chat   { display: none !important; }
  #bottom-blocks { display: none !important; }

  /* FAB кнопка чату */
  #mc-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    left: 12px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(36,38,42,.96);
    border: 1px solid rgba(79,195,247,.45);
    color: #4fc3f7;
    font-size: 20px;
    cursor: pointer;
    z-index: 1600;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
    transition: transform .18s, box-shadow .18s, border-color .18s, opacity .22s;
    -webkit-tap-highlight-color: transparent;
  }
  #mc-fab:active { transform: scale(.92); }
  #mc-fab.mc-fab-open {
    border-color: rgba(79,195,247,.85);
    box-shadow: 0 0 18px rgba(79,195,247,.35), 0 4px 16px rgba(0,0,0,.5);
  }
  /* Бейдж непрочитаних */
  #mc-fab-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 16px; height: 16px;
    background: #e05070;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
  }
  #mc-fab-badge.show { display: flex; }

  /* micro-chat — спливає над FAB */
  #micro-chat {
    display: flex !important;
    left: 12px;
    bottom: 74px;
    width: min(300px, calc(100vw - 24px));
    max-height: min(300px, 45vh);
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
  }
  #micro-chat.mc-mob-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Ховаємо кнопку collapse всередині чату на мобільному — закриває FAB */
  #mc-toggle { display: none; }

  /* FAB кнопка bottom-blocks */
  #bb-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 74px;
    left: 12px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(7,13,26,.96);
    border: 1px solid rgba(240,192,48,.4);
    color: var(--yellow2);
    font-size: 18px;
    cursor: pointer;
    z-index: 1590;
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
    transition: transform .18s, box-shadow .18s, border-color .18s, opacity .22s;
    -webkit-tap-highlight-color: transparent;
  }
  #bb-fab:active { transform: scale(.92); }
  #bb-fab.bb-fab-open {
    border-color: rgba(240,192,48,.8);
    box-shadow: 0 0 16px rgba(240,192,48,.3), 0 4px 16px rgba(0,0,0,.5);
  }

  /* Попап bottom-blocks — спливає над FAB */
  #bb-popup {
    display: block;
    position: fixed;
    left: 12px;
    bottom: 128px;
    width: min(220px, calc(100vw - 24px));
    background: rgba(7,13,26,.97);
    border: 1px solid rgba(0,200,255,.25);
    border-radius: 12px;
    padding: 12px 14px;
    z-index: 9995;
    box-shadow: 0 4px 24px rgba(0,0,0,.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
  }
  #bb-popup.bb-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Вміст попапу */
  #bb-popup .bb-count-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    color: var(--yellow2);
    text-shadow: 0 0 14px rgba(212,168,0,.4);
    line-height: 1;
  }
  #bb-popup .bb-count-lbl {
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  #bb-popup .bb-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.07);
    margin: 8px 0;
  }
  #bb-popup .bb-info-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 6px;
  }
  #bb-popup .bb-link {
    display: block;
    font-size: 11px;
    color: var(--text2);
    text-decoration: none;
    line-height: 1.9;
    transition: color .18s;
  }
  #bb-popup .bb-link:hover { color: #00e5ff; }

  /* «Нові надходження» на телефоні (v3.60): розділ угорі попапу ★, золотий, як блок на ПК */
  #bbp-recent[hidden] { display: none; }
  #bb-popup .bb-recent-title {
    display: flex; justify-content: space-between; gap: 6px;
    font-family: 'Unbounded', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--yellow2);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  #bbp-recent-count { font-weight: 400; letter-spacing: 0; color: var(--muted); }
  #bbp-recent-list { max-height: 150px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  #bbp-recent-list .rb-item { font-size: 11px; line-height: 1.9; }
  /* Значок кількості нових на кнопці ★ (як у кнопки чату) і мʼяке сяйво — доки попап не відкривали */
  #bb-fab-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 16px; height: 16px;
    background: var(--yellow2);
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    color: #111;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
  }
  #bb-fab-badge.show { display: flex; }
  #bb-fab.bb-fab-new::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(255,213,79,.9);
    box-shadow: 0 0 14px rgba(240,192,48,.55);
    opacity: .15;
    animation: rbGlow 3.2s ease-in-out infinite;
    pointer-events: none;
  }

  /* partners-layer — нижче за FAB щоб не перекривав кнопки */
  #partners-layer { z-index: 1580 !important; }
}

/* ── Landscape телефон/планшет: FAB горизонтально, не накладаються ── */
@media (pointer: coarse) and (orientation: landscape) {
  /* mc-fab (чат) — нижній лівий кут */
  #mc-fab { bottom: 10px; left: 12px; width: 40px; height: 40px; font-size: 18px; }
  /* bb-fab (інфо) — поряд з mc-fab по горизонталі */
  #bb-fab { bottom: 10px; left: 62px; width: 40px; height: 40px; font-size: 16px; }
  /* чат-попап — спливає вгору над mc-fab */
  #micro-chat { bottom: 58px; left: 12px; max-height: min(220px, calc(100vh - 80px)); }
  /* bb-popup — спливає вгору над bb-fab */
  #bb-popup   { bottom: 58px; left: 12px; }
  /* у ландшафті екран низький — список нових коротший (3 рядки), щоб попап уміщався */
  #bbp-recent-list { max-height: 64px; }
}



/* ── Social bar ─────────────────────────────────────── */
#social-bar {
  position: fixed;
  bottom: clamp(12px, 2.2vw, 22px);
  left: 50%;
  translate: -50% 0;
  z-index: 1000;
  background: rgba(7,13,26,.92);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius);
  padding: clamp(4px, .6vw, 6px) clamp(10px, 1.6vw, 18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1px, .25vw, 2px);
  cursor: default;
  opacity: .4;
  transition: background .22s, border-color .22s, box-shadow .22s, translate .15s, opacity .22s;
}
#social-bar:hover {
  background: rgba(5,18,38,.97);
  border-color: rgba(255,255,255,.8);
  box-shadow: 0 0 22px rgba(255,255,255,.1);
  translate: -50% -2px;
  opacity: 1;
}
.soc-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.soc-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform .18s;
}
.soc-link img {
  width: 21px;
  height: 21px;
  filter: brightness(0) invert(1);
  transition: filter .25s;
}
.soc-link:hover { transform: scale(1.15); }
.soc-link.facebook:hover  img { filter: invert(29%) sepia(77%) saturate(1800%) hue-rotate(208deg) brightness(101%) contrast(93%); }
.soc-link.twitter:hover   img { filter: invert(58%) sepia(72%) saturate(573%) hue-rotate(171deg) brightness(99%) contrast(94%); }
.soc-link.instagram:hover img { filter: invert(30%) sepia(60%) saturate(1500%) hue-rotate(310deg) brightness(95%) contrast(95%); }
.soc-link.youtube:hover   img { filter: invert(17%) sepia(94%) saturate(4500%) hue-rotate(356deg) brightness(107%) contrast(119%); }
.soc-link.telegram:hover  img { filter: invert(55%) sepia(60%) saturate(600%) hue-rotate(175deg) brightness(100%) contrast(95%); }
.soc-link.tiktok:hover    img { filter: brightness(0) invert(1); }
.soc-link.linkedin:hover  img { filter: invert(29%) sepia(90%) saturate(700%) hue-rotate(180deg) brightness(95%) contrast(95%); }
.soc-link.viber:hover     img { filter: invert(40%) sepia(60%) saturate(800%) hue-rotate(240deg) brightness(95%) contrast(90%); }

/* Leaflet world-map tooltip */
.leaflet-tooltip.lf-tip {
  background: rgba(7,13,26,.97) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 8px !important;
  padding: 9px 13px !important;
  font-size: 11px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.5) !important;
  color: #e0e0e0 !important;
  max-width: 220px;
  white-space: normal;
}
.leaflet-tooltip.lf-tip::before,
.leaflet-tooltip.lf-tip::after { display: none !important; }
.leaflet-tooltip.lf-tip .tn { font-weight: 600; font-size: 12px; margin-bottom: 3px; color: #fff; }
.leaflet-tooltip.lf-tip .tl { color: #aaa; }
.leaflet-tooltip.lf-tip .ts { color: #f0b54a; margin-top: 3px; }

/* Пульсація зірок на карті Світу */
@keyframes wstar-pulse {
  0%   { opacity: 0.65; transform: scale(0.88); }
  100% { opacity: 1;    transform: scale(1.12); }
}
/* Під час зуму карти Світу (клас ставить _lfSmoothWheel на zoomstart/zoomend) пульсацію
   1168 SVG-зірок призупиняємо — менше роботи щокадру, на око пауза ~пів секунди непомітна */
.leaflet-container.zp-zooming .leaflet-marker-icon g { animation-play-state: paused; }
/* Зірка відкритої картки (пошук чи клік) на карті Світу — той самий фокус, що на карті України
   (drawDotFX, isS; r ≈ 3.7 px): золоте кільце 5.5r, м'яке свічення 3r→18r, три кільця-маяки,
   що розходяться до 18r / 23r / 28r і гаснуть. Розмітку .wm-beacon додає _worldPick() (v3.56) */
.leaflet-marker-icon.wm-picked svg { position: relative; z-index: 1; transform: scale(1.6); filter: drop-shadow(0 0 5px rgba(255,220,80,.95)); }
.wm-beacon { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.wm-beacon i { position: absolute; left: 0; top: 0; box-sizing: border-box; border-radius: 50%; transform: translate(-50%, -50%); }
.wm-beacon .wm-glow { width: 134px; height: 134px; background: radial-gradient(circle closest-side, rgba(255,210,40,.3) 17%, rgba(255,210,40,0) 100%);
  animation: wm-glow 1.05s ease-in-out infinite alternate; }
.wm-beacon .wm-ring { width: 41px; height: 41px; border: 2.5px solid rgb(255,230,60); animation: wm-ring .79s ease-in-out infinite alternate; }
.wm-beacon .wm-b { width: 30px; height: 30px; border: 2.5px solid rgb(255,220,80); opacity: 0; }
.wm-beacon .wm-b0 { animation: wm-b0 3.5s ease-out infinite; }
.wm-beacon .wm-b1 { border-width: 2px; animation: wm-b1 3.5s ease-out .61s infinite; }
.wm-beacon .wm-b2 { border-width: 1.5px; animation: wm-b2 3.5s ease-out 1.22s infinite; }
@keyframes wm-glow { from { opacity: .47; } to { opacity: 1; } }
@keyframes wm-ring { from { opacity: .7; } to { opacity: 1; } }
@keyframes wm-b0 { 0% { width: 30px; height: 30px; opacity: .55; } 50%, 100% { width: 134px; height: 134px; opacity: 0; } }
@keyframes wm-b1 { 0% { width: 30px; height: 30px; opacity: .43; } 50%, 100% { width: 170px; height: 170px; opacity: 0; } }
@keyframes wm-b2 { 0% { width: 30px; height: 30px; opacity: .31; } 50%, 100% { width: 208px; height: 208px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wm-beacon .wm-b { display: none; } .wm-beacon .wm-glow, .wm-beacon .wm-ring { animation: none; } }
/* «Зірка памʼяті» на карті Світу (v3.62) — як на карті України: ⭐ над точкою здіймається на 55 px,
   зменшується з 19 до 13 px і згасає. Низ зірочки — у точці загибелі */
.wm-like-star {
  position: absolute;
  z-index: 20000;
  font-size: 19px;
  line-height: 1;
  pointer-events: none;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%);
  animation: wmLikeStar .76s linear forwards;
}
@keyframes wmLikeStar {
  from { transform: translate(-50%, -100%) scale(1);    opacity: 1; }
  to   { transform: translate(-50%, calc(-100% - 55px)) scale(.68); opacity: 0; }
}

/* Tooltip */
#tip {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  background: rgba(7,13,26,.97);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 9px 13px;
  font-size: 11px;
  display: none;
  z-index: 120;
  max-width: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  animation: tipFadeIn .15s var(--ease);
  will-change: transform;
}
/* Окрема (не спільна fadeIn) анімація — та анімує transform:scale, який
   перебивав би inline transform:translate(), що JS використовує для позиції
   тултіпа (без layout reflow) — звідси видимий "стрибок" у лівий верхній кут. */
@keyframes tipFadeIn { from{opacity:0} to{opacity:1} }
.tn { font-weight: 500; font-size: 12px; margin-bottom: 2px; color: var(--text); }
.tl { color: var(--text2); }
.ts { color: var(--star); margin-top: 4px; }
.tb { color: var(--text2); font-style: italic; font-size: 10px; margin-top: 2px; }
#cvideo-wrap { margin: 10px 0 6px; }
#cvideo-container iframe { width: 100%; aspect-ratio: 16/9; border-radius: 8px; border: 1px solid var(--border2); display: block; }

/* ── CARD PANEL ────────────────────────────────────── */
#card {
  position: fixed;
  top: var(--bar); right: 0;
  width: var(--panel);
  bottom: 0;
  background: rgba(4,9,18,.98);
  border-left: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 800;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .38s var(--ease), visibility 0s .38s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#card.open { transform: translateX(0); visibility: visible; transition: transform .38s var(--ease), visibility 0s 0s; }
#card-shield { display: none; }

/* Червоний стиль — як у кнопки «НАГОРОДИ» (#awards-btn) на цій же панелі */
#cclose {
  position: absolute;
  top: 13px; right: 13px;
  background: rgba(139,15,15,.82);
  border: 1px solid #e53935;
  border-radius: 7px;
  width: 28px; height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #f5d0d0;
  box-shadow: 0 2px 8px rgba(139,0,0,.4);
  z-index: 5;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
}
#cclose:hover {
  background: rgba(30,0,0,1);
  border-color: #ff5252;
  color: #fff;
  box-shadow: 0 3px 14px rgba(139,0,0,.6);
  transform: scale(1.1) rotate(90deg);
}

/* ── Тарифний план погибшого: металева кромка бокової панелі ──────────────────
   Адмін задає план (memorials.tier) → openCard() ставить #card[data-tier].
   Кромка — шар #ctier: маска-рамка 3px зі статичним металевим градієнтом.
   Перелив — світла смуга ::after, що рухається лише transform-анімацією
   (композитор, без перемальовки панелі) і лише поки картка відкрита. */
#ctier { display: none; }
#card[data-tier="bronze"] {
  --tier-metal: linear-gradient(160deg, #5a3214 0%, #c88a4a 18%, #f6cfa2 34%, #9a5a26 52%, #e0a066 70%, #f8d7b0 84%, #6b3c17 100%);
  --tier-edge: #a8672e;
  --tier-glow: rgba(200,138,74,.45);
  --tier-text: linear-gradient(180deg, #fbe2c4 0%, #e9ac70 40%, #a8672e 56%, #e0a066 74%, #f8d7b0 100%);
}
#card[data-tier="silver"] {
  --tier-metal: linear-gradient(160deg, #545c68 0%, #c7d0e0 18%, #ffffff 34%, #8b94a3 52%, #dde3ec 70%, #ffffff 84%, #5f6672 100%);
  --tier-edge: #9aa3b2;
  --tier-glow: rgba(199,208,224,.38);
  --tier-text: linear-gradient(180deg, #ffffff 0%, #e4e9f1 40%, #8f98a8 56%, #dde3ec 74%, #ffffff 100%);
}
#card[data-tier="gold"] {
  --tier-metal: linear-gradient(160deg, #6e4a00 0%, #ffc01e 18%, #fff2bf 34%, #c48800 52%, #ffd65a 70%, #fff6d6 84%, #7a5200 100%);
  --tier-edge: #d9a000;
  --tier-glow: rgba(255,192,30,.45);
  --tier-text: linear-gradient(180deg, #fff7dc 0%, #ffd65a 40%, #c48800 56%, #ffcf3f 74%, #fff2bf 100%);
}
/* Платина — біла з крижано-бузковим переливом, щоб не плутати зі сріблом */
#card[data-tier="platinum"] {
  --tier-metal: linear-gradient(160deg, #7f7aa3 0%, #e9e4ff 16%, #c9a8ff 30%, #ffffff 42%, #a8d8ff 56%, #f1ecff 70%, #c9a8ff 84%, #7f7aa3 100%);
  --tier-edge: #b9a6ef;
  --tier-glow: rgba(201,168,255,.45);
  --tier-text: linear-gradient(180deg, #ffffff 0%, #ece6ff 36%, #a8d8ff 54%, #c9a8ff 72%, #f4f0ff 100%);
}
#card[data-tier] {
  border-color: var(--tier-edge);
  /* світіння назовні від лівого краю + м'який відсвіт усередині вздовж кромки */
  box-shadow: -10px 0 28px -10px var(--tier-glow), inset 0 0 26px -10px var(--tier-glow);
}
#card[data-tier] #ctier {
  display: block;
  position: absolute;
  inset: 0;
  padding: 2px;                      /* тонка металева лінія (v3.66) */
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
  container-type: size;              /* cqw / cqh — довжина шляху відблиску */
  /* кільце content-box / border-box — повторює й заокруглені кути листа. Маска статична,
     тож відблиск (лише transform) не перемальовує панель */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
}
/* Кнопка закриття — над рамкою й іскрами (табличка плану й так вище) */
#card[data-tier] #cclose { z-index: 8; }
#ctier::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tier-metal);
}
/* Відблиск рамки (v3.66): спалахує в лівому верхньому куті й біжить рамкою в обидва боки —
   верхом і правим боком та лівим боком і низом — до правого нижнього кута, де дві половини зустрічаються.
   Як діагональна смуга світла, що проходить панеллю: c = x + y росте від −gr до W + H + gr, тож швидкість
   на всіх сторонах однакова й кути передаються без розривів (у всіх смуг ті самі відсотки й easing).
   Кожен відблиск — яскрава смуга в кільці 2 px (.ctg у #ctier) + мʼякий ореол, що виходить у панель
   (.ctf у #ctier-spark, без маски). Лише transform. Довжина шляху — з розміру рамки: cqw / cqh рахуються
   від content-box (рамка − 2 × 2 px, тому обидва контейнери мають padding 2 px), звідси + 4 / 8 px */
#ctier, #ctier-spark { --gr: 70px; }                /* запас шляху за кутами — більший за пів довжини відблиску */
#ctier .ctg, #ctier-spark .ctf {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
#ctier .ctg {
  --gl: 130px;                         /* довжина яскравої смуги */
  width: var(--gl); height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55) 30%, #fff 50%, rgba(255,255,255,.55) 70%, rgba(255,255,255,0));
}
#ctier .ctg-l, #ctier .ctg-r {
  width: 3px; height: var(--gl);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.55) 30%, #fff 50%, rgba(255,255,255,.55) 70%, rgba(255,255,255,0));
}
#ctier-spark .ctf {                   /* ореол: половина за краєм панелі обрізається, видно світло всередину */
  --gl: 70px;
  width: var(--gl); height: 18px;
  margin-top: -8px;
  background: radial-gradient(closest-side, rgba(255,255,255,.6), var(--tier-glow) 50%, transparent);
}
#ctier-spark .ctf-b { margin: 0 0 -8px; }
#ctier-spark .ctf-l { width: 18px; height: var(--gl); margin: 0 0 0 -8px; }
#ctier-spark .ctf-r { width: 18px; height: var(--gl); margin: 0 -8px 0 0; }
#ctier .ctg-r, #ctier-spark .ctf-r { left: auto; right: 0; }
#ctier .ctg-b, #ctier-spark .ctf-b { top: auto; bottom: 0; }
#card.open[data-tier] #ctier .ctg,
#card.open[data-tier] #ctier-spark .ctf {
  opacity: 1;
  animation: 7s ease-in-out infinite;
  will-change: transform;
}
#card.open[data-tier] #ctier .ctg-t, #card.open[data-tier] #ctier-spark .ctf-t { animation-name: ctgTop; }
#card.open[data-tier] #ctier .ctg-l, #card.open[data-tier] #ctier-spark .ctf-l { animation-name: ctgLeft; }
#card.open[data-tier] #ctier .ctg-r, #card.open[data-tier] #ctier-spark .ctf-r { animation-name: ctgRight; }
#card.open[data-tier] #ctier .ctg-b, #card.open[data-tier] #ctier-spark .ctf-b { animation-name: ctgBottom; }
/* 0–36 % циклу (≈2.5 с) — пробіг, далі пауза. Зсув = c − (початок сторони) − gl / 2 */
@keyframes ctgTop {
  0%        { transform: translateX(calc(-1 * var(--gr) - var(--gl) / 2)); }
  36%, 100% { transform: translateX(calc(100cqw + 100cqh + 8px + var(--gr) - var(--gl) / 2)); }
}
@keyframes ctgLeft {
  0%        { transform: translateY(calc(-1 * var(--gr) - var(--gl) / 2)); }
  36%, 100% { transform: translateY(calc(100cqw + 100cqh + 8px + var(--gr) - var(--gl) / 2)); }
}
@keyframes ctgRight {
  0%        { transform: translateY(calc(-1 * var(--gr) - var(--gl) / 2 - 100cqw - 4px)); }
  36%, 100% { transform: translateY(calc(100cqh + 4px + var(--gr) - var(--gl) / 2)); }
}
@keyframes ctgBottom {
  0%        { transform: translateX(calc(-1 * var(--gr) - var(--gl) / 2 - 100cqh - 4px)); }
  36%, 100% { transform: translateX(calc(100cqw + 4px + var(--gr) - var(--gl) / 2)); }
}
@supports not (width: 1cqw) { #ctier .ctg, #ctier-spark .ctf { display: none; } }
/* Іскри (v3.66): спалах у лівому верхньому куті, звідки виходить відблиск (~5 % циклу), і в правому нижньому,
   де дві його половини зустрічаються (~31 %). Хрестик світла з яскравим центром і світінням плану;
   лише transform / opacity */
#ctier-spark { display: none; }
#card[data-tier] #ctier-spark {
  display: block;
  position: absolute;
  inset: 0;
  padding: 2px;                        /* як у #ctier — однакові cqw / cqh для ореолів */
  container-type: size;
  pointer-events: none;
  z-index: 7;
}
#card[data-tier] #ctier-spark::before,
#card[data-tier] #ctier-spark::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  background:
    radial-gradient(circle, #fff 0 1.5px, rgba(255,255,255,.75) 2.5px, transparent 4.5px),
    linear-gradient(90deg, transparent, #fff 50%, transparent) center / 100% 1.5px no-repeat,
    linear-gradient(180deg, transparent, #fff 50%, transparent) center / 1.5px 100% no-repeat,
    radial-gradient(circle, var(--tier-glow) 0, transparent 65%);
  opacity: 0;
  transform: scale(.2);
}
#card[data-tier] #ctier-spark::before { left: -6px; top: -6px; }        /* центр — у куті рамки */
#card[data-tier] #ctier-spark::after  { right: -6px; bottom: -6px; }
#card.open[data-tier] #ctier-spark::before { animation: ctierSparkStart 7s ease-out infinite; }
#card.open[data-tier] #ctier-spark::after  { animation: ctierSparkMeet 7s ease-out infinite; }
@keyframes ctierSparkStart {
  0%        { opacity: 0; transform: scale(.2) rotate(0deg); }
  5%        { opacity: 1; transform: scale(1) rotate(25deg); }
  12%, 100% { opacity: 0; transform: scale(.2) rotate(70deg); }
}
@keyframes ctierSparkMeet {
  0%, 27%   { opacity: 0; transform: scale(.2) rotate(0deg); }
  31%       { opacity: 1; transform: scale(1.15) rotate(30deg); }
  41%, 100% { opacity: 0; transform: scale(.2) rotate(80deg); }
}
/* Розділювачі в панелі — у тон плану */
#card[data-tier] #cbody hr {
  border-top-color: transparent;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tier-edge), transparent);
}
/* Назва плану в лівому верхньому куті панелі (v3.64): «GOLD» тощо.
   Темна табличка з металевою рамкою, ромб і текст шрифтом Cinzel у металі плану (--tier-text).
   Відблиск пробігає табличкою одразу після переливу кромки — лише transform, як і перелив */
#ctier-badge { display: none; }
#card[data-tier] #ctier-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 13px; left: 13px;               /* на одному рівні з кнопкою закриття */
  z-index: 7;
  height: 28px;
  padding: 0 11px 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(16,18,28,.9), rgba(4,6,12,.94)) padding-box,
    var(--tier-metal) border-box;
  box-shadow: 0 2px 10px rgba(0,0,0,.45), 0 0 14px -3px var(--tier-glow);
  overflow: hidden;
  pointer-events: none;
  -webkit-user-select: none;
          user-select: none;
}
#card[data-tier] #ctier-badge::before {      /* ромб-орнамент */
  content: "";
  width: 6px; height: 6px;
  flex-shrink: 0;
  background: var(--tier-metal);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--tier-glow);
}
#ctier-name {
  font-family: 'Cinzel', 'Yeseva One', Georgia, serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .22em;
  margin-right: -.22em;                 /* без зайвого відступу після останньої літери */
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--tier-text);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.7));
}
#card[data-tier] #ctier-badge::after {       /* відблиск */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 46%;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.5) 50%, transparent 80%);
  transform: translateX(-120%);
}
#card.open[data-tier] #ctier-badge::after {
  animation: ctierBadgeGlint 7s ease-in-out infinite;    /* той самий цикл, що й відблиск рамки */
  will-change: transform;
}
@keyframes ctierBadgeGlint {
  0%, 5%    { transform: translateX(-120%); }
  17%, 100% { transform: translateX(240%); }
}
@media (prefers-reduced-motion: reduce) {
  #card.open[data-tier] #ctier .ctg,
  #card.open[data-tier] #ctier-spark .ctf,
  #card.open[data-tier] #ctier-spark::before,
  #card.open[data-tier] #ctier-spark::after,
  #card.open[data-tier] #ctier-badge::after { animation: none; }
  #card.open[data-tier] #ctier .ctg,
  #card.open[data-tier] #ctier-spark .ctf { opacity: 0; }
}

#cphoto {
  width: 100%; height: 200px;
  background: var(--surface2);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
#cimg {
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--surface2);
  transition: transform .4s var(--ease);
}
#cgrad {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(4,9,18,.98));
}

#cbody {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 24px;
}
#cname {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 3px;
  color: var(--text);
}
#cdates { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
#cbody hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.cf { margin-bottom: 10px; }
.cl {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 3px;
}
.cv { font-size: 12px; line-height: 1.6; color: var(--text); }

/* «Опис» у боковій панелі (v3.63): довгий текст згорнуто до ~40 % висоти (на 60 % коротше),
   під ним «Розгорнути / Згорнути». Висоту (ціле число рядків) задає JS — _descLayout() */
#cdesc { display: block; }
#cdesc-row.desc-long #cdesc { overflow: hidden; }
#cdesc-row.desc-long:not(.desc-expanded) #cdesc {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 2.6em), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 2.6em), transparent);
}
#cdesc.desc-anim { transition: max-height .35s var(--ease); }
.cdesc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'Unbounded', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f0b54a;
  opacity: .85;
  transition: opacity .2s;
}
.cdesc-more[hidden] { display: none; }
.cdesc-more:hover, .cdesc-more:focus-visible { opacity: 1; }
.cdesc-more:focus-visible { outline: 1px solid rgba(240,181,74,.6); outline-offset: 3px; border-radius: 4px; }
.cdesc-more svg { flex-shrink: 0; transition: transform .3s var(--ease); }
.cdesc-more .cdm-less { display: none; }
#cdesc-row.desc-expanded .cdesc-more .cdm-more { display: none; }
#cdesc-row.desc-expanded .cdesc-more .cdm-less { display: inline; }
#cdesc-row.desc-expanded .cdesc-more svg { transform: rotate(180deg); }
@media (pointer: coarse) { .cdesc-more { padding: 10px 0; margin-top: 2px; } }
@media (prefers-reduced-motion: reduce) { #cdesc.desc-anim, .cdesc-more svg { transition: none; } }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 10px;
  background: rgba(0,200,255,.08);
  border: 1px solid rgba(0,200,255,.2);
  color: var(--accent);
}

/* Duplicate users */
#cdupes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.dupe-chip {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(212,168,0,.08);
  border: 1px solid rgba(212,168,0,.2);
  color: var(--yellow);
  margin: 2px 2px 0 0;
  animation: fadeIn .3s var(--ease);
}

/* Like button */
#lbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: rgba(200,160,64,.06);
  border: 1px solid rgba(200,160,64,.18);
  border-radius: var(--radius);
  padding: 11px 16px;
  color: var(--star);
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  margin-top: 8px;
}
#lbtn:hover {
  background: rgba(200,160,64,.12);
  box-shadow: 0 0 14px rgba(200,160,64,.15);
}
#lbtn:active { transform: scale(.95); }
#lbtn.burst  { animation: burst .4s var(--ease); }
@keyframes burst {
  0%  { transform: scale(1); }
  35% { transform: scale(1.18); }
  100%{ transform: scale(1); }
}
#lcnt { font-size: 18px; margin-left: auto; }

/* ── MODALS ────────────────────────────────────────── */
.mov {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 9990; /* вище шапки (#topbar:9500), пошуку (#sdrop:9000/9501), чату, соцбару тощо — нижче лише системних оверлеїв (preloader/rotate/too-small: 99999+) */
  display: none;
  align-items: center;
  justify-content: center;
}
.mov.open { display: flex; }

.mo {
  background: #060c1a;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  width: 500px;
  max-width: 96vw;
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
  animation: modalIn .32s var(--ease);
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);      opacity: 1; }
}

/* Info modals content */
.info-body { margin-top: 16px; }
.info-body p { color: var(--text2); font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.info-body h3 { font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin: 16px 0 8px; }
.info-body ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.info-body li { color: var(--text2); font-size: 13px; line-height: 1.6; }

.faq-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.faq-a { font-size: 12px; color: var(--text2); line-height: 1.65; }

.mo h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow2);
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(240,192,48,.3);
}
.mo-sub {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 20px;
  line-height: 1.6;
}

.moc {
  position: absolute;
  top: 15px; right: 15px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 28px; height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
  transition: background .2s, color .2s, transform .2s;
}
.moc:hover {
  background: rgba(255,255,255,.12);
  color: var(--text);
  transform: scale(1.1) rotate(90deg);
}

/* ── Awards button & modal ─────────────────────────── */
.awards-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: rgba(139,15,15,.75);
  border: 1px solid rgba(180,30,30,.6);
  border-radius: var(--radius);
  color: #f0d0d0;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s, box-shadow .2s, transform .1s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(139,0,0,.35);
}
.awards-btn:hover {
  background: rgba(90,8,8,.9);
  border-color: rgba(150,20,20,.8);
  box-shadow: 0 3px 14px rgba(139,0,0,.5);
}
.awards-btn:active { transform: scale(.96); }
.awards-empty {
  text-align: center;
  padding: 28px 16px 16px;
  color: var(--text2);
}
.awards-empty-ico { font-size: 40px; opacity: .35; margin-bottom: 10px; }
.awards-empty-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.awards-empty-sub { font-size: 11px; color: var(--muted); line-height: 1.6; }
.awards-example-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.award-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 7px;
  background: var(--surface2);
  transition: background .15s;
}
.award-item:hover { background: rgba(255,255,255,.04); }
.award-item--demo { opacity: .5; }
.award-ico { font-size: 26px; flex-shrink: 0; width: 32px; text-align: center; }
.award-medal-img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; border-radius: 4px; background: rgba(255,255,255,.04); cursor: zoom-in; transition: opacity .15s; display: block; }
.award-medal-img:hover { opacity: .75; }
.award-info { flex: 1; min-width: 0; display: block; }
.award-name { font-size: 12px; color: var(--text); font-weight: 500; line-height: 1.45; }
.award-desc { font-size: 10px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.award-date { font-size: 10px; color: var(--muted); margin-top: 2px; }
.award-status {
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #03070e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
#preloader-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255,255,255,.08);
  border-top-color: #4fc3f7;
  border-radius: 50%;
  animation: preloader-spin .8s linear infinite;
}
@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}
#preloader-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Form */
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.fr.full { grid-template-columns: 1fr; }
.fg { display: flex; flex-direction: column; gap: 5px; }

.fg label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.fg input, .fg select, .fg textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  padding: 8px 11px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: rgba(0,200,255,.4);
  background: rgba(0,200,255,.03);
  box-shadow: 0 0 0 3px rgba(0,200,255,.07);
}
.fg textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.fg select option { background: #060c1a; }

/* Color picker */
.crow { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 4px; }
.csw {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.csw:hover  { transform: scale(1.18); }
.csw.sel    { border-color: #fff; box-shadow: 0 0 8px rgba(255,255,255,.4); }

/* Map pick hint */
.plbl { font-size: 11px; color: var(--text2); margin: 10px 0 6px; }
.plbl strong { color: var(--accent); }
.ph {
  background: rgba(0,200,255,.04);
  border: 1px dashed rgba(0,200,255,.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 11px;
  color: var(--accent);
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background .2s, border-color .2s;
}
.ph:hover {
  background: rgba(0,200,255,.09);
  border-color: rgba(0,200,255,.45);
}

.fsub {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #0e2860, #0088bb);
  border: none;
  border-radius: var(--radius);
  color: #a8e0f8;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 13px;
  cursor: pointer;
  letter-spacing: .05em;
  transition: opacity .2s, transform .1s, box-shadow .2s;
}
.fsub:hover {
  opacity: .9;
  box-shadow: 0 0 20px rgba(0,136,187,.35);
}
.fsub:active { transform: scale(.98); }

/* Auth tabs */
.atabs { display: flex; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.atab {
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s, border-color .2s;
}
.atab.active { color: var(--accent); border-color: var(--accent); }

/* ── Підказки полів форми ──────────────────────────── */
.f-hint { font-size:10px; min-height:14px; margin-top:2px; transition:color .2s; }
.f-hint.ok  { color:#43a047; }
.f-hint.err { color:#e53935; }
.f-hint.inf { color:var(--muted,#7a8a9a); }
input.f-ok  { border-color:#43a047 !important; }
input.f-err { border-color:#e53935 !important; }

/* ── OAuth кнопки ──────────────────────────────────── */
.oauth-btns { display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, transform .1s, box-shadow .2s;
  border: 1px solid transparent;
  letter-spacing: .02em;
}
.oauth-btn:hover { opacity: .88; transform: translateY(-1px); }
.oauth-btn:active { transform: scale(.98); }
.oauth-google {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}
.oauth-google:hover { box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.oauth-sep {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  font-size: 12px; color: var(--muted);
}
.oauth-sep::before, .oauth-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── NOTIFICATION ──────────────────────────────────── */
#notif {
  position: fixed;
  bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0c1c0c;
  border: 1px solid #2a6a3a;
  border-radius: var(--radius);
  padding: 11px 20px;
  font-size: 12px;
  color: #70b870;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
#notif.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#notif.err  { background: #1c0c0c; border-color: #6a2a2a; color: #b87070; }

/* ── Row break (invisible on desktop, full-width on mobile) ── */
.tb-break { display: none; }

/* ── Touch пристрої (планшети + телефони): один рядок, компактно ── */
@media (pointer: coarse) {
  :root { --bar: 54px; }
  #topbar {
    height: var(--bar);
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0 8px;
    align-items: center;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #topbar::-webkit-scrollbar { display: none; }

  /* Ховаємо тільки зайві підписи — НЕ чіпаємо лого */
  #app-version    { display: none; }
  .tstat-word     { display: none !important; }
  .smoke-lbl-full { display: none !important; }
  .tb-break       { display: none; }
  #btn-coffee     { display: none !important; }

  /* Всі елементи — не стискаються (інакше overflow-x:auto не дає скрол) */
  #topbar > * { flex-shrink: 0; }

  /* Лого — не скорочуємо */
  #logo { flex-shrink: 0; font-size: 13px; white-space: nowrap; }

  /* Статистика — не стискається */
  .tstat { font-size: 11px; white-space: nowrap; flex-shrink: 0; }

  /* Smoke — не стискається */
  #smoke-ctrl { flex-shrink: 0; }

  /* Spacer — мінімальний відступ між групами (при overflow-x scroll flex:1 не працює) */
  #topbar-spacer { display: block; flex: 0 0 12px; min-width: 12px; }

  /* На мобільних margin-left:auto вже на spacer-і */
  #map-mode-bar { margin-left: 0; }

  /* Ховаємо звичайний пошук — замість нього іконка */
  #sw { display: none !important; }

  /* Показуємо кнопку-лупу */
  #btn-search-mob {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    flex-shrink: 0;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, color .2s;
  }

  /* Кнопки — не стискаються, тільки іконка */
  .prof-txt, .logout-txt, .auth-txt, .add-txt { display: none !important; }
  #btn-profile { padding: 5px 8px !important; min-width: 0; flex-shrink: 0; }
  #btn-logout  { padding: 5px 8px !important; min-width: 0; flex-shrink: 0; }
  #btn-auth    { padding: 5px 8px !important; min-width: 0; flex-shrink: 0; }
  #btn-add     { padding: 5px 8px !important; min-width: 0; flex-shrink: 0; }
  .logout-ico, .auth-ico, .add-ico { font-size: 14px; margin-right: 0; }

  #un { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ── RESPONSIVE — телефони у landscape (висота ≤480px) ── */
@media (orientation: landscape) and (max-height: 480px) {
  :root { --bar: 48px; }

  #topbar {
    height: var(--bar);
    min-height: unset;
    flex-wrap: nowrap;
    padding: 0 8px;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #topbar::-webkit-scrollbar { display: none; }

  #logo { font-size: 11px; white-space: nowrap; }
  #app-version { display: none; }
  .tstat { font-size: 10px; white-space: nowrap; }

  #sw { flex: 0 1 140px; min-width: 80px; }
  #sdrop { left: 0; right: 0; border-radius: 0 0 8px 8px; }

  #un { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #btn-auth, #btn-logout { padding: 4px 7px; font-size: 10px; white-space: nowrap; }
  #btn-add    { padding: 4px 8px; font-size: 10px; }
  #btn-coffee { padding: 4px 7px; font-size: 10px; gap: 3px; }

  /* 1: Однакова висота всіх кнопок */
  #btn-auth, #btn-logout, #btn-add, #btn-coffee {
    height: 30px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* 3: Кнопки зуму однакового розміру */
  .zbtn { width: 44px; height: 44px; font-size: 18px; }
  #zrst { font-size: 18px !important; }


  #btn-fs { width: 44px; height: 44px; bottom: clamp(12px, 2.2vw, 22px); right: 60px; }
  #zoom   { width: 44px; height: auto; bottom: clamp(12px, 2.2vw, 22px); right: 12px; }
}

/* Touch + вузький екран (телефони): картка на весь екран */
@media (pointer: coarse) and (max-width: 700px) {
  #card { width: 100%; }
  .fr   { grid-template-columns: 1fr; }
  .mo   { padding: 18px 14px; }
}

/* Коли картка на весь екран (ті самі умови, що тут і в landscape ≤400px нижче), оверлеї
   з вищим z-index (партнери 1580, соцпанель 1000, годинник 890; картка — 800)
   лягали поверх опису загиблого. Клас ставлять openCard()/чат/інфо-попап (index.html). */
@media (pointer: coarse) and (max-width: 700px), (orientation: landscape) and (max-height: 400px) {
  body.zp-panel-open #partners-layer,
  body.zp-panel-open #social-bar,
  body.zp-panel-open #kyiv-clock { visibility: hidden !important; pointer-events: none !important; }
}

/* ── UTILITY ANIMATIONS ────────────────────────────── */
.pulse-in {
  animation: pulseIn .4s var(--ease);
}
@keyframes pulseIn {
  0%   { transform: scale(.9); opacity: 0; }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1);   opacity: 1; }
}

.slide-right {
  animation: slideRight .35s var(--ease);
}
@keyframes slideRight {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}


/* SVG oblast base styles */
#ukraine-svg g path,
#ukraine-svg g polygon {
  fill: #040f1e;
  stroke: rgba(90,110,130,.3);
  stroke-width: 2;
  transition: fill .25s;
  cursor: default;
}
#ukraine-svg g path:hover,
#ukraine-svg g polygon:hover { fill: #071a30; }
#ukraine-svg text { pointer-events: none; }
#oblast-labels text {
  font-family: Arial, sans-serif;
  font-size: 145px;
  fill: rgba(160,195,220,.45);
  font-weight: 400;
}

/* Oblast labels: fade and shrink at city zoom */
#oblast-labels {
  transition: opacity .5s ease;
}
#svg-layer.zoom-city #oblast-labels {
  opacity: 0.12;
}
#svg-layer.zoom-deep #oblast-labels {
  opacity: 0;
}

/* City overlay lives outside #svg-layer — never CSS-scaled, always crisp */
#city-overlay { font-family: Arial, sans-serif; }
/* Під час драгу шар підписів міст зсувається однією CSS-трансформацією (index.html, scaleCityLabels) —
   окремий композитний шар, щоб зсув не перемальовував сотні підписів (v3.67) */
#city-overlay { will-change: transform; }

/* Canvas */
#canvas-layer {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  will-change: contents, transform;
  transform: translateZ(0);
  z-index: 5;
}

/* ── Планшети iPad ≤1024px ──────────────────────────── */
@media (max-width: 1024px) {
  :root { --panel: 320px; }
  #topbar { gap: 10px; }
}

/* ── Малі телефони ≤768px: кнопки тільки з іконкою (дублює медіа-запит через JS клас) ── */

/* Клас .mobile-icons — JS додає при ширині ≤480px для надійності */
body.mobile-icons .prof-txt,
body.mobile-icons .logout-txt,
body.mobile-icons .auth-txt,
body.mobile-icons .add-txt,
body.mobile-icons .cf-txt { display: none !important; }

body.mobile-icons #btn-profile { padding: 6px 9px !important; min-width: 0; }
body.mobile-icons #btn-logout  { padding: 6px 9px !important; min-width: 0; }
body.mobile-icons #btn-auth    { padding: 6px 9px !important; min-width: 0; }
body.mobile-icons #btn-add     { padding: 6px 9px !important; min-width: 0; }
body.mobile-icons #btn-coffee  { padding: 6px 8px !important; min-width: 0; }
body.mobile-icons .logout-ico,
body.mobile-icons .auth-ico,
body.mobile-icons .add-ico { margin-right: 0; font-size: 14px; }

/* ── Дуже малі телефони у landscape (iPhone SE, висота ≤400px) ── */
@media (orientation: landscape) and (max-height: 400px) {
  :root { --bar: 44px; }
  #card   { width: 100%; left: 0; right: 0; border-radius: 0; }
  #topbar { gap: 4px; padding: 0 6px; }
  #sdrop  { left: 0; right: 0; border-radius: 0; }
  #btn-fs { display: none; }
  #zoom   { width: 44px; height: auto; bottom: clamp(12px, 2.2vw, 22px); right: 12px; }
  #btn-add    { padding: 5px 8px; font-size: 13px; }
  #btn-coffee { padding: 5px 7px; font-size: 13px; }
  #btn-auth, #btn-logout { padding: 3px 5px; font-size: 9px; }
}

/* ── Rotate overlay (тільки телефон у portrait) ──────── */
#rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #03070e;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#rotate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#rotate-icon {
  font-size: 72px;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 24px;
  animation: rotateHint 2.2s ease-in-out infinite;
  display: inline-block;
  text-align: center;
}
#rotate-msg {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  text-align: center;
  line-height: 1.7;
  letter-spacing: .02em;
}
@keyframes rotateHint {
  0%   { transform: rotate(0deg); }
  30%  { transform: rotate(90deg); }
  70%  { transform: rotate(90deg); }
  100% { transform: rotate(0deg); }
}
@media (orientation: portrait) and (max-width: 768px) {
  #rotate-overlay { display: flex; }
}

/* ── Overlay: пристрій занадто малий (< 610×300px) ── */
#too-small-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #03070e;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#too-small-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}
#too-small-icon {
  margin-bottom: 20px;
  opacity: .9;
}
#too-small-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 700;
}
#too-small-msg {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.8;
}
/* Overlay за розміром екрану вимкнено */

/* ── Мобільні: social-bar на рівні btn-fs, copyright під ним ── */
@media (pointer: coarse) {
  /* social-bar — по центру, bottom: 22px = рівень #btn-fs */
  #social-bar {
    left: 50% !important;
    translate: -50% 0 !important;
    bottom: 22px !important;
    opacity: 0.85;
  }
  #social-bar:hover {
    translate: -50% -2px !important;
    opacity: 1;
  }

  /* copyright — по центру, під social-bar */
  #copyright-bar {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    bottom: 6px !important;
    text-align: center !important;
    white-space: nowrap;
    font-size: 9px !important;
  }
}

/* ── Landscape телефон (висота ≤480px): social горизонтально, copyright поряд ── */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 480px) {
  #social-bar {
    left: 50% !important;
    translate: -50% 0 !important;
    bottom: 32px !important;
    flex-direction: row;
    gap: 4px;
    padding: 4px 8px;
  }
  #social-bar .soc-link { width: 20px; height: 20px; }
  #social-bar .soc-row  { gap: 4px; }

  #copyright-bar {
    bottom: 4px !important;
    font-size: 8px !important;
  }
}

/* ── Карта світу: перемикач режимів (точна копія #view-switcher) ── */
#map-mode-bar {
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}
#map-mode-toggle {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, box-shadow .2s;
  height: 34px;
  font-size: 13px;
  box-sizing: border-box;
  flex-shrink: 0;
}
#map-mode-toggle:hover {
  border-color: var(--border2);
  box-shadow: 0 0 0 1px rgba(0,136,187,.15);
}
#map-mode-toggle:active { transform: scale(.97); }
#mmt-track {
  position: absolute;
  inset: 3px;
  pointer-events: none;
}
#mmt-thumb {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: rgba(0,136,187,.22);
  border: 1px solid rgba(0,136,187,.5);
  border-radius: 16px;
  transition: left .22s cubic-bezier(.4,0,.2,1);
  left: 0;
}
#map-mode-toggle.mode-world #mmt-thumb {
  left: 50%;
}
#mmt-labels {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
#mmt-ua, #mmt-world {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text2);
  transition: color .2s;
  white-space: nowrap;
}
#mmt-sep {
  color: var(--border2);
  font-size: 11px;
  opacity: .4;
  flex-shrink: 0;
}
#map-mode-toggle:not(.mode-world) #mmt-ua {
  color: var(--text);
  font-weight: 600;
}
#map-mode-toggle.mode-world #mmt-world {
  color: var(--text);
  font-weight: 600;
}

/* ── Language toggle #lang-toggle (mirrors #map-mode-toggle) ── */
#lang-toggle {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, box-shadow .2s;
  height: 34px;
  font-size: 13px;
  box-sizing: border-box;
  flex-shrink: 0;
}
#lang-toggle:hover {
  border-color: var(--border2);
  box-shadow: 0 0 0 1px rgba(0,136,187,.15);
}
#lang-toggle:active { transform: scale(.97); }
#lt-track {
  position: absolute;
  inset: 3px;
  pointer-events: none;
}
#lt-thumb {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: rgba(0,136,187,.22);
  border: 1px solid rgba(0,136,187,.5);
  border-radius: 16px;
  transition: left .22s cubic-bezier(.4,0,.2,1);
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}
#lang-toggle.lang-en #lt-thumb { left: 50%; }
#lt-labels {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
#lt-uk, #lt-en {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text2);
  transition: color .2s;
  white-space: nowrap;
}
#lt-sep {
  color: var(--border2);
  font-size: 11px;
  opacity: .4;
  flex-shrink: 0;
}
#lang-toggle:not(.lang-en) #lt-uk {
  color: var(--text);
  font-weight: 600;
}
#lang-toggle.lang-en #lt-en {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 600px) {
  #lang-toggle { height: 30px; }
  #lt-uk, #lt-en { padding: 0 7px; font-size: 10px; }
}

/* ── Leaflet dark theme overrides ───────────────────── */
.leaflet-container { background: #03070e !important; }
.leaflet-control-zoom a {
  background: rgba(7,13,26,.92) !important;
  color: #a0b4c8 !important;
  border-color: rgba(255,255,255,.12) !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(0,200,255,.1) !important;
  color: #00c8ff !important;
}
.leaflet-control-attribution {
  background: rgba(7,13,26,.72) !important;
  color: rgba(255,255,255,.35) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: rgba(0,200,255,.5) !important; }
.leaflet-bar { border-color: rgba(255,255,255,.12) !important; }
.leaflet-bar a { border-bottom-color: rgba(255,255,255,.08) !important; }
/* ── /Карта світу ──────────────────────────────────── */
