/* The Invite page (js/views/invite.js): the person's link, the bonus, and the friends they invited. Solid colours only, like the rest of the site. Everything is scoped to .inv. */
.inv { --inv-ink: #191814; --inv-forest: #25493D; --inv-lime: #D4F65B; }
.inv .inv-h { margin: 0 0 12px; font: 700 12px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.inv-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 26px; padding: 24px 28px; background: var(--paper); color: var(--paper-ink); border: var(--bw) solid var(--inv-ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--lime-shadow); }
.inv-card .inv-h { color: var(--inv-forest); }
.inv-art { line-height: 0; }
.inv-body { min-width: 0; }
.inv-linkrow { display: flex; flex-wrap: wrap; gap: 10px; }
.inv-input { flex: 1 1 260px; min-width: 0; min-height: 46px; font: 600 15px var(--f-mono); }
.inv-linkrow .btn { min-height: 46px; justify-content: center; }
.inv-card .btn-primary { background: var(--inv-lime); color: #10140A; border-color: var(--inv-ink); box-shadow: 4px 4px 0 var(--lime-shadow); }
.inv-card .btn-secondary { background: transparent; color: var(--paper-ink); border-color: var(--inv-ink); }
.inv-card :focus-visible { outline: 3px solid var(--inv-ink); outline-offset: 3px; }
.inv-note { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-2); } .inv-card .inv-note { color: var(--paper-ink); opacity: .8; }
.inv-prize { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 20px; text-align: center; border-left: 2px dashed var(--paper-line); }
.inv-amt { font: 800 clamp(44px, 6vw, 70px) var(--f-display); letter-spacing: -.06em; line-height: .9; }
.inv-prize span { font-size: 15px; line-height: 1.3; } .inv-prize small { opacity: .75; }
.inv-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; }
.inv-stats > div { padding: 14px 18px; background: var(--card); border: var(--bw) solid var(--line-soft); border-radius: 16px; }
.inv-stats dt { font: 700 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.inv-stats dd { margin: 4px 0 0; font: 800 28px var(--f-display); letter-spacing: -.04em; }
.inv-sec { margin-top: 30px; }
.inv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.inv-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 16px 62px; background: var(--card); border: var(--bw) solid var(--line-soft); border-radius: 16px; counter-increment: step; }
.inv-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--inv-lime); color: #10140A; border: 2px solid var(--inv-ink); font: 800 16px var(--f-display); }
.inv-steps b { font-size: 16px; } .inv-steps span { font-size: 14px; line-height: 1.4; color: var(--text-2); }
.inv-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.inv-row { display: grid; grid-template-columns: minmax(0, 12rem) auto minmax(0, 1fr); align-items: center; gap: 6px 16px; padding: 14px 18px; background: var(--card); border: var(--bw) solid var(--line-soft); border-radius: 14px; }
.inv-name { font-weight: 700; overflow-wrap: anywhere; }
.inv-state { padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px; font: 700 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.inv-state.paid { border-color: var(--inv-lime); color: var(--inv-lime); } .inv-state.wait { color: var(--text-2); } .inv-state.off { color: var(--text-3); border-style: dashed; }
.inv-text { font-size: 14px; color: var(--text-2); min-width: 0; }
.inv-empty { padding: 20px 22px; background: var(--card); border: var(--bw) dashed var(--line-soft); border-radius: 14px; } .inv-empty p { margin: 0; color: var(--text-2); }
@media (max-width: 1000px) { .inv-card { grid-template-columns: minmax(0, 1fr) auto; } .inv-art { display: none; } }
@media (max-width: 820px) {
  .inv-steps { grid-template-columns: minmax(0, 1fr); }
  .inv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-row { grid-template-columns: minmax(0, 1fr) auto; } .inv-text { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .inv-card { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .inv-prize { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 0 0; text-align: left; border-left: 0; border-top: 2px dashed var(--paper-line); }
}
@media (max-width: 480px) { .inv-linkrow .btn { flex: 1 1 100%; } .inv-stats dd { font-size: 24px; } }

/* the sign-up form, when it was opened through a friend's link (js/app.js) */
.auth-invite { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 12px; background: #DDE9B0; color: #10140A; border: 2px solid #191814; border-radius: 12px; font-size: 15px; } .auth-invite[hidden] { display: none; }
.auth-invite b { overflow-wrap: anywhere; }
