:root {
  color-scheme: light;
  --page-bg: #dce7e6;
  --focus-ring: rgba(17, 116, 111, 0.42);
  --tap-fill: rgba(255, 255, 255, 0.01);
  --tap-active: rgba(32, 139, 133, 0.14);
  --toast-bg: rgba(18, 54, 56, 0.92);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.72), transparent 32rem),
    linear-gradient(135deg, #c9d9d8 0%, #eef4f3 48%, #c7d6d6 100%);
  color: #073f43;
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}

.share-probe {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 600px;
  height: 600px;
  opacity: 0.01;
  pointer-events: none;
}

.card-stage {
  position: relative;
  width: min(100%, 1080px);
  aspect-ratio: 16 / 10;
  border-radius: clamp(18px, 3.8vw, 38px);
  filter: drop-shadow(0 18px 34px rgba(32, 64, 66, 0.26));
  overflow: hidden;
}

.business-card {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  display: block;
  border-radius: 12px;
  background: var(--tap-fill);
  outline: 0;
  touch-action: manipulation;
}

.hotspot:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.88),
    0 0 0 7px var(--focus-ring);
}

.hotspot:active {
  background: var(--tap-active);
}

.hotspot-profile {
  left: 20.4%;
  top: 10.8%;
  width: 37.2%;
  height: 25.4%;
}

.hotspot-photo {
  left: 61.2%;
  top: 4.8%;
  width: 34.8%;
  height: 78.8%;
  border-radius: 20px;
}

.hotspot-hospital {
  left: 6.6%;
  top: 39.8%;
  width: 35.8%;
  height: 9.8%;
}

.hotspot-phone {
  left: 6.5%;
  top: 51.2%;
  width: 31.2%;
  height: 9.2%;
}

.hotspot-qr {
  left: 6.4%;
  top: 64.1%;
  width: 23.6%;
  height: 16.4%;
}

.hotspot-telegram,
.hotspot-x,
.hotspot-whatsapp {
  top: 75.8%;
  width: 4%;
  height: 6.6%;
  border-radius: 50%;
}

.hotspot-telegram {
  left: 31.8%;
}

.hotspot-x {
  left: 36.6%;
}

.hotspot-whatsapp {
  left: 41.4%;
}

.hotspot-focus,
.hotspot-compassion,
.hotspot-integrity,
.hotspot-precision {
  top: 84.4%;
  height: 11.2%;
}

.hotspot-focus {
  left: 4.2%;
  width: 22.2%;
}

.hotspot-compassion {
  left: 28.4%;
  width: 22.4%;
}

.hotspot-integrity {
  left: 52.2%;
  width: 20.8%;
}

.hotspot-precision {
  left: 74.8%;
  width: 22.4%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 5;
  max-width: min(86vw, 360px);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--toast-bg);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .page-shell {
    align-content: start;
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .card-stage {
    width: min(100%, 520px);
    border-radius: clamp(16px, 5vw, 26px);
  }

  .hotspot {
    border-radius: 9px;
  }
}

@media (orientation: portrait) and (max-width: 520px) {
  .card-stage {
    margin-top: 10vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}
