:root {
  --bg: #fff8f5;
  --surface: rgba(255, 252, 250, 0.68);
  --surface-strong: rgba(255, 250, 247, 0.88);
  --surface-border: rgba(173, 112, 129, 0.16);
  --text: #5e4a4e;
  --text-soft: #886b70;
  --heading: #3f3136;
  --accent: #d88fa1;
  --accent-strong: #c96f8a;
  --accent-pale: #f4dfe4;
  --peach: #f7e3d2;
  --lavender: #ede4f5;
  --mint: #e5f1e5;
  --shadow: 0 24px 60px rgba(161, 117, 130, 0.12);
  --shadow-soft: 0 14px 36px rgba(171, 129, 138, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 100%;
  --max-width: 760px;
  --safe-top: max(env(safe-area-inset-top), 20px);
  --safe-bottom: max(env(safe-area-inset-bottom), 20px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 218, 225, 0.85), transparent 34%),
    radial-gradient(circle at top right, rgba(235, 226, 247, 0.7), transparent 28%),
    linear-gradient(180deg, #fffaf7 0%, #fff5f3 38%, #fefbf8 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: var(--safe-top) 18px var(--safe-bottom);
  isolation: isolate;
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.8;
  pointer-events: none;
  z-index: -2;
}

.ambient-one {
  top: 10%;
  left: -10%;
  width: 220px;
  height: 220px;
  background: rgba(247, 218, 223, 0.56);
  animation: floatBlob 10s ease-in-out infinite;
}

.ambient-two {
  top: 32%;
  right: -12%;
  width: 240px;
  height: 240px;
  background: rgba(232, 226, 247, 0.66);
  animation: floatBlob 12s ease-in-out infinite reverse;
}

.ambient-three {
  bottom: 6%;
  left: 10%;
  width: 180px;
  height: 180px;
  background: rgba(226, 240, 228, 0.72);
  animation: floatBlob 14s ease-in-out infinite;
}

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.petal {
  position: absolute;
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 100% 80% 100% 65%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(241, 197, 207, 0.72));
  box-shadow: 0 8px 18px rgba(216, 143, 161, 0.18);
  opacity: 0.55;
}

.petal-1 { top: 14%; left: 10%; animation: drift 18s linear infinite; }
.petal-2 { top: 8%; right: 16%; animation: drift 24s linear infinite 2s; }
.petal-3 { top: 42%; left: 5%; animation: drift 19s linear infinite 5s; }
.petal-4 { top: 38%; right: 8%; animation: drift 21s linear infinite 1s; }
.petal-5 { top: 66%; left: 18%; animation: drift 25s linear infinite 3s; }
.petal-6 { top: 74%; right: 14%; animation: drift 20s linear infinite 6s; }

.transition-layer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 248, 245, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 40;
}

.acceptance-scene {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 45;
  overflow: hidden;
}

.acceptance-scene__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 242, 238, 0.3), transparent 30%),
    rgba(56, 35, 42, 0.54);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.acceptance-scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.9;
}

.acceptance-scene__glow--one {
  width: 260px;
  height: 260px;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245, 209, 216, 0.8), transparent 68%);
}

.acceptance-scene__glow--two {
  width: 200px;
  height: 200px;
  bottom: 14%;
  right: 10%;
  background: radial-gradient(circle, rgba(226, 236, 225, 0.42), transparent 72%);
}

.acceptance-scene__card {
  position: relative;
  width: min(100%, 360px);
  padding: 34px 24px 30px;
  border-radius: 32px;
  text-align: center;
  background: rgba(255, 251, 249, 0.14);
  border: 1px solid rgba(255, 233, 238, 0.24);
  box-shadow: 0 24px 64px rgba(28, 14, 20, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(26px) scale(0.96);
  opacity: 0;
}

.acceptance-scene.is-visible .acceptance-scene__card {
  animation: acceptanceCardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.acceptance-scene__eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: rgba(255, 242, 244, 0.78);
}

.acceptance-scene__card h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff7f8;
}

.acceptance-scene__copy {
  margin: 16px auto 0;
  max-width: 22ch;
  line-height: 1.65;
  color: rgba(255, 241, 244, 0.84);
}

.acceptance-scene__path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 0 8px;
}

.acceptance-scene__path::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 2px;
  background: rgba(255, 231, 237, 0.26);
  transform: translateY(-50%);
}

.acceptance-scene__path::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: calc(100% - 40px);
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 244, 247, 0.95), rgba(233, 200, 212, 0.88));
  transform: translateY(-50%);
  transform-origin: left center;
  scale: 0 1;
}

.acceptance-scene.is-visible .acceptance-scene__path::after {
  animation: acceptancePathFill 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.22s forwards;
}

.acceptance-scene__path span {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 237, 242, 0.18);
  border: 1px solid rgba(255, 231, 237, 0.4);
  box-shadow: 0 0 0 0 rgba(244, 214, 222, 0.45);
}

.acceptance-scene.is-visible .acceptance-scene__path span {
  animation: acceptancePulse 0.8s ease forwards;
}

.acceptance-scene.is-visible .acceptance-scene__path span:nth-child(1) { animation-delay: 0.18s; }
.acceptance-scene.is-visible .acceptance-scene__path span:nth-child(2) { animation-delay: 0.42s; }
.acceptance-scene.is-visible .acceptance-scene__path span:nth-child(3) { animation-delay: 0.66s; }
.acceptance-scene.is-visible .acceptance-scene__path span:nth-child(4) { animation-delay: 0.9s; }

.certificate-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  justify-items: center;
  align-items: center;
  padding:
    max(env(safe-area-inset-top), 20px)
    20px
    max(env(safe-area-inset-bottom), 20px);
  z-index: 50;
}

.certificate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(252, 245, 243, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.certificate-modal {
  position: relative;
  width: min(100%, 380px);
  max-height: calc(100dvh - max(env(safe-area-inset-top), 20px) - max(env(safe-area-inset-bottom), 20px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.certificate-overlay.is-visible .certificate-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.certificate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(183, 137, 151, 0.16);
  color: var(--text-soft);
  cursor: pointer;
}

.certificate-paper {
  position: relative;
  padding: 58px 22px 24px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.96), rgba(255, 248, 245, 0.92)),
    var(--surface);
  border: 1px solid rgba(188, 140, 154, 0.16);
  box-shadow: 0 24px 70px rgba(143, 103, 117, 0.18);
  overflow: hidden;
}

.certificate-paper::before,
.certificate-paper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.certificate-paper::before {
  top: -38px;
  left: -16px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(243, 221, 226, 0.78), transparent 70%);
}

.certificate-paper::after {
  right: -42px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(226, 236, 225, 0.58), transparent 70%);
}

.certificate-overline {
  margin: 0 0 12px;
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--text-soft);
}

.certificate-paper h2 {
  margin: 0;
  text-align: center;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  line-height: 1.05;
  color: var(--heading);
}

.certificate-copy {
  margin: 16px auto 0;
  max-width: 28ch;
  text-align: center;
  line-height: 1.7;
  color: var(--text-soft);
}

.certificate-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.certificate-item {
  padding: 16px 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(193, 149, 162, 0.14);
}

.certificate-item span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.certificate-item strong {
  display: block;
  color: var(--heading);
  line-height: 1.45;
  font-size: 1rem;
}

.certificate-footer {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(193, 149, 162, 0.12);
  text-align: center;
}

.certificate-note {
  margin: 0;
  max-width: 24ch;
  line-height: 1.55;
  color: var(--text-soft);
}

.certificate-actions {
  width: 100%;
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 2px;
}

.certificate-status {
  min-height: 22px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.certificate-status.is-success {
  color: #8e5a6f;
}

.certificate-seal-wrap {
  display: grid;
  justify-items: end;
  margin-top: 18px;
}

.certificate-seal {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.62), transparent 34%),
    linear-gradient(145deg, #d993a6, #c67b92);
  box-shadow: 0 12px 26px rgba(201, 111, 138, 0.28);
  color: #fff7fa;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: rotate(-10deg);
}

.transition-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.transition-card {
  position: relative;
  width: min(100%, 320px);
  padding: 28px 24px;
  text-align: center;
  border-radius: 28px;
  background: rgba(255, 251, 249, 0.86);
  border: 1px solid rgba(207, 161, 174, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.transition-glow {
  position: absolute;
  inset: -30% auto auto 12%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 212, 219, 0.85), transparent 65%);
  filter: blur(12px);
}

.transition-overline,
.eyebrow,
.route-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.transition-card h2,
.gate-card h1,
.hero-card h1,
.section-heading h2,
.dress-code-card h2,
.final-card h2,
.route-content h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.transition-card h2 {
  font-size: clamp(1.6rem, 5vw, 2rem);
}

.transition-card p:last-child {
  margin: 10px 0 0;
}

.gate-screen,
.invitation {
  width: min(var(--container), var(--max-width));
  margin: 0 auto;
}

.gate-screen {
  min-height: calc(100vh - var(--safe-top) - var(--safe-bottom));
  display: grid;
  align-items: center;
}

.gate-card,
.hero-card,
.dress-code-card,
.final-card,
.route-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.gate-card {
  padding: 26px 20px 22px;
  border-radius: var(--radius-xl);
}

.gate-card::before,
.hero-card::before,
.final-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 36%);
  pointer-events: none;
}

.gate-card h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.04;
}

.gate-copy {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.gate-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

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

.field-group label {
  font-size: 0.95rem;
  color: var(--heading);
}

.field-group input,
.field-group textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(180, 135, 149, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(121, 96, 103, 0.62);
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: rgba(211, 128, 153, 0.45);
  box-shadow: 0 0 0 5px rgba(236, 198, 207, 0.35);
  transform: translateY(-1px);
}

.field-group small {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.primary-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e9a8b8, #d58ca0 70%, #cb7f97);
  color: #fffafc;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(213, 140, 160, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(191, 148, 161, 0.22);
  color: var(--heading);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(172, 126, 139, 0.1);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.secondary-button:active {
  transform: scale(0.985);
}

.secondary-button:focus-visible {
  outline: 3px solid rgba(241, 210, 219, 0.85);
  outline-offset: 3px;
}

.secondary-button.is-loading {
  pointer-events: none;
  opacity: 0.82;
}

.primary-button:active {
  transform: scale(0.98);
  box-shadow: 0 8px 18px rgba(213, 140, 160, 0.22);
}

.primary-button:focus-visible {
  outline: 3px solid rgba(241, 210, 219, 0.85);
  outline-offset: 3px;
}

.primary-button.is-loading {
  pointer-events: none;
  filter: saturate(0.88);
}

.form-message,
.accept-message {
  min-height: 24px;
  margin: 2px 4px 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.form-message.is-error {
  color: #b35b72;
}

.form-message.is-success,
.accept-message.is-success {
  color: #8e5a6f;
}

.hidden {
  display: none;
}

body.certificate-open {
  overflow: hidden;
}

.section {
  padding: 18px 0;
}

.hero {
  padding-top: 10px;
}

.hero-card {
  padding: 28px 22px;
  border-radius: 34px;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -36px;
  right: -12px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 219, 0.78), transparent 70%);
  z-index: -1;
}

.hero-card h1 {
  font-size: clamp(2.2rem, 8vw, 4.2rem);
  line-height: 0.98;
}

.hero-text {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 28rem;
}

.event-date {
  display: inline-grid;
  gap: 8px;
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 246, 0.84)),
    rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(188, 140, 154, 0.14);
  box-shadow: 0 12px 26px rgba(171, 129, 138, 0.08);
  width: fit-content;
  max-width: 100%;
}

.event-date-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.event-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.event-date strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.28rem;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.event-date-row span {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-soft);
  white-space: nowrap;
}

.hero-button {
  margin-top: 22px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(183, 137, 151, 0.14);
  font-size: 0.86rem;
  color: var(--text-soft);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.dress-code-card h2,
.final-card h2 {
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.15;
}

.route-section {
  position: relative;
}

.route-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 12px;
}

.route-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 26px;
  width: 2px;
  background: linear-gradient(180deg, rgba(215, 152, 168, 0.16), rgba(200, 148, 177, 0.68), rgba(190, 216, 190, 0.18));
}

.route-timeline::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 26px;
  width: 2px;
  height: calc(100% - 28px);
  background: linear-gradient(180deg, rgba(247, 233, 238, 0.98), rgba(220, 181, 198, 0.9), rgba(199, 224, 200, 0.88));
  transform: scaleY(0);
  transform-origin: top;
  opacity: 0;
}

.route-timeline.is-awakening::after {
  animation: routeLineAwaken 1.7s cubic-bezier(0.2, 1, 0.22, 1) forwards;
}

.route-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 16px;
  border-radius: 26px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.route-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.route-card.is-active {
  box-shadow: 0 24px 46px rgba(189, 136, 151, 0.16);
  border-color: rgba(212, 138, 160, 0.24);
}

.route-card.is-awakened {
  box-shadow: 0 26px 54px rgba(214, 150, 167, 0.22);
  border-color: rgba(236, 194, 205, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 251, 249, 0.92), rgba(252, 241, 245, 0.8)),
    var(--surface);
}

.route-card:focus-visible {
  outline: 3px solid rgba(233, 168, 184, 0.45);
  outline-offset: 3px;
}

.route-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6afba, #d78ba1);
  color: #fff;
  box-shadow: 0 10px 20px rgba(217, 143, 161, 0.28);
}

.route-card.is-awakened .route-marker {
  background: linear-gradient(135deg, #f1c9d5, #d98da2 72%, #ce8098);
  box-shadow:
    0 0 0 10px rgba(241, 206, 216, 0.18),
    0 16px 30px rgba(217, 143, 161, 0.32);
  animation: routeMarkerGlow 0.95s ease;
}

.route-marker span {
  font-size: 0.7rem;
  font-weight: 700;
}

.route-content h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.route-content p:last-child {
  margin: 10px 0 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text-soft);
}

.secret-stop {
  background:
    linear-gradient(160deg, rgba(255, 249, 245, 0.82), rgba(248, 239, 244, 0.72)),
    var(--surface);
}

.dress-code-card,
.final-card {
  padding: 22px 20px;
  border-radius: 28px;
}

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

.dress-code-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.dress-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(247, 227, 210, 0.9), rgba(237, 228, 245, 0.92));
  color: var(--accent-strong);
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.dress-code-card p:last-child,
.final-card p:not(.eyebrow):not(.accept-message) {
  margin: 12px 0 0;
  line-height: 1.68;
  color: var(--text-soft);
}

.accent-button {
  margin-top: 22px;
  background: linear-gradient(135deg, #d08aa0, #c4788e 72%, #bf6c86);
}

.accept-message {
  margin-top: 12px;
  text-align: left;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gate-screen.is-exiting {
  animation: fadeGate 0.65s ease forwards;
}

body.unlocked .petal {
  opacity: 0.42;
}

body.acceptance-active .ambient,
body.acceptance-active .petals {
  filter: saturate(1.12);
}

body.acceptance-active .invitation {
  transform: scale(0.992);
  transition: transform 0.8s ease, filter 0.8s ease;
  filter: saturate(1.03);
}

@keyframes floatBlob {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(8px, -18px, 0) scale(1.06);
  }
}

@keyframes acceptanceCardIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes acceptancePathFill {
  0% {
    opacity: 0.4;
    scale: 0 1;
  }
  100% {
    opacity: 1;
    scale: 1 1;
  }
}

@keyframes acceptancePulse {
  0% {
    background: rgba(255, 237, 242, 0.18);
    transform: scale(0.78);
    box-shadow: 0 0 0 0 rgba(244, 214, 222, 0.5);
  }
  60% {
    background: rgba(255, 247, 249, 0.95);
    transform: scale(1.16);
    box-shadow: 0 0 0 10px rgba(244, 214, 222, 0);
  }
  100% {
    background: rgba(255, 247, 249, 0.86);
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 214, 222, 0);
  }
}

@keyframes routeLineAwaken {
  0% {
    opacity: 0.3;
    transform: scaleY(0);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes routeMarkerGlow {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(12px, 32px, 0) rotate(16deg);
  }
  100% {
    transform: translate3d(-8px, 64px, 0) rotate(32deg);
  }
}

@keyframes fadeGate {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
    visibility: hidden;
  }
}

@media (min-width: 720px) {
  .page-shell {
    padding-left: 28px;
    padding-right: 28px;
  }

  .gate-card,
  .hero-card {
    padding: 36px 34px;
  }

  .route-card {
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 22px 22px;
  }

  .route-timeline::before {
    left: 31px;
  }

  .route-timeline::after {
    left: 31px;
  }

  .route-marker {
    width: 34px;
    height: 34px;
  }

  .primary-button {
    width: auto;
    min-width: 260px;
  }

  .certificate-paper {
    padding: 62px 32px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .route-card,
  .acceptance-scene__card {
    opacity: 1;
    transform: none;
  }

  .route-timeline::after {
    transform: scaleY(1);
    opacity: 1;
  }
}
