/**
 * ====================================================================
 * SONU'S BIRTHDAY COUNTDOWN - SCRAPBOOK DESIGN SYSTEM
 * ====================================================================
 */

:root {
  /* Warm Paper & Scrapbook Palette */
  --bg-cream: #FAF6EF;
  --bg-card: #FFFEFA;
  --bg-card-alt: #F6EFE6;
  --ink-primary: #2C2523;
  --ink-secondary: #655C56;
  --ink-light: #9B918B;

  /* Sunflower & Cozy Accent Colors */
  --sunflower-gold: #F7B32B;
  --sunflower-amber: #E29B12;
  --sunflower-center: #4A2B18;
  --sunflower-leaf: #6E884F;
  --sunflower-soft: #FFF5DD;

  --blush-pink: #F8D7DA;
  --soft-peach: #FFE5D4;
  --lavender-mist: #EAE4F5;
  --sage-green: #DCE8D6;

  /* Scrapbook Textures & Tapes */
  --washi-gold: rgba(247, 179, 43, 0.55);
  --washi-pink: rgba(248, 215, 218, 0.7);
  --washi-sage: rgba(220, 232, 214, 0.75);
  --washi-lavender: rgba(234, 228, 245, 0.75);

  /* Typography */
  --font-display: 'Caveat', 'Patrick Hand', 'Comic Sans MS', cursive, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Shadows & Radii */
  --radius-card: 16px;
  --radius-sm: 8px;
  --shadow-paper: 0 4px 18px rgba(65, 45, 30, 0.08), 0 1px 3px rgba(65, 45, 30, 0.06);
  --shadow-float: 0 12px 32px rgba(65, 45, 30, 0.12), 0 3px 8px rgba(65, 45, 30, 0.08);
}

/* ------------------------------------------------------------------
   Reset & Base Styles
------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-cream);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(247, 179, 43, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(248, 215, 218, 0.08) 0%, transparent 25%),
    linear-gradient(rgba(242, 235, 222, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 235, 222, 0.4) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px, 24px 24px;
  color: var(--ink-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 54px;
}

/* Focus Visible for Keyboard Accessibility */
:focus-visible {
  outline: 3px solid var(--sunflower-amber);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Scrapbook Container (Mobile-first, centered) */
.page-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 16px 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ------------------------------------------------------------------
   Decorative Scrapbook Washi Tape
------------------------------------------------------------------ */
.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 110px;
  height: 24px;
  background-color: var(--washi-gold);
  border-left: 2px dashed rgba(255, 255, 255, 0.6);
  border-right: 2px dashed rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  pointer-events: none;
  z-index: 5;
  opacity: 0.9;
}

.washi-tape.pink { background-color: var(--washi-pink); transform: translateX(-50%) rotate(2deg); }
.washi-tape.sage { background-color: var(--washi-sage); transform: translateX(-50%) rotate(-1deg); }
.washi-tape.lavender { background-color: var(--washi-lavender); transform: translateX(-50%) rotate(1.8deg); }

/* Sunflower Corner Accents */
.sunflower-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 3;
}

.sunflower-corner.top-right {
  top: -12px;
  right: -8px;
  transform: rotate(15deg);
  animation: sunflowerBob 4s ease-in-out infinite;
}

.sunflower-corner.top-left {
  top: -12px;
  left: -8px;
  transform: rotate(-15deg);
  animation: sunflowerBob 4.5s ease-in-out infinite reverse;
}

/* ------------------------------------------------------------------
   Cards & Scrapbook Panels
------------------------------------------------------------------ */
.scrapbook-card {
  position: relative;
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(225, 215, 198, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ------------------------------------------------------------------
   1. HERO SECTION & BOKU PERCH
------------------------------------------------------------------ */
.hero-card {
  text-align: center;
  padding: 32px 20px 28px 20px;
  background: linear-gradient(180deg, #FFFEFA 0%, #FFF9EC 100%);
  border: 2px dashed #E6D2B5;
}

/* Boku The Orange Cat (Featured on the Hero Card) */
.cat-boku-stage {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}

.cat-boku-stage:hover {
  transform: scale(1.08);
}

.cat-boku-stage.hop {
  animation: catJoyHop 0.45s ease forwards;
}

.boku-nametag {
  background: #F5923E;
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(245, 146, 62, 0.35);
  margin-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cat-boku-svg {
  width: 52px;
  height: 42px;
  animation: bokuGlow 3s ease-in-out infinite, sunflowerBob 4s ease-in-out infinite;
}

.bulletin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--sunflower-soft);
  color: var(--sunflower-center);
  border: 1px solid rgba(247, 179, 43, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  animation: gentleFloat 5s ease-in-out infinite;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--sunflower-center);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2.7vw, 1.05rem);
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-highlight {
  font-size: 1.05rem;
  font-weight: 600;
  color: #C05A32;
  margin-bottom: 20px;
  display: block;
}

/* Countdown Clock Display */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0 10px 0;
}

.countdown-box {
  background: #FFFDF8;
  border: 1px solid #EADBCC;
  border-radius: 12px;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 6px rgba(70, 50, 30, 0.05);
  position: relative;
  overflow: hidden;
}

.countdown-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sunflower-gold);
}

.countdown-digits {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--sunflower-center);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.countdown-digits.tick {
  animation: digitPulse 0.4s ease-out;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hero Cat To-and-Fro Runway (At the bottom of Why So Excited card) */
.hero-cat-lane {
  position: relative;
  width: 100%;
  height: 38px;
  margin-top: 14px;
  border-top: 1px dashed rgba(224, 180, 140, 0.45);
  padding-top: 4px;
  overflow: hidden;
  display: block;
}

.hero-zoom-cat {
  position: absolute;
  bottom: 2px;
  left: 4px;
  width: 38px;
  height: 30px;
  cursor: pointer;
  z-index: 5;
  animation: heroCatToAndFro 8s linear infinite;
  transform-origin: center center;
  transition: filter 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-zoom-cat::before {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -10px;
}

.hero-zoom-cat:hover {
  filter: drop-shadow(0 2px 8px rgba(247, 179, 43, 0.85));
}

.hero-zoom-cat.is-zooming {
  filter: drop-shadow(0 0 10px rgba(245, 146, 62, 0.95)) drop-shadow(0 2px 8px rgba(217, 110, 20, 0.7));
}

.hero-zoom-cat svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: catTrotBob 0.4s ease-in-out infinite alternate;
}

.hero-zoom-cat.is-zooming svg {
  animation: catTrotBob 0.16s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------------
   2. BOYFRIEND OPERATIONAL CONTROL SECTION
------------------------------------------------------------------ */
.boyfriend-card {
  border-left: 6px solid var(--sunflower-gold);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--blush-pink);
  color: #8C2E3C;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  margin-bottom: 20px;
}

/* Excitement Gauge Widget */
.gauge-container {
  background: #FFFDF8;
  border: 1px solid #ECE2D5;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.gauge-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.gauge-meter-wrapper {
  position: relative;
  height: 22px;
  background: #EFE9E0;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 12px 0;
  border: 1px solid #DACEC2;
}

.gauge-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #F7B32B 0%, #F28C28 70%, #E83F5B 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.gauge-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #C0392B;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.gauge-gif-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 10px auto;
}

.gauge-cat-gif {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--sunflower-gold);
  box-shadow: 0 4px 14px rgba(245, 146, 62, 0.28);
  background: #FFFDF8;
  transition: transform 0.2s ease;
}

.gauge-cat-gif:hover {
  transform: scale(1.08) rotate(-2deg);
}

.gauge-cat-gif.jiggle {
  animation: gaugeShake 0.4s ease;
}

.gauge-note {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-style: italic;
}

.btn-calm-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #FFF;
  background: linear-gradient(135deg, #F7B32B 0%, #D9822B 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 130, 43, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-calm-down:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 130, 43, 0.4);
}

.btn-calm-down:active {
  transform: translateY(1px);
}

/* Boyfriend Symptoms List */
.symptoms-header {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sunflower-center);
  margin-top: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.symptoms-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.symptom-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FFFDF9;
  border-left: 3px solid var(--sunflower-gold);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  font-size: 0.92rem;
  background: rgba(246, 239, 230, 0.5);
  box-shadow: 0 1px 4px rgba(60, 45, 30, 0.04);
}

.symptom-tag {
  font-size: 0.76rem;
  font-weight: 800;
  background: var(--sunflower-soft);
  color: var(--sunflower-center);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.symptom-text {
  color: var(--ink-primary);
  line-height: 1.45;
  font-weight: 500;
}

/* Party Readiness: Cat in Basin with Birthday Cap */
.basin-cat-card {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.basin-cat-polaroid {
  position: relative;
  background: #FFFDF8;
  padding: 12px 12px 14px 12px;
  border-radius: 12px;
  border: 1px solid #E6D8C8;
  box-shadow: 0 4px 14px rgba(60, 45, 30, 0.08);
  max-width: 230px;
  text-align: center;
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease;
}

.basin-cat-polaroid:hover {
  transform: rotate(0deg) scale(1.03);
}

.basin-cat-img {
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.basin-cat-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--sunflower-center);
  margin-top: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.basin-cat-caption {
  font-size: 0.8rem;
  color: var(--ink-secondary);
  margin-top: 4px;
  line-height: 1.35;
  font-style: italic;
}

/* ------------------------------------------------------------------
   3. LITTLE SURPRISE (PINTEREST PAPER NOTE & 3D ENVELOPE)
------------------------------------------------------------------ */
.envelope-section {
  text-align: center;
  position: relative;
}

.envelope-outer-stage {
  margin-top: 18px;
  perspective: 1200px;
  position: relative;
}

/* Kraft / Parchment 3D Envelope */
.paper-envelope {
  position: relative;
  background: linear-gradient(145deg, #FAF4E8 0%, #F2E4CF 100%);
  border: 2px solid #E4D2BC;
  border-radius: 18px;
  padding: 44px 20px 36px 20px;
  box-shadow: 0 10px 30px -6px rgba(90, 60, 30, 0.14), 0 4px 12px -2px rgba(90, 60, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.paper-envelope:hover {
  transform: translateY(-3px);
  border-color: var(--sunflower-gold);
  box-shadow: 0 14px 36px -6px rgba(184, 122, 14, 0.2), 0 6px 16px -2px rgba(90, 60, 30, 0.1);
}

/* Envelope Flap with 3D Fold Keyframe */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px;
  transform-origin: top center;
  pointer-events: none;
  z-index: 4;
  transition: transform 0.65s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.envelope-flap-triangle {
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 140px solid transparent;
  border-right: 140px solid transparent;
  border-top: 50px solid #ECD8BE;
  filter: drop-shadow(0 3px 5px rgba(90, 60, 30, 0.12));
}

.paper-envelope.is-opening .envelope-flap {
  animation: flapOpen3D 0.6s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.paper-envelope.is-closing .envelope-flap {
  animation: flapClose3D 0.5s ease-in-out forwards;
}

/* Vintage Airmail Postmark on Envelope */
.envelope-postmark {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.72;
  pointer-events: none;
  transform: rotate(4deg);
}

.postmark-circle {
  width: 58px;
  height: 58px;
  border: 1.5px dashed #A37E5A;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 800;
  color: #7D5B3A;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-transform: uppercase;
}

.postmark-circle strong {
  font-size: 0.7rem;
  color: #5C3E24;
}

.postmark-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.postmark-lines span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: #A37E5A;
  border-radius: 1px;
}

/* Wax Seal Button (Interactive Trigger) */
.wax-seal-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  color: inherit;
  position: relative;
  z-index: 6;
}

/* Golden Sunflower Wax Seal Stamp */
.wax-seal-stamp {
  width: 78px;
  height: 78px;
  background: radial-gradient(circle at 35% 32%, #FFE07D 0%, #F7B32B 42%, #BA7710 85%, #8A5203 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(186, 119, 16, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.8), inset 0 -3px 6px rgba(100, 50, 0, 0.5);
  font-size: 2.1rem;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.wax-seal-stamp::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px dashed rgba(255, 240, 200, 0.65);
  border-radius: 50%;
  pointer-events: none;
}

.wax-seal-btn:hover .wax-seal-stamp {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 10px 26px rgba(186, 119, 16, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.9);
}

.wax-seal-btn:active .wax-seal-stamp {
  transform: scale(0.96) rotate(-2deg);
}

.paper-envelope.is-opening .wax-seal-stamp {
  animation: waxPopOut 0.5s ease forwards;
}

.seal-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.seal-prompt-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sunflower-center);
  letter-spacing: -0.01em;
}

.seal-prompt-sub {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

/* ------------------------------------------------------------------
   PINTEREST TEXTURED PAPER NOTE
------------------------------------------------------------------ */
.pinterest-letter {
  display: none;
  background: #FAF5EB;
  background-image: linear-gradient(180deg, #FAF5EB 0%, #F5EFE3 50%, #FAF5EB 100%);
  border: 1px solid #E4D7C4;
  border-radius: 14px;
  padding: 42px 28px 30px 28px;
  box-shadow: 0 2px 8px rgba(60, 40, 20, 0.06), 0 16px 36px -6px rgba(80, 50, 25, 0.12), inset 0 0 45px rgba(240, 225, 205, 0.28);
  text-align: left;
  position: relative;
  outline: none;
}

.pinterest-letter.is-visible {
  display: block;
  animation: paperUnfold3D 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pinterest-letter.is-folding {
  animation: paperFold3D 0.5s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

/* Washi tape at top of the letter */
.letter-washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 120px;
  height: 24px;
  background: rgba(247, 179, 43, 0.5);
  backdrop-filter: blur(2px);
  border-left: 2px dashed rgba(255, 255, 255, 0.6);
  border-right: 2px dashed rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(60, 40, 20, 0.1);
  z-index: 3;
}

/* Vintage Sunflower Postage Stamp on Paper */
/* Sunflower Sticker on Paper (Clean) */
.letter-postage-stamp {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(60, 40, 20, 0.12));
  transform: rotate(3deg);
  transition: transform 0.2s ease;
}

.letter-postage-stamp:hover {
  transform: rotate(0deg) scale(1.06);
}

.letter-inner-content {
  position: relative;
  z-index: 2;
}

.letter-date {
  font-size: 0.82rem;
  color: #8A6D55;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-align: right;
  padding-right: 50px; /* Leave space for postage stamp */
}

.letter-salutation {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-style: italic;
  color: #4A2B18;
  margin-bottom: 18px;
  line-height: 1.25;
}

.letter-body p {
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #382D27;
  font-weight: 450;
  letter-spacing: 0.01em;
}

/* Sweet Hug Sticker GIF inside the Note */
.letter-gif-sticker {
  display: flex;
  justify-content: center;
  margin: 14px auto 10px auto;
}

.letter-gif-img {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(220, 200, 175, 0.7);
  box-shadow: 0 4px 12px rgba(80, 50, 25, 0.08);
  transform: rotate(-1.5deg);
  background: #FFFDF8;
  transition: transform 0.2s ease;
}

.letter-gif-img:hover {
  transform: rotate(0deg) scale(1.06);
}

.letter-signoff {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #4A2B18;
  line-height: 1.35;
}

.letter-signature {
  display: inline-block;
  font-size: 1.7rem;
  color: #C0392B;
  margin-top: 4px;
}

/* P.S. Handwritten Highlight */
.letter-ps {
  margin-top: 22px;
  background: rgba(247, 179, 43, 0.14);
  border-left: 3px solid #E89D1C;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #732D37;
  font-weight: 600;
  line-height: 1.55;
}

.ps-badge {
  background: #E89D1C;
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  letter-spacing: 0.05em;
  vertical-align: 1px;
}

/* Fold Back Up Button */
.btn-close-letter {
  margin-top: 24px;
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #F8EFE4 0%, #EFE1D0 100%);
  border: 1px solid #D6C4B0;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  color: #5D4330;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(100, 70, 40, 0.08);
}

.btn-close-letter:hover {
  background: #EADBCE;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 70, 40, 0.14);
}

.btn-close-letter:active {
  transform: translateY(0);
}

.btn-close-icon {
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------
   4. THE BIRTHDAY QUEEN (POLAROID & MONKEY)
------------------------------------------------------------------ */
.queen-card {
  position: relative;
}

.monkey-mascot-sticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--sunflower-soft);
  border: 1.5px dashed var(--sunflower-gold);
  border-radius: 14px;
  padding: 8px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sunflower-center);
  box-shadow: 0 2px 8px rgba(247, 179, 43, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.monkey-mascot-sticker:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(247, 179, 43, 0.25);
}

.monkey-gif-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--sunflower-gold);
  box-shadow: 0 2px 6px rgba(100, 70, 30, 0.1);
  background: #FFF;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.monkey-mascot-sticker:hover .monkey-gif-img {
  transform: rotate(-3deg) scale(1.06);
}

.monkey-sticker-text {
  line-height: 1.35;
}

.monkey-icon-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  animation: sunflowerBob 3s ease-in-out infinite;
}

.polaroid-frame {
  background: #FFFFFF;
  padding: 14px 14px 28px 14px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(60, 45, 30, 0.12), 0 2px 6px rgba(60, 45, 30, 0.06);
  border: 1px solid #EBE3D7;
  max-width: 380px;
  margin: 0 auto;
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease;
  position: relative;
}

.polaroid-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid-photo-box {
  width: 100%;
  background: #FFF9ED;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  position: relative;
  z-index: 2;
}

.polaroid-fallback-illustration {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  display: block;
  z-index: 1;
}

.polaroid-caption {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink-primary);
  text-align: center;
  margin-top: 14px;
  line-height: 1.3;
}

.polaroid-date-stamp {
  font-size: 0.92rem;
  color: #7D5B3A;
  text-align: center;
  margin-top: 8px;
  line-height: 1.45;
  font-style: italic;
  font-weight: 550;
  max-width: 92%;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------------------
   5. CUTE ROAMING CATS (TINY & SWEET)
------------------------------------------------------------------ */
/* Wandering Cat along bottom */
.cat-patrol-lane {
  position: fixed;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 34px;
  pointer-events: none;
  z-index: 1000;
}

.cat-walker {
  position: absolute;
  bottom: 0;
  width: 34px;
  height: 30px;
  pointer-events: auto;
  cursor: pointer;
  animation: catPatrol 34s linear infinite;
  transition: filter 0.15s ease;
}

.cat-walker:hover {
  filter: drop-shadow(0 2px 4px rgba(247, 179, 43, 0.5));
}

.cat-walker.hop {
  animation-play-state: paused;
  animation: catJoyHop 0.4s ease forwards;
}

/* Boku: Orange angel cat watching over from the stars */
.boku-queen-perch {
  position: absolute;
  top: -26px;
  right: 22px;
  z-index: 10;
  cursor: pointer;
  animation: bokuGlow 3.5s ease-in-out infinite, sunflowerBob 4.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.boku-queen-perch:hover {
  transform: scale(1.15) rotate(4deg);
}

.boku-queen-perch.hop {
  animation: catJoyHop 0.4s ease forwards;
}

.cat-perched:hover {
  transform: scale(1.15) rotate(4deg);
}

.cat-perched.hop {
  animation: catJoyHop 0.4s ease forwards;
}

/* Tuxedo Cat peeking on secret note */
.cat-peeker {
  position: absolute;
  bottom: -14px;
  left: 18px;
  width: 30px;
  height: 26px;
  z-index: 10;
  cursor: pointer;
  animation: sunflowerBob 4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.cat-peeker:hover {
  transform: scale(1.2) rotate(-6deg);
}

.cat-peeker.hop {
  animation: catJoyHop 0.4s ease forwards;
}

/* Gray Tabby on Boyfriend Card */
.cat-gray-perch {
  position: absolute;
  top: -20px;
  right: 18px;
  width: 30px;
  height: 26px;
  z-index: 10;
  cursor: pointer;
  animation: sunflowerSway 4.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.cat-gray-perch:hover {
  transform: scale(1.18) rotate(5deg);
}

.cat-gray-perch.hop {
  animation: catJoyHop 0.4s ease forwards;
}

/* Tiny White Kitty near Footer */
.cat-footer-companion {
  display: inline-block;
  vertical-align: middle;
  width: 28px;
  height: 24px;
  cursor: pointer;
  margin: 0 4px;
  animation: catBreathe 2.8s ease-in-out infinite;
}

.cat-footer-companion:hover {
  transform: scale(1.25);
}

.cat-footer-companion.hop {
  animation: catJoyHop 0.4s ease forwards;
}

/* ------------------------------------------------------------------
   6. THE BIG DAY: CELEBRATION MODE
------------------------------------------------------------------ */
.celebration-view {
  display: none;
  text-align: center;
  padding: 36px 20px;
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF5DD 100%);
  border: 3px solid var(--sunflower-gold);
  border-radius: var(--radius-card);
}

.celebration-view.is-active {
  display: block;
}

.celebration-badge {
  font-size: 0.85rem;
  font-weight: 800;
  color: #B87A0E;
  background: #FFF0C2;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 16px;
}

.celebration-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--sunflower-center);
  line-height: 1.15;
  margin-bottom: 10px;
}

.celebration-subtitle {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #C05A32;
  margin-bottom: 18px;
}

.celebration-message {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-primary);
  max-width: 500px;
  margin: 0 auto 24px auto;
}

/* Interactive Birthday Cake */
.cake-stage {
  margin: 20px auto;
  max-width: 220px;
  cursor: pointer;
  position: relative;
}

.flame {
  transform-origin: center bottom;
  animation: flameFlicker 1.8s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.flame.blown-out {
  display: none;
}

.smoke-puff {
  display: none;
  animation: smokeRise 1.2s ease-out forwards;
}

.smoke-puff.is-visible {
  display: block;
}

.cake-instruction {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sunflower-amber);
  margin-top: 8px;
}

.wish-confirmed {
  display: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--sunflower-leaf);
  margin-top: 14px;
  line-height: 1.3;
}

.wish-confirmed.is-visible {
  display: block;
}

/* January 7 Main Day Celebration Dance GIF */
.celebration-gif-wrapper {
  margin: 24px auto 10px auto;
  display: flex;
  justify-content: center;
}

.celebration-polaroid-frame {
  position: relative;
  background: #FFFDF8;
  padding: 12px 12px 14px 12px;
  border-radius: 12px;
  border: 1px solid #E6D8C8;
  box-shadow: 0 4px 16px rgba(60, 45, 30, 0.1);
  max-width: 250px;
  text-align: center;
  transform: rotate(1deg);
  transition: transform 0.2s ease;
}

.celebration-polaroid-frame:hover {
  transform: rotate(0deg) scale(1.03);
}

.celebration-gif-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.celebration-polaroid-caption {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--sunflower-center);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------
   7. FOOTER
------------------------------------------------------------------ */
.site-footer {
  text-align: center;
  padding: 36px 16px 20px 16px;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.footer-heart {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  animation: gentleFloat 4s ease-in-out infinite;
}

.footer-corner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #38251B;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #66554B;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-release {
  font-size: 0.8rem;
  color: #9C897E;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.btn-preview-toggle {
  margin-top: 14px;
  background: none;
  border: 1px dashed #D6C8B7;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--ink-light);
  cursor: pointer;
}

.btn-preview-toggle:hover {
  background: #FFF9ED;
  color: var(--sunflower-center);
}

.preview-exit-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(44, 30, 20, 0.92);
  color: #FFF9F2;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.preview-exit-pill:hover {
  background: #E85D75;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 117, 0.4);
}

/* ------------------------------------------------------------------
   Toast Notification Bubbles
------------------------------------------------------------------ */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: auto;
  max-width: min(92vw, 440px);
}

.toast-msg {
  position: relative;
  background: #2C2523;
  color: #FFF9F2;
  padding: 12px 24px;
  border-radius: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.15);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: auto;
  user-select: none;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: toastIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
  cursor: pointer;
}

.toast-close-btn {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E85D75;
  color: #FFFFFF;
  border: 2px solid #FFF9F2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
  pointer-events: auto;
  z-index: 2;
}

.toast-close-btn:hover {
  transform: scale(1.15);
  background: #D1345B;
}

.toast-close-btn:active {
  transform: scale(0.92);
}

.toast-close-btn::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
}

.toast-text {
  display: inline-block;
}

/* Fullscreen Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* ------------------------------------------------------------------
   Responsive Breakpoints
------------------------------------------------------------------ */
@media (min-width: 480px) {
  .hero-title {
    font-size: 2.7rem;
  }
  .countdown-digits {
    font-size: 2.6rem;
  }
  .scrapbook-card {
    padding: 28px 24px;
  }
}
