:root {
  --bg: #0b0b0c;
  --txt: #f1f1f1;
  --mut: #9b9b9f;
  --dim: #5d5d62;
  --glass: rgba(24, 24, 27, 0.52);
  --glass-b: rgba(255, 255, 255, 0.08);
  --ok: #7cf0b2;
  --partial: #ffd36b;
  --bad: #ff5f7e;
  --down: #ff9454;
  --unk: #8d8d95;
  --px: "Pixelify Sans", ui-monospace, monospace;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 35%, #232326 0%, #121214 55%, var(--bg) 100%) fixed;
  color: var(--txt);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#map, #mapSharp, #fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; }
#map { filter: blur(1.6px); opacity: .9; }
#mapSharp {
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 40%), #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
  mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 40%), #000 0%, rgba(0,0,0,.55) 45%, transparent 100%);
}
.vignette {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 45%, transparent 0%, rgba(11,11,12,.55) 70%, rgba(11,11,12,.92) 100%),
    linear-gradient(90deg, rgba(11,11,12,.55), transparent 22%, transparent 78%, rgba(11,11,12,.55));
}

.wrap {
  position: relative; z-index: 2;
  max-width: 580px; margin: 0 auto;
  padding: max(56px, 9vh) 16px 48px;
  display: flex; flex-direction: column; gap: 14px;
}

.map-win { height: 300px; margin: -6px -16px 0; pointer-events: none; }
/* ---------- hero ---------- */
.hero { text-align: center; margin-bottom: 18px; }
.logo {
  position: relative; display: inline-block; margin: 0;
  font-family: var(--px); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(54px, 12vw, 92px); line-height: 1;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,.75), 0 0 22px rgba(255,255,255,.35), 0 0 60px rgba(255,255,255,.18);
}
.spark { position: absolute; font-size: .26em; color: #fff; text-shadow: 0 0 8px #fff; animation: tw 2.6s ease-in-out infinite; }
.s1 { left: -.42em; top: .42em; }
.s2 { right: 1.9em; top: -.25em; animation-delay: .9s; }
.s3 { right: -.35em; bottom: -.1em; font-size: .2em; animation-delay: 1.7s; }
@keyframes tw { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(45deg); } }
.tags {
  margin-top: 14px; font-family: var(--px); font-size: clamp(15px, 3.6vw, 20px); letter-spacing: .06em;
  display: flex; justify-content: center; gap: clamp(10px, 3vw, 24px); color: #e9e9e9;
  text-shadow: 0 0 10px rgba(255,255,255,.25);
}
.tags i { font-style: normal; color: var(--dim); }
.pin {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--px); font-size: clamp(16px, 4vw, 22px); letter-spacing: .05em;
  text-shadow: 0 0 10px rgba(255,255,255,.3);
}

@media (min-width: 1100px) {
  .map-win { display: none; }
  .wrap { margin: 0 0 0 max(28px, 5vw); padding-top: max(48px, 8vh); }
  .hero { text-align: left; }
  .tags { justify-content: flex-start; }
}

/* ---------- cards ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 10px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 16px 18px;
}
.status { display: flex; align-items: center; gap: 18px; padding: 18px 20px; }
.orb { --c: var(--unk); position: relative; flex: 0 0 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 45%), var(--c);
  box-shadow: 0 0 24px var(--c), 0 0 60px color-mix(in srgb, var(--c) 40%, transparent); }
.orb span { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.75); opacity: .7; } 100% { transform: scale(1.45); opacity: 0; } }
.orb.ok { --c: var(--ok); } .orb.degraded { --c: var(--partial); } .orb.major, .orb.stale { --c: var(--bad); }
.st-title { font-family: var(--mono); font-weight: 600; font-size: clamp(19px, 4.8vw, 24px); line-height: 1.2; letter-spacing: -.01em; }
.st-sub { margin-top: 6px; color: var(--mut); font-size: 13px; line-height: 1.45; }

.notice { border-color: rgba(255, 211, 107, .35); background: rgba(40, 33, 14, .55); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.notice b { font-family: var(--mono); font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; color: var(--partial); }
.auto { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 12px 18px; }
.auto b { font-weight: 600; color: #fff; }
.bolt { font-size: 18px; filter: drop-shadow(0 0 6px rgba(255,211,107,.8)); }

/* ---------- locations ---------- */
.locs { padding: 14px 10px 8px; }
.locs-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 8px 10px;
  font-family: var(--px); font-size: 15px; letter-spacing: .08em; color: #ddd; flex-wrap: wrap; }
.legend { font-family: var(--mono); font-size: 11px; letter-spacing: 0; color: var(--mut); display: flex; align-items: center; gap: 6px; }
.lg { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.lg.ok { background: var(--ok); } .lg.partial { background: var(--partial); } .lg.bad { background: var(--bad); }
.loc { padding: 12px 10px; border-radius: 16px; transition: background .2s; }
.loc + .loc { border-top: 1px solid rgba(255,255,255,.05); }
.loc:hover { background: rgba(255,255,255,.035); }
.loc-top { display: flex; align-items: center; gap: 12px; }
.flag { flex: 0 0 34px; height: 24px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 2px 10px rgba(0,0,0,.4); display: grid; place-items: center; font-size: 11px; background: #333; }
.flag svg { width: 100%; height: 100%; display: block; }
.loc-name { flex: 1; min-width: 0; }
.loc-name b { font-family: var(--mono); font-weight: 600; font-size: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-name small { color: var(--mut); font-size: 12px; }
.pill { --c: var(--unk); font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.pill::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 6px; box-shadow: 0 0 8px var(--c); vertical-align: 1px; }
.pill.ok { --c: var(--ok); } .pill.partial { --c: var(--partial); } .pill.blocked { --c: var(--bad); } .pill.down { --c: var(--down); }
.loc-msg { margin: 8px 0 0 46px; font-size: 13px; color: #e6e6e6; line-height: 1.4; }
.loc-msg.bad { color: #ffc2cd; } .loc-msg.part { color: #ffe7ad; }
.loc-meta { display: flex; gap: 14px; margin: 8px 0 0 46px; color: var(--mut); font-size: 12px; flex-wrap: wrap; }
.loc-meta b { color: #e8e8e8; font-weight: 600; }
.bars { display: flex; gap: 2px; margin: 10px 0 0 46px; height: 22px; align-items: stretch; }
.bars i { flex: 1; border-radius: 2px; background: #333337; min-width: 2px; }
.bars i.b1 { background: color-mix(in srgb, var(--ok) 80%, #000); }
.bars i.b2 { background: var(--partial); }
.bars i.b3 { background: var(--bad); }
.bars-cap { display: flex; justify-content: space-between; margin: 4px 0 0 46px; color: var(--dim); font-size: 10.5px; }
.empty { color: var(--mut); padding: 18px 10px; text-align: center; font-size: 14px; }
.stale-data .loc { opacity: .55; }

/* ---------- faq ---------- */
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s; }
.faq[open] summary svg { transform: rotate(180deg); }
.faq ol { margin: 12px 0 2px; padding-left: 20px; color: #dcdcdc; font-size: 13.5px; line-height: 1.6; }
.faq li + li { margin-top: 6px; }
.faq a, .notice a { color: #fff; }

/* ---------- links ---------- */
.links { display: flex; justify-content: center; gap: clamp(18px, 6vw, 34px); margin-top: 10px; }
.lnk { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #eee; }
.lnk .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #111;
  background: #f4f4f4; box-shadow: 0 0 14px rgba(255,255,255,.55), 0 0 36px rgba(255,255,255,.2);
  transition: transform .2s, box-shadow .2s; }
.lnk .ic svg { width: 28px; height: 28px; }
.lnk:hover .ic { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 22px rgba(255,255,255,.8), 0 0 50px rgba(255,255,255,.3); }
.lnk .lb { font-family: var(--mono); font-weight: 600; font-size: 13px; text-shadow: 0 0 8px rgba(255,255,255,.25); }
.foot { text-align: center; color: var(--dim); font-size: 12px; margin-top: 10px; }

@media (max-width: 480px) {
  .loc-msg, .loc-meta, .bars, .bars-cap { margin-left: 0; }
  .status { gap: 14px; padding: 16px; }
  .orb { flex-basis: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .spark, .orb span { animation: none; }
}

/* ---------- пасхалка: «ты здесь» ---------- */
.mecard { display: flex; gap: 12px; align-items: center; font-size: 13.5px; line-height: 1.45; border-color: rgba(124,240,178,.35); background: rgba(14,32,22,.55); }
.mecard b { color: #fff; }
.me-ico { flex: 0 0 34px; height: 34px; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(95,209,59,.55)); animation: bob 2.6s ease-in-out infinite; }
.me-ico svg { width: 100%; height: 100%; display: block; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.loc.me { background: rgba(124,240,178,.06); box-shadow: inset 0 0 0 1px rgba(124,240,178,.25); }
.loc.me .loc-name b::after { content: "ВЫ ЗДЕСЬ"; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #0b0b0c; background: var(--ok); padding: 2px 6px; border-radius: 6px; vertical-align: 2px; }
