/* ============================================================================
   RF ORIGIN - folha de estilos única
   Tema escuro, laranja de destaque, acabamento dourado, ciano de apoio.
   Sem estilos inline: compatível com CSP style-src 'self'.
   ========================================================================== */
:root {
  --bg: #04070d; --bg2: #070c16; --panel: #0a111f; --panel2: #0d1626;
  --line: #1b2a40; --line2: #13202f;
  --ink: #eaf2ff; --muted: #8294ad; --dim: #566578;
  --orange: #ff6a00; --orange2: #ff9233; --gold: #e3ad3f; --cyan: #22d3ee;
  --ok: #34d399; --loss: #ff5168;
  --acc: #9fb3c8; --bel: #ffcb45; --cor: #c77dff;
  --display: 'Orbitron', sans-serif;
  --body: 'Exo 2', system-ui, sans-serif;
  /* artes: quando tiver os arquivos, troque "none" por url("../img/bg.webp") etc. */
  --art-bg: none;
  --art-slider: none;
  --radius: 4px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .42);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.i18n-pending body { visibility: hidden; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.55; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dsp { font-family: var(--display); }

/* ── fundo: arte + véu + brasas ─────────────────────────────────────────── */
.bgfx { position: fixed; inset: 0; z-index: -3; background: radial-gradient(120% 80% at 50% -10%, #1a0f06 0%, #070b13 45%, var(--bg) 80%); }
.bgfx::after { content: ""; position: absolute; inset: 0; background: var(--art-bg) top center / cover no-repeat; opacity: .55; }
.bgveil { position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(3,5,9,.25), rgba(3,5,9,.6) 38%, rgba(3,5,9,.92) 72%, rgba(3,5,9,.97)),
              radial-gradient(70% 50% at 50% 0, rgba(255,106,0,.12), transparent 60%); }
.embers { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.embers i { position: absolute; bottom: -12px; border-radius: 50%; background: var(--orange2); box-shadow: 0 0 6px var(--orange2); opacity: .5; animation: rise linear infinite; }
@keyframes rise { to { transform: translateY(-105vh); opacity: 0; } }
@keyframes pulse { 50% { opacity: .4; } }

.page { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ── faixa de agenda ────────────────────────────────────────────────────── */
.launchbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 20px; padding: 9px 16px;
  background: linear-gradient(180deg, rgba(10,15,24,.96), rgba(6,10,16,.98)); border-bottom: 1px solid var(--line); }
.launchbar .seg { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.launchbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.launchbar .k { color: var(--dim); }
.launchbar .v { color: var(--gold); }
.launchbar .seg.on { color: var(--ink); }
.launchbar .seg.on .v { color: var(--orange); }
.launchbar .seg.on .dot { background: var(--orange); box-shadow: 0 0 8px var(--orange); animation: pulse 1.3s infinite; }
.launchbar .sep { color: var(--line); }

/* ── cabeçalho com logo e countdown ─────────────────────────────────────── */
.masthead { text-align: center; padding: 30px 0 10px; position: relative; }
.masthead::before { content: ""; position: absolute; left: 50%; top: 0; width: min(520px, 100%); height: 300px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(circle at 50% 40%, rgba(255,106,0,.2), transparent 60%); }
.masthead .logo { display: inline-block; }
/* logo provisório em texto (troque por <img src="assets/img/logo.png"> quando tiver a arte) */
.logo-text { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo-text .mark { width: clamp(46px, 6vw, 64px); height: auto; color: var(--orange); filter: drop-shadow(0 0 14px rgba(255,106,0,.6)); }
.logo-text .mark path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linejoin: round; }
.logo-text .word { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 7vw, 72px); line-height: 1; letter-spacing: .06em; color: var(--ink);
  text-shadow: 0 6px 30px rgba(255,106,0,.45); }
.logo-text .word b { color: var(--orange); background: linear-gradient(180deg, var(--orange2), var(--orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.masthead .logo img { height: clamp(84px, 12vw, 140px); width: auto; margin: 0 auto; filter: drop-shadow(0 10px 30px rgba(255,106,0,.45)); }
.masthead .wm { font-family: var(--display); font-weight: 900; font-size: 12px; letter-spacing: .45em; color: var(--gold); text-transform: uppercase; margin-top: 10px; }

.hero-cd { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 16px auto 6px; max-width: 600px; }
.hero-cd .cdlabel { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.hero-cd .live { width: 9px; height: 9px; border-radius: 50%; background: var(--loss); box-shadow: 0 0 8px var(--loss); display: none; }
.hero-cd.is-beta .cdlabel { color: var(--orange2); }
.hero-cd.is-beta .live { display: inline-block; animation: pulse 1.3s infinite; }
.hero-cd .tiles { display: flex; gap: 10px; }
.hero-cd .tile { position: relative; min-width: 76px; padding: 12px 10px 9px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(13,22,38,.92), rgba(6,10,16,.94)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-cd .tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: .75; }
.hero-cd .num { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 4.4vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.hero-cd .lab { margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-cd .cdfinal { font-family: var(--display); font-weight: 900; font-size: clamp(18px, 3vw, 26px); letter-spacing: .05em; text-transform: uppercase; color: var(--orange); }

/* ── redes + idioma ─────────────────────────────────────────────────────── */
.utilrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 8px; }
.langs { display: inline-flex; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.langs a { padding: 8px 12px; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--muted); transition: .15s; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { color: #04070d; background: var(--orange); }
.socials { display: flex; gap: 9px; }
.socials a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: rgba(255,255,255,.02); transition: .15s; }
.socials a svg { width: 16px; height: 16px; fill: currentColor; }
.socials a:hover { color: var(--orange); border-color: var(--orange); background: rgba(255,106,0,.08); }

/* ── navegação ──────────────────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; gap: 18px; background: linear-gradient(180deg, rgba(10,15,24,.92), rgba(6,10,16,.95)); border: 1px solid var(--line); padding: 0 18px; min-height: 56px; margin-bottom: 22px; position: relative; }
.topbar .links { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar a { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px clamp(8px, 1vw, 14px); white-space: nowrap; transition: .15s; display: inline-flex; align-items: center; gap: 7px; border-bottom: 2px solid transparent; }
.topbar a:hover { color: var(--gold); }
.topbar a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }
.topbar .login { margin-left: auto; color: var(--ink); border: 1px solid var(--orange); padding: 8px 16px; background: rgba(255,106,0,.08); }
.topbar .login:hover { color: #04070d; background: var(--orange); }
.topbar .login.disabled { border-color: var(--line); background: none; color: var(--dim); cursor: not-allowed; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); width: 42px; height: 38px; cursor: pointer; color: var(--ink); font-size: 18px; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 312px 1fr; gap: 22px; align-items: start; padding-bottom: 30px; }
.layout.single { grid-template-columns: 1fr; }
.panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(10,16,28,.9), rgba(6,10,16,.92)); }
.panel + .panel { margin-top: 18px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.panel-b { padding: 16px; }
.tag { font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; background: var(--cyan); color: #04070d; }
.tag.sample { background: var(--gold); }
.empty { color: var(--dim); font-size: 13px; text-align: center; padding: 18px 8px; }

/* ── sidebar: status ────────────────────────────────────────────────────── */
.status-pill { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 1px solid var(--line2); background: rgba(0,0,0,.25);
  font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .14em; }
.status-pill .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dim); }
.status-pill.on { color: var(--ok); }
.status-pill.on .dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.6s infinite; }
.status-pill.off { color: var(--loss); }
.status-pill.off .dot { background: var(--loss); }
/* servidor em desenvolvimento/preparação */
.status-pill.dev { color: var(--gold); font-size: 14px; letter-spacing: .12em; text-align: center; }
.status-pill.dev .dot { flex: 0 0 auto; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2s infinite; }
.kv dd.tbd, .rates dd.tbd { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.status-sub { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.players { margin-top: 14px; display: grid; gap: 9px; }
.players .row { display: grid; grid-template-columns: 74px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; }
.players .name { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.players .bar { height: 7px; background: rgba(255,255,255,.06); overflow: hidden; }
.players .bar i { display: block; height: 100%; width: 0; transition: width .6s ease; }
.players .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.race-acc .name { color: var(--acc); } .race-acc .bar i { background: var(--acc); }
.race-bel .name { color: var(--bel); } .race-bel .bar i { background: var(--bel); }
.race-cor .name { color: var(--cor); } .race-cor .bar i { background: var(--cor); }
.players-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.players-total b { font-family: var(--display); font-size: 20px; color: var(--ink); }
.side-sub { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 18px 0 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--orange); color: #04070d; font-weight: 700; }
.skip:focus { top: 12px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv div { border: 1px solid var(--line2); padding: 8px 10px; background: rgba(0,0,0,.2); }
.kv dt { font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-family: var(--display); }
.kv dd { font-family: var(--display); font-weight: 900; font-size: 16px; color: var(--ink); }
.clock { text-align: center; font-family: var(--display); font-size: 12px; color: var(--muted); margin-top: 12px; letter-spacing: .08em; }

/* ── sidebar: rankings ──────────────────────────────────────────────────── */
.rank-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.rank-tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; padding: 10px 6px; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rank-tabs button[aria-selected="true"] { color: var(--orange); border-bottom-color: var(--orange); }
.rank-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-table th { text-align: left; font-family: var(--display); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 8px 10px; }
.rank-table td { padding: 8px 10px; border-top: 1px solid var(--line2); }
.rank-table td.num, .rank-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank-table .pos { font-family: var(--display); font-weight: 900; color: var(--dim); width: 32px; }
.rank-table tr:nth-child(1) .pos { color: var(--gold); }
.rank-table tr:nth-child(2) .pos { color: #c9d4e3; }
.rank-table tr:nth-child(3) .pos { color: #c88a4a; }
.rank-table .race { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--dim); }
.rank-table .race.acc { background: var(--acc); } .rank-table .race.bel { background: var(--bel); } .rank-table .race.cor { background: var(--cor); }

/* ── hero da página inicial (vídeo + camada interativa → assets/js/hero.js) ─
   Camadas: fundo animado em CSS → poster → vídeo → véu (contraste) → brasas → conteúdo.
   Parallax via --px/--py (mouse, -1..1) e --scroll (0..1), só transform/opacity. */
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.hero-media { display: none; }
.hero-toggle { display: none; }

body[data-page="home"] .masthead {
  --px: 0; --py: 0; --scroll: 0;
  isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: center;
  min-height: clamp(540px, 86vh, 860px); min-height: clamp(540px, 86dvh, 860px); padding: 48px 0 72px; margin-bottom: 8px;
}
body[data-page="home"] .masthead::before { display: none; }
body[data-page="home"] .hero-media { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden;
  transform: translate3d(calc(var(--px) * 14px), calc(var(--py) * 10px), 0) scale(1.06); transition: transform .5s cubic-bezier(.2,.8,.2,1);
  /* a camada inteira (cena, brilhos, véu) some aos poucos na base e revela o MESMO fundo
     fixo da página: uma camada só, sem linha de corte entre o hero e o conteúdo */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,.55) 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,.55) 78%, transparent 100%); }
/* sem vídeo: arte animada em CSS (brilho de batalha), também serve de fundo enquanto o vídeo carrega */
.hero-media::before { content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(45% 55% at 30% 60%, rgba(255,106,0,.38), transparent 60%),
    radial-gradient(40% 50% at 72% 42%, rgba(34,211,238,.20), transparent 62%),
    radial-gradient(30% 40% at 55% 75%, rgba(199,125,255,.16), transparent 60%),
    var(--art-bg, none) center / cover no-repeat,
    linear-gradient(180deg, #0b0f19, var(--bg));
  animation: clash 14s ease-in-out infinite alternate; }
@keyframes clash {
  0%   { transform: translate3d(-2%, 1%, 0) scale(1); }
  50%  { transform: translate3d(2%, -1%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, -2%, 0) scale(1.02); }
}
.hero-poster, .hero-video, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video, .hero-canvas { opacity: 0; transition: opacity 1.4s ease; }

/* vídeo do jogo (HSK): painel à direita que se dissolve na escuridão à esquerda,
   onde fica o texto. Celular: topo, texto embaixo.
   SEM máscara CSS no <video> nem nos elementos acima dele: no iPhone (WebKit/iOS) isso
   pode fazer vídeo e poster sumirem. Os degradês vêm de uma camada por cima (.hero-veil). */
.masthead.has-video { --vid-w: min(64%, 1060px); }
.masthead.has-video .hero-media { -webkit-mask-image: none; mask-image: none; }
.masthead.has-video .hero-poster, .masthead.has-video .hero-video {
  left: auto; right: 0; width: var(--vid-w); object-fit: cover; object-position: 50% 30%;
  filter: brightness(.82) contrast(1.06) saturate(1.05);
}
/* o degradê começa opaco exatamente na borda esquerda do vídeo (qualquer largura de tela) */
.masthead.has-video .hero-veil {
  background:
    linear-gradient(90deg, var(--bg) 0, var(--bg) calc(100% - var(--vid-w)), rgba(4,7,13,.6) calc(100% - var(--vid-w) + 12%), rgba(4,7,13,0) calc(100% - var(--vid-w) + 28%)),
    linear-gradient(0deg, var(--bg) 0%, rgba(4,7,13,.75) 14%, rgba(4,7,13,0) 38%),
    linear-gradient(180deg, rgba(4,7,13,.55) 0%, rgba(4,7,13,0) 18%);
}
@media (max-width: 920px) {
  .masthead.has-video .hero-poster, .masthead.has-video .hero-video {
    left: 0; width: 100%; height: 66%; object-position: 50% 18%;
  }
  .masthead.has-video .hero-veil {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(4,7,13,.9) 34%, rgba(4,7,13,.2) 60%, rgba(4,7,13,0) 72%),
      linear-gradient(180deg, rgba(4,7,13,.45) 0%, rgba(4,7,13,0) 16%);
  }
}
.masthead.video-on .hero-video, .masthead.scene-on .hero-canvas { opacity: 1; }
/* a cena 3D tem câmera própria: sem o parallax CSS da camada de mídia */
body[data-page="home"] .masthead.has-scene .hero-media { transform: none; transition: none; }
/* véu: escurece o lado do texto (contraste ≥ 4.5:1) e funde a base com o fundo do site */
.hero-veil { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,7,13,.82) 0%, rgba(4,7,13,.55) 34%, rgba(4,7,13,0) 62%),
    linear-gradient(180deg, rgba(4,7,13,.5) 0%, rgba(4,7,13,0) 20%); }
.hero-embers { position: absolute; z-index: 1; }

/* composição do hero: desktop = texto à esquerda, Chip à direita */
@media (min-width: 921px) {
  body[data-page="home"] .masthead { justify-content: flex-start; text-align: left; }
  body[data-page="home"] .hero-inner { width: 100%; }
  body[data-page="home"] .hero-inner > * { max-width: 600px; }
  body[data-page="home"] .logo-text { align-items: flex-start; }
  body[data-page="home"] .hero-cd { align-items: flex-start; margin-left: 0; }
  body[data-page="home"] .hero-ctas { justify-content: flex-start; }
}

body[data-page="home"] .hero-inner {
  transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -6px + var(--scroll) * 70px), 0);
  opacity: calc(1 - var(--scroll) * 1.1);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
/* no hero, o logo é marca; o título (h1) é a mensagem principal */
body[data-page="home"] .logo-text .mark { width: clamp(40px, 5vw, 54px); }
body[data-page="home"] .logo-text .word { font-size: clamp(28px, 4.4vw, 44px); }
body[data-page="home"] .masthead .wm { display: none; }
.hero-copy { margin-top: 26px; }
.hero-copy .e { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .28em; color: var(--cyan); text-transform: uppercase; }
.hero-copy .t { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 7vw, 76px); line-height: 1.02; margin-top: 10px; text-transform: uppercase;
  text-wrap: balance; text-shadow: 0 6px 34px rgba(0,0,0,.7); }
.hero-copy .t b { color: var(--orange); }
.hero-copy .s { font-size: clamp(14px, 1.6vw, 17px); color: #c7d3e6; text-transform: uppercase; letter-spacing: .14em; margin-top: 12px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-ctas .btn { min-height: 48px; }
.hero-ctas .btn.ghost { background: rgba(4,7,13,.45); backdrop-filter: blur(4px); }

.hero-toggle { position: absolute; right: 18px; bottom: 22px; z-index: 3; width: 44px; height: 44px; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: rgba(4,7,13,.6); color: var(--ink); transition: .15s; }
body[data-page="home"] .hero-toggle:not([hidden]) { display: grid; }
.hero-toggle:hover { border-color: var(--orange); color: var(--orange); }
.hero-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-toggle .i-play { display: none; fill: currentColor; stroke: none; }
.hero-toggle.paused .i-pause { display: none; }
.hero-toggle.paused .i-play { display: block; }

/* ── notícias / eventos ─────────────────────────────────────────────────── */
.newsbox { margin-top: 0; }
.ntabs { display: flex; border-bottom: 1px solid var(--line); }
.ntab { background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 14px 22px; color: var(--muted); transition: .15s; }
.ntab:hover { color: var(--ink); }
.ntab[aria-selected="true"] { color: var(--orange); border-bottom-color: var(--orange); }
.nitem { border-bottom: 1px solid var(--line2); }
.nitem:last-child { border-bottom: 0; }
.nhead { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: none; border: 0; cursor: pointer; padding: 16px 20px; text-align: left; }
.nhead:hover { background: rgba(255,106,0,.04); }
.nt { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.nd { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; white-space: nowrap; }
.chev { transition: transform .25s; color: var(--orange); }
.nitem.open .chev { transform: rotate(180deg); }
.nbody { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.nitem.open .nbody { max-height: 640px; }
.nbody .inner { padding: 0 20px 20px; }
.nbody .pic { height: 190px; border: 1px solid var(--line2); background: radial-gradient(120% 120% at 70% 10%, rgba(255,106,0,.4), #060b14 70%) center / cover no-repeat; display: flex; align-items: flex-end; padding: 12px; }
.nbody p { color: var(--muted); font-size: 14px; margin-top: 12px; white-space: pre-line; }
.nauthor { font-size: 12px; color: var(--dim); margin-top: 10px; }
.nauthor b { color: var(--ink); font-family: var(--display); font-size: 11px; }


/* ── botões ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid var(--orange); background: linear-gradient(180deg, var(--orange2), var(--orange)); color: #04070d; cursor: pointer;
  font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; transition: .15s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.ghost { background: rgba(255,106,0,.06); color: var(--orange); }
.btn.ghost:hover { background: var(--orange); color: #04070d; }
.btn[disabled], .btn.disabled { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--dim); cursor: not-allowed; transform: none; filter: none; }

/* ── páginas internas ───────────────────────────────────────────────────── */
.page-hero { position: relative; border: 1px solid var(--line); padding: clamp(26px, 5vw, 46px) clamp(20px, 4vw, 40px); overflow: hidden;
  background: radial-gradient(80% 140% at 90% 0, rgba(255,106,0,.25), transparent 55%), linear-gradient(135deg, #0d1626, #05080f); }
.page-hero .e { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .24em; color: var(--cyan); text-transform: uppercase; }
.page-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 5vw, 48px); line-height: 1.05; margin-top: 8px; text-transform: uppercase; }
.page-hero h1 b { color: var(--orange); }
.page-hero p { color: var(--muted); max-width: 640px; margin-top: 10px; }
.section { margin-top: 22px; }
.section-title { font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(13,22,38,.85), rgba(6,10,16,.9)); padding: 20px; position: relative; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: .6; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.card p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.card .ico { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--orange); margin-bottom: 12px; }
.card .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.card.featured { border-color: rgba(255,106,0,.55); }
.card .badge { display: inline-block; align-self: flex-start; margin-bottom: 12px; }
.pay .section-title { margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.meta b { color: var(--ink); font-family: var(--display); font-size: 12px; }
.mirrors { display: grid; gap: 10px; margin-top: 18px; }
.mirror { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(0,0,0,.2); transition: .15s; }
a.mirror:hover { border-color: var(--orange); background: rgba(255,106,0,.06); }
.mirror .l { font-family: var(--display); font-weight: 700; font-size: 14px; }
.mirror .n { font-size: 12px; color: var(--muted); }
.mirror .go { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--orange); text-transform: uppercase; }
.mirror.off { opacity: .55; }
.mirror.off .go { color: var(--dim); }
.steps { counter-reset: s; display: grid; gap: 12px; }
.steps li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: 14px; }
.steps li::before { content: counter(s); width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--orange); color: var(--orange); font-family: var(--display); font-weight: 900; }
.steps li b { color: var(--ink); }
.req { width: 100%; border-collapse: collapse; font-size: 14px; }
.req th, .req td { padding: 10px 12px; border-top: 1px solid var(--line2); text-align: left; }
.req th { font-family: var(--display); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border-top: 0; }
.req td:first-child { color: var(--muted); }

/* documentação */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.toc { position: sticky; top: 16px; }
.toc a { display: block; padding: 9px 14px; font-size: 13px; color: var(--muted); border-left: 2px solid transparent; transition: .15s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--orange); border-left-color: var(--orange); background: rgba(255,106,0,.05); }
.doc-sec { scroll-margin-top: 16px; }
.doc-sec + .doc-sec { margin-top: 18px; }
.doc-sec .panel-b p { color: var(--muted); font-size: 14px; }
.doc-sec .panel-b p + p { margin-top: 10px; }
.doc-sec ul { margin: 10px 0 0 18px; color: var(--muted); font-size: 14px; }
.doc-sec li + li { margin-top: 4px; }
.faq h3 { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); margin-top: 16px; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin-top: 4px; }
.rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rates div { text-align: center; border: 1px solid var(--line2); padding: 14px 8px; background: rgba(0,0,0,.2); }
.rates dt { font-family: var(--display); font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.rates dd { font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--orange); margin-top: 4px; }
.races { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.races .card h3.acc { color: var(--acc); } .races .card h3.bel { color: var(--bel); } .races .card h3.cor { color: var(--cor); }

/* doações */
.pay { display: flex; flex-direction: column; gap: 14px; }
.pay .methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay .methods span { font-size: 11px; font-family: var(--display); letter-spacing: .08em; padding: 4px 10px; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 14px 16px; background: rgba(227,173,63,.05); color: var(--muted); font-size: 14px; }
.notice b { color: var(--gold); }

/* conteúdos */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filters button { background: rgba(255,255,255,.02); border: 1px solid var(--line); cursor: pointer; padding: 9px 18px; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filters button[aria-pressed="true"] { color: #04070d; background: var(--orange); border-color: var(--orange); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gitem { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); overflow: hidden; cursor: pointer; background: #0a111f center / cover no-repeat; display: flex; align-items: flex-end; text-align: left; padding: 0; }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,5,9,.92), transparent 60%); transition: .2s; }
.gitem:hover { border-color: var(--orange); }
.gitem .cap { position: relative; z-index: 1; padding: 12px; width: 100%; }
.gitem .cap b { display: block; font-family: var(--display); font-size: 13px; text-transform: uppercase; }
.gitem .cap span { font-size: 11px; color: var(--muted); }
.gitem .play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,106,0,.9); display: grid; place-items: center; }
.gitem .play::before { content: ""; border-left: 16px solid #04070d; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }

/* modal / lightbox */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(2,3,6,.93); padding: 20px; }
.modal .box { max-width: 760px; width: 100%; max-height: 90vh; overflow: auto; border: 1px solid var(--line); background: var(--bg2); padding: 24px; position: relative; }
.modal .close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }
.modal .close:hover { color: var(--orange); }
.modal img.full { max-width: 88vw; max-height: 86vh; width: auto; border: 1px solid var(--line); }
.modal .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; background: rgba(3,5,9,.6); border: 1px solid var(--line); color: #fff; font-size: 28px; cursor: pointer; }
.modal .lb-prev { left: 16px; } .modal .lb-next { right: 16px; }
.modal .lb-nav:hover { background: var(--orange); color: #04070d; }

/* ── rodapé ─────────────────────────────────────────────────────────────── */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; border-top: 1px solid var(--line); padding: 26px 0 50px; margin-top: 10px; }
.foot .rfl { font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: .1em; color: var(--muted); }
.foot .rfl b { color: var(--orange); }
.foot .fc { text-align: center; font-size: 11px; color: var(--dim); line-height: 1.7; }
.foot .fc b { color: var(--orange); font-family: var(--display); letter-spacing: .1em; }
.foot .fr { text-align: right; font-family: var(--display); font-size: 11px; color: var(--muted); letter-spacing: .08em; line-height: 1.7; }

.foot .legal { display: flex; justify-content: center; gap: 16px; margin-top: 6px; }
.foot .legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot .legal a:hover { color: var(--orange); }

/* páginas legais (texto corrido) */
.prose .panel-b { max-width: 820px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose p + p { margin-top: 10px; }
.prose ul { margin: 6px 0 0 20px; }
.prose li + li { margin-top: 6px; }
.prose b { color: var(--ink); }
.prose a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: 13px; padding: 1px 6px; background: rgba(255,255,255,.06); border: 1px solid var(--line2); }
.notfound { text-align: center; padding-block: clamp(50px, 10vw, 110px); }
.notfound p { margin-inline: auto; }
.notfound p + p { margin-top: 22px; }
.notfound .e { font-size: 14px; }

/* ── responsivo ─────────────────────────────────────────────────────────── */
@media (max-width: 1240px) and (min-width: 921px) { .topbar { gap: 10px; padding: 0 12px; } .topbar a { letter-spacing: .04em; } }
@media (max-width: 920px) {
  .layout, .docs { grid-template-columns: 1fr; }
  .layout .side { order: 2; }   /* no celular: notícias primeiro */
  /* hero no celular/tablet: Chip no alto, texto embaixo sobre véu escuro */
  body[data-page="home"] .masthead { align-items: flex-end; min-height: clamp(560px, 92dvh, 860px); padding: 32px 0 72px; }
  .hero-veil { background: linear-gradient(0deg, rgba(4,7,13,.88) 0%, rgba(4,7,13,.8) 30%, rgba(4,7,13,.35) 58%, rgba(4,7,13,.15) 80%, rgba(4,7,13,.45) 100%); }
  .toc { position: static; display: flex; flex-wrap: wrap; }
  .toc a { border-left: 0; border-bottom: 2px solid transparent; }
  .toc a.active { border-bottom-color: var(--orange); }
  .menu-btn { display: inline-block; }
  .topbar { flex-wrap: wrap; padding: 9px 12px; }
  .topbar .links { display: none; order: 3; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .topbar.open .links { display: flex; }
  .topbar .login { margin-left: auto; }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .foot .fr { text-align: center; }
}
@media (max-width: 560px) {
  .utilrow { flex-direction: column-reverse; }
  .grid.c2, .grid.c3, .grid.c4, .races { grid-template-columns: 1fr; }
  .rates { grid-template-columns: repeat(2, 1fr); }
  .hero-cd .tiles { gap: 6px; }
  .hero-cd .tile { min-width: 64px; padding: 10px 6px 8px; }
  .launchbar .sep { display: none; }
  .nhead { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .embers { display: none; }
  .hero-media::before, .launchbar .seg.on .dot, .hero-cd .live, .status-pill .dot { animation: none !important; }
  body[data-page="home"] .hero-media, body[data-page="home"] .hero-inner { transform: none; transition: none; }
}
