/* ==========================================================================
   SORRY / APOLOGY WEBSITE - COMPLETE STYLESHEET
   Aesthetic: Dark Romantic, Glassmorphism, Floating Particles, Responsive
   ========================================================================== */

/* --- CSS Variables & Theme --- */
:root {
  --bg-dark: #09030e;
  --bg-gradient: radial-gradient(circle at 50% 10%, #2b0b3b 0%, #150621 50%, #08020c 100%);
  --accent-pink: #ff4d88;
  --accent-rose: #ff758c;
  --accent-purple: #a855f7;
  --accent-gold: #ffd166;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 117, 140, 0.22);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --glass-blur: blur(14px);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive, sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0414;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--accent-pink), var(--accent-purple));
  border-radius: 4px;
}

/* --- Canvas Layers --- */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

/* --- Glassmorphism Component Style --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  position: relative;
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 117, 140, 0.4);
  box-shadow: 0 12px 40px 0 rgba(255, 77, 136, 0.15);
}

/* --- Layout & Typography --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 5;
}

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

.badge-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255, 77, 136, 0.15);
  border: 1px solid rgba(255, 77, 136, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff9ebb;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 15px rgba(255, 77, 136, 0.2);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #fed7e2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 77, 136, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 77, 136, 0.6);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   MUSIC WIDGET (Top Right)
   ========================================================================== */
.music-widget {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(20, 8, 30, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 117, 140, 0.3);
  border-radius: 50px;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.music-widget:hover {
  background: rgba(30, 12, 45, 0.85);
  border-color: rgba(255, 117, 140, 0.6);
}

.vinyl-record {
  width: 42px;
  height: 42px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2b1138 20%, #110518 45%, #220830 50%, #0d0313 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.vinyl-record.playing .vinyl-disc {
  animation: spinRecord 4s linear infinite;
}

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

.vinyl-label {
  width: 16px;
  height: 16px;
  background: var(--accent-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

/* Sound Wave Equalizer */
.equalizer-bars {
  position: absolute;
  bottom: -4px;
  right: -4px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  padding: 1px 3px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}

.equalizer-bars .bar {
  width: 2.5px;
  height: 3px;
  background: var(--accent-rose);
  border-radius: 1px;
}

.vinyl-record.playing .equalizer-bars .bar:nth-child(1) {
  animation: eqJump 0.8s ease-in-out infinite alternate;
}
.vinyl-record.playing .equalizer-bars .bar:nth-child(2) {
  animation: eqJump 1.1s ease-in-out infinite alternate 0.2s;
}
.vinyl-record.playing .equalizer-bars .bar:nth-child(3) {
  animation: eqJump 0.9s ease-in-out infinite alternate 0.4s;
}
.vinyl-record.playing .equalizer-bars .bar:nth-child(4) {
  animation: eqJump 1.2s ease-in-out infinite alternate 0.1s;
}

@keyframes eqJump {
  from { height: 3px; }
  to { height: 12px; }
}

.music-info-popup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.volume-box i {
  font-size: 0.65rem;
  color: var(--accent-rose);
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 55px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-pink);
  cursor: pointer;
}

/* ==========================================================================
   SECTION 1: INTRO SCREEN (TAP TO OPEN)
   ========================================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #1b0726 0%, #09020d 85%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
}

.intro-overlay.dismissed {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
  pointer-events: none;
}

.intro-card {
  max-width: 440px;
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 117, 140, 0.35);
  box-shadow: 0 10px 40px rgba(255, 77, 136, 0.25);
  animation: floatCard 4s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.envelope-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.envelope-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, #ff758c 0%, #ff4d88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(255, 77, 136, 0.6));
  animation: pulseIcon 2s infinite ease-in-out;
}

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

.floating-hearts-intro {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  font-size: 1.3rem;
  animation: floatEm 2.5s infinite ease-in-out alternate;
}

@keyframes floatEm {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(-6px); }
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
}

.intro-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 2rem;
}

.pulse-btn {
  animation: pulseBtn 2s infinite ease-in-out;
  padding: 1rem 2.2rem;
  font-size: 1.15rem;
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 136, 0.7); }
  50% { box-shadow: 0 0 0 18px rgba(255, 77, 136, 0); }
}

.intro-audio-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ==========================================================================
   PAGE CONTAINER & SECTION 2: HERO
   ========================================================================== */
.page-container {
  opacity: 1;
  transition: opacity 1s ease;
}

.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 3rem 0;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 77, 136, 0.18) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin: 1rem 0 1.5rem 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.highlight-name {
  background: linear-gradient(135deg, #ff758c 0%, #ff4d88 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.typewriter-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding: 1.25rem 2rem;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  border-radius: 16px;
}

.typewriter-text {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}

.cursor-blink {
  display: inline-block;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent-pink);
  margin-left: 3px;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.scroll-down-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.scroll-down-btn:hover {
  color: #fff;
}

.bounce-icon {
  font-size: 1.1rem;
  animation: bounceDown 1.8s infinite;
  color: var(--accent-rose);
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ==========================================================================
   SECTION 3: OUR MEMORIES (POLAROID CARDS & LIGHTBOX)
   ========================================================================== */
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.2rem;
  padding: 1rem 0;
}

.polaroid-card {
  background: #ffffff;
  padding: 14px 14px 24px 14px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  overflow: visible;
  color: #1e1e24;
}

/* Washi tape effect on top of polaroids */
.polaroid-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: rgba(255, 215, 0, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.polaroid-card:hover {
  transform: translateY(-8px) scale(1.04) rotate(0deg) !important;
  box-shadow: 0 18px 45px rgba(255, 77, 136, 0.35);
  z-index: 10;
}

.polaroid-img-box {
  width: 100%;
  height: 210px;
  background: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-img-box img {
  transform: scale(1.07);
}

.polaroid-content {
  padding-top: 14px;
  text-align: center;
}

.polaroid-title {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.polaroid-caption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 5px;
  line-height: 1.35;
}

.polaroid-date {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--accent-pink);
  margin-top: 8px;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 2, 12, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  max-width: 650px;
  width: 100%;
  background: rgba(26, 11, 38, 0.95);
  border: 1px solid rgba(255, 117, 140, 0.4);
  padding: 1.5rem;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--accent-pink);
}

.lightbox-img-wrapper {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
}

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

.lightbox-details h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.lightbox-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.lightbox-details span {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent-rose);
  font-weight: 600;
}

/* ==========================================================================
   SECTION 4: APOLOGY LETTER (LINE BY LINE REVEAL)
   ========================================================================== */
.letter-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 117, 140, 0.28);
  position: relative;
  background: rgba(25, 10, 35, 0.65);
}

.letter-stamp {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
}

.stamp-seal {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 2px dashed rgba(255, 77, 136, 0.5);
  border-radius: 8px;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--accent-rose);
  transform: rotate(8deg);
}

.letter-body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.letter-line {
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.letter-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

.letter-line.salutation {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.letter-signature {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  text-align: right;
}

.sig-closing {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.sig-name {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--accent-pink);
  font-weight: 700;
}

/* ==========================================================================
   SECTION 5: PROMISE CARDS (3D FLIP INTERACTION)
   ========================================================================== */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}

.promise-card-wrapper {
  perspective: 1000px;
  min-height: 320px;
}

.promise-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 20px;
  cursor: pointer;
}

.promise-card-wrapper:hover .promise-card-inner,
.promise-card-wrapper.flipped .promise-card-inner {
  transform: rotateY(180deg);
}

.promise-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promise-front {
  background: rgba(30, 12, 42, 0.65);
  border: 1px solid rgba(255, 117, 140, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.promise-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-pink);
  letter-spacing: 1px;
}

.promise-icon-box {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: rgba(255, 77, 136, 0.15);
  border: 1px solid rgba(255, 77, 136, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-rose);
  margin: 1.2rem 0;
  box-shadow: 0 0 20px rgba(255, 77, 136, 0.2);
}

.promise-front h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.promise-front p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.promise-hint {
  font-size: 0.78rem;
  color: var(--accent-rose);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.promise-back {
  background: linear-gradient(135deg, rgba(46, 14, 62, 0.95) 0%, rgba(24, 7, 34, 0.98) 100%);
  border: 1px solid rgba(255, 77, 136, 0.5);
  transform: rotateY(180deg);
  box-shadow: 0 12px 35px rgba(255, 77, 136, 0.25);
}

.promise-back h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--accent-pink);
  margin-bottom: 0.75rem;
}

.promise-back p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.promise-back-footer {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--accent-gold);
}

/* ==========================================================================
   SECTION 6: LIVE COUNTER
   ========================================================================== */
.counter-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  border-radius: 24px;
}

.clock-icon-wrapper {
  font-size: 2.4rem;
  color: var(--accent-pink);
  margin-bottom: 1rem;
}

.counter-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
}

.timer-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.timer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 117, 140, 0.3);
  border-radius: 16px;
  min-width: 90px;
  padding: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.timer-num {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #ff9ebb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.timer-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-pink);
  animation: blinkSep 1s infinite;
}

@keyframes blinkSep {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.counter-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================================================
   SECTION 7: FINAL QUESTION & RUNAWAY BUTTON
   ========================================================================== */
.question-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 117, 140, 0.35);
  box-shadow: 0 15px 50px rgba(255, 77, 136, 0.15);
  overflow: visible;
}

.pleading-emoji-wrapper {
  margin-bottom: 1.2rem;
}

.pleading-emoji {
  font-size: 3.8rem;
  display: inline-block;
  animation: wobbleEmoji 2.5s infinite ease-in-out;
}

@keyframes wobbleEmoji {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

.question-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.question-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.runaway-toast {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 77, 136, 0.2);
  border: 1px solid rgba(255, 77, 136, 0.5);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.runaway-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.interactive-btn-arena {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.btn-yes {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 1.2rem;
  padding: 1rem 2.2rem;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  z-index: 10;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

.btn-no {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f1f5f9;
  font-size: 1.1rem;
  padding: 0.9rem 2rem;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  user-select: none;
  touch-action: none;
}

.arena-hint {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ==========================================================================
   SECTION 8: CELEBRATION MODAL (ON "HAAN")
   ========================================================================== */
.celebration-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 3, 15, 0.9);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.celebration-modal.active {
  opacity: 1;
  visibility: visible;
}

.celebration-content {
  max-width: 540px;
  width: 100%;
  padding: 3.5rem 2.5rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 117, 140, 0.5);
  box-shadow: 0 20px 60px rgba(255, 77, 136, 0.3);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celebration-modal.active .celebration-content {
  transform: scale(1);
}

.celebration-emojis {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: pulseIcon 1.5s infinite alternate;
}

.celebration-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.celebration-msg {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.celebration-treat-box {
  background: rgba(255, 77, 136, 0.15);
  border: 1px dashed rgba(255, 77, 136, 0.4);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.celebration-treat-box i {
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.celebration-treat-box p {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-name {
  color: var(--accent-rose);
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST POLISH)
   ========================================================================== */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
  
  .hero-section {
    min-height: 85vh;
    padding-top: 5rem;
  }
  
  .letter-card {
    padding: 2.5rem 1.5rem;
  }
  
  .letter-stamp {
    position: static;
    margin-bottom: 1.5rem;
    text-align: right;
  }
  
  .timer-display {
    gap: 0.5rem;
  }
  
  .timer-box {
    min-width: 70px;
    padding: 0.9rem 0.5rem;
  }
  
  .timer-num {
    font-size: 1.8rem;
  }
  
  .interactive-btn-arena {
    flex-direction: column;
    min-height: 180px;
    gap: 1.2rem;
  }
  
  .btn-no {
    width: 100%;
    max-width: 240px;
  }
  
  .music-widget {
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.6rem 0.3rem 0.3rem;
  }
  
  .music-info-popup {
    display: none; /* Keep widget minimal on mobile */
  }
  
  .memories-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}
