/* =====================================================================
   Para Lara — estilos
   Camadas: mapa (0) · 3D opaco (1) · viagem/colagens (5) · 3D transparente (15)
            · clima (16) · véu (30) · confete (40) · HUD (50) · modais (60) · abertura (80)
   ===================================================================== */
:root {
  --ink: #2b2d42; --paper: #f7efe0; --accent: #ef5b84; --bg: #e9dcc4;
  --serif: 'Playfair Display', Georgia, serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --script: 'Great Vibes', cursive;
  --poster: 'Bebas Neue', Impact, sans-serif;
  --type: 'Special Elite', 'Courier New', monospace;
  --ui: 'Quicksand', system-ui, sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: auto; overflow-anchor: none; }
body, #journey, .chapter { overflow-anchor: none; }
body {
  margin: 0; background: #07060f; color: #fff; font-family: var(--ui);
  overflow-x: clip; -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; height: 100vh; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; }

/* ---------------------------------------------------------- camadas fixas */
#globe { position: fixed; inset: 0; z-index: 0; opacity: 0; transition: opacity .9s; background: #000; }
#globe.on { opacity: 1; }
#globe .cesium-viewer, #globe .cesium-widget, #globe canvas { width: 100%; height: 100%; }
#globe .cesium-widget-credits { font-size: 10px !important; bottom: 34px !important; left: 10px !important; opacity: .8; }
#globe .cesium-widget-credits img { max-height: 14px; }
#mood { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: background .8s; }
#mood[data-m=summer] { background: radial-gradient(circle at 88% 6%, rgba(255,222,150,.55), transparent 42%), linear-gradient(180deg, rgba(255,190,110,.10), rgba(0,0,0,0) 40%, rgba(255,150,80,.14)); }
#mood[data-m=winter] { background: radial-gradient(ellipse at center, transparent 50%, rgba(20,40,80,.35)), linear-gradient(180deg, rgba(200,220,255,.28), rgba(180,205,245,.16)); }
#mood[data-m=rain] { background: radial-gradient(ellipse at center, transparent 45%, rgba(10,18,30,.5)), linear-gradient(180deg, rgba(60,75,100,.38), rgba(35,45,65,.3)); }
#mood[data-m=autumn] { background: radial-gradient(circle at 10% 0%, rgba(255,180,90,.45), transparent 45%), linear-gradient(180deg, rgba(255,160,70,.12), rgba(120,60,20,.16)); }
#mood[data-m=spring] { background: radial-gradient(circle at 80% 10%, rgba(255,200,220,.5), transparent 45%), linear-gradient(180deg, rgba(255,190,215,.16), rgba(255,170,200,.1)); }
#mood[data-m=golden] { background: radial-gradient(circle at 20% 10%, rgba(255,170,90,.55), transparent 50%), linear-gradient(180deg, rgba(255,140,60,.18), rgba(80,30,40,.2)); }

#webgl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; display: block; }
body.over #webgl { z-index: 15; }
body.noworld #webgl { visibility: hidden; }
#weather { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 16; pointer-events: none; }
#fx2d { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
#veil { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; background: #000; }
#trail { position: fixed; inset: 0; z-index: 41; pointer-events: none; }
#trail span { position: absolute; transform: translate(-50%, -50%); animation: trail 1.1s ease-out forwards; text-shadow: 0 0 6px rgba(255,220,160,.8); }
@keyframes trail { to { opacity: 0; transform: translate(calc(-50% + var(--dx)), -10px) scale(.4); } }

/* ---------------------------------------------------------- capítulos */
#journey { position: relative; z-index: 5; }
.chapter { position: relative; }
.stage { position: sticky; top: 0; height: var(--vh, 100vh); overflow: hidden; pointer-events: none; }
.stage * { pointer-events: auto; }
.stage .line, .stage .lines, .stage .paper, .stage .doodles, .stage .hero-title, .stage .frase-wrap { pointer-events: none; }

.lines { position: absolute; left: 0; right: 0; bottom: 13vh; display: grid; place-items: center; padding: 0 6vw; }
.line { grid-area: 1 / 1; max-width: 900px; text-align: center; font-family: var(--serif); font-size: clamp(22px, 3.4vw, 46px); line-height: 1.3;
  text-shadow: 0 2px 18px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.5); opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 1s, transform 1.1s cubic-bezier(.2,.8,.2,1), filter 1s; margin: 0; }
.line.on { opacity: 1; transform: none; filter: none; }
.line em { font-family: var(--script); font-style: normal; font-size: 1.45em; color: #ffd6e4; line-height: .9; }
.line.big { font-family: var(--script); font-size: clamp(64px, 11vw, 150px); }
.line .hint { display: block; margin-top: 14px; font-family: var(--ui); font-size: 15px; letter-spacing: .04em; opacity: .85; }
.lines.top { top: 12vh; bottom: auto; }
.on-paper .line { color: #3b2a1a; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.on-paper .line em { color: #c2263b; }
.on-paper .lines .line { background: #fbf3e2; padding: 18px 26px; border-radius: 3px; box-shadow: 0 10px 30px rgba(60,40,20,.25); rotate: -1deg; max-width: min(760px, 88vw); font-size: clamp(19px, 2.4vw, 32px); }

/* ---------------------------------------------------------- destino sobre o 3D real */
.overlay { position: absolute; inset: 0; color: var(--ink); }
.overlay .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.42), transparent 30%, transparent 62%, rgba(0,0,0,.4)); }
[data-depth] { will-change: translate; }
.dtitle { position: absolute; left: 4vw; top: 10vh; color: #fff; pointer-events: none; text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity 1.2s, transform 1.4s cubic-bezier(.2,.9,.25,1), filter 1.2s; }
.dtitle.on { opacity: 1; transform: none; filter: none; }
.dtitle h2 { margin: 0; font-family: var(--poster); font-weight: 400; font-size: clamp(56px, 9vw, 150px); letter-spacing: .05em; line-height: .9; }
.st-brush .dtitle h2 { font-family: var(--script); letter-spacing: 0; font-size: clamp(70px, 11vw, 180px); line-height: 1; }
.st-stamp .dtitle h2 { font-family: var(--serif); font-weight: 800; letter-spacing: .12em; font-size: clamp(44px, 7vw, 110px); }
.dtitle p { margin: 4px 0 0; font-family: var(--hand); font-weight: 700; font-size: clamp(22px, 2.6vw, 38px); color: #ffe7c4; }
.dt-kicker { display: inline-block; font-family: var(--type); font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .3em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 3px; text-shadow: none; margin-bottom: 10px; }
.season { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-family: var(--type); font-size: clamp(11px, 1.2vw, 15px); padding: 5px 12px; border-radius: 30px; text-shadow: none; rotate: -2deg; }

/* polaroides que viram */
.pola { position: absolute; width: clamp(110px, 15vw, 240px); aspect-ratio: .82; rotate: var(--r, 0deg); perspective: 900px; cursor: pointer;
  opacity: 0; transform: translateY(60px) scale(.7); transition: opacity .8s, transform 1s cubic-bezier(.2,.9,.3,1.3); }
.pola.on { opacity: 1; transform: none; }
.pola-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,.9,.3,1.1); }
.pola.flip .pola-in { transform: rotateY(180deg); }
.pf, .pb { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fffdf7; box-shadow: 0 10px 22px rgba(40,25,10,.3); padding: 7% 7% 24%; }
.pf .ph { width: 100%; height: 100%; overflow: hidden; background: #ddd; }
.pf img { width: 100%; height: 100%; object-fit: cover; }
.pf span { position: absolute; left: 4%; right: 4%; bottom: 5%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--hand); font-weight: 700; font-size: clamp(15px, 1.6vw, 24px); color: #333; }
.pb { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 12%; color: var(--ink);
  background: repeating-linear-gradient(#fffdf7 0 1.45em, #e4ecf5 1.45em calc(1.45em + 1px)); font-family: var(--hand); font-size: clamp(15px, 1.45vw, 22px); line-height: 1.45em; }
.pb small { font-family: var(--ui); font-size: 11px; color: #999; margin-top: auto; }
.pola::before { content: ''; position: absolute; z-index: 2; left: 50%; top: -4%; width: 42%; height: 11%; translate: -50% 0; rotate: -4deg; background: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.pola .tap { position: absolute; z-index: 3; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.25); animation: pulse 2s infinite; }
.pola.flip .tap, .pola.seen .tap { display: none; }
@keyframes pulse { 50% { transform: scale(1.18); } }

/* selo para carimbar */
.selo { position: absolute; width: clamp(92px, 10.5vw, 170px); aspect-ratio: .8; rotate: var(--r, 6deg); opacity: 0; transform: translateY(-80px) rotate(20deg) scale(1.3); transition: opacity .6s, transform .9s cubic-bezier(.2,1,.3,1.25); }
.selo.on { opacity: 1; transform: none; }
.selo-in { position: absolute; inset: 0; background: #fff; padding: 8%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
  -webkit-mask: radial-gradient(circle 5px at center, #0000 96%, #000) -6px -6px / 12px 12px, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(circle 5px at center, #0000 96%, #000) -6px -6px / 12px 12px, linear-gradient(#000 0 0) content-box; padding: 9px; }
.selo-in .sp { position: absolute; inset: 9px 9px 26% 9px; overflow: hidden; }
.selo-in img { width: 100%; height: 100%; object-fit: cover; }
.selo-in b { position: absolute; right: 14px; top: 10px; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 32px); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.selo-in span { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; font-family: var(--poster); letter-spacing: .14em; font-size: clamp(13px, 1.4vw, 20px); color: var(--ink); }
.selo .carimbo { position: absolute; inset: -14% -18%; display: grid; place-items: center; pointer-events: none; opacity: 0; transform: scale(2.2) rotate(-25deg); }
.selo .carimbo svg { width: 100%; height: 100%; }
.selo.stamped .carimbo { animation: stampIn .45s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes stampIn { to { opacity: .9; transform: scale(1) rotate(-14deg); } }
.selo .hint-s { position: absolute; left: 50%; bottom: -26px; translate: -50% 0; white-space: nowrap; font-family: var(--hand); font-weight: 700; font-size: 18px; color: var(--ink); background: var(--paper); padding: 0 8px; border-radius: 10px; }
.selo.stamped .hint-s { display: none; }

/* etiqueta de bagagem */
.tag { position: absolute; width: clamp(150px, 15vw, 230px); padding: 16px 16px 14px 38px; background: #e9c98f; color: #3b2a1a; font-family: var(--hand); font-weight: 700; font-size: clamp(15px, 1.4vw, 21px); line-height: 1.15;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%); box-shadow: 0 6px 14px rgba(0,0,0,.2); rotate: var(--r, -12deg);
  opacity: 0; transform: translateX(-40px); transition: opacity .7s, transform 1s cubic-bezier(.2,.9,.3,1.3); }
.tag.on { opacity: 1; transform: none; }
.tag::before { content: ''; position: absolute; left: 14px; top: 50%; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px #b8925a; }
.tag small { display: block; font-family: var(--type); font-weight: 400; font-size: 10px; letter-spacing: .12em; opacity: .7; margin-bottom: 3px; }

/* lembrança interativa */
.souv { position: absolute; width: clamp(74px, 9vmin, 104px); aspect-ratio: 1; border-radius: 50%; background: #fffdf6; box-shadow: 0 0 0 4px var(--accent), 0 10px 22px rgba(0,0,0,.25);
  display: grid; place-items: center; font-size: clamp(30px, 4.6vmin, 50px); opacity: 0; transform: scale(0); transition: opacity .5s, transform .8s cubic-bezier(.2,1.4,.4,1); }
.souv.on { opacity: 1; transform: none; animation: bob 3s ease-in-out infinite 1s; }
.souv small { position: absolute; top: 100%; margin-top: 8px; white-space: nowrap; font-family: var(--hand); font-weight: 700; font-size: 17px; color: var(--ink); background: var(--paper); padding: 0 8px; border-radius: 10px; }
.souv:active { scale: .9; }
@keyframes bob { 50% { translate: 0 -6px; } }

/* frase do lugar (bilhete de papel) */
.frase-wrap { position: absolute; }
.frase { position: relative; background: #fffaf0; color: var(--ink); padding: 2.4vmin 3vmin 2vmin; font-family: var(--hand); font-weight: 700; font-size: clamp(19px, 2.3vw, 34px); line-height: 1.18;
  box-shadow: 0 12px 26px rgba(40,25,10,.28); opacity: 0; transform: translateY(30px) rotate(2deg); transition: opacity 1s, transform 1.2s cubic-bezier(.2,.9,.3,1.2); }
.frase.on { opacity: 1; transform: rotate(-1.2deg); }
.frase::before { content: '♥'; position: absolute; left: -12px; top: -16px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--ui); font-size: 17px; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.frase .sig { display: block; text-align: right; font-size: .7em; color: var(--accent); margin-top: 4px; }
.frase .w { opacity: 0; transition: opacity .4s; }
.frase.on .w { opacity: 1; }

/* sonhos da casa (checklist) */
.sonhos { position: absolute; margin: 0; list-style: none; background: #fffdf7; color: var(--ink); padding: 18px 22px 16px; font-family: var(--hand); font-weight: 700; font-size: clamp(16px, 1.6vw, 24px); line-height: 1.35;
  box-shadow: 0 10px 24px rgba(40,25,10,.25); rotate: 2deg; width: clamp(180px, 19vw, 300px);
  background-image: repeating-linear-gradient(#fffdf7 0 1.35em, #e7eef6 1.35em calc(1.35em + 1px)); opacity: 0; transform: translateY(40px); transition: opacity .8s, transform 1s; }
.sonhos.on { opacity: 1; transform: none; }
.sonhos h4 { margin: 0 0 6px; font-family: var(--poster); font-weight: 400; letter-spacing: .1em; font-size: 1.15em; color: var(--accent); }
.sonhos li { position: relative; padding-left: 1.3em; }
.sonhos li::before { content: '☐'; position: absolute; left: 0; }
.sonhos li.ok::before { content: '☑'; color: #2f7d4f; }

/* posições — paisagem (o centro fica livre para o 3D) */
.dest .pola { width: clamp(140px, 14.5vw, 215px); }
.dest .p1 { left: 3vw; top: 42vh; }
.dest .p2 { left: 15vw; top: 47vh; }
.dest .p3 { right: 3vw; left: auto; top: 33vh; }
.dest .pc { left: 3vw; top: 40vh; width: clamp(150px, 17vw, 260px); }
.dest .selo { right: 3.5vw; left: auto; top: 10vh; }
.dest .tag { right: 17vw; left: auto; top: 11vh; --r: -6deg; width: clamp(140px, 13vw, 210px); }
.dest .souv { left: 44vw; bottom: 6vh; top: auto; }
.dest .frase-wrap { left: 3vw; bottom: 4vh; width: min(38vw, 560px); }
.dest .sonhos { right: 3vw; left: auto; top: 33vh; }
.st-home .p1, .st-home .p2 { top: auto; bottom: 30vh; }
.st-home .p1 { left: 22vw; } .st-home .p2 { left: 32vw; }

/* posições — retrato (celular) */
@media (max-aspect-ratio: 1/1) {
  .dtitle { top: 9vh; left: 5vw; }
  .dtitle h2 { font-size: 15vw; }
  .st-brush .dtitle h2 { font-size: 19vw; }
  .st-stamp .dtitle h2 { font-size: 11vw; }
  .dtitle p { font-size: 6vw; }
  .dest .pola { width: 25vw; }
  .dest .p1 { left: 3vw; top: 34vh; }
  .dest .p2 { left: 3vw; top: 55vh; }
  .dest .p3 { right: 3vw; top: 30vh; }
  .dest .pc { left: 3vw; top: 34vh; width: 32vw; }
  .dest .selo { right: 3vw; top: 9vh; width: 20vw; }
  .dest .tag { display: none; }
  .dest .souv { left: auto; right: 4vw; bottom: auto; top: 54vh; width: 15vw; }
  .souv small { font-size: 13px; }
  .dest .frase-wrap { left: 4vw; right: 4vw; width: auto; bottom: 2.5vh; }
  .frase { font-size: clamp(16px, 4.4vw, 23px); padding: 12px 16px 10px; }
  .dest .sonhos { right: 3vw; top: 30vh; width: 50vw; font-size: 13px; padding: 10px 12px; }
  .st-home .p1, .st-home .p2 { display: none; }
  .pb { font-size: 3.2vw; padding: 10%; }
  .pf span { font-size: 3.4vw; }
  .selo .hint-s { font-size: 13px; bottom: -22px; }
  .lines { bottom: 15vh; }
  .line { font-size: clamp(20px, 6vw, 30px); }
  .line.big { font-size: 22vw; }
}

/* ---------------------------------------------------------- festa / carta / surpresas */
.blow-ui { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; font-family: var(--ui); font-size: 15px; }
.btn { background: #fff; color: #3b2a1a; font-weight: 600; padding: 12px 22px; border-radius: 40px; box-shadow: 0 8px 22px rgba(0,0,0,.3); font-family: var(--ui); font-size: 16px; }
.btn.pink { background: linear-gradient(135deg, #ff7aa8, #ef5b84); color: #fff; }
.btn:active { transform: scale(.96); }
.parabens { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; opacity: 0; transition: opacity 1.2s; }
.parabens.on { opacity: 1; }
.parabens h2 { font-family: var(--script); font-weight: 400; font-size: clamp(64px, 12vw, 170px); margin: 0; color: #fff; text-shadow: 0 0 30px rgba(255,170,200,.8), 0 4px 20px rgba(0,0,0,.6); line-height: 1; }
.parabens p { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 30px); margin: 10px 20px 0; text-shadow: 0 2px 14px rgba(0,0,0,.8); }

.letter-stage { display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(20,10,8,.35), rgba(5,3,8,.8)); }
.letter { position: relative; width: min(680px, 90vw); height: min(80vh, 760px); background: #fbf5e8; color: #3b2a1a; padding: clamp(26px, 5vmin, 56px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); background-image: var(--grain), linear-gradient(#fbf5e8, #f3e8d2); rotate: -.6deg; }
.letter::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(160,110,60,.35); pointer-events: none; }
.letter .lp { position: absolute; inset: clamp(26px, 5vmin, 56px); display: flex; flex-direction: column; justify-content: center; gap: 1.1em; opacity: 0; transform: translateY(16px); transition: opacity .9s, transform .9s; }
.letter .lp.on { opacity: 1; transform: none; }
.letter p { margin: 0; font-family: var(--hand); font-size: clamp(20px, 2.5vw, 30px); line-height: 1.32; }
.letter p.hi { font-family: var(--script); font-size: clamp(38px, 5vw, 60px); color: #b3263a; }
.letter .sign { font-family: var(--script); font-size: clamp(30px, 4vw, 48px); color: #b3263a; text-align: right; line-height: 1.1; }
.letter .wax { position: absolute; right: -18px; bottom: -18px; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e0566f, #a3142d 70%); color: #ffd9e0; display: grid; place-items: center; font-size: 30px; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.letter .pg { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--type); font-size: 12px; color: #a08060; }

.surp-stage { background: #f3e6cc; background-image: var(--grain), radial-gradient(ellipse at 50% 30%, #fff6e2, #ecd9b4); color: #3b2a1a; }
.surp { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 3vmin; padding: 9vh 5vw 5vh; }
.surp h3 { font-family: var(--script); font-weight: 400; font-size: clamp(34px, 4.4vw, 58px); margin: 0 0 8px; color: #b3263a; text-align: center; }
.album { grid-column: 1 / -1; position: relative; height: clamp(170px, 30vh, 280px); }
.album .cord { position: absolute; left: -5vw; right: -5vw; top: 22px; height: 40px; border-top: 2px solid #8b6a4a; border-radius: 50%; }
.album .row { position: absolute; inset: 0; display: flex; justify-content: center; gap: 2.4vw; padding-top: 20px; }
.album .ap { position: relative; width: clamp(100px, 13vw, 180px); aspect-ratio: .82; background: #fffdf7; padding: 6% 6% 22%; box-shadow: 0 10px 20px rgba(0,0,0,.2); rotate: var(--r); transform-origin: 50% 0; animation: swing 4s ease-in-out infinite; animation-delay: var(--d); }
.album .ap::before { content: ''; position: absolute; left: 50%; top: -14px; width: 12px; height: 28px; margin-left: -6px; background: #c9a77a; border-radius: 3px; box-shadow: inset 0 0 0 2px #a8865a; }
.album .ap .ph { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #f1e4cc 0 10px, #eadbbd 10px 20px); display: grid; place-items: center; overflow: hidden; color: #a08060; font-size: 12px; text-align: center; font-family: var(--ui); }
.album .ap img { width: 100%; height: 100%; object-fit: cover; }
.album .ap span { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font-family: var(--hand); font-weight: 700; font-size: clamp(14px, 1.5vw, 20px); }
@keyframes swing { 50% { rotate: calc(var(--r) * -1); } }
.jar-box, .gift-box { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.jar { position: relative; width: clamp(130px, 15vw, 200px); aspect-ratio: .8; cursor: pointer; }
.jar .glass { position: absolute; inset: 14% 0 0; border-radius: 22% 22% 26% 26%; background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(220,240,255,.25) 40%, rgba(255,255,255,.5)); border: 3px solid rgba(140,170,190,.6); overflow: hidden; }
.jar .lid { position: absolute; left: 12%; right: 12%; top: 4%; height: 13%; background: #c2263b; border-radius: 8px; box-shadow: inset 0 -4px rgba(0,0,0,.15); }
.jar .notes i { position: absolute; width: 26%; height: 14%; border-radius: 3px; background: var(--c); rotate: var(--r); left: var(--x); bottom: var(--y); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.jar .label { position: absolute; left: 18%; right: 18%; top: 44%; background: #fffaf0; font-family: var(--hand); font-weight: 700; text-align: center; padding: 4px; font-size: clamp(14px, 1.5vw, 20px); rotate: -3deg; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.jar:active { transform: rotate(-6deg); }
.motivo { margin-top: 18px; min-height: 120px; width: min(380px, 42vw); background: #fffdf3; padding: 16px 18px; font-family: var(--hand); font-weight: 700; font-size: clamp(18px, 2vw, 26px); text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.15); rotate: -1.5deg; display: grid; place-items: center; }
.motivo small { display: block; font-family: var(--type); font-weight: 400; font-size: 12px; color: #b3263a; margin-bottom: 4px; }
.motivo.pop { animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.scratch { position: relative; width: min(380px, 42vw); aspect-ratio: 1.75; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 26px rgba(0,0,0,.25); background: linear-gradient(135deg, #fff6e4, #ffe1ea); }
.scratch .prize { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 6%; }
.scratch .prize b { font-family: var(--poster); font-weight: 400; letter-spacing: .08em; font-size: clamp(22px, 3vw, 38px); color: #b3263a; }
.scratch .prize p { margin: 6px 0 0; font-family: var(--hand); font-weight: 700; font-size: clamp(16px, 1.8vw, 23px); color: #3b2a1a; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
@media (max-aspect-ratio: 1/1) {
  .surp { grid-template-columns: 1fr 1fr; padding: 7vh 4vw 4vh; gap: 2vh 3vw; }
  .album { height: 28vh; }
  .album .row { gap: 2vw; }
  .album .ap { width: 18vw; }
  .album .ap:nth-child(n+5) { display: none; }
  .motivo, .scratch { width: 44vw; }
  .motivo { font-size: 16px; min-height: 110px; padding: 10px; }
  .scratch { aspect-ratio: 1.1; }
  .scratch .prize b { font-size: 18px; } .scratch .prize p { font-size: 14px; }
  .surp h3 { font-size: 30px; }
  .letter { height: 84vh; }
  .letter p { font-size: clamp(17px, 4.6vw, 22px); }
}

.final-btns { position: absolute; left: 0; right: 0; bottom: 6vh; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; opacity: 0; transition: opacity 1s; pointer-events: none; }
.final-btns.on { opacity: 1; pointer-events: auto; }
.final-btns .btn { background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.3); font-size: 14px; padding: 10px 18px; }

/* ---------------------------------------------------------- HUD */
#hud { position: fixed; z-index: 50; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: max(12px, env(safe-area-inset-top)) 14px 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
#ticketChip { display: flex; align-items: center; gap: 8px; background: #fbf3e2; color: #3b2a1a; font-family: var(--poster); letter-spacing: .1em; font-size: 18px; padding: 6px 14px 5px; border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25); opacity: 0; transform: translateY(-20px); transition: opacity .5s, transform .5s; border-left: 4px dashed #c2263b; }
#ticketChip.on { opacity: 1; transform: none; }
#ticketChip .tc-veh { font-size: 16px; animation: fly 1.6s ease-in-out infinite; }
@keyframes fly { 50% { transform: translateX(4px) translateY(-2px); } }
.hud-btns { display: flex; gap: 8px; }
.hud-btns button { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 22px; background: rgba(15,12,30,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 15px; display: flex; align-items: center; gap: 4px; }
#btnPass.bump { animation: bump .6s; }
@keyframes bump { 30% { transform: scale(1.35); background: #c2263b; } }
#progress { position: fixed; z-index: 50; left: 18px; right: 18px; bottom: max(10px, env(safe-area-inset-bottom)); height: 18px; pointer-events: none; }
#progress .pr-line { position: absolute; left: 0; right: 0; top: 8px; border-top: 2px dashed rgba(255,255,255,.35); }
#progress .pr-fill { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #ffd6e4, #ef5b84); width: 0; }
#progress .pr-plane { position: absolute; top: -4px; font-size: 16px; translate: -50% 0; left: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
body.paperish #progress .pr-line { border-color: rgba(60,40,20,.35); }

#bubble { position: fixed; z-index: 45; max-width: min(300px, 70vw); background: #fff; color: #3b2a1a; padding: 10px 14px; border-radius: 16px; font-family: var(--hand); font-weight: 700; font-size: 20px; line-height: 1.15;
  box-shadow: 0 8px 22px rgba(0,0,0,.25); translate: -50% calc(-100% - 14px); pointer-events: none; animation: bub .4s cubic-bezier(.2,1.5,.4,1); }
#bubble::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: #fff; }
@keyframes bub { from { transform: scale(.4); opacity: 0; } }
#toast { position: fixed; z-index: 55; left: 50%; top: 70px; translate: -50% 0; background: #fffaf0; color: #3b2a1a; padding: 12px 20px; border-radius: 14px; font-family: var(--hand); font-weight: 700; font-size: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: 90vw; text-align: center; animation: bub .4s cubic-bezier(.2,1.5,.4,1); }
#scrollHint { position: fixed; z-index: 50; left: 50%; bottom: 46px; translate: -50% 0; text-align: center; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; pointer-events: none; transition: opacity .6s; }
#scrollHint i { display: block; width: 22px; height: 34px; margin: 8px auto 0; border: 2px solid rgba(255,255,255,.8); border-radius: 12px; position: relative; }
#scrollHint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* ---------------------------------------------------------- modais */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(8,6,16,.6); backdrop-filter: blur(6px); padding: 16px; }
.modal[hidden] { display: none; }
.close { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.08); color: #3b2a1a; font-size: 16px; z-index: 3; }
.pp-book { position: relative; display: grid; grid-template-columns: 1fr 1.3fr; width: min(860px, 96vw); background: #1d3557; border-radius: 14px; padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: bub .5s; }
.pp-cover { color: #e9c46a; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; }
.pp-country { font-family: var(--type); font-size: 12px; letter-spacing: .2em; margin: 0; }
.pp-title { font-family: var(--serif); font-weight: 800; letter-spacing: .25em; font-size: 26px; margin: 0; }
.pp-emblem { width: 90px; height: 90px; margin: 10px auto; border: 3px solid #e9c46a; border-radius: 50%; display: grid; place-items: center; font-size: 44px; }
.pp-names { font-family: var(--script); font-size: 30px; margin: 0; color: #f6dfa0; }
.pp-page { background: #f6efe0; background-image: var(--grain), repeating-linear-gradient(45deg, rgba(29,53,87,.04) 0 6px, transparent 6px 12px); border-radius: 8px; padding: 22px; color: #1d3557; }
.pp-h { font-family: var(--type); letter-spacing: .15em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
.pp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pp-slot { aspect-ratio: 1; border: 2px dashed rgba(29,53,87,.25); border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--type); font-size: 10px; color: rgba(29,53,87,.4); padding: 6px; }
.pp-slot.got { border: 3px double var(--c); color: var(--c); rotate: var(--r); font-size: 11px; animation: stampIn2 .5s cubic-bezier(.3,1.6,.5,1); background: radial-gradient(circle, transparent 60%, color-mix(in srgb, var(--c) 8%, transparent)); }
.pp-slot.got b { display: block; font-family: var(--poster); font-weight: 400; font-size: 15px; letter-spacing: .05em; }
@keyframes stampIn2 { from { transform: scale(2); opacity: 0; } }
.pp-foot { font-family: var(--hand); font-size: 18px; margin: 14px 0 0; }
@media (max-width: 640px) { .pp-book { grid-template-columns: 1fr; } .pp-cover { padding: 12px; gap: 4px; } .pp-emblem { width: 56px; height: 56px; font-size: 28px; margin: 4px auto; } .pp-title { font-size: 20px; } .pp-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
.cr-box { position: relative; width: min(760px, 94vw); max-height: 86vh; overflow: auto; background: #fbf5e8; color: #3b2a1a; border-radius: 12px; padding: 24px; }
.cr-box h3 { margin: 0; font-family: var(--serif); }
.cr-sub { font-size: 14px; opacity: .8; }
#crList { padding-left: 18px; font-size: 13px; line-height: 1.5; }
#crList a { color: #b3263a; }

/* ---------------------------------------------------------- abertura */
#intro { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #2a1840, #0b0716 70%); transition: opacity 1.4s, visibility 1.4s; }
#intro.gone { opacity: 0; visibility: hidden; }
.intro-sky { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #ffe, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 10% 80%, #fff, transparent), radial-gradient(1.2px 1.2px at 55% 45%, #fdf, transparent);
  background-size: 300px 300px; animation: tw 6s linear infinite; opacity: .8; }
@keyframes tw { 50% { opacity: .4; } }
.envelope { position: relative; width: min(440px, 84vw); aspect-ratio: 1.55; perspective: 1200px; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-1deg); } }
.env-back, .env-front { position: absolute; inset: 0; border-radius: 10px; }
.env-back { background: #e9cfa8; }
.env-front { background: linear-gradient(to top right, #f3dcb8 50%, transparent 50.5%) left / 50% 100% no-repeat, linear-gradient(to top left, #efd5ae 50%, transparent 50.5%) right / 50% 100% no-repeat; z-index: 3; }
.env-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #f6e2c2 0 48%, transparent 48%); clip-path: polygon(0 100%, 50% 45%, 100% 100%); }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; background: #e2c49a; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .9s cubic-bezier(.4,0,.2,1), z-index 0s .45s; z-index: 4; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.env-letter { position: absolute; left: 6%; right: 6%; top: 8%; height: 84%; background: #fffaf0; border-radius: 6px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #3b2a1a; transition: transform 1.1s cubic-bezier(.3,.9,.3,1) .5s; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.envelope.open .env-letter { transform: translateY(-62%); }
.env-to { font-family: var(--hand); font-size: 22px; margin: 0; }
.env-name { font-family: var(--script); font-size: clamp(54px, 13vw, 84px); margin: 0; line-height: 1; color: #b3263a; }
.env-sub { font-family: var(--type); font-size: 11px; letter-spacing: .08em; margin: 6px 0 0; opacity: .7; }
.env-seal { position: absolute; z-index: 5; left: 50%; top: 58%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e0566f, #a3142d 70%); color: #ffd9e0; font-size: 28px; box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 -3px 6px rgba(0,0,0,.25); animation: pulse 1.8s infinite; transition: opacity .4s; }
.envelope.open .env-seal { opacity: 0; pointer-events: none; }
.intro-tip { position: absolute; bottom: 12vh; font-family: var(--hand); font-size: 22px; color: #f6dfe8; text-align: center; }
.intro-tip small { display: block; font-family: var(--ui); font-size: 12px; opacity: .7; }
.intro-lock { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(11,7,22,.86); backdrop-filter: blur(4px); z-index: 10; padding: 20px; }
.intro-lock p { margin: 4px; font-family: var(--hand); font-size: 24px; }
.intro-lock .lk-big { font-family: var(--script); font-size: clamp(44px, 10vw, 72px); color: #ffb3c8; }
.intro-lock .lk-count { font-family: var(--type); font-size: 22px; letter-spacing: .1em; color: #fff; margin: 14px 0; }
.intro-lock .lk-small { font-family: var(--ui); font-size: 14px; opacity: .7; }
#loading { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; text-align: center; background: #0b0716; transition: opacity .8s, visibility .8s; font-family: var(--hand); font-size: 22px; color: #f6dfe8; }
#loading.gone { opacity: 0; visibility: hidden; }
.ld-heart { font-size: 54px; color: #ef5b84; animation: pulse 1s infinite; }

/* efeitos */
.emoji-drop { position: fixed; top: -60px; z-index: 42; pointer-events: none; animation: drop linear forwards; }
@keyframes drop { to { transform: translateY(115vh) rotate(var(--r)); } }
.float-heart { position: fixed; z-index: 42; pointer-events: none; font-size: 22px; translate: -50% -50%; animation: fh 1.6s ease-out forwards; }
@keyframes fh { to { transform: translate(var(--dx), var(--dy)) scale(1.4); opacity: 0; } }
.ripple { position: fixed; z-index: 42; pointer-events: none; width: 20px; height: 20px; margin: -10px; border-radius: 50%; border: 2px solid #fff; animation: rip .9s ease-out forwards; }
@keyframes rip { to { transform: scale(7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .envelope, .souv.on, .album .ap { animation: none; } }

/* ---------------------------------------------------------- mensagens que saem dos lugares */
#msgs { position: fixed; inset: 0; z-index: 17; pointer-events: none; }
.m3d { position: absolute; max-width: min(320px, 70vw); translate: -50% calc(-100% - 10px); background: rgba(255,253,247,.95); color: #3b2a1a; padding: 10px 16px 11px; border-radius: 16px;
  font-family: var(--hand); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.15; box-shadow: 0 12px 30px rgba(0,0,0,.35);
  opacity: 0; transform: translateY(26px) scale(.7); transition: opacity .6s, transform .8s cubic-bezier(.2,1.4,.4,1); }
.m3d::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: rgba(255,253,247,.95); }
.m3d.on { opacity: 1; transform: none; }
.m3d.big { max-width: min(560px, 86vw); font-size: clamp(20px, 2.3vw, 32px); padding: 16px 22px 14px; border-radius: 6px; background: rgba(255,250,240,.96); }
.m3d.big::before { content: '♥'; position: absolute; left: -12px; top: -14px; width: 32px; height: 32px; border-radius: 50%; background: #ef5b84; color: #fff; font-family: var(--ui); font-size: 16px; display: grid; place-items: center; }
.m3d.big::after { height: 46px; width: 2px; border: 0; margin-left: -1px; bottom: -46px; background: linear-gradient(rgba(255,250,240,.95), rgba(255,250,240,0)); }
.m3d .mk { display: block; font-family: var(--type); font-weight: 400; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #b3263a; margin-bottom: 4px; }
.m3d .sig { display: block; text-align: right; font-size: .7em; color: #b3263a; margin-top: 4px; }
/* álbum do lugar: aparece no fim do passeio, na base da tela */
.dest .p1, .dest .p2, .dest .p3 { top: auto; bottom: 4vh; right: auto; }
.dest .p1 { left: 2.5vw; } .dest .p2 { left: 17.5vw; } .dest .p3 { left: 32.5vw; }
.dest .souv { left: 50vw; bottom: 8vh; }
@media (max-aspect-ratio: 1/1) { .dest .p1, .dest .p2, .dest .p3 { width: 26vw; bottom: 3vh; top: auto; } .dest .p1 { left: 3vw; } .dest .p2 { left: 37vw; } .dest .p3 { left: 71vw; right: auto; } .dest .souv { right: 4vw; left: auto; top: 55vh; } .m3d.big { font-size: 17px; } }

/* ---------------------------------------------------------- o presente especial: vale um jantar */
.vc-card { position: relative; display: grid; grid-template-columns: 1fr auto; width: min(760px, 94vw); min-height: min(360px, 60vh); border-radius: 18px; overflow: hidden;
  background: radial-gradient(circle at 20% 0%, #4a1626, #240a14 70%); color: #f6dfa0; box-shadow: 0 0 0 2px #c9a24a, 0 0 0 8px #240a14, 0 0 0 10px #c9a24a, 0 30px 90px rgba(0,0,0,.7);
  animation: vcIn .9s cubic-bezier(.2,1.3,.4,1); }
@keyframes vcIn { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.vc-card .close { color: #f6dfa0; background: rgba(255,255,255,.08); }
.vc-left { padding: clamp(24px, 5vmin, 48px); display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
.vc-kicker { margin: 0; font-family: var(--type); letter-spacing: .3em; font-size: 12px; color: #c9a24a; }
.vc-title { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(44px, 7.5vw, 84px); line-height: 1; color: #ffe7a8; text-shadow: 0 0 24px rgba(255,200,120,.45); }
.vc-text { margin: 0; font-family: var(--serif); font-size: clamp(17px, 2.2vw, 24px); color: #fff3d6; }
.vc-to { margin: 8px 0 0; font-family: var(--hand); font-size: clamp(20px, 2.4vw, 28px); color: #f6dfa0; }
.vc-to small { font-family: var(--type); font-size: 12px; letter-spacing: .12em; color: #c9a24a; }
.vc-stub { width: clamp(90px, 16vw, 150px); border-left: 3px dashed rgba(201,162,74,.6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(#5a1c2e, #2e0d18); font-family: var(--poster); letter-spacing: .12em; }
.vc-ico { font-size: clamp(36px, 6vw, 56px); }
.vc-adm { writing-mode: vertical-rl; font-size: clamp(22px, 3vw, 32px); color: #ffe7a8; }
.vc-num { font-family: var(--type); font-size: 12px; color: #c9a24a; }
@media (max-width: 560px) { .vc-card { grid-template-columns: 1fr; } .vc-stub { width: auto; flex-direction: row; border-left: 0; border-top: 3px dashed rgba(201,162,74,.6); padding: 12px; } .vc-adm { writing-mode: horizontal-tb; } }

/* senha para liberar antes do dia */
.lk-pass { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 26px; }
.lk-pass input { width: 150px; padding: 9px 14px; border-radius: 22px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff;
  font-family: var(--ui); font-size: 16px; text-align: center; letter-spacing: .2em; outline: none; }
.lk-pass input:focus { border-color: #ffb3c8; background: rgba(255,255,255,.14); }
.lk-pass button { padding: 9px 16px; border-radius: 22px; background: #ef5b84; color: #fff; font-family: var(--ui); font-weight: 600; font-size: 14px; }
.lk-err { flex-basis: 100%; min-height: 18px; font-family: var(--ui); font-size: 13px; color: #ffb3c8; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* aviso engraçado do comandante durante o voo */
#flightJoke { position: fixed; z-index: 48; left: 50%; bottom: max(44px, calc(env(safe-area-inset-bottom) + 34px)); translate: -50% 0; width: min(560px, 90vw);
  background: rgba(14,12,28,.78); backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 12px 18px 13px;
  font-family: var(--hand); font-weight: 700; font-size: clamp(18px, 2.4vmin, 24px); line-height: 1.2; text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .7s cubic-bezier(.2,1.3,.4,1); }
#flightJoke.on { opacity: 1; transform: none; }
#flightJoke b { display: block; font-family: var(--type); font-weight: 400; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: #ffd6e4; margin-bottom: 4px; }

/* barra de pré-carregamento no envelope */
.intro-prog { position: absolute; bottom: calc(12vh - 26px); left: 50%; width: min(220px, 50vw); height: 3px; translate: -50% 0; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; transition: opacity .8s; }
.intro-prog i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, #ffd6e4, #ef5b84); border-radius: 3px; transition: width .6s; }
.intro-prog.done { opacity: 0; }
body:not(.ready) .env-seal { filter: grayscale(.6) brightness(.8); animation: none; cursor: progress; }

/* verso das polaroides: a letra se ajusta (app.js) para o texto nunca cortar */
.pb { overflow: hidden; }
.pb p { overflow-wrap: anywhere; }

/* a última linha da carta */
.letter p.fim { font-family: var(--script); font-size: clamp(34px, min(5.2vw, 6.2vh), 60px); color: #b3263a; text-align: center; line-height: 1.05; margin-top: .2em; text-shadow: 0 1px 0 rgba(255,255,255,.6); }

/* álbum: cartões com tamanho fixo (não deixam o varal espremer a foto) */
.album .row { align-items: flex-start; }
.album .ap { flex: none; width: min(13vw, 19vh, 180px); height: auto; aspect-ratio: .82; padding: 0; }
.album .ap .ph { position: absolute; inset: 6% 6% 22%; width: auto; height: auto; }
@media (max-aspect-ratio: 1/1) { .album .ap { width: min(18vw, 15vh); } }

/* tablet: sem "puxar pra recarregar" no meio da carta e sem seleção de texto acidental ao tocar */
html, body { overscroll-behavior-y: none; }
#intro, #hud, .selo, .souv, .pola, .jar, .scratch, .btn { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
