:root {
  --rosa-suave: #F8CFE8;
  --rosa-escuro: #CC3366;
  --fundo: #FFF0F5;
  --branco: #FFF;
  --texto: #333;
  --sombra: rgba(204, 51, 102, 0.2);
  --font-titulo: 'Segoe Script', cursive, sans-serif;
  --font-corpo: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-corpo);
  background: linear-gradient(to bottom, var(--rosa-suave), #000000);
  color: var(--texto);
  scroll-behavior: smooth;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  min-height: 100vh;
  position: relative;
}

/* Blinking Neon Stars */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: blink 2s infinite;
}

.star:nth-child(odd) {
  background: #00B7EB;
  box-shadow: 0 0 8px #00B7EB, 0 0 12px #00B7EB;
}

.star:nth-child(even) {
  background: #FF69B4;
  box-shadow: 0 0 8px #FF69B4, 0 0 12px #FF69B4;
}

.star:nth-child(1) { top: 10%; left: 15%; animation-delay: 0.2s; }
.star:nth-child(2) { top: 20%; left: 80%; animation-delay: 0.8s; }
.star:nth-child(3) { top: 30%; left: 25%; animation-delay: 1.5s; }
.star:nth-child(4) { top: 40%; left: 70%; animation-delay: 0.4s; }
.star:nth-child(5) { top: 50%; left: 10%; animation-delay: 1.2s; }
.star:nth-child(6) { top: 60%; left: 90%; animation-delay: 0.6s; }
.star:nth-child(7) { top: 70%; left: 30%; animation-delay: 1.8s; }
.star:nth-child(8) { top: 80%; left: 60%; animation-delay: 0.3s; }
.star:nth-child(9) { top: 15%; left: 50%; animation-delay: 1.0s; }
.star:nth-child(10) { top: 25%; left: 95%; animation-delay: 0.7s; }
.star:nth-child(11) { top: 35%; left: 5%; animation-delay: 1.3s; }
.star:nth-child(12) { top: 45%; left: 85%; animation-delay: 0.5s; }
.star:nth-child(13) { top: 55%; left: 20%; animation-delay: 1.6s; }
.star:nth-child(14) { top: 65%; left: 75%; animation-delay: 0.9s; }
.star:nth-child(15) { top: 75%; left: 40%; animation-delay: 1.1s; }

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

body.no-scroll {
  overflow: hidden;
}

/* Fireworks Canvas */
#fogosCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

/* Menu Toggle Button */
.menu-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--rosa-escuro);
  color: var(--branco);
  border: none;
  border-radius: 0.5rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
  transition: background 0.3s ease, transform 0.2s ease;
  min-width: 48px;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: #b02a58;
  transform: scale(1.1);
}

.menu-toggle[aria-expanded="true"] {
  background: #b02a58;
}

/* Menu de Navegação */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 16rem;
  height: 100%;
  background: rgba(248, 207, 232, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: -0.2rem 0 0.6rem var(--sombra);
  z-index: 1500;
  padding: 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.menu.open {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--rosa-escuro);
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.menu-close:hover,
.menu-close:focus {
  color: #b02a58;
  transform: scale(1.1);
}

.menu ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
  margin-top: 2.5rem;
}

.menu li {
  display: flex;
  align-items: center;
}

.menu a {
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border-radius: 0.5rem;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.menu a:hover,
.menu a[aria-current="page"] {
  background: var(--rosa-escuro);
  color: var(--branco);
  transform: translateX(0.2rem);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--rosa-suave), var(--fundo));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(1rem, 5vw, 1.5rem);
  border-radius: 0.75rem;
  animation: fadeIn 1s ease-in;
}

.hero h1 {
  font-family: var(--font-titulo);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: var(--rosa-escuro);
  margin-bottom: 0.5rem;
}

.hero p {
  font-family: var(--font-corpo);
  font-style: italic;
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: var(--texto);
}

.hero button {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--rosa-escuro);
  color: var(--branco);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
  min-width: 48px;
  min-height: 48px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.hero button:hover,
.hero button:focus {
  background: #b02a58;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.3rem 0.6rem var(--sombra);
}

/* Seções Gerais */
.section {
  max-width: 90%;
  margin: clamp(2rem, 5vw, 3rem) auto;
  padding: clamp(1rem, 4vw, 1.5rem);
  background: var(--branco);
  border-radius: 0.75rem;
  box-shadow: 0 0.2rem 0.5rem var(--sombra);
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
}

h2 {
  font-family: var(--font-titulo);
  color: var(--rosa-escuro);
  font-size: clamp(1.5rem, 5vw, 1.8rem);
  text-align: center;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-titulo);
  color: var(--rosa-escuro);
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 0.5rem;
}

/* Music Player */
.music-player {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 1.5rem);
}

.play-all {
  display: block;
  margin: 0 auto 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--rosa-escuro);
  color: var(--branco);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: var(--font-titulo);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
  min-width: 48px;
  min-height: 48px;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.play-all:hover,
.play-all:focus {
  background: #b02a58;
  transform: translateY(-0.2rem);
  box-shadow: 0 0.3rem 0.6rem var(--sombra);
}

.play-all.playing {
  background: #ff6699;
  box-shadow: 0 0 10px #ff6699;
  animation: heartPulse 1s infinite;
}

.player-container {
  background: rgba(248, 207, 232, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  backdrop-filter: blur(6px);
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
  animation: fadeInUp 0.8s ease forwards;
}

.player-container.playing::after {
  content: '💖';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  animation: heartPulse 1s infinite;
}

.current-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.track-cover {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
}

.current-track figcaption {
  display: flex;
  flex-direction: column;
}

.track-title {
  font-family: var(--font-titulo);
  font-size: 1.2rem;
  color: var(--rosa-escuro);
}

.track-artist {
  font-family: var(--font-corpo);
  font-size: 0.9rem;
  color: var(--texto);
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.control-btn {
  background: linear-gradient(to right, var(--rosa-suave), var(--rosa-escuro));
  color: var(--branco);
  border: none;
  padding: 0.6rem;
  border-radius: 50%;
  font-family: var(--font-titulo);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  min-width: 48px;
  min-height: 48px;
  box-shadow: 0 0 8px var(--rosa-escuro);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.control-btn:hover,
.control-btn:focus {
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--rosa-escuro);
  animation: heartPulse 1s infinite;
}

.control-btn.active {
  background: linear-gradient(to right, #ff6699, var(--rosa-escuro));
  box-shadow: 0 0 12px #ff6699;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.progress-bar {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(to right, var(--rosa-suave), var(--rosa-escuro));
  border-radius: 5px;
  cursor: pointer;
}

.progress-bar::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--rosa-escuro);
  border-radius: 50%;
  margin-top: -4px;
  box-shadow: 0 0 6px var(--rosa-escuro);
}

.progress-bar::-moz-range-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
}

.progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--rosa-escuro);
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 6px var(--rosa-escuro);
}

.current-time, .duration {
  font-family: var(--font-corpo);
  font-size: 0.8rem;
  color: var(--texto);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-bar {
  width: 100px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: linear-gradient(to right, var(--rosa-suave), var(--rosa-escuro));
  border-radius: 5px;
  cursor: pointer;
}

.volume-bar::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
}

.volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--rosa-escuro);
  border-radius: 50%;
  margin-top: -4px;
  box-shadow: 0 0 6px var(--rosa-escuro);
}

.volume-bar::-moz-range-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
}

.volume-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--rosa-escuro);
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 6px var(--rosa-escuro);
}

.playlist {
  margin-top: 2rem;
}

.playlist ul {
  list-style: none;
  padding: 0;
}

.playlist li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(248, 207, 232, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.playlist li:hover {
  background: rgba(248, 207, 232, 0.4);
  transform: translateY(-0.2rem);
}

.playlist li.playing {
  background: var(--rosa-suave);
  box-shadow: 0 0 10px var(--rosa-escuro);
}

.playlist-cover {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
}

.track-info {
  display: flex;
  flex-direction: column;
}

.playlist .track-title {
  font-family: var(--font-titulo);
  font-size: 1rem;
  color: var(--rosa-escuro);
}

.playlist .track-artist {
  font-family: var(--font-corpo);
  font-size: 0.8rem;
  color: var(--texto);
}

/* Aniversário */
.aniversario p {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  text-align: center;
  color: var(--texto);
  margin-bottom: 1rem;
  animation: fadeIn 1s ease-in;
}

.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* História */
.history-content p {
  font-size: clamp(0.9rem, 3vw, 1rem);
  margin-bottom: 0.8rem;
  line-height: 1.7;
  color: var(--texto);
}

/* Galeria */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: clamp(0.5rem, 2vw, 0.8rem);
  max-width: 90%;
  margin: auto;
  padding: clamp(0.5rem, 2vw, 1rem);
  justify-items: center;
}

.gallery-img {
  width: 100%;
  max-height: 20rem;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 0.3rem 0.6rem var(--sombra);
  transition: transform 0.3s ease;
  pointer-events: auto;
}

.gallery-img:hover {
  transform: scale(1.1);
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  pointer-events: auto;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 95%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--branco);
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

/* Poema */
.poema p {
  font-family: var(--font-corpo);
  font-style: italic;
  color: var(--rosa-escuro);
  text-align: center;
  font-size: clamp(0.9rem, 3vw, 1rem);
  margin-bottom: 0.8rem;
}

/* Sonhos */
#sonhos ul {
  list-style: none;
  max-width: 32rem;
  margin: auto;
  padding: 0;
}

#sonhos ul li {
  background: var(--rosa-suave);
  padding: 0.6rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  color: var(--rosa-escuro);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

#sonhos ul li:hover {
  background: var(--rosa-escuro);
  color: var(--branco);
  transform: translateY(-0.2rem);
}

#sonhos ul li::before {
  content: "🌟";
  font-size: 1rem;
}

.dream-description {
  display: none;
  font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  color: var(--texto);
  background: var(--rosa-suave);
  padding: 0.8rem;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
  animation: fadeIn 0.5s ease-in-out;
  position: relative;
  z-index: 10;
}

.dream-description.active {
  display: block;
}

/* Contador */
.contador {
  position: relative;
  z-index: 2;
  background: rgba(248, 207, 232, 0.2);
  padding: clamp(1rem, 4vw, 1.5rem);
  border-radius: 0.75rem;
  text-align: center;
  max-width: clamp(20rem, 90vw, 30rem);
  color: var(--rosa-escuro);
  font-family: var(--font-corpo);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  letter-spacing: 0.1rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0.6rem var(--sombra);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  min-height: calc(100vh - 3.8rem);
}

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

#contador.heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Motivos */
.motivos {
  position: relative;
  z-index: 2;
}

.motivos div#motivo {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  max-width: clamp(20rem, 90vw, 30rem);
  color: var(--rosa-escuro);
  font-family: var(--font-corpo);
  margin: 1rem auto;
  animation: fadeIn 1s ease-in-out;
}

.motivos button {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--rosa-escuro);
  color: var(--branco);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
  min-width: 48px;
  min-height: 48px;
  transition: background 0.3s ease, transform 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.motivos button:hover,
.motivos button:focus {
  background: #b02a58;
  transform: translateY(-0.2rem);
}

/* Recado */
.recado {
  position: relative;
  z-index: 2;
}

.recado-container {
  background: rgba(248, 207, 232, 0.2);
  padding: clamp(0.8rem, 3vw, 1.2rem);
  border-radius: 0.75rem;
  margin: 2rem auto;
  text-align: center;
  max-width: clamp(20rem, 90vw, 30rem);
  color: var(--rosa-escuro);
  font-family: var(--font-corpo);
  backdrop-filter: blur(6px);
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
}

.recado-container h2 {
  font-family: var(--font-titulo);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#mensagem-recado {
  font-size: clamp(0.9rem, 3vw, 1rem);
  margin-bottom: 0.5rem;
}

.recado-dinamico {
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-style: italic;
  animation: fadeIn 1s ease-in-out;
}

/* Footer */
footer {
  background: var(--rosa-escuro);
  color: var(--branco);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  margin-top: 3rem;
  border-radius: 0.75rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--rosa-escuro);
  color: var(--branco);
  border: none;
  border-radius: 50%;
  width: 2.8rem;
  height: 2.8rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  cursor: pointer;
  box-shadow: 0 0.2rem 0.4rem var(--sombra);
  min-width: 48px;
  min-height: 48px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus {
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .aniversario p, .player-container.playing::after, .recado-dinamico, .motivos div#motivo, .menu, .dream-description, .play-all.playing, .control-btn:hover, .control-btn:focus {
    animation: none;
    transition: none;
  }
}

/* Responsividade */
@media (max-width: 48rem) {
  .menu {
    display: block;
  }

  .menu:not(.open) {
    display: none;
  }

  .section {
    padding-top: 3.8rem;
  }

  .music-player {
    padding: clamp(0.8rem, 3vw, 1rem);
  }

  .player-container {
    padding: 1rem;
  }

  .track-cover {
    width: 60px;
    height: 60px;
  }

  .playlist-cover {
    width: 40px;
    height: 40px;
  }

  .section {
    margin: clamp(1.5rem, 4vw, 2rem) auto;
    padding: clamp(0.8rem, 3vw, 1rem);
    padding-top: 3.8rem;
  }

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

  .recado-container, .contador, .motivos div#motivo {
    max-width: 95%;
    padding: clamp(0.6rem, 2.5vw, 0.8rem);
  }

  .contador {
    padding-top: 3.8rem;
    min-height: calc(100vh - 3.8rem);
  }

  .recado-container h2 {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
  }

  .dream-description {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    padding: 0.6rem;
  }
}

@media (min-width: 48rem) {
  .menu {
    transform: translateX(0);
    max-width: 100%;
    height: auto;
    background: var(--branco);
    backdrop-filter: none;
    box-shadow: 0 0.2rem 0.6rem var(--sombra);
    padding: 0.5rem 0;
  }

  .menu ul {
    flex-direction: row;
    justify-content: center;
    margin-top: 0;
  }

  .menu-close, .menu-toggle {
    display: none;
  }

  .menu a {
    padding: 0.5rem;
    transform: none;
  }

  .menu a:hover,
  .menu a[aria-current="page"] {
    background: none;
    color: var(--rosa-escuro);
    transform: none;
  }
}

@media (max-width: 30rem) {
  .hero h1 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
  }

  .hero p {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
  }

  .section {
    margin: clamp(1rem, 3vw, 1.5rem) auto;
    padding: clamp(0.6rem, 2.5vw, 0.8rem);
    padding-top: 3.8rem;
  }

  h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .back-to-top {
    width: 2.5rem;
    height: 2.5rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
  }

  .recado-dinamico, .contador, .motivos div#motivo {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
  }

  .recado-container h2 {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .dream-description {
    font-size: clamp(0.6rem, 1.8vw, 0.7rem);
    padding: 0.5rem;
  }
}