/* ==========================================================================
   SUPER DESAFIO · nat.  — Design System
   Paleta derivada do deck da campanha: fundo escuro + raios dourados,
   dourado F2C21B, roxo 5C388C, verde 107648, vinho 822B31, creme FBF0DF.
   ========================================================================== */

:root {
  --bg: #0E0C0A;
  --bg-2: #171310;
  --bg-3: #221C16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --cream: #FBF0DF;
  --cream-2: #EFE6D6;
  --text: #F7F0E6;
  --muted: #B5A897;
  --ink: #2B2B2B;
  --ink-muted: #6B6B6B;

  --gold: #F2C21B;
  --gold-2: #E0B03C;
  --gold-3: #FFE08A;
  --gold-deep: #B8860B;
  --purple: #5C388C;
  --purple-2: #8A5BD6;
  --purple-3: #B894F5;
  --green: #107648;
  --green-2: #3FB36A;
  --wine: #822B31;
  --wine-2: #B8424A;
  --red: #E5484D;

  --fam-empanados: #F0862B;
  --fam-grelhados: #3FB36A;
  --fam-desfiados: #F2C21B;

  --niv-aprendiz: #9A9A9A;
  --niv-praticante: #4DA3FF;
  --niv-profissional: #3FD37A;
  --niv-mestre: #F2C21B;

  --font: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Bebas Neue', 'Montserrat', sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 10px 40px rgba(242, 194, 27, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  --nav-h: 64px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout ---------- */
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream .muted { color: var(--ink-muted); }
.section--tight { padding: clamp(32px, 5vw, 64px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section--cream .eyebrow { color: var(--purple); }

.h-display, .h-1, .h-2, .brand__name, .tri__q, .tri__bonus, .tri__total .v, .banner-800 .v, .sim__total, .stair__title, .fam-card__name, .gauge__val, .desafio__tons {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .03em;
}
.h-display {
  font-size: clamp(64px, 12vw, 132px); line-height: 0.84;
  text-transform: uppercase;
}
.h-1 { font-size: clamp(40px, 6vw, 72px); line-height: .9; text-transform: uppercase; }
.h-2 { font-size: clamp(32px, 4.2vw, 52px); line-height: .92; text-transform: uppercase; }
.h-3 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; }
.lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); max-width: 62ch; }
.section--cream .lead { color: #4b4640; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.text-gold { color: var(--gold); }
.grad-gold {
  background: linear-gradient(100deg, #FFE08A 0%, #F2C21B 40%, #E0932C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title .grad-gold, .tri__total .v {
  background: linear-gradient(100deg, #8a6400 0%, #FFE08A 32%, #fff6d0 48%, #F2C21B 64%, #E0932C 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6.5s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.stat__v, .podium__pct, .rank-row__pct, .gauge__val, .desafio__tons, .kpi__v, .sim__total, .tri__bonus, .tri__total .v {
  font-variant-numeric: tabular-nums;
}
.grad-purple {
  background: linear-gradient(100deg, #B894F5, #8A5BD6 55%, #5C388C);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--gold { background: linear-gradient(135deg, #FFE08A, #F2C21B 45%, #E0932C); color: #2B1D05; box-shadow: var(--shadow-gold); }
.btn--gold:hover { box-shadow: 0 16px 50px rgba(242, 194, 27, .4); }
.btn--ghost { background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--sm { padding: 10px 16px; font-size: 13px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  padding: 9px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: all .25s var(--ease); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: #2B1D05; box-shadow: 0 6px 20px rgba(242, 194, 27, .3); }
.chip[data-fam="empanados"].is-active { background: var(--fam-empanados); border-color: var(--fam-empanados); color: #fff; box-shadow: 0 6px 20px rgba(240, 134, 43, .35); }
.chip[data-fam="grelhados"].is-active { background: var(--fam-grelhados); border-color: var(--fam-grelhados); color: #fff; box-shadow: 0 6px 20px rgba(63, 179, 106, .35); }
.chip.is-locked { opacity: .55; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card--glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(242,194,27,.6), transparent 40%, transparent 60%, rgba(138,91,214,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.section--cream .card { background: #fff; border-color: rgba(43, 43, 43, .08); box-shadow: 0 10px 30px rgba(43, 43, 43, .06); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(14, 12, 10, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.brand img.brand__vibra { height: 30px; }
.brand__name { font-size: 22px; line-height: .85; text-transform: uppercase; }
.brand__sub { font-size: 10px; letter-spacing: .2em; color: var(--gold); font-weight: 800; text-transform: uppercase; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); transition: all .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); }
.header__status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.btn-sair {
  margin-left: 4px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); background: var(--surface);
}
.header__here { display: none; }
.btn-sair:hover { color: var(--text); border-color: var(--line-strong); }
body.is-entering::before {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255,224,138,.55), rgba(14,12,10,0) 62%);
  animation: enterFlash 1.5s var(--ease) forwards;
}
@keyframes enterFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 0 rgba(63,179,106,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,179,106,.6);} 70% { box-shadow: 0 0 0 10px rgba(63,179,106,0);} 100% { box-shadow: 0 0 0 0 rgba(63,179,106,0);} }
@media (max-width: 900px) {
  .nav { display: none; }
  .header { height: auto; }
  .header .container { flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; padding-bottom: 8px; }
  .brand { min-width: 0; }
  .brand img { height: 32px; }
  .brand img.brand__vibra { height: 24px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 20px; white-space: nowrap; }
  .header__status { flex: 1 1 100%; justify-content: flex-end; font-size: 11px; gap: 6px; }
  .header__here { display: inline; margin-right: auto; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .header__status span.txt { white-space: nowrap; }
  .btn-sair { padding: 3px 8px; font-size: 9px; flex: none; }
}

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; height: var(--nav-h);
  display: none; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px;
  background: rgba(23, 19, 16, .85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--muted); transition: all .2s; }
.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav a.is-active { color: #2B1D05; background: var(--gold); }
@media (max-width: 900px) { .bottom-nav { display: grid; } body { padding-bottom: calc(var(--nav-h) + 28px); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); min-height: min(calc(100svh - var(--header-h)), 760px); display: flex; align-items: center; }
.hero__rays {
  position: absolute; inset: -40%; pointer-events: none; opacity: .5;
  background:
    radial-gradient(closest-side at 30% 45%, rgba(242,194,27,.35), transparent 70%),
    repeating-conic-gradient(from 0deg at 30% 45%, rgba(242,194,27,.08) 0deg 4deg, transparent 4deg 14deg);
  animation: spin 120s linear infinite; transform-origin: 30% 45%;
  -webkit-mask: radial-gradient(closest-side at 30% 45%, #000 20%, transparent 75%); mask: radial-gradient(closest-side at 30% 45%, #000 20%, transparent 75%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__glow-purple { position: absolute; right: -10%; top: 10%; width: 50vw; height: 50vw; max-width: 600px; max-height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(92,56,140,.5), transparent 65%); filter: blur(20px); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; }
.hero__title { margin-top: 18px; }
.hero__title .line { display: block; }
.hero__sub { margin-top: 22px; font-size: clamp(17px, 2vw, 22px); font-weight: 600; max-width: 34ch; }
.hero__sub strong { color: var(--gold); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__meta { display: flex; gap: 22px 32px; margin-top: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__v { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.stat__l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; max-width: 150px; }

.hero::after, .tri::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
.hero__grid, .tri__inner { position: relative; z-index: 2; }
.hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 62% 42%, transparent 36%, rgba(0,0,0,.5) 100%); }
.hero-orbit {
  --r: 118px;
  position: relative; width: min(320px, 78vw); height: min(320px, 78vw);
  perspective: 800px;
}
.hero-orbit__ring { position: absolute; inset: 0; transform-style: preserve-3d; animation: heroDrift 32s linear infinite; }
.hero-orbit__pack {
  position: absolute; left: 50%; top: 50%; width: 31%; height: auto;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,.5));
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 90deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -90deg));
}
.hero-orbit__leao { position: absolute; left: 50%; top: 50%; width: 46%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 16px 30px rgba(242,194,27,.4)); }
@keyframes heroDrift { from { transform: rotateX(14deg) rotateZ(0deg); } to { transform: rotateX(14deg) rotateZ(360deg); } }
.hero__badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.hero__badge {
  z-index: 3; padding: 12px 16px; border-radius: 16px; font-weight: 800; font-size: 13px;
  background: rgba(23,19,16,.8); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
}
.hero__badge .big { font-size: 20px; color: var(--gold); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__visual { order: -1; }
  .hero-orbit { --r: 96px; width: min(260px, 72vw); height: min(260px, 72vw); }
}
.tri { position: relative; }
.tri .hero__vignette { z-index: 0; }

/* ---------- desafio (toneladas) ---------- */
.desafio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.desafio__card { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.desafio__card img { position: absolute; right: -18px; bottom: -22px; width: 150px; opacity: .95; transform: rotate(-8deg); transition: transform .5s var(--ease); pointer-events: none; }
.desafio__card:hover img { transform: rotate(-2deg) scale(1.06); }
.desafio__pct { font-family: var(--display); font-size: clamp(56px, 6vw, 84px); font-weight: 400; letter-spacing: .02em; line-height: .82; font-variant-numeric: tabular-nums; }
.desafio__tons { font-size: clamp(28px, 3vw, 40px); font-weight: 900; letter-spacing: -0.05em; line-height: .9; }
.desafio__tons small { font-size: 18px; font-weight: 700; letter-spacing: 0; margin-left: 4px; color: var(--muted); }
.desafio__fam { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.desafio__bar { margin-top: auto; max-width: 62%; }
@media (max-width: 900px) { .desafio { grid-template-columns: 1fr; } .desafio__card { min-height: 210px; } .desafio__card img { width: 130px; } }

/* ---------- progress bars ---------- */
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; }
.section--cream .bar { background: rgba(43,43,43,.08); }
.bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); transition: width 1.2s var(--ease); position: relative; }
.bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); animation: shine 2.6s infinite; }
@keyframes shine { to { transform: translateX(100%); } }
.bar--lg { height: 14px; }
.bar--sm { height: 5px; }
.bar__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; opacity: .7; }
.bar-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 6px; }

/* ---------- gauge do time ---------- */
.gate { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: stretch; }
.gate__gauge { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; }
.gauge { position: relative; width: 240px; height: 140px; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge__val { position: absolute; left: 0; right: 0; bottom: 0; font-size: 46px; font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.gauge__val small { font-size: 18px; font-weight: 800; }
.gate__status { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.gate__status.ok { background: rgba(63,179,106,.15); color: var(--green-2); border: 1px solid rgba(63,179,106,.35); }
.gate__status.warn { background: rgba(229,72,77,.15); color: #ff8a8e; border: 1px solid rgba(229,72,77,.35); }
.gate__rules { display: grid; gap: 14px; }
.rule { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 18px 20px; }
.rule__tag { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; }
.rule--sim .rule__tag { background: rgba(63,179,106,.18); color: var(--green-2); }
.rule--nao .rule__tag { background: rgba(229,72,77,.15); color: #ff8a8e; }
.gate__fam-card { padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; }
.gate__fam { display: grid; gap: 22px; margin-top: 4px; }
.gate-fam__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gate-fam__name { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gate-fam__pct { font-family: var(--display); font-size: clamp(44px, 4.6vw, 64px); font-weight: 400; letter-spacing: .02em; line-height: .85; font-variant-numeric: tabular-nums; }
.gate-fam__meta { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) { .gate { grid-template-columns: 1fr; } }

/* ---------- ranking ---------- */
.rank-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rank-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
.rank-controls__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rank-controls__row > .chips, .toolbar > * { min-width: 0; }
.rank-controls__row > .chips { flex: 1; }
.rank-controls__label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); min-width: 52px; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-top: 28px; }
.podium__item { text-align: center; padding: 26px 18px 22px; position: relative; overflow: visible; width: 100%; }
.podium__item--1 { padding-top: 42px; padding-bottom: 28px; background: linear-gradient(180deg, rgba(242,194,27,.16), rgba(255,255,255,.03)); border-color: transparent; box-shadow: 0 30px 80px rgba(242,194,27,.12); }
.podium__item--1::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(110deg, transparent 20%, #fff6d0 45%, #F2C21B 55%, transparent 80%);
  background-size: 220% 100%;
  animation: shimmer 4.5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.podium__item--2 { border-color: rgba(200,200,200,.3); }
.podium__item--3 { border-color: rgba(205,127,50,.35); }
.podium__pos { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; background: var(--bg-3); border: 1px solid var(--line-strong); }
.podium__item--1 .podium__pos { background: var(--gold); color: #2B1D05; border-color: var(--gold); box-shadow: 0 6px 24px rgba(242,194,27,.5); }
.podium__item--2 .podium__pos { background: #d8d8d8; color: #222; }
.podium__item--3 .podium__pos { background: #cd7f32; color: #2a1606; }
.podium__crown { font-size: 26px; line-height: 1; margin-bottom: 6px; filter: drop-shadow(0 6px 14px rgba(242,194,27,.6)); }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; margin: 0 auto; background: linear-gradient(135deg, var(--purple-2), var(--purple)); color: #fff; box-shadow: 0 8px 24px rgba(92,56,140,.4); }
.avatar--sm { width: 40px; height: 40px; font-size: 13px; margin: 0; }
.avatar--lg { width: 72px; height: 72px; font-size: 24px; }
.podium__item--1 .avatar { width: 72px; height: 72px; font-size: 24px; background: linear-gradient(135deg, var(--gold-3), var(--gold) 50%, #E0932C); color: #2B1D05; box-shadow: 0 10px 30px rgba(242,194,27,.5); }
.podium__name { margin-top: 12px; font-weight: 800; font-size: 15px; line-height: 1.2; }
.podium__team { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.podium__pct { margin-top: 12px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.podium__item--1 .podium__pct { color: var(--gold); }
.podium__tags { display: flex; justify-content: center; gap: 4px; margin-top: 10px; }
.podium__delta { margin-top: 8px; }
@media (max-width: 640px) {
  .podium { grid-template-columns: 1fr 1fr; gap: 10px; }
  .podium__item--1 { grid-column: 1 / -1; order: -1; }
  .podium__item { padding: 24px 12px 18px; }
}

.rank-list { margin-top: 14px; display: grid; gap: 8px; }
.rank-row {
  display: grid; grid-template-columns: 44px 44px 1fr 150px 90px; gap: 14px; align-items: center;
  padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  transition: all .25s var(--ease); cursor: pointer; text-align: left; width: 100%;
}
.rank-row:hover { background: var(--surface-2); border-color: var(--line-strong); transform: translateX(4px); }
.rank-row.is-top { border-color: rgba(242,194,27,.3); }
.rank-row.is-me { border-color: var(--purple-2); background: rgba(92,56,140,.18); }
.rank-row__pos { font-weight: 900; font-size: 18px; letter-spacing: -0.04em; color: var(--muted); }
.rank-row.is-top .rank-row__pos { color: var(--gold); }
.rank-row__name { font-weight: 800; font-size: 14px; line-height: 1.2; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rank-row__name small { font-weight: 600; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row__bar { display: flex; flex-direction: column; gap: 6px; }
.rank-row__tags { display: flex; gap: 4px; }
.rank-row__pct { text-align: right; font-weight: 900; font-size: 20px; letter-spacing: -0.04em; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; gap: 4px; }
.rank-row__proj { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.tag[data-niv="none"], .pill-niv[data-niv="none"] { color: var(--muted); border: 1px dashed var(--line-strong); background: transparent; }
.live.is-stale { background: var(--gold); box-shadow: none; animation: none; }
.delta { font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 999px; }
.delta.up { color: #4ee28a; background: rgba(63,211,122,.14); }
.delta.down { color: #ff8a8e; background: rgba(229,72,77,.14); }
.delta.same { color: var(--muted); background: rgba(255,255,255,.06); }
.delta.new { color: var(--gold); background: rgba(242,194,27,.14); }
.rank-sep { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 10px 0 4px; }
.rank-sep::before, .rank-sep::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(242,194,27,.5), transparent); }
.rank-row__tags--m { display: none; margin-top: 4px; }
.drawer .rank-row { grid-template-columns: 30px 36px 1fr 74px; gap: 10px; padding: 10px 12px; }
.drawer .rank-row__bar { display: none; }
.drawer .rank-row__tags--m { display: flex; }
.drawer .rank-row__pos { font-size: 15px; }
.drawer .rank-row__pct { font-size: 17px; }
@media (max-width: 720px) {
  .rank-row { grid-template-columns: 30px 36px 1fr 74px; gap: 10px; padding: 10px 12px; }
  .rank-row__bar { display: none; }
  .rank-row__tags--m { display: flex; }
  .rank-row__pos { font-size: 15px; }
  .rank-row__pct { font-size: 17px; }
}

.tag {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 10px; font-weight: 900; letter-spacing: 0;
  background: rgba(255,255,255,.08); color: var(--muted); border: 1px solid transparent;
}
.tag[data-niv="aprendiz"] { color: var(--niv-aprendiz); border-color: rgba(154,154,154,.3); }
.tag[data-niv="praticante"] { color: var(--niv-praticante); background: rgba(77,163,255,.14); }
.tag[data-niv="profissional"] { color: var(--niv-profissional); background: rgba(63,211,122,.14); }
.tag[data-niv="mestre"] { color: #2B1D05; background: var(--gold); box-shadow: 0 0 12px rgba(242,194,27,.5); }

.pill-niv {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.07);
}
.pill-niv::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-niv[data-niv="aprendiz"] { color: var(--niv-aprendiz); }
.pill-niv[data-niv="praticante"] { color: var(--niv-praticante); background: rgba(77,163,255,.14); }
.pill-niv[data-niv="profissional"] { color: var(--niv-profissional); background: rgba(63,211,122,.14); }
.pill-niv[data-niv="mestre"] { color: #2B1D05; background: var(--gold); }

.locked { padding: 56px 24px; text-align: center; border-style: dashed; }
.locked__icon { font-size: 40px; margin-bottom: 10px; }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.hl { padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.hl__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: rgba(242,194,27,.12); flex-shrink: 0; }
.hl__l { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hl__v { font-weight: 800; font-size: 14px; line-height: 1.2; margin-top: 2px; }
.hl__v b { color: var(--gold); }
@media (max-width: 900px) { .highlights { grid-template-columns: 1fr; } }

/* ---------- escada de níveis ---------- */
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; margin-top: 40px; }
.stair { position: relative; padding: 24px 20px 22px; border-radius: 20px; background: #fff; border: 1px solid rgba(43,43,43,.08); box-shadow: 0 14px 40px rgba(43,43,43,.08); transition: transform .4s var(--ease); overflow: hidden; }
.stair:hover { transform: translateY(-6px); }
.stair::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.stair--1 { --c: var(--niv-aprendiz); min-height: 180px; }
.stair--2 { --c: var(--niv-praticante); min-height: 220px; }
.stair--3 { --c: var(--niv-profissional); min-height: 260px; }
.stair--4 { --c: var(--gold); min-height: 300px; background: linear-gradient(180deg, #fff8e0, #fff); border-color: rgba(242,194,27,.5); box-shadow: 0 20px 60px rgba(242,194,27,.25); }
.stair__n { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.stair__title { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; margin-top: 6px; color: var(--ink); }
.stair__range { margin-top: 10px; font-weight: 800; font-size: 15px; color: var(--ink); }
.stair__desc { margin-top: 6px; font-size: 13px; color: var(--ink-muted); }
.stair__icon { position: absolute; right: 14px; top: 16px; font-size: 26px; opacity: .9; }
.stair__fig { position: absolute; right: 6px; bottom: 0; height: 78%; width: auto; max-width: 46%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); pointer-events: none; transition: transform .5s var(--ease); }
.stair:hover .stair__fig { transform: translateY(-4px) scale(1.04); }
.stair--4 .stair__fig { height: 86%; }
.stair__body { position: relative; z-index: 1; max-width: 60%; }
@media (max-width: 760px) { .stairs { grid-template-columns: 1fr 1fr; } .stair { min-height: 150px !important; } .stair__fig { height: 70%; } }
.tri__leao { width: clamp(140px, 22vw, 240px); height: auto; filter: drop-shadow(0 20px 50px rgba(242,194,27,.35)); animation: floaty 8s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.tri .hero__vignette { z-index: 0; }

/* ---------- mecânica (prêmios por família) ---------- */
.fam-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.fam-card { background: #fff; border-radius: 24px; padding: 0 0 22px; overflow: hidden; border: 1px solid rgba(43,43,43,.08); box-shadow: 0 14px 40px rgba(43,43,43,.08); color: var(--ink); }
.fam-card__head { padding: 22px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.fam-card__name { font-size: 24px; font-weight: 900; letter-spacing: -0.03em; }
.fam-card__name small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fc); font-weight: 800; margin-bottom: 4px; }
.fam-card__img { width: 110px; margin: -6px -10px -30px 0; filter: drop-shadow(0 10px 20px rgba(0,0,0,.2)); transition: transform .4s var(--ease); }
.fam-card:hover .fam-card__img { transform: scale(1.06) rotate(-3deg); }
.fam-card__levels { margin-top: 26px; padding: 0 22px; display: grid; gap: 6px; }
.fam-card__level { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: #faf7f1; font-weight: 700; font-size: 13px; }
.fam-card__level b { font-size: 16px; letter-spacing: -0.02em; }
.fam-card__level--mestre { background: linear-gradient(90deg, #fff3c4, #ffe8a0); }
.fam-card__level--mestre b { color: #8a6400; }
.fam-card__level--aprendiz { color: var(--ink-muted); }
@media (max-width: 900px) { .fam-cards { grid-template-columns: 1fr; } }
.banner-800 { margin-top: 24px; padding: 24px 28px; border-radius: 22px; background: var(--ink); color: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.banner-800 .v { font-size: clamp(36px, 5vw, 56px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--gold); }

/* ---------- trimestre ---------- */
.tri { position: relative; overflow: hidden; }
.tri__rays { position: absolute; inset: -30%; pointer-events: none; opacity: .55; background: radial-gradient(closest-side at 50% 50%, rgba(242,194,27,.3), transparent 70%), repeating-conic-gradient(from 0deg at 50% 50%, rgba(242,194,27,.07) 0deg 3deg, transparent 3deg 12deg); animation: spin 160s linear infinite; -webkit-mask: radial-gradient(closest-side at 50% 50%, #000 15%, transparent 72%); mask: radial-gradient(closest-side at 50% 50%, #000 15%, transparent 72%); }
.tri__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tri__q { font-size: clamp(28px, 4vw, 48px); font-weight: 400; max-width: 18ch; text-transform: uppercase; position: relative; z-index: 1; }
.tri__bonus { font-size: clamp(72px, 12vw, 150px); font-weight: 400; letter-spacing: .02em; line-height: .85; }
.tri__bonus small { font-size: .32em; vertical-align: top; margin-right: 6px; letter-spacing: -0.02em; }
.tri__note { max-width: 44ch; color: var(--muted); font-weight: 600; }
.tri__total { margin-top: 36px; padding: 26px 36px; border-radius: 28px; border: 1px solid rgba(242,194,27,.4); background: rgba(242,194,27,.07); backdrop-filter: blur(10px); }
.tri__total .l { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 800; color: var(--gold); }
.tri__total .v { font-size: clamp(52px, 8vw, 96px); font-weight: 400; letter-spacing: .02em; line-height: .9; margin: 6px 0; }
.tri__total .s { color: var(--muted); font-weight: 600; font-size: 14px; }
.tri__math { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.tri__math .box { padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 13px; }
.tri__math .box small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tri__math .op { font-size: 22px; font-weight: 900; color: var(--gold); }

/* ---------- simulador ---------- */
.sim { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-top: 36px; }
.sim__panel { background: #fff; border-radius: 24px; padding: 26px; border: 1px solid rgba(43,43,43,.08); box-shadow: 0 14px 40px rgba(43,43,43,.08); display: grid; gap: 22px; }
.sim__row { display: grid; gap: 10px; }
.sim__row-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.sim__row-head .fam { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.sim__row-head .fam i { width: 12px; height: 12px; border-radius: 4px; background: var(--fc); display: inline-block; }
.sim__row-head .val { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; }
.sim__row-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.sim__row-foot b { font-size: 15px; }
input[type="range"] { width: 100%; height: 30px; -webkit-appearance: none; appearance: none; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--niv-aprendiz) 0 45%, var(--niv-praticante) 45% 50%, var(--niv-profissional) 50% 60%, var(--gold) 60% 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--fc, var(--ink)); margin-top: -9px; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: grab; }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--niv-aprendiz) 0 45%, var(--niv-praticante) 45% 50%, var(--niv-profissional) 50% 60%, var(--gold) 60% 100%); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--fc, var(--ink)); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.sim__result { background: var(--ink); color: var(--cream); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.sim__result::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(242,194,27,.35), transparent 70%); }
.sim__total { font-size: clamp(48px, 7vw, 80px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--gold); }
.sim__lines { display: grid; gap: 8px; }
.sim__line { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 700; }
.sim__line b { font-size: 16px; }
.sim__toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(242,194,27,.1); border: 1px solid rgba(242,194,27,.3); font-size: 13px; font-weight: 700; cursor: pointer; }
.sim__toggle input { width: 18px; height: 18px; accent-color: var(--gold); }
.sim__cap { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .sim { grid-template-columns: 1fr; } }

/* ---------- timeline pagamentos ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--purple-2), var(--gold)); opacity: .6; }
.tl { padding: 24px; text-align: left; position: relative; background: var(--bg-2); }
.tl__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 18px; background: var(--bg-3); border: 2px solid var(--gold); color: var(--gold); position: relative; z-index: 1; margin-bottom: 16px; }
.tl__from { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.tl__from b { color: var(--text); }
.tl__to { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; margin-top: 6px; }
.tl__to span { color: var(--gold); }
.tl__bonus { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .14em; background: var(--gold); color: #2B1D05; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } .timeline::before { display: none; } }

/* ---------- trade ---------- */
.trade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.trade .card { padding: 26px 24px; }
.trade__icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(92,56,140,.25); color: var(--purple-3); font-size: 22px; margin-bottom: 16px; }
.trade h3 { font-size: 18px; margin-bottom: 8px; }
.trade p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .trade { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--muted); font-size: 12px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer img { height: 32px; }

/* ---------- drawer / detalhe ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 100; right: 0; top: 0; bottom: 0; width: min(520px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { transform: translateX(0); }
@media (max-width: 640px) {
  .drawer { top: auto; left: 0; right: 0; width: 100%; max-height: 92svh; border-radius: 26px 26px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); transform: translateY(100%); }
  .drawer.is-open { transform: translateY(0); }
  .drawer::before { content: ""; position: sticky; top: 8px; display: block; width: 44px; height: 5px; border-radius: 999px; background: var(--line-strong); margin: 8px auto 0; z-index: 2; }
}
.drawer__inner { padding: 24px 22px 40px; display: grid; gap: 18px; }
.drawer__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; z-index: 3; }
.drawer__head { display: flex; align-items: center; gap: 16px; }
.drawer__name { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.drawer__sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.drawer__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.kpi__v { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.kpi__l { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-top: 6px; }
.fam-det { padding: 16px 16px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--fc); display: grid; gap: 10px; }
.fam-det__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fam-det__name { font-weight: 900; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.fam-det__name img { width: 34px; height: 34px; object-fit: contain; }
.fam-det__pct { font-size: 26px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.fam-det__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; flex-wrap: wrap; gap: 6px; }
.fam-det__next { font-size: 12px; font-weight: 700; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.fam-det__next b { color: var(--gold); }
.fam-det__next--lucro { background: rgba(242,194,27,.08); border: 1px solid rgba(242,194,27,.22); }
.fam-det__next--lucro span { color: var(--gold); letter-spacing: .02em; }
.spark { width: 100%; height: 70px; }
.spark path.line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark path.area { fill: url(#sparkFill); }
.spark line.ref { stroke: rgba(255,255,255,.25); stroke-dasharray: 3 4; }
.drawer__section-title { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- ranking page ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 24px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-top: 22px; }
.tab { padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--muted); transition: all .25s var(--ease); white-space: nowrap; }
.tab.is-active { background: var(--text); color: var(--bg); }
.search { position: relative; }
.search input {
  width: 100%; padding: 14px 16px 14px 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 600; font-size: 14px; outline: none; transition: border .2s;
}
.search input:focus { border-color: var(--gold); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin-top: 18px; }
@media (max-width: 760px) { .toolbar { grid-template-columns: 1fr; } .tabs { width: 100%; overflow-x: auto; } .tab { flex: 1; text-align: center; padding: 10px 12px; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- reveal / animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 12px; min-height: 60px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 40px); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 13px; opacity: 0; transition: all .35s var(--ease); z-index: 120; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 901px) { .toast { bottom: 30px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
