/* ---------- palette & base ---------- */
:root {
  --paper:        #f5e9d0;
  --paper-deep:   #ecdcb8;
  --paper-shadow: #c9b083;
  --ink:          #4a3520;
  --ink-soft:     #6b4f33;
  --gold:         #b8893a;
  --gold-bright:  #d9a94a;
  --gold-deep:    #8a611f;
  --sepia:        #7a5230;
  --leather:      #6b3a1f;
  --leather-deep: #3d1f0d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Cormorant Garamond', serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at center, #2a1a0d 0%, #14090a 70%, #050203 100%);
  overflow-x: hidden;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 24px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 100vh;
  justify-content: center;
}

/* ---------- StPageFlip container ---------- */
#book {
  width: min(1600px, 98vw);
  height: min(960px, 92vh);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6));
}

/* StPageFlip injects its own wrapper classes; make sure pages sit cleanly */
.stf__parent { user-select: none; }
.stf__wrapper { background: transparent; }

/* ---------- a page ---------- */
.page {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.03) 0, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.025) 0, transparent 2px),
    radial-gradient(circle at 50% 90%, rgba(0,0,0,0.03) 0, transparent 2px),
    linear-gradient(135deg, #f7ecd2 0%, #ecdab2 60%, #d9c290 100%);
  background-size: 6px 6px, 9px 9px, 12px 12px, 100% 100%;
  overflow: hidden;
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      115deg,
      rgba(122, 82, 48, 0.04) 0px,
      rgba(122, 82, 48, 0.04) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      25deg,
      rgba(122, 82, 48, 0.03) 0px,
      rgba(122, 82, 48, 0.03) 1px,
      transparent 1px,
      transparent 5px
    );
  pointer-events: none;
}

.page::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(122,82,48,0.35) 100%);
  pointer-events: none;
}

/* spine shadow — left page (odd ordinal in StPageFlip layout) */
.stf__item.--left .page {
  box-shadow: inset -16px 0 26px -12px rgba(74,53,32,0.4);
}
.stf__item.--right .page {
  box-shadow: inset 16px 0 26px -12px rgba(74,53,32,0.4);
}

/* ---------- COVER (front + back) ---------- */
.page-cover {
  background:
    radial-gradient(ellipse at 30% 20%, #8a4a23 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, #4d220e 0%, transparent 55%),
    linear-gradient(135deg, #6b3a1f 0%, #4a230f 100%);
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.55),
    inset 0 0 0 12px rgba(0,0,0,0.18);
  color: var(--paper);
  overflow: hidden;
}

.page-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.18) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.15) 0 1.5px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(0,0,0,0.18) 0 1.5px, transparent 2px),
    radial-gradient(circle at 85% 25%, rgba(0,0,0,0.13) 0 1.5px, transparent 2px);
  background-size: 7px 7px, 11px 11px, 9px 9px, 13px 13px;
  opacity: 0.7;
  pointer-events: none;
}

.page-cover::after { display: none; }

.cover-frame {
  position: absolute;
  inset: 28px;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 36px;
  box-shadow:
    inset 0 0 0 6px rgba(0,0,0,0.25),
    inset 0 0 0 7px var(--gold-deep);
}

.cover-eyebrow {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.45em;
  font-size: 12px;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin: 0 0 32px;
  opacity: 0.9;
}
.cover-eyebrow.back { margin: 32px 0 0; }

.cover-title {
  margin: 0;
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
}

.cover-title .line-1 {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--gold-bright);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.cover-title .line-2 {
  display: block;
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(64px, 7.2vw, 104px);
  line-height: 1;
  color: var(--gold-bright);
  text-shadow:
    0 1px 0 var(--gold-deep),
    0 2px 4px rgba(0,0,0,0.6);
}

.cover-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 24px;
  width: 70%;
}
.cover-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cover-divider .diamond {
  flex: 0;
  font-size: 16px;
  color: var(--gold-bright);
}

.cover-byline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: rgba(245, 233, 208, 0.78);
  margin: 0;
}
.cover-byline.back {
  font-family: 'Pinyon Script', cursive;
  font-size: 36px;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

.cover-ornament {
  position: absolute;
  font-size: 26px;
  color: var(--gold-bright);
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.cover-ornament.top    { top: 18px; }
.cover-ornament.bottom { bottom: 18px; transform: rotate(180deg); }

/* ---------- BLANK / DEDICATION / TBC ---------- */
.page-blank .blank-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 48px;
}

.dedication {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 32px;
}
.dedication em {
  font-family: 'Pinyon Script', cursive;
  font-style: normal;
  font-size: 44px;
  color: var(--gold-deep);
  margin-top: 14px;
  line-height: 1;
}

.ornament-large {
  font-size: 40px;
  color: var(--gold);
  opacity: 0.75;
  margin: 16px 0;
}

.to-be-continued {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  margin: 0 0 18px;
}

.footnote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 280px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.85;
}

/* ---------- INTERIOR PAGES ---------- */
.page-inner {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 5%, 72px) clamp(32px, 5%, 64px) clamp(40px, 6%, 80px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chapter-eyebrow {
  font-family: 'Cinzel', serif;
  text-transform: lowercase;
  letter-spacing: 0.4em;
  font-size: clamp(11px, 1vw, 14px);
  color: var(--gold-deep);
  margin: 0 0 14px;
  text-align: center;
}

.chapter-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  text-align: center;
  color: var(--ink);
  margin: 0 0 32px;
  position: relative;
}

.chapter-title::after {
  content: '\2766';
  display: block;
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--gold);
  margin-top: 14px;
  font-style: normal;
}

.story {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px;
  text-align: justify;
  hyphens: auto;
}

.dropcap {
  float: left;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(50px, 5vw, 76px);
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--gold-deep);
  text-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.story.handwritten {
  font-family: 'Tangerine', cursive;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.3;
  color: var(--sepia);
  text-align: center;
  margin-top: 28px;
}

.page-number {
  margin-top: auto;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.3em;
  color: var(--gold-deep);
  padding-top: 24px;
}

/* ---------- POLAROID ---------- */
.polaroid {
  margin: clamp(20px, 3%, 48px) auto clamp(16px, 2%, 32px);
  width: clamp(240px, 70%, 420px);
  background: #fbf6e8;
  padding: clamp(12px, 1.5%, 20px) clamp(12px, 1.5%, 20px) clamp(40px, 6%, 64px);
  position: relative;
  transform: rotate(-2.2deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 14px 28px rgba(74,53,32,0.4),
    0 2px 4px rgba(74,53,32,0.2);
}

.polaroid-tilt-right { transform: rotate(2.4deg); }
.polaroid-tilt-right .tape-tl { transform: rotate(28deg); left: auto; right: -18px; top: -10px; }
.polaroid-tilt-right .tape-br { transform: rotate(-32deg); right: auto; left: -22px; bottom: 26px; }

.polaroid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(0,0,0,0.025) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.02) 0 1px, transparent 1.5px);
  background-size: 5px 5px, 7px 7px;
  pointer-events: none;
}

.polaroid-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #2a1a0d;
  position: relative;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.35) saturate(0.85) contrast(1.03) brightness(1.02);
}

.polaroid-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(74,53,32,0.35) 100%);
  pointer-events: none;
}

.polaroid-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(10px, 1.5%, 18px);
  text-align: center;
  font-family: 'Tangerine', cursive;
  font-size: clamp(22px, 2.2vw, 36px);
  color: var(--sepia);
  letter-spacing: 0.02em;
}

.tape {
  position: absolute;
  width: 64px;
  height: 20px;
  background: rgba(218, 196, 145, 0.55);
  border-left: 1px dashed rgba(122,82,48,0.2);
  border-right: 1px dashed rgba(122,82,48,0.2);
  box-shadow: 0 2px 6px rgba(74,53,32,0.2);
}
.tape-tl { top: -10px; left: -18px; transform: rotate(-32deg); }
.tape-br { bottom: 24px; right: -22px; transform: rotate(28deg); }

.caption-line {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(14px, 1.2vw, 19px);
  color: var(--ink-soft);
  margin: 8px 0 0;
  letter-spacing: 0.05em;
}

/* ---------- HINT ---------- */
.hint {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3em;
  font-size: 11px;
  color: rgba(216, 180, 120, 0.55);
  text-transform: lowercase;
  margin-top: 8px;
  transition: opacity 0.6s ease;
}
.hint.hidden { opacity: 0; pointer-events: none; }

/* ---------- MUSIC TOGGLE ---------- */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  background: linear-gradient(135deg, #6b3a1f 0%, #4a230f 100%);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: lowercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.5),
    inset 0 0 0 3px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.music-toggle:hover { transform: translateY(-2px); }
.music-toggle .note { font-size: 18px; line-height: 1; }
.music-toggle.playing .note {
  animation: pulse 1.6s ease-in-out infinite;
}
.music-toggle.missing { opacity: 0.6; }

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

/* ---------- THE QUESTION ---------- */
.ask-title {
  margin-bottom: 10px;
}

.ask-subtext {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(14px, 1.3vw, 19px);
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 36px;
  opacity: 0.9;
}

/* the answer area lets the No button roam without disturbing the layout */
.answer-area {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.answer-btn {
  font-family: 'Cinzel', serif;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.08em;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.yes-btn {
  background: linear-gradient(135deg, #b8893a 0%, #8a611f 100%);
  color: var(--paper);
  border: 1.5px solid var(--gold-bright);
  box-shadow:
    0 6px 16px rgba(74, 53, 32, 0.45),
    inset 0 0 0 3px rgba(0, 0, 0, 0.12);
}
.yes-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 22px rgba(74, 53, 32, 0.5);
}

.no-btn {
  background: var(--paper);
  color: var(--ink-soft);
  border: 1.5px solid var(--paper-shadow);
  transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              top  0.22s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.18s ease;
}

/* ---------- SHE SAID YES (overlay) ---------- */
.celebration {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at center, rgba(42, 26, 13, 0.92) 0%, rgba(5, 2, 3, 0.97) 75%);
  animation: fade-in 0.8s ease both;
}
.celebration[hidden] { display: none; }

.celebration-card {
  position: relative;
  z-index: 2;
  max-width: 520px;
  text-align: center;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
  background:
    linear-gradient(135deg, #6b3a1f 0%, #4a230f 100%);
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 0 6px rgba(0, 0, 0, 0.22),
    inset 0 0 0 7px var(--gold-deep);
  animation: rise-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cover-ornament-static {
  font-size: 28px;
  color: var(--gold-bright);
  opacity: 0.9;
  margin-bottom: 12px;
}

.celebration-title {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(52px, 9vw, 88px);
  line-height: 1;
  color: var(--gold-bright);
  margin: 6px 0 8px;
  text-shadow: 0 1px 0 var(--gold-deep), 0 2px 6px rgba(0, 0, 0, 0.6);
}

.celebration-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.7;
  color: rgba(245, 233, 208, 0.9);
  margin: 18px 0 24px;
}

.celebration-sign {
  font-family: 'Tangerine', cursive;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--gold-bright);
  margin: 0;
}

/* falling hearts */
.hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.heart {
  position: absolute;
  top: -8%;
  color: var(--gold-bright);
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

@keyframes fall {
  0%   { transform: translateY(-10vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.95; }
  90%  { opacity: 0.95; }
  100% { transform: translateY(112vh) rotate(360deg); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- MEDIA PAGES — scrapbook style ---------- */
.page-media {
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: auto;            /* let a busy page scroll rather than crop */
}

/* the pinboard the photos are arranged on */
.scrapbook {
  display: grid;
  gap: clamp(14px, 2.5vw, 28px);
  align-items: start;
  justify-items: center;
  padding: clamp(6px, 1.5vw, 16px) 2px;
  margin: auto 0;
}
.scrap-cols-1 { grid-template-columns: 1fr; }
.scrap-cols-2 { grid-template-columns: repeat(2, 1fr); }
.scrap-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* a single taped photo / clip — keeps its NATURAL shape, never cropped */
.scrap {
  position: relative;
  margin: 0;
  width: 100%;
  background: #fbf6e8;
  padding: 8px 8px 10px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 20px rgba(74, 53, 32, 0.34),
    0 2px 4px rgba(74, 53, 32, 0.2);
}
.scrap-cols-1 .scrap { max-width: 78%; }

/* the image/video itself: full width, natural height (no crop) */
.scrap-media { line-height: 0; }
.scrap .frame-media {
  width: 100%;
  height: auto;
  display: block;
  background: #14090a;
  filter: sepia(0.26) saturate(0.9) contrast(1.02) brightness(1.02);
}

/* scribbled margin-note caption */
.scrap-cap {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 24px);
  color: var(--sepia);
  text-align: center;
  padding: 5px 4px 0;
  line-height: 1.05;
  transform: rotate(-1.5deg);
}
.scrap.tilt-b .scrap-cap,
.scrap.tilt-d .scrap-cap { transform: rotate(1.8deg); }

/* hand-drawn doodles peeking from the corners of each photo */
.doodle {
  position: absolute;
  z-index: 3;
  width: clamp(26px, 4vw, 40px);
  pointer-events: none;
  color: var(--gold-deep);
  opacity: 0.85;
}
.doodle svg {
  width: 100%;
  height: auto;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* the heart reads better filled */
.doodle svg path[d^="M16 27"] { fill: currentColor; stroke: none; }

.d-tl { top: -16px; left: -14px; transform: rotate(-12deg); }
.d-tr { top: -16px; right: -14px; transform: rotate(10deg); }
.d-bl { bottom: -18px; left: -12px; transform: rotate(8deg); }
.d-br { bottom: -18px; right: -12px; transform: rotate(-10deg); }

/* alternate doodle colours so the page feels playful, not uniform */
.scrap.tilt-b .doodle,
.scrap.tilt-e .doodle { color: #b5566f; }   /* a soft rose */
.scrap.tilt-c .doodle { color: var(--gold); }

/* ---------- tap-to-speak photos ---------- */
.scrap-speak { cursor: pointer; }
.scrap-speak .scrap-media .frame-media { transition: transform 0.2s ease; }
.scrap-speak:active .scrap-media .frame-media { transform: scale(0.97); }

/* little "tap me!" nudge that fades out once tapped */
.tap-hint {
  position: absolute;
  bottom: 6px;
  right: 8px;
  z-index: 4;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 20px);
  color: #b5566f;
  background: rgba(255, 255, 255, 0.82);
  padding: 1px 8px;
  border-radius: 10px;
  transform: rotate(-4deg);
  pointer-events: none;
  animation: tap-pulse 1.4s ease-in-out infinite;
}
.scrap-speak.saying .tap-hint { display: none; }

@keyframes tap-pulse {
  0%, 100% { transform: rotate(-4deg) scale(1); opacity: 0.9; }
  50%      { transform: rotate(-4deg) scale(1.1); opacity: 1; }
}

/* the speech bubble — hidden until .saying is toggled on */
.say-bubble {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 6;
  transform: translate(-50%, 6px) scale(0.8);
  transform-origin: bottom center;
  background: #fff;
  color: #3a2e33;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.1;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(74, 53, 32, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}
/* the little tail under the bubble */
.say-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  margin-left: -7px;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
.scrap-speak.saying .say-bubble {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* playful tilts so the page looks hand-arranged */
.scrap.tilt-a { transform: rotate(-2.4deg); }
.scrap.tilt-b { transform: rotate(1.8deg); }
.scrap.tilt-c { transform: rotate(-1.2deg); }
.scrap.tilt-d { transform: rotate(2.6deg); }
.scrap.tilt-e { transform: rotate(-3deg); }

/* tape pieces, reusing the existing .tape look */
.scrap .tape { z-index: 2; }
.tape-top    { top: -10px; left: 50%; margin-left: -32px; transform: rotate(-2deg); }
.tape-corner { top: -9px;  left: -16px; transform: rotate(-34deg); }
.tape-corner2{ top: -9px;  right: -16px; left: auto; transform: rotate(32deg); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  #book {
    width: 96vw;
    height: 70vh;
  }
  .cover-title .line-2 { font-size: 56px; }
  .chapter-title { font-size: 24px; }
  .story { font-size: 16px; }
  .polaroid { width: 220px; }
  .page-inner { padding: 32px 26px 40px; }
  .answer-area { flex-direction: row; gap: 16px; }
  .answer-btn { padding: 12px 22px; }
  .scrapbook { gap: 14px; }
  .scrap-cols-3 { grid-template-columns: repeat(2, 1fr); } /* 3-up too tight on phones */
}

/* ---------- already answered + overlay close ---------- */
.already-yes {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(34px, 4vw, 52px);
  color: var(--gold-deep);
  text-align: center;
  margin: 0;
  line-height: 1.2;
  animation: rise-in 0.6s ease both;
}

.celebration-close {
  margin-top: 26px;
  background: transparent;
  color: rgba(245, 233, 208, 0.7);
  border: 1px solid rgba(216, 180, 120, 0.4);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.celebration-close:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}
