/* Direction A — "Atravessar a ponte"
 * Night petrol, white line illustration, warm light at the end of the tunnel.
 * Fraunces (display) + Barlow (text, same as the Marketplace). */
:root {
  --night: #02303a;
  --night-deep: #011f26;
  --night-soft: #0a3d48;
  --ink: #f3f7f5;
  --muted: rgba(243, 247, 245, .74);
  --faint: rgba(243, 247, 245, .5);
  --line: rgba(255, 255, 255, .14);
  --mint: #76e5b2;
  --green: #2bd986;
  --gold: #ffd98a;
  --gold-deep: #e9b552;
  --red: #c8102e;
  --red-hi: #e02a45;
  --red-deep: #8e1424;
  --wine: #4a0a14;
  --cream: #f7efe2;
  --hl: var(--mint); /* highlight colour for hovers/links, changes per section theme */
  --error: #ffb4a8;
  --accent: var(--red);
  --accent-ink: #fff;
  --focus: var(--gold);
  --pin-ring: #f3f7f5;
  --pin-halo: rgba(118, 229, 178, .3);
  --dialog-bg: #f6f8f7;
  --dialog-ink: #0b2a31;
  --vp-x: 70.6%;
  --vp-y: 64%;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Barlow", system-ui, sans-serif;
  color-scheme: dark;
}
@media (max-width: 767px) { :root { --vp-x: 50%; --vp-y: 74%; } }

body { background: var(--night); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.h2 { font-family: var(--serif); font-weight: 420; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.02em; font-variation-settings: "opsz" 144, "SOFT" 60; text-shadow: 0 1px 0 rgba(0,0,0,.25), 0 18px 40px rgba(0, 0, 0, .35); }
.lead { margin-top: 14px; max-width: 46ch; color: var(--muted); font-size: 1.125rem; }
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--hl) 60%, transparent); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.link:hover { color: var(--hl); text-decoration-color: var(--hl); }

/* Buttons: pill with light sweep */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--red-hi), var(--red) 55%, #a50d26); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 220, 200, .45) inset, 0 0 0 1px rgba(255, 217, 138, .35) inset, 0 12px 30px -10px rgba(200, 16, 46, .7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 228, 160, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 220, 200, .5) inset, 0 0 0 1px rgba(255, 217, 138, .6) inset, 0 18px 40px -12px rgba(200, 16, 46, .85); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn--ghost::after { display: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .3) inset; }
.round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); transition: background .2s, border-color .2s, transform .2s; }
.round:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); transform: scale(1.05); }

/* ---------- Nav: island of glass ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1200px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(1, 24, 30, .62); border: 1px solid rgba(255, 220, 170, .16);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .6);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .35s, border-color .35s, backdrop-filter .35s, transform .45s var(--ease);
}
.nav.is-scrolled { background: rgba(1, 24, 30, .8); border-color: rgba(255, 220, 170, .2); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav.is-hidden { transform: translate(-50%, -130%); }
.nav__brand { display: block; padding: 4px 6px; }
.nav__brand img { height: 40px; width: auto; }
@media (max-width: 600px) { .nav__brand img { height: 32px; } }
.nav__links { display: none; gap: 4px; }
.nav__links a { padding: 10px 16px; border-radius: 999px; color: #fff4e6; font-size: 1.02rem; font-weight: 500; text-decoration: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--gold); background: rgba(255, 217, 138, .1); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ---------- Journey (hero + crossing) ---------- */
.journey { position: relative; }
.journey__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--night); }
.stage__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at var(--vp-x) var(--vp-y), rgba(255, 217, 138, .6) 0, rgba(255, 150, 90, .24) 7%, rgba(200, 16, 46, .14) 14%, transparent 24%),
    radial-gradient(ellipse 90% 70% at var(--vp-x) var(--vp-y), rgba(200, 16, 46, .14), transparent 70%);
  transform-origin: var(--vp-x) var(--vp-y);
  will-change: transform, opacity;
}
.stage__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__lines { position: absolute; inset: 0; }
.stage__lines img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--vp-x) var(--vp-y);
  transform-origin: var(--vp-x) var(--vp-y); will-change: transform, opacity;
  opacity: .72; filter: drop-shadow(0 0 6px rgba(255, 236, 190, .25));
}
.stage__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 31, 38, .82) 0%, rgba(1, 31, 38, .45) 38%, transparent 62%),
    linear-gradient(0deg, rgba(1, 31, 38, .7), transparent 30%);
}
@media (max-width: 767px) {
  .stage__lines { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.18) 30%, rgba(0,0,0,.35) 62%, #000 82%); mask-image: linear-gradient(180deg, rgba(0,0,0,.18) 30%, rgba(0,0,0,.35) 62%, #000 82%); }
  .hero__facts { flex-wrap: nowrap; gap: 8px; }
  .hero__facts div { flex: 1; padding: 10px 8px; }
  .hero__facts dd { font-size: 1rem; white-space: nowrap; }
  .stage__shade { background: linear-gradient(180deg, rgba(1, 31, 38, .55) 0%, rgba(1, 31, 38, .2) 30%, rgba(1, 31, 38, .55) 70%, rgba(1, 31, 38, .9) 100%); }
}

.journey__content { position: relative; z-index: 2; margin-top: -100svh; overflow-x: clip; }
.hero {
  min-height: 100svh; width: min(1200px, 100% - 40px); margin-inline: auto;
  display: grid; gap: 40px; align-items: center;
  padding: 110px 0 64px;
}
@media (min-width: 1024px) { .hero { grid-template-columns: 1fr minmax(420px, 470px); gap: 64px; } }

.hero__logo { margin: 0; perspective: 800px; }
.logo3d {
  position: relative; display: block; width: clamp(240px, 30vw, 470px); aspect-ratio: 693 / 650;
  transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotateY(calc(var(--rx, 0) * 1deg)) rotateX(calc(var(--ry, 0) * 1deg));
  transition: transform .6s var(--ease);
}
/* Gold foil baked into an image (rendered from the white mark). It used to be a CSS mask with an
 * animated gradient inside a filtered, 3D-transformed layer, which the browser sometimes dropped after
 * scrolling away and never repainted. The red extrusion and glow stay as CSS filters on the image so
 * their thickness is constant at every size. Only the sheen is masked; if it fails, the logo still shows. */
.logo-gold {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none;
  filter: drop-shadow(0 1.5px 0 #9e1428) drop-shadow(0 1.5px 0 #7a0c1d) drop-shadow(0 1.5px 0 #5a0815) drop-shadow(0 0 26px rgba(255, 196, 96, .38)) drop-shadow(0 26px 40px rgba(0, 0, 0, .55));
}
.logo-sheen {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("shared/img/logo-natal-white.webp") center / contain no-repeat; mask: url("shared/img/logo-natal-white.webp") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 250, 228, .5) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 100% 50%; } 50% { background-position: 0% 50%; } }
/* Twinkle on the five stars of the mark */
.sparks { position: absolute; inset: 0; pointer-events: none; }
.spark { position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * 2.2); aspect-ratio: 1; transform: translate(-50%, -50%); }
.spark::before { /* soft halo */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 244, 205, .75), rgba(255, 205, 110, .28) 45%, transparent 75%);
  animation: halo 3.2s ease-in-out infinite; animation-delay: var(--d);
}
.spark::after { /* four-point glint */
  content: ""; position: absolute; inset: 8%;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0) 70%) center / 18% 100% no-repeat, radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0) 70%) center / 100% 18% no-repeat;
  filter: drop-shadow(0 0 4px rgba(255, 230, 160, .9));
  animation: glint 3.2s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes halo { 0%, 100% { opacity: .25; transform: scale(.7); } 45% { opacity: 1; transform: scale(1.1); } }
@keyframes glint { 0%, 30%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: 0; transform: scale(.4) rotate(90deg); } }

.hero__copy { position: relative; isolation: isolate; }
.hero__copy::before { /* dark pocket so the gold mark reads over the line drawing */
  content: ""; position: absolute; z-index: -1; inset: -12% -18% -10% -22%;
  background: radial-gradient(closest-side, rgba(1, 26, 32, .9), rgba(1, 26, 32, .62) 55%, transparent);
  pointer-events: none;
}
.hero__lead { margin-top: 28px; max-width: 44ch; font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.hero__facts div { padding: 12px 18px; border-radius: 16px; background: linear-gradient(160deg, rgba(122, 18, 36, .62), rgba(60, 7, 16, .7)); border: 1px solid rgba(255, 210, 150, .22); box-shadow: 0 1px 0 rgba(255, 220, 180, .15) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero__facts dt { font-size: .82rem; font-weight: 500; color: #fff; }
.hero__facts dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--gold); font-variation-settings: "opsz" 48; }
.hero__legal { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; font-size: .95rem; color: var(--muted); }
@media (max-width: 1023px) { .hero__copy { text-align: center; } .logo3d { margin-inline: auto; } .hero__lead { margin-inline: auto; } .hero__facts, .hero__legal { justify-content: center; } }

/* Glass card + form */
.card-glass {
  position: relative; padding: clamp(22px, 3vw, 32px); border-radius: 28px;
  --hl: var(--gold);
  background: linear-gradient(160deg, rgba(128, 20, 38, .86), rgba(58, 7, 16, .9));
  border: 1px solid rgba(255, 210, 160, .2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(1, 31, 38, .4);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
}
.card-glass::before { /* light rim from the tunnel */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 217, 138, .75), transparent 35%, transparent 65%, rgba(255, 217, 138, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.form__title { font-family: var(--serif); font-weight: 450; font-size: 1.75rem; line-height: 1.1; letter-spacing: -.01em; }
.form__intro { margin: 8px 0 20px; color: var(--muted); font-size: .97rem; line-height: 1.5; }
[data-natal-form] { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; }
@media (min-width: 520px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field input:not([type="checkbox"]), .field select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 14px;
  background: rgba(1, 26, 32, .55); border: 1px solid rgba(255, 255, 255, .16); color: var(--ink);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2376e5b2' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field select option, .field select optgroup { background: #02303a; color: var(--ink); }
.field input::placeholder { color: rgba(243, 247, 245, .35); }
.field input:hover, .field select:hover { border-color: rgba(255, 255, 255, .3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(118, 229, 178, .18); background: rgba(1, 26, 32, .75); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); box-shadow: 0 0 0 3px rgba(255, 180, 168, .14); }
.field-error { color: var(--error); }
.field-error::before { content: "! "; font-weight: 700; }
.field-hint { font-size: .8rem; color: var(--faint); }
.field--check .check { color: var(--muted); }
.form__status { min-height: 1.2em; font-size: .92rem; color: var(--error); text-align: center; }
.form__status:empty { display: none; }
[data-natal-form].is-sending { opacity: .85; }

.success { text-align: center; padding: 18px 4px; outline: none; animation: rise .5s var(--ease); }
.success__star { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--gold); filter: drop-shadow(0 0 14px rgba(255, 217, 138, .8)); animation: twinkle 2.4s ease-in-out infinite; }
.success p { color: var(--muted); margin-top: 10px; }
.success__ref { display: inline-block; margin: 16px 0 6px; padding: 12px 20px; border-radius: 14px; border: 1px dashed rgba(255, 217, 138, .7); color: var(--gold) !important; font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.success__small { font-size: .9rem; }
.success .btn { margin-top: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes twinkle { 50% { transform: scale(.85) rotate(12deg); opacity: .75; } }

/* The crossing: words light up as we walk into the light */
.crossing { position: relative; overflow: clip; display: grid; place-items: center; padding: 34vh 20px 12vh; }
.crossing::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); height: 70vh; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(1, 31, 38, .82), rgba(1, 31, 38, .5) 60%, transparent); pointer-events: none; }
.crossing__text {
  position: relative; max-width: 22ch; text-align: center;
  font-family: var(--serif); font-weight: 380; font-size: clamp(2rem, 5.4vw, 4.4rem); line-height: 1.12; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: #fff8ea; text-shadow: 0 0 30px rgba(255, 210, 140, .35);
}
.crossing__text .w { opacity: .22; transition: opacity .35s, text-shadow .35s; }
.crossing__text .w.is-lit { opacity: 1; }

/* ---------- Prizes: gift tags on a garland ---------- */
.prizes { background: linear-gradient(180deg, transparent, var(--night-deep) 40%); overflow: hidden; }
.section.prizes { padding-top: clamp(76px, 9.5vw, 140px); }
.prizes .h2 { max-width: 14ch; }
.garland { position: relative; width: min(1240px, 100% - 40px); margin: 56px auto 0; color: rgba(255, 255, 255, .55); }
.garland__wire { display: none; position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 120px; }
.tags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 14px; margin: 0; }
.tag { position: relative; display: flex; justify-content: center; transform: translateY(var(--drop, 0px)); }
.tag__body {
  position: relative; width: 100%; max-width: 150px; padding: 30px 12px 18px; text-align: center;
  border-radius: 10px 10px 16px 16px;
  clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
  background: linear-gradient(170deg, #0f4d59, #073a44);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
  transform-origin: 50% -26px; animation: sway 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s);
  transition: transform .5s var(--ease), background .3s;
}
.tag::before { content: ""; position: absolute; top: -26px; left: 50%; width: 1px; height: 30px; background: rgba(255, 255, 255, .5); }
.tag__body::before { content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--night-deep); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
.tag__rank { display: block; font-size: .8rem; color: var(--faint); }
.tag__value { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; font-weight: 500; font-variation-settings: "opsz" 72; font-variant-numeric: lining-nums; }
.tag:hover .tag__body { animation-play-state: paused; transform: rotate(-4deg) translateY(4px); background: linear-gradient(170deg, #136070, #0a4652); }
.tag--first .tag__body { max-width: 190px; padding-block: 36px 24px; background: linear-gradient(170deg, #fff2cf, #f3cf86); color: #3a2a06; box-shadow: 0 0 40px rgba(255, 217, 138, .45); }
.tag--first .tag__rank { color: rgba(58, 42, 6, .7); }
.tag--first .tag__value { font-size: 3rem; }
.tag--first:hover .tag__body { background: linear-gradient(170deg, #fff6dd, #f6d796); }
@keyframes sway { 50% { transform: rotate(2.2deg); } }
.prizes__total { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin-top: 56px; color: var(--muted); }
.prizes__total strong { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6rem); font-weight: 400; color: var(--ink); line-height: 1; text-shadow: 0 2px 0 #011a20, 0 4px 0 #01161b, 0 0 50px rgba(255, 217, 138, .3); }
@media (min-width: 900px) {
  .garland { height: 300px; margin-top: 40px; }
  .garland__wire { display: block; }
  .tags { position: absolute; inset: 0; width: 100%; display: block; }
  .tag { position: absolute; top: 0; left: var(--x); width: 8.2%; transform: translate(-50%, calc(var(--y) + var(--drop, 0px))); }
  .tag__body { animation-name: sway; }
  .tag:first-child { width: 9.4%; }
  .tag--first .tag__value { font-size: 2.4rem; }
}

/* ---------- How: lit trail ---------- */
.how { background: var(--night-deep); }
.how__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .how__grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; } .how__intro { position: sticky; top: 120px; } }
.how__intro .btn { margin-top: 28px; }
.trail { position: relative; display: grid; gap: 52px; padding: 0 0 0 76px; margin: 0; list-style: none; }
.trail::before, .trail::after { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.trail::before { background: var(--line); }
.trail::after { background: linear-gradient(var(--gold-deep), var(--red)); box-shadow: 0 0 16px rgba(255, 217, 138, .6); transform-origin: top; transform: scaleY(var(--p, 0)); }
.trail__step { position: relative; }
.trail__icon {
  position: absolute; left: -76px; top: -6px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--night-deep); border: 1px solid var(--line); color: var(--faint);
  transition: color .5s, border-color .5s, box-shadow .5s, background .5s;
}
.trail__icon svg { width: 30px; height: 30px; }
.trail__step.is-lit .trail__icon { color: var(--night-deep); background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 8px rgba(255, 217, 138, .12), 0 0 36px rgba(255, 217, 138, .55); }
.trail__step h3 { font-family: var(--serif); font-weight: 450; font-size: 1.6rem; line-height: 1.15; }
.trail__step p { margin-top: 8px; color: var(--muted); max-width: 44ch; }

.dates { display: grid; gap: 14px; margin-top: 96px; padding: 0; list-style: none; }
@media (min-width: 700px) { .dates { grid-template-columns: repeat(4, 1fr); } }
.date { position: relative; padding: 22px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.date:hover { border-color: rgba(255, 217, 138, .45); transform: translateY(-3px); }
.date__bulb { position: absolute; top: 22px; right: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px 3px rgba(255, 217, 138, .7); animation: blink 3s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.date__d { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; font-variation-settings: "opsz" 72; }
.date__l { margin-top: 8px; font-weight: 600; }
.date__x { font-size: .92rem; color: var(--muted); }
@keyframes blink { 50% { opacity: .45; box-shadow: 0 0 6px 1px rgba(255, 217, 138, .4); } }

/* ---------- Shops reel ---------- */
.shops { overflow: hidden; }
.shops__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.shops__controls { display: none; gap: 10px; }
@media (min-width: 700px) { .shops__controls { display: flex; } }
.example-note { margin-top: 16px; font-size: .88rem; color: var(--faint); }
.reel {
  display: flex; gap: 20px; margin: 40px 0 0; padding: 20px max(20px, calc((100vw - 1200px) / 2)) 30px;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.reel::-webkit-scrollbar { display: none; }
.reel:focus-visible { outline-offset: -4px; }
.shop {
  flex: 0 0 min(78vw, 330px); scroll-snap-align: center;
  border-radius: 26px; overflow: hidden; background: var(--night-soft); border: 1px solid var(--line);
  transform: scale(.94); opacity: .7; transition: transform .5s var(--ease), opacity .5s, box-shadow .5s;
}
.shop.is-active { transform: scale(1); opacity: 1; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 217, 138, .25); }
.shop__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.shop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shop:hover .shop__media img { transform: scale(1.05); }
.shop__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(1, 26, 32, .92)); }
.shop__tag { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 10px; border-radius: 8px; background: rgba(255, 244, 214, .95); color: #6b4b00; font-size: .75rem; font-weight: 700; }
.shop__name { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; }
.shop__name h3 { font-family: var(--serif); font-weight: 450; font-size: 1.6rem; line-height: 1.1; }
.shop__name p { font-size: .9rem; color: var(--muted); }
.shop__body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.shop__quote { font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.45; color: #fff3da; }
.shop__meta { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.shop__actions { display: flex; align-items: center; gap: 8px; }
.shop__actions .btn { flex: 1; }
.social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background .2s, border-color .2s; }
.social:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.social svg { width: 20px; height: 20px; }

/* ---------- Map ---------- */
.map-frame { position: relative; margin-top: 40px; }
.map { height: clamp(440px, 62vh, 620px); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 217, 138, .08); background: #0b1e23; }
.map-flag { position: absolute; z-index: 500; top: 16px; left: 16px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 244, 214, .95); color: #6b4b00; font-size: .8rem; font-weight: 700; pointer-events: none; }
.leaflet-container { font-family: var(--sans); }
.leaflet-bar a { background: rgba(2, 37, 45, .9); color: var(--ink); border-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--night-soft); color: var(--mint); }
.leaflet-control-attribution { background: rgba(2, 37, 45, .7) !important; color: var(--faint) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }

/* ---------- FAQ ---------- */
.faq { background: var(--night-deep); }
.faq__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: .85fr 1.15fr; gap: 80px; } }
.rules-card { margin-top: 32px; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); }
.rules-card svg { color: var(--gold); }
.rules-card strong { color: var(--ink); }
.rules-card__actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; font-weight: 420; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--hl); }
.qa__icon { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: transform .35s var(--ease), background .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .35s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(180deg); background: color-mix(in srgb, var(--hl) 18%, transparent); }
.qa[open] .qa__icon::after { transform: rotate(0); }
.qa p { padding: 0 52px 24px 0; color: var(--muted); animation: rise .35s var(--ease); }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 110px 0 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 217, 138, .12), transparent 70%), var(--night); overflow: hidden; }
.footer__cta { text-align: center; }
.footer__big {
  font-family: var(--serif); font-weight: 350; font-size: clamp(3rem, 12vw, 10.5rem); line-height: .95; letter-spacing: -.035em;
  font-variation-settings: "opsz" 144, "SOFT" 100; color: #fff6e3;
  text-shadow: 0 1px 0 #0d4450, 0 2px 0 #0b3d48, 0 3px 0 #093640, 0 4px 0 #072f38, 0 5px 0 #052830, 0 22px 40px rgba(0, 0, 0, .55), 0 0 80px rgba(255, 217, 138, .25);
}
.footer__big em { font-style: italic; color: #ff8a8a; text-shadow: 0 1px 0 #7a0c1d, 0 2px 0 #6a0a19, 0 3px 0 #5a0815, 0 4px 0 #4a0611, 0 22px 40px rgba(0, 0, 0, .55), 0 0 60px rgba(224, 42, 69, .4); }
.footer__cta .btn { margin-top: 36px; }
.footer__cols { display: grid; gap: 28px; margin-top: 90px; padding-top: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .97rem; }
@media (min-width: 700px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__h { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--gold); }
.footer__logos { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; margin-top: 48px; padding-bottom: 40px; }
.footer__logos img { height: 52px; width: auto; opacity: .92; }
.footer__logos img[src*="bairroponte"] { height: 78px; }
.footer__logos img[src*="municipio"] { height: 60px; }
.footer__funding { background: #fff; padding: 14px 20px; display: flex; justify-content: center; }
.footer__funding img { height: 52px; width: auto; }

/* ================= Section themes: break the all-petrol page ================= */
.theme-red, .theme-wine, .theme-cream, .shops { overflow-x: clip; }
.theme-red {
  --ink: #fff4e8; --muted: rgba(255, 236, 220, .82); --faint: rgba(255, 236, 220, .6); --line: rgba(255, 225, 200, .22); --hl: var(--gold);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 55% at 18% 0%, rgba(255, 110, 100, .28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(242, 194, 107, .2), transparent 60%),
    linear-gradient(180deg, #9a1628, #74101f 55%, #5c0b18);
}
.theme-red .h2 { text-shadow: 0 2px 0 #5a0815, 0 18px 40px rgba(40, 0, 6, .45); }
.theme-wine {
  --ink: #fff2e6; --muted: rgba(255, 232, 218, .78); --faint: rgba(255, 232, 218, .55); --line: rgba(255, 215, 190, .18); --hl: var(--gold);
  color: var(--ink);
  background: radial-gradient(ellipse 60% 60% at 85% 10%, rgba(200, 16, 46, .35), transparent 60%), linear-gradient(180deg, #4f0b16, #34060e);
}
.theme-cream {
  --ink: #10333a; --muted: rgba(16, 51, 58, .76); --faint: rgba(16, 51, 58, .55); --line: rgba(16, 51, 58, .14); --hl: var(--red);
  color: var(--ink); color-scheme: light;
  background:
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(233, 181, 82, .14), transparent 70%),
    var(--cream);
}
.theme-cream .h2 { color: #0b2a31; text-shadow: 0 1px 0 #fff, 0 2px 0 rgba(16, 51, 58, .12), 0 16px 30px rgba(16, 51, 58, .12); }
.theme-cream .round, .theme-cream .social { background: #fff; }

/* Prizes on red: ivory gift tags on a gold string */
.theme-red .garland { color: rgba(242, 194, 107, .85); }
.theme-red .tag::before { background: rgba(242, 194, 107, .9); }
.theme-red .tag__body { background: linear-gradient(170deg, #fffaf1, #f4e7d2); color: #7a0f1e; box-shadow: 0 14px 24px -12px rgba(40, 0, 6, .6), 0 0 0 1px rgba(255, 255, 255, .6) inset; }
.theme-red .tag__body::before { background: #74101f; box-shadow: 0 0 0 1.5px rgba(242, 194, 107, .9); }
.theme-red .tag__rank { color: rgba(122, 15, 30, .65); }
.theme-red .tag:hover .tag__body { background: linear-gradient(170deg, #fff, #f8ecd9); }
.theme-red .tag--first .tag__body { background: linear-gradient(170deg, #ffeab3, #e9b552); color: #4a2a00; box-shadow: 0 0 46px rgba(255, 210, 120, .55), 0 14px 24px -12px rgba(40, 0, 6, .6); }
.theme-red .prizes__total strong { text-shadow: 0 2px 0 #5a0815, 0 4px 0 #4a0611, 0 0 50px rgba(255, 217, 138, .35); }
.prizes__gift { width: clamp(42px, 4vw, 58px); align-self: center; filter: drop-shadow(0 16px 20px rgba(40, 0, 6, .5)); animation: hop 3.2s ease-in-out infinite; }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 80% { transform: translateY(-10px) rotate(-5deg); } 90% { transform: translateY(0) rotate(3deg); } }

/* How on cream */
.theme-cream .trail__icon { background: #fff; color: rgba(16, 51, 58, .5); box-shadow: 0 8px 20px -12px rgba(16, 51, 58, .4); }
.theme-cream .trail__step.is-lit .trail__icon { color: #fff; background: var(--red); border-color: var(--red); box-shadow: 0 0 0 8px rgba(200, 16, 46, .12), 0 0 30px rgba(200, 16, 46, .4); }
.theme-cream .trail::after { box-shadow: 0 0 14px rgba(200, 16, 46, .35); }
.theme-cream .date { background: #fff; box-shadow: 0 18px 34px -24px rgba(16, 51, 58, .45); }
.theme-cream .date:hover { border-color: rgba(200, 16, 46, .4); }
.theme-cream .date:nth-child(odd) .date__bulb { background: var(--red); box-shadow: 0 0 14px 3px rgba(200, 16, 46, .55); }
.theme-cream .date:nth-child(even) .date__bulb { background: var(--gold-deep); box-shadow: 0 0 14px 3px rgba(233, 181, 82, .7); }

/* Map on cream */
.theme-cream .map { background: #efe6d6; box-shadow: 0 40px 80px -40px rgba(16, 51, 58, .55), 0 0 0 6px #fff, 0 0 0 7px var(--line); }
.natal-map[data-tiles="light"] .leaflet-tile-pane { filter: sepia(.35) saturate(.85) hue-rotate(-12deg) brightness(1.02) contrast(.96); }
.theme-cream .leaflet-bar a { background: #fff; color: #10333a; }
.theme-cream .leaflet-bar a:hover { background: var(--cream); color: var(--red); }
.theme-cream .leaflet-control-attribution { background: rgba(255, 255, 255, .8) !important; color: rgba(16, 51, 58, .6) !important; }
.theme-cream .leaflet-control-attribution a { color: rgba(16, 51, 58, .8) !important; }
.map-sec { --pin-halo: rgba(200, 16, 46, .35); }

/* FAQ on wine */
.theme-wine .rules-card { position: relative; background: rgba(255, 255, 255, .06); padding-right: 72px; }
.rules-card__gift { position: absolute; right: -10px; top: -22px; width: 62px; transform: rotate(8deg); filter: drop-shadow(0 18px 20px rgba(20, 0, 4, .6)); pointer-events: none; }

/* ================= Christmas decorations ================= */
.deco { position: absolute; z-index: 3; pointer-events: none; user-select: none; }
.deco--bow { top: -28px; right: 20px; width: 74px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); transform: rotate(8deg); }
.deco--balls-l { top: -4px; right: max(16px, calc((100vw - 1320px) / 2)); width: clamp(64px, 6.5vw, 104px); transform-origin: 50% 0; animation: dangle 7s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(30, 0, 5, .55)); }
.deco--bauble-r { top: -2px; left: max(12px, calc((100vw - 1400px) / 2)); width: clamp(36px, 3.2vw, 50px); transform-origin: 50% 0; animation: dangle 5.5s ease-in-out infinite reverse; filter: drop-shadow(0 24px 24px rgba(30, 0, 5, .55)); }
.deco--holly-how { top: 28px; left: -30px; width: clamp(110px, 11vw, 170px); transform: scaleX(-1) rotate(-10deg); filter: drop-shadow(0 20px 22px rgba(16, 51, 58, .3)); }
.deco--balls-shops { top: -4px; right: max(16px, calc((100vw - 1320px) / 2)); width: clamp(58px, 5.6vw, 92px); transform-origin: 50% 0; animation: dangle 8s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55)); }
.deco--holly-map { top: -22px; left: -20px; width: clamp(90px, 8.5vw, 128px); transform: rotate(-24deg); z-index: 600; filter: drop-shadow(0 16px 18px rgba(16, 51, 58, .35)); }
.deco--bauble-faq { top: -2px; right: max(16px, calc((100vw - 1260px) / 2)); width: clamp(40px, 3.8vw, 60px); transform-origin: 50% 0; animation: dangle 6s ease-in-out infinite; filter: drop-shadow(0 24px 24px rgba(20, 0, 4, .6)); }
@keyframes dangle { 50% { rotate: 3deg; } }
.how__intro, .shops__head > div { position: relative; z-index: 4; }
@media (max-width: 899px) {
  .deco--balls-l { width: 54px; right: 8px; }
  .deco--bauble-r { display: none; }
  .deco--holly-how { width: 92px; left: -22px; top: 10px; }
  .deco--balls-shops { width: 50px; }
  .deco--holly-map { width: 76px; left: -12px; top: -18px; }
  .deco--bauble-faq { width: 38px; }
  .deco--bow { width: 58px; top: -22px; }
  .prizes .h2, .prizes .lead { padding-right: 44px; }
  .how .h2 { padding-top: 16px; }
}

/* String of lights hanging from the top edge of a section */
.lights { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: 46px; pointer-events: none; }
.lights svg { width: 100%; height: 100%; overflow: visible; }
.lights .wire { fill: none; stroke: #1b2a20; stroke-width: 1.6; }
.theme-cream .lights .wire { stroke: #3b4a3f; }
.lights .bulb { animation: twinkle-bulb 2.8s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: 50% 0; }
.lights .bulb-glass { filter: url(#bulb-glow); }
@keyframes twinkle-bulb { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Form inside the wine card */
.card-glass .form__intro, .card-glass .field--check .check { color: rgba(255, 232, 214, .8); }
.card-glass .field label { color: #fff3e6; }
.card-glass .field input:not([type="checkbox"]), .card-glass .field select { background-color: rgba(32, 3, 9, .5); border-color: rgba(255, 220, 190, .2); }
.card-glass .field input::placeholder { color: rgba(255, 232, 214, .38); }
.card-glass .field input:hover, .card-glass .field select:hover { border-color: rgba(255, 220, 190, .4); }
.card-glass .field input:focus, .card-glass .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 217, 138, .2); background-color: rgba(32, 3, 9, .7); }
.card-glass .field select { background-repeat: no-repeat; background-position: right 14px center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23ffd98a' stroke-width='2'/%3E%3C/svg%3E"); }
.card-glass .field select option, .card-glass .field select optgroup { background: #4a0a14; }
.card-glass .field-hint { color: rgba(255, 232, 214, .55); }
.card-glass .check input { accent-color: var(--gold-deep); }
.card-glass [data-submit] { background: linear-gradient(180deg, #fff0c4, #f2c96e 45%, #d89a35); color: #4a0a14; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 12px 30px -10px rgba(255, 190, 80, .55); }
.card-glass [data-submit]:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -12px rgba(255, 190, 80, .75); }
.card-glass [data-submit]::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); }
.card-glass .btn--ghost { color: #fff3e6; }
.hero__legal { --hl: var(--gold); }

/* ---------- Mobile drawer navigation ---------- */
.nav { flex-wrap: wrap; row-gap: 0; align-content: center; }
.nav__end { display: flex; align-items: center; gap: 6px; }
.nav__brand { min-height: 44px; display: flex; align-items: center; }
.nav__toggle { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff4e6; transition: background .2s; }
.nav__toggle:hover { background: rgba(255, 255, 255, .14); }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav.is-open .nav__toggle span:first-child { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: rotate(-45deg); }
.nav__drawer { display: none; flex-basis: 100%; overflow: hidden; }
.nav.is-open { border-radius: 26px; background: rgba(1, 24, 30, .94); }
.nav__drawer a { display: flex; align-items: center; min-height: 52px; padding: 0 8px; border-bottom: 1px solid rgba(255, 220, 170, .12); color: #fff4e6; font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.nav__drawer a:active, .nav__drawer a:hover { color: var(--gold); }
.nav__drawer-note { padding: 14px 8px 0; font-size: .88rem; color: rgba(255, 232, 214, .65); }
@media (max-width: 899px) {
  .nav__drawer { display: block; max-height: 0; padding: 0 10px; transition: max-height .45s var(--ease), padding .45s var(--ease); }
  .nav.is-open .nav__drawer { max-height: 480px; padding: 6px 10px 14px; }
}
@media (min-width: 900px) { .nav__toggle { display: none; } }

/* ---------- Touch targets (≥ 44 px) ---------- */
.shop__meta a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.footer__cols a, .footer__cols .link { display: inline-flex; align-items: center; min-height: 44px; }
.footer__cols p { line-height: 1.4; }
.check { min-height: 44px; align-items: center; }
.check input { width: 24px; height: 24px; }

/* ---------- Map on touch: tap to explore, so the page keeps scrolling ---------- */
.map-guard { position: absolute; inset: 0; z-index: 550; display: none; place-items: center; border: 0; border-radius: 28px; background: rgba(16, 51, 58, .18); color: #fff; font: 600 1rem var(--sans); }
.map-guard span { padding: 12px 18px; border-radius: 999px; background: rgba(16, 51, 58, .88); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
@media (pointer: coarse) { .map-guard { display: grid; } .map-guard[hidden] { display: none; } }

/* Late mobile overrides (must follow the base hero/form rules) */
.map-sec .map-flag { left: auto; right: 16px; }
@media (max-width: 767px) {
  .hero__facts { flex-wrap: nowrap; gap: 8px; }
  .hero__facts div { flex: 1; min-width: 0; padding: 10px 8px; }
  .hero__facts dd { font-size: 1rem; white-space: nowrap; }
  .form__title { padding-right: 52px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .crossing__text .w { opacity: 1; }
  .tag__body { animation: none; }
  .deco, .prizes__gift, .lights .bulb, .spark::before, .spark::after { animation: none !important; }
  .spark::after { opacity: 0; }
}

/* Keep the zoom buttons clear of the holly in the map corner */
.map-sec .leaflet-top.leaflet-left { top: 44px; }
