:root {
  --bg: #120814;
  --bg-2: #210d24;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --pink: #ff4f8b;
  --pink-2: #ff8fbd;
  --purple: #9b5cff;
  --text: #fff7fb;
  --muted: #dac2d1;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 139, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(155, 92, 255, 0.22), transparent 32%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

.bg-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: .45;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  background: var(--pink);
  top: 10%;
  left: -120px;
}

.bg-glow-2 {
  background: var(--purple);
  bottom: 10%;
  right: -120px;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  margin: 32px 0;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 79, 139, .22), transparent 35%),
    linear-gradient(135deg, #180818, #050106 70%);
  transition: opacity .65s ease, visibility .65s ease;
}

.start-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.start-card {
  width: min(460px, 100%);
  text-align: center;
  padding: 42px 28px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  animation: pulseIn 1s ease both;
}

.start-card h1 {
  margin: 12px 0;
  font-family: 'Pacifico', cursive;
  font-size: clamp(3rem, 12vw, 5.4rem);
  color: var(--pink-2);
  text-shadow: 0 0 24px rgba(255, 79, 139, .55);
}

.start-card p,
.start-card small {
  color: var(--muted);
  line-height: 1.6;
}

.start-card small {
  display: block;
  margin-top: 16px;
}

.mini-label,
.pill,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 143, 189, .28);
  border-radius: 999px;
  background: rgba(255, 79, 139, .12);
  color: #ffd2e3;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 15px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(255, 79, 139, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 79, 139, .45);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 44px;
}

.brand {
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 1.2rem;
}

.brand span {
  margin: 0 6px;
  color: var(--pink-2);
}

.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr .85fr;
  align-items: center;
  gap: 42px;
}

.hero h1,
.section-head h2,
.timer-section h2,
.stats h2,
.timeline h2,
.letter h2 {
  margin-top: 16px;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.hero p,
.section-head p,
.timer-section p,
.timeline-item p,
.letter p {
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.03rem;
}

.hero-btn {
  margin-top: 30px;
}

.phone-preview {
  position: relative;
  width: min(360px, 100%);
  margin-left: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 44px;
  background: linear-gradient(165deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-notch {
  width: 88px;
  height: 20px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.5);
}

.photo-stack {
  display: grid;
  gap: 12px;
}

.photo-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .18);
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,.08);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card-2,
.photo-card-3 {
  display: none;
}

.phone-caption {
  display: grid;
  gap: 5px;
  margin-top: 15px;
  text-align: center;
}

.phone-caption strong {
  font-size: 1.2rem;
}

.phone-caption span {
  color: var(--muted);
  font-size: .92rem;
}

.timer-section {
  text-align: center;
}

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

.time-box,
.stat-card {
  padding: 24px 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
}

.time-box strong,
.stat-card strong {
  display: block;
  font-size: clamp(1.7rem, 5vw, 3.2rem);
  letter-spacing: -.06em;
  background: linear-gradient(135deg, #fff, var(--pink-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.time-box span,
.stat-card span {
  color: var(--muted);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.wrapped-player {
  max-width: 520px;
  margin: 0 auto;
}

.wrapped-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(30, 215, 96, .14), transparent 35%),
    linear-gradient(145deg, rgba(255, 79, 139, .18), rgba(155, 92, 255, .12));
}

.wrapped-image-wrap {
  padding: 18px 18px 0;
}

.wrapped-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.wrapped-info {
  padding: 24px;
}

.wrapped-info span {
  color: #c7ffdd;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.wrapped-info h3 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 6vw, 3rem);
  letter-spacing: -.06em;
}

.wrapped-info p {
  margin-top: 12px;
  color: #f4ddec;
  line-height: 1.65;
}

.wrapped-controls {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.wrapped-controls button {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 2rem;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}

.dot.active {
  background: linear-gradient(135deg, var(--pink), var(--pink-2));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.timeline-item {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255,255,255,.075);
}

.timeline-item span {
  color: var(--pink-2);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.timeline-item h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.letter-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--border);
}

.letter-card strong {
  display: block;
  margin-top: 20px;
  color: var(--pink-2);
  font-size: 1.2rem;
}

.footer {
  padding: 28px 0 42px;
  text-align: center;
  color: var(--muted);
}

.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.heart {
  position: absolute;
  bottom: -30px;
  color: rgba(255, 143, 189, .75);
  animation: floatHeart linear forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatHeart {
  to {
    transform: translateY(-110vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes pulseIn {
  from {
    opacity: 0;
    transform: scale(.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 20px, 620px);
  }

  .section {
    padding: 24px;
    border-radius: 28px;
  }

  .topbar,
  .hero-content {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-content {
    gap: 28px;
  }

  .phone-preview {
    margin: 0 auto;
    transform: none;
  }

  .timer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .section-head h2,
  .timer-section h2,
  .stats h2,
  .timeline h2,
  .letter h2 {
    letter-spacing: -.05em;
  }
}


/* ==========================================================================
   AJUSTES ESPECÍFICOS PARA SMARTPHONES (iPhones e Androids - até 480px)
   ========================================================================== */
@media (max-width: 480px) {
  /* Reduz o padding das seções para aproveitar melhor o espaço da tela */
  .section {
    padding: 20px 16px;
    border-radius: 20px;
    margin: 16px 0;
  }

  .app-shell {
    width: calc(100% - 16px);
  }

  /* Ajustes na tela de início */
  .start-card {
    padding: 32px 16px;
  }

  .start-card h1 {
    font-size: 2.8rem; /* Garante que o título não quebre em telas muito finas */
  }

  /* Centralizar o cabeçalho fica mais harmonioso no celular */
  .topbar {
    align-items: center;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero p {
    text-align: center;
  }

  /* Botões ocupando a largura total (ou quase) facilitam o toque (Touch Targets) */
  .primary-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
  }

  /* Ajustes no cronômetro para não espremer os números e textos */
  .time-box {
    padding: 16px 8px;
  }

  .time-box strong {
    font-size: 1.8rem; 
  }

  /* Ajustes na seção do Wrapped */
  .wrapped-info {
    padding: 16px;
    text-align: center;
  }

  .wrapped-info h3 {
    font-size: 1.6rem;
  }

  /* Controles menores para caber lado a lado com os pontinhos */
  .wrapped-controls {
    gap: 8px;
    grid-template-columns: 44px 1fr 44px;
  }

  .wrapped-controls button {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .dot {
    width: 24px; /* Diminui a largura dos pontos de navegação */
  }

  /* Ajustes na linha do tempo */
  .timeline-item {
    padding: 16px;
    border-radius: 18px;
  }

  .timeline-item h3 {
    font-size: 1.15rem;
  }
}

/* Pequena correção para o seu media query existente de 860px */
@media (max-width: 860px) {
  /* Limita a largura do celular fake para não ficar gigante em tablets */
  .phone-preview {
    max-width: 320px;
  }
}