/* =====================================================================
   SOBREVIVENTES — Site oficial
   Identidade: DayZ / Chernarus Winter / sobrevivência / militar
   Paleta: preto-azulado, branco envelhecido, vermelho como destaque
   ===================================================================== */

/* ==================== TOKENS ==================== */
:root {
  --bg:            #05080d;
  --bg-2:          #070b12;
  --bg-3:          #0a101a;
  --panel:         #0c121c;
  --panel-2:       #0f1724;

  --line:          rgba(255, 255, 255, .08);
  --line-strong:   rgba(255, 255, 255, .16);

  --white:         #ece9e2;   /* branco envelhecido */
  --white-dim:     #b9b7b0;
  --muted:         #8b93a1;
  --muted-2:       #7d8696;

  --red:           #c1272d;
  --red-bright:    #e13b3f;
  --red-dark:      #8d1a1f;
  --red-glow:      rgba(193, 39, 45, .35);

  --steel:         #3d4d61;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;

  --container:    1180px;
  --header-h:     68px;
  --radius:       3px;

  --ease:         cubic-bezier(.22, .61, .36, 1);
  --shadow:       0 18px 50px rgba(0, 0, 0, .55);
}

/* ==================== RESET / BASE ==================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* textura sutil de grunge */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==================== BOTÕES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn--red:hover {
  background: var(--red-bright);
  box-shadow: 0 12px 32px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--white);
  background: rgba(255, 255, 255, .03);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .07);
}

.btn--discord {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.btn--discord:hover {
  background: var(--red-bright);
  box-shadow: 0 10px 26px var(--red-glow);
}

.btn--steam {
  border-color: var(--line-strong);
  color: var(--white-dim);
  background: rgba(255, 255, 255, .04);
}
.btn--steam:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
}

.btn--sm  { padding: 10px 16px; font-size: 12.5px; letter-spacing: .12em; }
.btn--lg  { padding: 16px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* Botão cujo link ainda não foi configurado em js/config.js */
.btn.is-pending { opacity: .75; }
.btn.is-pending:hover { opacity: 1; }

/* Aviso discreto */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 600;
  padding: 12px 22px;
  background: rgba(12, 18, 28, .97);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast[hidden] { display: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==================== HEADER ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(5, 8, 13, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5, 8, 13, .94);
  border-bottom-color: var(--line);
}

.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  /* header aberto nas pontas: marca à esquerda, ações à direita,
     menu centralizado de verdade em relação à página */
  max-width: none;
  padding-inline: clamp(18px, 3vw, 44px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  justify-self: start;
}
.brand__mark { filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .6)); }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
}
.nav__link {
  position: relative;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--white); }
.nav__link.is-pending { color: var(--muted-2); cursor: default; }
.nav__link.is-pending::after { display: none; }
.nav__link.is-pending:hover { color: var(--muted); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-self: end;
}

/* Burger */
.burger {
  display: none;
  grid-column: 3;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px 24px 26px;
  background: rgba(5, 8, 13, .98);
  border-bottom: 1px solid var(--line);
}
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav .nav__link {
  padding: 14px 4px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mobile-menu__nav .nav__link::after { left: 4px; right: auto; width: 26px; bottom: 8px; }
.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  height: clamp(600px, 84vh, 720px);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  margin-top: var(--header-h);
}

.hero__bg { position: absolute; inset: -6% -2%; z-index: -3; will-change: transform; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(5, 8, 13, .05) 0%, rgba(5, 8, 13, .42) 68%, rgba(5, 8, 13, .72) 100%),
    linear-gradient(to bottom, rgba(5, 8, 13, .62) 0%, rgba(5, 8, 13, .06) 26%, rgba(5, 8, 13, .14) 62%, rgba(5, 8, 13, .88) 100%);
}

.hero__snow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.8), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 55% 45%, rgba(255,255,255,.6), transparent);
  background-size: 420px 420px, 340px 340px, 500px 500px, 380px 380px, 460px 460px, 300px 300px;
  animation: snowDrift 26s linear infinite;
}
@keyframes snowDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: -60px 420px, 50px 340px, -40px 500px, 60px 380px, -50px 460px, 40px 300px; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero__logo-mark {
  width: clamp(160px, 18vw, 260px);
  height: auto;
  filter:
    drop-shadow(0 18px 42px rgba(0, 0, 0, .95))
    drop-shadow(0 6px 16px rgba(0, 0, 0, .85))
    drop-shadow(0 2px 4px rgba(0, 0, 0, .7));
  animation: heroIn .9s var(--ease) both;
}
.hero__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: .16em;
  text-indent: .16em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 6px 34px rgba(0, 0, 0, .85);
  animation: heroIn .9s .1s var(--ease) both;
}

.hero__slogan {
  position: relative;
  margin-top: 34px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .9);
  animation: heroIn .9s .22s var(--ease) both;
}

/* halo vermelho leve atrás do slogan */
.hero__slogan::before {
  content: "";
  position: absolute;
  inset: -26px -48px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(193, 39, 45, .42) 0%, rgba(193, 39, 45, .18) 45%, rgba(193, 39, 45, 0) 72%);
  filter: blur(16px);
}

.hero__cta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  animation: heroIn .9s .34s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 130px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}

/* ==================== SEÇÕES — BASE ==================== */
section { position: relative; z-index: 2; }

.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}
.section-head--center .kicker::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--white);
}
.section-title--lg { font-size: clamp(36px, 5.4vw, 64px); }

.section-sub {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* moldura com cantos */
.frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame__corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--red);
  z-index: 2;
}
.frame__corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame__corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ==================== RANKING ==================== */
.ranking {
  padding: 88px 0 78px;
  background:
    linear-gradient(to bottom, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}

.ranking__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: rank;
}

.rank-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 26px 16px 22px;
  background: linear-gradient(to bottom, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.rank-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--steel);
  opacity: .6;
}
.rank-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}

/* destaque do 1º lugar */
.rank-card--first {
  border-color: rgba(193, 39, 45, .55);
  background: linear-gradient(to bottom, #17101a, var(--panel));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(193, 39, 45, .18);
}
.rank-card--first::before {
  height: 4px;
  background: linear-gradient(to right, var(--red-dark), var(--red-bright), var(--red-dark));
  opacity: 1;
}
.rank-card--first:hover { border-color: var(--red-bright); }

.rank-card__pos {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--muted);
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.rank-card--first .rank-card__pos { color: #f0c267; font-size: 17px; }
.rank-card__pos .medal { font-size: 19px; line-height: 1; }

.rank-card__avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-strong);
  background: var(--bg-3);
  margin: 4px 0 6px;
}
.rank-card--first .rank-card__avatar {
  width: 74px;
  height: 74px;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(193, 39, 45, .18);
}

.rank-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}

.rank-card__kills {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.rank-card__kills strong {
  color: var(--red-bright);
  font-size: 22px;
  font-weight: 700;
  margin-right: 6px;
}
.rank-card--first .rank-card__kills strong { color: #f0c267; }

.ranking__note {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
  letter-spacing: .04em;
}

/* ==================== SOBRE ==================== */
.about {
  padding: 100px 0;
  background: var(--bg);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__media { position: relative; }
.about__media .frame { aspect-ratio: 4 / 3; }
.about__badge {
  position: absolute;
  right: -14px;
  bottom: -24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .55);
}
.about__badge-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: .04em;
}
.about__badge-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  opacity: .9;
  margin-top: 4px;
}

.about__text {
  color: var(--white-dim);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.about__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.about__traits li {
  padding: 8px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.about__traits li:hover {
  color: var(--white);
  border-left-color: var(--red-bright);
  transform: translateY(-2px);
}

/* ==================== DIFERENCIAIS ==================== */
.features {
  padding: 96px 0;
  background: linear-gradient(to bottom, var(--bg-2), var(--bg-3));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.feature-card {
  position: relative;
  padding: 32px 22px 30px;
  background: linear-gradient(to bottom, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--red-dark), var(--red-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(193, 39, 45, .4);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .5);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: var(--red-bright);
  background: rgba(193, 39, 45, .1);
  border: 1px solid rgba(193, 39, 45, .35);
  border-radius: var(--radius);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.feature-card:hover .feature-card__icon {
  background: rgba(193, 39, 45, .18);
  transform: translateY(-3px);
}

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.feature-card__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==================== MAPA ==================== */
.map {
  padding: 100px 0;
  background: var(--bg);
}
.map__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.map__text {
  color: var(--white-dim);
  font-size: 16.5px;
  line-height: 1.85;
  margin-bottom: 32px;
}
.frame--map {
  aspect-ratio: 1 / 1;
  max-height: 560px;
  margin-inline: auto;
  background: var(--bg-3);
}
.frame--map img {
  object-fit: contain;
  padding: 18px;
}

/* ==================== EVENTOS ==================== */
.events {
  padding: 96px 0;
  background: linear-gradient(to bottom, var(--bg-3), var(--bg-2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.events__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.event-card {
  position: relative;
  display: flex;
  gap: 22px;
  align-items: stretch;
  padding: 26px;
  background: linear-gradient(to bottom, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 42px rgba(0, 0, 0, .5);
}
.event-card--featured {
  border-color: rgba(193, 39, 45, .5);
  background: linear-gradient(135deg, #17101a 0%, var(--panel) 55%);
}
.event-card--featured:hover { border-color: var(--red-bright); }

.event-card__date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.event-card--featured .event-card__date {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 26px var(--red-glow);
}
.event-card__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  color: var(--white);
}
.event-card__month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-top: 4px;
}
.event-card--featured .event-card__month { color: rgba(255, 255, 255, .9); }

.event-card__body { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.event-card__status {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red-bright);
  background: rgba(193, 39, 45, .12);
  border: 1px solid rgba(193, 39, 45, .4);
  border-radius: 999px;
}
.event-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white);
}
.event-card__desc { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ==================== GALERIA ==================== */
.gallery {
  padding: 96px 0;
  background: var(--bg);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--panel);
  padding: 0;
}
.gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__item:nth-child(6) { grid-column: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: brightness(.86) saturate(.92);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 13, .85) 0%, transparent 55%);
  opacity: .7;
  transition: opacity .35s var(--ease);
}
.gallery__caption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.gallery__zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(5, 8, 13, .7);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); filter: brightness(1) saturate(1); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover .gallery__caption { transform: translateY(0); opacity: 1; }
.gallery__item:hover .gallery__zoom { opacity: 1; transform: translateY(0); }
.gallery__item:hover .gallery__zoom { background: var(--red); border-color: var(--red); }

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 8, .96);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 88vw);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.lightbox__caption {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--white);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--muted);
}

/* ==================== COMUNIDADE / DISCORD ==================== */
.community {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.community__bg { position: absolute; inset: 0; z-index: -2; }
.community__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.community__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(5, 8, 13, .96) 0%, rgba(5, 8, 13, .82) 55%, rgba(5, 8, 13, .6) 100%),
    linear-gradient(to bottom, rgba(5, 8, 13, .7), rgba(5, 8, 13, .7));
}
.community__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
}
.community__text {
  margin: 20px 0 34px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--white-dim);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding: 60px 0 46px;
}
.brand--footer .brand__name { font-size: 21px; }
.footer__tagline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__nav { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer__nav .nav__link { padding: 7px 0; font-size: 14.5px; }
.footer__nav .nav__link::after { left: 0; right: auto; width: 100%; }

.footer__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer__social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.footer__social-link:hover {
  color: var(--white);
  border-color: var(--red);
  transform: translateY(-2px);
}

.footer__bottom { border-top: 1px solid var(--line); }
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px;
  color: var(--muted-2);
}

/* ==================== REVEAL / SCROLL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==================== PÁGINA /RANKING ==================== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 76px) 0 80px;
  border-bottom: 1px solid var(--line);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 8, 13, .82), rgba(5, 8, 13, .5) 55%, var(--bg) 98%);
}
.page-hero__content { position: relative; text-align: center; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.5vw, 68px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: 14px;
}
.page-hero__sub {
  margin: 16px auto 0;
  max-width: 540px;
  color: var(--white-dim);
  font-size: 15.5px;
  letter-spacing: .05em;
  line-height: 1.7;
}
.page-hero__meta {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 18, 28, .72);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero__meta::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 12px var(--red-glow);
}

/* ---- pódio ---- */
.podium-section { padding: 84px 0 16px; }
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
  max-width: 840px;
  margin: 34px auto 0;
}
.podium__card {
  position: relative;
  text-align: center;
  padding: 34px 20px 28px;
  background: linear-gradient(to bottom, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.podium__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--steel);
  opacity: .6;
}
.podium__card--1 {
  transform: translateY(-14px);
  background: linear-gradient(to bottom, #17101a, var(--panel));
  border-color: rgba(193, 39, 45, .55);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(193, 39, 45, .15);
}
.podium__card--1::before {
  height: 4px;
  background: linear-gradient(to right, var(--red-dark), var(--red-bright), var(--red-dark));
  opacity: 1;
}
.podium__place {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .16em;
  color: var(--muted);
}
.podium__card--1 .podium__place { color: #f0c267; font-size: 17px; }
.podium__avatar {
  width: 88px;
  height: 88px;
  margin: 14px auto 12px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-strong);
  background: var(--bg-3);
}
.podium__card--1 .podium__avatar {
  width: 106px;
  height: 106px;
  border-color: var(--red);
  box-shadow: 0 0 0 5px rgba(193, 39, 45, .16), 0 0 34px var(--red-glow);
}
.podium__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}
.podium__kills {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.podium__card--1 .podium__kills { color: #f0c267; }

/* ---- tabela completa ---- */
.ranking-page__table { padding: 66px 0 88px; }
.ranking-page__inner { max-width: 920px; }

.ranktable__head,
.rank-card--row {
  display: grid;
  grid-template-columns: 64px 52px minmax(0, 1fr) repeat(3, 96px);
  align-items: center;
  gap: 18px;
}
.ranktable__head {
  padding: 0 22px 12px;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.ranktable__head span:nth-child(n+4) { text-align: right; }

.ranking-list--full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.rank-card--row {
  flex: none;
  text-align: left;
  padding: 13px 22px;
}
.rank-card--row::before { content: none; }
.rank-card--row:hover { transform: none; }
.rank-card--row .rank-card__pos { width: auto; height: auto; justify-content: flex-start; }
.rank-card--row .rank-card__avatar { width: 48px; height: 48px; margin: 0; }
.rank-card--row .rank-card__name--row {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-card--row .rank-card__kills { display: none; }

.rank-card__stats { display: flex; gap: 14px; justify-content: flex-end; }
.rank-card__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 82px;
}
.rank-card__stat i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.rank-card__stat strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
}
.rank-card__stat--kd strong { color: #93a7bf; }
.rank-card__stat--kd.is-top strong { color: #f0c267; }

.ranking__cta { margin-top: 38px; text-align: center; }
.ranking__cta .btn svg { transition: transform .3s var(--ease); }
.ranking__cta .btn:hover svg { transform: translateX(4px); }

/* ==================== RESPONSIVO ==================== */
@media (max-width: 1100px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .ranking__list { grid-template-columns: repeat(5, minmax(180px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
  .ranking-list--full { grid-template-columns: 1fr; overflow: visible; }
}

@media (max-width: 960px) {
  .nav, .header__actions { display: none; }
  .burger { display: flex; }
  .mobile-menu.is-open { display: flex; }

  .about__grid { grid-template-columns: 1fr; gap: 54px; }
  .about__badge { right: 16px; }
  .map__grid { grid-template-columns: 1fr; gap: 44px; }
  .frame--map { max-width: 520px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero { height: clamp(520px, 76vh, 620px); min-height: 520px; }
  .hero__logo { gap: 16px; }
  .hero__slogan { margin-top: 26px; letter-spacing: .2em; text-indent: .2em; }
  .hero__cta { margin-top: 34px; flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .hero__cta .btn { width: 100%; }

  .ranking { padding: 66px 0 60px; }
  .ranking__list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 14px;
    margin-inline: -24px;
    padding-inline: 24px;
    -webkit-overflow-scrolling: touch;
  }
  .ranking__list::-webkit-scrollbar { height: 6px; }
  .ranking__list::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 4px; }
  .rank-card { flex: 0 0 220px; scroll-snap-align: start; }

  .features__grid { grid-template-columns: 1fr; }
  .events__list { grid-template-columns: 1fr; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(4), .gallery__item:nth-child(6) { grid-column: span 2; }
  .gallery__caption, .gallery__zoom { opacity: 1; transform: none; }

  .community { padding: 84px 0; }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; padding: 46px 0 36px; }
  .footer__bottom-inner { justify-content: center; text-align: center; }

  /* ---- página /ranking (mobile) ---- */
  .page-hero { padding: calc(var(--header-h) + 52px) 0 58px; }
  .page-hero__title { letter-spacing: .14em; }

  .podium { grid-template-columns: 1fr; max-width: 420px; }
  .podium__card { padding: 30px 20px 24px; }
  .podium__card--1 { transform: none; order: -1; }
  .podium__card--3 { order: 1; }
  .podium__card--1 .podium__avatar { width: 96px; height: 96px; }

  .ranking-page__table { padding: 56px 0 66px; }
  .ranktable__head { display: none; }
  .ranking-list--full {
    display: grid;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    scroll-snap-type: none;
  }
  .rank-card--row {
    flex: none;
    grid-template-columns: 40px 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
  }
  .rank-card--row .rank-card__avatar { width: 44px; height: 44px; }
  .rank-card__stats { grid-column: 2 / -1; justify-content: flex-start; gap: 10px; margin-top: 2px; }
  .rank-card__stat { min-width: 0; align-items: flex-start; }
  .rank-card__stat + .rank-card__stat { padding-left: 12px; border-left: 1px solid var(--line); }

  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

@media (max-width: 420px) {
  .brand__name { font-size: 16.5px; letter-spacing: .14em; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .event-card { flex-direction: column; gap: 16px; }
  .event-card__date { flex-direction: row; gap: 10px; min-width: 0; align-self: flex-start; }
  .event-card__day { font-size: 30px; }
  .event-card__month { margin-top: 0; }
}

/* ==================== ACESSIBILIDADE ==================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
