:root {
  --bg: #0b0e13; --panel: rgba(18, 22, 29, .92); --panel2: #1a2029; --line: rgba(255, 255, 255, .08);
  --ink: #f2f4f7; --ink2: #9aa4b2; --ink3: #677180;
  --red: #ff3b30; --orange: #ff8a00; --yellow: #ffcc00; --blue: #2f8cff; --green: #30d158; --violet: #8e7dff;
  --me: #2f8cff; --r: 18px;
  --tabs: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

#map { position: fixed; inset: 0; }
.maplibregl-ctrl-attrib { background: rgba(0, 0, 0, .35) !important; color: #aaa; font-size: 10px; }
.maplibregl-ctrl-attrib a { color: #bbb !important; }
.attr { font-size: 10px; color: var(--ink3); padding: 6px 2px 0; }
body.sheet-full .fabs { opacity: 0; pointer-events: none; }
.fabs { transition: opacity .2s; }

/* ---------- верх */
.top { position: fixed; top: 10px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: flex-start; z-index: 5; pointer-events: none; }
.status { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 16px;
  background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35); max-width: calc(100% - 90px); text-align: left; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 4px rgba(48, 209, 88, .18); }
.st-text { display: flex; flex-direction: column; min-width: 0; }
.st-text b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-text small { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status.lv-direct { background: rgba(120, 12, 8, .94); border-color: rgba(255, 59, 48, .5); animation: alarm 1.4s ease-in-out infinite; }
.status.lv-direct .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 59, 48, .3); }
.status.lv-near .dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 138, 0, .25); }
.status.lv-city .dot { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 204, 0, .22); }
.status.lv-oblast .dot, .status.lv-other .dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(47, 140, 255, .2); }
@keyframes alarm { 50% { box-shadow: 0 0 0 6px rgba(255, 59, 48, .25), 0 8px 30px rgba(0, 0, 0, .35); } }
.live { margin-left: auto; pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); font: 600 11px "JetBrains Mono", monospace; color: var(--ink2); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
.live.stale i { background: var(--ink3); animation: none; }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- кнопки карты */
.fabs { position: fixed; right: 12px; top: 74px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.fab { width: 44px; height: 44px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.fab.txt { font: 700 11px "JetBrains Mono", monospace; letter-spacing: .02em; }
.fab:active { transform: scale(.94); }
.fab.on { background: var(--me); border-color: transparent; }
.pickbar { position: fixed; left: 12px; right: 12px; top: 74px; z-index: 6; display: none; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--me); color: #fff; font-weight: 600; font-size: 14px; }
.pickbar.on { display: flex; }
.pickbar button { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
body.picking .fabs { display: none; }

/* ---------- шторка */
.sheet { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs) + var(--safe-b)); height: var(--sheet-h, 200px); z-index: 4;
  background: var(--panel); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); display: flex; flex-direction: column;
  transition: height .28s cubic-bezier(.2, .8, .2, 1); }
.sheet.drag { transition: none; }
.grip { height: 22px; display: grid; place-items: center; flex: none; cursor: grab; touch-action: none; }
.grip i { width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.pane { display: none; flex: 1; overflow-y: auto; padding: 0 14px 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pane.on { display: block; }
#pane-3d.on { display: flex; flex-direction: column; }
.pane-head { cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 2px 2px 10px; }
.pane-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.pane-head .count { font: 700 13px "JetBrains Mono", monospace; color: var(--ink2); }
.pane-head .sub { font-size: 12px; color: var(--ink3); margin-left: auto; }

/* ---------- цели */
.tcard { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 12px; margin-bottom: 8px;
  border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.tcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--blue)); }
.tcard.sel { border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset; }
.ticon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.ticon svg { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.tname { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.tname .x { color: var(--ink2); font-weight: 600; }
.tplace { font-size: 13px; color: var(--ink); margin-top: 2px; line-height: 1.3; }
.tmeta { font-size: 12px; color: var(--ink2); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tmeta .ok { color: var(--green); }
.tdist { text-align: right; }
.tdist b { display: block; font: 700 17px "JetBrains Mono", monospace; color: var(--c); }
.tdist small { display: block; font-size: 11px; color: var(--ink2); white-space: nowrap; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 8px; background: var(--c); color: #111; margin-top: 4px; }
.tw { margin-top: 6px; font: 600 12px "JetBrains Mono", monospace; color: #fff; background: var(--red); display: inline-block; padding: 3px 8px; border-radius: 8px; }
.empty { text-align: center; padding: 18px 10px 8px; color: var(--ink2); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.empty .ok { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: rgba(48, 209, 88, .15); color: var(--green); }
.noplace { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(47, 140, 255, .14);
  border: 1px solid rgba(47, 140, 255, .35); margin-bottom: 10px; font-size: 13px; }
.noplace button { margin-left: auto; padding: 8px 12px; border-radius: 10px; background: var(--me); color: #fff; font-weight: 700; white-space: nowrap; }

/* ---------- лента */
.post { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.post-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); }
.post-h .av { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #111; }
.post-h b { color: var(--ink); font-weight: 600; }
.post-h time { margin-left: auto; font-family: "JetBrains Mono", monospace; }
.post p { margin: 6px 0 6px 30px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.post .tags { margin-left: 30px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 7px; background: rgba(255, 255, 255, .07); color: var(--ink2); }
.tag.k { background: rgba(255, 138, 0, .16); color: var(--orange); }
.tag.to { background: rgba(255, 59, 48, .14); color: #ff7b73; }
.tag.cl { background: rgba(48, 209, 88, .15); color: var(--green); }
.post.dim p { color: var(--ink3); }

/* ---------- 3D */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; flex: none; }
.chips button { padding: 8px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; white-space: nowrap; }
.chips button.on { background: var(--ink); color: #111; }
.stage { position: relative; flex: 1; min-height: 220px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 25%, #55657c 0%, #2a3342 55%, #161b23 100%); }
.stage canvas { width: 100%; height: 100%; display: block; }
.hint { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink3); }
.facts { flex: none; padding-top: 10px; }
.facts h3 { margin: 0 0 6px; font-size: 16px; }
.facts table { width: 100%; border-collapse: collapse; font-size: 13px; }
.facts td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts td:first-child { color: var(--ink2); width: 42%; }
.facts p { font-size: 11px; color: var(--ink3); margin: 8px 0 0; }

/* ---------- настройки */
.sgroup { margin: 4px 0 18px; }
.sgroup h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin: 0 0 8px 4px; font-weight: 700; }
.card { background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); min-height: 52px; }
.row:last-child { border-bottom: 0; }
.row .lb { flex: 1; min-width: 0; }
.row .lb b { display: block; font-weight: 600; font-size: 15px; }
.row .lb small { display: block; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.row .val { color: var(--ink2); font-size: 14px; }
.sw { width: 50px; height: 30px; border-radius: 15px; background: #39414d; position: relative; flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.sw.on { background: var(--green); }
.sw.on::after { left: 23px; }
.seg { display: flex; padding: 3px; gap: 3px; background: #0f1319; border-radius: 12px; margin: 10px 14px 12px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--ink2); }
.seg button.on { background: #2b3340; color: var(--ink); }
.seg.red button.on[data-v="off"] { background: rgba(255, 59, 48, .25); color: #ff8b84; }
.segnote { padding: 0 14px 12px; font-size: 12px; color: var(--ink2); }
.btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; }
.btn { padding: 12px; border-radius: 12px; background: #2b3340; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn.primary { background: var(--me); color: #fff; }
select.sel { width: 100%; background: #0f1319; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 14px; }
.selwrap { padding: 0 14px 14px; }
.about { font-size: 12px; color: var(--ink3); line-height: 1.5; padding: 4px 4px 20px; }

/* ---------- нижние вкладки */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabs) + var(--safe-b)); padding-bottom: var(--safe-b); z-index: 6;
  display: flex; background: #0e1217; border-top: 1px solid var(--line); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink3); position: relative; }
.tabs button.on { color: var(--ink); }
.tabs button.on svg { stroke: var(--me); }
.tabs em { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font: 700 11px/18px Inter, sans-serif; font-style: normal; display: none; }
.tabs em.on { display: block; }

/* ---------- маркеры */
.mk { width: 46px; height: 46px; cursor: pointer; }
.mk .body, .mk .hd { animation: mkIn .5s cubic-bezier(.2, 1.5, .4, 1); } /* .mk двигает сама карта — анимируем содержимое */
@keyframes mkIn { from { transform: scale(.2); opacity: 0; } }
.mk .ring { position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: ping 1.8s ease-out infinite; }
.mk.calm .ring { display: none; }
.mk .body { position: absolute; inset: 4px; border-radius: 50%; display: grid; place-items: center; transition: transform .3s, opacity .4s;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 38%, #141a22) 0%, #0c1016 72%);
  border: 2px solid var(--c); box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 0 18px color-mix(in srgb, var(--c) 55%, transparent), 0 6px 14px rgba(0, 0, 0, .5); }
.mk .body svg { width: 27px; height: 27px; fill: #fff; stroke: none; filter: drop-shadow(0 0 2.5px var(--c)) drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.mk:active .body { transform: scale(.9); }
.mk .body img.ico { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
.mk .cnt:empty, .mk .lbl:empty { display: none; }
/* стрелка-«нос» по курсу: видно, куда летит, даже бабушке */
.mk .hd { position: absolute; inset: -7px; transform: rotate(var(--h, 0deg)); pointer-events: none; display: none; }
.mk.hdg .hd { display: block; }
.mk .hd::before { content: ""; position: absolute; left: 50%; top: -2px; transform: translateX(-50%); border: 6px solid transparent; border-top: 0;
  border-bottom: 9px solid var(--c); filter: drop-shadow(0 0 3px var(--c)); }
.mk .cnt { position: absolute; top: -6px; right: -8px; background: var(--c); color: #111; font: 800 11px/17px Inter; padding: 0 6px; border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.mk .lbl { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700;
  background: rgba(10, 13, 18, .88); padding: 3px 8px; border-radius: 8px; color: #fff; pointer-events: none; border: 1px solid rgba(255, 255, 255, .08); }
.mk .lbl.old { color: #ffcf7a; }
/* давно нет новых сообщений: вокруг цели крутится «загрузка», значок бледнеет — данные стареют */
.mk .spin { position: absolute; inset: -6px; border-radius: 50%; border: 2.5px solid transparent; border-top-color: var(--c); border-right-color: var(--c);
  opacity: 0; transition: opacity .5s; pointer-events: none; }
.mk.stale .spin { opacity: .55; animation: spin 3s linear infinite; border-style: dashed; border-color: var(--c); border-width: 1.5px; }
.mk .wait { position: absolute; top: -8px; left: -8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #ffcf7a;
  background: #141922; border: 1.5px solid #ffcf7a; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); transform: scale(0); transition: transform .35s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; }
.mk .wait svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.mk .wait .hand-m { transform-origin: 10px 10px; animation: spin 2s linear infinite; }
.mk .wait .hand-h { transform-origin: 10px 10px; animation: spin 24s linear infinite; }
.mk.stale .wait { transform: scale(1); animation: waitGlow 2s ease-in-out infinite; }
@keyframes waitGlow { 50% { box-shadow: 0 0 0 4px rgba(255, 207, 122, .18), 0 2px 8px rgba(0, 0, 0, .5); } }
.mk.stale .body { opacity: .72; }
.mk.stale .ring { display: none; }
.mk.old .body { opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }
.mk.est .body { border-style: dashed; }
.mk.ghost { width: 34px; height: 34px; }
.mk.ghost .body { inset: 3px; background: transparent; border-style: dashed; opacity: .9; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.me { width: 22px; height: 22px; border-radius: 50%; background: var(--me); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 140, 255, .25), 0 3px 10px rgba(0, 0, 0, .5); }
.me.live::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--me); animation: ping 2s ease-out infinite; }
.dst { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--c); background: rgba(0, 0, 0, .35); }
.dst::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--c); }
.flash { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #ffd36b 0 25%, rgba(255, 120, 0, .6) 45%, transparent 70%); animation: ping 1.6s ease-out infinite; }

/* ---------- прочее */
.toast { position: fixed; left: 50%; top: 70px; transform: translate(-50%, -20px); opacity: 0; transition: .25s; z-index: 20; background: #f2f4f7; color: #111;
  padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.gate { position: fixed; inset: 0; z-index: 30; background: rgba(8, 10, 14, .92); display: none; place-items: center; text-align: center; padding: 30px; }
.gate.on { display: grid; }
.gate b { font-size: 22px; }
.gate p { color: var(--ink2); }

body.m3d.zoom-3d .mk .body, body.m3d.zoom-3d .mk .ring { display: none; }
body.m3d .mk .cnt { top: -18px; }

.eta { margin-top: 5px; font: 600 12px "JetBrains Mono", monospace; color: var(--ink2); }
.dlbl { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 11px "JetBrains Mono", monospace;
  background: var(--c); color: #111; padding: 1px 6px; border-radius: 6px; }


/* мосты: только вблизи, тёмные полупрозрачные */
.bridge { display: none; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; opacity: .55; transition: opacity .2s; }
body.zoom-near .bridge { display: flex; }
.bridge:hover, .bridge.hot { opacity: 1; }
.bridge svg { width: 22px; height: 14px; padding: 2px 3px; box-sizing: content-box; border-radius: 6px; background: rgba(8, 10, 14, .7);
  stroke: #8a96a8; border: 1px solid rgba(255, 255, 255, .12); }
.bridge span { font-size: 9px; font-weight: 600; color: #aab3c0; background: rgba(8, 10, 14, .6); padding: 1px 5px; border-radius: 5px; white-space: nowrap; display: none; }
body.zoom-close .bridge span { display: block; }
.bridge.hot { display: flex; }
.bridge.hot svg { stroke: #fff; background: #ff5e3a; border-color: #fff; animation: alarm 1.2s infinite; }
.bridge.hot span { display: block; background: #ff5e3a; color: #fff; }
.testb { font-size: 10px; font-weight: 800; background: #8e7dff; color: #fff; padding: 2px 5px; border-radius: 5px; vertical-align: 2px; }
/* взрыв */
.boom { width: 44px; height: 44px; pointer-events: none; }
.boom b { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle, #fff6c2 0, #ffb020 40%, #ff4d00 75%, transparent 76%);
  box-shadow: 0 0 18px 6px rgba(255, 110, 0, .7); animation: core 1.6s ease-in-out infinite; }
.boom i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255, 140, 0, .8); animation: shock 1.6s ease-out infinite; }
.boom i:nth-child(2) { animation-delay: .5s; } .boom i:nth-child(3) { animation-delay: 1s; }
.boom.old b { animation: none; background: radial-gradient(circle, #555 0, #333 60%, transparent 62%); box-shadow: 0 0 14px 6px rgba(60, 60, 60, .6); }
.boom.old i { display: none; }
.boom.approx b { opacity: .8; } .boom span { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #ffb36b; white-space: nowrap; }
@keyframes core { 50% { transform: scale(1.25); } }
@keyframes shock { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
body.m3d.zoom-3d .boom { display: none; }

/* меньше кнопок: «я» + меню */
.fmenu { display: none; flex-direction: column; gap: 8px; }
.fabs.open .fmenu { display: flex; animation: pop .15s ease-out; }
.fabs.open #fabMenu { background: var(--ink); color: #111; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.status { padding: 7px 12px 7px 10px; } .st-text b { font-size: 14px; } .live { padding: 6px 8px; }
.status.lv-bridge .dot { background: #ff5e3a; box-shadow: 0 0 0 4px rgba(255, 94, 58, .25); }
.btn.donate { background: linear-gradient(90deg, #ffcc00, #ff8a00); color: #111; font-weight: 800; }

.followchip { position: fixed; left: 50%; transform: translateX(-50%); top: 64px; z-index: 6; display: none; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 20px; background: rgba(255, 138, 0, .95); color: #111; font-weight: 700; font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.followchip.on { display: flex; }
body.sheet-full .followchip { display: none; }
.followchip b { background: rgba(0, 0, 0, .15); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; }

/* ---------------- 🥚 пасхалка: такса ---------------- */
.doxie { display: block; height: auto !important; aspect-ratio: 132 / 72; stroke: none; overflow: visible; }
.doxie .tail { transform-origin: 26px 31px; animation: wag .5s ease-in-out infinite alternate; }
.doxie .ear { transform-origin: 102px 10px; animation: ear 3.2s ease-in-out infinite; }
.doxie .head { transform-origin: 100px 22px; }
@keyframes wag { from { transform: rotate(-10deg); } to { transform: rotate(16deg); } }
@keyframes ear { 0%, 80%, 100% { transform: rotate(0); } 88% { transform: rotate(-9deg); } }
/* в настройках из-за края выглядывает только мордочка, почти незаметно */
.doxie-peek { position: relative; height: 60px; overflow: hidden; margin: -8px 0 0 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.doxie-peek .doxie { position: absolute; right: -84px; bottom: -34px; width: 110px; opacity: .1; filter: grayscale(1) invert(.8);
  transition: opacity .3s, transform .3s; transform: translateY(8px) scaleX(-1); }
.doxie-peek .doxie .tail { animation-duration: 1.6s; }
.doxie-peek:hover .doxie, .doxie-peek:active .doxie { opacity: .9; transform: translateY(0) scaleX(-1); filter: grayscale(1) invert(.8); }
.egg { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(5, 7, 10, 0); pointer-events: none;
  transition: background .3s; }
.egg.on { background: rgba(5, 7, 10, .78); pointer-events: auto; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.egg-card { position: relative; width: min(360px, 100%); border-radius: 26px; padding: 22px 20px 18px; text-align: center; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #2a2f3a 0%, #161a21 55%, #0f1217 100%); color: #f2f4f7; border: 1px solid rgba(255, 210, 140, .18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translateY(30px) scale(.92); opacity: 0; transition: transform .45s cubic-bezier(.2, 1.4, .4, 1), opacity .25s; }
.egg.on .egg-card { transform: none; opacity: 1; }
.egg-card h2 { margin: 6px 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.egg-card p { margin: 0 4px 14px; font-size: 14px; line-height: 1.5; color: #aab3bf; }
.egg-card small { display: block; margin-top: 12px; font-size: 12px; color: #6f7886; }
.egg-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: #aab3bf; font-size: 15px; }
.egg-badge { position: absolute; top: 12px; left: 14px; font-size: 22px; animation: wob 2.4s ease-in-out infinite; }
@keyframes wob { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.egg-dog { position: relative; margin: 8px auto 4px; width: 230px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.egg-dog .doxie { width: 100%; filter: drop-shadow(0 8px 10px rgba(80, 40, 0, .25)); animation: breathe 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
.egg-dog.happy .doxie { animation: hop .4s ease-in-out 3; }
.egg-dog.happy .tail { animation-duration: .12s; }
.egg-dog.happy .head { animation: tilt .8s ease-in-out 2; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-10deg); } }
.egg-say { position: absolute; top: -12px; right: -4px; background: #fff; color: #2a1a0c; font-weight: 800; font-size: 13px; padding: 6px 10px; border-radius: 14px 14px 14px 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15); opacity: 0; transform: scale(.6); pointer-events: none; white-space: nowrap; }
.egg-say:empty { display: none; }
.egg-say.pop { animation: say 1.8s ease forwards; }
@keyframes say { 0% { opacity: 0; transform: scale(.6); } 12% { opacity: 1; transform: scale(1.08); } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.egg-heart { position: absolute; bottom: 40%; font-style: normal; font-size: 18px; pointer-events: none; animation: heart 1.5s ease-out forwards; opacity: 0; }
@keyframes heart { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1.2); } }
.egg-rank { margin: 0 auto 14px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 204, 120, .08); color: #ffd28a; border: 1px solid rgba(255, 204, 120, .18); font-weight: 800; font-size: 14px; line-height: 1.5; }
.egg-rank span { font-weight: 600; font-size: 12px; color: #a99272; }
.egg-pet { width: 100%; background: linear-gradient(90deg, #ffcf7a, #f2a65a) !important; color: #1a1208 !important; font-size: 15px; }
.doxie-img { display: block; width: 100%; height: auto; }
.egg-dog .doxie-img { animation: breathe 2.6s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.egg-dog.happy .doxie-img { animation: hop .4s ease-in-out 3; }
.doxie-peek .doxie-img { position: absolute; right: 0; bottom: -26px; width: 54px; opacity: .6; transition: opacity .3s, transform .3s; transform: translateY(8px); }
.doxie-peek:hover .doxie-img, .doxie-peek:active .doxie-img { opacity: 1; transform: none; }
.doxie-run .doxie-img { animation: trot .28s ease-in-out infinite alternate; }
/* редкая пробежка по карте */
.doxie-run { position: fixed; left: -90px; z-index: 5; width: 78px; cursor: pointer; animation: run 13s linear forwards; -webkit-tap-highlight-color: transparent; }
.doxie-run .doxie { width: 100%; animation: trot .28s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(255, 220, 160, .35)); }
.doxie-run .legs-f { animation: step .28s ease-in-out infinite alternate; }
.doxie-run .legs-b { animation: step .28s ease-in-out infinite alternate-reverse; }
@keyframes run { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 180px)); } }
@keyframes trot { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes step { from { transform: translateX(-1.5px); } to { transform: translateX(1.5px); } }

.ticon img.ico { width: 30px; height: 30px; object-fit: contain; }
/* появление пасхалки: такса вбегает сбоку и тормозит, текст проявляется следом */
.egg.on .egg-dog { animation: dogIn 1s cubic-bezier(.25, 1.25, .45, 1) both; }
@keyframes dogIn { 0% { transform: translateX(-160%) rotate(-4deg); opacity: 0; } 55% { transform: translateX(8%) rotate(3deg); opacity: 1; }
  75% { transform: translateX(-3%) rotate(-1deg); } 100% { transform: none; } }
.egg.on .egg-card h2, .egg.on .egg-card p, .egg.on .egg-rank, .egg.on .egg-pet, .egg.on .egg-card small { animation: eggUp .5s ease both; }
.egg.on .egg-card h2 { animation-delay: .55s; } .egg.on .egg-card p { animation-delay: .65s; } .egg.on .egg-rank { animation-delay: .75s; }
.egg.on .egg-pet { animation-delay: .85s; } .egg.on .egg-card small { animation-delay: .95s; }
@keyframes eggUp { from { opacity: 0; transform: translateY(10px); } }
.egg-card::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 207, 122, .08), transparent 30%);
  animation: spin 8s linear infinite; pointer-events: none; }
.egg-card > *:not(.egg-x) { position: relative; }/* пока грузится подложка карты — не чёрная пустота, а понятная надпись */
body.map-loading #map::after { content: "Завантажую карту…"; position: absolute; left: 50%; top: 38%; transform: translateX(-50%); z-index: 1;
  color: var(--ink2); font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 14px; background: rgba(20, 25, 33, .9); pointer-events: none; animation: pulseTxt 1.4s ease-in-out infinite; }
@keyframes pulseTxt { 50% { opacity: .55; } }
.eta.old { color: #ffcf7a; }
.btnrow.one { grid-template-columns: 1fr; }
.btn.quiet { background: transparent; border: 1px solid var(--line); color: #ff8a80; font-weight: 500; }
#bRadii { cursor: pointer; }
.stepper { display: flex; align-items: center; gap: 4px; background: #0f1319; border-radius: 10px; padding: 2px; }
.stepper button { width: 34px; height: 32px; border-radius: 8px; font-size: 18px; color: var(--ink); }
.stepper button:active { background: #2b3340; }
.stepper span { min-width: 54px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.back { color: var(--me); font-size: 15px; padding: 4px 4px 12px; }
.row small a { color: var(--ink3); }
.mk .wait { display: none; }

.live{position:relative}
.live .beta{position:absolute;top:calc(100% + 5px);right:4px;padding:1px 6px;border-radius:6px;font:700 10px/1.4 inherit;letter-spacing:.04em;
  text-transform:uppercase;color:#ffd640;background:rgba(255,214,64,.14);border:1px solid rgba(255,214,64,.35)}

/* расчётное место: полупрозрачный значок + затухающий шлейф за ним по курсу (вместо круга и «приблизно») */
.mk .tail { display: none; position: absolute; left: 50%; top: 50%; width: 5px; height: 54px; margin-left: -2.5px;
  transform-origin: 50% 0; transform: rotate(var(--th, 0deg)); border-radius: 3px; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 85%, transparent), transparent); filter: blur(.6px); }
.mk.guess .tail { display: block; }
.mk.guess .body { opacity: .72; }
.mk.guess .lbl:empty { display: none; }
.stalebar { position: fixed; left: 50%; top: 64px; transform: translate(-50%, -8px); z-index: 30; padding: 6px 12px; border-radius: 10px;
  background: rgba(90, 55, 10, .92); color: #ffd98a; font: 600 12px/1.3 inherit; opacity: 0; pointer-events: none; transition: .25s; }
.stalebar.on { opacity: 1; transform: translate(-50%, 0); }

/* взрыв: понятно, что это взрыв — значок 💥 и подпись «Вибух · 2 хв тому» */
.boom b { display: grid; place-items: center; inset: 10px !important; background: none !important; box-shadow: 0 0 18px 6px rgba(255, 110, 0, .55); }
.boom b svg { animation: boomspin 6s linear infinite; filter: drop-shadow(0 0 3px rgba(255, 170, 60, .9)); }
@keyframes boomspin { to { transform: rotate(360deg); } }
.boom.old b { box-shadow: none; } .boom.old b svg { animation: none; filter: grayscale(1) brightness(.6); }
.boom span { top: 46px !important; font-size: 11px !important; font-weight: 700; color: #ffd0a0 !important; padding: 2px 7px;
  border-radius: 8px; background: rgba(40, 18, 4, .85); border: 1px solid rgba(255, 140, 0, .45); }
.boom.old span { color: #c8c8c8 !important; border-color: rgba(160, 160, 160, .35); background: rgba(20, 20, 20, .8); }

