@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
}

body {
  overflow: hidden;
}

.main {
  display: flex;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.invite-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  padding: 32px 24px;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(214, 255, 95, 0.45), transparent 36%),
    linear-gradient(135deg, #a3e634 0%, #60c936 48%, #2e631f 100%);
}

.invite-stack {
  display: flex;
  width: 100%;
  max-width: 520px;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  width: min(196px, 46vw);
  height: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 22px rgba(20, 58, 11, 0.22));
}

.avatar-wrap {
  width: 232px;
  height: 232px;
  padding: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(38, 90, 24, 0.18);
}

.avatar {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eaf8df;
  color: #1d3e15;
  font-size: 5rem;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skeleton {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.35)
  );
  background-size: 240% 100%;
  animation: sweep 1.4s infinite;
}

.name-pill {
  min-height: 52px;
  max-width: 90%;
  margin-top: -2px;
  padding: 8px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(38, 90, 24, 0.14);
}

.name-pill--skeleton {
  width: 232px;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.55)
  );
  background-size: 240% 100%;
  animation: sweep 1.4s infinite;
}

.name-pill h1 {
  margin: 0;
  color: #000;
  font-size: 1.52rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
}

.store-row {
  display: flex;
  margin-top: 50px;
  gap: 12px 18px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.store-button {
  display: block;
  height: 52px;
  border-radius: 7px;
  text-decoration: none;
  filter: drop-shadow(0 10px 22px rgba(26, 54, 14, 0.18));
}

.store-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: 4px;
}

.store-badge {
  display: block;
  width: auto;
  height: 100%;
}

.invite-subtitle {
  margin: 10px 0 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 1px 8px rgba(20, 58, 11, 0.34);
}

@keyframes sweep {
  0% {
    background-position: 140% 0;
  }

  100% {
    background-position: -140% 0;
  }
}

@media (max-width: 520px) {
  .avatar-wrap {
    width: 184px;
    height: 184px;
    padding: 11px;
  }

  .brand-logo {
    width: 160px;
    margin-bottom: 20px;
  }

  .avatar {
    font-size: 4rem;
  }

  .name-pill {
    min-height: 48px;
  }

  .name-pill h1 {
    font-size: 1.25rem;
  }

  .store-row {
    margin-top: 38px;
  }

  .store-button {
    height: 48px;
  }
}
