/* =========================================================
   Gabriele & Pedro · Equestrian Château, Winter in Color
   ========================================================= */
:root {
  --olive: #565b24;
  --olive-dark: #3d4119;
  --forest: #1f4a36;
  --lime: #b5bd4f;
  --wine: #7a1f2b;
  --wine-dark: #5c1520;
  --toile: #9b2b2b;
  --pink: #e98aa6;
  --orange: #e2672a;
  --mustard: #e8a71c;
  --gold: #c39a45;
  --gold-light: #e4c57d;
  --cream: #f6ecda;
  --ivory: #fbf5ea;
  --ink: #3b2a22;
  --leather: #8a4f2a;

  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Cinzel", Georgia, serif;
  --script: "Pinyon Script", cursive;

  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-variant-numeric: lining-nums;
  margin: 0;
  background: var(--cream);
  background-image: var(--paper-grain);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }

/* A abertura fica por cima da primeira tela (não trava a página: no iPhone isso falha).
   O layout da página nunca muda, então não há pulos quando o envelope some. */
.intro { touch-action: none; }
html.no-intro .intro { display: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.8rem;
  font-family: var(--caps); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--olive { background: var(--olive); color: var(--ivory); border-color: var(--olive-dark); box-shadow: 0 10px 24px -12px rgba(61, 65, 25, .8), inset 0 0 0 3px var(--olive), inset 0 0 0 4px rgba(228, 197, 125, .6); }
.btn--ghost { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--line { border-color: var(--gold-light); color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--olive); cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn .i-off, .icon-btn[aria-pressed="false"] .i-on { display: none; }
.icon-btn[aria-pressed="false"] .i-off { display: block; }

/* =========================================================
   ABERTURA
   ========================================================= */
.intro {
  position: absolute; top: 0; left: 0; right: 0; height: var(--tela, 100svh); min-height: 560px; z-index: 100;
  display: grid; grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  padding: max(env(safe-area-inset-top), .5rem) 1rem calc(1.2rem + var(--safe-b));
  background: #f3e5cc url("../img/toile.webp") center / min(560px, 150vw) auto;
  overflow: hidden;
}
.intro::before { /* véu creme para o envelope e os textos respirarem */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(246, 236, 218, .42), rgba(246, 236, 218, .42)),
    radial-gradient(ellipse 70% 42% at 50% 52%, rgba(246, 236, 218, .78), rgba(246, 236, 218, .2) 70%, rgba(246, 236, 218, 0)),
    linear-gradient(180deg, rgba(246, 236, 218, .92) 0%, rgba(246, 236, 218, .35) 22%, rgba(246, 236, 218, .2) 70%, rgba(246, 236, 218, .92) 100%);
}
.intro__bar { width: 100%; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.skip { background: none; border: 0; font-family: var(--caps); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); opacity: .75; padding: .8rem .2rem; cursor: pointer; }
.intro__msg {
  position: relative; z-index: 2; margin-top: clamp(.5rem, 3svh, 2rem);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 5.4vw, 1.7rem); line-height: 1.25;
  color: var(--wine); text-align: center;
  background: var(--ivory); background-image: var(--paper-grain);
  padding: .7rem 1.4rem .8rem; border: 1px solid var(--gold);
  outline: 1px solid var(--gold); outline-offset: 3px;
  box-shadow: 0 10px 20px -14px rgba(40, 25, 10, .6);
}
.intro__actions { position: relative; z-index: 2; text-align: center; grid-row: 4; align-self: end; }
.intro__hint { font-family: var(--caps); font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--olive); opacity: .7; margin-top: .8rem; }

.stage { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; perspective: 1400px; }
.tilt { position: relative; transform-style: preserve-3d; }

/* Envelope v5: duas fotos inteiras 9:16 (816x1456) ocupando a tela; coordenadas em % da foto */
.stage { position: absolute !important; inset: 0; z-index: 0 !important; overflow: hidden; display: grid; place-items: center; }
.tilt { transform-style: flat; }
.env {
  --W: max(100vw, calc(max(var(--tela, 100svh), 560px) / 1.784));
  --H: calc(var(--W) * 1.784);
  position: relative; width: var(--W); height: var(--H);
}
.env__shadow { display: none; }
.env__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.env__open { z-index: 1; }
.env__clip { position: absolute; left: 0; right: 0; top: -300%; bottom: 32.8%; overflow: hidden; z-index: 2; pointer-events: none; }
.env__letter { position: absolute; left: 22.2%; width: 51.5%; top: calc(300% / 1 * 0 + var(--H) * 3 + var(--H) * .48); will-change: transform; }
.env__front { z-index: 3; }
.env__closed { z-index: 4; --wipe: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--wipe) * 100% - 10%), #000 calc(var(--wipe) * 100%));
          mask-image: linear-gradient(to bottom, transparent calc(var(--wipe) * 100% - 10%), #000 calc(var(--wipe) * 100%)); }
.env__to {
  position: absolute; z-index: 5; left: 0; right: 0; top: 59.5%;
  text-align: center; font-family: var(--script); font-size: calc(var(--W) * .055); color: #e7cf8f;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}

/* área de toque do lacre (o lacre está na foto dos cordões) */
.env__seal {
  --S: calc(var(--W) * .14);
  position: absolute; left: 49.4%; top: 50.1%; width: var(--S); height: var(--S); margin: calc(var(--S) / -2) 0 0 calc(var(--S) / -2);
  z-index: 8; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer;
  touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.seal__ring { position: absolute; inset: -12%; width: 124%; height: 124%; transform: rotate(-90deg); pointer-events: none; opacity: 0; transition: opacity .2s; }
.env__seal.is-holding .seal__ring { opacity: 1; }
.seal__ring circle { fill: none; stroke: var(--gold-light); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }

/* =========================================================
   O CONVITE (mesmo componente na carta e no hero)
   ========================================================= */
.invite {
  container-type: inline-size;
  aspect-ratio: 1 / 1.3;
  background: var(--ivory);
  background-image: var(--paper-grain), linear-gradient(160deg, #fffaf0, #f3e7d1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 20px 40px -18px rgba(59, 42, 34, .5);
  position: relative;
}
.invite__inner {
  position: absolute; inset: 3.6cqw;
  border: .3cqw solid var(--gold);
  outline: .25cqw solid var(--gold); outline-offset: -1.6cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4cqw 5cqw;
}
.invite__mono { width: 21cqw; margin: -1cqw 0 .5cqw; mix-blend-mode: multiply; }
.invite__std { font-family: var(--caps); font-size: 3.3cqw; letter-spacing: .42em; color: var(--gold); margin-bottom: 1.6cqw; padding-left: .42em; display: flex; align-items: center; gap: 2.4cqw; }
.invite__std::before, .invite__std::after { content: ""; width: 9cqw; height: .25cqw; background: currentColor; opacity: .7; }
.invite__names { font-family: var(--script); font-size: 11.5cqw; line-height: 1.05; color: var(--wine); white-space: nowrap; }
.invite__names span { font-family: var(--serif); font-style: italic; font-size: .6em; color: var(--gold); vertical-align: .1em; }
.invite__castle { width: 80cqw; margin: 2.5cqw 0 3cqw; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 55%, transparent 100%); }
.invite__date { font-family: var(--caps); font-size: 4.4cqw; letter-spacing: .14em; color: var(--wine); }
.invite__place { font-family: var(--caps); font-size: 2.7cqw; letter-spacing: .26em; color: var(--ink); opacity: .75; margin-top: .6cqw; }
.invite__bit { width: 17cqw; margin-top: 2.2cqw; }
.env__letter .invite { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: max(var(--tela, 100svh), 560px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1rem 6rem; overflow: hidden;
}
.hero__toile { position: absolute; inset: 0; background: url("../img/toile-floral.webp") center / 520px auto; opacity: .16; }
.hero .invite { width: min(86vw, 430px, calc(var(--tela, 100svh) * .66)); position: relative; }
.hero__hello { position: relative; margin-top: 1.4rem; font-style: italic; font-size: 1.25rem; color: var(--wine); text-align: center; }
.hero__scroll {
  position: relative; margin-top: 1.6rem;
  font-family: var(--caps); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--olive);
  display: flex; flex-direction: column; align-items: center; gap: .5rem; white-space: nowrap;
}
.hero__scroll span { width: 1px; height: 28px; background: linear-gradient(var(--olive), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* =========================================================
   A CHEGADA: gravura emoldurada (provisório)
   ========================================================= */
.arrival { position: relative; overflow: hidden; text-align: center; }
.arrival__pin { position: relative; min-height: max(var(--tela, 100svh), 560px); display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; --night: 0; --dusk: 0; }
.arrival__sky { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, #e4e1c2 0%, #d6d3ad 55%, #c5c296 100%); }
.arrival__sky::before, .arrival__sky::after { content: ""; position: absolute; inset: 0; }
.arrival__sky::before { background: radial-gradient(ellipse at 50% 60%, #f0c9a0 0%, #dc9f86 50%, #b97a78 100%); opacity: var(--dusk); }
.arrival__sky::after { background: radial-gradient(ellipse at 50% 60%, #2f3557 0%, #1d2140 55%, #12142a 100%); opacity: var(--night); }
.arrival__pin::after { content: ""; position: absolute; inset: 0; background-image: var(--paper-grain); opacity: .6; pointer-events: none; }
.arrival__kicker { position: relative; z-index: 2; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.9rem; color: var(--wine); margin-bottom: .2rem; transition: color .6s; }
.arrival__caps { position: relative; z-index: 2; height: 5.8rem; margin-bottom: .4rem; }
.arrival .cap { position: absolute; left: 1.2rem; right: 1.2rem; top: 0; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.arrival .cap.is-on { opacity: 1; transform: none; }
.arrival .cap b { display: block; font-family: var(--caps); font-weight: 500; font-size: clamp(1.4rem, 6.5vw, 2.1rem); letter-spacing: .12em; color: var(--wine); transition: color .6s; }
.arrival .cap span { font-style: italic; font-size: 1.1rem; color: var(--ink); transition: color .6s; }
.arrival.is-night .cap b, .arrival.is-night .arrival__kicker { color: #f0d79a; }
.arrival.is-night .cap span, .arrival.is-night .arrival__caption { color: #efe3c8; }
.arrival__scene { position: relative; z-index: 1; width: min(1100px, 100%); margin: 0 auto; overflow: hidden; }
.arrival__art { position: relative; width: 118%; margin-left: -9%; }
@media (min-width: 900px) { .arrival__art { width: 100%; margin-left: 0; } }
.arrival__art img { display: block; width: 100%; max-width: none; }
.arrival__art .art--night { position: absolute; inset: 0; filter: brightness(0) invert(1) sepia(.5) saturate(.6) brightness(.95); opacity: var(--night); }
.arrival__art .glow, .arrival__art .win { position: absolute; width: 0; height: 0; opacity: var(--lit, 0); }
.arrival__art .glow::before { content: ""; position: absolute; left: -2.3vw; top: -2.3vw; width: 4.6vw; height: 4.6vw; border-radius: 50%; background: radial-gradient(circle, #fff6d8 0%, #ffd77a 26%, rgba(255, 190, 90, .35) 55%, rgba(255, 170, 70, 0) 72%); }
.arrival__art .glow::after { content: ""; position: absolute; left: -.6vw; top: -.6vw; width: 1.2vw; height: 1.2vw; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 6px 2px #ffd77a; }
.arrival__art .win::before { content: ""; position: absolute; left: -.9vw; top: -.9vw; width: 1.8vw; height: 1.8vw; border-radius: 30%; background: radial-gradient(circle, rgba(255, 214, 120, .95) 0%, rgba(255, 190, 90, .5) 50%, rgba(255, 170, 70, 0) 75%); }
@media (min-width: 900px) { .arrival__art .glow::before { left: -22px; top: -22px; width: 44px; height: 44px; } .arrival__art .glow::after { left: -6px; top: -6px; width: 12px; height: 12px; } .arrival__art .win::before { left: -10px; top: -10px; width: 20px; height: 20px; } }
.arrival__div { position: relative; z-index: 1; width: min(260px, 70%); margin: 1.2rem auto .6rem; transition: filter .6s; }
.arrival.is-night .arrival__div { filter: brightness(0) invert(1) sepia(.6) brightness(.95); }
.arrival__caption { position: relative; z-index: 1; font-family: var(--caps); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--olive-dark); transition: color .6s; }
.print { margin: 0 auto; max-width: 980px; }
.print__mat {
  background: var(--ivory); background-image: var(--paper-grain);
  padding: clamp(14px, 4vw, 34px);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 6px var(--olive-dark), 0 0 0 7px rgba(228, 197, 125, .55), 0 30px 50px -25px rgba(0, 0, 0, .7);
}
.print__mat img { width: 100%; mix-blend-mode: multiply; outline: 1px solid rgba(122, 31, 43, .35); outline-offset: 6px; }
.print figcaption { margin-top: 1.4rem; text-align: center; font-family: var(--caps); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }

/* =========================================================
   SEÇÕES: cartões da papelaria
   ========================================================= */
.section { position: relative; padding: clamp(4rem, 12vw, 7rem) 1rem; }
.ground-paper { background: var(--cream); background-image: var(--paper-grain); }
.ground-olive { background: var(--olive); background-image: var(--paper-grain); }
.ground-toile { background: #f3e5cc url("../img/toile.webp") center / 440px auto; }

/* cartão creme sobre cartão colorido, como o convite */
.suite { --back: var(--orange); position: relative; max-width: 460px; margin: 0 auto; }
.suite::before {
  content: ""; position: absolute; inset: 0; background: var(--back);
  transform: translate(9px, 11px) rotate(1.4deg);
  box-shadow: 0 18px 30px -18px rgba(40, 25, 10, .55);
}
.suite--orange { --back: #e0661f; }
.suite--lime { --back: #b8c04f; }
.suite--mustard { --back: #e8a71c; }
.card {
  position: relative; text-align: center;
  background-color: #fffbf4; background-image: linear-gradient(rgba(255, 253, 249, .5), rgba(255, 253, 249, .5)), var(--paper-grain);
  padding: clamp(2.2rem, 8vw, 3rem) clamp(1.4rem, 6vw, 2.6rem);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 16px 30px -18px rgba(40, 25, 10, .5);
}
.card::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold); pointer-events: none; }
.card__title { font-family: var(--caps); font-weight: 500; font-size: clamp(1.4rem, 6vw, 1.8rem); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--wine); }
.card__bit { width: min(220px, 80%); margin: .7rem auto 1.5rem; }
.card__name { font-family: var(--caps); font-size: 1.05rem; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); margin-bottom: .5rem; }
.card__text { font-style: italic; color: var(--ink); margin-bottom: 1.4rem; }
.card__note { font-style: italic; font-size: 1rem; opacity: .75; margin-top: 1.2rem; }
.card__list { margin: 0 0 1.6rem; display: grid; gap: 1.2rem; }
.card__list dt { font-family: var(--caps); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--wine); margin-bottom: .2rem; }
.card__list dd { margin: 0; font-style: italic; line-height: 1.45; }
.muted { opacity: .65; }
.small { font-size: .95rem; }

.countdown { display: flex; justify-content: center; margin: 0 auto 1.8rem; }
.countdown div { padding: 0 clamp(.6rem, 3vw, 1.1rem); }
.countdown div + div { border-left: 1px solid rgba(195, 154, 69, .55); }
.countdown b { display: block; font-family: var(--caps); font-weight: 400; font-size: clamp(1.6rem, 7.5vw, 2.1rem); line-height: 1.05; color: var(--olive); font-variant-numeric: tabular-nums; }
.countdown small { font-family: var(--caps); font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }

.link-btn {
  display: inline-block; padding: .8rem 1.4rem; min-height: 44px;
  font-family: var(--caps); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  color: var(--wine); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
}
.nav-apps { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.app-btn {
  display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px;
  background: #fff; border: 1px solid #e3cfa6; border-radius: 999px; text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  box-shadow: 0 6px 14px -10px rgba(40, 25, 10, .6);
}
.app-btn img { height: 30px; width: auto; flex: none; }

.note-card {
  position: relative; max-width: 400px; margin: 3.5rem auto 0; text-align: center;
  background: var(--ivory); padding: 2rem 1.6rem 1.6rem;
  transform: rotate(-1.2deg);
  box-shadow: 0 20px 30px -18px rgba(40, 25, 10, .6);
}
.note-card::before { /* fita adesiva */
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px;
  background: rgba(232, 167, 28, .55); transform: rotate(2deg);
}
.note-card__kicker { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.55rem; line-height: 1.1; color: var(--wine); }
.note-card__brand { font-family: var(--caps); font-size: 1.6rem; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: var(--olive); margin: .3rem 0 .9rem; }
.note-card p { margin-bottom: 1rem; }

.wrap { width: min(1040px, 100%); margin-inline: auto; text-align: center; }
.toile { background: #f2e4cc url("../img/toile.webp") center / 460px auto; }
.label { background: var(--ivory); display: inline-block; padding: 1.6rem 2.4rem 1rem; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .4); }
.label .card__bit { margin-bottom: .2rem; }
.tags { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.tag {
  position: relative; background: #f7ead3; padding: 1.6rem 1rem 1.2rem 1.6rem; text-align: left;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  box-shadow: inset 0 0 0 1px #d9be8a;
  border-left: 4px solid var(--leather);
}
.tag::before { content: ""; position: absolute; left: 12px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: #f2e4cc; box-shadow: inset 0 0 0 2px var(--gold); }
.tag small { display: block; font-family: var(--caps); font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.tag b { font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 1.15rem; color: var(--wine); line-height: 1.2; }
@media (min-width: 820px) { .tags { grid-template-columns: repeat(4, 1fr); } }

.end {
  position: relative; text-align: center; color: #4a3a18;
  --hf: max(100vw, 560px); /* altura da arte (quadrada) */
  background:
    linear-gradient(to bottom, rgba(140, 139, 100, 0) calc(var(--hf) - 260px), #8c8b64 calc(var(--hf) - 10px)) center top / 100% var(--hf) no-repeat,
    #8c8b64 url("../img/papel-final.webp") center top / max(100%, 560px) auto no-repeat;
  padding: calc(max(100vw, 560px) * .55) 1.5rem calc(5.5rem + var(--safe-b));
  min-height: max(100vw, 560px);
}
@media (min-width: 900px) { .end { --hf: 900px; background-size: 100% 900px, 900px auto; padding-top: 500px; min-height: 900px; } }
.end__msg { font-style: italic; font-size: 1.35rem; color: #3f3414; text-shadow: 0 1px 0 rgba(255, 245, 210, .25); }
.end__sign { font-family: var(--script); font-size: 2.8rem; margin-top: .3rem; color: #6e5520; text-shadow: 0 1px 0 rgba(255, 240, 200, .35), 0 -1px 0 rgba(60, 40, 0, .35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.end__replay { margin-top: 2rem; background: none; border: 0; border-bottom: 1px solid currentColor; font-family: var(--caps); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #4a3a18; cursor: pointer; padding: .3rem 0; }

/* =========================================================
   CAVALINHO DA ROLAGEM
   ========================================================= */
.ride {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(46px + var(--safe-b));
  pointer-events: none; opacity: 0; transition: opacity .5s;
}
.ride.is-on { opacity: 1; }
.ride__track { position: absolute; left: 0; right: 0; bottom: calc(8px + var(--safe-b)); height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 6%, var(--gold) 94%, transparent); opacity: .8; }
.ride__horse {
  position: absolute; bottom: calc(8px + var(--safe-b)); left: 0; width: 66px; height: auto;
  transform: translateX(var(--x, 0px)); filter: drop-shadow(0 1px 0 rgba(255, 245, 225, .8));
}

.ride__horse.is-back { transform: translateX(var(--x, 0px)) scaleX(-1); } /* espelha depois de andar */
@keyframes trot {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25% { translate: 0 -3px; rotate: -2deg; }
  50% { translate: 0 0; rotate: 0deg; }
  75% { translate: 0 -2px; rotate: 1.5deg; }
}

/* ---------- Revelação ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.no-js .reveal { opacity: 1; transform: none; }

.intro__msg { grid-row: 2; }
.skip, .intro__hint, #sound-btn { background: rgba(250, 244, 232, .9); border-radius: 999px; box-shadow: 0 2px 8px rgba(60, 30, 20, .15); }
.skip { padding: .55rem .9rem; opacity: 1; }
.intro__hint { display: inline-block; padding: .35rem .8rem; opacity: 1; }

.intro__msg small { display: block; margin-top: .45rem; font-family: var(--caps); font-style: normal; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--olive); }
.seal__pulse { position: absolute; inset: -8%; border-radius: 50%; box-shadow: 0 0 0 2px rgba(240, 214, 150, .85); animation: sealPulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes sealPulse { 0% { transform: scale(.8); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.env { cursor: pointer; }

/* ---------- RSVP ---------- */
.ground-wine { background: var(--wine); background-image: var(--paper-grain); }
.suite--pink { --back: #e98aa6; }
.rsvp { text-align: center; }
.rsvp-para { font-family: var(--caps); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--olive); margin-bottom: .2rem; }
.rsvp-form { display: grid; gap: 1.1rem; margin-top: 1.2rem; text-align: left; }
.rsvp-pessoa { border: 1px solid #e3cfa6; background: #fffaf1; padding: .9rem 1rem 1rem; margin: 0; }
.rsvp-pessoa legend { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.4rem; color: var(--wine); padding: 0 .4rem; line-height: 1; }
.rsvp-sim-nao { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rsvp-sim-nao input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-sim-nao span { display: block; text-align: center; padding: .75rem .4rem; border: 1px solid #d9c7a3; background: var(--ivory); font-family: var(--caps); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.rsvp-sim-nao input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--ivory); }
.rsvp-sim-nao input[value="nao"]:checked + span { background: #8d7f6a; border-color: #8d7f6a; }
.rsvp-sim-nao input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.rsvp-chinelo, .rsvp-campo { display: grid; gap: .35rem; }
.rsvp-chinelo { margin-top: .8rem; }
.rsvp-chinelo span, .rsvp-campo span { font-family: var(--caps); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); }
.rsvp input:not([type=radio]):not([type=checkbox]), .rsvp select, .rsvp textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: #fffaf1; border: 1px solid #d9c7a3; padding: .65rem .8rem; border-radius: 0; }
.rsvp input:focus, .rsvp select:focus, .rsvp textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(122, 31, 43, .12); }
.rsvp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.4rem; border: 0; background: var(--wine); color: var(--ivory); font-family: var(--caps); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.rsvp-btn:disabled { opacity: .6; }
.rsvp-btn--grande { width: 100%; }
.rsvp-btn--wa { background: var(--olive); margin-top: .6rem; }
.rsvp-code { display: flex; gap: .5rem; margin-top: 1rem; }
.rsvp-code input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .15em; }
.rsvp-erro { color: var(--wine); font-style: italic; min-height: 1.2em; margin-top: .4rem; text-align: center; }
.rsvp-prazo { font-size: .95rem; font-style: italic; opacity: .7; text-align: center; }
.rsvp-brinde { width: 190px; margin: 0 auto .4rem; }
.rsvp-editar { margin-top: 1rem; background: none; border-left: 0; border-right: 0; cursor: pointer; }
.rsvp [hidden] { display: none !important; }
.anfitrioes { margin: -.4rem auto 1.2rem; }
.anfitrioes img { width: min(220px, 70%); margin: 0 auto; }
.anfitrioes figcaption { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.25rem; line-height: 1.15; color: var(--wine); margin-top: .2rem; }
.rsvp-acomp { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed #d9c7a3; display: grid; gap: .7rem; }
.rsvp-acomp__campos { display: grid; gap: .7rem; }
.rsvp-check { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-style: italic; color: var(--wine); }
.rsvp-check input { width: 1.2rem; height: 1.2rem; accent-color: var(--olive); }

/* ---------- Presentes ---------- */
.ground-cream { background: var(--cream); background-image: var(--paper-grain); }
.presentes__intro { max-width: 34ch; margin: 1.4rem auto 2rem; font-style: italic; color: var(--wine); font-size: 1.15rem; }
.presentes { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .presentes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .presentes { grid-template-columns: repeat(3, 1fr); } }
.presente { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--ivory); background-image: var(--paper-grain); padding: 1.6rem 1.3rem 1.3rem; box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 14px 26px -18px rgba(40,25,10,.5); }
.presente::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(195, 154, 69, .7); pointer-events: none; }
.presente__img { height: 140px; display: grid; place-items: center; margin-bottom: .6rem; }
.presente__img img { max-height: 140px; width: auto; }
.presente__vazio { width: 160px; opacity: .8; }
.presente__titulo { font-family: var(--caps); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); line-height: 1.35; }
.presente__texto { font-style: italic; margin: .4rem 0 .6rem; flex: 1; }
.presente__valor { font-family: var(--caps); font-size: 1.35rem; color: var(--olive); margin-bottom: .9rem; font-variant-numeric: tabular-nums; }
.presente__acoes { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem; width: 100%; }
.presente__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 .8rem; border: 1px solid var(--wine); background: var(--wine); color: var(--ivory); font-family: var(--caps); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.presente__btn--linha { background: transparent; color: var(--wine); }
.presente--livre { justify-content: center; background-color: #f2e4cc; }
.dlg { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(30, 20, 15, .55); }
.dlg__caixa { position: relative; width: min(420px, 100%); max-height: 92vh; overflow: auto; background: var(--ivory); background-image: var(--paper-grain); padding: 2rem 1.4rem 1.6rem; text-align: center; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.dlg__fechar { position: absolute; top: .4rem; right: .6rem; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; color: var(--wine); cursor: pointer; }
.dlg__titulo { font-family: var(--caps); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); padding: 0 1.6rem; }
.dlg__valor { font-family: var(--caps); font-size: 1.6rem; color: var(--olive); margin: .4rem 0; }
.dlg__qr { display: grid; place-items: center; margin: .8rem auto; }
.dlg__qr img, .dlg__qr canvas { border: 8px solid #fbf5ea; box-shadow: 0 0 0 1px #d9c7a3; }
.dlg__texto { font-style: italic; margin: .6rem 0; }
.dlg__codigo { width: 100%; font: .78rem/1.3 monospace; padding: .6rem; border: 1px solid #d9c7a3; background: #fffaf1; color: var(--ink); resize: none; margin-bottom: .6rem; }
.dlg__caixa .presente__btn { width: 100%; }
.dlg__chave { font-size: .9rem; opacity: .7; margin-top: .6rem; }
body.dlg-aberto { overflow: hidden; }
.dlg[hidden] { display: none; }
.hero__replay { position: relative; margin-top: 1rem; background: rgba(251, 245, 234, .85); border: 1px solid rgba(195, 154, 69, .7); border-radius: 999px; padding: .45rem 1rem; font-family: var(--caps); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--wine); cursor: pointer; }

/* ---------- Traje ilustrado ---------- */
.traje__figuras { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .4rem 0 1rem; }
.traje__figuras figure { margin: 0; text-align: center; }
.traje__figuras img { height: clamp(220px, 58vw, 320px); width: auto; margin: 0 auto; }
.traje__figuras figcaption { font-family: var(--caps); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--wine); margin-top: .5rem; }
.traje__figuras p { font-style: italic; font-size: .98rem; line-height: 1.35; margin-top: .25rem; }
.traje__detalhes { width: min(300px, 90%); margin: .2rem auto .4rem; }
.note-card__casal { width: min(210px, 70%); margin: -.4rem auto .8rem; }
.note-card__arara { width: min(230px, 72%); margin: -.2rem auto .8rem; }

/* ---------- Looks (inspiração de traje) ---------- */
.looks { margin: 1.4rem 0 .4rem; }
.looks__titulo { font-family: var(--caps); font-size: .9rem; letter-spacing: .28em; text-transform: uppercase; color: var(--wine); }
.looks__texto { font-style: italic; font-size: 1rem; margin: .2rem 0 .7rem; }
.looks__grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; align-items: end; }
.looks__grade figure { margin: 0; text-align: center; }
.looks__grade img { height: clamp(150px, 42vw, 240px); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.looks__grade figcaption { font-family: var(--caps); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin-top: .35rem; line-height: 1.3; }
.looks__grade figure[data-falta]::before { content: "em breve"; display: grid; place-items: center; height: clamp(150px, 42vw, 240px); border: 1px dashed rgba(86, 91, 36, .45); font-style: italic; font-size: .85rem; color: var(--olive); opacity: .7; }
.note-card__forte { font-family: var(--caps); font-size: .78rem; letter-spacing: .12em; line-height: 1.6; text-transform: uppercase; color: var(--wine); margin: .4rem 0 1rem !important; }

/* ---------- Para quem vem de fora: etiquetas de bagagem ---------- */
.fora__intro { max-width: 34ch; margin: 1.3rem auto 2rem; font-style: italic; color: var(--ivory); font-size: 1.15rem; }
.etiquetas { display: grid; gap: 1.8rem; text-align: left; align-items: start; max-width: 420px; margin: 0 auto; }
@media (min-width: 760px) { .etiquetas { grid-template-columns: repeat(2, 1fr); max-width: none; } }
@media (min-width: 1040px) { .etiquetas { grid-template-columns: repeat(3, 1fr); } }
/* etiqueta de verdade (Midjourney) em 3 partes: topo e base fixos, meio estica com o texto */
.etiqueta {
  --topo: url(../img/gpt/etiqueta-a-topo.webp); --meio: url(../img/gpt/etiqueta-a-meio.webp); --base: url(../img/gpt/etiqueta-a-base.webp);
  --ht: 46.1%; --hb: 24.7%;
  position: relative; isolation: isolate;
  padding: 38% 18% 17% 13%;
  filter: drop-shadow(0 12px 14px rgba(25, 30, 8, .38));
}
.etiqueta::before, .etiqueta::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.etiqueta::before { margin: calc(var(--ht) - 2px) 0 calc(var(--hb) - 2px); background: var(--meio) 0 0 / 100% 100% no-repeat; }
.etiqueta::after { background: var(--topo) top / 100% auto no-repeat, var(--base) bottom / 100% auto no-repeat; }
.etiqueta:nth-child(even) {
  --topo: url(../img/gpt/etiqueta-b-topo.webp); --meio: url(../img/gpt/etiqueta-b-meio.webp); --base: url(../img/gpt/etiqueta-b-base.webp);
  --ht: 74.4%; --hb: 39.3%;
  padding: 60% 11% 34% 12%;
}
.etiqueta:nth-child(odd) { transform: rotate(-.8deg); } .etiqueta:nth-child(even) { transform: rotate(.7deg); }
.etiqueta__cat, .etiqueta h3 { text-align: center; }
.etiqueta__cat { display: block; }
.etiqueta__cat { font-family: var(--caps); font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--olive); }
.etiqueta h3 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.5rem; line-height: 1.15; color: var(--wine); margin: .1rem 0 .5rem; }
.etiqueta ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: 1.02rem; line-height: 1.4; }
.etiqueta li::marker { color: var(--gold); }
.etiqueta a { color: var(--wine); text-decoration-color: rgba(122, 31, 43, .4); text-underline-offset: 2px; }
.etiqueta__nota { font-style: italic; font-size: .92rem; opacity: .75; margin-top: .6rem; }

/* ---------- PT | EN ---------- */
.lang { position: fixed; z-index: 160; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .1rem; padding: .15rem .35rem; border-radius: 999px; background: rgba(251, 245, 234, .92); box-shadow: 0 2px 10px rgba(60, 30, 20, .18); font-family: var(--caps); font-size: .66rem; letter-spacing: .18em; color: var(--olive); }
.lang button { border: 0; background: none; min-width: 40px; min-height: 32px; font: inherit; letter-spacing: inherit; color: inherit; opacity: .55; cursor: pointer; padding: 0 .3rem; }
.lang button.is-on { opacity: 1; color: var(--wine); font-weight: 600; }
.lang span { opacity: .4; }
html.has-intro .lang { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); }
.card__list .hora { font-style: normal; font-family: var(--caps); font-weight: 500; letter-spacing: .08em; color: var(--wine); }
.card__alerta { margin: 1.4rem auto .2rem; max-width: 30ch; padding: .8rem 1rem; border: 1px solid var(--gold); border-left-width: 0; border-right-width: 0; font-style: italic; font-size: 1.05rem; line-height: 1.45; color: var(--ink); }
.card__alerta b { display: inline-block; margin-bottom: .2rem; font-style: normal; font-family: var(--caps); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
.etiqueta:nth-child(even) .etiqueta__cat { padding: 0 14%; }
.etiqueta__nota { text-align: center; }

/* =========================================================
   NOSSA HISTÓRIA: do pré-seed ao IPO (prospecto de ações)
   tinta das gravuras: terracota
   ========================================================= */
.historia { --tinta: #8a3f22; }
.historia__topo { text-align: center; max-width: 34rem; margin: 0 auto 2.6rem; }
.historia__kicker { font-family: var(--caps); font-weight: 600; font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--tinta); margin-bottom: .6rem; }
.historia__sub { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 7vw, 2.1rem); color: var(--wine); line-height: 1.15; margin-top: -.2rem; }

.rounds { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 980px; display: grid; gap: 2.2rem; }
.rounds__linha { position: absolute; left: 13px; top: 0; width: 4px; height: 100%; overflow: visible; pointer-events: none; }
.rounds__linha path { fill: none; stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.round { position: relative; padding-left: 44px; }
.round__dot { position: absolute; left: 6px; top: 1.6rem; width: 18px; height: 18px; border-radius: 50%; background: var(--cream, #f6ecda); border: 2px solid var(--gold); transition: background .4s, transform .4s; }
.round.is-on .round__dot { background: var(--wine); border-color: var(--wine); transform: scale(1.15); }
.round__card {
  position: relative; text-align: left;
  background-color: #fffbf4; background-image: linear-gradient(rgba(255, 253, 249, .5), rgba(255, 253, 249, .5)), var(--paper-grain);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 16px 26px -18px rgba(40, 25, 10, .5);
}
.round__card::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(195, 154, 69, .55); pointer-events: none; }
.round__art { margin: -.4rem auto .9rem; text-align: center; }
.round__art img { width: 100%; max-width: 400px; mix-blend-mode: multiply; }
.round[data-round="serie-b"] .round__art img { max-width: 230px; }
.round__fase { font-family: var(--caps); font-weight: 600; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--tinta); }
.round__data { font-family: var(--caps); font-size: .8rem; letter-spacing: .08em; color: var(--ink); margin-top: .15rem; }
.round__titulo { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.65rem; line-height: 1.15; color: var(--wine); margin: .3rem 0 .45rem; }
.round__texto { font-size: 1.08rem; line-height: 1.45; }
.round__termo { margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed rgba(138, 63, 34, .45); font-family: var(--caps); font-weight: 600; font-size: .74rem; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; color: #6a2c14; }
.round__corpo { position: relative; }
.round__carimbo {
  position: absolute; right: -4px; top: -2px; padding: .25rem .55rem;
  font-family: var(--caps); font-weight: 700; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--wine);
  border: 2px solid var(--wine); outline: 1px solid var(--wine); outline-offset: 2px; border-radius: 3px;
  transform: rotate(-9deg); opacity: .82; mix-blend-mode: multiply;
}
.round[data-round="ipo"] .round__card { background-color: #fff6e6; }
.round[data-round="ipo"] .round__carimbo { color: var(--tinta); border-color: var(--tinta); outline-color: var(--tinta); }

@media (min-width: 820px) {
  /* zigue-zague: cada cartão ocupa duas linhas da grade, então os lados se encaixam */
  .rounds { grid-template-columns: 1fr 1fr; column-gap: 96px; row-gap: 0; }
  .rounds__linha { left: 50%; margin-left: -2px; }
  .round { padding: 0 0 1.6rem; }
  .round:nth-of-type(odd) { grid-column: 1; } .round:nth-of-type(even) { grid-column: 2; }
  .round:nth-of-type(1) { grid-row: 1 / span 2; } .round:nth-of-type(2) { grid-row: 2 / span 2; }
  .round:nth-of-type(3) { grid-row: 3 / span 2; } .round:nth-of-type(4) { grid-row: 4 / span 2; }
  .round:nth-of-type(5) { grid-row: 5 / span 2; } .round:nth-of-type(6) { grid-row: 6 / span 2; }
  .round:nth-of-type(7) { grid-row: 7 / span 2; } .round:nth-of-type(8) { grid-row: 8 / span 2; }
  .round__dot { left: auto; right: -57px; }
  .round:nth-of-type(even) .round__dot { right: auto; left: -57px; }
}

/* gráfico da cotação */
.cotacao { max-width: 680px; margin: 3.4rem auto 0; text-align: center; }
.cotacao__titulo, .kpis__titulo { font-family: var(--caps); font-weight: 600; font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: #6a2c14; margin-bottom: 1rem; }
.cotacao__grafico { width: 100%; height: auto; overflow: visible; }
.cotacao__grafico .grade { stroke: rgba(138, 63, 34, .14); stroke-width: 1; }
.cotacao__grafico .area { fill: rgba(195, 154, 69, .16); }
.cotacao__grafico .linha { fill: none; stroke: var(--wine); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cotacao__grafico .ponto { fill: #fffbf4; stroke: var(--wine); stroke-width: 2; }
.cotacao__grafico .rotulo { font-family: var(--caps); font-weight: 600; font-size: 15px; letter-spacing: .06em; fill: #6a2c14; }
.cotacao__grafico .ano { font-family: var(--caps); font-size: 14px; fill: var(--ink); }
.cotacao__grafico .ipo { fill: var(--wine); font-family: var(--caps); font-size: 14px; font-weight: 700; letter-spacing: .12em; }

/* KPIs */
.kpis { max-width: 900px; margin: 3.4rem auto 0; text-align: center; }
.kpis__grade { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: rgba(195, 154, 69, .5); border: 1px solid rgba(195, 154, 69, .5); }
@media (min-width: 820px) { .kpis__grade { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fffbf4; padding: 1.2rem .8rem 1.1rem; display: grid; gap: .25rem; align-content: start; }
.kpi dt { font-family: var(--caps); font-weight: 600; font-size: .74rem; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; color: #6a2c14; }
.kpi dd { margin: 0; display: flex; flex-direction: column; align-items: center; }
.kpi dd b { font-family: var(--caps); font-weight: 500; font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.1; color: var(--wine); font-variant-numeric: tabular-nums; }
.kpi dd i { font-size: 1rem; color: var(--ink); margin-top: -.1rem; }
.kpi small { font-style: italic; font-size: 1.05rem; color: var(--ink); line-height: 1.3; }
.kpis__valuation { margin-top: 1.4rem; font-size: 1.15rem; font-style: italic; }
.kpis__valuation b { font-family: var(--caps); font-style: normal; font-weight: 600; letter-spacing: .1em; color: var(--wine); }
.kpis__vicio { margin: 1.4rem auto 0; max-width: 34ch; font-style: italic; font-size: 1.05rem; line-height: 1.45; }
.kpis__vicio b { font-style: normal; font-family: var(--caps); font-weight: 600; letter-spacing: .06em; color: var(--tinta); }
.kpis__valuation { margin-top: .6rem; }
@media (max-width: 600px) {
  .cotacao__grafico .rotulo { font-size: 21px; }
  .cotacao__grafico .ipo { font-size: 24px; }
  .cotacao__grafico .ano { font-size: 22px; }
  .cotacao__grafico .linha { stroke-width: 3.5; }
  .cotacao__grafico .ponto { r: 6; }
}

/* =========================================================
   MERCADO DE APOSTAS $GP
   ========================================================= */
.apostas { --tinta: #8a3f22; }
.apostas__intro { margin: 1rem auto 0; max-width: 36ch; font-size: 1.1rem; line-height: 1.45; }
.apostas__lista { max-width: 980px; margin: 0 auto; display: grid; gap: 1.2rem; text-align: left; }
@media (min-width: 820px) { .apostas__lista { grid-template-columns: 1fr 1fr; } }
.aposta {
  margin: 0; border: 0; min-width: 0;
  background-color: #fffbf4; background-image: linear-gradient(rgba(255, 253, 249, .5), rgba(255, 253, 249, .5)), var(--paper-grain);
  padding: 1.3rem 1.2rem 1.2rem; position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 14px 24px -18px rgba(40, 25, 10, .5);
}
.aposta::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(195, 154, 69, .5); pointer-events: none; }
.aposta__pergunta { float: left; width: 100%; padding: 0; margin: 0 0 .8rem; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--wine); }
.aposta__opcoes { clear: both; display: grid; gap: .45rem; }
.aposta__opcao { position: relative; display: block; cursor: pointer; }
.aposta__opcao input { position: absolute; opacity: 0; pointer-events: none; }
.aposta__opcao span { display: block; padding: .6rem .8rem .6rem 2.3rem; border: 1px solid #dcc8a2; background: #fffdf8; font-size: 1.05rem; line-height: 1.3; transition: background .2s, border-color .2s; position: relative; }
.aposta__opcao span::before { content: ""; position: absolute; left: .8rem; top: 50%; width: 15px; height: 15px; margin-top: -8px; border-radius: 50%; border: 1.5px solid var(--tinta); background: #fff; }
.aposta__opcao input:checked + span { background: #f8e9dc; border-color: var(--tinta); }
.aposta__opcao input:checked + span::before { background: var(--tinta); box-shadow: inset 0 0 0 3px #fff; }
.aposta__opcao input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.aposta__envio { grid-column: 1 / -1; display: grid; gap: .8rem; justify-items: center; text-align: center; max-width: 30rem; width: 100%; margin: .6rem auto 0; }
.aposta__nome { width: 100%; text-align: left; }
.aposta__aviso { min-height: 1.3em; font-style: italic; color: var(--wine); }
.aposta__total { font-size: 1.15rem; }
.aposta__total b { font-family: var(--caps); font-weight: 600; color: var(--wine); font-size: 1.4rem; }
/* placar */
.mercado { list-style: none; margin: 0; padding: 0; clear: both; display: grid; gap: .65rem; }
.mercado__linha { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; align-items: baseline; }
.mercado__nome { font-size: 1.05rem; line-height: 1.3; }
.mercado__nome em { font-style: normal; font-family: var(--caps); font-weight: 600; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--tinta); padding: .12rem .4rem; margin-left: .3rem; vertical-align: .15em; white-space: nowrap; }
.mercado__pct { font-family: var(--caps); font-weight: 600; font-size: .95rem; color: #6a2c14; font-variant-numeric: tabular-nums; }
.mercado__barra { grid-column: 1 / -1; height: 8px; background: rgba(138, 63, 34, .1); overflow: hidden; }
.mercado__barra i { display: block; height: 100%; width: 0; background: rgba(138, 63, 34, .45); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.is-aberto .mercado__barra i { width: var(--w); }
.mercado__linha.is-lider .mercado__barra i { background: var(--wine); }
.mercado__linha.is-meu .mercado__nome { font-weight: 600; }

/* =========================================================
   LIVRO DE RECADOS
   ========================================================= */
.recados .wrap { text-align: center; }
.recado-form { max-width: 30rem; margin: 2rem auto 0; display: grid; gap: .9rem; text-align: left; background: var(--ivory); padding: 1.4rem 1.3rem; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .4); }
.recado-form__intro { font-size: 1.08rem; line-height: 1.45; }
.recado-form__ok { font-style: italic; color: var(--olive); text-align: center; }
.recados__mural { margin: 2.2rem auto 0; max-width: 980px; display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .recados__mural { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .recados__mural { grid-template-columns: repeat(3, 1fr); } }
.recados__vazio { font-style: italic; font-size: 1.1rem; background: rgba(251, 245, 234, .9); padding: .8rem 1rem; display: inline-block; justify-self: center; grid-column: 1 / -1; }
.recado {
  margin: 0; position: relative; text-align: left; transform: rotate(var(--r, 0deg));
  background: #fffaf0; padding: 1.5rem 1.3rem 1.2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 16px 24px -16px rgba(40, 25, 10, .55);
}
.recado::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: rgba(195, 154, 69, .45); transform: rotate(-3deg); }
.recado blockquote { margin: 0; font-style: italic; font-size: 1.12rem; line-height: 1.5; white-space: pre-line; }
.recado figcaption { margin-top: .7rem; font-family: var(--caps); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.recado__selo { display: inline-block; margin-bottom: .5rem; font-family: var(--caps); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); border: 1px solid var(--olive); padding: .1rem .4rem; }

/* =========================================================
   BRINDE e EASTER EGGS
   ========================================================= */
.brinde { margin-top: 1.6rem; display: grid; justify-items: center; gap: .4rem; }
.brinde__btn { position: relative; display: grid; justify-items: center; gap: .2rem; background: rgba(255, 248, 230, .7); border: 1px solid rgba(110, 85, 32, .45); border-radius: 999px; padding: .5rem 1.4rem .7rem; cursor: pointer; color: #4a3a18; font-family: var(--caps); font-weight: 600; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.brinde__btn img { width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }
.brinde__btn:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.brinde__btn.is-tim img { animation: tim .5s ease; }
@keyframes tim { 30% { transform: rotate(-8deg) scale(1.12); } 60% { transform: rotate(6deg) scale(1.05); } }
.brinde__mais { position: absolute; top: 0; font-family: var(--caps); font-weight: 700; font-size: 1rem; color: var(--wine); pointer-events: none; animation: sobe 1.2s ease-out forwards; }
@keyframes sobe { to { transform: translateY(-46px); opacity: 0; } }
.brinde__total { font-size: 1.1rem; color: #3f3414; min-height: 1.4em; }
.brinde__total b { font-family: var(--caps); font-weight: 600; }

.ride__horse.is-tocavel { pointer-events: auto; cursor: pointer; }
.anfitrioes img.is-tocavel { cursor: pointer; }
.anfitrioes img.is-latindo { animation: late .5s ease 2; }
@keyframes late { 25% { transform: rotate(-3deg) translateY(-4px); } 75% { transform: rotate(3deg); } }
.manada { position: fixed; inset: 0; z-index: 140; pointer-events: none; overflow: hidden; }
.manada img { position: absolute; top: var(--y); left: 0; width: calc(110px * var(--s)); transform: translateX(-140px); animation: galopa 3.2s linear var(--d) forwards; filter: drop-shadow(0 2px 0 rgba(255, 245, 225, .8)); }
@keyframes galopa { to { transform: translateX(calc(100vw + 40px)); } }
.aposta__quem { grid-column: 1 / -1; background: #fffbf4; padding: 1.1rem 1.2rem; border: 1px solid rgba(195, 154, 69, .6); text-align: center; }
.aposta__quem-titulo { font-family: var(--caps); font-weight: 600; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: #6a2c14; margin-bottom: .7rem; }
.aposta__nomes { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.aposta__nomes .aposta__opcao span { padding-right: 1rem; }
.aposta__quem-dica { margin-top: .6rem; font-style: italic; font-size: 1rem; }
.aposta__ja { font-style: normal; font-family: var(--caps); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-left: .3rem; }
.aposta__nome.aposta__quem { text-align: left; }
.aposta__de { grid-column: 1 / -1; text-align: center; font-size: 1.2rem; }
.aposta__de b { font-family: var(--caps); font-weight: 600; color: var(--wine); letter-spacing: .06em; }

/* =========================================================
   COMPUTADOR / TELA DEITADA
   ========================================================= */
/* Abertura: a foto do envelope é 9:16. Em tela deitada ela cabe pela altura,
   e as laterais somem no toile do fundo (sem emenda). */
@media (min-aspect-ratio: 4/5) {
  /* toile em volta, na mesma escala e tom do toile da foto; a foto se dissolve nele */
  .intro { background: #f3e5cc url("../img/toile-floral.webp") center / auto calc(max(var(--tela, 100svh), 560px) * .62); }
  .intro::before { background: linear-gradient(rgba(246, 236, 218, .12), rgba(246, 236, 218, .12)); }
  .env {
    --W: calc(max(var(--tela, 100svh), 560px) / 1.784);
    -webkit-mask-image: linear-gradient(to right, transparent 2%, #000 24%, #000 76%, transparent 98%);
            mask-image: linear-gradient(to right, transparent 2%, #000 24%, #000 76%, transparent 98%);
  }
}
/* Final: a arte é quadrada (900px no computador); as laterais se fundem no verde */
@media (min-width: 900px) {
  .end {
    background:
      linear-gradient(to right, #8c8b64 calc(50% - 450px), rgba(140, 139, 100, 0) calc(50% - 300px), rgba(140, 139, 100, 0) calc(50% + 300px), #8c8b64 calc(50% + 450px)) center top / 100% 900px no-repeat,
      linear-gradient(to bottom, rgba(140, 139, 100, 0) 640px, #8c8b64 890px) center top / 100% 900px no-repeat,
      #8c8b64 url("../img/papel-final.webp") center top / 900px auto no-repeat;
  }
}
.aposta__nome.aposta__quem { max-width: 30rem; width: 100%; justify-self: center; margin: 0 auto; }

/* =========================================================
   COMPUTADOR (1000px ou mais): aproveita a largura
   No celular nada muda.
   ========================================================= */
@media (min-width: 1000px) {
  html { font-size: 17px; }

  /* Detalhes e Como chegar lado a lado, sobre o mesmo papel */
  .dupla {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: stretch;
    padding: 7rem max(2.5rem, calc(50vw - 600px));
    background: var(--cream); background-image: var(--paper-grain);
  }
  .dupla > .section { background: none; padding: 0; display: flex; }
  .dupla .suite { max-width: 540px; width: 100%; display: flex; }
  .dupla .card { flex: 1; display: flex; flex-direction: column; justify-content: center; }

  /* Traje: cartão largo, eles e elas lado a lado, dicas em linha */
  #traje .suite { max-width: 1120px; }
  #traje .card { padding: 3.2rem 3.4rem 2.8rem; }
  .looks-par { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: .6rem; }
  .looks-par .looks { margin-top: 1rem; }
  .looks__grade img { height: 300px; }
  #traje .card__list { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 2rem; align-items: center; text-align: left; margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid rgba(195, 154, 69, .45); }
  #traje .card__list > div { margin: 0; }
  .traje__detalhes { width: 100%; margin: 0; }

  /* Circulei: na horizontal, arara de um lado e texto do outro */
  .note-card { max-width: 820px; display: grid; grid-template-columns: 260px 1fr; gap: 2.4rem; align-items: center; text-align: left; padding: 2.4rem 2.6rem; margin-top: 4.5rem; transform: rotate(-.8deg); }
  .note-card__arara { width: 100%; margin: 0; }
  .note-card__brand { padding-left: 0; }

  /* textos de abertura das seções um pouco mais largos */
  .fora__intro { max-width: 46ch; }
}
@media (min-width: 820px) {
  /* número ímpar de apostas: a última fica centralizada */
  .apostas__lista > .aposta:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; width: calc(50% - .6rem); justify-self: center; }
}

/* Aporte livre */
.presente--livre { background-color: #f6ead6; outline: 1px dashed rgba(122, 31, 43, .45); outline-offset: -8px; }
.livre__selo { font-family: var(--caps); font-weight: 600; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: var(--wine); padding: .2rem .6rem; margin-bottom: .6rem; transform: rotate(-2deg); }
.livre__campo { display: flex; align-items: baseline; justify-content: center; gap: .35rem; width: 100%; margin: .4rem 0 .6rem; border-bottom: 2px solid var(--wine); padding-bottom: .2rem; }
.livre__campo span { font-family: var(--caps); font-size: 1.3rem; color: var(--wine); }
.livre__campo input { width: 8ch; border: 0; background: none; font-family: var(--caps); font-size: 2rem; color: var(--wine); text-align: left; padding: 0; outline: none; font-variant-numeric: tabular-nums; }
.livre__campo:focus-within { border-bottom-color: var(--olive); }
.livre__chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: .4rem; }
.livre__chip { border: 1px solid rgba(122, 31, 43, .45); background: #fffaf1; color: var(--wine); font-family: var(--caps); font-size: .7rem; letter-spacing: .06em; padding: .45rem .7rem; border-radius: 999px; cursor: pointer; }
.livre__chip.is-on, .livre__chip:hover { background: var(--wine); color: var(--ivory); }
.livre__aviso { min-height: 1.3em; font-style: italic; font-size: .95rem; color: var(--wine); }

/* Etiquetas de viagem balançam no cordão quando o mouse passa */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .etiqueta { transform-origin: 50% 2%; transition: transform .3s; }
  .etiqueta:hover { animation: balanca 1.5s ease-in-out; }
  @keyframes balanca {
    0% { transform: rotate(0deg); } 18% { transform: rotate(4.5deg); } 38% { transform: rotate(-3.2deg); }
    58% { transform: rotate(2deg); } 78% { transform: rotate(-.9deg); } 100% { transform: rotate(0deg); }
  }
  .presente { transition: transform .35s ease, box-shadow .35s ease; }
  .presente:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 22px 30px -18px rgba(40,25,10,.55); }
}
