/* =========================================================
   QUARENTENA | BR  -  estilo Killing Floor 2
   Paleta: void (quase preto frio), aco (gunmetal), osso
   (branco sujo), sangue (vermelho), brasa (ambar de fogo),
   perigo (amarelo hazard). Assinatura: molduras de canto de
   HUD (mira) + listras de perigo.
   ========================================================= */
:root {
  --void:    #08090b;
  --steel:   #121419;
  --steel-2: #191c23;
  --steel-3: #23272f;
  --line:    #2b3038;
  --bone:    #e9e4d6;
  --bone-dim:#a9a597;
  --muted:   #6c727c;
  --blood:   #c8102e;
  --blood-2: #ff2740;
  --ember:   #ff6a1a;
  --hazard:  #e0a80f;
  --steam:   #66c0f4;
  --epic:    #b98cff;

  /* fallbacks amplos no fim de cada pilha cobrem nomes em russo, chines,
     japones, coreano, arabe etc. (as fontes de exibicao nao tem esses
     glifos; sem o fallback, esses nomes virariam quadradinhos). */
  --mono: "Share Tech Mono", ui-monospace, monospace, "Noto Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  --disp: "Oswald", system-ui, "Noto Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  --body: "Inter", system-ui, "Noto Sans", "Microsoft YaHei", "PingFang SC", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #14171d 0%, var(--void) 60%),
    var(--void);
  color: var(--bone);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.ta-r { text-align: right; }

/* --- detalhes finos: selecao de texto e barra de rolagem no tema --- */
::selection { background: var(--blood); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #23272f #0a0b0e; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0b0e; }
::-webkit-scrollbar-thumb { background: #23272f; border: 2px solid #0a0b0e; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a3f49; }

/* --- textura: scanlines + grao muito sutil (sensacao de HUD) --- */
.scanlines {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 3px);
  mix-blend-mode: multiply; opacity: .5;
}

/* --- listras de perigo (assinatura) --- */
.hazard {
  height: 7px;
  background: repeating-linear-gradient(
    -45deg, var(--hazard) 0 14px, #0b0b0b 14px 28px);
  opacity: .9;
}
.hazard--top { position: sticky; top: 0; z-index: 40; }
.hazard--bottom { margin-top: 0; }

/* ============ MASTHEAD ============ */
.masthead {
  position: sticky; top: 7px; z-index: 39;
  background: linear-gradient(#0d0f13ee, #0d0f13cc);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.masthead__in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  height: 38px; width: auto; display: block;
  filter: drop-shadow(0 2px 4px #000a);
}
@media (max-width: 640px) { .brand__logo { height: 30px; } }
@media (max-width: 380px) { .brand__logo { height: 26px; } }
.brand__mark {
  width: 22px; height: 22px; transform: rotate(45deg);
  background: var(--blood);
  box-shadow: 0 0 0 2px #000, 0 0 14px #c8102e88;
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px; background: var(--void);
}
.brand__txt { font-family: var(--disp); letter-spacing: .12em; font-size: 20px; line-height: 1; }
.brand__txt b { font-weight: 700; }
.brand__txt i { color: var(--blood-2); font-style: normal; font-weight: 700; margin-left: 6px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: .12em;
  font-size: 14px; color: var(--bone-dim); transition: color .2s;
}
.nav a:hover { color: var(--bone); }
.pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--blood-2);
  letter-spacing: .1em;
}

/* link "Suporte" no menu (destaque verde whats) */
.nav__sup {
  color: #25d366 !important; border: 1px solid #1e7e42; padding: 6px 14px;
  border-radius: 2px; transition: background .2s, color .2s;
}
.nav__sup:hover { background: #25d366; color: #06210f !important; }

/* header ganha profundidade depois de rolar */
body.scrolled .masthead {
  box-shadow: 0 8px 30px #000a; border-bottom-color: #3a2226;
}

/* ---- botao flutuante de Telegram (pill, estilo big-tech) ---- */
.tg {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px 12px 15px; border-radius: 999px;
  background: linear-gradient(180deg, #2ca5e0, #1c93cf);
  color: #fff; font-family: var(--disp); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
  box-shadow: 0 10px 28px #0007, 0 0 0 1px #ffffff1a inset;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, filter .22s;
}
.tg svg { position: relative; filter: drop-shadow(0 1px 1px #0003); }
.tg__label { line-height: 1; }
.tg:hover { transform: translateY(-2px); box-shadow: 0 16px 34px #0009, 0 0 0 1px #ffffff33 inset; filter: brightness(1.06); }
.tg:active { transform: translateY(0); }
@media (max-width: 720px) {
  .tg { right: 16px; bottom: 16px; padding: 12px; }
  .tg__label { display: none; }  /* vira so o icone no mobile */
}
.pulse i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--blood-2); box-shadow: 0 0 10px var(--blood-2);
  animation: blink 1.6s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ============ MOLDURA DE CANTO (assinatura HUD) ============ */
[data-frame] { position: relative; }
[data-frame]::before, [data-frame]::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 2px solid var(--blood); opacity: .8; transition: all .25s ease;
}
[data-frame]::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
[data-frame]::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
[data-frame]:hover::before, [data-frame]:hover::after { width: 24px; height: 24px; opacity: 1; }

/* ============ HERO ============ */
.hero { padding: 66px 0 40px; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--ember); margin: 0 0 20px;
}
.readout {
  display: inline-block; padding: 18px 30px; background: #0c0e12aa;
  border: 1px solid var(--line);
}
.readout__big { display: flex; align-items: baseline; gap: 12px; }
.readout__big .num {
  font-family: var(--disp); font-weight: 700; font-size: clamp(64px, 13vw, 132px);
  line-height: .85; color: var(--bone);
  text-shadow: 0 0 24px #c8102e55;
  font-variant-numeric: tabular-nums;
}
.readout__cap { font-family: var(--mono); font-size: clamp(20px, 4vw, 34px); color: var(--muted); }
.readout__label {
  margin: 8px 0 0; font-family: var(--disp); text-transform: uppercase;
  letter-spacing: .3em; font-size: 14px; color: var(--bone-dim);
}
.hero__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chip {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 16px; background: var(--steel); border: 1px solid var(--line);
}
.chip__k { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.chip__v { font-family: var(--mono); font-size: 20px; color: var(--bone); }
.chip--modes { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
.chip--modes .m { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--bone-dim); }
.chip--modes .m b { color: var(--bone); }
.chip--modes .m i { width: 8px; height: 8px; transform: rotate(45deg); display: inline-block; }

/* ============ SECOES ============ */
.section { padding: 56px 0; }
.section--rank { background: linear-gradient(#0a0b0e, #0d0f13); border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.title {
  font-family: var(--disp); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: clamp(26px, 4vw, 38px); margin: 0;
  color: var(--bone); display: flex; align-items: center; gap: 14px;
}
.title::before {
  content: ""; width: 34px; height: 4px; background: var(--blood);
  box-shadow: 0 0 12px #c8102e88;
}
.title__count { font-family: var(--mono); font-size: 16px; color: var(--ember); }
.section__sub { color: var(--muted); font-size: 14px; margin: 4px 0 26px; }
.section__sub--rank { margin-top: -6px; }

/* ============ GRID DE SERVIDORES ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.srv {
  background: linear-gradient(180deg, var(--steel-2), var(--steel));
  border: 1px solid var(--line); padding: 18px 18px 16px;
  transition: transform .25s ease, border-color .25s ease;
}
.srv:hover { transform: translateY(-3px); border-color: #3a3f49; }
.srv.is-offline { opacity: .5; filter: grayscale(.5); }
.srv.is-offline [data-frame]::before, .srv.is-offline::before { border-color: var(--muted); }
.srv__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 14px; }
.srv__state { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.srv.is-online .srv__state { background: var(--blood-2); box-shadow: 0 0 10px var(--blood-2); animation: blink 2s infinite; }
.srv__name { font-family: var(--disp); font-weight: 600; font-size: 18px; margin: 0; flex: 1; letter-spacing: .02em; }
.tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 9px; border: 1px solid; white-space: nowrap;
}
.tag--blood  { color: var(--blood-2); border-color: #6a1420; background: #2a0c10; }
.tag--ember  { color: var(--ember);   border-color: #6a3410; background: #291505; }
.tag--hazard { color: var(--hazard);  border-color: #5f4a0a; background: #201a05; }
.tag--bone   { color: var(--bone);    border-color: #4a4740; background: #1c1b17; }

.srv__meta { display: flex; gap: 26px; margin: 0 0 14px; }
.srv__meta dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 2px; }
.srv__meta dd { margin: 0; font-size: 14px; color: var(--bone); }
.srv__bar { position: relative; height: 22px; background: #0a0b0e; border: 1px solid var(--line); display: flex; align-items: center; }
.srv__barfill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #7a0c1c, var(--blood)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.srv__count { position: relative; margin-left: auto; padding-right: 8px; font-size: 12px; color: var(--bone); z-index: 1; }
.srv__players { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 6px; }
.srv__players li { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.srv__players a { color: var(--steam); }
.srv__players a:hover { text-decoration: underline; }
.srv__perk { font-family: var(--mono); font-size: 11px; color: var(--bone-dim); }

/* --- destaque do servidor COM jogadores: puxa o olho pra onde tem acao --- */
.srv--live {
  border-color: #6a1420;
  box-shadow: 0 0 0 1px rgba(106, 20, 32, .5), 0 14px 34px -16px rgba(200, 16, 46, .55);
}
.srv--live:hover { border-color: #8a1a28; }
.srv--live .srv__barfill { box-shadow: 0 0 16px rgba(200, 16, 46, .5); }

/* badge "AO VIVO" no topo do card populado */
.srv__live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blood-2); white-space: nowrap;
  padding: 3px 8px; border: 1px solid #6a1420; background: #2a0c10;
}
.srv__live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blood-2);
  box-shadow: 0 0 8px var(--blood-2); animation: blink 1.6s infinite;
}

/* --- estado do servidor online e vazio: convida em vez de parecer morto --- */
.srv__empty {
  margin-top: 14px; padding: 12px 0 2px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); text-align: center; letter-spacing: .01em;
}
.srv__empty::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px;
  transform: rotate(45deg); border: 1px solid var(--muted); vertical-align: middle;
}

/* --- dificuldade colorida por nivel (gradiente de perigo: calmo -> vermelho) --- */
.srv__meta .diff { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; }
.srv__meta .diff::before {
  content: ""; width: 7px; height: 7px; flex: none; transform: rotate(45deg);
  background: currentColor; box-shadow: 0 0 7px currentColor;
}
.srv__meta .diff--normal { color: #8ea0a8; }   /* calmo (cinza-frio) */
.srv__meta .diff--hard   { color: var(--hazard); }
.srv__meta .diff--sui    { color: var(--ember); }
.srv__meta .diff--hell   { color: var(--blood-2); }

/* --- barra "quente" (enchendo) e "lotada" (pulsa pra criar urgencia) --- */
.srv__bar--hot .srv__barfill { background: linear-gradient(90deg, #7a0c1c, var(--blood) 70%, var(--ember)); }
.srv__bar--full .srv__barfill { background: linear-gradient(90deg, var(--blood), var(--blood-2)); animation: fullPulse 1.9s ease-in-out infinite; }
.srv__bar--full .srv__count { color: var(--blood-2); font-weight: 600; }
@keyframes fullPulse { 0%,100% { box-shadow: 0 0 10px rgba(200,16,46,.45); } 50% { box-shadow: 0 0 22px rgba(255,39,64,.85); } }

/* --- marcador losango no perk (mesmo motivo HUD dos modos) --- */
.srv__perk:not(:empty)::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px;
  transform: rotate(45deg); background: var(--ember); box-shadow: 0 0 5px #ff6a1a88; vertical-align: middle;
}

/* ============ RANKING ============ */
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--steel); }
.seg__btn {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: .1em; font-size: 13px;
  background: transparent; color: var(--bone-dim); border: 0; padding: 8px 18px; cursor: pointer;
  transition: all .2s;
}
.seg__btn.is-on { background: var(--blood); color: #fff; }
.rank { border: 1px solid var(--line); background: #0b0c0f; }
.rank__head, .rank__row {
  display: grid; grid-template-columns: 56px 1fr 120px 120px; align-items: center;
  gap: 10px; padding: 12px 18px;
}
.rank__head { background: var(--steel-2); font-family: var(--disp); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--bone-dim); border-bottom: 1px solid var(--line); }
.rank__row { border-bottom: 1px solid #16181d; transition: background .18s; }
.rank__row:hover { background: #14161b; }
.rank__pos { font-size: 15px; color: var(--muted); }
.rank__row--top .rank__pos { color: var(--hazard); font-size: 17px; }
.rank__row--top:nth-child(1) .rank__pos { color: var(--hazard); }
.rank__name a:hover { color: var(--steam); text-decoration: underline; }
.rank__plat { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--bone-dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--steam { background: var(--steam); box-shadow: 0 0 8px var(--steam); }
.dot--epic  { background: var(--epic);  box-shadow: 0 0 8px var(--epic); }
.rank__empty { padding: 40px 18px; text-align: center; color: var(--muted); }

/* ============ DOACAO / PIX (modal) ============ */
/* botao discreto abaixo do ranking */

/* ============ ACABAMENTO PROFISSIONAL ============ */
/* brilho ambiente atras do numerao do hero */
.readout::after {
  content: ""; position: absolute; left: 50%; top: 40%; width: 60%; height: 60%;
  transform: translate(-50%,-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, #c8102e33, transparent 70%);
  filter: blur(20px);
}
.readout { position: relative; z-index: 1; }

/* leve reflexo diagonal nos cards de servidor no hover */
.srv { overflow: hidden; }
.srv::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, #ffffff0e, transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.srv.is-online:hover::after { left: 120%; }

/* barra de lotacao com leve pulso quando cheia */
.srv__barfill { box-shadow: 0 0 14px #c8102e55; }

/* numeros do hero com corte tipografico mais tecnico */
.readout__big .num { letter-spacing: -.02em; }

/* divisor de perigo fininho entre secoes grandes */
.section + .section { position: relative; }
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* foco acessivel visivel (teclado) */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ember); outline-offset: 2px;
}

/* ============ FOOTER ============ */
.foot { border-top: 1px solid var(--line); background: #0a0b0e; }
.foot__grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center;
  padding: 28px 24px;
}
.foot__brand { display: flex; flex-direction: column; gap: 3px; }
.foot__logo { font-family: var(--disp); font-weight: 700; letter-spacing: .14em; font-size: 20px; color: var(--bone); }
.foot__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.foot__links { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.foot__head { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.foot__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--disp); font-weight: 600; font-size: 13px; letter-spacing: .04em;
  color: var(--bone); transition: transform .18s, border-color .18s, background .18s, color .18s;
}
.foot__link:hover { transform: translateY(-1px); }
.foot__link--discord:hover { background: #5865F2; border-color: #5865F2; color: #fff; }
.foot__link--steam:hover { background: #1b2838; border-color: #66c0f4; color: #fff; }
.foot__made { display: flex; flex-direction: column; gap: 5px; text-align: right; align-items: flex-end; }
.foot__made b { color: var(--blood-2); font-weight: 700; }
.foot__made > span:first-child { font-size: 13px; color: var(--bone-dim); }
.foot__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.foot__meta #refreshState { color: var(--blood-2); }
.foot__live #refreshState { color: var(--blood-2); }

/* ============ RESPONSIVO ============ */
@media (max-width: 720px) {
  .hide-s { display: none; }
  .nav a { display: none; }
  .srv__meta { gap: 18px; }

  /* --- RANKING no mobile: reflow que cabe na tela ---
     3 colunas (posicao | nome | kills). A plataforma vira um
     subtitulo embaixo do nome, em vez de brigar por espaco. */
  .rank__head {
    grid-template-columns: 40px 1fr auto;
    gap: 8px; padding: 11px 14px; font-size: 11px;
  }
  .rank__head span:nth-child(3) { display: none; } /* rotulo "Plat." */
  .rank__row {
    grid-template-columns: 40px 1fr auto;
    grid-template-areas: "pos name kills";
    gap: 2px 10px; padding: 11px 14px; align-items: start;
  }
  .rank__pos  { grid-area: pos; align-self: center; }
  .rank__name { grid-area: name; align-self: center; font-size: 14px; word-break: break-word; }
  .rank__plat {
    grid-area: name; align-self: end; margin-top: 20px; font-size: 11px;
  }
  .ta-r { grid-area: kills; align-self: center; }
  .rank__search { max-width: none; }
}

/* respeita quem pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* =========================================================
   ANIMACOES - 100% CSS (sem biblioteca)
   ========================================================= */
/* entrada suave dos blocos do hero no carregamento */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes barWipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hazard--top { transform-origin: left; animation: barWipe .6s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow    { animation: riseIn .6s ease both .05s; }
.readout    { animation: riseIn .7s cubic-bezier(.2,.8,.2,1) both .12s; }
.hero__chips .chip { animation: riseIn .6s ease both; }
.hero__chips .chip:nth-child(1) { animation-delay: .24s; }
.hero__chips .chip:nth-child(2) { animation-delay: .30s; }
.hero__chips .chip:nth-child(3) { animation-delay: .36s; }

/* reveal ao rolar: parte escondida, entra quando ganha .is-in (via JS nativo) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

/* micro-interacoes mais "premium" */
.srv, .rank__row, .chip, .tag, .seg__btn, .btn-copy { transition: all .2s cubic-bezier(.2,.8,.2,1); }
.title__count, .num { font-feature-settings: "tnum" 1; }

/* rodape: novo estilo do meta (data de inicio do rank) */
.foot__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.foot__meta #refreshState { color: var(--blood-2); }

/* respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .hazard--top, .eyebrow, .readout, .hero__chips .chip { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============ BUSCA NO RANKING ============ */
.rank__search {
  position: relative; display: flex; align-items: center;
  max-width: 380px; margin: 0 0 14px;
}
.rank__search svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.rank__search input {
  width: 100%; background: #0c0e12; border: 1px solid var(--line);
  color: var(--bone); font-family: var(--sans); font-size: 14px;
  padding: 11px 38px 11px 40px; border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.rank__search input::placeholder { color: var(--muted); }
.rank__search input:focus {
  outline: none; border-color: var(--blood);
  box-shadow: 0 0 0 3px #c8102e22;
}
.rank__search-x {
  position: absolute; right: 8px; background: transparent; border: 0;
  color: var(--bone-dim); font-size: 22px; line-height: 1; cursor: pointer;
  padding: 2px 8px; transition: color .2s;
}
.rank__search-x:hover { color: var(--blood-2); }

/* linha destacada quando e resultado de busca */
.rank__row--hit { background: #14171d; box-shadow: inset 3px 0 0 var(--blood); }

.rank__noresult { padding: 22px 18px; text-align: center; color: var(--muted); font-size: 14px; }

/* ============ RODAPE DE TOTAIS DO RANKING ============ */
.rank__foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, #0c0e1288);
  font-family: var(--mono); font-size: 13px; color: var(--bone-dim);
}
.rank__foot-label {
  font-family: var(--disp); text-transform: uppercase; letter-spacing: .12em;
  font-size: 12px; color: var(--muted);
}
.rank__foot-sep { flex: 1; height: 1px; background: var(--line); min-width: 12px; }
.rank__foot-item b { color: var(--ember); font-size: 15px; }
.rank__foot-item + .rank__foot-item { margin-left: 6px; }

/* ============ BOTAO STEAM (suporte) ============ */
/* usa a base do .tg, so troca a cor pro azul da Steam */
.tg--steam {
  background: linear-gradient(180deg, #1b2838, #2a475e);
  box-shadow: 0 10px 28px #0007, 0 0 0 1px #66c0f433 inset;
}
.tg--steam:hover { filter: brightness(1.12); box-shadow: 0 16px 34px #0009, 0 0 0 1px #66c0f455 inset; }

/* ============ SELETOR DE IDIOMA (nav) ============ */
.langsel {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  margin-left: 4px;
}
.langsel__opt {
  font-family: var(--disp); font-weight: 600; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 4px 9px; border-radius: 999px;
  line-height: 1; transition: color .18s, background .18s;
}
.langsel__opt:hover { color: var(--bone); }
.langsel__opt.is-on { color: #fff; background: var(--blood); }

/* ============ COMANDO DE CONEXAO (open IP:porta) ============ */
.srv__connect {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin-top: 12px; padding: 9px 12px;
  background: #0c0e12; border: 1px solid var(--line); border-radius: 8px;
  color: var(--bone-dim); cursor: pointer; text-align: left;
  transition: border-color .18s, background .18s, color .18s;
}
.srv__connect code {
  font-size: 12.5px; color: var(--bone); letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.srv__connect svg { flex: 0 0 auto; color: var(--muted); transition: color .18s; }
.srv__connect { position: relative; }
.srv__connect:hover { border-color: var(--ember); background: #101318; }
.srv__connect:hover svg { color: var(--ember); }
.srv__connect.is-copied { border-color: var(--ember); color: var(--ember); }
.srv__connect.is-copied code { visibility: hidden; }
.srv__connect.is-copied svg { color: var(--ember); }
.srv__connect.is-copied::after {
  content: attr(data-copied);
  position: absolute; left: 12px; right: 34px; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; color: var(--ember);
}

/* ============ BOTAO VER MAIS ============ */
.rank__more {
  display: block; width: 100%; margin-top: 4px; padding: 13px;
  background: #0f1116; border: 1px solid var(--line); border-top: none;
  color: var(--bone-dim); font-family: var(--disp); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; font-size: 13px;
  cursor: pointer; transition: background .18s, color .18s;
}
.rank__more:hover { background: #141821; color: var(--ember); }
.rank__more[hidden] { display: none; }

/* ============ DISCORD no nav ============ */
.nav__discord {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: #5865F2; color: #fff !important;
  font-weight: 600; transition: filter .18s, transform .18s;
}
.nav__discord:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* rodape responsivo */
@media (max-width: 720px) {
  .foot__grid { grid-template-columns: 1fr; text-align: center; gap: 20px; justify-items: center; }
  .foot__made { text-align: center; align-items: center; }
}

/* botao flutuante Discord (suporte) + autor no rodape */
.tg--discord {
  background: linear-gradient(180deg, #5865F2, #4752c4);
  box-shadow: 0 10px 28px #0007, 0 0 0 1px #ffffff1a inset;
}
.tg--discord:hover { filter: brightness(1.1); box-shadow: 0 16px 34px #0009, 0 0 0 1px #ffffff33 inset; }
.foot__author { color: var(--blood-2); font-weight: 700; }
.foot__author:hover { color: var(--ember); }

/* ============ PODIO CINEMATOGRAFICO (top 3) ============ */
.podium {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px;
  align-items: end; margin: 10px 0 30px; padding-top: 40px;
  perspective: 1000px;
}
/* brilho ambiente atras do podio */
.podium__glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 70%; height: 100%; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, #d4af3722, transparent 70%);
  filter: blur(8px);
}
.podium__slot {
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  border-radius: 14px 14px 0 0;
  padding: 16px 12px 0; will-change: transform, opacity;
}
/* icone no topo (coroa/estrela) */
.podium__topicon { height: 34px; margin-bottom: 6px; display: flex; align-items: flex-end; justify-content: center; }
.ic-crown { color: #f5d033; filter: drop-shadow(0 0 8px #f5d03388); }
.ic-star  { color: #cfd3da; filter: drop-shadow(0 0 5px #cfd3da55); }
.podium__slot--3 .ic-star { color: #e0a06a; filter: drop-shadow(0 0 5px #e0a06a55); }

/* medalhao com numero + chama */
.podium__avatar {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #1c1f27, #0b0d11);
  border: 2px solid var(--line); margin-bottom: 10px;
}
.podium__rankn { font-family: var(--disp); font-weight: 700; font-size: 26px; color: var(--bone); position: relative; z-index: 2; }
.podium__flames {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  width: 30px; height: 34px; opacity: 0; color: var(--blood-2);
  filter: drop-shadow(0 0 6px var(--blood)); pointer-events: none;
}
.podium__name {
  font-family: var(--disp); font-weight: 600; font-size: 16px; color: var(--bone);
  margin-bottom: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.podium__name a { color: inherit; }
.podium__name a:hover { color: var(--ember); }
.podium__kills { line-height: 1; margin-bottom: 3px; }
.podium__killn { font-family: var(--disp); font-weight: 700; font-size: 24px; color: var(--ember); }
.podium__killu { font-size: 11px; color: var(--muted); }
.podium__plat { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px; }

/* pedestal (base) com altura por posicao */
.podium__base {
  width: 100%; border-radius: 8px 8px 0 0; position: relative;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 12px;
  background: linear-gradient(180deg, #171a21, #0d0f14);
  border: 1px solid var(--line); border-bottom: none;
  box-shadow: inset 0 1px 0 #ffffff0a;
}
.podium__basenum { font-family: var(--disp); font-weight: 700; font-size: 20px; color: var(--muted); opacity: .5; }

/* alturas dos pedestais: ouro alto, prata medio, bronze baixo */
.podium__slot--1 .podium__base { height: 92px; background: linear-gradient(180deg, #2a2312, #12100a); border-color: #d4af3740; }
.podium__slot--2 .podium__base { height: 66px; border-color: #b8bcc430; }
.podium__slot--3 .podium__base { height: 48px; border-color: #b8733330; }
.podium__slot--1 .podium__basenum { color: #f5d033; opacity: .85; }

/* destaque do campeao */
.podium__slot--1 .podium__avatar {
  width: 74px; height: 74px; border-color: #d4af37;
  box-shadow: 0 0 22px #d4af3744, inset 0 0 12px #d4af3722;
}
.podium__slot--1 .podium__rankn { color: #f5d033; font-size: 30px; }
.podium__slot--1 .podium__name { font-size: 18px; color: #fff; }
.podium__slot--1 .podium__killn { font-size: 28px; }
.podium__slot--2 .podium__avatar { border-color: #b8bcc4aa; }
.podium__slot--3 .podium__avatar { border-color: #b87333aa; }

@media (max-width: 600px) {
  .podium { gap: 6px; padding-top: 30px; margin-bottom: 22px; }
  .podium__slot { padding: 10px 5px 0; }
  .podium__avatar { width: 48px; height: 48px; }
  .podium__slot--1 .podium__avatar { width: 56px; height: 56px; }
  .podium__rankn { font-size: 20px; }
  .podium__slot--1 .podium__rankn { font-size: 24px; }
  .podium__name { font-size: 12.5px; }
  .podium__slot--1 .podium__name { font-size: 14px; }
  .podium__killn { font-size: 17px; }
  .podium__slot--1 .podium__killn { font-size: 20px; }
  .podium__topicon { height: 26px; }
  .podium__slot--1 .podium__base { height: 64px; }
  .podium__slot--2 .podium__base { height: 46px; }
  .podium__slot--3 .podium__base { height: 34px; }
}

/* ============================================================
   DOACAO (PIX via Vizzion Pay)
   ============================================================ */
.nav__donate { color: var(--ember); }
.nav__donate:hover { color: var(--hazard); }

.donate { max-width: 720px; }
.donate .section__sub { margin-bottom: 22px; }

.donate__proof { display: flex; gap: 14px; margin-bottom: 20px; }
.donate__stat { flex: 1; border: 1px solid var(--line); background: var(--steel); padding: 14px 16px; text-align: center; }
.donate__stat b { display: block; font-family: var(--disp); font-size: 26px; font-weight: 700; color: var(--bone); line-height: 1.1; }
.donate__stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.donate__box { border: 1px solid var(--line); background: var(--steel); padding: 22px; }

.donate__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.donate__preset { flex: 1 1 auto; min-width: 68px; padding: 12px 10px; border: 1px solid var(--line); background: var(--void); color: var(--bone-dim); font-family: var(--mono); font-size: 15px; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.donate__preset:hover { border-color: #3a2126; color: var(--bone); }
.donate__preset.is-on { border-color: var(--blood); color: #fff; background: #1a0c10; box-shadow: inset 0 0 0 1px var(--blood); }
.donate__custom { display: flex; align-items: center; gap: 6px; flex: 1 1 120px; border: 1px solid var(--line); background: var(--void); padding: 0 12px; }
.donate__custom span { font-family: var(--mono); color: var(--muted); }
.donate__custom input { width: 100%; background: transparent; border: 0; color: var(--bone); font-family: var(--mono); font-size: 16px; padding: 12px 0; outline: none; }
.donate__min { font-family: var(--mono); font-size: 11px; color: var(--muted); margin: 8px 0 16px; letter-spacing: .04em; }

.donate__fields { display: grid; gap: 10px; margin-bottom: 12px; }
.donate__fields input { background: var(--void); border: 1px solid var(--line); color: var(--bone); padding: 12px 14px; font-family: var(--body); font-size: 14px; outline: none; transition: border-color .12s; }
.donate__fields input:focus { border-color: var(--blood); }
.donate__fields input::placeholder { color: #5a616b; }

.donate__anon { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bone-dim); cursor: pointer; margin-bottom: 16px; user-select: none; }
.donate__anon input { accent-color: var(--blood); width: 16px; height: 16px; }

.donate__submit { width: 100%; padding: 15px; border: 0; background: var(--blood); color: #fff; font-family: var(--mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .14s; position: relative; }
.donate__submit:hover { background: var(--blood-2); }
.donate__submit:disabled { opacity: .6; cursor: default; }
.donate__submit.is-loading { color: transparent; }
.donate__submit.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: donspin .7s linear infinite; }
@keyframes donspin { to { transform: rotate(360deg); } }

.donate__err { color: var(--blood-2); font-size: 13px; margin-top: 10px; text-align: center; }
.donate__secure { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; letter-spacing: .02em; }

/* painel de pagamento */
.donate__pay { text-align: center; }
.donate__back { background: none; border: 0; color: var(--muted); font-family: var(--mono); font-size: 13px; cursor: pointer; float: left; padding: 0; }
.donate__back:hover { color: var(--bone); }
.donate__pay-title { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); margin: 6px 0 16px; }
.donate__qr { display: inline-block; padding: 12px; background: #fff; line-height: 0; }
.donate__qr img, .donate__qr canvas { display: block !important; width: 208px !important; height: 208px !important; max-width: none !important; aspect-ratio: 1 / 1; }
.donate__copy { display: block; width: 100%; margin: 16px 0 10px; padding: 12px; border: 1px solid var(--ember); background: var(--void); color: var(--ember); font-family: var(--mono); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.donate__copy:hover { background: #14100a; }
.donate__copy.is-copied { border-color: var(--hazard); color: var(--hazard); }
.donate__code { width: 100%; resize: none; background: var(--void); border: 1px solid var(--line); color: var(--bone-dim); font-family: var(--mono); font-size: 11px; padding: 10px; word-break: break-all; }
.donate__hint { font-size: 12.5px; color: var(--muted); margin: 12px 0; }
.donate__wait { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--hazard); letter-spacing: .04em; }
.donate__spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--hazard); border-radius: 50%; animation: donspin .8s linear infinite; flex: none; }

/* sucesso */
.donate__done { text-align: center; padding: 22px 0; }
.donate__check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #0f2a16; color: #47d16a; border: 1px solid #1f5c30; display: grid; place-items: center; font-size: 32px; }
.donate__done h3 { font-family: var(--disp); font-weight: 700; font-size: 22px; color: var(--bone); margin-bottom: 6px; }
.donate__done p { color: var(--muted); font-size: 14px; }

/* apoiadores recentes */
.donate__recent { margin-top: 26px; }
.donate__recent-head { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.donate__recent ul { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.donate__recent li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); background: var(--void); font-size: 13px; }
.donate__sup-name { color: var(--bone); font-weight: 500; white-space: nowrap; }
.donate__sup-msg { color: var(--muted); flex: 1; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.donate__sup-amt { margin-left: auto; font-family: var(--mono); color: var(--ember); white-space: nowrap; }

@media (max-width: 560px) {
  .donate__preset { min-width: 58px; font-size: 14px; }
  .donate__qr img, .donate__qr canvas { width: 180px !important; height: 180px !important; }
}

/* --- CTA + modal da doacao (formulario so aparece ao clicar) --- */
.donate--cta { max-width: 640px; }
.donate__cta {
  display: block; width: 100%; max-width: 340px; margin: 6px 0 10px;
  padding: 16px 20px; border: 0; background: var(--blood); color: #fff;
  font-family: var(--mono); font-size: 16px; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: background .14s, transform .1s;
  box-shadow: 0 10px 30px -12px rgba(200, 16, 46, .7);
}
.donate__cta:hover { background: var(--blood-2); }
.donate__cta:active { transform: translateY(1px); }
.donate__cta-note { font-size: 11.5px; color: var(--muted); margin-bottom: 22px; letter-spacing: .02em; }

body.donate-open { overflow: hidden; }

.donate-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.donate-modal:not([hidden]) { display: flex; }
.donate-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 5, 7, .82); }
.donate-modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 460px; margin: auto;
  background: var(--steel); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.donate-modal:not([hidden]) .donate-modal__panel { animation: donIn .18s ease; }
@keyframes donIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.donate-modal__x {
  position: absolute; top: 6px; right: 10px; z-index: 2; width: 34px; height: 34px;
  background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer;
}
.donate-modal__x:hover { color: var(--bone); }
.donate-modal__panel .donate__box { border: 0; background: transparent; padding: 24px; }
.donate__modal-title { font-family: var(--disp); font-weight: 700; font-size: 20px; color: var(--bone); margin-bottom: 16px; }

.donate__row { display: flex; gap: 10px; }
.donate__row > input { flex: 1; min-width: 0; }
@media (max-width: 440px) { .donate__row { flex-direction: column; } }