/* Hi Doge Home — vector world map atmosphere (desktop + mobile). */
body.public-page[data-page-key="home"] #homePage .hd-world-map-stage {
  display: block !important;
  position: absolute;
  z-index: 0;
  inset: 0 auto auto 50%;
  top: 50%;
  width: 108%;
  height: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: .62;
  isolation: isolate;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  animation: hd-world-map-breathe 19s ease-in-out infinite alternate;
}

body.public-page[data-page-key="home"] #homePage .hd-world-map-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

body.public-page[data-page-key="home"] #homePage .hd-world-land-dots {
  opacity: .96;
}

body.public-page[data-page-key="home"] #homePage .hd-world-coastline {
  fill: none;
  stroke: rgba(255, 211, 121, .30);
  stroke-width: .90;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.public-page[data-page-key="home"] #homePage .hd-world-country {
  fill: none;
  stroke: rgba(245, 185, 74, .62);
  stroke-width: 1.12;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.public-page[data-page-key="home"] #homePage .hd-world-iran-aura {
  fill: rgba(255, 187, 44, .13);
  stroke: rgba(255, 199, 71, .22);
  stroke-width: 7;
  filter: blur(5px);
  opacity: .7;
  transform-box: fill-box;
  transform-origin: center;
  animation: hd-world-iran-aura 5.6s ease-in-out infinite alternate;
}

body.public-page[data-page-key="home"] #homePage .hd-world-iran-halo {
  fill: rgba(255, 187, 42, .20);
  stroke: rgba(255, 217, 116, .9);
  stroke-width: 1.45;
  opacity: .68;
  filter: drop-shadow(0 0 8px rgba(255, 196, 58, .72));
  transform-box: fill-box;
  transform-origin: center;
  animation: hd-world-iran-bloom 4.8s ease-in-out infinite alternate;
}

body.public-page[data-page-key="home"] #homePage .hd-world-iran-fill {
  fill: url(#hd-world-iran-dots);
  stroke: rgba(255, 227, 148, .98);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 8px rgba(255, 200, 71, .84));
}

body.public-page[data-page-key="home"] #homePage .hd-world-route-base {
  stroke: rgba(255, 190, 57, .20);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

body.public-page[data-page-key="home"] #homePage .hd-world-route {
  stroke: rgba(255, 207, 94, .7);
  stroke-width: 1.2;
  stroke-dasharray: 2 18;
  stroke-linecap: round;
  opacity: .48;
  vector-effect: non-scaling-stroke;
  animation: hd-world-route-flow 22s linear infinite;
  animation-delay: var(--route-delay, 0s);
}

body.public-page[data-page-key="home"] #homePage .hd-world-node-halo {
  fill: none;
  stroke: rgba(255, 204, 83, .8);
  stroke-width: 1.05;
  opacity: .34;
  transform-box: fill-box;
  transform-origin: center;
  animation: hd-world-node-pulse 4.6s ease-in-out infinite;
  animation-delay: var(--node-delay, 0s);
}

body.public-page[data-page-key="home"] #homePage .hd-world-node-core {
  fill: #ffce5a;
  opacity: .85;
  filter: drop-shadow(0 0 4px rgba(255, 203, 75, .6));
}

body.public-page[data-page-key="home"] #homePage .hd-world-node-core-iran {
  fill: #fff0ac;
  filter: drop-shadow(0 0 7px rgba(255, 215, 104, .95));
}

body.public-page[data-page-key="home"] #homePage .hd-world-iran-pulse {
  fill: none;
  stroke: rgba(255, 227, 139, .92);
  stroke-width: 1.25;
  opacity: .72;
  transform-box: fill-box;
  transform-origin: center;
  animation: hd-world-iran-pulse 4.1s ease-out infinite;
}

body.public-page[data-page-key="home"] #homePage .hd-world-sweep {
  opacity: .25;
  transform: translateX(-460px);
  animation: hd-world-sweep 24s ease-in-out infinite;
}

body.public-page[data-page-key="home"] #homePage .hd-world-edge-vignette {
  pointer-events: none;
  opacity: .52;
}

@keyframes hd-world-map-breathe {
  0% { opacity: .55; }
  100% { opacity: .65; }
}

@media (max-width: 950px) {
  body.public-page[data-page-key="home"] #homePage .hd-world-map-stage {
    width: 112%;
    opacity: .52;
  }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  body.public-page[data-page-key="home"] #homePage .hd-world-map-stage {
    top: 43%;
    width: calc(100% + 36px);
    height: auto;
    aspect-ratio: 2 / 1;
    opacity: .43;
    animation-duration: 22s;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, transparent 100%);
  }

  body.public-page[data-page-key="home"] #homePage .hd-world-land-dots { opacity: .72 !important; }
  body.public-page[data-page-key="home"] #homePage .hd-world-coastline {
    stroke: rgba(255, 211, 121, .24) !important;
    stroke-width: .78 !important;
  }
  body.public-page[data-page-key="home"] #homePage .hd-world-country {
    stroke: rgba(245, 185, 74, .46) !important;
    stroke-width: .96 !important;
  }
  body.public-page[data-page-key="home"] #homePage .hd-world-routes,
  body.public-page[data-page-key="home"] #homePage .hd-world-nodes,
  body.public-page[data-page-key="home"] #homePage .hd-world-iran-aura,
  body.public-page[data-page-key="home"] #homePage .hd-world-iran-halo,
  body.public-page[data-page-key="home"] #homePage .hd-world-sweep {
    display: inline !important;
  }
  body.public-page[data-page-key="home"] #homePage .hd-world-route {
    opacity: .28;
    stroke-width: .9;
    animation: none !important;
  }
  body.public-page[data-page-key="home"] #homePage .hd-world-node-halo {
    animation: none !important;
    opacity: .24;
  }
  body.public-page[data-page-key="home"] #homePage .hd-world-iran-halo {
    opacity: .78;
    stroke-width: 1.8;
    animation-duration: 5.8s;
  }
  body.public-page[data-page-key="home"] #homePage .hd-world-iran-aura {
    opacity: .54;
    animation-duration: 6.4s;
  }
  body.public-page[data-page-key="home"] #homePage .hd-world-sweep {
    display: none !important;
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-page[data-page-key="home"] #homePage .hd-world-map-stage {
    animation: none !important;
    transform: translate(-50%, -50%) !important;
  }
  body.public-page[data-page-key="home"] #homePage .hd-world-route,
  body.public-page[data-page-key="home"] #homePage .hd-world-node-halo,
  body.public-page[data-page-key="home"] #homePage .hd-world-iran-halo,
  body.public-page[data-page-key="home"] #homePage .hd-world-iran-aura,
  body.public-page[data-page-key="home"] #homePage .hd-world-iran-pulse,
  body.public-page[data-page-key="home"] #homePage .hd-world-sweep {
    animation: none !important;
    transform: none !important;
  }
}


/* R4 final mobile positioning override: keep the map centered at its native 2:1 ratio. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  body.public-page[data-page-key="home"] #homePage .hd-world-map-stage {
    left: 50% !important;
    top: 38% !important;
    width: calc(100% + 30px) !important;
    max-width: 560px !important;
    height: auto !important;
    aspect-ratio: 2 / 1 !important;
    transform: translate(-50%, -50%) !important;
    opacity: .48 !important;
    animation: hd-world-map-mobile-breathe 19s ease-in-out infinite alternate !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 88%, transparent 100%) !important;
    mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 88%, transparent 100%) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.public-page[data-page-key="home"] #homePage .hd-world-map-stage {
    animation: none !important;
    transform: translate(-50%, -50%) !important;
  }
}
