.signup-invite-shade,
.signup-invite-arrow {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body:has(#signup-invite[open]) .signup-invite-shade {
  display: block;
  z-index: 20;
  background: #080604ae;
}

body:has(#signup-invite[open]) .top { z-index: 21; }

body:has(#signup-invite[open]) .account-avatar-frame {
  filter: drop-shadow(0 0 8px #ffc064b0);
}

body:has(#signup-invite[open]) .signup-invite-arrow {
  display: block;
  z-index: 22;
  width: 100%;
  height: 100%;
}

.signup-invite-line {
  fill: none;
  stroke: #ffd47d;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px #d38335);
}

#signup-invite {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 23;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(calc(100% - 32px), 520px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 2px;
  border: 0;
  border-radius: 0;
  color: #fff3e0;
  background: linear-gradient(135deg, #ffe2a0, #9b5b28 34%, #ffd37d 58%, #ad641d 76%, #ffdc8d);
  clip-path: polygon(0 13px, 17px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 19px) 100%, 0 100%);
}

.signup-invite-panel {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 5vw, 32px);
  background:
    repeating-linear-gradient(130deg, transparent 0 10px, #d7863018 10px 12px, transparent 12px 19px) right bottom / 54px 42px no-repeat,
    radial-gradient(ellipse at 0 0, #56301b, transparent 53%), #17110e;
  clip-path: polygon(0 12px, 16px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 18px) 100%, 0 100%);
}

.signup-invite-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #ff665f;
  border-radius: 50%;
  padding: 0;
  background: #b91f24;
  color: #fff;
  font: 800 1.65rem/1 system-ui, sans-serif;
}

.signup-invite-panel h2 {
  margin: 0 39px .6rem 0;
  color: #ffda84;
  font: italic 800 clamp(1.75rem, 7vw, 3rem)/.95 var(--display);
  text-transform: uppercase;
}

#signup-invite-description {
  max-width: 34ch;
  font-size: clamp(1rem, 3.9vw, 1.25rem);
  line-height: 1.4;
}

.signup-invite-preference {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: .75rem;
  min-height: 44px;
  color: #ffe4bb;
  font-size: .9rem;
  cursor: pointer;
}

.signup-invite-preference input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: #ffcb72;
}
