:root {
  --bg: #090b10;
  --bg-soft: #0d1118;
  --surface: #111720;
  --surface-2: #161e29;
  --surface-3: #1b2532;
  --line: #273140;
  --line-soft: rgba(151, 165, 183, 0.16);
  --text: #f4f5f7;
  --muted: #9da8b6;
  --faint: #687586;
  --coral: #ff5964;
  --coral-strong: #ff4655;
  --coral-soft: rgba(255, 89, 100, 0.13);
  --mint: #35d6b2;
  --mint-soft: rgba(53, 214, 178, 0.12);
  --cyan: #55c9ee;
  --amber: #f2bd62;
  --danger: #ff6571;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --header-height: 72px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 70, 85, 0.07), transparent 28rem),
    linear-gradient(180deg, #090b10 0%, #0a0d12 60%, #090b10 100%);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

body.modal-open,
body.mobile-nav-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

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

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong,
b {
  text-wrap: balance;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(85, 201, 238, 0.9);
  outline-offset: 3px;
}

::selection {
  color: white;
  background: rgba(255, 70, 85, 0.7);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #091015;
  border-radius: var(--radius-sm);
  background: var(--text);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-pad {
  width: min(calc(100% - 40px), 1320px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(53, 214, 178, 0.08);
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 11, 16, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 32px), 1420px);
  height: 100%;
  margin-inline: auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  color: white;
  border: 1px solid rgba(255, 89, 100, 0.58);
  border-radius: 10px;
  background:
    linear-gradient(145deg, transparent 0 54%, rgba(0, 0, 0, 0.2) 54%),
    var(--coral-strong);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.brand-mark::after {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  content: "";
  transform: rotate(45deg);
}

.brand-mark-small {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 0.98;
}

.brand-copy strong {
  font-size: 0.96rem;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 3px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  padding: 0 11px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.nav-link::after {
  position: absolute;
  right: 11px;
  bottom: 0;
  left: 11px;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.header-search {
  display: grid;
  width: min(360px, 28vw);
  min-width: 276px;
  height: 42px;
  margin-left: auto;
  grid-template-columns: minmax(110px, 1fr) 65px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.header-search input,
.header-search select,
.header-search button {
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
}

.header-search input {
  padding: 0 12px;
}

.header-search select {
  padding: 0 7px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 800;
}

.header-search button {
  padding: 0 13px;
  color: white;
  background: var(--coral-strong);
  font-size: 0.78rem;
  font-weight: 850;
}

.mobile-toggle,
.mobile-panel {
  display: none;
}

.mobile-toggle {
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--text);
}

#app {
  min-height: calc(100vh - var(--header-height));
  outline: none;
}

.button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 850;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  border-color: var(--coral);
  background: var(--coral-strong);
}

.button-primary:hover {
  background: #ff6470;
}

.button-quiet {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-2);
}

.button-quiet:hover,
.button-quiet.active {
  border-color: rgba(255, 89, 100, 0.6);
  background: var(--coral-soft);
}

.button-light {
  color: #0a1016;
  border-color: var(--text);
  background: var(--text);
}

.text-link,
.text-button {
  min-height: 40px;
  padding: 0;
  color: var(--text);
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255, 89, 100, 0.7);
  text-underline-offset: 5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.panel-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-heading h2,
.panel-heading h3,
.section-heading h2 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
}

.panel-heading > span,
.panel-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.home-hero {
  display: grid;
  min-height: 620px;
  padding-block: 76px 64px;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.75fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.home-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 920;
  letter-spacing: -0.07em;
  line-height: 0.91;
}

.home-copy h1 span {
  color: var(--coral);
}

.hero-lede {
  max-width: 680px;
  margin: 28px 0 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.7;
}

.hero-search {
  display: grid;
  max-width: 760px;
  padding: 8px;
  grid-template-columns: minmax(180px, 1fr) 140px 120px auto;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-search > div,
.hero-search > label {
  min-width: 0;
}

.hero-search label,
.calculator-card label > span,
.compare-form label > span {
  display: block;
  margin: 0 0 5px;
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-search input,
.hero-search select {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--bg-soft);
  font-size: 0.9rem;
}

.hero-search .button-search {
  min-height: 64px;
  align-self: end;
}

.consent-note {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 0.74rem;
}

.quick-profiles {
  display: flex;
  margin-top: 22px;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.quick-profiles > span {
  margin-right: 3px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
}

.quick-profile {
  display: inline-flex;
  min-height: 38px;
  padding: 4px 9px 4px 4px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.74rem;
}

.pulse-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(255, 89, 100, 0.06), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
}

.leader-preview {
  padding: 8px 14px 14px;
}

.leader-preview-row {
  display: grid;
  min-height: 67px;
  padding: 8px 7px;
  grid-template-columns: 34px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 150ms ease;
}

.leader-preview-row:last-child {
  border-bottom: 0;
}

.leader-preview-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.leader-position {
  color: var(--faint);
  font: 0.72rem var(--mono);
}

.leader-identity,
.leader-rating {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.leader-identity strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-identity small,
.leader-rating small {
  color: var(--faint);
  font-size: 0.68rem;
}

.leader-rating {
  align-items: flex-end;
}

.leader-rating strong {
  color: var(--mint);
  font: 800 0.9rem var(--mono);
}

.home-facts {
  display: grid;
  padding-block: 24px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.home-facts article {
  display: flex;
  min-height: 84px;
  padding: 10px 28px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line-soft);
}

.home-facts article:first-child {
  padding-left: 0;
}

.home-facts article:last-child {
  border-right: 0;
}

.home-facts strong {
  font: 800 1.75rem var(--mono);
}

.home-facts span {
  color: var(--muted);
  font-size: 0.78rem;
}

.saved-section,
.feature-section {
  padding-block: 88px;
}

.saved-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.saved-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.saved-main {
  display: flex;
  min-height: 86px;
  padding: 14px;
  align-items: center;
  gap: 12px;
}

.saved-main > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.saved-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.saved-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-soft);
}

.saved-actions button {
  min-height: 42px;
  color: var(--muted);
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.72rem;
  font-weight: 750;
}

.saved-actions button:last-child {
  border-right: 0;
}

.saved-actions button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.empty-card {
  display: flex;
  min-height: 180px;
  padding: 28px;
  align-items: center;
  gap: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.saved-empty {
  grid-column: 1 / -1;
}

.empty-index {
  color: var(--coral);
  font: 800 2rem var(--mono);
}

.empty-card h2,
.empty-card h3 {
  margin: 0 0 7px;
}

.empty-card p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.feature-section {
  border-top: 1px solid var(--line-soft);
}

.feature-heading > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  margin-top: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--line-soft);
}

.feature-card {
  min-height: 230px;
  padding: 30px;
  background: var(--bg-soft);
}

.feature-card > span {
  color: var(--coral);
  font: 700 0.72rem var(--mono);
}

.feature-card h3 {
  margin: 56px 0 10px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.65;
}

.cta-section {
  display: flex;
  min-height: 280px;
  margin-bottom: 80px;
  padding: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(105deg, rgba(9, 11, 16, 0.14), rgba(9, 11, 16, 0.72)),
    var(--coral-strong);
}

.cta-section h2 {
  max-width: 700px;
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.cta-section p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.83);
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-3);
  font-size: 0.75rem;
  font-weight: 850;
}

.avatar img,
.avatar > span {
  width: 100%;
  height: 100%;
}

.avatar img {
  object-fit: cover;
}

.avatar > span {
  display: grid;
  place-items: center;
}

.avatar-xs {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.6rem;
}

.avatar-sm {
  width: 40px;
  height: 40px;
}

.avatar-md {
  width: 52px;
  height: 52px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

.avatar-xl {
  width: 82px;
  height: 82px;
}

.agent-square {
  width: 52px;
  height: 52px;
}

.profile-avatar {
  width: 92px;
  height: 92px;
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: var(--surface);
}

.page-hero {
  padding-block: 76px 36px;
}

.compact-hero {
  min-height: 280px;
  padding-top: 84px;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.page-hero > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.profile-banner {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.profile-banner-art,
.profile-banner-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.profile-banner-art {
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.46;
  filter: saturate(0.8);
}

.profile-banner-shade {
  background:
    linear-gradient(90deg, rgba(9, 11, 16, 0.97) 0%, rgba(9, 11, 16, 0.78) 45%, rgba(9, 11, 16, 0.5) 100%),
    linear-gradient(0deg, var(--bg), transparent 55%);
}

.profile-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 218px;
  padding-block: 42px 34px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.profile-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.profile-identity > div {
  min-width: 0;
}

.profile-status-row {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.data-badge {
  display: inline-flex;
  min-height: 25px;
  padding: 0 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.data-badge.live {
  color: var(--mint);
  border-color: rgba(53, 214, 178, 0.3);
  background: var(--mint-soft);
}

.data-badge.warning {
  color: var(--amber);
  border-color: rgba(242, 189, 98, 0.3);
  background: rgba(242, 189, 98, 0.08);
}

.profile-identity h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.profile-identity h1 span {
  color: var(--muted);
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile-identity p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-main {
  padding-block: 24px 96px;
}

.inline-alert {
  display: flex;
  min-height: 48px;
  margin-bottom: 14px;
  padding: 10px 14px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.inline-alert.warning {
  color: #f8d9a3;
  border-color: rgba(242, 189, 98, 0.26);
  background: rgba(242, 189, 98, 0.07);
}

.inline-alert span {
  color: var(--muted);
}

.rank-strip {
  display: grid;
  min-height: 112px;
  grid-template-columns: minmax(300px, 1.5fr) repeat(3, minmax(110px, 0.65fr)) minmax(170px, 0.9fr);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.rank-summary {
  display: flex;
  padding: 17px 20px;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--line-soft);
}

.rank-emblem {
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
}

.rank-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rank-emblem span {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: var(--amber);
  border: 1px solid rgba(242, 189, 98, 0.3);
  transform: rotate(45deg);
}

.rank-summary > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.rank-summary strong {
  overflow: hidden;
  font-size: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-summary small,
.rank-detail small {
  color: var(--muted);
  font-size: 0.72rem;
}

.rank-detail,
.scope-label {
  display: flex;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line-soft);
}

.scope-label {
  border-right: 0;
}

.rank-detail span,
.scope-label span {
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-detail strong,
.scope-label strong {
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.scope-label strong {
  color: var(--muted);
  font-size: 0.78rem;
}

.grade {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--mint);
  border: 1px solid rgba(53, 214, 178, 0.35);
  border-radius: 8px;
  background: var(--mint-soft);
  font: 850 1rem var(--mono);
}

.grade-s,
.grade-a {
  color: var(--mint);
}

.grade-b,
.grade-c {
  color: var(--amber);
  border-color: rgba(242, 189, 98, 0.3);
  background: rgba(242, 189, 98, 0.08);
}

.grade-d,
.grade-e {
  color: var(--coral);
  border-color: rgba(255, 89, 100, 0.3);
  background: var(--coral-soft);
}

.metric-grid {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  display: flex;
  min-height: 104px;
  padding: 16px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.metric-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.metric-card small {
  color: var(--faint);
  font-size: 0.62rem;
}

.metric-card > strong {
  font: 800 clamp(1.15rem, 2vw, 1.6rem) var(--mono);
  letter-spacing: -0.04em;
}

.profile-tabs {
  display: flex;
  margin-top: 30px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar {
  display: none;
}

.profile-tabs button {
  position: relative;
  min-width: max-content;
  min-height: 48px;
  padding: 0 16px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-tabs button::after {
  position: absolute;
  right: 15px;
  bottom: -1px;
  left: 15px;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
}

.profile-tabs button.active {
  color: var(--text);
}

.profile-tabs button.active::after {
  transform: scaleX(1);
}

.profile-filterbar {
  display: flex;
  min-height: 72px;
  padding: 12px 14px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(17, 23, 32, 0.58);
}

.profile-filterbar label {
  display: flex;
  min-height: 40px;
  padding-left: 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.profile-filterbar label > span {
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-filterbar select {
  min-height: 38px;
  padding: 0 10px 0 3px;
  border: 0;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 750;
}

.filter-context {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.7rem;
}

.profile-filterbar.is-expanded {
  align-items: flex-end;
  flex-wrap: wrap;
}

.date-range-fields {
  display: grid;
  min-width: min(360px, 100%);
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 8px;
}

.date-range-fields label {
  min-width: 0;
}

.date-range-fields input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px 0 3px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  color-scheme: dark;
  font: 700 0.74rem var(--mono);
}

.date-range-fields input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.75);
  opacity: 0.78;
}

.date-range-fields input:focus-visible {
  border-radius: 5px;
  outline: 2px solid rgba(85, 201, 238, 0.9);
  outline-offset: 1px;
}

.profile-filter-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-filter-actions .button {
  min-height: 40px;
  padding-inline: 13px;
  font-size: 0.7rem;
}

.range-summary {
  display: inline-flex;
  min-height: 40px;
  padding: 7px 11px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.7rem;
}

.range-summary strong {
  color: var(--text);
  font: 750 0.72rem var(--mono);
}

.history-coverage {
  position: relative;
  display: grid;
  min-height: 82px;
  margin: 12px 0 0;
  padding: 14px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  overflow: hidden;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--faint);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.024), transparent 55%),
    rgba(17, 23, 32, 0.72);
}

.history-coverage.partial {
  border-color: rgba(242, 189, 98, 0.24);
  border-left-color: var(--amber);
  background:
    linear-gradient(110deg, rgba(242, 189, 98, 0.07), transparent 55%),
    rgba(17, 23, 32, 0.76);
}

.history-coverage.complete {
  border-color: rgba(53, 214, 178, 0.22);
  border-left-color: var(--mint);
  background:
    linear-gradient(110deg, rgba(53, 214, 178, 0.065), transparent 55%),
    rgba(17, 23, 32, 0.76);
}

.coverage-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.coverage-copy strong {
  color: var(--text);
  font-size: 0.78rem;
}

.coverage-copy span,
.coverage-copy small {
  color: var(--muted);
  font-size: 0.68rem;
}

.history-coverage.partial .coverage-copy strong {
  color: #f6d79f;
}

.history-coverage.complete .coverage-copy strong {
  color: #8ce8d2;
}

.coverage-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.coverage-actions .button,
.coverage-actions button {
  min-height: 38px;
  font-size: 0.68rem;
}

.history-progress {
  position: relative;
  width: 100%;
  height: 4px;
  grid-column: 1 / -1;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.history-progress::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: clamp(0%, var(--progress, 0%), 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  box-shadow: 0 0 12px rgba(53, 214, 178, 0.22);
  content: "";
  transition: width 220ms ease;
}

.history-coverage.partial .history-progress::after {
  background: linear-gradient(90deg, var(--coral), var(--amber));
  box-shadow: 0 0 12px rgba(242, 189, 98, 0.2);
}

.session-summary-grid {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.session-stat {
  display: flex;
  min-height: 92px;
  padding: 14px 15px;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(145deg, rgba(85, 201, 238, 0.035), transparent 58%),
    var(--surface);
}

.session-stat span,
.session-stat small {
  color: var(--muted);
  font-size: 0.66rem;
}

.session-stat strong {
  margin-top: 4px;
  color: var(--text);
  font: 800 1.2rem var(--mono);
  letter-spacing: -0.03em;
}

.session-list {
  display: grid;
  gap: 10px;
}

.session-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 89, 100, 0.035), transparent 42%),
    var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

.session-head {
  display: flex;
  min-height: 76px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.session-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.session-head h3,
.session-head strong {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
}

.session-head p,
.session-head small,
.session-head span {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.67rem;
}

.session-head > b {
  color: var(--mint);
  font: 800 0.8rem var(--mono);
}

.session-games {
  display: grid;
  padding: 5px 12px 10px;
}

.session-game {
  display: flex;
  min-width: 0;
  min-height: 56px;
  padding: 8px 5px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  font-size: 0.72rem;
  text-align: left;
  transition: background 150ms ease;
}

.session-game:last-child {
  border-bottom: 0;
}

.session-game:is(button, a) {
  width: 100%;
}

.session-game:is(button, a):hover {
  background: rgba(255, 255, 255, 0.028);
}

.session-game > :nth-child(2) {
  min-width: 150px;
  flex: 1 1 220px;
}

.session-game strong {
  font-size: 0.75rem;
}

.session-game small {
  color: var(--muted);
  font-size: 0.64rem;
}

.session-game > span:not(.session-dot) {
  min-width: max-content;
  color: var(--muted);
  font: 700 0.68rem var(--mono);
}

.session-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--faint);
  box-shadow: 0 0 0 4px rgba(104, 117, 134, 0.1);
}

.session-dot.win,
.session-dot.result-win,
.session-game.result-win .session-dot {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(53, 214, 178, 0.1);
}

.session-dot.loss,
.session-dot.result-loss,
.session-game.result-loss .session-dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 89, 100, 0.1);
}

.profile-view {
  padding-top: 14px;
}

.profile-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 14px;
}

.profile-primary,
.profile-secondary {
  display: grid;
  gap: 14px;
}

.trend-panel {
  overflow: hidden;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 17px;
  height: 2px;
  margin-left: 7px;
}

.legend-acs {
  background: var(--mint);
}

.legend-kd {
  background: var(--coral);
}

.trend-chart {
  position: relative;
  padding: 12px 18px 12px;
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: 230px;
  overflow: visible;
}

.trend-chart.large svg {
  height: 300px;
}

.chart-grid line {
  stroke: rgba(151, 165, 183, 0.14);
  stroke-width: 1;
  stroke-dasharray: 4 7;
}

.chart-line {
  fill: none;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.chart-line-acs {
  stroke: var(--mint);
}

.chart-line-kd {
  stroke: var(--coral);
}

.chart-results {
  position: relative;
  height: 20px;
  margin: 0 27px;
}

.chart-results span {
  position: absolute;
  left: var(--x);
  color: var(--faint);
  font: 650 0.59rem var(--mono);
  transform: translateX(-50%);
}

.match-list {
  display: grid;
  padding: 8px;
  gap: 6px;
}

.match-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 82px;
  padding: 8px 12px 8px 8px;
  grid-template-columns: 76px minmax(150px, 1fr) minmax(160px, 1.2fr) 104px repeat(3, 64px) 42px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--faint);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}

.match-card:hover {
  border-color: rgba(151, 165, 183, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.match-card.result-win {
  border-left-color: var(--mint);
}

.match-card.result-loss {
  border-left-color: var(--coral);
}

.match-card > span {
  min-width: 0;
}

.match-result-block {
  display: flex;
  min-height: 56px;
  padding-right: 10px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line-soft);
}

.match-result-block b {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-win .match-result-block b {
  color: var(--mint);
}

.result-loss .match-result-block b {
  color: var(--coral);
}

.match-result-block strong {
  margin-top: 3px;
  font: 800 1rem var(--mono);
}

.match-agent,
.match-map {
  display: flex;
  align-items: center;
  gap: 9px;
}

.match-agent > span:last-child,
.match-map > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.match-agent strong,
.match-map strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-agent small,
.match-map small,
.match-kda small,
.match-stat small {
  color: var(--faint);
  font-size: 0.62rem;
}

.match-map > img {
  width: 50px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
}

.match-kda,
.match-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.match-kda strong,
.match-stat strong {
  font: 750 0.8rem var(--mono);
}

.match-kda i {
  color: var(--faint);
  font-style: normal;
}

.match-arrow {
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 800;
  text-align: right;
}

.insight-list {
  padding: 8px 14px 14px;
}

.insight-row {
  display: grid;
  min-height: 74px;
  padding: 10px 0;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.insight-row:last-child {
  border-bottom: 0;
}

.insight-row > span {
  color: var(--faint);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.insight-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.insight-row strong {
  overflow: hidden;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-row small {
  color: var(--muted);
  font-size: 0.66rem;
}

.insight-row > b {
  color: var(--mint);
  font: 750 0.72rem var(--mono);
}

.mini-breakdown .panel-heading {
  align-items: center;
}

.mini-breakdown-list {
  padding: 8px 14px 14px;
}

.mini-breakdown-list > div {
  display: grid;
  min-height: 62px;
  grid-template-columns: 25px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-soft);
}

.mini-breakdown-list > div:last-child {
  border-bottom: 0;
}

.mini-rank {
  color: var(--faint);
  font: 0.62rem var(--mono);
}

.mini-breakdown-list > div > span:nth-child(3) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mini-breakdown-list strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-breakdown-list small {
  color: var(--faint);
  font-size: 0.63rem;
}

.mini-breakdown-list b {
  color: var(--mint);
  font: 750 0.72rem var(--mono);
}

.matches-panel,
.breakdown-panel,
.teammates-panel,
.rank-history-panel {
  overflow: hidden;
}

.matches-heading {
  align-items: center;
}

.match-filters {
  display: flex;
  gap: 8px;
}

.match-filters select,
.leaderboard-controls select,
.game-controls select,
.table-search input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  font-size: 0.78rem;
}

.match-list-full {
  padding: 12px;
}

.trends-layout {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.delta-card {
  display: flex;
  min-height: 128px;
  padding: 18px;
  flex-direction: column;
  justify-content: flex-end;
}

.delta-card > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.delta-card > strong {
  margin-top: 4px;
  font: 800 1.7rem var(--mono);
}

.delta-card small {
  margin-top: 7px;
  color: var(--faint);
  font-size: 0.7rem;
}

.positive {
  color: var(--mint) !important;
}

.negative {
  color: var(--coral) !important;
}

.rank-history-list {
  display: grid;
  padding: 8px 16px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
}

.rank-history-row {
  display: grid;
  min-height: 62px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.rank-history-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.rank-history-row strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-history-row small {
  color: var(--faint);
  font-size: 0.63rem;
}

.rank-history-row > b,
.rr-change {
  font: 750 0.72rem var(--mono);
}

.rr-change {
  color: var(--muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  white-space: nowrap;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}

.data-table thead th {
  color: var(--faint);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tbody th,
.data-table tbody td {
  font-size: 0.76rem;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.023);
}

.breakdown-table-wrap,
.leaderboard-table-wrap,
.scoreboard-wrap {
  overflow-x: auto;
}

.breakdown-table {
  min-width: 760px;
}

.table-identity {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.table-identity > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.table-identity strong {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-identity small {
  color: var(--faint);
  font-size: 0.64rem;
}

.table-meter {
  display: inline-flex;
  min-width: 90px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.table-meter::before {
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--mint) var(--value), rgba(255, 255, 255, 0.08) var(--value));
  content: "";
}

.teammate-grid {
  display: grid;
  padding: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.teammate-card {
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.teammate-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teammate-main > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.teammate-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teammate-main small {
  color: var(--muted);
  font-size: 0.72rem;
}

.teammate-stats {
  display: grid;
  margin: 14px 0;
  padding: 12px 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.teammate-stats span {
  display: flex;
  color: var(--faint);
  flex-direction: column;
  font-size: 0.61rem;
}

.teammate-stats b {
  color: var(--text);
  font: 750 0.82rem var(--mono);
}

.teammate-card > button {
  width: 100%;
  min-height: 42px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 750;
}

.leaderboard-page,
.game-page,
.compare-page,
.tools-page {
  padding-bottom: 100px;
}

.leaderboard-controls,
.game-controls {
  display: flex;
  min-height: 68px;
  padding: 10px;
  align-items: center;
  gap: 9px;
}

.region-tabs,
.segment-tabs {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
}

.region-tabs button,
.segment-tabs button,
.tool-tabs button {
  min-width: max-content;
  min-height: 42px;
  padding: 0 13px;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
}

.region-tabs button.active,
.segment-tabs button.active,
.tool-tabs button.active {
  color: white;
  background: var(--coral-strong);
}

.leaderboard-controls .table-search,
.game-controls .table-search {
  min-width: 180px;
  margin-left: auto;
}

.leaderboard-controls .table-search input,
.game-controls .table-search input {
  width: 100%;
}

#leaderboard-content {
  margin-top: 16px;
}

.leaderboard-meta {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.leaderboard-meta > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.podium-grid {
  display: grid;
  margin-bottom: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.podium-card {
  position: relative;
  display: grid;
  min-height: 210px;
  padding: 24px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 89, 100, 0.06), transparent 52%),
    var(--surface);
}

.podium-card::after {
  position: absolute;
  right: -38px;
  bottom: -52px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  content: "";
  transform: rotate(45deg);
}

.podium-position {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--coral);
  font: 800 0.82rem var(--mono);
}

.podium-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.podium-card > div strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-card small,
.podium-card > span:last-child {
  color: var(--muted);
  font-size: 0.7rem;
}

.podium-card > b {
  color: var(--mint);
  font: 800 1rem var(--mono);
}

.leaderboard-table-panel {
  overflow: hidden;
}

.leaderboard-table {
  min-width: 860px;
}

.placement {
  font-family: var(--mono);
}

.rank-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rank-cell img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.row-link {
  color: var(--mint);
  font-weight: 800;
}

.pagination {
  display: flex;
  min-height: 76px;
  padding: 14px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
}

.pagination span {
  color: var(--muted);
  font-size: 0.75rem;
}

.game-content {
  margin-top: 16px;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.agent-card {
  position: relative;
  min-height: 390px;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.agent-art {
  display: block;
  height: 235px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-2), var(--bg-soft));
}

.agent-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 220ms ease;
}

.agent-card:hover .agent-art img {
  transform: scale(1.025);
}

.agent-card-copy {
  display: flex;
  padding: 17px 18px 50px;
  flex-direction: column;
}

.agent-card-copy small {
  color: var(--coral);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.agent-card-copy strong {
  margin-top: 4px;
  font-size: 1.2rem;
}

.agent-card-copy > span {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.agent-card > b {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--muted);
  font-size: 0.68rem;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.map-card {
  position: relative;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.map-card > img,
.map-card-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-card > img {
  object-fit: cover;
  transition: transform 260ms ease;
}

.map-card:hover > img {
  transform: scale(1.025);
}

.map-card-shade {
  background: linear-gradient(0deg, rgba(9, 11, 16, 0.98), rgba(9, 11, 16, 0.08) 70%);
}

.map-card > span:last-child {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  flex-direction: column;
}

.map-card small,
.map-card b {
  color: var(--muted);
  font-size: 0.66rem;
}

.map-card strong {
  font-size: 1.45rem;
}

.weapon-table-panel {
  padding: 10px;
}

.weapon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.weapon-card {
  display: grid;
  min-height: 150px;
  padding: 16px;
  grid-template-columns: 110px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 8px 14px;
  color: var(--text);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
}

.weapon-card:hover {
  border-color: rgba(85, 201, 238, 0.4);
  background: rgba(85, 201, 238, 0.035);
}

.weapon-card > span {
  display: grid;
  width: 110px;
  height: 60px;
  grid-row: 1 / 3;
  place-items: center;
}

.weapon-card img {
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.weapon-card > div {
  display: flex;
  flex-direction: column;
}

.weapon-card small {
  color: var(--coral);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.weapon-card dl {
  display: flex;
  margin: 0;
  gap: 16px;
}

.weapon-card dl div {
  display: flex;
  flex-direction: column;
}

.weapon-card dt {
  color: var(--faint);
  font-size: 0.58rem;
}

.weapon-card dd {
  margin: 0;
  font: 700 0.7rem var(--mono);
}

.compare-form {
  padding: 18px;
}

.compare-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compare-form input,
.compare-form select,
.calculator-card input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.compare-options {
  display: grid;
  margin-top: 12px;
  grid-template-columns: 180px 140px auto;
  align-items: end;
  justify-content: end;
  gap: 10px;
}

#compare-results {
  margin-top: 16px;
}

.compare-empty {
  min-height: 300px;
}

.comparison-results {
  display: grid;
  gap: 14px;
}

.comparison-players {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.comparison-player {
  display: grid;
  min-height: 170px;
  padding: 20px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.comparison-player > div {
  min-width: 0;
}

.comparison-player h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.comparison-player h2 span {
  color: var(--muted);
  font-size: 0.72em;
  font-weight: 550;
}

.comparison-player p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.comparison-player .text-link {
  grid-column: 2 / 4;
  justify-self: start;
}

.comparison-metrics {
  overflow: hidden;
}

.comparison-metric-row {
  display: grid;
  min-height: 120px;
  padding: 16px 20px;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.comparison-metric-row:last-child {
  border-bottom: 0;
}

.comparison-metric-row > strong {
  color: var(--muted);
  font-size: 0.76rem;
}

.comparison-values {
  display: grid;
  gap: 9px;
}

.comparison-values > div {
  display: grid;
  grid-template-columns: 120px minmax(80px, 1fr) 60px;
  align-items: center;
  gap: 10px;
}

.comparison-values span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comparison-values i {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.comparison-values i b {
  display: block;
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background: var(--faint);
}

.comparison-values > div > strong {
  text-align: right;
  font: 750 0.76rem var(--mono);
}

.comparison-values .metric-winner i b {
  background: var(--mint);
}

.comparison-values .metric-winner > strong {
  color: var(--mint);
}

.comparison-breakdowns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compare-read {
  display: grid;
  padding: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.compare-read > div {
  display: flex;
  min-height: 92px;
  padding: 12px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.compare-read span,
.compare-read small {
  color: var(--faint);
  font-size: 0.62rem;
}

.compare-read strong {
  margin: 4px 0;
  overflow: hidden;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-tabs {
  display: flex;
  min-height: 64px;
  padding: 10px;
  gap: 4px;
}

.tool-content {
  margin-top: 16px;
}

.crosshair-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 14px;
}

.crosshair-stage {
  overflow: hidden;
}

.crosshair-preview {
  position: relative;
  display: grid;
  min-height: 480px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at center, #303b46 0, #19222d 36%, #10161f 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.crosshair-preview::before {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  content: "";
}

.preview-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 750;
}

.crosshair-shape {
  position: relative;
  display: block;
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
}

.crosshair-shape i {
  position: absolute;
  display: block;
  background: var(--crosshair);
}

.crosshair-top,
.crosshair-bottom {
  left: calc(50% - var(--thickness) / 2);
  width: var(--thickness);
  height: var(--length);
}

.crosshair-top {
  bottom: calc(50% + var(--gap));
}

.crosshair-bottom {
  top: calc(50% + var(--gap));
}

.crosshair-left,
.crosshair-right {
  top: calc(50% - var(--thickness) / 2);
  width: var(--length);
  height: var(--thickness);
}

.crosshair-left {
  right: calc(50% + var(--gap));
}

.crosshair-right {
  left: calc(50% + var(--gap));
}

.crosshair-dot {
  top: calc(50% - var(--thickness));
  left: calc(50% - var(--thickness));
  width: calc(var(--thickness) * 2) !important;
  height: calc(var(--thickness) * 2) !important;
}

.crosshair-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.crosshair-card {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}

.crosshair-card.active {
  border-color: rgba(53, 214, 178, 0.45);
}

.crosshair-select {
  display: grid;
  width: 100%;
  min-height: 120px;
  padding: 10px;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text);
  border: 0;
  background: transparent;
  text-align: left;
}

.mini-crosshair {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 8px;
  background: #242d37;
}

.mini-crosshair .crosshair-shape {
  transform: scale(0.72);
}

.crosshair-select > span:last-child {
  display: flex;
  flex-direction: column;
}

.crosshair-select small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
}

.crosshair-card > .button {
  width: 100%;
}

.crosshair-help {
  grid-column: 2;
  padding: 24px;
}

.crosshair-help h2 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.crosshair-help p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(360px, 1.2fr);
  align-items: stretch;
  gap: 14px;
}

.calculator-card {
  padding: 20px;
}

.calculator-card .panel-heading {
  margin: -20px -20px 18px;
}

.calculator-card label {
  display: block;
  margin-top: 13px;
}

.calculator-card > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.split-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calculator-results {
  display: flex;
  min-height: 500px;
  padding: 38px;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(140deg, rgba(53, 214, 178, 0.08), transparent 48%),
    var(--surface);
}

.big-result {
  display: flex;
  flex-direction: column;
}

.big-result strong {
  font: 850 clamp(4rem, 8vw, 7.5rem)/0.9 var(--mono);
  letter-spacing: -0.09em;
}

.big-result span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-grid {
  display: grid;
  margin-top: 40px;
  padding-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}

.result-grid > div {
  display: flex;
  flex-direction: column;
}

.result-grid span {
  color: var(--faint);
  font-size: 0.66rem;
}

.result-grid strong {
  margin-top: 4px;
  font: 750 1rem var(--mono);
}

.result-note {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  display: grid;
  width: min(calc(100% - 40px), 1320px);
  min-height: 220px;
  margin-inline: auto;
  padding-block: 46px;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 28px;
  border-top: 1px solid var(--line-soft);
}

.site-footer > div:first-child p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  min-height: 44px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.legal {
  grid-column: 1 / -1;
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.68rem;
}

.modal-shell {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  padding: 18px;
  place-items: center;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: sticky;
  z-index: 4;
  top: 12px;
  display: block;
  min-width: 60px;
  min-height: 40px;
  margin: 12px 12px -52px auto;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 11, 16, 0.88);
  font-size: 0.7rem;
  font-weight: 800;
}

.match-modal-loading,
.modal-error {
  display: flex;
  min-height: 420px;
  padding: 60px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.match-modal-loading h2,
.modal-error h2 {
  margin: 20px 0 8px;
}

.match-modal-loading p,
.modal-error p {
  color: var(--muted);
}

.match-report-header {
  display: flex;
  min-height: 190px;
  padding: 46px 30px 28px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 3px solid var(--faint);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.04), transparent);
}

.match-report-header.result-win {
  border-bottom-color: var(--mint);
  background: linear-gradient(140deg, rgba(53, 214, 178, 0.08), transparent);
}

.match-report-header.result-loss {
  border-bottom-color: var(--coral);
  background: linear-gradient(140deg, rgba(255, 89, 100, 0.08), transparent);
}

.match-report-header h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.match-report-header h2 span {
  color: var(--muted);
  font-family: var(--mono);
}

.match-report-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.match-report-player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-report-player > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.match-report-player small {
  color: var(--muted);
  font-size: 0.72rem;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
}

.detail-metrics > div {
  display: flex;
  min-height: 90px;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line-soft);
}

.detail-metrics > div:last-child {
  border-right: 0;
}

.detail-metrics span {
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-metrics strong {
  margin-top: 5px;
  font: 800 1.05rem var(--mono);
}

.match-report-notice {
  display: flex;
  min-height: 48px;
  padding: 10px 24px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(242, 189, 98, 0.06);
  font-size: 0.72rem;
}

.match-report-notice strong {
  flex: 0 0 auto;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.match-report-notice.is-loading strong::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(85, 201, 238, 0.1);
  content: "";
}

.report-section {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.report-section .panel-heading {
  padding: 0 0 14px;
  border: 0;
}

.scoreboard-team {
  --team-accent: var(--faint);
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--team-accent);
  border-radius: 9px;
  background: #0e131b;
}

.scoreboard-team.team-red {
  --team-accent: var(--coral);
}

.scoreboard-team.team-blue {
  --team-accent: var(--cyan);
}

.scoreboard-toolbar {
  display: flex;
  min-height: 64px;
  padding: 10px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.scoreboard-toolbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scoreboard-toolbar label,
.party-legend-title {
  color: var(--faint);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scoreboard-toolbar select,
.scoreboard-direction {
  min-height: 42px;
  padding: 0 11px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.scoreboard-direction {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.scoreboard-direction span {
  color: var(--cyan);
  font: 850 0.9rem var(--mono);
}

.scoreboard-toolbar > p {
  margin: 0;
  color: var(--faint);
  font-size: 0.65rem;
  text-align: right;
}

.party-legend {
  display: flex;
  margin-top: 10px;
  padding: 9px 11px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.012);
}

.party-legend-group {
  display: grid;
  max-width: min(360px, 100%);
  min-height: 34px;
  padding: 4px 9px 4px 7px;
  grid-template-columns: 7px auto;
  align-items: center;
  gap: 0 7px;
  border: 1px solid color-mix(in srgb, var(--party-color) 35%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--party-color) 7%, transparent);
}

.party-legend-group > i {
  width: 5px;
  height: 24px;
  grid-row: 1 / 3;
  border-radius: 99px;
  background: var(--party-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--party-color) 45%, transparent);
}

.party-legend-group strong {
  color: var(--text);
  font-size: 0.65rem;
}

.party-legend-group span {
  overflow: hidden;
  color: var(--faint);
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.party-legend-note {
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.66rem;
}

.party-legend-note strong {
  color: var(--muted);
}

.scoreboard-data-note {
  margin: 8px 2px 0;
  color: var(--faint);
  font-size: 0.62rem;
}

.scoreboard-team-heading {
  display: flex;
  min-height: 48px;
  padding: 8px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.scoreboard-team-heading > div,
.scoreboard-team-heading > p {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 9px;
}

.scoreboard-team-heading > div > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scoreboard-team-heading > div > strong {
  color: var(--team-accent);
  font: 850 1rem var(--mono);
}

.scoreboard-team-heading > div > b {
  padding: 3px 6px;
  color: var(--mint);
  border: 1px solid rgba(53, 214, 178, 0.24);
  border-radius: 4px;
  background: var(--mint-soft);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scoreboard-team-heading > p span {
  color: var(--faint);
  font-size: 0.63rem;
}

.scoreboard-team-heading > p span:first-child {
  color: var(--muted);
  font-weight: 750;
}

.scoreboard {
  min-width: 1660px;
}

.scoreboard thead th {
  padding: 0;
}

.scoreboard thead th:first-child,
.scoreboard tbody th:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  min-width: 290px;
  background: #10161f;
  box-shadow: 1px 0 0 var(--line-soft), 12px 0 24px rgba(0, 0, 0, 0.18);
}

.scoreboard thead th:first-child {
  z-index: 3;
  background: #131a24;
}

.scoreboard tbody tr:hover th:first-child {
  background: #151c26;
}

.scoreboard tr.selected-player th:first-child {
  background: #10231f;
}

.scoreboard tr.selected-player {
  background: var(--mint-soft);
}

.scoreboard-sort {
  display: inline-flex;
  width: 100%;
  min-width: 58px;
  min-height: 44px;
  padding: 0 11px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--faint);
  border: 0;
  background: transparent;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scoreboard-column-player .scoreboard-sort {
  min-width: 290px;
  justify-content: flex-start;
}

.scoreboard-sort:hover,
.scoreboard-sort.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.scoreboard-sort.active i {
  color: var(--cyan);
}

.scoreboard-sort i {
  color: var(--faint);
  font: 800 0.72rem var(--mono);
}

.scoreboard-player-cell {
  position: relative;
}

.scoreboard-player-cell.has-party::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 4px;
  border-radius: 0 99px 99px 0;
  background: var(--party-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--party-color) 45%, transparent);
  content: "";
}

.scoreboard-player-cell .table-identity > span:last-child {
  gap: 3px;
}

.scoreboard-player-cell .table-identity small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.you-badge,
.party-badge {
  display: inline-flex;
  min-height: 18px;
  padding: 2px 5px;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.you-badge {
  color: var(--mint);
  background: var(--mint-soft);
}

.party-badge {
  color: color-mix(in srgb, var(--party-color) 78%, white);
  border: 1px solid color-mix(in srgb, var(--party-color) 32%, transparent);
  background: color-mix(in srgb, var(--party-color) 10%, transparent);
}

.party-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--party-color);
}

.party-badge.is-solo {
  color: var(--faint);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.scoreboard td {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.scoreboard td.is-positive {
  color: var(--mint);
}

.scoreboard td.is-negative {
  color: var(--coral);
}

.party-color-0 { --party-color: #55c9ee; }
.party-color-1 { --party-color: #f2bd62; }
.party-color-2 { --party-color: #c884ff; }
.party-color-3 { --party-color: #5ee28c; }
.party-color-4 { --party-color: #ff7eb6; }
.party-color-5 { --party-color: #ff8a5b; }

.round-strip {
  display: flex;
  margin: 0;
  padding: 0 0 6px;
  overflow-x: auto;
  gap: 6px;
  list-style: none;
}

.round-strip li {
  display: flex;
  min-width: 58px;
  min-height: 60px;
  padding: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.round-strip li.team-red {
  border-top: 3px solid var(--coral);
}

.round-strip li.team-blue {
  border-top: 3px solid var(--cyan);
}

.round-strip span {
  font: 800 0.76rem var(--mono);
}

.round-strip small {
  max-width: 48px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--faint);
  font-size: 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.report-split .report-section {
  border-right: 1px solid var(--line-soft);
}

.report-split .report-section:last-child {
  border-right: 0;
}

.weapon-bars,
.first-blood-list {
  display: grid;
  gap: 8px;
}

.weapon-bars > div {
  display: grid;
  min-height: 44px;
  grid-template-columns: 130px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
}

.weapon-bars > div > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.weapon-bars img {
  width: 36px;
  height: 22px;
  object-fit: contain;
}

.weapon-bars b {
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weapon-bars i {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.weapon-bars i span {
  display: block;
  width: var(--width);
  height: 100%;
  background: var(--mint);
}

.weapon-bars > div > strong {
  font: 750 0.72rem var(--mono);
  text-align: right;
}

.first-blood-list > div {
  display: grid;
  min-height: 46px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 2px 9px;
  border-bottom: 1px solid var(--line-soft);
}

.first-blood-list > div > span {
  grid-row: 1 / 3;
  color: var(--coral);
  font: 700 0.65rem var(--mono);
}

.first-blood-list strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.first-blood-list small {
  color: var(--faint);
  font-size: 0.62rem;
}

.game-modal {
  min-height: 520px;
}

.agent-modal {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
}

.agent-modal-art {
  display: grid;
  min-height: 580px;
  place-items: end center;
  overflow: hidden;
  background: linear-gradient(140deg, var(--surface-2), var(--bg));
}

.agent-modal-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.agent-modal-copy {
  padding: 70px 40px 40px;
}

.agent-modal-copy h2,
.map-modal h2,
.weapon-modal h2 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.agent-modal-copy > p:nth-of-type(2) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.ability-grid {
  display: grid;
  margin-top: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ability-grid article {
  display: flex;
  min-height: 74px;
  padding: 12px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
}

.ability-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.ability-grid article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ability-grid small {
  color: var(--faint);
  font-size: 0.58rem;
}

.ability-grid strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-modal {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.map-modal > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.map-modal::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, var(--bg) 0%, rgba(9, 11, 16, 0.12) 80%);
}

.map-modal > div {
  position: absolute;
  z-index: 1;
  right: 40px;
  bottom: 40px;
  left: 40px;
}

.map-modal > div p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.weapon-modal {
  display: flex;
  min-height: 520px;
  padding: 70px 50px 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.weapon-modal > img {
  width: min(580px, 90%);
  max-height: 220px;
  margin: 70px 0 40px;
  object-fit: contain;
}

.weapon-modal .detail-metrics {
  width: min(480px, 100%);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  grid-template-columns: 1fr 1fr;
}

.toast-region {
  position: fixed;
  z-index: 210;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(360px, calc(100vw - 36px));
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-height: 52px;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 9px;
  background: rgba(17, 23, 32, 0.96);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-left-color: var(--mint);
}

.toast-warning {
  border-left-color: var(--amber);
}

.toast-error {
  border-left-color: var(--coral);
}

.mini-state {
  display: flex;
  min-height: 130px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
}

.mini-state > span {
  color: var(--faint);
  font: 800 1.4rem var(--mono);
}

.mini-state p {
  margin: 8px 0 0;
  font-size: 0.76rem;
}

.mini-state button {
  min-height: 40px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.route-loading,
.route-error,
.not-found {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  padding-block: 80px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.loading-brand {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: white;
  border-radius: 13px;
  background: var(--coral-strong);
  font-weight: 900;
  animation: loading-pulse 1.2s ease-in-out infinite alternate;
}

.route-loading p {
  margin-top: 18px;
  color: var(--muted);
}

.route-error .error-code,
.not-found > span:first-child {
  color: var(--coral);
  font: 850 clamp(4rem, 12vw, 9rem)/1 var(--mono);
  letter-spacing: -0.08em;
}

.route-error h1,
.not-found h1 {
  max-width: 850px;
  margin: 8px 0 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.route-error > p:not(.eyebrow),
.not-found > p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0;
  color: var(--muted);
}

.route-error > div {
  display: flex;
  gap: 9px;
}

.profile-loading {
  padding-block: 40px 90px;
}

.profile-loading .profile-banner {
  display: flex;
  padding: 36px;
  align-items: center;
  gap: 18px;
  border-radius: var(--radius);
}

.skeleton-avatar {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.skeleton-copy {
  display: flex;
  width: min(400px, 60%);
  gap: 9px;
  flex-direction: column;
}

.skeleton-copy span,
.skeleton-copy strong {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.skeleton-copy strong {
  width: 70%;
  height: 30px;
}

.skeleton-tall {
  min-height: 420px;
  margin-top: 14px;
}

.loading-copy {
  color: var(--muted);
  text-align: center;
}

.skeleton-block {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.skeleton-block::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: translateX(-100%);
  animation: skeleton 1.25s infinite;
}

.row-skeleton {
  display: grid;
  height: 64px;
  grid-template-columns: 40px 1fr 60px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.row-skeleton span,
.row-skeleton i,
.row-skeleton b {
  display: block;
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
}

.row-skeleton span {
  height: 38px;
}

.row-skeleton i {
  width: 60%;
}

.card-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.card-skeleton {
  min-height: 330px;
  border-radius: var(--radius);
}

.compare-loading p {
  color: var(--muted);
  text-align: center;
}

@keyframes skeleton {
  to { transform: translateX(100%); }
}

@keyframes loading-pulse {
  to { opacity: 0.55; }
}

@media (max-width: 1240px) {
  .desktop-nav {
    display: none;
  }

  .header-search {
    width: min(440px, 48vw);
  }

  .mobile-toggle {
    display: grid;
    margin-left: 0;
  }

  .mobile-panel {
    position: fixed;
    z-index: 79;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: block;
    max-height: calc(100vh - var(--header-height));
    padding: 16px;
    overflow: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 11, 16, 0.98);
    box-shadow: var(--shadow);
  }

  .mobile-panel[hidden] {
    display: none;
  }

  .mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .mobile-panel nav a {
    display: grid;
    min-height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: 0.74rem;
    font-weight: 750;
  }

  .mobile-search {
    display: grid;
    margin-top: 12px;
    grid-template-columns: 1fr 100px auto;
    gap: 7px;
  }

  .mobile-search input,
  .mobile-search select,
  .mobile-search button {
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .mobile-search button {
    color: white;
    border-color: var(--coral);
    background: var(--coral-strong);
    font-weight: 800;
  }

  .rank-strip {
    grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(105px, 0.65fr));
  }

  .scope-label {
    display: none;
  }

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

  .match-card {
    grid-template-columns: 70px minmax(150px, 1fr) minmax(140px, 1fr) 96px repeat(2, 60px) 35px;
  }

  .match-stat:nth-last-of-type(2) {
    display: none;
  }

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

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

  .comparison-players,
  .comparison-breakdowns {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 0;
    padding-block: 58px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-copy h1 {
    max-width: 760px;
  }

  .pulse-card {
    width: 100%;
  }

  .home-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-facts article:nth-child(2) {
    border-right: 0;
  }

  .home-facts article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .home-facts article:nth-child(3) {
    padding-left: 0;
  }

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

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

  .profile-banner-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-actions {
    justify-content: flex-start;
  }

  .rank-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-summary {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .rank-detail:nth-of-type(3) {
    border-right: 0;
  }

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

  .date-range-fields {
    flex: 1 1 340px;
  }

  .range-summary {
    flex: 1 1 auto;
  }

  .session-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-card {
    grid-template-columns: 70px minmax(150px, 1fr) minmax(150px, 1fr) 100px 58px 35px;
  }

  .match-stat:nth-last-of-type(3) {
    display: none;
  }

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

  .leaderboard-controls,
  .game-controls {
    flex-wrap: wrap;
  }

  .leaderboard-controls .region-tabs,
  .game-controls .segment-tabs {
    width: 100%;
  }

  .leaderboard-controls .table-search,
  .game-controls .table-search {
    min-width: min(300px, 100%);
    margin-left: 0;
  }

  .podium-card {
    padding: 18px;
    grid-template-columns: auto 1fr;
  }

  .podium-card > b,
  .podium-card > span:last-child {
    grid-column: 2;
  }

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

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

  .compare-inputs {
    grid-template-columns: 1fr;
  }

  .compare-options {
    grid-template-columns: 1fr 1fr auto;
  }

  .crosshair-layout,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .crosshair-help {
    grid-column: 1;
  }

  .calculator-results {
    min-height: 420px;
  }

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

  .report-split .report-section {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 60px;
  }

  .section-pad {
    width: min(calc(100% - 24px), 1320px);
  }

  .header-inner {
    width: calc(100% - 20px);
    gap: 10px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-search {
    min-width: 0;
    width: auto;
    flex: 1;
    grid-template-columns: minmax(80px, 1fr) 58px 48px;
  }

  .header-search button {
    padding: 0 8px;
    font-size: 0;
  }

  .header-search button::after {
    content: "Go";
    font-size: 0.72rem;
  }

  .mobile-toggle {
    width: 42px;
    height: 42px;
  }

  .mobile-panel nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-panel nav a:last-child {
    grid-column: 1 / -1;
  }

  .mobile-search {
    grid-template-columns: 1fr 88px;
  }

  .mobile-search button {
    grid-column: 1 / -1;
  }

  .home-hero {
    padding-block: 42px;
  }

  .home-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .hero-lede {
    margin-block: 20px;
  }

  .hero-search {
    grid-template-columns: 1fr 1fr;
  }

  .hero-input {
    grid-column: 1 / -1;
  }

  .hero-search .button-search {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  .quick-profiles > span {
    width: 100%;
  }

  .saved-section,
  .feature-section {
    padding-block: 60px;
  }

  .saved-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-heading {
    flex-direction: column;
  }

  .feature-card {
    min-height: 190px;
  }

  .feature-card h3 {
    margin-top: 34px;
  }

  .cta-section {
    min-height: 340px;
    margin-bottom: 48px;
    padding: 32px 24px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }

  .profile-banner-content {
    padding-block: 28px;
  }

  .profile-identity {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .profile-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-detail {
    border-bottom: 1px solid var(--line-soft);
  }

  .rank-detail:last-of-type {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

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

  .metric-card {
    min-height: 94px;
  }

  .profile-filterbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .profile-filterbar label {
    flex: 1;
  }

  .profile-filterbar.is-expanded {
    padding-block: 14px;
  }

  .date-range-fields,
  .range-summary,
  .profile-filter-actions {
    width: 100%;
  }

  .date-range-fields label {
    flex: initial;
  }

  .profile-filter-actions {
    margin-left: 0;
    justify-content: flex-start;
  }

  .history-coverage {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .coverage-actions {
    justify-content: flex-start;
  }

  .filter-context {
    width: 100%;
    margin-left: 0;
    padding: 4px 2px;
  }

  .session-game {
    padding-block: 11px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .session-game > :nth-child(2) {
    flex-basis: calc(100% - 24px);
  }

  .session-game > span:not(.session-dot) {
    margin-left: 18px;
  }

  .match-card {
    min-height: 112px;
    padding: 9px;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 7px 9px;
  }

  .match-result-block {
    grid-row: 1 / 3;
  }

  .match-agent {
    grid-column: 2;
  }

  .match-map {
    grid-column: 2;
  }

  .match-map > img {
    display: none;
  }

  .match-kda {
    grid-column: 3;
    grid-row: 1;
  }

  .match-stat,
  .match-arrow {
    display: none !important;
  }

  .trend-chart {
    padding-inline: 8px;
  }

  .trend-chart svg {
    height: 200px;
  }

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

  .rank-history-list {
    grid-template-columns: 1fr;
  }

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

  .matches-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .match-filters {
    width: 100%;
  }

  .match-filters label {
    flex: 1;
  }

  .match-filters select {
    width: 100%;
  }

  .page-hero {
    padding-block: 58px 28px;
  }

  .compact-hero {
    min-height: 250px;
  }

  .page-hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.7rem);
  }

  .leaderboard-controls .table-search,
  .game-controls .table-search {
    flex: 1;
  }

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

  .podium-card {
    min-height: 145px;
    grid-template-columns: auto 1fr auto;
  }

  .podium-card > b {
    grid-column: 3;
  }

  .podium-card > span:last-child {
    display: none;
  }

  .agent-grid,
  .map-grid,
  .weapon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card {
    min-height: 300px;
  }

  .agent-art {
    height: 175px;
  }

  .agent-card-copy {
    padding: 14px 14px 46px;
  }

  .map-card {
    min-height: 180px;
  }

  .map-card > span:last-child {
    right: 14px;
    bottom: 12px;
    left: 14px;
  }

  .weapon-card {
    min-height: 180px;
    padding: 13px;
    grid-template-columns: 1fr;
  }

  .weapon-card > span {
    width: 100%;
    grid-row: auto;
  }

  .weapon-card dl {
    flex-wrap: wrap;
  }

  .compare-options {
    grid-template-columns: 1fr 1fr;
  }

  .compare-options .button {
    grid-column: 1 / -1;
  }

  .comparison-metric-row {
    grid-template-columns: 1fr;
  }

  .comparison-values > div {
    grid-template-columns: 80px minmax(60px, 1fr) 52px;
  }

  .crosshair-presets {
    grid-template-columns: 1fr;
  }

  .crosshair-preview {
    min-height: 380px;
  }

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

  .calculator-results {
    min-height: 460px;
    padding: 28px;
  }

  .scoreboard-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .scoreboard-toolbar > div {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .scoreboard-toolbar label {
    grid-column: 1 / -1;
  }

  .scoreboard-toolbar select {
    width: 100%;
  }

  .scoreboard-toolbar > p {
    text-align: left;
  }

  .scoreboard-team-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .party-legend {
    align-items: stretch;
    flex-direction: column;
  }

  .party-legend-group {
    max-width: 100%;
  }

  .match-report-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-metrics > div:nth-child(3) {
    border-right: 0;
  }

  .detail-metrics > div:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line-soft);
  }

  .agent-modal {
    grid-template-columns: 1fr;
  }

  .agent-modal-art {
    min-height: 340px;
  }

  .agent-modal-copy {
    padding: 42px 24px 30px;
  }

  .map-modal {
    min-height: 500px;
  }

  .map-modal > div {
    right: 24px;
    bottom: 30px;
    left: 24px;
  }

  .site-footer {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .legal {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .header-search {
    grid-template-columns: minmax(72px, 1fr) 50px 44px;
  }

  .header-search input {
    padding-inline: 8px;
    font-size: 0.78rem;
  }

  .header-search select {
    padding-inline: 4px;
    font-size: 0.68rem;
  }

  .home-facts article {
    padding-inline: 14px;
  }

  .home-facts strong {
    font-size: 1.35rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-identity {
    flex-direction: column;
  }

  .profile-status-row {
    margin-top: 4px;
  }

  .rank-summary {
    align-items: flex-start;
  }

  .date-range-fields {
    grid-template-columns: 1fr;
  }

  .range-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .profile-filter-actions .button,
  .coverage-actions .button,
  .coverage-actions button {
    flex: 1 1 auto;
  }

  .history-coverage {
    padding: 13px;
  }

  .coverage-actions {
    width: 100%;
  }

  .session-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-stat {
    min-height: 84px;
    padding: 12px;
  }

  .session-head {
    padding: 13px 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .session-games {
    padding-inline: 9px;
  }

  .rank-emblem {
    width: 56px;
    height: 56px;
  }

  .metric-card {
    padding: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-card > strong {
    font-size: 1.3rem;
  }

  .agent-grid,
  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card {
    min-height: 265px;
  }

  .agent-art {
    height: 145px;
  }

  .agent-card-copy > span {
    display: none;
  }

  .agent-card-copy strong {
    font-size: 1rem;
  }

  .map-card {
    min-height: 150px;
  }

  .map-card b {
    display: none;
  }

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

  .comparison-player {
    grid-template-columns: auto 1fr;
  }

  .comparison-player > .grade {
    position: absolute;
    visibility: hidden;
  }

  .comparison-player .text-link {
    grid-column: 2;
  }

  .tool-tabs {
    overflow-x: auto;
  }

  .crosshair-select {
    grid-template-columns: 74px 1fr;
  }

  .mini-crosshair {
    width: 74px;
    height: 74px;
  }

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

  .big-result strong {
    font-size: 3.6rem;
  }

  .report-section {
    padding-inline: 14px;
  }

  .match-report-notice {
    padding-inline: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .scoreboard-toolbar > div {
    grid-template-columns: 1fr;
  }

  .scoreboard-direction {
    width: 100%;
    justify-content: center;
  }

  .scoreboard-team-heading > p {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .scoreboard thead th:first-child,
  .scoreboard tbody th:first-child,
  .scoreboard-column-player .scoreboard-sort {
    min-width: 248px;
  }

  .match-report-header {
    padding-inline: 18px;
  }

  .detail-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-metrics > div,
  .detail-metrics > div:nth-child(3) {
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .detail-metrics > div:nth-child(even) {
    border-right: 0;
  }

  .detail-metrics > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================================================== */
/* V4 — TACTICAL EDITORIAL SYSTEM                                             */
/* Flat graphite surfaces, porcelain type, coral structure, mint outcomes.    */
/* This override layer deliberately preserves the existing component markup.   */
/* ========================================================================== */

:root {
  --bg: #080d11;
  --bg-soft: #0b1116;
  --surface: #0e151a;
  --surface-2: #121b21;
  --surface-3: #182229;
  --line: #2a353c;
  --line-soft: #202a30;
  --text: #f2f0ea;
  --muted: #abb1b3;
  --faint: #7f898e;
  --coral: #f45d60;
  --coral-strong: #ed5155;
  --coral-soft: rgba(244, 93, 96, 0.1);
  --mint: #66d2ad;
  --mint-soft: rgba(102, 210, 173, 0.1);
  --cyan: #69bdd2;
  --amber: #e8b963;
  --danger: #f36a70;
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --shadow: none;
  --header-height: 76px;
  --font: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
}

html {
  background: var(--bg);
  scrollbar-color: #39464d #0a1014;
  scrollbar-width: thin;
}

body {
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(138, 151, 158, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 151, 158, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  font-size: 15px;
}

* {
  scrollbar-color: #39464d #0a1014;
  scrollbar-width: thin;
}

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

*::-webkit-scrollbar-track {
  background: #0a1014;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid #0a1014;
  border-radius: 0;
  background: #39464d;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

::selection {
  color: #080d11;
  background: var(--coral);
}

.section-pad {
  width: min(calc(100% - 32px), 1480px);
}

.eyebrow {
  margin-bottom: 7px;
  color: #969fa3;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  box-shadow: none;
}

.site-header {
  height: var(--header-height);
  border-color: var(--line);
  background: #090f13;
  backdrop-filter: none;
}

.header-inner {
  width: min(calc(100% - 32px), 1580px);
  gap: 26px;
}

.brand {
  min-height: 46px;
  gap: 12px;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: var(--coral-strong);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
  font: 900 1.03rem/1 var(--display);
  letter-spacing: -0.06em;
}

.brand-mark::after {
  display: none;
}

.brand-mark-small {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.brand-copy {
  line-height: 1;
}

.brand-copy strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  font-stretch: condensed;
  font-weight: 850;
  letter-spacing: 0.035em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--coral);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

.desktop-nav {
  display: flex;
  gap: 1px;
}

.nav-link {
  min-height: var(--header-height);
  padding-inline: 15px;
  color: #aab0b2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.nav-link::after {
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 3px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.header-search {
  width: min(390px, 29vw);
  min-width: 300px;
  height: 48px;
  grid-template-columns: minmax(120px, 1fr) 68px 72px;
  overflow: visible;
  border-color: #303c43;
  border-radius: 2px;
  background: #0d1419;
}

.header-search input,
.header-search select,
.header-search button {
  min-height: 46px;
}

.header-search input {
  padding-inline: 15px;
  color: var(--text);
  font-size: 0.81rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.table-search input::placeholder {
  color: #7f888c;
  opacity: 1;
}

.header-search select {
  color: #b8bdbe;
  border-color: var(--line);
  font-size: 0.7rem;
}

.header-search button {
  padding-inline: 14px;
  background: var(--coral-strong);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-toggle {
  border-radius: 2px;
  background: #10171c;
}

#app {
  border-right: 1px solid rgba(42, 53, 60, 0.48);
  border-left: 1px solid rgba(42, 53, 60, 0.48);
}

.button {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.button:hover:not(:disabled) {
  transform: none;
}

.button-primary {
  border-color: var(--coral-strong);
  background: var(--coral-strong);
}

.button-primary:hover {
  border-color: #ff7376;
  background: #f76669;
}

.button-quiet {
  border-color: var(--line);
  background: #11191e;
}

.button-quiet:hover,
.button-quiet.active {
  border-color: var(--coral);
  background: rgba(244, 93, 96, 0.08);
}

.button-light {
  color: #0a0f12;
  border-color: var(--text);
  background: var(--text);
}

.text-link,
.text-button {
  color: #d6d3cd;
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link::after,
.text-button::after {
  margin-left: 7px;
  color: var(--coral);
  content: "›";
  font-size: 1rem;
  line-height: 1;
}

.panel {
  border-color: var(--line-soft);
  border-radius: 2px;
  background: var(--surface);
  box-shadow: none;
}

.panel-heading {
  min-height: 58px;
  padding: 13px 16px;
  align-items: center;
  border-color: var(--line-soft);
}

.panel-heading h2,
.panel-heading h3,
.section-heading h2 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.panel-heading > span,
.panel-heading > p {
  color: #929b9f;
  font-size: 0.71rem;
}

/* Home */

.home-hero {
  min-height: 610px;
  padding-block: 74px 64px;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.72fr);
  gap: clamp(40px, 7vw, 100px);
  border-bottom: 1px solid var(--line-soft);
}

.home-copy h1,
.page-hero h1,
.profile-identity h1,
.match-report-header h2,
.agent-modal-copy h2,
.map-modal h2,
.weapon-modal h2,
.route-error h1,
.not-found h1 {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 850;
}

.home-copy h1 {
  max-width: 850px;
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  letter-spacing: -0.065em;
  line-height: 0.86;
  text-transform: uppercase;
}

.home-copy h1 span {
  color: var(--coral);
}

.hero-lede {
  max-width: 700px;
  margin: 24px 0 26px;
  color: #a9b0b2;
  font-size: 0.98rem;
  line-height: 1.62;
}

.hero-search {
  max-width: 790px;
  padding: 6px;
  grid-template-columns: minmax(200px, 1fr) 126px 106px auto;
  border-color: #354148;
  border-radius: 2px;
  background: #0d1419;
  box-shadow: none;
}

.hero-search label,
.calculator-card label > span,
.compare-form label > span {
  margin-bottom: 4px;
  color: #8f999d;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
}

.hero-search input,
.hero-search select,
.compare-form input,
.compare-form select,
.calculator-card input,
.match-filters select,
.leaderboard-controls select,
.game-controls select,
.table-search input {
  min-height: 44px;
  color: var(--text);
  border-color: var(--line);
  border-radius: 1px;
  background: #090f13;
  font-size: 0.78rem;
}

.hero-search .button-search {
  min-height: 60px;
}

.consent-note,
.quick-profiles > span {
  color: #899397;
  font-size: 0.7rem;
}

.quick-profile {
  min-height: 36px;
  border-radius: 2px;
  background: #0c1317;
}

.pulse-card {
  border-color: var(--line);
  border-radius: 2px;
  background: #0d1419;
  box-shadow: none;
}

.leader-preview {
  padding: 2px 12px 10px;
}

.leader-preview-row {
  min-height: 61px;
  border-color: var(--line-soft);
}

.leader-preview-row:hover {
  background: #121a20;
}

.leader-position,
.leader-identity small,
.leader-rating small {
  color: #879196;
  font-size: 0.7rem;
}

.leader-identity strong {
  font-size: 0.8rem;
}

.home-facts {
  padding-block: 0;
  border-top: 0;
  border-color: var(--line);
}

.home-facts article {
  min-height: 104px;
  padding-inline: 24px;
  border-color: var(--line-soft);
}

.home-facts strong {
  font-size: 1.55rem;
}

.home-facts span {
  color: #9aa2a5;
  font-size: 0.73rem;
}

.saved-section,
.feature-section {
  padding-block: 70px;
}

.saved-grid {
  gap: 8px;
}

.saved-card,
.feature-grid,
.empty-card,
.feature-card,
.cta-section {
  border-radius: 2px;
}

.saved-card {
  border-color: var(--line-soft);
  background: #0e151a;
}

.saved-main {
  min-height: 78px;
}

.saved-main small,
.empty-card p,
.feature-heading > p,
.feature-card p {
  color: #a3aaad;
}

.feature-grid {
  margin-top: 30px;
  border-color: var(--line-soft);
  background: var(--line-soft);
}

.feature-card {
  min-height: 204px;
  padding: 24px;
  background: #0b1116;
}

.feature-card h3 {
  margin-top: 44px;
  font-family: var(--display);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.cta-section {
  min-height: 230px;
  margin-bottom: 62px;
  border: 1px solid #ff7376;
  background: var(--coral-strong);
}

.cta-section h2 {
  font-family: var(--display);
  text-transform: uppercase;
}

/* Shared page mastheads */

.page-hero {
  padding-block: 60px 30px;
  border-bottom: 1px solid var(--line-soft);
}

.compact-hero {
  min-height: 228px;
  padding-top: 68px;
}

.page-hero h1 {
  font-size: clamp(3rem, 5.8vw, 5.4rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.page-hero > p:last-child {
  margin-top: 18px;
  color: #a9b0b2;
}

.avatar {
  border-color: #344048;
  border-radius: 2px;
  background: #172127;
}

.avatar-xs {
  border-radius: 50%;
}

/* Profile masthead, rank and metrics */

.profile-banner {
  min-height: 236px;
  border-color: var(--line);
  background: #0b1115;
}

.profile-banner-art {
  left: 42%;
  width: 58%;
  object-position: center 24%;
  opacity: 0.27;
  filter: grayscale(0.2) saturate(0.65) contrast(1.06);
}

.profile-banner-shade {
  background:
    linear-gradient(90deg, #090f13 0%, rgba(9, 15, 19, 0.94) 36%, rgba(9, 15, 19, 0.48) 74%, rgba(9, 15, 19, 0.78) 100%),
    linear-gradient(0deg, #080d11, transparent 62%);
}

.profile-banner-content {
  min-height: 236px;
  padding-block: 34px 30px;
}

.profile-identity {
  gap: 20px;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  border: 1px solid var(--coral);
  border-radius: 2px;
  background: #10171c;
}

.profile-status-row {
  margin-bottom: 7px;
  color: #a3abad;
  font-size: 0.71rem;
}

.data-badge {
  min-height: 23px;
  border-radius: 1px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.data-badge.live {
  color: #79d9b8;
  border-color: rgba(102, 210, 173, 0.42);
  background: rgba(102, 210, 173, 0.07);
}

.profile-identity h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  letter-spacing: -0.045em;
  text-transform: none;
}

.profile-identity h1 span {
  color: #a8afb1;
}

.profile-identity p {
  color: #a6adaf;
  font-size: 0.78rem;
}

.profile-actions {
  gap: 6px;
}

.profile-main {
  padding-block: 18px 74px;
}

.inline-alert {
  border-radius: 1px;
}

.rank-strip {
  min-height: 102px;
  grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(110px, 0.55fr)) minmax(170px, 0.8fr);
  border-color: var(--line);
  border-radius: 2px;
  background: #0d1419;
}

.rank-summary {
  padding: 13px 18px;
  border-color: var(--line-soft);
}

.rank-emblem {
  width: 64px;
  height: 64px;
}

.rank-summary strong {
  color: var(--mint);
  font-family: var(--display);
  font-size: 1.22rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.rank-summary small,
.rank-detail small {
  color: #959ea1;
  font-size: 0.69rem;
}

.rank-detail,
.scope-label {
  padding: 14px;
  border-color: var(--line-soft);
}

.rank-detail span,
.scope-label span {
  color: #8e989c;
  font-size: 0.67rem;
}

.rank-detail strong,
.scope-label strong {
  font: 760 0.88rem var(--mono);
}

.grade {
  border-radius: 1px;
}

.metric-grid {
  margin-top: 8px;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line-soft);
}

.metric-card {
  min-height: 92px;
  padding: 13px 15px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  background: #0e151a;
}

.metric-card:last-child {
  border-right: 0;
}

.metric-card span {
  color: #a2aaac;
  font-size: 0.71rem;
  text-transform: uppercase;
}

.metric-card small {
  color: #858f93;
  font-size: 0.66rem;
}

.metric-card > strong {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

/* Profile navigation and scope controls */

.profile-tabs {
  min-height: 52px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #0b1216;
}

.profile-tabs button {
  min-height: 51px;
  padding-inline: 17px;
  color: #9ea6a9;
  border-right: 1px solid var(--line-soft);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-tabs button::after {
  right: 0;
  left: 0;
  height: 3px;
}

.profile-filterbar {
  min-height: 64px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: #0d1419;
}

.profile-filterbar label {
  min-height: 39px;
  padding-left: 10px;
  border-color: var(--line);
  border-radius: 1px;
  background: #090f13;
}

.profile-filterbar label > span {
  color: #919b9f;
  font-size: 0.65rem;
}

.profile-filterbar select,
.date-range-fields input {
  color: #d9d6d0;
  font-size: 0.72rem;
}

.filter-context {
  color: #8b9599;
  font-size: 0.68rem;
}

.range-summary {
  border-radius: 1px;
  background: #10181d;
}

.range-summary,
.range-summary strong {
  font-size: 0.69rem;
}

.history-coverage {
  min-height: 72px;
  margin-top: 8px;
  border-left-width: 3px;
  border-radius: 1px;
  background: #0e151a;
}

.history-coverage.partial,
.history-coverage.complete {
  background: #0e151a;
}

.coverage-copy strong {
  font-size: 0.76rem;
}

.coverage-copy span,
.coverage-copy small {
  color: #999fa2;
  font-size: 0.68rem;
}

.history-progress,
.history-progress::after {
  border-radius: 0;
  box-shadow: none;
}

/* Profile content and compact match history */

.profile-view {
  padding-top: 10px;
}

.profile-columns {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.72fr);
  gap: 10px;
}

.profile-primary,
.profile-secondary {
  gap: 10px;
}

.trend-chart {
  padding: 10px 14px;
}

.trend-chart svg {
  height: 210px;
}

.chart-grid line {
  stroke: rgba(159, 172, 178, 0.16);
  stroke-dasharray: 2 6;
}

.chart-line {
  stroke-width: 2;
}

.chart-results span {
  color: #8c969a;
  font-size: 0.64rem;
}

.match-list {
  padding: 6px;
  gap: 4px;
}

.match-card {
  min-height: 72px;
  padding: 5px 9px 5px 6px;
  grid-template-columns: 68px minmax(140px, 1fr) minmax(145px, 1.12fr) 96px repeat(3, 58px) 40px;
  gap: 8px;
  border-color: var(--line-soft);
  border-left-width: 3px;
  border-radius: 1px;
  background: #0b1216;
}

.match-card:hover {
  border-color: #3a474e;
  background: #11191e;
}

.match-result-block {
  min-height: 48px;
  padding-right: 8px;
  border-color: var(--line-soft);
}

.match-result-block b {
  font-size: 0.66rem;
}

.match-result-block strong {
  font-size: 0.9rem;
}

.match-agent,
.match-map {
  gap: 7px;
}

.match-agent strong,
.match-map strong {
  font-size: 0.76rem;
}

.match-agent small,
.match-map small,
.match-kda small,
.match-stat small {
  color: #8e989c;
  font-size: 0.65rem;
}

.match-map > img {
  width: 46px;
  height: 32px;
  border-radius: 1px;
}

.match-kda strong,
.match-stat strong {
  font-size: 0.76rem;
}

.match-arrow {
  color: #939c9f;
  font-size: 0.66rem;
}

.insight-list,
.mini-breakdown-list {
  padding: 4px 12px 10px;
}

.insight-row {
  min-height: 66px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.insight-row > span,
.insight-row small,
.mini-breakdown-list small,
.mini-rank {
  color: #8e989c;
  font-size: 0.66rem;
}

.mini-breakdown-list > div {
  min-height: 57px;
}

.matches-panel,
.breakdown-panel,
.teammates-panel,
.rank-history-panel,
.session-card,
.session-stat,
.teammate-card,
.delta-card {
  border-radius: 2px;
  background: #0e151a;
  box-shadow: none;
}

.match-list-full {
  padding: 8px;
}

.session-summary-grid,
.form-grid {
  gap: 6px;
}

.session-stat {
  min-height: 84px;
}

.session-card {
  border-color: var(--line-soft);
  background: #0e151a;
}

.session-game:is(button, a):hover {
  background: #121b20;
}

.session-dot,
.session-dot.win,
.session-dot.result-win,
.session-game.result-win .session-dot,
.session-dot.loss,
.session-dot.result-loss,
.session-game.result-loss .session-dot {
  border-radius: 0;
  box-shadow: none;
}

.rank-history-row small,
.teammate-main small,
.teammate-stats span {
  color: #929b9f;
  font-size: 0.67rem;
}

.teammate-grid {
  padding: 10px;
  gap: 7px;
}

.teammate-card {
  padding: 13px;
}

/* Dense data tables */

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-color: var(--line-soft);
}

.data-table thead th {
  color: #929b9f;
  background: #11191e;
  font-size: 0.67rem;
  letter-spacing: 0.07em;
}

.data-table tbody th,
.data-table tbody td {
  font-size: 0.73rem;
}

.data-table tbody tr:hover {
  background: #121a20;
}

.table-identity small {
  color: #8d979b;
  font-size: 0.67rem;
}

.table-meter::before {
  height: 3px;
  border-radius: 0;
}

/* Leaderboard, game data, comparison and tools */

.leaderboard-page,
.game-page,
.compare-page,
.tools-page {
  padding-top: 16px;
  padding-bottom: 74px;
}

.leaderboard-controls,
.game-controls,
.tool-tabs {
  min-height: 60px;
  padding: 8px;
  border-color: var(--line);
}

.region-tabs button,
.segment-tabs button,
.tool-tabs button {
  min-height: 40px;
  border-radius: 1px;
  color: #9da5a8;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.region-tabs button.active,
.segment-tabs button.active,
.tool-tabs button.active {
  background: var(--coral-strong);
}

.leaderboard-meta p {
  color: #9ca4a7;
  font-size: 0.71rem;
}

.podium-grid {
  gap: 7px;
}

.podium-card {
  min-height: 178px;
  padding: 20px;
  border-radius: 2px;
  background: #0e151a;
}

.podium-card::after {
  right: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  border: 0;
  background: var(--coral);
  transform: none;
}

.podium-card small,
.podium-card > span:last-child {
  color: #929b9f;
  font-size: 0.69rem;
}

.pagination {
  min-height: 66px;
}

.agent-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.agent-card {
  min-height: 330px;
  border-radius: 2px;
  background: #0e151a;
}

.agent-art {
  height: 205px;
  background: #121b21;
}

.agent-card:hover .agent-art img,
.map-card:hover > img {
  transform: none;
}

.agent-card-copy {
  padding: 14px 15px 44px;
}

.agent-card-copy small,
.weapon-card small {
  font-size: 0.67rem;
}

.agent-card-copy > span {
  color: #a2aaac;
  font-size: 0.71rem;
}

.map-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.map-card {
  min-height: 215px;
  border-radius: 2px;
  background: #0e151a;
}

.map-card-shade {
  background: linear-gradient(0deg, rgba(8, 13, 17, 0.96), rgba(8, 13, 17, 0.06) 76%);
}

.map-card small,
.map-card b {
  color: #a9afb1;
  font-size: 0.67rem;
}

.weapon-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.weapon-card {
  min-height: 132px;
  padding: 13px;
  grid-template-columns: 92px minmax(0, 1fr);
  border-radius: 2px;
  background: #0b1216;
}

.weapon-card:hover {
  border-color: var(--cyan);
  background: #101a1f;
}

.weapon-card > span {
  width: 92px;
}

.compare-form {
  border-color: var(--line);
}

.comparison-results {
  gap: 8px;
}

.comparison-players,
.comparison-breakdowns {
  gap: 7px;
}

.comparison-player {
  min-height: 148px;
  border-radius: 2px;
  background: #0e151a;
}

.comparison-metric-row {
  min-height: 104px;
}

.comparison-values i,
.comparison-values i b {
  height: 4px;
  border-radius: 0;
}

.compare-read > div {
  border-radius: 1px;
  background: #0b1216;
}

.crosshair-layout,
.calculator-layout {
  gap: 8px;
}

.crosshair-presets {
  gap: 7px;
}

.crosshair-card {
  border-radius: 2px;
  background: #0e151a;
}

.crosshair-preview {
  min-height: 440px;
  background:
    linear-gradient(rgba(149, 164, 171, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 164, 171, 0.04) 1px, transparent 1px),
    #121b21;
  background-size: 32px 32px;
}

.crosshair-preview::before {
  border-radius: 0;
}

.mini-crosshair {
  border-radius: 1px;
  background: #172127;
}

.calculator-results {
  min-height: 450px;
  background: #0e151a;
}

.result-note,
.calculator-card > p,
.crosshair-help p:last-child {
  color: #a1a9ab;
}

/* Match report: near-fullscreen and scoreboard-first */

.modal-shell {
  padding: 10px;
}

.modal-backdrop {
  background: rgba(2, 5, 7, 0.94);
  backdrop-filter: none;
}

.modal-card {
  width: min(1560px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  border-color: #354148;
  border-radius: 2px;
  background: #090f13;
  box-shadow: none;
}

.modal-close {
  top: 8px;
  min-height: 36px;
  margin: 8px 8px -44px auto;
  color: #c5c5c0;
  border-color: #3a464d;
  border-radius: 1px;
  background: #0d1419;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-modal-loading,
.modal-error {
  min-height: calc(100dvh - 22px);
}

.match-report-header {
  min-height: 148px;
  padding: 36px 26px 22px;
  border-bottom-width: 3px;
  background: #0e151a;
}

.match-report-header.result-win,
.match-report-header.result-loss {
  background: #0e151a;
}

.match-report-header h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  line-height: 0.88;
}

.match-report-header p,
.match-report-player small {
  color: #a3abad;
  font-size: 0.71rem;
}

.detail-metrics {
  background: #0b1216;
}

.detail-metrics > div {
  min-height: 76px;
  padding: 12px 15px;
  border-color: var(--line-soft);
}

.detail-metrics span {
  color: #909a9e;
  font-size: 0.66rem;
}

.detail-metrics strong {
  font-size: 0.98rem;
}

.match-report-notice {
  min-height: 42px;
  padding-inline: 18px;
  color: #a5acae;
  background: #121713;
  font-size: 0.69rem;
}

.match-report-notice.is-loading strong::before {
  border-radius: 0;
  box-shadow: none;
}

.report-section {
  padding: 18px;
}

.report-section .panel-heading {
  min-height: 0;
  padding-bottom: 11px;
}

.scoreboard-toolbar {
  min-height: 56px;
  padding: 7px 9px;
  border-color: var(--line);
  border-radius: 1px;
  background: #0d1419;
}

.scoreboard-toolbar label,
.party-legend-title {
  color: #959ea2;
  font-size: 0.66rem;
}

.scoreboard-toolbar select,
.scoreboard-direction {
  min-height: 39px;
  border-radius: 1px;
  background: #090f13;
  font-size: 0.7rem;
}

.scoreboard-toolbar > p,
.scoreboard-data-note {
  color: #8d979b;
  font-size: 0.66rem;
}

.party-legend {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 1px;
  background: #0b1216;
}

.party-legend-group {
  min-height: 31px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--party-color) 5%, #0b1216);
}

.party-legend-group > i {
  border-radius: 0;
  box-shadow: none;
}

.party-legend-group strong,
.party-legend-note {
  font-size: 0.66rem;
}

.party-legend-group span {
  color: #939da1;
  font-size: 0.63rem;
}

.scoreboard-team {
  margin-top: 7px;
  border-color: var(--line);
  border-left-width: 3px;
  border-radius: 1px;
  background: #0b1216;
}

.scoreboard-team-heading {
  min-height: 44px;
  padding: 7px 10px;
  border-color: var(--line-soft);
  background: #11191e;
}

.scoreboard-team-heading > div > span,
.scoreboard-team-heading > p span {
  color: #9ba3a6;
  font-size: 0.68rem;
}

.scoreboard-team-heading > div > b {
  border-radius: 1px;
  font-size: 0.61rem;
}

.scoreboard {
  min-width: 1510px;
}

.scoreboard thead th:first-child,
.scoreboard tbody th:first-child {
  min-width: 250px;
  background: #0d151a;
  box-shadow: 1px 0 0 var(--line);
}

.scoreboard thead th:first-child {
  background: #121b20;
}

.scoreboard tbody tr:hover th:first-child {
  background: #141e24;
}

.scoreboard tr.selected-player th:first-child {
  background: #10211c;
}

.scoreboard tr.selected-player {
  background: rgba(102, 210, 173, 0.07);
}

.scoreboard-sort {
  min-width: 54px;
  min-height: 40px;
  padding-inline: 9px;
  color: #929ca0;
  font-size: 0.66rem;
}

.scoreboard-column-player .scoreboard-sort {
  min-width: 250px;
}

.scoreboard-sort:hover,
.scoreboard-sort.active {
  background: #172027;
}

.scoreboard-player-cell.has-party::before {
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 0;
  box-shadow: none;
}

.you-badge,
.party-badge {
  min-height: 17px;
  border-radius: 1px;
  font-size: 0.58rem;
}

.party-badge i {
  border-radius: 0;
}

.party-badge.is-solo {
  background: #11191e;
}

.round-strip {
  gap: 4px;
}

.round-strip li {
  min-width: 54px;
  min-height: 54px;
  border-radius: 1px;
  background: #0e151a;
}

.round-strip small,
.first-blood-list small {
  color: #8e989c;
  font-size: 0.64rem;
}

.weapon-bars i,
.weapon-bars i span {
  border-radius: 0;
}

/* Game-data dialogs */

.agent-modal-art {
  background: #10181d;
}

.agent-modal-copy > p:nth-of-type(2),
.map-modal > div p:last-child {
  color: #a9b0b2;
}

.ability-grid article {
  border-radius: 1px;
  background: #0e151a;
}

.ability-grid small {
  color: #8f999d;
  font-size: 0.65rem;
}

.map-modal::after {
  background: linear-gradient(0deg, #080d11 0%, rgba(8, 13, 17, 0.08) 82%);
}

.weapon-modal .detail-metrics {
  border-radius: 1px;
}

/* Footer, feedback and states */

.site-footer {
  width: min(calc(100% - 32px), 1480px);
  min-height: 150px;
  padding-block: 30px;
  border-color: var(--line);
}

.site-footer > div:first-child p,
.footer-links a {
  color: #a2a9ab;
  font-size: 0.71rem;
}

.footer-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--mint);
  vertical-align: 0.08em;
}

.legal {
  color: #858f93;
  font-size: 0.66rem;
}

.toast {
  border-radius: 1px;
  background: #11191e;
  box-shadow: none;
}

.mini-state {
  color: #9da5a8;
}

.mini-state button {
  border-radius: 1px;
  background: #11191e;
}

.loading-brand {
  border-radius: 0;
  background: var(--coral-strong);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
  animation: loading-pulse 0.9s steps(2, end) infinite alternate;
}

.route-loading p,
.route-error > p:not(.eyebrow),
.not-found > p:not(.eyebrow),
.loading-copy {
  color: #a4abad;
}

.skeleton-block {
  border-radius: 1px;
  background: #11191e;
}

.skeleton-block::after {
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.045), transparent);
}

.card-skeleton {
  border-radius: 1px;
}

/* -------------------------------------------------------------------------- */
/* V4 responsive — intentional reductions, never a scaled-down desktop.       */
/* -------------------------------------------------------------------------- */

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .header-search {
    width: min(460px, 54vw);
    margin-left: auto;
  }

  .mobile-toggle {
    display: grid;
    margin-left: 0;
  }

  .mobile-panel {
    top: var(--header-height);
    border-color: var(--line);
    background: #090f13;
    box-shadow: none;
  }

  .mobile-panel nav a,
  .mobile-search input,
  .mobile-search select {
    border-radius: 1px;
    background: #0e151a;
  }

  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .home-copy h1 {
    max-width: 900px;
  }

  .rank-strip {
    grid-template-columns: minmax(270px, 1.2fr) repeat(3, minmax(105px, 0.55fr));
  }

  .scope-label {
    display: none;
  }

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

  .metric-card:nth-child(3) {
    border-right: 0;
  }

  .metric-card:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line-soft);
  }

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

  .match-card {
    grid-template-columns: 66px minmax(135px, 1fr) minmax(140px, 1.05fr) 92px repeat(2, 56px) 34px;
  }

  .match-card > .match-stat:nth-child(7) {
    display: none;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  body {
    font-size: 14px;
    background-size: 36px 36px;
  }

  .section-pad {
    width: calc(100% - 20px);
  }

  .header-inner {
    width: calc(100% - 16px);
    gap: 7px;
  }

  .brand-copy {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-search {
    width: auto;
    min-width: 0;
    height: 42px;
    flex: 1;
    grid-template-columns: minmax(70px, 1fr) 56px 46px;
  }

  .header-search input,
  .header-search select,
  .header-search button {
    min-height: 40px;
  }

  .header-search button {
    padding: 0 6px;
    font-size: 0;
  }

  .header-search button::after {
    content: "GO";
    font-size: 0.67rem;
  }

  .mobile-toggle {
    width: 40px;
    height: 40px;
  }

  .mobile-panel nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-panel nav a:last-child {
    grid-column: 1 / -1;
  }

  .home-hero {
    padding-block: 42px 38px;
  }

  .home-copy h1 {
    font-size: clamp(3rem, 14.8vw, 5.1rem);
  }

  .hero-search {
    grid-template-columns: 1fr 1fr;
  }

  .hero-input,
  .hero-search .button-search {
    grid-column: 1 / -1;
  }

  .hero-search .button-search {
    min-height: 46px;
  }

  .home-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-facts article {
    min-height: 86px;
    padding-inline: 14px;
  }

  .saved-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .saved-section,
  .feature-section {
    padding-block: 52px;
  }

  .cta-section {
    min-height: 300px;
    padding: 28px 22px;
  }

  .profile-banner,
  .profile-banner-content {
    min-height: 214px;
  }

  .profile-banner-art {
    left: 25%;
    width: 75%;
  }

  .profile-banner-content {
    padding-block: 24px;
    align-items: flex-start;
  }

  .profile-identity {
    gap: 13px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .profile-identity h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .profile-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-summary {
    grid-column: 1 / -1;
  }

  .rank-detail {
    min-height: 72px;
  }

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

  .metric-card,
  .metric-card:nth-child(3) {
    min-height: 82px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .metric-card:nth-child(even) {
    border-right: 0;
  }

  .metric-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .profile-tabs {
    margin-top: 14px;
  }

  .profile-tabs button {
    min-height: 46px;
  }

  .profile-filterbar,
  .profile-filterbar.is-expanded {
    padding: 8px;
    align-items: stretch;
  }

  .profile-filterbar label,
  .date-range-fields,
  .range-summary,
  .profile-filter-actions {
    width: 100%;
  }

  .profile-filter-actions {
    margin-left: 0;
  }

  .history-coverage {
    grid-template-columns: 1fr;
  }

  .match-card {
    min-height: 70px;
    padding: 4px 7px 4px 5px;
    grid-template-columns: 58px minmax(118px, 1fr) minmax(108px, 0.9fr) 82px 52px;
    grid-template-rows: 1fr;
    gap: 6px;
  }

  .match-result-block,
  .match-agent,
  .match-map,
  .match-kda,
  .match-card > .match-stat:nth-child(5) {
    grid-row: 1;
  }

  .match-result-block {
    grid-column: 1;
  }

  .match-agent {
    grid-column: 2;
  }

  .match-map {
    grid-column: 3;
  }

  .match-kda {
    display: flex;
    grid-column: 4;
  }

  .match-card > .match-stat:nth-child(5) {
    display: flex !important;
    grid-column: 5;
  }

  .match-card > .match-stat:nth-child(6),
  .match-card > .match-stat:nth-child(7),
  .match-arrow {
    display: none !important;
  }

  .match-map > img {
    display: none;
  }

  .match-kda,
  .match-stat {
    align-items: flex-end;
  }

  .session-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .rank-history-list,
  .teammate-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-block: 46px 25px;
  }

  .compact-hero {
    min-height: 210px;
  }

  .page-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
  }

  .podium-grid,
  .agent-grid,
  .map-grid,
  .weapon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card {
    min-height: 275px;
  }

  .agent-art {
    height: 165px;
  }

  .map-card {
    min-height: 165px;
  }

  .weapon-card {
    min-height: 160px;
    grid-template-columns: 1fr;
  }

  .weapon-card > span {
    width: 100%;
    grid-row: auto;
  }

  .compare-options {
    grid-template-columns: 1fr 1fr;
  }

  .compare-options .button {
    grid-column: 1 / -1;
  }

  .comparison-metric-row {
    grid-template-columns: 1fr;
  }

  .crosshair-layout,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .crosshair-help {
    grid-column: 1;
  }

  .crosshair-preview {
    min-height: 340px;
  }

  .modal-shell {
    padding: 0;
  }

  .modal-card {
    width: 100vw;
    max-height: 100dvh;
    min-height: 100dvh;
    border-right: 0;
    border-left: 0;
  }

  .match-modal-loading,
  .modal-error {
    min-height: 100dvh;
  }

  .match-report-header {
    min-height: 170px;
    padding: 34px 16px 18px;
    align-items: flex-start;
  }

  .detail-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-metrics > div {
    min-height: 68px;
  }

  .scoreboard-toolbar {
    align-items: stretch;
  }

  .scoreboard-toolbar > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .scoreboard-team-heading {
    align-items: flex-start;
  }

  .scoreboard {
    min-width: 1400px;
  }

  .scoreboard thead th:first-child,
  .scoreboard tbody th:first-child,
  .scoreboard-column-player .scoreboard-sort {
    min-width: 174px;
    width: 174px;
  }

  .scoreboard-player-cell {
    padding-inline: 7px !important;
  }

  .scoreboard-player-cell .table-identity {
    gap: 6px;
  }

  .scoreboard-player-cell .avatar {
    width: 32px;
    height: 32px;
  }

  .scoreboard-player-cell .table-identity strong {
    max-width: 104px;
    font-size: 0.69rem;
  }

  .scoreboard-player-cell .table-identity small > span {
    display: none;
  }

  .party-badge {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .site-footer {
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-search {
    grid-template-columns: minmax(60px, 1fr) 48px 42px;
  }

  .header-search input {
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .header-search select {
    padding-inline: 3px;
    font-size: 0.65rem;
  }

  .home-copy h1 {
    font-size: clamp(2.8rem, 16.5vw, 4.25rem);
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search > label,
  .hero-input,
  .hero-search .button-search {
    grid-column: 1;
  }

  .section-heading,
  .feature-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-identity {
    flex-direction: row;
  }

  .profile-avatar {
    width: 62px;
    height: 62px;
  }

  .profile-status-row {
    margin-top: 0;
  }

  .profile-identity h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.4rem);
  }

  .profile-identity p {
    margin-top: 5px;
    font-size: 0.7rem;
  }

  .rank-summary {
    align-items: center;
  }

  .rank-emblem {
    width: 54px;
    height: 54px;
  }

  .date-range-fields {
    grid-template-columns: 1fr;
  }

  .profile-filter-actions .button,
  .coverage-actions .button,
  .coverage-actions button {
    flex: 1 1 auto;
  }

  .match-card {
    min-height: 64px;
    grid-template-columns: 52px 40px minmax(0, 1fr) 48px;
    gap: 5px;
  }

  .match-result-block {
    grid-column: 1;
    min-height: 46px;
  }

  .match-agent {
    grid-column: 2;
  }

  .match-agent > span:last-child {
    display: none;
  }

  .match-agent .avatar {
    width: 36px;
    height: 36px;
  }

  .match-map {
    grid-column: 3;
  }

  .match-kda {
    display: none;
  }

  .match-card > .match-stat:nth-child(5) {
    grid-column: 4;
  }

  .match-map strong {
    font-size: 0.72rem;
  }

  .match-result-block b,
  .match-map small,
  .match-stat small {
    font-size: 0.62rem;
  }

  .match-result-block strong,
  .match-stat strong {
    font-size: 0.72rem;
  }

  .agent-grid,
  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card {
    min-height: 238px;
  }

  .agent-art {
    height: 135px;
  }

  .agent-card-copy > span {
    display: none;
  }

  .map-card {
    min-height: 140px;
  }

  .weapon-grid,
  .crosshair-presets,
  .split-inputs {
    grid-template-columns: 1fr;
  }

  .comparison-player {
    grid-template-columns: auto 1fr;
  }

  .comparison-player .text-link {
    grid-column: 2;
  }

  .comparison-values > div {
    grid-template-columns: 74px minmax(52px, 1fr) 48px;
  }

  .tool-tabs {
    overflow-x: auto;
  }

  .report-section {
    padding: 13px 8px;
  }

  .match-report-header {
    padding-inline: 13px;
  }

  .match-report-header h2 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .detail-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-metrics > div,
  .detail-metrics > div:nth-child(3) {
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .detail-metrics > div:nth-child(even) {
    border-right: 0;
  }

  .detail-metrics > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .scoreboard-toolbar > div {
    grid-template-columns: 1fr;
  }

  .scoreboard-direction {
    width: 100%;
    justify-content: center;
  }

  .scoreboard-team-heading > p {
    align-items: flex-start;
    flex-direction: column;
  }

  .scoreboard {
    min-width: 1330px;
  }

  .scoreboard thead th:first-child,
  .scoreboard tbody th:first-child,
  .scoreboard-column-player .scoreboard-sort {
    min-width: 146px;
    width: 146px;
  }

  .scoreboard-player-cell {
    padding-inline: 5px !important;
  }

  .scoreboard-player-cell .avatar {
    width: 28px;
    height: 28px;
  }

  .scoreboard-player-cell .table-identity strong {
    max-width: 82px;
    font-size: 0.65rem;
  }

  .scoreboard-player-cell .table-identity small {
    max-width: 88px;
  }

  .party-badge {
    max-width: 85px;
    font-size: 0.52rem;
  }

  .you-badge {
    font-size: 0.52rem;
  }

  .site-footer {
    padding-block: 24px;
  }
}

/* V4 component additions introduced with the redesigned filter and report UI. */

.filter-disclosure {
  display: inline-flex;
  min-height: 40px;
  margin-left: auto;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #c5c6c2;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: #10181d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.filter-disclosure:hover,
.filter-disclosure[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--coral);
  background: rgba(244, 93, 96, 0.07);
}

.filter-disclosure span {
  display: grid;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  place-items: center;
  color: #0a0f12;
  background: var(--coral);
  font: 800 0.62rem/1 var(--mono);
}

.filter-disclosure i {
  color: var(--coral);
  font: 800 0.86rem/1 var(--mono);
  font-style: normal;
}

.profile-filter-advanced {
  display: grid;
  width: 100%;
  padding-top: 9px;
  grid-template-columns: repeat(5, minmax(116px, 1fr)) auto;
  align-items: end;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
}

.profile-filter-advanced[hidden],
[hidden].profile-filter-advanced {
  display: none !important;
}

.profile-filter-advanced > label {
  width: 100%;
}

.profile-filter-advanced .profile-filter-actions {
  margin-left: 0;
  align-self: stretch;
  flex-wrap: nowrap;
}

.profile-filter-advanced .profile-filter-actions .button {
  min-height: 40px;
}

.scoreboard-sort-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.scoreboard-view-switch {
  display: inline-flex;
  margin-left: auto;
  padding: 3px;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: #090f13;
}

.scoreboard-view-switch button {
  min-height: 33px;
  padding-inline: 11px;
  color: #929c9f;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scoreboard-view-switch button:hover {
  color: var(--text);
  background: #141d22;
}

.scoreboard-view-switch button.active,
.scoreboard-view-switch button[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: var(--coral);
  background: #151e24;
}

/* Core view: the fast-read combat line. */
.match-scoreboard.view-core :is(
  .scoreboard-column-damageDelta,
  .scoreboard-value-damageDelta,
  .scoreboard-column-firstKills,
  .scoreboard-value-firstKills,
  .scoreboard-column-firstDeaths,
  .scoreboard-value-firstDeaths,
  .scoreboard-column-multiKills,
  .scoreboard-value-multiKills,
  .scoreboard-column-score,
  .scoreboard-value-score,
  .scoreboard-column-loadout,
  .scoreboard-value-loadout,
  .scoreboard-column-spent,
  .scoreboard-value-spent,
  .scoreboard-column-rank,
  .scoreboard-value-rank,
  .scoreboard-column-level,
  .scoreboard-value-level
) {
  display: none;
}

/* Advanced view adds duel, opening and score context to the complete core. */
.match-scoreboard.view-advanced :is(
  .scoreboard-column-loadout,
  .scoreboard-value-loadout,
  .scoreboard-column-spent,
  .scoreboard-value-spent,
  .scoreboard-column-level,
  .scoreboard-value-level
) {
  display: none;
}

/* Economy view deliberately keeps only the economy-relevant combat baseline. */
.match-scoreboard.view-economy :is(
  .scoreboard-column-diff,
  .scoreboard-value-diff,
  .scoreboard-column-damageDelta,
  .scoreboard-value-damageDelta,
  .scoreboard-column-adr,
  .scoreboard-value-adr,
  .scoreboard-column-hsPct,
  .scoreboard-value-hsPct,
  .scoreboard-column-kast,
  .scoreboard-value-kast,
  .scoreboard-column-firstKills,
  .scoreboard-value-firstKills,
  .scoreboard-column-firstDeaths,
  .scoreboard-value-firstDeaths,
  .scoreboard-column-multiKills,
  .scoreboard-value-multiKills,
  .scoreboard-column-score,
  .scoreboard-value-score
) {
  display: none;
}

/* A selected sort metric remains visible across views so switching never loses context. */
.match-scoreboard .scoreboard :is(th, td).is-active-metric {
  display: table-cell;
  color: #d9f4f8;
  background: rgba(105, 189, 210, 0.075);
}

.match-scoreboard .scoreboard th.is-active-metric .scoreboard-sort {
  color: #d9f4f8;
  background: rgba(105, 189, 210, 0.075);
}

.match-scoreboard.view-core .scoreboard {
  min-width: 910px;
}

.match-scoreboard.view-advanced .scoreboard {
  min-width: 1410px;
}

.match-scoreboard.view-economy .scoreboard {
  min-width: 900px;
}

@media (max-width: 1120px) {
  .profile-filter-advanced {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .profile-filter-advanced .profile-filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .filter-disclosure {
    width: 100%;
    margin-left: 0;
  }

  .profile-filter-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-filter-advanced .profile-filter-actions {
    grid-column: 1 / -1;
  }

  .scoreboard-toolbar {
    flex-direction: column;
  }

  .scoreboard-sort-controls {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .scoreboard-sort-controls label {
    grid-column: 1 / -1;
  }

  .scoreboard-sort-controls select {
    width: 100%;
  }

  .scoreboard-view-switch {
    display: grid;
    width: 100%;
    margin-left: 0;
    grid-template-columns: repeat(3, 1fr);
  }

  .scoreboard-toolbar > p {
    width: 100%;
    text-align: left;
  }

  .match-scoreboard.view-core .scoreboard {
    min-width: 760px;
  }

  .match-scoreboard.view-advanced .scoreboard {
    min-width: 1320px;
  }

  .match-scoreboard.view-economy .scoreboard {
    min-width: 805px;
  }
}

@media (max-width: 520px) {
  .profile-filter-advanced {
    grid-template-columns: 1fr;
  }

  .profile-filter-advanced .profile-filter-actions {
    grid-column: 1;
  }

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

  .scoreboard-sort-controls label {
    grid-column: 1;
  }

  .match-scoreboard.view-core .scoreboard {
    min-width: 675px;
  }

  .match-scoreboard.view-advanced .scoreboard {
    min-width: 1230px;
  }

  .match-scoreboard.view-economy .scoreboard {
    min-width: 725px;
  }
}
