/* ==========================================================================
   Dewi 23rd Birthday — Scrapbook Journal Stylesheet
   Mobile-first (390px primary) scaling cleanly to Desktop (1440px)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

button,
a {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

code {
  font-size: 0.9em;
  background: var(--bg-paper);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-paper);
}

/* Responsive Visibility Helpers */
.desktop-only {
  display: none !important;
}

.mobile-only {
  display: inline-flex;
}

.closing-card.mobile-only {
  display: flex;
}

/* Confetti Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 80;
}

/* Floating Scrapbook Music Toggle Pill */
.music-pill {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-paper);
  box-shadow: var(--shadow-sticker);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 200ms var(--ease-spring), background 200ms ease, border-color 200ms ease;
}

.music-pill:hover {
  transform: translateY(-2px);
}

.music-pill.is-playing {
  background: var(--wash-butter);
  border-color: var(--border-butter);
}

.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}

.music-bars i {
  display: block;
  width: 2.5px;
  height: 5px;
  border-radius: 99px;
  background: var(--accent-coral);
  transition: height 200ms ease;
}

.music-bars i:nth-child(2) { height: 9px; }
.music-bars i:nth-child(3) { height: 6px; }

.music-pill.is-playing .music-bars i {
  animation: musicWave 0.95s ease-in-out infinite;
}

.music-pill.is-playing .music-bars i:nth-child(2) {
  animation-delay: -0.32s;
}

.music-pill.is-playing .music-bars i:nth-child(3) {
  animation-delay: -0.64s;
}

/* Screens & Smooth Dissolve Transition */
.screen {
  min-height: 100dvh;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.screen[hidden] {
  display: none !important;
}

.screen.is-leaving {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.screen.is-entering {
  opacity: 0;
  transform: translateY(10px);
}

/* Shared Typography & Scrapbook Components */
.container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding-inline: 20px;
}

.brand-script {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.heart-mark {
  color: var(--accent-coral);
  font-style: normal;
}

.text-coral {
  color: var(--accent-coral);
}

.text-muted {
  color: var(--ink-muted);
}

.mixed-heading {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mh-line {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
}

.mh-line--with-burst {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.mh-italic {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  line-height: 1.14;
  padding-right: 4px;
}

.mh-italic--coral { color: var(--accent-coral); }
.mh-italic--sage { color: var(--accent-sage); }
.mh-italic--plum { color: var(--accent-plum); }

.mixed-heading--hero-gift .mh-line { font-size: 30px; }
.mixed-heading--hero-gift .mh-italic { font-size: 34px; }

.mixed-heading--hero .mh-line { font-size: 30px; }
.mixed-heading--hero .mh-italic { font-size: 31px; }

.mixed-heading--section .mh-line { font-size: 25px; }
.mixed-heading--section .mh-italic { font-size: 29px; }

.lead-copy {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-body);
}

.section-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.58;
  color: var(--ink-body);
}

/* 3-Dash Hand-Drawn Burst Doodle */
.burst {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.burst i {
  position: absolute;
  display: block;
  height: 3px;
  border-radius: 99px;
}

.burst i:nth-child(1) { width: 12px; left: 0; top: 3px; transform: rotate(-46deg); }
.burst i:nth-child(2) { width: 14px; left: 6px; top: 11px; transform: rotate(-14deg); }
.burst i:nth-child(3) { width: 11px; left: 4px; top: 19px; transform: rotate(18deg); }

.burst--yellow i { background: var(--burst-yellow); }
.burst--coral i { background: var(--burst-coral); }
.burst--sage i { background: var(--burst-sage); }

.burst--tl {
  position: absolute;
  top: 12px;
  left: 10px;
}
.burst--tl i:nth-child(1) { width: 12px; left: 10px; top: 0; transform: rotate(58deg); }
.burst--tl i:nth-child(2) { width: 13px; left: 2px; top: 10px; transform: rotate(22deg); }
.burst--tl i:nth-child(3) { width: 10px; left: 2px; top: 19px; transform: rotate(-14deg); }

/* Pills & Buttons */
.soft-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-paper);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-body);
  line-height: 1.15;
  white-space: nowrap;
  transition: transform 180ms var(--ease-out), background 180ms ease;
}

.soft-pill--butter {
  background: var(--wash-butter);
  border-color: var(--border-butter);
  color: var(--ink);
}

.soft-pill--lilac {
  background: var(--wash-lilac);
  border-color: var(--border-lilac);
  color: var(--accent-plum);
}

.soft-pill--sage {
  background: var(--wash-sage);
  border-color: var(--border-sage);
  color: var(--accent-sage);
}

.soft-pill--sm {
  font-size: 10.5px;
  padding: 5px 10px;
}

.soft-pill--xs {
  font-size: 10px;
  padding: 4px 10px;
  color: var(--ink-muted);
}

.soft-pill--tap-hint {
  color: var(--accent-coral);
  box-shadow: var(--shadow-tile);
}

.soft-pill--back {
  color: var(--ink);
}

.soft-pill--back:hover {
  transform: translateX(-2px);
  background: var(--white);
}

.soft-pill--action {
  padding: 14px 24px;
  font-size: 14px;
  color: var(--ink);
}

.soft-pill--action:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.dark-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-btn);
  transition: transform 200ms var(--ease-spring), box-shadow 200ms ease, background 200ms ease;
}

.dark-pill-btn:hover {
  transform: translateY(-2px);
  background: #2f2a28;
  box-shadow: 0 12px 24px rgba(30, 27, 26, 0.24);
}

.dark-pill-btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-arrow {
  transition: transform 200ms var(--ease-out);
}

.dark-pill-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Paper Card Base */
.paper-card {
  background: var(--bg-card);
  border: 1px solid var(--border-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-paper);
}

.paper-divider {
  border: 0;
  height: 1px;
  background: var(--border-paper);
  margin: 0;
  width: 100%;
}

/* Washi Tape */
.washi {
  display: inline-block;
  height: 12px;
  width: 48px;
  border-radius: 2px;
}

.washi--lilac { background: var(--tape-lilac); }
.washi--butter { background: var(--tape-butter); }
.washi--coral { background: var(--tape-coral); }
.washi--sage { background: var(--tape-sage); }
.washi--tilt-l { transform: rotate(-10deg); }
.washi--tilt-r { transform: rotate(10deg); }

/* Postage Stamp Sticker */
.postage-stamp {
  display: inline-flex;
  width: 66px;
  height: 72px;
  padding: 5px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid #eedfd6;
  box-shadow: var(--shadow-sticker);
}

.postage-stamp__inner {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: #ffebe8;
  border: 1px dashed var(--accent-coral);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.postage-stamp__top {
  font-size: 8px;
  font-weight: 700;
  color: var(--accent-coral);
  letter-spacing: 0.04em;
}

.postage-stamp__num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 17px;
  line-height: 1;
  color: var(--ink);
}

/* Circular Rubber Postmark */
.postmark {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.94);
  border: 1.6px dashed currentColor;
  box-shadow: var(--shadow-sticker);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.05;
}

.postmark--plum { color: var(--accent-plum); }
.postmark--sage { color: var(--accent-sage); }

.postmark__top { font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; }
.postmark__star { font-size: 11px; }
.postmark__bot { font-size: 8px; font-weight: 600; letter-spacing: 0.05em; }

/* ==========================================================================
   SCREEN 1: KADO ULANG TAHUN
   ========================================================================== */
.screen--gift {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 20px 20px 76px;
}

.gift-shell {
  width: 100%;
  max-width: 420px;
  min-height: calc(100dvh - 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.gift-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.gift-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.gift-stage-col {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
}

.gift-card-trigger {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 260ms var(--ease-spring);
}

.gift-card-trigger:hover {
  transform: translateY(-4px);
}

.gift-card-trigger:focus-visible {
  outline: 2px solid var(--accent-coral);
  outline-offset: 8px;
  border-radius: 28px;
}

.gift-collage {
  position: relative;
  width: 310px;
  height: 288px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-backing-blush {
  position: absolute;
  top: 46px;
  left: 38px;
  width: 224px;
  height: 180px;
  border-radius: 24px;
  background: var(--wash-blush);
  transform: rotate(-6deg);
}

.collage-envelope {
  position: absolute;
  bottom: 24px;
  left: 28px;
  width: 248px;
  height: 108px;
  border-radius: 20px;
  background: var(--bg-card-warm);
  border: 1.2px solid #efe1d7;
  box-shadow: var(--shadow-paper);
  transform: rotate(2deg);
  overflow: hidden;
}

.envelope-flap {
  width: 100%;
  margin-top: 8px;
}

.washi--gift {
  position: absolute;
  top: 42px;
  left: 48px;
  width: 54px;
  height: 15px;
  transform: rotate(-28deg);
  z-index: 2;
}

.doodle-trail {
  position: absolute;
  top: 28px;
  right: 16px;
  width: 62px;
  height: 54px;
  z-index: 2;
}

.gift-svg {
  position: relative;
  z-index: 3;
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 12px 22px rgba(94, 66, 55, 0.14));
  animation: giftFloat 3.6s ease-in-out infinite;
}

.gift-lid-group {
  transform-origin: 110px 76px;
  transition: transform 380ms var(--ease-spring);
}

.gift-card-trigger:hover .gift-lid-group {
  transform: translateY(-6px) rotate(-4deg);
}

.gift-card-trigger.is-opening .gift-lid-group {
  transform: translateY(-38px) rotate(-16deg) scale(1.04);
}

.gift-card-trigger.is-opening .gift-svg {
  animation: none;
  transform: scale(1.05);
}

.sticker-dewi {
  position: absolute;
  left: 22px;
  bottom: 92px;
  z-index: 4;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--wash-butter);
  border: 2.5px solid var(--white);
  box-shadow: var(--shadow-sticker);
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink);
  transform: rotate(-8deg);
}

.postage-stamp--gift {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  transform: rotate(9deg);
}

.gift-copy-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gift-copy-col .dark-pill-btn {
  width: 100%;
  margin-top: 2px;
}

.gift-footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   SCREEN 2: KUE, UCAPAN, DOA & KOLASE FOTO HATI
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 246, 242, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-paper);
}

.top-nav__inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding-top: 24px;
  padding-bottom: 84px;
}

/* 1. Hero Kue Section */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cake-card {
  padding: 18px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cake-stage {
  position: relative;
  border-radius: var(--radius-inner);
  background: var(--bg-cake-stage);
  border: 1px solid #f2e2d7;
  padding: 14px 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.washi--cake {
  position: absolute;
  top: -6px;
  left: 18px;
  transform: rotate(-14deg);
}

.postmark--cake {
  position: absolute;
  top: -12px;
  right: -6px;
  transform: rotate(11deg);
}

.cake-svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.candle-flame {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: flameFlicker 1.9s ease-in-out infinite;
}
.candle-flame--2 { animation-delay: -0.6s; animation-duration: 1.6s; }
.candle-flame--3 { animation-delay: -1.1s; animation-duration: 2.1s; }

.cake-card__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cake-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
}

.cake-card__sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--ink-muted);
}

.cake-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 2px;
}

.cake-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cake-stat strong {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.cake-stat span {
  font-size: 11px;
  color: var(--ink-muted);
}

.cake-stat-sep {
  width: 1px;
  height: 28px;
  background: var(--border-paper);
}

/* 2. Journal Spread (Spiral Notebook + Manila Folder) */
.journal-spread {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Spiral Notebook Ucapan Card */
.notebook-card {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  overflow: visible;
}

.notebook-spine {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 26px 0;
  position: relative;
}

.notebook-spine span {
  position: relative;
  display: block;
  height: 10px;
}

.notebook-spine span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd0c7;
}

.notebook-spine span::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 3px;
  width: 22px;
  height: 5px;
  border-radius: 3px;
  background: #a99b92;
  border: 0.6px solid #8a7d75;
}

.notebook-body {
  padding: 20px 18px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pdd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdd-trio {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2.5px solid var(--white);
  box-shadow: var(--shadow-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
}

.avatar-dot + .avatar-dot {
  margin-left: -10px;
}

.pdd-trio__title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.pdd-trio__sub {
  margin: 1px 0 0;
  font-size: 10.5px;
  color: var(--ink-muted);
}

.notebook-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}

.notebook-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  color: var(--ink-body);
}

.notebook-sign {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--wash-lilac);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-plum);
}

/* Manila Folder 3 Doa Card */
.folder-card {
  display: flex;
  flex-direction: column;
}

.folder-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 12px;
}

.folder-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 14px 14px 0 0;
  background: var(--bg-card-warm);
  border: 1px solid var(--border-folder);
  border-bottom: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}

.folder-body {
  background: var(--bg-card-warm);
  border: 1px solid var(--border-folder);
  border-radius: 22px;
  box-shadow: var(--shadow-paper);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doa-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-paper);
}

.doa-row--highlight {
  background: var(--wash-peach);
  border-color: var(--border-peach);
}

.doa-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--white);
  border: 2.4px solid var(--burst-yellow);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}

.doa-row__title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.doa-row__desc {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-body);
}

/* ==========================================================================
   3. HEART PHOTO MOSAIC (Exact 7×6 Grid — 17 Photo Slots)
   ========================================================================== */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.heart-card {
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.heart-card__tapes {
  width: 100%;
  padding-inline: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heart-mosaic-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.heart-mosaic {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
  width: 100%;
  aspect-ratio: 7 / 6;
}

.heart-tile {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 5px;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-tile);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 220ms var(--ease-spring), box-shadow 220ms ease;
}

.heart-tile:hover {
  transform: scale(1.05);
  z-index: 5;
  box-shadow: 0 10px 20px rgba(94, 66, 55, 0.22);
}

.heart-tile:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  z-index: 6;
}

.heart-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.heart-tile__fallback {
  width: 100%;
  height: 100%;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}

.heart-tile--featured .heart-tile__fallback {
  justify-content: space-between;
  padding: 6px;
}

.heart-tile__tag {
  align-self: flex-end;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 7.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.heart-tile__emblem {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.heart-tile__num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 10px;
  color: rgba(87, 78, 73, 0.72);
  line-height: 1;
}

.heart-tile__label {
  font-size: 8px;
  font-weight: 600;
  color: rgba(87, 78, 73, 0.82);
  line-height: 1.15;
}

.heart-mini-pill {
  position: absolute;
  left: 4px;
  bottom: 18%;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--wash-butter);
  border: 1.5px solid var(--white);
  box-shadow: var(--shadow-sticker);
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 9px;
  color: var(--ink);
  transform: rotate(-7deg);
  pointer-events: none;
}

.heart-card__foot {
  margin: 0;
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.5;
}

/* 4. Closing Footer */
.closing-card {
  padding: 18px 16px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.closing-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  color: var(--accent-coral);
}

.closing-card__sub {
  margin: 0;
  font-size: 12px;
  color: var(--ink-body);
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 26, 0.56);
  backdrop-filter: blur(6px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: popIn 240ms var(--ease-spring);
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border-paper);
  background: rgba(255, 253, 251, 0.94);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-tile);
}

.lightbox__media {
  width: 100%;
  max-height: 70dvh;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  background: var(--bg-paper);
}

.lightbox__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg-paper);
}

.lightbox__placeholder-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 46px;
  color: rgba(87, 78, 73, 0.6);
  line-height: 1;
}

.lightbox__placeholder-hint {
  font-size: 12px;
  color: rgba(87, 78, 73, 0.78);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lightbox__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 2px;
}

.lightbox__title {
  margin: 6px 0 2px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}

.lightbox__note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-body);
}

.lightbox__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.lightbox__nav--solo {
  justify-content: center;
  padding-top: 2px;
}

.icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-paper);
  background: var(--bg-paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.icon-circle-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}

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

/* ==========================================================================
   DESKTOP BREAKPOINT (Matches 1440px FigCraft Layout!)
   ========================================================================== */
@media (min-width: 960px) {
  .desktop-only {
    display: inline-flex !important;
  }

  .gift-footer.desktop-only,
  .desktop-footer.desktop-only {
    display: block !important;
  }

  .top-nav__links.desktop-only,
  .hero-actions.desktop-only {
    display: flex !important;
  }

  .mobile-only {
    display: none !important;
  }

  .container {
    max-width: 1200px;
    padding-inline: 40px;
  }

  /* Screen 1 Desktop Split */
  .screen--gift {
    padding: 32px 48px 36px;
  }

  .gift-shell {
    max-width: 1180px;
    min-height: calc(100dvh - 68px);
  }

  .gift-grid {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 72px;
  }

  .gift-copy-col {
    width: 500px;
    gap: 20px;
    align-items: flex-start;
  }

  .gift-copy-col .dark-pill-btn {
    width: auto;
    height: 54px;
    padding-inline: 32px;
    font-size: 15px;
  }

  .mixed-heading--hero-gift .mh-line { font-size: 48px; }
  .mixed-heading--hero-gift .mh-italic { font-size: 54px; }

  .gift-card-trigger {
    padding: 32px 42px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-paper);
    border-radius: 32px;
    box-shadow: var(--shadow-paper);
  }

  .gift-collage {
    width: 390px;
    height: 360px;
  }

  .collage-backing-blush {
    top: 56px;
    left: 52px;
    width: 280px;
    height: 224px;
  }

  .collage-envelope {
    bottom: 26px;
    left: 42px;
    width: 304px;
    height: 132px;
  }

  .washi--gift {
    top: 50px;
    left: 64px;
    width: 68px;
    height: 18px;
  }

  .gift-svg {
    width: 274px;
    height: 274px;
  }

  .sticker-dewi {
    left: 34px;
    bottom: 112px;
    font-size: 16px;
    padding: 8px 18px;
  }

  .postage-stamp--gift {
    right: 22px;
    bottom: 18px;
    width: 78px;
    height: 86px;
  }

  .postage-stamp--gift .postage-stamp__num {
    font-size: 20px;
  }

  /* Screen 2 Desktop Navbar */
  .top-nav__inner {
    height: 76px;
  }

  .brand-script {
    font-size: 21px;
  }

  .top-nav__links {
    gap: 34px;
    align-items: center;
  }

  .nav-link {
    font-size: 14px;
    color: var(--ink-body);
    transition: color 180ms ease;
  }

  .nav-link:hover,
  .nav-link.is-current {
    color: var(--ink);
    font-weight: 600;
  }

  .page-stack {
    gap: 64px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  /* Desktop Split Hero */
  .hero-section {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    align-items: center;
    gap: 56px;
  }

  .hero-copy {
    align-items: flex-start;
    gap: 20px;
  }

  .mixed-heading--hero .mh-line { font-size: 48px; }
  .mixed-heading--hero .mh-italic { font-size: 48px; }

  .lead-copy {
    font-size: 15.5px;
    line-height: 1.68;
  }

  .hero-actions {
    gap: 14px;
    align-items: center;
    padding-top: 4px;
  }

  .cake-card {
    padding: 26px 26px 22px;
    border-radius: var(--radius-card-lg);
    gap: 18px;
  }

  .cake-stage {
    padding: 20px 20px 14px;
    border-radius: 22px;
  }

  .cake-svg {
    max-width: 345px;
  }

  .postmark--cake {
    width: 72px;
    height: 72px;
    top: -14px;
    right: -10px;
  }

  .cake-card__title {
    font-size: 19px;
  }

  .cake-stat strong {
    font-size: 20px;
  }

  /* Desktop 2-Column Journal Spread */
  .journal-spread {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: start;
    gap: 40px;
  }

  .mixed-heading--section .mh-line { font-size: 31px; }
  .mixed-heading--section .mh-italic { font-size: 35px; }

  .notebook-body {
    padding: 26px 28px 26px 12px;
    gap: 16px;
  }

  .notebook-quote {
    font-size: 22px;
  }

  .notebook-text {
    font-size: 14px;
  }

  .folder-body {
    padding: 18px;
    gap: 12px;
  }

  .doa-row {
    padding: 15px 16px;
  }

  .doa-row__title {
    font-size: 14.5px;
  }

  .doa-row__desc {
    font-size: 12.5px;
  }

  /* Desktop Heart Mosaic (850px showcase inside scrapbook sheet!) */
  .heart-card {
    padding: 32px 36px 26px;
    border-radius: var(--radius-card-lg);
    gap: 22px;
  }

  .heart-card__tapes {
    padding-inline: 20px;
  }

  .heart-card__tapes .washi {
    width: 64px;
    height: 14px;
  }

  .heart-mosaic-wrap {
    max-width: 820px;
  }

  .heart-mosaic {
    gap: 11px;
  }

  .heart-tile {
    border-radius: 9px;
    border-width: 1.5px;
  }

  .heart-tile--featured .heart-tile__fallback {
    padding: 12px;
  }

  .heart-tile__tag {
    font-size: 10px;
    padding: 3px 9px;
  }

  .heart-tile__emblem {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .heart-tile__num {
    font-size: 14px;
  }

  .heart-tile__label {
    font-size: 11px;
  }

  .postage-stamp--heart {
    position: absolute;
    left: 16px;
    bottom: 14%;
    transform: rotate(-8deg);
    pointer-events: none;
  }

  .postmark--heart {
    position: absolute;
    right: 16px;
    bottom: 14%;
    width: 72px;
    height: 72px;
    transform: rotate(9deg);
    pointer-events: none;
  }

  .heart-card__foot {
    font-size: 12.5px;
  }

  /* Desktop Footer */
  .desktop-footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 13.5px;
    color: var(--ink-body);
  }
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes giftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes flameFlicker {
  0%, 100% { transform: scale(1) rotate(-1.5deg); opacity: 0.96; }
  45% { transform: scale(1.07, 0.94) rotate(2deg); opacity: 1; }
  75% { transform: scale(0.95, 1.05) rotate(-1deg); opacity: 0.92; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes musicWave {
  0%, 100% { height: 4px; }
  50% { height: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gift-svg,
  .candle-flame { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
