/* Corrida do Faturamento — public page. Ported from the user's approved reference
   build (Exemplo de pagina/index.html) onto our PHP + live-data backend.
   Tokens in tokens.css. See DESIGN.md "World" for the full revision history. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-2) var(--panel);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-radius: 999px;
  border: 2px solid var(--panel);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffe15c, var(--gold)); }
::-webkit-scrollbar-corner { background: var(--panel); }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 82% 12%, rgba(77, 220, 255, .10), transparent 23%),
    radial-gradient(circle at 18% 8%, rgba(223, 255, 0, .08), transparent 18%),
    linear-gradient(180deg, #080b0e 0%, #06090c 45%, #090d11 100%);
  color: var(--ink);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23fff4b6'/%3E%3Cstop offset='42%25' stop-color='%23ffcb35' stop-opacity='.85'/%3E%3Cstop offset='100%25' stop-color='%23ffcb35' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='11' fill='url(%23g)'/%3E%3Ccircle cx='12' cy='12' r='3.2' fill='%23fff8e0'/%3E%3C/svg%3E") 12 12, auto;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

body.is-loading { overflow: hidden; height: 100vh; }

.container { width: min(1180px, calc(100% - 38px)); margin-inline: auto; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { width: 20px; height: 20px; color: currentColor; }
img { max-width: 100%; }

::selection { background: var(--gold); color: #17120a; }

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgba(255, 139, 0, .12));
}

.empty-state { color: var(--faint); font-style: italic; padding: 24px 0; text-align: center; }

/* ============ MONEY RAIN (preloader + ambient) ============ */

.money-layer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; opacity: .55; }
.bill {
  position: absolute;
  top: -120px;
  width: 54px; height: auto;
  filter: drop-shadow(0 0 10px rgba(91, 255, 120, .18));
  animation: fall linear infinite;
}
.bill svg { display: block; width: 100%; height: auto; }
@keyframes fall {
  0% { transform: translate3d(0, -10vh, 0) rotateZ(var(--r)); opacity: 0; }
  8% { opacity: .9; }
  100% { transform: translate3d(var(--drift), 115vh, 0) rotateZ(calc(var(--r) + 280deg)); opacity: .2; }
}
@media (prefers-reduced-motion: reduce) { .bill { animation: none; opacity: 0; } }

/* ============ PRELOADER ============ */

#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: #06090c;
  display: grid; place-items: center;
  transition: opacity .7s ease, visibility .7s ease;
}
#preloader.is-leaving { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; width: min(420px, 86vw); }

/* "TROPA DO BK" e o proprio indicador de carregamento: o contorno fica visivel
   desde o inicio, e o preenchimento dourado varre da esquerda pra direita —
   nao existe barra de progresso separada. Um UNICO elemento de texto faz tudo:
   o preenchimento e o proprio background (clipado ao texto) com um corte duro
   dourado->transparente, e a "varredura" e so a posicao desse fundo se movendo
   (tecnica de background-size:200% + background-position). Chegamos aqui depois
   de tentar 2 elementos sobrepostos (base + camada de preenchimento) — por mais
   que alinhados no CSS, en algum layout real (fonte carregando, inline-block
   dentro de container absoluto) as duas caixas saiam de sincronia visualmente,
   e o preenchimento lia como "por cima" do texto em vez de dentro dele. Com um
   elemento so isso e estruturalmente impossivel de acontecer: so existe UM
   conjunto de glifos, nunca dois se sobrepondo. */
.preloader-text-wrap { display: inline-block; margin-bottom: 18px; }
.preloader-text {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 56px);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, .16);
  background-image: linear-gradient(90deg, #fff4b6 0%, #ffcb35 22%, #ff8a00 48%, transparent 50%, transparent 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 203, 53, .3));
  animation: preloadFill 1.5s var(--ease-track) forwards;
}
@keyframes preloadFill { to { background-position: 0% 0; } }
.preloader-label { font-size: 11px; text-transform: uppercase; letter-spacing: .24em; color: #9eabb3; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .preloader-text { animation: none; background-position: 0% 0; }
}

/* ============ HEADER / NAV ============ */

.site-header { position: relative; z-index: 20; }
.site-header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }

/* "TROPA DO BK" com relevo 3D (gradiente dourado + contorno escuro + brilho) —
   a mesma linguagem do logo real, so que em texto, reutilizavel em qualquer tamanho. */
.brand-text-3d {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 14, 4, .6);
  filter: drop-shadow(0 2px 0 rgba(107, 71, 17, .85)) drop-shadow(0 0 12px rgba(255, 203, 53, .35));
  white-space: nowrap;
}
.brand-text-nav { font-size: 30px; }
.brand-text-footer { font-size: 20px; }
.brand-text-soon { font-size: clamp(30px, 6vw, 44px); display: block; margin-bottom: 24px; }

.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(145deg, #ffe35a, #f88400 65%, #f13f30);
  color: #17120a;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  box-shadow: 0 8px 28px rgba(255, 162, 0, .25);
}
.brand-copy { display: flex; flex-direction: column; }
.brand-copy small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; margin-top: 1px; font-weight: 700; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { color: #b8c2ca; font-size: 13px; font-weight: 750; transition: .2s; cursor: inherit; }
.site-nav a:hover { color: white; }
.nav-cta { padding: 11px 16px; border: 1px solid rgba(255, 203, 53, .28); border-radius: 999px; background: rgba(255, 203, 53, .06); color: #ffe06d !important; }

@media (max-width: 980px) { .site-nav a:not(.nav-cta) { display: none; } }

/* ============ HERO ============ */

.hero { min-height: 700px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px; padding: 42px 0 76px; position: relative; }
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 94%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-soon { min-height: auto; grid-template-columns: 1fr; text-align: center; padding: 140px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 9px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  color: #c8d0d6; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(73, 232, 111, .1), 0 0 16px rgba(73, 232, 111, .7); }
.eyebrow.is-ended .dot { background: var(--faint); box-shadow: none; }

.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(52px, 6.6vw, 96px);
  line-height: .84; letter-spacing: -.02em; text-transform: uppercase;
  margin: 22px 0 18px;
}
.hero-title .line { display: block; }
.hero-title .stroke { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .42); }

.hero-subtitle { max-width: 620px; color: #aeb8c0; font-size: 16px; line-height: 1.65; margin: 0 0 26px; font-weight: 500; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 14px 18px; font-weight: 900; font-size: 13px; transition: .25s; border: none; cursor: inherit; }
.btn-primary { color: #17120a; background: linear-gradient(135deg, #ffe55b, var(--gold), #ff9200); box-shadow: var(--shadow-gold-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255, 156, 0, .28); }
.btn-ghost { color: #e8edf1; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }

.hero-mini { display: flex; gap: 25px; flex-wrap: wrap; }
.mini-stat b { display: block; font-size: 20px; letter-spacing: -.03em; font-family: var(--font-display); font-weight: 400; }
.mini-stat span { display: block; margin-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #77858f; font-weight: 800; }

.hero-art { height: 620px; position: relative; display: grid; place-items: center; }
.hero-glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 255, 0, .2), rgba(77, 220, 255, .08) 42%, transparent 68%);
  filter: blur(7px);
  animation: pulse 4.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); opacity: .72; } }
.hero-ring { position: absolute; width: 450px; height: 450px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%; animation: spin 18s linear infinite; }
.hero-ring::before, .hero-ring::after { content: ""; position: absolute; border-radius: 50%; background: var(--gold); }
.hero-ring::before { width: 8px; height: 8px; top: 11%; left: 16%; box-shadow: 0 0 16px var(--gold); }
.hero-ring::after { width: 5px; height: 5px; bottom: 17%; right: 10%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-glow, .hero-ring { animation: none; } }

/* mascote — recortado em circulo, vivendo dentro do hero-ring (450px), nao maior que ele */
.hero-mascot-wrap {
  position: relative; z-index: 2;
  width: min(380px, 82%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 26px 50px rgba(0, 0, 0, .55);
  will-change: transform;
  cursor: inherit; /* mantem o ponto brilhante custom do body — nao e um elemento clicavel */
  touch-action: pan-y; /* deixa o dedo "pintar" a troca no mobile sem brigar com o scroll horizontal (que nao existe aqui) */
}
.hero-mascot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* base e overlay recebem clip-paths complementares (nunca sobrepostos) — cada pixel
   pertence a exatamente uma das duas imagens, entao a base realmente some por baixo
   da revelacao em vez de so "confiar" no PNG do overlay ser 100% opaco ali. */
/* Sem transition aqui de proposito — o clip-path e atualizado a cada frame via
   rAF+lerp em race.js; somar uma transition CSS por cima fazia as duas suavizacoes
   brigarem entre si e travar. will-change so avisa o navegador pra compositar. */
.hero-mascot-base { clip-path: inset(0 0 0 0); will-change: clip-path; }
.hero-mascot-overlay { clip-path: inset(0 100% 0 0); will-change: clip-path; }

.floating-chip {
  position: absolute; z-index: 5;
  background: rgba(12, 17, 21, .82);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 13px 15px;
}
.floating-chip small { font-size: 9px; color: #7c8992; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; display: block; }
.floating-chip strong { font-size: 15px; display: block; margin-top: 5px; font-weight: 800; }
/* posicionados em % do .hero-art (nao em px fixo) para acompanhar o hero-ring
   em qualquer tamanho de tela — orbitando cantos opostos do anel. */
.chip-a { top: 10%; right: 4%; }
.chip-b { bottom: 12%; left: 4%; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(73, 232, 111, .9); margin-right: 6px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 28px; }
  .hero-art { height: 440px; order: -1; margin-bottom: 8px; }
  .hero-ring, .hero-glow { width: 340px; height: 340px; }
  .hero-mascot-wrap { width: min(280px, 70%); }
  /* copy empilhada sob o mascote centralizado — texto/badge/botoes/stats
     centralizados junto, em vez de ficarem alinhados a esquerda sob um
     circulo centralizado (o que lia como desalinhado/"bagunçado"). */
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-actions, .hero-mini { justify-content: center; }
}
@media (max-width: 768px) {
  .site-header-inner { height: 70px; }
  .brand-copy small { display: none; }
  .brand-text-nav { font-size: 24px; }
  .nav-cta { font-size: 11px; padding: 9px 12px; }
}
@media (max-width: 620px) {
  .hero { padding-top: 12px; }
  .hero-title {
    font-size: clamp(38px, 12vw, 52px);
    /* line-height apertado (.84) e feito pra 1 linha fisica por span; em telas
       estreitas um titulo mais longo quebra dentro do proprio span e as linhas
       ficavam sobrepostas — soltar aqui evita esse "esmagamento". */
    line-height: 1.04;
    margin: 16px 0 14px;
  }
  .hero-subtitle { font-size: 14px; }
  .hero-art { height: 360px; }
  .hero-ring, .hero-glow { width: 280px; height: 280px; }
  .hero-mascot-wrap { width: min(220px, 66%); }
  .floating-chip { padding: 9px 10px; }
  .floating-chip strong { font-size: 12px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-mini { gap: 16px; width: 100%; }
  .mini-stat { flex: 1 1 auto; min-width: 92px; }
}
@media (max-width: 400px) {
  .site-header-inner { height: 56px; }
  .brand-text-nav { font-size: 19px; -webkit-text-stroke-width: .6px; }
  .hero-art { height: 300px; }
  .hero-ring, .hero-glow { width: 230px; height: 230px; }
  .hero-mascot-wrap { width: min(180px, 64%); }
  .chip-a, .chip-b { position: static; margin-top: 10px; display: inline-block; }
  .prize-total-line strong { font-size: 30px; }
}

/* ============ TICKER ============ */

.ticker-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .018); overflow: hidden; }
.ticker { display: flex; width: max-content; animation: tickerScroll 26s linear infinite; padding: 12px 0; }
.ticker span { white-space: nowrap; padding: 0 26px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #a5b0b8; font-weight: 850; }
.ticker b { color: var(--gold); }
@keyframes tickerScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; } }

/* ============ SECTION SHELL ============ */

section.page-section { padding: 88px 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; flex-wrap: wrap; }
.kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--gold); font-weight: 950; margin-bottom: 10px; }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 5vw, 64px); line-height: .92; text-transform: uppercase; letter-spacing: -.015em; margin: 0;
}
.section-head p { max-width: 460px; color: #8997a2; line-height: 1.6; font-size: 14px; margin: 0; }
@media (max-width: 980px) {
  .section-head { align-items: flex-start; flex-direction: column; }
  section.page-section { padding: 60px 0; }
}
@media (max-width: 620px) {
  section.page-section { padding: 44px 0; }
  .section-head { margin-bottom: 24px; gap: 12px; }
  .section-title { font-size: clamp(30px, 9vw, 42px); }
}

/* ============ OVERVIEW STAT CARDS ============ */

.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card {
  min-height: 160px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; right: -40px; top: -40px;
  background: radial-gradient(circle, rgba(255, 203, 53, .16), transparent 70%);
}
.stat-card small { display: block; color: #73818b; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; font-weight: 900; }
.stat-card strong { display: block; font-size: 28px; letter-spacing: -.04em; margin: 18px 0 8px; font-family: var(--font-display); font-weight: 400; }
.stat-card p { margin: 0; color: #a3adb5; font-size: 12px; line-height: 1.4; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; color: #7ff594; font-size: 18px; font-weight: 900; }

@media (max-width: 980px) { .overview-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .overview-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { min-height: auto; padding: 18px; }
  .stat-card strong { margin: 12px 0 6px; font-size: 24px; }
}

/* ============ PRIZE CARDS ============ */

.prize-band { margin-top: 18px; display: grid; gap: 14px; }
.prize-band.is-dual { grid-template-columns: 1fr 1fr; }
.prize-band.is-single { grid-template-columns: 1fr; max-width: 560px; }
.prize-card {
  padding: 26px; border-radius: var(--radius-md); border: 1px solid rgba(255, 203, 53, .16);
  background: linear-gradient(135deg, rgba(255, 201, 45, .11), rgba(255, 122, 0, .035) 42%, rgba(255, 255, 255, .018));
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  position: relative; overflow: hidden;
}
.prize-card.cat-gerente { border-color: rgba(77, 220, 255, .18); background: linear-gradient(135deg, rgba(77, 220, 255, .1), rgba(77, 220, 255, .03) 42%, rgba(255, 255, 255, .018)); }
.prize-card::before {
  content: ""; position: absolute; inset: -50% auto auto -10%; width: 40%; height: 200%; transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  animation: shine 5.8s ease-in-out infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-240%) rotate(20deg); } 100% { transform: translateX(560%) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .prize-card::before { animation: none; display: none; } }
.prize-icon { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: #14130e; border: 1px solid rgba(255, 207, 70, .15); flex-shrink: 0; color: var(--gold); }
.prize-card.cat-gerente .prize-icon { color: var(--cyan); border-color: rgba(77, 220, 255, .18); }
.prize-copy { flex: 1; }
.prize-copy small { font-size: 10px; color: #9aa5ad; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.prize-copy h3 { font-size: 18px; margin: 5px 0 0; font-weight: 800; }
.prize-value { font-size: 26px; font-weight: 1000; color: #ffe05e; letter-spacing: -.04em; font-family: var(--font-display); }
.prize-card.cat-gerente .prize-value { color: #b6f1ff; }
.prize-total-line { text-align: center; margin: 30px 0 0; }
.prize-total-line small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.prize-total-line strong { font-family: var(--font-display); font-size: clamp(34px, 6vw, 54px); }

@media (max-width: 980px) { .prize-band.is-dual { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .prize-card { flex-wrap: wrap; align-items: flex-start; padding: 20px; }
  .prize-value { width: 100%; padding-left: 70px; font-size: 22px; }
}

/* ============ COUNTDOWN (inline, in hero status row) ============ */

.status-row { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 26px; }
.countdown { display: flex; gap: 8px; flex-wrap: wrap; }
.cd-unit { min-width: 64px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); text-align: center; }
.cd-value { font-family: var(--font-display); font-size: 22px; display: block; color: var(--gold); letter-spacing: -.03em; }
.cd-value.is-ticking { animation: flip .3s ease; }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: .3; } 100% { transform: rotateX(0); opacity: 1; } }
.cd-label { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: #77858e; font-weight: 900; display: block; margin-top: 2px; }
.status-pill.ended { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 800; font-size: 12px; }
.status-pill.ended svg { width: 14px; height: 14px; }

/* ============ LEADERBOARDS (glass boards, replaces the old podium) ============ */

.leaderboards { display: grid; gap: 18px; }
.leaderboards.is-dual { grid-template-columns: 1fr 1fr; }
.leaderboards.is-single { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
.board { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(13, 18, 23, .76); box-shadow: 0 28px 90px rgba(0, 0, 0, .24); overflow: hidden; backdrop-filter: blur(10px); }
.board-head { padding: 24px 24px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 12px; }
.board-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.board-title h3, .board-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(255, 203, 53, .15), rgba(255, 130, 0, .06)); border: 1px solid rgba(255, 203, 53, .13); color: var(--gold); flex-shrink: 0; }
.board.cat-gerente .board-icon { background: linear-gradient(145deg, rgba(77, 220, 255, .15), rgba(77, 220, 255, .05)); border-color: rgba(77, 220, 255, .18); color: var(--cyan); }
.board-title h3 { font-size: 18px; margin: 0; font-weight: 800; }
.board-title span { display: block; color: #71808a; font-size: 10px; margin-top: 3px; }
.board-update { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: #6f7e88; font-weight: 900; white-space: nowrap; }

.rank-list { padding: 10px; }
.rank-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 13px 12px; border-radius: 17px; transition: .25s; border: 1px solid transparent; position: relative;
}
.rank-row:hover { background: rgba(255, 255, 255, .035); border-color: var(--line-strong); }
.rank-row.is-leader { background: linear-gradient(90deg, rgba(255, 206, 58, .1), rgba(255, 255, 255, .01)); border-color: rgba(255, 206, 58, .12); }
.board.cat-gerente .rank-row.is-leader { background: linear-gradient(90deg, rgba(77, 220, 255, .1), rgba(255, 255, 255, .01)); border-color: rgba(77, 220, 255, .16); }
.rank-position { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #151d23; color: #8997a1; font-size: 12px; font-weight: 950; font-family: var(--font-display); }
.rank-row.is-leader .rank-position { background: linear-gradient(145deg, #ffe55f, #ff9300); color: #16120a; box-shadow: 0 8px 24px rgba(255, 153, 0, .18); }
.board.cat-gerente .rank-row.is-leader .rank-position { background: linear-gradient(145deg, #baf3ff, #4ddcff); }
.rank-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rank-avatar { width: 39px; height: 39px; border-radius: 50%; background: linear-gradient(145deg, #1d2a32, #11181d); border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 12px; font-weight: 1000; color: #b7c2c9; flex-shrink: 0; }
.rank-person b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.rank-person small { display: block; font-size: 10px; color: #687781; margin-top: 3px; }
.rank-amount { text-align: right; position: relative; }
.coin-glint {
  position: absolute; top: 50%; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, #fff4b6, var(--gold) 70%, transparent);
  pointer-events: none;
  animation: glint .7s ease-out forwards;
  z-index: 5;
}
@keyframes glint {
  0% { opacity: 1; transform: translateY(-50%) scale(.4); }
  100% { opacity: 0; transform: translateY(-50%) scale(1.6) translateX(6px); }
}
.rank-amount b { display: block; font-size: 14px; color: #f6f7f8; font-variant-numeric: tabular-nums; }
.rank-progress { grid-column: 2 / 4; height: 3px; background: #182027; border-radius: 999px; overflow: hidden; margin-top: -7px; }
.rank-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--lime)); box-shadow: 0 0 12px rgba(255, 203, 53, .25); transform: scaleX(var(--w, 0)); transform-origin: left center; transition: transform 1.6s var(--ease-track); }
.board.cat-gerente .rank-progress span { background: linear-gradient(90deg, #1f6e82, var(--cyan), #d6faff); }
.board-footnote { padding: 0 22px 20px; color: #62717b; font-size: 10px; }

/* overtake: row slides to its new position with a luminous trail */
.rank-row.is-overtaking { z-index: 6; box-shadow: 0 0 0 1px rgba(255, 203, 53, .5), 0 0 26px 6px rgba(255, 203, 53, .35); }
.board.cat-gerente .rank-row.is-overtaking { box-shadow: 0 0 0 1px rgba(77, 220, 255, .5), 0 0 26px 6px rgba(77, 220, 255, .35); }
@media (prefers-reduced-motion: reduce) { .rank-row.is-overtaking { box-shadow: none; } }

.participantes-mais { padding: 4px 22px 18px; color: var(--muted); font-size: 12px; font-weight: 700; }

@media (max-width: 980px) { .leaderboards.is-dual { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .board-head { padding: 18px; } .rank-row { grid-template-columns: 32px 1fr auto; padding-inline: 8px; } .rank-amount b { font-size: 12px; } }

/* ============ RACE PANEL (checkpoint line + lanes with runner markers) ============ */

.race-panel { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)); padding: 26px; overflow: hidden; }
.lane { display: grid; grid-template-columns: 145px 1fr; gap: 15px; align-items: center; margin: 15px 0; }
.lane-label { font-size: 12px; color: #b3bdc4; font-weight: 850; display: flex; align-items: center; gap: 6px; }
.lane-label svg { width: 14px; height: 14px; color: var(--gold); }
.board.cat-gerente ~ .lane-label svg, .lane[data-lane="gerente"] .lane-label svg { color: var(--cyan); }
.track {
  height: 40px; border-radius: 15px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 12.5%), #0a0f13;
  border: 1px solid rgba(255, 255, 255, .05);
  position: relative; overflow: visible;
}
.lane-marker {
  position: absolute; top: 50%; left: var(--x, 0%); transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px;
  background: #151d23; border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-size: 11px; color: #8997a1;
  transition: left 1.4s var(--ease-track);
  z-index: 1;
}
.lane-marker.is-leader {
  z-index: 2; width: 28px; height: 28px;
  background: linear-gradient(145deg, #ffe45d, #ff9100); color: #16120a;
  box-shadow: 0 0 22px rgba(255, 184, 0, .45);
}
.lane[data-lane="gerente"] .lane-marker.is-leader { background: linear-gradient(145deg, #baf3ff, #4ddcff); box-shadow: 0 0 22px rgba(77, 220, 255, .45); }

@media (max-width: 980px) { .lane { grid-template-columns: 110px 1fr; } }
@media (max-width: 620px) { .lane { grid-template-columns: 1fr; gap: 7px; } .track { height: 32px; } .race-panel { padding: 18px; } }

/* ============ CASH BURST ============ */

.cash-burst-note { position: absolute; width: 30px; pointer-events: none; z-index: 500; opacity: 0; animation: cashBurst 1.2s var(--ease-track) forwards; }
.cash-burst-note svg { width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
@keyframes cashBurst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(.3); }
  65% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1); }
}
.winner-banner { display: flex; align-items: center; gap: 8px; margin: 14px 22px 0; padding: 12px 16px; border-radius: 14px; background: rgba(255, 203, 53, .08); border: 1px solid rgba(255, 203, 53, .2); color: var(--gold); font-weight: 800; font-size: 13px; }
.board.cat-gerente .winner-banner { background: rgba(77, 220, 255, .08); border-color: rgba(77, 220, 255, .22); color: var(--cyan); }
.winner-banner svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============ RULES + CAMPAIGN CARD ============ */

.info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: stretch; }
.rules-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .018); padding: 30px; }
.rule { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule-num { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #121a20; color: #ffe061; border: 1px solid rgba(255, 203, 53, .12); font-size: 11px; font-weight: 1000; font-family: var(--font-display); }
.rule p { margin: 0; color: #c6cdd2; font-size: 14px; line-height: 1.55; font-weight: 500; }

.campaign-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 460px; border: 1px solid var(--line); background: #0b1014; }
.campaign-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: .62; filter: saturate(.95) contrast(1.03); }
.campaign-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 10, .1), rgba(5, 8, 10, .26) 35%, #070a0d 90%); }
.campaign-copy { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; }
.campaign-copy .big { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: .92; text-transform: uppercase; }
.campaign-copy p { color: #a5afb6; font-size: 12px; line-height: 1.55; max-width: 420px; margin-top: 10px; }

@media (max-width: 980px) { .info-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .rules-panel { padding: 20px; }
  .rule { grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; }
  .campaign-card { min-height: 340px; }
  .campaign-copy { left: 18px; right: 18px; bottom: 18px; }
  .campaign-copy .big { font-size: 30px; }
}

/* ============ TIMELINE + COUNTDOWN BOX ============ */

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.time-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; background: #0d1318; }
.time-card.active { border-color: rgba(73, 232, 111, .2); box-shadow: inset 0 0 0 1px rgba(73, 232, 111, .04); }
.time-card small { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: #74828c; font-weight: 900; }
.time-card b { display: block; font-size: 20px; margin: 14px 0 7px; font-family: var(--font-display); font-weight: 400; }
.time-card p { margin: 0; color: #8997a1; font-size: 12px; line-height: 1.5; }

.countdown-box { margin-top: 14px; border-radius: 30px; border: 1px solid rgba(255, 203, 53, .14); background: radial-gradient(circle at 50% -20%, rgba(255, 203, 53, .12), transparent 50%), #0b1014; padding: 44px 28px; text-align: center; }
.countdown-box h3 { font-family: var(--font-display); font-weight: 400; font-size: 38px; margin: 0 0 26px; text-transform: uppercase; }
.count-grid { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.count-box { min-width: 100px; padding: 18px 15px; border-radius: 18px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-strong); }
.count-box b { font-size: 28px; display: block; color: #ffe15c; letter-spacing: -.04em; font-family: var(--font-display); font-weight: 400; }
.count-box span { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: #77858e; font-weight: 900; }

@media (max-width: 980px) { .timeline { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .time-card { padding: 16px; }
  .countdown-box { padding: 26px 16px; border-radius: 20px; }
  .countdown-box h3 { font-size: 26px; margin-bottom: 18px; }
  .count-box { min-width: 70px; padding: 12px 10px; }
  .count-box b { font-size: 22px; }
}

/* ============ FOOTER ============ */

.site-footer { padding: 26px 0; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-legal { color: #5f6c75; font-size: 10px; line-height: 1.6; max-width: 460px; text-align: right; }

@media (max-width: 620px) { .footer-grid { align-items: flex-start; flex-direction: column; } .footer-legal { text-align: left; } }

/* ============ SCROLL REVEAL ============ */

.reveal { opacity: 0; transform: translateY(24px); transition: .8s var(--ease-track); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
