/* ══════════════════════════════════════════════════════════════
   STYLE.CSS  ·  Site Romântico – K-Drama Aesthetic
   Autor: Claude (criado com muito amor 💖)
   ══════════════════════════════════════════════════════════════ */

/* ─── 1. VARIÁVEIS CSS & RESET ─────────────────────────────── */
:root {
  /* Paleta rosa pastel / lilás */
  --rose-50:    #fff1f4;
  --rose-100:   #ffe4ec;
  --rose-200:   #ffb3cc;
  --rose-300:   #ff85b0;
  --rose-400:   #ff4d87;
  --rose-500:   #e8195f;
  --blush:      #ffd6e5;
  --lavender:   #ede0ff;
  --lilac:      #c9a7f5;
  --lilac-deep: #9b59c4;
  --cream:      #fffaf6;
  --warm-white: #fff7fb;
  --petal:      #fce7f3;

  /* Texto */
  --text-dark:    #2d1225;
  --text-medium:  #7b3553;
  --text-soft:    #b06080;
  --text-light:   #d4a0b8;

  /* Tipografia */
  --font-romantic: 'Dancing Script', cursive;          /* títulos manuscritos */
  --font-elegant:  'Cormorant Garamond', serif;        /* corpo elegante */
  --font-korean:   'Gowun Batang', serif;              /* estilo dorama */

  /* Espaçamento */
  --section-pad: clamp(80px, 12vw, 140px);
  --container:   1100px;

  /* Sombras */
  --shadow-soft: 0 8px 40px rgba(232, 100, 150, 0.15);
  --shadow-card: 0 20px 60px rgba(180, 60, 120, 0.12);
  --glow-rose:   0 0 30px rgba(255, 133, 176, 0.35);

  /* Transições */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-elegant);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.8;
  overflow-x: hidden;
  /* Cursor personalizado elegante */
  cursor: default;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Scrollbar estilizada */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--petal); }
::-webkit-scrollbar-thumb { background: var(--rose-300); border-radius: 3px; }


/* ─── 2. CANVAS (Three.js + Sakura) ────────────────────────── */

/* Hero canvas: ocupa toda a tela, fica atrás de tudo */
#hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease;
}

/* Sakura canvas: sobreposição global, pétalas caindo */
#sakura-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}


/* ─── 3. LAYOUT BASE ─────────────────────────────────────────── */

.section {
  position: relative;
  z-index: 2;     /* fica acima dos canvas */
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ─── 4. CABEÇALHOS DE SEÇÃO ─────────────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: clamp(50px, 7vw, 80px);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-korean);
  font-size: 0.85em;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  padding: 6px 20px;
  border: 1px solid var(--lilac);
  border-radius: 50px;
  margin-bottom: 20px;
  background: rgba(237, 224, 255, 0.5);
}

.section-title {
  font-family: var(--font-romantic);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-family: var(--font-elegant);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-soft);
  font-style: italic;
}


/* ─── 5. HERO SECTION ────────────────────────────────────────── */

.hero-section {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad) 20px;
  /* Gradiente radial suave como halo de luz */
  background: radial-gradient(
    ellipse 80% 80% at 50% 40%,
    rgba(255, 214, 229, 0.6) 0%,
    rgba(255, 240, 248, 0.4) 40%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-korean);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  letter-spacing: 0.4em;
  color: var(--lilac-deep);
  margin-bottom: 28px;
  opacity: 0;           /* GSAP vai animar */
  transform: translateY(20px);
}

.hero-title {
  font-family: var(--font-romantic);
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-dark);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--rose-400) 0%, var(--lilac-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--font-elegant);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-medium);
  font-style: italic;
  line-height: 1.9;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
}

/* Indicador de scroll */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  color: var(--text-soft);
  font-family: var(--font-korean);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
}

.scroll-indicator {
  width: 28px;
  height: 44px;
  border: 1.5px solid var(--rose-300);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 5px;
  height: 5px;
  background: var(--rose-400);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%       { transform: translateY(16px); opacity: 0; }
}

/* Flores de canto */
.corner-deco {
  position: absolute;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  opacity: 0.55;
  animation: floatPetal 5s ease-in-out infinite;
  pointer-events: none;
}
.corner-tl { top: 6%; left: 4%; animation-delay: 0s; }
.corner-tr { top: 6%; right: 4%; animation-delay: 1.5s; }
.corner-bl { bottom: 10%; left: 4%; animation-delay: 0.8s; }
.corner-br { bottom: 10%; right: 4%; animation-delay: 2.2s; }

@keyframes floatPetal {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(8deg); }
}


/* ─── 6. NOSSA HISTÓRIA – TIMELINE ──────────────────────────── */

.historia-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(
    180deg,
    var(--cream) 0%,
    var(--rose-50) 50%,
    var(--cream) 100%
  );
}

/* Linha central vertical */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 260px;
  bottom: 60px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--rose-200) 20%,
    var(--rose-200) 80%,
    transparent
  );
  transform: translateX(-50%);
  z-index: 0;
}

.timeline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  opacity: 0;               /* GSAP vai animar */
  transform: translateX(0); /* JS define -60px ou 60px */
}

/* Lado esquerdo: card à esquerda, dot à direita */
.tl-left {
  flex-direction: row;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
}

/* Lado direito: dot à esquerda, card à direita */
.tl-right {
  flex-direction: row-reverse;
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
}

/* Ponto da timeline */
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--warm-white);
  border: 2px solid var(--rose-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--glow-rose);
  z-index: 2;
  transition: transform 0.3s var(--ease-spring);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.2);
}

/* Cards da timeline */
.tl-card {
  flex: 0 0 auto;
  width: clamp(280px, 38%, 420px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 179, 204, 0.4);
  border-radius: 20px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.tl-card:hover {
  box-shadow: 0 30px 80px rgba(180, 60, 120, 0.18);
}

.tl-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 133, 176, 0.12) 0%,
    transparent 65%
  );
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}

.tl-card:hover .tl-card-glow { opacity: 1; }

.tl-tag {
  display: inline-block;
  font-family: var(--font-korean);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lilac-deep);
  margin-bottom: 14px;
  padding: 4px 14px;
  background: var(--lavender);
  border-radius: 50px;
}

.tl-card h3 {
  font-family: var(--font-romantic);
  font-size: 1.45rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.tl-card p {
  font-family: var(--font-elegant);
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.85;
  font-style: italic;
}

/* Decoração de canto no card */
.tl-card::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255, 179, 204, 0.2), transparent);
  border-radius: 50%;
}


/* ─── 7. SLIDESHOW DE FOTOS ──────────────────────────────────── */

.fotos-section {
  padding: var(--section-pad) 0 0;
  background: var(--warm-white);
}

/* Wrapper do slideshow */
.slideshow-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  /* Arredondamento e sombra cinematográfica */
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(180, 60, 120, 0.18),
    0 0 0 1px rgba(255, 179, 204, 0.25);
}

/* Slide container */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;   /* proporção retrato, bonita para fotos de celular */
  background: var(--text-dark);
  overflow: hidden;
}

@media (min-width: 700px) {
  .slideshow { aspect-ratio: 4 / 3; }
}

/* Cada slide */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide.leaving {
  opacity: 0;
  z-index: 0;
}

/* Foto ocupa o slide inteiro, com cover */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Ken Burns: leve zoom suave */
  animation: kenBurns 8s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0%   { transform: scale(1);    object-position: center 20%; }
  100% { transform: scale(1.06); object-position: center 50%; }
}

/* Gradiente de baixo para a legenda */
.slideshow::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(30, 8, 22, 0.72) 0%,
    rgba(30, 8, 22, 0.15) 70%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Legenda flutuante */
.slide-legend {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 28px 70px 72px;
  font-family: var(--font-romantic);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.93);
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  transition: opacity 0.5s ease;
  min-height: 60px;
}

/* Botões de navegação */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background 0.25s, transform 0.25s var(--ease-spring);
  cursor: pointer;
}

.slide-btn:hover {
  background: rgba(232, 25, 95, 0.55);
  transform: translateY(-50%) scale(1.12);
}

.slide-prev { left: 14px; }
.slide-next { right: 14px; }

.slide-btn svg {
  width: 22px; height: 22px;
}

/* Pontos indicadores */
.slide-dots {
  position: absolute;
  bottom: 44px;
  left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.slide-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease-spring), width 0.3s;
}

.slide-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
  transform: none;
}

/* ─── 7b. SEÇÃO DE DESCULPAS ─────────────────────────────────── */

.desculpas-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(
    180deg,
    var(--warm-white) 0%,
    var(--rose-50) 40%,
    var(--lavender) 100%
  );
}

.desculpas-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 179, 204, 0.35);
  border-radius: 28px;
  padding: clamp(40px, 7vw, 80px) clamp(28px, 6vw, 72px);
  text-align: center;
  box-shadow:
    0 2px 0 rgba(255, 140, 180, 0.18),
    0 30px 80px rgba(180, 60, 120, 0.13);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
}

/* Halo de luz no fundo */
.desculpas-card::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 179, 204, 0.22) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.dc-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 20px;
  animation: floatPetal 4s ease-in-out infinite;
}

.dc-title {
  font-family: var(--font-romantic);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 36px;
  font-weight: 600;
  line-height: 1.2;
}

/* Texto das desculpas */
.dc-text {
  max-width: 560px;
  margin: 0 auto;
}

.dc-line {
  font-family: var(--font-elegant);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-medium);
  line-height: 2;
  font-style: italic;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(18px);
}

.dc-emph {
  font-size: clamp(1.1rem, 1.9vw, 1.28rem) !important;
  color: var(--text-dark) !important;
  font-weight: 500;
}

.dc-emph em {
  font-style: italic;
  color: var(--rose-500);
  font-style: normal;
}

.dc-final {
  font-family: var(--font-elegant) !important;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem) !important;
  line-height: 2.2 !important;
  color: var(--text-dark) !important;
  font-style: italic !important;
  border-left: 2px solid var(--rose-300);
  padding-left: 20px;
  text-align: left;
  margin-top: 8px;
}

.dc-divider {
  font-size: 1rem;
  letter-spacing: 0.6em;
  color: var(--rose-300);
  margin: 26px 0;
  opacity: 0;
  transition: opacity 0.5s;
}

.dc-divider.visible { opacity: 1; }

.dc-sig {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 179, 204, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-family: var(--font-elegant);
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.95rem;
  opacity: 0;
}

.dc-sig-name {
  font-family: var(--font-romantic);
  font-size: 1.6rem;
  font-style: normal;
  color: var(--text-dark);
}

.dc-flowers {
  margin-top: 24px;
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  opacity: 0;
  animation: floatFlowers 4s ease-in-out infinite;
}


/* ─── 8. CARTA INTERATIVA ────────────────────────────────────── */

.carta-section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

/* Fundo degradê suave de fundo */
.carta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%,
      rgba(237, 224, 255, 0.5) 0%,
      rgba(255, 214, 229, 0.3) 50%,
      transparent 80%),
    var(--lavender);
  z-index: 0;
}

.carta-section .container-narrow { position: relative; z-index: 1; }

/* Papel da carta */
.letter-wrap {
  perspective: 1200px;
}

.letter-paper {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  padding: clamp(36px, 6vw, 72px) clamp(32px, 6vw, 70px);
  position: relative;
  box-shadow:
    0 2px 0 rgba(255, 140, 180, 0.2),
    0 4px 8px rgba(200, 80, 140, 0.08),
    0 30px 80px rgba(180, 60, 120, 0.12),
    inset 0 0 60px rgba(255, 230, 242, 0.3);
  border: 1px solid rgba(255, 179, 204, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px) rotateX(8deg);
}

/* Linhas de papel no fundo */
.paper-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 39px,
    rgba(255, 179, 204, 0.08) 39px,
    rgba(255, 179, 204, 0.08) 40px
  );
  background-position: 0 80px;
  pointer-events: none;
  z-index: 0;
}

.letter-top-deco {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.letter-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-200), transparent);
}

.letter-date {
  font-family: var(--font-korean);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--text-light);
  margin-bottom: 6px;
  position: relative; z-index: 1;
}

.letter-salut {
  font-family: var(--font-romantic);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 24px;
  position: relative; z-index: 1;
}

.letter-body-wrap {
  position: relative;
  z-index: 1;
  min-height: 180px;
  margin-bottom: 36px;
}

.letter-body-text {
  font-family: var(--font-elegant);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--text-medium);
  line-height: 2;
  font-style: italic;
  white-space: pre-wrap;
}

.letter-cursor {
  display: inline-block;
  color: var(--rose-400);
  font-weight: 300;
  animation: cursorBlink 0.85s step-end infinite;
  margin-left: 1px;
}

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

.letter-sig {
  text-align: right;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255, 179, 204, 0.25);
  padding-top: 24px;
  margin-top: 16px;
}

.letter-sig p {
  font-family: var(--font-elegant);
  font-style: italic;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.sig-name {
  font-family: var(--font-romantic);
  font-size: 1.5rem !important;
  color: var(--text-dark) !important;
  font-style: normal !important;
  margin-top: 4px;
}

/* Selo de cera */
.wax-seal {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  opacity: 0.8;
  animation: sealPulse 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes sealPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.08); }
}


/* ─── 9. POEMA FINAL ────────────────────────────────────────── */

.poema-section {
  padding: var(--section-pad) 0 calc(var(--section-pad) * 1.5);
  background: linear-gradient(
    180deg,
    var(--cream) 0%,
    var(--petal) 40%,
    var(--lavender) 100%
  );
  text-align: center;
}

.poem-block {
  padding: clamp(30px, 5vw, 60px) 0;
}

.poem-line {
  font-family: var(--font-elegant);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--text-dark);
  line-height: 2;
  font-style: italic;
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: 2px;
}

.poem-gap { margin-top: 24px; }

.poem-emph {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--rose-500);
  font-weight: 500;
  margin-top: 24px;
}

.poem-climax {
  font-family: var(--font-romantic);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  font-style: normal;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--rose-400), var(--lilac-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.poem-ornament {
  font-size: 1rem;
  letter-spacing: 0.6em;
  color: var(--rose-300);
  margin: 32px 0;
  opacity: 0;
}

/* Encerramento do site */
.site-ending {
  margin-top: clamp(60px, 8vw, 100px);
  opacity: 0;
  transform: translateY(30px);
  text-align: center;
}

.heartbeat-emoji {
  font-size: clamp(2.5rem, 5vw, 4rem);
  display: block;
  margin: 0 auto 24px;
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.18); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.1); }
  56%       { transform: scale(1); }
}

.ending-tagline {
  font-family: var(--font-romantic);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text-dark);
  margin-bottom: 12px;
}

.ending-sub {
  font-family: var(--font-elegant);
  font-size: 1.05rem;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 28px;
}

.ending-flowers {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  letter-spacing: 0.5em;
  opacity: 0.7;
  animation: floatFlowers 4s ease-in-out infinite;
}

@keyframes floatFlowers {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}


/* ─── 10. MUSIC PLAYER ──────────────────────────────────────── */

.music-player {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.music-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-400), var(--lilac-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 6px 24px rgba(232, 25, 95, 0.35),
    0 0 0 0 rgba(232, 25, 95, 0.25);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  overflow: hidden;
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow:
    0 10px 30px rgba(232, 25, 95, 0.4),
    0 0 0 8px rgba(232, 25, 95, 0.12);
}

.music-btn:active { transform: scale(0.96); }

.music-icon {
  width: 22px; height: 22px;
  color: #fff;
  position: relative; z-index: 1;
}

/* Notas musicais flutuantes */
.music-note {
  position: absolute;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
}

/* Ondas de ripple atrás do botão (mostram quando tocando) */
.music-ripple {
  position: absolute;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 25, 95, 0.3);
  animation: rippleOut 3s ease-out infinite;
  opacity: 0;
}

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }

@keyframes rippleOut {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(2.4); opacity: 0; }
}

.music-player.playing .music-ripple { opacity: 1; }

.music-label {
  font-family: var(--font-korean);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  text-align: center;
}

/* Notas musicais voando (classe adicionada via JS) */
.music-player.playing .music-note {
  animation: floatNote 2.5s ease-in-out infinite;
}
.note-1 { animation-delay: 0s !important; top: -5px; left: 2px; }
.note-2 { animation-delay: 0.8s !important; top: -8px; right: 4px; }
.note-3 { animation-delay: 1.6s !important; top: -3px; left: 50%; }

@keyframes floatNote {
  0%   { transform: translateY(0) scale(0.8); opacity: 0; }
  30%  { opacity: 0.9; }
  100% { transform: translateY(-35px) scale(1.2); opacity: 0; }
}


/* ─── 11. RESPONSIVIDADE ────────────────────────────────────── */

@media (max-width: 900px) {
  /* Timeline: empilha verticalmente */
  .timeline-line { display: none; }

  .timeline-item,
  .tl-left,
  .tl-right {
    flex-direction: column;
    padding: 0;
    justify-content: flex-start;
  }

  .tl-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .timeline-dot {
    position: static;
    transform: none;
    margin: 0 auto 16px;
  }

  .timeline-item:hover .timeline-dot {
    transform: scale(1.2);
  }

  /* Galeria: 2 colunas */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  /* Galeria: 1 coluna */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide { grid-column: span 1; }

  .gallery-inner { height: 220px; }
  .gi-4 { height: 220px; }

  /* Music player menor */
  .music-btn { width: 52px; height: 52px; }
  .music-ripple { width: 52px; height: 52px; }

  /* Poem */
  .poem-line { font-size: 1rem; }
  .poem-climax { font-size: 1.6rem; }

  /* Letter */
  .letter-paper { padding: 28px 22px; }
}


/* ─── 12. UTILITÁRIOS & ACESSIBILIDADE ──────────────────────── */

/* Reduz movimento se o usuário preferir */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #hero-canvas, #sakura-canvas { display: none; }
}

/* Focus visível para acessibilidade */
button:focus-visible {
  outline: 2px solid var(--rose-400);
  outline-offset: 3px;
}

/* Seleção de texto estilizada */
::selection {
  background: var(--rose-200);
  color: var(--text-dark);
}
