:root {
  color-scheme: dark;
  --bg: #0b0e1a;
  --bg-deep: #070a14;
  --surface: #111526;
  --surface-2: #171b2f;
  --surface-3: #1e2338;
  --line: rgba(167, 178, 210, 0.11);
  --line-strong: rgba(167, 178, 210, 0.18);
  --text: #f7f9ff;
  --muted: #9aa6c3;
  --dim: #66718d;
  --blue: #3b82f6;
  --cyan: #62a7ff;
  --green: #7ee85c;
  --red: #ff4d5c;
  --pink: #e846df;
  --gold: #ffd400;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.bg-noise {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.10), transparent 28%),
    linear-gradient(180deg, #0a0d18, #090c16 42%, #0d1020);
}

.stats-app {
  min-height: 100vh;
  background: var(--bg);
}

.stats-header {
  height: 82px;
  display: grid;
  grid-template-columns: 210px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 26px;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 28px;
}

.stats-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.stats-brand span {
  color: #fff;
}

.stats-brand strong {
  color: var(--blue);
}

.stats-brand em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.stats-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 16px;
}

.stats-search span {
  color: var(--muted);
  font-size: 0;
}

.stats-search span::before {
  content: "Search";
  font-size: 13px;
}

.stats-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.stats-search input::placeholder {
  color: var(--dim);
}

.stats-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-actions button,
.stats-actions a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.stats-actions a {
  background: transparent;
}

.stats-nav,
.stats-subnav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #080b15;
}

.stats-nav {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 max(28px, calc((100vw - 1540px) / 2 + 28px));
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

.stats-nav a.active,
.stats-nav a:hover,
.stats-subnav a.active,
.stats-subnav a:hover {
  color: #fff;
}

.stats-nav span {
  margin-left: auto;
  color: var(--muted);
}

.stats-subnav {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 max(28px, calc((100vw - 1540px) / 2 + 28px));
  background: #121624;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.stats-main {
  max-width: 1540px;
  margin: 0 auto;
  padding: 28px;
}

.leaderboard-hero {
  padding: 20px 0 0;
}

.leaderboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.leaderboard-head h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.leaderboard-head p {
  margin: 12px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.leaderboard-summary {
  display: grid;
  gap: 8px;
}

.leaderboard-summary strong {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 250px;
  min-height: 38px;
  padding: 5px 12px;
  border-radius: 4px;
  background: #080b15;
  font-size: 24px;
  line-height: 1;
}

.leaderboard-summary span {
  font-size: 13px;
  color: #fff;
}

.rank-chart {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(30, minmax(16px, 1fr));
  align-items: end;
  gap: 22px;
  margin-top: 44px;
  padding: 0 8px;
}

.rank-bar {
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 8px;
}

.rank-bar span {
  width: 11px;
  border-radius: 999px 999px 4px 4px;
  background: var(--blue);
  opacity: 0.98;
}

.rank-bar b {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.rank-bar .rank-indigo { background: #5068ff; }
.rank-bar .rank-purple { background: #8c43ff; }
.rank-bar .rank-pink { background: #e843df; }
.rank-bar .rank-red { background: #ff4d5c; }
.rank-bar .rank-gold { background: var(--gold); }

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  margin-top: 32px;
}

.stats-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.panel-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.panel-head a,
.panel-head span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.leader-table,
.match-table {
  display: grid;
}

.leader-table-head,
.leader-row {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1fr) 120px 100px 150px 150px 130px;
  align-items: center;
  gap: 12px;
}

.leader-table-head,
.match-table-head {
  min-height: 52px;
  padding: 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leader-row {
  min-height: 62px;
  margin: 0 18px 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: #111525;
  color: #fff;
  font-size: 14px;
}

.leader-row strong {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leader-row img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.cs2rating {
  width: 88px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: #fff;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.cs2rating span {
  display: inline-flex;
  align-items: baseline;
  transform: translateY(-1px);
  font-size: 16px;
}

.cs2rating small {
  font-size: 11px;
  font-weight: 950;
}

.cs2rating.md {
  width: 92px;
  height: 25px;
}

.stats-side {
  display: grid;
  gap: 22px;
}

.map-list,
.weapon-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.map-row,
.weapon-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 10px;
  border-radius: 6px;
  background: #111525;
}

.map-row img,
.weapon-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.map-row strong,
.weapon-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.map-row span,
.weapon-row b {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.matches-panel {
  margin-top: 22px;
}

.leaderboard-full-panel {
  margin-top: 32px;
}

.match-table-head,
.match-row {
  display: grid;
  grid-template-columns: 90px 110px 130px 1fr 110px 60px 60px 60px 70px;
  align-items: center;
  gap: 12px;
}

.match-row {
  min-height: 54px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: #111525;
  font-size: 14px;
}

.match-row:nth-child(even) {
  background: #151a2d;
}

.match-row strong {
  font-style: italic;
  font-weight: 900;
}

.match-rating-pill {
  width: fit-content;
  min-width: 82px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 212, 0, 0.18);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 212, 0, 0.18), rgba(255, 212, 0, 0.05)),
    rgba(255, 212, 0, 0.04);
  color: #ffd400;
  font-size: 13px;
  font-weight: 950;
}

.match-rating-pill b {
  color: #fff1a6;
  font-size: 11px;
  line-height: 1;
}

.match-row a {
  color: var(--blue);
  font-weight: 900;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.10), transparent 40%),
    var(--surface-2);
}

.compact-hero h1,
.map-hero h1 {
  margin: 6px 0 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.compact-hero p,
.map-hero p {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.page-eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-metric {
  min-width: 170px;
  align-self: stretch;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0e1322;
  text-align: center;
}

.hero-metric strong {
  font-size: 34px;
  line-height: 1;
}

.hero-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-link-metric {
  transition: 0.18s ease;
}

.hero-link-metric:hover {
  border-color: rgba(98, 167, 255, 0.48);
  transform: translateY(-2px);
}

.hero-metric.danger strong,
.danger-chip {
  color: var(--red);
}

.all-match-table .match-table-head,
.all-match-row {
  grid-template-columns: 70px 110px 130px minmax(160px, 1fr) 90px minmax(160px, 1fr) 50px 50px 50px 70px 70px;
}

.team-stack {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card-grid,
.tool-grid,
.weapon-lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.player-card,
.tool-card,
.weapon-lab-grid article,
.empty-state-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 18px;
}

.player-card {
  display: grid;
  gap: 12px;
}

.player-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-card-top img {
  width: 34px;
  height: 34px;
  border-radius: 4px;
}

.player-card h2,
.tool-card h2,
.weapon-lab-grid h2 {
  margin: 0;
  font-size: 18px;
}

.player-card p,
.tool-card p,
.weapon-lab-grid p,
.empty-state-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.player-card a,
.tool-card span,
.weapon-lab-grid span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-detail-hero {
  overflow: hidden;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 24px;
}

.match-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.match-meta-line strong {
  color: #fff;
  font-style: italic;
}

.score-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}

.score-team h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.score-team-right {
  text-align: right;
}

.team-avatars {
  display: flex;
  gap: 10px;
}

.score-team-right .team-avatars {
  justify-content: flex-end;
}

.team-avatars img {
  width: 56px;
  height: 56px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.score-center {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.score-center strong {
  color: var(--red);
  font-size: 72px;
  line-height: 1;
}

.score-center strong:last-child {
  color: var(--green);
}

.score-center span {
  min-width: 120px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-tabs,
.profile-tabs {
  display: flex;
  gap: 24px;
  margin: 18px 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-tabs .active,
.profile-tabs .active {
  color: #fff;
}

.scoreboard-panel {
  display: grid;
  gap: 22px;
  padding: 22px;
}

.scoreboard-team {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.scoreboard-team aside strong {
  display: block;
  margin-top: 10px;
  font-size: 42px;
}

.scoreboard-head,
.scoreboard-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 50px 50px 50px 80px 90px;
  align-items: center;
  gap: 12px;
}

.scoreboard-head {
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.scoreboard-row {
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.scoreboard-row strong {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scoreboard-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.rating-box {
  width: fit-content;
  min-width: 54px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--green);
  color: #07110d;
  font-weight: 950;
  text-align: center;
}

.map-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.map-hero img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.map-summary-grid,
.metric-grid,
.profile-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.map-summary-grid article,
.metric-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 18px;
}

.map-summary-grid span,
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.map-summary-grid strong,
.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 32px;
}

.map-rank-chart {
  min-height: 190px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: end;
  gap: 24px;
  padding: 24px;
}

.ban-table {
  display: grid;
}

.ban-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px 140px 160px 100px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
}

.ban-head {
  border-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ban-row img {
  width: 28px;
  height: 20px;
  object-fit: cover;
}

.danger-chip {
  font-weight: 950;
}

.player-profile-main {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
}

.profile-sidebar {
  align-self: start;
  position: sticky;
  top: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 22px;
}

.profile-avatar img {
  width: 122px;
  height: 122px;
  border-radius: 10px;
  object-fit: cover;
}

.profile-sidebar h1 {
  margin: 16px 0 8px;
}

.steam-chip {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.13);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.profile-ranks {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.profile-ranks span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid small {
  display: block;
  color: var(--muted);
}

.profile-split {
  grid-template-columns: 1fr 1fr;
}

.profile-match-row {
  grid-template-columns: 70px 110px 130px 1fr 110px 70px;
}

.tool-card {
  display: grid;
  gap: 12px;
  min-height: 170px;
}

.tool-card:hover {
  border-color: rgba(98, 167, 255, 0.42);
  transform: translateY(-2px);
  transition: 0.18s ease;
}

.tool-card img,
.weapon-lab-grid img {
  width: 72px;
  height: 54px;
  object-fit: contain;
}

.weapon-lab-grid article {
  display: grid;
  gap: 10px;
}

.empty-state-panel {
  min-height: 260px;
  display: grid;
  place-content: center;
  text-align: center;
}

.empty-state-panel strong {
  font-size: 22px;
}

.import-hero-strip {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(98, 167, 255, 0.20), transparent 30%),
    linear-gradient(135deg, rgba(30, 35, 56, 0.96), rgba(10, 13, 24, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.20);
}

.import-hero-strip h1 {
  max-width: 820px;
  margin: 8px 0 0;
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.import-status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.import-status-pills span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(17, 21, 38, 0.72);
  color: var(--muted);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.import-status-pills span:first-child {
  border-color: rgba(126, 232, 92, 0.32);
  color: var(--green);
}

.import-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
}

.import-card,
.pipeline-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(59, 130, 246, 0.13), transparent 44%),
    linear-gradient(180deg, rgba(23, 27, 47, 0.98), rgba(11, 14, 26, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.18);
}

.import-card {
  padding: 28px;
}

.pipeline-card {
  padding: 24px;
}

.import-card-head,
.pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.import-card-head strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(98, 167, 255, 0.26);
  border-radius: 999px;
  background: rgba(98, 167, 255, 0.10);
  color: var(--cyan);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
}

.import-card h2 {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.import-card p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.share-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 14px;
  margin-top: 30px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(7, 10, 20, 0.78), rgba(7, 10, 20, 0.46));
}

.share-code-field {
  display: grid;
  gap: 8px;
}

.share-code-field-main,
.share-code-field-note,
.import-actions {
  grid-column: 1 / -1;
}

.share-code-field label {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.share-code-field input,
.share-code-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(17, 21, 38, 0.94);
  color: var(--text);
  padding: 0 15px;
  font-weight: 850;
  transition: 0.18s ease;
}

.share-code-field input {
  min-height: 54px;
}

.share-code-field-main input {
  min-height: 64px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.share-code-field textarea {
  min-height: 92px;
  resize: vertical;
  padding-top: 13px;
}

.share-code-field input:focus,
.share-code-field textarea:focus {
  border-color: rgba(98, 167, 255, 0.70);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.share-code-field small {
  color: var(--dim);
  font-size: 12px;
}

.import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.import-actions button,
.import-actions a {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 52px;
  padding: 0 18px;
  font-weight: 950;
}

.import-actions button {
  border-color: transparent;
  background:
    linear-gradient(135deg, #62a7ff, #3b82f6);
  color: #fff;
  box-shadow: 0 14px 34px rgba(59, 130, 246, 0.22);
}

.import-actions a {
  display: inline-flex;
  align-items: center;
  background: rgba(17, 21, 38, 0.8);
  color: var(--cyan);
}

.import-note-box {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  border: 1px solid rgba(126, 232, 92, 0.18);
  border-radius: 12px;
  background: rgba(126, 232, 92, 0.06);
  padding: 14px;
}

.import-note-box strong {
  color: var(--green);
}

.import-note-box span {
  color: var(--muted);
  line-height: 1.6;
}

.pipeline-card h2 {
  margin: 7px 0 18px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.pipeline-card article {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 0 0 18px 34px;
}

.pipeline-card article:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.pipeline-card article span {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 0;
}

.pipeline-card article span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.pipeline-card strong {
  font-size: 15px;
}

.pipeline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.import-help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.import-help-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 21, 38, 0.82);
  padding: 18px;
}

.import-help-grid strong {
  display: block;
  font-size: 15px;
}

.import-help-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #090c16;
}

::-webkit-scrollbar-thumb {
  background: rgba(154, 166, 195, 0.28);
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .stats-header {
    grid-template-columns: 1fr;
    height: auto;
    padding: 18px;
  }

  .stats-actions,
  .stats-nav,
  .stats-subnav {
    overflow-x: auto;
  }

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

  .import-hero-strip,
  .player-card-grid,
  .tool-grid,
  .weapon-lab-grid,
  .metric-grid,
  .profile-split,
  .map-summary-grid,
  .player-profile-main,
  .import-shell,
  .share-code-form,
  .import-help-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero,
  .map-hero,
  .score-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .score-team-right,
  .score-center {
    text-align: left;
  }

  .score-team-right .team-avatars {
    justify-content: flex-start;
  }

  .score-center {
    justify-content: flex-start;
  }

  .rank-chart {
    gap: 12px;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .stats-main {
    padding: 18px;
  }

  .leaderboard-head,
  .stats-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .leader-table,
  .match-table,
  .scoreboard-table,
  .ban-table {
    overflow-x: auto;
  }

  .leader-table-head,
  .leader-row,
  .match-table-head,
  .match-row,
  .scoreboard-head,
  .scoreboard-row,
  .ban-row {
    min-width: 920px;
  }

  .scoreboard-team {
    grid-template-columns: 1fr;
  }

  .map-rank-chart {
    overflow-x: auto;
    grid-template-columns: repeat(8, 60px);
  }

  .share-code-form {
    grid-template-columns: 1fr;
  }
}
