/* fontes hospedadas junto com o site */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/Caveat-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/Caveat-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Patrick Hand'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/PatrickHand-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #fffaee;
  --paper-2: #fdfbf7;
  --ink: #1c1c1c;
  --ink-soft: #55524c;
  --ink-faint: #8a857c;
  --accent: #a9d6f0;      /* azul bebê */
  --danger: #f47664;
  --ok: #3d7a4f;
  --sketch: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --sketch-2: 15px 255px 15px 225px / 225px 15px 255px 15px;
  --font-title: 'Patrick Hand', 'Comic Sans MS', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-body: 'Patrick Hand', 'Comic Sans MS', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.45;
  min-height: 100vh;
}

a { color: inherit; }
img, video { max-width: 100%; display: block; }

.wrap { max-width: 640px; margin: 0 auto; padding: 8px 16px 64px; }

/* ---------- bandeirolas ---------- */
.bunting { width: 100%; height: 64px; display: block; filter: url(#rough); }
.bunting.small { height: 44px; }

.bunting-pic { display: block; }
.bunting-img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }

/* ---------- inicial (computador) ---------- */
.hero3 {
  --s: min(calc((100vh - 12vw) / 100), .75vw); /* unidade que acompanha a tela */
  --t: clamp(calc(var(--s) * 70), calc(100vw - var(--s) * 127), calc(var(--s) * 92)); /* largura do texto */
  --a: calc(50vw - var(--s) * 69.3 + var(--t) / 2); /* espaço livre entre o 70 e a borda direita */
  position: relative; overflow: hidden;
  min-height: calc(100vh - 12vw); margin-top: -2.5vw;
  display: flex; align-items: center; justify-content: center; gap: calc(var(--s) * 9);
  padding: 0 0 calc(var(--s) * 3);
}
.cake-pic { display: contents; }
.cake { height: calc(var(--s) * 88); width: auto; flex: none; }
/* a largura do texto nunca deixa os botões encostarem no braço */
.hero3-text { position: relative; z-index: 3; width: var(--t); flex: none; }
.hero3-title { margin: 0; font: inherit; }
.img-derepente { display: block; width: calc(var(--s) * 58); height: auto; }
.num-row { display: flex; align-items: center; width: calc(var(--a) + var(--s) * 38); margin: calc(var(--s) * 4.5) 0 calc(32px + var(--s) * 2.35) calc(var(--s) * 6); } /* 30px livres mesmo com o 70 inclinado e flutuando */
.img-70 {
  display: block; width: calc(var(--s) * 38); height: auto; flex: none;
  margin-right: calc(var(--s) * 16); /* as taças começam depois do fim do "De repente" */
  transform: rotate(-4deg); transform-origin: 50% 50%;
  animation: float-70 3.6s ease-in-out infinite alternate;
}
@keyframes float-70 {
  from { transform: translateY(calc(var(--s) * .9)) rotate(-4.5deg); }
  to { transform: translateY(calc(var(--s) * -.9)) rotate(-3.5deg); }
}
/* taças grandes, centralizadas no espaço vazio da direita */
.flutes {
  width: min(calc(var(--s) * 32), calc((var(--a) - var(--s) * 16) * .62)); height: auto; flex: none;
  margin: calc(var(--s) * -8) auto;
  transform: translateY(calc(var(--s) * -3));
}
.hero3 .lead {
  color: var(--ink); text-align: left; margin: 0 0 calc(var(--s) * 1.4) calc(var(--s) * 2);
  max-width: calc(var(--s) * 84); font-size: max(18px, calc(var(--s) * 3.1)); line-height: 1.25;
}
.hero3 .actions { margin-top: max(56px, calc(var(--s) * 7)); } /* espaço para o chapéu */
.hero3 .btn { font-size: 20px; padding: 8px 18px; min-height: 50px; }
.hero3 .actions { flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 16px; width: max-content; margin-left: calc(var(--s) * 2); }
.hero3 .btn { white-space: nowrap; }
/* botão da Sonia mais para fora, com chapéu de festa */
.btn-sonia { position: relative; margin-left: calc(var(--s) * 3); }
.hero3 .btn-sonia .hat { width: 50px; top: -52px; right: -16px; filter: none; pointer-events: none; }
.hero3 .note { text-align: left; margin: 20px 0 0 calc(var(--s) * 2); }
.arm-toast {
  position: absolute; z-index: 2; right: -12px; bottom: calc(var(--s) * 3);
  /* maior, mas encolhe se a tela for estreita, para não encostar nos botões */
  width: max(96px, min(calc(var(--s) * 46), calc(50vw - var(--s) * 30.3 + var(--t) / 2 - 535px)));
  transform-origin: 100% 85%;
  animation: arm-sway-right 3.2s ease-in-out infinite alternate;
  pointer-events: none; user-select: none;
}
.arm-toast img { display: block; width: 100%; height: auto; transform: scaleX(-1); }
@keyframes arm-sway-right {
  from { transform: rotate(2.5deg); }
  to { transform: rotate(-2.5deg); }
}
.arm-cup {
  /* passa um pouco da borda para a manga não descolar quando balança */
  position: absolute; z-index: 2; left: -12px; bottom: calc(var(--s) * 38);
  /* o braço com o copo fica na esquerda, sem encostar no bolo */
  width: min(calc(var(--s) * 30), calc((100vw - var(--s) * 50.6 - var(--t)) / 2 - 1vw));
  transform-origin: 0% 80%;
  animation: arm-sway 3.6s ease-in-out infinite alternate;
  pointer-events: none; user-select: none;
}
.arm-cup img { display: block; width: 100%; height: auto; transform: scaleX(-1); }
@keyframes arm-sway {
  from { transform: rotate(-2deg); }
  to { transform: rotate(2.5deg); }
}
/* contorno desenhado à mão que fica se mexendo */
.btn-draw { position: relative; }
.btn-draw::after {
  content: ''; position: absolute; inset: -7px; pointer-events: none;
  border: 2.5px solid var(--ink); border-radius: var(--sketch);
  animation: outline-boil 1.2s steps(1) infinite;
}
@keyframes outline-boil {
  0% { border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; transform: rotate(-.5deg); }
  25% { border-radius: 15px 225px 20px 255px / 225px 18px 255px 15px; transform: rotate(.4deg) scale(1.012, .97); }
  50% { border-radius: 225px 20px 255px 18px / 18px 255px 20px 225px; transform: rotate(-.25deg) scale(.992, 1.03); }
  75% { border-radius: 20px 255px 15px 225px / 255px 15px 225px 20px; transform: rotate(.55deg); }
}
@media (prefers-reduced-motion: reduce) { .btn-draw::after { animation: none; } }
/* janelas estreitas: o braço não cabe ao lado dos botões */
@media (min-width: 901px) and (max-width: 1060px) { .arm-toast { display: none; } }
@media (max-width: 900px) {
  .hero3 { --s: 1vw; flex-direction: column; min-height: 0; margin-top: 0; padding: 8px 16px 150px; gap: 16px; }
  .cake { height: auto; width: 46vw; }
  .hero3-text { width: 100%; }
  .img-derepente { width: 72vw; }
  .img-70 { width: 52vw; }
  .flutes { width: 22vw; }
  .num-row, .hero3 .lead, .hero3 .actions, .hero3 .note { margin-left: 0; }
  .hero3 .lead { max-width: none; }
  .arm-toast, .arm-cup { width: 36vw; bottom: 0; }
  .arm-cup { left: -8px; }
  .arm-toast { right: -8px; }
  .num-row { width: auto; justify-content: space-between; margin-bottom: calc(34px + var(--s) * 2.35); }
  .img-70 { margin-right: 0; }
  .flutes { margin: 0; }
  .hero3 .actions { flex-wrap: wrap; width: auto; }
  .btn-sonia { margin-left: 0; }
  .num-row { gap: 8vw; }
}

/* seta que indica que a página continua (só no celular) */
.scroll-band { display: none; }
@media (max-width: 760px) {
  .bunting-pic:has(+ .hero3) { margin-top: -10px; }
  .cake { margin-top: -10px; } /* sobe o bolo, o "De repente" e o 70 */
  .img-derepente { width: 58vw; }
  .num-row { margin-bottom: calc(44px + var(--s) * 2.35); }
  .scroll-band {
    position: fixed; z-index: 10; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom));
    display: flex; justify-content: center; pointer-events: none; transition: opacity .2s ease;
  }
  .scroll-band.hide { opacity: 0; }
  .scroll-band.hide .scroll-hint { pointer-events: none; }
  .scroll-hint {
    pointer-events: auto;
    display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
    color: var(--ink); background: var(--accent); border: 2.5px solid var(--ink); border-radius: 50%;
    box-shadow: 3px 4px 0 var(--ink); cursor: pointer;
    animation: hint-bob 1.4s ease-in-out infinite alternate;
  }
  .scroll-hint svg { width: 28px; height: 28px; }
}
@keyframes hint-bob {
  from { transform: translateY(-3px); }
  to { transform: translateY(4px); }
}

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: 34px; }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
.hint { display: block; color: var(--ink-soft); font-size: 17px; margin-top: 2px; }
.note { text-align: center; font-family: var(--font-hand); font-size: 24px; color: var(--ink-soft); margin-top: 18px; }
.err { color: var(--danger); min-height: 1.2em; margin: 6px 0; font-size: 18px; }
.center { text-align: center; }

/* ---------- inicial ---------- */
.hero { text-align: center; padding-top: 4px; }
.photo-frame {
  position: relative;
  width: min(78vw, 320px);
  margin: 10px auto 22px;
  background: var(--paper-2);
  padding: 12px 12px 14px;
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  transform: rotate(-2deg);
  box-shadow: 6px 7px 0 var(--ink);
}
.photo-frame img, .photo-ph {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--sketch-2);
  border: 2px solid var(--ink);
}
.photo-ph {
  display: grid; place-items: center;
  font-family: var(--font-hand); font-size: 28px; color: var(--ink-faint);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(0,0,0,.04) 14px 28px);
}
.hat { position: absolute; width: 92px; top: -58px; right: -26px; transform: rotate(18deg); filter: url(#rough); }

.title { font-size: clamp(46px, 13vw, 76px); margin: 0 0 6px; letter-spacing: 1px; }
.title .big70 {
  display: inline-block; background: var(--ink); color: var(--paper);
  padding: 0 .18em; border-radius: var(--sketch); transform: rotate(-3deg);
}
.lead { font-size: 22px; color: var(--ink-soft); max-width: 30ch; margin: 10px auto 22px; }

.actions { display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 23px; text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  padding: 12px 26px; min-height: 56px;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 4px 5px 0 var(--accent);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px) rotate(-.5deg); box-shadow: 6px 7px 0 var(--accent); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--accent); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-ghost { background: var(--accent); color: var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.btn-ghost:hover { box-shadow: 6px 7px 0 var(--ink); }
.btn.small { font-size: 19px; padding: 8px 18px; min-height: 46px; }
.btn.wide { width: 100%; }
.btn.danger { background: var(--paper-2); color: var(--danger); border-color: var(--danger); }

.link {
  background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 18px; color: var(--ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; cursor: pointer;
}
.link.danger { color: var(--danger); }

/* ---------- cartões e formulários ---------- */
.card {
  background: var(--paper-2);
  border: 3px solid var(--ink);
  border-radius: var(--sketch);
  padding: 22px 18px;
  margin: 14px 0;
  box-shadow: 6px 7px 0 var(--ink);
}
label { display: block; margin: 0 0 16px; font-size: 21px; }
input[type=text], input[type=password], input[type=number], input:not([type]), textarea, select {
  display: block; width: 100%; margin-top: 6px;
  font: inherit; font-size: 21px; color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: var(--sketch-2);
  padding: 10px 14px;
  outline: none;
}
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px var(--ink-faint); }
textarea { min-height: 150px; resize: vertical; line-height: 1.4; }
.counter { display: block; text-align: right; font-size: 15px; color: var(--ink-faint); }

.pw { position: relative; }
.pw input { padding-right: 58px; }
.eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 3px;
  background: none; border: 0; cursor: pointer; padding: 8px; width: 48px; height: 48px;
}
.eye svg { width: 28px; height: 28px; }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab {
  flex: 1; text-align: center; text-decoration: none; font-size: 18px; line-height: 1.2;
  padding: 10px 8px; border: 2.5px solid var(--ink); border-radius: var(--sketch-2);
  background: var(--paper);
}
.tab.on { background: var(--accent); color: var(--ink); }

.forgot { text-align: center; font-size: 18px; margin: 14px 0 0; color: var(--ink-soft); }

.page-intro { text-align: center; margin: 4px 0 18px; }
.page-intro p { margin: 0 0 .5em; color: var(--ink-soft); }
.back { display: inline-block; margin: 6px 0 4px; font-size: 18px; text-decoration: none; color: var(--ink-soft); }

/* ---------- passos ---------- */
.steps { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 10px 0 4px; }
.dot { position: relative; display: block; width: 16px; height: 16px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--paper-2); cursor: pointer; }
.dot::before { content: ''; position: absolute; inset: -14px; } /* área de toque maior */
.dot.on { background: var(--ink); transform: scale(1.25); }
.dot.done { background: var(--ink-faint); border-color: var(--ink-faint); }
.step-label { text-align: center; font-family: var(--font-hand); font-size: 22px; color: var(--ink-soft); margin-bottom: 4px; }
.nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 18px; }
.nav .btn { flex: 1; }
.nav + .hint { margin: 14px 0 0; }
.thanks .btn { margin-bottom: 8px; }

/* ---------- avatar ---------- */
.avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none;
  border: 2.5px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; font-family: var(--font-title); font-size: 26px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.big { width: 150px; height: 150px; font-size: 56px; margin: 6px auto 16px; }
.avatar-up { text-align: center; }
.avatar-up .btn { margin-bottom: 8px; }

/* ---------- fotos e vídeos ---------- */
.counts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 8px 0 16px; }
.pill { border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; font-size: 18px; background: var(--paper); }
.pill.full { background: var(--ink); color: var(--paper); }
.add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-row .btn { font-size: 19px; padding: 10px 8px; }
.progress { margin: 14px 0 0; font-size: 18px; }
.bar { height: 14px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); margin-top: 6px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }

.mlist { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.mcard {
  border: 2.5px solid var(--ink); border-radius: var(--sketch-2);
  background: #fff; padding: 12px;
}
.mthumb { position: relative; border-radius: 10px; overflow: hidden; background: var(--paper); margin-bottom: 12px; }
.mthumb img, .mthumb video { width: 100%; max-height: 380px; object-fit: contain; background: #111; }
.mthumb .tag {
  position: absolute; top: 8px; left: 8px; background: var(--ink); color: var(--paper);
  font-size: 15px; padding: 1px 10px; border-radius: 999px;
}
.proc { padding: 40px 12px; text-align: center; color: var(--ink-soft); font-size: 18px; }
.proc.err { color: var(--danger); }
.radios { display: flex; gap: 8px; margin: 4px 0 8px; }
.radios label {
  flex: 1; margin: 0; text-align: center; font-size: 18px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--sketch-2); padding: 6px 4px; background: var(--paper);
}
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label:has(input:checked) { background: var(--ink); color: var(--paper); }
.mfield-label { font-size: 19px; margin: 0 0 4px; }
.mcard label.cap { margin: 12px 0 0; font-size: 19px; }
.mcard textarea { min-height: 80px; font-size: 19px; }
.mact { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.saved { font-size: 16px; color: var(--ok); margin-left: auto; }
.mact input[type=file] { display: none; }

/* ---------- minha homenagem ---------- */
.sec { border-top: 2px dashed var(--ink-faint); padding: 16px 0 6px; }
.sec:first-of-type { border-top: 0; padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sec-head h3 { margin: 0; font-size: 24px; }
.sec-body { white-space: pre-wrap; font-size: 20px; margin: 6px 0 4px; }
.sec-body.empty { color: var(--ink-faint); font-style: italic; }
.word { font-family: var(--font-title); font-size: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.grid .g { aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); position: relative; }
.grid .g img { width: 100%; height: 100%; object-fit: cover; }
.grid .g .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; text-shadow: 0 1px 4px #000; }
.grid .g .ph { display: grid; place-items: center; height: 100%; font-size: 14px; color: var(--ink-soft); text-align: center; padding: 4px; }
.thanks { text-align: center; }
.thanks .heart { width: 70px; margin: 0 auto 6px; filter: url(#rough); }

.footer-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 24px; }

/* ---------- sonia / admin ---------- */
.locked { text-align: center; padding: 10px 0; }
.locked .big { font-family: var(--font-title); font-size: 44px; line-height: 1.1; margin: 10px 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.stat { border: 2px solid var(--ink); border-radius: var(--sketch-2); padding: 10px; text-align: center; background: #fff; }
.stat b { display: block; font-family: var(--font-title); font-size: 34px; }
.stat span { font-size: 16px; color: var(--ink-soft); }
details.person { border: 2.5px solid var(--ink); border-radius: var(--sketch-2); background: #fff; margin: 10px 0; padding: 10px 14px; }
details.person summary { cursor: pointer; display: flex; align-items: center; gap: 12px; list-style: none; }
details.person summary::-webkit-details-marker { display: none; }
details.person .meta { font-size: 16px; color: var(--ink-soft); }
.admin-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.admin-media .am { border: 2px solid var(--ink); border-radius: 8px; padding: 6px; font-size: 15px; background: var(--paper); }
.admin-media .am img, .admin-media .am video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #111; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 10px 20px; border-radius: var(--sketch);
  font-size: 19px; z-index: 50; max-width: calc(100vw - 32px); text-align: center;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ---------- passo 2: botões e cartões simplificados ---------- */
.card > label.btn { margin: 0; }
.mcard textarea.when { min-height: 0; resize: none; line-height: 1.25; margin-top: 0; }
.when-err { color: var(--danger); font-size: 18px; margin: 6px 0 0; }
.media-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 14px; }
.mbtn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px; justify-self: start;
  margin: 0; padding: 6px 10px; min-width: 72px; font: inherit; font-size: 18px; line-height: 1.1;
  color: var(--ink); background: none; border: 0; cursor: pointer;
}
.mbtn svg { width: 32px; height: 32px; }
.mbtn.danger { color: var(--danger); justify-self: end; }
.media-actions .saved { margin: 0; font-size: 28px; line-height: 1; color: var(--ok); min-width: 80px; text-align: center; opacity: 0; transition: opacity .15s ease; }
.media-actions .saved.show { opacity: 1; }
.nav-send { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 18px; }
.nav-send .btn { grid-column: 2; grid-row: 1; justify-self: center; }
.back-arrow {
  grid-column: 1; grid-row: 1; justify-self: start;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 6px 8px 0;
  font: inherit; font-size: 20px; color: var(--ink); background: none; border: 0; cursor: pointer;
}
.back-arrow svg { width: 32px; height: 32px; flex: none; }
.back-arrow:disabled { opacity: .4; cursor: wait; }

/* pergunta dentro da página, abaixo do botão */
.ask {
  width: 100%; max-width: 480px; margin: 12px auto; padding: 14px;
  text-align: center; background: var(--paper-2);
  border: 2.5px solid var(--ink); border-radius: var(--sketch-2);
}
.ask p { margin: 0 0 12px; font-size: 20px; line-height: 1.25; color: var(--ink); }
.ask .ask-input { margin: 0 0 12px; }
.ask-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ask .btn { font-size: 19px; padding: 8px 16px; min-height: 46px; }
@media (max-width: 520px) {
  .nav-send { grid-template-columns: 1fr; }
  .nav-send .btn { grid-column: 1; }
  .back-arrow { grid-row: 2; }
}

/* minha homenagem: palavra, mensagem e fotos abrem a edição */
.sec-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.sec-link:hover .sec-body { text-decoration: underline; text-underline-offset: 4px; }
a.g { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.g:hover { box-shadow: 0 0 0 3px var(--accent); }

/* link discreto para o início, no fim de cada página interna */
.page-foot { display: flex; justify-content: center; margin-top: 30px; }
.last-action { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.home-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 17px; color: var(--ink-soft); text-decoration: none; }
.home-link svg { width: 20px; height: 20px; flex: none; }
.home-link:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Apagar e Editar pequenos, com ícone */
.sec-head { align-items: center; }
.sec-actions { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.mini {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px;
  font: inherit; font-size: 15px; line-height: 1; color: var(--ink-soft);
  background: none; border: 0; text-decoration: none; cursor: pointer;
}
.mini svg { width: 17px; height: 17px; flex: none; }
.mini.danger { color: var(--danger); }
.mini:hover span { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
