/* 2026 storybook edition: simple structure, saturated colour, mobile first. */
:root {
  --ink: #1e1643;
  --cream: #fff8ea;
  --paper: #fffdf7;
  --pink: #ff477e;
  --red: #f13b49;
  --orange: #ff743d;
  --yellow: #ffd83d;
  --turquoise: #45d8d0;
  --blue: #2457d6;
  --violet: #7547ef;
  --night: #111449;
  --line: 2px solid var(--ink);
  --shadow: 0 18px 48px rgba(30, 22, 67, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero::before,
.hero::after,
.hero-copy::after,
.timeline::before,
.section-heading::before,
.included-title::before,
.wishlist-heading::before,
.photo-ribbon::before,
.rsvp-visual::after,
footer::after { content: none !important; display: none !important; }

.marquee, .hero-orbit, .spark, .quest-photo, .quest-note, .route-map, .photo-quote { display: none !important; }

.topbar {
  position: sticky;
  z-index: 50;
  top: 10px;
  width: min(1120px, calc(100% - 24px));
  height: 68px;
  margin: 10px auto -78px;
  padding: 8px 9px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(30, 22, 67, .1);
  border-radius: 22px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 8px 28px rgba(30, 22, 67, .12);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 900; text-decoration: none; }
.brand a { color: inherit; text-decoration: none; }
.brand-label { white-space: nowrap; }
.brand-star { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); }
.brand-star-secret {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  box-shadow: 0 0 0 0 rgba(255, 216, 61, .55);
  animation: secret-star-glow 2.8s ease-in-out infinite;
}
.brand-star-secret::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .72);
}
.brand-star-secret:focus-visible { outline: 3px solid rgba(117, 71, 239, .45); outline-offset: 3px; }
@keyframes secret-star-glow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 216, 61, .12), 0 0 8px rgba(255, 216, 61, .28); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(255, 216, 61, 0), 0 0 15px rgba(255, 216, 61, .8); }
}
.topbar-rsvp { display: flex; gap: 7px; }
.mini-cta {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--violet);
  color: white;
  font-size: 13px;
  font-weight: 900;
}
.mini-cta-decline { border: 2px solid var(--ink); background: white; color: var(--ink); }

.hero {
  display: block;
  min-height: 0;
  padding: 112px 20px 74px;
  background: var(--pink);
}
.mobile-hero, .hero-poster-mobile { display: none; }
.hero-poster {
  display: block;
  width: min(1180px, 100%);
  margin: 0 auto 26px;
  overflow: hidden;
  border: var(--line);
  border-radius: 30px;
  background: var(--night);
  box-shadow: 8px 9px 0 var(--ink);
}
.hero-poster img { width: 100%; height: auto; }
.hero-poster-desktop { aspect-ratio: 1731 / 909; background: var(--night) url("assets/anyuta-invite-poster.webp") center / cover no-repeat; }
.hero-copy {
  width: min(760px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(30, 22, 67, .12);
  border-radius: 28px;
  background: rgba(255, 253, 247, .97);
  text-align: center;
  box-shadow: 0 15px 38px rgba(10, 12, 55, .2);
  transform: none;
}
.hero-lead { max-width: 620px; margin: 0 auto 24px; font-size: 19px; font-weight: 750; line-height: 1.45; }
.hero-facts { max-width: none; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-facts div,
.hero-facts div:nth-child(n) {
  min-height: 88px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1.5px solid rgba(30, 22, 67, .72);
  border-radius: 21px;
  background: linear-gradient(145deg, #ffe57a, #ffd83d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 5px 12px rgba(30, 22, 67, .08);
  transform: none;
}
.hero-facts div:nth-child(2) { background: linear-gradient(145deg, #e5fbf8, #c9f1ed); }
.hero-facts div:nth-child(3) { background: linear-gradient(145deg, #eee8ff, #ddd0ff); }
.hero-facts small { margin: 0 0 7px; color: #675d82; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-facts strong {
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.18;
}
.fact-detail,
.fact-place span { display: block; }
.fact-detail { margin-top: 3px; color: #6e6485; font-size: .77em; font-weight: 700; }
.fact-place span:first-child { margin-bottom: 2px; color: #6e6485; font-size: .72em; font-weight: 700; }

.button {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary, .button-dark { background: var(--ink); color: white; box-shadow: none; }
.button-soft { border: var(--line); background: white; color: var(--ink); }

.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0;
}
.section-heading, .included-title { max-width: none; margin: 0 0 34px; }
.section h2,
.included-title h2,
.quest-copy h2,
.route h2,
.rsvp-card h2,
.wishlist h2,
footer h2,
.modal h2 {
  margin: 0;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .95;
}
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.program { width: min(1180px, calc(100% - 32px)); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.timeline-card,
.timeline-card:nth-child(n) {
  position: relative;
  min-height: 240px;
  padding: 20px;
  border: var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: none;
  color: var(--ink);
  transform: none;
}
.timeline-card:nth-child(1) { background: var(--yellow); }
.timeline-card:nth-child(2) { background: var(--turquoise); }
.timeline-card:nth-child(3) { background: var(--violet); color: white; }
.timeline-card:nth-child(4) { background: #ff9abd; }
.timeline-card:nth-child(5) { background: var(--orange); }
.timeline-number { position: absolute; top: 15px; right: 16px; opacity: .18; font-size: 36px; font-weight: 900; }
.timeline-card time { display: inline-block; margin: 0 0 64px; padding: 6px 9px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 900; }
.timeline-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.05; }
.timeline-card p { margin: 0; font-size: 13px; line-height: 1.45; }
.after-party {
  margin-top: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 20px;
  background: var(--night);
  color: white;
}
.after-party span { flex: none; padding: 8px 11px; border-radius: 999px; background: var(--pink); font-weight: 900; }
.after-party p { margin: 0; }

.quest-section {
  width: min(1180px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  gap: 26px;
  align-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: var(--night);
  color: white;
  box-shadow: none;
}
.quest-image { height: 560px; overflow: hidden; border-radius: 20px; }
.quest-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.quest-image::after, .quest-tag { display: none; }
.quest-copy { padding: 24px 22px 24px 0; }
.quest-copy h2 { color: var(--yellow); }
.quest-copy > p:not(.eyebrow) { margin: 24px 0 0; color: white; font-size: 18px; line-height: 1.55; }

.included-section { padding-bottom: 72px; }
.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.included-item {
  min-height: 135px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  border: var(--line);
  border-radius: 20px;
}
.included-item span { font-size: 38px; }
.included-item strong { max-width: 155px; font-size: 16px; text-align: right; }
.color-1 { background: #ffb3ca; }
.color-2 { background: #b9eee8; }
.color-3 { background: #ffe779; }
.parents-note {
  margin-top: 12px;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.parents-note strong { flex: none; padding: 8px 11px; border-radius: 999px; background: var(--violet); color: white; }
.parents-note p { margin: 0; line-height: 1.45; }
.parents-list {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}
.parents-list li {
  position: relative;
  min-height: 118px;
  padding: 48px 16px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  font-weight: 800;
  line-height: 1.4;
}
.parents-list li::before {
  content: "✓";
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}
.parents-list li.parents-menu-item {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 18px 20px;
  border-color: rgba(255,71,126,.48);
  background: rgba(255,71,126,.18);
  font-weight: 600;
}
.parents-list li.parents-menu-item::before { content: none; }
.parents-menu-item p { margin: 0; }
.parents-menu-item strong {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--yellow);
  font-weight: 900;
}

.photo-ribbon {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.photo-card,
.photo-card-tall {
  min-height: 0;
  margin: 0;
  padding: 8px;
  overflow: hidden;
  border: var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: none;
  transform: none;
}
.photo-card img { width: 100%; height: 440px; object-fit: cover; border-radius: 16px; }

.route { width: min(1080px, calc(100% - 32px)); padding: 0 0 90px; }
.route-card {
  display: block;
  padding: 46px;
  border: 0;
  border-radius: 28px;
  background: var(--yellow);
  box-shadow: none;
}
.route-copy { max-width: 820px; }
.route h2 { margin-bottom: 22px; }
.route-address { display: inline-block; margin: 0 0 18px; padding: 9px 12px; border-radius: 999px; background: white; font-weight: 900; }
.route-details { display: grid; gap: 12px; }
.route-details > p { margin: 0; line-height: 1.45; }
.route-meeting { display: grid; gap: 5px; padding: 16px 18px; border: 2px solid rgba(27,25,75,.72); border-radius: 18px; background: rgba(255,255,255,.72); }
.route-meeting p { margin: 0; line-height: 1.4; }
.route-meeting span { display: block; margin-bottom: 3px; color: rgba(27,25,75,.64); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.route-meeting strong { display: block; font-size: 21px; }
.route-meeting .route-tickets { display: flex; align-items: center; gap: 9px; margin-top: 7px; padding-top: 11px; border-top: 1px dashed rgba(27,25,75,.34); font-size: 14px; font-weight: 800; }
.route-meeting .route-tickets span { display: grid; place-items: center; width: 26px; height: 26px; margin: 0; flex: none; border-radius: 50%; background: var(--violet); color: white; font-size: 12px; line-height: 1; }
.route-metro { font-size: 15px; }
.route-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.route-actions .button { min-height: 52px; padding: 11px 13px; border-radius: 15px; font-size: 13px; line-height: 1.18; text-align: center; }
.route-button-soft { border: 2px solid var(--ink); background: rgba(255,255,255,.74); color: var(--ink); }

.rsvp-section {
  width: min(1080px, calc(100% - 32px));
  min-height: 0;
  margin: 0 auto 90px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background: var(--pink);
  box-shadow: none;
}
.rsvp-section.is-decline { background: #9a7bf3; }
.rsvp-section.is-unselected { background: linear-gradient(145deg, var(--pink), var(--violet)); }
.rsvp-visual { position: relative; min-height: 660px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 22px; background: var(--yellow); }
.rsvp-visual::before { content: none; }
.rsvp-visual img { position: relative; z-index: 2; width: 96%; max-width: 100%; max-height: 640px; object-fit: contain; filter: none; }
.rsvp-section:not(.is-unselected):not(.is-decline) .rsvp-visual { align-items: center; }
.rsvp-section.is-unselected .rsvp-visual img { width: 100%; }
.is-decline .rsvp-visual img { width: min(82%, 380px); max-height: 540px; align-self: center; }
.rsvp-bubble { position: absolute; z-index: 3; top: 18px; left: 18px; padding: 11px 14px; border: var(--line); border-radius: 13px; background: white; color: var(--ink); font-weight: 900; box-shadow: none; transform: none; }
.rsvp-section.is-unselected .rsvp-bubble { display: none; }
.rsvp-card {
  position: relative;
  z-index: 3;
  padding: 38px;
  scroll-margin-top: 84px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: none;
}
.rsvp-card h2 { margin: 0 0 24px; }
.rsvp-choice-view { min-height: 100%; display: flex; flex-direction: column; justify-content: center; }
.rsvp-choice { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsvp-choice .button { width: 100%; padding-inline: 14px; }
form { display: grid; gap: 16px; }
form > label, fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; font-size: 13px; font-weight: 900; }
form small { opacity: .55; }
input, textarea { width: 100%; border: 2px solid #d9d1df; border-radius: 13px; outline: 0; background: white; color: var(--ink); }
input { height: 52px; padding: 0 14px; }
textarea { padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(117, 71, 239, .13); }
fieldset legend { margin-bottom: 9px; }
.adult-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.adult-options label { position: relative; }
.adult-options input { position: absolute; opacity: 0; pointer-events: none; }
.adult-options span { min-height: 48px; padding: 7px; display: grid; place-items: center; border: 2px solid #d9d1df; border-radius: 12px; text-align: center; font-size: 12px; }
.adult-options input:checked + span { border-color: var(--violet); background: #e9e2ff; color: var(--violet); }
.submit-button { width: 100%; }
.form-error:empty { display: none; }
.privacy-note { margin: 0; color: #70677e; font-size: 11px; line-height: 1.4; text-align: center; }
.form-error { margin: 0; padding: 11px; border-radius: 10px; background: #ffe1e8; color: #a51243; font-size: 12px; font-weight: 800; }
.success-state { min-height: 500px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.success-state > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--turquoise); font-size: 30px; font-weight: 900; }
.success-state h2 { max-width: 520px; }
.success-state img { width: min(100%, 440px); height: auto; max-height: 300px; margin: 16px 0 18px; border-radius: 0; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(34, 20, 70, .18)); }
.is-decline .success-state img { width: 230px; max-height: 260px; }
@media (min-width: 721px) {
  .success-state img { display: none; }
}

.wishlist { padding-top: 0; }
.wishlist-heading { display: block; }
.wishlist-heading p { max-width: 680px; margin: 0; font-weight: 700; }
.wishlist-empty { min-height: 240px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: var(--line); border-radius: 24px; background: #e5d9ff; text-align: center; }
.wishlist-empty span { font-size: 48px; }
.wishlist-empty h3 { margin: 12px 0 0; font-size: 24px; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gift-card { padding: 12px; border: var(--line); border-radius: 20px; background: white; box-shadow: none; }
.gift-image { height: 210px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: #ece6ff; }
.gift-image img { width: 100%; height: 100%; object-fit: cover; }
.gift-image > span { font-size: 58px; }
.gift-image em { top: 8px; left: 8px; padding: 6px 9px; border-radius: 999px; background: var(--turquoise); font-size: 10px; font-style: normal; font-weight: 900; }
.gift-card h3 { margin: 15px 3px 7px; font-size: 18px; }
.gift-card > p { min-height: 40px; margin: 0 3px 10px; font-size: 13px; line-height: 1.4; }
.gift-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; }
.gift-actions button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ink); color: white; font-weight: 900; }

footer {
  margin: 0 12px 12px;
  padding: 58px max(24px, calc((100vw - 1020px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--night);
  color: white;
}
footer h2 { color: var(--yellow); white-space: nowrap; }
.footer-emojis { display: inline-block; font-size: .66em; letter-spacing: .04em; vertical-align: .08em; }
footer p { margin: 14px 0 0; color: white; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(17, 20, 73, .78); backdrop-filter: blur(8px); }
.modal { position: relative; width: min(500px, 100%); max-height: calc(100vh - 36px); padding: 30px; overflow-y: auto; border-radius: 24px; background: white; }
.modal-close { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eee9f2; font-size: 26px; }
.modal-gift { display: inline-block; margin-bottom: 14px; font-size: 45px; }

@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline-card, .timeline-card:nth-child(n) { min-height: 190px; }
  .timeline-card time { margin-bottom: 38px; }
  .quest-section { grid-template-columns: 1fr; }
  .quest-image { height: 480px; }
  .quest-copy { padding: 20px; }
  .included-grid { grid-template-columns: repeat(2, 1fr); }
  .rsvp-section { grid-template-columns: 1fr; }
  .rsvp-visual { min-height: 520px; }
  .gift-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .topbar {
    top: 7px;
    width: calc(100% - 14px);
    height: 60px;
    margin: 7px auto -67px;
    padding: 6px 7px 6px 10px;
    border-radius: 18px;
  }
  .brand { gap: 7px; font-size: 13px; }
  .brand-star { width: 30px; height: 30px; }
  .brand-star.brand-star-secret { width: 44px; height: 44px; }
  .topbar-rsvp { gap: 5px; }
  .mini-cta { min-height: 40px; padding: 0 11px; border-radius: 12px; font-size: 11px; white-space: nowrap; }

  .hero { padding: 80px 7px 40px; background: var(--pink); }
  .hero-poster { display: none; }
  .mobile-hero {
    position: relative;
    display: block;
    width: 100%;
    height: calc(100svh - 94px);
    min-height: 640px;
    max-height: 820px;
    margin: 0 0 16px;
    overflow: hidden;
    border: var(--line);
    border-radius: 24px;
    background: var(--night);
    box-shadow: 5px 6px 0 var(--ink);
  }
  .mobile-hero::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 54, .18), transparent 45%, rgba(8, 12, 54, .3)); }
  .mobile-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .mobile-hero-copy { position: absolute; z-index: 4; top: 6%; left: 6%; right: 5%; color: white; }
  .mobile-hero-copy p { display: none; }
  .mobile-hero-title { color: #fff8dd; font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif; font-size: clamp(52px, 17vw, 74px); font-weight: 900; letter-spacing: -.07em; line-height: .8; }
  .mobile-hero-title span { color: #ff5f9b; font-size: .61em; letter-spacing: -.04em; }
  .mobile-hero-copy > strong { display: block; width: max-content; max-width: 88%; margin-top: 12px; padding: 8px 11px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-family: Georgia, serif; font-size: clamp(18px, 5.5vw, 24px); line-height: 1; }
  .mobile-hero-anyuta { position: absolute; z-index: 3; right: -13%; bottom: -3%; width: 78%; height: 70%; object-fit: contain; object-position: right bottom; filter: drop-shadow(-10px 14px 13px rgba(6, 8, 35, .4)); }
  .mobile-hero-date { position: absolute; z-index: 5; left: 5%; bottom: 4%; width: 49%; padding: 11px 12px; border: 2px solid white; border-radius: 13px; background: rgba(117, 71, 239, .92); color: white; box-shadow: 3px 4px 0 var(--pink); }
  .mobile-hero-date b, .mobile-hero-date span { display: block; }
  .mobile-hero-date b { color: var(--yellow); font-size: 17px; }
  .mobile-hero-date span { margin-top: 3px; font-size: 10px; font-weight: 800; line-height: 1.25; }
  .mobile-hero-age { position: absolute; z-index: 5; top: 32%; right: 5%; display: grid; place-content: center; width: 66px; height: 66px; border: var(--line); border-radius: 50%; background: var(--yellow); box-shadow: 3px 4px 0 var(--pink); font-size: 31px; font-weight: 900; line-height: .62; text-align: center; }
  .mobile-hero-age small { font-size: 10px; text-transform: uppercase; }

  .hero-copy { width: 100%; padding: 15px; border-radius: 22px; text-align: left; box-shadow: 0 12px 28px rgba(10, 12, 55, .22); }
  .hero-lead { margin: 0 0 16px; font-size: 16px; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .hero-facts div, .hero-facts div:nth-child(n) { min-height: 92px; padding: 10px 7px; border-radius: 17px; text-align: center; }
  .hero-facts small { font-size: 8px; }
  .hero-facts strong { font-size: 12px; }

  .section { width: calc(100% - 20px); padding: 64px 0; }
  .section h2, .included-title h2, .quest-copy h2, .route h2, .rsvp-card h2, .wishlist h2, footer h2 { font-size: clamp(40px, 13vw, 58px); }
  .section-heading, .included-title { margin-bottom: 24px; }
  .timeline { grid-template-columns: 1fr; gap: 7px; }
  .timeline-card, .timeline-card:nth-child(n) { min-height: 145px; padding: 17px; border-radius: 18px; }
  .timeline-card time { margin-bottom: 28px; }
  .timeline-card h3 { font-size: 19px; }
  .after-party { margin-top: 7px; padding: 16px; gap: 11px; border-radius: 17px; font-size: 13px; }

  .quest-section { width: calc(100% - 14px); padding: 7px 7px 24px; gap: 8px; border-radius: 24px; }
  .quest-image { height: 430px; border-radius: 18px; }
  .quest-copy { padding: 18px 12px 4px; }
  .quest-copy > p:not(.eyebrow) { margin-top: 16px; font-size: 16px; }

  .included-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .included-item { min-height: 122px; padding: 14px; flex-direction: column; align-items: flex-start; border-radius: 17px; }
  .included-item span { font-size: 31px; }
  .included-item strong { max-width: none; font-size: 14px; text-align: left; }
  .parents-note { padding: 15px; align-items: flex-start; gap: 10px; border-radius: 17px; font-size: 13px; }

  .photo-ribbon { width: calc(100% - 20px); margin-bottom: 64px; gap: 7px; }
  .photo-card, .photo-card-tall { padding: 5px; border-radius: 17px; }
  .photo-card img { height: 250px; border-radius: 11px; }

  .route { width: calc(100% - 20px); padding-bottom: 64px; }
  .route-card { padding: 26px 20px; border-radius: 22px; }
  .route-actions { grid-template-columns: 1fr; gap: 9px; }
  .route-actions .button { width: 100%; min-height: 50px; }

  .rsvp-section { width: calc(100% - 14px); margin-bottom: 64px; padding: 7px; border-radius: 24px; }
  .rsvp-visual { display: none; }
  .rsvp-card { padding: 27px 17px; border-radius: 18px; }
  .adult-options { grid-template-columns: 1fr; }
  .success-state { min-height: 420px; }

  .wishlist-heading { display: block; }
  .wishlist-heading p { margin-top: 0; }
  .gift-grid { grid-template-columns: 1fr; }

  footer { margin: 0 7px 7px; padding: 42px 22px; grid-template-columns: 1fr; border-radius: 22px; }
  footer h2 { font-size: clamp(31px, 9.5vw, 41px); line-height: 1.05; }
  footer .button { width: 100%; }
  .modal { padding: 26px 18px; border-radius: 20px; }
}

/* Celebration experience: clearer facts, countdown, scroll path and RSVP ticket. */
.hero-facts .fact-card {
  position: relative;
  min-height: 104px;
  padding: 15px 16px 15px 62px;
  align-items: flex-start;
  text-align: left;
}
.fact-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30,22,67,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  font-size: 18px;
  transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(30,22,67,.08);
}
.hero-facts .fact-card small { margin-bottom: 4px; }
.hero-facts .fact-main,
.hero-facts .fact-place .fact-main {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 950;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.hero-facts .fact-detail,
.hero-facts .fact-place .fact-detail {
  display: block;
  margin-top: 6px;
  color: #655b7b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .02em;
  line-height: 1.15;
  text-transform: uppercase;
}
.countdown {
  margin-top: 14px;
  padding: 14px 16px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(17,20,73,.97), rgba(58,34,116,.97));
  color: white;
  box-shadow: 0 10px 24px rgba(13,14,62,.16);
}
.countdown > p { margin: 0 0 10px; color: #fff2ad; font-size: 11px; font-weight: 900; letter-spacing: .09em; text-align: center; text-transform: uppercase; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.countdown-grid span { min-width: 0; padding: 8px 5px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: rgba(255,255,255,.08); text-align: center; }
.countdown-grid strong { display: block; color: white; font-size: 20px; line-height: 1; }
.countdown-grid small { display: block; margin-top: 5px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; }

.magic-intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #322476 0%, #111449 62%, #080a32 100%);
  color: white;
  opacity: 1;
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1) 1.55s;
}
.magic-intro-active { overflow: hidden; overscroll-behavior: none; touch-action: none; }
.magic-intro[hidden] { display: none; }
.magic-intro-copy { position: absolute; z-index: 5; top: 10%; left: 20px; right: 20px; text-align: center; transition: opacity .68s ease 1.02s, transform .78s ease 1s; }
.magic-intro-copy span { display: inline-block; color: var(--yellow); font-size: 25px; }
.magic-intro-copy p { margin: 7px 0 0; color: #fff6d3; font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-size: clamp(23px, 4vw, 38px); font-weight: 900; }
.magic-door-stage { position: relative; width: min(320px, 76vw); height: min(460px, 60vh); perspective: 1200px; transform: scale(1); transform-origin: 50% 54%; transition: transform 1.75s cubic-bezier(.37,0,.63,1) 1.05s, opacity 1.15s ease 1.44s; will-change: transform, opacity; }
.magic-door-light { position: absolute; inset: 7% 5% 2%; border-radius: 44% 44% 18% 18%; background: radial-gradient(circle at 50% 45%, white 0 7%, #fff1a4 23%, #ff7cad 54%, transparent 72%); opacity: .08; filter: blur(12px); transform: scale(.78); transition: opacity .9s ease .28s, transform 1.15s cubic-bezier(.4,0,.2,1) .26s; }
.magic-door-frame { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 72%; height: 88%; border: 15px solid #ffcc59; border-bottom-width: 10px; border-radius: 48% 48% 12px 12px / 22% 22% 12px 12px; background: #fff1a4; box-shadow: 0 0 0 6px #7c3e9d, 0 0 44px rgba(255,216,61,.55), inset 0 0 30px rgba(255,255,255,.8); transform: translateX(-50%); }
.magic-door-portal { position: absolute; z-index: 0; inset: 0; overflow: hidden; border-radius: 37% 37% 2px 2px / 15% 15% 2px 2px; background: linear-gradient(180deg, rgba(22,14,73,.02), rgba(22,14,73,.16)), url("assets/anyuta-intro.webp") center top / cover no-repeat; opacity: .24; transform: scale(.98); transition: opacity .82s ease .34s, transform 1.12s cubic-bezier(.4,0,.2,1) .3s; will-change: transform, opacity; }
.magic-door-portal::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, transparent 28%, rgba(255,227,116,.3) 100%); }
.magic-door { position: absolute; inset: 0; overflow: hidden; border: 4px solid #39175c; border-radius: 42% 42% 5px 5px / 18% 18% 5px 5px; background: linear-gradient(90deg, #5e235d, #9b3f72 50%, #4a1b58); transform: rotateY(0); transform-origin: left center; transition: transform 1.2s cubic-bezier(.4,0,.2,1) .18s; backface-visibility: hidden; box-shadow: inset -18px 0 24px rgba(18,8,49,.34); }
.magic-door::before { content: ""; position: absolute; inset: 12% 14%; border: 2px solid rgba(255,215,102,.62); border-radius: 42% 42% 8px 8px / 18% 18% 8px 8px; }
.magic-door-star { position: absolute; top: 25%; left: 50%; color: var(--yellow); font-size: 50px; transform: translateX(-50%); text-shadow: 0 0 22px rgba(255,216,61,.9); }
.magic-door-handle { position: absolute; right: 12%; top: 54%; width: 18px; height: 18px; border: 4px solid #fff0a6; border-radius: 50%; box-shadow: 0 0 12px rgba(255,239,157,.85); }
.magic-spark { position: absolute; z-index: 4; color: var(--yellow); font-style: normal; opacity: .24; transition: opacity .9s ease .38s, transform 1.15s cubic-bezier(.4,0,.2,1) .34s; }
.magic-spark-one { left: 0; top: 26%; font-size: 34px; }
.magic-spark-two { right: -2%; top: 43%; font-size: 24px; }
.magic-spark-three { right: 13%; bottom: 4%; font-size: 42px; }
.magic-intro.is-opening { opacity: 0; pointer-events: none; }
.magic-intro.is-opening .magic-door { transform: rotateY(-112deg); }
.magic-intro.is-opening .magic-door-portal { opacity: 1; transform: scale(1.02); }
.magic-intro.is-opening .magic-door-stage { opacity: 0; transform: scale(3.85); }
.magic-intro.is-opening .magic-door-light { opacity: .52; transform: scale(1.16); }
.magic-intro.is-opening .magic-spark { opacity: .62; transform: translateY(-10px) rotate(14deg) scale(1.06); }
.magic-intro.is-opening .magic-intro-copy { opacity: 0; transform: translateY(-6px); }

.success-state { position: relative; }
.confetti { position: absolute; z-index: 7; inset: -34px -22px auto; height: 250px; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -24px; left: var(--confetti-x); width: 8px; height: 16px; border-radius: 2px; background: var(--confetti-color); opacity: 0; animation: confetti-fall 1.55s cubic-bezier(.2,.72,.28,1) var(--confetti-delay) 1 forwards; }
@keyframes confetti-fall { 0% { opacity: 1; transform: translateY(-20px) rotate(0); } 78% { opacity: 1; } 100% { opacity: 0; transform: translateY(260px) rotate(var(--confetti-turn)); } }
.magic-ticket {
  position: relative;
  width: min(100%, 420px);
  margin: 15px auto 14px;
  padding: 17px 28px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff6c8, #ffd95c 56%, #ffb6d2);
  color: var(--ink);
  box-shadow: 5px 6px 0 rgba(30,22,67,.18);
  transform: rotate(-1deg);
}
.magic-ticket::before,
.magic-ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); transform: translateY(-50%); }
.magic-ticket::before { left: -13px; }
.magic-ticket::after { right: -13px; }
.magic-ticket span,
.magic-ticket strong,
.magic-ticket small { display: block; }
.magic-ticket span { color: #684294; font-size: 10px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.magic-ticket strong { margin: 8px 0 7px; font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-size: clamp(24px, 5vw, 34px); line-height: 1; }
.magic-ticket small { margin-top: 3px; font-size: 11px; font-weight: 800; }
.calendar-block { width: min(100%, 420px); margin: 0 auto 10px; }
.calendar-block > p { margin: 0 0 9px; color: #6a6078; font-size: 11px; font-weight: 850; }
.calendar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.calendar-button { min-height: 44px; padding: 8px 12px; border: 1.5px solid rgba(30,22,67,.24); border-radius: 13px; background: white; color: var(--ink); font-size: 12px; box-shadow: none; }
.rsvp-section.is-decline .magic-ticket,
.rsvp-section.is-decline .calendar-block,
.rsvp-section.is-decline .confetti { display: none; }
.rsvp-section.is-submitted:not(.is-decline) .success-state > img { display: none; }

@media (max-width: 720px) {
  .topbar,
  .journey > .section,
  .journey > .quest-section,
  .journey > .photo-ribbon,
  .journey > .rsvp-section,
  .wishlist-page-catalog,
  footer { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .journey::before { filter: none; }
  .brand-star-secret { animation: none; }
  .hero-facts .fact-card,
  .hero-facts .fact-card:nth-child(n) { min-height: 120px; padding: 47px 5px 9px; align-items: center; text-align: center; }
  .fact-icon { left: 50%; top: 10px; width: 30px; height: 30px; font-size: 15px; transform: translateX(-50%); }
  .hero-facts .fact-card small { margin-bottom: 5px; }
  .hero-facts .fact-main,
  .hero-facts .fact-place .fact-main { font-size: clamp(13px, 4vw, 16px); line-height: 1.08; }
  .hero-facts .fact-detail,
  .hero-facts .fact-place .fact-detail { margin-top: 5px; font-size: 8px; line-height: 1.18; }
  .countdown { margin-top: 9px; padding: 12px 10px 13px; border-radius: 17px; }
  .countdown-grid { gap: 5px; }
  .countdown-grid span { padding: 7px 2px; border-radius: 10px; }
  .countdown-grid strong { font-size: 17px; }
  .countdown-grid small { font-size: 8px; }
  .magic-intro-copy { top: 8%; }
  .magic-door-stage { height: min(450px, 62vh); transition: transform 1.9s cubic-bezier(.33,.01,.25,1) .9s, opacity .95s ease 1.67s; }
  .magic-intro.is-opening .magic-door-stage { transform: scale(3.2); }
  .magic-door-light { filter: blur(7px); }
  .magic-ticket { padding-inline: 24px; }
  .calendar-actions { grid-template-columns: 1fr; }
  .calendar-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .magic-door,
  .magic-door-light,
  .magic-spark,
  .magic-intro-copy,
  .confetti { display: none !important; }
}

@media (max-width: 360px) {
  .brand-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
/* Wishlist entry and dedicated gift page */
.wishlist-cta {
  min-width: 250px;
  justify-self: start;
  border: 2px solid rgba(255,255,255,.75);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 5px 6px 0 var(--pink);
}
.wishlist-cta span { font-size: 22px; line-height: 1; }

.wishlist-page-main {
  min-height: 100vh;
  padding: 20px max(14px, calc((100vw - 1080px) / 2)) 72px;
}
.wishlist-page-topbar {
  position: relative;
  z-index: 3;
  min-height: 68px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(30,22,67,.1);
  border-radius: 22px;
  background: rgba(255,253,247,.96);
  box-shadow: 0 10px 30px rgba(6,8,40,.24);
}
.wishlist-back {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  background: var(--violet);
  color: white;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.wishlist-page-hero {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  padding: 54px clamp(24px, 7vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(117,71,239,.94), rgba(255,71,126,.9));
  color: white;
  box-shadow: 0 24px 60px rgba(5,7,36,.32);
}
.wishlist-page-hero::after {
  content: "🎁";
  position: absolute;
  right: clamp(20px, 6vw, 70px);
  bottom: -18px;
  font-size: clamp(90px, 16vw, 170px);
  line-height: 1;
  opacity: .18;
  transform: rotate(8deg);
}
.wishlist-page-hero .eyebrow { color: var(--yellow); }
.wishlist-page-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: #fff6d3;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(48px, 8vw, 90px);
  letter-spacing: -.06em;
  line-height: .95;
}
.wishlist-page-hero > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}
.wishlist-page-catalog {
  position: relative;
  z-index: 2;
  min-height: 280px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 28px;
  background: rgba(17,20,73,.82);
  box-shadow: 0 20px 52px rgba(5,7,36,.28);
  backdrop-filter: blur(16px);
}
.wishlist-page-catalog .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wishlist-page-catalog .gift-card { padding: 14px; display: flex; flex-direction: column; border: 0; border-radius: 22px; box-shadow: 0 12px 30px rgba(5,7,36,.2); }
.wishlist-page-catalog .gift-image { height: auto; min-height: 160px; }
.wishlist-page-catalog .gift-image img { width: 100%; height: auto; display: block; object-fit: contain; }
.wishlist-page-catalog .gift-card.reserved { opacity: .72; }
.wishlist-page-catalog .gift-card.reserved.owned { opacity: 1; outline: 3px solid var(--pink); outline-offset: -3px; }
.wishlist-page-catalog .gift-card h2 { margin: 17px 4px 8px; font-size: 20px; line-height: 1.15; }
.wishlist-page-catalog .gift-card > p { min-height: 42px; margin: 0 4px 12px; flex: 1; font-size: 14px; line-height: 1.45; }
.wishlist-page-catalog .gift-card > strong { margin: 0 4px; }
.wishlist-page-catalog .gift-actions { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; }
.wishlist-page-catalog .gift-actions a { min-height: 44px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; border: 2px solid #6f43ed; border-radius: 11px; font-size: 12px; font-weight: 900; text-align: center; }
.wishlist-page-catalog .gift-actions button:disabled { background: #9b91a8; cursor: default; }
.wishlist-page-catalog .gift-actions .own-reservation { background: var(--pink); }
.wishlist-page-status,
.wishlist-page-empty {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.wishlist-page-status span,
.wishlist-page-empty span { color: var(--yellow); font-size: 58px; }
.wishlist-page-status p { margin: 14px 0 0; font-weight: 800; }
.wishlist-page-empty p { max-width: 440px; margin: 14px 0 0; font-weight: 800; }
.wishlist-page-error p { max-width: 440px; color: #ffd9e5; }
.gift-success { display: grid; gap: 18px; }
.gift-success p { margin: 0; font-weight: 800; line-height: 1.5; }
.modal-gift-photo {
  width: 88px;
  height: 66px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #ece6ff;
}
.modal-gift-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-gift-photo span { font-size: 42px; }
.gift-release { display: grid; gap: 16px; }
.gift-release > p:first-child { margin: 0; font-weight: 750; line-height: 1.5; }
.gift-release-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.gift-release-actions .button { min-height: 48px; }

@media (max-width: 720px) {
  .wishlist-cta { width: 100%; margin-top: 20px; }
  .wishlist-page-main { padding: 8px 7px 36px; }
  .wishlist-page-topbar { min-height: 62px; padding-left: 12px; border-radius: 18px; }
  .wishlist-back { padding: 0 12px; font-size: 12px; }
  .wishlist-page-hero { margin-top: 8px; padding: 42px 20px 46px; border-radius: 22px; }
  .wishlist-page-hero h1 { font-size: clamp(47px, 15vw, 68px); }
  .wishlist-page-hero > p:last-child { margin-top: 19px; font-size: 15px; }
  .wishlist-page-hero::after { right: -10px; bottom: -8px; font-size: 112px; }
  .wishlist-page-catalog { min-height: 230px; margin-top: 8px; padding: 10px; border-radius: 20px; }
  .wishlist-page-catalog .gift-grid { grid-template-columns: 1fr; gap: 9px; }
  .wishlist-page-catalog .gift-image { height: auto; min-height: 0; }
  .wishlist-page-catalog .gift-actions a,
  .wishlist-page-catalog .gift-actions button { min-height: 46px; display: flex; align-items: center; justify-content: center; }
  .gift-release-actions { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .wishlist-page-catalog .gift-actions { grid-template-columns: 1fr; }
}


/* Immersive quest-path composition */
body { background: var(--night); }
main { position: relative; isolation: isolate; min-height: 100vh; }
main::before {
  content: "";
  position: fixed;
  z-index: -3;
  inset: 0;
  background: url("assets/mystic-park.webp") center / cover no-repeat;
}
main::after {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 55, .2) 0%, rgba(10, 12, 55, .78) 26%, rgba(10, 12, 55, .9) 100%);
}

.topbar { border-color: rgba(255,255,255,.25); }
.hero { padding-bottom: 86px; background: transparent; }
.hero-copy { background: rgba(255,253,247,.96); }
.hero-facts div, .hero-facts div:nth-child(n) { min-height: 82px; }

.journey {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 110px 0 70px;
}
.journey::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  border-radius: 999px;
  background: repeating-linear-gradient(to bottom, #ffe15a 0 13px, transparent 13px 27px);
  filter: drop-shadow(0 0 7px #ffb22e) drop-shadow(0 0 18px rgba(255,216,61,.55));
  transform: translateX(-50%);
}

.journey > .section,
.journey > .quest-section,
.journey > .photo-ribbon,
.journey > .rsvp-section {
  position: relative;
  width: min(780px, calc(100% - 44px));
  margin: 0 auto 92px;
  padding: 38px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(26,24,90,.88), rgba(11,15,62,.84));
  color: white;
  box-shadow: 0 26px 80px rgba(5,7,36,.34), inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
}
.journey > .program,
.journey > .included-section,
.journey > .route,
.journey > .wishlist { transform: translateX(-13%); }
.journey > .quest-section,
.journey > .rsvp-section { transform: translateX(13%); }

.journey > .program::before,
.journey > .quest-section::before,
.journey > .included-section::before,
.journey > .route::before,
.journey > .rsvp-section::before,
.journey > .wishlist::before {
  position: absolute;
  z-index: 5;
  top: -24px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 0 7px rgba(255,216,61,.18), 0 0 24px rgba(255,216,61,.65);
  font-size: 13px;
  font-weight: 950;
  transform: translateX(-50%);
}
.journey > .program::before { content: "01"; }
.journey > .included-section::before { content: "02"; }
.journey > .route::before { content: "03"; }
.journey > .rsvp-section::before { content: "04"; }
.journey > .wishlist::before { content: "05"; }

.journey .section-heading,
.journey .included-title { margin-bottom: 30px; }
.journey .section h2,
.journey .included-title h2,
.journey .quest-copy h2,
.journey .wishlist h2 { color: #fff6d3; }

.journey .timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.journey .timeline-card,
.journey .timeline-card:nth-child(n) {
  min-height: 0;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 17px;
  background: rgba(255,255,255,.09);
  color: white;
  transform: none;
}
.journey .timeline-card:nth-child(1) { background: rgba(255,216,61,.2); }
.journey .timeline-card:nth-child(3) { background: rgba(255,71,126,.22); }
.journey .timeline-number { display: none; }
.journey .timeline-card time { margin: 0; border-color: var(--yellow); color: var(--yellow); text-align: center; }
.journey .timeline-card h3,
.journey .timeline-card p { margin: 0; }
.journey .timeline-copy { min-width: 0; }
.journey .timeline-card p { margin-top: 7px; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.42; }
.journey > .program { padding-top: 58px; }
.journey .program-orb {
  position: absolute;
  z-index: 4;
  top: -56px;
  right: -26px;
  width: 150px;
  height: 150px;
  margin: 0;
  overflow: hidden;
  border: 6px solid #fff6d3;
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 10px 28px rgba(5,7,36,.38), 0 0 0 7px rgba(255,216,61,.18);
  transform: rotate(6deg);
}
.journey .program-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.journey .after-party { margin-top: 8px; background: rgba(255,116,61,.2); border: 1px solid rgba(255,151,94,.4); }

.journey > .quest-section {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 28px;
}
.journey .quest-image { height: 430px; margin: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; }
.journey .quest-copy { padding: 0; }
.journey .quest-copy > p:not(.eyebrow) { max-width: 600px; color: rgba(255,255,255,.8); }

.journey .included-grid { grid-template-columns: repeat(3,1fr); }
.journey .included-item {
  min-height: 130px;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--ink);
}
.journey .parents-note {
  border: 0;
  background: transparent;
  color: white;
}

.journey > .photo-ribbon {
  padding: 10px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(11,15,62,.48);
  transform: none;
}
.journey .photo-card,
.journey .photo-card-tall { border: 0; background: transparent; }
.journey .photo-card img { height: 360px; }

.journey > .route { padding: 12px; }
.journey .route-card {
  padding: 36px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffe26b, #ffaf45);
  color: var(--ink);
}
.journey .route h2 { color: var(--ink); }
.journey .route-address { background: rgba(255,255,255,.7); }

.journey > .rsvp-section { display: grid; padding: 12px; overflow: visible; background: linear-gradient(145deg, rgba(255,71,126,.88), rgba(117,71,239,.85)); }
.journey .rsvp-visual { min-height: 560px; }
.journey .rsvp-card { padding: 34px; color: var(--ink); }

.journey > .wishlist { padding: 38px; }
.journey .wishlist-heading { width: 100%; text-align: center; }
.journey .wishlist-heading p {
  width: min(100%, 650px);
  margin: 0 auto;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}
.journey .wishlist-empty { border-color: rgba(255,255,255,.3); background: rgba(229,217,255,.92); color: var(--ink); }

footer {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(8,12,50,.9);
  backdrop-filter: blur(16px);
}

@media (max-width: 900px) {
  .journey > .program,
  .journey > .included-section,
  .journey > .route,
  .journey > .wishlist,
  .journey > .quest-section,
  .journey > .rsvp-section { transform: none; }
}

@media (max-width: 720px) {
  main::before { background-image: url("assets/mystic-park.webp"); background-position: center top; }
  main::after { background: linear-gradient(180deg, rgba(8,10,52,.08) 0%, rgba(8,10,52,.72) 22%, rgba(8,10,52,.92) 100%); }
  .hero { padding: 80px 7px 28px; }
  .mobile-hero { display: none; }
  .hero-poster-desktop { display: none; }
  .hero-poster-mobile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 941 / 1672;
    margin-bottom: 14px;
    overflow: hidden;
    border: var(--line);
    border-radius: 18px;
    background: var(--night);
    box-shadow: 0 12px 28px rgba(10, 12, 55, .22);
  }
  .hero-poster-mobile-poster { width: 100%; height: 100%; object-fit: cover; }
  .hero-poster-mobile-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-poster-mobile-sign {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 44%, rgba(0,0,0,.98) 47%, transparent 57%);
    mask-image: linear-gradient(to bottom, #000 0 44%, rgba(0,0,0,.98) 47%, transparent 57%);
  }
  .hero-poster-mobile-anyuta {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 1%;
    width: auto;
    max-width: none;
    height: 58%;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(-5px 8px 10px rgba(6,8,35,.32));
  }
  .hero-copy {
    display: block;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 4px 5px 0 var(--ink);
  }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-facts div,
  .hero-facts div:nth-child(n) { min-height: 88px; padding: 9px 5px; }
  .hero-facts small { font-size: 8px; }
  .hero-facts strong { font-size: 11px; }

  .journey { width: 100%; padding: 90px 0 36px; }
  .journey::before { left: 24px; width: 5px; transform: none; }
  .journey > .section,
  .journey > .quest-section,
  .journey > .photo-ribbon,
  .journey > .rsvp-section {
    width: calc(100% - 48px);
    margin: 0 10px 72px 38px;
    padding: 24px 18px;
    border-radius: 24px;
    transform: none;
  }
  .journey > .program::before,
  .journey > .quest-section::before,
  .journey > .included-section::before,
  .journey > .route::before,
  .journey > .rsvp-section::before,
  .journey > .wishlist::before {
    top: 28px;
    left: -35px;
    width: 42px;
    height: 42px;
    transform: none;
  }
  .journey .section h2,
  .journey .included-title h2,
  .journey .quest-copy h2,
  .journey .wishlist h2 { font-size: clamp(34px,10.5vw,46px); line-height: 1; }

  .journey .timeline-card,
  .journey .timeline-card:nth-child(n) {
    padding: 14px;
    display: block;
    border-radius: 15px;
  }
  .journey .timeline-card time { margin-bottom: 18px; }
  .journey .timeline-card h3 { margin-bottom: 7px; }
  .journey > .program { padding-top: 56px; }
  .journey .program-orb {
    top: -90px;
    right: 4px;
    width: 150px;
    height: 150px;
    border-width: 4px;
  }

  .journey > .quest-section { display: block; padding: 7px 7px 22px; }
  .journey .quest-image { display: block; height: 355px; margin: 0 0 18px; border-radius: 18px; }
  .journey .quest-copy { padding: 8px 14px 5px; }

  .journey .included-grid { grid-template-columns: repeat(2,1fr); }
  .journey .included-item { min-height: 112px; }
  .journey .parents-note { display: block; padding: 0; }
  .journey .parents-note strong { display: inline-block; margin-bottom: 10px; }
  .journey .parents-list { grid-template-columns: 1fr; }
  .journey .parents-list li { min-height: 0; padding: 16px 16px 16px 52px; }
  .journey .parents-list li::before { top: 50%; transform: translateY(-50%); }
  .journey .parents-list li.parents-menu-item { padding: 16px; font-size: 13px; }
  .journey .parents-list .parents-menu-item strong { display: inline; margin: 0; padding: 0; background: transparent; color: var(--yellow); }

  .journey > .photo-ribbon { padding: 6px; gap: 5px; }
  .journey .photo-card img { height: 235px; }

  .journey > .route { padding: 7px; }
  .journey .route-card { padding: 26px 18px; }

  .journey > .rsvp-section { padding: 7px; gap: 7px; overflow: visible; }
  .journey .rsvp-visual { min-height: 390px; border-radius: 18px; }
  .journey .rsvp-visual img { max-height: 390px; }
  .journey .rsvp-bubble { top: 14px; left: 14px; }
  .journey .rsvp-card { padding: 24px 18px; border-radius: 18px; }
  .journey .rsvp-card h2 { margin-bottom: 18px; font-size: clamp(36px, 10vw, 44px); line-height: 1.03; }
  .journey .success-state { min-height: 0; padding: 8px 0 4px; }
  .journey .success-state > span { width: 50px; height: 50px; margin-bottom: 12px; font-size: 24px; }
  .journey .success-state h2 { max-width: 330px; margin-bottom: 12px; font-size: clamp(29px, 8.5vw, 36px); line-height: 1.02; }
  .journey .success-state p { max-width: 310px; margin: 0; font-size: 13px; line-height: 1.4; }
  .journey .success-state img { width: min(78%, 290px); max-height: 210px; margin: 10px 0 12px; }
  .journey .is-decline .success-state img { width: 150px; max-height: 180px; }
  .journey .success-state .button { min-height: 48px; padding: 0 20px; font-size: 14px; }
  .journey .rsvp-choice-view { min-height: 220px; }
  .journey .rsvp-choice { margin-top: 18px; gap: 8px; }
  .journey .rsvp-choice .button { min-height: 52px; padding-inline: 9px; font-size: 14px; }
  .journey > .wishlist { padding: 24px 18px; }

  footer { margin-top: 0; }
}
@media (min-width: 721px) {
  .journey > .rsvp-section.is-submitted {
    width: min(620px, calc(100% - 40px));
    min-height: 0;
    margin: 0 auto 120px;
    padding: 7px;
    display: block;
    transform: none;
  }
  .journey .rsvp-section.is-submitted .rsvp-visual { display: none; }
  .journey .rsvp-section.is-submitted .rsvp-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 18px;
    border-radius: 18px;
  }
  .journey .rsvp-section.is-submitted .success-state { min-height: 0; padding: 8px 0 4px; }
  .journey .rsvp-section.is-submitted .success-state > span { width: 50px; height: 50px; margin-bottom: 12px; font-size: 24px; }
  .journey .rsvp-section.is-submitted .success-state h2 { max-width: 330px; margin-bottom: 12px; font-size: 36px; line-height: 1.02; }
  .journey .rsvp-section.is-submitted .success-state p { max-width: 310px; margin: 0; font-size: 13px; line-height: 1.4; }
  .journey .rsvp-section.is-submitted .success-state img {
    width: min(78%, 290px);
    height: auto;
    max-height: 210px;
    margin: 10px 0 12px;
    display: block;
    object-fit: contain;
  }
  .journey .rsvp-section.is-submitted.is-decline .success-state img { width: 150px; max-height: 180px; }
  .journey .rsvp-section.is-submitted .success-state .button { min-height: 48px; padding: 0 20px; font-size: 14px; }
}

/* Readability balance for the compact invitation details. */
.brand-label {
  font-size: 18px;
  line-height: 1;
}
.mini-cta { font-size: 15px; }
.hero-facts div,
.hero-facts div:nth-child(n) { min-height: 96px; }
.hero-facts small {
  font-size: 11px;
  letter-spacing: .08em;
}
.hero-facts strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.015em;
}
.fact-detail { font-size: .84em; }
.fact-place span:first-child { font-size: .78em; }

@media (max-width: 720px) {
  .brand-label { font-size: clamp(14px, 3.8vw, 16px); }
  .mini-cta {
    padding-inline: 10px;
    font-size: clamp(12px, 3.25vw, 14px);
  }
  .hero-facts div,
  .hero-facts div:nth-child(n) {
    min-height: 98px;
    padding: 10px 6px;
  }
  .hero-facts small {
    margin-bottom: 6px;
    font-size: clamp(9px, 2.35vw, 10.5px);
  }
  .hero-facts strong {
    font-size: clamp(13px, 3.7vw, 16px);
    line-height: 1.18;
  }
  .fact-detail { font-size: .86em; }
  .fact-place span:first-child { font-size: .82em; }
}

/* Final fact-card hierarchy, intentionally after the legacy readability rules. */
body .hero-facts div.fact-card,
body .hero-facts div.fact-card:nth-child(n) {
  min-height: 104px;
  padding: 15px 16px 15px 62px;
  align-items: flex-start;
  text-align: left;
}
body .hero-facts .fact-main,
body .hero-facts .fact-place .fact-main { font-size: clamp(16px, 1.8vw, 20px); line-height: 1.05; }
body .hero-facts .fact-detail,
body .hero-facts .fact-place .fact-detail { margin-top: 6px; font-size: 10px; line-height: 1.15; }

@media (max-width: 720px) {
  body .hero-facts div.fact-card,
  body .hero-facts div.fact-card:nth-child(n) {
    min-height: 120px;
    padding: 47px 5px 9px;
    align-items: center;
    text-align: center;
  }
  body .hero-facts .fact-main,
  body .hero-facts .fact-place .fact-main { font-size: clamp(13px, 4vw, 16px); line-height: 1.08; }
  body .hero-facts .fact-detail,
  body .hero-facts .fact-place .fact-detail { margin-top: 5px; font-size: 8px; line-height: 1.18; }
}

/* Compact fact cards: labels live inside the color panels. */
body .hero-copy { padding-top: 24px; }
body .hero-facts { padding-top: 0; }
body .hero-facts div.fact-card,
body .hero-facts div.fact-card:nth-child(n) {
  min-height: 98px;
  padding: 12px 10px;
  align-items: center;
  overflow: visible;
  text-align: center;
}
body .hero-facts .fact-card > small {
  position: static;
  width: auto;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  line-height: normal;
  text-align: center;
  text-transform: uppercase;
  transform: none;
  box-shadow: none;
}
body .hero-facts .fact-detail,
body .hero-facts .fact-place .fact-detail { font-size: 11px; }

@media (max-width: 720px) {
  body .hero-copy { padding-top: 12px; }
  body .hero-facts { padding-top: 0; }
  body .hero-facts div.fact-card,
  body .hero-facts div.fact-card:nth-child(n) { min-height: 105px; padding: 11px 5px 10px; }
  body .hero-facts .fact-card > small { margin-bottom: 7px; padding: 0; font-size: 11px; }
  body .hero-facts .fact-detail,
  body .hero-facts .fact-place .fact-detail { font-size: 9px; }
}

@media (min-width: 361px) and (max-width: 380px) {
  body .brand { gap: 5px; font-size: 12px; }
  body .mini-cta { padding-inline: 8px; font-size: 10.5px; }
}
