:root {
  color-scheme: dark;
  --bg: #0c0d0f;
  --bg-soft: #101010;
  --sidebar: #0b0b0b;
  --surface: #121212;
  --surface-2: #181818;
  --surface-3: #202020;
  --surface-hover: #1b1b1b;
  --text: #ffffff;
  --muted: #a7a7a7;
  --muted-2: #747474;
  --line: #2a2a2a;
  --line-2: #343434;
  --accent: #00a4dc;
  --accent-2: #78dfff;
  --accent-soft: rgba(0, 164, 220, 0.12);
  --accent-line: rgba(0, 164, 220, 0.46);
  --blue: #00a4dc;
  --blue-dark: #0085b4;
  --border: #2a2a2a;
  --good: #54d68d;
  --warning: #f1c64d;
  --danger: #ff5d66;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  --radius: 8px;
  --topbar-height: 59px;
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overflow-y: auto;
  overflow-x: hidden;
}

body {
  --roosted-topbar-height: var(--topbar-height);
  margin: 0;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shell {
  display: block;
  width: 100%;
  min-height: calc(100vh - var(--topbar-height));
  overflow: visible;
}

.sidebar {
  display: none;
}

.sidebar > .brand {
  display: none;
}

.main-area {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  margin-left: 0;
  padding-top: 0;
  min-height: calc(100vh - var(--topbar-height));
  min-width: 0;
  overflow: visible;
}

.content {
  flex: 1 1 auto;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 52px;
  overflow: visible;
}

body[data-active-tab] .content {
  padding-top: 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 9, 0.82);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  min-height: 59px;
  margin: 0 auto;
  padding: 10px 16px;
}

.topbar-brand-logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: 190px;
  object-fit: contain;
}

.site-nav {
  position: absolute;
  top: 50%;
  left: max(130px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  transform: translateY(-50%);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: var(--accent);
  color: #fff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -8px;
  left: -8px;
  height: 10px;
}

.nav-trigger {
  gap: 8px;
}

.nav-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .72;
  transform: rotate(45deg);
}

.nav-dropdown:hover .nav-trigger,
.nav-dropdown:focus-within .nav-trigger,
.nav-dropdown.active .nav-trigger {
  border-color: var(--accent);
  color: #fff;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: none;
  min-width: 170px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #151515;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  display: grid;
}

.nav-menu a {
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #fff;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 1430px) {
  .site-nav {
    left: calc((100% - 1180px) / 2);
  }
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 218px;
  object-fit: contain;
}

body.public-view .admin-only {
  display: none !important;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 164, 220, 0.16), rgba(0, 164, 220, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: #ddebff;
  font-size: 20px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: #f7fbff;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

h2 {
  color: #f7fbff;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-player-name {
  color: #d8e9f8;
  font-size: 0.82em;
  text-transform: none;
}

h3 {
  color: #f7fbff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

p {
  margin-top: 5px;
  color: var(--muted);
}

.eyebrow,
.sidebar-label {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-actions,
.topbar-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 10px;
}

.top-actions.roosted-auth,
.topbar-actions .roosted-auth {
  display: flex;
}

.button,
.tab,
.chip,
.table-sort,
.player-link {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: rgba(0, 164, 220, 0.08);
  color: #dbeaff;
  font-weight: 760;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover {
  border-color: rgba(114, 183, 255, 0.72);
  background: rgba(0, 164, 220, 0.16);
  color: #ffffff;
}

.button:active {
  transform: translateY(1px);
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(84, 214, 141, 0.28);
  border-radius: var(--radius);
  background: rgba(84, 214, 141, 0.08);
  color: #bdf3d3;
  font-size: 12px;
  font-weight: 850;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--good);
}

.pill.bad {
  border-color: rgba(255, 93, 102, 0.34);
  background: rgba(255, 93, 102, 0.08);
  color: #ffd0d3;
}

.pill.bad::before {
  background: var(--danger);
}

.tabs {
  display: flex;
  position: static;
  left: auto;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  height: auto;
  gap: 6px 22px;
  transform: none;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.tabs .tab {
  min-width: 0;
  padding: 0 6px;
  text-transform: uppercase;
}

.tabs .tab::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.tab:hover {
  color: #edf6ff;
}

.tabs .tab.active {
  color: #ffffff;
}

.tabs .tab.active::after {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(0, 164, 220, 0.35);
}

html[data-active-tab] .tabs .tab.active,
body[data-active-tab] .tabs .tab.active {
  color: var(--muted);
}

html[data-active-tab] .tabs .tab.active::after,
body[data-active-tab] .tabs .tab.active::after {
  background: transparent;
  box-shadow: none;
}

html[data-active-tab="leaderboards"] .tabs .tab[data-tab="leaderboards"],
html[data-active-tab="records"] .tabs .tab[data-tab="records"],
html[data-active-tab="stats"] .tabs .tab[data-tab="stats"],
html[data-active-tab="overview"] .tabs .tab[data-tab="overview"],
html[data-active-tab="players"] .tabs .tab[data-tab="players"],
html[data-active-tab="visits"] .tabs .tab[data-tab="visits"],
body[data-active-tab="leaderboards"] .tabs .tab[data-tab="leaderboards"],
body[data-active-tab="records"] .tabs .tab[data-tab="records"],
body[data-active-tab="stats"] .tabs .tab[data-tab="stats"],
body[data-active-tab="overview"] .tabs .tab[data-tab="overview"],
body[data-active-tab="players"] .tabs .tab[data-tab="players"],
body[data-active-tab="visits"] .tabs .tab[data-tab="visits"] {
  color: #ffffff;
}

html[data-active-tab="leaderboards"] .tabs .tab[data-tab="leaderboards"]::after,
html[data-active-tab="records"] .tabs .tab[data-tab="records"]::after,
html[data-active-tab="stats"] .tabs .tab[data-tab="stats"]::after,
html[data-active-tab="overview"] .tabs .tab[data-tab="overview"]::after,
html[data-active-tab="players"] .tabs .tab[data-tab="players"]::after,
html[data-active-tab="visits"] .tabs .tab[data-tab="visits"]::after,
body[data-active-tab="leaderboards"] .tabs .tab[data-tab="leaderboards"]::after,
body[data-active-tab="records"] .tabs .tab[data-tab="records"]::after,
body[data-active-tab="stats"] .tabs .tab[data-tab="stats"]::after,
body[data-active-tab="overview"] .tabs .tab[data-tab="overview"]::after,
body[data-active-tab="players"] .tabs .tab[data-tab="players"]::after,
body[data-active-tab="visits"] .tabs .tab[data-tab="visits"]::after {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(0, 164, 220, 0.35);
}

/* Player profiles reuse the stats panel internally, but are not the Your Stats section. */
html.profile-route:not(.own-profile-route) .stats-tabs .tab[data-tab="stats"],
body.profile-route:not(.own-profile-route) .stats-tabs .tab[data-tab="stats"] {
  color: var(--muted);
}

html.profile-route:not(.own-profile-route) .stats-tabs .tab[data-tab="stats"]::after,
body.profile-route:not(.own-profile-route) .stats-tabs .tab[data-tab="stats"]::after {
  background: transparent;
  box-shadow: none;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
}

.side-tab {
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 760;
}

.side-tab:hover {
  background: rgba(255, 255, 255, 0.035);
  color: #eef6ff;
}

.side-tab.active {
  border-color: var(--accent-line);
  background: linear-gradient(90deg, rgba(0, 164, 220, 0.18), rgba(0, 164, 220, 0.04));
  box-shadow: inset 3px 0 0 var(--accent), 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

html[data-active-tab="overview"] .side-tab[data-tab="overview"],
html[data-active-tab="players"] .side-tab[data-tab="players"],
html[data-active-tab="visits"] .side-tab[data-tab="visits"],
body[data-active-tab="overview"] .side-tab[data-tab="overview"],
body[data-active-tab="players"] .side-tab[data-tab="players"],
body[data-active-tab="visits"] .side-tab[data-tab="visits"] {
  border-color: var(--accent-line);
  background: linear-gradient(90deg, rgba(0, 164, 220, 0.18), rgba(0, 164, 220, 0.04));
  box-shadow: inset 3px 0 0 var(--accent), 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

.sidebar-section {
  margin-top: 38px;
}

.sidebar-label {
  margin-bottom: 12px;
}

.filter-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
}

body[data-active-tab="leaderboards"] .filter-leaderboards,
body[data-active-tab="records"] .filter-records,
body[data-active-tab="stats"] .filter-stats,
body[data-active-tab="overview"] .filter-secondary,
body[data-active-tab="players"] .filter-secondary,
body[data-active-tab="visits"] .filter-secondary {
  display: flex;
}

.filter-secondary p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.sidebar-status p {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.sidebar-status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: auto;
}

.stats-page-header {
  margin: 0 0 24px;
}

.stats-page-title-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 13px;
  min-width: 0;
}

.iw4x-title {
  flex: 0 0 auto;
  color: #bdf575;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.04;
  text-transform: none;
  text-shadow: 0 0 24px rgba(189, 245, 117, 0.18);
}

.stats-tabs {
  flex: 0 1 auto;
  padding-bottom: 0;
}

.stats-page-rule {
  width: 100%;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04) 10%, rgba(255,255,255,.1) 30%, rgba(255,255,255,.1) 70%, rgba(255,255,255,.04) 90%, transparent);
}

.stats-page-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.stats-control-panels {
  flex: 1 1 auto;
  min-width: 0;
}

.stats-page-controls .filter-panel {
  display: none;
  align-items: flex-end;
  gap: 12px;
}

body[data-active-tab="leaderboards"] .stats-page-controls .filter-leaderboards,
body[data-active-tab="records"] .stats-page-controls .filter-records,
body[data-active-tab="stats"] .stats-page-controls .filter-stats,
body[data-active-tab="overview"] .stats-page-controls .filter-secondary,
body[data-active-tab="players"] .stats-page-controls .filter-secondary,
body[data-active-tab="visits"] .stats-page-controls .filter-secondary {
  display: grid;
}

.stats-page-controls .filter-leaderboards {
  grid-template-columns: minmax(190px, 260px) minmax(260px, 360px);
  justify-content: space-between;
}

.stats-page-controls .filter-records {
  grid-template-columns: minmax(170px, 230px) minmax(170px, 230px) minmax(260px, 360px);
  justify-content: space-between;
}

.stats-page-controls .filter-stats {
  grid-template-columns: minmax(260px, 460px) auto;
}

.stats-search-button {
  min-height: 44px;
  white-space: nowrap;
}

.stats-page-controls .search-field {
  width: 100%;
  min-width: 0;
}

.stats-update-status {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  left: calc(14px + env(safe-area-inset-left, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  flex: 0 0 auto;
  width: max-content;
  max-width: min(330px, 34vw);
  margin-top: 0;
  padding: 10px 12px;
  border-color: rgba(255, 255, 255, 0.12);
  background: #151515;
  backdrop-filter: blur(10px);
}

body:not([data-iw4x-route="leaderboards"]) .stats-update-status {
  display: none !important;
}

body[data-iw4x-route="leaderboards"] .stats-update-status {
  display: flex !important;
}

.stats-update-status .pill:not(.bad) {
  border-color: rgba(255, 255, 255, 0.12);
  background: #151515;
  color: #ffffff;
}

.personal-best-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  margin-right: auto;
}

.personal-best-filters .field {
  min-width: 150px;
  gap: 0;
}

.personal-best-filters .field > span {
  display: none;
}

.personal-best-filters .input {
  min-height: 34px;
  height: 34px;
  padding-top: 0;
  padding-bottom: 0;
}

.stats-best-head {
  align-items: center;
}

html.profile-route .stats-page-controls,
body.profile-route .stats-page-controls,
html.stats-profile-resolving .stats-page-controls,
body.stats-profile-resolving .stats-page-controls {
  display: none;
}

html.profile-route .stats-page-rule,
body.profile-route .stats-page-rule {
  margin-top: 16px;
}

.empty-box.your-stats-message {
  margin-top: 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: #121212;
}

.stats-player-results {
  max-height: min(60vh, 620px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stats-player-result {
  min-height: 62px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 120ms ease;
}

.stats-player-result:last-child {
  border-bottom: 0;
}

.stats-player-result:hover {
  background: rgba(255, 255, 255, 0.026);
}

.panel {
  display: none;
}

.panel.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

html[data-active-tab] .panel.active,
body[data-active-tab] .panel.active {
  display: none;
}

html[data-active-tab="leaderboards"] #leaderboards,
html[data-active-tab="records"] #records,
html[data-active-tab="stats"] #stats,
html[data-active-tab="overview"] #overview,
html[data-active-tab="players"] #players,
html[data-active-tab="visits"] #visits,
body[data-active-tab="leaderboards"] #leaderboards,
body[data-active-tab="records"] #records,
body[data-active-tab="stats"] #stats,
body[data-active-tab="overview"] #overview,
body[data-active-tab="players"] #players,
body[data-active-tab="visits"] #visits {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

.panel-header,
.section-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head {
  margin: 28px 0 14px;
}

.stats-sections[hidden] {
  display: none;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 10px;
}

.section-actions-mobile {
  display: none;
}

.section-toggle {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
  color: #dce9f5;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.section-toggle:hover,
.section-toggle:focus-visible {
  border-color: #444a52;
  background: #191d22;
  color: #ffffff;
  outline: 0;
}

.section-toggle[hidden] {
  display: none;
}

.records-header {
  align-items: flex-end;
}

.toolbar,
.controls-row,
.sorts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar.wrap {
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 190px;
  gap: 7px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar .field {
  min-width: 0;
  width: 100%;
}

.search-field {
  width: min(460px, 42vw);
  min-width: 260px;
}

.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #151515;
  color: var(--text);
  padding: 0 13px;
  text-transform: none;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.input::placeholder {
  color: #8b8b8b;
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.input:focus {
  border-color: rgba(255, 255, 255, 0.26);
  background: #151515;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.select {
  padding-right: 34px;
}

.select option {
  background: #151515;
  color: #ffffff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  padding: 14px;
}

.metric .label {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric .value {
  margin-top: 6px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.08;
  overflow-wrap: anywhere;
}







.profile-link-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.profile-link-button.is-claiming {
  max-width: min(360px, calc(100% - 24px));
  min-height: 32px;
  height: auto;
  padding: 7px 10px;
  line-height: 1.22;
  text-align: center;
  white-space: normal;
}

.profile-link-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: #242424;
  color: #ffffff;
}

.profile-link-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.profile-actions {
  position: absolute;
  right: 12px;
  top: 10px;
  bottom: auto;
  z-index: 8;
}

.profile-actions-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #30343a;
  border-radius: 999px;
  background: rgba(13, 16, 20, 0.9);
  color: rgba(226, 231, 237, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.profile-actions-toggle span {
  font-size: 12px;
  line-height: 1;
}

.profile-actions-toggle:hover,
.profile-actions-toggle[aria-expanded="true"] {
  border-color: #444a52;
  background: #191d22;
  color: #ffffff;
}

.profile-actions-menu[hidden] {
  display: none;
}

.profile-actions-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  bottom: auto;
  display: grid;
  width: max-content;
  min-width: 190px;
  overflow: hidden;
  border: 1px solid var(--profile-border);
  border-radius: 6px;
  background: #0d1014;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.profile-actions-menu button {
  width: 100%;
  min-height: 36px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #d7dde4;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-align: left;
}

.profile-actions-menu button:last-child {
  border-bottom: 0;
}

.profile-actions-menu button:hover,
.profile-actions-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  outline: 0;
}

.profile-actions-menu button.danger {
  color: #ff9eaa;
}











































































































































body.profile-theme-modal-open {
  overflow: hidden;
}

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

.profile-theme-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.profile-theme-dialog {
  width: min(560px, 100%);
  border: 1px solid #30343a;
  border-radius: 8px;
  background: #111317;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
  padding: 18px;
}

.profile-theme-dialog-head,
.profile-theme-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-theme-dialog-head h2 {
  margin: 0;
  color: #f2f4f6;
  font-size: 20px;
}

.profile-theme-close {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #aeb5be;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.profile-theme-close:hover {
  background: #22262c;
  color: #ffffff;
}

.profile-theme-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.profile-theme-option {
  position: relative;
  display: flex;
  aspect-ratio: 9 / 16;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  overflow: hidden;
  border: 1px solid #333840;
  border-radius: 7px;
  background: #0e1013;
  color: #dfe4e9;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
  text-align: left;
}

.profile-theme-option::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 7, 9, 0.96), rgba(5, 7, 9, 0.08) 72%);
}

.profile-theme-option-art {
  position: absolute;
  inset: 0;
}

.profile-theme-option-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-theme-option-name,
.profile-theme-option-access {
  position: relative;
  z-index: 2;
}

.profile-theme-option-access {
  color: #aeb5be;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.profile-theme-option:hover,
.profile-theme-option.selected {
  border-color: #77808c;
}

.profile-theme-option.selected {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.profile-theme-error {
  min-height: 18px;
  margin: 0 0 10px;
  color: #ff8e9a;
  font-size: 12px;
}

.profile-theme-actions {
  justify-content: flex-end;
}

.profile-theme-actions .button,
.profile-theme-actions .button.secondary {
  border-color: #30343a;
  background: #17191d;
  color: #d9dee4;
  box-shadow: none;
}

.profile-theme-actions .button:hover,
.profile-theme-actions .button.secondary:hover {
  border-color: #464c55;
  background: #202329;
  color: #ffffff;
}

@media (max-width: 560px) {
  .profile-theme-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  

  

  

  

  
}

.details {
  flex: 0 0 auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 16px;
  cursor: pointer;
  color: #eef6ff;
  font-weight: 850;
}

.details[open] summary {
  border-bottom: 1px solid var(--line);
}

.details .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.table-wrap {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: auto;
}

.record-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(310px, 22vw, 360px);
  align-items: start;
  align-content: start;
  gap: 14px;
  min-height: 0;
}

.records-grid {
  flex: 1 1 auto;
  overflow: visible;
  padding: 2px 4px 6px 0;
}

.personal-bests-grid {
  flex: 0 0 auto;
}

.record-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1.12;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(10, 16, 22, 0.92);
  box-shadow: var(--shadow);
}

.record-card-art {
  flex: 0 0 43%;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 18, 0.02), rgba(7, 12, 18, 0.22)),
    var(--map-image, linear-gradient(135deg, #172432, #0b1117));
  background-position: center;
  background-size: cover;
}

.record-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 28%);
  pointer-events: none;
}

.record-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(27, 27, 27, 0.94), rgba(12, 12, 12, 0.98)),
    rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(10px);
}

.records-grid .record-card-body {
  min-height: 0;
}

.record-card-cycle {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 8px;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 11px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9eabb5;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: default;
  pointer-events: none;
}

.record-card-cycle > span,
.record-card-cycle > strong {
  cursor: pointer;
  pointer-events: auto;
}

.record-card-cycle strong {
  min-width: 0;
  overflow: hidden;
  color: #dce4ea;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-card-cycle:hover,
.record-card-cycle:focus-visible {
  color: #dce4ea;
  background: transparent;
  outline: none;
}

.record-card-cycle:hover strong,
.record-card-cycle:focus-visible strong {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.record-card-main,
.record-card-stats {
  position: relative;
  z-index: 1;
}

.record-card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 15px 8px;
}

.record-card-main h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.44);
}

.record-card-mode {
  margin-top: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.record-card-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(36px, auto) minmax(0, 0.9fr);
  grid-auto-rows: 35px;
  column-gap: 0;
  padding: 0 15px 12px;
}

.personal-bests-grid .record-card-stats {
  grid-template-columns: minmax(0, 1fr) minmax(36px, auto);
}

.record-card-stat {
  display: contents;
}

.record-card-stat > * {
  display: flex;
  align-items: center;
  height: 35px;
  min-height: 35px;
  border-top: 1px solid rgba(210, 228, 245, 0.16);
}

.record-card-stat:last-child > * {
  border-bottom: 1px solid rgba(210, 228, 245, 0.16);
}

.record-card-label {
  min-width: 0;
  padding-right: 8px;
  color: #c5d2dc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.record-card-value {
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.personal-bests-grid .record-card-value {
  justify-content: flex-end;
  text-align: right;
}

.record-card-placeholder {
  color: var(--muted-2);
}

.record-card-detail {
  justify-content: flex-end;
  min-width: 0;
  padding-left: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  text-align: right;
  overflow-wrap: anywhere;
}

.record-card-detail .player-link {
  display: inline-flex;
  align-items: center;
  min-height: 1em;
  text-align: right;
}

.record-card-trophy {
  display: inline-grid;
  flex: 0 0 auto;
  width: 15px;
  aspect-ratio: 1;
  place-items: center;
  color: #d6aa4a;
  filter: drop-shadow(0 0 6px rgba(214, 170, 74, 0.2));
}

.record-card-trophy svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.record-card-placeholder {
  display: inline-flex;
  align-items: center;
  text-align: right;
}

.record-card-empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(18, 18, 18, 0.78);
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.weapon-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(380px, 25vw, 430px);
  align-items: start;
  align-content: start;
  gap: 14px;
  padding: 2px 4px 6px 0;
}

.killstreak-card-grid {
  grid-auto-rows: clamp(260px, 18vw, 310px);
}

.weapon-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(10, 16, 22, 0.92);
  box-shadow: var(--shadow);
}

.weapon-card-art {
  display: grid;
  flex: 0 0 36%;
  min-width: 0;
  place-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(210, 228, 245, 0.12);
  background:
    radial-gradient(ellipse at 50% 42%, rgba(76, 76, 76, 0.28), rgba(28, 28, 28, 0.1) 46%, transparent 70%),
    linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(10, 10, 10, 0.98));
}

.weapon-card-art img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.42));
}

.weapon-card-fallback {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: #dcecff;
  font-size: 22px;
  font-weight: 900;
}

.weapon-card-body {
  display: grid;
  grid-template-rows: auto 1fr;
  flex: 1 1 auto;
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(27, 27, 27, 0.94), rgba(12, 12, 12, 0.98)),
    rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(10px);
}

.weapon-card-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 13px 15px 8px;
}

.weapon-card-body h3 {
  min-width: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.weapon-card-mode {
  margin-top: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.weapon-card-stats {
  align-self: end;
  padding: 0 15px 12px;
}

.weapon-card-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(48px, auto);
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 30px;
  border-top: 1px solid rgba(210, 228, 245, 0.16);
}

.weapon-card-stat span,
.weapon-card-stat strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weapon-card-stat span {
  color: #c5d2dc;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.weapon-card-stat strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.leaderboard-wrap,
.records-wrap,
#overview .table-wrap,
#players .table-wrap,
#visits .table-wrap {
  flex: 1 1 auto;
}

#stats.panel.active {
  overflow: visible;
  padding-right: 0;
}

#statsPanel {
  flex: 0 0 auto;
}



#stats > .table-wrap {
  flex: 0 0 auto;
  max-height: 38vh;
}

#stats .details .table-wrap,
#stats .details[open] .table-wrap {
  max-height: none;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(22, 32, 41, 0.98);
  color: #8395a5;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
}

#leaderboardsTable th,
#serversTable th,
#playersTable th,
#visitsTable th {
  background: #0d0d0d;
  color: #a7a7a7;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(35, 49, 60, 0.82);
  vertical-align: middle;
}

.leaderboard-wrap th,
.leaderboard-wrap td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

#serversTable th,
#serversTable td,
#playersTable th,
#playersTable td,
#visitsTable th,
#visitsTable td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.026);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.leaderboard-wrap table {
  min-width: 980px;
}

.leaderboard-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.leaderboard-pager-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-page-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
  color: #dce9f5;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.leaderboard-page-button:hover:not(:disabled) {
  border-color: rgba(0, 164, 220, 0.45);
  background: rgba(0, 164, 220, 0.12);
  color: #ffffff;
}

.leaderboard-page-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.leaderboard-wrap th:nth-child(2),
.leaderboard-wrap td:nth-child(2) {
  padding-left: 22px;
}

.records-wrap table {
  min-width: 1040px;
}

.records-wrap th:first-child,
.records-wrap td:first-child {
  width: 30%;
}

.record-row td {
  padding-top: 17px;
  padding-bottom: 17px;
}

.record-row:hover {
  background: rgba(0, 164, 220, 0.04);
}

.table-sort {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 24px;
  padding: 0;
  color: inherit;
  font-weight: inherit;
  text-align: left;
  text-transform: inherit;
}

.table-sort:hover,
.table-sort.active {
  color: #dcecff;
}

.sort-indicator {
  color: var(--accent-2);
  font-size: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e151c;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.chip:hover,
.chip.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: #ffffff;
}

#playerSorts .chip,
#visitSorts .chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: #151515;
  color: #c5c5c5;
}

#playerSorts .chip:hover,
#playerSorts .chip.active,
#visitSorts .chip:hover,
#visitSorts .chip.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.rank-badge {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #151515;
  color: #dce8f4;
  font-weight: 900;
}

.rank-row .rank-badge {
  border-color: rgba(255, 255, 255, 0.12);
}

.rank-one {
  background: transparent;
}

.rank-one .rank-badge {
  background: #151515;
  color: #dce8f4;
}

.rank-two .rank-badge,
.rank-three .rank-badge {
  background: #151515;
  color: #dce8f4;
}

.leaderboard-player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leaderboard-avatar {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(210, 228, 245, 0.18);
  border-radius: 9px;
  background: #080d12;
  object-fit: cover;
}

.player-progression {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(235, 240, 245, 0.82);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.player-level-badge {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.player-level-value {
  min-width: 1.5ch;
  font-size: 12px;
  text-align: center;
}

.player-cell,
.map-cell,
.record-cell,
.stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-cell,
.stack {
  gap: 3px;
}

.map-cell {
  gap: 6px;
}

.map-cell strong {
  color: #f7fbff;
  font-size: 15px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.map-cell.record-map strong {
  font-size: 18px;
}

.mode-map-cell.record-map {
  gap: 4px;
}

.mode-map-cell.record-map strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
}

.mode-map-cell.record-map span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.2;
}

.mode-pill {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #0e151c;
  color: #a7b6c4;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-cell {
  gap: 4px;
}

.record-cell.compact {
  gap: 3px;
}

.record-label {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.record-value {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.08;
}

.record-value.inline {
  display: inline-flex;
  color: var(--good);
  font-size: 14px;
}

.record-holder {
  color: var(--muted);
  font-size: 13px;
}

.strong-value {
  font-weight: 900;
}

.name {
  color: #f5fbff;
  font-weight: 850;
}

.player-link {
  display: inline;
  max-width: 100%;
  padding: 0;
  color: #ffffff;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.player-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
}

.small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 620;
}

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

.mono {
  font-family: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0e151c;
  color: #c5d2dc;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 720;
}

#players .badge,
#visits .badge {
  border-color: rgba(255, 255, 255, 0.12);
  background: #151515;
  color: #d3d3d3;
}

.mode-map-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mode-map-cell strong {
  color: #f5fbff;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mode-map-cell span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.value-good {
  color: #ffffff;
  font-weight: 900;
}

.value-blue {
  color: #ffffff;
  font-weight: 900;
}

.empty {
  padding: 20px;
  color: var(--muted);
  text-align: left;
}

.empty-state,
.empty-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0e151c;
  color: var(--muted);
  padding: 18px;
  text-align: left;
}

.empty-box {
  margin-bottom: 18px;
}

.empty-mark {
  color: #647684;
  font-weight: 720;
}

b {
  color: #ffffff;
}

h1,
h2,
h3 {
  font-weight: 650;
}

.button,
.tab,
.side-tab,
.chip,
.pill,
.field,
.eyebrow,
.sidebar-label,
.metric .label,
.mode-pill,
.record-label,
th {
  font-weight: 650;
}

.name,
.player-link,
.rank-badge,
.metric .value,
.record-value,
.value-good,
.value-blue,
.strong-value {
  font-weight: 650;
}

.c0 { color: #2b2f33; }
.c1 { color: #ff6b6b; }
.c2 { color: #56d18d; }
.c3 { color: #d9b85f; }
.c4 { color: #2f9bff; }
.c5 { color: #b48cff; }
.c6 { color: #ff8fc4; }
.c7 { color: #eef5fa; }
.c8 { color: #9dafbd; }
.c9 { color: #72c9ff; }
.c-rainbow {
  color: #ff5d66;
  animation: rainbowName 5s ease-in-out infinite;
}

@keyframes rainbowName {
  0%, 100% { color: #ff5d66; text-shadow: 0 0 8px rgba(255, 93, 102, .28); }
  20% { color: #f4c152; text-shadow: 0 0 8px rgba(244, 193, 82, .28); }
  40% { color: #56d18d; text-shadow: 0 0 8px rgba(86, 209, 141, .28); }
  60% { color: #2f9bff; text-shadow: 0 0 8px rgba(47, 155, 255, .28); }
  80% { color: #b48cff; text-shadow: 0 0 8px rgba(180, 140, 255, .28); }
}

@media (max-width: 1180px) {
  .content {
    width: 100%;
  }

  

  

  

  

  

  .metrics,
  .stats-metrics {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --topbar-height: 64px;
  }

  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .shell {
    display: block;
    height: auto;
    min-height: calc(100vh - var(--topbar-height));
    overflow: visible;
  }

  .sidebar {
    display: none;
  }

  .brand {
    align-self: center;
  }

  .main-area {
    flex: 1 1 auto;
    width: 100%;
    margin-left: 0;
    padding-top: 0;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .side-nav {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 2px;
  }

  .side-tab {
    flex: 1 1 140px;
  }

  .sidebar-section {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .sidebar-status {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-self: end;
    gap: 12px;
    width: max-content;
    max-width: min(230px, 44vw);
    margin-top: 0;
    padding: 10px 11px;
  }

  .sidebar-status p {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sidebar-status-pill {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

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

  body[data-active-tab="leaderboards"] .filter-leaderboards,
  body[data-active-tab="records"] .filter-records,
  body[data-active-tab="stats"] .filter-stats,
  body[data-active-tab="overview"] .filter-secondary,
  body[data-active-tab="players"] .filter-secondary,
  body[data-active-tab="visits"] .filter-secondary {
    display: grid;
  }

  .filter-leaderboards,
  .filter-secondary {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: sticky;
    top: 0;
    display: block;
    padding: 0;
  }

  .topbar-inner {
    display: flex;
    min-height: 65px;
    padding: 10px 16px;
  }

  .site-nav {
    display: none;
  }

  .topbar-actions {
    align-self: center;
    margin-left: auto;
  }

  .tabs {
    grid-column: 1 / -1;
    position: static;
    left: auto;
    transform: none;
    justify-self: stretch;
    width: 100%;
    height: auto;
    overflow-x: auto;
    gap: 8px;
  }

  .tabs .tab {
    flex: 1 0 118px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-color: #2d3136;
    background: #15171a;
  }

  .tabs .tab::after {
    right: 12px;
    left: 12px;
  }

  .tabs .tab.active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
  }

  html[data-active-tab] .tabs .tab.active,
  body[data-active-tab] .tabs .tab.active {
    border-color: #2d3136;
    background: #15171a;
  }

  html[data-active-tab="leaderboards"] .tabs .tab[data-tab="leaderboards"],
  html[data-active-tab="records"] .tabs .tab[data-tab="records"],
  html[data-active-tab="stats"] .tabs .tab[data-tab="stats"],
  html[data-active-tab="overview"] .tabs .tab[data-tab="overview"],
  html[data-active-tab="players"] .tabs .tab[data-tab="players"],
  html[data-active-tab="visits"] .tabs .tab[data-tab="visits"],
  body[data-active-tab="leaderboards"] .tabs .tab[data-tab="leaderboards"],
  body[data-active-tab="records"] .tabs .tab[data-tab="records"],
  body[data-active-tab="stats"] .tabs .tab[data-tab="stats"],
  body[data-active-tab="overview"] .tabs .tab[data-tab="overview"],
  body[data-active-tab="players"] .tabs .tab[data-tab="players"],
  body[data-active-tab="visits"] .tabs .tab[data-tab="visits"] {
    border-color: #3a3f46;
    background: #1b1e22;
  }

  .top-actions:not(.roosted-auth) {
    display: none;
  }

  .button {
    width: 100%;
  }

  .content {
    flex: 1 1 auto;
    width: min(1180px, calc(100% - 24px));
    min-height: 0;
    padding: 24px 0 36px;
    overflow: visible;
  }

  .stats-page-header {
    margin: 0 0 20px;
  }

  .stats-page-title-row {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .iw4x-title {
    font-size: 36px;
  }

  .stats-page-rule {
    margin-top: 16px;
  }

  body[data-active-tab] .content {
    padding-top: 24px;
  }

  .stats-page-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
  }

  .stats-control-panels {
    width: 100%;
  }

  .stats-page-controls .filter-records,
  .stats-page-controls .filter-stats,
  .stats-page-controls .filter-leaderboards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-page-controls .filter-records .search-field,
  .stats-page-controls .filter-stats .search-field {
    grid-column: 1 / -1;
  }

  .stats-page-controls .filter-records .search-field {
    justify-self: end;
    width: min(360px, 100%);
  }

  .stats-update-status {
    position: fixed !important;
    left: calc(14px + env(safe-area-inset-left, 0px)) !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    width: max-content;
    max-width: min(330px, calc(100vw - 28px));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .personal-best-filters {
    width: 100%;
    margin-left: 0;
  }

  .panel.active {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .leaderboard-wrap,
  .records-wrap,
  #overview .table-wrap,
  #players .table-wrap,
  #visits .table-wrap {
    flex: 0 0 auto;
  }

  #stats.panel.active {
    overflow: visible;
    padding-right: 0;
  }

  .table-wrap {
    max-width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .leaderboard-pager {
    align-items: stretch;
    flex-direction: column;
  }

  .leaderboard-pager-actions {
    justify-content: space-between;
  }

  .leaderboard-page-button {
    flex: 1 1 0;
  }

  .record-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(320px, 46vw, 390px);
  }

  .weapon-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(390px, 56vw, 440px);
  }

  .killstreak-card-grid {
    grid-auto-rows: clamp(260px, 38vw, 320px);
  }

  .records-grid {
    overflow: visible;
    padding: 0;
  }

  .panel-header,
  .section-head,
  .records-header {
    align-items: stretch;
    flex-direction: column;
  }

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

  .stats-sections .section-head .section-actions {
    display: none;
  }

  .stats-sections .section-actions-mobile {
    display: flex;
    justify-content: center;
    margin: 10px 0 20px;
  }

  .stats-sections .section-actions-mobile:last-child {
    margin-bottom: 0;
  }

  .search-field {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 13px;
  }

  .sidebar {
    gap: 12px;
    padding: 16px 14px;
  }

  .brand-logo {
    max-width: min(178px, 46vw);
    height: 42px;
  }

  .topbar-brand-logo {
    height: 42px;
    max-width: min(170px, 45vw);
  }

  .sidebar-status {
    max-width: min(170px, 44vw);
    padding: 8px 9px;
    gap: 8px;
  }

  .stats-update-status {
    max-width: calc(100vw - 28px);
  }

  .sidebar-status p {
    font-size: 11px;
    line-height: 1.25;
  }

  .sidebar-status .pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

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

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 24px;
  }

  .content {
    padding: 18px 0 32px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .tabs .tab {
    width: 100%;
    flex: none;
    min-width: 0;
    padding: 0 6px;
    font-size: 11px;
  }

  .stats-page-controls .filter-leaderboards,
  .stats-page-controls .filter-stats {
    grid-template-columns: 1fr;
  }

  .stats-page-controls .filter-records {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-page-controls .filter-records .field {
    width: 100%;
    min-width: 0;
  }

  .personal-best-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .personal-best-filters .field {
    min-width: 0;
  }

  .stats-page-controls .filter-records .search-field {
    justify-self: stretch;
    width: 100%;
  }

  .stats-search-button {
    width: 100%;
  }

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

  .metric .value {
    font-size: 21px;
  }

  .record-card-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(354px, 98vw, 424px);
  }

  .weapon-card-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(390px, 112vw, 455px);
    padding: 2px 0 6px;
  }

  .killstreak-card-grid {
    grid-auto-rows: clamp(260px, 74vw, 330px);
  }

  .record-card {
    aspect-ratio: 1 / 1;
  }

  .record-card-cycle {
    bottom: 5px;
    height: 14px;
  }

  .record-card-main {
    padding: 14px 16px 9px;
  }

  .record-card-main h3 {
    font-size: 23px;
  }

  .record-card-stats {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.8fr);
    padding: 0 16px 13px;
  }

  

  

  

  

  

  

  

  table {
    min-width: 760px;
  }

  .leaderboard-wrap table {
    min-width: 900px;
  }

  .records-wrap table {
    min-width: 900px;
  }

  th,
  td {
    padding: 12px 13px;
  }
}





























@media (min-width: 1181px) {
  

  

  

  
}

@media (max-width: 1180px) {
  

  

  

  
}











































/* Mobile uses the neutral profile surface instead of distorting theme artwork. */
@media (max-width: 920px) {
  
}

/* Keep image-backed profiles readable when the 3:1 desktop card stacks on phones. */
@media (max-width: 560px) {
  

  

  

  

  

  

  

  

  

  

  

  
}

/* Smaller viewports render the canonical desktop canvas, then scale it uniformly. */
@media (max-width: 1180px) {
  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  
}

@media (min-width: 561px) and (max-width: 1180px) and (orientation: landscape) {
  .stats-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    overflow: visible;
  }

  body.admin-view .stats-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .stats-tabs .tab {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding-right: 4px;
    padding-left: 4px;
    border: 1px solid #2d3136;
    border-radius: var(--radius);
    background: #15171a;
    font-size: clamp(8px, 1.2vw, 11px);
  }

  html[data-active-tab] .stats-tabs .tab.active,
  body[data-active-tab] .stats-tabs .tab.active {
    border-color: #2d3136;
    background: #15171a;
  }

  html[data-active-tab="leaderboards"] .stats-tabs .tab[data-tab="leaderboards"],
  html[data-active-tab="records"] .stats-tabs .tab[data-tab="records"],
  html[data-active-tab="stats"] .stats-tabs .tab[data-tab="stats"],
  html[data-active-tab="overview"] .stats-tabs .tab[data-tab="overview"],
  html[data-active-tab="players"] .stats-tabs .tab[data-tab="players"],
  html[data-active-tab="visits"] .stats-tabs .tab[data-tab="visits"],
  body[data-active-tab="leaderboards"] .stats-tabs .tab[data-tab="leaderboards"],
  body[data-active-tab="records"] .stats-tabs .tab[data-tab="records"],
  body[data-active-tab="stats"] .stats-tabs .tab[data-tab="stats"],
  body[data-active-tab="overview"] .stats-tabs .tab[data-tab="overview"],
  body[data-active-tab="players"] .stats-tabs .tab[data-tab="players"],
  body[data-active-tab="visits"] .stats-tabs .tab[data-tab="visits"] {
    border-color: #3a3f46;
    background: #1b1e22;
  }
}

/* Shared IW4x section navigation */
.iw4x-section-tabs-shell {
  position: relative;
  width: 100%;
  margin-top: 13px;
}

.iw4x-section-tabs {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  gap: 6px 22px;
}

.iw4x-section-tabs .iw4x-section-tab {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #a7a7a7;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.iw4x-section-tabs .iw4x-section-tab::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  content: "";
}

.iw4x-section-tabs .iw4x-section-tab:hover,
.iw4x-section-tabs .iw4x-section-tab.active {
  color: #ffffff;
}

.iw4x-section-tabs .iw4x-section-tab.active::after {
  background: #00a4dc;
  box-shadow: 0 0 18px rgba(0, 164, 220, 0.35);
}

.iw4x-section-tabs .iw4x-section-tab.iw4x-admin-only {
  display: none !important;
}

.iw4x-admin-layout .iw4x-section-tabs .iw4x-section-tab.iw4x-admin-only {
  display: inline-flex !important;
}

@media (max-width: 920px),
       (min-width: 561px) and (max-width: 1180px) and (orientation: landscape) {
  .iw4x-section-tabs-shell {
    margin-top: 14px;
  }

  .iw4x-section-tabs-shell::before,
  .iw4x-section-tabs-shell::after {
    position: absolute;
    top: 0;
    bottom: 5px;
    z-index: 2;
    width: 28px;
    opacity: 0;
    pointer-events: none;
    content: "";
    transition: opacity 160ms ease;
  }

  .iw4x-section-tabs-shell::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 164, 220, 0.22), rgba(12, 13, 15, 0.9) 38%, transparent);
    box-shadow: -5px 0 14px rgba(0, 164, 220, 0.12);
  }

  .iw4x-section-tabs-shell::after {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 164, 220, 0.22), rgba(12, 13, 15, 0.9) 38%, transparent);
    box-shadow: 5px 0 14px rgba(0, 164, 220, 0.12);
  }

  .iw4x-section-tabs-shell.can-scroll-left::before,
  .iw4x-section-tabs-shell.can-scroll-right::after {
    opacity: 1;
  }

  .iw4x-section-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 3px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .iw4x-section-tabs::-webkit-scrollbar {
    display: none;
  }

  .iw4x-section-tabs .iw4x-section-tab {
    flex: 0 0 auto;
    width: auto;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #2d3136 !important;
    border-radius: 8px;
    background: #15171a !important;
    font-size: 11px;
  }

  .iw4x-section-tabs .iw4x-section-tab.active {
    border-color: #3a3f46 !important;
    background: #1b1e22 !important;
  }

}


/* IW4x homepage */
.iw4x-home-page{
  color-scheme:dark;
  --topbar-height:59px;
  --bg:#0c0d0f;
  --panel:#121212;
  --panel-2:#181818;
  --line:#2a2a2a;
  --text:#fff;
  --soft:#d8d8d8;
  --muted:#a7a7a7;
  --blue:#00a4dc;
  --blue-2:#78dfff;
  --blue-dark:#0085b4;
  --green:#45d17f;
  --shadow:0 24px 80px rgba(0,0,0,.34);
  --radius:8px;
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}
.iw4x-home-page *{box-sizing:border-box}
.iw4x-app .iw4x-title-accent{display:inline!important;color:#bdf575;text-shadow:0 0 24px rgba(189,245,117,.18)}
html:has(body.iw4x-home-page){background:var(--bg);scroll-behavior:smooth}
body.iw4x-home-page{
  --roosted-topbar-height:var(--topbar-height);
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  color:var(--text);
  background:var(--bg);
  font-size:14px;
}
body.iw4x-home-page.modal-open{overflow:hidden}
.iw4x-home-page [data-iw4x-view="home"] a{color:inherit}
.iw4x-home-page .topbar{position:sticky;top:0;z-index:1000}
.iw4x-home-page .page{width:100%;min-height:calc(100vh - var(--topbar-height));display:flex;flex-direction:column}
.iw4x-home-page main{width:100%;flex:1}
.iw4x-home-page [data-iw4x-view="home"]>main{background:radial-gradient(ellipse 76% 42% at 50% 48%,rgba(214,224,216,.045),transparent 72%),var(--bg)}
.iw4x-home-page .shell{width:min(1180px,calc(100% - 36px));margin:0 auto}
.iw4x-home-page .iw4x-head{padding-top:44px}
.iw4x-home-page .iw4x-title{max-width:720px;margin:0;font-size:46px;font-weight:900;letter-spacing:0;line-height:1.04}
.iw4x-home-page .iw4x-head>.iw4x-section-tabs{margin-top:13px}

.iw4x-home-page .landing-hero{position:relative;min-height:552px;display:grid;place-items:center;isolation:isolate;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.08);background:var(--bg)}
.iw4x-home-page .landing-hero::before{content:"";position:absolute;inset:-2%;z-index:-2;background:linear-gradient(rgba(4,7,9,.77),rgba(4,7,9,.77)),url('/assets/games/mw2.jpg') center/cover no-repeat}
.iw4x-home-page .landing-hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to bottom,var(--bg) 0%,rgba(12,13,15,.45) 7%,transparent 19%,transparent 72%,rgba(12,13,15,.48) 88%,var(--bg) 100%);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);-webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.72) 11%,transparent 23%,transparent 67%,rgba(0,0,0,.72) 88%,#000 100%);mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.72) 11%,transparent 23%,transparent 67%,rgba(0,0,0,.72) 88%,#000 100%);pointer-events:none}
.iw4x-home-page .landing-hero-content{position:relative;z-index:1;width:min(720px,calc(100% - 36px));padding:62px 0;text-align:center}
.iw4x-home-page .eyebrow{margin:0 0 12px;color:var(--blue-2);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:1.6px}
.iw4x-home-page .landing-hero h2{margin:0;font-size:clamp(36px,5vw,62px);line-height:1;font-weight:900;letter-spacing:0}
.iw4x-home-page .landing-hero h2 .iw4x-title-accent{color:#bdf575;text-shadow:0 0 24px rgba(189,245,117,.18)}
.iw4x-home-page .landing-hero .lead{max-width:610px;margin:18px auto 0;color:#f1f1f1;font-size:20px;line-height:1.45;font-weight:650}
.iw4x-home-page .landing-hero .sublead{max-width:590px;margin:12px auto 0;color:#c9c9c9;font-size:16px;line-height:1.6}
.iw4x-home-page .actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:27px}
.iw4x-home-page .button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 20px;border:1px solid #3a3a3a;border-radius:var(--radius);background:#191919;color:#fff;text-decoration:none;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.35px;transition:background .15s ease,border-color .15s ease}
.iw4x-home-page .button:hover{background:#222;border-color:#555}
.iw4x-home-page .button.primary{background:#008fbe;border-color:#18b8ed}
.iw4x-home-page .button.primary:hover{background:#00a4dc}

.iw4x-home-page .content-section{position:relative;border-top:0;padding:54px 0;text-align:center}
.iw4x-home-page .content-section::before{content:"";position:absolute;top:0;left:50%;width:min(1180px,calc(100% - 36px));height:1px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.04) 10%,rgba(255,255,255,.1) 30%,rgba(255,255,255,.1) 70%,rgba(255,255,255,.04) 90%,transparent);pointer-events:none}
.iw4x-home-page .landing-hero+.content-section::before{display:none}
.iw4x-home-page .content-section h2{margin:0 0 14px;font-size:23px;line-height:1.2;font-weight:850;text-transform:uppercase}
.iw4x-home-page .content-section p{margin:0;color:var(--muted);line-height:1.7;font-size:15px}
.iw4x-home-page .section-copy{max-width:780px;margin-right:auto;margin-left:auto}
.iw4x-home-page .text-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin-top:20px;padding:0 16px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(255,255,255,.045);color:#e3e3e3;font-weight:800;text-decoration:none;transition:background .15s ease,border-color .15s ease,color .15s ease}
.iw4x-home-page .text-link svg{width:15px;height:15px;flex:0 0 auto}
.iw4x-home-page .text-link:hover{color:#fff;border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.075)}

.iw4x-home-page #how-to-play .setup-panel{padding:0;border:0;background:transparent;text-align:center}
.iw4x-home-page #how-to-play h2{font-size:22px;text-transform:none}
.iw4x-home-page .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;background:transparent;border:0}
.iw4x-home-page .step{min-height:0;padding:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:rgba(255,255,255,.035);text-align:center}
.iw4x-home-page .step h3{margin:0 0 8px;font-size:18px}
.iw4x-home-page .step p{font-size:14px;line-height:1.55}
.iw4x-home-page .step h3 a{color:inherit;font-weight:inherit;text-decoration:none}
.iw4x-home-page .step h3 a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.iw4x-home-page .section-action{text-align:center;margin-top:26px}

.iw4x-home-page .server-grid{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 28px)/3);grid-template-columns:none;gap:14px;margin-top:27px;padding:1px 0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-behavior:smooth;scroll-snap-type:x proximity;scrollbar-width:none;touch-action:pan-x pan-y;cursor:grab}
.iw4x-home-page .server-grid:has(>.empty-card){grid-auto-columns:100%;cursor:default}
.iw4x-home-page .server-grid::-webkit-scrollbar{display:none}
.iw4x-home-page .server-grid.is-panning{scroll-behavior:auto;scroll-snap-type:none;cursor:grabbing;user-select:none}
.iw4x-home-page .server-pan-hint{display:flex;align-items:center;justify-content:center;gap:7px;width:84px;margin:12px auto 0;color:rgba(255,255,255,.42);font-size:15px;line-height:1;pointer-events:none;user-select:none}
.iw4x-home-page .server-pan-hint[hidden]{display:none}
.iw4x-home-page .server-pan-hint-line{width:30px;height:1px;background:linear-gradient(90deg,rgba(255,255,255,.1),rgba(255,255,255,.5),rgba(255,255,255,.1))}
.iw4x-home-page .server-pan-hint+.section-action{margin-top:15px}
.iw4x-home-page .server-card{position:relative;display:flex;flex-direction:column;overflow:hidden;min-width:0;aspect-ratio:16 / 9;padding:14px 14px 56px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015)),var(--panel);box-shadow:0 14px 40px rgba(0,0,0,.18);color:inherit}
.iw4x-home-page .server-grid>.server-card{scroll-snap-align:start;scroll-snap-stop:normal}
.iw4x-home-page .server-card.has-map-image{background:#101010}
.iw4x-home-page .server-card.has-map-image::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(8,8,8,.9) 0%,rgba(8,8,8,.62) 48%,rgba(8,8,8,.38) 100%),linear-gradient(180deg,rgba(8,8,8,.18) 0%,rgba(8,8,8,.82) 100%);pointer-events:none}
.iw4x-home-page .server-map-art{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;opacity:.72;pointer-events:none;user-select:none}
.iw4x-home-page .server-heading{position:relative;z-index:1;display:grid;justify-items:start;min-width:0;padding-right:84px;text-align:left}
.iw4x-home-page .server-heading h3{max-width:100%;margin:0;color:#fff;font-size:18px;font-weight:850;line-height:1.15;text-align:left}
.iw4x-home-page .live-pill{position:absolute;top:12px;right:12px;z-index:1;display:inline-flex;align-items:center;gap:6px;min-height:22px;padding:0 8px;border:1px solid rgba(69,209,127,.28);border-radius:999px;background:rgba(69,209,127,.09);color:#c6f7da;font-size:10px;font-weight:900;text-transform:uppercase}
.iw4x-home-page .live-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 12px rgba(69,209,127,.55)}
.iw4x-home-page .server-meta{position:absolute;bottom:16px;left:14px;z-index:1;display:grid;justify-items:start;gap:6px;max-width:calc(100% - 150px);color:var(--muted);font-size:12px;text-align:left}
.iw4x-home-page .server-map{color:var(--soft);font-size:15px;font-weight:780;line-height:1.2}
.iw4x-home-page .server-score{margin-top:5px;color:var(--muted);font-size:12px;font-weight:750;line-height:1.2}
.iw4x-home-page .server-player-count{display:inline;width:max-content;max-width:100%;padding:0;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:750;line-height:1.2;text-align:left;cursor:pointer}
.iw4x-home-page .server-player-count:hover{color:var(--soft);text-decoration:underline;text-underline-offset:3px}
.iw4x-home-page .server-actions{position:absolute;right:14px;bottom:14px;z-index:1}
.iw4x-home-page .server-join{min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border:1px solid transparent;border-radius:var(--radius);background:var(--blue);color:#fff;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.iw4x-home-page .server-join:hover{background:var(--blue-dark)}
.iw4x-home-page .empty-card{grid-column:1 / -1;min-height:120px;padding:22px;border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted);display:grid;place-items:center;text-align:center}
.iw4x-home-page .server-modal{position:fixed;inset:0;z-index:1200;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(0,0,0,.72);backdrop-filter:blur(10px)}
.iw4x-home-page .server-modal.open{display:flex}
.iw4x-home-page .server-modal-card{width:min(440px,100%);max-height:min(86vh,620px);overflow:auto;border:1px solid var(--line);border-radius:8px;background:#151515;box-shadow:var(--shadow)}
.iw4x-home-page .server-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 18px 14px;border-bottom:1px solid rgba(255,255,255,.075)}
.iw4x-home-page .server-modal-head h2{margin:5px 0 0;color:#fff;font-size:20px}.iw4x-home-page .server-modal-meta{margin:6px 0 0;color:var(--muted);font-size:13px}
.iw4x-home-page .server-modal-close{flex:0 0 auto;min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.04);color:var(--soft);font:inherit;font-size:12px;font-weight:850;cursor:pointer}
.iw4x-home-page .server-modal-close:hover{color:#fff;border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.075)}
.iw4x-home-page .player-list{display:grid;gap:8px;padding:16px 18px 18px}.iw4x-home-page .player-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:10px 12px;border:1px solid rgba(255,255,255,.075);border-radius:8px;background:rgba(255,255,255,.035)}
.iw4x-home-page .player-name{min-width:0;overflow-wrap:anywhere;color:#fff;font-size:14px;font-weight:780;line-height:1.35;text-decoration:none}.iw4x-home-page .player-name:hover{text-decoration:underline;text-underline-offset:3px}.iw4x-home-page .player-score{flex:0 0 auto;color:var(--soft);font-size:14px;font-weight:850;font-variant-numeric:tabular-nums}.iw4x-home-page .player-empty{padding:18px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);text-align:center}
.iw4x-home-page .c0{color:#2b2f33}.iw4x-home-page .c1{color:#ff6b6b}.iw4x-home-page .c2{color:#56d18d}.iw4x-home-page .c3{color:#d9b85f}.iw4x-home-page .c4{color:#2f9bff}.iw4x-home-page .c5{color:#b48cff}.iw4x-home-page .c6{color:#ff8fc4}.iw4x-home-page .c7{color:#eef5fa}.iw4x-home-page .c8{color:#9dafbd}.iw4x-home-page .c9{color:#72c9ff}.iw4x-home-page .c-rainbow{color:#ff5d66;animation:rainbowName 5s ease-in-out infinite}
@keyframes rainbowName{0%,100%{color:#ff5d66}20%{color:#f4c152}40%{color:#56d18d}60%{color:#2f9bff}80%{color:#b48cff}}

.iw4x-home-page .story{max-width:900px;margin-right:auto;margin-left:auto;text-align:center}
.iw4x-home-page .story .intro{margin-bottom:13px;color:#f2f2f2;font-size:17px;font-weight:800}
.iw4x-home-page .story p+p{margin-top:14px}
.iw4x-home-page .story .closing{margin-top:22px;color:#fff;font-weight:800}
.iw4x-home-page .content-section.ready{text-align:center;padding:48px 0 56px}
.iw4x-home-page .content-section.ready h2{margin-bottom:8px}

@media(max-width:760px){
  .iw4x-home-page .shell{width:calc(100% - 24px)}
  .iw4x-home-page .content-section::before{width:calc(100% - 24px)}
  .iw4x-home-page .iw4x-head{padding-top:24px}
  .iw4x-home-page .iw4x-title{font-size:36px}
  .iw4x-home-page .iw4x-head>.iw4x-section-tabs{margin-top:14px}
  .iw4x-home-page .landing-hero{min-height:480px}
  .iw4x-home-page .landing-hero-content{padding:45px 0}
  .iw4x-home-page .landing-hero .lead{font-size:17px}
  .iw4x-home-page .landing-hero .sublead{font-size:14px}
  .iw4x-home-page .content-section{padding:40px 0}
  .iw4x-home-page .steps{grid-template-columns:1fr}
  .iw4x-home-page .server-grid{grid-auto-columns:min(88vw,380px)}
  .iw4x-home-page .server-pan-hint{display:none}
  .iw4x-home-page .step{min-height:0}
  .iw4x-home-page .step{padding:18px}
  .iw4x-home-page .server-modal{align-items:flex-end;padding:12px}
  .iw4x-home-page .server-actions{display:none}
  .iw4x-home-page .server-meta{max-width:calc(100% - 28px)}
}
@media(max-width:500px){
  .iw4x-home-page .landing-hero h2{font-size:35px}
  .iw4x-home-page .actions{flex-direction:column}
  .iw4x-home-page .button{width:100%}
}


/* IW4x servers page */
.iw4x-servers-page{
  color-scheme:dark;
  --topbar-height:59px;
  --bg:#0c0d0f;
  --panel:#121212;
  --panel-2:#181818;
  --line:#2a2a2a;
  --line-soft:rgba(255,255,255,.075);
  --border:#2a2a2a;
  --text:#ffffff;
  --soft:#d8d8d8;
  --muted:#a7a7a7;
  --blue:#00a4dc;
  --blue-2:#78dfff;
  --blue-dark:#0085b4;
  --green:#45d17f;
  --shadow:0 24px 80px rgba(0,0,0,.34);
  --radius:8px;
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}

.iw4x-servers-page *{
  box-sizing:border-box;
}

html:has(body.iw4x-servers-page){
  background:var(--bg);
}

body.iw4x-servers-page{
  --roosted-topbar-height:var(--topbar-height);
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow-x:hidden;
  color:var(--text);
  background:var(--bg);
  font-size:14px;
  line-height:1.45;
}

body.iw4x-servers-page.modal-open{
  overflow:hidden;
}

.iw4x-servers-page [data-iw4x-view="servers"] a,
.iw4x-servers-page [data-iw4x-view="servers"] button{
  -webkit-tap-highlight-color:transparent;
}

.iw4x-servers-page [data-iw4x-view="servers"] a{
  color:inherit;
}

.iw4x-servers-page [data-iw4x-view="servers"] a:focus-visible,
.iw4x-servers-page [data-iw4x-view="servers"] button:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:3px;
}

.iw4x-servers-page [data-iw4x-view="servers"] h1,
.iw4x-servers-page [data-iw4x-view="servers"] h2,
.iw4x-servers-page [data-iw4x-view="servers"] h3,
.iw4x-servers-page [data-iw4x-view="servers"] p{
  margin:0;
}

.iw4x-servers-page .page{
  width:min(1180px,calc(100% - 36px));
  min-height:calc(100vh - var(--topbar-height));
  min-height:calc(100svh - var(--topbar-height));
  margin:0 auto;
  display:flex;
  flex:1;
  flex-direction:column;
}

.iw4x-servers-page main{
  flex:1 0 auto;
}

.iw4x-servers-page .topbar{
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  height:var(--topbar-height);
  min-height:var(--topbar-height);
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(9,9,9,.82);
  backdrop-filter:blur(14px);
}

.iw4x-servers-page .topbar-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  width:100%;
  min-height:59px;
  padding:10px 16px;
  margin:0 auto;
}

.iw4x-servers-page .topbar .topbar-inner{
  justify-content:flex-start;
  position:relative;
  width:100%;
  padding:10px 16px;
}

.iw4x-servers-page .brand{
  display:flex;
  align-items:center;
  min-width:0;
  text-decoration:none;
}

.iw4x-servers-page .brand img{
  display:block;
  width:auto;
  height:32px;
  max-width:190px;
  object-fit:contain;
}

.iw4x-servers-page .site-nav{
  position:absolute;
  top:50%;
  left:max(130px,calc((100% - 1180px) / 2));
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:0;
}

.iw4x-servers-page .site-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-bottom:2px solid transparent;
  color:var(--soft);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  transition:color 140ms ease,border-color 140ms ease;
}

.iw4x-servers-page .site-nav a:hover,
.iw4x-servers-page .site-nav a.active{
  border-color:var(--blue);
  color:#fff;
}

.iw4x-servers-page .nav-dropdown{
  position:relative;
}

.iw4x-servers-page .nav-dropdown::after{
  content:"";
  position:absolute;
  top:100%;
  right:-8px;
  left:-8px;
  height:10px;
}

.iw4x-servers-page .nav-trigger{
  gap:8px;
}

.iw4x-servers-page .nav-trigger::after{
  content:"";
  width:7px;
  height:7px;
  margin-top:-3px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  opacity:.72;
  transform:rotate(45deg);
}

.iw4x-servers-page .nav-dropdown:hover .nav-trigger,
.iw4x-servers-page .nav-dropdown:focus-within .nav-trigger,
.iw4x-servers-page .nav-dropdown.active .nav-trigger{
  border-color:var(--blue);
  color:#fff;
}

.iw4x-servers-page .nav-menu{
  position:absolute;
  top:100%;
  left:0;
  z-index:20;
  display:none;
  min-width:170px;
  margin-top:8px;
  padding:8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  background:#151515;
  box-shadow:0 16px 38px rgba(0,0,0,.38);
}

.iw4x-servers-page .nav-dropdown:hover .nav-menu,
.iw4x-servers-page .nav-dropdown:focus-within .nav-menu{
  display:grid;
}

.iw4x-servers-page .nav-menu a{
  justify-content:flex-start;
  min-height:34px;
  padding:0 10px;
  border:0;
  border-radius:7px;
  color:#fff;
}

.iw4x-servers-page .nav-menu a:hover,
.iw4x-servers-page .nav-menu a:focus-visible{
  border-color:transparent;
  background:rgba(255,255,255,.08);
}

@media(min-width:1430px){
  .iw4x-servers-page .site-nav{
    left:calc((100% - 1180px) / 2);
  }
}

.iw4x-servers-page .topbar-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
  margin-left:auto;
}

.iw4x-servers-page .topbar-actions .roosted-auth{
  margin-left:0;
}

.iw4x-servers-page .hero{
  display:block;
  padding:44px 0 0;
}

.iw4x-servers-page .hero > .iw4x-section-tabs{
  margin-top:13px;
}

.iw4x-servers-page .eyebrow{
  color:var(--blue-2);
  font-size:12px;
  font-weight:850;
  letter-spacing:0;
  text-transform:uppercase;
}

.iw4x-servers-page h1{
  max-width:720px;
  color:#fff;
  font-size:46px;
  font-weight:900;
  letter-spacing:0;
  line-height:1.04;
}

.iw4x-servers-page .iw4x-title{
  color:#bdf575;
  text-shadow:0 0 24px rgba(189,245,117,.18);
}

.iw4x-servers-page .iw4x-page-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:6px 22px;
  margin-top:13px;
}

.iw4x-servers-page .iw4x-page-tabs a{
  position:relative;
  display:inline-flex;
  min-height:38px;
  align-items:center;
  justify-content:center;
  padding:0 6px;
  color:var(--muted);
  font-size:13px;
  font-weight:850;
  text-decoration:none;
  text-transform:uppercase;
  white-space:nowrap;
}

.iw4x-servers-page .iw4x-page-tabs a::after{
  content:"";
  position:absolute;
  right:8px;
  bottom:0;
  left:8px;
  height:2px;
  border-radius:999px 999px 0 0;
  background:transparent;
}

.iw4x-servers-page .iw4x-page-tabs a:hover,
.iw4x-servers-page .iw4x-page-tabs a.active{
  color:#fff;
}

.iw4x-servers-page .iw4x-page-tabs a.active::after{
  background:var(--blue);
  box-shadow:0 0 18px rgba(0,164,220,.35);
}

.iw4x-servers-page .iw4x-page-tabs .iw4x-admin-only{
  display:none;
}

body.iw4x-servers-page.iw4x-admin .iw4x-page-tabs .iw4x-admin-only{
  display:inline-flex;
}

.iw4x-servers-page .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:0 22px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius);
  background:rgba(255,255,255,.045);
  color:#fff;
  font:inherit;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:background 140ms ease,border-color 140ms ease,transform 140ms ease;
}

.iw4x-servers-page .btn:hover{
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.07);
}

.iw4x-servers-page .btn:active{
  transform:translateY(1px);
}

.iw4x-servers-page .btn.primary{
  border-color:transparent;
  background:var(--blue);
  box-shadow:none;
}

.iw4x-servers-page .btn.primary:hover{
  background:var(--blue-dark);
}

.iw4x-servers-page .server-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015)),
    var(--panel);
  box-shadow:0 14px 40px rgba(0,0,0,.18);
}

.iw4x-servers-page .section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
  padding-top:22px;
  border-top:1px solid var(--line-soft);
}

.iw4x-servers-page .section-head h2{
  color:var(--muted);
  font-size:14px;
  font-weight:850;
  letter-spacing:0;
  text-transform:uppercase;
}

.iw4x-servers-page .section-head p{
  max-width:560px;
  color:var(--muted);
  font-size:13px;
}

.iw4x-servers-page .server-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.iw4x-servers-page .server-card{
  position:relative;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-width:0;
  min-height:0;
  aspect-ratio:16 / 9;
  padding:14px 14px 56px;
  color:inherit;
}

.iw4x-servers-page .server-card.has-map-image{
  background:#101010;
}

.iw4x-servers-page .server-card.has-map-image::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(90deg,rgba(8,8,8,.9) 0%,rgba(8,8,8,.62) 48%,rgba(8,8,8,.38) 100%),
    linear-gradient(180deg,rgba(8,8,8,.18) 0%,rgba(8,8,8,.82) 100%);
  pointer-events:none;
}

.iw4x-servers-page .server-card.has-map-image .server-heading{
  position:relative;
  z-index:1;
}

.iw4x-servers-page .server-card.has-map-image .live-pill,
.iw4x-servers-page .server-card.has-map-image .server-meta,
.iw4x-servers-page .server-card.has-map-image .server-actions{
  z-index:1;
}

.iw4x-servers-page .server-map-art{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.72;
  pointer-events:none;
  user-select:none;
}

.iw4x-servers-page .server-card h3{
  max-width:100%;
  color:#fff;
  font-size:18px;
  font-weight:850;
  line-height:1.15;
  text-align:left;
}

.iw4x-servers-page .server-heading{
  display:grid;
  justify-items:start;
  min-width:0;
  padding-right:84px;
  text-align:left;
}

.iw4x-servers-page .live-pill{
  position:absolute;
  top:12px;
  right:12px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:22px;
  padding:0 8px;
  border:1px solid rgba(69,209,127,.28);
  border-radius:999px;
  background:rgba(69,209,127,.09);
  color:#c6f7da;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}

.iw4x-servers-page .live-pill::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 12px rgba(69,209,127,.55);
}

.iw4x-servers-page .server-meta{
  position:absolute;
  bottom:16px;
  left:14px;
  display:grid;
  justify-items:start;
  gap:6px;
  max-width:calc(100% - 150px);
  margin-top:0;
  color:var(--muted);
  font-size:12px;
  text-align:left;
}

.iw4x-servers-page .server-map{
  color:var(--soft);
  font-size:15px;
  font-weight:780;
  line-height:1.2;
}

.iw4x-servers-page .server-score{
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
  line-height:1.2;
}

.iw4x-servers-page .server-player-count{
  display:inline;
  width:max-content;
  max-width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:12px;
  font-weight:750;
  line-height:1.2;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}

.iw4x-servers-page .server-player-count:hover{
  color:var(--soft);
  text-decoration:underline;
  text-underline-offset:3px;
}

.iw4x-servers-page .server-actions{
  position:absolute;
  right:14px;
  bottom:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:0;
  padding-top:0;
}

.iw4x-servers-page .server-actions .btn{
  min-height:36px;
  padding:0 14px;
  font-size:12px;
}

.iw4x-servers-page .empty-card{
  grid-column:1 / -1;
  min-height:120px;
  padding:22px;
  border:1px dashed var(--line);
  border-radius:var(--radius);
  color:var(--muted);
  display:grid;
  place-items:center;
  text-align:center;
}

.iw4x-servers-page .footer{
  display:grid;
  grid-template-columns:minmax(220px,1fr) repeat(3,minmax(130px,.48fr)) minmax(120px,.45fr);
  gap:24px;
  margin-top:auto;
  padding:34px 0 38px;
  color:var(--muted);
}

.iw4x-servers-page .footer-brand p{
  max-width:260px;
  font-size:13px;
}

.iw4x-servers-page .footer h3{
  margin-bottom:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
}

.iw4x-servers-page .footer a,
.iw4x-servers-page .footer span{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:13px;
  text-decoration:none;
}

.iw4x-servers-page .footer a:hover{
  color:#fff;
}

.iw4x-servers-page .copyright{
  align-self:end;
  font-size:13px;
  text-align:right;
}

.iw4x-servers-page .server-modal{
  position:fixed;
  inset:0;
  z-index:80;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(10px);
}

.iw4x-servers-page .server-modal.open{
  display:flex;
}

.iw4x-servers-page .server-modal-card{
  width:min(440px,100%);
  max-height:min(86vh,620px);
  overflow:auto;
  border:1px solid var(--line);
  border-radius:8px;
  background:#151515;
  box-shadow:var(--shadow);
}

.iw4x-servers-page .server-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 18px 14px;
  border-bottom:1px solid var(--line-soft);
}

.iw4x-servers-page .server-modal-head h2{
  margin-top:5px;
  color:#fff;
  font-size:20px;
}

.iw4x-servers-page .server-modal-meta{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
}

.iw4x-servers-page .server-modal-close{
  flex:0 0 auto;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:rgba(255,255,255,.04);
  color:var(--soft);
  font:inherit;
  font-size:12px;
  font-weight:850;
  cursor:pointer;
}

.iw4x-servers-page .server-modal-close:hover{
  color:#fff;
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.075);
}

.iw4x-servers-page .player-list{
  display:grid;
  gap:8px;
  padding:16px 18px 18px;
}

.iw4x-servers-page .player-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-width:0;
  padding:10px 12px;
  border:1px solid var(--line-soft);
  border-radius:8px;
  background:rgba(255,255,255,.035);
}

.iw4x-servers-page .player-name{
  min-width:0;
  overflow-wrap:anywhere;
  color:#fff;
  font-size:14px;
  font-weight:780;
  line-height:1.35;
  text-decoration:none;
}

.iw4x-servers-page .player-name:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.iw4x-servers-page .player-score{
  flex:0 0 auto;
  color:var(--soft);
  font-size:14px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
  line-height:1.35;
  text-align:right;
}

.iw4x-servers-page .c0{color:#2b2f33}
.iw4x-servers-page .c1{color:#ff6b6b}
.iw4x-servers-page .c2{color:#56d18d}
.iw4x-servers-page .c3{color:#d9b85f}
.iw4x-servers-page .c4{color:#2f9bff}
.iw4x-servers-page .c5{color:#b48cff}
.iw4x-servers-page .c6{color:#ff8fc4}
.iw4x-servers-page .c7{color:#eef5fa}
.iw4x-servers-page .c8{color:#9dafbd}
.iw4x-servers-page .c9{color:#72c9ff}
.iw4x-servers-page .c-rainbow{
  color:#ff5d66;
  animation:rainbowName 5s ease-in-out infinite;
}

@keyframes rainbowName{
  0%,100%{color:#ff5d66;text-shadow:0 0 8px rgba(255,93,102,.28)}
  20%{color:#f4c152;text-shadow:0 0 8px rgba(244,193,82,.28)}
  40%{color:#56d18d;text-shadow:0 0 8px rgba(86,209,141,.28)}
  60%{color:#2f9bff;text-shadow:0 0 8px rgba(47,155,255,.28)}
  80%{color:#b48cff;text-shadow:0 0 8px rgba(180,140,255,.28)}
}

.iw4x-servers-page .player-empty{
  padding:18px;
  border:1px dashed var(--line);
  border-radius:8px;
  color:var(--muted);
  text-align:center;
}

@media(max-width:900px){
  .iw4x-servers-page .server-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .iw4x-servers-page .hero{
    grid-template-columns:1fr;
    align-items:start;
  }

  .iw4x-servers-page .footer{
    grid-template-columns:1fr 1fr;
  }

  .iw4x-servers-page .copyright{
    text-align:left;
  }
}

@media(max-width:760px){
  .iw4x-servers-page{
    --topbar-height:64px;
  }

  .iw4x-servers-page .page{
    width:min(100% - 24px,1180px);
  }

  .iw4x-servers-page .topbar-inner{
    min-height:64px;
    padding:14px 16px 8px;
    width:100%;
  }

  .iw4x-servers-page .topbar .topbar-inner{
    width:100%;
    padding:14px 16px 8px;
  }

  .iw4x-servers-page .brand img{
    height:42px;
    max-width:min(170px,45vw);
  }

  .iw4x-servers-page .site-nav{
    display:none;
  }

  .iw4x-servers-page .topbar-actions{
    gap:8px;
  }

  .iw4x-servers-page .hero{
    padding-top:24px;
  }

  .iw4x-servers-page .hero > .iw4x-section-tabs{
    margin-top:14px;
  }

  .iw4x-servers-page h1{
    font-size:36px;
  }

  .iw4x-servers-page .iw4x-page-tabs{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
  }

  .iw4x-servers-page .iw4x-page-tabs a{
    width:100%;
    min-width:0;
    min-height:42px;
    padding:0 4px;
    border:1px solid #2d3136;
    border-radius:var(--radius);
    background:#15171a;
    font-size:10px;
  }

  body.iw4x-servers-page.iw4x-admin .iw4x-page-tabs{
    grid-template-columns:repeat(7,minmax(0,1fr));
  }

  body.iw4x-servers-page.iw4x-admin .iw4x-page-tabs a{
    padding-right:0;
    padding-left:0;
    font-size:clamp(7px,2vw,9px);
  }

  .iw4x-servers-page .btn,
.iw4x-servers-page .server-actions .btn{
    width:100%;
  }

  .iw4x-servers-page .server-actions .btn{
    width:auto;
  }

  .iw4x-servers-page .server-actions{
    display:none;
  }

  .iw4x-servers-page .server-meta{
    max-width:calc(100% - 28px);
  }

  .iw4x-servers-page .section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .iw4x-servers-page .server-grid{
    grid-template-columns:1fr;
  }

  .iw4x-servers-page .server-modal{
    align-items:flex-end;
    padding:12px;
  }

  .iw4x-servers-page .server-modal-card{
    max-height:82vh;
  }
}

@media(max-width:460px){
  .iw4x-servers-page .server-card{
    padding-right:16px;
    padding-left:16px;
  }

  .iw4x-servers-page .server-meta{
    left:16px;
  }

  .iw4x-servers-page .server-actions{
    right:16px;
  }
}

@media(hover:none) and (pointer:coarse){
  .iw4x-servers-page .server-actions{
    display:none;
  }

  .iw4x-servers-page .server-meta{
    max-width:calc(100% - 28px);
  }
}


/* Shared IW4x page-header geometry */
body.iw4x-home-page .iw4x-head,
body.iw4x-servers-page .hero {
  padding-top: 44px;
}

body.iw4x-home-page .shell {
  min-height: 0;
}

body.iw4x-home-page .iw4x-head > .iw4x-section-tabs,
body.iw4x-servers-page .hero > .iw4x-section-tabs {
  margin-top: 13px;
}

.iw4x-page-rule {
  width: 100%;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04) 10%, rgba(255,255,255,.1) 30%, rgba(255,255,255,.1) 70%, rgba(255,255,255,.04) 90%, transparent);
}

body.iw4x-servers-page .section-head {
  border-top: 0;
}

/* Single-document IW4x application shell */
body.iw4x-app {
  min-height: 100vh;
}

body.iw4x-app.is-routing .iw4x-spa-shell {
  visibility: hidden;
}

.iw4x-spa-shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-height));
  flex-direction: column;
}

.iw4x-spa-shell > [data-iw4x-view] {
  flex: 1 0 auto;
}

.iw4x-spa-shell > [data-iw4x-view][hidden] {
  display: none !important;
}

.iw4x-shared-head.shell {
  width: min(1180px, calc(100% - 36px));
  min-height: 0;
  margin: 0 auto;
  padding-top: 44px;
}

.iw4x-shared-head > .iw4x-section-tabs {
  margin-top: 13px;
}

.iw4x-shared-head .iw4x-title {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: 46px;
  font-weight: 900;
  line-height: 1.04;
  text-shadow: none;
}

.iw4x-shared-head .iw4x-title .iw4x-title-accent {
  color: #bdf575;
  text-shadow: 0 0 24px rgba(189, 245, 117, 0.18);
}

.iw4x-servers-page [data-iw4x-view="servers"] > main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.iw4x-stats-page .iw4x-shared-head + [data-iw4x-view] + [data-iw4x-view] + [data-iw4x-view] .content {
  padding-top: 24px;
}

body.profile-route .stats-page-header {
  display: none;
}

@media (min-width: 761px) {
  .iw4x-servers-page [data-iw4x-view="servers"] > main {
    padding-top: 50px;
  }
}

@media (max-width: 760px) {
  .iw4x-shared-head.shell,
  .iw4x-servers-page [data-iw4x-view="servers"] > main {
    width: calc(100% - 24px);
  }

  body.iw4x-app .iw4x-shared-head.shell {
    padding-top: 24px !important;
  }

  body.iw4x-app .iw4x-shared-head > .iw4x-section-tabs {
    margin-top: 14px !important;
  }

  body.iw4x-app .iw4x-shared-head .iw4x-title {
    font-size: 36px;
  }
}

/* =========================================================
   Shared IW4x SPA server-player modal
   Hmph. This belongs to the application shell, not a route.
   ========================================================= */
.iw4x-app .server-modal[hidden] {
  display: none !important;
}

.iw4x-app .server-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
}

.iw4x-app .server-modal.open {
  display: flex;
}

.iw4x-app .server-modal-card {
  width: min(440px, 100%);
  max-height: min(86vh, 620px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151515;
  box-shadow: var(--shadow);
}

.iw4x-app .server-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.iw4x-app .server-modal-head h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 20px;
}

.iw4x-app .server-modal-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.iw4x-app .server-modal-close {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: #d8d8d8;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.iw4x-app .server-modal-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .075);
}

.iw4x-app .player-list {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
}

.iw4x-app .player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.iw4x-app .player-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
  text-decoration: none;
}

.iw4x-app .player-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.iw4x-app .server-player-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.iw4x-app .server-player-progression {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: rgba(235, 240, 245, .82);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.iw4x-app .server-player-progression img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.iw4x-app .player-score {
  flex: 0 0 auto;
  color: #d8d8d8;
  font-size: 14px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: right;
}

.iw4x-app .player-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.iw4x-app .server-modal .c0 { color: #2b2f33; }
.iw4x-app .server-modal .c1 { color: #ff6b6b; }
.iw4x-app .server-modal .c2 { color: #56d18d; }
.iw4x-app .server-modal .c3 { color: #d9b85f; }
.iw4x-app .server-modal .c4 { color: #2f9bff; }
.iw4x-app .server-modal .c5 { color: #b48cff; }
.iw4x-app .server-modal .c6 { color: #ff8fc4; }
.iw4x-app .server-modal .c7 { color: #eef5fa; }
.iw4x-app .server-modal .c8 { color: #9dafbd; }
.iw4x-app .server-modal .c9 { color: #72c9ff; }
.iw4x-app .server-modal .c-rainbow {
  color: #ff5d66;
  animation: rainbowName 5s ease-in-out infinite;
}

body.iw4x-app.modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .iw4x-app .server-modal {
    align-items: flex-end;
    padding: 12px;
  }
}

/* Portrait player profiles -------------------------------------------------
   Theme packs own artwork and colour; this shared block owns all geometry. */
.profile-page-layout:has(.profile-summary) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: clamp(24px, 3vw, 42px);
}

@media (min-width: 761px) {
  body.profile-route .profile-page-layout:has(.profile-summary) > .stats-sections {
    grid-column: 1;
    grid-row: 1;
  }

  body.profile-route .profile-page-layout:has(.profile-summary) > #statsPanel {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--roosted-topbar-height, var(--topbar-height, 59px)) + 16px);
    margin-top: var(--profile-card-start-offset, 76px);
    align-self: start;
  }

  body.profile-route #stats {
    width: calc(100% - (var(--roosted-sidebar-width, 246px) / 2));
    margin-left: calc(var(--roosted-sidebar-width, 246px) / 2);
  }
}

@media (min-width: 761px) and (max-width: 1429px) {
  body.profile-route #stats {
    width: calc(100% - var(--roosted-sidebar-width, 246px));
    margin-left: var(--roosted-sidebar-width, 246px);
  }
}

/* On full desktop canvases, retain the original 1180px stats page unchanged
   and add the portrait card in new space to its right. */
@media (min-width: 1900px) {
  body.profile-route .content {
    --profile-wide-card-width: 360px;
    --profile-wide-gap: 42px;
    --profile-wide-side-width: calc(var(--profile-wide-card-width) + var(--profile-wide-gap));
    --profile-wide-stats-width: 1180px;
    width: calc(var(--profile-wide-side-width) + var(--profile-wide-stats-width));
    max-width: none;
    margin-right: 0;
    margin-left: calc(var(--roosted-sidebar-width, 246px) + ((100vw - var(--roosted-sidebar-width, 246px) - 1582px) / 2));
  }

  body.profile-route #stats {
    width: 100%;
    margin-left: 0;
  }

  .profile-page-layout:has(.profile-summary) {
    grid-template-columns: var(--profile-wide-stats-width) var(--profile-wide-card-width);
    gap: var(--profile-wide-gap);
  }
}

/* Once the portrait card fits to the right of the centred stats area,
   centre the stats column on the physical viewport. */
@media (min-width: 2476px) {
  body.profile-route .content {
    margin-left: calc((100vw - var(--profile-wide-stats-width)) / 2);
  }
}

.profile-page-layout:has(.profile-summary) > #statsPanel,
.profile-page-layout:has(.profile-summary) > .stats-sections {
  min-width: 0;
}

.profile-portrait-viewport {
  width: 100%;
  height: auto !important;
  margin: 0;
  overflow: visible;
}

.profile-summary.profile-icons-enabled {
  --profile-accent: #12b7ec;
  --profile-card-border: rgba(18, 183, 236, 0.78);
  --profile-icon-filter: brightness(0) saturate(100%) invert(77%) sepia(50%) saturate(3590%) hue-rotate(161deg) brightness(97%) contrast(91%);
  --profile-icon-opacity: 1;
  --profile-name-color: #f7f9fc;
  --profile-status-color: #c0c9d3;
  --profile-label-color: #b7d5e4;
  --profile-value-color: #ffffff;
  --profile-divider-color: rgba(148, 202, 224, 0.27);
  --profile-card-overlay: linear-gradient(180deg, rgba(5, 10, 14, 0.12) 0%, rgba(5, 10, 14, 0.64) 35%, rgba(5, 10, 14, 0.92) 100%);
  position: relative !important;
  inset: auto !important;
  isolation: isolate;
  display: flex;
  width: 100% !important;
  max-width: 360px !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 9 / 16 !important;
  box-sizing: border-box;
  flex-direction: column;
  margin: 0 !important;
  padding: clamp(22px, 2.2vw, 30px) clamp(20px, 2vw, 27px) !important;
  overflow: hidden !important;
  border: 1px solid var(--profile-card-border) !important;
  border-radius: 8px !important;
  background: var(--profile-card-overlay), linear-gradient(160deg, #15212a 0%, #081017 52%, #05090d 100%) !important;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38), inset 0 0 34px rgba(0, 0, 0, 0.22) !important;
  transform: none !important;
}

.profile-summary.profile-icons-enabled.profile-has-background {
  background: var(--profile-card-overlay), var(--profile-theme-background) center / cover no-repeat !important;
}

.profile-summary.profile-icons-enabled::before,
.profile-summary.profile-icons-enabled::after,
.profile-summary.profile-icons-enabled .profile-player-name::before,
.profile-summary.profile-icons-enabled .profile-avatar::after,
.profile-summary.profile-icons-enabled .profile-stat::before,
.profile-summary.profile-icons-enabled .profile-records-held::before {
  display: none !important;
  content: none !important;
}

.profile-summary.profile-icons-enabled .profile-head {
  isolation: auto;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) !important;
  align-items: end;
  gap: 14px 16px !important;
  min-width: 0;
  padding: 0 0 18px !important;
  border-bottom: 1px solid var(--profile-divider-color) !important;
}

.profile-summary.profile-icons-enabled.has-profile-link .profile-head,
.profile-summary.profile-icons-enabled.has-profile-claim .profile-head {
  padding-top: 0 !important;
}

.profile-summary.profile-icons-enabled .profile-avatar,
.profile-summary.profile-icons-enabled[class*="profile-preset-"] .profile-avatar {
  position: relative;
  z-index: 2;
  display: grid;
  width: 96px !important;
  height: 96px !important;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden !important;
  border: 1px solid var(--profile-card-border) !important;
  border-radius: 6px !important;
  background: #080c10 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34) !important;
}

.profile-summary.profile-icons-enabled .profile-avatar::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: #080c10;
  content: "";
  pointer-events: none;
}
.profile-summary.profile-icons-enabled .profile-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }

.profile-summary.profile-icons-enabled .profile-title {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  padding-bottom: 3px;
}

.profile-summary.profile-icons-enabled .profile-player-name {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--profile-name-color);
  font-size: clamp(27px, 2.6vw, 36px) !important;
  font-weight: 900;
  line-height: 1.08 !important;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.62);
}

.profile-summary.profile-icons-enabled .profile-player-name-text {
  display: block;
  overflow: hidden;
  transform: none !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-summary.profile-icons-enabled .profile-presence {
  position: static;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-top: 8px;
  color: var(--profile-status-color);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.profile-summary.profile-icons-enabled .profile-presence > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-summary.profile-icons-enabled .profile-presence-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d75965;
  box-shadow: 0 0 7px rgba(215, 89, 101, 0.35);
}

.profile-summary.profile-icons-enabled .profile-presence.is-online .profile-presence-dot {
  background: #39c978;
  box-shadow: 0 0 7px rgba(57, 201, 120, 0.42);
}

.profile-summary.profile-icons-enabled .profile-records-held {
  position: relative;
  isolation: auto;
  grid-column: 1 / -1 !important;
  display: grid;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 74px !important;
  aspect-ratio: auto !important;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  justify-self: stretch !important;
  gap: 14px;
  margin-top: 2px;
  padding: 12px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.profile-summary.profile-icons-enabled .profile-records-icon {
  width: 48px !important;
  max-width: 48px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  opacity: var(--profile-icon-opacity) !important;
  filter: var(--profile-icon-filter) !important;
  transform: none !important;
}

.profile-summary.profile-icons-enabled .profile-records-copy {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start !important;
  gap: 2px !important;
}

.profile-summary.profile-icons-enabled .profile-records-copy > strong {
  order: 2;
  color: var(--profile-value-color) !important;
  font-size: 32px !important;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48) !important;
  transform: none !important;
}

.profile-summary.profile-icons-enabled .profile-records-label {
  order: 1;
  color: var(--profile-label-color) !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: none !important;
  transform: none !important;
}

.profile-summary.profile-icons-enabled .profile-stat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  min-width: 0;
  padding: 12px 0 0 !important;
}

.profile-summary.profile-icons-enabled .profile-stat-slot {
  position: static !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: auto !important;
}

.profile-summary.profile-icons-enabled .profile-stat,
.profile-summary.profile-icons-enabled[class*="profile-preset-"] .profile-stat {
  position: relative !important;
  inset: auto !important;
  display: grid;
  width: 100% !important;
  height: auto !important;
  min-height: 43px !important;
  box-sizing: border-box;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center;
  gap: 12px !important;
  padding: 6px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--profile-divider-color) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.profile-summary.profile-icons-enabled .profile-stat-slot:nth-child(4) .profile-stat {
  margin-bottom: 9px;
  border-bottom-color: var(--profile-card-border) !important;
}

.profile-summary.profile-icons-enabled .profile-stat-slot:last-child .profile-stat { border-bottom: 0 !important; }

.profile-summary.profile-icons-enabled .profile-stat-icon,
.profile-summary.profile-icons-enabled[class*="profile-preset-"] .profile-stat-icon {
  display: block;
  width: 30px !important;
  max-width: 30px !important;
  height: 30px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: var(--profile-icon-opacity) !important;
  filter: var(--profile-icon-filter) !important;
  object-fit: contain;
  transform: none !important;
}

.profile-summary.profile-icons-enabled .profile-stat-copy {
  display: grid !important;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px !important;
}

.profile-summary.profile-icons-enabled .profile-stat-copy > span {
  grid-column: 1;
  grid-row: 1;
  color: var(--profile-label-color) !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: none !important;
  text-transform: uppercase;
  transform: none !important;
}

.profile-summary.profile-icons-enabled .profile-stat-copy > strong,
.profile-summary.profile-icons-enabled[class*="profile-preset-"] .profile-stat-shots strong {
  grid-column: 2;
  grid-row: 1;
  color: var(--profile-value-color) !important;
  font-size: 22px !important;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48) !important;
  white-space: nowrap;
  transform: none !important;
}

.profile-summary.profile-icons-enabled .profile-actions { top: 10px; right: 10px; bottom: auto; z-index: 8; }
.profile-summary.profile-icons-enabled .profile-link-button { z-index: 8; top: 10px; right: 10px; }

@media (max-width: 980px) {
  .profile-page-layout:has(.profile-summary) { grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); gap: 24px; }
}

@media (max-width: 760px) {
  .profile-page-layout:has(.profile-summary) { display: flex; flex-direction: column; gap: 28px; }
  .profile-page-layout:has(.profile-summary) > #statsPanel,
  .profile-page-layout:has(.profile-summary) > .stats-sections { width: 100%; }
  body.profile-route .profile-page-layout:has(.profile-summary) > #statsPanel {
    position: static;
    margin-top: 0;
  }
  .profile-portrait-viewport {
    display: flex;
    justify-content: center;
  }
  .profile-summary.profile-icons-enabled { width: min(100%, 360px) !important; padding: 22px 20px !important; }
  .profile-summary.profile-icons-enabled .profile-player-name { font-size: clamp(26px, 8vw, 34px) !important; }
}

@media (max-width: 380px) {
  .profile-summary.profile-icons-enabled { padding: 18px 16px !important; }
  .profile-summary.profile-icons-enabled .profile-head { grid-template-columns: 80px minmax(0, 1fr) !important; gap: 12px; }
  .profile-summary.profile-icons-enabled .profile-avatar,
  .profile-summary.profile-icons-enabled[class*="profile-preset-"] .profile-avatar { width: 80px !important; height: 80px !important; }
  .profile-summary.profile-icons-enabled .profile-stat,
  .profile-summary.profile-icons-enabled[class*="profile-preset-"] .profile-stat { min-height: 41px !important; }
}
