/* ── #sign: "I just need your name." ───────────────────────────────────────
   Owns the closing section: its glow, the signature line and the phone-sized
   claim form. The claim form, hint and validation states themselves are the
   shared .claim / .hint rules (base.css) driven by window.MisaName; the
   signature line's draw-in and the landing × are motion.css. The heading's
   desktop size is the generic .section h2 (base.css). */

/* ── Section ── */
.sign {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(to bottom, transparent, var(--ink) 90%);
}

.sign::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 45%, rgba(240, 6, 70, .12), transparent 80%);
}

.sign__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 14px;
}

/* ── Signature line ── */
.sigline {
  display: grid;
  place-items: end center;
  position: relative;
  width: min(660px, 100%);
  height: 56px;
  border-bottom: 1px solid var(--line-2);
}

.sigline .x {
  position: absolute;
  left: 0;
  bottom: 8px;
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--crimson);
}

.sigline .sig {
  padding-bottom: 6px;
  font-family: var(--font-hand);
  font-size: 40px;
  line-height: 1;
  color: var(--ivory);
  transform: rotate(-2deg);
  clip-path: inset(-20% 100% -20% -5%);
}

/* MisaName adds .on once a valid name is typed; the clip reveals it like handwriting
   (`write` is the shared keyframes in base.css). */
.sigline .sig.on {
  animation: write 1.2s var(--ease) forwards;
}

/* ── Phones: a card around the final invitation ── */
@media (max-width: 700px) {
  #sign .sign__in {
    padding: 30px 18px;
    border: 1px solid #ffffff12;
    border-radius: 26px;
    background: radial-gradient(ellipse at 50% 0, #51102555, transparent 75%), #100c10;
  }

  #sign h2 {
    font-size: 34px;
    margin: 0 0 24px;
  }

  #sign .sigline {
    display: none;
  }

  #sign .claim {
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 5px 5px 5px 12px;
    border-radius: 15px;
  }

  #sign .claim__prefix {
    font-size: 16px;
  }

  #sign .claim__input {
    font-size: 16px;
    padding-block: 10px;
  }

  #sign .claim__btn {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 13px;
  }

  #sign .hint {
    flex-wrap: nowrap;
    max-width: 100%;
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.6;
  }
}

@media (max-width: 360px) {
  #sign .sign__in {
    padding-inline: 12px;
  }

  #sign .claim__prefix {
    font-size: 13px;
  }
}
