/* ==================== FONTS ==================== */
@font-face {
  font-family: 'BirthdaySerif';
  src: url('./public/fonts/birthday-serif.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'BirthdayHand';
  src: url('./public/fonts/birthday-hand.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'BirthdayHand';
  src: url('./public/fonts/birthday-hand-medium.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

/* ==================== DESIGN TOKENS ==================== */
:root {
  --font-serif: 'BirthdaySerif', 'Noto Serif CJK SC', 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
  --font-hand: 'BirthdayHand', 'LXGW WenKai', 'Kaiti SC', 'STKaiti', 'KaiTi', 'Noto Serif CJK SC', 'Songti SC', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --bg-deep: #110f29;
  --bg-mid: #231842;
  --bg-warm: #42224d;

  --gold-100: #fff8de;
  --gold-200: #ffe49e;
  --gold-300: #f3c46b;
  --gold-400: #d19645;

  --rose-200: #ffc0d3;
  --rose-400: #f26487;
  --rose-500: #d4385c;

  --teal-300: #6fe3d9;

  --paper-top: #fffcf5;
  --paper-bot: #faeeda;
  --ink-dark: #2c1e28;
  --ink-soft: #6a525e;
  --ink-muted: #967a84;

  --glass-bg: rgba(24, 18, 48, 0.56);
  --glass-border: rgba(255, 228, 168, 0.28);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --ease-spring: cubic-bezier(0.22, 1.28, 0.36, 1);
  --ease-silk: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
  background-color: var(--bg-deep);
  color: #fff6ea;
  font-family: var(--font-hand);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100dvh;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(114, 59, 134, 0.45) 0%, transparent 62%),
    radial-gradient(90% 60% at 85% 95%, rgba(212, 92, 122, 0.28) 0%, transparent 65%),
    linear-gradient(175deg, #100e27 0%, #201640 42%, #371e4b 78%, #221538 100%);
  transition: background 0.9s var(--ease-silk);
}

body[data-stage="desk"] {
  background:
    radial-gradient(110% 65% at 50% 6%, rgba(181, 96, 118, 0.38) 0%, transparent 58%),
    radial-gradient(95% 65% at 50% 100%, rgba(214, 132, 78, 0.26) 0%, transparent 62%),
    linear-gradient(175deg, #161233 0%, #2b1d4a 42%, #442547 76%, #2a182f 100%);
}

body[data-stage="wish"] {
  background:
    radial-gradient(110% 60% at 50% 15%, rgba(96, 56, 148, 0.48) 0%, transparent 62%),
    radial-gradient(90% 55% at 50% 60%, rgba(255, 184, 102, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, #090b20 0%, #18123a 45%, #2d1747 82%, #19102e 100%);
}

body.is-celebrating {
  background:
    radial-gradient(115% 65% at 50% 18%, rgba(242, 112, 156, 0.32) 0%, transparent 58%),
    radial-gradient(95% 65% at 25% 32%, rgba(92, 224, 214, 0.2) 0%, transparent 55%),
    radial-gradient(100% 65% at 50% 55%, rgba(255, 212, 128, 0.22) 0%, transparent 62%),
    linear-gradient(180deg, #0c0e28 0%, #21164a 45%, #3d1d54 80%, #1f1238 100%);
}

body.modal-open {
  overflow: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/* ==================== BACKGROUND FX & GLOWS ==================== */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.ambient-glows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
}

.glow-orb--1 {
  width: 340px;
  height: 340px;
  top: -90px;
  left: -80px;
  background: radial-gradient(circle, rgba(255, 160, 194, 0.65), transparent 70%);
}

.glow-orb--2 {
  width: 380px;
  height: 380px;
  top: 22%;
  right: -120px;
  background: radial-gradient(circle, rgba(111, 227, 217, 0.42), transparent 70%);
}

.glow-orb--3 {
  width: 360px;
  height: 360px;
  bottom: -110px;
  left: 20%;
  background: radial-gradient(circle, rgba(255, 206, 122, 0.48), transparent 70%);
}

.transition-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  background: radial-gradient(circle at 50% 48%, rgba(255, 248, 224, 0.96) 0%, rgba(255, 212, 138, 0.85) 38%, rgba(235, 122, 152, 0.52) 72%, transparent 100%);
}

/* ==================== TOP BAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13.5px;
  color: #f9ead8;
  box-shadow: 0 6px 20px rgba(7, 4, 22, 0.32);
}

.brand-star {
  color: var(--gold-200);
  font-size: 13px;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #ffd3df;
  font-size: 15px;
}

.brand-age {
  font-size: 11px;
  font-family: var(--font-serif);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 228, 158, 0.25), rgba(242, 100, 135, 0.3));
  border: 1px solid rgba(255, 228, 158, 0.42);
  color: var(--gold-100);
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff3e2;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(7, 4, 22, 0.3);
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, background 0.25s ease;
}

.audio-btn {
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}

.cake-shortcut-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.audio-btn .eq-bars {
  height: 18px;
  gap: 3px;
}

.audio-btn .eq-bars i { width: 3px; height: 8px; }
.audio-btn .eq-bars i:nth-child(2) { height: 15px; }
.audio-btn .eq-bars i:nth-child(3) { height: 10px; }
.audio-btn .eq-bars i:nth-child(4) { height: 17px; }

.pill-btn:active {
  transform: scale(0.94);
}

.pill-btn--gold {
  background: linear-gradient(135deg, rgba(255, 212, 128, 0.22), rgba(242, 100, 135, 0.26));
  border-color: rgba(255, 224, 150, 0.56);
  color: var(--gold-100);
}

.pill-btn.is-playing {
  background: linear-gradient(135deg, rgba(243, 196, 107, 0.28), rgba(242, 100, 135, 0.32));
  border-color: rgba(255, 232, 168, 0.72);
  box-shadow: 0 0 18px rgba(255, 214, 130, 0.34);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq-bars i {
  display: block;
  width: 2.2px;
  height: 5px;
  border-radius: 2px;
  background: var(--gold-200);
  transition: height 0.2s ease;
}

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

/* ==================== MAIN VIEWPORT SHELL ==================== */
.viewport-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 6px 16px calc(28px + env(safe-area-inset-bottom));
}

.stage {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.stage.is-active {
  display: flex;
}

.eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-200);
  text-transform: uppercase;
  text-align: center;
}

/* ==================== STAGE 1: COVER BIRTHDAY CARD ==================== */
.stage--cover {
  padding-top: 4px;
  gap: 16px;
}

.cover-header {
  text-align: center;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(31px, 8.6vw, 42px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 28px rgba(255, 198, 130, 0.34);
}

.hero-name {
  color: #ffc5d6;
}

.hero-wish {
  background: linear-gradient(120deg, #fffaf0 10%, #ffe399 48%, #ffbad2 82%, #fff8df 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-stage {
  position: relative;
  width: 100%;
  max-width: 344px;
  padding-top: 28px;
  perspective: 1200px;
}

.bcard {
  position: relative;
  width: 100%;
  cursor: pointer;
  transform-style: preserve-3d;
  outline: none;
}

.bcard-aura {
  position: absolute;
  inset: -16px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 208, 128, 0.42), rgba(242, 100, 135, 0.26) 52%, transparent 74%);
  filter: blur(22px);
  z-index: 0;
}

.bcard-backsheet {
  position: absolute;
  inset: 6px -4px -8px 8px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f3d59c, #d49d56);
  transform: rotate(3.2deg);
  opacity: 0.72;
  box-shadow: 0 20px 44px rgba(8, 4, 22, 0.55);
  z-index: 1;
}

.bcard-companions {
  position: absolute;
  top: -49px;
  left: 50%;
  transform: translateX(-50%);
  width: 242px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(10, 5, 25, 0.35));
}

.bcard-front {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  padding: 15px 15px 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 240, 200, 0.65), transparent 46%),
    linear-gradient(160deg, var(--paper-top) 0%, #fcf1de 58%, #f4dfc0 100%);
  border: 1.5px solid rgba(235, 193, 118, 0.9);
  box-shadow:
    0 24px 55px rgba(8, 4, 22, 0.62),
    0 0 0 1px rgba(255, 250, 236, 0.7) inset,
    0 0 36px rgba(255, 206, 132, 0.24);
  overflow: visible;
  transform-origin: left center;
  transition: transform 0.75s var(--ease-silk), box-shadow 0.4s ease;
}

.bcard-foil-sweep {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
}

.bcard-foil-sweep::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -90%;
  width: 65%;
  height: 150%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 244, 204, 0.08) 30%, rgba(255, 248, 220, 0.52) 50%, rgba(255, 214, 140, 0.12) 70%, transparent 100%);
}

/* Ornamental gold corners on cover card */
.bcard-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #d49f52;
  border-style: solid;
  pointer-events: none;
  opacity: 0.78;
}
.bcard-corner--tl { top: 8px; left: 8px; border-width: 1.6px 0 0 1.6px; border-radius: 4px 0 0 0; }
.bcard-corner--tr { top: 8px; right: 8px; border-width: 1.6px 1.6px 0 0; border-radius: 0 4px 0 0; }
.bcard-corner--bl { bottom: 8px; left: 8px; border-width: 0 0 1.6px 1.6px; border-radius: 0 0 0 4px; }
.bcard-corner--br { bottom: 8px; right: 8px; border-width: 0 1.6px 1.6px 0; border-radius: 0 0 4px 0; }

.bcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #9c7448;
}

.bcard-date-chip {
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(196, 146, 82, 0.65);
  background: rgba(255, 248, 232, 0.8);
  color: #8f5732;
  font-weight: 600;
}

.bcard-vignette {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(214, 170, 108, 0.72);
  box-shadow: 0 10px 26px rgba(32, 16, 40, 0.25);
  background: #1b1636;
}

.svg-vignette {
  display: block;
  width: 100%;
  height: auto;
}

.bcard-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
}

.bcard-quote {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 500;
  color: #7c2d42;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bcard-from {
  margin: 0;
  font-size: 12.5px;
  color: #8b6a64;
}

.bcard-stamp {
  width: 62px;
  flex-shrink: 0;
  transform: rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(40, 22, 34, 0.22));
}

.svg-stamp {
  display: block;
  width: 100%;
  height: auto;
}

/* Crimson Wax Seal at bottom center of cover card */
.wax-seal {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff738b 0%, #d42b4c 58%, #85122b 100%);
  box-shadow:
    0 8px 20px rgba(128, 16, 42, 0.56),
    0 0 22px rgba(255, 114, 146, 0.52),
    inset 0 2px 4px rgba(255, 220, 228, 0.55);
  display: grid;
  place-items: center;
  z-index: 5;
}

.wax-seal__ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 226, 164, 0.72);
}

.wax-seal__num {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff2c9;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(90, 12, 26, 0.7);
}

.cover-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-top: 10px;
  width: 100%;
}

.cover-lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(255, 241, 228, 0.9);
  text-shadow: 0 2px 12px rgba(10, 6, 26, 0.55);
}

.cover-subnote {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 228, 196, 0.68);
  letter-spacing: 0.04em;
}

/* ==================== LUXE CTA BUTTONS ==================== */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fffaf0;
  overflow: hidden;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.3s ease;
}

.cta-btn--luxe {
  background: linear-gradient(135deg, #e04968 0%, #bf2f52 50%, #9b264e 100%);
  border: 1.4px solid rgba(255, 226, 158, 0.78);
  box-shadow:
    0 12px 30px rgba(212, 46, 88, 0.45),
    0 0 24px rgba(255, 196, 118, 0.28),
    inset 0 1px 0 rgba(255, 245, 214, 0.55);
}

.cta-btn--candle {
  background: linear-gradient(135deg, #f09042 0%, #de486b 54%, #a82e68 100%);
  box-shadow:
    0 14px 34px rgba(240, 118, 92, 0.48),
    0 0 28px rgba(255, 212, 128, 0.42),
    inset 0 1px 0 rgba(255, 248, 224, 0.6);
}

.cta-btn:active {
  transform: scale(0.95);
}

.cta-btn__sheen {
  position: absolute;
  top: 0;
  left: -85%;
  width: 55%;
  height: 100%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 248, 220, 0.48), transparent);
  pointer-events: none;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 245, 232, 0.08);
  border: 1px solid rgba(255, 228, 168, 0.34);
  color: #fcebd8;
  font-size: 13.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease-spring), background 0.25s ease, border-color 0.25s ease;
}

.ghost-btn--gold {
  background: linear-gradient(135deg, rgba(255, 214, 128, 0.18), rgba(242, 100, 135, 0.2));
  border-color: rgba(255, 224, 150, 0.62);
  color: var(--gold-100);
}

.ghost-btn:active {
  transform: scale(0.95);
}

/* ==================== STAGE 2: WINTER WINDOW DESK ==================== */
.stage--desk {
  gap: 14px;
}

.desk-header {
  text-align: center;
  padding: 0 6px;
}

.section-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(23px, 6.4vw, 30px);
  font-weight: 600;
  color: #fff6e8;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 20px rgba(255, 198, 122, 0.26);
}

.section-sub {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 234, 214, 0.8);
}

/* Illustrated Interactive Diorama Box */
.diorama-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 420 / 430;
  border-radius: 24px;
  overflow: hidden;
  border: 1.6px solid rgba(255, 220, 152, 0.52);
  box-shadow:
    0 24px 54px rgba(7, 3, 20, 0.62),
    0 0 38px rgba(255, 186, 118, 0.18),
    inset 0 0 0 1px rgba(255, 250, 234, 0.22);
  background: #1f1734;
}

.diorama-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  z-index: 9;
  box-shadow: inset 0 0 26px rgba(255, 212, 146, 0.16);
}

.diorama-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.svg-window-backdrop {
  display: block;
  width: 100%;
  height: 100%;
}

/* Snow strictly inside the window glass area */
.window-snow {
  position: absolute;
  left: 10.5%;
  top: 5.2%;
  width: 79%;
  height: 37.5%;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.win-flake {
  position: absolute;
  top: -8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 250, 230, 0.85);
}

/* Volumetric diagonal warm golden sunbeams */
.sunbeam {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

.sunbeam--1 {
  top: 6%;
  left: 18%;
  width: 56%;
  height: 96%;
  background: linear-gradient(155deg, rgba(255, 224, 156, 0.24) 0%, rgba(255, 198, 128, 0.08) 54%, transparent 86%);
  clip-path: polygon(32% 0%, 88% 0%, 58% 100%, 0% 100%);
}

.sunbeam--2 {
  top: 10%;
  right: 8%;
  width: 44%;
  height: 85%;
  background: linear-gradient(150deg, rgba(255, 178, 206, 0.16) 0%, rgba(255, 222, 160, 0.06) 58%, transparent 88%);
  clip-path: polygon(36% 0%, 94% 0%, 66% 100%, 10% 100%);
}

/* Fox & Bunny perched gracefully near window sill */
.desk-companions {
  position: absolute;
  left: 50%;
  top: 34.5%;
  transform: translateX(-50%);
  width: 44%;
  z-index: 4;
  pointer-events: none;
  opacity: 0.72;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-spring), filter 0.6s ease;
}

.desk-companions.is-bright {
  opacity: 1;
  transform: translateX(-50%) scale(1.06);
  filter: drop-shadow(0 4px 14px rgba(255, 214, 130, 0.45));
}

/* 2x3 Interactive Keepsake Grid resting cleanly on the warm wooden tabletop */
.desk-objects {
  position: absolute;
  left: 3.5%;
  right: 3.5%;
  top: 44.8%;
  bottom: 4.5%;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px 4px;
  align-items: center;
  justify-items: center;
}

.desk-item {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 16px;
  transition: transform 0.35s var(--ease-spring), filter 0.4s ease, opacity 0.4s ease;
}

.desk-item__halo {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--obj-glow, rgba(255, 214, 130, 0.55)) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s var(--ease-spring);
}

.desk-item__ring {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 232, 168, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.desk-item__ring--inner {
  width: 68px;
  height: 68px;
  border-style: dotted;
  border-color: var(--obj-accent, #ffe299);
}

.desk-item__art {
  position: relative;
  z-index: 2;
  width: clamp(64px, 18.2vw, 82px);
  height: clamp(64px, 18.2vw, 82px);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 12px rgba(14, 6, 18, 0.46));
  transition: transform 0.35s var(--ease-spring), filter 0.35s ease;
}

.obj-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.desk-item__tag {
  position: relative;
  z-index: 3;
  margin-top: -2px;
  padding: 2.5px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: rgba(24, 15, 38, 0.72);
  border: 1px solid rgba(255, 224, 168, 0.34);
  color: #fcebd8;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.35s ease;
}

.desk-item__check {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 4;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe699, #f2a849);
  color: #3d1c12;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(255, 206, 114, 0.55);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.35s ease, transform 0.4s var(--ease-spring);
}

/* States of Desk Objects */
.desk-item.is-locked {
  opacity: 0.62;
  filter: saturate(0.38) brightness(0.8);
  cursor: default;
}

.desk-item.is-locked .desk-item__tag {
  opacity: 0.7;
  font-size: 10.5px;
}

.desk-item.is-visited {
  opacity: 1;
}

.desk-item.is-visited .desk-item__halo {
  opacity: 0.34;
  transform: scale(0.9);
}

.desk-item.is-visited .desk-item__check {
  opacity: 1;
  transform: scale(1);
}

.desk-item.is-current {
  opacity: 1;
  z-index: 4;
}

.desk-item.is-current .desk-item__halo {
  opacity: 0.92;
  transform: scale(1.12);
}

.desk-item.is-current .desk-item__ring {
  opacity: 0.92;
}

.desk-item.is-current .desk-item__art {
  filter:
    drop-shadow(0 0 14px var(--obj-glow, rgba(255, 214, 130, 0.72)))
    drop-shadow(0 12px 16px rgba(10, 4, 18, 0.55));
}

.desk-item.is-current .desk-item__tag {
  background: linear-gradient(135deg, rgba(235, 76, 112, 0.92), rgba(182, 46, 84, 0.95));
  border-color: rgba(255, 234, 174, 0.88);
  color: #fffaf0;
  box-shadow: 0 4px 16px var(--obj-glow, rgba(255, 198, 128, 0.55));
  transform: scale(1.06);
}

.desk-item:not(.is-locked):active .desk-item__art {
  transform: scale(0.9);
}

/* Constellation Progress Bar */
.constellation-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.c-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 232, 188, 0.24);
  border: 1px solid rgba(255, 224, 158, 0.35);
  transition: all 0.4s var(--ease-spring);
}

.c-dot.is-done {
  background: var(--gold-200);
  box-shadow: 0 0 10px rgba(255, 224, 150, 0.65);
}

.c-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, #ff7ea5, #ffe296);
  border-color: #fff4cc;
  box-shadow: 0 0 14px rgba(255, 178, 148, 0.75);
}

/* Active Callout Card below desk */
.desk-callout {
  width: 100%;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(35, 23, 62, 0.78) 0%, rgba(24, 15, 44, 0.84) 100%);
  border: 1.2px solid rgba(255, 220, 152, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 38px rgba(7, 3, 20, 0.42);
  text-align: center;
}

.callout-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold-200);
}

.callout-step {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 224, 154, 0.16);
  border: 1px solid rgba(255, 224, 154, 0.34);
}

.callout-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: #fff8ec;
}

.callout-hint {
  margin: 0 0 15px;
  font-size: 13.5px;
  color: rgba(255, 234, 214, 0.8);
}

.callout-actions {
  display: flex;
  justify-content: center;
}

.desk-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255, 226, 186, 0.62);
}

.free-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

/* ==================== READING MODAL OVERLAY ==================== */
.reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: env(safe-area-inset-top) 0 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.reader-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 8, 28, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.reader-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  height: min(92dvh, 840px);
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 232, 188, 0.45), transparent 40%),
    linear-gradient(180deg, var(--paper-top) 0%, var(--paper-bot) 100%);
  color: var(--ink-dark);
  border-top: 2px solid rgba(235, 192, 114, 0.88);
  box-shadow: 0 -20px 60px rgba(5, 2, 18, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(42px) scale(0.96);
  transition: transform 0.48s var(--ease-spring);
}

.reader-overlay.is-open .reader-sheet {
  transform: translateY(0) scale(1);
}

.reader-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: rgba(212, 162, 92, 0.18);
  z-index: 5;
}

.reader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e85d75, #f5c05d, #4ecdc4);
  transition: width 0.12s linear;
}

.reader-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(206, 166, 116, 0.32);
  background: rgba(255, 251, 242, 0.86);
  backdrop-filter: blur(8px);
}

.reader-badge {
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: #966647;
}

.reader-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(186, 126, 92, 0.12);
  color: #6b463d;
  font-size: 13px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reader-close:active {
  transform: scale(0.93);
}

.reader-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px calc(32px + env(safe-area-inset-bottom));
}

/* Reader Hero Object Display */
.reader-hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 162px;
  margin: 4px auto 8px;
}

.reader-hero-halo {
  position: absolute;
  width: 158px;
  height: 158px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--reader-glow, rgba(242, 100, 135, 0.34)) 0%, transparent 72%);
  filter: blur(6px);
}

.reader-hero-rings {
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1.4px dashed var(--reader-accent, #e85d75);
  opacity: 0.52;
}

.reader-art {
  position: relative;
  z-index: 2;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 12px 18px rgba(68, 34, 42, 0.22));
}

.reader-heading {
  text-align: center;
  margin-bottom: 18px;
}

.reader-kicker {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #a6694a;
}

.reader-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(23px, 6.2vw, 28px);
  font-weight: 600;
  color: #321d28;
  line-height: 1.32;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  color: #d69c52;
  font-size: 12px;
}

.ornament-divider span {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d69c52, transparent);
}

/* ==================== CUSTOM INTERACTIVE WIDGETS IN READER ==================== */
.reader-interactive {
  margin: 0 0 20px;
}

.reader-interactive:empty {
  display: none;
}

.widget-box {
  position: relative;
  border-radius: 18px;
  padding: 15px 16px;
  background: linear-gradient(145deg, rgba(255, 250, 238, 0.92), rgba(248, 233, 208, 0.72));
  border: 1.3px solid rgba(214, 168, 102, 0.56);
  box-shadow: 0 10px 24px rgba(96, 58, 36, 0.1);
  text-align: center;
  overflow: hidden;
}

.widget-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #d84b6a, #b83354);
  color: #fffaf2;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(196, 54, 88, 0.3);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.widget-trigger:active {
  transform: scale(0.95);
}

/* Widget 1: Whisper quotes */
.whisper-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  text-align: left;
}

.whisper-card {
  padding: 11px 14px;
  border-radius: 12px;
  background: #fffdf8;
  border-left: 3px solid #e85d75;
  box-shadow: 0 4px 12px rgba(84, 38, 48, 0.08);
  font-size: 13.8px;
  line-height: 1.72;
  color: #4f2f3b;
}

.whisper-caption {
  margin: 0 0 8px;
  font-size: 12px;
  color: #9e6b58;
}

/* Widget 2: 3D Folding 7.6x7.6 Sticky Note */
.fold-note-wrap {
  perspective: 900px;
}

.fold-note {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 10px;
  background: linear-gradient(160deg, #fffbe2 0%, #ffefad 100%);
  border: 1.5px solid #d9ac59;
  box-shadow: 0 12px 26px rgba(132, 92, 28, 0.18);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.45s var(--ease-spring);
}

.fold-note__top {
  padding: 14px 16px;
  border-bottom: 1.2px dashed rgba(186, 134, 52, 0.45);
  background: linear-gradient(180deg, #fffce8, #fff2bf);
}

.fold-note__size {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: #a8752c;
  margin-bottom: 4px;
}

.fold-note__prompt {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 600;
  color: #7c4d1a;
}

.fold-note__inside {
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
  transform-origin: top center;
  transform: rotateX(-75deg);
  transition: max-height 0.55s var(--ease-silk), opacity 0.45s ease, transform 0.55s var(--ease-spring), padding 0.45s ease;
}

.fold-note.is-unfolded .fold-note__inside {
  max-height: 320px;
  opacity: 1;
  padding: 14px 16px 16px;
  transform: rotateX(0deg);
}

.fold-note__quote {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  color: #6b3518;
  line-height: 1.65;
}

.fold-note__mini {
  margin: 6px 0 0;
  font-size: 12.2px;
  line-height: 1.62;
  color: #7d5836;
  text-align: left;
  padding-top: 8px;
  border-top: 1px dashed rgba(186, 134, 52, 0.35);
}

/* Widget 3: Squishy Plush Duck Speech Bubble */
.duck-bubble-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.duck-speech {
  position: relative;
  padding: 10px 16px;
  border-radius: 16px;
  background: #fffdf6;
  border: 1.3px solid #ecc05b;
  color: #6b461a;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 6px 16px rgba(176, 128, 36, 0.14);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Widget 4: Cup-bottom Elephant Mechanism */
.elephant-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.elephant-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
}

.svg-elephant {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(154, 102, 26, 0.28));
}

.cup-sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #2d9c96, #42bdb4);
  color: #fffdf6;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  box-shadow: 0 6px 16px rgba(45, 156, 150, 0.28);
}

.elephant-caption {
  margin: 0;
  font-size: 12.8px;
  color: #70554d;
  line-height: 1.6;
}

/* Widget 5: Origami Heart Glow Inscription */
.heart-reveal-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff0f5, #ffe3ec);
  border: 1.4px solid #f598b5;
  box-shadow: 0 8px 22px rgba(232, 93, 134, 0.18);
}

.heart-inscription {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #b82952;
  letter-spacing: 0.06em;
}

.heart-echo {
  margin: 0;
  font-size: 12.5px;
  color: #824d5e;
}

/* ==================== READER BODY & CANONICAL LETTER ==================== */
.reader-body {
  font-size: 16px;
  line-height: 1.92;
  color: var(--ink-dark);
}

.reader-body p {
  margin: 0 0 15px;
}

.reader-body--letter {
  position: relative;
  padding: 20px 18px 22px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(252, 244, 228, 0.94) 100%);
  border: 1.3px solid rgba(214, 172, 108, 0.65);
  box-shadow:
    0 12px 30px rgba(96, 56, 36, 0.1),
    inset 0 0 0 4px rgba(255, 250, 240, 0.72),
    inset 0 0 0 5px rgba(214, 172, 108, 0.28);
}

.letter-header-ornament {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(202, 156, 98, 0.48);
}

.letter-header-meta {
  font-family: var(--font-serif);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: #a36c48;
}

.letter-header-stamp {
  width: 50px;
  transform: rotate(4deg);
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: #a62b46;
  margin-bottom: 14px !important;
}

.letter-signature {
  margin-top: 22px !important;
  margin-bottom: 0 !important;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: #8f2d45;
  letter-spacing: 0.12em;
}

.reader-note {
  margin: 18px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--reader-accent, #e05a74);
  background: rgba(235, 186, 134, 0.14);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: #7c4b44;
  line-height: 1.7;
}

.reader-note:empty {
  display: none;
}

.reader-footer {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* ==================== STAGE 3: 19TH BIRTHDAY WISH CEREMONY ==================== */
.stage--wish {
  gap: 14px;
  padding-top: 4px;
  text-align: center;
}

.wish-header {
  padding: 0 8px;
}

.wish-title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: clamp(27px, 7.6vw, 36px);
  font-weight: 600;
  line-height: 1.28;
  background: linear-gradient(120deg, #fffdf4 12%, #ffe49b 50%, #ffb7cf 85%, #fff6d9 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 28px rgba(255, 206, 128, 0.24);
}

.wish-sub {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 236, 222, 0.84);
}

.cake-arena {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 4px;
}

.cake-aurora-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 214, 134, 0.34) 0%, rgba(242, 108, 152, 0.24) 44%, rgba(96, 222, 212, 0.14) 68%, transparent 76%);
  filter: blur(18px);
  pointer-events: none;
  transition: transform 0.9s var(--ease-spring), opacity 0.9s ease;
}

.stage--wish.is-blown .cake-aurora-halo {
  transform: translate(-50%, -52%) scale(1.25);
  background:
    radial-gradient(circle, rgba(255, 226, 134, 0.48) 0%, rgba(255, 114, 168, 0.36) 44%, rgba(111, 235, 224, 0.24) 68%, transparent 78%);
}

.cake-candlelight {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 140, 0.56) 0%, rgba(255, 160, 82, 0.24) 46%, transparent 75%);
  filter: blur(16px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stage--wish.is-blown .cake-candlelight {
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
}

.cake-button {
  position: relative;
  z-index: 2;
  width: 292px;
  cursor: pointer;
  outline: none;
  transition: transform 0.45s var(--ease-spring), width 0.55s var(--ease-silk);
}

.stage--wish.is-blown .cake-button {
  width: 224px;
}

.stage--wish.is-blown {
  gap: 10px;
}

.stage--wish.is-blown .blessing-card {
  padding: 16px 18px 14px;
}

.cake-button:active {
  transform: scale(0.96);
}

.svg-cake {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 16px 32px rgba(8, 3, 24, 0.55));
}

.cake-age-ribbon {
  position: relative;
  z-index: 3;
  margin-top: -6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 224, 150, 0.18), rgba(242, 100, 135, 0.22));
  border: 1px solid rgba(255, 226, 158, 0.54);
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--gold-100);
  backdrop-filter: blur(10px);
}

.ribbon-star {
  color: var(--gold-200);
  font-size: 12px;
}

.wish-pre-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.wish-hint {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 232, 198, 0.68);
}

/* Grand Blessing Card revealed after blowing out candles */
.wish-celebration {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.blessing-card {
  position: relative;
  width: 100%;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 152, 0.22), transparent 55%),
    linear-gradient(155deg, rgba(42, 24, 72, 0.84) 0%, rgba(26, 15, 50, 0.9) 100%);
  border: 1.5px solid rgba(255, 224, 152, 0.62);
  box-shadow:
    0 20px 50px rgba(7, 3, 22, 0.58),
    0 0 36px rgba(255, 196, 128, 0.24);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.blessing-card__foil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, transparent 30%, rgba(255, 242, 196, 0.16) 50%, transparent 70%);
}

.blessing-kicker {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--gold-200);
}

.blessing-main {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 6.8vw, 31px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.05em;
  background: linear-gradient(120deg, #fffaf0 0%, #ffe08a 42%, #ff9ec2 76%, #fff5d6 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blessing-echo {
  margin: 0 0 14px;
  font-size: 13.8px;
  line-height: 1.7;
  color: rgba(255, 236, 220, 0.86);
}

.blessing-sign {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 222, 158, 0.35);
  font-size: 13.5px;
  color: rgba(255, 230, 206, 0.84);
}

.blessing-sign strong {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--gold-200);
  letter-spacing: 0.08em;
}

.sky-tap-hint {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 228, 168, 0.82);
}

.celebration-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* ==================== DESKTOP / TABLET REFINEMENTS ==================== */
@media (max-width: 400px) {
  .cake-shortcut-label { display: none; }
  #btn-cake-shortcut {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }
}

@media (max-width: 360px) {
  .topbar { padding-inline: 10px; gap: 8px; }
  .brand { padding-inline: 10px; gap: 4px; letter-spacing: 0.08em; }
  .brand-star { display: none; }
  .brand-age { letter-spacing: 0.08em; }
}

@media (min-width: 720px) {
  .topbar {
    max-width: 560px;
    padding-top: 18px;
  }

  .viewport-shell {
    max-width: 540px;
    padding-top: 12px;
  }

  .reader-overlay {
    align-items: center;
    padding: 20px;
  }

  .reader-sheet {
    border-radius: 28px;
    height: min(88dvh, 800px);
    border: 1.8px solid rgba(235, 192, 114, 0.82);
  }
}


/* ==================== EXPRESSIVE KINETICS & LUMINOUS MOTION ==================== */

/* Shimmering metallic gold text sweep */
.shimmer-text,
.hero-wish,
.wish-title,
.blessing-main {
  animation: goldShimmer 5.5s linear infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

/* Ambient breathing aurora orbs */
.glow-orb--1 { animation: orbDriftA 14s ease-in-out infinite alternate; }
.glow-orb--2 { animation: orbDriftB 17s ease-in-out infinite alternate; }
.glow-orb--3 { animation: orbDriftC 15s ease-in-out infinite alternate; }

@keyframes orbDriftA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(45px, 35px) scale(1.16); }
}
@keyframes orbDriftB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, -28px) scale(1.18); }
}
@keyframes orbDriftC {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -36px) scale(1.14); }
}

/* Music button active dancing equalizer */
.pill-btn.is-playing .eq-bars i:nth-child(1) { animation: eqBounce 0.62s ease-in-out infinite alternate; }
.pill-btn.is-playing .eq-bars i:nth-child(2) { animation: eqBounce 0.48s ease-in-out 0.12s infinite alternate; }
.pill-btn.is-playing .eq-bars i:nth-child(3) { animation: eqBounce 0.72s ease-in-out 0.22s infinite alternate; }
.pill-btn.is-playing .eq-bars i:nth-child(4) { animation: eqBounce 0.54s ease-in-out 0.08s infinite alternate; }

@keyframes eqBounce {
  from { height: 3px; }
  to { height: 13px; }
}

/* ==================== COVER CARD MOTION ==================== */
.stage--cover.is-active .cover-header {
  animation: riseFade 0.8s var(--ease-silk) both;
}

.stage--cover.is-active .card-stage {
  animation: cardEntrance 0.95s var(--ease-spring) 0.12s both;
}

.stage--cover.is-active .cover-cta-wrap {
  animation: riseFade 0.85s var(--ease-silk) 0.28s both;
}

@keyframes riseFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(34px) scale(0.92) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

/* Gentle levitation on the cover birthday card */
.bcard:not(.is-opening) {
  animation: cardLevitate 5.4s ease-in-out infinite;
}

@keyframes cardLevitate {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-7px) rotate(0.6deg); }
}

/* Sweeping foil gleam across card & CTA buttons */
.bcard-foil-sweep::after {
  animation: foilSweep 4.8s ease-in-out infinite;
}

@keyframes foilSweep {
  0%, 55% { left: -90%; opacity: 0; }
  62% { opacity: 1; }
  94% { left: 145%; opacity: 0.9; }
  100% { left: 155%; opacity: 0; }
}

.cta-btn__sheen {
  animation: btnSheen 3.6s ease-in-out infinite;
}

@keyframes btnSheen {
  0%, 58% { left: -85%; }
  100% { left: 145%; }
}

/* Wax seal pulsing golden invitation */
.wax-seal {
  animation: sealPulse 2.6s ease-in-out infinite;
}

@keyframes sealPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 8px 20px rgba(128, 16, 42, 0.56), 0 0 22px rgba(255, 114, 146, 0.52), inset 0 2px 4px rgba(255, 220, 228, 0.55);
  }
  50% {
    transform: translateX(-50%) scale(1.09);
    box-shadow: 0 10px 26px rgba(188, 30, 68, 0.68), 0 0 34px rgba(255, 212, 134, 0.8), inset 0 2px 4px rgba(255, 220, 228, 0.72);
  }
}

/* Dramatic 3D Card Unfold Opening Sequence! */
.bcard.is-opening .wax-seal {
  animation: sealBurstOut 0.45s ease-out forwards;
}

@keyframes sealBurstOut {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  45% { transform: translateX(-50%) scale(1.45); opacity: 1; filter: brightness(1.8); }
  100% { transform: translateX(-50%) scale(0.2); opacity: 0; }
}

.bcard.is-opening .bcard-front {
  transform: perspective(1100px) rotateY(-108deg) translateZ(36px) scale(1.08);
  opacity: 0.15;
}

.bcard.is-opening .bcard-aura {
  transform: scale(1.75);
  opacity: 1;
  transition: transform 0.7s ease-out, opacity 0.6s ease;
}

.bcard.is-opening .bcard-companions {
  transform: translateX(-50%) translateY(-16px) scale(1.08);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.45s ease;
}

/* Golden light bloom flash during stage swap */
.transition-flash.is-flashing {
  animation: goldenFlash 0.95s var(--ease-silk) forwards;
}

@keyframes goldenFlash {
  0% { opacity: 0; transform: scale(0.72); }
  38% { opacity: 0.94; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* ==================== DESK DIORAMA ATMOSPHERE MOTION ==================== */
.stage--desk.is-active .diorama-frame {
  animation: dioramaReveal 0.85s var(--ease-spring) both;
}

.stage--desk.is-active .desk-callout {
  animation: riseFade 0.7s var(--ease-silk) 0.16s both;
}

@keyframes dioramaReveal {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Window fairy lights twinkling warmly out-of-phase */
.fairy-bulbs .bulb--1 { animation: bulbTwinkle 2.8s ease-in-out infinite; }
.fairy-bulbs .bulb--2 { animation: bulbTwinkle 3.3s ease-in-out 0.5s infinite; }
.fairy-bulbs .bulb--3 { animation: bulbTwinkle 2.5s ease-in-out 1.1s infinite; }
.fairy-bulbs .bulb--4 { animation: bulbTwinkle 3.1s ease-in-out 0.2s infinite; }
.fairy-bulbs .bulb--5 { animation: bulbTwinkle 2.6s ease-in-out 0.9s infinite; }
.fairy-bulbs .bulb--6 { animation: bulbTwinkle 3.4s ease-in-out 0.4s infinite; }
.fairy-bulbs .bulb--7 { animation: bulbTwinkle 2.9s ease-in-out 1.3s infinite; }

@keyframes bulbTwinkle {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 224, 134, 0.95)); }
}

.twinkle-stars {
  animation: starBlink 3.6s ease-in-out infinite alternate;
}
@keyframes starBlink {
  from { opacity: 0.62; }
  to { opacity: 1; }
}

/* Gentle curtain breeze */
.curtain--left { transform-origin: top left; animation: curtainWaveL 7s ease-in-out infinite alternate; }
.curtain--right { transform-origin: top right; animation: curtainWaveR 7.5s ease-in-out infinite alternate; }

@keyframes curtainWaveL {
  from { transform: skewX(0deg); }
  to { transform: skewX(1.6deg); }
}
@keyframes curtainWaveR {
  from { transform: skewX(0deg); }
  to { transform: skewX(-1.6deg); }
}

/* Sunbeams breathing slowly */
.sunbeam--1 { animation: beamBreathe 6.5s ease-in-out infinite alternate; }
.sunbeam--2 { animation: beamBreathe 7.8s ease-in-out 1.2s infinite alternate; }

@keyframes beamBreathe {
  from { opacity: 0.62; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(6px); }
}

/* Window glass snow falling */
.win-flake {
  animation: windowSnowFall var(--dur, 5s) linear var(--delay, 0s) infinite;
}

@keyframes windowSnowFall {
  0% { transform: translate(0, -10px); opacity: 0; }
  12% { opacity: 0.85; }
  88% { opacity: 0.75; }
  100% { transform: translate(var(--drift, 14px), 175px); opacity: 0; }
}

/* ==================== DESK OBJECT SPOTLIGHT & AWAKENING ==================== */
.desk-item.is-current .desk-item__halo {
  animation: activeHaloPulse 2.3s ease-in-out infinite;
}

@keyframes activeHaloPulse {
  0%, 100% { transform: scale(1.02); opacity: 0.72; }
  50% { transform: scale(1.24); opacity: 1; }
}

.desk-item.is-current .desk-item__ring:not(.desk-item__ring--inner) {
  animation: spinCW 11s linear infinite;
}

.desk-item.is-current .desk-item__ring--inner {
  animation: spinCCW 8s linear infinite;
}

@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spinCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.desk-item.is-current .desk-item__art {
  animation: objectFloat 2.6s ease-in-out infinite;
}

@keyframes objectFloat {
  0%, 100% { transform: translateY(-2px) rotate(-2.4deg) scale(1.04); }
  50% { transform: translateY(-10px) rotate(2.4deg) scale(1.1); }
}

/* Dramatic Awakening Spring Pop when next chapter unlocks! */
.desk-item.is-awakening .desk-item__art {
  animation: objectAwaken 0.9s var(--ease-spring) forwards;
}

@keyframes objectAwaken {
  0% { transform: scale(0.45) rotate(-18deg); filter: brightness(2.2); }
  45% { transform: scale(1.26) translateY(-14px) rotate(6deg); filter: brightness(1.45); }
  75% { transform: scale(0.95) translateY(-2px) rotate(-2deg); filter: brightness(1.08); }
  100% { transform: scale(1.06) translateY(-4px) rotate(0deg); filter: brightness(1); }
}

/* ==================== READER HERO & MODAL ENTRANCE ==================== */
.reader-hero-rings {
  animation: spinCW 18s linear infinite;
}

.reader-hero-halo {
  animation: activeHaloPulse 3.2s ease-in-out infinite;
}

.reader-overlay.is-open .reader-art.enter-from-left {
  animation: heroFromLeft 0.72s var(--ease-spring) both;
}
.reader-overlay.is-open .reader-art.enter-from-right {
  animation: heroFromRight 0.72s var(--ease-spring) both;
}
.reader-overlay.is-open .reader-art.enter-from-top {
  animation: heroFromTop 0.72s var(--ease-spring) both;
}
.reader-overlay.is-open .reader-art.enter-from-bottom {
  animation: heroFromBottom 0.72s var(--ease-spring) both;
}

@keyframes heroFromLeft {
  0% { opacity: 0; transform: translateX(-56px) rotate(-18deg) scale(0.65); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg) scale(1); }
}
@keyframes heroFromRight {
  0% { opacity: 0; transform: translateX(56px) rotate(18deg) scale(0.65); }
  100% { opacity: 1; transform: translateX(0) rotate(0deg) scale(1); }
}
@keyframes heroFromTop {
  0% { opacity: 0; transform: translateY(-48px) rotate(-12deg) scale(0.62); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes heroFromBottom {
  0% { opacity: 0; transform: translateY(48px) scale(0.65); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Plush Duck squishy bounce! */
.is-squishing {
  animation: duckSquish 0.56s var(--ease-spring);
}

@keyframes duckSquish {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.22, 0.78) translateY(8px); }
  55% { transform: scale(0.9, 1.14) translateY(-10px) rotate(-4deg); }
  80% { transform: scale(1.05, 0.96) rotate(2deg); }
  100% { transform: scale(1, 1); }
}

/* Origami heart glow pulse */
.is-heart-pulsing {
  animation: heartBloom 0.65s var(--ease-spring);
}

@keyframes heartBloom {
  0% { transform: scale(1); }
  35% { transform: scale(1.22) rotate(-5deg); filter: drop-shadow(0 0 22px rgba(255, 118, 168, 0.9)); }
  70% { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1); }
}

/* Paragraph staggered entrance inside modal */
.reader-body p {
  animation: paraReveal 0.62s var(--ease-silk) backwards;
  animation-delay: calc(var(--pi, 0) * 55ms + 120ms);
}

@keyframes paraReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 19TH BIRTHDAY CAKE FLAMES & SMOKE ==================== */
.stage--wish.is-active .cake-arena {
  animation: cakePopIn 0.85s var(--ease-spring) both;
}

@keyframes cakePopIn {
  from { opacity: 0; transform: scale(0.84) translateY(28px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Lively organic dual flames */
.flame-unit--1 .flame-outer {
  transform-origin: 0px 0px;
  animation: flameDanceA 1.15s ease-in-out infinite alternate;
}
.flame-unit--2 .flame-outer {
  transform-origin: 0px 0px;
  animation: flameDanceB 1.28s ease-in-out 0.18s infinite alternate;
}
.flame-unit--1 .flame-mid,
.flame-unit--2 .flame-mid {
  transform-origin: 0px -3px;
  animation: flameCorePulse 0.82s ease-in-out infinite alternate;
}
.flame-halo {
  animation: haloFlicker 1.4s ease-in-out infinite alternate;
}

@keyframes flameDanceA {
  0% { transform: scale(0.96, 1.03) skewX(-4deg); }
  35% { transform: scale(1.06, 0.94) skewX(5deg); }
  70% { transform: scale(0.98, 1.08) skewX(-2deg); }
  100% { transform: scale(1.05, 1.0) skewX(3deg); }
}
@keyframes flameDanceB {
  0% { transform: scale(1.04, 0.96) skewX(4deg); }
  40% { transform: scale(0.95, 1.08) skewX(-5deg); }
  75% { transform: scale(1.06, 0.98) skewX(3deg); }
  100% { transform: scale(0.97, 1.04) skewX(-2deg); }
}
@keyframes flameCorePulse {
  from { transform: scale(0.94, 0.96); opacity: 0.9; }
  to { transform: scale(1.06, 1.08); opacity: 1; }
}
@keyframes haloFlicker {
  from { opacity: 0.48; transform: scale(0.92); }
  to { opacity: 0.78; transform: scale(1.12); }
}

.cake-candlelight {
  animation: candleRoomGlow 1.9s ease-in-out infinite alternate;
}
@keyframes candleRoomGlow {
  from { opacity: 0.75; transform: translateX(-50%) scale(0.94); }
  to { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* Blown out flames vanish dramatically */
.cake-flames {
  transition: opacity 0.32s ease;
}

.stage--wish.is-blowing .flame-outer,
.stage--wish.is-blowing .flame-mid,
.stage--wish.is-blowing .flame-core,
.stage--wish.is-blowing .flame-halo {
  transform-origin: 0px 0px;
  animation: flameBlowAway 0.36s ease-in forwards;
}

@keyframes flameBlowAway {
  0% { transform: skewX(0deg) scale(1); opacity: 1; }
  45% { transform: skewX(38deg) scale(1.22, 0.58); opacity: 1; }
  100% { transform: skewX(55deg) scale(0.05, 0.05); opacity: 0; }
}

.stage--wish.is-blown .cake-flames {
  opacity: 0;
  pointer-events: none;
}

/* Curling translucent smoke wisps rising gracefully after blow-out */
.cake-smoke .smoke-wisp {
  opacity: 0;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}

.stage--wish.is-blown .cake-smoke .smoke-wisp--1 {
  animation: smokeRise 2.4s ease-out 0.12s forwards;
}
.stage--wish.is-blown .cake-smoke .smoke-wisp--2 {
  animation: smokeRise 2.6s ease-out 0.18s forwards;
}
.stage--wish.is-blown .cake-smoke .smoke-wisp--3 {
  animation: smokeRise 2.1s ease-out 0.34s forwards;
}
.stage--wish.is-blown .cake-smoke .smoke-wisp--4 {
  animation: smokeRise 2.2s ease-out 0.38s forwards;
}

@keyframes smokeRise {
  0% { opacity: 0; stroke-dashoffset: 120; transform: translateY(6px); }
  22% { opacity: 0.88; }
  68% { opacity: 0.55; stroke-dashoffset: 0; transform: translateY(-10px); }
  100% { opacity: 0; stroke-dashoffset: -45; transform: translateY(-28px); }
}

/* Cute Fox & Bunny celebratory bounce when candles blow out! */
.stage--wish.is-blown .companion--fox {
  animation: companionCheer 1.4s var(--ease-spring) 0.25s infinite alternate;
}
.stage--wish.is-blown .companion--bunny {
  animation: companionCheerB 1.3s var(--ease-spring) 0.38s infinite alternate;
}

@keyframes companionCheer {
  from { transform: translate(8px, 178px) rotate(-3deg); }
  to { transform: translate(8px, 168px) rotate(4deg); }
}
@keyframes companionCheerB {
  from { transform: translate(230px, 166px) rotate(3deg); }
  to { transform: translate(230px, 156px) rotate(-4deg); }
}

/* Celebration Blessing Card grand rise */
.wish-celebration:not(.hidden) .blessing-card {
  animation: blessingRise 0.85s var(--ease-spring) both;
}

@keyframes blessingRise {
  from { opacity: 0; transform: translateY(34px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
}
