:root {
  --cream: #fdf6ee;
  --pink: #f3d3e0;
  --pink-deep: #e5a8c2;
  --lavender: #e2d6f3;
  --plum: #4a3355;
  --plum-soft: #7a6288;
  --rose: #d88aa8;
  --paper-shadow: 0 20px 45px rgba(74, 51, 85, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, var(--cream) 0%, var(--pink) 55%, var(--lavender) 100%);
  font-family: 'Quicksand', sans-serif;
  color: var(--plum);
  overflow-x: hidden;
}

.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floater {
  position: absolute;
  bottom: -10%;
  font-size: 1.4rem;
  color: var(--rose);
  opacity: 0.35;
  animation-name: drift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes drift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.35; }
  50%  { transform: translateY(-55vh) translateX(15px) rotate(12deg); }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-105vh) translateX(-10px) rotate(-8deg); opacity: 0; }
}

.cover {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

.paper-stack {
  position: relative;
  background: #fffdf9;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(226, 214, 243, 0.4), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(243, 211, 224, 0.5), transparent 55%);
  border-radius: 6px;
  padding: 56px 48px 44px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--paper-shadow);
  transform: rotate(-0.6deg);
}

.tape {
  position: absolute;
  width: 90px;
  height: 34px;
  background: var(--lavender);
  opacity: 0.85;
  box-shadow: 0 2px 6px rgba(74, 51, 85, 0.15);
}

.tape::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.35) 0px,
    rgba(255,255,255,0.35) 4px,
    transparent 4px,
    transparent 9px
  );
}

.tape-left {
  top: -16px;
  left: 28px;
  transform: rotate(-8deg);
  background: var(--pink-deep);
}

.tape-right {
  top: -14px;
  right: 24px;
  transform: rotate(6deg);
  background: var(--lavender);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum-soft);
  font-weight: 600;
}

.title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(3.2rem, 11vw, 4.6rem);
  line-height: 0.95;
  margin: 4px 0 6px;
  color: var(--plum);
}

.tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  color: var(--rose);
  margin: 0 0 22px;
}

.stitch-divider {
  height: 1px;
  margin: 0 auto 22px;
  width: 70%;
  border-top: 2px dashed var(--pink-deep);
  opacity: 0.7;
}

.sub {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--plum-soft);
  margin: 0 0 34px;
}

.begin-btn {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink-deep));
  border: none;
  border-radius: 999px;
  padding: 15px 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(216, 138, 168, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.begin-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(216, 138, 168, 0.55);
}

.begin-btn:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
}

.heart-icon {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.begin-btn:hover .heart-icon {
  transform: scale(1.2);
}

.hint {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--plum-soft);
  opacity: 0.75;
}

@media (max-width: 480px) {
  .paper-stack {
    padding: 44px 26px 34px;
  }
  .tape-left { left: 12px; }
  .tape-right { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .floater {
    animation: none;
    display: none;
  }
  .begin-btn, .begin-btn:hover {
    transition: none;
    transform: none;
  }
}
/* ---------- questions section ---------- */
.cover-hidden { display: none; }

#questions {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

.question-card {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px) rotate(-0.6deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-0.6deg); }
}

.countdown {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: var(--rose);
  margin: 0 0 14px;
}

.q-message {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--plum);
  margin: 0 0 26px;
}

.q-label {
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--plum-soft);
}

.answer-input {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  padding: 12px 18px;
  width: 100%;
  max-width: 320px;
  border: 2px solid var(--pink-deep);
  border-radius: 999px;
  outline: none;
  margin-bottom: 16px;
  text-align: center;
  color: var(--plum);
  background: #fffdf9;
}

.answer-input:focus {
  border-color: var(--rose);
}

.error-msg {
  margin-top: 14px;
  color: var(--rose);
  font-size: 0.9rem;
}
/* ---------- envelope reveal ---------- */
.envelope-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.envelope {
  position: relative;
  width: 240px;
  height: 160px;
}

.envelope-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #fffdf9, var(--pink));
  border-radius: 6px;
  box-shadow: var(--paper-shadow);
  z-index: 1;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pink-deep);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  border-radius: 6px 6px 0 0;
  transform-origin: top center;
  transition: transform 0.9s cubic-bezier(0.6, 0, 0.4, 1);
  z-index: 3;
}

.envelope.open .envelope-flap {
  transform: rotateX(180deg);
}

.envelope-letter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%) translateY(0);
  width: 84%;
  min-height: 90px;
  background: #fffdf9;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(74, 51, 85, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 2;
  transition: transform 1s ease 0.5s;
}

.envelope.open .envelope-letter {
  transform: translateX(-50%) translateY(-70px);
}

.letter-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--plum);
  text-align: center;
  margin: 0;
}

.enter-btn {
  opacity: 0;
}

.enter-btn.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-flap, .envelope-letter {
    transition: none;
  }
  .envelope.open .envelope-flap { transform: rotateX(180deg); }
  .envelope.open .envelope-letter { transform: translateX(-50%) translateY(-70px); }
}
/* ---------- our story page ---------- */
.story {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 60px 20px 80px;
}

.story-inner {
  max-width: 640px;
  width: 100%;
}

.story-heading {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--plum);
  text-align: center;
  margin-bottom: 36px;
}

.story-block {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: #fffdf9;
  border-radius: 6px;
  padding: 28px;
  box-shadow: var(--paper-shadow);
  margin-bottom: 40px;
  transform: rotate(-0.4deg);
}

.story-text {
  flex: 1 1 280px;
}

.story-date {
  font-weight: 600;
  color: var(--rose);
  margin: 0 0 2px;
}

.story-place {
  font-size: 0.9rem;
  color: var(--plum-soft);
  margin: 0 0 14px;
}

.polaroid {
  flex: 0 0 160px;
  background: #fff;
  padding: 10px 10px 26px;
  box-shadow: 0 6px 16px rgba(74, 51, 85, 0.18);
  transform: rotate(3deg);
}

.polaroid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: var(--lavender);
}

.polaroid-caption {
  font-family: 'Dancing Script', cursive;
  font-size: 0.95rem;
  text-align: center;
  margin: 8px 0 0;
  color: var(--plum-soft);
}

.story-section {
  margin-bottom: 34px;
}

.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--rose);
  margin: 0 0 10px;
}

.story-para {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--plum);
  margin: 0 0 12px;
}
/* ---------- gallery menu ---------- */
.gallery-menu {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.gallery-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: var(--plum-soft);
  margin-bottom: 30px;
}

.gallery-cards {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 460px;
}

.gallery-card {
  position: absolute;
  width: 190px;
  min-height: 110px;
  background: #fffdf9;
  border-radius: 6px;
  box-shadow: var(--paper-shadow);
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: scale(1.06) rotate(0deg) !important;
  box-shadow: 0 24px 50px rgba(74, 51, 85, 0.28);
  z-index: 50 !important;
}

.card-label {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--plum);
  margin: 0 0 8px;
}

.card-cta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--rose);
  font-weight: 600;
  margin: 0;
}

/* chaotic floating positions + drift animation, one per card */
.card-1 {
  top: 4%; left: 6%; z-index: 3;
  background-color: #fdf6ee;
  animation: floatA 9s ease-in-out infinite;
}
.card-2 {
  top: 12%; left: 42%; z-index: 5;
  background-color: var(--pink);
  animation: floatB 11s ease-in-out infinite;
}
.card-3 {
  top: 2%; left: 68%; z-index: 2;
  background-color: var(--lavender);
  animation: floatC 10s ease-in-out infinite;
}
.card-4 {
  top: 48%; left: 20%; z-index: 6;
  background-color: #fdf6ee;
  animation: floatD 12s ease-in-out infinite;
}
.card-5 {
  top: 52%; left: 56%; z-index: 4;
  background-color: var(--pink);
  animation: floatE 9.5s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50%      { transform: translate(14px, -10px) rotate(-2deg); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) rotate(4deg); }
  50%      { transform: translate(-12px, 12px) rotate(8deg); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50%      { transform: translate(10px, 14px) rotate(-8deg); }
}
@keyframes floatD {
  0%, 100% { transform: translate(0, 0) rotate(7deg); }
  50%      { transform: translate(-16px, -8px) rotate(3deg); }
}
@keyframes floatE {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50%      { transform: translate(12px, -12px) rotate(-9deg); }
}

@media (max-width: 600px) {
  .gallery-cards { height: 620px; }
  .gallery-card { width: 150px; }
  .card-1 { top: 2%; left: 8%; }
  .card-2 { top: 18%; left: 40%; }
  .card-3 { top: 34%; left: 4%; }
  .card-4 { top: 52%; left: 42%; }
  .card-5 { top: 68%; left: 12%; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card { animation: none; }
}
/* ---------- individual photo gallery ---------- */
.photo-gallery {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 40px 20px 100px;
}

.gallery-page-title {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  text-align: center;
  color: var(--plum);
  margin: 50px 0 20px;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  font-size: 0.9rem;
  z-index: 20;
}

.scatter-wrap {
  position: relative;
  max-width: 900px;
  min-height: 900px;
  margin: 0 auto;
}

.scatter-card {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: 190px;
  background: #fff;
  padding: 10px 10px 26px;
  box-shadow: 0 8px 20px rgba(74, 51, 85, 0.2);
  transform: rotate(var(--rot));
  cursor: pointer;
  transition: transform 0.2s ease, z-index 0s;
}

.scatter-card:hover {
  transform: rotate(0deg) scale(1.08) !important;
  z-index: 99 !important;
}

.scatter-card img,
.scatter-card video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--lavender);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 36, 0.92);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lb-media img,
.lb-media video {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lb-caption {
  color: #fdf6ee;
  font-family: 'Dancing Script', cursive;
  font-size: 1.2rem;
  margin-top: 16px;
}

.lb-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fdf6ee;
  font-size: 1.8rem;
  cursor: pointer;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fdf6ee;
  font-size: 3rem;
  cursor: pointer;
  padding: 10px 16px;
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }

.lb-nav:hover,
.lb-close:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .scatter-card { width: 140px; }
  .scatter-card img, .scatter-card video { height: 120px; }
}
/* ---------- gallery menu ---------- */
.gallery-menu {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.gallery-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  color: var(--plum-soft);
  margin-bottom: 30px;
}

.gallery-cards {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 460px;
}

.gallery-card {
  position: absolute;
  width: 190px;
  min-height: 110px;
  background: #fffdf9;
  border-radius: 6px;
  box-shadow: var(--paper-shadow);
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: scale(1.06) rotate(0deg) !important;
  box-shadow: 0 24px 50px rgba(74, 51, 85, 0.28);
  z-index: 50 !important;
}

.card-label {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--plum);
  margin: 0 0 8px;
}

.card-cta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--rose);
  font-weight: 600;
  margin: 0;
}

.card-1 {
  top: 4%; left: 6%; z-index: 3;
  background-color: #fdf6ee;
  animation: floatA 9s ease-in-out infinite;
}
.card-2 {
  top: 12%; left: 42%; z-index: 5;
  background-color: var(--pink);
  animation: floatB 11s ease-in-out infinite;
}
.card-3 {
  top: 2%; left: 68%; z-index: 2;
  background-color: var(--lavender);
  animation: floatC 10s ease-in-out infinite;
}
.card-4 {
  top: 48%; left: 20%; z-index: 6;
  background-color: #fdf6ee;
  animation: floatD 12s ease-in-out infinite;
}
.card-5 {
  top: 52%; left: 56%; z-index: 4;
  background-color: var(--pink);
  animation: floatE 9.5s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50%      { transform: translate(14px, -10px) rotate(-2deg); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0, 0) rotate(4deg); }
  50%      { transform: translate(-12px, 12px) rotate(8deg); }
}
@keyframes floatC {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50%      { transform: translate(10px, 14px) rotate(-8deg); }
}
@keyframes floatD {
  0%, 100% { transform: translate(0, 0) rotate(7deg); }
  50%      { transform: translate(-16px, -8px) rotate(3deg); }
}
@keyframes floatE {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  50%      { transform: translate(12px, -12px) rotate(-9deg); }
}

@media (max-width: 600px) {
  .gallery-cards { height: 620px; }
  .gallery-card { width: 150px; }
  .card-1 { top: 2%; left: 8%; }
  .card-2 { top: 18%; left: 40%; }
  .card-3 { top: 34%; left: 4%; }
  .card-4 { top: 52%; left: 42%; }
  .card-5 { top: 68%; left: 12%; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card { animation: none; }
}

/* ---------- individual photo gallery ---------- */
.photo-gallery {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 40px 20px 100px;
}

.gallery-page-title {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  text-align: center;
  color: var(--plum);
  margin: 50px 0 20px;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  font-size: 0.9rem;
  z-index: 20;
}

.scatter-wrap {
  position: relative;
  max-width: 900px;
  min-height: 900px;
  margin: 0 auto;
}

.scatter-card {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: 190px;
  background: #fff;
  padding: 10px 10px 26px;
  box-shadow: 0 8px 20px rgba(74, 51, 85, 0.2);
  transform: rotate(var(--rot));
  cursor: pointer;
  transition: transform 0.2s ease, z-index 0s;
}

.scatter-card:hover {
  transform: rotate(0deg) scale(1.08) !important;
  z-index: 99 !important;
}

.scatter-card img,
.scatter-card video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--lavender);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 36, 0.92);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lb-media img,
.lb-media video {
  max-width: 88vw;
  max-height: 78vh;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lb-caption {
  color: #fdf6ee;
  font-family: 'Dancing Script', cursive;
  font-size: 1.2rem;
  margin-top: 16px;
}

.lb-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fdf6ee;
  font-size: 1.8rem;
  cursor: pointer;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fdf6ee;
  font-size: 3rem;
  cursor: pointer;
  padding: 10px 16px;
}

.lb-prev { left: 10px; }
.lb-next { right: 10px; }

.lb-nav:hover,
.lb-close:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .scatter-card { width: 140px; }
  .scatter-card img, .scatter-card video { height: 120px; }
}
/* ---------- about us button on gallery menu ---------- */
.about-us-btn {
  margin-top: 32px;
}

/* ---------- about us page ---------- */
.about-us {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 100px 20px 80px;
}

.about-inner {
  max-width: 600px;
  width: 100%;
  background: #fffdf9;
  border-radius: 6px;
  padding: 44px 38px;
  box-shadow: var(--paper-shadow);
  transform: rotate(-0.3deg);
}

.about-heading {
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  color: var(--plum);
  text-align: center;
  margin: 0 0 28px;
}

.about-para {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--plum);
  margin: 0 0 20px;
}

.about-final {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--rose);
  text-align: center;
  margin-top: 30px;
}
/* ---------- final "This Is For You" page ---------- */
.final-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.letter-card {
  max-width: 600px;
  width: 100%;
  background: #fffdf9;
  border-radius: 6px;
  padding: 44px 38px;
  box-shadow: var(--paper-shadow);
  transform: rotate(-0.3deg);
  text-align: center;
}

.letter-count {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--plum-soft);
  margin: 0 0 10px;
}

.letter-title {
  font-family: 'Caveat', cursive;
  font-size: 2.1rem;
  color: var(--rose);
  margin: 0 0 20px;
}

.letter-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--plum);
  text-align: left;
  margin: 0 0 18px;
  white-space: pre-line;
}

.final-line-wrap {
  text-align: center;
}

.final-line {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--plum);
  line-height: 1.5;
}
/* ---------- agreement page ---------- */
.agreement-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.agreement-card {
  max-width: 560px;
  width: 100%;
  background: #fffdf9;
  border-radius: 6px;
  padding: 44px 38px;
  box-shadow: var(--paper-shadow);
  transform: rotate(-0.3deg);
  text-align: center;
}

.agreement-title {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--plum);
  margin: 0 0 22px;
}

.agreement-para {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--plum);
  text-align: left;
  margin: 0 0 14px;
}

.agreement-highlight {
  font-family: 'Dancing Script', cursive;
  font-size: 1.25rem;
  color: var(--rose);
  text-align: center;
  margin-top: 20px;
}

.agree-check-wrap {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.agree-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--plum-soft);
  cursor: pointer;
}

.agree-checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--rose);
  cursor: pointer;
}

#agreeBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rule-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 36, 0.75);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.rule-card {
  max-width: 420px;
  width: 100%;
  background: #fffdf9;
  border-radius: 6px;
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.rule-count {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--plum-soft);
  margin: 0 0 12px;
}

.rule-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--plum);
  margin: 0 0 26px;
}

.crackers-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, var(--cream) 0%, var(--pink) 55%, var(--lavender) 100%);
  overflow: hidden;
}

.crackers-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.cracker-piece {
  position: absolute;
  top: -10%;
  animation-name: crackerFall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

@keyframes crackerFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.8; }
}

.promises-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.promises-card {
  max-width: 600px;
  width: 100%;
  background: #fffdf9;
  border-radius: 6px;
  padding: 44px 38px;
  box-shadow: var(--paper-shadow);
  transform: rotate(-0.3deg);
  text-align: center;
}

.promises-title {
  font-family: 'Caveat', cursive;
  font-size: 2.3rem;
  color: var(--plum);
  margin: 0 0 30px;
}

.promise-item {
  text-align: left;
  margin-bottom: 20px;
}

.promise-label {
  font-weight: 600;
  color: var(--rose);
  margin: 0 0 4px;
}

.promise-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--plum);
  margin: 0;
}

.promises-divider {
  height: 1px;
  border-top: 2px dashed var(--pink-deep);
  opacity: 0.6;
  margin: 26px 0 22px;
}

.promises-ending-label {
  font-weight: 600;
  color: var(--plum-soft);
  margin: 0 0 8px;
}

.promises-ending {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--plum);
  margin: 0 0 14px;
}

.promises-final-quote {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--rose);
  margin: 0;
}
/* ---------- agreement page: static rule cards ---------- */
.agreement-card {
  max-width: 560px;
  width: 100%;
  background: #fffdf9;
  border-radius: 6px;
  padding: 44px 38px;
  box-shadow: var(--paper-shadow);
  transform: rotate(-0.3deg);
  text-align: center;
  margin: 0 auto 36px;
}

.agreement-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
}

.agreement-title {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: var(--plum);
  margin: 0 0 22px;
}

.agreement-para {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--plum);
  text-align: left;
  margin: 0 0 14px;
}

.agreement-highlight {
  font-family: 'Dancing Script', cursive;
  font-size: 1.25rem;
  color: var(--rose);
  text-align: center;
  margin-top: 20px;
}

.rules-grid {
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.rule-card-static {
  background: #fffdf9;
  border-radius: 6px;
  padding: 26px 22px;
  box-shadow: var(--paper-shadow);
  text-align: left;
}

.rule-card-1 { transform: rotate(-2deg); background-color: #fdf6ee; }
.rule-card-2 { transform: rotate(1.5deg); background-color: var(--pink); }
.rule-card-3 { transform: rotate(-1deg); background-color: var(--lavender); }
.rule-card-4 { transform: rotate(2deg); background-color: #fdf6ee; }
.rule-card-5 { transform: rotate(-1.5deg); background-color: var(--pink); }

.rule-card-num {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--rose);
  margin: 0 0 8px;
}

.rule-card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--plum);
  margin: 0;
}

.agree-action-card {
  margin-bottom: 0;
}

.agree-check-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.agree-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--plum-soft);
  cursor: pointer;
}

.agree-checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--rose);
  cursor: pointer;
}

#agreeBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- crackers celebration ---------- */
.crackers-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, var(--cream) 0%, var(--pink) 55%, var(--lavender) 100%);
  overflow: hidden;
}

.crackers-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.cracker-piece {
  position: absolute;
  top: -10%;
  animation-name: crackerFall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

@keyframes crackerFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0.8; }
}

/* ---------- promises: pinterest-style masonry ---------- */
.promises-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
}

.promises-title {
  font-family: 'Caveat', cursive;
  font-size: 2.3rem;
  color: var(--plum);
  margin: 0 0 32px;
  text-align: center;
}

.promises-masonry {
  column-count: 2;
  column-gap: 20px;
  max-width: 720px;
  width: 100%;
  margin-bottom: 30px;
}

@media (min-width: 700px) {
  .promises-masonry {
    column-count: 3;
  }
}

.promise-pin {
  break-inside: avoid;
  margin-bottom: 20px;
  background: #fffdf9;
  border-radius: 10px;
  padding: 22px 18px;
  box-shadow: var(--paper-shadow);
  display: inline-block;
  width: 100%;
}

.promise-pin-1 { transform: rotate(-1.5deg); background-color: #fdf6ee; }
.promise-pin-2 { transform: rotate(1deg); background-color: var(--pink); }
.promise-pin-3 { transform: rotate(-1deg); background-color: var(--lavender); }
.promise-pin-4 { transform: rotate(1.5deg); background-color: #fdf6ee; }

.promise-pin-emoji {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.promise-pin-label {
  font-weight: 600;
  color: var(--rose);
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.promise-pin-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--plum);
  margin: 0;
}

.promises-ending-card {
  max-width: 560px;
  width: 100%;
  background: #fffdf9;
  border-radius: 6px;
  padding: 36px 32px;
  box-shadow: var(--paper-shadow);
  text-align: center;
}

.promises-ending-label {
  font-weight: 600;
  color: var(--plum-soft);
  margin: 0 0 8px;
}

.promises-ending {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--plum);
  margin: 0 0 14px;
}

.promises-final-quote {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--rose);
  margin: 0;
}