* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: #101714;
  color: #f2f5f3;
}

body {
  margin: 0;
  min-height: 100vh;

  background:
    radial-gradient(
      circle at top,
      #21372f 0,
      #101714 42rem
    );
}

.shell {
  width: min(
    980px,
    calc(100% - 28px)
  );

  margin: 0 auto;
  padding: 32px 0 64px;
}

.hidden {
  display: none !important;
}

.center {
  text-align: center;
}

.hero {
  padding: 22px 4px 28px;
  text-align: center;
}

.hero h1 {
  margin: 8px 0;

  font-size:
    clamp(
      2.2rem,
      9vw,
      4.8rem
    );

  line-height: .95;
}

.hero-copy {
  max-width: 640px;
  margin: 12px auto;

  color: #cbd7d1;
  font-size: 1.15rem;
}

.eyebrow {
  margin: 0 0 8px;

  color: #a9cbbd;

  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.venue-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;

  margin-top: 18px;
  color: #aab7b1;
}

.panel,
.intro-card,
.setup-card {
  border: 1px solid #33463e;
  border-radius: 22px;

  background:
    rgba(
      24,
      34,
      30,
      .94
    );

  box-shadow:
    0 18px 50px
    rgba(
      0,
      0,
      0,
      .24
    );
}

.panel {
  padding: 24px;
}

.intro-card {
  margin-bottom: 18px;
  padding: 24px;
  text-align: center;
}

.intro-card h2,
.panel h2,
.setup-card h3 {
  margin: 6px 0 12px;
}

.intro-card p:last-child {
  max-width: 680px;
  margin: 0 auto;

  color: #bcc8c2;
  line-height: 1.55;
}

.auth-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 18px;
}

.stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;

  color: #dce4e0;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 48px;

  border: 1px solid #455b52;
  border-radius: 12px;

  padding: 10px 12px;

  background: #0f1714;
  color: #fff;

  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid #9ccbb8;
  outline-offset: 2px;
}

input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  margin: 0;

  accent-color: #dff4e9;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  border: 0;
  border-radius: 12px;

  padding: 11px 18px;

  text-decoration: none;
  cursor: pointer;

  font: inherit;
  font-weight: 800;
}

.button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.button.primary {
  background: #e6f3ed;
  color: #101714;
}

.button.secondary {
  border: 1px solid #53675e;

  background: transparent;
  color: #f2f5f3;
}

.button.compact {
  min-height: 40px;
  padding: 8px 12px;
}

.button.full {
  width: 100%;
  margin-top: 18px;
}

.hint,
.message {
  margin: 0;

  color: #aab7b1;
  font-size: .9rem;
}

.message.error {
  color: #ffb9b9;
}

.step-heading,
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.step-heading {
  padding-bottom: 18px;
}

.step-heading h2 {
  margin-bottom: 0;
}

.identity-pill,
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  border-radius: 999px;

  padding: 7px 11px;

  background:
    rgba(
      223,
      244,
      233,
      .1
    );

  color: #dff4e9;
  font-weight: 800;
  white-space: nowrap;
}

.count-pill.over-limit {
  background:
    rgba(
      255,
      120,
      120,
      .14
    );

  color: #ffb9b9;
}

.setup-card {
  margin-top: 16px;
  padding: 18px;

  box-shadow: none;
}

.inline-form {
  display: grid;
  grid-template-columns:
    minmax(
      0,
      1fr
    )
    auto;

  gap: 10px;
}

.member-list,
.guest-list {
  display: grid;
  gap: 9px;

  margin-top: 15px;
}

.member-row {
  display: grid;

  grid-template-columns:
    28px
    minmax(
      0,
      1fr
    );

  align-items: center;
  gap: 11px;

  min-height: 58px;

  border: 1px solid #33463e;
  border-radius: 14px;

  padding: 10px 12px;

  background:
    rgba(
      255,
      255,
      255,
      .025
    );
}

.member-row strong,
.member-row small {
  display: block;
}

.member-row small {
  margin-top: 3px;

  color: #9eaca5;
  font-weight: 500;
}

.guest-row {
  display: grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    )
    auto;

  gap: 9px;
}

.remove-guest {
  border: 1px solid #6b4c4c;
  border-radius: 11px;

  padding: 8px 12px;

  background:
    rgba(
      255,
      120,
      120,
      .08
    );

  color: #ffc7c7;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.confirm-row {
  display: grid;

  grid-template-columns:
    28px
    minmax(
      0,
      1fr
    );

  align-items: flex-start;
  gap: 11px;

  margin-top: 18px;

  border: 1px solid #4b6258;
  border-radius: 14px;

  padding: 14px;

  background:
    rgba(
      223,
      244,
      233,
      .05
    );
}

.join-note {
  margin-top: 22px;
  text-align: center;
}

.join-note p {
  margin-bottom: 5px;
  color: #aab7b1;
}

.join-note a {
  color: #e6f3ed;
  font-weight: 800;
}

.success-card {
  max-width: 700px;
  margin: 20px auto;

  padding: 36px 24px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;

  width: 72px;
  height: 72px;

  margin: 0 auto 20px;

  border-radius: 50%;

  background: #dff4e9;
  color: #102117;

  font-size: 2.4rem;
  font-weight: 900;
}

.team-qr-wrap {
  max-width: 420px;
  margin: 24px auto 0;

  border: 1px solid #33463e;
  border-radius: 18px;

  padding: 16px;

  background: #fff;
  color: #101714;
}

.team-qr-wrap .hint {
  margin-bottom: 12px;
  color: #35453e;
}

.team-qr-wrap img {
  display: block;

  width: min(
    100%,
    360px
  );

  margin: 0 auto;
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 24px;
}

.error-card {
  max-width: 640px;
  margin: 60px auto;

  text-align: center;
}


@media (
  max-width: 720px
) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width:
      min(
        100% - 18px,
        980px
      );

    padding-top: 16px;
  }

  .panel,
  .intro-card,
  .setup-card {
    border-radius: 18px;
    padding: 18px;
  }

  .step-heading,
  .card-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .success-actions {
    display: grid;
  }

  .success-actions .button {
    width: 100%;
  }
}
