/* ===== VARIABLES ===== */
:root {
  --bg: #faf7f2;
  --bg-green: #f0ebe4;
  --bg-warm: #f5efe8;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.88);
  --line: rgba(140, 120, 100, 0.12);
  --ink: #2c2420;
  --ink-soft: #5a4d44;
  --muted: #8a7968;
  --accent: #6a7d6e;
  --accent-light: #8aaa92;
  --accent-soft: #c8d4c0;
  --forest: #3d5a4c;
  --forest-deep: #2a4438;
  --gold: #c4a265;
  --warm: #d4a07a;
  --warm-light: #f0d8c4;
  --warm-soft: #e8cdb8;
  --terracotta: #c48868;
  --blush: #e8c4b0;
  --hero-bg: #3d5a4c;
  --shadow-sm: 0 2px 8px rgba(80, 60, 40, 0.06);
  --shadow-md: 0 8px 32px rgba(80, 60, 40, 0.08);
  --shadow-lg: 0 20px 60px rgba(80, 60, 40, 0.1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --container: 1080px;
}

/* ===== COLOR PALETTES ===== */

/* Sage (default green — explicit palette in case user selects it) */
[data-palette="sage"] {
  --bg: #faf7f2;
  --bg-green: #f0ebe4;
  --bg-warm: #f5efe8;
  --ink: #2c2420;
  --ink-soft: #5a4d44;
  --muted: #8a7968;
  --accent: #6a7d6e;
  --accent-light: #8aaa92;
  --accent-soft: #c8d4c0;
  --forest: #3d5a4c;
  --forest-deep: #2a4438;
  --gold: #c4a265;
  --warm: #d4a07a;
  --warm-light: #f0d8c4;
  --warm-soft: #e8cdb8;
  --terracotta: #c48868;
  --blush: #e8c4b0;
  --hero-bg: #3d5a4c;
}

/* Mint (dusty pastel sage — desaturated, opaque, matte feel) */
[data-palette="mint"] {
  --bg: #f7f5ef;
  --bg-green: #e8ece2;
  --bg-warm: #efebe2;
  --ink: #2f342e;
  --ink-soft: #565e54;
  --muted: #949a8f;
  --accent: #a8c0a8;
  --accent-light: #c2d0c0;
  --accent-soft: #e0e8dc;
  --forest: #7c9080;
  --forest-deep: #5f7260;
  --gold: #c4a77c;
  --warm: #b8c4b0;
  --warm-light: #dce2d2;
  --warm-soft: #cad4be;
  --terracotta: #a89e80;
  --blush: #dce0ce;
  --hero-bg: #a8c0a8;
}

/* Forest (deep rich green — pronounced green vibe) */
[data-palette="forest"] {
  --bg: #eef3ea;
  --bg-green: #d4e0d0;
  --bg-warm: #dbe6d4;
  --ink: #16241a;
  --ink-soft: #2a4432;
  --muted: #5a705e;
  --accent: #3a6b4a;
  --accent-light: #5a8a68;
  --accent-soft: #b8d0be;
  --forest: #2a5a3a;
  --forest-deep: #1a3a26;
  --gold: #b89858;
  --warm: #8ca88a;
  --warm-light: #c8d8c4;
  --warm-soft: #b8c8b0;
  --terracotta: #7a8c60;
  --blush: #c8d4b0;
  --hero-bg: #2a5a3a;
}

/* Olive (warmer olive green) */
[data-palette="olive"] {
  --bg: #f0eee0;
  --bg-green: #dcdcb8;
  --bg-warm: #e4e2c4;
  --ink: #22201a;
  --ink-soft: #4a4630;
  --muted: #7a7458;
  --accent: #7a8a48;
  --accent-light: #9aaa68;
  --accent-soft: #d8dcb4;
  --forest: #5a6a30;
  --forest-deep: #3a4420;
  --gold: #c4a858;
  --warm: #b8a878;
  --warm-light: #e0d4a8;
  --warm-soft: #d4c494;
  --terracotta: #a89858;
  --blush: #d4c888;
  --hero-bg: #5a6a30;
}

/* Pastel */
[data-palette="pastel"] {
  --bg: #fdf6f0;
  --bg-green: #f4eee8;
  --bg-warm: #faf0ea;
  --ink: #3a2e28;
  --ink-soft: #6a5a50;
  --muted: #9a8a7e;
  --accent: #c4a2b0;
  --accent-light: #dbbfc8;
  --accent-soft: #f0dce2;
  --forest: #b0908a;
  --forest-deep: #8a6e68;
  --gold: #d4b896;
  --warm: #e0b8a0;
  --warm-light: #f4dcc8;
  --warm-soft: #f0d0b8;
  --terracotta: #d4a090;
  --blush: #f0d4c8;
  --hero-bg: #c4a2b0;
}

/* Terracotta */
[data-palette="terracotta"] {
  --bg: #faf5f0;
  --bg-green: #f0e8e0;
  --bg-warm: #f5ece4;
  --ink: #2c2018;
  --ink-soft: #5a4030;
  --muted: #8a6a58;
  --accent: #b87048;
  --accent-light: #d49070;
  --accent-soft: #e8c4a8;
  --forest: #8a5a40;
  --forest-deep: #6a4030;
  --gold: #c49a60;
  --warm: #d4906a;
  --warm-light: #f0c8a0;
  --warm-soft: #e8b890;
  --terracotta: #c47850;
  --blush: #e8b8a0;
  --hero-bg: #8a5a40;
}

/* Navy */
[data-palette="navy"] {
  --bg: #f4f6fa;
  --bg-green: #e8ecf4;
  --bg-warm: #eef0f8;
  --ink: #1a2030;
  --ink-soft: #3a4460;
  --muted: #6a7494;
  --accent: #4a5a8a;
  --accent-light: #7080aa;
  --accent-soft: #b8c4da;
  --forest: #2a3a6a;
  --forest-deep: #1a2850;
  --gold: #c4a265;
  --warm: #a0a8c4;
  --warm-light: #d0d4e4;
  --warm-soft: #c0c8dc;
  --terracotta: #8a7080;
  --blush: #d0c4d4;
  --hero-bg: #2a3a6a;
}

/* Lavender */
[data-palette="lavender"] {
  --bg: #f8f4fa;
  --bg-green: #f0e8f2;
  --bg-warm: #f4eef6;
  --ink: #2a2030;
  --ink-soft: #504460;
  --muted: #8a7a94;
  --accent: #8a70a0;
  --accent-light: #a890b8;
  --accent-soft: #d4c4e0;
  --forest: #6a5080;
  --forest-deep: #4a3860;
  --gold: #c4a878;
  --warm: #c0a0b8;
  --warm-light: #e0d0dc;
  --warm-soft: #d8c0d4;
  --terracotta: #a87890;
  --blush: #e0c8d8;
  --hero-bg: #6a5080;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0; }

/* ===== UTILITIES ===== */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== NAV ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.main-nav.scrolled {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}

.main-nav.scrolled .nav-brand {
  color: var(--forest);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-light);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.main-nav.scrolled .nav-links a {
  color: var(--ink-soft);
}

.main-nav.scrolled .nav-links a:hover {
  color: var(--forest);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s;
}

.main-nav.scrolled .nav-toggle span {
  background: var(--ink);
}

/* ===== SCROLL FLIGHT ===== */
.scroll-flight-wrap {
  position: fixed;
  left: 0;
  top: 0;
  width: 160px;
  height: 100vh;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}

.scroll-flight-wrap.visible {
  opacity: 1;
}

.scroll-flight {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flight-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  fill: var(--accent);
  letter-spacing: 0.04em;
}

.flight-label-small {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  fill: var(--accent);
  opacity: 0.7;
}

.flight-label-dest {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  fill: var(--gold);
  letter-spacing: 0.05em;
}

.flight-waypoint {
  transition: opacity 0.5s ease;
}

.flight-cloud ellipse {
  transition: opacity 0.8s ease;
}

.flight-cloud.show ellipse {
  opacity: 0.5 !important;
}

.dest-pulse {
  animation: destPulse 2s ease-in-out infinite;
}

@keyframes destPulse {
  0%, 100% { r: 14; opacity: 0.08; }
  50%       { r: 22; opacity: 0.04; }
}

@media (max-width: 860px) {
  .scroll-flight-wrap { display: none; }
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #3a3028;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 58%;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(50, 40, 30, 0.45) 0%, rgba(40, 35, 28, 0.25) 40%, rgba(50, 40, 30, 0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 20px 80px;
}

.hero-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--warm-light);
  margin: 0 0 12px;
  letter-spacing: 0.1em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-date {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 48px;
  letter-spacing: 0.06em;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.flip-card {
  position: relative;
  width: 80px;
  height: 90px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s;
}

.flip-card.flip {
  animation: flipPulse 0.6s ease;
}

@keyframes flipPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.08) rotateX(8deg); }
  60% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.flip-top {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.flip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

.flip-sep {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 2px;
  padding-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 0.8; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--warm), var(--terracotta));
  color: #fff;
  box-shadow: 0 8px 24px rgba(196, 136, 104, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(196, 136, 104, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-lg { min-height: 56px; padding: 0 36px; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 0.85rem; }

.btn-vote {
  background: rgba(88, 116, 103, 0.08);
  color: var(--accent);
  border: 1px solid var(--line);
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.85rem;
  border-radius: 999px;
}

.btn-vote:hover {
  background: rgba(88, 116, 103, 0.15);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--bg);
}

.section-green {
  background: var(--bg-warm);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== WELCOME PERSONAL ===== */
.section-welcome {
  background: var(--bg);
  padding: 80px 0;
}

.welcome-message {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.welcome-emoji {
  font-size: 3rem;
  margin: 0 0 24px;
  line-height: 1;
}

.welcome-message h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.15;
}

.welcome-message p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.welcome-sign {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--terracotta);
}

.welcome-sign strong {
  font-style: normal;
  font-size: 1.4rem;
}

/* ===== COUPLE GALLERY — POLAROID SCATTER ===== */
.couple-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px 28px;
  max-width: 900px;
  margin: 60px auto 20px;
  padding: 20px 10px;
}

.polaroid {
  position: relative;
  background: #fff;
  padding: 12px 12px 56px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.08),
    0 12px 28px rgba(80, 60, 40, 0.18);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease, z-index 0s;
  cursor: pointer;
  margin: 0;
  will-change: transform;
}

.polaroid::before {
  /* subtle paper texture */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.02));
  pointer-events: none;
}

.polaroid:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.04);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.1),
    0 24px 50px rgba(80, 60, 40, 0.28);
  z-index: 5;
}

.polaroid-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 72px;
  height: 22px;
  background: #f0d8c4;
  opacity: 0.75;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-left: 1px dashed rgba(0,0,0,0.05);
  border-right: 1px dashed rgba(0,0,0,0.05);
  pointer-events: none;
}

.polaroid:nth-child(2n) .polaroid-tape {
  transform: translateX(-50%) rotate(3deg);
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee;
}

.polaroid-tall .polaroid-photo {
  aspect-ratio: 3 / 5;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.polaroid:hover .polaroid-photo img {
  transform: scale(1.05);
}

.polaroid-caption {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 12px;
  text-align: center;
  font-family: "Great Vibes", "Dancing Script", cursive;
  font-size: 1.35rem;
  color: #5a4d44;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .couple-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
    max-width: 420px;
    padding: 20px 4px;
  }
  .polaroid {
    padding: 8px 8px 42px;
  }
  .polaroid-caption {
    font-size: 1.05rem;
    bottom: 10px;
  }
  .polaroid-tape {
    width: 56px;
    height: 16px;
    top: -8px;
  }
}

/* ===== SCATTERED POLAROIDS (decorative) =====
   MOBILE (default): inline in flow — polaroid appears centered at the END
   of each section's .container, acting as a decorative separator between
   sections. Never overlaps text because it's part of the natural flow.
   DESKTOP (>=1200px): absolutely positioned in the side whitespace. */
.scattered-polaroid {
  display: block;
  position: relative;
  width: 170px;
  margin: 36px auto 8px;
  background: #fff;
  padding: 8px 8px 32px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.08),
    0 10px 24px rgba(80, 60, 40, 0.2);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
  cursor: pointer;
  z-index: 3;
  will-change: transform;
}

.scattered-polaroid:hover {
  transform: rotate(0deg) scale(1.08) translateY(-4px);
  z-index: 10;
  box-shadow:
    0 6px 12px rgba(0,0,0,0.12),
    0 20px 40px rgba(80, 60, 40, 0.3);
}

.scattered-polaroid .polaroid-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee;
}

.scattered-polaroid .polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.scattered-polaroid:hover .polaroid-photo img {
  transform: scale(1.06);
}

.scattered-polaroid .polaroid-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 60px;
  height: 18px;
  opacity: 0.75;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  pointer-events: none;
}

.scattered-caption {
  position: absolute;
  bottom: 6px;
  left: 8px;
  right: 8px;
  text-align: center;
  font-family: "Great Vibes", "Dancing Script", cursive;
  font-size: 1rem;
  color: #5a4d44;
  line-height: 1;
}

/* Desktop: switch from inline flow to absolute corner positioning in
   the side whitespace. Negative offsets larger than polaroid width
   place them fully OUTSIDE the 1080px container so they never overlap
   content text. */
@media (min-width: 1200px) {
  .scattered-polaroid {
    position: absolute;
    width: 130px;
    margin: 0;
  }
  .scattered-top-right {
    top: 80px;
    right: -160px;
  }
  .scattered-top-left {
    top: 80px;
    left: -160px;
  }
  .scattered-bottom-right {
    bottom: 60px;
    right: -160px;
  }
  .scattered-bottom-left {
    bottom: 60px;
    left: -160px;
  }
}

/* Extra-wide screens: push polaroids further out for more breathing room */
@media (min-width: 1500px) {
  .scattered-top-right, .scattered-bottom-right { right: -190px; }
  .scattered-top-left, .scattered-bottom-left { left: -190px; }
}

/* Inline variant: centered in the content flow (used below welcome signature) */
.scattered-polaroid.scattered-inline {
  position: relative;
  display: block;
  margin: 28px auto 8px;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  width: 170px;
}
@media (min-width: 1200px) {
  .scattered-polaroid.scattered-inline {
    position: relative;
    width: 180px;
    margin: 32px auto 12px;
  }
}

/* ===== LIGHTBOX ===== */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-lightbox.active {
  display: flex;
  opacity: 1;
  animation: lbFadeIn 0.25s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-stage {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: lbZoomIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes lbZoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lb-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 10px 10px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lb-caption {
  color: #f0e6d4;
  font-family: "Great Vibes", "Dancing Script", cursive;
  font-size: 1.8rem;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.lb-counter {
  color: rgba(240, 230, 212, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-family: var(--font-body);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 8px 12px;
}
.lb-close:hover { opacity: 1; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.lb-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.08);
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

@media (max-width: 600px) {
  .lb-nav { width: 42px; height: 42px; font-size: 1.2rem; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-caption { font-size: 1.3rem; }
  .lb-close { top: 10px; right: 14px; font-size: 2rem; }
}

/* ===== STORY PHOTO ===== */
.story-photo-frame {
  max-width: 420px;
  margin: 0 auto 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  position: relative;
}

.story-photo {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.story-photo-frame:hover .story-photo {
  transform: scale(1.03);
}

/* ===== LINE DRAWING ===== */
.line-drawing-container {
  max-width: 300px;
  margin: 0 auto 40px;
}

.line-drawing-svg {
  width: 100%;
  height: auto;
}

.line-drawing-svg path,
.line-drawing-svg circle,
.line-drawing-svg ellipse {
  fill: none;
  stroke: var(--accent-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--path-length, 1000);
  stroke-dashoffset: var(--path-length, 1000);
  transition: stroke-dashoffset 0.05s linear;
}

.line-drawing-svg .draw-fill {
  fill: rgba(125, 164, 143, 0.06);
  stroke: none;
}

/* ===== STORY TIMELINE ===== */
.story-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.story-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-soft);
  transform: translateX(-50%);
}

.story-item {
  position: relative;
  padding: 0 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.story-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 3px solid var(--bg);
  transform: translateX(-50%);
  z-index: 2;
}

.story-year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

.story-content h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 4px;
}

.story-content p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.story-polaroid {
  justify-self: end;
  width: 200px;
  max-width: 100%;
  margin: 0;
  padding: 10px 10px 44px;
}

.story-polaroid .polaroid-photo {
  aspect-ratio: 4 / 5;
}

.story-polaroid .polaroid-caption {
  font-size: 1.25rem;
  bottom: 8px;
}

.story-ending {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.story-ending:empty {
  display: none;
}

.story-ending-polaroid {
  width: 260px;
  max-width: 90%;
  margin: 0;
  padding: 12px 12px 56px;
}

.story-ending-polaroid .polaroid-photo {
  aspect-ratio: 4 / 5;
}

.story-ending-polaroid .polaroid-caption {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .story-ending-polaroid {
    width: 220px;
  }
}

/* ===== AGENDA ===== */
.agenda-grid {
  display: grid;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.agenda-item {
  display: flex;
  gap: 24px;
  padding: 24px 28px;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}

.agenda-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.agenda-time {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  min-width: 130px;
  padding-top: 2px;
}

.agenda-body h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 4px;
}

.agenda-body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ===== HOTEL GRID ===== */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.hotel-card {
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hotel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hotel-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
}

.hotel-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 6px;
}

.hotel-price {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(88, 116, 103, 0.08);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
}

.hotel-featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.04), rgba(255, 255, 255, 1));
  position: relative;
  grid-column: 1 / -1;
}

.hotel-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--gold), #d4b876);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hotel-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.hotel-link:hover { text-decoration: underline; }

/* ===== THINGS TO DO ===== */
.things-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.thing-card {
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.thing-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(88, 116, 103, 0.08);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.thing-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 6px;
}

.thing-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ===== DRESS CODE ===== */
.dresscode-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px;
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.dresscode-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.dresscode-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 12px;
}

.dresscode-card > p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 24px;
}

.dresscode-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.dresscode-tip {
  padding: 8px 16px;
  background: rgba(88, 116, 103, 0.06);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

.dresscode-polaroid-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.dresscode-polaroid-wrap:empty {
  display: none;
}

.dresscode-polaroid {
  width: 240px;
  max-width: 90%;
  margin: 0;
  padding: 12px 12px 48px;
}

.dresscode-polaroid .polaroid-photo {
  aspect-ratio: 4 / 5;
}

.dresscode-polaroid .polaroid-caption {
  font-size: 1.15rem;
}

@media (max-width: 768px) {
  .dresscode-polaroid {
    width: 200px;
  }
}

/* ===== FORMS ===== */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(125, 164, 143, 0.15);
}

.form-card textarea { resize: vertical; min-height: 80px; }

.form-full { width: 100%; }

.form-inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
}

.form-inline label { flex: 1; min-width: 180px; }

.form-status {
  margin: 0;
  min-height: 20px;
  font-size: 0.9rem;
  color: var(--forest);
}

/* ===== RSVP ===== */
.rsvp-layout {
  max-width: 700px;
  margin: 0 auto;
}

.rsvp-search-box {
  margin-bottom: 28px;
  padding: 24px 28px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.rsvp-search-box > label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-wrap input:focus {
  border-color: var(--accent-light);
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 240px;
  overflow-y: auto;
  z-index: 10;
}

.search-result-item {
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--line);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover {
  background: rgba(88, 116, 103, 0.06);
}

.search-result-item strong {
  color: var(--forest);
}

.search-result-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== MESSAGES ===== */
.messages-layout {
  max-width: 700px;
  margin: 0 auto;
}

.message-type-tabs {
  display: flex;
  gap: 8px;
}

.msg-tab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.msg-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.msg-input-area { width: 100%; }

.messages-wall {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.message-card {
  padding: 20px 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.message-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: 6px;
}

.message-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.message-card time {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
}

.message-card audio,
.message-card video {
  margin-top: 8px;
  width: 100%;
  border-radius: var(--radius-sm);
}

/* ===== GIFTS ===== */
.gifts-section {
  position: relative;
  overflow: hidden;
}

.gifts-section .section-header {
  text-align: center;
}

.gifts-section .section-header h2 {
  margin-bottom: 14px;
}

.gifts-flourish {
  display: block;
  width: 180px;
  max-width: 70%;
  height: 14px;
  margin: 0 auto;
  color: var(--gold);
}

.gifts-intro {
  max-width: 640px;
  margin: 28px auto 48px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.5;
  text-align: center;
  font-style: italic;
}

/* Side-by-side on desktop: Honeyfund (primary) on the left, bank/Zelle
   transfer details on the right. Stacks to a single column below 720px
   so on mobile Honeyfund is on top and transfer data below. */
.gifts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 720px) {
  .gifts-grid {
    grid-template-columns: 1fr;
  }
}

.gift-card {
  position: relative;
  padding: 48px 36px 36px;
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(80, 60, 40, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Soft radial glow in the top-right corner */
.gift-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

/* Thin gold hairline at the top */
.gift-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0.55;
}

.gift-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--forest);
  position: relative;
  z-index: 1;
}

.gift-card-icon svg {
  width: 30px;
  height: 30px;
}

.gift-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--forest);
  font-weight: 500;
  margin: 0 0 28px;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

/* ---- Bank details ---- */
.bank-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

/* Honeyfund side centers its buttons vertically so the two columns
   balance even when one has more content than the other. */
.gift-card-links {
  justify-content: center;
  align-items: center;
}

/* Short line above the transferencia title — the "O si no, tambien
   podes enviarnos por transferencia" copy. Sits below the icon and
   above the h3 inside the bank card. */
.gift-card-intro {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.gift-card-intro:empty { display: none; }

/* ARG / USA subsections within the transfer card. Separated by a thin
   rule so guests can find their region at a glance. */
.transfer-region {
  position: relative;
  z-index: 1;
}
.transfer-region + .transfer-region {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.transfer-region-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 600;
  text-align: center;
}

.bank-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: var(--radius-md);
  transition: background 0.18s ease;
}

.bank-row-copyable {
  cursor: pointer;
}

.bank-row-copyable:hover {
  background: var(--accent-soft);
}

/* Zelle / Pagar con Zelle button row — full-width green CTA inside
   the bank row, matching the Honeyfund button feel on the apps card. */
.bank-row-link {
  background: transparent;
  padding: 8px 0 4px;
  display: block;
}
.zelle-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent, #4a7a52) 0%, var(--accent-dark, #3a6242) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--font-body, inherit);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(74, 122, 82, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.zelle-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(74, 122, 82, 0.42);
  filter: brightness(1.04);
}
.zelle-link-btn:active { transform: translateY(0); }

.bank-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-body);
}

.bank-value {
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.bank-value-mono {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.bank-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
  position: relative;
}

.bank-copy-btn svg {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.bank-copy-btn .icon-check {
  opacity: 0;
  transform: scale(0.6);
}

.bank-copy-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.bank-copy-btn.copied {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.bank-copy-btn.copied .icon-copy {
  opacity: 0;
  transform: scale(0.6);
}

.bank-copy-btn.copied .icon-check {
  opacity: 1;
  transform: scale(1);
}

/* ---- External gift links as stacked buttons ---- */
.gift-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.gift-links:empty::before {
  content: "Proximamente un link de Honeyfund para aportes.";
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
}

.gift-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--forest) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(80, 100, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  position: relative;
}

.gift-link-btn::after {
  content: "→";
  margin-left: 4px;
  transition: transform 0.25s ease;
  font-size: 1.05rem;
  opacity: 0.85;
}

.gift-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(80, 100, 85, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  filter: brightness(1.03);
}

.gift-link-btn:hover::after {
  transform: translateX(3px);
}

.gift-card-links .gift-links:empty::before {
  content: "Proximamente";
  display: block;
  padding: 20px;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1rem;
  opacity: 0.7;
}

/* ---- Signature footer ---- */
.gifts-signature {
  max-width: 380px;
  margin: 56px auto 0;
  padding-top: 28px;
  text-align: center;
  border-top: 1px dashed rgba(140, 120, 100, 0.25);
}

.gifts-signature-text {
  margin: 0 0 4px;
  color: var(--muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.gifts-signature-names {
  margin: 0;
  color: var(--forest);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
}

/* Mobile */
@media (max-width: 768px) {
  .gift-card {
    padding: 36px 22px 28px;
  }
  .gift-card h3 {
    font-size: 1.4rem;
    margin-bottom: 22px;
  }
  .gifts-intro {
    font-size: 1.15rem;
    margin: 20px auto 32px;
  }
  .gifts-signature {
    margin-top: 40px;
  }
  .gifts-signature-names {
    font-size: 1.8rem;
  }
  .bank-row {
    padding: 12px 14px;
    gap: 10px;
  }
  .bank-value {
    font-size: 0.9rem;
  }
  .bank-value-mono {
    font-size: 0.82rem;
  }
}

/* ===== CAPTAIN ===== */
.captain-layout {
  max-width: 700px;
  margin: 0 auto;
}

.nominations-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.nomination-card {
  padding: 18px 22px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.nomination-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest);
}

.nomination-card .nom-by {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.nomination-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

/* ===== TRIVIA ===== */
.trivia-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.trivia-game {
  padding: 32px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.trivia-start {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trivia-start label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trivia-start input {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
}

.trivia-question {
  text-align: center;
}

.trivia-question h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 8px;
}

.trivia-question p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.trivia-options {
  display: grid;
  gap: 10px;
}

.trivia-option {
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.trivia-option:hover {
  border-color: var(--accent-light);
  background: rgba(125, 164, 143, 0.08);
}

.trivia-option.correct {
  background: rgba(88, 180, 120, 0.15);
  border-color: #5ab878;
  color: #2d6e3f;
}

.trivia-option.wrong {
  background: rgba(200, 80, 80, 0.1);
  border-color: #c85050;
  color: #8c2437;
}

.trivia-score {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--muted);
}

.trivia-result {
  text-align: center;
  padding: 20px 0;
}

.trivia-result h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--forest);
  margin-bottom: 8px;
}

.trivia-result p {
  color: var(--muted);
  margin-bottom: 16px;
}

.trivia-ranking {
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.trivia-ranking h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 16px;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ranking-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.ranking-list li:last-child { border-bottom: none; }

.ranking-name { color: var(--ink); font-weight: 500; }
.ranking-score { color: var(--accent); font-weight: 700; }

/* ===== PREDICTIONS ===== */
.predictions-layout {
  max-width: 700px;
  margin: 0 auto;
}

.predictions-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.prediction-card {
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.prediction-card::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent-soft);
  line-height: 1;
}

.prediction-card p {
  margin: 20px 0 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-style: italic;
}

.prediction-card .pred-author {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

/* ===== PLAYLIST ===== */
.playlist-layout {
  max-width: 700px;
  margin: 0 auto;
}

.playlist-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  gap: 12px;
}

.playlist-song {
  flex: 1;
}

.playlist-song strong {
  color: var(--forest);
  font-size: 0.95rem;
}

.playlist-song span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.playlist-votes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-count {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

/* ===== GUEST MAP ===== */
.map-layout {
  max-width: 960px;
  margin: 0 auto;
}

.map-city-venue {
  border-color: var(--gold);
  background: rgba(196, 162, 101, 0.06);
}

.guest-map {
  margin-top: 24px;
}

.map-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.map-stats span {
  padding: 8px 20px;
  background: var(--card);
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.leaflet-map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.map-stats-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.map-stats-row span {
  padding: 6px 18px;
  background: var(--card);
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* Leaflet custom markers */
.map-venue-marker {
  background: none !important;
  border: none !important;
}

.venue-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.venue-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(196, 162, 101, 0.3), 0 2px 8px rgba(0,0,0,0.2);
  animation: venuePulse 2s ease-in-out infinite;
}

@keyframes venuePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(196, 162, 101, 0.3), 0 2px 8px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 0 0 10px rgba(196, 162, 101, 0.1), 0 2px 8px rgba(0,0,0,0.2); }
}

.venue-pin-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 1px 3px rgba(255,255,255,0.9);
  white-space: nowrap;
}

.map-city-label {
  background: none !important;
  border: none !important;
}

.map-city-label span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--forest);
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
  white-space: nowrap;
}

.map-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.map-city-card {
  padding: 16px 20px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.map-city-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: 6px;
}

.map-city-card .city-count {
  font-size: 0.82rem;
  color: var(--accent-light);
  font-weight: 700;
  margin-bottom: 6px;
}

.map-city-card .city-names {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== SOCIAL CLUB ===== */
.social-layout {
  max-width: 900px;
  margin: 0 auto;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.profile-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 12px 28px rgba(0,0,0,0.12));
}

.profile-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(88,116,103,0.15), rgba(239,217,189,0.3));
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.profile-card:hover .profile-photo img { transform: scale(1.04); }

.profile-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.55;
}

.profile-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0) 100%);
  color: #fff;
}

.profile-meta {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.profile-quote {
  margin: 0 !important;
  padding: 14px 18px 16px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem !important;
  line-height: 1.4;
}

.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.profile-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest);
}

.profile-city {
  font-size: 0.85rem;
  color: var(--muted);
}

.profile-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(88, 116, 103, 0.08);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.profile-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 6px 0;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profile-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.88rem;
}

.profile-link:hover { text-decoration: underline; }

/* Singles form: photo upload + admin moderation */
.singles-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.singles-photo-label {
  cursor: pointer;
}

.singles-photo-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed var(--line);
  background: rgba(88, 116, 103, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}

.singles-photo-preview:hover {
  border-color: var(--accent);
  background: rgba(88, 116, 103, 0.08);
}

.singles-photo-preview.has-photo {
  border-style: solid;
  border-color: var(--accent);
}

.singles-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.singles-photo-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1.2;
}

.singles-photo-placeholder small {
  display: block;
  font-size: 0.7rem;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.singles-photo-hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
  text-align: center;
}

/* Admin singles moderation */
.singles-admin-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: flex-start;
}

.singles-admin-photo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3ece0;
}

.singles-admin-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #9a9a8a;
  text-align: center;
  padding: 6px;
}

.singles-admin-body h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.singles-admin-body p {
  margin: 2px 0;
  font-size: 0.82rem;
}

.singles-admin-status {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.singles-admin-status--pending {
  background: #f6d9a8;
  color: #7a4e1b;
}

.singles-admin-status--approved {
  background: #c8e1c8;
  color: #3a6b3a;
}

.singles-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

@media (max-width: 540px) {
  .singles-admin-card {
    grid-template-columns: 64px 1fr;
  }
  .singles-admin-photo {
    width: 64px;
    height: 64px;
  }
  .singles-admin-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

/* ===== ALBUM / GALLERY ===== */
.album-layout {
  display: grid;
  gap: 28px;
}

.challenges-area {
  margin-bottom: 32px;
}

.challenges-area h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 16px;
}

.challenges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.challenge-card {
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.challenge-card h4 {
  font-size: 0.95rem;
  color: var(--forest);
}

.challenge-card p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 4px 0 0;
}

.challenge-points {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.challenges-ranking {
  margin-top: 8px;
}

.challenges-ranking h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--forest);
  margin-bottom: 12px;
}

.upload-zone {
  position: relative;
  min-height: 180px;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: var(--accent-light);
  background: rgba(125, 164, 143, 0.06);
}

.upload-icon { font-size: 2.5rem; }

.upload-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
}

.upload-subtitle, .upload-files {
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.memory-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.memory-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.memory-card img,
.memory-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-green);
}

.memory-meta {
  padding: 14px 16px;
}

.memory-meta h4 {
  font-size: 0.95rem;
  color: var(--forest);
  margin-bottom: 2px;
}

.memory-meta p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.memory-meta time {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.98rem;
  transition: background 0.2s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background: rgba(88, 116, 103, 0.04);
}

.faq-chevron {
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  padding: 0 22px 18px;
  max-height: 300px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 80px 0 48px;
  text-align: center;
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-date {
  font-size: 1rem;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-location {
  font-size: 0.9rem;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-note {
  font-size: 0.82rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(88, 116, 103, 0.04);
  border: 1px dashed var(--line);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.empty-state p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== INVITE REDIRECT POPUP ===== */
.invite-redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(28, 36, 32, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.invite-redirect-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.invite-redirect-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 38px 30px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(74, 122, 82, 0.18);
  animation: inviteRedirectRise 0.4s cubic-bezier(.18,.78,.34,1.02);
}
.invite-redirect-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}
.invite-redirect-close:hover { color: var(--ink); }
.invite-redirect-title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--accent, #4a7a52);
  margin: 0 0 12px;
}
.invite-redirect-msg {
  font-family: inherit;
  font-size: 1.02rem;
  color: var(--ink, #2a3a30);
  line-height: 1.55;
  margin: 0;
}
@keyframes inviteRedirectRise {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 600px) {
  .invite-redirect-overlay { padding: 14px; }
  .invite-redirect-card { padding: 32px 22px 24px; border-radius: 18px; }
  .invite-redirect-title { font-size: 1.4rem; }
  .invite-redirect-msg { font-size: 0.98rem; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .trivia-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 250, 246, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    color: var(--ink-soft) !important;
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .flip-card {
    width: 60px;
    height: 70px;
  }

  .flip-top {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .story-timeline::before { left: 20px; }

  .story-item {
    grid-template-columns: 1fr;
    padding-left: 48px;
    gap: 4px;
  }

  .story-item::before {
    left: 20px;
  }

  .story-year {
    text-align: left;
  }

  .story-polaroid {
    justify-self: start;
    width: 160px;
  }

  .gifts-card,
  .dresscode-card {
    padding: 28px;
  }

  .agenda-item {
    flex-direction: column;
    gap: 8px;
  }

  .form-inline {
    flex-direction: column;
  }

  .hotel-grid,
  .things-grid,
  .challenges-grid,
  .predictions-wall,
  .gallery-grid,
  .profiles-grid,
  .guest-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .countdown {
    gap: 4px;
  }

  .flip-card {
    width: 52px;
    height: 60px;
  }

  .flip-top {
    font-size: 1.6rem;
  }

  .flip-sep {
    font-size: 1.4rem;
  }
}
