:root {
  color-scheme: dark;
  --background: #24151d;
  --background-deep: #160f13;
  --card: rgba(39, 25, 33, 0.92);
  --card-strong: #2a1b23;
  --text: #fff8fb;
  --muted: #cbbbc3;
  --accent: #f4bfd1;
  --accent-hover: #ffd0df;
  --accent-active: #e7a8bd;
  --accent-ink: #311522;
  --line: rgba(255, 255, 255, 0.1);
  --focus: #fff1f6;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% -5%, rgba(183, 96, 134, 0.32), transparent 38rem),
    radial-gradient(circle at 10% 85%, rgba(120, 62, 88, 0.2), transparent 26rem),
    linear-gradient(160deg, var(--background) 0%, var(--background-deep) 72%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 1.25rem;
}

.join-card {
  width: min(100%, 28rem);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  text-align: center;
  background: linear-gradient(155deg, rgba(50, 31, 41, 0.96), var(--card));
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  box-shadow:
    0 1.5rem 4rem rgba(8, 4, 6, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(1rem);
}

.intro {
  padding: 0.35rem 0.4rem 1.3rem;
}

.brand {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.modal-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 9vw, 2.7rem);
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  line-height: 1.15;
}

.subtitle {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.subtitle[hidden] {
  display: none;
}

.tease {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 4;
  margin: 0.35rem 0 1.15rem;
  overflow: hidden;
  background: #3b2631;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.offer-badge {
  position: absolute;
  z-index: 3;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  margin: 0;
  padding: 0.38rem 0.78rem;
  color: #2a1520;
  background: linear-gradient(135deg, #ffd5e3 0%, #f3c1d2 55%, #e8a8bf 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow:
    0 0.45rem 1.1rem rgba(20, 8, 14, 0.35),
    0 0 0 0 rgba(243, 193, 210, 0.55);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  animation: badge-pulse 2.2s ease-in-out infinite;
}

.tease-placeholder,
.tease-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tease-placeholder {
  background:
    radial-gradient(circle at 34% 28%, rgba(236, 175, 197, 0.82), transparent 24%),
    radial-gradient(circle at 70% 64%, rgba(127, 73, 98, 0.86), transparent 34%),
    linear-gradient(145deg, #795064 0%, #412a36 47%, #21151b 100%);
  transform: scale(1.03);
}

.tease-placeholder::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(18, 10, 14, 0.52));
  content: "";
}

.tease-image {
  z-index: 1;
  object-fit: cover;
  object-position: center 42%;
}

.tease-label {
  position: absolute;
  z-index: 2;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.38rem 0.62rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(18, 10, 14, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  backdrop-filter: blur(0.45rem);
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn-icon {
  flex-shrink: 0;
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.05rem;
  opacity: 0.92;
  transition: transform 150ms ease, opacity 150ms ease;
}

.button:hover .btn-icon {
  opacity: 1;
  transform: translateX(1px) translateY(-0.5px);
}

.button-primary {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 0.65rem 1.5rem rgba(244, 191, 209, 0.14);
}

.button-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0.8rem 1.8rem rgba(244, 191, 209, 0.2);
}

.button-primary:active {
  background: var(--accent-active);
}

.button-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.status {
  margin: 0.9rem 0 0;
  color: #ffd1dc;
  font-size: 0.84rem;
  line-height: 1.45;
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1.15rem;
  padding: 0 0.15rem;
}

.fine-print {
  margin: 0;
  color: rgba(203, 187, 195, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-align: left;
}

.socials {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: rgba(203, 187, 195, 0.72);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.social-link svg {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
}

.social-link:hover {
  color: var(--accent);
  background: rgba(244, 191, 209, 0.08);
  border-color: rgba(244, 191, 209, 0.22);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.modal {
  width: min(calc(100% - 2rem), 23rem);
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 1.35rem;
  overflow: visible;
}

.modal::backdrop {
  background: rgba(10, 5, 8, 0.74);
  backdrop-filter: blur(0.35rem);
}

.modal-content {
  position: relative;
  padding: 2rem 1.4rem 1.35rem;
  text-align: center;
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.35rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.48);
}

.modal[open] .modal-content {
  animation: modal-in 180ms ease-out both;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal-copy {
  margin: 0.7rem auto 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0.45rem 1.1rem rgba(20, 8, 14, 0.35),
      0 0 0 0 rgba(243, 193, 210, 0.5);
  }

  50% {
    transform: translateY(-3px) scale(1.035);
    box-shadow:
      0 0.75rem 1.5rem rgba(20, 8, 14, 0.42),
      0 0 0 0.55rem rgba(243, 193, 210, 0);
  }
}

@media (min-width: 40rem) {
  .shell {
    padding: 2rem;
  }

  .join-card {
    padding: 1.75rem;
  }
}

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