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

:root {
  --cloud: #F0EAE7;
  --cloud-light: #F7F3F0;
  --cloud-warm: #E8DDD5;
  --blush: #F2D7D5;
  --sage: #D5DDD2;
  --heart: #E8B4B8;
  --text: #3C3632;
  --text-sub: #8A7E76;
  --text-light: #B5AAA1;
  --accent: #C4B5A7;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Gowun Batang', 'Nanum Myeongjo', 'Batang', serif;
  background: var(--cloud);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lang-el { font-family: 'Noto Serif', serif; }

img { display: block; max-width: 100%; height: auto; }

.lang-ko .el { display: none; }
.lang-el .ko { display: none; }

/* ── Language Toggle ── */
.lang-toggle {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 4px;
  box-shadow: 0 2px 16px rgba(60,54,50,0.08);
}

.lang-btn {
  padding: 12px 18px;
  border: none;
  background: transparent;
  border-radius: 24px;
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.35s ease;
  white-space: nowrap;
}

.lang-btn.active {
  background: var(--blush);
  color: var(--text);
}

/* ── Floating Hearts ── */
.hearts-container {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.float-heart {
  position: absolute;
  color: var(--heart);
  opacity: 0;
  will-change: transform, opacity;
  animation: heartFloat linear infinite;
}

@keyframes heartFloat {
  0%   { transform: translateY(105vh) translateX(0) rotate(0deg) scale(1); opacity: 0; }
  8%   { opacity: 0.5; }
  50%  { transform: translateY(50vh) translateX(20px) rotate(180deg) scale(0.8); opacity: 0.35; }
  92%  { opacity: 0.2; }
  100% { transform: translateY(-5vh) translateX(-15px) rotate(360deg) scale(0.6); opacity: 0; }
}

/* ── Cover ── */
.cover {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 36px 60px;
  position: relative;
}

.cover-deco {
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.3s forwards;
}

.cover-label {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--text-light);
  opacity: 0;
  animation: fadeUp 1s ease-out 0.6s forwards;
}

.cover-heading {
  font-family: 'Gowun Batang', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 8px 0 20px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.9s forwards;
}

body.lang-el .cover-heading {
  font-family: 'Noto Serif', serif;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
}

.cover-names {
  font-family: 'Noto Serif', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 1.2s ease-out 1.2s forwards;
}

.lang-ko .cover-names {
  font-family: 'Gowun Batang', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.cover-amp {
  color: var(--heart);
  font-family: 'Noto Serif', serif;
  font-size: 24px;
  font-weight: 300;
  display: block;
  margin: 4px 0;
}

.cover-bride-sub {
  display: block;
  font-size: 0.75em;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 2px;
  color: var(--text-sub);
}

.cover-date {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-sub);
  margin-top: 16px;
  opacity: 0;
  animation: fadeUp 1s ease-out 1.6s forwards;
}

.cover-venue {
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-sub);
  line-height: 1.9;
  margin-top: 6px;
  opacity: 0;
  animation: fadeUp 1s ease-out 2.6s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s ease-out 2.4s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

.scroll-hint.is-hidden {
  opacity: 0 !important;
}

.scroll-hint .scroll-line {
  display: block;
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, currentColor);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-hint .scroll-chevron {
  display: block;
  opacity: 0.7;
  animation: scrollBounce 2s ease-in-out infinite;
  animation-delay: 0.15s;
}

@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity: 0.3; }
  50%     { transform: translateY(8px); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Polaroid ── */
.polaroid-section {
  padding: 48px 36px;
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.polaroid {
  padding: 10px 10px 42px 10px;
  background: var(--white);
  box-shadow: 0 3px 18px rgba(60,54,50,0.09);
  position: relative;
  transition: transform 0.5s ease;
  max-width: 300px;
  width: 80%;
}

.polaroid img {
  width: 100%;
  display: block;
}

.polaroid-caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text-light);
}

.tilt-l  { transform: rotate(-2.5deg); }
.tilt-r  { transform: rotate(2deg); }
.tilt-sl { transform: rotate(-0.8deg); }

.polaroid-section.in-view .tilt-l  { transform: rotate(-2.5deg) scale(1); }
.polaroid-section.in-view .tilt-r  { transform: rotate(2deg) scale(1); }

/* ── Text Sections ── */
.section-text {
  padding: 64px 36px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.dot-divider {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px 0;
}

.dot-divider span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.invitation-text {
  font-size: 15px;
  line-height: 2.2;
  color: var(--text);
  word-break: keep-all;
}

body.lang-el .invitation-text {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  line-height: 2;
}

/* ── Couple ── */
.couple-section {
  padding: 64px 36px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.couple-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.couple-side { flex: 1; text-align: center; }

.couple-role {
  font-family: 'Noto Serif', serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.couple-parents {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 12px;
}

body.lang-el .couple-parents {
  font-family: 'Noto Serif', serif;
  font-size: 12px;
}

.couple-name {
  font-family: 'Gowun Batang', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 4px;
  line-height: 1.5;
}

body.lang-ko .couple-name.ko,
body.lang-el .couple-name.el {
  min-height: 3em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.lang-el .couple-name {
  font-family: 'Noto Serif', serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
}

.couple-name-en {
  font-family: 'Noto Serif', serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-sub);
  margin-top: 4px;
}

.couple-heart {
  flex-shrink: 0;
  margin-top: 48px;
  animation: heartPulse 2s ease-in-out infinite;
  color: var(--heart);
  font-size: 18px;
  line-height: 1;
}

@keyframes heartPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.2); }
}

/* ── Calendar & Countdown ── */
.calendar-section {
  padding: 64px 36px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.calendar-month {
  font-family: 'Noto Serif', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin: 24px auto;
  max-width: 300px;
}

.cal-h {
  font-family: 'Noto Serif', serif;
  font-size: 12px;
  color: var(--text-light);
  padding: 6px 0;
  text-align: center;
}

.cal-h.sun { color: #C48B7A; }
.cal-h.sat { color: #7A9CC4; }

.cal-d {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  padding: 7px 0;
  text-align: center;
  color: var(--text-sub);
  position: relative;
}

.cal-d.sun { color: #C48B7A; }
.cal-d.sat { color: #7A9CC4; }
.cal-d.empty { visibility: hidden; }

.cal-d.wedding {
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}

.cal-d.wedding {
  overflow: visible;
}

.cal-d.wedding::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-45%);
  width: 42px; height: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23F2D7D5' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
  pointer-events: none;
}

.calendar-info {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-top: 8px;
}

body.lang-el .calendar-info {
  font-family: 'Noto Serif', serif;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.cd-item { text-align: center; }

.cd-num {
  font-family: 'Noto Serif', serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.cd-label {
  font-family: 'Noto Serif', serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-top: 4px;
}

.cd-dot {
  font-family: 'Noto Serif', serif;
  font-size: 24px;
  color: var(--heart);
  align-self: flex-start;
  margin-top: 6px;
}

/* ── Location ── */
.location-section {
  padding: 64px 36px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.location-name {
  font-family: 'Gowun Batang', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

body.lang-el .location-name {
  font-family: 'Noto Serif', serif;
  font-weight: 600;
}

.location-detail {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}

body.lang-el .location-detail {
  font-family: 'Noto Serif', serif;
}

.location-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.map-btn {
  display: inline-block;
  padding: 9px 18px;
  font-family: 'Gowun Batang', serif;
  font-size: 13px;
  color: var(--text);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--cloud-warm);
  border-radius: 22px;
  text-decoration: none;
  transition: background 0.2s;
}

.map-btn:active { background: var(--blush); }

/* ── Gallery ── */
.gallery-section {
  padding: 64px 24px;
  max-width: 480px;
  margin: 0 auto;
}

.gallery-section .section-label { text-align: center; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.gallery-polaroid {
  padding: 8px 8px 34px 8px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(60,54,50,0.07);
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.gallery-polaroid:active { transform: scale(0.97) !important; }

.gallery-polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.gallery-polaroid:nth-child(1) { transform: rotate(-1.5deg); }
.gallery-polaroid:nth-child(2) { transform: rotate(2deg); margin-top: 20px; }
.gallery-polaroid:nth-child(3) { transform: rotate(1deg); }
.gallery-polaroid:nth-child(4) { transform: rotate(-2deg); margin-top: 20px; }
.gallery-polaroid:nth-child(5) { transform: rotate(-0.5deg); }
.gallery-polaroid:nth-child(6) { transform: rotate(1.8deg); margin-top: 20px; }

/* ── RSVP ── */
.rsvp-section {
  padding: 64px 36px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.rsvp-card { margin-top: 28px; text-align: left; }

/* Attend toggle */
.rf-attend { display: flex; gap: 12px; margin-bottom: 8px; }
.rf-attend-opt { flex: 1; cursor: pointer; }
.rf-attend-opt input { display: none; }

.rf-attend-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 16px; border: 1px solid var(--cloud-warm); border-radius: 8px;
  font-size: 15px; font-weight: 700; color: var(--text-light);
  background: rgba(255,255,255,0.3); transition: all 0.25s;
}

.rf-attend-opt input:checked + .rf-attend-btn {
  background: var(--text); color: var(--white); border-color: var(--text);
}

/* Check circle (shared by attend & meal) */
.rf-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid currentColor; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}

.rf-attend-opt input:checked + .rf-attend-btn .rf-check,
.rf-meal-opt input:checked + .rf-meal-btn .rf-check {
  background: var(--white); border-color: var(--white);
}

.rf-attend-opt input:checked + .rf-attend-btn .rf-check::after,
.rf-meal-opt input:checked + .rf-meal-btn .rf-check::after {
  content: '\2713'; font-size: 12px; font-weight: 700; color: var(--text); line-height: 1;
}

/* Field groups */
.rf-group { padding: 20px 0 16px; border-bottom: 1px solid #E8E2DD; }
.rf-group-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }

.rf-label {
  font-size: 13px; font-weight: 700; color: var(--text); display: block; margin-bottom: 4px;
}
.rf-label-inline { margin-bottom: 0; }
.rf-req { color: var(--heart); }

.rf-input {
  width: 100%; padding: 10px 0; border: none;
  border-bottom: 1px solid #DDD5CE; background: transparent;
  font-family: 'Gowun Batang', serif; font-size: 14px;
  color: var(--text); outline: none; transition: border-color 0.3s;
}
body.lang-el .rf-input { font-family: 'Noto Serif', serif; }
.rf-input:focus { border-bottom-color: var(--heart); }
.rf-input::placeholder { color: var(--text-light); font-weight: 400; }

/* Side (groom/bride) */
.rf-side { display: flex; gap: 16px; }
.rf-side label {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-sub); cursor: pointer;
}
.rf-side input { display: none; }
.rf-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--text-light); display: inline-block;
  position: relative; transition: all 0.2s;
}
.rf-side input:checked + .rf-dot { border-color: var(--text); }
.rf-side input:checked + .rf-dot::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--text);
}

/* Stepper */
.rf-stepper-row {
  display: flex; align-items: center; justify-content: space-between; padding: 4px 0;
}
.rf-stepper { display: flex; align-items: center; gap: 28px; }
.rf-step-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--cloud-warm); background: transparent;
  font-size: 18px; color: var(--text-sub); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; line-height: 1;
}
.rf-step-btn:active { background: rgba(255,255,255,0.6); }
.rf-step-val {
  font-family: 'Noto Serif', serif; font-size: 20px;
  font-weight: 600; color: var(--text); min-width: 24px; text-align: center;
}

/* Meal toggle */
.rf-meal { display: flex; gap: 12px; margin-top: 12px; }
.rf-meal-opt { flex: 1; cursor: pointer; }
.rf-meal-opt input { display: none; }

.rf-meal-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border: 1px solid var(--cloud-warm); border-radius: 8px;
  font-size: 14px; color: var(--text-sub);
  background: rgba(255,255,255,0.3); transition: all 0.25s;
}

.rf-meal-opt input:checked + .rf-meal-btn {
  background: var(--text); color: var(--white); border-color: var(--text);
}

/* Attend-only fields */
.rf-if-attend {
  overflow: hidden; max-height: 200px; opacity: 1;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, border-width 0.35s ease;
}
.rf-if-attend.rf-hidden {
  max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0;
}

/* Submit */
.rf-submit {
  display: block; width: 100%; padding: 18px; margin-top: 32px;
  border: none; border-radius: 8px; background: var(--cloud-warm);
  font-family: 'Gowun Batang', serif; font-size: 15px; font-weight: 700;
  color: var(--text-light); cursor: pointer; transition: all 0.3s;
}
body.lang-el .rf-submit { font-family: 'Noto Serif', serif; }
.rf-submit.rf-active { background: var(--text); color: var(--white); }
.rf-submit:disabled { opacity: 0.5; cursor: default; }

.rf-status {
  text-align: center; margin-top: 16px; font-size: 13px;
  color: var(--text-sub); min-height: 20px;
}
.rf-status.success { color: var(--text); }
.rf-status.error { color: #C48B7A; }

/* ── Accounts ── */
.accounts-section {
  padding: 64px 36px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.account-group { margin-top: 24px; }

.account-toggle {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--cloud-warm);
  border-radius: 28px;
  font-family: 'Gowun Batang', serif;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 6px;
}

body.lang-el .account-toggle {
  font-family: 'Noto Serif', serif;
  font-size: 13px;
}

.account-toggle:active { background: rgba(255,255,255,0.9); }

.account-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.account-details.open { max-height: 500px; }

.account-card {
  background: rgba(255,255,255,0.5);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-info { text-align: left; }
.account-label { font-size: 11px; color: var(--heart); font-weight: 700; margin-bottom: 2px; }
.account-bank { font-size: 11px; color: var(--text-light); }

.account-number {
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  color: var(--text);
  margin: 2px 0;
}

.account-holder { font-size: 12px; color: var(--text-sub); }

.copy-btn {
  padding: 12px 16px;
  border: 1px solid var(--blush);
  border-radius: 20px;
  background: transparent;
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn.copied {
  background: var(--blush);
  color: var(--text);
  border-color: var(--blush);
}

/* ── Footer ── */
.footer-section {
  padding: 64px 36px 100px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.footer-msg {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 2;
}

body.lang-el .footer-msg {
  font-family: 'Noto Serif', serif;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 12px 28px;
  border: 1px solid var(--blush);
  border-radius: 28px;
  background: transparent;
  font-family: 'Noto Serif', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:active {
  background: var(--blush);
}

.speech-link {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 4px;
  color: var(--text-sub);
  font-family: 'Noto Serif', serif;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid rgba(138,126,118,0.32);
}

body.lang-el .speech-link {
  font-family: 'Noto Serif', serif;
}

.footer-names {
  margin-top: 40px;
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--text-light);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26,26,26,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.lightbox.active { display: flex; opacity: 1; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 2px;
}

.lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer;
}

.lb-close::before, .lb-close::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 1px;
  background: rgba(255,255,255,0.7);
}

.lb-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.lb-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }

/* ── Scroll Reveal ── */
/* Only hide elements when JS is confirmed loaded */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-ready .reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 36px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--text);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 24px;
  font-family: 'Noto Serif', serif;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 300;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 320px narrow screens ── */
@media (max-width: 360px) {
  .couple-row { flex-direction: column; gap: 32px; }
  .couple-heart { margin-top: 0; }
  .couple-section { padding: 64px 24px; }
  .section-text { padding: 64px 24px; }
  .calendar-section { padding: 64px 24px; }
  .accounts-section { padding: 64px 24px; }
  .cover { padding: 80px 24px 60px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .float-heart { display: none; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .cover-deco, .cover-label, .cover-heading, .cover-names, .cover-date, .cover-venue, .scroll-hint {
    opacity: 1; animation: none;
  }
  .couple-heart { animation: none; }
  .scroll-hint .scroll-line,
  .scroll-hint .scroll-chevron { animation: none; }
}
