* { box-sizing: border-box; }

:root {
  --red: #e50914;
  --white: #f8fafc;
  --muted: #aeb8c8;
  --panel: #0c1018;
  --panel-2: #121824;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(229,9,20,.28), transparent 28%),
    linear-gradient(180deg, #111827 0%, #050505 42%, #000 100%);
  color: var(--white);
  min-height: 100vh;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025), rgba(255,255,255,.025) 1px, transparent 1px, transparent 5px);
  opacity: .3;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 28px 0 70px;
}

.hero { text-align: center; padding: 24px 12px 48px; }

.logo {
  max-width: min(420px, 88vw);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(229,9,20,.35);
}

.mission-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 20px rgba(229,9,20,.55);
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
  margin: 16px 0 8px;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: 0 0 18px rgba(229,9,20,.4);
}

.hero p {
  color: #d5dbe7;
  font-size: 18px;
  max-width: 790px;
  margin: 0 auto 26px;
}

.search-box {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
}

input {
  flex: 1;
  padding: 17px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: #070b12;
  color: #fff;
  font-size: 20px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(229,9,20,.18);
}

input:focus { border-color: var(--red); box-shadow: 0 0 20px rgba(229,9,20,.28); }

button {
  padding: 17px 28px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--red), #ff343f);
  color: white;
  font-weight: 900;
  font-size: 17px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 8px 26px rgba(229,9,20,.38);
}

button:hover { filter: brightness(1.1); }

.status { margin-top: 16px; color: #ffdddd; min-height: 22px; }

.profile, .leaderboard-section {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)), var(--panel);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 30px 90px rgba(0,0,0,.48), 0 0 50px rgba(229,9,20,.16);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.profile::before, .leaderboard-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(229,9,20,.20), transparent 18%, transparent 82%, rgba(229,9,20,.16));
  pointer-events: none;
}

.hidden { display: none; }

.profile-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-bottom: 22px;
  margin-bottom: 16px;
}

.eyebrow { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .13em; margin: 0 0 6px; }

h2 {
  margin: 0;
  font-size: clamp(38px, 6.3vw, 72px);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.identity-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 9px; }

.type-badge, .player-title {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  background: #111827;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 12px;
}

.type-badge.team { background: var(--red); }
.type-badge.customer { background: #1f2937; }
.player-title { color: #ff444d; }

.rank-panel {
  min-width: 230px;
  background: linear-gradient(145deg,#fff,#c8c8c8);
  color: #111;
  border: 3px solid var(--red);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 0 28px rgba(229,9,20,.35);
}

.rank-panel p { margin: 0 0 8px; font-weight: 900; text-transform: uppercase; }
.rank-panel strong { font-size: 46px; display: block; color: var(--red); }
.rank-panel span { font-size: 12px; opacity: .82; }

.rank-summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  margin: 0 0 20px;
}

.rank-summary div {
  background: #080b10;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px;
}

.rank-summary span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; margin-bottom: 5px; }
.rank-summary strong { font-size: 20px; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 24px; position: relative; }

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a0a0a;
  border: 1px solid rgba(229,9,20,.55);
  color: white;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(229,9,20,.22);
}

.badge-chip span { font-size: 18px; }

h3 { position: relative; margin: 30px 0 13px; color: #fff; text-transform: uppercase; letter-spacing: .05em; }

.grid { display: grid; gap: 12px; position: relative; }
.stats-grid { grid-template-columns: repeat(3,1fr); }
.rank-grid { grid-template-columns: repeat(4,1fr); }
.best-grid { grid-template-columns: repeat(3,1fr); }

.stat, .rank {
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 4px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 16px;
}

.stat.red, .rank.red { border-left-color: var(--red); }

.stat span, .rank span { color: var(--muted); display: block; font-size: 13px; margin-bottom: 7px; }
.stat strong, .rank strong { font-size: 27px; }

.rank em { display: block; color: #ff8087; font-style: normal; margin-top: 5px; font-size: 12px; }

.highlight {
  position: relative;
  background: linear-gradient(135deg, rgba(229,9,20,.18), rgba(255,255,255,.035));
  border: 1px solid rgba(229,9,20,.48);
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
}

.highlight h3 { margin-top: 0; }
.highlight p { margin-bottom: 0; color: #f1f5f9; }

.recent { display: grid; gap: 10px; position: relative; }

.recent-game {
  display: grid;
  grid-template-columns: 1.3fr 1fr repeat(4,.7fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: #0a0e16;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  color: #e2e8f0;
}

.recent-game span { color: var(--muted); font-size: 12px; display: block; }

.leaderboard-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-row, .category-row { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }

.category-row { margin-top: 14px; margin-bottom: 10px; }

.toggle, .category {
  padding: 10px 13px;
  font-size: 13px;
  border-radius: 999px;
  background: #111827;
  box-shadow: none;
}

.toggle.active, .category.active { background: var(--red); }

.leaderboard-title {
  position: relative;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 12px 0;
}

.leaderboard { position: relative; display: grid; gap: 8px; margin-top: 12px; }

.leader-row {
  display: grid;
  grid-template-columns: 70px 1.4fr .8fr .8fr .8fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: #090d14;
  border-radius: 12px;
  cursor: pointer;
}

.leader-row:hover { border-color: rgba(229,9,20,.55); background: #10141e; }
.leader-row strong { color: #fff; }
.leader-row span { color: var(--muted); font-size: 12px; display: block; }

.footer-note { text-align: center; color: var(--muted); margin-top: 24px; }

.mini { padding: 8px 10px; font-size: 12px; border-radius: 999px; margin: 4px; }

@media (max-width:760px) {
  .search-box,.profile-top { flex-direction: column; }
  .stats-grid,.rank-grid,.best-grid,.rank-summary { grid-template-columns: repeat(2,1fr); }
  .recent-game,.leader-row { grid-template-columns: 1fr 1fr; }
  .rank-panel { min-width: 100%; }
}

@media (max-width:460px) {
  .stats-grid,.rank-grid,.best-grid,.rank-summary { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  h2 { font-size: 38px; }
}


.leaderboard-note {
  position: relative;
  margin-top: 12px;
  color: #aeb8c8;
  font-size: 12px;
  font-style: italic;
}
