/* ============================================
   BIRTHDAY WEBSITE — style.css  v3
   Sunflower × Online friendship 🌻💬
   ============================================ */

:root {
  --bg:     #FFFCF0;
  --yellow: #FFD166;
  --orange: #FF9F1C;
  --deep:   #E07B00;
  --green:  #7DBE4E;
  --text:   #2E2010;
  --soft:   #7a6040;
  --card:   #FFFFFF;
  --radius: 18px;
  --shadow: 0 6px 28px rgba(46,32,16,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 48px 22px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* inner wrapper for content-heavy sections — no scroll */
.section-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}



/* ============================================
   SCROLL-TRIGGERED SECTION ENTRANCES
   ============================================ */

/* base — hidden until section enters viewport */
[data-enter] {
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-enter="rise"]       { transform: translateY(42px); }
[data-enter="rise-slow"]  { transform: translateY(58px); transition-duration: 0.8s; }
[data-enter="drop"]       { transform: translateY(-36px); }
[data-enter="left"]       { transform: translateX(-46px); }
[data-enter="right"]      { transform: translateX(46px); }
[data-enter="pop"]        { transform: scale(0.78); transition-timing-function: cubic-bezier(.34,1.56,.64,1); }
[data-enter="flip"]       { transform: perspective(600px) rotateX(18deg) translateY(28px); transform-origin: top center; }

/* fired — element is now visible */
[data-enter].entered {
  opacity: 1;
  transform: none;
}

.fade-up { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }


.tag-pill {
  background: var(--yellow);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.7rem;
  color: var(--deep);
  text-align: center;
  line-height: 1.25;
  margin-bottom: 8px;
}
.section-title em { font-style: italic; color: var(--orange); }
.section-sub { font-size: 0.85rem; color: var(--soft); margin-bottom: 24px; }


/* ============================================
   PROGRESS DOTS
   ============================================ */
.progress-dots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.pdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(46,32,16,0.2);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.pdot.active {
  background: var(--orange);
  transform: scale(1.5);
}


/* ============================================
   MUSIC BUTTON
   ============================================ */
.music-btn {
  position: fixed;
  bottom: 24px;
  left: 18px;
  z-index: 100;
  background: var(--yellow);
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,209,102,0.5);
  transition: transform 0.2s;
}
.music-btn:active { transform: scale(0.93); }
.music-icon { font-size: 1rem; }
.music-btn.playing .music-icon { animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-btn.playing { background: var(--orange); color: #fff; }


/* ============================================
   SUNFLOWER TOUCH TRAIL
   ============================================ */
.trail-flower {
  position: fixed;
  pointer-events: none;
  font-size: 1.2rem;
  z-index: 999;
  animation: trailFade 0.8s ease forwards;
  user-select: none;
}
@keyframes trailFade {
  0%   { opacity: 1;   transform: translateY(0)    scale(1); }
  100% { opacity: 0;   transform: translateY(-28px) scale(0.4); }
}


/* ============================================
   HERO
   ============================================ */
#hero {
  background: linear-gradient(170deg, #FFF6D0 0%, #FFFCF0 55%, #FFF0CC 100%);
  padding-top: 120px;
}

.flower-garden {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 6px;
  z-index: 2;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
.garden-flower {
  height: 80px;
  width: auto;
  object-fit: contain;
  transform-origin: bottom center;
}
.gf-1 { animation: sway1 3.2s ease-in-out infinite; }
.gf-2 { animation: sway2 2.8s ease-in-out infinite; }
.gf-3 { animation: sway1 3.6s ease-in-out infinite 0.4s; }
.gf-4 { animation: sway2 3.0s ease-in-out infinite 0.2s; }
.gf-5 { animation: sway1 2.6s ease-in-out infinite 0.6s; }
.gf-6 { animation: sway2 3.4s ease-in-out infinite 0.1s; }
.gf-7 { animation: sway1 3.1s ease-in-out infinite 0.5s; }
@keyframes sway1 { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } }
@keyframes sway2 { 0%,100% { transform: rotate(5deg); }  50% { transform: rotate(-5deg); } }

.petals-container {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.petal {
  position: absolute;
  animation: fall linear infinite;
  opacity: 0.75;
  user-select: none;
}
@keyframes fall {
  0%   { transform: translateY(-60px) rotate(0deg);   opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(400deg); opacity: 0; }
}

.hero-content {
  z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  text-align: center;
}
.hero-from {
  font-size: 0.82rem;
  color: var(--soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 10px;
}
.hero-name {
  font-family: 'Dancing Script', cursive;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  min-height: 1.2em;
}

/* typewriter cursor */
.type-cursor {
  display: inline-block;
  color: var(--orange);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
}
.type-cursor.done { display: none; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-date { font-size: 0.9rem; color: var(--soft); }
.cta-btn {
  margin-top: 28px;
  background: var(--yellow);
  color: var(--text);
  border: none;
  padding: 15px 38px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255,209,102,0.55);
  transition: transform 0.2s;
  animation: breathe 2.4s ease-in-out infinite;
}
.cta-btn:active { transform: scale(0.94); }
@keyframes breathe {
  0%,100% { box-shadow: 0 6px 22px rgba(255,209,102,0.55); }
  50%      { box-shadow: 0 8px 34px rgba(255,159,28,0.65); }
}
.scroll-hint {
  position: absolute; bottom: 20px;
  font-size: 0.75rem; color: var(--soft);
  animation: bob 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }


/* ============================================
   ORIGIN
   ============================================ */
#origin { background: #FFFCF0; }
.origin-sub {
  font-size: 0.92rem; color: var(--soft);
  text-align: center; line-height: 1.7; margin-bottom: 28px;
}
.origin-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 22px;
  border-left: 4px solid var(--yellow);
}
.origin-line { display: flex; gap: 14px; align-items: flex-start; }
.origin-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.origin-line strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; color: var(--deep); }
.origin-line p { font-size: 0.83rem; color: var(--soft); line-height: 1.6; }
.origin-footer { margin-top: 22px; font-size: 0.85rem; color: var(--soft); font-style: italic; text-align: center; }


/* ============================================
   BONDS
   ============================================ */
#bonds { background: linear-gradient(160deg, #FFF8DC 0%, #FFFCF0 100%); }
.bond-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%; max-width: 380px;
  margin-top: 6px;
}
.bond-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 14px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--c, var(--yellow));
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.2s;
}
.bond-card:active { transform: scale(0.97); }
.bond-card.full-width { grid-column: 1 / -1; }
.bond-emoji { font-size: 1.8rem; }
.bond-card h3 { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.bond-card p { font-size: 0.78rem; color: var(--soft); line-height: 1.55; }


/* ============================================
   REASONS + FLOATING HEART
   ============================================ */
#reasons { background: #FFFCF0; }
.reasons-list {
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.reason-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s;
  border: 1.5px solid transparent;
  position: relative; /* needed for floating hearts */
  overflow: visible;
}
.reason-item.pinged {
  background: #FFFBE6;
  border-color: var(--yellow);
  transform: scale(1.02);
}
.reason-num {
  font-family: 'Pacifico', cursive;
  font-size: 1rem; color: var(--yellow); flex-shrink: 0;
}
.reason-item p { font-size: 0.84rem; line-height: 1.55; color: var(--text); flex: 1; }
.reason-heart { font-size: 1.1rem; flex-shrink: 0; transition: transform 0.3s; }
.reason-item.pinged .reason-heart { transform: scale(1.4); animation: heartbeat 0.5s ease; }
@keyframes heartbeat { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1.2); } }

/* floating emoji that rises from tapped reason */
.float-emoji {
  position: absolute;
  right: 18px;
  top: 0;
  font-size: 1.3rem;
  pointer-events: none;
  animation: floatUp 1.1s ease forwards;
  z-index: 10;
}
@keyframes floatUp {
  0%   { opacity: 1; transform: translateY(0)    scale(1); }
  100% { opacity: 0; transform: translateY(-55px) scale(1.4); }
}


/* ============================================
   LETTER + ENVELOPE
   ============================================ */
#message { background: linear-gradient(160deg, #FFF6D0 0%, #FFFCF0 100%); padding-bottom: 4px;}

/* Envelope */
.envelope-outer {
  width: 260px;
  cursor: pointer;
  position: relative;
  margin-bottom: 0;
  transition: transform 0.2s;
}
.envelope-outer:active { transform: scale(0.97); }
.envelope-outer.opened { pointer-events: none; }

.env-flap {
  width: 100%;
  height: 70px;
  position: relative;
  overflow: visible;
  z-index: 3;
}
.env-flap-inner {
  width: 0; height: 0;
  border-left: 130px solid transparent;
  border-right: 130px solid transparent;
  border-top: 70px solid var(--yellow);
  transition: transform 0.6s ease;
  transform-origin: top center;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,0.1));
}
.env-seal {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  z-index: 4;
  transition: opacity 0.3s ease, transform 0.6s ease;
  transform-origin: top center;
}
.envelope-outer.opened .env-flap-inner {
  transform: rotateX(180deg);
}
.envelope-outer.opened .env-seal {
  opacity: 0;
  pointer-events: none;
}
.env-body {
  background: var(--yellow);
  height: 120px;
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.env-shine {
  position: absolute;
  top: -30px; left: -30px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
}
.env-tap-hint { font-size: 0.82rem; font-weight: 600; color: var(--text); z-index: 1; }

/* Letter — hidden until envelope opens */
.letter-wrap {
  width: 100%; max-width: 380px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  background: #fffdf7;
  background-image: repeating-linear-gradient(transparent, transparent 31px, #ffe4b5 31px, #ffe4b5 32px);
  border: 1px solid #ffe599;
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  position: relative;
}
.letter-wrap.visible {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.letter-header { 
  text-align: center; 
  padding: 0px 14px 0px; 
  font-family: 'Pacifico', cursive;
  font-size: 2rem; 
  color: var(--orange); 
  background: transparent;
}
.letter-body { 
  padding: 0px 30px 11px; 
  background: transparent; 
}
.letter-text {
  font-family: 'Playwrite GB J', cursive;
  font-size: 0.6rem; 
  line-height: 18px; 
  color: #5a4b3d;
}


/* ============================================
   CLOSING / WISH
   ============================================ */
#closing { background: linear-gradient(170deg, #FFF6CC 0%, #FFFCF0 60%, #FFEEBB 100%); }
.closing-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px; text-align: center;
}
.spinning-sun { height: 100px; font-size: 4rem; animation: spinSlow 5s linear infinite;  }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.closing-title { font-family: 'Pacifico', cursive; font-size: 2rem; color: var(--deep); }
.closing-sub { font-size: 0.9rem; color: var(--soft); line-height: 1.7; }
.candle-zone { position: relative; display: inline-block; margin: 10px 0 4px; }
.candle-body { font-size: 3.8rem; line-height: 1; }
.flame {
  font-size: 1.6rem;
  position: absolute; top: -18px; left: 50%;
  transform: translateX(-50%);
  animation: flicker 0.4s ease-in-out infinite alternate;
  transition: opacity 0.5s, transform 0.5s;
}
.flame.out { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(0.3); }
@keyframes flicker {
  from { transform: translateX(-50%) scale(1)    rotate(-4deg); }
  to   { transform: translateX(-50%) scale(1.12) rotate(4deg); }
}
.blow-btn {
  background: var(--orange); color: #fff; border: none;
  padding: 15px 42px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; box-shadow: 0 6px 20px rgba(255,159,28,0.4);
  transition: transform 0.15s;
}
.blow-btn:active  { transform: scale(0.94); }
.blow-btn:disabled { opacity: 0.6; }
.final-reveal { display: none; flex-direction: column; align-items: center; gap: 10px; animation: rise 0.8s ease forwards; }
.final-reveal.show { display: flex; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.final-big { font-family: 'Pacifico', cursive; font-size: 1.9rem; color: var(--deep); }
.final-small { font-size: 0.95rem; color: var(--text); line-height: 1.8; }
.final-flowers { font-size: 1.6rem; letter-spacing: 6px; margin-top: 4px; }


/* ============================================
   CAKE TRAP
   ============================================ */
#cake { background: linear-gradient(170deg, #FFF0CC 0%, #FFFCF0 100%); }
.cake-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.cake-hidden { display: none !important; flex-direction: column; align-items: center; gap: 14px; }
.cake-hidden.active { display: flex !important; animation: rise 0.6s ease forwards; }
#cakeStep1 { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cake-sub { font-size: 0.88rem; color: var(--soft); }
.big-cake { font-size: 5rem; animation: wobble 2s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.05); } }
.cake-btn {
  background: var(--yellow); color: var(--text); border: none;
  padding: 15px 38px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; box-shadow: 0 6px 22px rgba(255,209,102,0.5);
  animation: breathe 2.4s ease-in-out infinite;
}
.cake-btn:active { transform: scale(0.94); }
.poison-icon { font-size: 4rem; animation: shake 0.5s ease-in-out 3; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px) rotate(-4deg); } 75% { transform: translateX(8px) rotate(4deg); } }
.poison-title { font-family: 'Pacifico', cursive; font-size: 2.4rem; color: #c0392b; }
.poison-msg { font-size: 1.1rem; color: var(--text); }
.poison-msg strong { color: #c0392b; }
.poison-sub { font-size: 0.88rem; color: var(--soft); }
.guess-btn {
  background: #c0392b; color: #fff; border: none;
  padding: 14px 30px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; box-shadow: 0 6px 18px rgba(192,57,43,0.35); margin-top: 6px;
}
.guess-btn:active { transform: scale(0.94); }
.guess-icon { font-size: 3.5rem; }
.guess-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; width: 100%; margin-top: 6px;
}
.guess-opt {
  background: var(--card); border: 2px solid #eee;
  border-radius: var(--radius); padding: 16px 10px;
  font-family: 'Poppins', sans-serif; font-size: 0.88rem;
  font-weight: 500; cursor: pointer; color: var(--text);
  box-shadow: var(--shadow); transition: transform 0.15s, background 0.2s, border-color 0.2s;
  line-height: 1.4;
}
.guess-opt:active { transform: scale(0.95); }
.guess-opt.wrong { background: #ffeaea; border-color: #e74c3c; animation: nope 0.4s ease; }
@keyframes nope { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.guess-hint { font-size: 0.83rem; color: #c0392b; min-height: 20px; font-style: italic; }
.punchline-icon { font-size: 4rem; animation: bounce2 0.6s ease 3; }
@keyframes bounce2 { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-14px) scale(1.15); } }
.punchline-title { font-family: 'Pacifico', cursive; font-size: 2.6rem; color: var(--deep); }
.punchline-msg { font-size: 1rem; line-height: 1.75; color: var(--text); }
.punchline-small { font-size: 0.88rem; color: var(--soft); font-style: italic; line-height: 1.7; margin-top: 4px; margin-bottom: 40px; }

/* ============================================
   COMPACT OVERRIDES — no internal scroll
   keeps everything within 100dvh
   ============================================ */
section { padding: 32px 18px 40px; }

/* bonds — smaller cards */
.bond-grid { gap: 8px; margin-top: 4px; }
.bond-card { padding: 12px 11px; gap: 4px; }
.bond-emoji { font-size: 1.4rem; }
.bond-card h3 { font-size: 0.8rem; }
.bond-card p  { font-size: 0.74rem; line-height: 1.45; }

/* reasons — tighter rows */
.reasons-list { gap: 7px; margin-top: 2px; }
.reason-item  { padding: 11px 14px; }
.reason-item p { font-size: 0.8rem; line-height: 1.45; }
.reason-num   { font-size: 0.9rem; }
.section-sub  { margin-bottom: 10px; font-size: 0.8rem; }

/* origin — tighter card */
.origin-card { gap: 14px; padding: 16px 16px; }
.origin-line p { font-size: 0.8rem; }

/* cake steps — tighter */
.cake-wrap   { gap: 10px;}
.big-cake    { font-size: 3.8rem; }
.poison-icon { font-size: 3rem; }
.guess-icon  { font-size: 2.6rem; }
.punchline-icon { font-size: 3rem; }
.punchline-title { font-size: 2rem; }
.punchline-msg { font-size: 0.92rem; }
.punchline-small { font-size: 0.82rem; }
.guess-options { gap: 9px; }
.guess-opt { padding: 13px 8px; font-size: 0.84rem; }

/* tag pill — less bottom margin */
.tag-pill { margin-bottom: 8px; }
.section-title { margin-bottom: 4px; font-size: 1.55rem; }

/* ============================================
   SECTION · DOODLES / POLAROIDS
   ============================================ */
#doodles {
  background: linear-gradient(160deg, #FFFBDC 0%, #FFFCF0 100%);
  overflow: hidden;
}

.doodles-sub {
  font-size: 0.85rem;
  color: var(--soft);
  margin-bottom: 10px;
}

/* scatter container — relative so polaroids can be positioned freely */
.polaroid-scatter {
  position: relative;
  width: 100%;
  height: 340px;
  max-width: 400px;
}

/* base polaroid */
.polaroid {
  position: absolute;
  background: #fff;
  padding: 8px 8px 28px;
  box-shadow: 0 6px 24px rgba(46,32,16,0.15), 0 2px 6px rgba(0,0,0,0.08);
  border-radius: 3px;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 130px;
}

.polaroid-img {
  width: 100%;
  aspect-ratio: 1;
  background: #f5f0e8;
  overflow: hidden;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* swap placeholder div for real img like this:
   .polaroid-img img { width:100%; height:100%; object-fit:cover; } */
.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doodle-placeholder {
  font-size: 2.4rem;
  opacity: 0.5;
}

.polaroid-caption {
  position: absolute;
  bottom: 6px;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 0.82rem;
  color: var(--soft);
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- POSITIONS ---- */
/* center top — main one */
.polaroid.center-top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--r, 0deg));
  z-index: 3;
  width: 148px;
}

/* peek from left — half off screen */
.polaroid.peek-left {
  top: 40px;
  left: -42px;
  z-index: 2;
}

/* peek from right — half off screen */
.polaroid.peek-right {
  top: 50px;
  right: -42px;
  z-index: 2;
}

/* bottom left */
.polaroid.bottom-left {
  bottom: 10px;
  left: 12px;
  z-index: 4;
}

/* bottom right */
.polaroid.bottom-right {
  bottom: 0px;
  right: 44px;
  z-index: 4;
}

/* tape effect on center polaroid */
.polaroid.center-top::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 40px;
  height: 18px;
  background: rgba(255, 220, 100, 0.55);
  border-radius: 2px;
  z-index: 5;
}

/* ============================================
   LOADER — proper sunflower
   ============================================ */
#loader {
  background: linear-gradient(135deg, #FFE680 0%, #FFEB99 50%, #FFF4B3 100%);
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  z-index: 99999;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.loader-active {
  overflow: hidden;
}

/* the whole flower spins */
.sf-loader {
  position: relative;
  width: 100px;
  height: 100px;
  animation: sfSpin 6s linear infinite;
}

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

/* petals wrapper — same size, centered */
.sf-petals {
  position: absolute;
  inset: 0;
}

/* each petal */
.sf-petal {
  position: absolute;
  width: 22px;
  height: 36px;
  background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
  border-radius: 50% 50% 40% 40%;
  top: 50%;
  left: 50%;
  transform-origin: 50% 100%; /* rotate from the bottom center = the flower center */
  box-shadow: 0 2px 8px rgba(255,180,0,0.3);
}

/* space 12 petals evenly = 360/12 = 30deg apart */
/* move each up by half its height so base sits at center */
.sf-petal:nth-child(1)  { transform: translateX(-50%) translateY(-100%) rotate(calc(0   * 30deg)); }
.sf-petal:nth-child(2)  { transform: translateX(-50%) translateY(-100%) rotate(calc(1   * 30deg)); }
.sf-petal:nth-child(3)  { transform: translateX(-50%) translateY(-100%) rotate(calc(2   * 30deg)); }
.sf-petal:nth-child(4)  { transform: translateX(-50%) translateY(-100%) rotate(calc(3   * 30deg)); }
.sf-petal:nth-child(5)  { transform: translateX(-50%) translateY(-100%) rotate(calc(4   * 30deg)); }
.sf-petal:nth-child(6)  { transform: translateX(-50%) translateY(-100%) rotate(calc(5   * 30deg)); }
.sf-petal:nth-child(7)  { transform: translateX(-50%) translateY(-100%) rotate(calc(6   * 30deg)); }
.sf-petal:nth-child(8)  { transform: translateX(-50%) translateY(-100%) rotate(calc(7   * 30deg)); }
.sf-petal:nth-child(9)  { transform: translateX(-50%) translateY(-100%) rotate(calc(8   * 30deg)); }
.sf-petal:nth-child(10) { transform: translateX(-50%) translateY(-100%) rotate(calc(9   * 30deg)); }
.sf-petal:nth-child(11) { transform: translateX(-50%) translateY(-100%) rotate(calc(10  * 30deg)); }
.sf-petal:nth-child(12) { transform: translateX(-50%) translateY(-100%) rotate(calc(11  * 30deg)); }

/* dark brown center on top */
.sf-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 35% 35%, #8B6914, #4a2511);
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(74,37,17,0.5);
}

.loader-text {
  font-family: 'Playwrite GB J', cursive;
  font-size: 1.2rem;
  color: #8B6914;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: loaderFade 1.4s ease-in-out infinite alternate;
}

@keyframes loaderFade {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* ============================================
   FUN DOODLES & ENVELOPE STAMPS
   ============================================ */

.env-stamp {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 48px;
  background: #fffcfa;
  border: 2px dashed #d1ccc0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transform: rotate(6deg);
  box-shadow: 1px 1px 4px rgba(0,0,0,0.12);
  z-index: 1;
}

.env-squiggle {
  position: absolute;
  top: 25px;
  right: 48px;
  font-size: 1.4rem;
  color: #555;
  opacity: 0.5;
  transform: rotate(-15deg);
  z-index: 2;
  letter-spacing: -4px;
}

/* Washi Tape for the letter */
.washi-tape {
  position: absolute;
  width: 80px;
  height: 25px;
  background: rgba(255, 180, 194, 0.55);
  backdrop-filter: blur(2px);
  z-index: 5;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}
.washi-tape.top-left {
  top: -2px;
  left: -20px;
  transform: rotate(-45deg);
}
.washi-tape.bottom-right {
  bottom: -2px;
  right: -20px;
  transform: rotate(-45deg);
  background: rgba(168, 218, 220, 0.55);
}

/* Coffee Stain Doodle */
.coffee-stain {
  position: absolute;
  bottom: 15px;
  left: -25px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid rgba(139, 69, 19, 0.12);
  border-right: 2px solid transparent;
  border-bottom: 5px solid rgba(139, 69, 19, 0.08);
  transform: rotate(30deg);
  pointer-events: none;
  z-index: 0;
}

/* Floating emojis on letter */
.doodle-star {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 1.6rem;
  opacity: 0.6;
  animation: floatDoodle 3.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.doodle-cat {
  position: absolute;
  bottom: 60px;
  right: 15px;
  font-size: 1.5rem;
  opacity: 0.5;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

@keyframes floatDoodle {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-8px) rotate(15deg); }
}

/* ============================================
   SITE-WIDE DOODLES
   ============================================ */
.site-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
  animation: floatDoodle 3.5s ease-in-out infinite alternate;
}
.doodle-swirl1 {
  top: 15%;
  left: 10%;
  font-size: 2.5rem;
  color: var(--orange);
  transform: rotate(45deg);
  opacity: 0.5;
}
.doodle-sparkle1 {
  top: 20%;
  right: 15%;
  font-size: 2rem;
  animation-delay: 1s;
  opacity: 0.7;
}
.doodle-sparkle2 {
  top: 15%;
  left: 15%;
  font-size: 2rem;
  animation-delay: 0.5s;
  opacity: 0.7;
}
.doodle-arrow {
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 2.5rem;
  transform: rotate(15deg);
  opacity: 0.7;
  pointer-events: none;
}
.doodle-paw1 {
  top: 10%;
  left: 5%;
  font-size: 3rem;
  opacity: 0.15;
  transform: rotate(-20deg);
}
.doodle-paw2 {
  bottom: 15%;
  right: 8%;
  font-size: 3rem;
  opacity: 0.15;
  transform: rotate(15deg);
}
.washi-tape.top-center {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 209, 102, 0.6);
  z-index: 10;
}
.washi-tape.top-center-tape {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(168, 218, 220, 0.6);
  z-index: 10;
}
.doodle-sprinkles {
  top: 8%;
  right: 15%;
  font-size: 3.5rem;
  opacity: 0.5;
  animation-duration: 4s;
}

