/* --- design system and variables --- */
:root {
  /* Updated to Sage Green & Terracotta-Rose for a calm, loving, organic aesthetic */
  --pink-light: #f0f4ef;    /* Sage Green Light */
  --pink-soft: #d8e2dc;     /* Sage Green Soft */
  --pink-medium: #b5c4b1;   /* Sage Green Medium */
  --pink-dark: #c77a7a;     /* Terracotta/Dusty Rose */
  --pink-deep: #b05c5c;     /* Terracotta/Earthy Red */
  --cream-bg: #faf6f0;      /* Beige/Cream Background */
  --cream-card: #ffffff;
  --text-dark: #3d312e;     /* Deep Earthy Brown */
  --text-muted: #73605c;    /* Muted Taupe */
  --card-shadow: 0 10px 30px rgba(115, 96, 92, 0.08);
  --hover-shadow: 0 15px 40px rgba(115, 96, 92, 0.16);
  --font-cute: 'Fredoka', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --font-letter: 'Caveat', cursive;
  --transition-normal: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- general reset and body --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at top, #faf7f2 0%, var(--pink-light) 100%);
  color: var(--text-dark);
  min-height: 100dvh;
  padding: 2rem 1rem;
  overflow-x: hidden;
  position: relative;
}

/* --- floating hearts background --- */
.hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  color: var(--pink-dark);
  opacity: 0.6;
  animation: floatUp 6s linear infinite;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(105vh) scale(0.5) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) scale(1.2) rotate(360deg);
    opacity: 0;
  }
}

/* --- main container & bento grid --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- reusable bento card --- */
.bento-card {
  background: var(--cream-card);
  border: 3px solid var(--pink-light);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hover-shadow);
  border-color: var(--pink-medium);
}

/* Card titles */
.card-title {
  font-family: var(--font-cute);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons style */
.btn {
  font-family: var(--font-cute);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--pink-dark);
  color: #fff;
  box-shadow: 0 5px 15px rgba(251, 111, 146, 0.4);
}

.btn-primary:hover {
  background: var(--pink-deep);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(251, 111, 146, 0.6);
}

.btn-secondary {
  background: var(--pink-light);
  color: var(--pink-deep);
}

.btn-secondary:hover {
  background: var(--pink-soft);
  transform: scale(1.05);
}

/* --- grid positions & sizes --- */
.header-block {
  grid-column: span 6;
  background: linear-gradient(135deg, #ffffff 0%, var(--pink-light) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.polaroid-block {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf9;
}

.music-block {
  grid-column: span 3;
  background: linear-gradient(135deg, #fff 0%, var(--pink-light) 100%);
}

.letter-block {
  grid-column: span 3;
  background: #fffdf6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cake-block {
  grid-column: span 3;
  background: #faf0ec; /* Soft terracotta light */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.coupons-block {
  grid-column: span 6;
}

/* --- header block styling --- */
.header-content {
  position: relative;
  z-index: 2;
}

.cute-tag {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-deep);
  font-family: var(--font-cute);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--pink-soft);
}

.main-title {
  font-family: var(--font-cute);
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.highlight {
  color: var(--pink-dark);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(251, 111, 146, 0.2);
  border-radius: 4px;
  z-index: -1;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 1.5rem;
}

/* Countdown Clock */
.countdown-wrapper {
  margin-top: 0.5rem;
}

.countdown-label {
  font-family: var(--font-cute);
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--pink-light);
  padding: 0.5rem 0.8rem;
  border-radius: 16px;
  min-width: 65px;
  box-shadow: 0 4px 10px rgba(251, 111, 146, 0.05);
}

.time-block span {
  font-family: var(--font-cute);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink-dark);
}

.time-block label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.colon {
  font-family: var(--font-cute);
  font-size: 1.6rem;
  color: var(--pink-soft);
  font-weight: 700;
}

/* --- polaroid slideshow --- */
.polaroid-frame {
  background: #ffffff;
  padding: 1.2rem;
  box-shadow: 0 8px 25px rgba(115, 96, 92, 0.08);
  border: 1px solid #eeeae6;
  transform: rotate(-2.5deg);
  width: 95%;
  max-width: 300px;
  border-radius: 4px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.polaroid-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fbfbfb;
  border: 1px solid #eaeaea;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  flex-direction: column;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.polaroid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  font-family: var(--font-letter);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  color: #2b1f21; /* High-contrast legible text */
  margin-top: 1rem;
  width: 100%;
  line-height: 1.3;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--pink-soft);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-normal);
}

.dot.active {
  background: var(--pink-dark);
  transform: scale(1.2);
}

/* --- music player styling --- */
.music-player {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cute);
  color: var(--pink-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Retro Cassette styling */
.cassette-container {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.cassette {
  width: 190px;
  height: 115px;
  background: var(--pink-soft);
  border: 4px solid var(--pink-dark);
  border-radius: 12px;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1), 0 5px 15px rgba(251,111,146,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.cassette::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 35px;
  right: 35px;
  height: 12px;
  background: var(--pink-dark);
  border-radius: 4px 4px 0 0;
}

.cassette-label {
  background: #fffff0;
  border: 2px solid var(--pink-dark);
  border-radius: 6px;
  height: 50px;
  padding: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.track-name {
  font-family: var(--font-cute);
  font-size: 0.8rem;
  color: var(--pink-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-name {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.cassette-wheels {
  display: flex;
  justify-content: space-around;
  margin-bottom: 12px;
  padding: 0 25px;
}

.wheel {
  width: 26px;
  height: 26px;
  background: #ffffff;
  border: 4px dashed var(--pink-dark);
  border-radius: 50%;
  animation: spin 3s linear infinite paused;
}

.music-player.playing .wheel {
  animation-play-state: running;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.track-details {
  text-align: center;
  margin: 0.5rem 0;
}

.track-details h3 {
  font-family: var(--font-cute);
  font-size: 1.1rem;
  color: var(--text-dark);
}

.track-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 2px solid var(--pink-light);
  gap: 0.8rem;
}

.control-btn {
  background: var(--pink-dark);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  color: #fff;
}

.control-btn:hover {
  background: var(--pink-deep);
  transform: scale(1.1);
}

.control-svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.progress-bar-container {
  flex-grow: 1;
  height: 8px;
  background: var(--pink-light);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--pink-dark);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.volume-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--pink-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.volume-btn:hover {
  color: var(--pink-deep);
}

.hidden {
  display: none !important;
}

/* --- envelope / love letter styling --- */
.envelope-wrapper {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 250px;
}

.envelope {
  position: relative;
  width: 220px;
  height: 140px;
  background: #ffecb3;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.envelope:hover {
  transform: scale(1.05) rotate(1deg);
}

.envelope-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #fcefb4;
  border-radius: 8px;
  border: 3px solid #ffcc80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: inset 0 0 15px rgba(255, 204, 128, 0.4);
}

.envelope-stamp {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.envelope-address {
  font-family: var(--font-cute);
  font-size: 0.9rem;
  color: #c77b00;
  text-align: center;
}

.envelope-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ffcc80;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 110px solid transparent;
  border-right: 110px solid transparent;
  border-top: 80px solid #ffa726;
  transform-origin: top;
  z-index: 3;
}

.wax-seal {
  position: absolute;
  top: 53px;
  left: 90px;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #b05c5c 0%, #7d2d2d 100%);
  border-radius: 50%;
  color: #ffdf80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 8px rgba(125,45,45,0.3), inset 0 2px 4px rgba(255,255,255,0.25);
  cursor: pointer;
  z-index: 4;
  transition: var(--transition-normal);
  border: 2px solid #e2b74c;
}

.wax-seal:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 12px rgba(125,45,45,0.4), 0 0 8px rgba(255,223,128,0.5);
}

.letter-preview-text {
  margin-top: 1rem;
  font-family: var(--font-cute);
  font-size: 0.9rem;
  color: var(--pink-dark);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* --- birthday cake block --- */
.cake-graphic-wrapper {
  position: relative;
  display: inline-block;
  margin: 1.5rem auto;
}

.cake-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}

.cake-instruction {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.candles-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.candle-flame {
  position: absolute;
  width: 8px;
  height: 16px;
  background: radial-gradient(ellipse at bottom, #ff9e00 0%, #ff5100 50%, rgba(255,81,0,0) 100%);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 0.6s infinite alternate;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.candle-flame.lit {
  opacity: 1;
  transform: scale(1);
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-1deg); }
  100% { transform: scale(0.9) rotate(2deg) translateY(-1px); }
}

.cake-controls {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
}

.mic-status {
  font-size: 0.8rem;
  color: var(--pink-dark);
  margin-top: 0.5rem;
  font-weight: 600;
  display: block;
  min-height: 18px;
}

/* --- coupons block styling --- */
.coupons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.coupon-card {
  background: linear-gradient(135deg, #fffdf8 0%, #fff6e8 100%);
  border: 3px dashed var(--pink-soft);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.coupon-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--pink-medium);
}

.coupon-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: radial-gradient(var(--pink-dark) 20%, transparent 20%);
  background-size: 15px 15px;
  pointer-events: none;
}

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

.coupon-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.coupon-card h3 {
  font-family: var(--font-cute);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.coupon-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.redeem-btn {
  background: var(--pink-dark);
  color: #fff;
  border: none;
  font-family: var(--font-cute);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.redeem-btn:hover {
  background: var(--pink-deep);
  transform: scale(1.05);
}

/* Redeemed Stamp state */
.redeemed-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg) scale(0);
  background: rgba(251, 111, 146, 0.15);
  color: var(--pink-deep);
  border: 4px solid var(--pink-deep);
  font-family: var(--font-cute);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  letter-spacing: 2px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.5), opacity 0.3s;
}

.coupon-card.redeemed {
  border-color: var(--pink-soft);
  background: #fbfbfb;
}

.coupon-card.redeemed .coupon-content {
  opacity: 0.25;
  pointer-events: none;
}

.coupon-card.redeemed .redeemed-stamp {
  transform: translate(-50%, -50%) rotate(-12deg) scale(1);
  opacity: 1;
}

/* --- custom popover / dialog overlays --- */
dialog {
  border: none;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 0;
  background: transparent;
  max-width: 90%;
  margin: auto;
}

dialog::backdrop {
  background: rgba(74, 53, 56, 0.5);
  backdrop-filter: blur(8px);
  animation: fadeInBackdrop 0.4s ease-out;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Letter dialog popup */
.letter-dialog {
  width: 580px;
  outline: none;
}

.letter-paper {
  background: #fffdf7;
  border: 8px solid var(--pink-light);
  border-radius: 24px;
  padding: 3rem 2rem;
  position: relative;
  box-shadow: inset 0 0 20px rgba(251, 111, 146, 0.05);
}

.close-letter-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--pink-dark);
  cursor: pointer;
  transition: var(--transition-normal);
  line-height: 1;
}

.close-letter-btn:hover {
  color: var(--pink-deep);
  transform: rotate(90deg);
}

.letter-header {
  margin-bottom: 2rem;
  font-family: var(--font-body);
}

.letter-date {
  display: block;
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.letter-salutation {
  font-family: var(--font-letter);
  font-size: 2rem;
  color: var(--text-dark);
}

.letter-body {
  font-family: var(--font-letter);
  font-size: 1.8rem;
  line-height: 1.6;
  color: #3b2c2e;
}

.letter-body p {
  margin-bottom: 1.5rem;
}

.letter-footer {
  margin-top: 3rem;
  font-family: var(--font-letter);
  font-size: 1.8rem;
  text-align: right;
}

.signature {
  font-size: 2.2rem;
  color: var(--pink-deep);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Coupon redeem confirmation dialog */
.redeem-dialog {
  width: 380px;
}

.modal-box {
  background: #ffffff;
  border-radius: 28px;
  border: 4px solid var(--pink-light);
  padding: 2.5rem 2rem;
  text-align: center;
}

.modal-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.modal-box h2 {
  font-family: var(--font-cute);
  color: var(--pink-dark);
  margin-bottom: 0.8rem;
}

.modal-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

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

/* --- responsive styling for layouts (CSS Grid tracks) --- */
@media (max-width: 900px) {
  .container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .header-block {
    grid-column: span 4;
  }
  
  .polaroid-block,
  .music-block,
  .letter-block,
  .cake-block,
  .gina-block,
  .greenhouse-block {
    grid-column: span 2;
  }
  
  .coupons-block {
    grid-column: span 4;
  }
  
  .coupons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 650px) {
  .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .header-block,
  .polaroid-block,
  .music-block,
  .letter-block,
  .cake-block,
  .gina-block,
  .greenhouse-block,
  .coupons-block {
    grid-column: span 1;
  }
  
  .coupons-grid {
    grid-template-columns: 1fr;
  }
  
  .main-title {
    font-size: 2.2rem;
  }
  
  .bento-card {
    padding: 1.5rem;
  }
}

/* --- Gina's Corner styling --- */
.gina-block {
  grid-column: span 3;
  background: linear-gradient(135deg, #ffffff 0%, #faf6f0 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gina-block .quote-bubble {
  background: var(--cream-bg);
  border: 2px solid var(--pink-soft);
  border-radius: 18px;
  padding: 1.2rem;
  margin: 1rem 0;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(115, 96, 92, 0.04);
}

.gina-block .quote-bubble::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 30px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: var(--pink-soft) transparent;
  display: block;
  width: 0;
}

.gina-block #gina-quote {
  font-size: 0.95rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 500;
  color: var(--text-dark);
}

.gina-block #gina-quote-btn {
  width: 100%;
}

/* --- Greenhouse block styling --- */
.greenhouse-block {
  grid-column: span 3;
  background: linear-gradient(135deg, #ffffff 0%, #f4f6f3 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.greenhouse-block .garden-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.2rem auto;
  position: relative;
  width: 150px;
}

.watering-can {
  background: none;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 1rem;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.watering-can:hover {
  transform: scale(1.1);
}

.watering-can.tilting {
  animation: tiltAndWater 1s ease;
}

@keyframes tiltAndWater {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-35deg) translateX(-5px); }
  70% { transform: rotate(-35deg) translateX(-5px); }
  100% { transform: rotate(0deg); }
}

.pot {
  width: 80px;
  height: 45px;
  background: #d4a373;
  border-radius: 0 0 16px 16px;
  position: relative;
  box-shadow: 0 4px 10px rgba(115, 96, 92, 0.1);
  margin-top: 10px;
}

.pot::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 90px;
  height: 8px;
  background: #b88756;
  border-radius: 4px;
}

.soil {
  width: 80px;
  height: 6px;
  background: #624738;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0 0 4px 4px;
}

.plant {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 0px;
  width: 4px;
  background: var(--pink-medium);
  transition: height 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plant.grow-sprout {
  height: 18px;
}

.plant.grow-stem {
  height: 38px;
}

.plant.grow-bloom {
  height: 58px;
  animation: plantSway 4s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

@keyframes plantSway {
  0% { transform: translateX(-50%) rotate(-1.5deg); }
  100% { transform: translateX(-50%) rotate(2.5deg); }
}

.stem {
  width: 4px;
  height: 100%;
  background: var(--pink-medium);
  border-radius: 2px;
}

.leaf {
  width: 14px;
  height: 8px;
  background: var(--pink-medium);
  border-radius: 10px 0;
  position: absolute;
  opacity: 0;
  transform: scale(0);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.leaf-left {
  left: -12px;
  top: 50%;
  transform-origin: right bottom;
}

.leaf-right {
  right: -12px;
  top: 30%;
  border-radius: 0 10px;
  transform-origin: left bottom;
}

.plant.grow-stem .leaf,
.plant.grow-bloom .leaf {
  opacity: 1;
  transform: scale(1);
}

/* --- Multi-Petal CSS Flower bud and bloom --- */
.flower-bud {
  position: absolute;
  top: 0px;
  width: 32px;
  height: 32px;
  transform: scale(0) rotate(0deg);
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), top 0.8s;
  z-index: 5;
}

.plant.grow-bloom .flower-bud {
  transform: scale(1) rotate(360deg);
  top: -20px;
}

.flower-center {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 12px;
  height: 12px;
  background: #ffd166; /* Vibrant yellow center */
  border-radius: 50%;
  z-index: 6;
  box-shadow: 0 2px 4px rgba(115, 96, 92, 0.15);
  animation: pulseCenter 2s ease-in-out infinite alternate;
}

@keyframes pulseCenter {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.petal {
  position: absolute;
  width: 10px;
  height: 16px;
  border-radius: 8px 8px 0 0;
  transform-origin: bottom center;
  opacity: 0.95;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  left: 11px;
  top: 0px;
}

/* Circular petal distribution */
.petal-1 { transform: rotate(0deg) translateY(-6px); background: #c77a7a; }
.petal-2 { transform: rotate(60deg) translateY(-6px); background: #b05c5c; }
.petal-3 { transform: rotate(120deg) translateY(-6px); background: #c77a7a; }
.petal-4 { transform: rotate(180deg) translateY(-6px); background: #b05c5c; }
.petal-5 { transform: rotate(240deg) translateY(-6px); background: #c77a7a; }
.petal-6 { transform: rotate(300deg) translateY(-6px); background: #b05c5c; }

.greenhouse-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.garden-message {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pink-dark);
  margin-top: 0.5rem;
  min-height: 20px;
}

/* Water droplet animation styles */
.water-drop {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #5dade2;
  border-radius: 50% 0 50% 50%;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 10;
  animation: dropFall 0.8s ease-in forwards;
}

@keyframes dropFall {
  0% {
    transform: translateY(0) rotate(-45deg) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translateY(90px) rotate(-45deg) scale(0.3);
    opacity: 0;
  }
}

/* Floating Garden Sparkles */
.garden-sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 0.8rem;
  z-index: 10;
  animation: floatSparkle 1.2s ease-out forwards;
}

@keyframes floatSparkle {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  30% {
    opacity: 1;
    transform: translate(var(--dx), var(--dy-mid)) scale(1.2);
  }
  100% {
    transform: translate(var(--dx-end), var(--dy-end)) scale(0);
    opacity: 0;
  }
}

/* --- Hogwarts Acceptance Letter Styling --- */
.letter-paper.hp-parchment {
  background: #fdf6e6; /* Warm magical parchment */
  background-image: radial-gradient(circle, rgba(253,246,230,0.3) 0%, rgba(246,235,212,0.6) 100%);
  border: 6px double #c79263; /* Antique gold double border */
  border-radius: 4px;
  color: #0b3d2c; /* Hogwarts emerald green ink */
  font-family: 'Lora', serif;
  position: relative;
  box-shadow: 0 10px 45px rgba(115, 96, 92, 0.25), inset 0 0 35px rgba(115, 80, 50, 0.15);
  padding: 2.5rem 2rem;
}

.letter-paper.hp-parchment .close-letter-btn {
  color: #802a2a; /* Crimson */
  font-size: 2rem;
  top: 8px;
  right: 14px;
  opacity: 0.7;
}

.letter-paper.hp-parchment .close-letter-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.hp-crest {
  text-align: center;
  border-bottom: 2px solid rgba(11, 61, 44, 0.12);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.hp-crest-shield {
  font-size: 3rem;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 4px 8px rgba(11, 61, 44, 0.15));
}

.hp-school-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #802a2a; /* Gryffindor red */
  text-transform: uppercase;
}

.hp-dept {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: #c79263; /* Antique gold label */
  margin-top: 0.2rem;
  font-weight: 600;
}

.letter-paper.hp-parchment .letter-header {
  font-family: 'Lora', serif;
  color: #0b3d2c;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.letter-paper.hp-parchment .letter-salutation {
  font-weight: 700;
  font-style: italic;
  font-size: 1.15rem;
  color: #0b3d2c;
}

.letter-paper.hp-parchment .letter-body p {
  font-family: 'Lora', serif;
  font-size: 0.98rem;
  color: #0b3d2c;
  line-height: 1.65;
  margin-bottom: 1.2rem;
  text-indent: 1.5rem; /* Indent paragraphs like letters */
}

.letter-paper.hp-parchment .letter-footer {
  font-family: 'Lora', serif;
  color: #0b3d2c;
  margin-top: 1.8rem;
  border-top: 1px dashed rgba(11, 61, 44, 0.12);
  padding-top: 1rem;
}

.letter-paper.hp-parchment .signature {
  font-family: var(--font-letter);
  font-size: 2rem;
  color: #802a2a;
  transform: rotate(-1.5deg);
  margin-top: 0.2rem;
  display: inline-block;
}

/* --- Golden Snitch Floating Trigger --- */
.golden-snitch {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  animation: snitchFloat 5s ease-in-out infinite;
  transition: opacity 0.5s, transform 0.3s;
}

.golden-snitch.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.golden-snitch:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.snitch-body {
  font-size: 2.2rem;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(199, 122, 122, 0.4));
}

.wing {
  width: 45px;
  height: 15px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d8e2dc;
  border-radius: 50%;
  transform-origin: center;
  z-index: 1;
}

.left-wing {
  transform: rotate(20deg) skewX(-20deg);
  animation: flapLeft 0.12s ease-in-out infinite alternate;
  margin-right: -10px;
}

.right-wing {
  transform: rotate(-20deg) skewX(20deg);
  animation: flapRight 0.12s ease-in-out infinite alternate;
  margin-left: -10px;
}

@keyframes flapLeft {
  0% { transform: rotate(28deg) scaleY(1); }
  100% { transform: rotate(-12deg) scaleY(0.35); }
}

@keyframes flapRight {
  0% { transform: rotate(-28deg) scaleY(1); }
  100% { transform: rotate(12deg) scaleY(0.35); }
}

@keyframes snitchFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
  25% { transform: translate(-50%, -50%) translateY(-22px) translateX(12px) rotate(4deg); }
  50% { transform: translate(-50%, -50%) translateY(-8px) translateX(-18px) rotate(-4deg); }
  75% { transform: translate(-50%, -50%) translateY(-30px) translateX(8px) rotate(2deg); }
}

.snitch-tap-label {
  position: absolute;
  bottom: -32px;
  font-family: var(--font-cute);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pink-deep);
  background: var(--pink-light);
  padding: 4px 12px;
  border-radius: 12px;
  border: 2px solid var(--pink-soft);
  box-shadow: 0 4px 12px rgba(115, 96, 92, 0.15);
  white-space: nowrap;
  animation: snitchTextPulse 1.2s infinite alternate;
}

@keyframes snitchTextPulse {
  0% { opacity: 0.9; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.1); box-shadow: 0 6px 16px rgba(199, 122, 122, 0.35); }
}

/* --- Proposal Dialog Styling --- */
.proposal-dialog {
  border: none;
  border-radius: 28px;
  padding: 0;
  background: var(--cream-bg);
  box-shadow: 0 20px 50px rgba(115, 96, 92, 0.25);
  max-width: 450px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  outline: none;
  z-index: 10001;
}

.proposal-dialog::backdrop {
  background: rgba(61, 49, 46, 0.6);
  backdrop-filter: blur(8px);
}

.proposal-card {
  padding: 2.5rem;
  text-align: center;
}

.proposal-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: heartbeat 1.2s infinite alternate;
}

.proposal-card h2 {
  font-family: var(--font-cute);
  color: #802a2a; /* Hogwarts crimson */
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
}

.proposal-text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.proposal-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  position: relative;
  min-height: 55px;
}

#proposal-no-btn {
  position: absolute;
  transition: left 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.1), top 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  z-index: 10;
}

/* Proposal Success screen inside modal */
.proposal-success {
  padding: 2.5rem;
  text-align: center;
  animation: scaleUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-emoji {
  font-size: 4rem;
  margin-bottom: 1.2rem;
}

.proposal-success h2 {
  font-family: var(--font-cute);
  color: #0b3d2c; /* Hogwarts emerald green */
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.proposal-success p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

@keyframes scaleUp {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}


