/* Invite — six digits, big enough to read out loud across a room.
 *
 * Tinted accent like onboarding, because it is the same act seen from the other
 * side: one of these screens hands a code over, the other takes one.
 *
 * The digits are deliberately the largest type in the app. Somebody is going to
 * read them off a phone at arm's length, over a bad connection, to a man who is
 * driving. That is the job.
 */

.ro-invite {
  background: var(--color-accent-200);
  padding: 66px 20px 14px;
  gap: 16px;
}

.ro-invite-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ro-invite-title {
  flex: 1;
  font-size: 21px;
  color: var(--color-accent-900);
}

/* — waiting, and refused — */
.ro-invite-pending {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.ro-invite-waiting {
  font-size: 26px;
  line-height: 1.15;
  color: var(--color-accent-900);
}
.ro-invite-note {
  max-width: 270px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-accent-800);
}
.ro-invite-pending .btn-secondary {
  background: var(--color-accent-100);
  color: var(--color-accent-900);
  border-color: var(--color-accent-500);
  min-height: 46px;
  padding: 0 20px;
}

/* — the code — */
.ro-invite-live {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* The kicker's own line-height is tuned for a cream background where it sits
   inside a card; here it is the first thing under the title, and it clipped. */
.ro-invite-live .ro-kicker {
  color: var(--color-accent-700);
  line-height: 1.5;
  padding-top: 2px;
}

.ro-invite-code {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}
.ro-invite-code b {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 66px;
  border-radius: 18px;
  background: var(--color-accent-100);
  border: 1.5px solid var(--color-accent-400);
  font: 700 30px/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-accent-900);
}

.ro-invite-expiry {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-accent-800);
}

/* — what it actually is, said before somebody screenshots it — */
.ro-invite-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ro-invite-fact {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-accent-800);
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-accent-100) 70%, transparent);
}
.ro-invite-fact b { color: var(--color-accent-900); }

.ro-invite-again {
  margin-top: auto;
  flex: none;
  min-height: 48px;
  background: var(--color-accent-100);
  color: var(--color-accent-900);
  border-color: var(--color-accent-500);
  font-size: 14.5px;
}

.ro-invite .ro-note { color: var(--color-accent-700); }

/* One code per line once there is room; on a narrow phone they stay in a row
   and shrink, because six across is how it is read. */
@media (max-width: 360px) {
  .ro-invite-code b {
    height: 58px;
    font-size: 25px;
    border-radius: 15px;
  }
}
