/* =========================================================
   CAIO & MARIA — VERSÃO 5
   Paleta única para todo o site, tirada da seção
   "Sendo Feliz — [dias] dias ao seu lado":
   preto quente, vinho profundo, branco rosado e rosa claro.
   ========================================================= */

:root {
  --bg: #100e0f;
  --bg-deep: #0b0909;
  --bg-soft: #150f11;
  --wine: #6f1b26;
  --wine-glow: rgba(111, 27, 38, .42);
  --wine-soft: rgba(117, 28, 39, .24);
  --wine-bright: #a5283a;
  --rose: #ffb8c1;
  --rose-strong: #e0505f;
  --cream: #fff4f5;
  --text: rgba(255, 244, 245, .74);
  --muted: rgba(255, 240, 243, .58);
  --line: rgba(255, 184, 193, .16);
  --line-strong: rgba(255, 184, 193, .34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;   /* navegadores antigos */
  overflow-x: clip;     /* navegadores atuais: corta sem criar nova área de rolagem */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Camada que recorta os brilhos de fundo: eles ficam parcialmente
   "para fora" da tela de propósito, mas SEM aumentar a largura da página
   (era isso que criava a barra de rolagem lateral no celular). */
.ambient-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Brilhos de fundo, no mesmo vinho da seção de referência. */
.ambient {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

.ambient-one {
  background: var(--wine);
  top: -120px;
  left: -240px;
}

.ambient-two {
  background: #5a1620;
  top: 980px;
  right: -260px;
}

/* =========================================================
   CABEÇALHO — primeiras informações da página
   ========================================================= */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  padding: 0 clamp(18px, 5vw, 62px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "eyebrow brand link";
  align-items: center;
  gap: 18px;
  z-index: 90;
  background: rgba(16, 14, 15, .74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar-eyebrow {
  grid-area: eyebrow;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--rose);
  opacity: .82;
  white-space: nowrap;
}

.eyebrow-line {
  width: 26px;
  height: 1px;
  background: var(--rose);
  opacity: .5;
  flex-shrink: 0;
}

.brand {
  grid-area: brand;
  justify-self: center;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  letter-spacing: .5px;
  color: var(--cream);
  white-space: nowrap;
  transition: opacity .25s ease;
}

.brand:hover {
  opacity: .75;
}

.brand-heart {
  color: var(--rose);
  margin-right: 7px;
  font-size: 13px;
}

.top-link {
  grid-area: link;
  justify-self: end;
  font-size: 11px;
  letter-spacing: .6px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s ease;
}

.top-link span {
  color: var(--rose);
  margin-left: 7px;
}

.top-link:hover {
  color: var(--cream);
}

/* =========================================================
   BASE DAS SEÇÕES
   ========================================================= */

.section {
  text-align: center;
  position: relative;
  padding-left: 24px;
  padding-right: 24px;
}

.section-kicker {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--rose);
  opacity: .85;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 880px;
  padding-top: 168px;
  display: flex;
  align-items: center;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 30%, var(--wine-glow) 0%, rgba(111, 27, 38, .14) 42%, transparent 72%),
    var(--bg);
}

.hero h1 {
  font: 400 clamp(56px, 10vw, 110px)/1.08 "Playfair Display", serif;
  margin: 0 0 20px;
  letter-spacing: -3px;
  color: var(--cream);
}

.hero h1 em {
  display: inline-block;
  padding: 0 .07em;
  letter-spacing: 0;
}

.hero h1 em,
h2 em,
.footer strong em {
  font-style: italic;
  color: var(--rose);
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  margin: 0;
}

.since {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--rose);
  opacity: .8;
  margin: 30px 0 34px;
}

.tiny-heart {
  font-size: 10px;
  margin: 0 9px;
  color: var(--rose);
}

.timer-card {
  width: min(680px, 100%);
  padding: 30px 32px 22px;
  background: rgba(255, 244, 245, .04);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 90px rgba(0, 0, 0, .35);
}

.timer-heading {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--rose);
  opacity: .9;
  font-size: 17px;
  margin-bottom: 27px;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.time-unit {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-right: 1px solid var(--line);
}

.time-unit:last-child {
  border: 0;
}

.time-unit strong {
  font: 400 clamp(26px, 4vw, 42px) "Playfair Display", serif;
  color: var(--cream);
}

.time-unit span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.timer-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 17px;
  color: var(--muted);
  font-size: 11px;
}

.timer-footer span {
  color: var(--rose);
  font-size: 18px;
  vertical-align: -2px;
  margin-right: 6px;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
}

.scroll-cue span {
  height: 25px;
  width: 1px;
  background: var(--rose);
  opacity: .5;
}

/* =========================================================
   HISTÓRIA
   ========================================================= */

.story {
  padding-top: 135px;
  padding-bottom: 140px;
  max-width: 820px;
  margin: auto;
}

.story h2,
.moments h2,
.forever h2 {
  font: 400 clamp(42px, 6vw, 68px)/1.13 "Playfair Display", serif;
  margin: 24px 0;
  color: var(--cream);
}

.story-copy {
  max-width: 590px;
  margin: 0 auto;
  color: var(--text);
  font-size: 14px;
  line-height: 2;
}

.quote-mark {
  font: 100px "Playfair Display", serif;
  color: var(--rose-strong);
  opacity: .55;
  height: 75px;
  margin-top: 42px;
}

.story blockquote {
  font: italic 24px/1.55 "Playfair Display", serif;
  max-width: 570px;
  margin: 0 auto;
  color: var(--cream);
}

.signature {
  font: italic 17px "Playfair Display", serif;
  color: var(--text);
  margin-top: 25px;
}

.signature span {
  color: var(--rose);
}

/* =========================================================
   GALERIA — fotos adicionadas apenas pelo código
   ========================================================= */

.moments {
  padding: 105px 7vw 130px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(111, 27, 38, .34), transparent 62%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-intro {
  color: var(--muted);
  font-size: 13px;
  margin-top: -8px;
}

.gallery {
  max-width: 960px;
  margin: 55px auto 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: 220px 220px;
  gap: 16px;
}

.photo-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(111, 27, 38, .55), transparent 70%),
    linear-gradient(160deg, #1a1013, #120d0e);
  transition: transform .35s ease, border-color .35s ease;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 184, 193, .14);
  border-radius: 9px;
  pointer-events: none;
  z-index: 3;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--rose);
}

.photo-large {
  grid-row: span 2;
}

.photo-tall {
  background:
    radial-gradient(circle at 50% 45%, rgba(117, 28, 39, .5), transparent 70%),
    linear-gradient(160deg, #190f12, #120d0e);
}

.photo-wide {
  background:
    radial-gradient(circle at 50% 45%, rgba(165, 40, 58, .38), transparent 70%),
    linear-gradient(160deg, #1b1114, #120d0e);
}

/* Marca discreta que aparece enquanto a foto não foi adicionada. */
.photo-frame-note {
  font-size: 26px;
  color: var(--rose);
  opacity: .32;
  letter-spacing: 2px;
}

.photo-card .photo-backdrop {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  object-fit: cover;
  object-position: center;
  filter: blur(13px) brightness(.48);
  transform: scale(1.04);
  z-index: 1;
}

.photo-card .photo-foreground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 5px;
  border-radius: inherit;
  z-index: 2;
}

.photo-card .gallery-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #100e0f;
  z-index: 2;
}

/* =========================================================
   PARA SEMPRE
   ========================================================= */

.forever {
  padding-top: 130px;
  padding-bottom: 55px;
  background: radial-gradient(ellipse at 50% 50%, var(--wine-glow) 0%, rgba(111, 27, 38, .12) 45%, transparent 72%);
}

.forever-heart {
  font-size: 27px;
  color: var(--rose);
  margin: 25px 0;
}

.forever p {
  color: var(--text);
  font: italic 17px "Playfair Display", serif;
}

.date-stamp {
  display: inline-block;
  border: 1px solid var(--line-strong);
  color: var(--rose);
  padding: 12px 23px;
  margin-top: 28px;
  font-size: 10px;
  letter-spacing: 3px;
}

/* =========================================================
   MÚSICA — player único, sem botões de "adicionar"
   ========================================================= */

.music {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 30px 60px;
}

.music-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 244, 245, .035);
  backdrop-filter: blur(10px);
}

.music-disc {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(circle, #17100f 0 24%, #2a1218 25% 100%);
  border: 1px solid rgba(255, 184, 193, .28);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 26px rgba(111, 27, 38, .55);
  position: relative;
  overflow: hidden;
}

.music-disc span {
  position: relative;
  z-index: 2;
  font-size: 18px;
  color: var(--rose);
}

/* Anéis do disco: giram sozinhos, sem virar o símbolo musical. */
.music-disc::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      transparent 0 26%,
      rgba(255, 184, 193, .5) 27% 30%,
      transparent 31% 43%,
      rgba(255, 184, 193, .16) 44% 47%,
      transparent 48%);
}

.music-card.is-playing .music-disc::before {
  animation: disc-spin 6s linear infinite;
}

@keyframes disc-spin {
  to {
    transform: rotate(360deg);
  }
}

.music-text {
  flex: 1;
  min-width: 0;
}

.music-text h3 {
  font: 400 22px "Playfair Display", serif;
  margin: 7px 0 3px;
  color: var(--cream);
}

.music-text p {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.play-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 184, 193, .08);
  color: var(--rose);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .25s ease, transform .25s ease, color .25s ease;
}

.play-button:hover {
  background: var(--rose);
  color: #1a0f12;
  transform: scale(1.05);
}

.play-button .play-icon {
  font-size: 13px;
  line-height: 1;
  transform: translateX(1px);
}

.music-card.is-playing .play-button .play-icon {
  transform: none;
  letter-spacing: 1px;
}

.music-progress {
  height: 2px;
  width: 100%;
  margin-top: 16px;
  background: rgba(255, 184, 193, .14);
  border-radius: 2px;
  overflow: hidden;
}

.music-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--wine-bright), var(--rose));
  transition: width .2s linear;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.footer {
  text-align: center;
  padding: 55px 20px 50px;
  border-top: 1px solid var(--line);
}

.footer-heart {
  color: var(--rose);
  font-size: 20px;
}

.footer p {
  font: italic 16px "Playfair Display", serif;
  color: var(--text);
  margin: 15px 0;
}

.footer strong {
  font: 400 25px "Playfair Display", serif;
  color: var(--cream);
}

.footer small {
  display: block;
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 17px;
}

/* =========================================================
   ABERTURA — SENDO FELIZ (seção de referência das cores)
   ========================================================= */

.opening-screen {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 42%, var(--wine-glow), transparent 43%), var(--bg);
  text-align: center;
}

.opening-bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.opening-bubbles span {
  position: absolute;
  display: block;
  width: 28vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wine-soft);
  filter: blur(38px);
  animation: opening-bubble-drift 12s ease-in-out infinite alternate;
}

.opening-bubbles span:nth-child(1) {
  top: -9%;
  left: 11%;
  width: 20vw;
}

.opening-bubbles span:nth-child(2) {
  top: 10%;
  left: 21%;
  width: 31vw;
  animation-delay: -5s;
}

.opening-bubbles span:nth-child(3) {
  top: -12%;
  left: 40%;
  width: 25vw;
  animation-delay: -3s;
}

.opening-bubbles span:nth-child(4) {
  top: -8%;
  right: 12%;
  width: 28vw;
  animation-delay: -7s;
}

.opening-bubbles span:nth-child(5) {
  top: 37%;
  left: 46%;
  width: 25vw;
  animation-delay: -4s;
}

.opening-bubbles span:nth-child(6) {
  bottom: -30%;
  left: 28%;
  width: 32vw;
  animation-delay: -6s;
}

@keyframes opening-bubble-drift {
  from {
    transform: translate3d(-8px, 0, 0) scale(.98);
  }

  to {
    transform: translate3d(12px, 18px, 0) scale(1.04);
  }
}

.opening-message {
  position: relative;
  z-index: 2;
  width: min(92%, 650px);
  padding: 40px 12px 70px;
}

.opening-script {
  margin: 0;
  color: var(--cream);
  font-family: "Italianno", cursive;
  font-size: clamp(62px, 7vw, 84px);
  line-height: .95;
}

.opening-days {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(58px, 7vw, 76px);
  letter-spacing: -3px;
  line-height: 1.12;
}

.opening-beside {
  margin: 7px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--cream);
}

.opening-heart {
  margin-top: 20px;
  font-size: 40px;
  animation: opening-heartbeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(111, 27, 38, .7));
}

@keyframes opening-heartbeat {
  0%, 100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.12);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.07);
  }
}

.opening-scroll {
  position: absolute;
  bottom: 25px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.opening-scroll span {
  color: var(--rose);
  font-size: 22px;
}

.celebration-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.celebration-particle {
  position: absolute;
  top: -12%;
  left: var(--left);
  font-size: var(--size);
  opacity: 0;
  animation: celebration-fall var(--duration) ease-in forwards;
  animation-delay: var(--delay);
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .25));
}

@keyframes celebration-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg) scale(.65);
  }

  12% {
    opacity: 1;
  }

  85% {
    opacity: .95;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--sway), 115vh, 0) rotate(330deg) scale(1.1);
  }
}

/* =========================================================
   CHUVA DE ROSAS — rosas e pétalas vermelhas em todo o site
   ========================================================= */

.rose-fall-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
  pointer-events: none;
}

.rose-particle {
  position: absolute;
  top: -8vh;
  left: var(--left);
  opacity: 0;
  will-change: transform, opacity;
  animation-name: rose-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-duration: var(--duration);
  animation-delay: var(--delay);
}

.rose-particle.is-rose {
  font-size: var(--size);
  filter: drop-shadow(0 6px 12px rgba(111, 27, 38, .55));
  animation-name: rose-fall-swing;
}

/* Pétala desenhada em CSS: sempre vermelha, em qualquer navegador. */
.rose-particle.is-petal {
  width: var(--size);
  height: calc(var(--size) * 1.35);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 190, 195, .5), transparent 42%),
    linear-gradient(155deg, #e03548 0%, #b81c2d 48%, #780c19 100%);
  border-radius: 72% 28% 62% 38% / 68% 52% 48% 32%;
  box-shadow: inset -1px -2px 5px rgba(60, 4, 12, .5), 0 2px 6px rgba(0, 0, 0, .25);
}

@keyframes rose-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -10vh, 0) rotate(0deg) scale(.8);
  }

  8% {
    opacity: 1;
  }

  90% {
    opacity: .95;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 112vh, 0) rotate(var(--spin)) scale(1);
  }
}

@keyframes rose-fall-swing {
  0% {
    opacity: 0;
    transform: translate3d(0, -10vh, 0) rotate(-12deg) scale(.85);
  }

  8% {
    opacity: 1;
  }

  50% {
    transform: translate3d(calc(var(--drift) * .55), 55vh, 0) rotate(10deg) scale(1);
  }

  90% {
    opacity: .95;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 112vh, 0) rotate(-8deg) scale(1.02);
  }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {
  .topbar {
    height: auto;
    padding: 10px clamp(16px, 5vw, 32px) 11px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "eyebrow eyebrow"
      "brand link";
    row-gap: 7px;
    column-gap: 12px;
  }

  .topbar-eyebrow {
    justify-self: center;
    font-size: 8px;
    letter-spacing: 2.2px;
  }

  .brand {
    justify-self: start;
  }
}

@media (max-width: 650px) {
  html {
    scroll-padding-top: 84px;
  }

  .topbar {
    padding: 12px 18px 11px;
  }

  .brand {
    font-size: 15px;
  }

  .top-link {
    font-size: 10px;
  }

  .hero {
    min-height: 800px;
    padding-top: 118px;
  }

  .hero h1 {
    letter-spacing: -1.2px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .since {
    font-size: 8px;
    letter-spacing: 1.2px;
  }

  .timer-card {
    padding: 25px 12px 18px;
  }

  .timer-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 23px;
  }

  .time-unit:nth-child(3) {
    border: 0;
  }

  .time-unit:nth-child(4) {
    border-right: 1px solid var(--line);
  }

  .time-unit strong {
    font-size: 32px;
  }

  .time-unit span {
    font-size: 8px;
  }

  .story {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .story-copy {
    font-size: 13px;
  }

  .story blockquote {
    font-size: 21px;
  }

  .moments {
    padding: 90px 22px;
  }

  .gallery {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(230px, 68vw) minmax(175px, 48vw);
    gap: 10px;
    margin-top: 32px;
  }

  .photo-card { min-width: 0; min-height: 0; }
  .photo-card .photo-foreground { padding: 3px; }
  .photo-card .gallery-video { object-fit: contain; }

  .photo-large {
    grid-row: span 1;
    grid-column: span 2;
  }

  .photo-tall,
  .photo-wide {
    grid-row: 2;
  }

  .music {
    padding: 55px 20px 65px;
  }

  .music-card {
    gap: 14px;
    padding: 18px;
  }

  .music-disc {
    width: 50px;
    height: 50px;
  }

  .music-text h3 {
    font-size: 19px;
  }

  .play-button {
    width: 42px;
    height: 42px;
  }

  .forever {
    padding: 100px 24px;
  }

  .desktop-only {
    display: none;
  }

  .opening-bubbles span {
    width: 65vw !important;
  }

  .opening-script {
    font-size: 68px;
  }

  .opening-days {
    font-size: 58px;
  }

  .opening-screen {
    min-height: 100svh;
  }
}

/* =========================================================
   TIPOGRAFIA LEVE (mesma leitura da versão anterior)
   ========================================================= */

html,
body,
body *,
body *::before,
body *::after {
  font-weight: 300 !important;
}

h1,
h2,
h3,
.brand,
.timer-heading,
.story blockquote,
.signature,
.footer strong,
.opening-script {
  font-weight: 300 !important;
}

button,
input,
label,
a,
strong,
b,
small,
span,
p,
blockquote {
  font-weight: 300 !important;
}

@media (prefers-reduced-motion: reduce) {
  .rose-particle,
  .opening-heart,
  .music-card.is-playing .music-disc {
    animation: none !important;
  }
}


/* AJUSTES MOBILE — preserva integralmente o layout desktop */
.mobile-menu-toggle, .mobile-navigation { display: none; }

@media (max-width: 650px) {
  html, body { width:100%; max-width:100%; overflow-x:clip; }
  *, *::before, *::after { box-sizing:border-box; }

  .topbar {
    height:66px; min-height:66px; width:100%; padding:0 18px;
    display:flex; align-items:center; justify-content:space-between; gap:12px;
  }
  .topbar-eyebrow, .topbar > .top-link { display:none; }
  .topbar .brand {
    display:inline-flex; align-items:center; justify-self:auto;
    min-width:0; margin:0; font-size:16px; white-space:nowrap;
  }
  .mobile-menu-toggle {
    appearance:none; -webkit-appearance:none; display:flex;
    flex:0 0 44px; width:44px; height:44px; padding:11px 9px;
    flex-direction:column; justify-content:center; align-items:center;
    gap:5px; border:1px solid var(--line-strong); border-radius:10px;
    background:rgba(255,184,193,.06); cursor:pointer; z-index:3;
  }
  .mobile-menu-toggle span {
    display:block; width:21px; height:2px; border-radius:2px;
    background:var(--rose); transition:transform .25s ease, opacity .2s ease;
  }
  .topbar.menu-open .mobile-menu-toggle span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .topbar.menu-open .mobile-menu-toggle span:nth-child(2) { opacity:0; }
  .topbar.menu-open .mobile-menu-toggle span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

  .mobile-navigation {
    position:absolute; display:flex; top:calc(100% + 1px); left:0; right:0;
    width:100%; padding:10px 18px 16px; flex-direction:column; gap:2px;
    background:rgba(16,14,15,.97); border-bottom:1px solid var(--line-strong);
    box-shadow:0 18px 30px rgba(0,0,0,.28); backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px); opacity:0; visibility:hidden;
    pointer-events:none; transform:translateY(-8px);
    transition:opacity .2s ease, transform .2s ease, visibility .2s ease; z-index:2;
  }
  .topbar.menu-open .mobile-navigation {
    opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0);
  }
  .mobile-navigation a {
    display:flex; align-items:center; justify-content:space-between;
    min-height:46px; padding:0 5px; color:var(--cream); font-size:13px;
    letter-spacing:.3px; border-bottom:1px solid rgba(255,184,193,.09);
  }
  .mobile-navigation a:last-child { border-bottom:0; }

  main, section, .section, .hero, .story, .moments, .forever,
  .opening-screen, .opening-message, .gallery, .music, .footer {
    min-width:0; max-width:100%;
  }
  img, video, iframe, canvas, svg { max-width:100%; }
  .hero, .story, .moments, .forever, .music, .footer { overflow-x:clip; }
  .hero { padding-left:16px; padding-right:16px; }
  .hero h1 { max-width:100%; overflow-wrap:anywhere; }
  .timer-card, .music-card, .photo-card { min-width:0; max-width:100%; }
  .story-copy, .story blockquote, .music-text, .opening-message, .footer p { overflow-wrap:anywhere; }
  .gallery { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}


/* =========================================================
   CORREÇÃO DA ROLAGEM LATERAL + REFINOS PARA CELULAR
   ========================================================= */

/* Trava de segurança: o navegador só aceita arrastar para cima/baixo
   (o gesto de pinça/zoom continua funcionando). */
html, body {
  max-width: 100%;
  overscroll-behavior-x: none;
}
body { touch-action: pan-y pinch-zoom; }

/* Mídia nunca passa da largura da tela */
img, video, canvas, svg, iframe { max-width: 100%; height: auto; }
.photo-card img, .memory-photo img { height: 100%; }
.photo-card video, .memory-photo video { height: 100%; }

/* Textos longos quebram em vez de empurrar a página */
h1, h2, h3, p, blockquote, .since, .timer-heading { overflow-wrap: break-word; }

/* No toque não existe "hover": evita a foto ficar presa levantada */
@media (hover: none) {
  .photo-card:hover { transform: none; border-color: var(--line-strong); }
  .play-button:hover { transform: none; }
}

/* Respeita as áreas seguras (notch / barra do iPhone) */
@supports (padding: max(0px)) {
  .topbar {
    padding-left: max(clamp(18px, 5vw, 62px), env(safe-area-inset-left));
    padding-right: max(clamp(18px, 5vw, 62px), env(safe-area-inset-right));
  }
  .footer { padding-bottom: max(50px, calc(30px + env(safe-area-inset-bottom))); }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 76px; }

  /* Título nunca maior que a tela, mesmo em 320px */
  .hero { min-height: 100svh; padding-bottom: 110px; }
  .hero h1 { font-size: clamp(44px, 15vw, 64px); letter-spacing: -1px; }
  .hero-subtitle { padding: 0 4px; }
  .since { line-height: 1.9; }
  .since .tiny-heart { margin: 0 5px; }
  .timer-card { width: 100%; }
  .timer-heading { font-size: 15px; margin-bottom: 22px; }
  .timer-footer { line-height: 1.6; }

  .story h2, .moments h2, .forever h2 { font-size: clamp(34px, 11vw, 46px); }
  .opening-script { font-size: clamp(54px, 18vw, 68px); }
  .opening-days { font-size: clamp(46px, 15vw, 58px); letter-spacing: -2px; }

  /* Alvos de toque confortáveis (mín. 44px) */
  .play-button { width: 44px; height: 44px; }
  .mobile-navigation a { min-height: 48px; }
  .scroll-cue, .opening-scroll { padding: 8px; }
  .album-ending a { padding: 10px 0 8px; }

  /* Menos efeitos pesados = rolagem mais fluida no celular */
  .timer-card, .music-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ambient { filter: blur(90px); }
}

@media (max-width: 360px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .moments { padding-left: 16px; padding-right: 16px; }
  .timer-card { padding: 22px 8px 16px; }
  .time-unit strong { font-size: 28px; }
  .topbar .brand { font-size: 14px; }
  .music-card { padding: 14px; gap: 12px; }
  .music-text h3 { font-size: 17px; }
}


/* Link da galeria da página inicial para o álbum completo */
.album-link {
  display: inline-block;
  margin-top: 38px;
  padding: 12px 4px 8px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--rose);
  font-size: 12px;
  letter-spacing: .6px;
  transition: color .25s ease, border-color .25s ease;
}
.album-link span { margin-left: 7px; }
.album-link:hover { color: var(--cream); border-color: var(--rose); }


/* =========================================================
   TRILHA SONORA EM TODAS AS PÁGINAS
   Botão flutuante de play/pause + transição suave entre páginas
   ========================================================= */
.trilha-flutuante {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
  z-index: 95;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(16, 14, 15, .72);
  color: var(--rose);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.trilha-flutuante:hover { background: var(--rose); color: #1a0f12; transform: scale(1.06); }
.trilha-flutuante .trilha-icone { transform: translateX(1px); }
.trilha-flutuante.is-playing { border-color: var(--rose); animation: trilha-pulso 2.6s ease-in-out infinite; }
.trilha-flutuante.is-playing .trilha-icone { transform: none; letter-spacing: 1px; }
@keyframes trilha-pulso {
  0%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 0 var(--wine-glow); }
  50%      { box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 0 0 9px rgba(111, 27, 38, 0); }
}

/* Troca de página sem recarregar: o conteúdo some e aparece suavemente */
body > :not([data-persist]) { transition: opacity .22s ease; }
body.pagina-saindo > :not([data-persist]) { opacity: 0; }
body.pagina-entrando > :not([data-persist]) { animation: pagina-entra .55s ease both; }
@keyframes pagina-entra { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .trilha-flutuante.is-playing { animation: none; }
  body > :not([data-persist]) { transition: none; }
  body.pagina-entrando > :not([data-persist]) { animation: none; }
}
