:root{
  --bg-1:#0b0b10;
  --red-1:#b3001b;
  --red-2:#ff1f3d;
  --card:#ffffff;
  --ink:#1c1c1f;
  --muted:#f7d7dc;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.22);
  --radius: 18px;
}

html, body{ height:100%; } /* ✅ (ADD) */

*{ margin:0; padding:0; box-sizing:border-box; }

body{
  min-height:100vh;
  font-family:'Pangolin', cursive;
  color:#fff;
  display:flex;
  justify-content:center;
  align-items:center;

  /* ✅ (FIX) libera rolagem vertical no celular */
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;

  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,31,61,.35), transparent 55%),
    radial-gradient(900px 500px at 85% 80%, rgba(179,0,27,.35), transparent 55%),
    linear-gradient(145deg, #07070b, #10101a);
}

body::before{
  content:"";
  position:fixed;
  inset:-40%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.08), transparent 40%);
  filter: blur(10px);
  pointer-events:none;
}

/* =========================
   (ADD) TRANSIÇÃO DE TELAS
========================= */
.screen-fade{
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 500px at 50% 45%, rgba(255,255,255,.14), rgba(0,0,0,.92));
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity .35s ease;
  backdrop-filter: blur(6px);
}
.screen-fade.on{ opacity: 1; }

/* =========================
   CÉU (ESTRELAS + ESTRELA CADENTE)
========================= */
.sky{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .55s ease;
  overflow: hidden;
}
.sky.active{ opacity: 1; }

.sky .star{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 10px rgba(255,255,255,.35);
  opacity: .85;
  animation: twinkle var(--tw, 2.8s) ease-in-out infinite;
}
@keyframes twinkle{
  0%, 100% { transform: scale(1); opacity: .25; }
  50%      { transform: scale(1.55); opacity: 1; }
}

.sky .shooting-star{
  position: absolute;
  top: var(--top, 25%);
  left: -25%;
  width: 240px;
  height: 2px;
  transform: rotate(var(--angle, -18deg));
  transform-origin: left center;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.98),
    rgba(255,255,255,0)
  );
  filter: drop-shadow(0 0 10px rgba(255,255,255,.35));
  animation: shoot var(--dur, 1.2s) ease-out forwards;
}
.sky .shooting-star::after{
  content:"";
  position:absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.6), rgba(255,255,255,0));
  opacity: .9;
}
@keyframes shoot{
  0%   { transform: translateX(0) rotate(var(--angle, -18deg)); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateX(150vw) rotate(var(--angle, -18deg)); opacity: 0; }
}

/* (ADD) vagalumes/partículas */
.sky .firefly{
  position:absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 0 18px rgba(255,255,255,.35);
  opacity: .0;
  animation: floaty var(--ffdur, 10s) ease-in-out infinite;
}
@keyframes floaty{
  0%   { transform: translate(0,0) scale(.8); opacity: 0; }
  10%  { opacity: .9; }
  50%  { transform: translate(var(--dx, 40px), var(--dy, -60px)) scale(1.2); opacity: .65; }
  100% { transform: translate(0,0) scale(.8); opacity: 0; }
}

/* =========================
   TELA 1
========================= */
.tela1{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:min(92vw, 520px);
  padding: clamp(18px, 3.2vmin, 28px);
  border-radius: var(--radius);
  text-align:center;
  z-index:10;
  background: linear-gradient(145deg, rgba(255,31,61,.92), rgba(179,0,27,.92));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}

.badge{
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  padding:.35rem .75rem;
  border-radius:999px;
  background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  margin-bottom: .75rem;
  font-size: .95rem;
}

.text-muted{
  color: rgba(255,255,255,.92);
  font-size: clamp(1.05rem, 2.2vmin, 1.25rem);
  line-height: 1.25;
  margin-bottom: .9rem;
}

.tela1 strong{ color:#fff; font-size: 1.25em; }

.tela1 img.custom{
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  margin: .75rem 0 1rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255,255,255,.22);
}

.actions{
  display:flex;
  flex-direction:column;
  gap: .6rem;
  margin-top: .6rem;
}

.hint{
  margin-top: .9rem;
  opacity:.9;
  font-size: .95rem;
}

/* =========================
   BOTÕES
========================= */
.btn{
  border:none;
  cursor:pointer;
  font-family:'Pangolin', cursive;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 1.12rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  user-select:none;
}
.btn-block{ width:100%; }

.btn-primary{
  background: linear-gradient(145deg, #ffffff, #ffe6ea);
  color: #b3001b;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,.28);
}

.btn-ghost{
  background: rgba(255,255,255,.12);
  color:#fff;
  border: 1px solid rgba(255,255,255,.22);
}
.btn-ghost:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.18);
}

.btn-danger{
  background: rgba(255,255,255,.10);
  color:#fff;
  border: 1px solid rgba(255,255,255,.20);
}
.btn-danger:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
}

/* =========================
   MODAL
========================= */
.modal{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  background: rgba(0,0,0,.55);
  z-index:999;
  padding: 18px;
}
.modal-content{
  width: min(92vw, 520px);
  background: rgba(18,18,26,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 18px;
  text-align:center;
  box-shadow: var(--shadow);
}
.modal-content p{
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

/* =========================
   CARTA / ENVELOPE
========================= */
.container{ position: relative; top: 0; transform: translateY(0); }

.envelope{
  position:relative;
  background:#eb7885;
  height:30vmin;
  width:48vmin;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* (ADD) shimmer no envelope */
.envelope::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(110deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.22),
    rgba(255,255,255,0)
  );
  transform: rotate(10deg);
  animation: shimmer 3.2s ease-in-out infinite;
  opacity: .65;
  pointer-events:none;
}
@keyframes shimmer{
  0%   { transform: translateX(-60%) rotate(10deg); opacity:.0; }
  20%  { opacity:.55; }
  55%  { opacity:.35; }
  100% { transform: translateX(60%) rotate(10deg); opacity:.0; }
}

.card{
  position:absolute;
  background: rgba(255,255,255,.96);
  height:25vmin;
  width:43vmin;
  left:2.5vmin;
  top:0;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  animation: slide-rev .2s ease-out;
}

.message{
  position:absolute;
  top: 4.6vmin;
  color: #c0122a;
  text-align:center;
  width: 85%;
  font-size: clamp(14px, 2.3vmin, 22px);
  line-height: 1.15;
  text-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* Pikachu (mantido) */
.pikachu{
  position:absolute;
  background:#f9ebaa;
  height:8vmin;
  width:10vmin;
  border-radius:40%;
  top:15vmin;
  display:flex;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.18));
}
.pikachu::before{
  content:'';
  position:absolute;
  background:#f9ebaa;
  height:6vmin;
  width:9vmin;
  border-radius:90% 90% 60% 60%;
  top:-4vmin;
  left:.5vmin;
}
.pikachu::after{
  content:'';
  position:absolute;
  background:transparent;
  height:1vmin;
  width:1vmin;
  top:2vmin;
  left:-1.5vmin;
  color:#4a4947;
  border-radius:50%;
  box-shadow:
    4vmin -3.5vmin, 8vmin -3.5vmin,
    2vmin -2vmin #fad598, 10vmin -2vmin #fad598,
    3vmin 5vmin #f9ebaa, 9.3vmin 5vmin #f9ebaa;
}
.smile{
  position:relative;
  background:transparent;
  height:1vmin;
  width:1vmin;
  border-radius:50%;
  border-bottom:.3vmin solid #4a4947;
  left:-5vmin;
  top:-1.3vmin;
}
.smile::before{
  position:absolute;
  content:'';
  background:transparent;
  height:1vmin;
  width:1vmin;
  border-radius:50%;
  border-bottom:.3vmin solid #4a4947;
  left:.7vmin;
}
.limbs{
  position:relative;
  width:0;
  height:0;
  border-left:1vmin solid transparent;
  border-right:1vmin solid transparent;
  border-bottom:6vmin solid #f9ebaa;
  border-radius:80%;
  top:-6vmin;
  left:1vmin;
  transform:rotate(-20deg);
}
.limbs::before{
  content:'';
  position:absolute;
  background:#f9ebaa;
  width:5vmin;
  height:2vmin;
  border-radius:40%;
  top:10vmin;
  left:4vmin;
  box-shadow:-1vmin 1.5vmin #f9ebaa;
}
.limbs::after{
  content:'';
  position:absolute;
  width:0;
  height:0;
  border-left:1vmin solid transparent;
  border-right:1vmin solid transparent;
  border-bottom:6vmin solid #f9ebaa;
  border-radius:80%;
  top:3vmin;
  left:5vmin;
  transform:rotate(40deg);
}
.heart{ position:relative; width:5vmin; height:4vmin; top:2vmin; left:.6vmin; }
.heart:before,
.heart:after{
  position:absolute;
  content:"";
  left:2.5vmin;
  top:0;
  width:2.5vmin;
  height:4vmin;
  background:#fc978b;
  border-radius:2.5vmin 2.5vmin 0 0;
  transform:rotate(-45deg);
  transform-origin:0 100%;
}
.heart:after{
  left:0;
  transform:rotate(45deg);
  transform-origin:100% 100%;
}
.arms{
  position:relative;
  background:#f9ebaa;
  width:4.2vmin;
  height:2vmin;
  border-radius:60% 60% 90% 60% / 50% 50% 90% 90%;
  top:3vmin;
  left:-5vmin;
}
.arms::after{
  content:'';
  position:absolute;
  background:#f9ebaa;
  width:4vmin;
  height:2vmin;
  border-radius:60% 60% 90% 60% / 50% 50% 90% 90%;
  left:5vmin;
  top:0;
}

.cover{
  position:absolute;
  height:0; width:0;
  border-bottom:15vmin solid #f5b5bb;
  border-left:24vmin solid transparent;
  border-right:24vmin solid transparent;
  top:15vmin;
  z-index:3;
}
.cover::after{
  position:absolute;
  content:'';
  border-left:24.5vmin solid #ffbbc1;
  border-bottom:15vmin solid transparent;
  border-top:15vmin solid transparent;
  top:-15vmin;
  left:-24vmin;
}
.cover::before{
  position:absolute;
  content:'';
  border-right:24.5vmin solid #ffbbc1;
  border-bottom:15vmin solid transparent;
  border-top:15vmin solid transparent;
  top:-15vmin;
  left:-0.5vmin;
}
.lid{
  position:absolute;
  height:0; width:0;
  border-top:15vmin solid #ff8896;
  border-left:24vmin solid transparent;
  border-right:24vmin solid transparent;
  top:0;
  transform-origin: top;
  animation: open-rev 2s;
}

.container:hover .lid{
  animation: open .55s;
  animation-fill-mode: forwards;
}
.container:hover .card{
  animation: slide .25s;
  animation-delay: .5s;
  animation-fill-mode: forwards;
}

/* (ADD) abre no toque (mobile) sem mexer em posições */
.container.open .lid{
  animation: open .55s;
  animation-fill-mode: forwards;
}
.container.open .card{
  animation: slide .25s;
  animation-delay: .5s;
  animation-fill-mode: forwards;
}

.shadow{
  position:relative;
  top:3vmin;
  border-radius:50%;
  opacity:.75;
  height:2vmin;
  width:48vmin;
  background:#e8c5d0;
  filter: blur(.2vmin);
}

.buttons{
  position:absolute;
  top:40vmin;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap: 14px;
  opacity:0;
  transition:opacity .45s ease-out;
}
.container:hover .buttons{ opacity:1; }
.container.open .buttons{ opacity:1; }
.buttons .btn{ font-size: clamp(14px, 2vmin, 18px); padding: 10px 18px; }

#btnNo:hover{
  transform: translateX(140px) translateY(80px) rotate(6deg);
  opacity: .1;
}

/* (ADD) dica de toque (some quando abrir) */
.tap-hint{
  position:absolute;
  left: 50%;
  top: calc(30vmin + 18px);
  transform: translateX(-50%);
  font-size: .95rem;
  opacity: .0;
  padding:.35rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease;
}
.container.mobile .tap-hint{
  opacity: .95;
  transform: translateX(-50%) translateY(0);
}
.container.open .tap-hint{ opacity: 0; transform: translateX(-50%) translateY(6px); }

/* =========================
   IMAGENS + POESIA
========================= */
.image-container{
  width: min(96vw, 980px);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  animation: fadeIn .55s ease-out;
}

.poetry{
  width: 100%;
  text-align:center;
  color: #fff;
  font-size: clamp(1.05rem, 2.2vmin, 1.45rem);
  line-height: 1.25;
  text-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.signature{ opacity:.9; margin-top: 6px; }

.images{
  width:100%;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

/* (ADD) estilo polaroid + rotação suave */
.image{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 10px solid rgba(255,255,255,.9);
  border-bottom-width: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  transform: rotate(var(--r, 0deg));
  cursor: zoom-in;
}
.image:hover{
  transform: translateY(-3px) scale(1.01) rotate(var(--r, 0deg));
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
  filter: brightness(1.03);
}

/* =========================
   (ADD) LIGHTBOX
========================= */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 9998;
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 18px;
  backdrop-filter: blur(8px);
}
.lightbox-inner{
  width: min(96vw, 980px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(18,18,26,.85);
  box-shadow: var(--shadow);
  position: relative;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.lightbox-img{
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}
.lightbox-cap{
  text-align:center;
  font-size: 1.05rem;
  opacity: .95;
}
.lb-close{ position:absolute; top: 10px; right: 10px; }
.lb-prev{ position:absolute; top: 50%; left: 10px; transform: translateY(-50%); }
.lb-next{ position:absolute; top: 50%; right: 10px; transform: translateY(-50%); }

/* =========================
   MEMORIAL
========================= */
.memorial{
  position:fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 560px);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.memorial-title{ color: #fff; font-size: 1.45rem; margin-bottom: 6px; }
.memorial-text{ color: rgba(255,255,255,.92); font-size: 1.05rem; line-height: 1.25; }
.memorial-actions{ margin-top: 10px; display:flex; flex-direction:column; gap: 8px; }

/* =========================
   CALENDÁRIO
========================= */
.calendar-container{
  width: min(94vw, 720px);
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.calendar-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.month-name{ font-size: 1.6rem; letter-spacing: .4px; }

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease;
}
.icon-btn:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
}

.calendar{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.weekday, .day{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 52px;
  border-radius: 14px;
  user-select:none;
}
.weekday{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 700;
}
.day{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.day:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}
.day.selected{
  background: linear-gradient(145deg, rgba(255,31,61,.95), rgba(179,0,27,.95));
  border-color: rgba(255,255,255,.22);
}
.day.highlighted{
  outline: 2px solid rgba(255,255,255,.40);
  background: rgba(255,255,255,.10);
}

/* Caixa de mensagem do dia */
.message-box{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: min(92vw, 360px);
  background: rgba(18,18,26,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  z-index: 20;
}
.message-content p{ color:#fff; font-size: 1.05rem; line-height: 1.25; }

/* (ADD) botão surpresa dentro da message-box */
.surprise-actions{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-top: 12px;
}

/* =========================
   LAYOUT: painel esquerdo + calendário
========================= */
.calendar-layout{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
  width: min(94vw, 980px);
}
@media (max-width: 820px){
  .calendar-layout{ grid-template-columns: 1fr; }
}

/* =========================
   PAINEL + GIRASSOL
========================= */
.sunflower-panel{
  position: relative;
  height: 420px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 1;
}

.panel-title{
  padding: 14px 14px 0;
  font-size: 1.25rem;
}
.panel-subtitle{
  padding: 2px 14px 0;
  opacity: .9;
}

.sunflower-ground{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.25));
}

.sunflower{
  position: absolute;
  left: 50%;
  bottom: 70px;
  width: 180px;
  height: 320px;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}

.sunflower-panel.active .sunflower{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stem{
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 220px;
  background: linear-gradient(180deg, #1f8a3a, #0f5c23);
  border-radius: 999px;
  transform-origin: bottom;
  transform: translateX(-50%) scaleY(0);
  animation: stemGrow .9s ease-out forwards;
  opacity: 0;
}
@keyframes stemGrow{
  0%   { transform: translateX(-50%) scaleY(0); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateX(-50%) scaleY(1); opacity: 1; }
}

.leaf{
  position: absolute;
  width: 70px;
  height: 36px;
  background: linear-gradient(145deg, #2ecb57, #158a34);
  border-radius: 0 999px 0 999px;
  opacity: 0;
  transform: scale(0.6);
  animation: leafPop .55s ease-out forwards;
  animation-delay: .55s;
}
.leaf-1{ left: 35px; bottom: 90px; transform: rotate(-12deg) scale(0.6); }
.leaf-2{ right: 35px; bottom: 120px; transform: rotate(12deg) scale(0.6); border-radius: 999px 0 999px 0; }
@keyframes leafPop{
  to{ opacity: 1; transform: scale(1); }
}

.head{
  position: absolute;
  left: 50%;
  bottom: 190px;
  width: 140px;
  height: 140px;
  transform: translateX(-50%) scale(0);
  opacity: 0;
  animation: headPop .65s cubic-bezier(.2,.9,.25,1.15) forwards;
  animation-delay: .85s;
}
@keyframes headPop{
  to{ transform: translateX(-50%) scale(1); opacity: 1; }
}

.petals{ position: absolute; inset: 0; }

.petals span{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 56px;
  background: linear-gradient(180deg, #ffe27a, #ffb400);
  border-radius: 999px;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-34px) scaleY(.2);
  opacity: 0;
  animation: petalOpen .5s ease-out forwards;
  animation-delay: 1.05s;
}
@keyframes petalOpen{
  to{
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(-34px) scaleY(1);
    opacity: 1;
  }
}

.petals span:nth-child(1){  --a: 0deg; }
.petals span:nth-child(2){  --a: 30deg; }
.petals span:nth-child(3){  --a: 60deg; }
.petals span:nth-child(4){  --a: 90deg; }
.petals span:nth-child(5){  --a: 120deg; }
.petals span:nth-child(6){  --a: 150deg; }
.petals span:nth-child(7){  --a: 180deg; }
.petals span:nth-child(8){  --a: 210deg; }
.petals span:nth-child(9){  --a: 240deg; }
.petals span:nth-child(10){ --a: 270deg; }
.petals span:nth-child(11){ --a: 300deg; }
.petals span:nth-child(12){ --a: 330deg; }

.center{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(circle at 35% 35%, #7a4a1f, #3a1f0c);
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  opacity: 0;
  animation: centerIn .45s ease-out forwards;
  animation-delay: 1.25s;
}
@keyframes centerIn{
  to{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.love-text{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) scale(.9);
  opacity: 0;
  font-size: 1.45rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  transition: opacity .5s ease, transform .5s ease;
}
.sunflower-panel.show-love .love-text{
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@keyframes glowPulse{
  0%, 100%{
    text-shadow:
      0 10px 30px rgba(0,0,0,.35),
      0 0 12px rgba(255,255,255,.28),
      0 0 22px rgba(255,31,61,.18);
    transform: translateX(-50%) scale(1);
  }
  50%{
    text-shadow:
      0 10px 30px rgba(0,0,0,.35),
      0 0 18px rgba(255,255,255,.55),
      0 0 34px rgba(255,31,61,.35);
    transform: translateX(-50%) scale(1.03);
  }
}
.sunflower-panel.show-love .love-text{
  animation: glowPulse 1.6s ease-in-out infinite;
}

@keyframes sway{
  0%   { transform: translateX(-50%) rotate(-1.2deg); }
  50%  { transform: translateX(-50%) rotate(1.2deg); }
  100% { transform: translateX(-50%) rotate(-1.2deg); }
}
.sunflower-panel.active .sunflower{
  animation: sway 3.8s ease-in-out infinite;
  animation-delay: 1.9s;
  transform-origin: 50% 100%;
}

/* =========================
   (ADD) UI DA MÚSICA
========================= */
.audio-ui{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(92vw, 420px);
  border-radius: var(--radius);
  background: rgba(18,18,26,.78);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  padding: 12px;
  z-index: 50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  animation: fadeIn .35s ease-out;
}
.audio-title{ font-size: .95rem; opacity:.9; }
.audio-track{ font-size: 1.15rem; }
.audio-controls{
  display:flex;
  align-items:center;
  gap: 8px;
}
.audio-volume{
  width: 120px;
}

/* =========================
   (ADD) TOAST
========================= */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9997;
  background: rgba(18,18,26,.86);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* =========================
   (ADD) CORAÇÕES / CONFETE
========================= */
.heart-pop{
  position: fixed;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  z-index: 9996;
  pointer-events:none;
  animation: heartFly .9s ease-out forwards;
}
.heart-pop::before,
.heart-pop::after{
  content:"";
  position:absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,31,61,.95);
}
.heart-pop::before{ left: -8px; top: 0; }
.heart-pop::after{ left: 0; top: -8px; }
@keyframes heartFly{
  0%   { opacity: 0; transform: translate(0,0) rotate(45deg) scale(.8); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--hx, 0px), var(--hy, -120px)) rotate(45deg) scale(1.2); }
}

/* =========================
   ANIMAÇÕES
========================= */
@keyframes open{ 100%{ transform: rotateX(180deg);} }
@keyframes slide{ 100%{ transform: translateY(-15vmin); z-index:2; } }
@keyframes open-rev{ from{ transform: rotateX(-180deg);} }
@keyframes slide-rev{ from{ transform: translateY(-15vmin);} }
@keyframes fadeIn{ from{opacity:0; transform: translateY(10px);} to{opacity:1; transform: translateY(0);} }

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 820px){
  .images{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message-box{
    left: 50%;
    right: auto;
    top: auto;
    bottom: 16px;
    transform: translateX(-50%);
  }
  .audio-ui{
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
@media (max-width: 420px){
  .tela1 img.custom{ width: 140px; height: 140px; }
  .weekday, .day{ height: 46px; border-radius: 12px; }
}

/* =========================
   (ADD) REDUZIR MOVIMENTO
========================= */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .sky{ display:none !important; }
}

/* =========================
   MOBILE FIX (não mexe no PC)
========================= */
@media (max-width: 820px){

  /* deixa o site “rolável” no celular quando tiver conteúdo */
  html, body{
    height: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* MEMORIAL: no celular vira bloco (não fica flutuando por cima) */
  .memorial{
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 12px auto 14px !important;
    width: min(92vw, 560px) !important;
  }

  /* Tela 19: adiciona “respiro” */
  #tela19{
    padding: 10px 0 26px;
  }

  /* Layout do calendário: já vira 1 coluna, mas a gente dá mais espaçamento */
  .calendar-layout{
    width: min(94vw, 980px);
    margin: 0 auto;
    gap: 14px;
  }

  /* Painel do girassol: melhora encaixe no celular */
  .sunflower-panel{
    margin: 0 auto;
    height: 360px;          /* pode ajustar 340–420 */
  }

  /* Calendário: centraliza e dá respiro */
  .calendar-container{
    margin: 0 auto 16px;
  }

  /* Caixa da mensagem do dia 19: fica confortável e com scroll interno */
  .message-box{
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 12px !important;
    transform: translateX(-50%) !important;

    width: min(92vw, 420px) !important;
    max-height: 70vh !important;
    overflow: auto !important;

    padding-bottom: 16px;
  }

  /* Botões da caixa: mais “tocáveis” */
  .surprise-actions .btn{
    padding: 14px 16px;
    font-size: 1.05rem;
  }
}
