:root {
  --blush: #fadadd;
  --rose: #f7c9cf;
  --wine: #a0522d;
  --wine-deep: #7a3820;
  --gold: #d4af37;
  --sage: #7e9b83;
  --lavender: #c8b8e8;
  --sky: #9eb8d8;
  --cream: #fffaf7;
  --pearl: rgba(255, 250, 247, 0.74);
  --text: #5c3d35;
  --text-soft: #8a6a61;
  --shadow: 0 18px 50px rgba(160, 82, 45, 0.15);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(250, 218, 221, 0.95),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(212, 175, 55, 0.16),
      transparent 25%
    ),
    radial-gradient(
      circle at 12% 82%,
      rgba(126, 155, 131, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 92% 72%,
      rgba(200, 184, 232, 0.12),
      transparent 24%
    ),
    linear-gradient(180deg, #fff9fb 0%, #fff5ef 55%, #fffdf8 100%);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: auto;
  transition: background 0.8s ease, color 0.6s ease;
}

body[data-mood="garden"] {
  --page-gradient: linear-gradient(
    180deg,
    #fff9fb 0%,
    #fff5ef 55%,
    #fffdf8 100%
  );
}

body[data-mood="sunset"] {
  --wine: #b65c46;
  --wine-deep: #84422f;
  --gold: #f0bb62;
  --text: #66423a;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 216, 193, 0.78),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(240, 187, 98, 0.2),
      transparent 25%
    ),
    linear-gradient(180deg, #fff8f3 0%, #ffe8de 50%, #fff8f0 100%);
}

body[data-mood="moonlight"] {
  --wine: #8c5a78;
  --wine-deep: #5c3950;
  --gold: #e5c98f;
  --text: #4f4256;
  --text-soft: #7d6a83;
  background:
    radial-gradient(
      circle at top left,
      rgba(235, 221, 244, 0.62),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(229, 201, 143, 0.16),
      transparent 25%
    ),
    linear-gradient(180deg, #fcf9ff 0%, #f2edf8 55%, #fdfafc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M48 54c0-8 6-14 14-14 6 0 10 3 13 8 3-5 8-8 13-8 8 0 14 6 14 14 0 18-27 33-27 33S48 72 48 54Z' fill='rgba(212,175,55,0.08)'/%3E%3Ccircle cx='136' cy='48' r='10' fill='rgba(250,218,221,0.25)'/%3E%3Cpath d='M129 115c7-11 19-17 32-14-2 13-10 25-22 31-5-3-8-10-10-17Z' fill='rgba(160,82,45,0.05)'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
  pointer-events: none;
  z-index: -2;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

#effect-canvas,
.petal-layer,
.cursor-heart {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

#effect-canvas {
  z-index: 1;
}

.petal-layer {
  overflow: hidden;
  z-index: 2;
}

.cursor-heart {
  width: 20px;
  height: 20px;
  position: fixed;
  z-index: 20;
  transform: translate(-50%, -50%);
  display: none;
}

.cursor-heart::before {
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: rgba(212, 175, 55, 0.85);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  width: min(calc(100% - 24px), var(--max-width));
  margin: 12px auto 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 248, 246, 0.9);
  box-shadow: 0 12px 32px rgba(160, 82, 45, 0.1);
}

.mobile-dock {
  display: none;
}

.intro-envelope {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(95, 57, 41, 0.22);
  backdrop-filter: blur(10px);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.intro-envelope.is-open {
  opacity: 0;
  visibility: hidden;
}

.intro-envelope__seal {
  width: min(78vw, 320px);
  aspect-ratio: 1.1;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255, 250, 247, 0.98),
    rgba(250, 218, 221, 0.92)
  );
  box-shadow: 0 24px 80px rgba(122, 56, 32, 0.2);
  color: var(--wine-deep);
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  cursor: pointer;
}

.brand,
h1,
h2,
.hero__date {
  font-family: "Great Vibes", cursive;
}

.brand {
  flex: 0 0 auto;
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  color: var(--wine-deep);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.nav a:hover {
  background: rgba(250, 218, 221, 0.8);
  color: var(--wine-deep);
  transform: translateY(-2px);
}

main {
  width: min(calc(100% - 24px), var(--max-width));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 0.88fr);
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 5vw, 76px);
  padding: clamp(36px, 5vw, 64px) 0 54px;
}

.hero-stars,
.hero-window,
.hero-stage-glow,
.hero-character,
.hero-title-orbit {
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  inset: 0;
}

.star {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.95);
  animation: twinkle 3s ease-in-out infinite;
}

.star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent);
  transform: translate(-10%, -50%) rotate(-26deg);
  transform-origin: left center;
}

.star--1 {
  top: 12%;
  left: 18%;
}
.star--2 {
  top: 22%;
  left: 34%;
  animation-delay: 0.6s;
}
.star--3 {
  top: 14%;
  right: 24%;
  animation-delay: 1s;
}
.star--4 {
  top: 33%;
  right: 38%;
  animation-delay: 1.6s;
}
.star--5 {
  top: 46%;
  left: 12%;
  animation-delay: 2.1s;
}

.hero-window {
  display: none;
  position: absolute;
  top: 120px;
  width: 120px;
  height: 320px;
  border-radius: 999px 999px 32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(250, 218, 221, 0.18)
  );
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.18),
    0 30px 60px rgba(160, 82, 45, 0.08);
}

.hero-window--left {
  left: -10px;
}
.hero-window--right {
  right: -10px;
}

.hero-window__glow {
  position: absolute;
  inset: 24px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 20%,
    rgba(255, 255, 255, 0.9),
    rgba(250, 218, 221, 0.1)
  );
  filter: blur(1px);
}

.hero__backdrop {
  position: absolute;
  inset: 12% 0 auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(250, 218, 221, 0.65) 0%,
    rgba(255, 255, 255, 0) 72%
  );
  filter: blur(10px);
  z-index: -1;
}

.eyebrow,
.section-heading__tag {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.76rem;
  color: var(--wine);
  font-weight: 700;
}

.hero h1 {
  margin: 8px 0;
  max-width: 620px;
  font-size: clamp(4.8rem, 7vw, 7.2rem);
  line-height: 0.95;
  color: var(--wine-deep);
}

.hero__date {
  font-size: 2.1rem;
  color: var(--gold);
  margin: 0 0 24px;
}

.hero__intro {
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0 0 20px;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0 0 22px;
}

.hero-meta-grid span {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(160, 82, 45, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-soft);
}

.hero-meta-grid strong {
  color: var(--wine-deep);
  font-size: 1.35rem;
  font-family: "Quicksand", sans-serif;
}

.parallax-layer,
.memory-card,
.story-card,
.message-card,
.flip-card__inner,
.reveal {
  will-change: auto;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-title-orbit {
  position: relative;
  width: min(280px, 65vw);
  height: 70px;
  margin: 6px 0 18px;
}

.hero-title-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  animation: orbitSpin 10s linear infinite;
}

.hero-title-orbit span:nth-child(2) {
  inset: 8px 14px;
  animation-duration: 13s;
  animation-direction: reverse;
}

.hero-title-orbit span:nth-child(3) {
  inset: 16px 34px;
  animation-duration: 8s;
}

.cta,
.primary-button,
.secondary-button,
.ghost-button,
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.cta,
.primary-button,
.upload-button {
  background: linear-gradient(135deg, var(--wine) 0%, #be6a45 100%);
  color: #fff8f6;
  box-shadow: 0 14px 28px rgba(160, 82, 45, 0.24);
}

.secondary-button,
.ghost-button {
  background: rgba(255, 255, 255, 0.74);
  color: var(--wine-deep);
  box-shadow: var(--shadow);
}

.ghost-button {
  border: 1px solid rgba(160, 82, 45, 0.15);
}

.cta:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.upload-button:hover {
  transform: translateY(-3px) scale(1.02);
}

.cta:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.upload-button:active,
.mood-button:active,
.quiz-option:active,
.song-vote:active {
  transform: scale(0.96);
}

.hero-actions,
.mood-buttons,
.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mood-panel,
.quiz-panel {
  display: grid;
  gap: 18px;
}

.love-lab-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.scratch-card {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(
    150deg,
    rgba(255, 252, 249, 0.96),
    rgba(250, 218, 221, 0.5)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.scratch-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.scratch-message__tag {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

#scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.flip-card {
  position: relative;
  height: 170px;
  perspective: 1200px;
  cursor: pointer;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  backface-visibility: hidden;
  padding: 18px;
  display: grid;
  align-content: center;
  box-shadow: var(--shadow);
}

.flip-card__face--front {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92),
    rgba(250, 218, 221, 0.7)
  );
}

.flip-card__face--back {
  transform: rotateY(180deg);
  background: linear-gradient(
    145deg,
    rgba(160, 82, 45, 0.9),
    rgba(212, 175, 55, 0.7)
  );
  color: #fffaf7;
}

.mood-button,
.quiz-option {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--wine-deep);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.mood-button.is-active,
.quiz-option:hover,
.quiz-option.is-correct,
.mood-button:hover {
  background: linear-gradient(135deg, var(--wine) 0%, #d28861 100%);
  color: #fff;
  transform: translateY(-2px);
}

.quiz-option.is-wrong {
  background: rgba(255, 235, 235, 0.9);
  color: #a44b55;
}

.quiz-card__tag,
.quiz-result {
  color: var(--text-soft);
}

.hero__silhouette {
  position: relative;
  width: min(320px, 80vw);
  height: 220px;
  margin-bottom: 22px;
}

.silhouette {
  position: absolute;
  bottom: 0;
  width: 120px;
  height: 170px;
  border-radius: 80px 80px 20px 20px;
  background: linear-gradient(
    180deg,
    rgba(160, 82, 45, 0.9),
    rgba(122, 56, 32, 1)
  );
  box-shadow: 0 25px 30px rgba(160, 82, 45, 0.18);
}

.silhouette::before {
  content: "";
  position: absolute;
  top: -48px;
  left: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(160, 82, 45, 0.95),
    rgba(90, 35, 18, 1)
  );
}

.silhouette--left {
  left: 28px;
  transform: rotate(-4deg);
}

.silhouette--left::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -16px;
  width: 152px;
  height: 96px;
  border-radius: 60% 60% 18px 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 249, 250, 0.96),
    rgba(247, 201, 207, 0.9)
  );
}

.silhouette--right {
  right: 28px;
  height: 154px;
  transform: rotate(4deg);
}

.heart-pulse {
  position: absolute;
  left: 50%;
  top: 36px;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.8rem;
  animation: pulse 1.6s infinite ease-in-out;
}

.hero__photos {
  position: relative;
  min-height: auto;
  isolation: isolate;
}

.hero-gallery-card {
  position: relative;
  width: min(100%, 520px);
  margin-left: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 250, 0.92),
      rgba(250, 218, 221, 0.48)
    ),
    radial-gradient(
      circle at 18% 18%,
      rgba(212, 175, 55, 0.18),
      transparent 26%
    );
  box-shadow: 0 28px 80px rgba(122, 56, 32, 0.14);
}

.hero-gallery-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 14px;
}

.hero-gallery-card__header span {
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  color: var(--wine-deep);
}

.hero-gallery-card__header small {
  color: var(--text-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-gallery-card__main {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 16 / 11;
  background: rgba(255, 255, 255, 0.72);
}

.hero-gallery-card__image {
  width: 100%;
  height: 100%;
  display: block;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.75),
      transparent 24%
    ),
    linear-gradient(145deg, rgba(250, 218, 221, 0.68), rgba(160, 82, 45, 0.18));
  background-size: cover;
  background-position: center;
}

.hero-gallery-card__main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(72, 39, 30, 0.28));
}

.hero-gallery-card__monogram {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  color: #fffaf7;
  text-shadow: 0 12px 30px rgba(65, 31, 24, 0.34);
}

.hero-gallery-card__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hero-gallery-card__thumbs .hero-gallery-card__image {
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(122, 56, 32, 0.12);
}

.hero-gallery-card p {
  margin: 14px 6px 2px;
  color: var(--text-soft);
  line-height: 1.75;
}

.hero-stage-glow {
  position: absolute;
  inset: auto 60px 8px 40px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(250, 218, 221, 0.72),
    rgba(255, 255, 255, 0)
  );
  filter: blur(10px);
}

/* Staggered reveal delays */
.memory-card.reveal,
.story-card.reveal,
.message-card.reveal,
.timeline-item.reveal,
.flower-note.reveal,
.flip-card.reveal {
  transition-delay: calc(var(--reveal-index, 0) * 80ms);
}

/* Hero gallery float animation */
@media (min-width: 981px) {
  .hero-gallery-card {
    animation: gentleFloat 6s ease-in-out infinite;
  }
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Scrollbar styling */
.message-list::-webkit-scrollbar,
.nav::-webkit-scrollbar,
.savings-log::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.message-list::-webkit-scrollbar-track,
.nav::-webkit-scrollbar-track,
.savings-log::-webkit-scrollbar-track {
  background: transparent;
}

.message-list::-webkit-scrollbar-thumb,
.nav::-webkit-scrollbar-thumb,
.savings-log::-webkit-scrollbar-thumb {
  background: rgba(160, 82, 45, 0.15);
  border-radius: 999px;
}

.message-list::-webkit-scrollbar-thumb:hover,
.nav::-webkit-scrollbar-thumb:hover,
.savings-log::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 82, 45, 0.28);
}

/* Empty state */
.memory-empty,
.story-empty {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  border: 2px dashed rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.4);
  color: var(--text-soft);
  text-align: center;
  gap: 12px;
}

.memory-empty i,
.story-empty i {
  font-size: 2.4rem;
  color: var(--gold);
  opacity: 0.6;
}

.memory-empty p,
.story-empty p {
  margin: 0;
  color: var(--text-soft);
}

.memory-empty .cta,
.story-empty .cta {
  margin-top: 8px;
}

.hero__photos::before {
  content: "";
  position: absolute;
  inset: 10px 30px 10px 10px;
  border-radius: 36px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.65),
      rgba(250, 218, 221, 0.2)
    ),
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.2), transparent 35%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-aurora {
  position: absolute;
  inset: 30px 40px 40px 20px;
  border-radius: 38px;
  background:
    radial-gradient(
      circle at 22% 24%,
      rgba(255, 255, 255, 0.9),
      transparent 16%
    ),
    radial-gradient(
      circle at 72% 18%,
      rgba(212, 175, 55, 0.24),
      transparent 20%
    ),
    radial-gradient(
      circle at 58% 68%,
      rgba(250, 218, 221, 0.78),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      rgba(255, 239, 244, 0.85),
      rgba(253, 248, 242, 0.65)
    );
  filter: blur(2px);
}

.anime-badge {
  position: absolute;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--wine-deep);
  font-family: "Great Vibes", cursive;
  font-size: 1.55rem;
  box-shadow: var(--shadow);
}

.anime-badge--top {
  top: 22px;
  left: 24px;
}

.anime-badge--bottom {
  right: 52px;
  bottom: 20px;
}

.photo-frame {
  position: absolute;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  border: 10px solid rgba(255, 252, 250, 0.8);
  box-shadow: var(--shadow);
}

.hero-character {
  position: absolute;
  bottom: 20px;
  width: 180px;
  height: 400px;
  z-index: 2;
}

.hero-character--left {
  left: 48px;
}
.hero-character--right {
  right: 44px;
}

.hero-character__halo {
  position: absolute;
  inset: 12% 6% auto;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.85),
    rgba(250, 218, 221, 0)
  );
  filter: blur(12px);
}

.hero-character__figure {
  position: absolute;
  inset: auto 0 0;
  margin: auto;
  width: 150px;
  height: 360px;
  border-radius: 88px 88px 42px 42px;
  box-shadow: 0 28px 56px rgba(160, 82, 45, 0.16);
}

.hero-character__figure::before,
.hero-character__figure::after {
  content: "";
  position: absolute;
}

.hero-character__figure::before {
  top: -62px;
  left: 42px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe2d8, #f4c0b5);
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.05);
}

.hero-character__figure--bride {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(247, 201, 207, 0.92)
  );
}

.hero-character__figure--bride::after {
  bottom: 16px;
  left: -18px;
  width: 186px;
  height: 160px;
  border-radius: 50% 50% 34px 34px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(250, 218, 221, 0.8)
  );
}

.hero-character__figure--groom {
  background: linear-gradient(
    180deg,
    rgba(140, 90, 120, 0.94),
    rgba(92, 57, 80, 1)
  );
}

.hero-character__figure--groom::after {
  top: 68px;
  left: 58px;
  width: 34px;
  height: 110px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(229, 201, 143, 0.75)
  );
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.photo-frame--one {
  inset: 50px auto auto 0;
  width: 280px;
  height: 320px;
  background-image:
    linear-gradient(rgba(160, 82, 45, 0.08), rgba(160, 82, 45, 0.1)),
    url("https://images.unsplash.com/photo-1578632767115-351597cf2477?auto=format&fit=crop&w=900&q=80");
  transform: rotate(-8deg);
}

.photo-frame--two {
  inset: 0 20px auto auto;
  width: 220px;
  height: 260px;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.08)),
    url("https://images.unsplash.com/photo-1541562232579-512a21360020?auto=format&fit=crop&w=900&q=80");
  transform: rotate(7deg);
}

.photo-frame--three {
  inset: 240px 40px auto auto;
  width: 250px;
  height: 300px;
  background-image:
    linear-gradient(rgba(250, 218, 221, 0.08), rgba(250, 218, 221, 0.1)),
    url("https://images.unsplash.com/photo-1579783902614-a3fb3927b6a5?auto=format&fit=crop&w=900&q=80");
  transform: rotate(-5deg);
}

.section {
  padding: 56px 0;
  scroll-margin-top: 100px;
}

.settings-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-form label:nth-child(3),
.settings-form label:nth-child(4),
.settings-actions {
  grid-column: 1 / -1;
}

.settings-actions,
.settings-preview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-preview {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 100%;
  background:
    linear-gradient(
      160deg,
      rgba(255, 250, 250, 0.92),
      rgba(250, 218, 221, 0.55)
    ),
    radial-gradient(
      circle at top left,
      rgba(212, 175, 55, 0.18),
      transparent 28%
    );
}

.settings-preview__tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  color: var(--wine);
  font-weight: 700;
}

.settings-preview h3 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--wine-deep);
}

.settings-preview p {
  margin: 0;
  color: var(--text-soft);
}

.settings-preview__chips span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--wine-deep);
  box-shadow: 0 10px 24px rgba(160, 82, 45, 0.1);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading--wide {
  max-width: 860px;
}

.section-heading h2 {
  margin: 10px 0 12px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--wine-deep);
}

.section-heading p {
  margin: 0;
  line-height: 1.85;
  color: var(--text-soft);
}

.panel {
  background: rgba(255, 251, 249, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel--soft {
  background: rgba(255, 248, 244, 0.7);
}

.suite-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  grid-template-areas:
    "hero vow"
    "hero kit"
    "plan plan";
  gap: 22px;
}

.suite-card--hero {
  grid-area: hero;
  min-height: 460px;
  display: grid;
  align-content: end;
  gap: 18px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(255, 255, 255, 0.95),
      transparent 18%
    ),
    radial-gradient(
      circle at 24% 22%,
      rgba(200, 184, 232, 0.32),
      transparent 30%
    ),
    linear-gradient(145deg, rgba(255, 247, 249, 0.94), rgba(248, 219, 224, 0.7));
}

.suite-card--hero::before,
.suite-card--hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.suite-card--hero::before {
  inset: 34px auto auto 34px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.2),
    0 28px 70px rgba(160, 82, 45, 0.12);
}

.suite-card--hero::after {
  right: -38px;
  bottom: -38px;
  width: 220px;
  height: 220px;
  background:
    radial-gradient(circle, rgba(126, 155, 131, 0.2), transparent 62%),
    radial-gradient(
      circle at 40% 38%,
      rgba(212, 175, 55, 0.18),
      transparent 45%
    );
}

.suite-card--hero h3,
.vow-card h3,
.guest-kit h3 {
  margin: 0;
}

.suite-card--hero strong {
  position: relative;
  z-index: 1;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.4rem, 10vw, 7.2rem);
  line-height: 0.9;
  color: var(--wine-deep);
}

.suite-card--hero p,
.vow-card p,
.guest-kit p {
  position: relative;
  z-index: 1;
  color: var(--text-soft);
  line-height: 1.75;
}

.suite-card__mini {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suite-card__mini span,
.guest-kit__chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--wine-deep);
  box-shadow: 0 10px 24px rgba(160, 82, 45, 0.08);
}

.vow-card {
  grid-area: vow;
  display: grid;
  gap: 16px;
  align-content: center;
  background:
    radial-gradient(
      circle at top right,
      rgba(212, 175, 55, 0.18),
      transparent 32%
    ),
    rgba(255, 251, 249, 0.82);
}

.itinerary-card {
  grid-area: plan;
}

.itinerary-card .panel__header span {
  color: var(--text-soft);
}

.itinerary-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.itinerary-item {
  position: relative;
  min-height: 160px;
  padding: 18px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.84),
      rgba(255, 245, 241, 0.68)
    ),
    radial-gradient(
      circle at top left,
      rgba(250, 218, 221, 0.6),
      transparent 42%
    );
  box-shadow: 0 16px 32px rgba(160, 82, 45, 0.1);
  overflow: hidden;
}

.itinerary-item::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.14);
}

.itinerary-item small {
  color: var(--wine);
  font-weight: 700;
}

.itinerary-item h4 {
  margin: 12px 0 8px;
  color: var(--wine-deep);
}

.itinerary-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.guest-kit {
  grid-area: kit;
  display: grid;
  gap: 16px;
  align-content: center;
}

.guest-kit__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-panel {
  padding: 18px;
  overflow: hidden;
}

.memory-splide {
  visibility: visible;
}

.memory-splide .splide__track {
  border-radius: 26px;
}

.memory-splide.is-fallback .splide__track {
  overflow-x: auto;
}

.memory-splide.is-fallback .splide__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  gap: 16px;
}

.showcase-slide {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
}

.showcase-slide__media {
  min-height: 390px;
  background-size: cover;
  background-position: center;
}

.showcase-slide__content {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(
      circle at top right,
      rgba(212, 175, 55, 0.18),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      rgba(255, 252, 249, 0.92),
      rgba(250, 218, 221, 0.42)
    );
}

.showcase-slide__content h3 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--wine-deep);
}

.showcase-slide__content p {
  margin: 0;
  line-height: 1.85;
  color: var(--text-soft);
}

.showcase-slide__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-slide__chips span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--wine-deep);
}

.splide__arrow {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.splide__pagination__page.is-active {
  background: var(--wine);
}

.guest-studio-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.9fr) minmax(
      320px,
      1fr
    );
  gap: 22px;
}

.rsvp-panel,
.song-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.seat-card-panel {
  display: grid;
  gap: 16px;
}

.seat-card {
  min-height: 230px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 24px;
  border-radius: 28px;
  color: #fffaf7;
  background:
    linear-gradient(145deg, rgba(122, 56, 32, 0.88), rgba(160, 82, 45, 0.72)),
    radial-gradient(
      circle at top right,
      rgba(212, 175, 55, 0.38),
      transparent 34%
    );
  box-shadow: 0 24px 50px rgba(122, 56, 32, 0.18);
}

.seat-card small {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.76;
}

.seat-card strong {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.seat-card span {
  opacity: 0.86;
}

.rsvp-list,
.song-list {
  display: grid;
  gap: 10px;
}

.rsvp-chip,
.song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
}

.rsvp-chip strong,
.song-item strong {
  color: var(--wine-deep);
}

.song-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.song-vote {
  min-width: 74px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(250, 218, 221, 0.7);
  color: var(--wine-deep);
  cursor: pointer;
}

.upload-panel,
.story-toolbar,
.panel__header,
.money-row,
.money-actions,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#memory-upload {
  display: none;
}

.memory-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(212, 175, 55, 0.9),
    rgba(250, 218, 221, 0.4)
  );
}

.timeline-item {
  position: relative;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(250, 218, 221, 0.45);
}

.flower-garden {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.flower-note {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  min-height: 190px;
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.88),
    rgba(250, 218, 221, 0.6)
  );
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.flower-note:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.flower-note__icon {
  font-size: 2rem;
  color: var(--wine);
}

.flower-note__text {
  margin-top: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.flower-note:hover .flower-note__text {
  opacity: 1;
  transform: translateY(0);
}

.flower-note__hint {
  margin-top: 14px;
  color: var(--text-soft);
}

.mood-preview h3,
.timeline-item h3,
.quiz-card h3 {
  margin: 0;
}

.timeline-item p,
.quiz-card p {
  margin: 8px 0 0;
}

.memory-card.is-polaroid:nth-child(3n) {
  transform: rotate(-4deg);
}

.memory-card.is-polaroid:nth-child(3n + 1) {
  transform: rotate(4deg);
}

.memory-card.is-polaroid:nth-child(3n + 2) {
  transform: rotate(-2deg);
}

.memory-card.is-polaroid:hover {
  transform: translateY(-8px) scale(1.02) rotate(0deg);
}

.memory-card,
.story-card,
.message-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.memory-card:hover,
.story-card:hover,
.message-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 24px 46px rgba(160, 82, 45, 0.18);
}

.memory-card img,
.memory-card video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.memory-card__meta,
.story-card__content,
.message-card__content {
  padding: 16px;
}

.memory-card__meta p,
.story-card p,
.message-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.memory-card__overlay {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.78);
  color: var(--wine-deep);
}

.two-column,
.savings-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.message-form,
.story-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--wine-deep);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(160, 82, 45, 0.18);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5);
}

:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.message-list {
  display: grid;
  gap: 16px;
  max-height: 470px;
  overflow: auto;
  padding-right: 4px;
  margin: 18px 0;
}

.message-card__head,
.message-card__footer,
.story-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.like-button,
.story-action {
  background: none;
  color: var(--wine);
  padding: 0;
  cursor: pointer;
}

.like-button:hover,
.story-action:hover {
  color: var(--gold);
  transform: scale(1.08);
}

.story-card {
  border: 1px solid rgba(212, 175, 55, 0.14);
}

.story-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 24px 46px rgba(160, 82, 45, 0.18);
}

.story-card h3,
.message-card strong,
.panel h3 {
  margin: 0;
}

.story-card__excerpt {
  margin: 14px 0;
}

.story-card__full {
  display: none;
  white-space: pre-wrap;
}

.story-card.expanded .story-card__full {
  display: block;
}

.story-card.expanded .story-card__excerpt {
  display: none;
}

.savings-ring-wrap {
  display: grid;
  place-items: center;
}

.savings-ring {
  width: min(310px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold) 0deg, rgba(250, 218, 221, 0.6) 0deg);
  box-shadow: 0 24px 50px rgba(212, 175, 55, 0.18);
  transition: background 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.savings-ring__inner {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 251, 247, 0.95);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(160, 82, 45, 0.08);
}

.savings-ring__inner span {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--wine-deep);
}

.savings-ring__inner small,
.money-row p,
.message-card__footer,
.story-meta {
  color: var(--text-soft);
}

.savings-details {
  display: grid;
  gap: 20px;
}

.money-row strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--wine-deep);
}

.savings-log {
  min-height: 170px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.footer {
  width: min(calc(100% - 24px), var(--max-width));
  margin: 0 auto 28px;
  padding: 10px 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.modal,
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 30;
}

.modal.is-open,
.lightbox.is-open {
  display: block;
}

.modal__backdrop,
.lightbox {
  background: rgba(84, 42, 30, 0.48);
}

.modal__dialog {
  position: relative;
  width: min(92vw, 620px);
  margin: 8vh auto;
}

.modal__close,
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--wine-deep);
  cursor: pointer;
}

.lightbox__close {
  position: fixed;
  z-index: 2;
}

.lightbox__content {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 72px 20px 20px;
}

.lightbox__content img,
.lightbox__content video {
  max-width: min(1000px, 92vw);
  max-height: 82vh;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.petal {
  position: absolute;
  top: -30px;
  width: 18px;
  height: 26px;
  background: radial-gradient(
    circle at 30% 30%,
    #fff8f9 0%,
    #fadadd 36%,
    #efb8c0 100%
  );
  border-radius: 70% 30% 60% 40%;
  opacity: 0.72;
  animation: fall linear forwards;
  will-change: transform, opacity;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(0.96);
  }
  50% {
    transform: translateX(-50%) scale(1.14);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fall {
  to {
    transform: translate3d(var(--drift, 0), 110vh, 0) rotate(320deg);
  }
}

/* Toast notification system */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fffaf7;
  box-shadow: 0 14px 36px rgba(122, 56, 32, 0.2);
  animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    toastOut 0.35s 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  white-space: nowrap;
}

.toast--error {
  background: linear-gradient(135deg, #b65c46, #d4846a);
}

.toast--success {
  background: linear-gradient(135deg, #7e9b83, #a3c4a8);
}

.toast--info {
  background: linear-gradient(135deg, #c8b8e8, #ddd0f2);
  color: #5c3d35;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-16px) scale(0.92);
  }
}

@media (max-width: 980px) {
  .hero,
  .love-lab-grid,
  .settings-panel,
  .two-column,
  .savings-panel,
  .suite-grid,
  .showcase-slide,
  .guest-studio-grid {
    grid-template-columns: 1fr;
  }

  .suite-grid {
    grid-template-areas:
      "hero"
      "vow"
      "plan"
      "kit";
  }

  .itinerary-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 40px;
    min-height: auto;
    gap: 12px;
  }

  .hero__photos {
    min-height: auto;
  }

  .hero-window,
  .hero-stars,
  .hero-title-orbit {
    display: none;
  }

  .hero-character {
    width: 130px;
    height: 300px;
    bottom: 8px;
  }

  .hero-character__figure {
    width: 116px;
    height: 270px;
  }

  .hero-character__figure::before {
    left: 26px;
  }

  .upload-panel,
  .story-toolbar,
  .money-row,
  .money-actions,
  .settings-actions,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-actions,
  .mood-buttons,
  .quiz-options {
    flex-direction: column;
  }

  .topbar {
    align-items: center;
    gap: 10px;
  }

  .nav {
    justify-content: flex-start;
    width: min(100%, 620px);
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 86px;
  }

  main,
  .footer,
  .topbar {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 22px;
  }

  .brand {
    text-align: center;
    line-height: 1;
  }

  .nav {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    background: rgba(255, 250, 247, 0.88);
    box-shadow: 0 16px 40px rgba(122, 56, 32, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-dock__item {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    padding: 7px 2px;
    border-radius: 18px;
    color: var(--text-soft);
    font-size: 0.72rem;
  }

  .mobile-dock__item i {
    font-size: 1rem;
  }

  .mobile-dock__item.is-active {
    color: #fffaf7;
    background: linear-gradient(135deg, var(--wine), #c87752);
  }

  .cursor-heart {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 4.6rem);
    overflow-wrap: anywhere;
  }

  .hero__intro {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero__photos {
    min-height: auto;
  }

  .hero-meta-grid {
    grid-template-columns: 1fr;
  }

  .hero-gallery-card {
    padding: 12px;
    border-radius: 26px;
  }

  .hero-gallery-card__main {
    border-radius: 20px;
  }

  .hero-gallery-card__thumbs {
    gap: 8px;
  }

  .hero-gallery-card__thumbs .hero-gallery-card__image {
    border-radius: 16px;
  }

  .photo-frame--one,
  .photo-frame--two,
  .photo-frame--three {
    width: min(58vw, 210px);
    height: 220px;
    border-width: 8px;
  }

  .photo-frame--one {
    left: 0;
    top: 42px;
  }

  .photo-frame--two {
    right: 0;
    top: 16px;
  }

  .photo-frame--three {
    right: 10px;
    top: 150px;
  }

  .anime-badge {
    font-size: 1.15rem;
    padding: 8px 12px;
  }

  .anime-badge--top {
    left: 14px;
    top: 20px;
  }

  .anime-badge--bottom {
    right: 24px;
    bottom: 20px;
  }

  .hero-character {
    display: none;
  }

  .flip-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .topbar {
    border-radius: 24px;
  }

  .memory-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .savings-ring {
    width: min(240px, 55vw);
  }

  .suite-card--hero {
    min-height: 360px;
  }

  .suite-card--hero strong {
    font-size: clamp(3.9rem, 22vw, 5.8rem);
  }

  .itinerary-list {
    grid-template-columns: 1fr;
  }

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

  .itinerary-item {
    min-height: auto;
  }

  .showcase-panel {
    padding: 10px;
  }

  .showcase-slide,
  .showcase-slide__media {
    min-height: 0;
  }

  .showcase-slide__media {
    aspect-ratio: 4 / 3;
  }

  .showcase-slide__content {
    padding: 22px 22px 92px;
  }

  .showcase-slide__content h3 {
    font-size: 2.6rem;
  }

  .memory-card.is-polaroid:nth-child(n),
  .memory-card.is-polaroid:hover {
    transform: none;
  }

  .section {
    padding: 42px 0;
    scroll-margin-top: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  #effect-canvas,
  .petal-layer,
  .cursor-heart {
    display: none !important;
  }
}
