/* ═════════════════════════════════════════════════════════════
   NORULES PVP · LEADERBOARD  ·  Crew Style
   ═════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #FD1227;
  --red-dim: #9d0d1b;
  --gold: #FFC93C;
  --gold-dim: #D9A51E;
  --teal: #9DBCCC;
  --diamond: #60D4FF;
  --silver: #C0C5CC;
  --bronze: #C57E45;
  --bg: #06070a;
  --bg2: #0A0E12;
  --panel: #0D1417;
  --border: #1c2730;
  --muted: #3A5662;
}

html, body {
  background: var(--bg);
  color: #fff;
  font-family: 'Chakra Petch', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;        /* IE/Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; width: 0; }   /* Chrome/Safari */

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ─────  BACKGROUND  ───── */
.bg-base {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(253,18,39,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(253,18,39,0.10) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%);
}
.bg-stripes {
  position: fixed; inset: 0; z-index: -2;
  background: repeating-linear-gradient(
    -45deg, transparent 0, transparent 90px,
    rgba(253,18,39,0.03) 90px, rgba(253,18,39,0.03) 91px
  );
  pointer-events: none;
}
.bg-particles {
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
}
.bg-watermark {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  font-size: 28vw; font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(253,18,39,0.025);
  pointer-events: none; z-index: -1;
  white-space: nowrap;
}

/* ─────  HEADER  ───── */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,7,10,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(253,18,39,0.5));
  transition: transform 0.4s cubic-bezier(0.5,1.5,0.5,1);
}
.logo-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.logo-mark.sm { width: 36px; height: 36px; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.1); }
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-line {
  font-size: 17px; font-weight: 800;
  letter-spacing: 0.25em;
  background: linear-gradient(90deg, var(--red), #fff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-sub {
  font-size: 8px; letter-spacing: 0.4em;
  color: var(--muted); font-weight: 700;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; color: var(--teal);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.nav-link:hover { color: #fff; border-color: var(--border); }
.nav-link.active { color: #fff; border-color: var(--red); }
.nav-link.discord {
  color: #fff; background: rgba(88,101,242,0.15);
  border-color: rgba(88,101,242,0.5);
}
.nav-link.discord:hover { background: rgba(88,101,242,0.3); }

.status-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(13,20,23,0.7);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; color: #fff;
  text-transform: uppercase;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }
.status-txt { color: var(--teal); }
.status-txt #updatedTxt { color: var(--gold); }

/* ─────  HERO  ───── */
.hero {
  padding: 80px 32px 30px;
}
.hero-inner {
  max-width: 1300px; margin: 0 auto;
  text-align: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: rgba(8,13,15,0.85);
  border: 1px solid rgba(253,18,39,0.5);
  border-left: 3px solid var(--red);
  font-size: 11px; letter-spacing: 0.3em;
  font-weight: 700; color: #fff;
  margin-bottom: 28px;
}
.tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 10px var(--red);
  animation: pulse 1.4s infinite;
}
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ht-pre {
  font-size: 12px; letter-spacing: 0.6em;
  color: var(--gold); font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255,201,60,0.4);
}
.ht-main {
  font-size: 78px; font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff 0%, #fff 50%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.7));
  text-transform: uppercase;
}
.ht-main em {
  font-style: normal;
  background: linear-gradient(90deg, var(--red), #ff6b7d);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* OVERVIEW grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
.ov-card {
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(13,20,23,0.85), rgba(8,13,15,0.7));
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ov-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}
.ov-card::after {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(253,18,39,0.06), transparent);
  transition: left 0.7s ease;
}
.ov-card:hover::after { left: 100%; }
.ov-icon {
  font-size: 22px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(253,18,39,0.4));
}
.ov-val {
  font-size: 24px; font-weight: 800;
  color: #fff; line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.ov-lbl {
  font-size: 9px; letter-spacing: 0.3em;
  color: var(--muted); font-weight: 700;
  text-transform: uppercase;
}

/* ─────  TABS  ───── */
.tabs-section {
  padding: 30px 32px 0;
  position: sticky; top: 75px; z-index: 50;
  background: linear-gradient(180deg, rgba(6,7,10,0.85) 70%, transparent);
  backdrop-filter: blur(8px);
}
.tabs-inner {
  max-width: 900px; margin: 0 auto;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  background: rgba(13,20,23,0.85);
  border: 1px solid var(--border);
}
.tab {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--teal);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
}
.tab:hover { color: #fff; background: rgba(253,18,39,0.05); }
.tab.active {
  color: #fff;
  background: linear-gradient(180deg, var(--red), var(--red-dim));
  box-shadow: 0 4px 14px rgba(253,18,39,0.4);
}
.tab-icon { font-size: 16px; }

/* ─────  PODIUM  ───── */
.podium-section {
  padding: 60px 32px 30px;
}
.podium {
  max-width: 900px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: end;
}
.podium-place {
  position: relative;
  background: linear-gradient(180deg, rgba(13,20,23,0.85), rgba(8,13,15,0.95));
  border: 1px solid var(--border);
  padding: 22px 18px 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.3s ease;
}
.podium-place:hover { transform: translateY(-6px); }
.podium-place.place-1 { border-color: var(--gold); box-shadow: 0 0 30px rgba(255,201,60,0.18); }
.podium-place.place-2 { border-color: var(--silver); }
.podium-place.place-3 { border-color: var(--bronze); }

.place-1 .place-base { background: linear-gradient(180deg, var(--gold), var(--gold-dim)); height: 110px; }
.place-2 .place-base { background: linear-gradient(180deg, var(--silver), #909499); height: 80px; }
.place-3 .place-base { background: linear-gradient(180deg, var(--bronze), #8c5530); height: 60px; }
.place-base {
  width: 100%;
  margin-top: 18px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 50px; font-weight: 800;
  color: rgba(0,0,0,0.35);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.place-1 .place-base::before { content: "1"; }
.place-2 .place-base::before { content: "2"; }
.place-3 .place-base::before { content: "3"; }

.place-rank { display: none; } /* já mostrado no base */
.place-medal {
  font-size: 40px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
  animation: medalBob 3s ease-in-out infinite;
}
@keyframes medalBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.place-name {
  font-size: 18px; font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.place-1 .place-name { font-size: 22px; }
.place-crew {
  font-size: 11px; font-weight: 700;
  color: var(--diamond);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  min-height: 14px;
}
.place-value {
  font-size: 28px; font-weight: 800;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(253,18,39,0.3);
}
.place-1 .place-value { color: var(--gold); text-shadow: 0 0 16px rgba(255,201,60,0.4); font-size: 34px; }

.crown {
  position: absolute;
  top: -22px; left: 50%; transform: translateX(-50%);
  font-size: 30px;
  filter: drop-shadow(0 0 12px var(--gold));
  animation: crownFloat 2.5s ease-in-out infinite;
}
@keyframes crownFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-4px); }
}

/* ─────  TABLE  ───── */
.table-section {
  padding: 0 32px 80px;
}
.table-wrap {
  max-width: 1200px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(13,20,23,0.92), rgba(8,13,15,0.85));
  border: 1px solid var(--border);
}
.table-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 14px;
}
.table-title {
  font-size: 18px; font-weight: 800;
  letter-spacing: 0.3em; color: #fff;
  text-transform: uppercase;
}
.table-title span {
  background: linear-gradient(90deg, var(--red), #fff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.search-wrap {
  position: relative;
  display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 12px;
  color: var(--muted);
  pointer-events: none;
}
#searchInput {
  background: var(--panel);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 13px;
  padding: 10px 14px 10px 36px;
  letter-spacing: 0.05em;
  width: 240px;
  outline: none;
  transition: border-color 0.2s ease;
}
#searchInput:focus { border-color: var(--red); }
#searchInput::placeholder { color: var(--muted); }

.table-grid-head {
  display: grid;
  grid-template-columns: 70px 1fr 130px 100px 100px 110px 80px;
  gap: 16px;
  padding: 14px 26px;
  background: rgba(8,11,14,0.6);
  border-bottom: 1px solid var(--border);
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--muted); font-weight: 800;
  text-transform: uppercase;
}
.table-grid-head .t-num { text-align: right; }

.table-body {
  min-height: 300px;
  display: flex; flex-direction: column;
}
.loading {
  text-align: center; padding: 80px 20px;
  font-size: 13px; letter-spacing: 0.4em;
  color: var(--muted); font-weight: 800;
}

.tr-row {
  display: grid;
  grid-template-columns: 70px 1fr 130px 100px 100px 110px 80px;
  gap: 16px;
  padding: 14px 26px;
  border-bottom: 1px solid rgba(20,31,36,0.6);
  align-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.tr-row:last-child { border-bottom: none; }
.tr-row:hover { background: rgba(253,18,39,0.04); transform: translateX(4px); }
.tr-row.tr-top1 { background: linear-gradient(90deg, rgba(28,22,8,0.5), transparent); border-left: 3px solid var(--gold); }
.tr-row.tr-top2 { background: linear-gradient(90deg, rgba(20,22,26,0.5), transparent); border-left: 3px solid var(--silver); }
.tr-row.tr-top3 { background: linear-gradient(90deg, rgba(24,18,12,0.5), transparent); border-left: 3px solid var(--bronze); }

.tr-rank {
  font-size: 18px; font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tr-row.tr-top1 .tr-rank { color: var(--gold); text-shadow: 0 0 8px rgba(255,201,60,0.5); }
.tr-row.tr-top2 .tr-rank { color: var(--silver); }
.tr-row.tr-top3 .tr-rank { color: var(--bronze); }

.tr-name {
  font-size: 14px; font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tr-crew {
  font-size: 12px; font-weight: 700;
  color: var(--diamond);
  letter-spacing: 0.15em;
}
.tr-num {
  text-align: right;
  font-size: 14px; font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tr-num.kill   { color: #fff; }
.tr-num.death  { color: var(--red); }
.tr-num.point  { color: var(--gold); }
.tr-num.kdr    { color: var(--diamond); font-weight: 800; }
.tr-row.tr-top1 .tr-num.point { text-shadow: 0 0 10px rgba(255,201,60,0.4); }

/* ─────  FOOTER  ───── */
.ftr {
  border-top: 1px solid var(--border);
  background: rgba(6,7,10,0.85);
  padding: 24px 32px;
}
.ftr-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.ftr-brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.3em;
  font-weight: 700; color: var(--muted);
}
.ftr-links { display: flex; gap: 24px; }
.ftr-links a {
  font-size: 11px; letter-spacing: 0.25em;
  color: var(--teal); font-weight: 700;
  text-transform: uppercase;
}
.ftr-links a:hover { color: var(--red); }

/* ─────  ANIMATIONS  ───── */
.ht-pre, .ht-main { animation: heroIn 0.9s cubic-bezier(0.2,0.8,0.2,1) both; }
.ht-main { animation-delay: 0.15s; }
.overview-grid { animation: heroIn 0.9s cubic-bezier(0.2,0.8,0.2,1) 0.3s both; }
.tabs-section  { animation: heroIn 0.9s cubic-bezier(0.2,0.8,0.2,1) 0.45s both; }
.podium-section { animation: heroIn 0.9s cubic-bezier(0.2,0.8,0.2,1) 0.6s both; }
.table-section  { animation: heroIn 0.9s cubic-bezier(0.2,0.8,0.2,1) 0.75s both; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ov-val.tick {
  animation: tick 0.4s ease;
}
@keyframes tick {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); color: var(--red); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  z-index: 9999;
  transition: width 0.05s ease-out;
  box-shadow: 0 0 10px var(--red);
}

/* ─────  RESPONSIVE  ───── */
@media (max-width: 1100px) {
  .table-grid-head, .tr-row {
    grid-template-columns: 50px 1fr 90px 80px 80px 90px 60px;
    gap: 10px; padding: 12px 16px;
    font-size: 12px;
  }
  .ht-main { font-size: 56px; }
}
@media (max-width: 720px) {
  .nav, .status-pill { display: none; }
  .ht-main { font-size: 40px; }
  .ht-pre  { font-size: 10px; letter-spacing: 0.4em; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .podium { grid-template-columns: 1fr; gap: 12px; }
  .place-base { height: 50px !important; font-size: 30px; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .tab { padding: 10px 8px; font-size: 11px; letter-spacing: 0.18em; }
  .table-head { flex-direction: column; align-items: stretch; }
  #searchInput { width: 100%; }
  .table-grid-head { display: none; }
  .tr-row {
    grid-template-columns: 40px 1fr auto;
    padding: 12px 14px;
  }
  .tr-row .tr-num.death,
  .tr-row .tr-num.point,
  .tr-row .tr-num.kdr,
  .tr-row .tr-crew { display: none; }
  .ftr-inner { flex-direction: column; gap: 12px; text-align: center; }
}
