:root {
  color-scheme: dark;
  --bg: #02050c;
  --text: #f5fbff;
  --muted: rgba(235,246,255,.74);
  --soft: rgba(235,246,255,.56);
  --cyan: #63d8ff;
  --green: #42f0b0;
  --red: #ff6f82;
  --glass: rgba(13,20,32,.38);
  --glass-strong: rgba(18,27,42,.66);
  --line: rgba(235,246,255,.18);
  --shadow: 0 24px 90px rgba(0,0,0,.46);
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(1,4,12,.14), rgba(1,3,10,.92)),
    url("/assets/generated/cosmic-space-bg.webp") center / cover fixed,
    var(--bg);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.invite-shell {
  position: relative;
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

body.poster-mode {
  min-height: 100dvh;
  overflow: hidden;
  background: #02050c;
}

body.qr-open {
  overflow: hidden;
}

body.qr-open .invite-shell {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

body.poster-mode .invite-shell {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.poster-mode .space-layer,
body.poster-mode .invite-header,
body.poster-mode .hero-orbit {
  display: none;
}

.space-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.space-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(66,240,176,.18), transparent 15rem),
    radial-gradient(circle at 18% 20%, rgba(99,216,255,.14), transparent 13rem),
    radial-gradient(circle at 72% 72%, rgba(255,111,130,.1), transparent 14rem),
    linear-gradient(180deg, rgba(1,4,12,.1), rgba(1,3,10,.78));
}

.star-field {
  position: absolute;
  inset: -16%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.72) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(99,216,255,.46) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(66,240,176,.35) 0 1px, transparent 1.6px);
  background-size: 82px 82px, 138px 138px, 230px 230px;
  opacity: .22;
  animation: starDrift 86s linear infinite;
}

.soft-comet {
  position: absolute;
  width: 160px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(235,246,255,.9), rgba(99,216,255,.18), transparent);
  filter: drop-shadow(0 0 10px rgba(99,216,255,.36));
  opacity: 0;
  transform: rotate(-18deg);
}

.comet-a {
  top: 18%;
  left: -42%;
  animation: cometPass 14s linear infinite 2s;
}

.comet-b {
  top: 64%;
  left: -50%;
  animation: cometPass 19s linear infinite 9s;
}

.invite-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-cutout {
  position: relative;
  width: min(224px, calc(100vw - 150px));
  height: 58px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(133,255,221,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 42%, rgba(66,240,176,.2), transparent 5rem),
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.018)),
    url("/assets/generated/cosmic-space-bg.webp") 18% 42% / 450px auto;
  box-shadow:
    inset 0 1px rgba(255,255,255,.22),
    inset 0 -18px 32px rgba(0,0,0,.32),
    0 0 24px rgba(66,240,176,.12);
  backdrop-filter: blur(16px) saturate(150%);
}

.brand-cutout::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 30%, rgba(66,240,176,.08) 72%, transparent);
  pointer-events: none;
}

.brand-cutout img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
  transform: translateX(-7px) scale(1.34);
  transform-origin: left center;
  filter: drop-shadow(0 0 8px rgba(66,240,176,.5));
}

.secure-pill {
  min-width: 74px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(235,246,255,.16);
  border-radius: 999px;
  background: rgba(13,20,32,.44);
  color: rgba(235,246,255,.78);
  font-size: .75rem;
  font-weight: 560;
  backdrop-filter: blur(14px);
}

.hero-orbit {
  position: relative;
  height: clamp(170px, 32vh, 250px);
  display: grid;
  place-items: center;
}

.planet-wrap {
  position: relative;
  width: clamp(132px, 38vw, 184px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 0 24px rgba(66,240,176,.34)) drop-shadow(0 0 70px rgba(99,216,255,.18));
  animation: planetFloat 7s cubic-bezier(.37,0,.23,1) infinite;
}

.planet-wrap::before {
  content: "";
  position: absolute;
  inset: 7%;
  z-index: 3;
  border: 1px solid rgba(133,255,221,.64);
  border-radius: 50%;
  box-shadow:
    inset 0 0 16px rgba(66,240,176,.3),
    0 0 18px rgba(66,240,176,.4),
    0 0 38px rgba(99,216,255,.18);
  animation: shieldPulse 3.4s cubic-bezier(.37,0,.23,1) infinite;
  pointer-events: none;
}

.planet-wrap::after {
  content: "";
  position: absolute;
  inset: 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66,240,176,.28), transparent 64%);
  filter: blur(14px);
  animation: glowPulse 3.4s cubic-bezier(.37,0,.23,1) infinite;
}

.planet-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.glass-card {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  padding: 24px;
  border: 1px solid rgba(235,246,255,.14);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 0%, rgba(99,216,255,.16), transparent 11rem),
    radial-gradient(circle at 84% 100%, rgba(66,240,176,.13), transparent 10rem),
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.035)),
    var(--glass);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.2), inset 0 -28px 60px rgba(0,0,0,.16);
  backdrop-filter: blur(30px) saturate(162%);
}

.poster-card {
  position: relative;
  z-index: 2;
  margin-top: -8px;
  overflow: hidden;
  border: 1px solid rgba(235,246,255,.18);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04)),
    rgba(12,20,34,.54);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.16);
  backdrop-filter: blur(22px) saturate(150%);
}

body.poster-mode .poster-card {
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #02050c;
  box-shadow: none;
  backdrop-filter: none;
}

body.poster-mode .poster-card::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(255,255,255,.18), transparent 18rem),
    linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.1) 50%, transparent 58% 100%);
  mix-blend-mode: screen;
  opacity: .42;
  animation: posterAurora 7s cubic-bezier(.37,0,.23,1) infinite;
}

.poster-card[hidden] {
  display: none;
}

.poster-card img {
  width: 100%;
  display: block;
  border-radius: 31px;
}

body.poster-mode .poster-card img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04) brightness(.98);
  animation: posterBreath 12s cubic-bezier(.37,0,.23,1) infinite;
  transform-origin: 50% 58%;
}

.glass-card + .glass-card {
  margin-top: 14px;
}

.glass-card[hidden] {
  display: none;
}

.store-link[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(133,255,221,.86);
  font-size: .82rem;
  font-weight: 620;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  font-weight: 460;
  line-height: 1.07;
}

h1 {
  font-size: clamp(2.08rem, 9.2vw, 3.16rem);
}

h2 {
  font-size: clamp(1.58rem, 6.3vw, 2.14rem);
}

.lead,
.error-card p,
.qr-card p,
.help-note,
.after-download {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.48;
}

.lead {
  margin: 12px 0 0;
}

.invite-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 9px;
}

.field span,
.device-switch legend {
  color: rgba(235,246,255,.82);
  font-size: .98rem;
  font-weight: 560;
}

.field input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(235,246,255,.18);
  border-radius: 18px;
  outline: 0;
  color: var(--text);
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px rgba(255,255,255,.1);
  font-size: 1.06rem;
}

.field input::placeholder {
  color: rgba(235,246,255,.42);
}

.field input:focus-visible,
.photo-upload:focus-within,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.guide-tabs button:focus-visible,
.store-link:focus-visible,
.close-btn:focus-visible {
  outline: 3px solid rgba(99,216,255,.42);
  outline-offset: 3px;
}

.photo-upload {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(235,246,255,.15);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 20%, rgba(99,216,255,.14), transparent 8rem),
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  box-shadow: inset 0 1px rgba(255,255,255,.12);
  cursor: pointer;
  overflow: hidden;
}

.photo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-preview {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(133,255,221,.34);
  border-radius: 50%;
  color: rgba(235,246,255,.76);
  background:
    radial-gradient(circle at 50% 35%, rgba(133,255,221,.2), transparent 62%),
    rgba(255,255,255,.07);
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 0 24px rgba(99,216,255,.08);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
}

.photo-copy strong {
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 620;
}

.photo-copy small {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
}

.photo-copy em {
  width: fit-content;
  margin-top: 3px;
  padding: 7px 11px;
  border: 1px solid rgba(133,255,221,.22);
  border-radius: 999px;
  color: rgba(133,255,221,.94);
  background: rgba(66,240,176,.08);
  font-size: .84rem;
  font-style: normal;
  font-weight: 620;
}

.form-error {
  margin: -4px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,111,130,.34);
  border-radius: 16px;
  color: #ffd8de;
  background: rgba(255,111,130,.12);
}

.form-error[hidden] {
  display: none;
}

.device-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.device-switch legend {
  grid-column: 1 / -1;
  margin-bottom: 1px;
}

.device-hint {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  color: var(--soft);
  font-size: .9rem;
  line-height: 1.35;
}

.device-switch label,
.guide-tabs button {
  position: relative;
  overflow: hidden;
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(235,246,255,.14);
  border-radius: 16px;
  color: rgba(235,246,255,.78);
  background: rgba(255,255,255,.055);
  cursor: pointer;
}

.device-switch label[hidden] {
  display: none;
}

.device-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.device-switch label:has(input:checked),
.guide-tabs button.is-active {
  border-color: rgba(133,255,221,.78);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(133,255,221,.36), transparent 78%),
    linear-gradient(135deg, rgba(99,216,255,.18), rgba(66,240,176,.11)),
    rgba(255,255,255,.1);
  box-shadow:
    inset 0 1px rgba(255,255,255,.22),
    inset 0 -18px 34px rgba(66,240,176,.08),
    0 0 26px rgba(99,216,255,.18);
}

.device-switch label:has(input:checked)::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.2), transparent 36%),
    radial-gradient(circle at 50% 120%, rgba(66,240,176,.2), transparent 62%);
  opacity: .8;
  pointer-events: none;
}

.primary-action,
.secondary-action,
.store-link {
  min-height: 60px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 620;
}

.primary-action {
  color: #00140f;
  background:
    linear-gradient(135deg, rgba(255,255,255,.54), transparent 38%),
    linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow:
    0 18px 40px rgba(66,240,176,.2),
    0 0 0 1px rgba(255,255,255,.16),
    inset 0 1px rgba(255,255,255,.5);
}

.primary-action[aria-busy="true"] {
  opacity: .7;
  pointer-events: none;
}

.secondary-action,
.store-link {
  color: rgba(245,251,255,.96);
  border-color: rgba(133,255,221,.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(99,216,255,.13), transparent 78%),
    rgba(255,255,255,.09);
  box-shadow: inset 0 1px rgba(255,255,255,.16);
}

.action-stack,
.device-downloads,
.store-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.download-device {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(235,246,255,.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(99,216,255,.12), transparent 9rem),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.035)),
    rgba(255,255,255,.045);
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 10px 34px rgba(0,0,0,.16);
}

.device-badge {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99,216,255,.26);
  border-radius: 16px;
  color: var(--cyan);
  background: rgba(99,216,255,.1);
  font-size: 1.28rem;
}

.download-device strong {
  display: block;
  font-weight: 620;
}

.download-device span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .92rem;
}

.download-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
}

.download-actions .primary-action,
.download-actions .secondary-action {
  min-height: 56px;
}

.progress-card {
  text-align: left;
}

.progress-steps,
.guide-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}

.progress-steps li,
.guide-list li {
  position: relative;
  min-height: 62px;
  display: grid;
  align-items: center;
  padding: 14px 14px 14px 58px;
  border: 1px solid rgba(235,246,255,.12);
  border-radius: 18px;
  color: rgba(235,246,255,.78);
  background: rgba(255,255,255,.055);
}

.progress-steps li::before,
.guide-list li::before {
  content: attr(data-index);
  position: absolute;
  left: 14px;
  top: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: rgba(99,216,255,.16);
  transform: translateY(-50%);
}

.progress-steps li::before {
  content: "";
  background:
    radial-gradient(circle, var(--cyan) 0 4px, transparent 5px),
    rgba(99,216,255,.12);
}

.progress-steps li.is-active {
  color: var(--text);
  border-color: rgba(99,216,255,.36);
  box-shadow: 0 0 24px rgba(99,216,255,.08);
}

.success-mark {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(133,255,221,.5);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(133,255,221,.3) 0 18%, rgba(66,240,176,.12) 19% 36%, transparent 38%),
    rgba(255,255,255,.06);
  box-shadow:
    0 0 30px rgba(66,240,176,.18),
    inset 0 1px rgba(255,255,255,.18),
    inset 0 0 24px rgba(99,216,255,.12);
  animation: successPulse 2.1s var(--ease) infinite;
}

.success-mark span {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(235,246,255,.74);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,246,255,.95) 0 2px, rgba(133,255,221,.5) 3px 7px, transparent 8px);
  box-shadow: 0 0 18px rgba(133,255,221,.56);
}

@keyframes successPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 26px rgba(66,240,176,.16),
      inset 0 1px rgba(255,255,255,.18),
      inset 0 0 22px rgba(99,216,255,.12);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 0 42px rgba(66,240,176,.28),
      inset 0 1px rgba(255,255,255,.24),
      inset 0 0 32px rgba(99,216,255,.2);
  }
}

.after-download {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid rgba(66,240,176,.22);
  border-radius: 18px;
  background: rgba(66,240,176,.08);
}

.section-head {
  margin-bottom: 16px;
}

.guide-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.guide-tabs button {
  font-weight: 620;
}

.guide-list li {
  color: rgba(245,251,255,.92);
  line-height: 1.36;
}

.guide-list strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.03rem;
  font-weight: 620;
}

.guide-list span {
  color: var(--muted);
}

.help-note {
  margin: 16px 0 0;
  color: var(--soft);
}

.error-card {
  border-color: rgba(255,111,130,.24);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,111,130,.16), transparent 9rem),
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03)),
    rgba(24,14,22,.58);
}

.error-card .eyebrow {
  color: rgba(255,155,167,.92);
}

.qr-dialog {
  width: min(92vw, 410px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--text);
  background: transparent;
}

.qr-dialog::backdrop {
  background: radial-gradient(circle at 50% 36%, rgba(18,27,42,.42), rgba(0,0,0,.78));
  backdrop-filter: blur(18px) saturate(118%);
}

.qr-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(235,246,255,.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.04)),
    rgba(12,20,34,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
}

.qr-card img {
  width: 100%;
  max-width: 290px;
  display: block;
  margin: 16px auto;
  border-radius: 18px;
  background: white;
  box-shadow: 0 18px 44px rgba(0,0,0,.36);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(235,246,255,.16);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

@keyframes starDrift {
  to {
    transform: translate3d(42px, 78px, 0);
  }
}

@keyframes cometPass {
  0%, 72% {
    opacity: 0;
    transform: rotate(-18deg) translate3d(0, 0, 0);
  }
  78% {
    opacity: .72;
  }
  100% {
    opacity: 0;
    transform: rotate(-18deg) translate3d(160vw, 0, 0);
  }
}

@keyframes planetFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -7px, 0) rotate(1deg);
  }
}

@keyframes shieldPulse {
  0%, 100% {
    opacity: .68;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: .44;
    transform: scale(1.02);
  }
  50% {
    opacity: .72;
    transform: scale(1.12);
  }
}

@keyframes posterBreath {
  0%, 100% {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.055) translate3d(0, -1.4%, 0);
  }
}

@keyframes posterAurora {
  0%, 100% {
    opacity: .3;
    transform: translate3d(-8%, 0, 0) rotate(-4deg);
  }
  50% {
    opacity: .58;
    transform: translate3d(8%, 2%, 0) rotate(3deg);
  }
}

@media (min-width: 760px) {
  .invite-shell {
    width: min(980px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 480px);
    grid-template-rows: auto 1fr;
    column-gap: 36px;
    align-items: center;
    padding-top: 28px;
  }

  .invite-header {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-orbit {
    height: 520px;
  }

  .planet-wrap {
    width: min(360px, 32vw);
  }

  .glass-card {
    margin-top: 0;
  }

  .glass-card + .glass-card {
    grid-column: 2;
  }
}

@media (max-width: 380px) {
  .invite-shell {
    padding-inline: 12px;
  }

  .brand-cutout {
    width: min(204px, calc(100vw - 132px));
  }

  .secure-pill {
    min-width: 52px;
    padding-inline: 9px;
    font-size: .68rem;
  }

  .glass-card {
    padding: 20px;
    border-radius: 24px;
  }

  h1 {
    font-size: 2.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Top logo stays glassy, but without glow. */
.brand-cutout {
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.018)),
    url("/assets/generated/cosmic-space-bg.webp") 18% 42% / 450px auto !important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.18),
    inset 0 -16px 28px rgba(0,0,0,.28),
    0 0 0 1px rgba(255,255,255,.04) !important;
  filter: none !important;
}

.brand-cutout::after {
  background: linear-gradient(115deg, rgba(255,255,255,.14), transparent 34%, rgba(255,255,255,.04) 72%, transparent) !important;
  opacity: .28 !important;
}

.brand-cutout img {
  filter: none !important;
}
