
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@keyframes sgFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes shineSweep {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}
:root {
  --sg-primary: #5B7561;
  --sg-deep: #36493B;
  --sg-cream: #F0F4F1;
  --sg-cream-muted: rgba(240, 244, 241, 0.75);
  --sg-page-bg: #ffffff;
  --sg-gold: #C2AF7A;
  --sg-font-serif: "Viaoda Libre", "EB Garamond", "Amiri", serif;
  --sg-font-script: "The Nautigal", "Amiri", cursive;
  --sg-font-heading: "Cormorant Garamond", "Amiri", "Times New Roman", serif;
  --sg-font-body: "Amiri", "Baskerville", "Times New Roman", serif;
}
:where(button){font-family:inherit}
body.sg-body {
  background-color: var(--sg-page-bg);
  color: var(--sg-primary);
  font-family: var(--sg-font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.sg-audio-btn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sg-primary);
  color: var(--sg-cream);
  border: 1px solid rgba(240, 244, 241, 0.3);
  box-shadow: 0 4px 12px rgba(91, 117, 97, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.sg-audio-btn:hover { transform: scale(1.08); }
.sg-audio-btn.muted { opacity: 0.6; }
.sg-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: linear-gradient(to bottom right, #72907A, #5B7561, #36493B), url('/minimalism-sage-green/paper.webp') center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}
.sg-overlay.opened {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}
.sg-corner-flower {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 220px;
  max-width: 50vw;
  opacity: 0.85;
}
.sg-corner-flower.tl { top: -20px; left: -20px; transform: rotate(25deg); }
.sg-corner-flower.br { bottom: -20px; right: -20px; transform: scaleX(-1) rotate(-25deg); }
.petals-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.petal {
  position: absolute;
  top: -20px;
  opacity: 0.7;
  animation: fall linear forwards;
}
.petal:nth-child(2n) { color: #6E8B74; }
.petal:nth-child(3n) { color: #8DA993; }
.petal:nth-child(4n) { color: #C2AF7A; }
.petal:nth-child(5n) { color: #F0F4F1; }
@keyframes fall {
  to {
    transform: translateY(105vh) rotate(360deg);
  }
}
.sg-envelope-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 360px;
  background: rgba(255, 250, 243, 0.96);
  border-radius: 16px;
  padding: 34px 24px 28px;
  text-align: center;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 40px rgba(91, 117, 97, 0.2);
  border: 1px solid rgba(91, 117, 97, 0.2);
}
.sg-wax-seal {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: radial-gradient(circle at 30% 30%, #5B7561, #28372C);
  box-shadow: 0 4px 20px rgba(91, 117, 97, 0.5), inset 0 2px 4px rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulse 2.2s infinite ease-in-out;
  transition: transform 0.2s ease;
}
.sg-wax-seal:hover { transform: scale(1.08); }
.sg-wax-seal svg { width: 28px; height: 28px; fill: #F0F4F1; }
.sg-envelope-title {
  font-family: var(--sg-font-serif);
  color: var(--sg-primary);
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1.2;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sg-envelope-title > span { min-width: 0; }
.sg-amp {
  font-family: var(--sg-font-script);
  color: var(--sg-gold);
  font-size: 34px;
}
.sg-envelope-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px auto;
  width: 70%;
  color: var(--sg-gold);
}
.sg-envelope-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(91, 117, 97, 0.4));
}
.sg-envelope-divider .line.rev {
  background: linear-gradient(to left, transparent, rgba(91, 117, 97, 0.4));
}
.sg-envelope-date {
  font-family: var(--sg-font-heading);
  color: var(--sg-deep);
  font-size: 15px;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.sg-envelope-guest {
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-primary);
  background: rgba(91, 117, 97, 0.08);
  border-radius: 999px;
  padding: 4px 16px;
  display: inline-block;
  margin-bottom: 10px;
}
.sg-envelope-invite { margin: 0 0 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sg-envelope-invite-lead { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sg-primary); opacity: 0.72; }
.sg-envelope-invite-lead { line-height: 21px; }
.sg-envelope-divider > span { line-height: 28px; }
.sg-open-btn > span { line-height: 21px; }
.sg-envelope-invite .sg-envelope-guest { margin: 0; }
.sg-envelope-greet {
  font-size: 13px;
  color: rgba(91, 117, 97, 0.8);
  margin-bottom: 18px;
}
.sg-open-btn {
  position: relative;
  overflow: hidden;
  background-color: var(--sg-primary);
  color: var(--sg-cream);
  border: none;
  border-radius: 999px;
  padding: 11px 36px;
  font-family: var(--sg-font-serif);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(91, 117, 97, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sg-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 117, 97, 0.5);
}
.sg-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shineSweep 2.8s infinite;
}
.sg-main-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--sg-page-bg);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.sg-paper-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url('/minimalism-sage-green/paper.webp');
  background-size: 100% auto;
  background-position: top center;
  mix-blend-mode: multiply;
  opacity: 0.45;
  z-index: 0;
}
.sg-hero-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 46px 24px 36px;
  text-align: center;
}
.sg-castle-watermark {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
  opacity: 0.11;
  z-index: 0;
}
.sg-castle-watermark.top {
  left: 50%;
  top: 22%;
  width: 160%;
  transform: translateX(-50%);
}
.sg-castle-watermark.gallery {
  left: 50%;
  top: -10%;
  width: 150%;
  transform: translateX(-50%);
}
.sg-castle-watermark.venue {
  left: 50%;
  top: 0;
  width: 155%;
  transform: translateX(-50%);
}
.sg-quote-text {
  position: relative;
  z-index: 10;
  font-family: var(--sg-font-heading);
  color: var(--sg-deep);
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1.6;
  letter-spacing: 0.1em;
  font-weight: 600;
  max-width: 320px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.sg-polaroid-wrapper {
  position: relative;
  z-index: 10;
  width: 84%;
  max-width: 330px;
  margin: 12px auto 0;
}
.sg-polaroid-aspect {
  position: relative;
  aspect-ratio: 333 / 384;
  width: 100%;
}
.sg-envelope-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}
.sg-polaroid-float {
  position: absolute;
  left: 33%;
  top: -2%;
  z-index: 20;
  width: 64%;
  animation: sgFloat 6.5s ease-in-out infinite;
  animation-delay: 0.4s;
  will-change: transform;
}
.sg-polaroid-frame {
  aspect-ratio: 221 / 309;
  transform: rotate(12deg);
  border: 7px solid #ffffff;
  background: #ffffff;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.sg-polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sg-polaroid-flower-wrap {
  position: absolute;
  left: -2%;
  top: -12%;
  z-index: 25;
  width: 42%;
  pointer-events: none;
  animation: sgFloat 5s ease-in-out infinite;
  will-change: transform;
}
.sg-polaroid-flower-img {
  width: 100%;
  transform: rotate(-17deg);
  filter: drop-shadow(3px 4px 4px rgba(0, 0, 0, 0.3));
  display: block;
}
.sg-envelope-cover-img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  pointer-events: none;
}
.sg-names-wrapper {
  position: relative;
  z-index: 10;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.sg-couple-name {
  font-family: var(--sg-font-serif);
  color: var(--sg-primary);
  font-size: clamp(34px, 10vw, 44px);
  line-height: 1;
}
.sg-names-amp-watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--sg-font-script);
  color: rgba(91, 117, 97, 0.14);
  font-size: 110px;
  line-height: 1;
  pointer-events: none;
  z-index: -1;
}
.sg-crimson-section {
  position: relative;
  z-index: 10;
  width: 88%;
  max-width: 420px;
  margin: 32px auto;
}
.sg-crimson-box {
  position: relative;
  overflow: hidden;
  background-color: var(--sg-primary);
  border-radius: 13px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.3);
}
.sg-inner-paper-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.4;
  pointer-events: none;
}
.sg-crimson-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.sg-floating-rose-side {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  animation: sgFloat 5.5s ease-in-out infinite;
  will-change: transform;
}
.sg-floating-rose-side.right {
  right: -18%;
  bottom: 25%;
  width: 38%;
  animation-delay: 0.6s;
}
.sg-floating-rose-side.left {
  left: -14%;
  top: 10%;
  width: 32%;
  animation-delay: 0.3s;
}
.sg-floating-rose-side.right-top {
  right: -14%;
  top: -10%;
  width: 30%;
  animation-delay: 0.9s;
}
.sg-floating-rose-img {
  width: 100%;
  filter: drop-shadow(3px 4px 4px rgba(0, 0, 0, 0.3));
}
.sg-crimson-title {
  font-family: var(--sg-font-heading);
  color: var(--sg-cream);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sg-hosts-intro {
  font-size: 13px;
  color: var(--sg-cream-muted);
}
.sg-hosts-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: var(--sg-cream);
}
.sg-host-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sg-host-prefix {
  font-size: 11px;
  color: var(--sg-cream-muted);
}
.sg-host-name {
  font-size: 13px;
  font-weight: 600;
}
.sg-hosts-divider {
  width: 1px;
  height: 44px;
  background-color: rgba(240, 244, 241, 0.4);
}
.sg-hosts-lead {
  font-size: 13px;
  color: var(--sg-cream);
  line-height: 1.5;
}
.sg-crimson-couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sg-cr-name {
  font-family: var(--sg-font-serif);
  color: var(--sg-cream);
  font-size: clamp(28px, 7vw, 36px);
}
.sg-cr-amp {
  font-family: "Ms Madi", cursive;
  color: var(--sg-gold);
  font-size: 28px;
}
.sg-crimson-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--sg-cream);
}
.sg-cr-weekday, .sg-cr-month-year {
  font-family: var(--sg-font-heading);
  font-size: 13px;
  text-transform: uppercase;
}
.sg-cr-sep {
  width: 1px;
  height: 42px;
  background: rgba(240, 244, 241, 0.45);
}
.sg-cr-big-day {
  font-family: "Times New Roman", serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}
.sg-crimson-time {
  font-family: var(--sg-font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sg-cream-muted);
}
.sg-gallery-section {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  text-align: center;
}
.sg-section-heading {
  font-family: var(--sg-font-heading);
  color: var(--sg-primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.sg-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}
.sg-gallery-card {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(91, 117, 97, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.sg-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sg-gallery-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}
.sg-gallery-collage .sg-gallery-card:nth-child(3n+1) {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}
.sg-gallery-3d {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 10px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  perspective: 1000px;
}
.sg-gallery-3d::-webkit-scrollbar { display: none; }
.sg-gallery-3d .sg-gallery-card {
  flex: 0 0 200px;
  aspect-ratio: 3 / 4;
  scroll-snap-align: center;
  transform: rotateY(-4deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.sg-reception-subtitle {
  font-size: 13px;
  color: var(--sg-cream-muted);
  text-transform: uppercase;
}
.sg-countdown-wrap {
  width: 100%;
  margin-top: 6px;
}
.sg-countdown-title {
  font-size: 11px;
  color: var(--sg-cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.sg-countdown-timer {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.sg-countdown-box {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(240, 244, 241, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 58px;
}
.sg-countdown-num {
  font-family: var(--sg-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--sg-cream);
}
.sg-countdown-lbl {
  font-size: 10px;
  color: var(--sg-cream-muted);
}
.sg-calendar-ivory-wrapper {
  background-color: var(--sg-cream);
  color: var(--sg-primary);
  border-radius: 10px;
  padding: 12px 18px 16px;
  width: 100%;
  max-width: 300px;
  margin: 10px auto 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.sg-cal-cursive-title {
  font-family: var(--sg-font-script);
  font-size: 28px;
  color: var(--sg-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}
.sg-cal-table {
  width: 100%;
  border-collapse: collapse;
}
.sg-cal-table th {
  font-size: 11px;
  color: rgba(91, 117, 97, 0.7);
  padding: 4px;
}
.sg-cal-table td {
  font-size: 13px;
  font-weight: 500;
  padding: 4px;
  text-align: center;
  height: 28px;
}
.sg-cal-table td.wedding-day {
  color: var(--sg-cream);
}
.sg-cal-day-badge {
  background: var(--sg-primary);
  color: var(--sg-cream);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.sg-add-cal-btn {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--sg-primary);
  font-family: var(--sg-font-body);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  width: fit-content;
  margin-inline: auto;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sg-rsvp-btn-container {
  margin-top: 6px;
}
.sg-rsvp-cream-btn {
  display: inline-block;
  background-color: var(--sg-cream);
  color: var(--sg-primary);
  font-family: var(--sg-font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 9px 32px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.sg-rsvp-cream-btn:hover { transform: scale(1.04); }
.sg-venue-section {
  position: relative;
  z-index: 10;
  padding: 34px 20px;
  text-align: center;
}
.sg-venue-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sg-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sg-venue-address {
  font-size: 13px;
  color: rgba(91, 117, 97, 0.8);
  margin-bottom: 16px;
}
.sg-map-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 22px;
  border: 1px solid var(--sg-primary);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sg-primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.sg-map-btn:active {
  transform: scale(0.98);
}
.sg-map-card {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--sg-primary);
  box-shadow: 0 6px 16px rgba(91, 117, 97, 0.15);
  background: #ffffff;
}
.sg-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(91, 117, 97, 0.05);
  border-bottom: 1px solid rgba(91, 117, 97, 0.12);
  font-size: 12px;
}
.sg-map-pin {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--sg-primary);
}
.sg-maps-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--sg-primary);
  text-decoration: underline;
  font-weight: 600;
}
.sg-map-frame iframe {
  width: 100%;
  height: 240px;
  border: none;
  display: block;
}
.sg-zigzag-timeline {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 26px auto 10px;
  padding: 8px 0;
  direction: ltr !important;
}
.sg-zigzag-line {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1.5px;
  background: rgba(236, 228, 216, 0.4);
  transform: translateX(-50%);
}
.sg-zigzag-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 26px;
  min-height: 48px;
}
.sg-zigzag-row:last-child {
  margin-bottom: 0;
}
.sg-zigzag-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  z-index: 2;
  box-sizing: border-box;
}
.sg-zigzag-dot.solid {
  background: #d4af37;
  border: 2px solid #d4af37;
}
.sg-zigzag-dot.ring {
  background: #2D4739;
  border: 2.5px solid #d4af37;
}
.sg-zigzag-side {
  width: 50%;
  box-sizing: border-box;
  display: flex;
}
.sg-zigzag-row.on-right .sg-zigzag-side.left {
  visibility: hidden;
}
.sg-zigzag-row.on-right .sg-zigzag-side.right {
  padding-left: 20px;
  padding-right: 0;
  justify-content: flex-start;
  align-items: flex-start;
}
.sg-zigzag-row.on-left .sg-zigzag-side.right {
  visibility: hidden;
}
.sg-zigzag-row.on-left .sg-zigzag-side.left {
  padding-right: 20px;
  padding-left: 0;
  justify-content: flex-end;
  align-items: flex-end;
}
.sg-zigzag-content {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  direction: rtl;
  text-align: right;
}
[dir="ltr"] .sg-zigzag-content {
  direction: ltr;
  text-align: left;
}
.sg-zigzag-time {
  font-family: var(--sg-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #e6c887;
  letter-spacing: 0.05em;
  line-height: 1.25;
}
.sg-zigzag-title {
  font-family: var(--sg-font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  word-break: break-word;
}
.sg-notes-section {
  width: 88%;
  max-width: 420px;
  margin: 24px auto;
  position: relative;
  z-index: 10;
}
.sg-notes-badge {
  font-weight: 700;
  color: var(--sg-primary);
  margin-bottom: 8px;
  font-size: 14px;
}
.sg-notes-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sg-note-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
}
.sg-guestbook-section {
  position: relative;
  z-index: 10;
  padding: 40px 16px;
  text-align: center;
  overflow: hidden;
}
.sg-papernote-bg {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 110%;
  max-width: 580px;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.2));
  z-index: 0;
}
.sg-guestbook-content {
  position: relative;
  z-index: 10;
  max-width: 360px;
  margin: 0 auto;
}
.sg-rsvp-sub-block {
  margin-bottom: 36px;
}
.sg-rsvp-lead {
  font-size: 13px;
  color: rgba(91, 117, 97, 0.85);
  margin-bottom: 16px;
}
.sg-guest-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(91, 117, 97, 0.25);
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 4px 14px rgba(91, 117, 97, 0.08);
}
.sg-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: start;
  margin-bottom: 12px;
}
.sg-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sg-primary);
}
.sg-input, .sg-textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--sg-primary);
  background: rgba(255, 255, 255, 0.7);
  color: var(--sg-primary);
  font-family: inherit;
  font-size: 14px;
}
.sg-textarea {
  height: 70px;
  resize: vertical;
}
.sg-count-field {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sg-count-field button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--sg-primary);
  background: var(--sg-primary);
  color: var(--sg-cream);
  font-size: 18px;
  cursor: pointer;
}
.sg-count-field input {
  text-align: center;
  width: 60px;
}
.sg-rsvp-choices {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.sg-rsvp-choice-btn {
  flex: 1;
  padding: 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--sg-primary);
  transition: all 0.2s ease;
}
.sg-rsvp-choice-btn.yes {
  background: var(--sg-primary);
  color: var(--sg-cream);
}
.sg-rsvp-choice-btn.no {
  background: transparent;
  color: var(--sg-primary);
}
.sg-rsvp-choice-btn.on {
  box-shadow: 0 0 0 3px var(--sg-gold);
}
.sg-send-wishes-btn {
  width: 100%;
  padding: 10px;
  background-color: var(--sg-primary);
  color: var(--sg-cream);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.wishes-alert {
  display: none;
  margin-top: 12px;
  padding: 8px;
  border-radius: 6px;
  background: #f3e8de;
  color: var(--sg-primary);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--sg-primary);
}
.sg-wishes-feed {
  margin-top: 24px;
  text-align: start;
}
.sg-wishes-feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sg-primary);
  margin-bottom: 12px;
}
.sg-wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}
.sg-wish-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(91, 117, 97, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
}
.sg-wish-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--sg-primary);
  margin-bottom: 4px;
}
.sg-wish-body {
  font-size: 13px;
  color: rgba(91, 117, 97, 0.9);
  line-height: 1.4;
}
.sg-footer-section {
  position: relative;
  z-index: 10;
  padding: 30px 20px 40px;
  text-align: center;
}
.sg-thanks-note {
  font-size: 14px;
  color: var(--sg-primary);
  margin-bottom: 12px;
  font-style: italic;
}
.sg-footer-couple-names {
  font-family: var(--sg-font-serif);
  font-size: 26px;
  color: var(--sg-primary);
  margin-bottom: 6px;
}
.sg-footer-date-venue {
  font-size: 12px;
  color: rgba(91, 117, 97, 0.7);
  margin-bottom: 16px;
}
.sg-golden-line {
  width: 55%;
  max-width: 220px;
  margin: 0 auto;
  display: block;
}
@media (pointer: coarse), (max-width: 760px) {
  .sg-add-cal-btn,
  .sg-maps-link,
  .sg-rsvp-cream-btn {
    min-height: 44px;
    padding-block: 10px;
    justify-content: center;
  }
  .sg-add-cal-btn { margin-top: 4px; }
  .count-step { min-width: 44px; min-height: 44px; }
  .sg-input { min-height: 44px; }
}
.rsvp-collapsed > *:not(.rsvp-open-btn) { display: none; }
.sg-guest-card:not(.rsvp-collapsed) .rsvp-open-btn { display: none; }
.rsvp-q label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sg-font-body);
  font-size: 13px;
  color: var(--sg-primary);
}
.rsvp-q select.sg-input {
  appearance: none;
  cursor: pointer;
  padding-inline-end: 34px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
}
[dir="rtl"] .rsvp-q select.sg-input {
  background-position: 18px calc(50% + 1px), 13px calc(50% + 1px);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .petal { display: none; }
}
.sg-envelope-title, .sg-couple-name, .sg-cr-name, .sg-crimson-couple-names,
.sg-footer-couple-names, .sg-host-name, .sg-names-wrapper {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sg-envelope-title,.sg-couple-name,.sg-cr-name,.sg-couple-large,.sg-footer-couple-names,.sg-footer-names{font-family:"Viaoda Libre","EB Garamond",'Reem Kufi',serif}
:root {
  --sg-fs-name-ar:"Gulzar";--sg-fs-name-la:"Great Vibes";--sg-fs-verse:"Scheherazade New";--sg-fs-body:"Alexandria";
  --sg-font-serif: "Viaoda Libre", "EB Garamond", var(--sg-fs-body), "Amiri", serif;
  --sg-font-script: "The Nautigal", var(--sg-fs-name-ar), "Amiri", cursive;
  --sg-font-heading: "Cormorant Garamond", var(--sg-fs-body), "Amiri", "Times New Roman", serif;
}
html[data-fs="festive"] { --sg-fs-name-ar:"Rakkas";--sg-fs-name-la:"Pinyon Script";--sg-fs-verse:"Amiri";--sg-fs-body:"IBM Plex Sans Arabic"; }
html[data-fs="elegant"] { --sg-fs-name-ar:"El Messiri";--sg-fs-name-la:"Cormorant Garamond";--sg-fs-verse:"Noto Naskh Arabic";--sg-fs-body:"Alexandria"; }
html[data-fs="modern"] { --sg-fs-name-ar:"Reem Kufi";--sg-fs-name-la:"Cormorant Garamond";--sg-fs-verse:"Scheherazade New";--sg-fs-body:"Readex Pro"; }
html[lang="ar"] { --sg-font-body: var(--sg-fs-body), "Amiri", sans-serif; }
.sg-quote-text { font-family: "Cormorant Garamond", var(--sg-fs-verse), "Amiri", serif; }
html[lang="ar"] :is(.sg-crimson-title, .sg-section-heading, .sg-venue-title, .sg-notes-badge, .sg-wishes-feed-header) { font-weight: 500; }
html[lang="ar"] :is(.sg-zigzag-title, .sg-note-item, .sg-host-name, .sg-quote-text) { font-weight: 400; }
html[lang="ar"] .sg-zigzag-title { font-size: 13px; }
html[lang="ar"] .sg-hosts-lead { max-width: 68%; }
@media (max-width: 600px) {
  .sg-floating-rose-side.right { width: 24%; right: -12%; }
  .sg-floating-rose-side.left { width: 20%; left: -12%; }
  .sg-polaroid-flower-wrap { width: 30%; left: -7%; top: -9%; }
}
.sg-envelope-title,.sg-couple-name,.sg-cr-name,.sg-couple-large,.sg-footer-couple-names,.sg-footer-names{font-family:var(--sg-fs-name-la),var(--sg-fs-name-ar),serif}
