/* =========================================================
   Super Hero Royale — site de pré-registro
   Layout: cinematográfico, preto, imagens de ponta a ponta,
   tipografia condensada em maiúsculas e um degradê de pôr do sol
   usado só nos pontos de destaque.
   ========================================================= */
:root {
  --bg: #0b0a0f;
  --bg-2: #15131b;
  --fg: #f6f1ec;
  --muted: #a8a1ae;
  --line: rgba(246, 241, 236, .14);
  --pink: #ff4f8b;
  --orange: #ff8a3d;
  --yellow: #ffcf4a;
  --sea: #3fd6e0;
  --sunset: linear-gradient(95deg, var(--pink) 0%, var(--orange) 55%, var(--yellow) 100%);
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gutter-x: max(16px, env(safe-area-inset-left, 0px));
  --pad: clamp(16px, 4.5vw, 72px);
  --hdr-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: currentColor; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1360px; margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

/* ---------- Tipografia ---------- */
.kicker {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.h-xl, .h-place, .h-giant, .h-modal {
  margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  line-height: .88; letter-spacing: -.005em; text-wrap: balance;
}
.h-xl { font-size: clamp(3rem, 7.5vw, 6.5rem); }
.h-place { font-size: clamp(3.4rem, 10vw, 9rem); }
.h-giant { font-size: clamp(3.6rem, 12vw, 11rem); }
.h-modal { font-size: 2.6rem; }
.sunset-text { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; padding: .8em 1.6em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s, background-position .5s, background-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:active { transform: scale(.97); }
.btn-sunset { background: var(--sunset); background-size: 180% 100%; color: #120c10; }
.btn-sunset:hover { background-position: 100% 0; box-shadow: 0 10px 30px rgba(255, 79, 139, .35); }
.btn-light { background: var(--fg); color: var(--bg); }
.btn-light:hover { background: var(--yellow); }
.btn-ghost { background: rgba(11, 10, 15, .35); color: var(--fg); box-shadow: inset 0 0 0 1.5px rgba(246, 241, 236, .7); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--fg); color: var(--bg); }
.btn-sm { padding: .55em 1.2em; font-size: .9rem; }
.btn-lg { padding: .95em 2em; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.hdr {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  transition: background .3s;
}
/* Sobre a imagem: degradê escuro que desce além da barra, para os textos terem contraste */
.hdr::before {
  content: ""; position: absolute; inset: 0 0 auto; height: calc(100% + 90px); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 10, 15, .9) 0%, rgba(11, 10, 15, .72) 40%, rgba(11, 10, 15, .3) 72%, rgba(11, 10, 15, 0) 100%);
  transition: opacity .3s;
}
.hdr.scrolled::before { opacity: 0; }
.hdr:not(.scrolled) .nav a, .hdr:not(.scrolled) .hdr-link { color: rgba(246, 241, 236, .94); text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 0 14px rgba(0, 0, 0, .45); }
.hdr:not(.scrolled) .nav a:hover, .hdr:not(.scrolled) .hdr-link:hover { color: #fff; }
.hdr:not(.scrolled) .brand-logo { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)) drop-shadow(0 0 10px rgba(0, 0, 0, .35)); }
.hdr.scrolled { background: rgba(11, 10, 15, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { display: block; height: 44px; width: auto; }
.brand-symbol { display: block; height: 38px; width: auto; }
.ftr .brand-logo { height: 52px; }
.brand-mark {
  display: grid; place-items: center; height: 34px; padding: 0 8px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: .02em;
  background: var(--sunset); color: #120c10;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-name b { font-weight: 800; }
.nav { display: flex; gap: 32px; }
.nav a { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--fg); }
.hdr-right { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 12px 8px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--fg); transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg); }
.hero-media { position: relative; height: min(92svh, 62vw); min-height: 520px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 10, 15, 0) 45%, rgba(11, 10, 15, .55) 72%, var(--bg) 100%);
}
.hero-bar {
  position: relative; z-index: 2; margin-top: -190px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px;
  padding: 0 max(var(--pad), env(safe-area-inset-right, 0px)) 56px max(var(--pad), env(safe-area-inset-left, 0px));
  max-width: 1500px; margin-left: auto; margin-right: auto;
}
.hero-date .label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); animation: live 1.6s infinite; }
@keyframes live { 50% { opacity: .3; } }
.hero-date strong { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 7vw, 6rem); line-height: .85; }
.hero-date em { font-style: normal; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.platforms li { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.platforms svg { width: 17px; height: 17px; color: var(--fg); }

/* ---------- Intro ---------- */
.intro { padding-block: clamp(90px, 12vw, 180px) clamp(80px, 10vw, 150px); }
.intro-grid { display: grid; gap: 34px; }
.statement {
  margin: 0; max-width: 24ch; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -.003em;
}
.statement .w { color: rgba(246, 241, 236, .3); transition: color .35s; }
.statement .w.on { color: var(--fg); }
.statement .w.hot.on { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.no-js .statement .w, .statement:not(.split) { color: var(--fg); }
.intro-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 1100px; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 10px; }
.intro-facts strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.intro-facts span { color: var(--muted); font-size: .95rem; }

/* ---------- Recompensas ---------- */
.rewards { padding-block: clamp(70px, 9vw, 130px); background: var(--bg-2); border-block: 1px solid var(--line); }
.rewards-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: 54px; }
.rewards-head .kicker { margin-bottom: 14px; }
.rewards-head > div:first-child { flex: 1 1 0; min-width: min(100%, 420px); }
.counter { text-align: right; }
.counter-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 7vw, 6rem); line-height: .9; font-variant-numeric: tabular-nums; }
.counter-label { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.track { position: relative; height: 6px; background: var(--line); border-radius: 6px; }
/* Barra de progresso: cores correndo, brilho passando e ponta pulsando (tudo desliga com "reduzir movimento") */
.track b {
  position: absolute; inset: 0 auto 0 0; width: 0; min-width: 12px; border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--orange), var(--pink)) 0 0 / 200% 100% repeat-x;
  box-shadow: 0 0 16px rgba(255, 120, 90, .45);
  transition: width 1.6s cubic-bezier(.2, .8, .2, 1);
  animation: track-flow 4s linear infinite;
}
.track b::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .65) 50%, transparent 65%) 150% 0 / 250% 100% no-repeat;
  animation: track-shine 2.8s ease-in-out infinite;
}
.track b::after {
  content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: #fff6d8; box-shadow: 0 0 0 3px rgba(255, 207, 74, .35), 0 0 14px 4px rgba(255, 207, 74, .7);
  animation: track-pulse 1.6s ease-in-out infinite;
}
@keyframes track-flow { to { background-position: -200% 0; } }
@keyframes track-shine { 0%, 30% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes track-pulse { 50% { transform: scale(1.35); box-shadow: 0 0 0 6px rgba(255, 207, 74, 0), 0 0 22px 8px rgba(255, 207, 74, .5); } }
.milestones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
.ms { display: grid; gap: 4px; padding: 22px 20px 0 0; border-left: 1px solid var(--line); padding-left: 18px; }
.ms:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.ms-goal { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; text-transform: uppercase; color: var(--muted); }
.ms-name { font-weight: 500; }
.ms-state { font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ms-state::before { content: "Bloqueado"; }
.ms.done .ms-goal { color: var(--fg); }
.ms.done .ms-state { color: var(--yellow); }
.ms.done .ms-state::before { content: "✓ Desbloqueado"; }
.ms-bar { display: block; height: 4px; margin: 8px 20px 4px 0; background: var(--line); border-radius: 4px; overflow: hidden; }
.ms-bar b { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sunset); transition: width 1.4s cubic-bezier(.2, .8, .2, 1) .2s; }
.ms.done .ms-bar b { background: var(--yellow); }
.ms-left { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ms-left:empty { display: none; }
.ms-mystery .ms-name { color: var(--yellow); }
.ms-mystery:not(.done) .ms-state::before { content: "Segredo"; }
.ms-note { margin: 34px 0 0; color: var(--muted); font-style: italic; }

/* ---------- Locais ---------- */
.places { display: grid; gap: 0; }
.place { position: relative; height: min(80svh, 820px); min-height: 480px; overflow: hidden; display: flex; align-items: flex-end; }
.place img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 10, 15, .82) 0%, rgba(11, 10, 15, .25) 55%, rgba(11, 10, 15, 0) 75%), linear-gradient(0deg, rgba(11, 10, 15, .6), rgba(11, 10, 15, 0) 40%); }
.place-right::after { background: linear-gradient(270deg, rgba(11, 10, 15, .82) 0%, rgba(11, 10, 15, .25) 55%, rgba(11, 10, 15, 0) 75%), linear-gradient(0deg, rgba(11, 10, 15, .6), rgba(11, 10, 15, 0) 40%); }
.place-text {
  position: relative; z-index: 2; display: grid; gap: 14px; max-width: 640px;
  padding: 0 max(var(--pad), env(safe-area-inset-right, 0px)) clamp(40px, 7vw, 90px) max(var(--pad), env(safe-area-inset-left, 0px));
}
.place-right .place-text { margin-left: auto; text-align: right; justify-items: end; }
.place-text p:last-child { margin: 0; max-width: 46ch; font-size: 1.1rem; color: #e6e0e8; }
.place-text .kicker { color: var(--yellow); }

/* ---------- Galeria ---------- */
.gallery { padding-block: clamp(80px, 10vw, 150px) clamp(60px, 7vw, 100px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 30px; margin-bottom: 40px; }
.sec-note { margin: 0; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 210px); gap: 10px; }
.tile { position: relative; padding: 0; border: 0; background: var(--bg-2); overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .4s; filter: saturate(.92); }
.tile:hover img { transform: scale(1.05); filter: saturate(1.08); }
.tile span {
  position: absolute; left: 14px; bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.tile:hover span, .tile:focus-visible span { opacity: 1; transform: none; }
.t-a { grid-column: span 7; grid-row: span 2; }
.t-b { grid-column: span 5; grid-row: span 1; }
.t-c { grid-column: span 5; grid-row: span 1; }
.t-d { grid-column: span 6; grid-row: span 2; }
.t-e { grid-column: span 6; grid-row: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: rgba(5, 4, 8, .95); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; border-radius: 4px; }
.lightbox figcaption { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb-nav, .lb-close { border: 0; background: rgba(246, 241, 236, .1); color: var(--fg); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; transition: background .2s, color .2s; }
.lb-nav:hover, .lb-close:hover { background: var(--fg); color: var(--bg); }
.lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); font-size: 1.8rem; line-height: 1; }

/* ---------- Notícias ---------- */
.news { padding-block: clamp(60px, 8vw, 120px) clamp(90px, 11vw, 160px); }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.tabs button { border: 0; background: none; padding: 6px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--fg); }
.tabs button.active { color: var(--fg); border-color: var(--pink); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.post { display: grid; gap: 14px; align-content: start; }
.post .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.post:hover .thumb img { transform: scale(1.05); }
.post-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-meta .cat { color: var(--yellow); }
.post-meta .cat[data-cat="evento"] { color: var(--pink); }
.post-meta .cat[data-cat="dev"] { color: var(--sea); }
.post h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1.02; text-transform: uppercase; text-wrap: balance; transition: color .2s; }
.post:hover h3 { color: var(--yellow); }
.post p { margin: 0; color: var(--muted); max-width: 60ch; }
.post.featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 20px 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.post.featured .thumb { aspect-ratio: 16 / 9; }
.post.featured .post-body { display: grid; gap: 14px; }
.post.featured h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; line-height: .92; }
.post .post-body { display: grid; gap: 10px; }
.post.hide { display: none; }

/* ---------- CTA final ---------- */
.finale { position: relative; padding-block: clamp(110px, 16vw, 230px); overflow: hidden; isolation: isolate; text-align: center; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../assets/foto-carro.jpg") center 40% / cover; }
.finale::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 10, 15, .55), var(--bg) 78%); }
.finale-inner { display: grid; justify-items: center; gap: 22px; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding-block: 44px 34px; }
.ftr-grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
.ftr-social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
.ftr-social a, .ftr-legal a { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.ftr-social a:hover, .ftr-legal a:hover { color: var(--fg); }
.ftr-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.ftr-legal p { margin: 0; color: var(--muted); font-size: .9rem; }
.ftr-owner { color: var(--fg); font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; }
.ftr-legal nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ftr-legal a { font-size: .85rem; }

/* ---------- Modais ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 8, .82); backdrop-filter: blur(6px); animation: fade .25s; }
.modal-box {
  position: relative; width: min(920px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 8px; animation: pop .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px); } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(246, 241, 236, .1); font-size: 1.6rem; line-height: 1; }
.modal-close:hover { background: var(--fg); color: var(--bg); }
.modal-art { position: relative; min-height: 240px; }
.modal-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.modal-body { padding: 40px 34px 32px; }
.modal-body .kicker { margin-bottom: 8px; }
.modal-body .h-modal { margin-bottom: 24px; }
.field { display: block; border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field > span, .field legend { display: block; margin-bottom: 8px; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input[type="email"] { width: 100%; padding: 13px 15px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); font: inherit; outline: none; transition: border-color .2s; }
.field input[type="email"]:focus { border-color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: all .15s; }
.chips label:hover span { color: var(--fg); border-color: var(--fg); }
.chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--pink); margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; }
.check a { color: var(--fg); text-decoration: underline; }
.err { display: none; color: var(--pink); font-size: .85rem; margin-top: 6px; }
.invalid .err, .err.show { display: block; }
.err-terms { margin: -6px 0 10px; }
.invalid input[type="email"] { border-color: var(--pink); }
#preregForm .btn-block { margin-top: 14px; }
.success { display: grid; gap: 10px; justify-items: start; padding-top: 30px; }
.success p { color: var(--muted); margin: 0 0 14px; }
.success b { color: var(--fg); word-break: break-all; }
.video-box { display: block; width: min(1100px, 100%); background: #000; overflow: hidden; }
.video-frame { aspect-ratio: 16 / 9; max-width: 100%; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { position: relative; width: 100%; height: 100%; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.video-placeholder span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 4rem); text-transform: uppercase; }

/* ---------- Entrada ao rolar (sempre visível; só desliza) ---------- */
.rise { transform: translateY(30px); transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.rise.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Teste fechado (área do jogador) ---------- */
.test-card { position: relative; display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.test-head { display: grid; gap: 10px; }
.test-tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.test-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.test-title { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: .95; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.test-text { margin: 0; max-width: 60ch; }
.test-note { margin: 0; color: var(--muted); font-size: .92rem; }
.test-card .btn { justify-self: start; }
.test-card .form-error { margin: 0; }
.test-card.is-waiting .test-dot { background: var(--orange); animation: live 1.6s infinite; }
/* Aprovado: card em destaque com borda em degradê e brilho */
.test-card.is-approved {
  border: 0; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--sunset) border-box; border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(255, 138, 61, .25), 0 20px 60px -20px rgba(255, 79, 139, .55), 0 0 80px -30px rgba(255, 207, 74, .6);
}
.test-card.is-approved::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 207, 74, .22), rgba(255, 79, 139, 0) 65%); animation: test-glow 4s ease-in-out infinite;
}
.test-card.is-approved > * { position: relative; }
.test-card.is-approved .test-tag { color: var(--yellow); }
.test-card.is-approved .test-dot { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); animation: live 1.6s infinite; }
.test-card.is-approved .test-title { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(2.6rem, 7vw, 4.6rem); }
.btn-xl { padding: 18px 34px; font-size: 1.25rem; box-shadow: 0 10px 30px -10px rgba(255, 79, 139, .8); animation: test-nudge 2.4s ease-in-out infinite; }
.key-box { display: grid; gap: 8px; max-width: 640px; }
.key-label { font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.key-input.key-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(.85rem, 3.6vw, 1.45rem); letter-spacing: .02em; font-weight: 700; padding: 14px 12px; color: var(--yellow); border-color: rgba(255, 207, 74, .45); background: rgba(11, 10, 15, .6); }
.friend-box { display: grid; gap: 12px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.friend-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.friend-box .key-input.key-input { color: var(--fg); border-color: var(--line); }
@keyframes test-glow { 50% { transform: scale(1.15); opacity: .7; } }
@keyframes test-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* Selo no link "Minha conta" */
.hdr-link.has-alert { position: relative; }
.hdr-link.has-alert::after { content: ""; position: absolute; top: -2px; right: -10px; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 207, 74, .25); animation: live 1.6s infinite; }
/* Confete ao pegar a chave */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --hdr-h: 60px; }
  .burger { display: flex; }
  .nav {
    position: fixed; top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 6px max(var(--pad), env(safe-area-inset-right, 0px)) 22px max(var(--pad), env(safe-area-inset-left, 0px));
    background: rgba(11, 10, 15, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-140%); transition: transform .3s;
  }
  .nav.open { transform: none; }
  .nav a { padding: 15px 0; font-size: 1.3rem; color: var(--fg); border-bottom: 1px solid var(--line); }
  .hero-media { height: auto; min-height: 0; aspect-ratio: 1671 / 941; margin-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); }
  .hdr { background: rgba(11, 10, 15, .92); }
  .hdr::before { display: none; }
  .hero-bar { margin-top: -40px; flex-direction: column; align-items: stretch; padding-bottom: 40px; }
  .hero-actions { align-items: stretch; }
  .hero-btns .btn { flex: 1 1 200px; }
  .milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .ms:nth-child(n) { border-left: 1px solid var(--line); padding-left: 18px; }
  .ms:nth-child(odd) { border-left: 0; padding-left: 0; }
  .counter { text-align: left; }
  .place { height: auto; min-height: 0; flex-direction: column; align-items: stretch; }
  .place img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; transform: none !important; }
  .place::after { display: none; }
  .place-text, .place-right .place-text { margin: -70px 0 0; text-align: left; justify-items: start; padding-bottom: 56px; }
  .place-text .h-place { text-shadow: 0 4px 24px rgba(0, 0, 0, .55); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaic .tile { grid-column: span 1; grid-row: span 1; }
  .mosaic .t-a { grid-column: span 2; grid-row: span 2; }
  .tile span { opacity: 1; transform: none; font-size: .85rem; }
  .post.featured { grid-template-columns: minmax(0, 1fr); }
  .modal-box { grid-template-columns: minmax(0, 1fr); }
  .modal-art { min-height: 150px; }
  .modal-body { padding: 26px 20px 24px; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { display: none; }
}
@media (max-width: 640px) {
  .hdr .btn-sm { display: none; }
  .brand-logo { height: 36px; }
  .brand-name { font-size: 1rem; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .intro-facts div { display: flex; align-items: baseline; gap: 12px; }
  .milestones { grid-template-columns: minmax(0, 1fr); }
  .ms, .ms:nth-child(n) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
  .ms:first-child { border-top: 0; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .ftr-social { justify-content: flex-start; }
}

/* =========================================================
   Páginas internas (notícias, notícia, conta, 404)
   ========================================================= */
.nav .nav-account { display: none; }
.hdr-link { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.hdr-link:hover, .hdr-link.active { color: var(--fg); }
.subpage main { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); min-height: 70vh; }
.muted { color: var(--muted); margin: 0; }
.empty { grid-column: 1 / -1; color: var(--muted); margin: 0; padding: 30px 0; }
.news-more { display: flex; justify-content: center; margin-top: 48px; }
.news-page { padding-top: clamp(50px, 7vw, 90px); }
.h-section { margin: 0 0 30px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3rem); line-height: .95; }

.article-head { display: grid; gap: 16px; max-width: 980px; padding-block: clamp(40px, 6vw, 80px) 34px; }
.back { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.back:hover { color: var(--fg); }
.h-article { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .9; text-wrap: balance; }
.lead { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #e2dce4; max-width: 60ch; }
.article-cover { max-width: 1360px; margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.article-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 4px; }
.article-body { max-width: 820px; padding-block: 44px 20px; font-size: 1.1rem; }
.article-body > * { max-width: 65ch; }
.article-body p { margin: 0 0 1.2em; color: #e2dce4; }
.article-body h2 { margin: 1.6em 0 .5em; font-family: var(--font-display); font-weight: 800; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.article-body ul { margin: 0 0 1.2em; padding-left: 1.2em; color: #e2dce4; }
.more-news { padding-block: 60px 120px; border-top: 1px solid var(--line); margin-top: 60px; }
.more-news .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.account { padding-block: clamp(50px, 7vw, 100px) clamp(80px, 10vw, 140px); }
.auth-card { max-width: 460px; margin: 0 auto; display: grid; gap: 14px; padding: 36px 32px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.auth-card form { margin-top: 10px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; font-size: .95rem; }
.auth-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.auth-links a:hover { color: var(--fg); }
.form-error, .form-ok { margin: 4px 0 12px; padding: 10px 14px; border-radius: 6px; font-size: .92rem; }
.form-error { background: rgba(255, 79, 139, .12); color: #ffb3cb; border: 1px solid rgba(255, 79, 139, .4); }
.form-ok { background: rgba(63, 214, 224, .1); color: #a9f1f5; border: 1px solid rgba(63, 214, 224, .35); }
.form-alt { margin: 16px 0 0; font-size: .92rem; color: var(--muted); text-align: center; }
.form-alt a { color: var(--fg); text-decoration: underline; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.field-label { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.static { margin: 0; font-weight: 500; word-break: break-all; }
.field input[type="password"] { width: 100%; padding: 13px 15px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); font: inherit; outline: none; transition: border-color .2s; }
.field input[type="password"]:focus { border-color: var(--fg); }
.invalid input[type="password"] { border-color: var(--pink); }

.dash { display: grid; gap: 40px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.dash-head .kicker { margin-bottom: 10px; color: var(--yellow); }
.dash-head .muted { margin-top: 10px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.panel { display: grid; gap: 14px; align-content: start; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.panel-rewards { grid-row: auto; }
.panel-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.panel form { display: grid; gap: 4px; }
.panel .btn { justify-self: start; }
.reward-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.reward { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.reward-goal { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-size: .9rem; }
.reward-name { grid-column: 1; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1.05; color: var(--muted); }
.reward-state { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.reward.done .reward-name { color: var(--fg); }
.reward.done .reward-state { color: var(--yellow); }
.panel-danger { border-color: rgba(255, 79, 139, .3); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-danger { background: var(--pink); color: #120c10; }
.btn-danger:hover { background: #ff7aa6; }
.btn:disabled { opacity: .6; cursor: progress; }

.notfound { padding-block: clamp(80px, 12vw, 160px); }
.notfound .wrap { display: grid; gap: 22px; justify-items: start; }

@media (max-width: 900px) {
  .hdr-link { display: none; }
  .nav .nav-account { display: block; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-rewards { grid-row: auto; }
  .more-news .news-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-card { padding: 28px 20px; }
}

/* ---------- Campos extras do pré-registro e indicação ---------- */
.field input[type="text"], .field input[type="tel"], .field select {
  width: 100%; padding: 13px 15px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line);
  color: var(--fg); font: inherit; outline: none; transition: border-color .2s;
}
.field select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--fg); }
.field input[type="text"]:focus, .field input[type="tel"]:focus, .field select:focus { border-color: var(--fg); }
.invalid input[type="text"], .invalid input[type="tel"], .invalid select { border-color: var(--pink); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
.field > span em.optional { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--font-body); color: var(--muted); font-weight: 400; margin-left: 6px; }
.ref-note { margin: -10px 0 18px; padding: 10px 14px; border-radius: 6px; background: rgba(255, 207, 74, .1); border: 1px solid rgba(255, 207, 74, .35); color: #ffe39a; font-size: .92rem; }
.ref-note b { color: var(--yellow); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); font: inherit; font-size: .95rem; }
.ref-share { display: grid; gap: 8px; margin: 4px 0 20px; width: 100%; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-ref { grid-column: 1 / -1; border-color: rgba(255, 138, 61, .35); background: linear-gradient(135deg, rgba(255, 79, 139, .08), rgba(255, 207, 74, .05)), var(--bg-2); }
.ref-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ref-head .muted { margin-top: 8px; }
.ref-count { text-align: right; }
.ref-count strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; line-height: .9; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.ref-count span { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-size: .9rem; }
.small { font-size: .88rem; }
@media (max-width: 640px) {
  .field-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .copy-row { flex-direction: column; }
  .ref-count { text-align: left; }
}
