/* =====================================================================
   DeathAwaits · seção "O mapa" (protótipo v1)
   Usa as variáveis do site (--bg, --surface, --line, --fg, --muted,
   --accent, --accent-fg, --blood, --font-*). Todas as classes novas
   começam com "mp-" para não colidir com o CSS existente.
   ===================================================================== */
#mapa {
  --mp-baixo: #4d6b2b;
  --mp-medio: var(--accent);
  --mp-alto: #b0521b;
  --mp-extremo: var(--blood);
  --mp-land: #e2ddc9;
  --mp-forest: #9da77e;
  --mp-tree: #5f6b42;
  --mp-water: #8fa6a3;
  --mp-water-hi: #b9cbc6;
  --mp-rock: #8c8470;
  --mp-road: #c9c2a8;
  --mp-block: #b5ad94;
  --mp-safe: #b9c79a;
  --mp-nv-filter: grayscale(1) invert(.9) sepia(1) hue-rotate(52deg) saturate(3.4) brightness(.92) contrast(1.15);
  --mp-nv-glow: #9dff8a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #mapa {
    --mp-baixo: #8fb35a; --mp-alto: #e48a4c;
    --mp-land: #1f2219; --mp-forest: #2c3423; --mp-tree: #4d5a37;
    --mp-water: #2f4744; --mp-water-hi: #46645f; --mp-rock: #5a5546;
    --mp-road: #3b3f30; --mp-block: #474a3a; --mp-safe: #34442a;
    --mp-nv-filter: grayscale(1) sepia(1) hue-rotate(52deg) saturate(3.4) brightness(1.45) contrast(1.2);
  }
}
:root[data-theme="dark"] #mapa {
  --mp-baixo: #8fb35a; --mp-alto: #e48a4c;
  --mp-land: #1f2219; --mp-forest: #2c3423; --mp-tree: #4d5a37;
  --mp-water: #2f4744; --mp-water-hi: #46645f; --mp-rock: #5a5546;
  --mp-road: #3b3f30; --mp-block: #474a3a; --mp-safe: #34442a;
    --mp-nv-filter: grayscale(1) sepia(1) hue-rotate(52deg) saturate(3.4) brightness(1.45) contrast(1.2);
}
#mapa { padding-top: 0; }
.mp-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- 1. faixa de vídeo ---------- */
.mp-video {
  position: relative; overflow: hidden; border-bottom: 2px solid var(--fg);
  min-height: clamp(300px, 46vw, 460px); display: grid; align-items: end;
  background: #111 url("safezone.jpg") center / cover no-repeat;
  color: #f3eedb;
}
.mp-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-video::after { /* escurece para o texto ficar legível */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,6,.15) 0%, rgba(10,12,6,.35) 45%, rgba(10,12,6,.88) 100%);
}
.mp-video::before { /* linhas de "câmera de vigilância" */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .18;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.6) 0 1px, transparent 1px 4px);
}
.mp-video-inner { position: relative; z-index: 2; padding-block: 40px 34px; width: 100%; }
.mp-rec { display: inline-flex; align-items: center; gap: 8px; color: #f3eedb; opacity: .9; margin-bottom: 10px; }
.mp-rec i { width: 9px; height: 9px; border-radius: 50%; background: #e0523c; animation: mp-blink 1.4s steps(2, start) infinite; }
.mp-video h2 { color: #fff8e2; font-size: clamp(56px, 10vw, 120px); line-height: .85; }
.mp-video h2 span { color: #e0b43c; }
.mp-video p.mp-lead { max-width: 36em; margin: 14px 0 0; font-size: 18px; color: #e9e4cf; }
.mp-video .mp-stamp {
  position: absolute; right: max(16px, calc((100% - 1080px) / 2 + 16px)); top: 28px; z-index: 2; transform: rotate(5deg);
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase;
  color: #ff7a63; border: 2px solid #ff7a63; padding: 3px 12px; background: rgba(20,10,6,.55);
}
.mp-video + .hazard { height: 10px; }

/* ---------- 2. status ao vivo ---------- */
.mp-status {
  margin-top: 28px; border: 2px solid var(--fg); background: var(--surface);
  display: grid; grid-template-columns: auto repeat(2, 1fr); position: relative;
}
.mp-status.is-exemplo { border-style: dashed; }
.mp-status-h { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 18px; background: var(--fg); color: var(--bg); }
.mp-live { display: inline-flex; align-items: center; gap: 8px; }
.mp-live i { --dot: #8a8a80; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 0 var(--dot); animation: none; }
.mp-status.is-online .mp-live i { --dot: #2ecc55; animation: mp-ping 1.8s ease-out infinite; }
.mp-status.is-offline .mp-live i { --dot: #e0352b; animation: mp-ping 1.8s ease-out infinite; }
.mp-status.is-verificando .mp-live i { animation: mp-blink .9s steps(2, start) infinite; }
.mp-status.is-exemplo .mp-live i { background: var(--muted); animation: none; }
.mp-badge-ex {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bg); background: var(--blood); padding: 2px 7px; width: max-content;
}
.mp-stat { padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.mp-stat span { display: block; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mp-stat b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 34px; line-height: 1.05; letter-spacing: .02em; overflow-wrap: anywhere; }
.mp-stat b small { font-size: 18px; color: var(--muted); font-weight: 700; }
.mp-status.is-exemplo .mp-stat b { color: var(--muted); }
.mp-status-note { grid-column: 1 / -1; margin: 0; padding: 7px 18px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- 3. cabeçalho do mapa + filtro/legenda ---------- */
.mp-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin: 36px 0 14px; }
.mp-toolbar h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 30px; letter-spacing: .03em; margin: 0; line-height: 1; }
.mp-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.mp-filtro { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; }
.mp-filtro legend { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.mp-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font: 600 13px var(--font-body); padding: 6px 11px; border: 1.5px solid var(--fg); background: transparent; color: var(--fg);
  transition: background .15s ease, color .15s ease;
}
.mp-chip:hover { background: var(--surface); }
.mp-chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.mp-chip .mp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--r, var(--fg)); flex: none; box-shadow: 0 0 0 2px var(--bg); }
.mp-chip em { font-style: normal; font-family: var(--font-mono); font-size: 11px; opacity: .7; }

/* ---------- 4. mapa + dossiê ---------- */
.mp-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.mp-mapa { position: relative; border: 2px solid var(--fg); background: var(--mp-land); }
.mp-mapa-h, .mp-dossie-h {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--fg); color: var(--bg); padding: 7px 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.mp-canvas { position: relative; aspect-ratio: 1000 / 620; overflow: hidden; }
.mp-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mp-mapa-f { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 7px 14px; border-top: 2px solid var(--fg); background: var(--surface); color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* SVG */
.mp-svg-grid { stroke: var(--line); stroke-width: .7; fill: none; }
.mp-svg-forest { fill: var(--mp-forest); }
.mp-svg-trees { fill: url(#mp-trees); }
.mp-svg-water { fill: none; stroke: var(--mp-water); stroke-linecap: round; stroke-linejoin: round; }
.mp-svg-lake { fill: var(--mp-water); }
.mp-svg-flow { fill: none; stroke: var(--mp-water-hi); stroke-width: 2; stroke-dasharray: 6 14; stroke-linecap: round; animation: mp-flow 3s linear infinite; }
.mp-svg-cliff { fill: none; stroke: var(--mp-rock); stroke-width: 50; stroke-dasharray: 1.5 4; }
.mp-svg-contour { fill: none; stroke: var(--mp-rock); stroke-width: 1; opacity: .55; }
.mp-svg-road { fill: none; stroke: var(--mp-road); stroke-width: 9; stroke-linecap: round; }
.mp-svg-road-edge { fill: none; stroke: var(--line); stroke-width: 12; stroke-linecap: round; }
.mp-svg-road-mid { fill: none; stroke: var(--bg); stroke-width: 1.2; stroke-dasharray: 6 7; opacity: .8; }
.mp-svg-trail { fill: none; stroke: var(--mp-rock); stroke-width: 2.4; stroke-dasharray: 2 6; stroke-linecap: round; }
.mp-svg-block { fill: var(--mp-block); stroke: var(--fg); stroke-width: .6; stroke-opacity: .35; }
.mp-svg-house { fill: var(--mp-block); }
.mp-svg-fence { fill: url(#mp-hatch); stroke: var(--blood); stroke-width: 2; stroke-dasharray: 7 4; }
.mp-svg-safe { fill: var(--mp-safe); stroke: var(--fg); stroke-width: 3; }
.mp-svg-ruin { fill: none; stroke: var(--fg); stroke-width: 1.4; opacity: .55; }
.mp-svg-crater { fill: var(--mp-rock); opacity: .35; }
.mp-svg-ink { fill: var(--fg); }
.mp-svg-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; fill: var(--muted); text-transform: uppercase; }
.mp-svg-label-big { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .3em; fill: var(--fg); opacity: .22; }
.mp-svg-paper { fill: var(--bg); stroke: var(--fg); stroke-width: 1.2; }

/* marcadores (botões HTML por cima do SVG) */
.mp-marker {
  --r: var(--fg); position: absolute; transform: translate(-50%, -50%) scale(var(--iz, 1));
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--fg);
  display: grid; place-items: center; z-index: 2;
  transition: opacity .25s ease, transform .25s ease;
}
.mp-marker[data-risco="baixo"] { --r: var(--mp-baixo); }
.mp-marker[data-risco="medio"] { --r: var(--mp-medio); }
.mp-marker[data-risco="alto"] { --r: var(--mp-alto); }
.mp-marker[data-risco="extremo"] { --r: var(--mp-extremo); }
.mp-marker .mp-pin {
  position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--r);
  border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--r), 0 2px 6px rgba(0,0,0,.35);
  display: grid; place-items: center; transition: transform .2s ease;
}
.mp-marker .mp-pin::before, .mp-marker .mp-pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--r);
  animation: mp-pulse 2.4s ease-out infinite; pointer-events: none;
}
.mp-marker .mp-pin::after { animation-delay: 1.2s; }
.mp-marker[data-risco="extremo"] .mp-pin::before, .mp-marker[data-risco="extremo"] .mp-pin::after { animation-duration: 1.3s; }
.mp-marker[data-risco="extremo"] .mp-pin::after { animation-delay: .65s; }
.mp-marker .mp-tag {
  position: absolute; left: 50%; top: calc(50% + 17px); transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--fg); padding: 1px 6px; line-height: 1.5;
  pointer-events: none;
}
.mp-marker .mp-tag b { color: var(--r); margin-right: 4px; }
.mp-marker:hover .mp-pin, .mp-marker:focus-visible .mp-pin { transform: scale(1.18); }
.mp-marker:focus-visible { outline: none; }
.mp-marker:focus-visible .mp-pin { outline: 3px solid var(--accent); outline-offset: 6px; }
.mp-marker[aria-pressed="true"] { z-index: 3; }
.mp-marker[aria-pressed="true"] .mp-pin { transform: scale(1.3); background: var(--bg); border-color: var(--r); border-width: 6px; }
.mp-marker[aria-pressed="true"] .mp-tag { background: var(--fg); color: var(--bg); }
.mp-marker.is-off { opacity: .14; pointer-events: none; transform: translate(-50%, -50%) scale(calc(var(--iz, 1) * .7)); }
.mp-marker.is-off .mp-pin::before, .mp-marker.is-off .mp-pin::after { animation: none; opacity: 0; }

/* dossiê */
.mp-dossie { border: 2px solid var(--fg); background: var(--surface); position: relative; }
.mp-dossie-h .mp-confid { color: var(--bg); opacity: .75; }
.mp-foto { position: relative; overflow: hidden; border-bottom: 2px solid var(--fg); aspect-ratio: 16 / 9; background: var(--line); margin: 0; }
.mp-foto img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s ease; }
.mp-foto:hover img, .mp-card:hover img { transform: scale(1.06); }
.mp-foto .mp-carimbo {
  position: absolute; right: 10px; bottom: 10px; transform: rotate(-6deg);
  font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--r, var(--blood)); border: 3px solid currentColor; padding: 0 9px; background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.mp-dossie-body { padding: 14px 16px 16px; }
.mp-dossie-body h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 34px; letter-spacing: .03em; line-height: .95; margin: 2px 0 10px; }
.mp-ref { color: var(--blood); }
.mp-ficha { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.mp-ficha dt, .mp-ficha dd { padding-block: 7px; border-bottom: 1px dashed var(--line); margin: 0; }
.mp-ficha dt { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); align-self: center; }
.mp-ficha dd { font-weight: 600; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-meter { display: inline-grid; grid-template-columns: repeat(4, 12px); gap: 3px; }
.mp-meter i { height: 10px; background: var(--line); transform: skewX(-20deg); }
.mp-meter i.on { background: var(--r); }
.mp-loot { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--fg); padding: 0 6px; }
.mp-loot[data-loot="militar"] { background: var(--fg); color: var(--bg); }
.mp-loot[data-loot="raro"] { border-color: var(--accent); color: var(--accent); }
.mp-ex { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--blood); border: 1px solid var(--blood); padding: 0 5px; font-weight: 400; }
.mp-lore { margin: 12px 0 0; padding-left: 12px; border-left: 4px solid var(--r, var(--accent)); font-size: 15px; line-height: 1.55; font-style: italic; }
.mp-nav { display: flex; gap: 8px; margin-top: 14px; }
.mp-nav button { flex: 1; font: 600 13px var(--font-body); padding: 8px 10px; border: 1.5px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; }
.mp-nav button:hover { background: var(--bg); }
.mp-close { display: none; }
.mp-swap { animation: mp-in .35s ease both; }

/* ---------- 5. registros (miniaturas) ---------- */
.mp-cards { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.mp-card { --r: var(--fg); }
.mp-card[data-risco="baixo"] { --r: var(--mp-baixo); }
.mp-card[data-risco="medio"] { --r: var(--mp-medio); }
.mp-card[data-risco="alto"] { --r: var(--mp-alto); }
.mp-card[data-risco="extremo"] { --r: var(--mp-extremo); }
.mp-card button { display: block; width: 100%; padding: 0; text-align: left; cursor: pointer; border: 2px solid var(--fg); background: var(--surface); color: var(--fg); font: inherit; transition: transform .2s ease, opacity .25s ease; }
.mp-card button:hover { transform: translateY(-3px); }
.mp-card .mp-thumb { overflow: hidden; aspect-ratio: 16 / 10; border-bottom: 4px solid var(--r); }
.mp-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.mp-card span { display: block; padding: 6px 8px 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.mp-card span b { display: block; font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; }
.mp-card button[aria-pressed="true"] { outline: 3px solid var(--r); outline-offset: 2px; }
.mp-card.is-off button { opacity: .25; }

/* ---------- 6. CTA ---------- */
.mp-cta { margin-top: 40px; position: relative; background: var(--fg); color: var(--bg); border: 2px solid var(--fg); overflow: hidden; }
.mp-cta .hazard { height: 12px; }
.mp-cta-in { display: grid; grid-template-columns: 1.4fr auto; gap: 20px 32px; align-items: center; padding: 30px 32px 34px; }
.mp-cta h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 5.4vw, 60px); line-height: .9; margin: 0; letter-spacing: .02em; }
.mp-cta h3 span { color: var(--accent); }
.mp-cta p { margin: 12px 0 0; max-width: 34em; opacity: .85; }
.mp-cta .cta { justify-content: flex-end; }
.mp-cta .btn-ghost { color: var(--bg); border-color: var(--bg); }
.mp-cta .btn-ghost:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }
.mp-cta .cta-note { color: var(--bg); opacity: .7; text-align: right; margin: 10px 0 0; }
.mp-cta .mp-stamp2 {
  position: absolute; right: 26px; top: 26px; transform: rotate(8deg); opacity: .16; pointer-events: none;
  font-family: var(--font-display); font-weight: 900; font-size: 64px; letter-spacing: .1em; text-transform: uppercase;
  border: 5px solid currentColor; padding: 0 14px; line-height: 1.1; color: var(--accent);
}

/* ---------- animações ---------- */
@keyframes mp-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes mp-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot, var(--blood)) 70%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes mp-blink { to { visibility: hidden; } }
@keyframes mp-flow { to { stroke-dashoffset: -40; } }
@keyframes mp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .mp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-status { grid-template-columns: 1fr 1fr; }
  .mp-status-h { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; }
  .mp-stat { border-left: 0; border-top: 1px solid var(--line); }
  .mp-stat:nth-of-type(odd) { border-right: 1px solid var(--line); }
  .mp-marker .mp-tag { display: none; }
  .mp-marker[aria-pressed="true"] .mp-tag { display: block; }
  .mp-cta-in { grid-template-columns: 1fr; padding: 24px 20px 26px; }
  .mp-cta .cta { justify-content: flex-start; }
  .mp-cta .cta-note { text-align: left; }
  .mp-cta .mp-stamp2 { font-size: 40px; top: 30px; right: 10px; }

  /* dossiê vira bottom sheet */
  .mp-dossie {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 88vh; overflow-y: auto;
    border-width: 2px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.35);
    transform: translateY(105%); transition: transform .35s cubic-bezier(.2,.7,.2,1); visibility: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mp-dossie.is-open { transform: none; visibility: visible; }
  .mp-dossie-h { position: sticky; top: 0; z-index: 2; }
  .mp-close { display: inline-block; font: 600 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--bg); color: var(--fg); border: 0; padding: 5px 10px; cursor: pointer; }
  .mp-foto { aspect-ratio: 16 / 8; }
  .mp-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(10,12,6,.55); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .mp-backdrop.is-open { opacity: 1; pointer-events: auto; }
  .mp-dica { display: block !important; }
}
.mp-dica { display: none; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) {
  .mp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-marker { width: 36px; height: 36px; }
  .mp-marker .mp-pin { width: 16px; height: 16px; border-width: 2px; }
  .mp-stat b { font-size: 28px; }
  .mp-video .mp-stamp { font-size: 13px; top: 14px; }
  .mp-video-inner { padding-top: 64px; }
  .mp-rec { font-size: 10px; letter-spacing: .06em; }
  .mp-video p.mp-lead { font-size: 16px; }
  .mp-mapa-f span:last-child { display: none; }
  .mp-dossie-body h3 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  #mapa *, #mapa *::before, #mapa *::after { animation: none !important; transition: none !important; }
  .mp-foto:hover img, .mp-card:hover img { transform: none; }
}

/* =====================================================================
   v2 · ANIMAÇÕES E TRANSIÇÕES
   Tudo abaixo só "esconde" conteúdo quando o mapa.js coloca a classe
   .mp-anim no #mapa — e ele NÃO coloca se o usuário pediu menos
   movimento (prefers-reduced-motion) ou se o JS não carregar.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.mp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#mapa { --ease-out: cubic-bezier(.2,.75,.2,1); }

/* ---------- scroll-reveal ---------- */
.mp-anim [data-reveal]:not([data-reveal="stagger"]),
.mp-anim [data-reveal="stagger"] > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease-out) var(--d, 0s), transform .7s var(--ease-out) var(--d, 0s);
}
.mp-anim [data-reveal].is-in:not([data-reveal="stagger"]),
.mp-anim [data-reveal="stagger"].is-in > * { opacity: 1; transform: none; }
.mp-anim .mp-card[data-reveal] { transform: translateY(26px) scale(.96); }
.mp-anim .mp-card[data-reveal].is-in { transform: none; }

/* ---------- intro do mapa ---------- */
.mp-scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; opacity: 0; }
.mp-radar {
  position: absolute; left: 50%; top: 51.3%; width: 230%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent) 32%, transparent) 0deg, transparent 46deg, transparent 360deg);
  border-radius: 50%; mix-blend-mode: multiply;
}
.mp-band {
  position: absolute; top: 0; bottom: 0; left: 0; width: 22%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 18%, transparent) 75%, color-mix(in srgb, var(--accent) 70%, transparent) 100%);
  transform: translateX(-110%);
}
.mp-mapa.is-in .mp-scan { animation: mp-scan-fade 2.4s ease forwards; }
.mp-mapa.is-in .mp-radar { animation: mp-radar 1.9s cubic-bezier(.4,.1,.3,1) forwards; }
.mp-mapa.is-in .mp-band { animation: mp-band 1.5s cubic-bezier(.5,0,.3,1) .15s forwards; }

.mp-anim .mp-draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.mp-anim .mp-mapa.is-in .mp-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.45,.05,.25,1) var(--dd, 0s); }
.mp-anim .mp-late, .mp-anim .mp-svg-flow,
.mp-anim .mp-svg-block, .mp-anim .mp-svg-house, .mp-anim .mp-svg-fence, .mp-anim .mp-svg-ruin, .mp-anim .mp-svg-crater,
.mp-anim .mp-svg-safe, .mp-anim .mp-pop { opacity: 0; transition: opacity .9s ease; }
.mp-anim .mp-mapa.is-in :is(.mp-svg-block, .mp-svg-house, .mp-svg-fence, .mp-svg-ruin, .mp-svg-crater) { opacity: 1; transition-delay: .9s; }
.mp-anim .mp-mapa.is-in :is(.mp-svg-safe, .mp-pop) { opacity: 1; transition-delay: .5s; }
.mp-anim .mp-mapa.is-in :is(.mp-late, .mp-svg-flow) { opacity: 1; transition-delay: 1.7s; }
.mp-anim .mp-svg-cliff.mp-late { transition-delay: 1.2s; }

/* marcadores caem um por um com um "ping" */
.mp-anim .mp-mapa:not(.is-in) .mp-marker { opacity: 0; }
.mp-mapa.is-in .mp-marker { animation: mp-fade .35s ease var(--d, 0s) backwards; }
.mp-mapa.is-in .mp-marker .mp-pin { animation: mp-drop .6s cubic-bezier(.3,1.6,.5,1) var(--d, 0s) backwards; }
.mp-mapa.is-in .mp-marker .mp-tag { animation: mp-fade .4s ease calc(var(--d, 0s) + .35s) backwards; }
.mp-mapa.is-in .mp-marker::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 3px solid var(--r); opacity: 0; pointer-events: none;
  animation: mp-ping-once .9s ease-out calc(var(--d, 0s) + .4s);
}

/* cabeçalho "Carta tática": granulado + flicker */
.mp-mapa-h { position: relative; overflow: hidden; }
.mp-mapa-h::after {
  content: ""; position: absolute; inset: -50%; pointer-events: none; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: mp-grain .9s steps(4) infinite;
}
.mp-mapa.is-in .mp-flicker { animation: mp-flicker 1.1s linear .2s both, mp-flicker-idle 9s linear 3s infinite; }

/* ---------- marcadores: mira ao passar o mouse + anel girando no selecionado ---------- */
.mp-lock, .mp-ring { position: absolute; pointer-events: none; }
.mp-lock {
  inset: 0; opacity: 0; transform: scale(1.7) rotate(45deg); transition: opacity .2s ease, transform .3s var(--ease-out);
  --c: var(--r); --l: 9px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
}
.mp-lock::before, .mp-lock::after { content: ""; position: absolute; background: var(--r); opacity: .7; }
.mp-lock::before { left: 50%; top: -7px; bottom: -7px; width: 1px; transform: translateX(-50%);
  -webkit-mask: linear-gradient(#000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); mask: linear-gradient(#000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); }
.mp-lock::after { top: 50%; left: -7px; right: -7px; height: 1px; transform: translateY(-50%);
  -webkit-mask: linear-gradient(90deg, #000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); mask: linear-gradient(90deg, #000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); }
.mp-marker:hover .mp-lock, .mp-marker:focus-visible .mp-lock { opacity: 1; transform: none; }
.mp-ring { inset: 2px; border-radius: 50%; border: 2px dashed var(--r); opacity: 0; transform: scale(.5); transition: opacity .3s ease, transform .4s var(--ease-out); }
.mp-marker[aria-pressed="true"] .mp-ring { opacity: 1; transform: scale(1); animation: mp-spin 7s linear infinite; }
.mp-marker:hover .mp-pin, .mp-marker:focus-visible .mp-pin { transform: scale(1.25); }
.mp-marker[aria-pressed="true"]:hover .mp-pin { transform: scale(1.35); }
.mp-marker:hover .mp-tag { background: var(--fg); color: var(--bg); }

/* ---------- dossiê: troca de local ---------- */
.mp-swap { animation: mp-swap-in .45s var(--ease-out) both; }
.mp-swap .mp-dossie-body > * { animation: mp-slide .5s var(--ease-out) both; }
.mp-swap .mp-dossie-body > :nth-child(2) { animation-delay: .05s; }
.mp-swap .mp-dossie-body > :nth-child(3) { animation-delay: .1s; }
.mp-swap .mp-dossie-body > :nth-child(4) { animation-delay: .15s; }
.mp-swap .mp-dossie-body > :nth-child(5) { animation-delay: .2s; }
.mp-swap .mp-foto img { animation: mp-glitch .55s steps(1, end) both; }
.mp-foto::after { /* barra de varredura */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent) 85%, rgba(255,255,255,.7) 100%);
}
.mp-swap .mp-foto::after { animation: mp-scanbar .6s ease-out both; }
.mp-foto::before { /* linhas de tv */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 1px, transparent 1px 3px);
}
.mp-swap .mp-foto::before { animation: mp-tv .7s ease-out both; }
.mp-swap .mp-carimbo { animation: mp-slam .5s cubic-bezier(.3,1.5,.5,1) .35s both; }
.mp-meter i { transform-origin: left center; }
.mp-swap .mp-meter i.on { animation: mp-bar .28s ease-out both; }
.mp-swap .mp-meter i.on:nth-child(1) { animation-delay: .35s; }
.mp-swap .mp-meter i.on:nth-child(2) { animation-delay: .47s; }
.mp-swap .mp-meter i.on:nth-child(3) { animation-delay: .59s; }
.mp-swap .mp-meter i.on:nth-child(4) { animation-delay: .71s; }
.mp-lore { cursor: default; min-height: 4.65em; }
.mp-type.is-typing { cursor: pointer; }
.mp-type.is-typing::after { content: "▌"; margin-left: 1px; color: var(--r, var(--accent)); animation: mp-blink .7s steps(2, start) infinite; font-style: normal; }

/* ---------- status: AO VIVO ---------- */

.mp-stat b .mp-n { display: inline; font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; font-variant-numeric: tabular-nums; }

/* ---------- cards: inclinação, zoom, legenda ---------- */
.mp-cards { perspective: 900px; }
.mp-card button {
  position: relative; transform-style: preserve-3d; will-change: transform;
  transition: transform .35s var(--ease-out), box-shadow .35s ease, opacity .25s ease;
}
.mp-card button:hover {
  transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 14px 24px -12px rgba(0,0,0,.45);
}
.mp-card button:active { transform: translateY(-2px) scale(.98); }
.mp-card:hover img { transform: scale(1.12); }
.mp-card span { position: relative; overflow: hidden; transition: color .3s ease; }
.mp-card span::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--r);
  transform: translateX(-101%); transition: transform .35s var(--ease-out);
}
.mp-card span { isolation: isolate; }
.mp-card span b { transition: transform .35s var(--ease-out); }
.mp-card button:hover span { color: #fff8e2; }
.mp-card button:hover span::before { transform: none; }
.mp-card button:hover span b { transform: translateX(6px); }

/* ---------- CTA ---------- */
.mp-cta .hazard { animation: mp-hazard 2.2s linear infinite; }
.mp-cta .btn-primary { position: relative; animation: mp-glow 2.6s ease-in-out infinite; transition: transform .15s ease, filter .15s ease; }
.mp-cta .btn-primary:hover { filter: brightness(1.08); }
.mp-cta .btn-primary:active, .mp-cta .btn-ghost:active { transform: translateY(1px) scale(.97); animation: none; }
.mp-cta .btn-primary:hover svg { animation: mp-nudge .8s ease-in-out infinite; }
.mp-anim .mp-cta .mp-stamp2 { opacity: 0; transform: rotate(-10deg) scale(2.2); }
.mp-anim .mp-cta.is-in .mp-stamp2 { animation: mp-stamp-cta .6s cubic-bezier(.3,1.4,.5,1) .5s forwards; }

/* ---------- keyframes v2 ---------- */
@keyframes mp-scan-fade { 0% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mp-radar { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes mp-band { to { transform: translateX(560%); } }
@keyframes mp-fade { from { opacity: 0; } }
@keyframes mp-drop { 0% { transform: translateY(-34px) scale(1.5); opacity: 0; } 60% { opacity: 1; } }
@keyframes mp-ping-once { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes mp-grain { 0% { transform: translate(0,0); } 25% { transform: translate(-8%, 6%); } 50% { transform: translate(6%, -4%); } 75% { transform: translate(-4%, -8%); } 100% { transform: translate(0,0); } }
@keyframes mp-flicker { 0%, 12%, 24%, 40% { opacity: .15; } 6%, 18%, 30%, 100% { opacity: 1; } }
@keyframes mp-flicker-idle { 0%, 96%, 98%, 100% { opacity: 1; } 97%, 99% { opacity: .35; } }
@keyframes mp-spin { to { transform: rotate(360deg); } }
@keyframes mp-swap-in { from { opacity: .35; } }
@keyframes mp-slide { from { opacity: 0; transform: translateX(14px); } }
@keyframes mp-glitch {
  0% { clip-path: inset(0 0 100% 0); filter: contrast(1.6) saturate(0); }
  15% { clip-path: inset(0 0 62% 0); transform: translateX(-8px); filter: contrast(1.5) hue-rotate(40deg); }
  30% { clip-path: inset(30% 0 20% 0); transform: translateX(6px); }
  45% { clip-path: inset(0 0 25% 0); transform: translateX(-3px); filter: contrast(1.2); }
  60% { clip-path: inset(10% 0 0 0); transform: translateX(2px); }
  75%, 100% { clip-path: inset(0); transform: none; filter: none; }
}
@keyframes mp-scanbar { 0% { opacity: 1; transform: translateY(-100%); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(340%); } }
@keyframes mp-tv { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes mp-slam { 0% { opacity: 0; transform: scale(2.6) rotate(-24deg); } 60% { opacity: 1; transform: scale(.9) rotate(-4deg); } 100% { opacity: 1; transform: scale(1) rotate(-6deg); } }
@keyframes mp-bar { from { transform: skewX(-20deg) scaleX(0); } to { transform: skewX(-20deg) scaleX(1); } }
@keyframes mp-dot-blink { 50% { opacity: .25; } }
@keyframes mp-hazard { to { background-position: 39.598px 0; } }
@keyframes mp-glow {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent), 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent), 0 0 22px 2px color-mix(in srgb, var(--accent) 45%, transparent); }
}
@keyframes mp-nudge { 50% { transform: translateY(3px); } }
@keyframes mp-stamp-cta { to { opacity: .16; transform: rotate(8deg) scale(1); } }

/* menos movimento: nada esconde, nada anima (o JS também pula digitação e contagem) */
@media (prefers-reduced-motion: reduce) {
  #mapa *, #mapa *::before, #mapa *::after { animation: none !important; transition: none !important; }
  .mp-scan { display: none; }
  .mp-card button:hover { transform: none; }
}

/* v3: foto do dossiê abre o visualizador */
.mp-foto[role="button"] { cursor: zoom-in; }
.mp-foto[role="button"]::after { z-index: 1; }
.mp-foto .mp-ampliar { position: absolute; left: 10px; top: 10px; z-index: 2; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; background: var(--fg); color: var(--bg); padding: 2px 7px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.mp-foto:hover .mp-ampliar, .mp-foto:focus-visible .mp-ampliar { opacity: .9; transform: none; }
.mp-foto:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* =====================================================================
   v4 · MAPA VIVO
   Animações contínuas (só transform/opacity), zoom/arrasto, rota,
   visão noturna. Tudo pausa fora da tela (classe .is-live, posta pelo
   mapa.js) e some com "reduzir movimento".
   ===================================================================== */
.mp-grid { position: relative; }
.mp-canvas { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.mp-canvas.is-mover { touch-action: none; }
.mp-mapa.is-drag .mp-canvas { cursor: grabbing; }
.mp-stage { position: absolute; inset: 0; transform-origin: 0 0; }
.mp-mapa.is-drag .mp-stage { will-change: transform; }
.mp-stage.is-ease { transition: transform .85s cubic-bezier(.22,.8,.2,1); }
.mp-stage.is-ease .mp-marker { transition: opacity .3s ease, transform .85s cubic-bezier(.22,.8,.2,1); }
.mp-stage.is-ease .mp-route-lbl { transition: transform .85s cubic-bezier(.22,.8,.2,1), opacity .3s; }
.mp-zonas, .mp-fx { position: absolute; inset: 0; pointer-events: none; }
.mp-zonas i, .mp-zonas span, .mp-fx i, .mp-fx span, .mp-fx b { position: absolute; display: block; }
.mp-ent svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* pausa tudo quando o mapa não está na tela / aba escondida */
.mp-anim .mp-mapa:not(.is-live) .mp-canvas *,
.mp-anim .mp-mapa:not(.is-live) .mp-canvas *::before,
.mp-anim .mp-mapa:not(.is-live) .mp-canvas *::after { animation-play-state: paused !important; }

/* camadas de efeito entram depois da intro */
.mp-anim .mp-fx, .mp-anim .mp-zonas, .mp-anim .mp-alcance { opacity: 0; transition: opacity 1.2s ease; }
.mp-anim .mp-mapa.is-vivo :is(.mp-fx, .mp-zonas) { opacity: 1; }
.mp-anim .mp-mapa.is-vivo .mp-alcance { opacity: 1; }

/* zonas de perigo + escudo da safezone */
.mp-perigo { --z: var(--mp-alto); border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--z) 70%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--z) 16%, transparent) 0 40%, color-mix(in srgb, var(--z) 7%, transparent) 70%, transparent 71%);
  animation: mp-perigo 3.4s ease-in-out infinite; transition: opacity .3s; }
.mp-perigo[data-risco="extremo"] { --z: var(--mp-extremo); animation-duration: 2.1s; }
@keyframes mp-perigo { 0%, 100% { transform: scale(.94); opacity: .7; } 50% { transform: scale(1.04); opacity: 1; } }
.mp-escudo { border-radius: 50%; border: 2px solid color-mix(in srgb, var(--mp-baixo) 75%, transparent);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--mp-baixo) 30%, transparent); animation: mp-respira 4s ease-in-out infinite; }
.mp-escudo2 { border: 2px dashed color-mix(in srgb, var(--mp-baixo) 60%, transparent); box-shadow: none; transform: scale(1.14); animation: mp-spin-esc 30s linear infinite; }
@keyframes mp-respira { 0%, 100% { transform: scale(.95); opacity: .55; } 50% { transform: scale(1.03); opacity: 1; } }
@keyframes mp-spin-esc { to { transform: scale(1.14) rotate(360deg); } }
.mp-zonas .is-off { opacity: .08 !important; animation-play-state: paused; }

/* radar contínuo saindo da safezone */
.mp-alcance circle { fill: none; stroke: var(--mp-baixo); stroke-width: 1; stroke-dasharray: 2 6; opacity: .35; }
.mp-sweep { left: 50%; top: 51.45%; width: 76%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0 292deg, color-mix(in srgb, var(--mp-baixo) 6%, transparent) 300deg, color-mix(in srgb, var(--mp-baixo) 30%, transparent) 359deg, color-mix(in srgb, var(--mp-baixo) 70%, transparent) 360deg);
  -webkit-mask: radial-gradient(circle, #000 0 69%, transparent 70%); mask: radial-gradient(circle, #000 0 69%, transparent 70%); }
.mp-flash { position: absolute; inset: 9px; border-radius: 50%; border: 2px solid var(--r); opacity: 0; pointer-events: none; }

/* contatos (hordas) */
.mp-blip { width: 1.1%; aspect-ratio: 1; margin: -.55% 0 0 -.55%; border-radius: 50%; background: var(--blood);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--blood) 30%, transparent); animation: mp-blip 5.2s ease-in-out forwards; }
.mp-blip::after { content: ""; position: absolute; inset: -150%; border-radius: 50%; border: 1.5px solid var(--blood); opacity: 0; animation: mp-blip-ring 1.6s ease-out .1s 3; }
.mp-blip b { left: 160%; top: -60%; font: 600 9px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blood); white-space: nowrap; opacity: .9; }
@keyframes mp-blip { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 8% { opacity: 1; transform: translate(0, 0) scale(1); }
  45% { opacity: .9; transform: translate(calc(var(--wx) * .5), calc(var(--wy) * .4)) scale(1); }
  80% { opacity: .75; transform: translate(var(--wx), var(--wy)) scale(.9); } 100% { opacity: 0; transform: translate(var(--wx), var(--wy)) scale(.6); } }
@keyframes mp-blip-ring { from { opacity: .8; transform: scale(.3); } to { opacity: 0; transform: scale(1); } }

/* veículos e helicóptero (posição pelo JS, só transform) */
.mp-ent, .mp-carro { left: 0; top: 0; will-change: transform; }
.mp-carro { width: 1.3%; aspect-ratio: 2 / 1; border-radius: 2px; background: var(--fg); box-shadow: 0 0 0 1.5px var(--bg); }
.mp-carro::after { content: ""; position: absolute; right: -2px; top: 15%; bottom: 15%; width: 3px; border-radius: 2px; background: #ffe39a; box-shadow: 4px 0 6px 2px rgba(255,227,154,.55); }
.mp-heli { width: 5%; aspect-ratio: 52 / 36; }
.mp-heli .b { fill: var(--fg); } .mp-heli .v { fill: var(--mp-water-hi); }
.mp-rotor { fill: var(--fg); opacity: .55; transform-box: fill-box; transform-origin: center; animation: mp-rotor .22s linear infinite; }
@keyframes mp-rotor { to { transform: rotate(360deg); } }
.mp-heli-sh, .mp-aviao-sh { fill: #000; opacity: .16; }
.mp-heli-sh { width: 5%; aspect-ratio: 52 / 36; }
.mp-aviao, .mp-aviao-sh { width: 6.4%; aspect-ratio: 60 / 52; opacity: 0; }
.mp-aviao { fill: var(--fg); }
.mp-aviao.is-on { opacity: 1; } .mp-aviao-sh.is-on { opacity: .14; }

/* airdrop */
.mp-drop { width: 2.2%; aspect-ratio: 1; margin: -1.1% 0 0 -1.1%; animation: mp-drop-fim .8s ease 9.5s forwards; }
.mp-drop-sh { inset: 15%; border-radius: 3px; background: #000; opacity: 0; animation: mp-drop-sh 2.6s ease-in forwards; }
.mp-drop-box { inset: 0; background: var(--accent); border: 2px solid var(--fg); border-radius: 2px; animation: mp-drop-cai 2.6s cubic-bezier(.3,.1,.4,1) forwards; }
.mp-drop-box::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--fg); }
.mp-drop-chute { inset: -70%; border-radius: 50%; background: repeating-conic-gradient(var(--bg) 0 30deg, var(--blood) 30deg 60deg); opacity: .85; animation: mp-chute 2.6s ease forwards; }
.mp-drop-pulse { inset: -60%; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: mp-pulse-drop 1.4s ease-out 2.6s 4; }
.mp-drop-lbl { left: 50%; top: 160%; transform: translateX(-50%); font: 700 10px/1 var(--font-mono); letter-spacing: .14em; color: var(--fg); background: var(--accent); padding: 3px 6px; white-space: nowrap; text-transform: uppercase; opacity: 0; animation: mp-drop-lbl 7s ease 2.5s forwards; }
@keyframes mp-drop-cai { 0% { transform: scale(2.3) translate(-30%, -60%); opacity: 0; } 15% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes mp-chute { 0% { transform: scale(2.3) translate(-15%, -30%); opacity: 0; } 15% { opacity: .85; } 85% { transform: scale(1); opacity: .8; } 100% { transform: scale(.4); opacity: 0; } }
@keyframes mp-drop-sh { 0% { opacity: 0; transform: translate(180%, 180%) scale(1.6); } 100% { opacity: .25; transform: translate(12%, 12%); } }
@keyframes mp-pulse-drop { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }
@keyframes mp-drop-lbl { 0% { opacity: 0; transform: translate(-50%, 6px); } 8%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -4px); } }
@keyframes mp-drop-fim { to { opacity: 0; transform: scale(.6); } }

/* sombras de nuvem / névoa atravessando o mapa */
.mp-nuvem { top: 0; left: 0; width: 46%; aspect-ratio: 1.6; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 24, 14, .16), transparent); animation: mp-nuvem 64s linear infinite; }
.mp-nuvem.n2 { top: 45%; width: 38%; animation-duration: 82s; animation-delay: -40s; }
.mp-nuvem.n3 { top: 15%; width: 60%; background: radial-gradient(closest-side, rgba(255, 255, 250, .2), transparent); animation-duration: 105s; animation-delay: -70s; }
@keyframes mp-nuvem { from { transform: translateX(-110%); } to { transform: translateX(230%); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mp-nuvem { background: radial-gradient(closest-side, rgba(0, 0, 0, .3), transparent); } :root:not([data-theme="light"]) .mp-nuvem.n3 { background: radial-gradient(closest-side, rgba(200, 210, 190, .07), transparent); } }
:root[data-theme="dark"] .mp-nuvem { background: radial-gradient(closest-side, rgba(0, 0, 0, .3), transparent); }

/* rota tracejada até o local (hover/foco/seleção) */
.mp-route path { fill: none; stroke-linecap: round; }
.mp-route-mask { stroke: #fff; stroke-width: 30; fill: none; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.mp-route-glow { stroke: var(--bg); stroke-width: 7; opacity: .8; }
.mp-route-line { stroke: var(--fg); stroke-width: 3; stroke-dasharray: 10 8; animation: mp-march 1s linear infinite; }
.mp-route-end { fill: none; stroke: var(--fg); stroke-width: 2; stroke-dasharray: 4 3; }
.mp-route { opacity: 0; transition: opacity .25s; }
.mp-route.is-on { opacity: 1; }
@keyframes mp-march { to { stroke-dashoffset: -18; } }
.mp-route-lbl { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; transform: translate(-50%, -50%) scale(var(--iz, 1)); white-space: nowrap;
  font: 600 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--fg); color: var(--bg); padding: 3px 7px; opacity: 0; transition: opacity .25s; }
.mp-route-lbl small { font-size: 9px; opacity: .7; margin-left: 5px; letter-spacing: .06em; }
.mp-route-lbl.is-on { opacity: 1; }

/* seleção: outros pontos esmaecem quando o mapa está focado */
.mp-mapa.is-foco .mp-marker:not([aria-pressed="true"]):not(:hover):not(:focus-visible):not(.is-off) { opacity: .42; }

/* rótulos deslizam ao entrar */
.mp-mapa.is-in .mp-marker .mp-tag { animation: mp-tag-in .5s cubic-bezier(.2,.8,.2,1) calc(var(--d, 0s) + .35s) backwards; }
@keyframes mp-tag-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.85); } to { opacity: 1; transform: translateX(-50%); } }
@media (max-width: 820px) { .mp-anim .mp-marker[aria-pressed="true"] .mp-tag { animation: mp-tag-in .4s cubic-bezier(.2,.8,.2,1) both; } }

/* cabeçalho: coordenadas + visão noturna */
.mp-mapa-h { flex-wrap: nowrap; }
.mp-coord { margin-left: auto; font-variant-numeric: tabular-nums; opacity: .8; white-space: nowrap; min-width: 19ch; text-align: right; }
.mp-nv-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: transparent; border: 1.5px solid currentColor; padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.mp-nv-btn i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.mp-nv-btn[aria-pressed="true"] { background: var(--mp-nv-glow); color: #0b1a08; border-color: var(--mp-nv-glow); }
.mp-nv-btn[aria-pressed="true"] i { background: #0b1a08; animation: mp-dot-blink 1.2s steps(2, start) infinite; }
.mp-nv-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* visão noturna */
.mp-stage { transition: filter .6s ease; }
.mp-stage.is-ease { transition: transform .85s cubic-bezier(.22,.8,.2,1), filter .6s ease; }
.mp-mapa.is-nv .mp-stage { filter: var(--mp-nv-filter); }
.mp-nv { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 50%, rgba(0, 12, 0, .55) 100%); }
.mp-mapa.is-nv .mp-nv { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.mp-nv::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 35%; background: linear-gradient(transparent, rgba(160, 255, 140, .35), transparent); transform: translateY(-110%); }
.mp-mapa.is-nv .mp-nv::after { animation: mp-nv-on .9s ease-out; }
.mp-nv-noise { position: absolute; inset: -50%; opacity: .13; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: mp-grain .6s steps(4) infinite; }
.mp-nv b { position: absolute; right: 12px; top: 10px; font: 600 10.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mp-nv-glow); text-shadow: 0 0 6px rgba(157, 255, 138, .7); }
.mp-nv b::before { content: "● "; animation: mp-dot-blink 1.2s steps(2, start) infinite; }
@keyframes mp-nv-on { from { transform: translateY(-110%); } to { transform: translateY(300%); } }

/* controles de zoom */
.mp-ctrl { position: absolute; left: 10px; bottom: 10px; z-index: 5; display: flex; gap: 4px; }
.mp-ctrl button { min-width: 34px; height: 34px; padding: 0 9px; display: grid; place-items: center; font: 600 18px/1 var(--font-mono); color: var(--fg); background: var(--bg); border: 1.5px solid var(--fg); cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.mp-ctrl button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.mp-ctrl button:hover:not(:disabled) { background: var(--fg); color: var(--bg); }
.mp-ctrl button:disabled { opacity: .4; cursor: default; }
.mp-ctrl button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mp-ctrl .mp-mover { display: none; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.mp-ctrl .mp-mover[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.mp-hint { position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -40%); pointer-events: none; background: rgba(15, 17, 11, .85); color: #f1ecd9; font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 9px 14px; opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap; }
.mp-hint.is-on { opacity: 1; transform: translate(-50%, -50%); }

/* linha do marcador até o dossiê (desktop) */
.mp-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 4; opacity: 0; transition: opacity .35s ease; }
.mp-link.is-on { opacity: 1; }
.mp-link path { fill: none; stroke: var(--r, var(--accent)); stroke-width: 1.8; stroke-dasharray: 5 5; animation: mp-march-link 1.1s linear infinite; }
.mp-link circle { fill: var(--bg); stroke: var(--r, var(--accent)); stroke-width: 2; }
@keyframes mp-march-link { to { stroke-dashoffset: -10; } }
.mp-anim .mp-mapa:not(.is-live) ~ .mp-link path { animation-play-state: paused; }

.mp-f-mob { display: none; }
@media (max-width: 820px) {
  .mp-coord { display: none; }
  .mp-ctrl .mp-mover { display: grid; }
  .mp-f-desk { display: none; }
  .mp-f-mob { display: inline; }
  .mp-link { display: none; }
  .mp-mapa-h { padding: 6px 10px; }
  .mp-mapa-h .mp-flicker { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 520px) {
  .mp-mapa-f span.mp-f-mob { display: inline; }
  .mp-ctrl { left: 6px; bottom: 6px; } .mp-ctrl button { min-width: 30px; height: 30px; font-size: 16px; }
}
@media (hover: none) { .mp-canvas { cursor: default; } }

/* menos movimento: nada se mexe sozinho; zonas e rota ficam estáticas */
@media (prefers-reduced-motion: reduce) {
  .mp-fx, .mp-route-line { animation: none !important; }
  .mp-fx { display: none; }
  .mp-route-mask { stroke-dashoffset: 0; }
  .mp-nv-noise { display: none; }
}
.mp-vias path { fill: none; stroke: none; }
.mp-blip b, .mp-drop-lbl { transform-origin: 0 50%; scale: var(--iz, 1); }

/* =====================================================================
   v5 · MAPA REAL (imagem do servidor + camada SVG por cima)
   A imagem e o SVG ficam dentro de .mp-stage, que tem exatamente a proporção
   da imagem (1833 × 2040). Marcadores e efeitos usam % do stage, então
   acompanham a imagem em qualquer tamanho e zoom.
   ===================================================================== */
#mapa#mapa { --mp-nv-filter: grayscale(1) sepia(1) hue-rotate(52deg) saturate(3.2) brightness(1.18) contrast(1.18); }
@media (min-width: 821px) { .mp-grid { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); } }
.mp-canvas { aspect-ratio: 1833 / 2040; background: #1d2a17; }
.mp-img, .mp-img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mp-img img { object-fit: fill; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.mp-anim .mp-img { opacity: 0; transform: scale(1.03); transition: opacity .9s ease, transform 1.4s cubic-bezier(.2,.7,.2,1); }
.mp-anim .mp-mapa.is-in .mp-img { opacity: 1; transform: none; }
/* radar da intro sai da safezone */
.mp-radar { left: var(--sx, 50%); top: var(--sy, 50%); }
/* grade A–J × 1–11 + rosa dos ventos */
.mp-g-lines path { stroke: #fff; stroke-width: 1; opacity: .16; fill: none; }
.mp-g-lbl text { font: 600 13px var(--font-mono); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(10, 14, 8, .75); stroke-width: 3px; opacity: .85; }
.mp-rosa circle { fill: rgba(241, 236, 217, .9); stroke: #14170f; stroke-width: 1.2; }
.mp-rosa .n { fill: var(--blood); } .mp-rosa .s { fill: #14170f; opacity: .4; }
.mp-rosa text { font: 600 12px var(--font-mono); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: rgba(10, 14, 8, .75); stroke-width: 3px; }
/* sobre a foto, contraste extra para o que é desenhado */
.mp-route-glow { stroke: #f1ecd9; opacity: .9; }
.mp-route-line { stroke: #14170f; }
.mp-route-end { stroke: #f1ecd9; stroke-width: 2.5; }
.mp-alcance circle { stroke: #d9f2b4; opacity: .45; }
.mp-carro { background: #f1ecd9; box-shadow: 0 0 0 1.5px #14170f; }
.mp-heli, .mp-aviao { filter: drop-shadow(0 0 1px rgba(241, 236, 217, .9)); }
.mp-nuvem { background: radial-gradient(closest-side, rgba(10, 14, 8, .22), transparent); }
.mp-nuvem.n3 { background: radial-gradient(closest-side, rgba(255, 255, 250, .16), transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mp-nuvem { background: radial-gradient(closest-side, rgba(0, 0, 0, .3), transparent); } }
/* dossiê acompanha a rolagem ao lado do mapa (mais alto agora) */
@media (min-width: 821px) { .mp-dossie { position: sticky; top: 84px; } }

/* modo calibrar (?calibrar=1) */
.mp-mapa.is-calibrar .mp-canvas { cursor: crosshair; }
.mp-cal { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; }
.mp-cal.is-on { opacity: 1; }
.mp-cal i { position: absolute; background: #ff3b3b; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }
.mp-cal .h { left: 0; right: 0; top: 0; height: 1px; transform: translateY(var(--cy, 0)); }
.mp-cal .v { top: 0; bottom: 0; left: 0; width: 1px; transform: translateX(var(--cx, 0)); }
.mp-cal b { position: absolute; left: 0; top: 0; transform: translate(calc(var(--cx, 0) + 10px), calc(var(--cy, 0) + 10px)); background: #ff3b3b; color: #fff; font: 600 11px var(--font-mono); padding: 3px 6px; white-space: nowrap; }
.mp-cal-info { position: absolute; left: 50%; top: 8px; z-index: 7; transform: translateX(-50%); background: rgba(15, 17, 11, .88); color: #f1ecd9; font: 500 11px var(--font-mono); letter-spacing: .04em; padding: 5px 9px; white-space: nowrap; pointer-events: none; }
.mp-cal-info b { color: #ff7b6b; text-transform: uppercase; }
.mp-cal-toast { position: absolute; left: 50%; bottom: 56px; z-index: 8; transform: translate(-50%, 8px); background: #ff3b3b; color: #fff; font: 600 12px var(--font-mono); padding: 8px 12px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; }
.mp-cal-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 520px) { .mp-cal-info { font-size: 10px; max-width: 92%; white-space: normal; text-align: center; } }

/* =====================================================================
   v6 · 10 LOCAIS REAIS
   ===================================================================== */
.mp-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 520px) { .mp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mp-foto { aspect-ratio: 1280 / 661; }
@media (max-width: 820px) { .mp-foto { aspect-ratio: 16 / 8; } }
/* nome do local em volta do ponto: data-tag = b (baixo) | t (cima) | l (esquerda) | r (direita) */
.mp-marker .mp-tag { --tx: -50%; --ty: 0px; transform: translate(var(--tx), var(--ty)); }
.mp-marker[data-tag="t"] .mp-tag { top: auto; bottom: calc(50% + 17px); }
.mp-marker[data-tag="r"] .mp-tag { left: calc(50% + 16px); top: 50%; --tx: 0px; --ty: -50%; }
.mp-marker[data-tag="l"] .mp-tag { left: auto; right: calc(50% + 16px); top: 50%; --tx: 0px; --ty: -50%; }
@keyframes mp-tag-in { from { opacity: 0; transform: translate(var(--tx), var(--ty)) translateY(-8px) scale(.85); } to { opacity: 1; transform: translate(var(--tx), var(--ty)); } }
/* telas de 360 px: cabeçalho do mapa encolhe em vez de alargar a página */
.mp-grid > * { min-width: 0; }
.mp-mapa-h .mp-flicker { min-width: 0; }
