/* Index
 * Public invitation page: welcome gate, event details, guestbook and countdown.
 * Extracted from the v1.0.0 stylesheet; keep page-specific overrides after shared.css.
 */

.mobile-page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  box-shadow: 0 0 45px rgba(0, 0, 0, .12);
  background: linear-gradient(rgba(255, 255, 255, .66), rgba(255, 255, 255, .74)),
    url("/assets/bg-silk.webp") center top / cover repeat-y;
}

.hero-section {
  height: 56vh;
  position: relative;
  overflow: hidden;
  background: #d9ded7;
  min-height: 375px;
  max-height: 460px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.98) contrast(1.02);
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .18) 60%, rgba(0, 0, 0, .58) 100%),
    radial-gradient(ellipse at center 78%, rgba(0, 0, 0, .28), transparent 48%);
}

.hero-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 28px;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signature {
  font-family: "Allura", "Great Vibes", cursive;
  font-size: 51px;
  font-weight: 400;
  margin: 0;
  line-height: .94;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  color: rgba(255, 255, 255, .94);
  display: block;
  width: 100%;
  white-space: normal;
  transform: none;
  transform-origin: center;
  margin-top: 0;
}

.signature.dark {
  color: var(--ink);
  text-shadow: none;
}

.line-title {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}

.line-title span {
  flex: 1;
  height: 1px;
  background: var(--sample-line);
}

.line-title h2 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: 42px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1;
}

.guestbook-section {
  padding-top: 34px;
}

.guestbook-hero {
  display: block;
  grid-template-columns: 1fr 1.18fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: 18px;
  position: relative;
  height: 158px;
  margin: 0 -24px 28px;
}

.guestbook-hero img {
  width: 130px;
  height: 166px;
  object-fit: cover;
  object-position: center 24%;
  position: absolute;
  top: 0;
  left: 34px;
  z-index: 2;
  border: 4px solid #fff;
  box-shadow: 0 1px 0 #9da1a6;
}

.dark-card {
  height: 84px;
  background: #222327;
  display: flex;
  place-items: center;
  position: absolute;
  top: 52px;
  right: 0;
  left: 0;
  align-items: center;
  justify-content: flex-end;
  padding-right: 38px;
}

.script-white {
  font-family: "Allura", "Great Vibes", cursive;
  color: #fff;
  font-size: 35px;
  margin: 0;
  position: relative;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.guest-form {
  display: grid;
  gap: 8px;
}

.thanks-text {
  display: none;
  margin: 20px auto 0;
  font-size: 14px;
  color: #777c83;
  line-height: 1.65;
  max-width: 315px;
  margin-top: 16px;
  font-family: "Roboto Condensed", "Be Vietnam Pro", sans-serif;
  font-weight: 400;
  letter-spacing: .15px;
}

.countdown-section {
  padding-top: 18px;
  padding-bottom: 30px;
  padding: 26px 24px 36px;
}

.time-title {
  margin-bottom: -12px;
  gap: 12px;
  position: relative;
  z-index: 2;
  max-width: 344px;
  margin: 0 auto 12px;
}

.time-title h2 {
  font-size: 36px;
  min-width: auto;
  margin: 0;
  color: #2f3338;
  font-family: "Allura", "Great Vibes", cursive;
  font-weight: 400;
  line-height: 1;
  background: transparent;
  padding: 0 8px;
  transform: none;
}

.time-box {
  border: 1.5px solid #8f949a;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 22px;
  letter-spacing: 4px;
  font-family: "Oswald", "Roboto Condensed", "Be Vietnam Pro", sans-serif;
  background: rgba(255, 255, 255, .28);
  color: #2f3338;
  border-color: #8b8f94;
  max-width: 344px;
  margin: 0 auto;
  padding-top: 6px;
  width: min(344px, 100%);
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 400;
}

.time-box span {
  min-width: 28px;
  display: inline-block;
  text-align: center;
}

.time-box b {
  font-weight: 300;
  letter-spacing: 0;
}

.thank-section {
  height: 160px;
  position: relative;
  overflow: hidden;
  margin: 0;
  background: transparent;
}

.thank-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.thank-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(255, 255, 255, .18);
}

.thank-overlay h2 {
  font-family: "Great Vibes", cursive;
  font-size: 42px;
  font-weight: 400;
  margin: 0;
  color: #1f2023;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .7);
}

.bottom-space {
  height: 30px;
}

.guestbook-hero img,
.dark-card {
  height: 145px;
}

.line-title h2,
.script-label,
.album-title h2,
.time-title h2 {
  color: var(--sample-ink);
  font-size: 31px;
  line-height: 1;
}

.intro-section {
  padding-top: 20px;
  padding: 12px 24px 14px;
}

.time-title span {
  background: #9a9da2;
  height: 1px;
}

.mobile-page .section,
.mobile-page .intro-section,
.mobile-page .invite-section,
.mobile-page .date-section,
.mobile-page .location-section,
.mobile-page .schedule-section,
.mobile-page .album-section,
.mobile-page .guestbook-section,
.mobile-page .countdown-section {
  background: transparent;
}

body.dark-mode .mobile-page {
  background: #202126;
  box-shadow: 0 0 34px rgba(0, 0, 0, .36);
}

body.dark-mode .tiny-script,
body.dark-mode .intro-grid h2,
body.dark-mode .line-title h2,
body.dark-mode .script-label,
body.dark-mode .location-section h2,
body.dark-mode .section-subtitle,
body.dark-mode .invite-uppercase {
  color: #f1ede7;
}

.hero-content .hero-sub,
.hero-content .date-text {
  display: none;
}

.hero-ceremony-img {
  width: min(42vw, 164px);
  max-width: 52%;
  height: auto;
  margin: 0 auto;
  opacity: .94;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .46));
}

.signature,
.intro-grid h2 {
  font-family: "Allura", "Great Vibes", cursive;
  font-weight: 400;
  letter-spacing: .2px;
  text-transform: none;
}

.event-info-section {
  position: relative;
  padding: 42px 14px 52px;
  text-align: center;
  background: linear-gradient(rgba(255, 255, 255, .48), rgba(255, 255, 255, .66)),
    url("/assets/bg-silk.webp") center 20% / cover;
  padding-top: 8px;
  padding-bottom: 44px;
}

.event-time-layout {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) auto minmax(86px, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  max-width: 402px;
  margin: 0 auto 26px;
  color: #2f3236;
  margin-bottom: 28px;
  column-gap: 20px;
}

.event-side {
  display: flex;
  grid-template-columns: minmax(22px, 1fr) auto minmax(22px, 1fr);
  align-items: stretch;
  gap: 4px;
  min-width: 86px;
  flex-direction: column;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  transform: translateY(2px);
}

.event-side::after,
.event-side span {
  display: block;
  height: 1.5px;
  background: #2f3236;
  content: "";
}

.event-side strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
  color: #2f3236;
  letter-spacing: 1px;
  text-align: center;
}

.event-hour strong {
  font-size: 14px;
}

.event-date-core {
  display: grid;
  place-items: center;
  min-width: 104px;
}

.event-date-core span,
.event-date-core em,
.event-location-label {
  font-family: "Playfair Display", Georgia, serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.event-date-core span {
  font-size: 17px;
  line-height: 1;
  margin-bottom: 1px;
  transform: translateY(-5px);
  display: block;
}

.event-date-core strong {
  margin: -1px 0 2px;
  color: #2f3236;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 82px;
  font-weight: 500;
  line-height: .82;
  letter-spacing: 0;
}

.event-date-core em {
  font-size: 17px;
  transform: translateY(5px);
  display: block;
}

.event-location-block {
  max-width: 372px;
  margin: 0 auto;
}

.event-location-label {
  margin: 0 0 16px;
  color: #30333a;
  font-size: 17px;
  margin-top: 4px;
  margin-bottom: 18px;
}

.event-school,
.event-address {
  margin: 0 auto;
  color: #33363d;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.5;
}

.event-school {
  max-width: 350px;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.38;
}

.event-location-block h2 {
  margin: 12px 0 7px;
  color: #2f3236;
  font-family: "Oswald", "Roboto Condensed", "Be Vietnam Pro", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 8px;
}

.event-address {
  max-width: 320px;
  font-size: 13px;
  font-style: normal;
  margin-bottom: 0;
  text-transform: none;
}

body.dark-mode .event-info-section {
  background: #202126;
}

body.dark-mode .event-time-layout,
body.dark-mode .event-date-core strong,
body.dark-mode .event-location-label,
body.dark-mode .event-location-block h2,
body.dark-mode .event-school,
body.dark-mode .event-address {
  color: #f1ede7;
}

body.dark-mode .event-side::after,
body.dark-mode .event-side span {
  background: #f1ede7;
}

.event-side span {
  display: block;
  width: var(--event-line-width, 78px);
  max-width: 100%;
  height: 1.5px;
  margin: 0 auto;
  background: #2f3236;
}

.event-side::after {
  display: block;
  width: var(--event-line-width, 78px);
  max-width: 100%;
  height: 1.5px;
  margin: 0 auto;
  background: #2f3236;
  content: "";
}

.event-weekday {
  --event-line-width: 74px;
  justify-self: end;
}

.event-hour {
  --event-line-width: 86px;
  justify-self: start;
}

body.dark-mode .event-side span,
body.dark-mode .event-side::after {
  background: #f1ede7;
}

body.dark-mode .event-side strong {
  color: #f1ede7;
}

.event-side span,
.event-side::after {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 1.4px;
}

.event-side strong,
.event-hour strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1px;
  line-height: 1;
  text-transform: uppercase;
}

.event-info-section,
.event-info-section strong,
.event-info-section span,
.event-info-section em,
.event-info-section p,
.event-info-section h2,
.event-info-section a {
  font-family: "Oswald", "Roboto Condensed", "Be Vietnam Pro", sans-serif;
  letter-spacing: .6px;
}

.event-date-core span,
.event-date-core em,
.event-location-label,
.event-school,
.event-location-block h2,
.event-side strong,
.event-hour strong {
  font-weight: 500;
  text-transform: uppercase;
}

.event-date-core span,
.event-date-core em {
  font-size: 15px;
}

.event-date-core span,
.event-date-core em,
.event-side strong,
.event-hour strong,
.event-location-label {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: .15px;
}

.intro-section .quote {
  max-width: 305px;
  margin: 0 auto;
  color: #555b62;
  font-size: 14px;
  line-height: 1.65;
}

.event-location-label,
.event-school,
.event-location-block h2,
.event-address {
  font-weight: 400;
}

.guestbook-hero::before {
  position: absolute;
  top: 52px;
  right: 0;
  left: 0;
  z-index: 1;
  height: 66px;
  background: #222327;
  content: "";
}

.guestbook-hero::after {
  position: absolute;
  top: -6px;
  left: 50px;
  z-index: 0;
  width: 112px;
  height: 148px;
  border: 1.5px solid rgba(47, 51, 56, .58);
  background: transparent;
  content: "";
}

.guestbook-hero>img {
  position: absolute;
  top: 0;
  left: 48px;
  z-index: 2;
  width: 112px;
  height: 148px;
  border: 0;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: none;
}

.guestbook-hero .dark-card {
  position: absolute;
  top: 52px;
  right: 0;
  left: 132px;
  z-index: 1;
  display: flex;
  height: 66px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: transparent;
}

.script-white::after {
  display: none;
  content: none;
}

body.dark-mode .guestbook-hero::before {
  background: #101116;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(255, 255, 255, .05);
}

body.dark-mode .guestbook-hero::after {
  border-color: rgba(241, 237, 231, .42);
}

body.dark-mode .script-white {
  color: #fff;
  text-shadow: 0 1px 7px rgba(0, 0, 0, .75);
}

body.dark-mode .time-title h2 {
  color: #f1ede7;
  background: transparent;
}

body.dark-mode .time-title span {
  background: rgba(241, 237, 231, .48);
}

body.dark-mode .time-box {
  color: #f1ede7;
  border-color: rgba(241, 237, 231, .5);
  background: rgba(255, 255, 255, .04);
}

.event-info-section .event-time-layout,
.event-info-section .event-time-layout span,
.event-info-section .event-time-layout strong,
.event-info-section .event-time-layout em {
  font-family: "Oswald", "Roboto Condensed", "Be Vietnam Pro", sans-serif;
  font-weight: 500;
  letter-spacing: 1.1px;
}

body:not(.dark-mode) .mobile-page .section,
body:not(.dark-mode) .mobile-page .intro-section,
body:not(.dark-mode) .mobile-page .event-info-section,
body:not(.dark-mode) .mobile-page .guestbook-section,
body:not(.dark-mode) .mobile-page .countdown-section,
body:not(.dark-mode) .mobile-page .hero-name-section {
  background: transparent;
}

body:not(.dark-mode) .event-info-section {
  background: linear-gradient(rgba(255, 255, 255, .18), rgba(255, 255, 255, .22)),
    var(--silk-background-image) center 18% / cover;
}

body.dark-mode .mobile-page .section,
body.dark-mode .mobile-page .intro-section,
body.dark-mode .mobile-page .event-info-section,
body.dark-mode .mobile-page .guestbook-section,
body.dark-mode .mobile-page .countdown-section,
body.dark-mode .mobile-page .hero-name-section,
html.dark-mode .mobile-page .section,
html.dark-mode .mobile-page .intro-section,
html.dark-mode .mobile-page .event-info-section,
html.dark-mode .mobile-page .guestbook-section,
html.dark-mode .mobile-page .countdown-section,
html.dark-mode .mobile-page .hero-name-section {
  background: transparent;
}

body.dark-mode .event-info-section,
html.dark-mode .event-info-section {
  background: linear-gradient(rgba(32, 33, 38, .38), rgba(32, 33, 38, .5)),
    var(--dark-silk-background-image) center 18% / cover;
}

body[data-page="index"] .mobile-page .hero-section {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
}

body[data-page="index"] .mobile-page .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

body[data-page="index"] .mobile-page .hero-content {
  bottom: 22px;
}

body[data-page="index"] .mobile-page .hero-ceremony-img {
  width: min(58%, 210px);
}

body[data-page="index"] .hero-section {
  animation: indexHeroSettle 900ms cubic-bezier(.2, .8, .2, 1) both;
  border-radius: 0 0 32px 32px !important;
  overflow: hidden !important;
}

body[data-page="index"] .hero-img {
  animation: indexHeroImageIn 1200ms cubic-bezier(.2, .8, .2, 1) both;
  transform-origin: center;
  border-radius: 0 0 32px 32px !important;
}

body[data-page="index"] .hero-ceremony-img {
  animation: indexSoftRise 900ms 180ms cubic-bezier(.2, .8, .2, 1) both;
}

body[data-page="index"].index-reveal-ready .event-info-section .event-side,
body[data-page="index"].index-reveal-ready .event-info-section .event-date-core,
body[data-page="index"].index-reveal-ready .event-info-section .event-location-block,
body[data-page="index"].index-reveal-ready .guestbook-section .guestbook-hero,
body[data-page="index"].index-reveal-ready .guestbook-section .guest-form,
body[data-page="index"].index-reveal-ready .countdown-section .time-title,
body[data-page="index"].index-reveal-ready .countdown-section .time-box,
body[data-page="index"].index-reveal-ready .thank-section img,
body[data-page="index"].index-reveal-ready .thank-section .thank-overlay h2 {
  opacity: 1;
  transform: none;
  transition: none;
}

body[data-page="index"].index-reveal-ready .event-info-section.is-visible .event-date-core,
body[data-page="index"].index-reveal-ready .event-info-section.is-visible .event-side,
body[data-page="index"].index-reveal-ready .event-info-section.is-visible .event-location-block,
body[data-page="index"].index-reveal-ready .guestbook-section.is-visible .guestbook-hero,
body[data-page="index"].index-reveal-ready .guestbook-section.is-visible .guest-form,
body[data-page="index"].index-reveal-ready .countdown-section.is-visible .time-title,
body[data-page="index"].index-reveal-ready .countdown-section.is-visible .time-box,
body[data-page="index"].index-reveal-ready .thank-section.is-visible img,
body[data-page="index"].index-reveal-ready .thank-section.is-visible .thank-overlay h2 {
  opacity: 1;
  transform: translateY(0);
}

body[data-page="index"].index-reveal-ready .event-info-section .event-weekday {
  transition-delay: 80ms;
}

body[data-page="index"].index-reveal-ready .event-info-section .event-date-core {
  transition-delay: 150ms;
}

body[data-page="index"].index-reveal-ready .event-info-section .event-hour {
  transition-delay: 220ms;
}

body[data-page="index"].index-reveal-ready .event-info-section .event-location-block,
body[data-page="index"].index-reveal-ready .guestbook-section .guest-form,
body[data-page="index"].index-reveal-ready .countdown-section .time-box,
body[data-page="index"].index-reveal-ready .thank-section .thank-overlay h2 {
  transition-delay: 260ms;
}

body[data-page="index"] .guest-form input:focus,
body[data-page="index"] .guest-form textarea:focus,
body[data-page="index"] .guest-form select:focus {
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05) !important;
  outline: none;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

body[data-page="index"] .time-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(43, 45, 49, 0.15) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #2b2d31 !important;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

body[data-page="index"] .time-box::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, .32), transparent 55%);
  opacity: 0;
  transform: translateX(-60%);
}

body[data-page="index"] .countdown-section.is-visible .time-box::after {
  animation: none;
  opacity: 0;
}

body .guestbook-section,
body.dark-mode .guestbook-section,
html.dark-mode .guestbook-section {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

body .guestbook-hero,
body.dark-mode .guestbook-hero,
html.dark-mode .guestbook-hero {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

body[data-page="index"] .guestbook-hero>img {
  width: 112px !important;
  height: 148px !important;
  top: 0 !important;
  left: 48px !important;
  border-radius: 4px !important;
}

body[data-page="index"] .guestbook-hero::after {
  width: 112px !important;
  height: 148px !important;
  top: -6px !important;
  left: 54px !important;
  /* shifted exactly 6px right and 6px up */
  border-radius: 4px !important;
  display: none !important;
  content: none !important;
  border: none !important;
}

body[data-page="index"] .guestbook-hero .dark-card {
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="index"] .guestbook-hero::before {
  display: block !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: background-color 0.3s ease, border-color 0.3s ease !important;
  box-shadow: none !important;
}

body:not(.dark-mode)[data-page="index"] .guestbook-hero::before {
  background: rgba(255, 255, 255, 0.52) !important;
  border-top: 1px solid rgba(43, 45, 49, 0.08) !important;
  border-bottom: 1px solid rgba(43, 45, 49, 0.08) !important;
}

body:not(.dark-mode)[data-page="index"] .guestbook-hero .script-white {
  color: #2b2d31 !important;
  text-shadow: none !important;
}

html.dark-mode body[data-page="index"] .guestbook-hero::before,
body.dark-mode[data-page="index"] .guestbook-hero::before {
  background: rgba(255, 255, 255, 0.05) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html.dark-mode body[data-page="index"] .guestbook-hero .script-white,
body.dark-mode[data-page="index"] .guestbook-hero .script-white {
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4) !important;
}

html.dark-mode body[data-page="index"] .guest-form input,
html.dark-mode body[data-page="index"] .guest-form textarea,
html.dark-mode body[data-page="index"] .guest-form select,
body.dark-mode[data-page="index"] .guest-form input,
body.dark-mode[data-page="index"] .guest-form textarea,
body.dark-mode[data-page="index"] .guest-form select {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

body:not(.dark-mode)[data-page="index"] .guest-form input,
body:not(.dark-mode)[data-page="index"] .guest-form textarea,
body:not(.dark-mode)[data-page="index"] .guest-form select {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(43, 45, 49, 0.12) !important;
  color: #2b2d31 !important;
}

body:not(.dark-mode)[data-page="index"] .guest-form input:focus,
body:not(.dark-mode)[data-page="index"] .guest-form textarea:focus,
body:not(.dark-mode)[data-page="index"] .guest-form select:focus {
  border-color: rgba(43, 45, 49, 0.45) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(43, 45, 49, 0.05) !important;
}

body[data-page="index"] .guest-form .submit-btn {
  text-transform: none !important;
}

body[data-page="index"] .guest-form input::placeholder,
body[data-page="index"] .guest-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.88) !important;
  opacity: 1 !important;
  /* high opacity white, crisp and clear */
  opacity: 1 !important;
}

body:not(.dark-mode)[data-page="index"] .guest-form input::placeholder,
body:not(.dark-mode)[data-page="index"] .guest-form textarea::placeholder {
  color: rgba(43, 45, 49, 0.88) !important;
  opacity: 1 !important;
  /* high opacity dark grey */
  opacity: 1 !important;
}

body[data-page="index"] .guest-form select:invalid {
  color: rgba(255, 255, 255, 0.88) !important;
}

body:not(.dark-mode)[data-page="index"] .guest-form select:invalid {
  color: rgba(43, 45, 49, 0.88) !important;
}

body[data-page="index"] .guest-form select option {
  background-color: #202126 !important;
  color: #ffffff !important;
}

body:not(.dark-mode)[data-page="index"] .guest-form select option {
  background-color: #ffffff !important;
  color: #2b2d31 !important;
}

body[data-page="index"] .guest-form select option[disabled] {
  color: rgba(255, 255, 255, 0.3) !important;
}

body:not(.dark-mode)[data-page="index"] .guest-form select option[disabled] {
  color: rgba(43, 45, 49, 0.3) !important;
}

html.dark-mode body[data-page="index"] .time-box,
body.dark-mode[data-page="index"] .time-box {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

body[data-page="index"] .guestbook-hero .script-white {
  display: inline-block !important;
  transform: translateY(3.5px) !important;
}

.welcome-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  /* sit on top of everything, including topbars */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

.welcome-gate.gate-closed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(0.95);
  transform: scale(1.1);
  /* prevent light bleed on edges due to blur */
  transition: filter 0.8s ease, transform 0.8s ease;
  z-index: 1;
}

.welcome-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 21, 26, 0.42);
  /* default darkish glass */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
  transition: background-color 0.8s ease, backdrop-filter 0.8s ease;
}

body:not(.dark-mode) .welcome-overlay {
  background: rgba(255, 255, 255, 0.28);
}

.welcome-card {
  position: relative;
  z-index: 10;
  width: min(340px, 86%);
  text-align: center;
}

.welcome-frame {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 42px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease;
  /* Hide the frame contents until fonts are loaded to prevent unsynchronized flash */
  opacity: 0;
}

html.fonts-loaded .welcome-frame {
  animation: welcomeFadeInUp 1s ease-out forwards;
}

body:not(.dark-mode) .welcome-frame {
  border-color: rgba(43, 45, 49, 0.2);
  background: rgba(255, 255, 255, 0.45);
}

.welcome-name {
  font-family: "Great Vibes", cursive;
  font-size: 42px;
  color: #ffffff;
  margin: 0 0 16px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  line-height: 1.1;
}

body:not(.dark-mode) .welcome-name {
  color: #2b2d31;
  text-shadow: none;
}

body[data-page="index"] .welcome-bg {
  opacity: 0 !important;
  transition: opacity 0.5s ease, filter 0.8s ease, transform 0.8s ease !important;
}

body[data-page="index"] .welcome-bg.loaded {
  opacity: 1 !important;
}

body[data-page="index"] .welcome-gate {
  background: #14151a !important;
}

body:not(.dark-mode)[data-page="index"] .welcome-gate {
  background: #f5f4f1 !important;
}

body[data-page="index"] .welcome-overlay {
  background: radial-gradient(circle, rgba(20, 21, 26, 0.55) 0%, rgba(20, 21, 26, 0.88) 100%) !important;
  backdrop-filter: blur(18px) !important;
  /* soften the blur to be deeper */
  -webkit-backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

body:not(.dark-mode)[data-page="index"] .welcome-overlay {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.88) 100%) !important;
}

body[data-page="index"] .welcome-frame {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 20px 10px !important;
}

body[data-page="index"] .welcome-name {
  font-size: 54px !important;
  /* larger, dramatic cursive name */
  font-weight: 400 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.15) !important;
  margin-bottom: 18px !important;
}

body:not(.dark-mode)[data-page="index"] .welcome-name {
  color: #2b2d31 !important;
  text-shadow: none !important;
}

body[data-page="index"] .welcome-gate.gate-closed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body[data-page="index"]:not(.invitation-revealed) .topbar {
  transform: translateY(-20px) !important;
  opacity: 0 !important;
}

body[data-page="index"]:not(.invitation-revealed) .mobile-page {
  transform: translateY(35px) !important;
  opacity: 0 !important;
}

body[data-page="index"] .mobile-page {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease !important;
}

body[data-page="index"] .thank-section {
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  margin: 0 24px 30px !important;
  /* add bottom margin for clean spacing */
  overflow: hidden !important;
}

body.dark-mode[data-page="index"] .thank-section {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

body[data-page="index"] .thank-overlay {
  background: rgba(255, 254, 250, 0.42) !important;
  backdrop-filter: blur(1.5px) !important;
  -webkit-backdrop-filter: blur(1.5px) !important;
  transition: background 0.3s ease !important;
}

body.dark-mode[data-page="index"] .thank-overlay {
  background: rgba(20, 21, 26, 0.52) !important;
  backdrop-filter: blur(2.5px) !important;
  -webkit-backdrop-filter: blur(2.5px) !important;
}

body[data-page="index"] .thank-overlay h2 {
  font-family: "Great Vibes", cursive !important;
  font-size: 46px !important;
  font-weight: 400 !important;
  color: #2b2d31 !important;
  text-shadow: 0 1px 4px rgba(255, 254, 250, 0.8), 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  transition: color 0.3s ease !important;
}

body.dark-mode[data-page="index"] .thank-overlay h2 {
  color: #f5eee7 !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
}

@media(max-width:520px) {
.mobile-page {
    max-width: 100%;
    box-shadow: none;
  }

.signature {
    font-size: 44px;
  }

.time-box {
    gap: 9px;
    font-size: 24px;
    letter-spacing: 3px;
  }

.hero-section {
    height: 620px;
    min-height: 620px;
  }
}

@media(max-width:390px) {
.signature {
    font-size: 47px;
  }

.hero-ceremony-img {
    width: min(46vw, 154px);
  }

.event-info-section {
    padding: 40px 10px 50px;
    padding-top: 28px;
  }

.event-time-layout {
    grid-template-columns: minmax(88px, 1fr) 88px minmax(88px, 1fr);
    gap: 8px;
    max-width: 350px;
  }

.event-side {
    grid-template-columns: minmax(16px, 1fr) auto minmax(16px, 1fr);
    gap: 3px;
    min-width: 74px;
  }

.event-side strong {
    font-size: 14px;
  }

.event-hour strong {
    font-size: 11px;
  }

.event-date-core {
    min-width: 84px;
  }

.event-date-core strong {
    font-size: 70px;
  }

.event-date-core span,
  .event-date-core em,
  .event-location-label {
    font-size: 14px;
  }

.event-school {
    max-width: 310px;
    font-size: 13px;
  }

.event-location-block h2 {
    font-size: 17px;
  }

.event-address {
    font-size: 12px;
  }

.event-weekday {
    --event-line-width: 64px;
  }

.event-hour {
    --event-line-width: 74px;
  }

.event-side strong,
  .event-hour strong {
    font-size: 12px;
  }

.intro-section {
    padding: 12px 22px 28px;
  }

.intro-section .quote {
    font-size: 13px;
  }

.guestbook-hero {
    height: 150px;
    margin-right: -20px;
    margin-left: -20px;
  }

.guestbook-hero::before {
    top: 50px;
    height: 62px;
  }

.guestbook-hero::after {
    top: -5px;
    left: 37px;
    width: 104px;
    height: 138px;
  }

.guestbook-hero>img {
    left: 34px;
    width: 104px;
    height: 138px;
  }

.guestbook-hero .dark-card {
    top: 50px;
    left: 118px;
    height: 62px;
    padding: 0 18px;
  }

.script-white {
    font-size: 31px;
  }

.event-time-layout,
  .admin-event-preview .event-time-layout {
    grid-template-columns: minmax(74px, 1fr) auto minmax(74px, 1fr);
    column-gap: 14px;
  }
}

@media (max-width: 390px) {
body.admin-dashboard-open .admin-event-preview .event-time-layout {
    grid-template-columns: minmax(84px, 1fr) 86px minmax(84px, 1fr);
    gap: 8px;
    max-width: 342px;
  }

body.admin-dashboard-open .admin-event-preview .event-date-core {
    min-width: 86px;
  }

body.admin-dashboard-open .admin-event-preview .event-date-core strong {
    font-size: 70px;
  }

body.admin-dashboard-open .admin-event-preview .event-side strong,
  body.admin-dashboard-open .admin-event-preview .event-hour strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
body[data-page="index"] .countdown-section.is-visible .time-box::after {
    opacity: 0;
  }
}

@media (max-width: 520px) {
body[data-page="index"] .guestbook-hero>img {
    width: 104px !important;
    height: 138px !important;
    top: 0 !important;
    left: 34px !important;
  }

body[data-page="index"] .guestbook-hero::after {
    width: 104px !important;
    height: 138px !important;
    top: -5px !important;
    left: 39px !important;
  }

body[data-page="index"] .thank-section {
    margin: 0 20px 24px !important;
  }
}

/* ==========================================
   GUESTBOOK FORM STYLING CORRECTIONS
   - Fix excessive border radius (egg/pill bug)
   - Increase field and border contrast
   ========================================== */
/* Cohesive border-radius for guestbook inputs, select, textarea, and submit button */
body[data-page="index"] .guest-form input,
body[data-page="index"] .guest-form textarea,
body[data-page="index"] .guest-form select,
body[data-page="index"] .guest-form .submit-btn {
  border-radius: 12px !important;
}

/* Light Mode style overrides for guestbook form fields (Higher contrast) */
body:not(.dark-mode)[data-page="index"] .guest-form input,
body:not(.dark-mode)[data-page="index"] .guest-form textarea,
body:not(.dark-mode)[data-page="index"] .guest-form select {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1.5px solid rgba(43, 45, 49, 0.28) !important;
  color: #2b2d31 !important;
}

body:not(.dark-mode)[data-page="index"] .guest-form .submit-btn {
  background: rgba(60, 55, 48, 0.07) !important;
  color: #3c3730 !important;
  border: 1.5px solid rgba(60, 55, 48, 0.35) !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  font-size: 14.5px !important;
  box-shadow: none !important;
  padding: 9px 24px !important;
}

body:not(.dark-mode)[data-page="index"] .guest-form .submit-btn:hover {
  background: rgba(60, 55, 48, 0.16) !important;
  color: #26231e !important;
  border-color: rgba(60, 55, 48, 0.7) !important;
  box-shadow: 0 4px 12px rgba(60, 55, 48, 0.08) !important;
}

/* Dark Mode style overrides for guestbook form fields (Higher contrast on silk) */
html.dark-mode body[data-page="index"] .guest-form input,
html.dark-mode body[data-page="index"] .guest-form textarea,
html.dark-mode body[data-page="index"] .guest-form select,
body.dark-mode[data-page="index"] .guest-form input,
body.dark-mode[data-page="index"] .guest-form textarea,
body.dark-mode[data-page="index"] .guest-form select {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

html.dark-mode body[data-page="index"] .guest-form .submit-btn,
body.dark-mode[data-page="index"] .guest-form .submit-btn {
  background: rgba(247, 244, 235, 0.15) !important;
  color: #f7f4eb !important;
  border: 1.5px solid rgba(247, 244, 235, 0.45) !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  font-size: 14.5px !important;
  box-shadow: none !important;
  padding: 9px 24px !important;
}

html.dark-mode body[data-page="index"] .guest-form .submit-btn:hover,
body.dark-mode[data-page="index"] .guest-form .submit-btn:hover {
  background: rgba(247, 244, 235, 0.28) !important;
  color: #ffffff !important;
  border-color: rgba(247, 244, 235, 0.8) !important;
  box-shadow: 0 8px 24px rgba(247, 244, 235, 0.12) !important;
}

/* Guestbook Hero Horizontal Band overrides for better contrast and harmony */
body:not(.dark-mode)[data-page="index"] .guestbook-hero::before {
  background: rgba(255, 255, 255, 0.8) !important;
  border-top: 1px solid rgba(43, 45, 49, 0.15) !important;
  border-bottom: 1px solid rgba(43, 45, 49, 0.15) !important;
}

html.dark-mode body[data-page="index"] .guestbook-hero::before,
body.dark-mode[data-page="index"] .guestbook-hero::before {
  background: rgba(16, 17, 22, 0.72) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* ==========================================
   ADMIN DASHBOARD TAB PARALLAX CARDS
   - Shifts inner cards slightly to create depth during transitions
   ========================================== */
/* ==========================================
   EVENT LOCATION BLOCK SPACING & BUTTON STYLE
   - Harmonizes vertical margins, font sizes, and button design
   ========================================== */
/* Spacing and layout for index page event location */
body[data-page="index"] .event-location-block {
  margin-top: 36px !important;
}

body[data-page="index"] .event-location-label {
  font-family: "Playfair Display", Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  margin-top: 0 !important;
  margin-bottom: 22px !important;
  opacity: 0.8 !important;
  text-transform: uppercase !important;
}

body[data-page="index"] .event-school {
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin-bottom: 16px !important;
  letter-spacing: 0.5px !important;
  font-weight: 300 !important;
}

body[data-page="index"] .event-location-block h2 {
  font-size: 22px !important;
  letter-spacing: 1px !important;
  margin-top: 16px !important;
  margin-bottom: 16px !important;
  font-weight: 600 !important;
}

body[data-page="index"] .event-address {
  font-size: 13px !important;
  line-height: 1.65 !important;
  margin-bottom: 28px !important;
  max-width: 330px !important;
}

/* ==========================================================================
   Welcome Gate Redesign Overrides
   ========================================================================== */
/* Make the entire welcome gate screen clickable with pointer cursor */
.welcome-gate {
  cursor: pointer;
}

/* Widen container slightly to ensure name has elegant breathing room on sides */
body[data-page="index"] .welcome-card {
  width: min(380px, 94%) !important;
}

/* Style for the new line art sketch - enlarged further and gap to text reduced */
body[data-page="index"] .welcome-sketch {
  display: block;
  max-width: 320px;
  width: 95%;
  height: auto;
  margin: 0 auto 10px; /* Reduced gap between image and name */
  opacity: 0.95;
  mix-blend-mode: multiply; /* Make white bg transparent on light bg */
  transition: transform 0.4s ease, filter 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Hover effect on sketch when cursor is on the gate */
body[data-page="index"] .welcome-gate:hover .welcome-sketch {
  transform: scale(1.02);
}

/* Dark mode image inversion - turns black line art into white and black bg transparent */
body.dark-mode[data-page="index"] .welcome-sketch {
  filter: invert(1) !important;
  mix-blend-mode: screen !important;
}

/* Cursive name styled to match the width of the sketch image, centered */
body[data-page="index"] .welcome-name {
  font-family: "Dancing Script", cursive !important;
  font-size: 33px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 1px !important;
  color: #2b2d31 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
  margin: 0 auto 12px !important; /* Visual space below name */
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-align: center !important;
  padding: 0 !important;
  text-indent: 0 !important;
  display: block !important;
  width: 100% !important;
}

body.dark-mode[data-page="index"] .welcome-name {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

/* Tinh giản hóa khung thẻ chào: không viền, không kính đục, không đổ bóng */
.welcome-frame,
body:not(.dark-mode) .welcome-frame {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 24px 16px !important;
}

/* Tinh chỉnh hiệu ứng động Phương án 3: 3D Parallax & Sóng nước lan tỏa */
body[data-page="index"] .welcome-gate {
  perspective: 1000px !important;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), backdrop-filter 0.8s cubic-bezier(0.25, 1, 0.5, 1), -webkit-backdrop-filter 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s !important;
}

body[data-page="index"] .welcome-card {
  transform-style: preserve-3d !important;
  transition: transform 0.1s ease-out; /* Phản hồi di chuyển mượt mà */
}

/* Hiệu ứng sóng nước loang ra tại điểm chạm - Dạng quầng sáng loang mịn, không dùng viền cứng */
.welcome-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 60%, rgba(255, 255, 255, 0) 100%);
  filter: blur(2px);
  transform: translate(-50%, -50%) scale(0);
  animation: welcomeRippleAnim 1.5s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
  pointer-events: none;
  z-index: 5;
}

body:not(.dark-mode) .welcome-ripple {
  background: radial-gradient(circle, rgba(43, 45, 49, 0.08) 0%, rgba(43, 45, 49, 0.01) 60%, rgba(43, 45, 49, 0) 100%);
}

/* Hiệu ứng mờ dần hòa tan màn hình chờ (Tối ưu phần cứng di động) */
body[data-page="index"] .welcome-gate.fade-out {
  opacity: 0 !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
  visibility: hidden !important;
}

/* Card loi moi ca nhan hoa tren trang chinh */
.personalized-card:not(.hidden) {
  max-width: 480px !important;
  margin: 0 auto 24px auto !important;
  padding: 12px 20px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  opacity: 0;
  transform: translateY(10px);
  animation: guestCardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.p-card-prefix {
  font-family: "Dancing Script", cursive !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  color: #5c5250 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 0 auto 16px auto !important;
  line-height: 1.1 !important;
}

.p-card-name {
  font-family: "Great Vibes", cursive !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  margin: 0 auto 16px auto !important;
  line-height: 1.35 !important;
  letter-spacing: 1.5px !important;
}

.p-card-message {
  font-family: "Dancing Script", cursive !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  color: #5c5250 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

html.dark-mode .personalized-card,
body.dark-mode .personalized-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

html.dark-mode .p-card-prefix,
body.dark-mode .p-card-prefix {
  color: rgba(255, 255, 255, 0.85) !important;
}

html.dark-mode .p-card-name,
body.dark-mode .p-card-name {
  color: #ffffff !important;
}

html.dark-mode .p-card-message,
body.dark-mode .p-card-message {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Custom spacing adjustments to reduce gaps on mobile */
@media (max-width: 480px) {
.mobile-page .intro-section {
    padding-top: 4px !important;
    padding-bottom: 8px !important;
  }

.personalized-card:not(.hidden) {
    margin: 0 auto 8px auto !important;
  }

.intro-section .quote {
    margin: 18px auto 22px auto !important;
  }

.mobile-page .event-info-section {
    padding-top: 8px !important;
  }
}

/* --- Countdown Side-by-side Layout --- */
.countdown-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 350px;
  margin: 0 auto;
  width: 100%;
}

.countdown-timer-wrap {
  flex: 1;
  min-width: 0;
}

.countdown-timer-wrap .time-title {
  margin: 0 0 10px 0;
  max-width: 100%;
}

.countdown-timer-wrap .time-box {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: 18px !important;
  padding: 0 12px !important;
  gap: 6px !important;
  letter-spacing: 2px !important;
}

.countdown-timer-wrap .time-box span {
  min-width: 22px !important;
}

.countdown-img-wrap {
  flex-shrink: 0;
  width: 90px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-side-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: floatIllustration 4s ease-in-out infinite;
  pointer-events: none !important;
  -webkit-touch-callout: none !important;
  user-select: none !important;
}

.sunlight-particle {
  position: absolute;
  background: radial-gradient(
    circle, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(255, 255, 255, 0.75) 45%, 
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 50%;
  pointer-events: none;
  filter: none;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  animation-name: fallSunlight;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

/* Ambient stardust particles on index page (dark mode only) */
.index-sunlight-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 100;
  pointer-events: none;
  display: none; /* hidden in light mode */
}

body.dark-mode .index-sunlight-container {
  display: block !important;
}

/* Cascade parity
 * These reusable rules originally appeared after the first index-page block.
 * Keep them at the end of this page bundle so the modular files retain the
 * visual priority of the v1.0.0 stylesheet.
 */
.mobile-page {
  box-shadow: 0 0 28px rgba(0, 0, 0, .1);
}

.hero-section,
.guestbook-hero,
.thank-section {
  background-color: rgba(245, 244, 241, .58);
}

html.dark-mode .hero-section,
html.dark-mode .guestbook-hero,
html.dark-mode .thank-section,
body.dark-mode .hero-section,
body.dark-mode .guestbook-hero,
body.dark-mode .thank-section {
  background-color: rgba(255, 255, 255, .05);
}

body.dark-mode .mobile-page,
html.dark-mode .mobile-page {
  background: linear-gradient(rgba(32, 33, 38, .42), rgba(32, 33, 38, .54)),
    var(--dark-silk-background-image) center top / cover repeat-y;
}

.hero-name {
  font-size: 48px;
  line-height: .9;
}

.thanks-text {
  color: #4f555d;
  font-weight: 500;
}

@media (max-width: 520px) {
  .mobile-page {
    box-shadow: none;
  }

  .countdown-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-name {
    font-size: 44px;
  }
}

@media (min-width: 391px) and (max-width: 520px) {
  .intro-section,
  .event-info-section {
    padding-right: 20px;
    padding-left: 20px;
  }
}
