/* Mobile map teaser + takeover (MAP_EXPERIENCE_SPEC §2). Teaser = cinematic
   ink field + topo texture + light leak + DROP IN lockup; no GL, no tiles. */

[data-mtb-map-teased] { position: relative; min-height: 42vh; }

.omtb-map-teaser {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #0a0c10;
  display: block;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.omtb-map-teaser__field {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(64, 150, 170, 0.12), transparent 55%),
    linear-gradient(160deg, #10131a 0%, #0a0c10 55%, #120d0a 100%);
}
/* one-color wandering contour texture (DESIGN.md sanctioned) */
.omtb-map-teaser__topo {
  position: absolute; inset: -10%;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420' fill='none' stroke='%23f6f3ec' stroke-opacity='0.10' stroke-width='1'><path d='M20 320 C90 260 60 200 140 180 S260 220 300 150 380 90 410 110'/><path d='M0 350 C80 300 70 230 150 210 S270 250 310 180 390 120 420 140'/><path d='M-10 385 C70 340 80 260 160 240 S280 280 320 210 400 150 430 170'/><path d='M30 60 C90 90 160 70 200 40'/><path d='M20 90 C90 120 170 100 215 66'/><path d='M10 120 C90 150 180 130 230 92'/></svg>");
  background-size: 420px 420px;
}
.omtb-map-teaser__leak {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 12% 88%, rgba(255, 107, 53, 0.26), transparent 60%),
    radial-gradient(45% 40% at 90% 80%, rgba(255, 138, 74, 0.10), transparent 65%);
  mix-blend-mode: screen;
}
/* film grain */
.omtb-map-teaser::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.14'/></svg>");
  pointer-events: none;
}
.omtb-map-teaser__lockup {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: block;
}
.omtb-map-teaser__title {
  display: block;
  font: 800 clamp(34px, 9vw, 56px)/1 "Hanken Grotesk", "Inter", sans-serif;
  letter-spacing: 0.02em;
  color: #F6F3EC;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}
.omtb-map-teaser__sub {
  display: block;
  margin-top: 10px;
  font: 600 11px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(246, 243, 236, 0.68);
}
/* breathing invite on the title underline — compositor-only */
.omtb-map-teaser__title::after {
  content: '';
  display: block;
  margin: 14px auto 0;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff8a4a, transparent);
  animation: omtb-teaser-breathe 3.2s ease-in-out infinite;
}
@keyframes omtb-teaser-breathe {
  0%, 100% { opacity: 0.45; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.6); }
}
.omtb-map-teaser.is-leaving {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

/* takeover shell (non-standalone embeds) */
.omtb-map-takeover {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 4000 !important;
  background: #0a0c10;
}
html.omtb-map-takeover-open, html.omtb-map-takeover-open body { overflow: hidden !important; }
.omtb-map-takeover__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 4100;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(246, 243, 236, 0.22);
  background: rgba(10, 12, 16, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #F6F3EC;
  font-size: 16px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .omtb-map-teaser__title::after { animation: none; }
}
