/* Abertura da Dhandara — "capas cinematográficas" (clone fiel da identidade do original, com o traçado em ouro).
   Identidade: Petrona (nome e títulos), IBM Plex Sans (interface), IBM Plex Mono (rótulos); paleta ouro/marfim/tinta/noite. */
:root {
  --ouro: #c8a96a; --ouro-l: #e8d3a2; --ouro-b: #f2e4c0; --ouro-s: #8f7440; --ambar: #e8a24a; --ivory: #f6edcf;
  --capa: #fbf9f5; --pagina: #fffdf8; --palco: #f7f4ee; --rose: #e6a6ba; --rose2: #d57e97; --rose-esc: #b25873;
  --rose-gold: #d9a88c; --blush: #f5e4ea; --tinta: #2e2a26; --tinta2: #5a5147; --tinta3: #8a8074; --grafite: #3a2c34;
  --noite: #12100e; --noite2: #1a1714; --noite-tinta: #efe7da;
  --f-display: 'Petrona', 'Iowan Old Style', Georgia, serif;
  --f-ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dock: calc(84px + env(safe-area-inset-bottom));
  color-scheme: light;
}
html, body { margin: 0; height: 100%; background: var(--noite); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.ab { position: fixed; inset: 0; overflow: hidden; background: var(--noite); color: var(--tinta); font-family: var(--f-ui); -webkit-tap-highlight-color: transparent; }
.ab *, .ab *::before, .ab *::after { box-sizing: border-box; }
.ab a { color: inherit; text-decoration: none; }
.ab button { font: inherit; color: inherit; }
:where(.ab) h1, :where(.ab) h2, :where(.ab) p { margin: 0; font-weight: inherit; }
.ab-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== palco das capas ===== */
.ab-stage { position: absolute; left: 0; right: 0; top: 0; bottom: var(--dock); overflow: hidden; isolation: isolate; background: #e8dcc2; touch-action: pan-y; }
.ab-cover { position: absolute; inset: 0; overflow: hidden; isolation: isolate; visibility: hidden; }
.ab-cover.on { visibility: visible; }
.ab-cam { position: absolute; inset: 0; transform-origin: 50% 46%; }
.ab-layer { position: absolute; inset: 0; pointer-events: none; }

/* foto (Lírios / Ela é sábia): primeiro a miniatura embaçada embutida, depois a imagem nítida */
.ab-photo { position: absolute; inset: -6%; background-size: cover; background-position: 50% 58%; z-index: 1; will-change: transform; }
.ab-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: inherit; opacity: 0; transition: opacity .45s ease; }
.ab-photo img.ok { opacity: 1; }
.ab-veil { position: absolute; inset: 0; z-index: 2; background: radial-gradient(62% 46% at 50% 34%, #fffae8a0, #0000 70%), linear-gradient(#fdf8ec14, #fdf8ec2a 46%, #e2d4b650); }
.ab-rays { position: absolute; z-index: 3; width: 130vmax; height: 130vmax; left: calc(var(--sx, 50%) - 65vmax); top: calc(var(--sy, 45%) - 65vmax); background: url(img/raios.webp) center / contain no-repeat; mix-blend-mode: screen; opacity: .55; pointer-events: none; will-change: transform; }
.ab-sun { position: absolute; z-index: 3; width: 70vmin; height: 70vmin; left: calc(var(--sx, 50%) - 35vmin); top: calc(var(--sy, 45%) - 35vmin); border-radius: 50%; background: radial-gradient(circle, #fffbe9b0 0%, #fff3c84a 26%, #ffeab000 62%); pointer-events: none; will-change: transform; }
.ab-fxc { position: absolute; inset: 0; z-index: 44; width: 100%; height: 100%; pointer-events: none; }
.ab-vignette { position: absolute; inset: 0; z-index: 90; pointer-events: none; background: radial-gradient(at 50% 43%, #0000 48%, #1a10051f 74%, #1a10055c 100%); }
.ab-grain { position: absolute; inset: 0; z-index: 91; pointer-events: none; opacity: .045; background: url(img/grao.png) 0 0 / 256px 256px repeat; }

/* nome claro (capas de luz) */
.ab-light { position: absolute; left: 0; right: 0; top: var(--name-top, 23%); z-index: 56; will-change: transform; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 18px; color: #3f3120; pointer-events: none; }
.ab-kicker { margin: 0; font: 600 var(--k-fs, 11px)/1.2 var(--f-ui); letter-spacing: .48em; padding-left: .48em; text-transform: uppercase; color: #7a6237; text-shadow: 0 1px 0 #fff8; }
.ab-name { margin: .2em 0 0; font-size: var(--fs, 60px); line-height: .9; font-weight: 400; display: flex; flex-direction: column; align-items: center; color: #3f3120; }
.ab-name .ab-nome { display: block; overflow: visible; filter: drop-shadow(0 16px 26px #604a2440); }
.ab-name .l2 { font-size: .44em; margin-top: .3em; color: #7d6440; }
.ab-orn { width: clamp(150px, 15vw, 200px); height: 18px; margin-top: .9em; }
.ab-orn svg { width: 100%; height: 100%; overflow: visible; }
.ab-orn path { fill: none; stroke: #a8853c; stroke-width: 1.2; stroke-linecap: round; }
.ab-orn .dot { fill: #a8853c; stroke: none; }
.ab-phrase { margin: .8em auto 0; max-width: 34em; font: italic 400 var(--p-fs, 15px)/1.45 var(--f-display); color: #4d4436; text-shadow: 0 1px 0 #fff9, 0 0 18px #fff8e6; text-wrap: balance; }
.ab-ref { display: block; margin-top: 1.05em; font: 500 10px/1 var(--f-mono); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; font-style: normal; color: #7a6237; }

/* lírios */
.ab-garden { position: absolute; inset: 0; z-index: 62; pointer-events: none; will-change: transform; --lw: clamp(138px, 19vw, 280px); }
.c-lirios, .c-luz { --trace: #b08b42; --rib: #b08b4280; }
.ab-lily { position: absolute; left: var(--x); bottom: var(--b); width: calc(var(--lw) * var(--s)); translate: -50% 0; transform-origin: 50% 100%; rotate: var(--sw, 0deg); pointer-events: none; will-change: rotate; }
.ab-lily svg { display: block; width: 100%; height: auto; overflow: visible; }
.lr-tr { stroke: var(--trace, #c8a96a); stroke-linecap: round; stroke-linejoin: round; }
.lr-rib { stroke: var(--rib, #c8a96a8c); stroke-width: .7; stroke-linecap: round; }
.lr-rib-leaf { stroke: #e8d3a280; }
.lr-fil { stroke: #a7b777; stroke-width: 1.15; stroke-linecap: round; }
.lr-pistil { stroke: #bccb84; stroke-width: 1.6; }
.lr-halo { opacity: .8; }

/* ===== HUD ===== */
.ab-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 120; display: flex; justify-content: space-between; align-items: center; padding: calc(16px + env(safe-area-inset-top)) clamp(16px, 3.4vw, 48px) 14px; font: 500 10px/1 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: #ffffffd0; text-shadow: 0 1px 12px #0000006e; pointer-events: none; }
.ab-hud .brand { opacity: .78; }
.ab-hud .count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ab-arrow { position: absolute; top: 50%; z-index: 120; width: 48px; height: 76px; margin-top: -38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid #ffffff2a; background: #1d18144d; color: #fff; cursor: pointer; opacity: 0; transition: opacity .35s, background .25s; padding: 0; }
.ab.ab-hover .ab-arrow, .ab-arrow:focus-visible { opacity: .7; }
.ab-arrow:hover { opacity: 1; background: #050c0f4a; }
.ab-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ab-arrow.prev { left: clamp(10px, 2vw, 28px); }
.ab-arrow.next { right: clamp(10px, 2vw, 28px); }

/* ===== botão principal "Entrar no presente" (grande, com luz percorrendo a borda) ===== */
.ab-cta { scale: var(--br, 1); position: absolute; z-index: 130; left: 50%; bottom: var(--cta-b, 92px); translate: -50% 0; width: var(--cta-w, min(84vw, 330px)); height: var(--cta-h, 62px); display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 26px; border-radius: 999px; color: var(--ivory); cursor: pointer; isolation: isolate; font: 600 12.5px/1 var(--f-ui); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; -webkit-user-select: none; user-select: none; }
.ab-cta .glass { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, #3d342be0, #1d1814ee); box-shadow: 0 14px 34px #2a1d0c55, inset 0 1px 0 #fff3, inset 0 -10px 22px #0004; z-index: -2; }
.ab-cta .glow { position: absolute; inset: -10px; border-radius: inherit; background: radial-gradient(60% 90% at 50% 50%, #f2e4c055, #0000 70%); z-index: -3; opacity: .6; }
.ab-cta svg.frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; pointer-events: none; }
.ab-cta .frame .base { fill: none; stroke: #e8d3a2a6; stroke-width: 1.2; }
.ab-cta .frame .run { fill: none; stroke: #fff6dc; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px #ffe7a8); }
.ab-cta .ico { width: 22px; height: 22px; flex: none; overflow: visible; }
.ab-cta .ico path { fill: none; stroke: var(--ouro-l); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ab .ab-cta { color: var(--ivory); }
.ab .ab-dk { color: var(--noite-tinta); }
.ab-cta .txt { position: relative; padding-left: .26em; text-shadow: 0 1px 0 #0006; }
.ab-cta .go { width: 18px; height: 18px; flex: none; }
.ab-cta .go path { fill: none; stroke: var(--ouro-l); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ab-cta .rip { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff6dc88, #fff6dc00 70%); pointer-events: none; z-index: -1; }
.ab-cta:focus-visible { outline: 2px solid var(--ouro-b); outline-offset: 4px; }

/* pontos + pausa (o ponto ativo é a barra de progresso da capa) */
.ab-ctrl { position: absolute; z-index: 125; left: 50%; bottom: var(--ctrl-b, 22px); translate: -50% 0; display: flex; align-items: center; gap: 10px; }
.ab-dots { display: flex; align-items: center; height: 44px; padding: 0 6px; border-radius: 999px; background: #050c0f26; border: 1px solid #ffffff22; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ab-dot { appearance: none; border: 0; background: none; padding: 0; width: var(--dot-w, 34px); height: 44px; position: relative; cursor: pointer; }
.ab-dot i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; translate: -50% -50%; border-radius: 999px; background: #ffffff70; overflow: hidden; transition: background .25s; }
.ab-dot.on i { width: 26px; background: #ffffff38; }
.ab-dot i b { position: absolute; inset: 0; transform-origin: 0 50%; scale: var(--p, 0) 1; background: linear-gradient(90deg, var(--ouro-l), #fff6dc); border-radius: inherit; }
.ab-dot:not(.on) i b { display: none; }
.ab-dot:hover i { background: #ffffffb0; }
.ab-dot:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 12px; }
.ab-pause { appearance: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: #fff; background: #1d1814a6; border: 1px solid #ffffff22; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ab .ab-pause, .ab .ab-arrow { color: #fff; }
.ab-pause svg { width: 14px; height: 14px; fill: currentColor; }
.ab-pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ===== dock de destinos (para onde ir) ===== */
.ab-dock { position: absolute; left: 0; right: 0; bottom: 0; height: var(--dock); z-index: 140; display: flex; align-items: stretch; justify-content: center; gap: 0; padding: 6px 8px env(safe-area-inset-bottom); background: linear-gradient(180deg, #1c1814, #100e0c 70%); border-top: 1px solid #c8a96a40; box-shadow: 0 -18px 40px #0000004d; }
.ab-dock::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, #0000, #e8d3a2a0 30%, #fff6dc 50%, #e8d3a2a0 70%, #0000); opacity: .55; }
.ab-dock .brand { display: none; }
.ab-dk { flex: 1 1 0; max-width: 132px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-radius: 18px; color: var(--noite-tinta); font: 600 10.5px/1.1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; position: relative; transition: background .25s; }
.ab-dk svg { width: 28px; height: 28px; overflow: visible; }
.ab-dk svg path, .ab-dk svg circle, .ab-dk svg rect { fill: none; stroke: var(--ouro); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.ab-dk svg .dot { fill: var(--ouro-l); stroke: none; }
.ab-dk:hover, .ab-dk:focus-visible { background: #c8a96a1f; outline: none; }
.ab-dk:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ouro-l); }
.ab-dk:hover svg path, .ab-dk:hover svg circle, .ab-dk:hover svg rect { stroke: var(--ouro-b); }

/* ===== capas escuras / outras artes ===== */
.ab-cover .bg { position: absolute; inset: 0; }
.ab-cloud { position: absolute; border-radius: 50%; filter: blur(20px); opacity: .54; }
.ab-cloud::before, .ab-cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.ab-cloud::before { width: 70%; height: 120%; top: -45%; left: 10%; }
.ab-cloud::after { width: 55%; height: 95%; top: -24%; right: 3%; }

/* 2 · Tesouro */
.c-tesouro .bg { background: radial-gradient(46% 38% at 50% 11%, #ffffe2c2, #0000 58%), radial-gradient(90% 62% at 50% 64%, #00c5c47a, #0000 68%), linear-gradient(#d8e6d5 0%, #3baeb3 18%, #078d93 49%, #006b73 72%, #053e47 100%); }
.c-tesouro .sweep { position: absolute; inset: 0; background: linear-gradient(112deg, #0000 23%, #fffcda42 42%, #0000 58%); filter: blur(12px); }
.c-tesouro .copy { position: absolute; z-index: 48; left: 50%; top: var(--t2-top, 12%); translate: -50% 0; width: min(94vw, 980px); color: var(--ivory); text-align: center; pointer-events: none; }
.c-tesouro .kick { margin: 0; font: 600 var(--k-fs, 11px)/1 var(--f-ui); letter-spacing: .46em; padding-left: .46em; text-transform: uppercase; color: #fffaf0; text-shadow: 0 1px 12px #06464d99, 0 0 2px #06464d55; }
.c-tesouro .big { position: relative; width: max-content; margin: .26em auto 0; font-size: var(--t2-fs, clamp(112px, min(22vw, 30svh), 300px)); line-height: .63; display: flex; flex-direction: column; align-items: flex-start; }
.c-tesouro .big .ab-nome { display: block; filter: drop-shadow(0 15px 26px #002e3440); }
.c-tesouro .big .ln2 { margin-left: .35em; }
.c-tesouro .em { position: absolute; right: -.1em; bottom: -.02em; font: 600 clamp(10px, 1.45vw, 16px)/1 var(--f-ui); letter-spacing: .45em; text-transform: uppercase; color: var(--ivory); }
.c-tesouro .verse { position: absolute; right: 5%; top: calc(100% + 10px); width: clamp(150px, 20vw, 240px); margin: 0; text-align: left; font: italic 400 clamp(13px, 1.55vw, 18px)/1.42 var(--f-display); color: #f9f1daeb; text-shadow: 0 2px 14px #03363a80; }
.c-tesouro .verse .ab-ref { color: #f6edcfb0; letter-spacing: .24em; padding-left: 0; }
.c-tesouro .field { position: absolute; z-index: 36; left: -3%; right: -3%; bottom: -1%; height: 30%; clip-path: polygon(0 18%, 8% 12%, 18% 20%, 29% 11%, 43% 17%, 57% 9%, 69% 16%, 81% 8%, 100% 15%, 100% 100%, 0 100%); background: linear-gradient(#77c1971f, #3b745d 28%, #1a493d 100%); }
.c-tesouro .field::before { content: ''; position: absolute; left: 0; right: 0; top: -18%; height: 45%; background: radial-gradient(at 50% 100%, #ffeda7d4, #ffd57c3d 34%, #0000 70%); filter: blur(5px); }
.c-tesouro .grass { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-tesouro .chest { position: absolute; z-index: 66; left: 50%; bottom: var(--chest-b, calc(var(--cta-b) + var(--cta-h, 62px) - 6px)); translate: -50% 0; width: clamp(150px, 17vw, 240px); aspect-ratio: 340 / 280; }
.c-tesouro .chest svg { width: 100%; height: 100%; overflow: visible; }

/* 3 · Vigiai */
.c-vigiai .bg { background: radial-gradient(circle at 54% 15%, #ceecffcc, #0000 8%), radial-gradient(68% 55% at 50% 20%, #4fb2e894, #0000 62%), linear-gradient(#2a91c5 0%, #14649d 31%, #072d50 63%, #03121e 100%); }
.c-vigiai .sweep { position: absolute; inset: 0; background: linear-gradient(102deg, #0000 32%, #cbf4ff33 47%, #0000 55%); filter: blur(12px); }
.c-vigiai .portal { position: absolute; z-index: 22; left: 50%; top: var(--v-top, 6%); translate: -50% 0; width: var(--v-w, clamp(200px, 40vw, 440px)); aspect-ratio: 1; }
.c-vigiai .portal svg { width: 100%; height: 100%; overflow: visible; }
.c-vigiai .copy { position: absolute; z-index: 52; left: 50%; top: var(--v-copy, 40%); translate: -50% 0; width: min(96vw, 1000px); text-align: center; color: #f1f7f8; pointer-events: none; }
.c-vigiai .kick { margin: 0 0 .2em; font: 600 var(--k-fs, 11px)/1 var(--f-ui); letter-spacing: .46em; padding-left: .46em; text-transform: uppercase; color: #eff8fbc7; }
.c-vigiai .big { position: relative; display: inline-block; font-size: var(--v-fs, clamp(86px, 19vw, 290px)); line-height: .8; }
.c-vigiai .big .ab-nome { display: block; filter: drop-shadow(0 10px 40px #001428b0); }
.c-vigiai .line { display: block; height: 1px; margin: .02em 6% 0 7%; background: linear-gradient(90deg, #0000, #d7f5ff 20% 80%, #0000); transform-origin: 50% 50%; }
.c-vigiai .sub { display: flex; justify-content: center; align-items: baseline; gap: 1.2em; margin-top: .9em; font: 500 clamp(10px, 1.25vw, 14px)/1 var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: #eaf6fa; }
.c-vigiai .sub strong { font-weight: 600; letter-spacing: .08em; font-size: 1.45em; }
.c-vigiai .date { position: absolute; z-index: 52; left: 50%; bottom: var(--v-date, 22%); translate: -50% 0; display: flex; align-items: center; gap: 1.1em; margin: 0; white-space: nowrap; font: 500 clamp(9px, 1.15vw, 13px)/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #ebf7fbc2; }
.c-vigiai .date i { display: block; width: clamp(28px, 8vw, 100px); height: 1px; background: #dbf1f980; transform-origin: 100% 50%; }
.c-vigiai .date i:last-child { transform-origin: 0 50%; }
.c-vigiai .prism { position: absolute; z-index: 45; top: 0; right: -3vw; width: 18vw; height: 100%; background: linear-gradient(90deg, #0000, #ffffff0f, #71b7ff2e, #ff51d917, #0000); filter: blur(7px); mix-blend-mode: screen; transform: skew(-8deg); }

/* 4 · Genuína */
.c-genuina { color: #101820; }
.c-genuina .bg { background: radial-gradient(circle at 50% 37%, #fffffffa, #0000 28%), linear-gradient(#f4f6f4, #e8eeee 58%, #d8e2e3 100%); }
.c-genuina .bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#203e460c 1px, #0000 1px), linear-gradient(90deg, #203e460c 1px, #0000 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(circle at 50% 38%, #000, #0000 72%); mask-image: radial-gradient(circle at 50% 38%, #000, #0000 72%); }
.c-genuina .geo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 8; }
.c-genuina .door { position: absolute; z-index: 24; left: 50%; top: var(--d-top, 6%); translate: -50% 0; height: var(--d-h, 41%); aspect-ratio: 330 / 520; perspective: 1100px; }
.c-genuina .door .door-in { position: absolute; inset: 0; transform-style: preserve-3d; }
.c-genuina .door .light { position: absolute; inset: 1.5% 25%; background: linear-gradient(#fffdf1, #fff2b8 42%, #ceebeb94 77%, #0000); filter: blur(6px); }
.c-genuina .door .frame { position: absolute; inset: 0; border: 7px double #9b7c4b; background: linear-gradient(90deg, #805d3014, #0000, #805d3014); box-shadow: 0 18px 35px #2b42453b, inset 0 0 22px #ffffff47; }
.c-genuina .door .panel { position: absolute; top: 1.5%; bottom: 1.5%; width: 48.7%; border: 2px solid #785432; background: linear-gradient(90deg, #ffffff2e, #0000 24%, #00000014), repeating-linear-gradient(0deg, #0000 0 22%, #6e4e2b3b 22% 22.8%, #0000 22.8% 25%), linear-gradient(#b88f5b, #8f6841); box-shadow: inset 0 0 0 5px #e8c78f47; }
.c-genuina .door .panel::before { content: ''; position: absolute; inset: 8%; border: 2px solid #4f351d8c; box-shadow: inset 0 0 0 4px #deb87e2b; }
.c-genuina .door .panel::after { content: ''; position: absolute; top: 48%; width: 7px; height: 7px; border-radius: 50%; background: #d7b776; box-shadow: 0 0 0 3px #76552f; }
.c-genuina .door .pl { left: 1.5%; transform-origin: 0 50%; }
.c-genuina .door .pl::after { right: 10%; }
.c-genuina .door .pr { right: 1.5%; transform-origin: 100% 50%; }
.c-genuina .door .pr::after { left: 10%; }
.c-genuina .copy { position: absolute; z-index: 56; left: 50%; top: var(--g-top, 49%); translate: -50% 0; width: min(96vw, 1050px); text-align: center; color: #142126; pointer-events: none; }
.c-genuina .pre { margin: 0 0 .5em; font: 500 clamp(10px, 1.2vw, 14px)/1 var(--f-ui); letter-spacing: .34em; padding-left: .34em; text-transform: uppercase; color: #5f655f; }
.c-genuina .big { display: flex; flex-direction: column; align-items: center; font-size: var(--g-fs, clamp(54px, min(8.2vw, 12.5svh), 124px)); line-height: .82; }
.c-genuina .big .ab-nome { display: block; filter: drop-shadow(0 4px 18px #ffffffd9); }
.c-genuina .big .l2 { font-size: .72em; margin-top: .1em; }
.c-genuina .tag { display: inline-block; margin-top: 1.1em; padding: .6em 1.1em; font: 500 clamp(10px, 1.15vw, 13px)/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: #3a4c50; position: relative; }
.c-genuina .tag i { position: absolute; left: 0; right: 0; height: 1px; background: #142a3061; }
.c-genuina .tag i:first-child { top: 0; } .c-genuina .tag i:last-child { bottom: 0; }
.c-genuina .star { position: absolute; z-index: 52; width: 10px; height: 10px; background: #1b3539; rotate: 45deg; box-shadow: 0 0 0 8px #1b35390a; }

/* 5 · Eu Sou */
.c-eusou { color: #fff; }
.c-eusou .bg { background: radial-gradient(circle at 48% 5%, #ffc9559e, #0000 20%), radial-gradient(62% 58% at 52% 26%, #89561b6b, #0000 68%), linear-gradient(#5b4324 0%, #2d2419 35%, #15110d 72%, #090806 100%); }
.c-eusou .smoke { position: absolute; z-index: 6; border-radius: 50%; background: #e3be7e54; filter: blur(28px); }
.c-eusou .tree { position: absolute; z-index: 42; left: 50%; top: var(--e-tree, 6%); translate: -50% 0; width: var(--e-tw, clamp(250px, 42vw, 520px)); aspect-ratio: 600 / 700; filter: drop-shadow(0 18px 22px #0000007a); }
.c-eusou .tree svg, .c-eusou .mount svg { width: 100%; height: 100%; overflow: visible; }
.c-eusou .mount { position: absolute; z-index: 30; left: 50%; bottom: -2%; translate: -50% 0; width: min(104vw, 1080px); height: 70%; }
.c-eusou .copy { position: absolute; z-index: 64; left: var(--e-x, 50%); bottom: var(--e-copy, calc(var(--cta-b) + var(--cta-h, 62px) + 26px)); translate: -50% 0; width: min(94vw, 760px); text-align: center; pointer-events: none; }
.c-eusou .who { margin: 0 0 .1em; font: 400 clamp(22px, 4vw, 54px)/1.1 var(--f-display); letter-spacing: .02em; color: #f2dfb6; text-shadow: 0 6px 30px #000b; }
.c-eusou .big { display: inline-flex; flex-direction: column; align-items: center; font-size: var(--e-fs, clamp(92px, min(15vw, 24svh), 210px)); line-height: .74; rotate: -3deg; }
.c-eusou .big .ab-nome { display: block; filter: drop-shadow(0 10px 36px #000000c0); }
.c-eusou .big .l2 { margin-left: .3em; }
.c-eusou .verse { margin: 1.3em auto 0; max-width: 46em; font: 600 clamp(9px, 1.05vw, 12px)/1.6 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: #fff4ddcc; }
.c-eusou .verse .ab-ref { color: #f6edcf99; }

/* 6-8 · luz dourada */
.c-luz .ab-photo { background-position: 50% 66%; }

/* ===== escolha de destino ===== */
.ab-dest { position: absolute; inset: 0; z-index: 200; visibility: hidden; overflow: hidden; color: var(--tinta); background: var(--pagina); }
.ab-dest.on { visibility: visible; }

/* ===== tamanhos por tela ===== */
.ab { --fs: clamp(60px, min(9vw, 17svh), 140px); --k-fs: clamp(10.5px, 1.3vw, 14px); --p-fs: clamp(14.5px, 1.65vw, 19px); }
@media (max-width: 700px) {
  .ab-arrow { display: none; }
  .ab { --name-top: 17.5%; --cta-b: 84px; --ctrl-b: 18px; }
}
@media (min-width: 701px) {
  .c-tesouro .verse { right: auto; left: 70%; width: 220px; top: calc(100% + 16px); }
  .ab { --dock: 88px; --cta-b: 96px; --ctrl-b: 18px; --cta-w: 340px; --cta-h: 64px; --name-top: 22%; }
  .ab-dock { gap: 10px; padding: 12px 24px; align-items: center; }
  .ab-dock .brand { display: flex; align-items: center; gap: 10px; position: absolute; left: 28px; top: 50%; translate: 0 -50%; font: italic 400 20px/1 var(--f-display); color: var(--ouro-l); letter-spacing: .01em; }
  .ab-dock .brand svg { width: 22px; height: 22px; }
  .ab-dock .brand svg path { fill: none; stroke: var(--ouro); stroke-width: 1.3; stroke-linecap: round; }
  .ab-dk { flex: 0 0 auto; max-width: none; min-height: 58px; flex-direction: row; gap: 12px; padding: 0 22px; border-radius: 999px; font-size: 11.5px; letter-spacing: .18em; border: 1px solid #c8a96a33; background: #ffffff06; }
  .ab-dk svg { width: 26px; height: 26px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .ab { --dock: calc(58px + env(safe-area-inset-bottom)); --fs: clamp(48px, 15svh, 90px); --name-top: 9%; --p-fs: 13.5px; --k-fs: 10px; --cta-w: 300px; --cta-h: 56px; --cta-b: 14px; --ctrl-b: 20px; }
  .ab-dock { padding: 4px 12px env(safe-area-inset-bottom); gap: 8px; align-items: center; }
  .ab-dk { flex-direction: row; min-height: 48px; max-width: none; flex: 0 0 auto; padding: 0 18px; gap: 10px; font-size: 10.5px; border-radius: 999px; }
  .ab-dk svg { width: 22px; height: 22px; }
  .ab-dock .brand { display: none; }
  .ab-cta { left: auto; right: clamp(16px, 4vw, 40px); translate: 0 0; }
  .ab-ctrl { left: clamp(16px, 4vw, 40px); translate: 0 0; }
  .ab-arrow { display: none; }
  .ab-phrase { margin-top: .9em; max-width: 44em; }
  .ab-ref { margin-top: .8em; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-photo img { transition: none; }
}

/* primeira pintura (antes do módulo): a foto já aparece; o nome/frases esperam o traço (ou surgem sozinhos em 3 s se o JS falhar) */
.ab-name-txt { font: 400 var(--fs, 60px)/.9 var(--f-display); letter-spacing: -.024em; color: #3f3120; text-shadow: 0 2px 0 #fff9, 0 22px 52px #604a246b; }
.ab-name-txt small { display: block; font-size: .44em; letter-spacing: .2em; margin-top: .3em; color: #7d6440; }
/* se o módulo atrasar, o próprio HTML escreve o nome e a frase (da esquerda para a direita) a partir de 0,75 s */
.ab-js .ab:not(.ab-live) .ab-static > * { opacity: 0; will-change: opacity; animation: ab-show .55s ease .75s forwards; }
.ab-js .ab:not(.ab-live) .ab-static > :nth-child(2) { animation-delay: .8s; }
.ab-js .ab:not(.ab-live) .ab-static > :nth-child(3) { animation-delay: .9s; }
.ab-js .ab:not(.ab-live) .ab-static > :nth-child(4) { animation-delay: .98s; }
.ab-live .ab-static { display: none; }
.ab-js .ab:not(.ab-live) .ab-dk svg, .ab-js .ab:not(.ab-live) .ab-cta .frame, .ab-js .ab:not(.ab-live) .ab-cta .ico, .ab-js .ab:not(.ab-live) .ab-cta .go { opacity: 0; will-change: opacity; animation: ab-show .5s ease .75s forwards; }
/* (só no caminho de reserva — módulo atrasado — e animado no compositor, que anda mesmo com a página ocupada) */
@keyframes ab-show { to { opacity: 1; } }
.ab-static .ab-orn { margin-top: .9em; }

@media (min-aspect-ratio: 5/4) {
  .c-eusou { --e-x: 66%; --e-copy: 22%; }
  .c-eusou .tree { left: 36%; }
}

@media (max-width: 700px) {
  .c-tesouro .em { position: static; display: block; align-self: flex-end; margin: .42em .05em 0 0; font-size: 10.5px; }
  .c-tesouro .verse { top: calc(100% + 14px); right: 4%; width: 190px; }
  .c-vigiai .date { white-space: normal; width: 84vw; justify-content: center; text-align: center; letter-spacing: .12em; line-height: 1.5; gap: .7em; }
  .c-vigiai .date i { width: 22px; flex: none; }
  .c-luz { --name-top: 22%; }
  .ab-long .ab-hud .brand { display: none; }
}

/* ===== escolha de destino (depois de "Entrar no presente") ===== */
.ab-dest { position: fixed; inset: 0; z-index: 300; visibility: hidden; color: var(--tinta); background: none; }
.ab-dest.on { visibility: visible; }
.dd-bg { position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% -12%, #fff1c9 0%, #fbf6ea 48%, #f3eadb 100%); }
.dd-bg::after { content: ''; position: absolute; inset: 0; background: url(img/fibra.webp) 0 0 / 1024px 1024px; mix-blend-mode: multiply; opacity: .55; }
.dd-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: calc(14px + env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom)); }
.dd-head { position: relative; text-align: center; padding: 52px 18px 0; display: flex; flex-direction: column; align-items: center; }
.dd-back, .dd-back2 { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid #c8a96a66; background: #fffdf8cc; color: var(--tinta2); font: 600 11px/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.dd-back { position: absolute; left: 14px; top: 0; }
.dd-back svg, .dd-back2 svg, .dd-sh button svg, .dc-go svg, .dd-gal-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dd-back:hover, .dd-back2:hover { background: #fff; border-color: var(--ouro); }
.dd-back:focus-visible, .dd-back2:focus-visible, .dc:focus-visible, .dd-st:focus-visible, .dd-sh button:focus-visible { outline: 2px solid var(--ouro-s); outline-offset: 3px; }
.dd-k { font: 600 11px/1.2 var(--f-ui); letter-spacing: .48em; padding-left: .48em; text-transform: uppercase; color: #7a6237; margin-top: 8px; }
.dd-name { margin-top: .22em; font-size: clamp(54px, 7.4vw, 96px); line-height: .9; display: flex; flex-direction: column; align-items: center; }
.dd-name .ab-nome { display: block; overflow: visible; }
.dd-name .l2 { font-size: .44em; margin-top: .3em; }
.dd-orn { margin-top: 18px; width: 220px; height: 24px; }
.dd-orn svg { width: 100%; height: 100%; overflow: visible; }
.dd-orn path { fill: none; stroke: var(--ouro); stroke-width: 1.2; stroke-linecap: round; }
.dd-orn .dot { fill: var(--ouro); stroke: none; }
.dd-sub { margin-top: 14px; font: italic 400 clamp(18px, 2.2vw, 24px)/1.3 var(--f-display); color: var(--tinta2); }
.dd-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0 16px; max-width: 1240px; margin: 26px auto 0; perspective: 1200px; }
.dc { position: relative; display: grid; grid-template-columns: 124px 1fr 26px; align-items: center; gap: 14px; min-height: 116px; padding: 12px 16px 12px 12px; border-radius: 22px; color: var(--tinta); background: linear-gradient(180deg, #fffdf8, #fbf2df); box-shadow: 0 12px 30px #5a4a2a1f, inset 0 1px 0 #fff; transform-style: preserve-3d; will-change: transform; }
.dc-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dc-frame .base { fill: none; stroke: #c8a96a9c; stroke-width: 1.2; }
.dc-frame .run { fill: none; stroke: #e8b85a; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.dc-art { display: block; }
.dc-art svg { display: block; width: 124px; height: auto; overflow: visible; }
.dc-art .flame, .dc-art .flame2 { transform-box: fill-box; transform-origin: 50% 100%; }
.dc-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dc-k { font: 500 10px/1.2 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ouro-s); }
.dc-t { font: 400 27px/1.05 var(--f-display); color: var(--tinta); }
.dc-d { font: 400 13.5px/1.42 var(--f-ui); color: var(--tinta2); }
.dc-go { width: 26px; height: 26px; display: grid; place-items: center; color: var(--ouro-s); }
.dc:hover .dc-t { color: #000; }
.dd-stories { max-width: 1240px; margin: 34px auto 0; padding: 0 16px; }
.dd-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dd-sh h2 { margin: 0; font: 400 clamp(22px, 2.6vw, 30px)/1.1 var(--f-display); color: var(--tinta); }
.dd-sh button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid #c8a96a80; background: var(--noite); font: 600 11px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; flex: none; }
.ab .dd-sh button, .ab .dd-gal-x { color: var(--ivory); }
.dd-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 2px 10px; scrollbar-width: thin; }
.dd-st { flex: 0 0 auto; width: 128px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--tinta); }
.dd-st .im { display: block; width: 128px; aspect-ratio: 3 / 4; border-radius: 14px; background-size: cover; background-position: center; box-shadow: 0 10px 22px #3a2c1a2e; border: 1px solid #c8a96a55; }
.dd-st .tt { font: 400 15px/1.15 var(--f-display); }
.dd-st .bk { font: 500 9.5px/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ouro-s); }
.dd-foot { max-width: 760px; margin: 30px auto 0; padding: 0 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dd-verse { margin: 0; font: italic 400 16px/1.5 var(--f-display); color: var(--tinta2); }
.dd-verse span { display: block; margin-top: .7em; font: 500 10px/1 var(--f-mono); font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--ouro-s); }
.dd-gal { position: fixed; inset: 0; z-index: 400; background: #0b0a09; }
.dd-gal-x { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid #e8d29a66; background: #0b0a09cc; color: #f3eee4; font: 600 11px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
@media (min-width: 640px) { .dd-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) {
  .dd-head { padding-top: 36px; }
  .dd-back { left: 28px; }
  .dd-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
  .dc { grid-template-columns: 1fr; align-content: start; gap: 16px; min-height: 330px; padding: 18px 20px 24px; border-radius: 26px; }
  .dc-art svg { width: 100%; }
  .dc-t { font-size: 32px; }
  .dc-go { position: absolute; right: 18px; bottom: 18px; }
  .dd-st { width: 150px; } .dd-st .im { width: 150px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .dd-head { padding-top: 8px; } .dd-back { top: 4px; }
  .dd-name { font-size: 46px; }
  .dd-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) { .ab { --t2-fs: 112px; } }
@media (max-height: 520px) and (orientation: landscape) {
  .ab { --t2-fs: 27svh; --chest-b: 30%; --v-fs: 30svh; --v-copy: 26%; --v-top: 2%; --v-w: 62svh; --d-h: 30%; --d-top: 5%; --g-top: 35%; --g-fs: 44px; --e-fs: 22svh; --e-copy: 35%; }
  .c-tesouro .copy { top: 5%; }
  .c-tesouro .big { margin-top: .42em; }
  .c-tesouro .em { position: static; display: block; align-self: flex-end; margin: .4em .05em 0 0; font-size: 10px; }
  .c-tesouro .chest { width: 110px; left: 84%; bottom: 38%; }
  .c-tesouro .verse { display: none; }
  .c-vigiai .date { display: none; }
  .c-vigiai .sub { margin-top: .5em; }
  .c-genuina .tag { margin-top: .7em; }
  .c-genuina .pre { margin-bottom: .3em; }
  .c-eusou .tree { width: 38svh; top: 4%; }
  .c-eusou .who { font-size: 20px; }
  .c-eusou .verse { margin-top: .9em; }
}
