@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --ink: #31303d;
  --muted: #777481;
  --paper: #fffaf9;
  --rose: #e9aebe;
  --rose-deep: #b96780;
  --blush: #f9e9eb;
  --blue: #a9cce0;
  --blue-deep: #5c91b1;
  --lavender: #e5dff0;
  --line: rgba(49, 48, 61, 0.12);
  --shadow: 0 24px 70px rgba(107, 72, 89, 0.14);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.invite-page {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 15% 15%, rgba(233, 174, 190, 0.55), transparent 29%),
    radial-gradient(circle at 88% 82%, rgba(169, 204, 224, 0.58), transparent 32%),
    linear-gradient(135deg, #fffaf9, #f8f3f6 58%, #eef6f8);
}

.invite-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  max-width: 620px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: stretch;
}

.scene {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: calc(100svh - 48px);
  display: none;
  flex-direction: column;
  justify-content: center;
  animation: scene-in 500ms ease both;
}

.scene.active {
  display: flex;
}

@keyframes scene-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow,
.admin-eyebrow {
  margin: 0 0 12px;
  color: var(--rose-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.invite-title,
.scene h1,
.scene h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.scene h1 {
  max-width: 560px;
  font-size: clamp(2.55rem, 8vw, 5.25rem);
  line-height: 0.96;
}

.scene h2 {
  max-width: 520px;
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1;
}

.scene-copy {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.scene--welcome {
  max-width: 560px;
  margin: 0 auto;
}

.scene--welcome .scene-copy {
  max-width: 520px;
}

.scene--welcome .scene-copy + .scene-copy {
  margin-top: 13px;
}

.scene--welcome {
  text-align: center;
}

.scene--welcome h1 {
  margin-right: auto;
  margin-left: auto;
}

.opening-greeting {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 600;
}

.invite-names {
  margin: 24px 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 5vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.invite-names span:first-child { color: var(--blue-deep); }
.invite-names span:last-child { color: var(--rose-deep); }
.invite-names b {
  color: #c9ad77;
  font-weight: 500;
}

.opening-waiting {
  margin-top: 10px;
  margin-right: auto;
  margin-left: auto;
}

.twins-highlight {
  margin: 18px 0 0;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  font-weight: 600;
}

.scene--welcome strong {
  color: var(--ink);
  font-weight: 700;
}

.scene--prediction {
  animation: none;
}

.scene--prediction.prediction-enter {
  animation: scene-in 500ms ease both;
}

.invite-page:not(:has(.scene--welcome)) .scene,
.invite-page:not(:has(.scene--welcome)) .invite-card {
  text-align: center;
}

.invite-page:not(:has(.scene--welcome)) .scene-copy {
  margin-right: auto;
  margin-left: auto;
}

.invite-page:not(:has(.scene--welcome)) .info-item {
  text-align: left;
}

.invite-page:not(:has(.scene--welcome)) .countdown {
  text-align: center;
}

.invite-page:not(:has(.scene--welcome)) .countdown-values {
  justify-content: center;
}

.tone-mark,
.scene-copy span {
  white-space: nowrap;
}

.girly-text { color: var(--rose-deep) !important; }
.boys-text { color: var(--blue-deep) !important; }

.invite-progress {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.invite-progress span {
  width: 27px;
  height: 3px;
  border-radius: 9px;
  background: rgba(49, 48, 61, 0.16);
  transition: background 220ms ease, width 220ms ease;
}

.invite-progress span.on {
  width: 34px;
  background: var(--rose-deep);
}

.invite-page .primary-button,
.invite-page .secondary-button {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.invite-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.invite-art--declined .character {
  opacity: 0.5;
  filter: saturate(0.78);
}

.invite-art--declined .person-head::after {
  position: absolute;
  bottom: 10px;
  left: 18px;
  width: 12px;
  height: 6px;
  border-top: 1.5px solid rgba(49, 48, 61, 0.34);
  border-radius: 50% 50% 0 0;
  content: "";
}

.invite-art--declined .baby-cluster {
  opacity: 0.58;
}

.character {
  position: absolute;
  bottom: -22px;
  width: 120px;
  height: 208px;
  opacity: 0.62;
  animation: character-float 5.5s ease-in-out infinite;
}

.character--leo {
  left: max(4px, calc(50% - 350px));
}

.character--lorena {
  right: max(4px, calc(50% - 350px));
  animation-delay: -2.7s;
}

.character-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
}

.person-head {
  position: absolute;
  top: 25px;
  left: 36px;
  width: 49px;
  height: 57px;
  border: 2px solid rgba(49, 48, 61, 0.1);
  border-radius: 48% 48% 44% 44%;
  background: #f2c5b2;
}

.person-head i {
  position: absolute;
  top: 27px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.person-head i:first-child { left: 14px; }
.person-head i:last-child { right: 14px; }

.person-hair {
  position: absolute;
  top: 17px;
  left: 31px;
  width: 59px;
  height: 36px;
  border-radius: 50% 50% 32% 32%;
  background: #443548;
}

.character--leo .person-hair {
  top: 19px;
  left: 34px;
  width: 54px;
  height: 25px;
  border-radius: 50% 50% 22% 22%;
  background: #3a3440;
}

.person-neck {
  position: absolute;
  top: 77px;
  left: 53px;
  width: 15px;
  height: 17px;
  background: #f2c5b2;
}

.person-body {
  position: absolute;
  top: 87px;
  left: 22px;
  width: 78px;
  height: 123px;
  border: 2px solid rgba(49, 48, 61, 0.1);
  border-radius: 42px 42px 10px 10px;
  background: #fff;
  box-shadow: 0 15px 24px rgba(71, 56, 69, 0.1);
}

.person-detail {
  position: absolute;
  top: 96px;
  left: 57px;
  width: 3px;
  height: 88px;
  background: rgba(169, 204, 224, 0.65);
}

.character--lorena .person-detail {
  background: rgba(233, 174, 190, 0.72);
}

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

.baby-cluster {
  position: absolute;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  opacity: 0.8;
}

.baby-cluster--girls { left: 10px; }
.baby-cluster--boys { right: 10px; }

.baby {
  position: relative;
  width: 42px;
  height: 58px;
  animation: baby-bob 4.2s ease-in-out infinite;
}

.baby--left-two,
.baby--right-two {
  transform: scale(0.8) translateY(8px);
  animation-delay: -1.4s;
}

.baby-head {
  position: absolute;
  top: 0;
  left: 12px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(49, 48, 61, 0.08);
  border-radius: 50%;
  background: #f4c7b4;
}

.baby-body {
  position: absolute;
  top: 24px;
  left: 6px;
  width: 38px;
  height: 33px;
  border-radius: 20px 20px 12px 12px;
  background: #f1ccd9;
}

.baby--boy .baby-body { background: #c4e0ee; }

.baby-blanket {
  position: absolute;
  bottom: 0;
  left: 1px;
  width: 40px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

@keyframes baby-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.prediction-art {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 150px;
  height: 175px;
  opacity: 0.75;
  transform: translateX(-50%);
}

.stork {
  position: absolute;
  top: 0;
  left: 50%;
  width: 85px;
  height: 120px;
  transform: translateX(-50%);
}

.stork-head {
  position: absolute;
  top: 0;
  left: 46px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 5px 10px rgba(71, 56, 69, 0.08);
}

.stork-head::after {
  position: absolute;
  top: 9px;
  right: -18px;
  width: 21px;
  height: 5px;
  border-radius: 10px;
  content: "";
  background: #e8b36c;
  transform: rotate(-5deg);
}

.stork-neck {
  position: absolute;
  top: 18px;
  left: 51px;
  width: 12px;
  height: 54px;
  border-left: 7px solid white;
  border-radius: 50%;
  transform: rotate(18deg);
}

.stork-body {
  position: absolute;
  top: 59px;
  left: 14px;
  width: 58px;
  height: 33px;
  border-radius: 50%;
  background: white;
  transform: rotate(-8deg);
}

.stork-body::after {
  position: absolute;
  top: 14px;
  left: -37px;
  width: 48px;
  height: 20px;
  border-radius: 50% 10% 50% 10%;
  content: "";
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(25deg);
}

.stork-beak {
  position: absolute;
  top: 19px;
  left: 69px;
  width: 17px;
  height: 4px;
  border-radius: 10px;
  background: #e8b36c;
}

.neutral-babies {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.neutral-babies span {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 42% 42%;
  background: #f6d8ca;
  box-shadow: 0 7px 16px rgba(71, 56, 69, 0.08);
}

.neutral-babies span:last-child { background: #d6e8ef; }

.neutral-babies span::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  height: 13px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.7);
}

.celebration {
  position: absolute;
  top: 19%;
  left: 50%;
  display: flex;
  gap: 22px;
  color: var(--rose-deep);
  font-size: 1.4rem;
  animation: celebration-float 2.8s ease-in-out infinite;
  transform: translateX(-50%);
}

.celebration--boys { color: var(--blue-deep); }
.celebration span:nth-child(2) { animation-delay: -0.5s; }
.celebration span:nth-child(3) { animation-delay: -1s; }

@keyframes celebration-float {
  0%, 100% { opacity: 0.45; transform: translate(-50%, 0) rotate(-2deg); }
  50% { opacity: 0.95; transform: translate(-50%, -12px) rotate(3deg); }
}

.result-card {
  text-align: center;
}

.result-card .scene-copy {
  margin-right: auto;
  margin-left: auto;
}

.result-bubble {
  display: inline-flex;
  margin-top: 28px;
  padding: 18px 25px;
  border-radius: 999px;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}

.result-card--girly .result-bubble { background: #f8d8df; }
.result-card--boys .result-bubble { background: #d6ebf4; }

.result-card .button-row {
  justify-content: center;
}

.declined-card {
  text-align: center;
}

.declined-card .scene-copy {
  margin-right: auto;
  margin-left: auto;
}

.declined-card .countdown {
  max-width: 460px;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.declined-card .button-row {
  justify-content: center;
}

.twins-mark {
  display: flex;
  gap: 12px;
  margin: 0 0 34px;
}

.twins-mark span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  box-shadow: 0 12px 28px rgba(80, 63, 79, 0.12);
}

.twins-mark span:first-child { background: var(--rose); }
.twins-mark span:last-child { background: var(--blue); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.invite-page .button-row {
  justify-content: center;
}

.back-button {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  z-index: 4;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: rgba(92, 81, 105, 0.72);
  background: transparent;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease;
}

.back-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.22);
}

.back-button:focus-visible {
  outline: 2px solid rgba(92, 145, 177, 0.55);
  outline-offset: 2px;
}

.arrow-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(49, 48, 61, 0.13);
  border-radius: 50%;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(71, 56, 69, 0.09);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.arrow-row {
  margin-top: 28px;
}

.arrow-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(71, 56, 69, 0.14);
}

.arrow-button:focus-visible {
  outline: 2px solid rgba(92, 145, 177, 0.55);
  outline-offset: 3px;
}

.arrow-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.invite-error {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  left: 18px;
  z-index: 5;
  width: fit-content;
  max-width: min(420px, calc(100% - 36px));
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(185, 103, 128, 0.2);
  border-radius: 999px;
  color: #884f5b;
  background: rgba(255, 248, 249, 0.94);
  box-shadow: 0 10px 26px rgba(71, 56, 69, 0.12);
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.primary-button,
.secondary-button,
.choice-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: white;
  background: var(--ink);
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.choice-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(49, 48, 61, 0.15);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.choice-button {
  min-width: 145px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid transparent;
}

.choice-button.selected {
  border-color: var(--ink);
  background: var(--lavender);
}

.choice-button.girly.selected { background: #f8d8df; }
.choice-button.boys.selected { background: #d6ebf4; }

.choice-button:disabled,
.field select:disabled {
  cursor: default;
  opacity: 0.68;
}

.attendee-control {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 28px;
}

.attendee-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.attendee-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 8vw, 42px);
}

.stepper-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(49, 48, 61, 0.13);
  border-radius: 50%;
  padding: 0 0 3px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 22px rgba(71, 56, 69, 0.08);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.stepper-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(71, 56, 69, 0.13);
}

.stepper-button:focus-visible {
  outline: 2px solid rgba(92, 145, 177, 0.55);
  outline-offset: 3px;
}

.stepper-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.attendee-count {
  min-width: 2ch;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.625rem, 13vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
}

.invite-card {
  padding: clamp(24px, 6vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(15px);
}

.family-name {
  margin: 6px 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 9vw, 4.8rem);
  line-height: 0.95;
}

.seat-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: #e8f3f7;
  font-size: 0.86rem;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(233, 174, 190, 0.24);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.invite-page .choice-grid {
  width: 100%;
  max-width: 460px;
  margin-right: auto;
  margin-left: auto;
}

.invite-page .choice-button {
  width: 100%;
  max-width: 220px;
  justify-self: center;
}

.invite-page .field {
  width: 100%;
  max-width: 320px;
  margin-right: auto;
  margin-left: auto;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(92, 81, 105, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 28px rgba(80, 63, 79, 0.07);
}

.info-item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 18px 14px 22px;
  border-radius: 0;
  background: transparent;
}

.info-item + .info-item {
  border-top: 1px solid rgba(92, 81, 105, 0.11);
}

.info-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
}

.info-item:nth-child(odd)::before {
  background: linear-gradient(180deg, #f2a4bb, #e987a8);
}

.info-item:nth-child(even)::before {
  background: linear-gradient(180deg, #9bc9e5, #78afd3);
}

.info-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  display: inline-grid;
  flex: 0 0 1.1rem;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.info-item strong,
.info-item .info-value {
  display: block;
}

.info-item strong {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-item .info-value {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.arrow-row {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.arrow-hint {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.countdown {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.countdown-copy {
  display: grid;
  gap: 4px;
}

.countdown-copy strong {
  font-family: "Playfair Display", serif;
  font-size: 1.12rem;
  font-weight: 600;
}

.countdown-copy span {
  color: var(--muted);
  font-size: 0.85rem;
}

.countdown-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.countdown-values span {
  min-width: 62px;
  padding: 10px 11px;
  border-radius: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.countdown-values b,
.countdown-values small {
  display: block;
}

.countdown-values b { font-size: 1.15rem; }
.countdown-values small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.countdown-values b {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

.countdown-footer {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.gift-section {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.gift-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.gift-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.gift-button {
  justify-self: center;
  margin-top: 8px;
  text-decoration: none;
}

.gift-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.announcement {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--rose-deep);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.error-card {
  max-width: 500px;
  margin: auto;
  padding: 32px;
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.admin-login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 10%, rgba(233, 174, 190, 0.34), transparent 30%),
    radial-gradient(circle at 90% 86%, rgba(169, 204, 224, 0.38), transparent 33%),
    #f8f7f8;
}

.admin-login-card {
  width: min(430px, 100%);
  padding: clamp(28px, 7vw, 46px);
  border: 1px solid rgba(49, 48, 61, 0.09);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 60px rgba(73, 62, 76, 0.12);
}

.admin-login-kicker {
  margin: 0 0 10px;
  color: var(--rose-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-login-card h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.admin-login-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-login-error {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #884f5b;
  background: #fae8eb;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-login-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.admin-login-form .field {
  margin: 0;
}

.admin-login-form .primary-button {
  margin-top: 6px;
}

.admin-page {
  min-height: 100vh;
  background: #f7f7f8;
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  color: white;
  background: #30303d;
}

.admin-brand {
  margin: 0 0 44px;
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
}

.admin-nav {
  display: grid;
  gap: 7px;
}

.admin-nav button {
  border: 0;
  border-radius: 11px;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.admin-nav button:hover,
.admin-nav button.active {
  color: white;
  background: rgba(255, 255, 255, 0.13);
}

.admin-logout-form {
  margin-top: auto;
}

.admin-logout {
  width: 100%;
  border: 0;
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  text-align: left;
  font-size: 0.82rem;
}

.admin-logout:hover,
.admin-logout:focus-visible {
  color: white;
}

.admin-main {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px);
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.admin-header h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.admin-header p {
  margin: 7px 0 0;
  color: var(--muted);
}

.admin-section-title {
  margin: 34px 0 14px;
  font-size: 1.05rem;
}

.summary-list {
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-row + .summary-row {
  border-top: 1px solid var(--line);
}

.summary-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
}

.summary-item + .summary-item {
  border-left: 1px solid var(--line);
}

.summary-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-item strong {
  flex: 0 0 auto;
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.summary-line {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-radius: 18px;
  color: #4b3f48;
  background: linear-gradient(100deg, #f9e7eb, #eaf3f6);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.chart-card,
.admin-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
}

.chart-card h3,
.admin-card h3 {
  margin: 0;
  font-size: 0.96rem;
}

.donut-wrap {
  display: grid;
  place-items: center;
  margin: 22px 0;
}

.donut {
  width: 142px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--rose) var(--first), var(--blue) 0);
}

.donut::after {
  width: 92px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  content: attr(data-total);
  color: var(--ink);
  background: white;
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
}

.legend {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--rose);
}

.legend i.blue { background: var(--blue-deep); }

.bar-list {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.bar-track {
  height: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0f2;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--rose));
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table td {
  font-size: 0.9rem;
}

.status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

.status.confirmed { color: #46745e; background: #e5f2e8; }
.status.declined { color: #9a5760; background: #fae5e7; }
.status.pending { color: #8a6a38; background: #faf1d9; }
.status.inactive { color: #777481; background: #ececef; }

.link-code {
  max-width: 190px;
  overflow: hidden;
  color: var(--blue-deep);
  font-family: monospace;
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.small-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--ink);
  background: white;
  font-size: 0.76rem;
}

.small-button:hover { background: #f7f2f4; }
.small-button.danger { color: #a55861; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full { grid-column: 1 / -1; }

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.checkbox-field input { accent-color: var(--rose-deep); }

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  border-radius: 13px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  animation: scene-in 240ms ease both;
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { padding: 18px 20px; }
  .admin-brand { margin: 0 0 18px; }
  .admin-nav { display: flex; overflow-x: auto; }
  .admin-nav button { white-space: nowrap; }
  .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .invite-shell { padding: 18px; }
  .scene { min-height: calc(100svh - 36px); }
  .invite-progress { top: 16px; }
  .invite-progress span { width: 19px; }
  .invite-progress span.on { width: 25px; }
  .character {
    bottom: -18px;
    width: 78px;
    height: 142px;
    opacity: 0.54;
  }
  .character--leo { left: -8px; }
  .character--lorena { right: -8px; }
  .person-head {
    top: 17px;
    left: 25px;
    width: 32px;
    height: 39px;
  }
  .person-head i {
    top: 18px;
    width: 3px;
    height: 4px;
  }
  .person-head i:first-child { left: 9px; }
  .person-head i:last-child { right: 9px; }
  .person-hair {
    top: 12px;
    left: 21px;
    width: 40px;
    height: 27px;
  }
  .character--leo .person-hair {
    top: 14px;
    left: 23px;
    width: 36px;
    height: 18px;
  }
  .person-neck {
    top: 52px;
    left: 36px;
    width: 10px;
    height: 12px;
  }
  .person-body {
    top: 60px;
    left: 14px;
    width: 51px;
    height: 84px;
    border-radius: 28px 28px 8px 8px;
  }
  .person-detail {
    top: 67px;
    left: 36px;
    height: 56px;
  }
  .baby-cluster {
    bottom: 3px;
    transform: scale(0.72);
    transform-origin: bottom;
  }
  .baby-cluster--girls { left: -1px; }
  .baby-cluster--boys { right: -1px; }
  .prediction-art {
    top: 4%;
    transform: translateX(-50%) scale(0.76);
  }
  .scene--welcome .scene-copy {
    font-size: 0.94rem;
    line-height: 1.48;
  }
  .opening-greeting { margin-bottom: 11px; }
  .invite-names {
    margin-top: 18px;
    font-size: 1.65rem;
  }
  .twins-highlight {
    margin-top: 14px;
    font-size: 1.2rem;
  }
  .invite-card {
    padding: 23px 19px;
    border-radius: 26px;
  }
  .countdown-values {
    justify-content: center;
  }
  .countdown-values span {
    flex: 1 1 62px;
  }
  .gift-section {
    padding: 16px 14px;
  }
  .info-grid,
  .choice-grid,
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .admin-main { padding: 26px 18px; }
  .admin-header { display: block; }
  .summary-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-row .summary-item:nth-child(3) { border-left: 0; }
  .summary-row .summary-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .summary-item { padding: 12px; }
  .summary-item strong { font-size: 1.25rem; }
}

/* Scene 01 · illustrated welcome keepsake */
.invite-shell:has(.scene--welcome) {
  max-width: 1120px;
  padding: 0 clamp(18px, 4vw, 44px);
}

.invite-shell:has(.scene--welcome) > .invite-art {
  display: none;
}

.scene--welcome {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1080px;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(74px, 9vh, 96px) clamp(260px, 25vw, 300px) 210px;
  justify-content: flex-start;
  overflow: visible;
  animation: none;
}

.scene--welcome::before,
.scene--welcome::after {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.scene--welcome::before {
  inset: 5% 10% 3%;
  background:
    radial-gradient(circle at 50% 37%, rgba(255, 253, 247, .96) 0 23%, transparent 52%),
    radial-gradient(circle at 18% 10%, rgba(248, 205, 216, .42), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(192, 220, 239, .46), transparent 34%);
  filter: blur(1px);
}

.scene--welcome::after {
  right: -16%;
  bottom: -15%;
  left: -16%;
  height: 29%;
  background: linear-gradient(180deg, rgba(255, 243, 240, 0), rgba(255, 239, 242, .86));
  filter: blur(11px);
}

.welcome-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.welcome-character,
.welcome-babies {
  position: absolute;
  display: block;
  object-fit: contain;
  user-select: none;
}

.welcome-character {
  bottom: 58px;
  width: clamp(250px, 25vw, 315px);
  max-height: 76%;
  animation: welcome-character-in 900ms cubic-bezier(.2,.75,.25,1) both;
}

.welcome-character--leo {
  left: -10px;
  transform-origin: bottom left;
}

.welcome-character--lorena {
  right: -10px;
  animation-delay: 110ms;
  transform-origin: bottom right;
}

.welcome-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.welcome-baby-stage {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 220px;
  pointer-events: none;
}

.welcome-babies {
  bottom: 0;
  width: clamp(150px, 19vw, 205px);
  border-radius: 44% 44% 0 0;
  mix-blend-mode: multiply;
  opacity: .95;
}

.welcome-babies--girls { left: 4%; }
.welcome-babies--boys { right: 4%; }

.sky-cloud {
  position: absolute;
  width: 140px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
  filter: blur(5px);
}

.sky-cloud::before,
.sky-cloud::after {
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.sky-cloud::before { left: 20px; width: 70px; height: 62px; }
.sky-cloud::after { right: 14px; width: 54px; height: 52px; }
.sky-cloud--left { top: 11%; left: -6%; }
.sky-cloud--right { top: 14%; right: -7%; transform: scale(.82); }

.sky-spark,
.sky-heart {
  position: absolute;
  color: rgba(198, 154, 91, .7);
  font-family: "Playfair Display", serif;
  animation: welcome-particle-drift 12s ease-in-out infinite;
}

.sky-heart { color: rgba(226, 137, 164, .57); font-size: 1.05rem; }
.sky-spark--one { top: 16%; left: 22%; font-size: 1.1rem; }
.sky-spark--two { top: 29%; right: 22%; animation-delay: -5s; }
.sky-spark--three { top: 43%; left: 13%; animation-delay: -8s; }
.sky-heart--one { top: 24%; left: 10%; animation-delay: -3s; }
.sky-heart--two { top: 34%; right: 10%; animation-delay: -7s; }
.sky-heart--three { bottom: 27%; left: 29%; animation-delay: -10s; }

.scene--welcome .opening-greeting { margin-bottom: 15px; }
.scene--welcome h1 { max-width: 430px; margin-inline: auto; font-size: clamp(2rem, 4vw, 3.25rem); }
.scene--welcome .invite-names { margin-top: 19px; }
.scene--welcome .scene-copy { font-size: .96rem; }
.scene--welcome .button-row { margin-top: 25px; }
.scene--welcome .primary-button {
  min-height: 48px;
  padding-inline: 26px;
  color: #fffaf7;
  background: #b96780;
  box-shadow: 0 12px 28px rgba(185, 103, 128, .22);
}

@keyframes welcome-character-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes welcome-particle-drift {
  0%, 100% { opacity: .42; transform: translate3d(0, 0, 0); }
  50% { opacity: .78; transform: translate3d(0, -7px, 0); }
}

@media (max-width: 520px) {
  .invite-shell:has(.scene--welcome) { padding: 0 12px; }
  .scene--welcome {
    min-height: 100svh;
    padding: 42px 12px 155px;
  }
  .scene--welcome::before { inset: 3% -12% 2%; }
  .welcome-sky {
    position: relative;
    inset: auto;
    z-index: 1;
    width: calc(100% + 16px);
    height: 205px;
    margin: 0 -8px 4px;
    overflow: hidden;
  }
  .welcome-character {
    width: 38%;
    max-height: none;
  }
  .welcome-character--leo {
    bottom: -245px;
    left: -1%;
  }
  .welcome-character--lorena {
    right: -1%;
    bottom: -218px;
  }
  .welcome-copy {
    z-index: 2;
    max-width: 360px;
  }
  .welcome-baby-stage {
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    height: 145px;
    margin-top: 0;
  }
  .welcome-babies {
    bottom: 0;
    width: 32%;
  }
  .welcome-babies--girls { left: 0; }
  .welcome-babies--boys { right: 0; }
  .scene--welcome .opening-greeting { margin-bottom: 8px; }
  .scene--welcome h1 { font-size: clamp(1.7rem, 7.8vw, 2.35rem); line-height: .98; }
  .scene--welcome .scene-copy,
  .scene--welcome .scene-copy + .scene-copy { margin-top: 9px; font-size: .78rem; line-height: 1.28; }
  .scene--welcome .invite-names { margin-top: 8px; font-size: 1.42rem; }
  .scene--welcome .twins-highlight { margin-top: 10px; font-size: 1.02rem; }
  .scene--welcome .button-row { margin-top: 12px; }
  .scene--welcome .primary-button { width: auto; min-height: 44px; padding: 11px 17px; font-size: .67rem; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-character,
  .sky-spark,
  .sky-heart { animation: none; }
}

/* Scene 01 · composition matched to the approved portrait reference */
.invite-shell:has(.scene--welcome) {
  width: 100%;
  max-width: none;
  padding: 0;
}

.scene--welcome {
  width: min(100%, 430px);
  max-width: 430px;
  min-height: 0;
  aspect-ratio: 853 / 1844;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,.98) 0 19%, transparent 42%),
    radial-gradient(circle at 13% 34%, rgba(198,226,247,.75), transparent 31%),
    radial-gradient(circle at 88% 20%, rgba(250,202,219,.68), transparent 32%),
    linear-gradient(155deg, #fff8f3 0%, #fffdf8 48%, #f4e7ec 72%, #e5f1fb 100%);
  box-shadow: 0 24px 70px rgba(97, 70, 81, .14);
}

.scene--welcome::before {
  inset: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at 0 8%, rgba(255,255,255,.9) 0 7%, transparent 8%),
    radial-gradient(ellipse at 100% 27%, rgba(255,255,255,.82) 0 8%, transparent 9%),
    radial-gradient(ellipse at 6% 72%, rgba(255,255,255,.8) 0 10%, transparent 11%),
    radial-gradient(ellipse at 93% 74%, rgba(255,255,255,.75) 0 11%, transparent 12%);
  filter: blur(3px);
}

.scene--welcome::after {
  right: -10%;
  bottom: -3%;
  left: -10%;
  height: 22%;
  background:
    radial-gradient(ellipse at 18% 76%, rgba(255,255,255,.96) 0 15%, transparent 16%),
    radial-gradient(ellipse at 80% 76%, rgba(255,255,255,.95) 0 17%, transparent 18%),
    linear-gradient(180deg, transparent, rgba(255,255,255,.68));
  filter: blur(8px);
}

.scene--welcome .welcome-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  margin: 0;
  overflow: hidden;
}

.welcome-balloons {
  position: absolute;
  top: 5.5%;
  z-index: 1;
  width: 30%;
  height: 23%;
}

.welcome-balloons--left { left: -7%; }
.welcome-balloons--right { right: -7%; transform: scaleX(-1); }

.welcome-balloons i {
  position: absolute;
  top: 0;
  width: 48%;
  aspect-ratio: .72;
  border-radius: 50% 50% 48% 48%;
  background: linear-gradient(125deg, rgba(255,255,255,.92), #f6a8c2 42%, #ef8caf);
  box-shadow: inset -8px -9px 16px rgba(193, 91, 128, .16);
}

.welcome-balloons i::before {
  position: absolute;
  top: 12%;
  left: 22%;
  width: 18%;
  height: 28%;
  border-radius: 50%;
  background: rgba(255,255,255,.66);
  content: "";
  transform: rotate(28deg);
}

.welcome-balloons i::after {
  position: absolute;
  top: 96%;
  left: 50%;
  width: 1px;
  height: 115%;
  background: linear-gradient(#df85a6, transparent);
  content: "";
  transform: rotate(-9deg);
  transform-origin: top;
}

.welcome-balloons i + i {
  top: 13%;
  right: 0;
  background: linear-gradient(125deg, rgba(255,255,255,.92), #9bc9ee 42%, #78afe1);
  box-shadow: inset -8px -9px 16px rgba(72, 132, 183, .15);
}

.welcome-balloons i + i::after { background: linear-gradient(#6fa7d5, transparent); }

.scene--welcome .welcome-character {
  bottom: 10.5%;
  z-index: 2;
  width: 47%;
  max-height: none;
  filter: drop-shadow(0 8px 14px rgba(78, 56, 62, .08));
}

.scene--welcome .welcome-character--leo { left: -8%; }
.scene--welcome .welcome-character--lorena { right: -8%; }

.scene--welcome .welcome-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  pointer-events: none;
}

.scene--welcome .welcome-copy::before {
  display: none;
}

.invitation-text-cloud {
  position: absolute;
  top: 17%;
  left: 50%;
  z-index: -1;
  width: 44%;
  height: 60%;
  border-radius: 42% 46% 40% 44% / 18% 20% 22% 20%;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.74), rgba(255,255,255,.35) 60%, transparent 100%),
    rgba(255,255,255,.58);
  box-shadow:
    0 12px 40px rgba(91,72,110,.07),
    inset 0 0 40px rgba(255,255,255,.35);
  opacity: .82;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.invitation-text-cloud::before,
.invitation-text-cloud::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.58), rgba(255,255,255,.16) 62%, transparent 100%);
  content: "";
  filter: blur(9px);
}

.invitation-text-cloud::before {
  top: -6%;
  left: -20%;
  width: 140%;
  height: 34%;
}

.invitation-text-cloud::after {
  right: auto;
  bottom: -7%;
  left: 50%;
  width: 175%;
  height: 66%;
  transform: translateX(-50%);
}

.scene--welcome .welcome-copy button { pointer-events: auto; }

.welcome-intro,
.welcome-announcement,
.welcome-details {
  position: absolute;
  left: 50%;
  width: 48%;
  transform: translateX(-50%);
}

.welcome-intro { top: 24.5%; width: 40%; }
.welcome-announcement { top: 50.4%; }
.welcome-details { top: 53%; }

.scene--welcome .opening-greeting {
  margin: 0 0 2px;
  font-size: clamp(1.1rem, 5.2vw, 1.45rem);
  line-height: 1;
}

.scene--welcome h1 {
  max-width: none;
  margin: 0 auto;
  width: 78%;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(.9rem, 4vw, 1.05rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.scene--welcome h1 .tone-mark {
  display: inline;
  white-space: nowrap;
}

.scene--welcome .invite-names {
  margin: 12% 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 10.6vw, 2.85rem);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.045em;
  text-shadow: 0 3px 0 rgba(255,255,255,.75), 0 5px 12px rgba(108, 90, 103, .14);
}

.scene--welcome .invite-names span:first-child {
  color: #82bbed;
  -webkit-text-stroke: 1px rgba(73, 145, 205, .18);
}

.scene--welcome .invite-names span:last-child {
  display: block;
  color: #f08daf;
  -webkit-text-stroke: 1px rgba(205, 92, 139, .14);
}

.scene--welcome .invite-names b {
  color: #caa34e;
  font-size: .7em;
  vertical-align: .13em;
}

.scene--welcome .opening-waiting {
  margin: 5% auto 0;
  color: #262331;
  font-family: "Playfair Display", serif;
  font-size: clamp(.64rem, 2.8vw, .78rem);
  font-style: italic;
  line-height: 1.1;
}

.welcome-divider {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 74%;
  margin: 6% auto 0;
  color: #d7aa4d;
  font-size: .68rem;
}

.welcome-divider::before,
.welcome-divider::after {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7aa4d);
  content: "";
}

.welcome-divider::after { background: linear-gradient(90deg, #d7aa4d, transparent); }

.scene--welcome .twins-highlight {
  margin: 0;
  font-size: clamp(1.02rem, 4.8vw, 1.34rem);
  line-height: 1;
}

.scene--welcome .welcome-details .scene-copy,
.scene--welcome .welcome-details .scene-copy + .scene-copy {
  max-width: none;
  margin: 0;
  color: #34313b;
  font-size: clamp(1rem, 3.8vw, 1.08rem);
  line-height: 1.4;
}

.scene--welcome .welcome-details { width: 78%; }
.scene--welcome .welcome-details .scene-copy + .scene-copy { margin-top: 5%; }

.scene--welcome .welcome-details strong { font-weight: 800; }

.scene--welcome .gender-reveal-title {
  position: absolute;
  top: 71.5%;
  right: 0;
  left: 0;
  margin: 0;
  color: transparent;
  background: linear-gradient(90deg, #ed8fb2 8%, #dca957 50%, #9aaee9 92%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 5.6vw, 1.52rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 8px rgba(255,255,255,.45);
}

.scene--welcome .button-row {
  position: absolute;
  right: 0;
  top: 79.5%;
  bottom: auto;
  left: 0;
  z-index: 8;
  margin: 0;
}

.scene--welcome .primary-button {
  min-height: 0;
  padding: 3.7% 6.4%;
  border: 2px solid rgba(255,255,255,.78);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff9fba, #ef7099);
  box-shadow: 0 7px 18px rgba(224, 88, 135, .3), inset 0 1px rgba(255,255,255,.5);
  font-size: clamp(.57rem, 2.45vw, .68rem);
  letter-spacing: .04em;
}

.scene--welcome .primary-button::after {
  margin-left: 5px;
  content: "→";
}

.scene--welcome .welcome-baby-stage {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  height: 18%;
  pointer-events: none;
}

.scene--welcome .welcome-baby-stage[data-asset-status="needs-transparent-character-assets"] {
  display: none;
}

.scene--welcome .welcome-babies {
  bottom: 0;
  width: 26%;
  opacity: 1;
}

.scene--welcome .welcome-babies--girls { left: -2%; }
.scene--welcome .welcome-babies--boys { right: -2%; }

.scene--welcome .sky-cloud--left { top: 8%; left: -9%; }
.scene--welcome .sky-cloud--right { top: 15%; right: -8%; }
.scene--welcome .sky-spark--one { top: 2%; left: 34%; }
.scene--welcome .sky-spark--two { top: 8%; right: 31%; }
.scene--welcome .sky-spark--three { top: 56%; left: 7%; }
.scene--welcome .sky-heart--one { top: 4%; left: 23%; }
.scene--welcome .sky-heart--two { top: 15%; right: 20%; }
.scene--welcome .sky-heart--three { bottom: 20%; left: 28%; }

@media (max-width: 520px) {
  .invite-shell:has(.scene--welcome) { padding: 0; }
  .scene--welcome { width: min(100%, 430px); min-height: 0; padding: 0; }
}

@media (min-width: 521px) {
  .scene--welcome { margin-block: 22px; }
}

/* Scene 01 · exact approved artwork with an accessible HTML CTA */
.invite-shell:has(.scene--welcome) {
  display: grid;
  place-items: start center;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
}

.scene--welcome {
  position: relative;
  display: block;
  width: min(100vw, 512px);
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #fff8f4;
  box-shadow: 0 20px 60px rgba(74, 55, 69, .16);
}

.scene--welcome::before,
.scene--welcome::after {
  display: none;
}

.scene-01-final-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.scene-01-invite-hotspot {
  position: absolute;
  top: 80.2%;
  left: 21.8%;
  z-index: 3;
  width: 56.4%;
  height: 6.5%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: transparent;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.scene-01-invite-hotspot:hover {
  background: rgba(255,255,255,.08);
}

.scene-01-invite-hotspot:focus-visible {
  outline: 3px solid rgba(255,255,255,.95);
  outline-offset: -5px;
  box-shadow: 0 0 0 5px rgba(206, 69, 123, .52);
}

@media (max-width: 520px) {
  .invite-shell:has(.scene--welcome) {
    min-height: 0;
    padding: 0;
  }

  .scene--welcome {
    width: min(100vw, calc(100svh * 2 / 3));
    margin: auto;
  }
}

/* Scene 01 · integrated illustration with live HTML copy */
.invite-page:has(.scene--welcome) {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(244, 190, 207, .46), transparent 32%),
    radial-gradient(circle at 84% 86%, rgba(169, 204, 224, .5), transparent 38%),
    linear-gradient(135deg, #fffaf9, #f8f3f6 58%, #eef6f8);
}

.invite-page:has(.scene--welcome) .invite-shell {
  display: block;
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
}

.invite-page:has(.scene--welcome) .invite-progress {
  top: max(16px, env(safe-area-inset-top, 0px) + 8px);
  z-index: 10;
}

.scene--welcome {
  position: relative;
  display: block;
  width: calc(100% - 20px);
  max-width: none;
  height: calc(100dvh - 20px);
  min-height: calc(100dvh - 20px);
  margin: 10px auto;
  padding: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.72), transparent 33%),
    linear-gradient(145deg, #fff5f7, #fffaf7 52%, #eaf5fa);
  box-shadow: 0 12px 35px rgba(70, 55, 90, .10);
}

.scene--welcome::before,
.scene--welcome::after {
  display: none;
}

.scene-01-integrated-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: inherit;
  -webkit-mask-image: none;
  mask-image: none;
}

.scene-01-reference-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.scene-01-stork-cover {
  position: absolute;
  top: -7%;
  left: 16%;
  z-index: 2;
  width: 68%;
  height: 25%;
  border-radius: 45% 55% 52% 48% / 54% 56% 44% 46%;
  background:
    radial-gradient(ellipse at 50% 66%, rgba(255,255,255,.98), rgba(255,249,250,.94) 54%, transparent 82%),
    radial-gradient(ellipse at 24% 44%, rgba(255,226,236,.82), transparent 68%),
    radial-gradient(ellipse at 78% 36%, rgba(226,241,252,.82), transparent 68%);
  filter: blur(13px);
  pointer-events: none;
}

.scene--welcome .invitation-text-cloud {
  position: absolute;
  top: 14%;
  left: 50%;
  z-index: 4;
  width: min(62%, 390px);
  height: 60%;
  border-radius: 48% 52% 44% 56% / 15% 17% 20% 18%;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 1;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.scene--welcome .invitation-text-cloud::before,
.scene--welcome .invitation-text-cloud::after {
  display: none;
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.66), rgba(255,255,255,.2) 62%, transparent 100%);
  content: "";
  filter: blur(11px);
}

.scene--welcome .invitation-text-cloud::before {
  top: -5%;
  left: -18%;
  width: 136%;
  height: 30%;
}

.scene--welcome .invitation-text-cloud::after {
  right: -16%;
  bottom: -6%;
  left: auto;
  width: 72%;
  height: 38%;
}

.scene--welcome .welcome-intro,
.scene--welcome .welcome-announcement,
.scene--welcome .welcome-details,
.scene--welcome .gender-reveal-title,
.scene--welcome .button-row {
  pointer-events: auto;
}

.scene--welcome .welcome-intro {
  position: absolute;
  top: 3%;
  left: 50%;
  width: 88%;
  transform: translateX(-50%);
}

.scene--welcome .opening-greeting {
  margin: 0 0 2%;
  color: #45394e;
  font-size: clamp(1.05rem, 4.9vw, 1.45rem);
  line-height: 1;
}

.scene--welcome h1 {
  width: 92%;
  max-width: none;
  margin: 0 auto;
  color: #4a3c52;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(.72rem, 3.35vw, 1rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.025em;
}

.scene--welcome h1 .tone-mark {
  white-space: nowrap;
}

.scene--welcome .invite-names {
  margin: 11% 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.65rem, 8.7vw, 2.75rem);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.05em;
  text-shadow: 0 3px 0 rgba(255,255,255,.78), 0 5px 12px rgba(108,90,103,.12);
}

.scene--welcome .invite-names span:first-child {
  color: #82bbed;
  -webkit-text-stroke: 1px rgba(73,145,205,.18);
}

.scene--welcome .invite-names span:last-child {
  display: block;
  color: #f08daf;
  -webkit-text-stroke: 1px rgba(205,92,139,.14);
}

.scene--welcome .invite-names b {
  color: #caa34e;
  font-size: .7em;
  vertical-align: .13em;
}

.scene--welcome .opening-waiting {
  margin: 5% auto 0;
  color: #41384a;
  font-family: "Playfair Display", serif;
  font-size: clamp(.6rem, 2.7vw, .78rem);
  font-style: italic;
  line-height: 1.1;
}

.scene--welcome .welcome-divider {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 72%;
  margin: 5% auto 0;
  color: #d7aa4d;
  font-size: .68rem;
}

.scene--welcome .welcome-divider::before,
.scene--welcome .welcome-divider::after {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7aa4d);
  content: "";
}

.scene--welcome .welcome-divider::after {
  background: linear-gradient(90deg, #d7aa4d, transparent);
}

.scene--welcome .welcome-announcement {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
}

.scene--welcome .twins-highlight {
  margin: 0;
  color: #bc8842;
  font-family: "Playfair Display", serif;
  font-size: clamp(.95rem, 4.55vw, 1.3rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(255,255,255,.8);
}

.scene--welcome .welcome-details {
  position: absolute;
  top: 59%;
  left: 50%;
  width: 78%;
  max-width: 220px;
  transform: translateX(-50%);
}

.scene--welcome .welcome-details .scene-copy,
.scene--welcome .welcome-details .scene-copy + .scene-copy {
  max-width: none;
  margin: 0;
  color: #403846;
  font-size: clamp(.57rem, 2.65vw, .78rem);
  line-height: 1.32;
}

.scene--welcome .welcome-details .scene-copy + .scene-copy {
  margin-top: 5%;
}

.scene--welcome .welcome-details strong {
  font-weight: 800;
}

.scene--welcome .gender-reveal-title {
  position: absolute;
  top: 90%;
  right: 0;
  left: 0;
  margin: 0;
  color: transparent;
  background: linear-gradient(90deg, #ed8fb2 8%, #dca957 50%, #9aaee9 92%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 8px rgba(255,255,255,.45);
}

.scene--welcome .button-row {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 5;
  margin: 0;
  transform: translateY(-16px);
}

.scene--welcome .primary-button {
  width: 58%;
  min-height: 0;
  padding: 2.4% 6%;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff9fba, #ef7099);
  box-shadow: 0 7px 18px rgba(224,88,135,.3), inset 0 1px rgba(255,255,255,.5);
  font-size: clamp(.55rem, 2.35vw, .7rem);
  letter-spacing: .04em;
}

.scene--welcome .primary-button::after {
  margin-left: 5px;
  content: "→";
}

@media (max-width: 520px) {
  .scene--welcome {
    max-width: none;
  }

  .scene--welcome .invitation-text-cloud {
    width: 66%;
  }
}

/* Shared invitation polish for scenes after the opening */
.invite-page:not(:has(.scene--welcome)) .baby-cluster {
  z-index: 2;
  isolation: isolate;
}

.invite-page:not(:has(.scene--welcome)) .baby-cluster::before {
  position: absolute;
  right: -13px;
  bottom: -7px;
  left: -13px;
  z-index: -1;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.9), rgba(255,255,255,.48) 58%, transparent 78%),
    linear-gradient(180deg, rgba(250,226,235,.74), rgba(255,255,255,.08));
  box-shadow: 0 8px 13px rgba(104, 80, 102, .08);
  content: "";
  filter: blur(6px);
}

.invite-page:not(:has(.scene--welcome)) .baby-cluster::after {
  position: absolute;
  right: 4px;
  bottom: -3px;
  left: 9px;
  z-index: -1;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(233,174,190,.24), transparent 70%);
  content: "";
  filter: blur(5px);
}

.invite-page:not(:has(.scene--welcome)) .baby-cluster--boys::before {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.9), rgba(255,255,255,.48) 58%, transparent 78%),
    linear-gradient(180deg, rgba(214,235,244,.8), rgba(255,255,255,.08));
}

.invite-page:not(:has(.scene--welcome)) .baby-cluster--boys::after {
  background: radial-gradient(ellipse, rgba(169,204,224,.28), transparent 70%);
}

.invite-page:not(:has(.scene--welcome)) .baby {
  z-index: 1;
}

.invite-art--prediction {
  z-index: 2;
}

.invite-art--prediction .character {
  opacity: .2;
}

.invite-art--prediction .baby-cluster {
  opacity: .42;
}

.scene--prediction .invite-card {
  position: relative;
  z-index: 1;
  padding-top: clamp(138px, 24vw, 174px);
}

.invite-art--prediction .prediction-art {
  top: 6%;
  z-index: 4;
  width: 190px;
  height: 210px;
  opacity: .96;
  filter: drop-shadow(0 12px 18px rgba(80, 63, 79, .12));
  animation: stork-float 6.8s ease-in-out infinite;
}

.invite-art--prediction .stork {
  width: 100px;
  height: 138px;
  filter: drop-shadow(0 5px 7px rgba(79, 69, 86, .12));
  transform: translateX(-50%) scale(1.16);
  transform-origin: 50% 85%;
}

.invite-art--prediction .stork-head,
.invite-art--prediction .stork-body {
  border: 1px solid rgba(142, 159, 179, .2);
}

.invite-art--prediction .stork-neck {
  filter: drop-shadow(1px 0 rgba(142, 159, 179, .18));
}

.invite-art--prediction .stork-beak,
.invite-art--prediction .stork-head::after {
  background: #dda25b;
}

.invite-art--prediction .stork-body::before {
  position: absolute;
  top: -10px;
  left: 22px;
  width: 52px;
  height: 24px;
  border-radius: 80% 20% 70% 20%;
  border: 1px solid rgba(142, 159, 179, .18);
  background: rgba(255,255,255,.92);
  content: "";
  transform: rotate(-24deg);
  transform-origin: right center;
}

.invite-art--prediction .neutral-babies {
  bottom: 4px;
  gap: 10px;
  transform: translateX(-50%) scale(1.12);
}

.invite-art--prediction .neutral-babies span {
  width: 40px;
  height: 40px;
}

@keyframes stork-float {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1deg); }
  50% { transform: translateX(-50%) translateY(-7px) rotate(1deg); }
}

.invite-page:has(.choice-button.girly.selected) .neutral-babies span::before {
  position: absolute;
  top: -6px;
  left: 5px;
  width: 27px;
  height: 13px;
  border-radius: 80% 20% 70% 20%;
  background: #f3a1bc;
  box-shadow: 13px 0 0 #f3a1bc;
  content: "";
  transform: rotate(-12deg);
}

.invite-page:has(.choice-button.boys.selected) .neutral-babies span::before {
  position: absolute;
  top: -7px;
  left: 2px;
  width: 36px;
  height: 18px;
  border-radius: 50% 50% 18% 18%;
  background: #8fc1e7;
  box-shadow: 0 4px 0 rgba(70,145,198,.18);
  content: "";
}

.scene--result::before,
.scene--result::after,
.scene--confirmation::before,
.scene--confirmation::after,
.scene--declined::before,
.scene--declined::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(12px);
}

.scene--result::before {
  top: 13%;
  left: 50%;
  width: min(78vw, 410px);
  height: 210px;
  background: radial-gradient(ellipse, rgba(249,205,218,.36), transparent 68%);
  transform: translateX(-50%);
}

.scene--result::after {
  right: 4%;
  bottom: 8%;
  width: 180px;
  height: 110px;
  background: radial-gradient(ellipse, rgba(188,220,236,.24), transparent 70%);
}

.scene--result .invite-card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(107,72,89,.14), 0 0 42px rgba(249,205,218,.22);
}

.scene--result .invite-card > * {
  position: relative;
  z-index: 1;
}

.scene--result .result-card--boys {
  box-shadow: 0 24px 70px rgba(107,72,89,.14), 0 0 42px rgba(169,204,224,.26);
}

.scene--result .result-card--boys::before {
  background: radial-gradient(ellipse at center, rgba(190,225,242,.3), transparent 70%);
}

.scene--result .result-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(250,215,226,.3), transparent 70%);
  content: "";
  pointer-events: none;
  animation: result-glow 3.8s ease both;
}

@keyframes result-glow {
  from { opacity: .25; }
  45% { opacity: .9; }
  to { opacity: .55; }
}

.scene--declined::before {
  inset: 8% 10% auto;
  height: 280px;
  background: radial-gradient(ellipse, rgba(211,205,229,.42), transparent 70%);
}

.scene--declined::after {
  right: 4%;
  bottom: 9%;
  width: 220px;
  height: 150px;
  background: radial-gradient(ellipse, rgba(189,185,216,.25), transparent 72%);
}

.scene--declined .invite-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(250,248,253,.78), rgba(242,238,248,.68));
  box-shadow: 0 24px 70px rgba(91,79,111,.13);
}

.scene--confirmation::before {
  top: 6%;
  left: 50%;
  width: min(86vw, 460px);
  height: 250px;
  background: radial-gradient(ellipse, rgba(249,224,185,.28), transparent 70%);
  transform: translateX(-50%);
}

.scene--confirmation::after {
  right: 8%;
  bottom: 9%;
  width: 210px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(244,200,213,.2), transparent 72%);
}

.scene--confirmation .invite-card {
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 70px rgba(107,72,89,.14), 0 0 38px rgba(249,224,185,.2);
}

.scene--rsvp .invite-card,
.scene--attendees .invite-card,
.scene--personal .invite-card {
  box-shadow: 0 24px 70px rgba(107,72,89,.12);
}

@media (prefers-reduced-motion: reduce) {
  .invite-art--prediction .prediction-art,
  .scene--result .result-card::before {
    animation: none;
  }
}