/* First-memory invitation: centered over the + button, with Mappi as support. */
@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible {
    right: auto !important;
    bottom: calc(var(--bottom-nav-height, 78px) + env(safe-area-inset-bottom) + 22px) !important;
    left: 50% !important;
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) 36px !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "mascot title balance"
      "copy copy copy" !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: min(300px, calc(100vw - 28px)) !important;
    min-width: 0 !important;
    min-height: 88px !important;
    max-height: none !important;
    padding: 10px 14px 12px !important;
    gap: 4px 8px !important;
    overflow: visible !important;
    border-radius: 22px !important;
    text-align: center !important;
    transform: translateX(-50%) !important;
  }

  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible img,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible img {
    grid-area: mascot !important;
    align-self: center !important;
    justify-self: center !important;
    width: 34px !important;
    height: 42px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible strong,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible strong {
    grid-area: title !important;
    align-self: center !important;
    justify-self: center !important;
    margin: 0 !important;
    color: #073b45 !important;
    font-size: 0.8rem !important;
    line-height: 1.16 !important;
    text-align: center !important;
  }

  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible span,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible span {
    grid-area: copy !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 31ch !important;
    margin: 0 !important;
    color: rgba(7, 59, 69, 0.72) !important;
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible::after,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible::after {
    right: auto !important;
    bottom: -7px !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(45deg) !important;
  }
}

@media (max-width: 350px) {
  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible {
    grid-template-columns: 32px minmax(0, 1fr) 32px !important;
    width: min(276px, calc(100vw - 24px)) !important;
    padding-inline: 11px !important;
  }

  html body main.app-shell section.map-stage.map-focus .map-empty-state.is-visible strong,
  html body .app-shell section.map-stage.map-focus .map-empty-state.is-visible strong {
    font-size: 0.75rem !important;
  }
}
