/* Minimalism Green — match ChungDoi demo layout */

:root {
  --mg-sage: #6b7b4f;
  --mg-sage-mid: #87a172;
  --mg-sage-soft: #cdd9bd;
  --mg-sage-pale: #e9efe1;
  --mg-ink: #272e13;
  --mg-white: #ffffff;
  --mg-font-display: "Cormorant Garamond", "Times New Roman", serif;
  --mg-font-serif: "Libre Baskerville", Baskerville, "Times New Roman", serif;
  --mg-font-script: "Great Vibes", "Segoe Script", cursive;
  --mg-font-body: "Outfit", system-ui, sans-serif;
  --mg-max: 480px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mg-body {
  margin: 0;
  font-family: var(--mg-font-body);
  font-weight: 300;
  color: var(--mg-sage);
  background: #f3f1eb;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.mg-app {
  position: relative;
  max-width: var(--mg-max);
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--mg-white);
  color: var(--mg-sage);
  isolation: isolate;
}

.mg-app.is-locked {
  overflow: hidden;
  height: 100vh;
}

.mg-section { position: relative; z-index: 10; }

.mg-heading {
  margin: 0;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mg-heading--sage { color: var(--mg-sage); }
.mg-heading--white { color: #fff; }

/* —— Cover / intro (stil ChungDoi) —— */
.mg-cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #e9efe1, #dbe6cf, #cdd9bd);
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.9s ease;
}

.mg-cover.is-open {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8%) scale(1.02);
  pointer-events: none;
}

.mg-cover__leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.mg-cover__leaf {
  position: absolute;
  top: -30px;
  line-height: 1;
  will-change: transform;
}

.mg-cover__leaf svg {
  display: block;
}

.mg-cover__wrap {
  position: relative;
  z-index: 10;
  width: min(310px, calc(100vw - 2rem));
  animation: mg-rise 1s ease both;
}

.mg-cover__seal {
  position: absolute;
  left: 50%;
  top: 50px;
  z-index: 30;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #6b7b4f, rgb(77, 93, 49));
  box-shadow: 0 4px 20px rgba(107, 123, 79, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: mg-seal-pulse 2s ease-in-out infinite;
}

.mg-cover__seal-heart {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.mg-cover__card {
  position: relative;
  border-radius: 8px;
  box-shadow:
    0 25px 60px -12px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(107, 123, 79, 0.15);
}

.mg-cover__decor {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(107, 123, 79, 0.15);
  clip-path: inset(0 round 8px);
  pointer-events: none;
}

.mg-cover__bloom {
  position: absolute;
  display: block;
  width: 220px;
  pointer-events: none;
  opacity: 0.3;
}

.mg-cover__bloom img {
  width: 100%;
  height: auto;
  display: block;
}

.mg-cover__bloom--tr {
  top: -40px;
  right: -70px;
  transform-origin: right top;
}

.mg-cover__bloom--tr img {
  transform: rotate(200deg);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 40%, transparent 70%);
  mask-image: linear-gradient(to top, black 0%, black 40%, transparent 70%);
}

.mg-cover__bloom--bl {
  bottom: -40px;
  left: -70px;
  transform-origin: left bottom;
}

.mg-cover__bloom--bl img {
  transform: rotate(20deg);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 70%);
  mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 70%);
}

.mg-cover__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 7rem 1.5rem 3.5rem;
}

.mg-cover__names {
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  color: #6b7b4f;
}

.mg-cover__name {
  display: block;
  width: 100%;
  font-family: var(--mg-font-script);
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 2.75rem);
}

.mg-cover__amp {
  display: block;
  width: 100%;
  font-family: var(--mg-font-serif);
  font-size: 1.125rem;
  line-height: 1;
  color: #6b7b4f;
}

.mg-cover__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
}

.mg-cover__rule {
  width: 40px;
  height: 1px;
}

.mg-cover__rule--l {
  background: linear-gradient(to right, transparent, #6b7b4f);
}

.mg-cover__rule--r {
  background: linear-gradient(to left, transparent, #6b7b4f);
}

.mg-cover__fleur {
  color: #6b7b4f;
  opacity: 0.7;
  font-size: 0.875rem;
  line-height: 1;
}

.mg-cover__date {
  margin: 0 0 1.25rem;
  font-family: var(--mg-font-serif);
  font-size: 18px;
  color: rgba(107, 123, 79, 0.7);
}

.mg-cover__greeting {
  margin: 0 0 1.5rem;
  font-family: var(--mg-font-serif);
  font-size: 18px;
  font-weight: 300;
  color: rgba(107, 123, 79, 0.7);
}

.mg-cover__open {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 2rem;
  background: #6b7b4f;
  color: #fff;
  font-family: var(--mg-font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(107, 123, 79, 0.35);
}

.mg-cover__open::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: mg-shine 3s ease-in-out infinite;
  pointer-events: none;
}

@media (min-width: 640px) {
  .mg-cover__wrap { width: 340px; }
  .mg-cover__content { padding: 6rem 1.5rem 2rem; }
  .mg-cover__name { font-size: 2.5rem; }
  .mg-cover__amp { font-size: 1.25rem; }
  .mg-cover__bloom { width: 260px; }
}

@media (min-width: 768px) {
  .mg-cover__wrap { width: 520px; }
  .mg-cover__bloom { width: 300px; }
}

@media (min-width: 1024px) {
  .mg-cover__wrap { width: 600px; }
}

/* —— Save The Date —— */
.mg-std {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.mg-std__paper {
  position: absolute;
  inset: 0;
  background-image: url("../images/paper.webp");
  background-size: 100%;
  background-position: left top;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.mg-std__bloom {
  position: absolute;
  left: -50%;
  top: -20px;
  width: 160%;
  max-width: none;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.mg-std__label {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--mg-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mg-sage);
  white-space: pre-line;
}

.mg-std__line {
  position: relative;
  z-index: 1;
  width: 124px;
  max-width: 45%;
  margin-top: 0.75rem;
  height: auto;
}

.mg-std__stage {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  aspect-ratio: 268 / 317;
  width: 77%;
  max-width: 326px;
}

.mg-std__envelope {
  position: absolute;
  left: 0;
  top: 7.9%;
  width: 100%;
  max-width: none;
  z-index: 10;
  pointer-events: none;
}

.mg-std__cut {
  position: absolute;
  left: 0;
  top: 45.4%;
  width: 100%;
  max-width: none;
  z-index: 30;
  pointer-events: none;
}

.mg-std__polaroid {
  position: absolute;
  z-index: 20;
  width: 56%;
  will-change: transform;
}

.mg-std__polaroid--groom {
  left: 72%;
  top: 3%;
  animation: mgFloatG 4s ease-in-out infinite;
}

.mg-std__polaroid--bride {
  left: 31.7%;
  top: 20%;
  animation: mgFloatB 4.6s ease-in-out infinite;
}

.mg-std__frame {
  aspect-ratio: 150 / 180;
  border: 6px solid #fff;
  background: #fff;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

.mg-std__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mg-std__names {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.mg-std__name {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: clamp(41px, 12vw, 54px);
  color: var(--mg-sage);
  line-height: 1.05;
}

.mg-std__amp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mg-font-script);
  font-size: 120px;
  line-height: 1;
  color: rgba(107, 123, 79, 0.15);
  pointer-events: none;
}

@keyframes mgFloatG {
  0%, 100% { transform: translate(-50%, 0) rotate(9.59deg); }
  50% { transform: translate(-50%, -8px) rotate(9.59deg); }
}

@keyframes mgFloatB {
  0%, 100% { transform: translate(-50%, 0) rotate(-12.55deg); }
  50% { transform: translate(-50%, -8px) rotate(-12.55deg); }
}

/* —— Ceremony Info —— */
.mg-ceremony-info { padding: 0.5rem 0 1.5rem; }

.mg-ceremony-info__panel {
  position: relative;
  width: 88%;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 200px 200px 10px 10px;
  padding: 3.5rem 1rem 2.5rem;
  text-align: center;
  color: #fff;
}

.mg-ceremony-info__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #87a172;
}

.mg-ceremony-info__paper {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-size: 666.5px 1000px;
  background-position: left top;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.mg-ceremony-info__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mg-ceremony-info__heading {
  margin: 0;
  max-width: 240px;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.mg-ceremony-info__parents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  width: 100%;
  font-family: var(--mg-font-serif);
}

.mg-ceremony-info__parents.is-single .mg-ceremony-info__family {
  flex: 0 1 auto;
}

.mg-ceremony-info__family {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mg-ceremony-info__muted { font-size: 12px; color: rgba(255,255,255,0.7); }
.mg-ceremony-info__parent-name { font-size: 14px; font-weight: 700; white-space: nowrap; color: #fff; }
.mg-ceremony-info__addr { margin-top: 0.25rem; font-size: 10px; line-height: 1.25; color: rgba(255,255,255,0.7); }
.mg-ceremony-info__divider { width: 1px; height: 50px; background: rgba(255,255,255,0.4); }

.mg-ceremony-info__announce {
  margin: 0;
  font-family: var(--mg-font-serif);
  font-size: 12px;
  color: #fff;
  white-space: pre-line;
  text-transform: uppercase;
}

.mg-ceremony-info__couple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.mg-ceremony-info__fullname {
  margin: 0;
  width: 90%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mg-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.85rem, 8vw, 2.5rem);
  line-height: 1.2;
  color: #fff;
}

.mg-ceremony-info__role {
  font-family: var(--mg-font-serif);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.mg-ceremony-info__amp {
  font-family: "Times New Roman", Times, serif;
  font-size: 30px;
  color: #fff;
}

.mg-ceremony-info__when {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-family: var(--mg-font-serif);
}

.mg-ceremony-info__place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
}

.mg-ceremony-info__place-title {
  font-size: 16px;
  white-space: pre-line;
  text-align: center;
  text-transform: uppercase;
}

.mg-ceremony-info__at {
  margin: 0 0 0.5rem;
  font-size: 16px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.mg-ceremony-info__time { font-size: 20px; color: #fff; }

.mg-ceremony-info__date-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #fff;
}

.mg-ceremony-info__dow,
.mg-ceremony-info__mon { font-size: 12px; text-transform: uppercase; }
.mg-ceremony-info__day { font-size: 30px; line-height: 1; }
.mg-ceremony-info__pipe { font-size: 24px; color: rgba(255,255,255,0.5); }
.mg-ceremony-info__year { font-size: 18px; color: #fff; }

/* —— Album —— */
.mg-album {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
}

.mg-album__grid {
  margin-top: 1.25rem;
  width: 100%;
  max-width: 380px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mg-album__item {
  position: relative;
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(107, 123, 79, 0.05);
  cursor: pointer;
}

.mg-album__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.mg-album__item:hover img { transform: scale(1.03); }

.mg-album__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}

/* —— Reception —— */
.mg-reception { padding: 0.5rem 0 1rem; }

.mg-reception__card {
  position: relative;
  width: 88%;
  max-width: 420px;
  margin: 0 auto;
  border: 3px solid var(--mg-sage);
  border-radius: 10px;
  padding: 2rem 1rem;
  overflow: hidden;
}

.mg-reception__bg {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #fff;
}

.mg-reception__paper {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background-size: 666.5px 1000px;
  background-position: left top;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.mg-reception__bloom {
  position: absolute;
  width: 180%;
  left: -40%;
  top: -30%;
  opacity: 0.1;
  pointer-events: none;
  transform: rotate(24.65deg);
}

.mg-reception__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mg-reception__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-family: var(--mg-font-serif);
  color: var(--mg-sage);
  width: 100%;
}

.mg-reception__intro {
  margin: 0;
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--mg-sage);
  font-family: var(--mg-font-serif);
}

.mg-reception__time {
  font-size: 20px;
  color: var(--mg-sage-mid);
}

.mg-reception__date-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: "Times New Roman", Times, serif;
  color: var(--mg-sage);
  font-size: 12px;
  text-transform: uppercase;
}

.mg-reception__bar {
  width: 2px;
  height: 1.5rem;
  background: var(--mg-sage);
}

.mg-reception__daynum {
  font-family: var(--mg-font-serif);
  font-size: 30px;
  text-transform: none;
}

.mg-reception__year {
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
}

.mg-reception__slot {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mg-reception__slot-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mg-sage-mid);
}

.mg-reception__slot-time {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  color: var(--mg-sage);
}

.mg-reception__countdown h2 {
  margin: 1rem 0 0;
  font-family: var(--mg-font-serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--mg-sage-mid);
}

.mg-reception__countdown-text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--mg-sage-mid);
  font-family: var(--mg-font-serif);
}

.mg-cal {
  margin-top: 0.75rem;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 10px;
  padding: 0.25rem 0.75rem 0.75rem;
  background: var(--mg-sage-mid);
  color: #fff;
}

.mg-cal__month {
  text-align: center;
  padding: 0.625rem 0;
  font-family: var(--mg-font-script);
  font-size: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.27);
}

.mg-cal__weekdays,
.mg-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.mg-cal__weekdays {
  border-bottom: 2px solid #fff;
}

.mg-cal__weekdays span {
  text-align: center;
  padding: 0.375rem 0;
  font-size: 10px;
  opacity: 0.6;
}

.mg-cal__grid { gap: 0.125rem 0; padding: 0.5rem 0.25rem; }

.mg-cal__cell,
.mg-cal__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-size: 12px;
}

.mg-cal__heart {
  position: relative;
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mg-cal__heart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #fff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

.mg-cal__heart span {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  color: #333;
}

.mg-reception__calendar-link {
  margin-top: 0.75rem;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.875rem;
  color: var(--mg-sage);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mg-reception__rsvp {
  width: 100%;
  margin-top: 0.25rem;
}

.mg-rsvp-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.mg-rsvp-block__text {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(107, 123, 79, 0.8);
  font-family: var(--mg-font-serif);
}

/* —— Map —— */
.mg-map-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
}

.mg-map-sec__addr {
  margin: 0.5rem auto 0;
  max-width: 280px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mg-ink);
  font-family: var(--mg-font-serif);
}

.mg-map-sec__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--mg-sage);
  text-decoration: underline;
  font-family: var(--mg-font-serif);
}

.mg-map-sec__frame {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 338px;
  height: 268px;
  border: 1px solid var(--mg-sage);
  border-radius: 15px;
  overflow: hidden;
  background: #e9efe1;
  z-index: 1;
}

.mg-map-sec__frame .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

/* —— Dress —— */
.mg-dress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 1.5rem;
}

.mg-dress__head { text-align: center; }
.mg-dress__text {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--mg-ink);
  font-family: "Times New Roman", Times, serif;
}

.mg-dress__swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.mg-dress__swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.mg-dress__swatch.has-border {
  border: 1.5px solid rgba(107, 123, 79, 0.19);
}

/* —— Schedule —— */
.mg-schedule { padding: 1rem 0 1.5rem; }

.mg-schedule__panel {
  position: relative;
  width: 88%;
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px 100px 10px 100px;
  padding: 2.25rem 1.5rem;
}

.mg-schedule__bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #87a172;
}

.mg-schedule__paper {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-size: 666.5px 1000px;
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.mg-schedule__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mg-schedule__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 2rem;
  font-family: "Times New Roman", Times, serif;
  color: #fff;
}

.mg-schedule__item { display: contents; }

.mg-schedule__time {
  position: relative;
  text-align: right;
  font-size: 16px;
  letter-spacing: 0.04em;
  tabular-nums: true;
  font-variant-numeric: tabular-nums;
}

.mg-schedule__icon {
  position: absolute;
  top: 50%;
  right: 100%;
  margin-right: 24px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.mg-schedule__rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.mg-schedule__line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  top: -2rem;
  bottom: -2rem;
  background: rgba(255,255,255,0.4);
}

.mg-schedule__item:first-child .mg-schedule__line { top: 50%; }
.mg-schedule__item:last-child .mg-schedule__line { bottom: 50%; }

.mg-schedule__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.13);
}

.mg-schedule__label { font-size: 13px; }

/* —— Forms / RSVP —— */
.mg-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
  margin-top: 0.75rem;
  text-align: left;
}

.mg-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mg-sage);
}

.mg-form__field--full { grid-column: 1 / -1; }

.mg-form input,
.mg-form select,
.mg-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(107, 123, 79, 0.28);
  border-radius: 10px;
  background: #f7f5f0;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: #3d4236;
}

.mg-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  background: var(--mg-sage);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.08em;
  font-family: var(--mg-font-serif);
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.mg-btn:hover { transform: scale(1.03); }

.mg-btn--confirm {
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
}

.mg-btn--ghost {
  background: transparent;
  color: var(--mg-sage);
  border: 1px solid rgba(107, 123, 79, 0.28);
}

.mg-rsvp__question {
  margin: 0;
  text-align: center;
  font-family: var(--mg-font-display);
  font-size: 1.15rem;
  color: var(--mg-sage);
}

.mg-rsvp__choices {
  display: grid;
  gap: 0.65rem;
}

.mg-rsvp__choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f7f5f0;
  border: 1.5px solid rgba(107, 123, 79, 0.28);
  border-radius: 12px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
  color: #3d4236;
}

.mg-rsvp__choice:has(input:checked) {
  border-color: var(--mg-sage);
  background: var(--mg-sage-pale);
}

.mg-rsvp__choice input { accent-color: var(--mg-sage); width: 1.1rem; height: 1.1rem; }

.mg-form__hint {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(61,66,54,0.65);
}

.mg-guests-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem auto 0;
  padding: 0.35rem;
  background: #f7f5f0;
  border: 1px solid rgba(107, 123, 79, 0.28);
  border-radius: 999px;
  width: 100%;
  max-width: 220px;
}

.mg-guests-stepper__btn {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: var(--mg-sage);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

.mg-guests-stepper input {
  width: 3rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--mg-font-display);
  font-size: 1.5rem;
  color: var(--mg-sage);
  padding: 0;
}

.mg-form__status { margin: 0; text-align: center; font-size: 0.9rem; text-transform: none; letter-spacing: normal; }
.mg-form__status.is-ok { color: var(--mg-sage); }
.mg-form__status.is-error { color: #8b3a3a; }

/* —— Footer —— */
.mg-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem 3rem;
}

.mg-footer__note {
  margin: 0 0 0.5rem;
  font-family: var(--mg-font-script);
  font-size: 1.4rem;
  color: var(--mg-sage-mid);
}

.mg-footer__thanks {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  color: var(--mg-sage);
  white-space: pre-line;
}

.mg-footer__credit {
  margin: 1.25rem 0 0;
  font-family: var(--mg-font-sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(107, 123, 79, 0.55);
}

.mg-footer__heart {
  color: #c45c5c;
  font-style: normal;
}

.mg-footer__names { display: none; }

.mg-reception__venue {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mg-ink);
  font-family: var(--mg-font-serif);
}

/* —— Music / Lightbox —— */
.mg-music {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(107, 123, 79, 0.28);
  border-radius: 50%;
  background: #fff;
  color: var(--mg-sage);
  box-shadow: 0 8px 24px rgba(107, 123, 79, 0.15);
  cursor: pointer;
}

.mg-music[aria-pressed="true"] { background: var(--mg-sage); color: #fff; }

.mg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 1.5rem;
}

.mg-lightbox[hidden] { display: none !important; }
.mg-lightbox__img {
  max-width: min(920px, 88vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  user-select: none;
}
.mg-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.mg-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.mg-lightbox__nav[hidden] { display: none !important; }
.mg-lightbox__nav--prev { left: 0.75rem; }
.mg-lightbox__nav--next { right: 0.75rem; }
.mg-lightbox__nav:hover { background: rgba(0, 0, 0, 0.55); }
.mg-lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.mg-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.mg-reveal.is-visible { opacity: 1; transform: none; }

@keyframes mg-shine {
  0%, 40% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(220%); }
}

@keyframes mg-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes mg-seal-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes mg-ambient-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 0.85; }
  100% {
    transform: translate3d(var(--sway, 10px), 110vh, 0) rotate(360deg);
    opacity: 0.1;
  }
}

@media (min-width: 640px) {
  :root { --mg-max: 560px; }

  .mg-std__label { font-size: 24px; }
  .mg-std__line { width: 161px; margin-top: 1rem; }
  .mg-std__stage { max-width: 425px; margin-top: 1.5rem; }
  .mg-std__name { font-size: 70px; }
  .mg-std__amp { font-size: 156px; }

  .mg-ceremony-info__panel,
  .mg-reception__card,
  .mg-schedule__panel { max-width: 560px; }

  .mg-ceremony-info__panel { border-radius: 999px 999px 10px 10px; }
  .mg-ceremony-info__fullname { font-size: 40px; line-height: 60px; }
  .mg-ceremony-info__time { font-size: 30px; }
  .mg-ceremony-info__day { font-size: 40px; }
  .mg-ceremony-info__year { font-size: 24px; }
  .mg-ceremony-info__dow,
  .mg-ceremony-info__mon { font-size: 16px; }

  .mg-album__grid { max-width: 600px; gap: 1.5rem; }

  .mg-reception__intro { font-size: 26px; }
  .mg-reception__time { font-size: 30px; }
  .mg-reception__date-row { font-size: 16px; }
  .mg-reception__daynum { font-size: 40px; }
  .mg-reception__year { font-size: 24px; }
  .mg-reception__countdown-text { font-size: 1.125rem; }

  .mg-map-sec__frame { max-width: 560px; height: 380px; }
  .mg-map-sec__addr { max-width: 440px; font-size: 14px; }

  .mg-dress__swatch { width: 3rem; height: 3rem; }
  .mg-schedule__label { font-size: 15px; }
  .mg-schedule__time { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
