/* ============================================================
   Jarvis Map 3D — fullscreen takeover
   No site chrome. Pure cinematic WebGL experience.
   ============================================================ */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #e8ecf2;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Force-hide any leaked site chrome */
#un-topbar, #un-deals-bar, .un-back-bar, footer { display: none !important; }

/* WebGL canvas — full viewport */
#jm3d-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: grab;
}
#jm3d-canvas:active { cursor: grabbing; }

/* ============ Vignette overlay ============ */
.jm3d-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

/* ============ HUD — corners + center ============ */

/* Top-left brand */
.jm3d-brand {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.jm3d-brand-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a90d4, #5bb6e8);
  display: grid; place-items: center;
  box-shadow: 0 0 24px rgba(26,144,212,0.5);
}
.jm3d-brand-logo svg { width: 22px; height: 22px; fill: #fff; }
.jm3d-brand-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.jm3d-brand-text strong { color: #5bb6e8; }
.jm3d-brand-text .eye { color: #9aa9bc; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; display: block; margin-top: 2px; }

/* Top-right close pill (back to site) */
.jm3d-close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e8ecf2;
  font-size: 22px;
  text-decoration: none;
  display: grid; place-items: center;
  backdrop-filter: blur(12px);
  transition: background .15s, transform .15s;
}
.jm3d-close:hover { background: rgba(255,80,80,0.18); transform: scale(1.05); }

/* ============ TOP — hero banner with gradient backdrop ============ */
/* Full-width banner from top of viewport; gradient fades to transparent
   at bottom so map labels behind it dim naturally (no clash). */
.jm3d-hero {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  text-align: center;
  pointer-events: none;
  padding: 72px 24px 32px;
  background: linear-gradient(180deg,
    rgba(0,4,12,0.95) 0%,
    rgba(0,4,12,0.90) 50%,
    rgba(0,4,12,0.65) 80%,
    rgba(0,4,12,0)    100%);
  transition: opacity .6s ease, transform .8s ease;
}
.jm3d-hero.zoomed { opacity: 0; transform: translateY(-30px); pointer-events: none; }

.jm3d-hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.jm3d-hero-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5bb6e8;
  background: rgba(91,182,232,0.10);
  border: 1px solid rgba(91,182,232,0.35);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
  pointer-events: auto;
  animation: jm3d-pulse 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
@keyframes jm3d-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,182,232,0); }
  50%      { box-shadow: 0 0 24px 4px rgba(91,182,232,0.4); }
}

.jm3d-hero-title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #9ad3f0 60%, #5bb6e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 80px rgba(91,182,232,0.4);
  pointer-events: auto;
}

.jm3d-hero-sub {
  font-size: clamp(12px, 1.2vw, 14px);
  color: #c0cad8;
  margin-bottom: 16px;
  line-height: 1.4;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  pointer-events: auto;
}
.jm3d-hero-sub strong { color: #e8ecf2; font-weight: 700; }

/* ZIP input shell */
.jm3d-input-shell {
  position: relative;
  display: flex;
  background: rgba(10, 20, 35, 0.75);
  border: 1px solid rgba(91,182,232,0.35);
  border-radius: 18px;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(91,182,232,0.1),
    0 0 60px rgba(91,182,232,0.25),
    0 20px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  pointer-events: auto;
  transition: border-color .2s, box-shadow .2s;
}
.jm3d-input-shell:focus-within {
  border-color: rgba(91,182,232,0.7);
  box-shadow:
    0 0 0 1px rgba(91,182,232,0.3),
    0 0 100px rgba(91,182,232,0.5),
    0 20px 60px rgba(0,0,0,0.5);
}
.jm3d-zip-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 16px 22px;
  text-align: center;
  /* Use the same sans-serif as the rest of the UI — no slashed zeros */
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Inter, sans-serif;
  /* Tabular figures so digits align cleanly while typing */
  font-variant-numeric: tabular-nums;
}
.jm3d-zip-input::placeholder {
  color: rgba(154,169,188,0.45);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 0.7em;
  text-transform: uppercase;
}

/* Kill iOS Safari's bright-yellow autofill background.
   That's what was making the input look like a highlighter bar on phone.
   The 5000s transition is the standard hack — long enough that the
   yellow never has time to render before fading to our dark shell. */
.jm3d-zip-input:-webkit-autofill,
.jm3d-zip-input:-webkit-autofill:hover,
.jm3d-zip-input:-webkit-autofill:focus,
.jm3d-zip-input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 20, 35, 0) inset !important;
  caret-color: #5bb6e8 !important;
  transition: background-color 5000s ease-in-out 0s;
}
/* Belt-and-suspenders: explicitly clear any user-agent background */
.jm3d-zip-input { background-color: transparent !important; }
.jm3d-go-btn {
  background: linear-gradient(135deg, #1a90d4, #5bb6e8);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 8px 24px rgba(26,144,212,0.4);
}
.jm3d-go-btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 12px 32px rgba(26,144,212,0.6); }
.jm3d-go-btn:active { transform: translateY(0); }

/* Easter egg quick-tap chips */
.jm3d-chips {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
}
.jm3d-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: #c0cad8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 7px 13px;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'SF Mono', monospace;
  transition: all .15s;
}
.jm3d-chip:hover { background: rgba(91,182,232,0.12); border-color: rgba(91,182,232,0.4); color: #fff; transform: translateY(-1px); }
.jm3d-chip-hint { font-size: 10px; color: #7c8ba4; letter-spacing: 0.15em; text-transform: uppercase; margin-right: 6px; align-self: center; }

/* ============ Live stats ticker (bottom-left) ============ */
.jm3d-ticker {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 10;
  display: flex;
  gap: 18px;
  pointer-events: none;
}
.jm3d-stat {
  background: rgba(10,20,35,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 16px;
  backdrop-filter: blur(12px);
  min-width: 90px;
}
.jm3d-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #5bb6e8;
  letter-spacing: -0.02em;
  font-family: 'SF Mono', monospace;
  line-height: 1;
}
.jm3d-stat-label {
  font-size: 10px;
  color: #7c8ba4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============ Result card (bottom-right, slides up after zoom) ============ */
.jm3d-result {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10;
  width: min(380px, 92vw);
  background: rgba(10,20,35,0.85);
  border: 1px solid rgba(91,182,232,0.3);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 80px rgba(91,182,232,0.15);
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}
.jm3d-result.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.jm3d-result-zip {
  font-size: 11px;
  font-weight: 800;
  color: #5bb6e8;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.jm3d-result-city {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.jm3d-result-dma {
  font-size: 13px;
  color: #9aa9bc;
  margin-bottom: 18px;
}
.jm3d-result-rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin-bottom: 18px;
}
.jm3d-result-rows dt {
  font-size: 10px;
  font-weight: 700;
  color: #7c8ba4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: center;
}
.jm3d-result-rows dd {
  font-size: 13px;
  color: #e8ecf2;
  font-weight: 600;
}
.jm3d-result-cta {
  display: block;
  background: linear-gradient(135deg, #1a90d4, #5bb6e8);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
}

/* ============ Result card — type badges row ============ */
.jm3d-result-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.jm3d-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.10em;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Menlo', monospace;
}
.jm3d-badge-fiber    { background: rgba(250,204,21,0.15);  color: #facc15; border: 1px solid rgba(250,204,21,0.40); }
.jm3d-badge-cable    { background: rgba(91,182,232,0.15);  color: #5bb6e8; border: 1px solid rgba(91,182,232,0.40); }
.jm3d-badge-wireless { background: rgba(16,185,129,0.15);  color: #10b981; border: 1px solid rgba(16,185,129,0.40); }
.jm3d-badge-sat      { background: rgba(184,146,255,0.15); color: #b892ff; border: 1px solid rgba(184,146,255,0.40); }

/* ============ Result card — "What's available" rows ============ */
.jm3d-result-section {
  margin-bottom: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 12px;
}
.jm3d-result-section-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #7c8ba4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.jm3d-result-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  padding: 8px 0;
  align-items: center;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.jm3d-result-row:last-child { border-bottom: none; }
.jm3d-result-row-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
  font-family: 'SF Mono', 'Menlo', monospace;
  align-self: flex-start;
  padding-top: 2px;
}
.jm3d-result-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.jm3d-result-row-name {
  font-size: 12px;
  font-weight: 700;
  color: #e8ecf2;
  line-height: 1.2;
}
.jm3d-result-row-note {
  font-size: 9.5px;
  color: #7c8ba4;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.jm3d-result-row-speed {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'SF Mono', 'Menlo', monospace;
  align-self: flex-start;
  padding-top: 2px;
}

/* ============ Result card — anti-misleading disclaimer ============ */
.jm3d-result-disclaimer {
  font-size: 10.5px;
  color: #9aa9bc;
  line-height: 1.45;
  padding: 10px 12px;
  background: rgba(255,180,80,0.06);
  border-left: 2px solid rgba(255,180,80,0.55);
  border-radius: 4px;
  margin-bottom: 14px;
}
.jm3d-result-disclaimer strong { color: #e8ecf2; }
.jm3d-result-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(26,144,212,0.4); }

.jm3d-reset {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #c0cad8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s, background .15s, transform .15s;
}
.jm3d-reset.visible { opacity: 1; pointer-events: auto; }
.jm3d-reset:hover { background: rgba(255,255,255,0.10); transform: translateX(-50%) translateY(-2px); }

/* ============ Toast (easter eggs) ============ */
.jm3d-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 20;
  background: rgba(10,20,35,0.95);
  border: 2px solid;
  border-radius: 20px;
  padding: 32px 44px;
  text-align: center;
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s, transform .4s;
  max-width: 90vw;
}
.jm3d-toast.visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.jm3d-toast-icon { font-size: 56px; margin-bottom: 10px; line-height: 1; }
.jm3d-toast-title { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: -0.02em; }
.jm3d-toast-body { font-size: 14px; color: #c0cad8; line-height: 1.4; max-width: 360px; }

/* ============ Loading overlay ============ */
.jm3d-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity .8s ease;
}
.jm3d-loading.hidden { opacity: 0; pointer-events: none; }
.jm3d-loading-inner { text-align: center; }
.jm3d-loading-ring {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(91,182,232,0.15);
  border-top-color: #5bb6e8;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: jm3d-spin 1s linear infinite;
}
@keyframes jm3d-spin { to { transform: rotate(360deg); } }
.jm3d-loading-text { font-size: 12px; color: #5bb6e8; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 700; }
.jm3d-loading-sub { font-size: 11px; color: #5a6878; margin-top: 8px; letter-spacing: 0.1em; }

/* ============ Floating market labels (HUD cards over 3D beams) ============ */
.jm3d-labels {
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* 2026-05-28 Rick — bumped from z-index:5 → 12 so HUD cards float ABOVE
     the hero gradient backdrop. Was getting covered by the hero in the
     upper screen zone on mobile, which is exactly where NYC/Boston/DC
     labels land for east-coast users. */
  z-index: 12;
}
.jm3d-mlabel {
  position: absolute;
  top: 0; left: 0;
  min-width: 168px;
  max-width: 200px;
  background: rgba(5, 16, 30, 0.92);
  border: 1px solid rgba(91, 182, 232, 0.55);
  border-radius: 8px;
  padding: 8px 11px 9px;
  font-family: 'SF Mono', 'Menlo', monospace;
  pointer-events: auto;
  cursor: default;
  opacity: 0;
  transition: opacity .25s;
  box-shadow: 0 0 24px rgba(91,182,232,0.20), 0 6px 14px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
}
.jm3d-mlabel-fiber { border-color: rgba(250, 204, 21, 0.55); box-shadow: 0 0 24px rgba(250,204,21,0.20), 0 4px 12px rgba(0,0,0,0.5); }
.jm3d-mlabel-home  { border-color: rgba(16, 185, 129, 0.55); box-shadow: 0 0 24px rgba(16,185,129,0.22), 0 4px 12px rgba(0,0,0,0.5); }
.jm3d-mlabel-focus { border-color: rgba(255, 107, 157, 0.65); box-shadow: 0 0 32px rgba(255,107,157,0.30), 0 4px 12px rgba(0,0,0,0.5); background: rgba(20,10,25,0.92); }

.jm3d-mlabel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.jm3d-mlabel-tier {
  font-size: 8.5px;
  font-weight: 800;
  color: #5bb6e8;
  letter-spacing: 0.18em;
}
.jm3d-mlabel-rank {
  font-size: 9px;
  font-weight: 800;
  color: #c0cad8;
  background: rgba(91, 182, 232, 0.15);
  border: 1px solid rgba(91, 182, 232, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.jm3d-mlabel-fiber .jm3d-mlabel-tier { color: #facc15; }
.jm3d-mlabel-fiber .jm3d-mlabel-rank { background: rgba(250,204,21,0.15); border-color: rgba(250,204,21,0.4); color: #ffd966; }
.jm3d-mlabel-home  .jm3d-mlabel-tier { color: #10b981; }
.jm3d-mlabel-home  .jm3d-mlabel-rank { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: #4ade80; }
.jm3d-mlabel-focus .jm3d-mlabel-tier { color: #ff6b9d; }

.jm3d-mlabel-name {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 6px;
}
.jm3d-mlabel-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.jm3d-mlabel-stat {
  font-size: 9.5px;
  color: #8a9bb0;
  letter-spacing: 0.02em;
}
.jm3d-mlabel-stat b {
  color: #c8d4e0;
  font-weight: 800;
  margin-right: 2px;
}
.jm3d-mlabel-isp {
  font-size: 9.5px;
  color: #b8c6d6;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jm3d-mlabel-rsn {
  font-size: 9px;
  color: #7c8ba4;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jm3d-mlabel-signal {
  display: flex;
  align-items: center;
  gap: 6px;
}
.jm3d-mlabel-signal-l {
  font-size: 8.5px;
  font-weight: 800;
  color: #5bb6e8;
  letter-spacing: 0.12em;
}
.jm3d-mlabel-signal-track {
  flex: 1;
  height: 5px;
  background: rgba(91,182,232,0.15);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.jm3d-mlabel-signal-fill {
  height: 100%;
  background: linear-gradient(90deg, #5bb6e8, #ffffff);
  box-shadow: 0 0 8px rgba(91,182,232,0.8);
  animation: jm3d-signal-pulse 2s ease-in-out infinite;
}
.jm3d-mlabel-fiber .jm3d-mlabel-signal-l { color: #facc15; }
.jm3d-mlabel-fiber .jm3d-mlabel-signal-fill { background: linear-gradient(90deg, #facc15, #fff8c5); box-shadow: 0 0 8px rgba(250,204,21,0.7); }
.jm3d-mlabel-home  .jm3d-mlabel-signal-l { color: #10b981; }
.jm3d-mlabel-home  .jm3d-mlabel-signal-fill { background: linear-gradient(90deg, #10b981, #d1fae5); box-shadow: 0 0 8px rgba(16,185,129,0.7); }
.jm3d-mlabel-signal-v {
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  min-width: 22px;
  text-align: right;
}
@keyframes jm3d-signal-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* Active focus label is a bit bigger */
.jm3d-mlabel-active {
  min-width: 170px;
  padding: 10px 14px 12px;
  transform-origin: bottom center;
  animation: jm3d-label-pop .5s ease-out;
}
@keyframes jm3d-label-pop {
  0%   { transform: translate(-50%, -100%) scale(0.5); opacity: 0; }
  100% { transform: translate(-50%, -100%) scale(1);   opacity: 1; }
}

/* Hide most labels at far zoom — only show on hover when crowded */
@media (max-width: 900px) {
  .jm3d-mlabel { min-width: 0; padding: 5px 8px 6px; }
  .jm3d-mlabel-name { font-size: 10px; }
  .jm3d-mlabel-sub  { font-size: 8.5px; }
}

/* ============ Satellite HUD labels (HUD chips that follow satellites in orbit) ============ */
.jm3d-slabel {
  position: absolute;
  top: 0; left: 0;
  min-width: 130px;
  background: rgba(5, 16, 30, 0.92);
  border: 1px solid rgba(91, 182, 232, 0.55);
  border-radius: 8px;
  padding: 7px 11px 9px;
  font-family: 'SF Mono', 'Menlo', monospace;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .25s;
  backdrop-filter: blur(8px);
}
.jm3d-slabel-tier {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}
.jm3d-slabel-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 3px;
}
.jm3d-slabel-sub {
  font-size: 9.5px;
  color: #9aa9bc;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.jm3d-slabel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.jm3d-slabel-price {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.jm3d-slabel-ch {
  font-size: 9px;
  font-weight: 700;
  color: #7c8ba4;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .jm3d-slabel { min-width: 0; padding: 5px 8px 7px; }
  .jm3d-slabel-name { font-size: 10px; }
  .jm3d-slabel-sub { font-size: 8.5px; }
}

/* ============ City Landmark badge (floats above focus marker) ============ */
.jm3d-landmark {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
  animation: jm3d-landmark-in .7s cubic-bezier(.2,.9,.3,1.2) .6s both;
  filter: drop-shadow(0 4px 20px rgba(91,182,232,0.35));
}
@keyframes jm3d-landmark-in {
  from { transform: translate(-50%, -80%) scale(0.4); opacity: 0; }
  to   { transform: translate(-50%, -100%) scale(1);  opacity: 1; }
}
.jm3d-landmark-svg {
  width: 78px; height: 78px;
  background: radial-gradient(ellipse at center, rgba(5,16,30,0.92) 60%, rgba(5,16,30,0) 100%);
  border-radius: 50%;
  display: grid; place-items: center;
  animation: jm3d-landmark-bob 3.6s ease-in-out infinite;
}
.jm3d-landmark-svg svg { width: 60px; height: 60px; }
@keyframes jm3d-landmark-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-4px) rotate(1deg); }
}
.jm3d-landmark-city {
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffffff;
  margin-top: 4px;
  background: rgba(5,16,30,0.85);
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(91,182,232,0.5);
}
.jm3d-landmark-tag {
  font-size: 9px;
  color: #9aa9bc;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 700;
}

/* ============ State Flag (animated waving banner) ============ */
.jm3d-flag-wave {
  width: 76px; height: 50px;
  position: relative;
  display: grid; place-items: center;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.10);
  animation: jm3d-flag-flutter 2.4s ease-in-out infinite;
  transform-origin: left center;
}
.jm3d-flag-stripe {
  position: absolute;
  left: 0; right: 0;
  height: 33.4%;
}
.jm3d-flag-stripe-1 { top: 0;     background: var(--c1, #5bb6e8); }
.jm3d-flag-stripe-2 { top: 33.4%; background: var(--c2, #ffffff); }
.jm3d-flag-stripe-3 { top: 66.8%; background: var(--c1, #5bb6e8); }
.jm3d-flag-code {
  position: relative;
  z-index: 2;
  font-family: 'SF Pro Display', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0,0,0,0.7), 0 2px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.02em;
}
@keyframes jm3d-flag-flutter {
  0%, 100% { transform: perspective(120px) rotateY(0deg) skewY(0deg); }
  25%      { transform: perspective(120px) rotateY(-12deg) skewY(-2deg); }
  50%      { transform: perspective(120px) rotateY(0deg) skewY(2deg); }
  75%      { transform: perspective(120px) rotateY(8deg) skewY(-1deg); }
}
.jm3d-landmark-flag .jm3d-landmark-tag {
  font-size: 9.5px;
  margin-top: 6px;
}

/* ============ Drag-to-spin hint (fades after first drag) ============ */
.jm3d-drag-hint {
  position: fixed;
  bottom: 100px; left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  padding: 6px 14px;
  background: rgba(5,16,30,0.85);
  border: 1px solid rgba(91,182,232,0.35);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: #5bb6e8;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  animation: jm3d-drag-hint-in 1s ease 3.5s forwards, jm3d-drag-hint-pulse 2.5s ease-in-out 4.5s infinite;
  backdrop-filter: blur(8px);
}
.jm3d-drag-hint.hidden { animation: none; opacity: 0; transition: opacity .4s; }
@keyframes jm3d-drag-hint-in { to { opacity: 0.85; } }
@keyframes jm3d-drag-hint-pulse { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* ============ Sound toggle (top-right, next to close) ============ */
.jm3d-sound-toggle {
  position: fixed;
  top: 24px;
  right: 80px;
  /* 2026-05-28 Rick — was z-index:10 (same as hero overlay), so the hero
     gradient covered the speaker icon until the user zoomed in (which
     shrinks the hero). Bumped to 20 so the toggle is always reachable. */
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #c0cad8;
  font-size: 16px;
  cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(12px);
  transition: background .15s, transform .15s, color .15s;
}
.jm3d-sound-toggle:hover { background: rgba(91,182,232,0.15); transform: scale(1.05); }
.jm3d-sound-toggle[data-on="1"] { background: rgba(91,182,232,0.20); border-color: rgba(91,182,232,0.55); color: #5bb6e8; }
.jm3d-sound-toggle .jm3d-sound-on  { display: none; }
.jm3d-sound-toggle[data-on="1"] .jm3d-sound-on  { display: inline; }
.jm3d-sound-toggle[data-on="1"] .jm3d-sound-off { display: none; }
@media (max-width: 720px) { .jm3d-sound-toggle { top: 16px; right: 66px; width: 40px; height: 40px; } }

/* ============ Smaller easter-egg chips (tighter, no separate row feel) ============ */
.jm3d-chips { gap: 6px; margin-top: 12px; }
.jm3d-chip { font-size: 10px; padding: 5px 10px; }
.jm3d-chip-hint { font-size: 9px; letter-spacing: 0.18em; }

/* ============ Mobile ============ */
@media (max-width: 720px) {
  .jm3d-brand { top: 16px; left: 16px; }
  .jm3d-brand-text { font-size: 12px; }
  .jm3d-close { top: 16px; right: 16px; width: 40px; height: 40px; }
  .jm3d-ticker { bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; gap: 8px; }
  .jm3d-stat { padding: 8px 12px; min-width: 70px; }
  .jm3d-stat-num { font-size: 18px; }
  .jm3d-result {
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 16px; left: 16px; width: auto; padding: 18px 20px;
  }

  /* HERO — solid black backdrop on mobile (NO fade) so map labels behind
     it can't bleed through on small screens. Trimmed footprint too. */
  .jm3d-hero {
    padding: 60px 16px 24px;
    background: linear-gradient(180deg,
      rgba(0,4,12,0.98) 0%,
      rgba(0,4,12,0.96) 75%,
      rgba(0,4,12,0.88) 95%,
      rgba(0,4,12,0)    100%);
  }
  .jm3d-hero-eyebrow { font-size: 9px; padding: 4px 10px; margin-bottom: 8px; letter-spacing: 0.18em; }
  .jm3d-hero-title { font-size: 28px; line-height: 1; margin-bottom: 6px; }
  .jm3d-hero-sub {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 12px;
    max-width: 320px;
  }
  .jm3d-zip-input { padding: 12px 14px; font-size: 18px; }
  .jm3d-zip-input::placeholder { font-size: 0.65em; }
  .jm3d-go-btn { padding: 0 18px; font-size: 13px; }
  .jm3d-chips { margin-top: 10px; gap: 5px; }
  .jm3d-chip { font-size: 9.5px; padding: 4px 8px; }

  /* Hide all market labels on mobile at default zoom — too crowded for the
     small screen. Focus/heat-signature labels (.jm3d-mlabel-active) stay
     visible because that's the label for the ZIP the user just submitted. */
  .jm3d-mlabel:not(.jm3d-mlabel-active) { display: none; }

  /* Satellite labels — keep them visible on mobile but compress to a tiny
     brand pill (name only, no tagline/price/channel count). Gives each sat
     a clean identity without crowding the canvas. */
  .jm3d-slabel {
    min-width: 0;
    padding: 4px 8px 5px;
    border-width: 1px;
    background: rgba(5,16,30,0.92);
  }
  .jm3d-slabel-tier,
  .jm3d-slabel-sub,
  .jm3d-slabel-foot { display: none; }
  .jm3d-slabel-name { font-size: 9.5px; letter-spacing: 0.10em; line-height: 1; margin: 0; }

  /* Result card: tighter padding on phone */
  .jm3d-result-row { grid-template-columns: 50px 1fr auto; gap: 8px; }
  .jm3d-result-row-note { font-size: 9px; }
  .jm3d-badge { font-size: 9px; padding: 3px 6px; }

  /* Drag hint above sticky stats ticker */
  .jm3d-drag-hint { bottom: 130px; font-size: 10px; padding: 5px 10px; }

  /* ZOOM OUT pill — move OUT of the way of the result-card CTA on mobile.
     On desktop it lives bottom-center; on phone the result card eats that
     space, so we tuck the pill into the top-left corner instead. */
  .jm3d-reset {
    bottom: auto;
    top: 70px;
    left: 16px;
    transform: none;
    padding: 8px 14px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
  }
  .jm3d-reset.visible { transform: none; }
  .jm3d-reset:hover { transform: translateY(-1px); }

  /* Brand top-left: make it more readable on mobile (gradient was eating it).
     Slightly bigger, bolder, with a subtle backdrop chip. */
  .jm3d-brand {
    background: rgba(5,16,30,0.65);
    border: 1px solid rgba(91,182,232,0.18);
    border-radius: 10px;
    padding: 6px 10px;
    backdrop-filter: blur(8px);
  }
  .jm3d-brand-logo { width: 28px; height: 28px; }
  .jm3d-brand-logo svg { width: 18px; height: 18px; }
  .jm3d-brand-text { font-size: 11px; }
  .jm3d-brand-text .eye { font-size: 8px; margin-top: 1px; letter-spacing: 0.12em; }

  /* When result card is visible (post-ZIP-submit), hide the brand entirely
     on mobile — it competes for attention with the heat-signature label and
     the result card. Comes back when user zooms out. */
  body:has(.jm3d-result.visible) .jm3d-brand { opacity: 0.25; pointer-events: none; }

  /* Easter-egg toast — smaller, repositioned at TOP on mobile (not center)
     so it doesn't fight with the result card and landmark badge for space. */
  .jm3d-toast {
    top: 130px;
    transform: translate(-50%, 0) scale(0.85);
    padding: 18px 24px;
    max-width: calc(100vw - 32px);
  }
  .jm3d-toast.visible { transform: translate(-50%, 0) scale(1); }
  .jm3d-toast-icon { font-size: 36px; margin-bottom: 4px; }
  .jm3d-toast-title { font-size: 18px; margin-bottom: 4px; }
  .jm3d-toast-body { font-size: 12px; max-width: 280px; }

  /* Landmark badge on mobile — smaller so it doesn't dominate */
  .jm3d-landmark-svg { width: 62px; height: 62px; }
  .jm3d-landmark-svg svg { width: 46px; height: 46px; }
  .jm3d-landmark-city { font-size: 9px; padding: 2px 7px; }
  .jm3d-landmark-tag { font-size: 8px; }
  .jm3d-flag-wave { width: 60px; height: 40px; }
  .jm3d-flag-code { font-size: 18px; }
}

/* Extra-narrow phones — even tighter */
@media (max-width: 400px) {
  .jm3d-hero { padding: 56px 14px 20px; }
  .jm3d-hero-title { font-size: 24px; }
  .jm3d-hero-sub { font-size: 11px; max-width: 280px; }
  .jm3d-stat { padding: 6px 10px; min-width: 60px; }
  .jm3d-stat-num { font-size: 15px; }
  .jm3d-stat-label { font-size: 8.5px; }
}
