/* Authoritative positioning for the four-square competitive map. Keeping this
   small override after the legacy deck stylesheet prevents older responsive
   experiments from pulling the Eliza overlay back into a three-column grid. */
#competitive-landscape .landscape-hero {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  inset: 0;
  grid-area: auto;
  place-self: stretch;
}

#competitive-landscape .landscape-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(96px, 8vw, 118px);
  aspect-ratio: 1;
  padding: clamp(9px, 1vw, 14px);
  background: var(--bg);
  box-shadow: 0 0 42px 22px var(--bg);
  place-items: center;
  transform: translate(-50%, -50%);
}

#competitive-landscape .landscape-center img {
  width: 100%;
}

#competitive-landscape .landscape-edges {
  position: absolute;
  display: block;
  width: auto;
  inset: 0;
}

#competitive-landscape .landscape-hero .landscape-edge {
  position: absolute;
  width: 20ch;
  min-width: 0;
  margin: 0;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.14;
  transform: none;
}

#competitive-landscape .edge-harnesses {
  right: calc(50% + clamp(58px, 5.7vw, 84px));
  bottom: calc(50% + 20px);
  text-align: right;
}

#competitive-landscape .edge-assistants {
  bottom: calc(50% + 20px);
  left: calc(50% + clamp(58px, 5.7vw, 84px));
  text-align: left;
}

#competitive-landscape .edge-personal {
  top: calc(50% + 20px);
  right: calc(50% + clamp(58px, 5.7vw, 84px));
  text-align: right;
}

#competitive-landscape .edge-devices {
  top: calc(50% + 20px);
  left: calc(50% + clamp(58px, 5.7vw, 84px));
  text-align: left;
}

@media (max-width: 820px) and (orientation: portrait) {
  #competitive-landscape .landscape-cluster {
    box-sizing: border-box;
    max-width: none;
    padding: clamp(14px, 3.6vw, 20px);
  }

  #competitive-landscape .landscape-hero {
    width: auto;
    inset: 0;
  }

  #competitive-landscape .landscape-center {
    width: 58px;
    padding: 6px;
    background: var(--bg);
    box-shadow: 0 0 24px 12px var(--bg);
  }

  #competitive-landscape .landscape-hero .landscape-edge {
    width: 16ch;
    font-size: clamp(9px, 2.35vw, 11px);
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  #competitive-landscape .landscape-cluster {
    padding: 12px;
  }

  #competitive-landscape .landscape-center {
    width: 52px;
  }

  #competitive-landscape .landscape-hero .landscape-edge {
    width: 14ch;
    font-size: clamp(8px, 2.3vw, 9px);
  }
}

@media (max-width: 820px) and (max-height: 820px) and (orientation: portrait) {
  #competitive-landscape {
    padding-bottom: max(78px, 12vh, env(safe-area-inset-bottom));
  }

  #competitive-landscape .landscape-layout {
    gap: 12px;
  }

  #competitive-landscape .landscape-map {
    height: clamp(300px, calc(100vh - 300px), 520px);
    min-height: 0;
  }
}
