/* ===================================================================
   2-PAGE SPREAD 3D FLIPBOOK - PERFECTLY CENTERED SPREAD (100VH)
   =================================================================== */

:root {
  /* Cute Pastel Scrapbook Palette (Soft Cream Tabletop, Milk Paper & Candy Pastels) */
  --bg-canvas: #faf5ed;
  --bg-gradient: radial-gradient(ellipse at 50% 45%, #fffaf4 0%, #f7eee3 55%, #eae0d0 100%);
  --paper-cream: #fffdfa;
  --paper-cream-alt: #fef8f3;
  --paper-border: #f0dfd3;
  
  --text-main: #2d242a; /* Soft Deep Espresso Ink */
  --text-body: #4b3d45; /* Warm Cocoa Ink */
  --text-muted: #8e7c85; /* Soft Muted Rose-Mauve */
  --accent-rose: #ea6b85; /* Cute Strawberry Pink */
  --accent-gold: #f59e0b; /* Honey Warm Gold */
  --accent-mint: #48bb78; /* Soft Pastel Mint */
  --accent-purple: #9b72cf; /* Soft Lavender */
  --accent-peach: #f6ad55; /* Soft Peach */

  /* Cute Pastel Tokens */
  --pastel-pink: #ffd6df;
  --pastel-peach: #ffe5d0;
  --pastel-butter: #fff4ba;
  --pastel-mint: #d5f2e3;
  --pastel-lavender: #ece2fa;
  --pastel-sky: #d2ecf9;

  /* Typography: Cute Handwriting, Playful Sans & Soft Editorial Fonts */
  --font-serif-title: 'Playfair Display', Georgia, serif;
  --font-serif-body: 'Quicksand', 'Plus Jakarta Sans', sans-serif;
  --font-cute: 'Gaegu', 'Patrick Hand', cursive;
  --font-hand: 'Patrick Hand', 'Caveat', cursive;
  --font-sans: 'Quicksand', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-roman: 'Cinzel', serif;

  /* Universal Fallback Aliases */
  --font-serif: var(--font-serif-title);

  /* Geometry: Authentic book aspect ratio (~1 : 1.45) */
  --page-w: min(425px, 44vw, calc((100vh - 120px) / 1.45));
  --page-h: calc(var(--page-w) * 1.45);
  --flip-speed: 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Alternative Night Fairy Lights Cozy Theme */
body.theme-linen {
  --bg-canvas: #26222b;
  --bg-gradient: radial-gradient(ellipse at 50% 50%, #362f3d 0%, #1c1822 90%);
  --paper-cream: #fffdfa;
  --paper-cream-alt: #fcf6ef;
  --paper-border: #e8d7ca;
}

/* Absolute lock on 100vh: NO SCROLL DOWN AT ALL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden; /* STRICTLY PREVENTS SCROLLING DOWN */
  background-color: var(--bg-canvas);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  font-family: var(--font-sans);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  user-select: none;
  touch-action: none;
  transition: background-color 0.4s ease;
}

/* CLEAN DISPLAY: HIDE TOP NAV ONLY */
.clean-nav {
  display: none !important;
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ===================================================================
   TOP CLEAN NAVIGATION BAR
   =================================================================== */

.clean-nav {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 1100px;
  padding: 14px 20px 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand-logo {
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.nav-brand-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
}

.nav-counter {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--paper-border);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent-rose);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--paper-border);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav-btn:hover {
  background: #ffffff;
  border-color: #d8cebe;
  transform: translateY(-1px);
}

.nav-btn.icon-btn {
  padding: 6px 10px;
  font-size: 0.92rem;
}

.music-btn.playing {
  background: #fff8eb;
  border-color: var(--accent-gold);
  color: #79571e;
}

.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.sound-wave span {
  width: 2.5px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.music-btn.playing .sound-wave span:nth-child(1) { animation: wave 0.6s infinite alternate ease-in-out; }
.music-btn.playing .sound-wave span:nth-child(2) { animation: wave 0.8s infinite 0.15s alternate ease-in-out; }
.music-btn.playing .sound-wave span:nth-child(3) { animation: wave 0.5s infinite 0.3s alternate ease-in-out; }
.music-btn.playing .sound-wave span:nth-child(4) { animation: wave 0.7s infinite 0.1s alternate ease-in-out; }

@keyframes wave {
  0% { height: 3px; }
  100% { height: 11px; }
}

/* ===================================================================
   3D BOOK STAGE & MATHEMATICAL CENTERING ENGINE
   =================================================================== */

.book-stage {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  perspective: 2500px;
  padding: 0;
  cursor: grab;
  cursor: -webkit-grab;
}

.book-stage.is-dragging {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

/* Book Wrapper Centering:
   - When OPEN: Shift right by (+var(--page-w) / 2) so the spine is in the DEAD CENTER of viewport!
   - When CLOSED (Cover): translateX(0) so the single cover is centered by flexbox!
   - When CLOSED at back: translateX(var(--page-w)) so the back cover is centered!
*/
.book-wrapper {
  position: relative;
  width: var(--page-w);
  height: var(--page-h);
  transition: transform var(--flip-speed);
  /* OPEN SPREAD: perfectly centered 2-page spread */
  transform: translateX(calc(var(--page-w) / 2));
}

.book-wrapper.is-closed {
  /* CLOSED COVER: perfectly centered single cover */
  transform: translateX(0);
}

.book-wrapper.is-closed-back {
  /* CLOSED BACK: perfectly centered back cover */
  transform: translateX(var(--page-w));
}

.book {
  position: relative;
  width: var(--page-w);
  height: var(--page-h);
  transform-style: preserve-3d;
}

/* Dual-page spread floor shadow centered under both pages */
.book::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: calc(-1 * var(--page-w) + 12px);
  width: calc(var(--page-w) * 2 - 24px);
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.75) 0%, rgba(0,0,0,0) 72%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
  transition: all var(--flip-speed);
}

.book-wrapper.is-closed .book::after {
  left: 12px;
  width: calc(var(--page-w) - 24px);
}

.book-wrapper.is-closed-back .book::after {
  left: calc(-1 * var(--page-w) + 12px);
  width: calc(var(--page-w) - 24px);
}

/* ===================================================================
   3D PAPER SHEETS & REAL BOOK FLIP MECHANIC
   =================================================================== */

.paper {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--page-w);
  height: var(--page-h);
  transform-origin: left center; /* Hinges on central book spine */
  transform-style: preserve-3d;
  transition: var(--flip-speed);
}

.front,
.back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--paper-border);
  box-shadow: 0 16px 45px -8px rgba(110, 80, 70, 0.2), 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* Right pages (front of sheets) round top-right and bottom-right */
.front {
  transform: rotateY(0deg) translateZ(0.5px);
  border-radius: 2px 14px 14px 2px;
}

/* Left pages (back of sheets when rotated 180deg) round top-left and bottom-left */
.back {
  transform: rotateY(180deg) translateZ(0.5px);
  border-radius: 14px 2px 2px 14px;
}

/* FLIPPED 3D STATE: Rotates 180deg to left side of spine */
.paper.flipped {
  transform: rotateY(-180deg);
}

/* Spine Crease Shadows for 3D realism */
.left-page::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 100%;
  background: linear-gradient(to left, rgba(35, 30, 20, 0.12) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 10;
}

.right-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 100%;
  background: linear-gradient(to right, rgba(35, 30, 20, 0.12) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 10;
}

/* ===================================================================
   COVER STYLING
   =================================================================== */

.book-cover {
  background: #faf7f2;
  border-radius: 2px 16px 16px 2px;
  display: flex;
  padding: 10px;
  position: relative;
  border: 1px solid rgba(197, 155, 72, 0.35);
  box-shadow: 0 25px 65px -12px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ===================================================================
   100% PURE CSS AESTHETIC SCRAPBOOK BINDER COVER
   =================================================================== */

.front.book-cover {
  padding: 0 !important;
  background: #fff8f9;
  border-radius: 4px 18px 18px 4px;
  overflow: hidden;
  border: 1.5px solid rgba(234, 107, 133, 0.3);
  box-shadow: 0 16px 45px -8px rgba(135, 100, 110, 0.22);
}

.cover-inner.scrapbook-pure-css {
  width: 100%;
  height: 100%;
  border-radius: 4px 18px 18px 4px;
  background-color: #fff9f6;
  background-image: radial-gradient(circle, rgba(234, 107, 133, 0.2) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

/* Authentic Paper Border on Cover Edge */
.cover-inner.scrapbook-pure-css::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px dashed rgba(234, 107, 133, 0.25);
  border-radius: 4px 16px 16px 4px;
  pointer-events: none;
}

/* ===================================================================
   METALLIC BINDER SPINE & ROSE GOLD RINGS
   =================================================================== */

.binder-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 38px;
  background: linear-gradient(to right, #ffe3ea 0%, #ffd1dc 75%, #ffb8c7 100%);
  border-right: 2px dashed rgba(234, 107, 133, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 24px 0;
  z-index: 10;
  box-shadow: 2px 0 8px rgba(220, 140, 160, 0.15);
}

.binder-hole {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #3b2832;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.binder-ring {
  position: absolute;
  width: 26px;
  height: 9px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fff5f7 0%, #e28c9f 35%, #b85068 70%, #fde4eb 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  left: -5px;
  pointer-events: none;
}

/* ===================================================================
   PURE CSS WASHI TAPES ON COVER
   =================================================================== */

.cover-washi {
  position: absolute;
  z-index: 6;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.washi-top-right {
  top: 14px;
  right: -16px;
  width: 85px;
  height: 20px;
  transform: rotate(35deg);
  background: repeating-linear-gradient(45deg, rgba(255, 182, 193, 0.85), rgba(255, 182, 193, 0.85) 6px, rgba(255, 238, 242, 0.85) 6px, rgba(255, 238, 242, 0.85) 12px);
  border-left: 2px dashed rgba(234, 107, 133, 0.5);
  border-right: 2px dashed rgba(234, 107, 133, 0.5);
}

.washi-spine-strip {
  left: 36px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: repeating-linear-gradient(0deg, #ffd3b6 0px, #ffd3b6 6px, #ffaaa6 6px, #ffaaa6 12px);
  opacity: 0.65;
  z-index: 9;
}

.washi-bottom-left {
  bottom: 14px;
  left: 34px;
  width: 60px;
  height: 16px;
  transform: rotate(-10deg);
  background: rgba(197, 227, 246, 0.85);
  border-left: 2px dashed rgba(120, 180, 220, 0.5);
  border-right: 2px dashed rgba(120, 180, 220, 0.5);
}

/* ===================================================================
   INTERACTIVE FLOATING STICKERS
   =================================================================== */

.deco-sticker {
  position: absolute;
  z-index: 8;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.deco-sticker:hover {
  transform: scale(1.3) rotate(8deg);
}

.sticker-top-ribbon {
  top: 10px;
  left: 54%;
  transform: translateX(-50%);
  font-size: 2.1rem;
  z-index: 12;
  filter: drop-shadow(0 3px 6px rgba(234, 107, 133, 0.25));
  animation: floatRibbon 2.8s infinite ease-in-out;
}

@keyframes floatRibbon {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

.sticker-flower-left {
  top: 48px;
  left: 52px;
  font-size: 1.45rem;
}

.sticker-tulip-right {
  top: 60px;
  right: 18px;
  font-size: 1.45rem;
}

.sticker-bunny-left {
  bottom: 18px;
  left: 48px;
  font-size: 1.9rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.sticker-star-1 {
  top: 22px;
  right: 68px;
  font-size: 1.15rem;
  color: #f59e0b;
  animation: twinkleStar 1.8s infinite ease-in-out;
}

.sticker-star-2 {
  bottom: 82px;
  left: 52px;
  font-size: 1.25rem;
  color: #ea6b85;
  animation: twinkleStar 2.2s infinite ease-in-out;
}

@keyframes twinkleStar {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ===================================================================
   MINI POLAROID KEEPSAKE ON COVER
   =================================================================== */

.cover-mini-polaroid {
  position: absolute;
  bottom: 18px;
  right: 16px;
  width: 72px;
  padding: 4px 4px 6px 4px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 6px 14px rgba(180, 130, 150, 0.22);
  transform: rotate(4deg);
  z-index: 10;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.cover-mini-polaroid:hover {
  transform: rotate(0deg) scale(1.08);
  box-shadow: 0 8px 20px rgba(180, 130, 150, 0.32);
}

.mini-tape {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 9px;
  background: rgba(255, 182, 193, 0.85);
  border-left: 1px dashed rgba(234, 107, 133, 0.4);
  border-right: 1px dashed rgba(234, 107, 133, 0.4);
}

.mini-polaroid-photo {
  width: 100%;
  height: 54px;
  border-radius: 3px;
  overflow: hidden;
  background: #fdf5f2;
}

.mini-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-polaroid-caption {
  display: block;
  font-family: var(--font-hand);
  font-size: 0.72rem;
  color: #ea6b85;
  font-weight: 700;
  text-align: center;
  margin-top: 2px;
}

/* ===================================================================
   CENTER SCRAPBOOK TITLE PLATE (100% PURE CSS)
   =================================================================== */

.scrapbook-title-plate {
  width: 66%;
  max-width: 245px;
  height: 68%;
  margin-left: 28px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 12px 10px;
  z-index: 11;
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 2px dashed rgba(234, 107, 133, 0.5);
  box-shadow: 0 10px 25px rgba(220, 160, 180, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cover-inner.scrapbook-pure-css:hover .scrapbook-title-plate {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(220, 160, 180, 0.3);
}

.scrap-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  background: #fff0f3;
  border: 1px solid #ffd6df;
  border-radius: 20px;
  font-family: var(--font-hand);
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #ea6b85;
  box-shadow: 0 2px 4px rgba(234, 107, 133, 0.1);
}

.scrap-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
}

.scrap-subheading {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  color: #ea6b85;
  line-height: 1;
  margin-bottom: -4px;
}

.scrap-main-title {
  font-family: var(--font-cute);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.02;
  color: #2e2026;
  margin: 0;
}

.scrap-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 120px;
  margin: 4px 0 2px 0;
}

.flourish-bar {
  flex: 1;
  height: 1.5px;
  background: #fcd34d;
}

.flourish-heart {
  color: #ea6b85;
  font-size: 0.95rem;
}

.scrap-recipient-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 14px;
  background: #fff5f7;
  border-radius: 12px;
  border: 1.5px solid #ffe5ec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.scrap-for-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: #9c8a95;
  font-weight: 700;
  text-transform: uppercase;
}

.scrap-recipient-name {
  font-family: var(--font-cute);
  font-size: 1.7rem;
  font-weight: 700;
  color: #2e2026;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bujo-heart-drawn {
  color: #ea6b85;
  font-size: 1.35rem;
  display: inline-block;
  animation: bujoHeartPulse 1.6s infinite ease-in-out;
}

@keyframes bujoHeartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.28); }
}

.scrap-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: #ea6b85;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(234, 107, 133, 0.35);
}

.cover-inner.scrapbook-pure-css:hover .scrap-open-btn {
  background: #d6336c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 107, 133, 0.45);
}

.scrap-btn-arrow {
  color: #ffffff;
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.cover-inner.scrapbook-pure-css:hover .scrap-btn-arrow {
  transform: translateX(4px);
}

/* ===================================================================
   INSIDE LEAF CONTENT (PASTEL GRID SCRAPBOOK PAPER)
   =================================================================== */

.page-leaf {
  background-color: var(--paper-cream);
  background-image: radial-gradient(circle, rgba(234, 107, 133, 0.28) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  color: var(--text-main);
  padding: 18px 16px 14px 16px;
  position: relative;
}

.page-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.center-align {
  align-items: center;
  text-align: center;
}

.full-w {
  width: 100%;
}

.leaf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed rgba(234, 107, 133, 0.35);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.chapter-tag {
  font-family: var(--font-hand);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ea6b85;
  background: #ffe8ee;
  border: 1px solid #ffd1dc;
  padding: 2px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(234, 107, 133, 0.1);
}

.meta-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.page-title {
  font-family: var(--font-cute);
  font-size: 1.7rem;
  font-weight: 700;
  color: #2e2026;
  line-height: 1.18;
  margin-bottom: 2px;
}

.page-sub {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: #8c7884;
  margin-bottom: 8px;
  line-height: 1.35;
}

.leaf-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 2px dashed rgba(234, 107, 133, 0.25);
  padding-top: 5px;
  margin-top: auto;
}

.page-num {
  font-family: var(--font-hand);
  font-weight: 700;
  letter-spacing: 1px;
  color: #ea6b85;
  font-size: 1rem;
  background: #fff0f3;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ===================================================================
   PROLOGUE CONTENT
   =================================================================== */

.prologue-quote {
  position: relative;
  margin: 6px 0 10px 0;
  padding: 10px 14px 10px 16px;
  background: #fff2f5;
  border-left: 4px solid var(--accent-rose);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(234, 107, 133, 0.08);
}

.quote-sign {
  position: absolute;
  top: -8px;
  left: 6px;
  font-family: var(--font-cute);
  font-size: 2.2rem;
  color: var(--accent-rose);
  opacity: 0.25;
  pointer-events: none;
}

.quote-text {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  color: #3b2a32;
}

.prologue-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.68;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: justify;
}

/* Cute Novel Drop-Cap */
.prologue-text > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-cute);
  font-size: 2.85rem;
  line-height: 0.85;
  padding-top: 2px;
  padding-right: 8px;
  color: var(--accent-rose);
  font-weight: 700;
}

.quote-callout {
  background: #fffbeb;
  border: 1.5px dashed #fcd34d;
  border-radius: 10px;
  padding: 9px 12px;
  font-family: var(--font-hand);
  font-size: 1.18rem;
  line-height: 1.45;
  color: #634015;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.1);
}

/* ===================================================================
   POLAROIDS & SECRET NOTES (CUTELY TILTED)
   =================================================================== */

.clean-polaroid {
  background: #ffffff;
  border-radius: 8px;
  padding: 7px 7px 10px 7px;
  border: 1px solid #eeddd3;
  box-shadow: 0 8px 22px rgba(180, 130, 150, 0.16);
  position: relative;
  width: 92%;
  margin: 4px auto 8px auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

#polaroid1 {
  transform: rotate(-2deg);
}

#polaroid2 {
  transform: rotate(2deg);
}

.clean-polaroid:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 12px 28px rgba(180, 130, 150, 0.24);
}

/* Cute Gingham / Pastel Washi Tape */
.washi-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 72px;
  height: 18px;
  background: repeating-linear-gradient(45deg, rgba(255, 182, 193, 0.85), rgba(255, 182, 193, 0.85) 6px, rgba(255, 238, 242, 0.85) 6px, rgba(255, 238, 242, 0.85) 12px);
  backdrop-filter: blur(2px);
  border-left: 2px dashed rgba(234, 107, 133, 0.45);
  border-right: 2px dashed rgba(234, 107, 133, 0.45);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  z-index: 5;
}

#polaroid2 .washi-tape {
  background: repeating-linear-gradient(45deg, rgba(197, 227, 246, 0.85), rgba(197, 227, 246, 0.85) 6px, rgba(240, 248, 255, 0.85) 6px, rgba(240, 248, 255, 0.85) 12px);
  border-left: 2px dashed rgba(120, 180, 220, 0.45);
  border-right: 2px dashed rgba(120, 180, 220, 0.45);
}

.polaroid-img-box {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  max-height: 180px;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  background: #fdf5f2;
}

.polaroid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-stamp {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.88);
  color: #ea6b85;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.polaroid-cap {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.cap-text {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 600;
  color: #2b2228;
  line-height: 1.2;
}

.cap-heart {
  color: var(--accent-rose);
  font-size: 1.15rem;
  animation: bujoHeartPulse 1.8s infinite ease-in-out;
}

.secret-box {
  display: none;
  background: #fffaf0;
  border: 1.5px dashed #f6ad55;
  padding: 8px 10px;
  margin-top: 8px;
  border-radius: 8px;
  font-family: var(--font-hand);
  font-size: 1.18rem;
  line-height: 1.45;
  color: #5c3b1a;
  animation: fadeIn 0.3s ease;
}

.secret-box.active {
  display: block;
}

.btn-secret-peek {
  background: #fff0f3;
  border: 1.5px solid #ffccd5;
  color: var(--accent-rose);
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 16px;
  border-radius: 20px;
  cursor: pointer;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(234, 107, 133, 0.12);
}

.btn-secret-peek:hover {
  background: #ffccd5;
  color: #c93b58;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 107, 133, 0.22);
}

/* ===================================================================
   WISHES GRID (PASTEL INDEX MEMO CARDS)
   =================================================================== */

.wishes-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.wish-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.wish-item:nth-child(1) { background: #fff0f3; border: 1px solid #ffd6df; }
.wish-item:nth-child(2) { background: #fffbeb; border: 1px solid #fef08a; }
.wish-item:nth-child(3) { background: #f5f0ff; border: 1px solid #e9d5ff; }
.wish-item:nth-child(4) { background: #f0fdf4; border: 1px solid #bbf7d0; }

.wish-item:hover {
  transform: translateX(4px);
}

.wish-idx {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ea6b85;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wish-txt h4 {
  font-family: var(--font-cute);
  font-size: 1.22rem;
  font-weight: 700;
  color: #2b2228;
  margin-bottom: 1px;
}

.wish-txt p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.42;
}

/* ===================================================================
   SECRET LETTER (PASTEL ENVELOPE & MEMO)
   =================================================================== */

.letter-stage {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.envelope-box {
  width: 250px;
  height: 145px;
  background: #ffe8ee;
  border: 2px dashed #f497aa;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(234, 107, 133, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.envelope-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(234, 107, 133, 0.25);
}

.env-icon {
  font-size: 2rem;
  margin-bottom: 2px;
}

.env-title {
  font-family: var(--font-cute);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ea6b85;
  letter-spacing: 0.5px;
}

.env-prompt {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: #8c7682;
  margin-top: 2px;
}

.slide-letter {
  position: absolute;
  top: 5px;
  width: 98%;
  background: #ffffff;
  border: 2px solid #ffccd5;
  box-shadow: 0 10px 30px rgba(220, 150, 170, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  z-index: 10;
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-letter.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.letter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px dashed #ffd6df;
  padding-bottom: 4px;
  margin-bottom: 6px;
}

.letter-badge {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--accent-rose);
  background: #fff0f3;
  padding: 2px 8px;
  border-radius: 8px;
}

.letter-close {
  background: #fff0f3;
  border: 1px solid #ffccd5;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  color: #ea6b85;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.letter-salute {
  font-family: var(--font-cute);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-rose);
  margin-bottom: 4px;
}

.letter-msg {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.48;
  color: #3b2c34;
  text-align: justify;
}

.letter-author-block {
  margin-top: 8px;
  text-align: right;
}

.author-prefix {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--text-muted);
  display: block;
}

.author-name {
  font-family: var(--font-cute);
  font-size: 1.65rem;
  color: var(--accent-rose);
  font-weight: 700;
}

/* ===================================================================
   BENTO CAKE & CANDLE INTERACTION
   =================================================================== */

.celebration-bg {
  background: radial-gradient(circle at 50% 30%, #fffdfa 0%, #f7f0e4 100%);
}

.cake-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4px;
  position: relative;
}

.candles-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  position: relative;
  z-index: 5;
  margin-bottom: -3px;
}

.candle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.wick {
  width: 2px;
  height: 6px;
  background: #333;
}

.stick {
  width: 9px;
  height: 38px;
  border-radius: 3px;
}

.candle-center .stick {
  height: 48px;
  width: 11px;
}

.stick-rose { background: #f2a6b2; }
.stick-gold { background: #eac67e; }
.stick-sage { background: #9ec5ab; }

.flame {
  width: 11px;
  height: 18px;
  background: radial-gradient(ellipse at bottom, #ffffff 15%, #ffd23f 50%, #f77045 85%, transparent 100%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  filter: drop-shadow(0 0 6px rgba(255, 180, 40, 0.9));
  transform-origin: center bottom;
  animation: flameSway 0.3s infinite alternate ease-in-out;
  transition: opacity 0.3s, transform 0.3s;
}

.flame-lg {
  width: 13px;
  height: 22px;
}

@keyframes flameSway {
  0% { transform: scale(1) rotate(-1.5deg); }
  100% { transform: scale(1.06, 0.96) rotate(1.5deg); }
}

.candle-item.blown .flame {
  opacity: 0;
  transform: scale(0.1);
  pointer-events: none;
}

.smoke {
  position: absolute;
  top: -10px;
  width: 5px;
  height: 5px;
  background: rgba(180, 180, 180, 0.6);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}

.candle-item.blown .smoke {
  animation: smokeDrift 1.5s forwards ease-out;
}

@keyframes smokeDrift {
  0% { opacity: 0.8; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.4; transform: translate(-5px, -18px) scale(2); }
  100% { opacity: 0; transform: translate(6px, -34px) scale(3); }
}

/* Korean Bento Cake */
.bento-cake {
  position: relative;
  width: 175px;
  height: 86px;
  cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(220, 150, 170, 0.25));
}

.cake-frosting {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fff0f3 0%, #ffe3ea 100%);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #ffd1dc;
}

.cake-writing {
  font-family: var(--font-cute);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ea6b85;
  letter-spacing: 2px;
}

.cream-drips {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-around;
  z-index: 2;
}

.top-drips { top: -6px; }
.bottom-drips { bottom: -6px; }

.cream-drips span {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(234, 107, 133, 0.15);
}

.cake-shadow {
  position: absolute;
  bottom: -6px;
  left: -14px;
  right: -14px;
  height: 12px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(234, 107, 133, 0.12);
  z-index: -1;
}

.blow-pill {
  margin-top: 14px;
  background: #ffffff;
  border: 1.5px solid #ffccd5;
  color: var(--accent-rose);
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(234, 107, 133, 0.15);
  animation: pulsePill 2s infinite ease-in-out;
}

@keyframes pulsePill {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.wish-toast {
  display: none;
  margin-top: 8px;
  background: #ffffff;
  border: 2px solid #ffd6df;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(234, 107, 133, 0.22);
  animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wish-toast.show {
  display: block;
}

.wish-toast h3 {
  font-family: var(--font-cute);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-rose);
  margin-bottom: 2px;
}

.wish-toast p {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 8px;
}

.toast-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-relight {
  background: #fff0f3;
  border: 1.5px solid #ffccd5;
  color: #c93b58;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-relight:hover {
  background: #ffccd5;
  transform: translateY(-1px);
}

.btn-confetti {
  background: #ea6b85;
  border: none;
  color: #ffffff;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(234, 107, 133, 0.3);
  transition: all 0.2s ease;
}

.btn-confetti:hover {
  background: #d6336c;
  transform: translateY(-1px);
}

/* ===================================================================
   EPILOGUE
   =================================================================== */

.epilogue-wrapper {
  margin: 6px 0 10px 0;
}

.star-emblem {
  font-size: 1.6rem;
  color: #f59e0b;
  margin-bottom: 2px;
}

.epilogue-heading {
  font-family: var(--font-cute);
  font-size: 1.85rem;
  font-weight: 700;
  color: #2e2026;
  margin-bottom: 2px;
}

.line-divider {
  width: 50px;
  height: 2px;
  background: #fcd34d;
  margin: 6px auto 10px auto;
  border-radius: 2px;
}

.epilogue-passage {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.48;
  color: #3b2a32;
  margin-bottom: 10px;
  text-align: center;
}

.recipient-card {
  background: #fff2f5;
  border: 1.5px dashed #ea6b85;
  border-radius: 12px;
  padding: 8px 14px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(234, 107, 133, 0.1);
}

.recipient-card span {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: #8c7682;
  font-weight: 700;
  text-transform: uppercase;
}

.recipient-card h3 {
  font-family: var(--font-cute);
  font-size: 1.65rem;
  color: var(--accent-rose);
  font-weight: 700;
  margin-top: 1px;
}

.sign-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sign-title {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--text-muted);
}

.sign-name {
  font-family: var(--font-cute);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-rose);
}

.epilogue-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.btn-action-primary {
  background: #ea6b85;
  color: #fff;
  border: none;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 25px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(234, 107, 133, 0.3);
}

.btn-action-primary:hover {
  background: #d6336c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(234, 107, 133, 0.45);
}

.btn-action-outline {
  background: #ffffff;
  border: 1.5px solid #ffd1dc;
  color: #ea6b85;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 25px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.btn-action-outline:hover {
  background: #fff0f3;
  transform: translateY(-2px);
}

/* ===================================================================
   COLOPHON & BACK COVER
   =================================================================== */

.colophon-leaf {
  background: #fffdfa;
  background-image: radial-gradient(circle, rgba(234, 107, 133, 0.25) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
}

.colophon-box {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.colophon-text {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.5;
  color: #44343d;
  margin-bottom: 16px;
  max-width: 270px;
  text-align: center;
}

.edition-stamp {
  border: 2px dashed var(--accent-rose);
  color: var(--accent-rose);
  background: #fff0f3;
  padding: 6px 16px;
  border-radius: 12px;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 3px 8px rgba(234, 107, 133, 0.12);
}

.colophon-theme-chip {
  margin-top: 14px;
  background: #ffffff;
  border: 1.5px solid #ffd1dc;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: 700;
  color: #ea6b85;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.colophon-theme-chip:hover {
  background: #fff0f3;
  transform: translateY(-1px);
}

.back-cover {
  border-radius: 18px 4px 4px 18px;
  background: #fffaf5;
  border: 1px solid rgba(234, 107, 133, 0.25);
}

.cover-star-small {
  color: #f59e0b;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.back-title {
  font-family: var(--font-cute);
  font-size: 1.6rem;
  font-weight: 700;
  color: #2e2026;
  margin-bottom: 6px;
}

.back-quote {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: #8c7682;
  line-height: 1.45;
  margin-bottom: 18px;
  max-width: 250px;
  text-align: center;
}

.barcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px dashed #ffd1dc;
}

.bars {
  font-family: monospace;
  font-size: 0.92rem;
  letter-spacing: 3px;
  color: #ea6b85;
}

.barcode-box small {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #9c8a95;
  font-weight: 600;
}

/* ===================================================================
   CLEAN FLOATING BOTTOM DOCK
   =================================================================== */

.clean-dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(234, 107, 133, 0.35);
  border-radius: 40px;
  box-shadow: 0 10px 25px rgba(220, 160, 180, 0.22);
  transition: all 0.3s ease;
  user-select: none;
}

body.theme-linen .clean-dock {
  background: rgba(38, 34, 43, 0.92);
  border: 1.5px solid rgba(234, 107, 133, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dock-page-pill {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dock-arrow {
  background: none;
  border: none;
  color: #ea6b85;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-arrow:hover {
  color: #d6336c;
  transform: scale(1.2);
}

body.theme-linen .dock-arrow:hover {
  color: #ffffff;
}

.dock-page-text {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #3b2a32;
  font-weight: 700;
  min-width: 140px;
  text-align: center;
}

body.theme-linen .dock-page-text {
  color: #ffd6df;
}

.dock-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(234, 107, 133, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-dot.active {
  background: #ea6b85;
  width: 18px;
  border-radius: 10px;
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(234, 107, 133, 0.35);
}

body.theme-linen .dock-dot {
  background: #d4c8b6;
}

.dock-dot:hover {
  background: rgba(212, 175, 55, 0.8);
  transform: scale(1.3);
}

.dock-dot.active {
  width: 18px;
  border-radius: 8px;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@media (max-width: 680px) {
  .clean-dock {
    bottom: 12px;
    padding: 6px 14px;
    gap: 4px;
  }
  .dock-page-text {
    font-size: 0.65rem;
    letter-spacing: 1px;
    min-width: 120px;
  }
}

/* ===================================================================
   MODAL KUSTOMISASI
   =================================================================== */

.clean-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 27, 34, 0.45);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.clean-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.clean-modal-box {
  background: #ffffff;
  border: 1px solid var(--paper-border);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clean-modal-overlay.active .clean-modal-box {
  transform: scale(1);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 6px;
}

.modal-top h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 1.1rem;
  cursor: pointer;
}

.form-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.field-item {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-item label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
}

.field-item input,
.field-item textarea {
  background: #faf8f5;
  border: 1px solid #e5dccf;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  outline: none;
  transition: border-color 0.2s;
}

.field-item input:focus,
.field-item textarea:focus {
  border-color: var(--accent-rose);
  background: #fff;
}

.modal-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.btn-cancel {
  background: #f4ecdf;
  border: none;
  color: var(--text-body);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.78rem;
}

.btn-save {
  background: var(--text-main);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* ===================================================================
   MOBILE OPTIMIZATION ENGINE (SMARTPHONE PORTRAIT & LANDSCAPE)
   =================================================================== */

/* Subtle Mobile Orientation Hint */
.mobile-orient-hint {
  display: none;
}

@media (max-width: 680px) and (orientation: portrait) {
  .mobile-orient-hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 26, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(220, 200, 170, 0.25);
    color: #e8ded0;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.66rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    animation: hintFadeOut 8s forwards ease-in-out;
    pointer-events: auto;
    white-space: nowrap;
  }

  .mobile-orient-hint .hint-icon {
    font-size: 0.85rem;
    color: var(--accent-gold);
  }

  .mobile-orient-hint .hint-close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0 2px;
  }

  @keyframes hintFadeOut {
    0% { opacity: 0; transform: translate(-50%, 10px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    80% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }
  }
}

/* SMARTPHONE PORTRAIT RESPONSIVENESS (<= 680px) */
@media (max-width: 680px) {
  :root {
    --page-w: min(360px, 88vw, calc((100dvh - 140px) / 1.45));
    --page-h: calc(var(--page-w) * 1.45);
  }

  .book-stage {
    perspective: 1600px;
    padding: 0;
  }

  /* Floor Shadow on Mobile */
  .book::after {
    bottom: -15px;
    height: 24px;
    filter: blur(10px);
  }

  /* Cover */
  .book-cover {
    padding: 6px;
    border-radius: 2px 10px 10px 2px;
  }

  .front.book-cover {
    padding: 0 !important;
    border-radius: 2px 10px 10px 2px;
  }

  .cover-inner {
    padding: 10px 8px 8px 8px;
    border-radius: 5px;
  }

  .cover-eyebrow {
    font-size: 0.46rem;
    letter-spacing: 1px;
  }

  .cover-music-badge {
    padding: 2px 7px;
    font-size: 0.52rem;
    gap: 3px;
    margin: 1px 0;
  }

  .sound-wave-mini {
    height: 7px;
  }

  .cover-star {
    font-size: 1.4rem;
    margin: 1px 0;
  }

  .vol-tag {
    font-size: 0.46rem;
    margin-bottom: 1px;
  }

  .main-title {
    font-size: 1.12rem;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .tagline {
    font-size: 0.56rem;
    max-width: 140px;
    line-height: 1.25;
  }

  .cover-for-box {
    padding: 4px 8px;
    width: 95%;
    gap: 1px;
  }

  .for-label {
    font-size: 0.44rem;
    letter-spacing: 0.5px;
  }

  .edit-pill {
    font-size: 0.44rem;
    padding: 1px 4px;
  }

  .for-name {
    font-size: 0.88rem;
  }

  .swipe-hint-cover {
    font-size: 0.52rem;
    padding: 2px 8px;
    gap: 3px;
  }

  /* Inside Leaf Content */
  .page-leaf {
    padding: 8px 8px 6px 8px;
  }

  .front {
    border-radius: 2px 10px 10px 2px;
  }

  .back {
    border-radius: 10px 2px 2px 10px;
  }

  .leaf-header {
    margin-bottom: 3px;
    padding-bottom: 2px;
  }

  .chapter-tag {
    font-size: 0.46rem;
    letter-spacing: 0.5px;
  }

  .meta-tag {
    font-size: 0.44rem;
  }

  .page-title {
    font-size: 0.88rem;
    margin-bottom: 1px;
    line-height: 1.15;
  }

  .page-sub {
    font-size: 0.52rem;
    margin-bottom: 3px;
  }

  .leaf-footer {
    padding-top: 3px;
    font-size: 0.52rem;
  }

  .page-num {
    font-size: 0.54rem;
  }

  .footer-hint {
    font-size: 0.48rem;
  }

  /* Prologue */
  .prologue-quote {
    margin: 2px 0 4px 0;
    padding-left: 6px;
    border-left: 2px solid var(--accent-gold);
  }

  .quote-sign {
    font-size: 1.1rem;
    top: -5px;
    left: -3px;
  }

  .prologue-quote .quote-text {
    font-size: 0.64rem;
    line-height: 1.25;
  }

  .prologue-text p {
    font-size: 0.56rem;
    line-height: 1.25;
    margin-bottom: 3px;
  }

  .quote-callout {
    padding: 3px 6px;
    margin-top: 2px;
  }

  .quote-callout p {
    font-size: 0.52rem;
    line-height: 1.2;
  }

  /* Polaroid Photos */
  .polaroid-frame {
    padding: 4px 4px 6px 4px;
    margin: 1px 0;
  }

  .tape {
    width: 26px;
    height: 7px;
    top: -3px;
  }

  .polaroid-img-box {
    max-height: 75px;
    aspect-ratio: 1.3 / 1;
    border-radius: 2px;
  }

  .film-stamp {
    font-size: 0.42rem;
    padding: 1px 3px;
  }

  .polaroid-cap {
    margin-top: 3px;
  }

  .cap-text {
    font-size: 0.68rem;
  }

  .cap-heart {
    font-size: 0.68rem;
  }

  .btn-secret-peek {
    font-size: 0.5rem;
    padding: 2px 6px;
    margin-top: 2px;
    gap: 2px;
  }

  .secret-box {
    font-size: 0.52rem;
    padding: 3px 5px;
    line-height: 1.2;
  }

  /* Wishes Grid */
  .wishes-grid {
    gap: 3px;
    margin-top: 1px;
  }

  .wish-item {
    padding: 3px 6px;
    gap: 4px;
    border-radius: 4px;
  }

  .wish-idx {
    font-size: 0.44rem;
    padding: 1px 2px;
  }

  .wish-txt h4 {
    font-size: 0.58rem;
    margin-bottom: 0;
  }

  .wish-txt p {
    font-size: 0.48rem;
    line-height: 1.15;
  }

  /* Secret Letter */
  .envelope-box {
    width: 110px;
    height: 65px;
    border-radius: 5px;
  }

  .env-icon {
    font-size: 1.1rem;
    margin-bottom: 1px;
  }

  .env-title {
    font-size: 0.6rem;
  }

  .env-prompt {
    font-size: 0.46rem;
  }

  .slide-letter {
    padding: 6px 8px;
    width: 98%;
    top: 0;
  }

  .letter-salute {
    font-size: 0.6rem;
    margin-bottom: 1px;
  }

  .letter-msg {
    font-size: 0.52rem;
    line-height: 1.25;
  }

  .letter-author-block {
    margin-top: 2px;
  }

  .author-prefix {
    font-size: 0.46rem;
  }

  .author-name {
    font-size: 0.64rem;
  }

  /* Bento Cake */
  .cake-area {
    margin-top: 1px;
  }

  .candles-wrapper {
    gap: 9px;
    margin-bottom: -2px;
  }

  .wick {
    height: 4px;
  }

  .stick {
    width: 5px;
    height: 18px;
  }

  .candle-center .stick {
    height: 24px;
    width: 6.5px;
  }

  .flame {
    width: 7px;
    height: 12px;
  }

  .flame-lg {
    width: 9px;
    height: 14px;
  }

  .bento-cake {
    width: 95px;
    height: 44px;
    border-radius: 6px;
  }

  .cake-writing {
    font-size: 0.78rem;
    letter-spacing: 1px;
  }

  .cream-drips span {
    width: 5px;
    height: 5px;
  }

  .cake-instruction {
    font-size: 0.48rem;
    margin-top: 4px;
    padding: 2px 6px;
  }

  /* Epilogue */
  .star-emblem {
    font-size: 0.8rem;
    margin-bottom: 1px;
  }

  .epilogue-heading {
    font-size: 0.76rem;
  }

  .line-divider {
    width: 20px;
    margin: 2px auto;
  }

  .epilogue-passage {
    font-size: 0.52rem;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .recipient-card {
    padding: 3px 5px;
    margin-bottom: 2px;
  }

  .recipient-card span {
    font-size: 0.42rem;
  }

  .recipient-card h3 {
    font-size: 0.72rem;
  }

  .sign-title {
    font-size: 0.46rem;
  }

  .sign-name {
    font-size: 0.64rem;
  }

  .epilogue-actions {
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }

  .btn-action-primary,
  .btn-action-outline {
    padding: 3px 4px;
    font-size: 0.48rem;
    gap: 2px;
    border-radius: 12px;
  }

  /* Colophon & Back Cover */
  .colophon-text {
    font-size: 0.6rem;
    line-height: 1.25;
    margin-bottom: 5px;
    max-width: 135px;
  }

  .edition-stamp {
    padding: 2px 6px;
    font-size: 0.48rem;
    letter-spacing: 1px;
  }

  .colophon-theme-chip {
    margin-top: 5px;
    padding: 2px 6px;
    font-size: 0.48rem;
  }

  .cover-star-small {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  .back-title {
    font-size: 0.64rem;
    margin-bottom: 2px;
  }

  .back-quote {
    font-size: 0.52rem;
    margin-bottom: 6px;
    max-width: 130px;
    line-height: 1.2;
  }

  .bars {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
  }
}

/* SMARTPHONE LANDSCAPE MODE (holding phone sideways) */
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --page-h: min(390px, 86dvh);
    --page-w: min(280px, calc(var(--page-h) * 0.72));
  }

  .book-stage {
    perspective: 1600px;
  }

  .page-leaf {
    padding: 10px 12px 8px 12px;
  }

  .cover-inner {
    padding: 12px 10px 10px 10px;
  }

  .main-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 0.95rem;
  }

  .polaroid-img-box {
    max-height: 95px;
  }

  .bento-cake {
    width: 120px;
    height: 52px;
  }

  .envelope-box {
    width: 140px;
    height: 80px;
  }

  .mobile-orient-hint {
    display: none !important;
  }
}

/* ===================================================================
   ADAPTIVE SINGLE-PAGE MODE FOR MOBILE PORTRAIT (.single-mode)
   =================================================================== */
@media (max-width: 680px) and (orientation: portrait) {
  :root {
    --page-w: min(360px, 88vw, calc((100dvh - 140px) / 1.45));
    --page-h: calc(var(--page-w) * 1.45);
  }

  .single-mode.book-stage {
    perspective: 1600px;
    padding: 0;
  }

  /* Book Wrapper stays dead center */
  .single-mode .book-wrapper,
  .single-mode .book-wrapper.is-closed,
  .single-mode .book-wrapper.is-closed-back {
    transform: translateX(0) !important;
    width: var(--page-w) !important;
    height: var(--page-h) !important;
    transition: none !important;
  }

  .single-mode .book {
    width: var(--page-w) !important;
    height: var(--page-h) !important;
    transform: none !important;
    perspective: 1600px;
  }

  /* Single centered floor shadow */
  .single-mode .book::after {
    left: 10px !important;
    width: calc(var(--page-w) - 20px) !important;
    bottom: -18px !important;
    height: 32px !important;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0,0,0,0) 72%) !important;
    filter: blur(14px) !important;
  }

  /* Hide empty paper containers in single-mode since pages are flat direct siblings of #book */
  .single-mode .paper {
    display: none !important;
  }

  /* All 10 page faces (.single-page) - cleanly oriented forward in single-mode */
  .single-mode .single-page,
  .single-mode .single-page.front,
  .single-mode .single-page.back {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: rotateY(0deg);
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    border-radius: 8px !important;
    border: 1px solid var(--paper-border) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.30s ease, box-shadow 0.38s ease;
    transform-origin: left center;
  }

  /* Active page: fully displayed and interactive on top */
  .single-mode .single-page.single-page-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 20 !important;
    transform: rotateY(0deg) scale(1);
  }

  /* Next page waiting directly underneath: 100% visible under active page */
  .single-mode .single-page.single-page-under {
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 10 !important;
    transform: rotateY(0deg) scale(1);
  }

  /* Page turned to the left (previous) */
  .single-mode .single-page.single-page-prev {
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 5 !important;
    transform: rotateY(-180deg) scale(0.96);
  }

  /* Upcoming pages further down */
  .single-mode .single-page.single-page-next {
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 2 !important;
    transform: rotateY(0deg) scale(0.96);
  }

  /* When dragging/peeling in real time, disable transitions for 60fps tracking */
  .single-mode.is-peeling .single-page {
    transition: none !important;
  }

  /* Leaf Content in Single Mode */
  .single-mode .page-leaf {
    padding: 18px 16px 14px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .single-mode .page-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  /* Cover styling in Single Mode (Mobile Portrait) */
  .single-mode .book-cover {
    padding: 6px !important;
    border-radius: 8px !important;
  }

  .single-mode .front.book-cover {
    padding: 0 !important;
    border-radius: 8px !important;
  }

  /* Bujo Cover Responsive in Mobile Portrait */
  .single-mode .front.book-cover .cover-inner.bujo-art-cover {
    border-radius: 8px !important;
  }

  .single-mode .bujo-content-center {
    width: 72% !important;
    height: 76% !important;
    padding: 6px 4px !important;
  }

  .single-mode .bujo-tag-pill {
    font-size: 0.48rem !important;
    padding: 2px 9px !important;
  }

  .single-mode .bujo-hand-sub {
    font-size: 1.15rem !important;
  }

  .single-mode .bujo-main-heading {
    font-size: 1.85rem !important;
    letter-spacing: 1px !important;
  }

  .single-mode .bujo-ink-flourish {
    width: 110px !important;
    margin: 4px 0 !important;
  }

  .single-mode .bujo-name-box {
    padding: 3px 10px !important;
  }

  .single-mode .bujo-name-for {
    font-size: 0.46rem !important;
    letter-spacing: 1.5px !important;
  }

  .single-mode .bujo-recipient-name {
    font-size: 1.25rem !important;
  }

  .single-mode .bujo-action-prompt {
    font-size: 0.52rem !important;
    padding: 4px 10px !important;
  }

  /* Header & Titles in Inside Leaves */
  .single-mode .leaf-header {
    margin-bottom: 6px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid rgba(179, 139, 63, 0.28) !important;
  }

  .single-mode .chapter-tag {
    font-family: var(--font-roman) !important;
    font-size: 0.65rem !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
  }

  .single-mode .meta-tag {
    font-family: var(--font-roman) !important;
    font-size: 0.58rem !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
  }

  .single-mode .page-title {
    font-family: var(--font-serif-title) !important;
    font-size: 1.25rem !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }

  .single-mode .page-sub {
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    font-size: 0.8rem !important;
    margin-bottom: 8px !important;
    line-height: 1.35 !important;
  }

  /* Prologue */
  .single-mode .prologue-quote {
    padding-left: 12px !important;
    margin: 4px 0 8px 0 !important;
    border-left: 2px solid var(--accent-gold) !important;
  }

  .single-mode .quote-sign {
    font-family: var(--font-serif-title) !important;
    font-size: 2.2rem !important;
    top: -12px !important;
  }

  .single-mode .quote-text {
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    font-size: 0.94rem !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
  }

  .single-mode .prologue-text p {
    font-family: var(--font-serif-body) !important;
    font-size: 0.84rem !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
  }

  /* Authentic Mobile Novel Drop-Cap */
  .single-mode .prologue-text > p:first-of-type::first-letter {
    float: left !important;
    font-family: var(--font-serif-title) !important;
    font-size: 2.25rem !important;
    line-height: 0.82 !important;
    padding-top: 3px !important;
    padding-right: 6px !important;
    padding-bottom: 1px !important;
    color: var(--accent-rose) !important;
    font-weight: 700 !important;
  }

  .single-mode .quote-callout {
    padding: 8px 12px !important;
    margin-top: 6px !important;
    border-left: 3px solid var(--accent-rose) !important;
  }

  .single-mode .quote-callout p {
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    font-size: 0.8rem !important;
    line-height: 1.48 !important;
    text-align: justify !important;
  }

  /* Polaroids in Single Mode: BIG & CRISP! */
  .single-mode .clean-polaroid {
    max-width: 260px !important;
    width: 90% !important;
    padding: 8px 8px 10px 8px !important;
    margin: 4px auto 8px auto !important;
  }

  .single-mode .polaroid-img-box {
    max-height: 160px !important;
    height: 160px !important;
  }

  .single-mode .polaroid-cap {
    padding-top: 6px !important;
  }

  .single-mode .cap-text {
    font-family: var(--font-hand) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
  }

  .single-mode .cap-heart {
    font-size: 0.95rem !important;
  }

  .single-mode .btn-secret-peek {
    padding: 4px 12px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.6px !important;
    margin: 3px auto !important;
  }

  .single-mode .secret-box {
    padding: 6px 10px !important;
    font-family: var(--font-serif-body) !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* Wishes */
  .single-mode .wishes-grid {
    gap: 6px !important;
  }

  .single-mode .wish-item {
    padding: 6px 10px !important;
    gap: 10px !important;
  }

  .single-mode .wish-idx {
    font-family: var(--font-roman) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
  }

  .single-mode .wish-txt h4 {
    font-family: var(--font-serif-title) !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
  }

  .single-mode .wish-txt p {
    font-family: var(--font-serif-body) !important;
    font-size: 0.76rem !important;
    line-height: 1.42 !important;
    text-align: justify !important;
  }

  /* Letter & Envelope */
  .single-mode .envelope-box {
    width: 175px !important;
    height: 105px !important;
    margin: 8px auto !important;
  }

  .single-mode .env-icon {
    font-size: 1.8rem !important;
  }

  .single-mode .env-title {
    font-family: var(--font-serif-title) !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
  }

  .single-mode .env-prompt {
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    font-size: 0.74rem !important;
  }

  .single-mode .letter-salute {
    font-family: var(--font-hand) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--accent-rose) !important;
  }

  .single-mode .letter-msg {
    font-family: var(--font-serif-body) !important;
    font-size: 0.85rem !important;
    line-height: 1.55 !important;
    text-align: justify !important;
    text-justify: inter-word !important;
  }

  .single-mode .author-prefix {
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    font-size: 0.76rem !important;
  }

  .single-mode .author-name {
    font-family: var(--font-hand) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--accent-rose) !important;
  }

  /* Cake & Candles */
  .single-mode .cake-area {
    margin: 6px auto !important;
  }

  .single-mode .candles-wrapper {
    gap: 14px !important;
    margin-bottom: -4px !important;
  }

  .single-mode .candle-item {
    height: 40px !important;
  }

  .single-mode .stick {
    width: 7px !important;
  }

  .single-mode .flame {
    width: 10px !important;
    height: 20px !important;
  }

  .single-mode .flame-lg {
    width: 12px !important;
    height: 24px !important;
  }

  .single-mode .bento-cake {
    width: 155px !important;
    height: 66px !important;
    border-radius: 20px 20px 14px 14px !important;
  }

  .single-mode .cake-writing {
    font-family: var(--font-hand) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
  }

  .single-mode .blow-pill {
    padding: 5px 12px !important;
    font-size: 0.7rem !important;
    margin-top: 8px !important;
  }

  .single-mode .wish-toast h3 {
    font-family: var(--font-serif-title) !important;
    font-size: 0.95rem !important;
  }

  .single-mode .wish-toast p {
    font-family: var(--font-serif-body) !important;
    font-size: 0.75rem !important;
  }

  /* Epilogue */
  .single-mode .star-emblem {
    font-size: 1.25rem !important;
  }

  .single-mode .epilogue-heading {
    font-family: var(--font-serif-title) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
  }

  .single-mode .epilogue-passage {
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    max-width: 250px !important;
  }

  .single-mode .recipient-card {
    padding: 5px 10px !important;
  }

  .single-mode .recipient-card span {
    font-family: var(--font-roman) !important;
    font-size: 0.58rem !important;
    letter-spacing: 1.5px !important;
  }

  .single-mode .recipient-card h3 {
    font-family: var(--font-serif-title) !important;
    font-size: 1.15rem !important;
  }

  .single-mode .sign-title {
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    font-size: 0.76rem !important;
  }

  .single-mode .sign-name {
    font-family: var(--font-hand) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: var(--accent-rose) !important;
  }

  .single-mode .epilogue-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .single-mode .btn-action-primary,
  .single-mode .btn-action-outline {
    padding: 6px 8px !important;
    font-size: 0.65rem !important;
  }

  /* Colophon & Back Cover */
  .single-mode .colophon-text {
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    max-width: 230px !important;
    margin-bottom: 12px !important;
  }

  .single-mode .edition-stamp {
    font-family: var(--font-roman) !important;
    padding: 4px 12px !important;
    font-size: 0.65rem !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
  }

  .single-mode .colophon-theme-chip {
    padding: 4px 10px !important;
    font-size: 0.65rem !important;
    margin-top: 10px !important;
  }

  .single-mode .cover-star-small {
    font-size: 1.5rem !important;
  }

  .single-mode .back-title {
    font-family: var(--font-roman) !important;
    font-size: 1.15rem !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
  }

  .single-mode .back-quote {
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    font-size: 0.82rem !important;
    max-width: 230px !important;
    line-height: 1.48 !important;
  }

  .single-mode .bars {
    font-size: 0.85rem !important;
  }

  /* Leaf Footer */
  .single-mode .leaf-footer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 6px !important;
    font-size: 0.76rem !important;
    margin-top: auto !important;
    border-top: 1px solid rgba(179, 139, 63, 0.2) !important;
  }

  .single-mode .page-num {
    font-family: var(--font-roman) !important;
    font-size: 0.82rem !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
  }
}


/* FLOATING MOBILE LANDSCAPE HINT */
.mobile-orient-hint {
  display: none;
}

@media (max-width: 680px) and (orientation: portrait) {
  .mobile-orient-hint {
    display: inline-flex;
    position: fixed;
    bottom: 68px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 24, 22, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #f7efe4;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    z-index: 100;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    pointer-events: auto;
    animation: toastFloat 3s ease-in-out infinite alternate;
  }

  .mobile-orient-hint .hint-icon {
    font-size: 0.85rem;
  }

  .mobile-orient-hint .hint-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0 0 0 4px;
    line-height: 1;
  }

  .mobile-orient-hint .hint-close-btn:hover {
    color: #ffffff;
  }
}

@keyframes toastFloat {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-5px); }
}
