/* ==========================================================================
   FOR SHONU — COSMIC SPACE THEME STYLESHEET
   A minimalistic, romantic, starry aesthetic
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  --bg-space: #030308;
  --bg-deep: #060714;
  --bg-card: rgba(12, 16, 32, 0.65);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-card-glow: rgba(180, 160, 255, 0.08);

  --color-white: #ffffff;
  --color-starlight: #f0f4ff;
  --color-moon-warm: #fff3d6;
  --color-gold: #f6c177;
  --color-gold-glow: rgba(246, 193, 119, 0.4);
  --color-rose: #ebbcba;
  --color-violet: #c4a7e7;
  --color-blue-soft: #9ccfd8;
  --color-muted: #8b92ab;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-cursive: 'Caveat', 'Dancing Script', cursive;
  --font-celestial: 'Cinzel', 'Playfair Display', serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-space);
  color: var(--color-starlight);
  font-family: var(--font-sans);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  position: relative;
  background-color: var(--bg-space);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--color-starlight);
}

::selection {
  background: rgba(246, 193, 119, 0.3);
  color: #ffffff;
}

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

/* Ambient Audio Controller */
.audio-control {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 100;
}

#audio-btn {
  background: rgba(18, 22, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-starlight);
  padding: 10px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#audio-btn:hover {
  background: rgba(28, 34, 60, 0.8);
  border-color: rgba(246, 193, 119, 0.4);
  box-shadow: 0 0 20px rgba(246, 193, 119, 0.25);
  transform: translateY(-1px);
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-bars .bar {
  width: 2px;
  height: 4px;
  background-color: var(--color-gold);
  border-radius: 1px;
  transition: height 0.2s ease;
}

.audio-playing .sound-bars .bar:nth-child(1) { animation: soundBar 0.9s infinite ease-in-out alternate; }
.audio-playing .sound-bars .bar:nth-child(2) { animation: soundBar 1.2s infinite ease-in-out 0.2s alternate; }
.audio-playing .sound-bars .bar:nth-child(3) { animation: soundBar 0.7s infinite ease-in-out 0.4s alternate; }
.audio-playing .sound-bars .bar:nth-child(4) { animation: soundBar 1.1s infinite ease-in-out 0.1s alternate; }

@keyframes soundBar {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Cosmic Nav Dots */
.constellation-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 90;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
}

.nav-dot:hover, .nav-dot.active {
  background: var(--color-gold);
  box-shadow: 0 0 12px var(--color-gold);
  transform: scale(1.4);
}

/* Main Journey Container */
.journey-container {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Sections General */
.section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

/* Reveal Card Animation */
.reveal-card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* SECTION 1: HERO */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.constellation-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 25px rgba(246, 193, 119, 0.12);
}

.badge-sparkle {
  color: var(--color-gold);
  font-size: 0.8rem;
  animation: pulseSparkle 2.5s infinite ease-in-out;
}

@keyframes pulseSparkle {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-starlight);
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
}

.shimmer-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--color-gold) 60%, var(--color-rose) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--color-gold);
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.mouse-icon .wheel {
  width: 3px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseWheel 2s infinite ease;
}

@keyframes mouseWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

.down-arrow {
  font-size: 1.2rem;
  color: var(--color-gold);
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* SECTION 2 & 3: POP-OUT MESSAGES */
.message-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-card {
  position: relative;
  max-width: 820px;
  padding: 60px 48px;
  border-radius: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px var(--bg-card-glow);
  z-index: 2;
  overflow: hidden;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--color-gold);
  opacity: 0.35;
  margin-bottom: -10px;
}

.quote-mark.end-quote {
  text-align: right;
  margin-top: 10px;
  margin-bottom: 0;
}

.message-text {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-starlight);
  letter-spacing: -0.01em;
  margin: 16px 0;
}

.highlight-tender {
  color: var(--color-rose);
  font-style: italic;
  text-shadow: 0 0 25px rgba(235, 188, 186, 0.4);
}

.romantic-glow {
  text-shadow: 0 0 35px rgba(255, 243, 214, 0.35);
}

.lunar-highlight {
  color: var(--color-moon-warm);
  font-weight: 600;
  text-shadow: 0 0 30px rgba(255, 243, 214, 0.6);
  position: relative;
  display: inline-block;
}

.starlight-highlight {
  background: linear-gradient(135deg, var(--color-gold) 0%, #ffffff 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  text-shadow: 0 0 30px rgba(246, 193, 119, 0.6);
  position: relative;
  display: inline-block;
}

.whisper-hint {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 18px;
  opacity: 0.75;
}

/* Floating Star Glints on Message 2 */
.floating-starglints {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glint {
  position: absolute;
  color: var(--color-gold);
  font-size: 1.2rem;
  animation: glintFloat 3.5s infinite ease-in-out;
}

.glint.g1 { top: 15%; left: 8%; animation-delay: 0s; }
.glint.g2 { top: 20%; right: 10%; animation-delay: 1.2s; color: var(--color-rose); }
.glint.g3 { bottom: 18%; left: 12%; animation-delay: 0.6s; }
.glint.g4 { bottom: 15%; right: 14%; animation-delay: 1.8s; color: var(--color-blue-soft); }

@keyframes glintFloat {
  0%, 100% { opacity: 0.2; transform: translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateY(-8px) scale(1.2); }
}

.moonlight-aura {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 243, 214, 0.15) 0%, rgba(255, 243, 214, 0) 70%);
  pointer-events: none;
}

/* SECTION 4: CYGNUS & THE MOON */
.cygnus-section {
  min-height: 120vh;
  position: relative;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cygnus-header {
  margin-bottom: 40px;
  max-width: 650px;
}

.celestial-subtitle {
  font-family: var(--font-celestial);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 10px;
}

.celestial-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--color-starlight);
  margin-bottom: 14px;
}

.celestial-desc {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.celestial-stage {
  position: relative;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

/* Realistic Glowing Moon */
.moon-container {
  position: absolute;
  top: 10px;
  left: 4%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: floatMoon 8s infinite ease-in-out alternate;
  cursor: pointer;
}

@keyframes floatMoon {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(2deg); }
}

.moon-sphere {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: 
    0 0 40px rgba(255, 247, 230, 0.45),
    0 0 90px rgba(255, 235, 180, 0.2),
    inset -15px -15px 30px rgba(0, 0, 0, 0.6),
    inset 10px 10px 20px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}

.moon-container:hover .moon-sphere {
  transform: scale(1.08);
  box-shadow: 
    0 0 60px rgba(255, 247, 230, 0.7),
    0 0 120px rgba(255, 235, 180, 0.35);
}

.moon-texture-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.moon-crescent-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, transparent 55%, rgba(10, 12, 25, 0.75) 100%);
  pointer-events: none;
}

.moon-glow-outer {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 243, 214, 0.25) 0%, rgba(255, 243, 214, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
}

.moon-tag {
  margin-top: 14px;
  text-align: center;
  background: rgba(10, 14, 28, 0.6);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.moon-name {
  display: block;
  font-family: var(--font-celestial);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-moon-warm);
  letter-spacing: 0.1em;
}

.moon-note {
  display: block;
  font-size: 0.65rem;
  color: var(--color-muted);
}

/* Cygnus SVG Constellation */
.constellation-wrapper {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 620px;
  margin: 0 auto;
}

.cygnus-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(200, 225, 255, 0.15));
}

.swan-silhouette {
  fill: rgba(156, 207, 216, 0.025);
  stroke: rgba(156, 207, 216, 0.08);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
  transition: fill 0.4s ease;
}

.constellation-wrapper:hover .swan-silhouette {
  fill: rgba(156, 207, 216, 0.05);
}

/* Constellation Lines */
.constellation-line {
  stroke: url(#lineGrad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: 0.85;
  pointer-events: none;
  transition: stroke-dashoffset 2.5s var(--ease-out-expo), stroke 0.3s ease;
}

.cygnus-section.in-view .constellation-line {
  stroke-dashoffset: 0;
}

/* Stable & Smooth Interactive Star Nodes (No coordinate jumping / flickering) */
.star-node {
  cursor: pointer;
}

.star-hitbox {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
}

.star-core {
  fill: #ffffff;
  transition: fill 0.3s ease, filter 0.3s ease, stroke-width 0.3s ease;
  pointer-events: none;
}

.deneb-core {
  fill: #ffffff;
}

.sadr-core {
  fill: #fff8e8;
}

.albireo-gold {
  fill: #ffcc66;
}

.albireo-blue {
  fill: #70b4ff;
}

.star-pulse-ring {
  fill: rgba(255, 255, 255, 0.1);
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
  pointer-events: none;
  animation: pulseStarRing 3s infinite ease-in-out;
}

.albireo-pulse {
  stroke: rgba(255, 204, 102, 0.4);
}

@keyframes pulseStarRing {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.star-label {
  fill: rgba(240, 244, 255, 0.7);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  pointer-events: none;
  transition: fill 0.3s ease, font-weight 0.3s ease;
}

/* Hover highlights without layout shifts */
.star-node:hover .star-core {
  filter: drop-shadow(0 0 10px rgba(246, 193, 119, 0.9));
}

.star-node:hover .star-pulse-ring {
  stroke: var(--color-gold);
  opacity: 1;
}

.star-node:hover .star-label {
  fill: var(--color-gold);
  font-weight: 600;
}

/* Star Lore Tooltip Card */
.star-lore-card {
  margin-top: 20px;
  padding: 18px 28px;
  background: rgba(14, 18, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s var(--ease-out-expo);
}

.lore-star-name {
  display: block;
  font-family: var(--font-celestial);
  font-size: 0.95rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.lore-star-desc {
  font-size: 0.9rem;
  color: var(--color-starlight);
  line-height: 1.5;
  opacity: 0.9;
}

/* SECTION 5: APOLOGY LETTER FOR SHONU */
.letter-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.letter-card {
  position: relative;
  max-width: 720px;
  width: 100%;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 20, 40, 0.75) 0%, rgba(8, 10, 22, 0.85) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(196, 167, 231, 0.08),
    inset 0 0 30px rgba(255, 255, 255, 0.02);
  text-align: left;
}

.letter-border-glow {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.wax-seal {
  position: absolute;
  top: -24px;
  right: 48px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8a87c 0%, #b8623b 60%, #733013 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(232, 168, 124, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.seal-initial {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff4ec;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.letter-header {
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.letter-to {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-moon-warm);
  font-style: italic;
}

.letter-date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

.letter-body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(240, 244, 255, 0.92);
}

.letter-paragraph {
  margin-bottom: 20px;
}

.highlight-passage {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--color-gold);
  font-style: italic;
  padding: 12px 18px;
  background: rgba(246, 193, 119, 0.06);
  border-left: 2px solid var(--color-gold);
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.letter-signature {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sign-text {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.handwritten-signature {
  font-family: var(--font-cursive);
  font-size: 2.2rem;
  color: var(--color-rose);
  transform: rotate(-2deg);
  display: inline-block;
  text-shadow: 0 0 15px rgba(235, 188, 186, 0.3);
}

.signer-name {
  font-family: var(--font-cursive);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-gold);
  transform: rotate(-1deg);
  display: inline-block;
  text-shadow: 0 0 18px var(--color-gold-glow);
  margin-top: -4px;
}

/* SECTION 6: INTERACTIVE WISHES & FINALE */
.wishes-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
}

.wishes-content {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.finale-star-sparkle {
  color: var(--color-gold);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  margin-bottom: 16px;
  animation: pulseSparkle 2s infinite ease-in-out;
}

.wishes-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-starlight);
  margin-bottom: 12px;
}

.wishes-desc {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.celestial-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--ease-out-expo);
  outline: none;
  overflow: hidden;
}

.primary-btn {
  background: linear-gradient(135deg, rgba(246, 193, 119, 0.2) 0%, rgba(196, 167, 231, 0.2) 100%);
  border-color: rgba(246, 193, 119, 0.4);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(246, 193, 119, 0.2);
}

.primary-btn:hover {
  background: linear-gradient(135deg, rgba(246, 193, 119, 0.35) 0%, rgba(196, 167, 231, 0.35) 100%);
  box-shadow: 0 0 40px rgba(246, 193, 119, 0.4);
  transform: translateY(-2px) scale(1.03);
}

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

.secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-starlight);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(156, 207, 216, 0.5);
  box-shadow: 0 0 25px rgba(156, 207, 216, 0.25);
  transform: translateY(-2px);
}

.wish-counter-display {
  background: rgba(14, 18, 36, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 28px;
  border-radius: 20px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
}

.counter-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold);
  text-shadow: 0 0 20px var(--color-gold-glow);
  transition: transform 0.3s ease;
}

.counter-number.pop {
  transform: scale(1.3);
}

.counter-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

.live-whisper-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  margin-bottom: 60px;
}

.whisper-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-rose);
  font-style: italic;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cosmic-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.shonu-highlight {
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.back-to-top-btn {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  padding: 6px 12px;
}

.back-to-top-btn:hover {
  color: var(--color-gold);
}

/* Floating Stardust Burst */
.stardust-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 999;
  animation: floatBurst 1.8s forwards cubic-bezier(0.12, 0.8, 0.32, 1);
}

@keyframes floatBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .section {
    padding: 60px 16px;
  }

  .message-card {
    padding: 40px 24px;
  }

  .message-text {
    font-size: 1.85rem;
  }

  .celestial-stage {
    min-height: 520px;
    flex-direction: column;
  }

  .moon-container {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 24px;
  }

  .moon-sphere {
    width: 100px;
    height: 100px;
  }

  .constellation-wrapper {
    max-width: 100%;
    height: 380px;
  }

  .letter-card {
    padding: 40px 24px;
  }

  .letter-to {
    font-size: 1.35rem;
  }

  .wax-seal {
    top: -18px;
    right: 24px;
    width: 42px;
    height: 42px;
  }

  .audio-control {
    top: 16px;
    right: 16px;
  }

  .constellation-nav {
    display: none;
  }
}
