/* ============================================================================
   BIRTHDAY PLANET — RED ROMANTIC THEME & DYNAMIC ANIMATIONS
   ============================================================================ */

:root {
  --bg-deep: #0a0205;
  --bg-mid: #1c050d;
  --text-primary: #fff5f7;
  --text-secondary: #f9d5df;
  --text-muted: #d89cae;

  --star-core: #fff1f2;
  --star-glow: rgba(251, 113, 133, 0.78);
  --star-discovered: #fda4af;
  --heart-red: #f43f5e;
  --heart-deep: #e11d48;

  /* Default crimson planet colors (overridden dynamically from content.js) */
  --planet-highlight: #fda4af;
  --planet-midtone: #e11d48;
  --planet-shadow: #4c0519;
  --planet-glow: #fb7185;
  --planet-ring: #fecdd3;

  --card-bg: rgba(31, 6, 15, 0.9);
  --card-border: rgba(253, 164, 175, 0.28);

  --planet-size: clamp(148px, 24vw, 224px);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --tilt-x: 0px;
  --tilt-y: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: radial-gradient(
    ellipse at 50% 18%,
    #3f081a 0%,
    var(--bg-mid) 46%,
    var(--bg-deep) 100%
  );
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Night-sky twinkling canvas, floating red hearts canvas & crimson nebula washes */
#sky-canvas,
#hearts-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#sky-canvas {
  z-index: 0;
}

#hearts-canvas {
  z-index: 1;
}

.nebula-layer {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: nebulaBreath 14s ease-in-out infinite alternate;
}

.nebula-one {
  width: min(85vw, 760px);
  height: min(85vw, 760px);
  top: -18%;
  left: -14%;
  opacity: 0.34;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.85) 0%, rgba(225, 29, 72, 0.28) 38%, transparent 70%);
}

.nebula-two {
  width: min(75vw, 660px);
  height: min(75vw, 660px);
  bottom: -16%;
  right: -12%;
  opacity: 0.25;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.8) 0%, rgba(251, 113, 133, 0.22) 38%, transparent 72%);
  animation-delay: -6s;
}

/* Particle burst overlay when clicking a star */
.burst-layer {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  overflow: hidden;
}

.star-ripple {
  position: fixed;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  border: 2px solid rgba(254, 215, 170, 0.9);
  will-change: transform, opacity;
  animation: rippleBurst 0.82s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.warm-glow-wave {
  position: fixed;
  width: 148px;
  height: 148px;
  margin-left: -74px;
  margin-top: -74px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 237, 213, 0.72) 0%,
    rgba(253, 164, 175, 0.42) 42%,
    rgba(244, 63, 94, 0.14) 68%,
    transparent 100%
  );
  will-change: transform, opacity;
  animation: warmWaveExpand 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.warm-ember {
  position: fixed;
  width: var(--size, 8px);
  height: var(--size, 8px);
  margin-left: calc(var(--size, 8px) / -2);
  margin-top: calc(var(--size, 8px) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, #fff7ed 0%, #fed7aa 50%, rgba(251, 113, 133, 0) 100%);
  will-change: transform, opacity;
  animation: warmEmberFloat var(--dur, 0.95s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.burst-heart {
  position: fixed;
  width: var(--size, 14px);
  height: var(--size, 14px);
  margin-left: calc(var(--size, 14px) / -2);
  margin-top: calc(var(--size, 14px) / -2);
  color: var(--heart-color, #f43f5e);
  will-change: transform, opacity;
  animation: heartBurstFly var(--dur, 0.85s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.burst-heart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Page layout shell */
.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 4vw, 32px) clamp(24px, 4vw, 40px);
}

/* Top Utility Bar */
.top-bar {
  width: 100%;
  max-width: 1040px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.discovery-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(36, 7, 18, 0.72);
  border: 1px solid rgba(253, 164, 175, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.84rem;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.discovery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--heart-red);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.9);
  animation: heartBeat 2.2s ease-in-out infinite;
}

.music-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(253, 164, 175, 0.28);
  background: rgba(36, 7, 18, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.music-button:hover {
  background: rgba(76, 5, 25, 0.9);
  border-color: rgba(254, 205, 211, 0.5);
  transform: translateY(-1px);
}

.music-button[aria-pressed="true"] {
  border-color: var(--planet-highlight);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.38);
}

.music-button:focus-visible,
.star-btn:focus-visible,
.card-close:focus-visible {
  outline: 2px solid #fda4af;
  outline-offset: 3px;
}

.music-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--star-discovered);
}

.music-icon svg {
  width: 100%;
  height: 100%;
}

/* Intro Section */
.intro-section {
  max-width: 680px;
  text-align: center;
  margin-top: clamp(14px, 3vh, 28px);
  margin-bottom: clamp(8px, 2vh, 16px);
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  color: #fff5f7;
  text-shadow: 0 2px 26px rgba(244, 63, 94, 0.34);
}

.welcome-message {
  margin: 0 auto 14px;
  max-width: 58ch;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  color: var(--text-secondary);
  line-height: 1.68;
  white-space: pre-line;
}

.click-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(253, 164, 175, 0.22);
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.hint-sparkle {
  color: var(--heart-red);
  font-size: 0.92rem;
  animation: heartBeat 2.1s ease-in-out infinite;
}

/* Cosmos Stage */
.cosmos-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: clamp(420px, 60vh, 610px);
  margin: 6px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Faint Orbit Guides */
.orbit-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(253, 164, 175, 0.16);
  transform: translate(calc(-50% + var(--tilt-x) * 0.4), calc(-50% + var(--tilt-y) * 0.4));
  pointer-events: none;
  transition: transform 0.25s ease-out;
}

/* Planet Wrapper & Layered Sphere */
.planet-wrapper {
  position: relative;
  width: var(--planet-size);
  height: var(--planet-size);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transform: translate(var(--tilt-x), var(--tilt-y));
  transition: transform 0.25s ease-out;
  animation: planetFloat 8.5s ease-in-out infinite;
}

.planet-halo {
  position: absolute;
  inset: -28%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--planet-glow) 0%, transparent 68%);
  opacity: 0.42;
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
  animation: haloPulse 5.5s ease-in-out infinite;
}

.planet-ring {
  position: absolute;
  width: 170%;
  height: 170%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  pointer-events: none;
  overflow: visible;
}

.planet-ring-back {
  z-index: 1;
}

.planet-ring-front {
  z-index: 4;
}

.ring-stroke {
  stroke: var(--planet-ring);
  stroke-linecap: round;
}

.ring-outer {
  stroke-width: 4.2;
  opacity: 0.62;
  filter: drop-shadow(0 0 10px var(--planet-glow));
}

.ring-inner {
  stroke-width: 1.6;
  opacity: 0.36;
}

.planet-sphere {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  background: radial-gradient(
    circle at 30% 26%,
    var(--planet-highlight) 0%,
    var(--planet-midtone) 46%,
    var(--planet-shadow) 92%
  );
  box-shadow:
    inset -18px -22px 38px rgba(18, 2, 8, 0.72),
    inset 10px 10px 26px rgba(255, 235, 240, 0.26),
    0 0 42px rgba(0, 0, 0, 0.5),
    0 0 60px color-mix(in srgb, var(--planet-glow) 50%, transparent);
}

/* Soft atmospheric cloud bands on the planet */
.planet-surface {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 70% 22%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 28% 72%, rgba(255, 255, 255, 0.1) 0%, transparent 48%),
    repeating-linear-gradient(
      -18deg,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 12px,
      transparent 12px,
      transparent 28px
    );
  mix-blend-mode: soft-light;
  opacity: 0.88;
  pointer-events: none;
}

.planet-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(255, 228, 230, 0.24);
  pointer-events: none;
}

.planet-name {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 2.3vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.15;
  color: #fff8f9;
  text-shadow:
    0 2px 12px rgba(28, 4, 12, 0.8),
    0 0 22px rgba(255, 228, 230, 0.36);
  word-break: break-word;
  max-width: 100%;
}

/* Stars Layer */
.stars-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.star-btn {
  position: absolute;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  margin-top: -27px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: starFloat var(--float-duration, 5.5s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.star-btn:hover {
  transform: scale(1.22);
}

.star-btn.is-active {
  transform: scale(1.34);
  z-index: 7;
}

.star-aura {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 228, 230, 0.62) 0%,
    rgba(244, 63, 94, 0.28) 52%,
    transparent 74%
  );
  transition: transform 0.4s ease, opacity 0.4s ease, background 0.4s ease;
  animation: starPulse var(--pulse-duration, 3.6s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.star-btn:hover .star-aura,
.star-btn.is-active .star-aura {
  transform: scale(1.65);
  background: radial-gradient(
    circle,
    rgba(255, 241, 242, 0.92) 0%,
    rgba(244, 63, 94, 0.48) 54%,
    transparent 76%
  );
}

.star-btn.is-discovered .star-aura {
  background: radial-gradient(
    circle,
    rgba(253, 164, 175, 0.78) 0%,
    rgba(225, 29, 72, 0.34) 56%,
    transparent 76%
  );
}

.star-svg {
  position: relative;
  width: 24px;
  height: 24px;
  color: var(--star-core);
  filter: drop-shadow(0 0 9px rgba(251, 113, 133, 0.95));
  transition: color 0.3s ease, filter 0.3s ease, transform 0.35s ease;
}

.star-btn.is-discovered .star-svg {
  color: #fecdd3;
  filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.95));
}

.star-btn.is-active .star-svg {
  color: #ffffff;
  filter: drop-shadow(0 0 18px rgba(255, 228, 230, 1));
  transform: rotate(18deg) scale(1.08);
}

/* Message Backdrop & Card */
.message-backdrop {
  position: fixed;
  inset: 0;
  z-index: 18;
  background: rgba(10, 2, 5, 0.64);
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.22s ease;
}

.message-backdrop.is-visible {
  opacity: 1;
}

.message-card {
  position: fixed;
  z-index: 20;
  width: min(460px, calc(100vw - 24px), calc((100dvh - 36px) * 1.07));
  aspect-ratio: 460 / 430;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: 0;
  user-select: text;
  will-change: transform, opacity;
  opacity: 0;
  transform: translate(var(--entry-x, 0px), var(--entry-y, 24px)) scale(0.24);
  transition:
    opacity 0.22s ease-out,
    transform 0.36s cubic-bezier(0.34, 1.38, 0.64, 1);
}

.message-card.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.heart-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  will-change: transform;
}

.heart-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15% 17% 22% 17%;
}

/* Warm immediate reveal animation whenever viewing a star's message */
.message-card.is-revealing .heart-card-bg {
  animation: warmHeartEmbrace 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.message-card.is-revealing .card-header {
  animation: revealFadeSlide 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.message-card.is-revealing .card-star-glyph {
  animation: heartPop 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.message-card.is-revealing .card-quality {
  animation: warmTextReveal 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.03s both;
}

.message-card.is-revealing .card-divider {
  animation: dividerExpand 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.message-card.is-revealing .card-message {
  animation: warmTextReveal 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.message-card[hidden],
.message-backdrop[hidden],
.music-button[hidden],
.closing-footer[hidden] {
  display: none;
}

.card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--star-discovered);
}

.card-star-glyph {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--heart-red);
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.85);
}

.card-close {
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(253, 164, 175, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card-close:hover {
  background: rgba(244, 63, 94, 0.28);
  border-color: rgba(254, 205, 211, 0.55);
  transform: rotate(90deg);
}

.card-close svg {
  width: 16px;
  height: 16px;
}

.card-quality {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 3vw, 1.82rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff5f7;
  flex-shrink: 0;
}

.card-divider {
  width: 58px;
  height: 2px;
  margin: 10px auto 12px;
  border-radius: 999px;
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--heart-red), var(--star-discovered), var(--heart-red), transparent);
  opacity: 0.85;
  flex-shrink: 0;
}

.card-message {
  margin: 0;
  width: 100%;
  flex: 1;
  min-height: 0;
  font-size: clamp(0.92rem, 2.2vw, 1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
  overflow-y: auto;
  padding: 2px 8px 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(253, 164, 175, 0.35) transparent;
}

/* Closing Footer */
.closing-footer {
  margin-top: auto;
  padding-top: 10px;
  max-width: 620px;
  text-align: center;
}

.closing-message {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.12rem, 2.5vw, 1.34rem);
  color: var(--text-secondary);
  line-height: 1.5;
  white-space: pre-line;
}

/* Keyframe Animations */
@keyframes planetFloat {
  0%, 100% {
    margin-top: 0px;
  }
  50% {
    margin-top: -8px;
  }
}

@keyframes haloPulse {
  0%, 100% {
    opacity: 0.36;
    transform: scale(0.97);
  }
  50% {
    opacity: 0.54;
    transform: scale(1.05);
  }
}

@keyframes nebulaBreath {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(24px, 16px) scale(1.08);
  }
}

@keyframes starFloat {
  0%, 100% {
    margin-top: -27px;
  }
  50% {
    margin-top: -32px;
  }
}

@keyframes starPulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.14);
  }
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.22);
  }
  38% {
    transform: scale(0.98);
  }
  55% {
    transform: scale(1.14);
  }
}

@keyframes warmHeartEmbrace {
  0% {
    transform: scale(0.92);
  }
  45% {
    transform: scale(1.045);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes warmTextReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes warmWaveExpand {
  0% {
    opacity: 0.92;
    transform: scale(0.25);
  }
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes warmEmberFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.4);
  }
  25% {
    opacity: 1;
    transform: translate(calc(var(--tx) * 0.32), calc(var(--ty) * 0.32)) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.35);
  }
}

@keyframes heartPop {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-18deg);
  }
  65% {
    opacity: 1;
    transform: scale(1.32) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes revealFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dividerExpand {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  100% {
    opacity: 0.85;
    transform: scaleX(1);
  }
}

@keyframes rippleBurst {
  0% {
    opacity: 0.95;
    transform: scale(0.35);
  }
  100% {
    opacity: 0;
    transform: scale(3.2);
  }
}

@keyframes heartBurstFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.45) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: translate(calc(var(--tx) * 0.45), calc(var(--ty) * 0.45)) scale(1.12) rotate(calc(var(--rot) * 0.4));
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.7) rotate(var(--rot));
  }
}

/* Mobile refinements */
@media (max-width: 640px) {
  :root {
    --planet-size: clamp(122px, 32vw, 162px);
  }

  .cosmos-stage {
    height: clamp(340px, 50dvh, 440px);
  }

  .heart-card-inner {
    padding: 15.5% 15.5% 21% 15.5%;
  }

  .card-quality {
    font-size: clamp(1.2rem, 4.4vw, 1.65rem);
  }

  .card-divider {
    margin: 7px auto 9px;
  }

  .card-message {
    font-size: 0.92rem;
    line-height: 1.58;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

@media (max-width: 440px) {
  .top-bar {
    gap: 8px;
  }

  .discovery-pill,
  .music-button {
    font-size: 0.78rem;
    padding: 6px 11px;
    min-height: 36px;
  }

  .intro-section {
    margin-top: 10px;
    margin-bottom: 4px;
  }

  .click-hint {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}
