:root {
  --profile-gif: url("./assets/profile-placeholder.gif");
  --button-red: #e9130c;
  --button-red-dark: #c90f09;
  --text: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #1b1512;
  letter-spacing: 0;
}

.snap-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  padding: max(5.1rem, env(safe-area-inset-top)) 1.25rem max(6rem, env(safe-area-inset-bottom));
  isolation: isolate;
}

.snap-page::before {
  position: absolute;
  inset: -1px;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(180deg, rgba(43, 24, 18, 0.04), rgba(43, 24, 18, 0.2)),
    var(--profile-gif),
    linear-gradient(145deg, #775244 0%, #ba7a60 42%, #e0c8ad 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.01);
}

.snap-page::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: radial-gradient(rgba(30, 26, 22, 0.28) 1.2px, transparent 1.35px);
  background-size: 12px 12px;
  opacity: 0.68;
  pointer-events: none;
}

.invite-panel {
  width: calc(100% + 2.5rem);
  min-height: 6.1rem;
  display: grid;
  place-items: center;
  margin-top: -2.3rem;
  padding: 1.05rem 1.5rem;
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

.invite-panel p {
  width: min(100%, 35rem);
  margin: 0;
  font-size: clamp(1.45rem, 6.7vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
}

.continue-button {
  display: inline-grid;
  width: min(18.8rem, 72vw);
  min-height: 5.75rem;
  margin-top: 2.35rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, var(--button-red), var(--button-red-dark));
  box-shadow:
    0 1.2rem 2.5rem rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: var(--text);
  font-size: clamp(1.35rem, 5.7vw, 1.72rem);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 140ms ease, filter 140ms ease;
}

.continue-button:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.95);
}

.continue-button:focus-visible {
  outline: 0.22rem solid rgba(255, 255, 255, 0.56);
  outline-offset: 0.28rem;
}

@media (min-width: 680px) {
  .snap-page {
    min-height: 100vh;
  }

  .invite-panel {
    width: min(100vw, 42rem);
    border-radius: 0.4rem;
  }
}

@media (max-width: 360px) {
  .invite-panel p {
    font-size: 1.32rem;
  }

  .continue-button {
    width: min(17rem, 76vw);
    min-height: 5.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
