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

html {
  overflow-x: hidden;
  overflow-x: clip;
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
  scroll-behavior: smooth;
}

html.letra-grande {
  font-size: 137.5%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked,
html:has(body.is-locked) {
  overflow: hidden;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.convite {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1.6rem 6rem;
}

.section {
  margin-top: 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: 0 6px 0 var(--btn-shadow);
}

.btn-primary:active {
  box-shadow: 0 2px 0 var(--btn-shadow);
  transform: translateY(4px);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-row {
  display: grid;
  gap: 0.9rem;
}

/* ---------- Envelope ---------- */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 1.5rem 1rem;
  overflow: hidden;
  background: var(--env-screen);
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.envelope-screen.is-gone {
  opacity: 0;
  visibility: hidden;
}

.envelope-kicker {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--env-text);
  max-width: 18ch;
}

.envelope-hint {
  font-size: 1rem;
  color: var(--env-text);
  opacity: 0.85;
}

.envelope-kicker,
.envelope-hint,
.envelope-screen > .btn {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.is-open .envelope-kicker,
.is-open .envelope-hint,
.is-open > .btn {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}

.env-cena {
  perspective: 1100px;
}

.env-inclina {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.env-flutua {
  animation: env-flutua 4.5s ease-in-out infinite;
}

.is-open .env-flutua {
  animation-play-state: paused;
}

@keyframes env-flutua {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-10px) rotate(1.2deg); }
}

.envelope {
  position: relative;
  display: block;
  width: min(84vw, 22rem);
  aspect-ratio: 1.45;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}

.env-sombra,
.env-back,
.env-letter,
.env-front,
.env-flap,
.env-nome,
.env-seal {
  position: absolute;
}

.env-sombra {
  left: 6%;
  right: 6%;
  bottom: -16%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 35, 10, 0.3), transparent);
}

.env-back {
  inset: 0;
  border-radius: 12px;
  background: var(--env-inner);
}

.env-letter {
  left: 6%;
  right: 6%;
  top: 6%;
  bottom: 5%;
  z-index: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.3);
  transition: transform 1.2s cubic-bezier(0.2, 0.85, 0.25, 1.08) 1.7s, border-radius 0.6s ease;
}

.carta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 7% 6% 30%;
  color: var(--ink);
  transition: opacity 0.35s ease;
}

.carta img {
  width: 30%;
  height: auto;
}

.carta-de {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.15;
}

.carta-sub {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.env-front {
  inset: 0;
  z-index: 2;
  border-radius: 12px;
  background: var(--env-color);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}

.env-front::before,
.env-front::after {
  content: "";
  position: absolute;
  inset: 0;
}

.env-front::before {
  clip-path: polygon(0 0, 50% 56%, 0 100%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.02));
}

.env-front::after {
  clip-path: polygon(100% 0, 50% 56%, 100% 100%);
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.02));
}

.env-flap {
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  z-index: 3;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.45, 0, 0.2, 1) 0.6s, z-index 0s linear 1.2s;
}

.flap-fora,
.flap-dentro {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flap-fora {
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, var(--env-flap) 30%, var(--env-flap-sombra, rgba(0, 0, 0, 0.12)) 160%), var(--env-flap);
}

/* O forro é visto depois que a aba gira para cima: o triângulo dele é desenhado
   invertido para, já girado, aparecer com a ponta para cima. */
.flap-dentro {
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  transform: rotateX(180deg);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 1.6px, transparent 2px) 0 0 / 12px 12px,
    var(--env-inner);
}

.is-open .env-flap {
  transform: rotateX(180deg);
  z-index: 0;
}

/* A carta sai inteira do envelope. */
.is-open .env-letter {
  transform: translateY(-108%);
}

.env-nome {
  left: 8%;
  right: 8%;
  bottom: 9%;
  z-index: 3;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.1rem);
  line-height: 1;
  text-align: left;
  color: var(--env-nome, var(--ink));
  clip-path: inset(0 100% 0 0);
}

.env-nome.is-escrito {
  animation: escreve-nome 1.4s 0.3s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}

@keyframes escreve-nome {
  to { clip-path: inset(0 -10% 0 0); }
}

.env-seal {
  left: 50%;
  top: 56%;
  z-index: 4;
  width: 4.6rem;
  height: 4.6rem;
  margin: -2.3rem 0 0 -2.3rem;
}

.env-seal::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--seal);
  opacity: 0;
  animation: pulsa 2.2s 2s ease-out infinite;
}

@keyframes pulsa {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

.selo-a,
.selo-b {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--seal);
  background:
    radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--seal) 60%, #fff) 0 10%, transparent 34%),
    radial-gradient(circle, var(--seal) 58%, color-mix(in srgb, var(--seal) 78%, #000) 62%, var(--seal) 70%, color-mix(in srgb, var(--seal) 85%, #000) 100%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.9s cubic-bezier(0.3, 0.6, 0.3, 1), opacity 0.7s ease 0.2s;
}

.selo-a { clip-path: polygon(0 0, 54% 0, 44% 28%, 58% 50%, 43% 74%, 52% 100%, 0 100%); }
.selo-b { clip-path: polygon(54% 0, 100% 0, 100% 100%, 52% 100%, 43% 74%, 58% 50%, 44% 28%); }

.selo-txt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--seal-ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease;
}

.is-open .env-seal::after { animation: none; opacity: 0; }
.is-open .selo-txt { opacity: 0; }
.is-open .selo-a { transform: translate(-30px, 46px) rotate(-38deg); opacity: 0; }
.is-open .selo-b { transform: translate(30px, 50px) rotate(34deg); opacity: 0; }

/* ---------- Contagem ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 0.2rem;
  border-radius: 16px;
  background: var(--card);
}

.cd-num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  margin-top: 0.35rem;
  /* Encolhe em tela estreita: "SEGUNDOS" passava da caixa no celular. */
  font-size: clamp(0.55rem, 2.7vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.cd-hoje {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
}

/* ---------- Aparecer ao rolar ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Botão de letra maior ---------- */
.letra-toggle {
  position: absolute;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: 1rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
}

.letra-toggle b {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  /* A abertura do envelope roda inteira (é um gesto único, pedido pelo toque); só ficam de fora
     as pétalas e o que se repete sozinho. Estes tempos valem no lugar da regra acima. */
  .envelope-screen {
    transition: opacity 0.9s ease, visibility 0.9s ease !important;
  }

  .envelope-screen .envelope-kicker,
  .envelope-screen .envelope-hint,
  .envelope-screen > .btn,
  .envelope-screen .selo-txt {
    transition: opacity 0.4s ease !important;
  }

  .envelope-screen .selo-a,
  .envelope-screen .selo-b {
    transition: opacity 0.6s ease !important;
  }

  .envelope-screen.is-open .selo-a,
  .envelope-screen.is-open .selo-b {
    transform: none;
  }

  .envelope-screen .env-flap {
    transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1) 0.4s, z-index 0s linear 0.95s !important;
  }

  .envelope-screen .env-letter {
    transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1) 1.4s !important;
  }
}

.cd-item {
  min-width: 0;
}

html.letra-grande .countdown {
  grid-template-columns: repeat(2, 1fr);
}

html.letra-grande .cd-label {
  font-size: 0.8rem;
}

@media (max-width: 359px) {
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .cd-label {
    font-size: 0.8rem;
  }
}

/* ---------- Confirmação ---------- */
.rsvp-form {
  display: grid;
  gap: 0.5rem;
}

.rsvp-form .btn-row {
  margin-top: 1rem;
}

.campo {
  display: block;
  font-weight: 800;
}

.input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6rem 1rem;
  border: 2px solid var(--input-border, rgba(0, 0, 0, 0.15));
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.rsvp-erro {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #FDE8E4;
  color: #8A2A1B;
  font-weight: 700;
}

.rsvp-feito {
  padding: 1.75rem 1.25rem 1rem;
  border-radius: 22px;
  background: var(--rsvp-feito-bg, var(--card));
  text-align: center;
}

.rsvp-feito-icone {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--btn);
  color: var(--btn-ink);
}

.rsvp-feito-icone .icon {
  width: 1.8rem;
  height: 1.8rem;
}

.rsvp-feito-titulo {
  margin: 0.75rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
}

.link-btn {
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  background: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.petalas i {
  position: absolute;
  top: -5vh;
  width: 14px;
  height: 20px;
  border-radius: 80% 0 80% 0;
  background: var(--petala, #E9A99A);
  opacity: 0.9;
  transform: scale(var(--s));
  animation: cai var(--d) var(--a) cubic-bezier(0.3, 0.2, 0.6, 1) forwards;
}

.petalas i:nth-child(3n) { background: var(--petala-2, #F4D3C4); }
.petalas i:nth-child(4n) { background: var(--petala-3, #C9766A); border-radius: 50% 50% 50% 0; }

@keyframes cai {
  0% { transform: translate(0, 0) rotate(0) scale(var(--s)); opacity: 0; }
  10% { opacity: 0.95; }
  100% { transform: translate(var(--x), 112vh) rotate(var(--g)) scale(var(--s)); opacity: 0.85; }
}

/* ---------- Contagem: número que vira ---------- */
.cd-num.cd-vira {
  animation: vira 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes vira {
  0% { transform: translateY(-40%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* ---------- Linha que se desenha ao rolar ---------- */
.convite {
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}

.convite > .linha-mapa {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 0;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}

.convite > :not(.linha-mapa):not(.linha-ponta) {
  position: relative;
  z-index: 1;
}

.linha-trilho {
  fill: none;
  stroke: var(--linha-trilho, rgba(0, 0, 0, 0.08));
  stroke-width: 2;
}

.linha-traco {
  fill: none;
  stroke: var(--linha, var(--accent));
  stroke-width: var(--linha-espessura, 2.2);
  stroke-linecap: round;
}

.convite > .linha-ponta {
  will-change: transform;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--linha, var(--accent));
  box-shadow: 0 0 0 4px var(--linha-brilho, rgba(0, 0, 0, 0.08));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .env-nome { clip-path: none; }
  .petalas { display: none; }
}

/* ---------- Bonequinhos no fim da linha ---------- */
.rodape .bonecos {
  display: block;
  width: min(62%, 14rem);
  height: auto;
  margin: 0 auto 1.25rem;
  clip-path: inset(0 0 100% 0);
}

.rodape.is-in .bonecos {
  animation: desenha-bonecos 2.2s 0.25s cubic-bezier(0.5, 0, 0.3, 1) forwards;
}

@keyframes desenha-bonecos {
  to { clip-path: inset(0 0 -2% 0); }
}

@media (prefers-reduced-motion: reduce) {
  .rodape .bonecos { clip-path: none; }
}

/* Em tela de toque (iPhone principalmente) o balanço contínuo junto com o 3D da aba faz o
   envelope tremer. Lá ele fica parado; o anel do selo é que chama o toque. */
@media (hover: none), (pointer: coarse) {
  .env-flutua {
    animation: none;
  }

  .env-inclina {
    transform: none;
    transition: none;
  }
}


/* ---------- Envelope em SVG: substitui os triângulos chapados ---------- */
.envelope svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.envelope .env-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.envelope[data-montado] .env-front {
  overflow: hidden;
  background: none;
  clip-path: none;
}

.envelope[data-montado] .env-front::before,
.envelope[data-montado] .env-front::after {
  display: none;
}

.envelope[data-montado] .flap-fora,
.envelope[data-montado] .flap-dentro {
  clip-path: none;
  background: none;
  border-radius: 0;
}

.envelope[data-montado] .flap-fora {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.env-sombra-aba {
  transition: opacity 0.4s ease 0.5s;
}

.is-open .env-sombra-aba {
  opacity: 0;
}

.envelope[data-montado] .env-seal {
  width: 5.6rem;
  height: 5.6rem;
  margin: -2.8rem 0 0 -2.8rem;
}

.envelope[data-montado] .selo-a,
.envelope[data-montado] .selo-b {
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.envelope[data-montado] .selo-txt {
  display: none;
}

.envelope[data-montado] .env-seal::after {
  inset: 10%;
}


/* ---------- Carta dobrada em três que se desdobra ---------- */
.carta-capa {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    var(--paper);
  color: var(--ink);
  text-align: center;
}

.capa-selo {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1.5px solid var(--accent, var(--coral));
  border-radius: 50%;
  outline: 1px solid var(--accent, var(--coral));
  outline-offset: 3px;
  color: var(--accent, var(--coral));
  font-family: Lora, Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.capa-titulo {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
}

.capa-sub {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.dobra {
  position: fixed;
  z-index: 6;
  perspective: 1600px;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  pointer-events: none;
}

.painel {
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(100% / 3 + 0.5px);
  transform-style: preserve-3d;
}

.p-topo { top: 0; transform-origin: 50% 100%; transform: translateZ(1px) rotateX(-180deg); }
.p-meio { top: calc(100% / 3); }
.p-base { top: calc(200% / 3); transform-origin: 50% 0; transform: translateZ(0.5px) rotateX(180deg); }

.face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.face.verso {
  transform: rotateX(180deg);
}

.face.frente {
  box-shadow: 0 22px 40px -24px rgba(40, 25, 10, 0.45);
}

/* Vincos das dobras no papel aberto. */
.p-meio .frente::before,
.p-meio .frente::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 3px;
  transition: opacity 0.5s ease;
}

.p-meio .frente::before {
  top: -1px;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.5));
}

.p-meio .frente::after {
  bottom: -1px;
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.1));
}

.p-topo .frente { background-image: linear-gradient(rgba(0, 0, 0, 0.03), transparent 30%); }
.p-base .frente { background-image: linear-gradient(transparent 70%, rgba(0, 0, 0, 0.03)); }

/* Folha única que dá o zoom final: tem o tamanho da tela e começa reduzida sobre a carta. */
.dobra-plana {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 7;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 55px -32px rgba(40, 25, 10, 0.45);
  transform-origin: 50% 50%;
  pointer-events: none;
}

/* ---------- A carta é a capa em miniatura ---------- */
.carta-pagina {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  transform-origin: 0 0;
  pointer-events: none;
}

.carta-pagina .convite {
  padding-bottom: 0;
}
