/* ═════════════════════════════════════════════════════════
   for aminah 🐆 - cream · butter yellow · leopard · brown ink
   kawaii maximalism with a soft centre
   ═════════════════════════════════════════════════════════ */

:root {
  --cream:      oklch(96.5% 0.022 85);
  --cream-deep: oklch(93%   0.035 85);
  --butter:     oklch(85%   0.135 88);
  --butter-hi:  oklch(90%   0.10  92);
  --tan:        oklch(63%   0.09  65);
  --ink:        oklch(30%   0.035 55);
  --ink-soft:   oklch(42%   0.04  55);
  --pink:       oklch(72%   0.13  15);
  --white:      oklch(98.5% 0.012 90);

  --font-round: "Fredoka", sans-serif;
  --font-hand:  "Gochi Hand", cursive;

  --shadow-sticker: 0 2px 0 oklch(30% 0.035 55 / .18);
  --border-toy: 3px solid var(--ink);

  /* leopard print, drawn once, tiled everywhere */
  --leopard: url("assets/leopard-hearts.jpg");
}

* { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;
  /* clip, not hidden - `hidden` would break the sticky counter in ch.3 */
  overflow-x: clip;
}

body {
  /* leopard runs under the entire page, full strength; anything with
     text sits on its own paper instead of a page-wide veil */
  background: var(--leopard) 0 0 / 660px var(--cream);
  color: var(--ink);
  font-family: var(--font-round);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
}

::selection { background: var(--butter); color: var(--ink); }

em { font-style: normal; }
.edit { opacity: .55; }

/* ───────────────────────── keyring (fixed) ───────────────── */

.keyring {
  position: fixed;
  top: clamp(.6rem, 2vw, 1.2rem);
  right: clamp(.6rem, 2vw, 1.2rem);
  z-index: 50;
  background: var(--white);
  border: var(--border-toy);
  border-radius: 999px;
  padding: .45rem .8rem .35rem;
  box-shadow: 4px 4px 0 oklch(30% 0.035 55 / .22);
  text-align: center;
}

.keyring__ring {
  width: 22px; height: 22px;
  margin: -16px auto .2rem;
  border: 4px solid var(--tan);
  border-radius: 50%;
  background: var(--cream);
}

.keyring__charms {
  display: flex;
  gap: .3rem;
  list-style: none;
  padding: 0;
}

.keyring__charm {
  width: 1.7rem;
  filter: grayscale(1);
  opacity: .3;
  transition: transform .4s cubic-bezier(.2, 1.6, .4, 1), filter .3s, opacity .3s;
}

.keyring__charm img { width: 100%; height: auto; display: block; }

/* on a phone the full-size ring would cover half the screen */
@media (max-width: 600px) {
  .keyring { padding: .35rem .55rem .25rem; }
  .keyring__charms { gap: .18rem; }
  .keyring__charm { width: clamp(.9rem, 3vw, 1.15rem); }
  .keyring__ring { width: 16px; height: 16px; margin-top: -13px; border-width: 3px; }
  .keyring__label { display: none; }
}

.keyring__charm.is-collected {
  filter: none;
  opacity: 1;
  animation: charm-pop .55s cubic-bezier(.2, 1.8, .4, 1);
}

@keyframes charm-pop {
  0%   { transform: scale(0) rotate(-30deg); }
  70%  { transform: scale(1.35) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}

.keyring__label {
  font-family: var(--font-hand);
  font-size: .7rem;
  color: var(--ink-soft);
  margin-top: .1rem;
}

/* ───────────────────────── toast ─────────────────────────── */

.toast {
  position: fixed;
  top: 4.6rem;
  right: clamp(.6rem, 2vw, 1.2rem);
  z-index: 49;
  background: var(--ink);
  color: var(--butter-hi);
  font-family: var(--font-hand);
  font-size: 1rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

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

/* ───────────────────────── hero ──────────────────────────── */

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem 5rem;
}

/* the hero text gets its own paper card so the print behind it can
   stay at full strength */
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 40rem;
  background: oklch(97.5% 0.015 85);
  border: var(--border-toy);
  border-radius: 1.8rem;
  box-shadow: 8px 8px 0 oklch(30% 0.035 55 / .2);
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1.2rem, 4vw, 2.4rem);
}

.overline {
  font-family: var(--font-hand);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ink-soft);
  transform: rotate(-2deg);
}

.hero__title { line-height: .95; margin: .6rem 0 1.4rem; }

.hero__hbd {
  display: block;
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--tan);
  transform: rotate(-3deg);
  margin-bottom: .3rem;
}

.hero__hbd--sub {
  transform: rotate(-1.5deg);
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  color: var(--ink-soft);
}

.hero__name {
  display: inline-block;
  font-weight: 600;
  font-size: clamp(4rem, 15vw, 8.5rem);
  letter-spacing: -.02em;
  color: var(--ink);
  text-shadow:
    4px 4px 0 var(--butter),
    8px 8px 0 oklch(63% 0.09 65 / .45);
  transform: rotate(-1.5deg);
}

.hero__bang { color: var(--pink); display: inline-block; transform: rotate(6deg); }

.hero__note {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--ink-soft);
  font-weight: 400;
}

.hero__hint {
  margin-top: 1.3rem;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--tan);
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ─────────────── toycard: one of her toys, cut out ────────────
   The stickers are die-cut PNGs with real transparency, so a toy
   never needs a photo frame - it just stands on a lit patch of
   paper with her caption written underneath. */

.toycard {
  position: relative;
  display: grid;
  border-radius: .55rem;
  background:
    radial-gradient(120% 60% at 50% 88%, oklch(92% 0.075 90 / .85), transparent 72%),
    var(--white);
}

.toycard img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  filter: drop-shadow(2px 4px 4px oklch(30% 0.035 55 / .26));
}

/* Snapchat used to burn her captions into the JPEG; the cutouts
   have no text of their own, so now we set them ourselves. */
.toycard figcaption {
  font-family: var(--font-hand);
  font-size: clamp(.78rem, 2.1vw, .95rem);
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  padding: .1rem .3rem .5rem;
}

/* floating stickers - above the paper card, like stickers slapped on top */
.hero__stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* her toys scattered behind the title */
.stickerdrop {
  position: absolute;
  width: clamp(4rem, 10vw, 7rem);
  margin: 0;
  filter: drop-shadow(3px 5px 5px oklch(30% 0.035 55 / .28));
  animation: floaty 6.5s ease-in-out infinite;
}

.stickerdrop img { width: 100%; height: auto; display: block; }

.stickerdrop--1 { top:  5%; left:  2%; rotate: -9deg; }
.stickerdrop--2 { top:  9%; right: 3%; rotate:  8deg; animation-delay: -1.6s; }
.stickerdrop--3 { bottom: 7%; left:  6%; rotate:  6deg; animation-delay: -3.2s; }
.stickerdrop--4 { bottom: 10%; right: 5%; rotate: -7deg; animation-delay: -4.4s; }
.stickerdrop--5 { top: 30%; left: 20%; rotate: 12deg; animation-delay: -2.4s; width: clamp(3rem, 7vw, 5rem); }
.stickerdrop--6 { top: 70%; right: 22%; rotate: -11deg; animation-delay: -5.1s; width: clamp(3rem, 7vw, 5rem); }
.stickerdrop--7 { top: 6%; left: 27%; rotate: 5deg; animation-delay: -.9s; width: clamp(2.6rem, 6vw, 4.2rem); }
.stickerdrop--8 { bottom: 2%; right: 24%; rotate: -6deg; animation-delay: -3.8s; width: clamp(2.6rem, 6vw, 4.2rem); }

/* below 600px only the four corners survive - the rest would
   collide with the title */
@media (max-width: 600px) {
  .stickerdrop--5, .stickerdrop--6,
  .stickerdrop--7, .stickerdrop--8 { display: none; }
}

.stk {
  position: absolute;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  filter: drop-shadow(var(--shadow-sticker));
  animation: floaty 5.5s ease-in-out infinite;
}

/* emoji sit between the photos, never on top of them */
.stk--1 { top: 38%; left:  5%; rotate: -12deg; }
.stk--2 { top: 44%; right: 6%; animation-delay: -1.2s; rotate: 9deg; }
.stk--3 { top: 16%; left: 24%; animation-delay: -2.1s; font-size: clamp(1.2rem, 3vw, 1.9rem); }
.stk--4 { bottom: 16%; right: 24%; animation-delay: -.6s; rotate: -7deg; font-size: clamp(1.2rem, 3vw, 1.9rem); }
.stk--5 { bottom: 14%; left: 25%; animation-delay: -3s; rotate: 14deg; font-size: clamp(1.2rem, 3vw, 1.9rem); }
.stk--6 { top: 18%; right: 25%; animation-delay: -1.8s; font-size: clamp(1.1rem, 2.6vw, 1.6rem); }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

/* washi tape corners */
.tape {
  position: absolute;
  width: 130px; height: 34px;
  background: var(--leopard) 0 0 / 340px, var(--butter);
  z-index: 3;
}
.tape--tl { top: 18px; left: -30px; transform: rotate(-35deg); }
.tape--br { bottom: 18px; right: -30px; transform: rotate(-35deg); }

/* ───────────────────────── moments ───────────────────────── */

.moment {
  position: relative;
  max-width: 34rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1.2rem, 4vw, 2.2rem);
  background: var(--cream);
  border: var(--border-toy);
  border-radius: 1.8rem;
  box-shadow: 8px 8px 0 oklch(30% 0.035 55 / .16);
}

/* each chapter sits at a slightly different angle, like taped-in pages */
.moment:nth-of-type(odd)  { rotate: -.5deg; }
.moment:nth-of-type(even) { rotate:  .5deg; }

/* alternating tilt keeps the scroll lively */
.moment:nth-of-type(even) .moment__title { transform: rotate(1.2deg); }
.moment:nth-of-type(odd)  .moment__title { transform: rotate(-1.2deg); }

.moment__tab {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1rem;
  background: var(--butter);
  border: var(--border-toy);
  border-radius: 999px;
  padding: .15rem .9rem;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 oklch(30% 0.035 55 / .2);
}

.moment__title {
  font-weight: 600;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1.02;
  margin: 1.1rem 0 .9rem;
  letter-spacing: -.01em;
}

.moment__title em {
  color: var(--tan);
  text-shadow: 3px 3px 0 oklch(85% 0.135 88 / .7);
}

.moment__intro {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 28rem;
}

.moment__outro {
  margin-top: 1.8rem;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  transform: rotate(-1deg);
  color: var(--ink);
}

.moment__outro[hidden] { display: none; }

/* ───────────────────────── chat UI ───────────────────────── */

.chat { display: flex; flex-direction: column; gap: .55rem; }
.chat[hidden] { display: none; }

.bubble {
  max-width: 82%;
  padding: .6rem .95rem;
  border: var(--border-toy);
  border-radius: 1.2rem;
  font-size: .98rem;
  animation: bubble-in .4s cubic-bezier(.2, 1.4, .4, 1) both;
  position: relative;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bubble--me {
  align-self: flex-end;
  background: var(--butter);
  border-bottom-right-radius: .3rem;
}

.bubble--her {
  align-self: flex-start;
  background: var(--white);
  border-bottom-left-radius: .3rem;
}

.bubble--typing {
  letter-spacing: .2em;
  color: var(--ink-soft);
}

.bubble__meta {
  display: block;
  font-size: .68rem;
  color: var(--ink-soft);
  margin-top: .2rem;
  font-family: var(--font-hand);
}

.bubble mark {
  background: var(--pink);
  color: var(--white);
  padding: 0 .3em;
  border-radius: .5em;
  cursor: pointer;
  transition: transform .15s;
  display: inline-block;
}

.bubble mark:hover { transform: scale(1.08) rotate(-2deg); }

.bubble mark.is-found {
  background: var(--ink);
  color: var(--butter);
  cursor: default;
}

/* ───────────────────── ch.1: snapchat ui ─────────────────── */

:root {
  --snap-red:  #f23c57;
  --snap-blue: #0eadff;
}

/* the "phone screen" - authentic snapchat inside the toy frame */
.snapframe {
  background: #fff;
  border: var(--border-toy);
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--butter);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #16191c;
}

.snapframe[hidden] { display: none; }

.snapframe__top {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .9rem;
  border-bottom: 1px solid #eef0f2;
}

.snapframe__back { font-size: 1.5rem; line-height: 1; color: #16191c; }

.snapframe__avatar {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: #fffc00;            /* snapchat yellow */
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.snapframe__name { flex: 1; font-weight: 600; font-size: .95rem; }

.snapframe__icons { font-size: .95rem; opacity: .55; }

.snapframe__day {
  text-align: center;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #a8adb3;
  padding: .7rem 0 .2rem;
}

.snapframe__bar {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .7rem;
  border-top: 1px solid #eef0f2;
  font-size: 1.1rem;
}

.snapframe__input {
  flex: 1;
  background: #f2f3f5;
  border-radius: 999px;
  padding: .45rem .95rem;
  font-size: .85rem;
  color: #a8adb3;
}

/* snapchat messages: flat, full-width, name label + colored bar */
.chat--snap { gap: .15rem; padding: .5rem .9rem .9rem; }

.chat--snap .bubble {
  align-self: stretch;
  max-width: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  border-left: 2.5px solid;
  padding: .12rem 0 .12rem .6rem;
  font-size: .92rem;
  line-height: 1.35;
}

.chat--snap .bubble--me  { border-left-color: var(--snap-red); }
.chat--snap .bubble--her { border-left-color: var(--snap-blue); }

/* sender label on the first message of each run */
.chat--snap .bubble.is-first { margin-top: .55rem; }

.chat--snap .bubble.is-first::before {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  margin-bottom: .18rem;
}

.chat--snap .bubble--me.is-first::before  { content: "ME";     color: var(--snap-red); }
.chat--snap .bubble--her.is-first::before { content: "SUBHAN"; color: var(--snap-blue); }

.chat--snap .bubble--typing {
  color: #a8adb3;
  font-style: italic;
  letter-spacing: normal;
  font-size: .8rem;
}

/* ───────────────────── ch.1: snap notification ───────────── */

/* iOS 7 banner: Helvetica Neue, dark translucency, the 2013-era
   yellow icon with the ghost. */
.snap-notif {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: "Helvetica Neue", -apple-system, sans-serif;
  background: rgb(30 30 30 / .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  border-radius: .55rem;
  padding: .55rem .8rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / .35);
  transition: transform .2s;
}

.snap-notif:hover,
.snap-notif:focus-visible { transform: scale(1.015); }

.snap-notif__icon {
  flex: none;
  width: 40px; height: 40px;
  background: #fffc00;
  /* iOS 7 icon corner radius ≈ 22.5% */
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.snap-notif__icon img { width: 74%; height: auto; display: block; }

.snap-notif__text { flex: 1; min-width: 0; }

.snap-notif__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.snap-notif__row strong {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
}

.snap-notif__row time {
  font-size: .78rem;
  color: rgb(255 255 255 / .55);
  font-weight: 400;
}

.snap-notif__msg {
  display: block;
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.25;
  color: rgb(255 255 255 / .92);
}

.snap-notif.is-opened { display: none; }

/* ───────────────────── ch.2: waiting game ────────────────── */

.wait-btn {
  margin-top: 1.2rem;
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 1rem;
  background: var(--butter);
  border: var(--border-toy);
  border-radius: 999px;
  padding: .55rem 1.3rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 oklch(30% 0.035 55 / .22);
  transition: transform .15s, box-shadow .15s;
}

.wait-btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 oklch(30% 0.035 55 / .22); }
.wait-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 oklch(30% 0.035 55 / .22); }

.wait-btn__clock { display: inline-block; }
.wait-btn.is-waiting .wait-btn__clock { animation: clockspin .5s steps(12) infinite; }
.wait-btn[hidden] { display: none; }

@keyframes clockspin { to { transform: rotate(360deg); } }

.bubble .status { font-size: .68rem; color: var(--ink-soft); display: block; text-align: right; }

/* ───────────────────── ch.3: actually counter ────────────── */

.actually-counter {
  position: sticky;
  top: .8rem;
  z-index: 10;
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  background: var(--pink);
  color: var(--white);
  border: var(--border-toy);
  border-radius: 999px;
  padding: .3rem 1rem;
  margin-bottom: 1.4rem;
  transform: rotate(2deg);
  box-shadow: 3px 3px 0 oklch(30% 0.035 55 / .25);
}

.actually-counter__num { font-weight: 600; font-size: 1.5rem; }
.actually-counter__label { font-family: var(--font-hand); font-size: .95rem; }

.actually-counter.is-bumped { animation: charm-pop .4s cubic-bezier(.2, 1.8, .4, 1); }

/* ───────────────────── ch.4: the 3am club ─────────────────
   A slider that drags through the night. Every count on it is
   real, straight out of chat.db. */

.clock {
  background: var(--ink);
  border: var(--border-toy);
  border-radius: 1.4rem;
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: 6px 6px 0 var(--butter);
  color: var(--cream);
  text-align: center;
}

.clock__time {
  font-family: var(--font-hand);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  line-height: 1;
  color: var(--butter);
}

.clock__count {
  margin-top: .5rem;
  font-size: clamp(.95rem, 2.6vw, 1.1rem);
}

.clock__count strong { color: var(--butter); font-size: 1.25em; }

/* the meter bar under the number - scaled to the biggest hour */
.clock__meter {
  height: 10px;
  margin: .8rem auto .2rem;
  max-width: 16rem;
  border-radius: 999px;
  background: oklch(100% 0 0 / .15);
  overflow: hidden;
}

.clock__meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--butter);
  border-radius: 999px;
  transition: width .25s ease;
}

.clock__slider {
  width: 100%;
  margin: 1.1rem 0 .3rem;
  accent-color: var(--butter);
  cursor: ew-resize;
}

.clock__note {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: oklch(90% 0.05 90);
  min-height: 1.4em;
  margin-top: .3rem;
}

.moment__hint {
  margin-top: .8rem;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: center;
}

.moment__hint[hidden] { display: none; }

/* ───────────────────── ch.5: the odometer ───────────────── */

.odo {
  text-align: center;
  background: var(--white);
  border: var(--border-toy);
  border-radius: 1.4rem;
  padding: 1.6rem 1.2rem;
  box-shadow: 6px 6px 0 var(--butter);
}

.odo__num {
  font-family: var(--font-hand);
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.odo__label { margin-top: .4rem; color: var(--ink-soft); }

.odo__go {
  margin-top: 1rem;
  font: inherit;
  font-weight: 600;
  padding: .7rem 1.6rem;
  border: var(--border-toy);
  border-radius: 999px;
  background: var(--butter);
  cursor: pointer;
  transition: transform .15s;
}

.odo__go:hover { transform: scale(1.05); }

.odo__stats {
  list-style: none;
  padding: 1.2rem 0 0;
  margin: 0;
  display: grid;
  gap: .45rem;
}

.odo__stats li {
  opacity: 0;
  translate: 0 8px;
  transition: opacity .5s, translate .5s;
}

.odo__stats li.is-in { opacity: 1; translate: 0 0; }

.odo__stats strong { color: oklch(55% 0.13 70); }

/* ───────────────────── ch.6: i love you ─────────────────── */

.ily__bars { display: grid; gap: .9rem; margin: 1.4rem 0; }

.ily__row { display: grid; gap: .25rem; }

.ily__who {
  font-family: var(--font-hand);
  font-size: 1.05rem;
}

.ily__track {
  height: 1.5rem;
  border: var(--border-toy);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}

.ily__fill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 0;
  padding-right: .5rem;
  border-radius: 999px;
  background: var(--butter);
  font-size: .8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: width .12s linear;
}

.ily__fill--her { background: oklch(88% 0.06 20); }

.ily__btn {
  display: block;
  margin: 0 auto;
  font: inherit;
  font-weight: 600;
  padding: .7rem 1.6rem;
  border: var(--border-toy);
  border-radius: 999px;
  background: var(--butter);
  cursor: pointer;
  transition: transform .15s;
}

.ily__btn:hover { transform: scale(1.05); }

.ily__reveal {
  margin-top: 1.4rem;
  text-align: center;
}

.ily__reveal blockquote {
  font-family: var(--font-hand);
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  margin: .8rem auto 0;
  max-width: 24rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: var(--border-toy);
  border-radius: 1.2rem;
  box-shadow: 4px 4px 0 var(--butter);
  rotate: -1deg;
}

/* ───────────────────── ch.7: the heart jar ──────────────── */

.jar {
  position: relative;
  width: min(15rem, 70vw);
  height: 17rem;
  margin: 0 auto;
  border: var(--border-toy);
  border-radius: 1rem 1rem 2.2rem 2.2rem;
  background: oklch(98% 0.01 90 / .6);
  overflow: hidden;
  cursor: pointer;
}

/* jar lid */
.jar::before {
  content: "";
  position: absolute;
  top: 0; left: -4%;
  width: 108%;
  height: 1.1rem;
  background: var(--tan);
  border-bottom: 3px solid var(--ink);
}

.jar__fill {
  position: absolute;
  inset: auto 0 0 0;
  height: 0%;
  background: oklch(88% 0.06 20 / .55);
  transition: height .3s ease;
}

.jar__heart {
  position: absolute;
  top: -2rem;
  font-size: 1.4rem;
  pointer-events: none;
  animation: raindrop-fall 1.1s ease-in forwards;
}

.jar__count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.jar__hint { text-align: center; }

.jar__break {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .9rem;
  padding: 1.2rem 0 0;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.jar__punch { text-align: center; margin-top: 1rem; }

.jar__brown {
  display: block;
  margin: .7rem auto 0;
  font: inherit;
  font-weight: 600;
  padding: .7rem 1.6rem;
  border: var(--border-toy);
  border-radius: 999px;
  background: var(--butter);
  cursor: pointer;
  transition: transform .15s;
}

.jar__brown:hover { transform: scale(1.08); }

@keyframes raindrop-fall {
  to { transform: translateY(16rem) rotate(40deg); opacity: 1; }
}

/* ───────────────────── ch.8: her own words ───────────────────── */

.quote {
  max-width: 26rem;
  margin: 2.5rem auto 0;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border: var(--border-toy);
  border-radius: 1.4rem;
  box-shadow: 6px 6px 0 var(--butter);
  transform: rotate(-1.5deg);
}

.quote blockquote {
  font-family: var(--font-hand);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  line-height: 1.25;
  margin: 0;
}

.quote figcaption {
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--ink-soft);
}

.moment__intro--centred { margin: 2rem auto 0; text-align: center; }

/* ───────────────────── ch.5: finale ──────────────────────── */

.moment--finale {
  text-align: center;
  padding-bottom: 8rem;
  /* the ending blooms out into full leopard - no paper card here,
     the text elements carry their own cream mats instead */
  background: var(--leopard) 0 0 / 660px var(--cream);
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  rotate: none;
  padding-top: clamp(4rem, 9vw, 6rem);
}

/* glow alone can't fight the full-strength print - every piece of
   finale text sits on its own paper chip instead */
.moment--finale .moment__title,
.moment--finale .moment__intro--centred,
.moment--finale .signoff {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: oklch(97.5% 0.015 85);
  border: var(--border-toy);
  border-radius: 1.4rem;
  box-shadow: 6px 6px 0 oklch(30% 0.035 55 / .2);
  padding: 1rem 1.6rem;
}

.moment--finale .moment__intro--centred { max-width: 30rem; }

.moment--finale .signoff { padding: 1.4rem 2rem; rotate: -1deg; }

.moment--finale .moment__title,
.moment--finale .moment__tab { transform: none; }

.bigring { margin: 3rem auto 2.5rem; max-width: 24rem; }

.bigring__ring {
  width: 64px; height: 64px;
  margin: 0 auto -6px;
  border: 8px solid var(--tan);
  border-radius: 50%;
}

.bigring__charms {
  list-style: none;
  padding: 1rem 0 0;
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.bigring__charm {
  font-size: 2.6rem;
  filter: drop-shadow(var(--shadow-sticker));
  animation: dangle 3s ease-in-out infinite;
  transform-origin: top center;
}

.bigring__charm:nth-child(2n) { animation-delay: -.8s; }
.bigring__charm:nth-child(3n) { animation-delay: -1.6s; }

.bigring__charm img { width: 3.2rem; height: auto; }

@keyframes dangle {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}

.bigring__hint {
  font-family: var(--font-hand);
  color: var(--ink);
  margin-top: 1rem;
  display: block;
  width: fit-content;
  margin-inline: auto;
  background: oklch(97.5% 0.015 85);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .35rem 1rem;
  box-shadow: 3px 3px 0 oklch(30% 0.035 55 / .2);
}

.bigring__hint[hidden] { display: none; }

.signoff { margin-top: 3rem; }

.signoff__letter {
  font-family: var(--font-round);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 34rem;
  text-align: left;
}

/* ───────────────────── reduced motion ────────────────────── */

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