/* ============================================
   Sushmita's Birthday Website — Style System
   🌻 Sunflower + Blue Theme 🌻
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  /* Sunflower tones */
  --sunflower: #f4c430;
  --golden-amber: #e8a317;
  --warm-gold: #d4a017;
  --soft-yellow: #fff3b0;
  --petal-orange: #e8890c;

  /* Blue tones */
  --royal-blue: #2b5ea7;
  --sky-blue: #5b9bd5;
  --deep-navy: #0a1628;
  --midnight-blue: #0d1f3c;
  --steel-blue: #3a6fa5;
  --soft-blue: #8ab4e8;
  --ice-blue: #c5ddf0;

  /* Neutrals */
  --cream: #fef9e7;
  --warm-white: #fdf6e3;
  --white-alpha-10: rgba(255, 255, 255, 0.1);
  --white-alpha-20: rgba(255, 255, 255, 0.2);
  --white-alpha-60: rgba(255, 255, 255, 0.6);
  --white-alpha-80: rgba(255, 255, 255, 0.8);
  --white-alpha-90: rgba(255, 255, 255, 0.9);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-handwriting: 'Dancing Script', cursive;

  --glow-blue: 0 0 30px rgba(43, 94, 167, 0.4);
  --glow-sunflower: 0 0 30px rgba(244, 196, 48, 0.35);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--deep-navy);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--deep-navy);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--sunflower), var(--royal-blue));
  border-radius: 4px;
}

/* --- Floating Particles Container --- */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  opacity: 0;
  animation: floatUp linear forwards;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.5);
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(360deg) scale(1);
  }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.95), transparent);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.nav a {
  color: var(--white-alpha-60);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  font-family: var(--font-body);
}

.nav a:hover,
.nav a.active {
  color: var(--sunflower);
  text-shadow: 0 0 20px rgba(244, 196, 48, 0.5);
}

/* --- Sections (common) --- */
section {
  position: relative;
  min-height: 100vh;
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--sunflower), var(--soft-yellow), var(--golden-amber));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

.section-subtitle {
  font-family: var(--font-handwriting);
  font-size: 1.3rem;
  color: var(--soft-blue);
  text-align: center;
  margin-bottom: 3rem;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Section 1: HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at center bottom, var(--midnight-blue) 0%, var(--deep-navy) 70%);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(244, 196, 48, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(43, 94, 167, 0.08) 0%, transparent 50%);
  animation: auraPulse 8s ease-in-out infinite;
}

@keyframes auraPulse {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

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

.hero-greeting {
  font-family: var(--font-handwriting);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--soft-blue);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInDown 1s 0.5s ease forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--sunflower), var(--golden-amber), var(--soft-yellow), var(--sunflower));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-typewriter {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--white-alpha-80);
  min-height: 2rem;
}

.hero-typewriter .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--sunflower);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.hero-hearts {
  margin-top: 2rem;
  font-size: 2rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.15);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.1);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s 2s ease forwards;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-alpha-60);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--sunflower);
  border-bottom: 2px solid var(--sunflower);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }

  50% {
    transform: rotate(45deg) translateY(8px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Section 2: LOVE STORY TIMELINE
   ============================================ */
.timeline-section {
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--midnight-blue) 50%, var(--deep-navy) 100%);
}

.timeline {
  position: relative;
  max-width: 800px;
  width: 100%;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--sunflower), var(--sky-blue), var(--sunflower), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(43, 94, 167, 0.15), rgba(13, 31, 60, 0.8));
  border: 1px solid var(--white-alpha-10);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow-blue);
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
}

.timeline-item:nth-child(even) {
  margin-left: 55%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--sunflower);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(244, 196, 48, 0.6);
  z-index: 2;
}

.timeline-item:nth-child(odd)::before {
  right: -8%;
  transform: translate(50%, -50%);
}

.timeline-item:nth-child(even)::before {
  left: -8%;
  transform: translate(-50%, -50%);
}

.timeline-date {
  font-family: var(--font-handwriting);
  font-size: 1.1rem;
  color: var(--sunflower);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--soft-yellow);
  margin-bottom: 0.5rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--white-alpha-80);
  line-height: 1.6;
}

/* ============================================
   Section 3: POETRY GALLERY — Ancient Scrolls
   ============================================ */
.poetry-section {
  background: linear-gradient(180deg, var(--deep-navy) 0%, rgba(43, 94, 167, 0.12) 50%, var(--deep-navy) 100%);
  min-height: 100vh;
}

.poems-scroll-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 2rem 1rem 2rem;
  max-width: 100%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sunflower) transparent;
}

.poems-scroll-row::-webkit-scrollbar {
  height: 6px;
}

.poems-scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

.poems-scroll-row::-webkit-scrollbar-thumb {
  background: var(--sunflower);
  border-radius: 3px;
}

.scroll-tile {
  flex: 0 0 220px;
  height: 290px;
  cursor: pointer;
  scroll-snap-align: center;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.scroll-tile:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 12px 40px rgba(244, 196, 48, 0.35), var(--glow-sunflower);
  filter: brightness(1.05);
}

.scroll-tile-inner {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 248, 220, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 105, 20, 0.15) 0%, transparent 50%),
    linear-gradient(170deg, #d4a574 0%, #c49562 20%, #b8874f 40%, #c49562 60%, #d4a574 80%, #c8985a 100%);
  border-radius: 12px;
  border: 2px solid rgba(180, 130, 70, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(139, 105, 20, 0.15);
}

/* Aged paper lines */
.scroll-tile-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.025) 3px, rgba(0, 0, 0, 0.025) 4px),
    radial-gradient(ellipse at center, transparent 40%, rgba(139, 105, 20, 0.1) 100%);
  pointer-events: none;
}

/* Top scroll roll */
.scroll-tile-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(to bottom, #7a5c12, #8b6914, #a67c2e, #c49562);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.scroll-roll-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(to top, #7a5c12, #8b6914, #a67c2e, #c49562);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.35);
}

/* Wax seal decoration */
.scroll-wax-seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4443b, #b22e28 40%, #8c1f1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 200, 200, 0.2);
  position: absolute;
  bottom: 35px;
  right: 18px;
  z-index: 5;
  transition: transform 0.3s ease;
}

.scroll-tile:hover .scroll-wax-seal {
  transform: scale(1.1) rotate(5deg);
}

/* Corner flourishes */
.scroll-corner-tl,
.scroll-corner-br {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0.25;
  z-index: 4;
  pointer-events: none;
}

.scroll-corner-tl {
  top: 28px;
  left: 10px;
  border-top: 2px solid #5a3e10;
  border-left: 2px solid #5a3e10;
  border-radius: 4px 0 0 0;
}

.scroll-corner-br {
  bottom: 28px;
  right: 10px;
  border-bottom: 2px solid #5a3e10;
  border-right: 2px solid #5a3e10;
  border-radius: 0 0 4px 0;
}

/* Shimmer on hover */
.scroll-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.6s ease;
  z-index: 10;
  pointer-events: none;
}

.scroll-tile:hover::after {
  left: 140%;
}

.scroll-tile-icon {
  font-size: 2.8rem;
  margin-bottom: 0.6rem;
  margin-top: 1rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  z-index: 3;
}

.scroll-tile-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: #3a2a10;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  z-index: 3;
}

.scroll-tile-hint {
  font-size: 0.6rem;
  color: rgba(58, 42, 16, 0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.6rem;
  z-index: 3;
}

/* Scroll Overlay (opened scroll) */
.scroll-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.scroll-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.scroll-paper {
  width: 90%;
  max-width: 550px;
  max-height: 80vh;
  background: linear-gradient(170deg, #d4a574 0%, #c49562 30%, #b8874f 50%, #c49562 70%, #d4a574 100%);
  border-radius: 8px;
  border: 2px solid rgba(180, 130, 70, 0.5);
  position: relative;
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-overlay.active .scroll-paper {
  transform: scaleY(1);
}

.scroll-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to bottom, #6d5010, #8b6914, #a67c2e, #c49562);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.scroll-paper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(to top, #6d5010, #8b6914, #a67c2e, #c49562);
  z-index: 2;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

.scroll-paper-inner {
  padding: 3rem 2.5rem;
  overflow-y: auto;
  max-height: 80vh;
  background: repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(0, 0, 0, 0.04) 28px, rgba(0, 0, 0, 0.04) 29px);
}

.scroll-paper-inner .poem-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: #3a2a10;
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scroll-paper-inner .poem-body {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: #4a3520;
  line-height: 2;
  text-align: center;
  white-space: pre-line;
}

.scroll-paper-inner .poem-line {
  display: block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-overlay.active .poem-line {
  opacity: 1;
  transform: translateY(0);
}

.scroll-close-btn {
  position: absolute;
  top: 2rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 22, 40, 0.7);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  transition: background 0.3s;
}

.scroll-close-btn:hover {
  background: var(--royal-blue);
}

/* ============================================
   Section 4: LOVE LETTERS — Envelopes
   ============================================ */
.letters-section {
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--midnight-blue) 50%, var(--deep-navy) 100%);
  min-height: 100vh;
}

.letters-scroll-row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 2rem 1rem 2rem;
  max-width: 100%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sky-blue) transparent;
}

.letters-scroll-row::-webkit-scrollbar {
  height: 6px;
}

.letters-scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

.letters-scroll-row::-webkit-scrollbar-thumb {
  background: var(--sky-blue);
  border-radius: 3px;
}

.envelope-tile {
  flex: 0 0 220px;
  height: 180px;
  cursor: pointer;
  scroll-snap-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.envelope-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-blue);
}

.envelope-body {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2a4a7f, #1e3a6b);
  border-radius: 12px;
  border: 1px solid rgba(91, 155, 213, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.envelope-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-left: 110px solid transparent;
  border-right: 110px solid transparent;
  border-top: 65px solid #1c3260;
  z-index: 2;
}

.envelope-seal {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sunflower), var(--golden-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(244, 196, 48, 0.4);
  margin-top: 1rem;
}

.envelope-tile-label {
  font-family: var(--font-handwriting);
  font-size: 1rem;
  color: var(--ice-blue);
  z-index: 3;
  text-align: center;
  padding: 0 1rem;
  margin-top: 0.3rem;
}

.envelope-tile-hint {
  font-size: 0.6rem;
  color: rgba(197, 221, 240, 0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 3;
}

/* Letter Overlay */
.letter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.letter-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.letter-envelope-container {
  position: relative;
  width: 90%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.letter-envelope-bg {
  width: 100%;
  height: 180px;
  background: linear-gradient(145deg, #2a4a7f, #1e3a6b);
  border-radius: 16px;
  border: 1px solid rgba(91, 155, 213, 0.3);
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.letter-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  border-left: 240px solid transparent;
  border-right: 240px solid transparent;
  border-top: 100px solid #1c3260;
  transform-origin: top center;
  transition: transform 0.5s ease;
  z-index: 1;
}

.letter-overlay.active .letter-flap {
  transform: rotateX(180deg);
}

.letter-paper {
  width: 88%;
  background: linear-gradient(to bottom, var(--cream), #f5edd6);
  border-radius: 4px 4px 12px 12px;
  padding: 2rem 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s,
    opacity 0.5s ease 0.3s;
  max-height: 55vh;
  overflow-y: auto;
  margin-top: -20px;
  opacity: 0;
  transform: translateY(40px);
}

.letter-overlay.active .letter-paper {
  opacity: 1;
  transform: translateY(-10px);
}

.letter-paper .letter-content {
  font-family: var(--font-handwriting);
  font-size: 1.05rem;
  color: #3a2a10;
  line-height: 1.9;
}

.letter-paper .letter-greeting {
  font-size: 1.3rem;
  color: var(--royal-blue);
  margin-bottom: 1rem;
  display: block;
  font-weight: 600;
}

.letter-paper .letter-sign {
  display: block;
  margin-top: 1.5rem;
  color: var(--golden-amber);
  font-size: 1.2rem;
}

.letter-close-btn {
  position: absolute;
  top: 2rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 22, 40, 0.7);
  color: var(--cream);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  transition: background 0.3s;
}

.letter-close-btn:hover {
  background: var(--royal-blue);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}





/* ============================================
   Section 5: SONGS FOR YOU — Premium Player
   ============================================ */
.songs-section {
  background: linear-gradient(180deg, #06101e 0%, #0a1628 40%, #061322 100%);
  overflow: hidden;
}

/* ---- NOW PLAYING PANEL ---- */
.now-playing-panel {
  width: 100%;
  max-width: 860px;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(20, 40, 80, 0.9) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid rgba(91, 155, 213, 0.2);
  border-radius: 28px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(244, 196, 48, 0.05);
  position: relative;
  overflow: hidden;
}

.now-playing-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Art zone */
.np-art-zone {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vinyl disc */
.np-vinyl {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, #1a1a2e 0deg, #12122b 10deg, #0f0f26 20deg),
    radial-gradient(circle at center, #222244 30%, #111133 60%, #0a0a22 100%);
  border: 3px solid #333;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05), 0 8px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: animation-play-state 0.3s;
  z-index: 2;
}

.now-playing-panel.playing .np-vinyl {
  animation: spinVinyl 4s linear infinite;
}

@keyframes spinVinyl {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.np-vinyl-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a4a7f, #1e3a6b 50%, #0d1f3c 100%);
  border: 2px solid rgba(91, 155, 213, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.np-vinyl-label {
  font-size: 1.6rem;
  line-height: 1;
}

/* Orbit rings */
.np-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0;
  transition: opacity 0.5s;
}

.now-playing-panel.playing .np-ring {
  opacity: 1;
}

.np-ring-1 {
  width: 190px;
  height: 190px;
  border-color: rgba(244, 196, 48, 0.15);
  animation: ringPulse 2s ease-in-out infinite;
}

.np-ring-2 {
  width: 220px;
  height: 220px;
  border-color: rgba(91, 155, 213, 0.1);
  animation: ringPulse 2s ease-in-out infinite 0.5s;
}

@keyframes ringPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.8;
  }
}

/* Visualizer */
.np-visualizer {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  opacity: 0;
  transition: opacity 0.4s;
}

.now-playing-panel.playing .np-visualizer {
  opacity: 1;
}

.npv-bar {
  width: 4px;
  height: 6px;
  background: linear-gradient(to top, var(--royal-blue), var(--sunflower));
  border-radius: 2px;
}

.now-playing-panel.playing .npv-bar {
  animation: npvAnim 0.7s ease-in-out infinite alternate;
}

.npv-bar:nth-child(1) {
  animation-delay: 0.00s;
}

.npv-bar:nth-child(2) {
  animation-delay: 0.07s;
}

.npv-bar:nth-child(3) {
  animation-delay: 0.14s;
}

.npv-bar:nth-child(4) {
  animation-delay: 0.21s;
}

.npv-bar:nth-child(5) {
  animation-delay: 0.28s;
}

.npv-bar:nth-child(6) {
  animation-delay: 0.05s;
}

.npv-bar:nth-child(7) {
  animation-delay: 0.12s;
}

.npv-bar:nth-child(8) {
  animation-delay: 0.19s;
}

.npv-bar:nth-child(9) {
  animation-delay: 0.26s;
}

.npv-bar:nth-child(10) {
  animation-delay: 0.03s;
}

.npv-bar:nth-child(11) {
  animation-delay: 0.10s;
}

.npv-bar:nth-child(12) {
  animation-delay: 0.17s;
}

.npv-bar:nth-child(13) {
  animation-delay: 0.24s;
}

.npv-bar:nth-child(14) {
  animation-delay: 0.01s;
}

.npv-bar:nth-child(15) {
  animation-delay: 0.08s;
}

.npv-bar:nth-child(16) {
  animation-delay: 0.15s;
}

.npv-bar:nth-child(17) {
  animation-delay: 0.22s;
}

.npv-bar:nth-child(18) {
  animation-delay: 0.29s;
}

@keyframes npvAnim {
  0% {
    height: 4px;
  }

  100% {
    height: 34px;
  }
}

/* ---- Controls side ---- */
.np-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.np-song-number {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--sunflower);
  text-transform: uppercase;
  opacity: 0.7;
}

.np-song-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin: 0;
}

.np-song-desc {
  font-size: 0.85rem;
  color: var(--white-alpha-60);
  font-style: italic;
  margin: 0;
}

/* Lyrics 3-line display */
.np-lyrics {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 4.5rem;
  justify-content: center;
}

.np-lyric-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  transition: color 0.4s ease, transform 0.4s ease, font-size 0.4s ease;
  margin: 0;
  padding: 2px 0;
}

.np-lyric-line.np-lyric-active {
  color: var(--soft-yellow);
  font-size: 1rem;
  transform: scale(1.03);
}

/* Seek bar */
.np-seek-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.np-time {
  font-size: 0.75rem;
  color: var(--white-alpha-60);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}

.np-seek-bar {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.np-seek-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  overflow: visible;
  transition: height 0.2s;
}

.np-seek-bar:hover .np-seek-track {
  height: 8px;
}

.np-seek-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--royal-blue), var(--sunflower));
  border-radius: 4px;
  transition: width 0.2s linear;
  position: relative;
}

.np-seek-thumb {
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sunflower);
  box-shadow: 0 0 8px rgba(244, 196, 48, 0.6);
  transition: transform 0.2s ease;
}

.np-seek-bar:hover .np-seek-thumb {
  transform: translateY(-50%) scale(1);
}

/* Play controls */
.np-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.np-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sunflower), var(--golden-amber));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(244, 196, 48, 0.4);
}

.np-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(244, 196, 48, 0.6);
}

.np-play-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--deep-navy);
}

.np-skip-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.np-skip-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.np-skip-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--white-alpha-80);
}

/* ---- HORIZONTAL SCROLL ROW ---- */
.songs-scroll-row {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 1.5rem;
  width: 100%;
  max-width: 860px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 196, 48, 0.3) transparent;
}

.songs-scroll-row::-webkit-scrollbar {
  height: 5px;
}

.songs-scroll-row::-webkit-scrollbar-thumb {
  background: rgba(244, 196, 48, 0.3);
  border-radius: 3px;
}

/* ---- SONG CARDS ---- */
.song-card {
  flex: 0 0 260px;
  background: linear-gradient(145deg, rgba(30, 55, 100, 0.6), rgba(10, 22, 40, 0.85));
  border: 1px solid rgba(91, 155, 213, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  cursor: pointer;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.song-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.song-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), var(--glow-blue);
  border-color: rgba(91, 155, 213, 0.4);
}

.song-card.active-card {
  border-color: var(--sunflower);
  box-shadow: 0 0 0 2px rgba(244, 196, 48, 0.3), 0 8px 30px rgba(0, 0, 0, 0.4);
  background: linear-gradient(145deg, rgba(50, 80, 140, 0.7), rgba(20, 40, 70, 0.9));
}

.sc-number {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--sunflower);
  opacity: 0.6;
}

.sc-vinyl-mini {
  font-size: 2rem;
  line-height: 1;
  margin: 0.2rem 0;
}

.sc-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.sc-info p {
  font-size: 0.78rem;
  color: var(--white-alpha-60);
  font-style: italic;
}

/* Mini waveform on card */
.sc-waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  margin-top: 0.3rem;
}

.sc-waveform .wave-bar {
  width: 3px;
  background: linear-gradient(to top, var(--royal-blue), var(--sunflower));
  border-radius: 2px;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.song-card.active-card .sc-waveform .wave-bar {
  opacity: 1;
  animation: waveAnim 0.6s ease-in-out infinite alternate;
}

.sc-duration {
  font-size: 0.72rem;
  color: var(--white-alpha-60);
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}

.sc-lyrics {
  display: none;
}

@keyframes waveAnim {
  0% {
    height: 5px;
  }

  100% {
    height: 28px;
  }
}

/* Keep wave-bar nth-child delays from existing styles */



/* ============================================
   Section 6: REASONS I LOVE YOU
   ============================================ */
.reasons-section {
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--midnight-blue) 50%, var(--deep-navy) 100%);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  width: 100%;
}

.reason-card {
  background: linear-gradient(145deg, rgba(43, 94, 167, 0.12), rgba(13, 31, 60, 0.6));
  border: 1px solid var(--white-alpha-10);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.reason-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--glow-sunflower);
  border-color: var(--sunflower);
}

.reason-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.reason-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--sunflower);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.reason-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--white-alpha-80);
  line-height: 1.6;
}

/* ============================================
   Section 7: PHOTO GALLERY
   ============================================ */
.gallery-section {
  background: linear-gradient(180deg, var(--deep-navy) 0%, rgba(43, 94, 167, 0.08) 50%, var(--deep-navy) 100%);
}

.gallery-grid {
  columns: 3;
  column-gap: 0.8rem;
  max-width: 1000px;
  width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--white-alpha-10);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  break-inside: avoid;
  margin-bottom: 0.8rem;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 40px rgba(43, 94, 167, 0.4), var(--glow-blue);
  border-color: rgba(91, 155, 213, 0.4);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(10, 22, 40, 0.92));
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay p {
  font-family: var(--font-handwriting);
  font-size: 1rem;
  color: var(--soft-yellow);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--white-alpha-20);
  background: var(--white-alpha-10);
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: var(--royal-blue);
}

/* ============================================
   Section 8: BIRTHDAY WISHES
   ============================================ */
.wishes-section {
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--midnight-blue) 50%, var(--deep-navy) 100%);
}

.wish-card {
  max-width: 650px;
  width: 100%;
  padding: 3rem;
  background: linear-gradient(145deg, rgba(43, 94, 167, 0.15), rgba(244, 196, 48, 0.04));
  border: 1px solid rgba(244, 196, 48, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(43, 94, 167, 0.1);
}

.wish-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--sunflower), transparent, var(--royal-blue), transparent, var(--sunflower));
  background-size: 400% 400%;
  z-index: -1;
  animation: borderGlow 6s linear infinite;
  opacity: 0.5;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.wish-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--soft-yellow);
  margin-bottom: 1.5rem;
}

.wish-card p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--white-alpha-80);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.wish-card .wish-sign {
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  color: var(--sunflower);
  margin-top: 2rem;
}

/* ============================================
   Section 9: MAKE A WISH (Candles)
   ============================================ */
.candle-section {
  background: radial-gradient(ellipse at center bottom, var(--midnight-blue) 0%, var(--deep-navy) 70%);
}

.cake-container {
  text-align: center;
  position: relative;
}

.candles-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.candle:hover {
  transform: scale(1.1);
}

.candle-flame {
  width: 14px;
  height: 24px;
  background: radial-gradient(ellipse, #ffe066, #ff9800, #ff5722);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  margin-bottom: 4px;
  animation: flicker 0.3s ease-in-out infinite alternate;
  transition: opacity 0.5s, transform 0.5s;
  box-shadow: 0 0 15px #ff9800, 0 0 30px rgba(255, 152, 0, 0.3);
}

.candle.blown .candle-flame {
  opacity: 0;
  transform: scale(0) translateY(-10px);
}

.candle-stick {
  width: 8px;
  height: 50px;
  background: linear-gradient(to bottom, var(--sky-blue), var(--royal-blue));
  border-radius: 2px;
}

@keyframes flicker {
  0% {
    transform: scaleY(1) scaleX(1) rotate(-2deg);
  }

  100% {
    transform: scaleY(1.1) scaleX(0.9) rotate(2deg);
  }
}

.cake-body {
  font-size: 5rem;
  margin: 1rem 0;
}

.cake-message {
  font-family: var(--font-handwriting);
  font-size: 1.5rem;
  color: var(--sunflower);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  margin-top: 1rem;
}

.cake-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.candle-instruction {
  font-size: 0.85rem;
  color: var(--white-alpha-60);
  margin-top: 1rem;
  letter-spacing: 1px;
}

/* ============================================
   Section 10: FOOTER
   ============================================ */
.site-footer {
  min-height: auto;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(to top, rgba(43, 94, 167, 0.15), var(--deep-navy));
}

.footer-heart {
  font-size: 2rem;
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
  margin: 0 0.3rem;
}

.site-footer p {
  font-family: var(--font-handwriting);
  font-size: 1.2rem;
  color: var(--white-alpha-60);
}

.footer-year {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--white-alpha-60);
  margin-top: 0.5rem;
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .nav a {
    font-size: 0.65rem;
  }

  section {
    padding: 4rem 1.2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }

  .timeline-item::before {
    left: -40px !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
  }

  .letters-container {
    grid-template-columns: 1fr;
  }

  .reasons-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 1;
  }

  .candles-row {
    gap: 0.8rem;
  }
}

/* ============================================
   Now Playing Panel — Mobile Responsive
   ============================================ */
@media (max-width: 700px) {
  .now-playing-panel {
    flex-direction: column;
    padding: 1.8rem 1.2rem;
    gap: 1.5rem;
  }

  .np-art-zone {
    width: 150px;
    height: 150px;
  }

  .np-vinyl {
    width: 120px;
    height: 120px;
  }

  .np-ring-1 {
    width: 145px;
    height: 145px;
  }

  .np-ring-2 {
    width: 170px;
    height: 170px;
  }

  .np-song-title {
    font-size: 1.2rem;
  }

  .np-lyrics {
    min-height: 3.5rem;
  }

  .songs-scroll-row {
    padding: 0.8rem 0.3rem 1.2rem;
  }

  .song-card {
    flex: 0 0 200px;
  }
}

/* sc-waveform bar delays */
.sc-waveform .wave-bar:nth-child(1) {
  animation-delay: 0.00s;
}

.sc-waveform .wave-bar:nth-child(2) {
  animation-delay: 0.08s;
}

.sc-waveform .wave-bar:nth-child(3) {
  animation-delay: 0.16s;
}

.sc-waveform .wave-bar:nth-child(4) {
  animation-delay: 0.04s;
}

.sc-waveform .wave-bar:nth-child(5) {
  animation-delay: 0.12s;
}

.sc-waveform .wave-bar:nth-child(6) {
  animation-delay: 0.20s;
}

.sc-waveform .wave-bar:nth-child(7) {
  animation-delay: 0.06s;
}

.sc-waveform .wave-bar:nth-child(8) {
  animation-delay: 0.14s;
}

/* ============================================
   CROSSWORD OVERLAY
   ============================================ */
.cw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 30, 0.96);
  backdrop-filter: blur(16px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 1rem;
  --cw-cell-size: 32px;
}

.cw-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cw-modal {
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  background: linear-gradient(145deg, rgba(15, 30, 60, 0.98), rgba(8, 18, 38, 0.99));
  border: 1px solid rgba(91, 155, 213, 0.25);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.cw-header {
  padding: 1.4rem 2rem 1rem;
  background: linear-gradient(135deg, rgba(30, 60, 110, 0.8), rgba(10, 22, 40, 0.9));
  border-bottom: 1px solid rgba(91, 155, 213, 0.15);
  text-align: center;
}

.cw-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.cw-star {
  font-size: 1.2rem;
  animation: cwStarPop 1.5s ease-in-out infinite alternate;
}

.cw-star:last-child {
  animation-delay: 0.5s;
}

@keyframes cwStarPop {
  0% {
    transform: scale(1)
  }

  100% {
    transform: scale(1.3) rotate(20deg)
  }
}

.cw-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sunflower), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.cw-subtitle {
  font-size: 0.85rem;
  color: var(--white-alpha-60);
  font-style: italic;
  margin: 0.4rem 0 0.8rem;
}

.cw-progress-bar {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 0.3rem;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.cw-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--royal-blue), var(--sunflower));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.cw-progress-text {
  font-size: 0.75rem;
  color: var(--sunflower);
  letter-spacing: 1px;
}

.cw-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 0;
}

.cw-grid-wrap {
  flex: 0 0 auto;
  padding: 1.2rem;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cw-grid {
  display: grid;
  gap: 2px;
  user-select: none;
}

.cw-cell {
  width: var(--cw-cell-size, 32px);
  height: var(--cw-cell-size, 32px);
  position: relative;
}

.cw-cell.black {
  background: #0a1020;
  border-radius: 2px;
}

.cw-cell.white {
  background: rgba(240, 235, 220, 0.95);
  border: 1px solid rgba(180, 160, 120, 0.4);
  border-radius: 2px;
  cursor: text;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.cw-cell.white:hover {
  background: rgba(255, 248, 200, 0.98);
}

.cw-cell.active-cell {
  background: rgba(91, 155, 213, 0.35) !important;
  outline: 2px solid var(--royal-blue);
}

.cw-cell.word-active {
  background: rgba(244, 196, 48, 0.2) !important;
}

.cw-cell.found {
  background: rgba(100, 200, 100, 0.25) !important;
  border-color: rgba(100, 200, 100, 0.5);
}

.cw-cell-num {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 7px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1;
  pointer-events: none;
}

.cw-cell-letter {
  font-size: 14px;
  font-weight: 700;
  color: #1a1000;
  text-transform: uppercase;
  pointer-events: none;
}

.cw-cell-input {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 700;
  color: #1a1000;
  text-align: center;
  text-transform: uppercase;
  cursor: text;
  width: 100%;
  height: 100%;
  caret-color: transparent;
  padding: 0;
}

.cw-clues {
  flex: 1;
  padding: 1rem 1.2rem;
  overflow-y: auto;
  display: flex;
  gap: 1.5rem;
  border-left: 1px solid rgba(91, 155, 213, 0.1);
}

.cw-clues-col {
  flex: 1;
}

.cw-clues-col h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--sunflower);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
  border-bottom: 1px solid rgba(244, 196, 48, 0.2);
  padding-bottom: 0.4rem;
}

.cw-clue-item {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.cw-clue-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cw-clue-item.active-clue {
  background: rgba(91, 155, 213, 0.15);
}

.cw-clue-item.found-clue {
  opacity: 0.45;
  text-decoration: line-through;
}

.cw-clue-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sunflower);
  min-width: 28px;
  padding-top: 1px;
}

.cw-clue-text {
  font-size: 0.8rem;
  color: var(--white-alpha-80);
  line-height: 1.4;
}

/* Crossword mobile responsive */
@media (max-width: 768px) {
  .cw-overlay {
    --cw-cell-size: 26px;
    padding: 0.5rem;
  }

  .cw-modal {
    max-height: 98vh;
    border-radius: 16px;
  }

  .cw-header {
    padding: 1rem 1.2rem 0.8rem;
  }

  .cw-title {
    font-size: 1.2rem;
  }

  .cw-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .cw-grid-wrap {
    padding: 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .cw-clues {
    border-left: none;
    border-top: 1px solid rgba(91, 155, 213, 0.1);
    padding: 0.8rem;
    max-height: 35vh;
    overflow-y: auto;
  }

  .cw-cell-input {
    font-size: 12px;
  }

  .cw-cell-letter {
    font-size: 12px;
  }

  .cw-cell-num {
    font-size: 6px;
  }
}

@media (max-width: 480px) {
  .cw-overlay {
    --cw-cell-size: 22px;
    padding: 0.25rem;
  }

  .cw-modal {
    border-radius: 12px;
  }

  .cw-header {
    padding: 0.8rem 1rem 0.6rem;
  }

  .cw-title {
    font-size: 1rem;
  }

  .cw-subtitle {
    font-size: 0.75rem;
  }

  .cw-grid-wrap {
    padding: 0.4rem;
  }

  .cw-clues {
    padding: 0.6rem;
    gap: 0.8rem;
  }

  .cw-clue-text {
    font-size: 0.72rem;
  }

  .cw-cell-input {
    font-size: 11px;
  }

  .cw-cell-letter {
    font-size: 11px;
  }
}

/* ============================================
   VAULT OVERLAY
   ============================================ */
.vault-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, 0.97);
  backdrop-filter: blur(20px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.vault-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.vault-modal {
  background: linear-gradient(145deg, rgba(20, 40, 80, 0.96), rgba(8, 18, 38, 0.99));
  border: 1px solid rgba(244, 196, 48, 0.3);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 0 60px rgba(244, 196, 48, 0.15), 0 30px 60px rgba(0, 0, 0, 0.6);
}

.vault-lock-anim {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: vaultFloat 3s ease-in-out infinite;
}

@keyframes vaultFloat {

  0%,
  100% {
    transform: translateY(0) rotate(-3deg)
  }

  50% {
    transform: translateY(-10px) rotate(3deg)
  }
}

.vault-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sunflower), var(--cream));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.5rem;
}

.vault-sub {
  font-size: 0.88rem;
  color: var(--white-alpha-60);
  font-style: italic;
  margin-bottom: 2rem;
}

.vault-inputs {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.vault-input {
  width: 52px;
  height: 62px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(244, 196, 48, 0.3);
  border-radius: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--soft-yellow);
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font-display);
}

.vault-input:focus {
  border-color: var(--sunflower);
  background: rgba(244, 196, 48, 0.1);
}

.vault-input.wrong {
  border-color: #e55;
  animation: vaultShake 0.4s ease;
}

@keyframes vaultShake {

  0%,
  100% {
    transform: translateX(0)
  }

  20% {
    transform: translateX(-6px)
  }

  60% {
    transform: translateX(6px)
  }
}

.vault-error {
  min-height: 1.2rem;
  color: #f66;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.vault-submit {
  background: linear-gradient(135deg, var(--sunflower), var(--golden-amber));
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep-navy);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(244, 196, 48, 0.4);
}

.vault-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(244, 196, 48, 0.6);
}

/* ============================================
   FLOWER HUNT EASTER EGG
   ============================================ */

/* Container for all flower items — full page height, absolute so they scroll with content */
#flower-hunt-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 900;
  pointer-events: none;
}

/* Individual flower */
.flower-hunt-item {
  position: absolute;
  font-size: 1.6rem;
  cursor: pointer;
  pointer-events: all;
  user-select: none;
  opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(255, 182, 193, 0.5));
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  animation: flowerPulse 3s ease-in-out infinite;
  z-index: 901;
}

.flower-hunt-item:hover {
  opacity: 1;
  transform: scale(1.35);
  filter: drop-shadow(0 0 14px rgba(255, 105, 180, 0.8));
}

.flower-hunt-item.found {
  animation: flowerPop 0.5s ease forwards;
  pointer-events: none;
}

@keyframes flowerPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@keyframes flowerPop {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  40% {
    transform: scale(1.8) rotate(20deg);
    opacity: 1;
  }

  100% {
    transform: scale(0) rotate(90deg);
    opacity: 0;
  }
}

/* Progress counter badge — bottom-right */
.flower-hunt-counter {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(13, 31, 60, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 182, 193, 0.25);
  border-radius: 40px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
  cursor: default;
}

.flower-hunt-counter:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(255, 105, 180, 0.3);
}

.flower-hunt-counter.all-found {
  background: rgba(255, 105, 180, 0.2);
  border-color: rgba(255, 105, 180, 0.5);
  animation: badgeCelebrate 0.6s ease;
}

@keyframes badgeCelebrate {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.2);
  }

  60% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

.fhc-icon {
  font-size: 1.1rem;
}

.fhc-text {
  letter-spacing: 0.5px;
}

/* ============================================
   SECRET SONG PLAYER
   ============================================ */
.secret-player {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 960;
  width: 90%;
  max-width: 420px;
  padding: 24px 28px 20px;
  background: rgba(13, 31, 60, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 182, 193, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(255, 105, 180, 0.2), 0 0 80px rgba(255, 105, 180, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.secret-player.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Glow behind the player */
.sp-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.3), rgba(244, 196, 48, 0.2), rgba(255, 105, 180, 0.3));
  background-size: 300% 300%;
  animation: spGlowShift 4s ease infinite;
  z-index: -1;
  filter: blur(8px);
}

@keyframes spGlowShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

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

.sp-badge {
  font-family: var(--font-handwriting);
  font-size: 0.9rem;
  color: #ffb6c1;
  letter-spacing: 0.5px;
}

.sp-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.sp-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sp-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ffb6c1, var(--sunflower));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.sp-desc {
  font-size: 0.8rem;
  color: var(--white-alpha-60);
  margin-bottom: 16px;
  font-style: italic;
}

.sp-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-play-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff69b4, #ffb6c1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 105, 180, 0.4);
  transition: transform 0.2s, box-shadow 0.3s;
}

.sp-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(255, 105, 180, 0.6);
}

.sp-play-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.sp-seek-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-time {
  font-size: 0.7rem;
  color: var(--white-alpha-60);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: center;
}

.sp-seek-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.sp-seek-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff69b4, #ffb6c1);
  border-radius: 3px;
  transition: width 0.15s linear;
}