:root {
  color-scheme: light;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #19211d;
  background: #eaeeeb;
  font-synthesis: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  isolation: isolate;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
.background-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(90% 56% at 50% -10%, #25d3662e 0%, #25d3661a 34%, #25d36600 64%),
    radial-gradient(78% 46% at 50% 108%, #128c7e1f 0%, #128c7e0f 38%, #128c7e00 68%),
    linear-gradient(#f7feff 0%, #f4f6ff 34%, #f4f6ff 62%, #f9fcfa 100%);
  content: "";
}

.background-grain {
  width: 100%;
  height: 100%;
  opacity: .035;
  mix-blend-mode: multiply;
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 24px 20px;
}

.contact-card {
  width: min(100%, 360px);
  padding: 44px 30px 34px;
  border: 1px solid rgb(20 40 30 / 7%);
  border-radius: 30px;
  background: rgb(255 255 255 / 72%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: inset 0 1px rgb(255 255 255 / 90%), 0 36px 70px -34px rgb(28 48 38 / 28%), 0 6px 18px -10px rgb(28 48 38 / 12%);
  text-align: center;
  animation: card-rise 800ms cubic-bezier(.2, .8, .2, 1) both;
}

.avatar-wrap {
  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  margin: 0 auto 22px;
}

.avatar,
.avatar-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
}

.avatar-ring {
  position: absolute;
  border: 1px solid rgb(37 211 102 / 42%);
  opacity: 0;
  animation: avatar-pulse 3.4s ease-out infinite;
}

.avatar-ring + .avatar-ring {
  animation-delay: 1.7s;
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #2be372, #16b453);
  color: #fff;
  box-shadow: 0 16px 30px -14px rgb(22 180 83 / 50%), 0 0 0 6px rgb(37 211 102 / 8%);
}

.chat-mark {
  width: 40px;
  height: 40px;
}

.avatar-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 3px solid #f7faf8;
  border-radius: 50%;
  background: #fff;
  color: #1fa855;
  box-shadow: 0 4px 10px -4px rgb(28 48 38 / 30%);
}

.avatar-badge svg {
  width: 15px;
  height: 15px;
}

h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 0;
  color: #5c6b64;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1fb85c;
  content: "";
  animation: status-pulse 2.4s ease-out infinite;
}

.instructions {
  margin: 28px 0 16px;
  color: #5c6b64;
  font-size: 13px;
  line-height: 1.5;
}

.action {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(#25d366, #1fa855);
  box-shadow: 0 12px 30px -10px rgb(37 211 102 / 50%), inset 0 1px rgb(255 255 255 / 40%);
  color: #06140d;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: .05em;
  text-decoration: none;
  transition: transform 120ms, box-shadow 250ms;
  animation: action-glow 3.6s ease-in-out infinite;
}

.action::before {
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 40%), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  content: "";
  animation: action-shine 4s ease-in-out infinite;
}

.action[href]:active {
  transform: scale(.975);
}

.action:focus-visible {
  outline: 2px solid #126534;
  outline-offset: 4px;
}

.action[aria-disabled="true"] {
  cursor: not-allowed;
}

.action svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.action.is-opening {
  pointer-events: none;
}

.action.is-opening .action-label {
  opacity: 0;
}

.action.is-opening::after {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgb(6 20 13 / 30%);
  border-top-color: #06140d;
  border-radius: 50%;
  content: "";
  animation: action-spinner 700ms linear infinite;
}

footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 24px max(20px, env(safe-area-inset-bottom));
  color: #97a39c;
  font-size: 11.5px;
  line-height: 16px;
  letter-spacing: .04em;
}

footer svg {
  width: 12px;
  height: 12px;
  opacity: .85;
}

@keyframes card-rise {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@keyframes avatar-pulse {
  from { opacity: .45; transform: scale(.85); }
  to { opacity: 0; transform: scale(1.34); }
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgb(125 232 174 / 45%); }
  70% { box-shadow: 0 0 0 7px rgb(125 232 174 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(125 232 174 / 0%); }
}

@keyframes action-glow {
  0%, 100% { box-shadow: 0 12px 30px -12px rgb(37 211 102 / 40%), inset 0 1px rgb(255 255 255 / 40%); }
  50% { box-shadow: 0 16px 40px -10px rgb(37 211 102 / 62%), inset 0 1px rgb(255 255 255 / 40%); }
}

@keyframes action-shine {
  0%, 55% { left: -130%; }
  82%, 100% { left: 130%; }
}

@keyframes action-spinner {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card, .avatar-ring, .status::before, .action, .action.is-opening::after {
    animation: none;
  }

  .action {
    transition: none;
  }

  .action::before {
    display: none;
  }
}
