/* =============================================================================
   Casamento — estilos
   Paleta tirada das cenas: marfim, champanhe, sálvia, rosé e nogueira.
   ========================================================================== */
:root {
  --ink: #3b2a21;
  --ink-soft: #6c5648;
  --ink-faint: #9a8576;
  --gold: #a9853f;
  --gold-hi: #d9bb7c;
  --sage: #7d8e68;
  --rose: #a8323e;
  --ivory: #fbf6ee;
  --card: rgba(252, 247, 239, 0.84);
  --card-line: rgba(176, 141, 74, 0.30);
  --shadow: 0 34px 90px -34px rgba(72, 44, 26, 0.42), 0 2px 0 rgba(255, 255, 255, 0.5) inset;

  --font-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --font-display: 'EB Garamond', 'Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: #f2e6da; overflow-x: hidden; }
body {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- abertura ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(120% 90% at 50% 40%, #fbf4ea 0%, #f1e2d2 100%);
  transition: opacity .9s ease, visibility .9s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { font-family: var(--font-script); font-size: clamp(3rem, 9vw, 4.6rem); color: var(--gold); line-height: 1; }
.loader__bar { width: 140px; height: 1px; background: rgba(169, 133, 63, .22); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); transition: transform .4s ease; }
.loader__txt { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--ink-faint); }

/* ---------- céu ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky__l { position: absolute; inset: 0; will-change: opacity; }
.sky__l--0 { background: linear-gradient(180deg, #d9e0e8 0%, #ece4de 34%, #f7ebdf 66%, #f5e3d0 100%); }
.sky__l--1 { background: linear-gradient(180deg, #e6d5c6 0%, #f3dec7 38%, #f8e7d1 70%, #f2d8bd 100%); opacity: 0; }
.sky__l--2 { background: linear-gradient(180deg, #d4b0b2 0%, #ebc0ad 34%, #f4d3b8 66%, #f1d6c0 100%); opacity: 0; }
.sky__l--3 { background: linear-gradient(180deg, #5f5a84 0%, #8f7ca0 28%, #cf9fa3 60%, #efc4a2 100%); opacity: 0; }
.sky__sun {
  position: absolute; width: 90vmax; height: 90vmax; left: 52%; top: -40vmax;
  background: radial-gradient(circle, rgba(255, 244, 222, .95) 0%, rgba(255, 228, 190, .5) 18%, rgba(255, 220, 180, 0) 46%);
  will-change: transform, opacity;
}
.sky__stars {
  position: absolute; inset: 0 0 35% 0; opacity: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 44% 22%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 78% 28%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 90% 10%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 6% 40%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 36% 36%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 56% 4%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 70% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 96% 34%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 52%);
  animation: twinkle 4.5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { filter: brightness(.75); } to { filter: brightness(1.25); } }

/* ---------- mundo ---------- */
.world { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.vlayer { position: fixed; inset: 0; z-index: 2; opacity: 0; overflow: hidden; pointer-events: none; background: #2a1d16; will-change: opacity; }
.vlayer__poster, .vlayer__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
  transform-origin: 50% 62%;
}
.vlayer__video { z-index: 1; }
.vlayer.has-clip .vlayer__poster { opacity: 0; }

.bloom {
  position: fixed; inset: -10%; z-index: 3; opacity: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 56%, rgba(255, 249, 236, 1) 0%, rgba(255, 233, 196, .9) 34%, rgba(255, 222, 176, 0) 72%);
  will-change: opacity;
}
.vignette {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 45%, rgba(0, 0, 0, 0) 62%, rgba(70, 42, 26, .16) 100%);
}

/* ---------- pétalas ---------- */
.petals { position: fixed; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; transition: opacity .6s ease; }
.petal { position: absolute; top: 0; left: var(--x); width: var(--s); height: calc(var(--s) * 1.25); animation: petal-fall var(--d) linear var(--delay) infinite; will-change: transform; }
.petal i { display: block; width: 100%; height: 100%; background: var(--img) center / contain no-repeat; animation: petal-flutter var(--f) ease-in-out var(--delay) infinite alternate; }
@keyframes petal-fall {
  0%   { transform: translate3d(0, -12vh, 0); opacity: 0; }
  8%   { opacity: .95; }
  50%  { transform: translate3d(var(--sway), 50vh, 0); }
  92%  { opacity: .9; }
  100% { transform: translate3d(calc(var(--sway) * -.4), 112vh, 0); opacity: 0; }
}
@keyframes petal-flutter {
  from { transform: rotate3d(1, .35, 0, 15deg) rotate(-25deg); }
  to   { transform: rotate3d(.25, 1, 0, 165deg) rotate(95deg); }
}

/* ---------- topo ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + var(--safe-t)) clamp(16px, 4vw, 56px) 14px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.monogram {
  font-family: var(--font-script); font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1;
  color: var(--ink); text-decoration: none; padding: 4px 6px; letter-spacing: .01em;
  text-shadow: 0 1px 12px rgba(255, 248, 238, .8);
}
.topnav {
  display: flex; gap: 2px; padding: 5px;
  background: rgba(252, 247, 239, .62); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(176, 141, 74, .22); border-radius: 999px;
}
.topnav button {
  border: 0; background: transparent; cursor: pointer;
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); padding: 9px 16px; border-radius: 999px;
  transition: color .3s, background .3s;
}
.topnav button:hover { color: var(--ink); }
.topnav button.is-active { color: var(--ivory); background: var(--ink); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 31; background: rgba(169, 133, 63, .14); pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- trilha lateral ---------- */
.rail {
  position: fixed; right: clamp(10px, 2vw, 28px); top: 50%; z-index: 30; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 20px; padding: 16px 8px;
}
.rail::before { content: ""; position: absolute; left: 50%; top: 24px; bottom: 24px; width: 1px; background: var(--gold); opacity: .35; transform: translateX(-50%); }
.rail button { position: relative; width: 16px; height: 16px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.rail i { width: 7px; height: 7px; border-radius: 50%; background: rgba(169, 133, 63, .45); transition: transform .35s, background .35s, box-shadow .35s; }
.rail button:hover i { transform: scale(1.3); background: var(--gold); }
.rail button.is-active i { background: var(--gold); transform: scale(1.5); box-shadow: 0 0 0 5px rgba(169, 133, 63, .18); }
.rail span {
  position: absolute; right: 26px; top: 50%; transform: translate(6px, -50%);
  white-space: nowrap; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: rgba(252, 247, 239, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(176, 141, 74, .2);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.rail button:hover span, .rail button.is-active span { opacity: 1; transform: translate(0, -50%); }

/* ---------- textos ---------- */
.copy { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}

.hero {
  position: absolute; left: 0; right: 0; top: clamp(76px, 11.5vh, 128px);
  text-align: center; padding: 0 20px; opacity: 1; will-change: opacity, transform;
}
.hero__names {
  margin: 10px 0 0; font-family: var(--font-script); font-weight: 400;
  font-size: clamp(3.4rem, min(7.6vw, 11vh), 7.4rem); line-height: 1.02; color: var(--ink);
  text-shadow: 0 2px 30px rgba(255, 248, 236, .9);
}
.hero__names .amp { color: var(--gold); padding: 0 .08em; }
.hero__date {
  margin: 6px 0 0; font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 1.75vw, 1.4rem); color: var(--ink-soft);
}
.hero__date b { font-style: normal; font-weight: 500; color: var(--ink); }
.count { display: inline-flex; gap: 10px; margin-top: 18px; }
.count div {
  min-width: 64px; padding: 10px 10px 8px; border-radius: 16px;
  background: rgba(252, 247, 239, .58); border: 1px solid rgba(176, 141, 74, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.count b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.count small { display: block; margin-top: 4px; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.count--done { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--gold); }

.card {
  position: absolute; left: clamp(20px, 5vw, 76px); top: 50%;
  width: clamp(340px, 31vw, 450px);
  padding: 32px 34px 30px;
  background: var(--card);
  backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid var(--card-line); border-radius: 28px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-50%); will-change: opacity, transform;
}
.card::before {
  content: ""; position: absolute; inset: 7px; border-radius: 22px; pointer-events: none;
  border: 1px solid rgba(176, 141, 74, .16);
}
.card.is-live { pointer-events: auto; }
.card__num { display: block; font-family: var(--font-display); font-style: italic; font-size: .95rem; color: var(--ink-faint); margin-bottom: 10px; }
.card__title {
  margin: 10px 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.85rem, 2.8vw, 2.6rem); line-height: 1.08; letter-spacing: -.01em; color: var(--ink);
}
.card__body { margin: 14px 0 0; font-size: 1rem; font-weight: 300; line-height: 1.62; color: var(--ink-soft); }
.card__orn { display: block; width: 74px; height: 12px; margin: 16px 0 2px; color: var(--gold); opacity: .8; }

.facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.facts svg { width: 20px; height: 20px; margin-top: 1px; color: var(--gold); }
.facts b { display: block; font-weight: 500; font-size: .98rem; color: var(--ink); }
.facts span { display: block; font-size: .9rem; font-weight: 300; line-height: 1.45; color: var(--ink-soft); }
.note { margin: 16px 0 0; padding-left: 14px; border-left: 2px solid rgba(169, 133, 63, .4); font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.sign { margin: 18px 0 0; font-family: var(--font-script); font-size: 1.9rem; line-height: 1; color: var(--gold); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  padding: 15px 22px; transition: transform .25s ease, background .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ink { background: var(--ink); color: var(--ivory); box-shadow: 0 12px 26px -14px rgba(59, 42, 33, .8); }
.btn--ink:hover { background: #2c1f18; }
.btn--gold { background: linear-gradient(135deg, #c8a663 0%, #a9853f 100%); color: #fffaf2; box-shadow: 0 12px 26px -14px rgba(169, 133, 63, .9); }
.btn--line { background: rgba(255, 255, 255, .35); color: var(--ink); border-color: rgba(59, 42, 33, .25); }
.btn--line:hover { border-color: rgba(59, 42, 33, .5); background: rgba(255, 255, 255, .6); }
.btn--small { padding: 11px 18px; font-size: .68rem; }
.btn--block { width: 100%; }

/* ---------- dica de scroll ---------- */
.hint {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); z-index: 11; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none;
  font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft);
}
.hint i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(59, 42, 33, .35); position: relative; }
.hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; top: 6px; } 35% { opacity: 1; } 100% { opacity: 0; top: 18px; } }

.track { position: relative; z-index: -1; width: 100%; pointer-events: none; }

/* ---------- confirmação (dialog) ---------- */
.sheet {
  width: min(480px, calc(100vw - 28px)); max-height: min(92vh, 760px); padding: 0; margin: auto;
  border: 1px solid var(--card-line); border-radius: 28px; color: var(--ink);
  background: #fcf7ef; box-shadow: 0 40px 120px -30px rgba(40, 24, 14, .55);
  overflow: auto;
}
.sheet::backdrop { background: rgba(43, 28, 20, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.sheet__form { position: relative; padding: 34px 32px 28px; display: grid; gap: 16px; }
.sheet__close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(59, 42, 33, .06); cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--ink-soft); }
.sheet__close:hover { background: rgba(59, 42, 33, .12); }
.sheet__title { margin: -6px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1.05; }
.sheet__lead { margin: -4px 0 4px; font-weight: 300; line-height: 1.55; color: var(--ink-soft); }
.sheet__note { margin: 0; font-size: .8rem; text-align: center; color: var(--ink-faint); }
.field { display: grid; gap: 7px; }
.field > span, .choice legend { font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(59, 42, 33, .2); background: #fffdf9;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(169, 133, 63, .15); }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choice legend { padding: 0; margin-bottom: 8px; }
.choice label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(59, 42, 33, .16); background: #fffdf9; cursor: pointer; transition: border-color .2s, background .2s; }
.choice label:has(input:checked) { border-color: var(--gold); background: #fbf3e4; }
.choice input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }

/* ---------- aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--safe-b)); z-index: 90; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: .88rem;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.noscript { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; text-align: center; padding: 24px; background: #f6ece1; font-family: var(--font-display); }

/* ---------- telas menores / celular ---------- */
@media (max-width: 1080px) {
  .topnav button { padding: 9px 11px; letter-spacing: .1em; }
}
@media (max-width: 860px) {
  .topnav { display: none; }
  .rail { right: 4px; gap: 14px; }
  .rail span { display: none; }
}
/* retrato: textos em cartão na parte de baixo, cena em cima */
@media (max-aspect-ratio: 41/50) {
  .topbar { padding: calc(10px + var(--safe-t)) 14px 10px; }
  .topcta { padding: 10px 14px; font-size: .62rem; }
  .hero { top: calc(64px + var(--safe-t)); }
  .hero__names { font-size: clamp(2.9rem, 14.5vw, 4.6rem); }
  .hero__date { font-size: 1.08rem; }
  .count { gap: 7px; margin-top: 12px; }
  .count div { min-width: 54px; padding: 8px 6px 6px; border-radius: 13px; }
  .count b { font-size: 1.3rem; }
  .card {
    left: 12px; right: 12px; top: auto; width: auto;
    bottom: calc(12px + var(--safe-b));
    max-height: calc(max(47dvh, 390px) - var(--safe-b)); overflow: auto; overscroll-behavior: contain;
    padding: 20px 20px 18px; border-radius: 24px;
    transform: none;
  }
  .card::before { inset: 6px; border-radius: 19px; }
  .card__num { display: none; }
  .card__title { font-size: clamp(1.65rem, 7.4vw, 2.15rem); margin-top: 4px; }
  .card__body { font-size: .95rem; margin-top: 10px; line-height: 1.55; }
  .card__orn { display: none; }
  .facts { margin-top: 12px; gap: 8px; }
  .actions { margin-top: 14px; gap: 8px; }
  .actions .btn { flex: 1 1 auto; padding: 13px 14px; }
  .note { font-size: .98rem; margin-top: 10px; }
  .sign { font-size: 1.6rem; margin-top: 12px; }
  /* transform: none é obrigatório: a regra base usa translateY(-50%) para
     centralizar, e sem zerar aqui a trilha sobe meia altura e invade o
     nome do casal no celular. */
  .rail { top: 26%; gap: 10px; transform: none; }
  .hint { bottom: calc(14px + var(--safe-b)); font-size: .6rem; letter-spacing: .2em; white-space: nowrap; gap: 8px; }
  .hint i { width: 18px; height: 28px; }
  .sheet { width: 100vw; max-width: none; max-height: 94dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .sheet__form { padding: 30px 22px calc(24px + var(--safe-b)); }
}
@media (max-height: 640px) and (min-aspect-ratio: 41/50) {
  .card { padding: 22px 26px; }
  .card__title { font-size: 1.9rem; }
  .card__body { font-size: .92rem; }
  .facts { gap: 8px; }
}
/* celular estreito na vertical: textos um pouco menores para o cartão caber */
@media (max-aspect-ratio: 41/50) and (max-width: 400px) {
  .card { padding: 18px 18px 16px; }
  .card__title { font-size: 1.6rem; }
  .facts { margin-top: 10px; }
  .facts b { font-size: .94rem; }
  .facts span { font-size: .86rem; line-height: 1.4; }
  .note { font-size: .94rem; line-height: 1.4; margin-top: 8px; }
  .actions { margin-top: 12px; }
  .actions .btn { padding: 12px 14px; }
}
/* tablet na vertical: cartão centrado, com largura de leitura */
@media (min-width: 600px) and (max-aspect-ratio: 41/50) {
  .card { left: 0; right: 0; margin: 0 auto; width: min(560px, calc(100vw - 48px)); }
  .sheet { width: min(560px, calc(100vw - 48px)); margin: auto auto 24px; }
}
/* celular deitado e janelas baixas: o cartão cabe na altura e não cobre a marca */
@media (min-aspect-ratio: 41/50) and (max-height: 520px) {
  .monogram { display: none; }
  .topbar { justify-content: flex-end; }
  .card {
    top: 50%;
    max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
    padding: 14px 22px 12px; border-radius: 22px;
  }
  .card::before { inset: 6px; border-radius: 17px; }
  .card__num, .card__orn { display: none; }
  .card__title { font-size: 1.7rem; margin-top: 2px; }
  .card__body { font-size: .9rem; margin-top: 8px; line-height: 1.5; }
  .facts { margin-top: 10px; gap: 8px; }
  .facts b { font-size: .9rem; }
  .facts span { font-size: .84rem; line-height: 1.4; }
  .note { margin-top: 10px; font-size: .95rem; line-height: 1.4; }
  .actions { margin-top: 10px; gap: 8px; }
  .actions .btn { padding: 12px 16px; font-size: .7rem; }
  .sign { margin-top: 8px; font-size: 1.4rem; }
}
@media (hover: none) and (pointer: coarse) {
  .rail button { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
  .hint i::after, .sky__stars { animation: none; }
  .btn:hover { transform: none; }
}
/* o "?reduce" de teste (world.js) marca o documento com esta classe */
.reduce .petals { display: none; }
