:root {
  --nav-bg: #061229;
  --nav-bg-2: #071a39;
  --hero-blue: #103179;
  --primary: #2561c5;
  --primary-dark: #123b82;
  --primary-light: #eaf1ff;
  --gold: #c7a473;
  --gold-button: #f5c96b;
  --gold-dark: #9a7132;
  --page-bg: #f7f9fd;
  --card-bg: #ffffff;
  --border: #e5eaf3;
  --text-main: #0f1b33;
  --text-sub: #3b4861;
  --text-muted: #66728a;
  --success: #16a34a;
  --danger: #64748b;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 24px rgba(15, 27, 51, 0.08);
  --shadow-floating: 0 16px 42px rgba(15, 27, 51, 0.14);
}

/* Final stray-bar cleanup: remove non-data accent strips that can look like red error marks. */
.filter-panel::before,
body.route-ranking .summary-card::before,
body.route-portal .portal-list-card::before {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
  content: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 16%, rgba(37, 97, 197, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfcff 0%, var(--page-bg) 42%, #eef3fb 100%);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(245, 201, 107, 0.74);
  outline-offset: 3px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  color: #f7fbff;
  background: linear-gradient(90deg, #041023, var(--nav-bg) 44%, #071735);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark,
.hero-emblem {
  color: var(--gold-button);
}

.brand-mark svg {
  width: 38px;
  height: 38px;
}

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

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.main-nav a.active {
  background: rgba(245, 201, 107, 0.12);
  color: var(--gold-button);
}

.main-nav a.active::after {
  content: none;
}

.main-nav a[aria-disabled="true"] {
  opacity: 0.72;
}

.header-actions {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.icon-button,
.ghost-button,
.soft-button,
.primary-button,
.tabs button,
.role-filter button {
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
}

.icon-button svg {
  width: 24px;
  height: 24px;
}

.ghost-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(245, 201, 107, 0.38);
  color: var(--gold-button);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 236px;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6, 18, 41, 0.08), rgba(6, 18, 41, 0.42)),
    linear-gradient(90deg, rgba(3, 10, 24, 0.66), rgba(18, 73, 166, 0.16) 50%, rgba(3, 10, 24, 0.66)),
    url("/assets/hero-rift-arena.jpg") center 55% / cover no-repeat;
  color: #ffffff;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.hero::before {
  background:
    radial-gradient(circle at 50% 44%, rgba(84, 173, 255, 0.38), transparent 19rem),
    radial-gradient(circle at 78% 28%, rgba(77, 154, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 24% 55%, rgba(8, 70, 171, 0.22), transparent 22rem),
    linear-gradient(180deg, transparent 0%, rgba(6, 18, 41, 0.58) 100%);
}

.hero::after {
  content: none;
}

.hero-inner {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 236px;
  padding: 28px 20px 34px;
  text-align: center;
}

.hero-emblem svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  margin: 7px 0 7px;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 600;
  text-wrap: balance;
  word-break: keep-all;
}

.ornament {
  display: none;
}

.page-shell {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.ranking-shell {
  position: relative;
  margin-top: -24px;
  padding-bottom: 42px;
}

.mobile-filter-summary {
  display: none;
}

.filter-panel {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) minmax(220px, 1.4fr) 150px;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(229, 234, 243, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-floating);
  backdrop-filter: blur(12px);
}

.mobile-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(18, 59, 130, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 27, 51, 0.08);
}

.mobile-filter-toggle svg {
  width: 18px;
  height: 18px;
}

.filter-panel label,
.sort-select {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-panel select,
.filter-panel input,
.sort-select select {
  width: 100%;
  height: 44px;
  border: 1px solid #dce4f0;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-main);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-field input {
  padding-left: 14px;
}

.search-field {
  position: relative;
}

.search-suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  display: grid;
  gap: 6px;
  width: min(480px, calc(100vw - 64px));
  max-height: min(520px, calc(100vh - 152px));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(220, 228, 240, 0.96);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 27, 51, 0.16);
  scrollbar-color: rgba(37, 97, 197, 0.38) #eef3fb;
  scrollbar-width: thin;
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 5px;
}

.search-suggestion-head span,
.search-suggestion-head em,
.search-suggestion-helper {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.search-suggestion-head span {
  color: var(--primary-dark);
}

.search-suggestion-helper {
  margin-top: -4px;
  padding: 0 4px 4px;
  color: #6f7f95;
  line-height: 1.35;
}

.search-suggestion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 10px 11px;
  border: 1px solid #e4ebf6;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    #fbfdff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.search-suggestion:hover,
.search-suggestion:focus-visible,
.search-suggestion.is-active {
  border-color: rgba(37, 97, 197, 0.36);
  box-shadow: 0 8px 20px rgba(37, 97, 197, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.search-suggestion .avatar-wrap,
.search-suggestion .avatar {
  width: 40px;
  height: 40px;
}

.search-suggestion-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.search-suggestion-main strong,
.search-suggestion-main em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-main strong {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
}

.search-suggestion-main em,
.search-suggestion-rank {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.search-suggestion-rank {
  color: var(--primary);
  font-weight: 950;
  white-space: nowrap;
}

.search-suggestion-meta,
.search-suggestion-champions {
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-suggestion-meta {
  flex-wrap: wrap;
  gap: 4px;
}

.search-suggestion-meta em {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  max-width: 100%;
  padding: 0 6px;
  border: 1px solid rgba(220, 228, 240, 0.92);
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.94);
  color: #52627c;
  line-height: 1;
}

.search-suggestion-meta .search-suggestion-lp {
  border-color: rgba(22, 163, 74, 0.18);
  background: #ecfdf3;
  color: var(--success);
}

.search-suggestion-meta .search-suggestion-lp.down,
.search-suggestion-meta .search-suggestion-lp.same {
  border-color: rgba(100, 116, 139, 0.18);
  background: #f8fafc;
  color: #64748b;
}

.search-suggestion-champions {
  margin-top: 2px;
}

.search-suggestion-champions .champions {
  gap: 0;
}

.search-suggestion-champions .champion-icon-wrap,
.search-suggestion-champions .champion-icon {
  width: 22px;
  height: 22px;
}

.search-suggestion-champions .champion-icon-wrap {
  flex: 0 0 22px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(15, 27, 51, 0.1);
}

.search-suggestion-champions .champion-icon-wrap::before,
.search-suggestion-champions .champion-icon {
  border-radius: 50%;
}

.search-suggestion-champions .champion-icon-wrap + .champion-icon-wrap {
  margin-left: -5px;
}

.search-suggestion-rank {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.search-suggestion-rank span {
  color: #6f7f95;
  font-size: 10px;
  font-weight: 900;
}

.search-suggestion-rank b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(37, 97, 197, 0.18);
  border-radius: 999px;
  background: #eef5ff;
  color: var(--primary-dark);
  font-size: 12px;
}

.search-suggestion-empty {
  padding: 12px 10px;
  border: 1px dashed #dce4f0;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.5;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background: linear-gradient(180deg, #164eaf, #0c347b);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(18, 59, 130, 0.28);
}

.primary-button svg,
.soft-button svg {
  width: 18px;
  height: 18px;
}

.role-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 18px 2px 10px;
}

.role-filter button {
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dce4f0;
  background: #ffffff;
  color: var(--text-sub);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(15, 27, 51, 0.05);
}

.role-filter button[aria-checked="true"] {
  border-color: #123b82;
  background: #123b82;
  color: #ffffff;
}

body.route-profile .mobile-filter-summary,
body.route-profile .filter-panel,
body.route-profile .role-filter {
  display: none;
}

@media (max-width: 760px) {
  body.route-role .mobile-filter-summary,
  body.route-role .filter-panel,
  body.route-role .role-filter,
  body.route-group .mobile-filter-summary,
  body.route-group .filter-panel,
  body.route-group .role-filter,
  body.route-portal .mobile-filter-summary,
  body.route-portal .filter-panel,
  body.route-portal .role-filter,
  body.route-live .role-filter {
    display: none;
  }
}

.context-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 228, 240, 0.96);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    #ffffff;
  box-shadow: 0 10px 24px rgba(15, 27, 51, 0.06);
}

.context-breadcrumb,
.context-meta,
.context-links {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.context-breadcrumb {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
}

.context-breadcrumb a,
.context-breadcrumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.context-breadcrumb span[aria-current="page"] {
  color: var(--text-main);
}

.context-separator {
  flex: 0 0 auto;
  color: #aab5c6;
}

.context-meta {
  flex-wrap: wrap;
  justify-content: center;
}

.context-meta span {
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid #e4ebf6;
  border-radius: 999px;
  background: #fbfdff;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.context-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.context-links a {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #dce4f0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.context-links a:hover,
.context-links a:focus-visible {
  border-color: rgba(37, 97, 197, 0.38);
  color: var(--primary);
  outline: none;
  transform: translateY(-1px);
}

.context-links a.active {
  border-color: rgba(245, 201, 107, 0.72);
  background: #fff8e6;
  color: #7a4b12;
}

.quick-jump {
  display: none;
}

.quick-jump[hidden] {
  display: none;
}

#leaderboardHeading {
  scroll-margin-top: 96px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 10px 0 14px;
}

body.route-group .summary-strip,
body.route-role .summary-strip,
body.route-profile .summary-strip,
body.route-live .summary-strip,
body.route-portal .summary-strip {
  display: none;
}

.summary-card {
  --summary-accent: #2561c5;
  --summary-soft: rgba(37, 97, 197, 0.12);
  --summary-deep: #123b82;
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 96px;
  overflow: hidden;
  isolation: isolate;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.summary-card::before {
  display: none;
  content: none;
}

.summary-card::after {
  content: "";
  display: none;
}

.summary-card > * {
  position: relative;
  z-index: 1;
}

.summary-card:nth-child(2) {
  --summary-accent: #0f9f8f;
  --summary-soft: rgba(15, 159, 143, 0.14);
  --summary-deep: #0f766e;
}

.summary-card:nth-child(3) {
  --summary-accent: #c79032;
  --summary-soft: rgba(199, 144, 50, 0.16);
  --summary-deep: #7a4b12;
}

.summary-card:nth-child(4) {
  --summary-accent: #4f46e5;
  --summary-soft: rgba(79, 70, 229, 0.14);
  --summary-deep: #312e81;
}

.summary-card:nth-child(3),
.summary-card:nth-child(4) {
  border-color: rgba(199, 164, 115, 0.38);
  background:
    linear-gradient(135deg, rgba(245, 201, 107, 0.14), rgba(255, 255, 255, 0.96) 48%),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 27, 51, 0.1);
}

.summary-card:nth-child(3)::before,
.summary-card:nth-child(4)::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--summary-accent), rgba(245, 201, 107, 0));
  content: "";
}

.summary-card:nth-child(3):hover,
.summary-card:nth-child(4):hover {
  border-color: rgba(199, 164, 115, 0.56);
  box-shadow: 0 18px 42px rgba(15, 27, 51, 0.13);
  transform: translateY(-1px);
}

.summary-kicker,
.summary-card span:last-child {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-card strong {
  color: var(--summary-accent);
  font-size: 28px;
  line-height: 1;
}

.summary-card strong.summary-compact {
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.35;
  word-break: keep-all;
}

.summary-card strong.summary-name {
  color: var(--text-main);
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.summary-card strong.summary-state {
  font-size: 20px;
  line-height: 1.2;
}

.group-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr) minmax(340px, 0.96fr);
  gap: 16px;
  margin: 10px 0 16px;
}

.group-dashboard[hidden] {
  display: none;
}

.group-leader-card,
.group-metric-card,
.group-roster-card,
.group-related-card,
.group-empty-card {
  border: 1px solid rgba(199, 164, 115, 0.24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.group-leader-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 226px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(245, 201, 107, 0.24), transparent 30%),
    linear-gradient(135deg, #071229, #123b82 58%, #0e3572);
  color: #ffffff;
}

.group-panel-kicker {
  color: var(--gold-button);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.group-leader-copy {
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 0;
}

.group-leader-copy h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.14;
}

.group-leader-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.leader-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.leader-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid rgba(37, 97, 197, 0.14);
  border-radius: 999px;
  background: #f7faff;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-meta-chip.is-rank {
  border-color: rgba(245, 201, 107, 0.58);
  background: var(--gold-button);
  color: #3b2608;
}

.leader-meta-chip.is-live {
  border-color: rgba(22, 163, 74, 0.28);
  background: #ecfdf3;
  color: #166534;
}

.leader-meta-chip.is-offline {
  border-color: rgba(100, 116, 139, 0.18);
  background: #f4f7fc;
  color: #64748b;
}

.leader-meta-chip.is-role,
.leader-meta-chip.is-context {
  border-color: #dbe7f6;
  background: #ffffff;
  color: #52627a;
}

.leader-meta-chip[class*="tier-"] {
  border-color: color-mix(in srgb, var(--tier-color, var(--primary)) 28%, #ffffff);
  background: color-mix(in srgb, var(--tier-color, var(--primary)) 12%, #ffffff);
  color: var(--tier-color, var(--primary-dark));
}

.group-leader-card .leader-meta-chip {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.group-leader-card .leader-meta-chip.is-rank {
  border-color: rgba(245, 201, 107, 0.66);
  background: var(--gold-button);
  color: #3b2608;
}

.group-leader-card .leader-meta-chip.is-live {
  border-color: rgba(134, 239, 172, 0.42);
  background: rgba(22, 163, 74, 0.18);
  color: #bbf7d0;
}

.group-leader-card .leader-meta-chip[class*="tier-"] {
  border-color: rgba(245, 201, 107, 0.36);
  background: rgba(245, 201, 107, 0.12);
  color: #ffe19a;
}

.group-leader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.group-leader-actions a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.group-leader-actions a:first-child {
  border-color: rgba(245, 201, 107, 0.58);
  background: var(--gold-button);
  color: #3b2608;
}

.group-leader-profile {
  --tier-color: #2561c5;
  --tier-bright: #7ca9f6;
  --tier-deep: #123b82;
  --tier-glow: rgba(37, 97, 197, 0.28);
  position: relative;
  display: grid;
  place-items: center;
  min-width: 166px;
  min-height: 158px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.group-leader-profile .avatar-wrap,
.group-leader-profile .avatar {
  width: 82px;
  height: 82px;
}

.group-leader-profile .tier-emblem {
  position: absolute;
  right: 16px;
  bottom: 13px;
  width: 42px;
  height: 30px;
}

.group-metric-card,
.group-roster-card,
.group-related-card,
.group-empty-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 226px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
}

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

.group-metric-grid span,
.group-role-chip {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e4ebf6;
  border-radius: 12px;
  background: #fbfdff;
}

.group-metric-grid em,
.group-role-chip em,
.group-member-row em,
.group-champion-chip em {
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.group-metric-grid strong,
.group-role-chip strong {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.group-role-chip b {
  overflow: hidden;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-metric-card p,
.group-empty-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.group-champion-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.group-champion-chip {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 8px 4px 5px;
  border: 1px solid #e4ebf6;
  border-radius: 999px;
  background: #fbfdff;
}

.group-champion-chip .champion-icon-wrap,
.group-champion-chip .champion-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.group-champion-chip strong {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 950;
}

.group-roster-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.group-related-card {
  grid-column: 1 / -1;
  min-height: 0;
  background:
    radial-gradient(circle at 96% 10%, rgba(245, 201, 107, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.98);
}

.group-related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.group-related-header strong {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 950;
}

.group-related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.group-related-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.group-related-link:hover,
.group-related-link:focus-visible,
.group-related-profile:hover,
.group-related-profile:focus-visible {
  border-color: rgba(37, 97, 197, 0.36);
  box-shadow: 0 8px 20px rgba(37, 97, 197, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.group-related-primary {
  border-color: rgba(245, 201, 107, 0.68);
  background:
    radial-gradient(circle at 92% 16%, rgba(245, 201, 107, 0.26), transparent 34%),
    #fffaf0;
}

.group-related-link span,
.group-related-link strong,
.group-related-link em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-related-link span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.group-related-link strong {
  color: var(--text-main);
  font-size: 17px;
  font-weight: 950;
}

.group-related-link em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.group-related-profiles {
  display: grid;
  gap: 9px;
  padding-top: 2px;
}

.group-related-title {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 950;
}

.group-related-profiles > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.group-related-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  padding: 9px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.group-related-profile .avatar-wrap,
.group-related-profile .avatar {
  width: 38px;
  height: 38px;
}

.group-related-profile span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.group-related-profile strong,
.group-related-profile em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-related-profile strong {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
}

.group-related-profile em,
.group-related-profiles p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.group-roster-header strong {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 950;
}

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

.group-member-list {
  display: grid;
  gap: 8px;
}

.group-member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
}

.group-member-row .avatar-wrap,
.group-member-row .avatar {
  width: 38px;
  height: 38px;
}

.group-member-row .group-member-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.group-member-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.group-member-title strong,
.group-member-row .group-member-main > em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-member-row strong {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
}

.group-member-title .live-badge {
  flex: 0 0 auto;
  margin-left: 0;
}

.group-member-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.group-member-stats small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid rgba(217, 228, 242, 0.92);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.group-member-stats small.positive {
  border-color: rgba(22, 163, 74, 0.28);
  background: #ecfdf3;
  color: #078436;
}

.group-member-stats small.negative {
  border-color: rgba(100, 116, 139, 0.24);
  background: #f8fafc;
  color: #64748b;
}

.group-member-row b {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.group-empty-card {
  grid-column: 1 / -1;
  min-height: 150px;
}

.group-empty-card strong {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 950;
}

.role-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.72fr) minmax(320px, 0.95fr);
  gap: 16px;
  margin: 10px 0 16px;
}

.role-dashboard[hidden] {
  display: none;
}

.role-leader-card,
.role-metric-card,
.role-runners-card,
.role-switch-card,
.role-empty-card {
  border: 1px solid rgba(37, 97, 197, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
}

.role-leader-card {
  --tier-color: #2561c5;
  --tier-bright: #7ca9f6;
  --tier-deep: #123b82;
  --tier-glow: rgba(37, 97, 197, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 216px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, var(--tier-glow), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fbff 52%, #eef5ff);
}

.role-panel-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.role-leader-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 9px;
}

.role-leader-copy h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--text-main);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.14;
}

.role-leader-copy p {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}

.role-leader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.role-leader-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(18, 59, 130, 0.18);
  border-radius: 11px;
  background: #ffffff;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.role-leader-actions a:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.role-leader-profile {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 158px;
  min-height: 154px;
  border: 1px solid rgba(37, 97, 197, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.role-leader-profile .avatar-wrap,
.role-leader-profile .avatar {
  width: 82px;
  height: 82px;
}

.role-leader-profile .tier-emblem {
  position: absolute;
  right: 16px;
  bottom: 13px;
  width: 42px;
  height: 30px;
}

.role-metric-card,
.role-runners-card,
.role-switch-card,
.role-empty-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 216px;
  padding: 18px;
}

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

.role-metric-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4ebf6;
  border-radius: 12px;
  background: #fbfdff;
}

.role-metric-grid em,
.role-runner-row em,
.role-champion-chip em {
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.role-metric-grid strong {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.role-metric-card p,
.role-empty-card p,
.role-runner-list p {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.role-runners-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.role-runners-header strong {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 950;
}

.role-runner-list {
  display: grid;
  gap: 8px;
}

.role-runner-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
}

.role-runner-row .avatar-wrap,
.role-runner-row .avatar {
  width: 38px;
  height: 38px;
}

.role-runner-row .role-runner-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.role-runner-row .role-runner-main > strong,
.role-runner-row .role-runner-main > em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-runner-row strong {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
}

.role-runner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.role-runner-stats small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid rgba(217, 228, 242, 0.92);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.role-runner-stats small.positive {
  border-color: rgba(22, 163, 74, 0.28);
  background: #ecfdf3;
  color: #078436;
}

.role-runner-stats small.negative {
  border-color: rgba(100, 116, 139, 0.24);
  background: #f8fafc;
  color: #64748b;
}

.role-runner-row b {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.role-champion-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.role-champion-chip {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 8px 4px 5px;
  border: 1px solid #e4ebf6;
  border-radius: 999px;
  background: #fbfdff;
}

.role-champion-chip .champion-icon-wrap,
.role-champion-chip .champion-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.role-champion-chip strong {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 950;
}

.role-switch-card {
  grid-column: 1 / -1;
  min-height: 0;
  background:
    radial-gradient(circle at 96% 10%, rgba(37, 97, 197, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.98);
}

.role-switch-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.role-switch-header strong {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 950;
}

.role-switch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.role-switch-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.role-switch-link:hover,
.role-switch-link:focus-visible {
  border-color: rgba(37, 97, 197, 0.36);
  box-shadow: 0 8px 20px rgba(37, 97, 197, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.role-switch-link.active {
  border-color: rgba(245, 201, 107, 0.68);
  background:
    radial-gradient(circle at 92% 16%, rgba(245, 201, 107, 0.28), transparent 34%),
    #fffaf0;
}

.role-switch-link span,
.role-switch-link strong,
.role-switch-link em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-switch-link span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.role-switch-link strong {
  color: var(--text-main);
  font-size: 17px;
  font-weight: 950;
}

.role-switch-link em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.role-empty-card {
  grid-column: 1 / -1;
  min-height: 150px;
}

.role-empty-card strong {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 950;
}

.portal-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: start;
  gap: 16px;
  margin: 10px 0 16px;
}

.portal-dashboard[hidden] {
  display: none;
}

.portal-hero-card,
.portal-list-card {
  border: 1px solid rgba(199, 164, 115, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.portal-hero-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  gap: 13px;
  min-height: 278px;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 201, 107, 0.24), transparent 32%),
    radial-gradient(circle at 10% 95%, rgba(77, 138, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #071a38, #103179 62%, #123b82);
  color: #ffffff;
}

.portal-hero-card > * {
  position: relative;
  z-index: 1;
}

.portal-hero-card::before,
.portal-hero-card::after {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.portal-dashboard[data-portal="trends"] .portal-hero-card::before {
  right: 22px;
  bottom: 22px;
  width: min(285px, 42%);
  height: 142px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 46%, rgba(245, 201, 107, 0.62) 47% 49%, transparent 50%),
    linear-gradient(22deg, transparent 42%, rgba(77, 138, 255, 0.45) 43% 45%, transparent 46%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 42px);
  opacity: 0.82;
}

.portal-dashboard[data-portal="trends"] .portal-hero-card::after {
  right: 52px;
  bottom: 52px;
  width: 178px;
  height: 58px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 14% 62%, #f5c96b 0 5px, transparent 6px),
    radial-gradient(circle at 44% 34%, #f5c96b 0 5px, transparent 6px),
    radial-gradient(circle at 76% 24%, #f5c96b 0 5px, transparent 6px);
  opacity: 0.9;
}

.portal-dashboard[data-portal="champions"] .portal-hero-card {
  background:
    radial-gradient(circle at 84% 18%, rgba(245, 201, 107, 0.26), transparent 30%),
    radial-gradient(circle at 12% 92%, rgba(20, 184, 166, 0.24), transparent 36%),
    linear-gradient(135deg, #06172f, #123460 54%, #174653);
}

.portal-dashboard[data-portal="champions"] .portal-hero-card::before {
  right: 18px;
  top: 24px;
  width: min(190px, 28%);
  height: 146px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 72%, rgba(255, 255, 255, 0.9) 0 17px, transparent 18px),
    radial-gradient(circle at 47% 42%, rgba(245, 201, 107, 0.92) 0 21px, transparent 22px),
    radial-gradient(circle at 76% 68%, rgba(77, 138, 255, 0.86) 0 18px, transparent 19px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.13);
  opacity: 0.6;
}

.portal-dashboard[data-portal="champions"] .portal-hero-card::after {
  right: 44px;
  bottom: 32px;
  width: min(220px, 34%);
  height: 106px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 16% 52%, rgba(245, 201, 107, 0.72) 0 10px, transparent 11px),
    radial-gradient(circle at 45% 30%, rgba(125, 211, 252, 0.68) 0 8px, transparent 9px),
    radial-gradient(circle at 78% 58%, rgba(52, 211, 153, 0.62) 0 11px, transparent 12px),
    linear-gradient(90deg, transparent 18%, rgba(255, 255, 255, 0.2) 18% 19%, transparent 19% 48%, rgba(255, 255, 255, 0.16) 48% 49%, transparent 49% 78%, rgba(255, 255, 255, 0.14) 78% 79%, transparent 79%);
  opacity: 0.72;
}

.portal-dashboard[data-portal="guides"] .portal-hero-card {
  background:
    radial-gradient(circle at 88% 13%, rgba(245, 201, 107, 0.32), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(37, 97, 197, 0.22), transparent 36%),
    linear-gradient(135deg, #071a38, #123160 50%, #2b456f);
}

.portal-dashboard[data-portal="guides"] .portal-hero-card::before {
  right: 18px;
  bottom: 24px;
  width: min(210px, 30%);
  height: 150px;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(245, 201, 107, 0.56) 0 32%, transparent 32% 36%, rgba(255, 255, 255, 0.14) 36% 68%, transparent 68% 72%, rgba(77, 138, 255, 0.32) 72% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 38px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  opacity: 0.44;
}

.portal-dashboard[data-portal="guides"] .portal-hero-card::after {
  right: 44px;
  bottom: 40px;
  width: min(240px, 34%);
  height: 92px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 26%, rgba(245, 201, 107, 0.82) 0 5px, transparent 6px),
    radial-gradient(circle at 48% 58%, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 78% 36%, rgba(125, 211, 252, 0.66) 0 5px, transparent 6px),
    linear-gradient(152deg, transparent 22%, rgba(245, 201, 107, 0.48) 23% 25%, transparent 26% 52%, rgba(255, 255, 255, 0.18) 53% 55%, transparent 56%);
  opacity: 0.72;
}

.portal-dashboard[data-portal="trends"] .portal-metric-grid span {
  border-top-color: rgba(77, 138, 255, 0.54);
}

.portal-dashboard[data-portal="champions"] .portal-metric-grid span {
  border-top-color: rgba(52, 211, 153, 0.5);
}

.portal-dashboard[data-portal="guides"] .portal-metric-grid span {
  border-top-color: rgba(245, 201, 107, 0.58);
}

.portal-dashboard[data-portal="trends"] .portal-profile-row:first-child,
.portal-dashboard[data-portal="champions"] .portal-champion-row:first-child,
.portal-dashboard[data-portal="guides"] .portal-link-tile:first-child {
  border-color: rgba(245, 201, 107, 0.42);
  background:
    linear-gradient(135deg, rgba(245, 201, 107, 0.14), rgba(255, 255, 255, 0.96) 58%),
    #ffffff;
  box-shadow: 0 10px 22px rgba(15, 27, 51, 0.08);
}

.portal-kicker {
  color: var(--gold-button);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.portal-hero-card h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.14;
}

.portal-hero-card p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.portal-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.portal-metric-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(7, 26, 56, 0.76), rgba(20, 55, 118, 0.54)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(3, 10, 24, 0.12);
}

.portal-metric-grid em,
.portal-metric-grid b {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-metric-grid strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(245, 201, 107, 0.42);
  border-radius: 999px;
  background: rgba(245, 201, 107, 0.12);
  color: #ffe19a;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.portal-hero-cta::after {
  color: currentColor;
  content: ">";
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.portal-hero-cta:hover,
.portal-hero-cta:focus-visible {
  border-color: rgba(245, 201, 107, 0.72);
  background: rgba(245, 201, 107, 0.18);
  transform: translateY(-1px);
}

.portal-list-card {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 278px;
  padding: 18px;
  background:
    radial-gradient(circle at 95% 0%, rgba(245, 201, 107, 0.18), transparent 28%),
    #ffffff;
}

.portal-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-list-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.portal-list {
  display: grid;
  gap: 9px;
}

.portal-profile-row,
.portal-link-tile,
.portal-champion-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
}

.portal-profile-row span,
.portal-link-tile,
.portal-champion-row span {
  min-width: 0;
}

.portal-profile-row strong,
.portal-profile-row em,
.portal-profile-row b,
.portal-link-tile span,
.portal-link-tile strong,
.portal-link-tile em,
.portal-champion-row strong,
.portal-champion-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-profile-row span,
.portal-champion-row span,
.portal-link-tile {
  display: grid;
  gap: 3px;
}

.portal-profile-row strong,
.portal-champion-row strong,
.portal-link-tile strong {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 950;
}

.portal-profile-row em,
.portal-champion-row em,
.portal-link-tile em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.portal-profile-row b,
.portal-link-tile span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.portal-profile-row b {
  margin-left: auto;
  flex: 0 0 auto;
}

.portal-link-tile {
  display: grid;
  align-items: start;
}

.portal-dashboard[data-portal="guides"] .portal-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-dashboard[data-portal="guides"] .portal-link-tile {
  align-content: center;
  min-height: 84px;
}

.live-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.8fr) minmax(310px, 0.9fr);
  gap: 16px;
  margin: 10px 0 16px;
}

.live-dashboard[hidden] {
  display: none;
}

.live-hero-card,
.live-metric-card,
.live-list-card,
.live-path-card,
.live-empty-card {
  border: 1px solid rgba(199, 164, 115, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.live-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 232px;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(245, 201, 107, 0.22), transparent 30%),
    linear-gradient(135deg, #071a38, #0e3572 62%, #123b82);
  color: #ffffff;
}

.live-panel-kicker {
  color: var(--gold-button);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.live-hero-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 9px;
}

.live-hero-copy h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.14;
}

.live-hero-copy p {
  display: -webkit-box;
  max-width: 620px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.live-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.live-hero-actions a:first-child {
  border-color: rgba(245, 201, 107, 0.58);
  background: var(--gold-button);
  color: #3b2608;
}

.live-hero-profile {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 170px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
}

.live-hero-profile .avatar-wrap,
.live-hero-profile .avatar {
  width: 76px;
  height: 76px;
}

.live-hero-profile strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
}

.live-hero-profile span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.live-metric-card,
.live-list-card,
.live-path-card,
.live-empty-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 232px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
}

.live-path-card {
  grid-column: 1 / -1;
  min-height: 0;
  display: none;
  background:
    radial-gradient(circle at 88% 10%, rgba(245, 201, 107, 0.12), transparent 25%),
    rgba(255, 255, 255, 0.98);
}

.live-path-header {
  display: grid;
  justify-items: start;
  gap: 5px;
  max-width: 640px;
}

.live-path-header strong {
  color: var(--text-main);
  font-size: 20px;
  font-weight: 950;
}

.live-path-header p {
  margin: 0;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

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

.live-path-link {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 86px;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.live-path-link:hover,
.live-path-link:focus-visible,
.live-path-profile:hover,
.live-path-profile:focus-visible {
  border-color: rgba(37, 97, 197, 0.32);
  box-shadow: 0 10px 24px rgba(37, 97, 197, 0.1);
  transform: translateY(-1px);
}

.live-path-primary {
  border-color: rgba(245, 201, 107, 0.4);
  background: linear-gradient(135deg, #fff7df, #ffffff 68%);
}

.live-path-link span,
.live-path-link strong,
.live-path-link em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-path-link span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 950;
}

.live-path-link strong {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 950;
}

.live-path-link em {
  color: var(--text-sub);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.live-path-profiles {
  display: grid;
  gap: 8px;
}

.live-path-title {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 950;
}

.live-path-profiles > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.live-path-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.live-path-profile .avatar-wrap,
.live-path-profile .avatar {
  width: 42px;
  height: 42px;
}

.live-path-profile span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.live-path-profile strong,
.live-path-profile em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-path-profile strong {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
}

.live-path-profile em,
.live-path-profiles p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

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

.live-metric-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4ebf6;
  border-radius: 12px;
  background: #fbfdff;
}

.live-metric-grid em {
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.live-metric-grid strong {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.live-metric-card p,
.live-empty-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.live-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.live-list-header strong {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 950;
}

.live-list {
  display: grid;
  gap: 8px;
}

.live-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
}

.live-list-row:nth-child(n + 4) {
  display: none;
}

.live-list-row .avatar-wrap,
.live-list-row .avatar {
  width: 38px;
  height: 38px;
}

.live-list-row .avatar-live-label,
.live-empty-suggestion .avatar-live-label {
  display: none;
}

.live-list-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.live-list-main strong,
.live-list-main > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-list-main strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
}

.live-list-main strong em {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid rgba(199, 164, 115, 0.34);
  border-radius: 999px;
  background: #fff8e6;
  color: #7a4b12;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.1;
}

.live-list-main > span,
.live-list-meta {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.live-list-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.live-list-meta b {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 950;
}

.live-list-meta em {
  color: var(--primary);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.live-empty-card {
  grid-column: 1 / -1;
  min-height: 160px;
  justify-items: start;
}

.live-empty-feature {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  min-height: 224px;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 10%, rgba(245, 201, 107, 0.22), transparent 34%),
    linear-gradient(135deg, #ffffff, #f8fbff 62%, #eef5ff);
}

.live-empty-copy {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.live-empty-card strong {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.22;
  word-break: keep-all;
}

.live-empty-card p {
  word-break: keep-all;
}

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

.live-empty-status-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  padding: 10px 11px;
  border: 1px solid rgba(217, 228, 242, 0.92);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.live-empty-status-grid em {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-empty-status-grid strong {
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.live-empty-flow span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(217, 228, 242, 0.92);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
    #ffffff;
}

.live-empty-flow em {
  display: inline-grid;
  width: 22px;
  height: 22px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe4a8, #f5c96b);
  color: #4b3108;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.live-empty-flow strong,
.live-empty-flow small {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-empty-flow strong {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 950;
}

.live-empty-flow small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 850;
}

.live-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.live-empty-actions a,
.live-empty-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #d9e4f2;
  border-radius: 11px;
  background: #ffffff;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
}

.live-empty-actions a:first-child {
  border-color: rgba(245, 201, 107, 0.6);
  background: var(--gold-button);
  color: #3b2608;
}

.live-empty-more {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(220, 228, 240, 0.92);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.92)),
    rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.live-empty-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  list-style: none;
}

.live-empty-more[open] summary {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(220, 228, 240, 0.74);
}

.live-empty-more summary::-webkit-details-marker {
  display: none;
}

.live-empty-more summary::after {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  content: "+";
}

.live-empty-more[open] summary::after {
  content: "-";
}

.live-empty-more .live-path-card {
  margin-top: 2px;
  border-color: rgba(220, 228, 240, 0.92);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.live-empty-suggestions {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(220, 228, 240, 0.92);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
}

.live-empty-suggestion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.live-empty-suggestion .avatar-wrap,
.live-empty-suggestion .avatar {
  width: 36px;
  height: 36px;
}

.live-empty-suggestion span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.live-empty-suggestion strong,
.live-empty-suggestion em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-empty-suggestion strong {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
}

.live-empty-suggestion em,
.live-empty-suggestion b {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.live-empty-suggestion b {
  color: var(--primary);
  font-weight: 950;
}

.profile-spotlight {
  margin: 10px 0 16px;
}

.profile-spotlight-card {
  display: grid;
  grid-template-columns: minmax(300px, 1.18fr) minmax(210px, 0.62fr) minmax(280px, 0.9fr) minmax(130px, 0.34fr) minmax(118px, 0.32fr);
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(245, 201, 107, 0.34);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 12%, rgba(245, 201, 107, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(245, 201, 107, 0.18), transparent 34%),
    linear-gradient(102deg, #07152f 0%, #0d2857 45%, #f8fbff 45.2%, #ffffff 100%);
  box-shadow: 0 18px 44px rgba(6, 18, 41, 0.16);
}

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

.profile-identity .avatar-wrap,
.profile-identity .avatar {
  width: 58px;
  height: 58px;
}

.profile-kicker,
.profile-champions span,
.profile-stat-grid em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.profile-spotlight-card .profile-kicker {
  color: rgba(245, 201, 107, 0.92);
}

.profile-identity h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 4px 0 3px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.15;
}

.profile-identity p {
  margin: 0;
  color: rgba(230, 239, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.profile-spotlight-card .profile-chip-row .chip {
  border-color: rgba(245, 201, 107, 0.24);
  background: rgba(255, 255, 255, 0.09);
  color: #f7fbff;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.profile-tier-panel {
  --tier-color: #2561c5;
  --tier-bright: #7ca9f6;
  --tier-deep: #123b82;
  --tier-glow: rgba(37, 97, 197, 0.28);
  display: flex;
  align-items: center;
  gap: 11px;
  justify-self: stretch;
  min-width: 0;
  min-height: 82px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 201, 107, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 226, 0.9));
  box-shadow: 0 12px 24px rgba(6, 18, 41, 0.12);
}

.profile-tier-panel strong,
.profile-tier-panel span {
  display: block;
}

.profile-tier-panel strong {
  color: var(--tier-color);
  font-size: 16px;
  font-weight: 950;
}

.profile-tier-panel span {
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 850;
}

.profile-tier-panel .profile-lp-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  min-width: 0;
  color: var(--text-sub);
  line-height: 1.2;
}

.profile-tier-panel .profile-lp-text span {
  display: inline-flex;
  white-space: nowrap;
}

.profile-tier-panel .profile-lp-delta {
  font-weight: 950;
}

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

.profile-stat-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid rgba(220, 228, 240, 0.94);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.profile-stat-grid strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stat-grid span:last-child strong {
  font-size: 13px;
}

.profile-stat-grid em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-champions {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
}

.profile-spotlight-card .profile-champions > span {
  color: rgba(12, 32, 71, 0.7);
}

body.route-profile .profile-champion-summary {
  display: grid;
  min-width: 92px;
  gap: 2px;
}

body.route-profile .profile-champion-summary strong {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
}

body.route-profile .profile-champion-summary em {
  color: var(--primary-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.profile-action-rail {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-action-link {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 39px;
  padding: 7px 10px;
  border: 1px solid rgba(220, 228, 240, 0.94);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.profile-action-link:hover,
.profile-action-link:focus-visible {
  border-color: rgba(245, 201, 107, 0.7);
  background: #ffffff;
  transform: translateY(-1px);
}

.profile-action-link span,
.profile-action-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-action-link span {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
}

.profile-action-link strong {
  color: inherit;
  font-size: 13px;
  font-weight: 950;
}

.profile-action-primary {
  border-color: rgba(154, 113, 50, 0.34);
  background: linear-gradient(135deg, #ffe3a1, var(--gold-button));
  color: #162547;
}

.profile-action-primary span {
  color: rgba(22, 37, 71, 0.72);
}

.profile-insights {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 16px;
  margin: 0 0 16px;
}

.profile-insight-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 172px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.profile-insight-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.profile-insight-header span,
.profile-rank-grid em,
.profile-champion-list span {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.profile-insight-header strong {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 950;
  text-align: right;
}

.profile-insight-title {
  display: grid;
  gap: 2px;
}

.profile-insight-title b {
  color: var(--text-main);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
}

.profile-insight-title em {
  color: var(--primary-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

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

.profile-rank-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e4ebf6;
  border-radius: 12px;
  background: #fbfdff;
}

.profile-rank-grid strong {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.profile-champion-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-champion-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e4ebf6;
  border-radius: 12px;
  background: #fbfdff;
}

.profile-champion-list strong,
.profile-champion-list span {
  display: block;
}

.profile-champion-list strong {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 950;
}

.profile-live-copy {
  margin: 0;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.profile-comparison {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  margin: 0 0 16px;
}

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

.profile-pathways {
  margin: 0 0 16px;
}

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

.profile-compare-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 158px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: var(--shadow-card);
}

.profile-compare-rank {
  border-color: rgba(199, 164, 115, 0.26);
  background:
    radial-gradient(circle at 92% 14%, rgba(245, 201, 107, 0.2), transparent 34%),
    #ffffff;
}

.profile-compare-kicker {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 950;
}

.profile-compare-card > strong {
  color: var(--text-main);
  font-size: 25px;
  font-weight: 950;
  line-height: 1.15;
}

.profile-compare-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.profile-rank-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.profile-rank-balance span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e4ebf6;
  border-radius: 12px;
  background: #fbfdff;
}

.profile-rank-balance em,
.profile-focus-champion em {
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.profile-rank-balance b {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
}

.profile-focus-champions {
  display: grid;
  gap: 7px;
}

.profile-focus-champion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
}

.profile-focus-champion .champion-icon-wrap,
.profile-focus-champion .champion-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.profile-focus-champion strong {
  overflow: hidden;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-path-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(199, 164, 115, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 96% 10%, rgba(245, 201, 107, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
}

.profile-path-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.profile-path-header strong {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 950;
}

.profile-path-header > em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  word-break: keep-all;
}

.profile-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 9px;
}

.profile-path-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-path-link:hover,
.profile-path-link:focus-visible,
.profile-path-profile:hover,
.profile-path-profile:focus-visible {
  border-color: rgba(37, 97, 197, 0.36);
  box-shadow: 0 8px 20px rgba(37, 97, 197, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.profile-path-primary {
  border-color: rgba(245, 201, 107, 0.68);
  background:
    radial-gradient(circle at 92% 16%, rgba(245, 201, 107, 0.26), transparent 34%),
    #fffaf0;
}

.profile-path-link span,
.profile-path-link strong,
.profile-path-link em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-path-link span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.profile-path-link strong {
  color: var(--text-main);
  font-size: 17px;
  font-weight: 950;
}

.profile-path-link em {
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.profile-path-similar {
  display: grid;
  gap: 9px;
}

.profile-path-title {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 950;
}

.profile-path-similar > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.profile-path-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  padding: 9px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #fbfdff;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.profile-path-profile .avatar-wrap,
.profile-path-profile .avatar {
  width: 38px;
  height: 38px;
}

.profile-path-profile span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-path-profile strong,
.profile-path-profile em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-path-profile strong {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 950;
}

.profile-path-profile em,
.profile-path-similar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.group-related-link:focus-visible,
.group-related-profile:focus-visible,
.group-member-row:focus-visible,
.role-switch-link:focus-visible,
.role-runner-row:focus-visible,
.profile-path-link:focus-visible,
.profile-path-profile:focus-visible,
.profile-action-link:focus-visible {
  outline: 3px solid rgba(37, 97, 197, 0.34);
  outline-offset: 2px;
}

.table-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--border);
}

.table-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.table-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 760px;
  line-height: 1.5;
}

.result-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(37, 97, 197, 0.18);
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.result-meta.is-warning .result-status-chip {
  border-color: rgba(245, 201, 107, 0.42);
  background: #fff7df;
  color: #7a4b12;
}

.result-meta.is-live .result-status-chip {
  border-color: rgba(22, 163, 74, 0.24);
  background: #ecfdf3;
  color: #166534;
}

.result-meta.is-empty .result-status-chip {
  border-color: rgba(102, 114, 138, 0.24);
  background: #f4f7fc;
  color: var(--text-sub);
}

.table-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tabs {
  display: inline-flex;
  min-height: 40px;
  padding: 4px;
  border: 1px solid #dce4f0;
  border-radius: 12px;
  background: #f4f7fc;
}

.tabs button {
  min-width: 78px;
  padding: 0 14px;
  color: var(--text-muted);
  font-weight: 900;
}

.tabs button.active {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(15, 27, 51, 0.08);
}

.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #d9e4f2;
  background: #f8fbff;
  color: var(--primary-dark);
  font-weight: 900;
}

.table-scroll {
  position: relative;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(37, 97, 197, 0.45) #eef3fb;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  transition: box-shadow 160ms ease;
}

.table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
  background: #eef3fb;
}

.table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #eef3fb;
  border-radius: 999px;
  background: rgba(37, 97, 197, 0.48);
}

.table-scroll.is-scrollable-x {
  box-shadow: inset -22px 0 22px -22px rgba(15, 27, 51, 0.42);
}

.table-scroll.is-scrolled-x {
  box-shadow:
    inset 22px 0 22px -22px rgba(15, 27, 51, 0.34),
    inset -22px 0 22px -22px rgba(15, 27, 51, 0.42);
}

.table-scroll.is-end-x {
  box-shadow: inset 22px 0 22px -22px rgba(15, 27, 51, 0.34);
}

.leaderboard-table {
  width: 100%;
  min-width: 1340px;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.col-rank {
  width: 58px;
}

.col-delta {
  width: 62px;
}

.col-channel {
  width: 270px;
}

.col-tags {
  width: 122px;
}

.col-tier {
  width: 154px;
}

.col-lp-delta {
  width: 88px;
}

.col-account {
  width: 154px;
}

.col-role {
  width: 72px;
}

.col-winrate {
  width: 96px;
}

.col-record {
  width: 94px;
}

.col-champions {
  width: 132px;
}

.col-detail {
  width: 38px;
}

.leaderboard-table th {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(239, 245, 253, 0.98));
  box-shadow: 0 1px 0 var(--border), 0 8px 18px rgba(15, 27, 51, 0.08);
  color: #52627c;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
}

.leaderboard-table th button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  padding: 0;
}

.leaderboard-table td {
  height: 68px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.32;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.leaderboard-table tbody tr:hover td {
  background-color: rgba(234, 241, 255, 0.44);
  box-shadow: inset 0 1px 0 rgba(37, 97, 197, 0.06), inset 0 -1px 0 rgba(37, 97, 197, 0.08);
}

.leaderboard-table tbody tr:hover .detail-link {
  border-color: rgba(37, 97, 197, 0.38);
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(37, 97, 197, 0.14);
}

.leaderboard-table th:nth-child(11),
.leaderboard-table td:nth-child(11) {
  padding-inline: 8px;
}

.leaderboard-table th:nth-child(12),
.leaderboard-table td:nth-child(12) {
  padding-inline: 4px;
  text-align: center;
}

.rank-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 54px;
  font-weight: 900;
}

.leaderboard-table tr.top-rank {
  background:
    linear-gradient(90deg, var(--rank-wash), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.96));
}

.leaderboard-table tr.rank-1 {
  --rank-accent: #a9821e;
  --rank-accent-soft: rgba(245, 201, 107, 0.34);
  --rank-wash: rgba(245, 201, 107, 0.16);
}

.leaderboard-table tr.rank-2 {
  --rank-accent: #758195;
  --rank-accent-soft: rgba(148, 163, 184, 0.28);
  --rank-wash: rgba(148, 163, 184, 0.12);
}

.leaderboard-table tr.rank-3 {
  --rank-accent: #6f7f95;
  --rank-accent-soft: rgba(111, 127, 149, 0.22);
  --rank-wash: rgba(111, 127, 149, 0.09);
}

.leaderboard-table tr.top-rank td:first-child {
  box-shadow: none;
}

.rank-number {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 9px;
}

.top-rank .rank-number {
  border: 1px solid var(--rank-accent-soft);
  background: rgba(255, 255, 255, 0.76);
  color: var(--rank-accent);
  box-shadow: 0 5px 14px var(--rank-accent-soft);
}

.rank-1 .rank-number {
  background: linear-gradient(145deg, #fff9df, #f5c96b 58%, #b8922e);
  color: #4f3a0c;
}

.rank-crown {
  color: var(--gold-dark);
}

.rank-crown svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
}

.delta {
  display: inline-flex;
  min-width: 45px;
  font-weight: 900;
}

.delta.up,
.lp-delta.up {
  color: var(--success);
}

.delta.down,
.lp-delta.down {
  color: #64748b;
}

.lp-delta.same {
  color: var(--text-muted);
  font-weight: 800;
}

.delta.new {
  color: var(--primary);
}

.channel-cell,
.account-cell,
.tier-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.tier-cell {
  --tier-color: #2561c5;
  --tier-bright: #7ca9f6;
  --tier-deep: #123b82;
  --tier-glow: rgba(37, 97, 197, 0.28);
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.avatar,
.champion-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e4ebf6;
  background: transparent;
  opacity: 1;
  transition: opacity 160ms ease;
}

.avatar-wrap {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.image-fallback {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.image-fallback::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  border: 2px solid #dbe6f4;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(145deg, #eef5ff, #cddcf1 48%, #9fb4d4);
  color: #244266;
  content: attr(data-initial);
  font-size: 14px;
  font-weight: 950;
}

/* Final avatar fallback polish: missing channel photos should still read as streamer portraits. */
.avatar-wrap.image-fallback::before {
  border-color: rgba(199, 216, 239, 0.92);
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.98), transparent 30%),
    radial-gradient(circle at 50% 108%, rgba(37, 97, 197, 0.16), transparent 40%),
    linear-gradient(145deg, #f8fbff 0%, #dce8f7 54%, #a8bdd9 100%);
  color: #0d2f68;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -8px 16px rgba(18, 59, 130, 0.1);
}

.avatar-wrap.avatar-live.image-fallback::before {
  border-color: rgba(245, 201, 107, 0.86);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.98), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(245, 201, 107, 0.28), transparent 24%),
    linear-gradient(145deg, #fff8e6 0%, #dfeafe 48%, #9fb4d4 100%);
  color: #0b2a5a;
}

.leaderboard-table .avatar-wrap.image-fallback::before,
.mobile-channel .avatar-wrap.image-fallback::before {
  font-size: 12px;
}

body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap.image-fallback::before,
body.route-profile .profile-identity .avatar-wrap.image-fallback::before {
  font-size: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -14px 24px rgba(18, 59, 130, 0.12),
    0 0 0 1px rgba(245, 201, 107, 0.42);
}

.avatar-wrap.image-fallback::before {
  border-radius: 50%;
}

.leaderboard-table .avatar-wrap,
.leaderboard-table .avatar {
  width: 38px;
  height: 38px;
}

.image-fallback.image-missing::before {
  z-index: 1;
}

.image-fallback.image-loaded::before {
  z-index: -1;
}

.image-fallback.image-missing .avatar,
.image-fallback.image-missing .champion-icon {
  display: none;
}

.avatar-wrap .avatar {
  width: 100%;
  height: 100%;
}

.avatar-wrap.avatar-live .avatar {
  border-color: rgba(245, 201, 107, 0.86);
  box-shadow: 0 0 0 3px rgba(245, 201, 107, 0.18), 0 8px 18px rgba(154, 113, 50, 0.15);
}

.avatar-live-label {
  display: none;
}

.channel-main,
.account-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.leaderboard-table .account-main {
  width: 100%;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.channel-name,
.account-name {
  color: var(--text-main);
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-sub,
.account-sub {
  color: var(--text-muted);
  font-size: 12px;
}

.live-badge,
.chip,
.streak-badge,
.role-pill,
.quality-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.live-badge {
  margin-left: 6px;
  border: 1px solid rgba(199, 164, 115, 0.34);
  background: #fff8e6;
  color: #7a4b12;
}

.live-badge.other-live {
  border-color: rgba(100, 116, 139, 0.2);
  background: #f4f7fc;
  color: #475569;
}

.live-status-line {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: center;
  width: min(390px, 100%);
  max-width: 100%;
  gap: 5px;
  margin-top: 3px;
  padding: 4px 7px;
  border: 1px solid rgba(199, 164, 115, 0.28);
  border-radius: 8px;
  background: #fffaf0;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.leaderboard-table .live-status-line {
  display: none;
}

.live-status-line.other-live {
  border-color: #dbeafe;
  background: #f8fbff;
}

.live-status-line:hover .live-status-title {
  color: var(--primary);
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold-button);
  box-shadow: 0 0 0 2px rgba(245, 201, 107, 0.18);
}

.live-dot::after {
  display: none;
}

.live-status-line.other-live .live-dot {
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.13);
}

.live-status-line.other-live .live-dot::after {
  display: none;
}

.live-status-label {
  color: #7a4b12;
  white-space: nowrap;
}

.live-status-line.other-live .live-status-label {
  color: #1d4ed8;
}

.live-status-meta {
  color: var(--text-muted);
  white-space: nowrap;
}

.live-status-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes live-pulse {
  0% {
    opacity: 0.85;
    transform: scale(0.7);
  }

  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

.streak-badge.delta.up {
  border: 1px solid rgba(22, 163, 74, 0.18);
  background: #eafaf0;
  color: #15803d;
}

.streak-badge.delta.down {
  border: 1px solid rgba(100, 116, 139, 0.18);
  background: #f8fafc;
  color: #64748b;
}

.chip {
  border: 1px solid #dde7f5;
  background: #f8fbff;
  color: #40516e;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 120px;
}

.leaderboard-table .chip {
  max-width: 86px;
  min-height: 18px;
  padding: 0 6px;
  overflow: hidden;
  border-color: rgba(214, 224, 238, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 253, 0.96)),
    #f4f7fc;
  color: #52627c;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-table tr.top-rank .chip:first-child {
  border-color: rgba(245, 201, 107, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 249, 229, 0.96), rgba(244, 247, 252, 0.96)),
    #fff9e5;
  color: #594318;
}

.empty-tag {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.tier-emblem {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 28px;
  flex: 0 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 16%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(150deg, var(--tier-bright), var(--tier-color) 48%, var(--tier-deep));
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 -6px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 16px var(--tier-glow);
}

.tier-emblem::before {
  content: "";
  display: none;
}

.tier-emblem::after {
  content: "";
  display: none;
}

.tier-cell > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tier-challenger,
.tier-emblem.challenger {
  --tier-color: #d9b752;
  --tier-bright: #ffea9a;
  --tier-deep: #5b4716;
  --tier-glow: rgba(217, 183, 82, 0.28);
}

.tier-grandmaster,
.tier-emblem.grandmaster {
  --tier-color: #7c3aed;
  --tier-bright: #ddd6fe;
  --tier-deep: #4c1d95;
  --tier-glow: rgba(124, 58, 237, 0.24);
}

.tier-master,
.tier-emblem.master {
  --tier-color: #a855f7;
  --tier-bright: #e9d5ff;
  --tier-deep: #4c1d95;
  --tier-glow: rgba(168, 85, 247, 0.28);
}

.tier-diamond,
.tier-emblem.diamond {
  --tier-color: #38bdf8;
  --tier-bright: #bae6fd;
  --tier-deep: #075985;
  --tier-glow: rgba(56, 189, 248, 0.26);
}

.tier-emerald,
.tier-emblem.emerald {
  --tier-color: #10b981;
  --tier-bright: #a7f3d0;
  --tier-deep: #065f46;
  --tier-glow: rgba(16, 185, 129, 0.25);
}

.tier-platinum,
.tier-emblem.platinum {
  --tier-color: #5eead4;
  --tier-bright: #ccfbf1;
  --tier-deep: #0f766e;
  --tier-glow: rgba(45, 212, 191, 0.24);
}

.tier-gold,
.tier-emblem.gold {
  --tier-color: #f59e0b;
  --tier-bright: #fde68a;
  --tier-deep: #92400e;
  --tier-glow: rgba(245, 158, 11, 0.28);
}

.tier-silver,
.tier-emblem.silver {
  --tier-color: #94a3b8;
  --tier-bright: #e2e8f0;
  --tier-deep: #475569;
  --tier-glow: rgba(148, 163, 184, 0.24);
}

.tier-bronze,
.tier-emblem.bronze {
  --tier-color: #b77946;
  --tier-bright: #fed7aa;
  --tier-deep: #6b3f1f;
  --tier-glow: rgba(183, 121, 70, 0.24);
}

.tier-iron,
.tier-emblem.iron,
.tier-unranked,
.tier-emblem.unranked {
  --tier-color: #64748b;
  --tier-bright: #cbd5e1;
  --tier-deep: #263445;
  --tier-glow: rgba(100, 116, 139, 0.2);
}

.tier-name,
.lp-value {
  font-weight: 900;
}

.tier-name {
  color: var(--tier-color);
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.tier-cell .channel-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-delta {
  font-weight: 900;
}

.lp-trend {
  display: grid;
  gap: 5px;
  min-width: 64px;
  justify-items: center;
  text-align: center;
}

.role-pill {
  background: #f4f7fc;
  color: #52627a;
}

.winrate {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0;
  color: var(--primary);
  font-weight: 900;
}

.winrate-bar {
  display: none;
}

.winrate-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2561c5, #4d8aff);
}

.record {
  color: var(--text-sub);
  font-weight: 800;
  white-space: nowrap;
}

.champions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.champion-icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
}

.champion-icon-wrap::before {
  border-radius: 12px;
  font-size: 11px;
}

.champion-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.leaderboard-table .champions {
  position: relative;
  display: inline-flex;
  justify-content: center;
  gap: 0;
  min-width: 92px;
  padding: 3px 8px;
  border: 1px solid rgba(220, 228, 240, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 253, 0.96)),
    #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.leaderboard-table .champion-icon-wrap,
.leaderboard-table .champion-icon {
  width: 28px;
  height: 28px;
}

.leaderboard-table .champion-icon-wrap {
  flex-basis: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  opacity: 1;
  box-shadow:
    0 5px 12px rgba(15, 27, 51, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.leaderboard-table .champion-icon-wrap::before {
  border-radius: 50%;
  font-size: 10px;
}

.leaderboard-table .champion-icon-wrap + .champion-icon-wrap {
  margin-left: -7px;
}

.leaderboard-table .champion-icon {
  border-radius: 50%;
}

.detail-link {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dce4f0;
  border-radius: 50%;
  background: #f8fbff;
  color: var(--text-sub);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.detail-link span {
  display: inline-block;
  transform: translateY(-1px);
}

.detail-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.mobile-list {
  display: none;
  padding: 14px;
}

.mobile-rank-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 27, 51, 0.06);
  font-variant-numeric: tabular-nums;
}

.mobile-rank-card.top-rank {
  position: relative;
  overflow: hidden;
  border-color: var(--border);
  background:
    linear-gradient(135deg, rgba(255, 250, 238, 0.64), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  box-shadow: 0 10px 24px rgba(15, 27, 51, 0.08);
}

.mobile-rank-card.rank-1 {
  --rank-accent: #a9821e;
  --rank-accent-soft: rgba(245, 201, 107, 0.34);
  --rank-wash: rgba(245, 201, 107, 0.18);
}

.mobile-rank-card.rank-2 {
  --rank-accent: #758195;
  --rank-accent-soft: rgba(148, 163, 184, 0.28);
  --rank-wash: rgba(148, 163, 184, 0.12);
}

.mobile-rank-card.rank-3 {
  --rank-accent: #6f7f95;
  --rank-accent-soft: rgba(111, 127, 149, 0.22);
  --rank-wash: rgba(111, 127, 149, 0.09);
}

.mobile-rank-card + .mobile-rank-card {
  margin-top: 12px;
}

.mobile-rank-stack {
  display: grid;
  justify-items: center;
  gap: 4px;
  flex: 0 0 44px;
}

.mobile-rank-stack .rank-cell {
  min-width: 0;
  justify-content: center;
  gap: 4px;
}

.mobile-rank-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 950;
  line-height: 18px;
  white-space: nowrap;
}

.mobile-rank-delta.up {
  background: #dcfce7;
  color: var(--success);
}

.mobile-rank-delta.down {
  background: #f4f7fc;
  color: #64748b;
}

.mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-channel {
  display: grid;
  grid-template-columns: 44px 40px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  width: 100%;
}

.mobile-channel .avatar-wrap,
.mobile-channel .avatar {
  width: 40px;
  height: 40px;
}

.mobile-channel .channel-name {
  display: block;
  overflow: hidden;
  color: #071229;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-channel-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
  padding-right: 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
  scrollbar-width: none;
}

.mobile-channel-meta::-webkit-scrollbar {
  display: none;
}

.mobile-channel-meta .mobile-sub-text,
.mobile-channel-meta .chip,
.mobile-channel-meta .quality-badge {
  flex: 0 0 auto;
  min-height: 18px;
  padding: 0 6px;
  border-color: transparent;
  background: #f5f8fc;
  color: #66728a;
  font-size: 9px;
  font-weight: 850;
}

.mobile-channel-meta .mobile-sub-text {
  padding-right: 2px;
  padding-left: 0;
  background: transparent;
  color: #64748b;
  font-size: 10px;
}

.mobile-tier-row {
  padding: 7px 9px;
  border: 1px solid #e3ebf6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #f5f8fd);
}

.mobile-tier-row .tier-cell {
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
}

.mobile-tier-row .tier-emblem {
  width: 32px;
  height: 32px;
}

.mobile-tier-row .tier-name {
  font-size: 12px;
  line-height: 1.15;
}

.mobile-tier-row .channel-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-sub-text {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-meta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  padding: 5px 8px;
  border: 1px solid #edf2f8;
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.52);
}

.mobile-meta-grid span:first-child {
  flex: 1 1 100%;
}

.mobile-meta-grid span:nth-child(2) {
  display: inline-flex;
}

.mobile-meta-grid span {
  display: inline-flex;
  align-items: baseline;
  flex: 1 1 auto;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mobile-meta-grid em,
.mobile-meta-grid strong {
  display: inline;
  min-width: 0;
}

.mobile-meta-grid em {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.mobile-meta-grid strong {
  color: var(--text-main);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.mobile-meta-grid .mobile-account-stat {
  min-width: 0;
  white-space: nowrap;
}

.mobile-meta-grid .mobile-account-stat strong {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-meta-grid .mobile-role-stat {
  flex: 0 0 auto;
  min-height: 16px;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid #e4ebf6;
  border-radius: 999px;
  background: #f4f7fc;
}

.mobile-meta-grid .mobile-role-stat em {
  color: #7b8799;
  font-size: 8px;
}

.mobile-meta-grid .mobile-role-stat strong {
  color: #52627a;
  font-size: 10px;
}

.mobile-meta-grid .mobile-winrate-stat {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mobile-meta-grid .mobile-winrate-stat strong {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 950;
}

.mobile-meta-grid .mobile-record-stat {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.mobile-meta-grid .mobile-record-stat strong {
  color: #071229;
  font-size: 12px;
  font-weight: 950;
}

.mobile-champion-row {
  padding-top: 1px;
  opacity: 0.9;
}

.mobile-detail-link {
  width: auto;
  min-width: 48px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}

.mobile-detail-link::after {
  display: none;
  content: "\203A";
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 16px;
  text-align: center;
}

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

.empty-state p {
  margin: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.pagination span {
  min-width: 68px;
  color: var(--text-sub);
  text-align: center;
  font-weight: 900;
}

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

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.45fr);
  gap: 32px;
  padding: 30px max(32px, calc((100% - 1440px) / 2 + 32px));
  overflow: hidden;
  border-top: 1px solid rgba(245, 201, 107, 0.2);
  background:
    radial-gradient(circle at 9% 18%, rgba(245, 201, 107, 0.14), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(77, 138, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #061229, #0a1b3b 62%, #07152f);
  color: rgba(218, 227, 242, 0.78);
  font-size: 12px;
  line-height: 1.65;
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: max(32px, calc((100% - 1440px) / 2 + 32px));
  left: max(32px, calc((100% - 1440px) / 2 + 32px));
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 201, 107, 0.62), transparent 46%, rgba(77, 138, 255, 0.24));
  content: "";
}

.site-footer > div,
.site-footer > p {
  position: relative;
  z-index: 1;
}

.site-footer p {
  margin: 7px 0 0;
}

.site-footer strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.site-footer > p {
  margin: 0;
  padding-left: 26px;
  border-left: 1px solid rgba(218, 227, 242, 0.14);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 18, 41, 0.62);
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid rgba(245, 201, 107, 0.24);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff 0, #f8fbff 100%);
  box-shadow: var(--shadow-floating);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(245, 201, 107, 0.18);
  background:
    radial-gradient(circle at 92% 10%, rgba(245, 201, 107, 0.24), transparent 30%),
    linear-gradient(135deg, #071229, #123b82 62%, #0e3572);
}

.modal-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 8px;
  padding: 0 9px;
  border: 1px solid rgba(245, 201, 107, 0.28);
  border-radius: 999px;
  background: rgba(245, 201, 107, 0.12);
  color: #ffe8a3;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
}

.modal h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
}

.modal-top .icon-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

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

.guide-summary span {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 11px 12px;
  border: 1px solid rgba(199, 164, 115, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgba(245, 201, 107, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(255, 248, 230, 0.66), rgba(255, 255, 255, 0.98)),
    #ffffff;
}

.guide-summary b {
  color: #7a4b12;
  font-size: 14px;
  font-weight: 950;
}

.guide-summary em {
  color: #52627c;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
}

.guide-list div {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid #e4ebf6;
  border-radius: 13px;
  background: #ffffff;
}

.guide-list dt {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(37, 97, 197, 0.16);
  border-radius: 999px;
  background: #eef5ff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}

.guide-list dd {
  margin: 0;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.guide-note {
  margin: 0 14px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 97, 197, 0.14);
  border-left: 4px solid var(--gold-button);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #ffffff;
  color: #52627c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1366px) {
  .leaderboard-table {
    min-width: 1280px;
  }

  .leaderboard-table col {
    width: auto !important;
  }

  .leaderboard-table th:nth-child(1),
  .leaderboard-table td:nth-child(1) {
    width: 60px;
    padding-inline: 4px;
    text-align: center;
  }

  .leaderboard-table td:nth-child(1) .rank-cell {
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .leaderboard-table th:nth-child(2),
  .leaderboard-table td:nth-child(2) {
    width: 58px;
  }

  .leaderboard-table th:nth-child(3),
  .leaderboard-table td:nth-child(3) {
    width: 258px;
  }

  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) {
    width: 120px;
    padding-inline: 6px;
  }

  .leaderboard-table td:nth-child(4) .chips {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .leaderboard-table td:nth-child(4) .chip {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .leaderboard-table th:nth-child(5),
  .leaderboard-table td:nth-child(5) {
    width: 150px;
  }

  .leaderboard-table th:nth-child(6),
  .leaderboard-table td:nth-child(6) {
    width: 86px;
  }

  .leaderboard-table th:nth-child(7),
  .leaderboard-table td:nth-child(7) {
    width: 146px;
  }

  .leaderboard-table th:nth-child(8),
  .leaderboard-table td:nth-child(8) {
    width: 66px;
  }

  .leaderboard-table th:nth-child(9),
  .leaderboard-table td:nth-child(9) {
    width: 92px;
  }

  .leaderboard-table th:nth-child(10),
  .leaderboard-table td:nth-child(10) {
    width: 94px;
  }

  .leaderboard-table th:nth-child(11),
  .leaderboard-table td:nth-child(11) {
    width: 112px;
  }

  .leaderboard-table th:nth-child(12),
  .leaderboard-table td:nth-child(12) {
    width: 38px;
  }
}

@media (max-width: 1280px) {
  .global-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 24px;
  }

  .main-nav {
    justify-content: center;
    gap: 22px;
  }

  .filter-panel {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .primary-button {
    grid-column: span 3;
  }

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

  .group-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
  }

  .group-roster-card {
    grid-column: 1 / -1;
  }

  .role-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  }

  .role-runners-card {
    grid-column: 1 / -1;
  }

  .live-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  }

  .live-list-card {
    grid-column: 1 / -1;
  }

  .profile-spotlight-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
  }

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

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

  .profile-insight-card:last-child {
    grid-column: 1 / -1;
  }

  .profile-stat-grid,
  .profile-champions,
  .profile-action-rail {
    grid-column: 1 / -1;
  }

  .profile-action-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 520px;
    justify-self: start;
  }

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

  .leaderboard-table th:nth-child(4),
  .leaderboard-table td:nth-child(4) {
    display: none;
  }

  .leaderboard-table th:nth-child(3),
  .leaderboard-table td:nth-child(3) {
    width: 270px;
  }

  .leaderboard-table th:nth-child(5),
  .leaderboard-table td:nth-child(5) {
    width: 154px;
  }

  .leaderboard-table th:nth-child(6),
  .leaderboard-table td:nth-child(6) {
    width: 88px;
  }

  .leaderboard-table th:nth-child(7),
  .leaderboard-table td:nth-child(7) {
    width: 150px;
  }

  .leaderboard-table th:nth-child(8),
  .leaderboard-table td:nth-child(8) {
    width: 66px;
  }

  .leaderboard-table th:nth-child(9),
  .leaderboard-table td:nth-child(9) {
    width: 94px;
  }

  .leaderboard-table th:nth-child(10),
  .leaderboard-table td:nth-child(10) {
    width: 98px;
  }

  .leaderboard-table th:nth-child(11),
  .leaderboard-table td:nth-child(11) {
    width: 116px;
  }

  .leaderboard-table th:nth-child(12),
  .leaderboard-table td:nth-child(12) {
    width: 44px;
  }
}

@media (min-width: 1280px) and (max-width: 1320px) {
  body.route-role .role-runners-card {
    display: none;
  }

  .filter-panel {
    grid-template-columns: repeat(5, minmax(140px, 1fr)) minmax(220px, 1.4fr) 150px;
  }

  .primary-button {
    grid-column: auto;
  }

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

  body.route-group .group-dashboard {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  }

  body.route-group .group-leader-card,
  body.route-group .group-roster-card {
    grid-column: 1;
  }

  body.route-group .group-metric-card,
  body.route-group .group-related-card {
    grid-column: 2;
  }

  body.route-group .group-role-grid {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body.route-group .group-role-grid::-webkit-scrollbar {
    display: none;
  }

  body.route-group .group-role-chip {
    flex: 0 0 108px;
    min-height: 62px;
    scroll-snap-align: start;
  }

  body.route-profile .profile-insights {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
  }

  body.route-profile .profile-insight-card:last-child {
    grid-column: auto;
  }

  body.route-profile .profile-comparison {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  }

  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(260px, 1.16fr) minmax(200px, 0.62fr) minmax(250px, 0.9fr) minmax(118px, 0.34fr) minmax(110px, 0.32fr);
  }

  body.route-profile .profile-stat-grid,
  body.route-profile .profile-champions,
  body.route-profile .profile-action-rail {
    grid-column: auto;
  }

  body.route-profile .profile-action-rail {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 1279px) {
  .table-scroll {
    display: none;
  }

  .mobile-list {
    display: block;
    padding: 12px 14px 14px;
  }

  .table-card {
    overflow: hidden;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .hero,
  .hero-inner {
    min-height: 224px;
  }

  .hero-inner {
    padding: 26px 20px 32px;
  }

  .hero-emblem svg {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    margin: 6px 0;
    font-size: 48px;
  }

  .hero p {
    font-size: 17px;
  }

  .mobile-filter-summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: -2px 0 10px;
  }

  .mobile-filter-summary p {
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .filter-panel.filter-collapsed {
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 10px;
    padding: 12px;
  }

  .filter-panel.filter-collapsed label:not(.search-field) {
    display: none;
  }

  .filter-panel.filter-collapsed .search-field {
    grid-column: auto;
  }

  .filter-panel.filter-collapsed .search-field > span {
    display: none;
  }

  .filter-panel.filter-collapsed .primary-button {
    grid-column: auto;
    min-width: 0;
    padding: 0 14px;
  }

  .filter-panel.filter-collapsed .search-suggestions {
    width: min(calc(100vw - 48px), 560px);
  }

  .portal-dashboard .portal-hero-card h2 {
    font-size: 26px;
    line-height: 1.22;
  }

  .context-strip {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .context-breadcrumb {
    overflow: visible;
    flex-wrap: wrap;
  }

  .context-breadcrumb a,
  .context-breadcrumb span {
    white-space: normal;
  }

  .context-meta,
  .context-links {
    justify-content: flex-start;
  }

  body.route-role .context-strip,
  body.route-group .context-strip,
  body.route-profile .context-strip,
  body.route-live .context-strip,
  body.route-portal .context-strip,
  body.route-role .role-runners-card {
    display: none;
  }

  body.route-portal .portal-profile-row:nth-child(n + 4),
  body.route-portal .portal-champion-row:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    display: none;
  }

  body.route-ranking .summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 10px;
  }

  body.route-ranking .summary-card {
    min-height: 64px;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 13px;
  }

  body.route-ranking .summary-kicker {
    overflow: hidden;
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-ranking .summary-card strong {
    overflow: hidden;
    font-size: 20px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-ranking .summary-card strong.summary-compact,
  body.route-ranking .summary-card strong.summary-name,
  body.route-ranking .summary-card strong.summary-state {
    font-size: 14px;
    line-height: 1.15;
  }

  body.route-ranking .summary-card span:last-child {
    display: none;
  }

  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
    align-items: stretch;
    gap: 10px 12px;
    padding: 14px;
  }

  body.route-profile .profile-identity {
    gap: 10px;
  }

  body.route-profile .profile-identity .avatar-wrap,
  body.route-profile .profile-identity .avatar {
    width: 50px;
    height: 50px;
  }

  body.route-profile .profile-identity h2 {
    margin: 2px 0;
    font-size: 22px;
  }

  body.route-profile .profile-identity p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-profile .profile-chip-row,
  body.route-profile .profile-action-rail {
    display: none;
  }

  body.route-profile .profile-tier-panel {
    padding: 10px 11px;
  }

  body.route-profile .profile-stat-grid {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.route-profile .profile-stat-grid span {
    min-height: 54px;
    padding: 8px;
  }

  body.route-profile .profile-champions {
    grid-column: 2;
    align-content: center;
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid #e4ebf6;
    border-radius: 12px;
    background: #fbfdff;
  }
}

@media (min-width: 901px) {
  body.route-profile .profile-insights,
  body.route-profile .profile-comparison,
  body.route-profile .profile-pathways,
  body.route-group .group-roster-card,
  body.route-group .group-related-card,
  body.route-role .role-switch-card {
    display: none;
  }

  body.route-profile .profile-spotlight {
    margin-bottom: 12px;
  }

  body.route-role .role-dashboard {
    gap: 14px;
    align-items: stretch;
  }

  body.route-role .role-runners-card {
    grid-column: auto;
  }

  body.route-group .group-dashboard {
    align-items: stretch;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  body.route-role .role-runners-card {
    display: none;
  }

  .table-card-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(392px, auto);
    align-items: center;
    gap: 10px 14px;
    padding: 14px 16px 10px;
  }

  .table-card h2 {
    font-size: 18px;
  }

  .table-card p {
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .table-actions {
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .tabs {
    min-height: 36px;
    padding: 3px;
    border-radius: 11px;
  }

  .tabs button {
    min-width: 66px;
    min-height: 30px;
    padding: 0 10px;
  }

  .sort-select {
    gap: 3px;
  }

  .sort-select span {
    display: none;
  }

  .sort-select select {
    height: 38px;
    padding: 0 30px 0 10px;
  }

  .table-actions .soft-button {
    min-height: 38px;
    padding: 0 12px;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard {
    margin: 8px 0 10px;
  }

  body.route-portal .portal-hero-card {
    gap: 10px;
    padding: 16px 18px;
  }

  body.route-portal .portal-hero-card p {
    display: none;
  }

  body.route-portal .portal-metric-grid {
    gap: 8px;
  }

  body.route-portal .portal-metric-grid span {
    min-height: 64px;
    padding: 9px 10px;
  }

  body.route-portal .portal-hero-cta {
    min-height: 34px;
    padding: 0 13px;
  }

  .mobile-rank-card {
    grid-template-areas:
      "identity tier champions"
      "identity meta champions";
    grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1fr) minmax(108px, auto);
    align-items: stretch;
    gap: 10px 12px;
    padding: 12px;
  }

  .mobile-rank-card > .mobile-row:first-child {
    grid-area: identity;
    align-items: center;
    min-width: 0;
  }

  .mobile-rank-card .mobile-tier-row {
    grid-area: tier;
    min-width: 0;
  }

  .mobile-rank-card .mobile-meta-grid {
    grid-area: meta;
    align-content: center;
    min-width: 0;
  }

  .mobile-rank-card .mobile-champion-row {
    grid-area: champions;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    min-width: 108px;
    padding: 0 0 0 12px;
    border-left: 1px solid #edf2f8;
  }

  .mobile-rank-card .mobile-champion-row .champions {
    justify-content: flex-end;
    max-width: 112px;
  }

  .mobile-rank-card .mobile-detail-link {
    min-width: 52px;
  }
}

@media (max-width: 900px) {
  .global-header {
    height: auto;
    min-height: 72px;
    grid-template-columns: 1fr auto;
    padding: 12px 18px;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    height: 40px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    height: 40px;
    flex: 0 0 auto;
  }

  .brand {
    font-size: 21px;
  }

  .header-actions .ghost-button {
    display: none;
  }

  .page-shell {
    width: min(100% - 32px, 1440px);
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-filter-summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: -2px 0 10px;
  }

  .mobile-filter-toggle {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
  }

  .mobile-filter-summary p {
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .search-field,
  .primary-button {
    grid-column: 1 / -1;
  }

  .filter-panel.filter-collapsed {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 10px;
    padding: 12px;
  }

  .filter-panel.filter-collapsed label:not(.search-field) {
    display: none;
  }

  .filter-panel.filter-collapsed .search-field {
    grid-column: auto;
  }

  .filter-panel.filter-collapsed .search-field > span {
    display: none;
  }

  .filter-panel.filter-collapsed .primary-button {
    grid-column: auto;
    min-width: 0;
    padding: 0 12px;
  }

  .filter-panel.filter-collapsed .search-suggestions {
    width: min(calc(100vw - 32px), 380px);
  }

  .table-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-dashboard {
    grid-template-columns: 1fr;
  }

  .group-roster-card {
    grid-column: auto;
  }

  .group-leader-card {
    grid-template-columns: 1fr;
  }

  .group-leader-profile {
    justify-items: start;
    min-width: 0;
  }

  .group-related-grid,
  .group-related-profiles > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-dashboard {
    grid-template-columns: 1fr;
  }

  .role-runners-card {
    grid-column: auto;
  }

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

  .role-leader-card {
    grid-template-columns: 1fr;
  }

  .role-leader-profile {
    justify-items: start;
    min-width: 0;
  }

  .context-strip {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .context-meta,
  .context-links {
    justify-content: flex-start;
  }

  body.route-role .context-strip,
  body.route-group .context-strip,
  body.route-profile .context-strip,
  body.route-live .context-strip,
  body.route-portal .context-strip {
    display: none;
  }

  .portal-dashboard {
    grid-template-columns: 1fr;
  }

  .live-dashboard {
    grid-template-columns: 1fr;
  }

  .live-list-card {
    grid-column: auto;
  }

  .live-path-grid,
  .live-path-profiles > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-hero-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .live-hero-profile {
    justify-items: start;
  }

  .profile-spotlight-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

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

  .profile-path-similar > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-insight-card:last-child {
    grid-column: auto;
  }

  body.route-profile .profile-insights,
  body.route-profile .profile-comparison,
  body.route-profile .profile-pathways {
    display: none;
  }

  .profile-stat-grid,
  .profile-champions,
  .profile-action-rail {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .global-header {
    min-height: 104px;
    padding: 8px 16px 7px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .main-nav {
    height: 34px;
    gap: 12px;
  }

  .main-nav a {
    height: 34px;
    padding: 0 7px;
    font-size: 14px;
  }

  .hero,
  .hero-inner {
    min-height: 156px;
  }

  .hero-inner {
    padding: 15px 16px 20px;
  }

  .hero-emblem svg {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    margin: 4px 0;
    font-size: 30px;
    line-height: 1.03;
  }

  .hero p {
    max-width: 286px;
    font-size: 13px;
    line-height: 1.34;
  }

  .ornament {
    width: 132px;
    height: 12px;
    margin-top: 10px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    margin: 4px 0 8px;
    padding: 0;
  }

  .search-suggestions {
    right: auto;
    left: 0;
    width: min(calc(100vw - 32px), 420px);
    max-height: min(420px, calc(100vh - 160px));
  }

  .search-suggestion {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-suggestion-rank {
    grid-column: 2;
    justify-self: start;
  }

  .primary-button {
    grid-column: auto;
  }

  .summary-card {
    min-height: 54px;
    gap: 2px;
    padding: 8px 9px;
    border-radius: 12px;
  }

  .summary-card strong,
  .summary-kicker,
  .summary-card span:last-child {
    white-space: nowrap;
  }

  .summary-card:nth-child(2) {
    min-height: 54px;
  }

  .group-dashboard {
    gap: 10px;
    margin: 8px 0 12px;
  }

  .group-leader-card,
  .group-metric-card,
  .group-roster-card,
  .group-related-card,
  .group-empty-card {
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
  }

  .group-related-card {
    gap: 10px;
  }

  .group-related-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .group-related-grid,
  .group-related-profiles > div {
    grid-template-columns: 1fr;
  }

  body.route-group .summary-strip,
  body.route-role .summary-strip,
  body.route-live .summary-strip {
    display: none;
  }

  body.route-group .group-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.route-group .group-related-link {
    align-content: center;
    min-height: 82px;
    gap: 3px;
    padding: 9px;
  }

  body.route-group .group-related-link strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-group .group-related-link em {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-group .group-related-card {
    gap: 8px;
    padding: 12px;
  }

  body.route-group .group-related-profiles {
    gap: 6px;
    padding-top: 0;
  }

  body.route-group .group-related-title {
    font-size: 10px;
  }

  body.route-group .group-related-profiles > div {
    gap: 6px;
  }

  body.route-group .group-related-profile {
    min-height: 46px;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 11px;
  }

  body.route-group .group-related-profile .avatar-wrap,
  body.route-group .group-related-profile .avatar {
    width: 30px;
    height: 30px;
  }

  body.route-group .group-related-profile strong {
    font-size: 12px;
  }

  body.route-group .group-related-profile em {
    font-size: 10px;
  }

  .group-leader-copy h2 {
    font-size: 24px;
  }

  .group-leader-profile {
    display: flex;
    justify-content: space-between;
    min-width: 0;
    min-height: 74px;
    padding: 10px 12px;
    place-items: unset;
    align-items: center;
  }

  .group-leader-profile .avatar-wrap,
  .group-leader-profile .avatar {
    width: 54px;
    height: 54px;
  }

  .group-leader-profile .tier-emblem {
    position: static;
    width: 40px;
    height: 30px;
  }

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

  .group-member-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

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

  .group-champion-chip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 13px;
  }

  .group-champion-chip strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .role-dashboard {
    gap: 10px;
    margin: 8px 0 12px;
  }

  .role-leader-card,
  .role-metric-card,
  .role-runners-card,
  .role-switch-card,
  .role-empty-card {
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
  }

  .role-switch-card {
    gap: 10px;
  }

  .role-switch-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .role-leader-copy h2 {
    font-size: 24px;
  }

  .role-leader-profile {
    display: flex;
    justify-content: space-between;
    min-width: 0;
    min-height: 74px;
    padding: 10px 12px;
    place-items: unset;
    align-items: center;
  }

  .role-leader-profile .avatar-wrap,
  .role-leader-profile .avatar {
    width: 54px;
    height: 54px;
  }

  .role-leader-profile .tier-emblem {
    position: static;
    width: 40px;
    height: 30px;
  }

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

  .role-runner-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

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

  .role-champion-chip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 13px;
  }

  .role-champion-chip strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-role .role-switch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.route-role .role-switch-link {
    align-content: center;
    min-height: 82px;
    gap: 3px;
    padding: 9px;
  }

  body.route-role .role-switch-link strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-role .role-switch-link em {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-role .role-leader-card,
  body.route-group .group-leader-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  body.route-role .role-leader-copy,
  body.route-group .group-leader-copy {
    gap: 7px;
  }

  body.route-role .role-leader-copy h2,
  body.route-group .group-leader-copy h2 {
    font-size: 22px;
  }

  body.route-role .role-leader-copy p,
  body.route-group .group-leader-copy p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    gap: 6px;
    margin-top: 2px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11px;
  }

  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile {
    display: grid;
    justify-items: center;
    align-content: center;
    width: 82px;
    min-width: 82px;
    min-height: 82px;
    padding: 8px;
    gap: 3px;
  }

  body.route-role .role-leader-profile .avatar-wrap,
  body.route-role .role-leader-profile .avatar,
  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar {
    width: 46px;
    height: 46px;
  }

  body.route-role .role-leader-profile .tier-emblem,
  body.route-group .group-leader-profile .tier-emblem {
    width: 34px;
    height: 24px;
  }

  body.route-role .role-metric-card,
  body.route-role .role-runners-card,
  body.route-role .role-switch-card,
  body.route-group .group-metric-card,
  body.route-group .group-roster-card,
  body.route-group .group-related-card {
    gap: 9px;
    padding: 12px;
  }

  body.route-role .role-metric-grid span,
  body.route-group .group-metric-grid span,
  body.route-group .group-role-chip {
    padding: 8px;
    border-radius: 11px;
  }

  body.route-role .role-metric-card p,
  body.route-group .group-metric-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-role .role-runners-card,
  body.route-role .role-switch-card,
  body.route-group .group-roster-card,
  body.route-group .group-related-card {
    display: none;
  }

  body.route-role .role-runner-list,
  body.route-group .group-member-list {
    gap: 6px;
  }

  body.route-role .role-runner-row,
  body.route-group .group-member-row {
    min-height: 46px;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 11px;
  }

  body.route-role .role-runner-row .avatar-wrap,
  body.route-role .role-runner-row .avatar,
  body.route-group .group-member-row .avatar-wrap,
  body.route-group .group-member-row .avatar {
    width: 30px;
    height: 30px;
  }

  body.route-role .role-runner-row strong,
  body.route-group .group-member-row strong {
    font-size: 12px;
  }

  body.route-role .role-runner-row em,
  body.route-group .group-member-row em {
    font-size: 10px;
  }

  body.route-role .role-champion-strip,
  body.route-group .group-champion-strip {
    gap: 6px;
  }

  body.route-role .role-champion-chip,
  body.route-group .group-champion-chip {
    min-height: 30px;
    gap: 5px;
    padding: 3px 7px 3px 4px;
  }

  body.route-role .role-champion-chip .champion-icon-wrap,
  body.route-role .role-champion-chip .champion-icon,
  body.route-group .group-champion-chip .champion-icon-wrap,
  body.route-group .group-champion-chip .champion-icon {
    width: 24px;
    height: 24px;
  }

  body.route-role .role-switch-grid,
  body.route-group .group-role-grid,
  body.route-group .group-related-grid,
  body.route-group .group-related-profiles > div {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body.route-role .role-switch-grid::-webkit-scrollbar,
  body.route-group .group-role-grid::-webkit-scrollbar,
  body.route-group .group-related-grid::-webkit-scrollbar,
  body.route-group .group-related-profiles > div::-webkit-scrollbar {
    display: none;
  }

  body.route-role .role-switch-link,
  body.route-group .group-related-link {
    flex: 0 0 142px;
    min-height: 68px;
    padding: 8px;
    scroll-snap-align: start;
  }

  body.route-group .group-role-chip {
    flex: 0 0 112px;
    min-height: 62px;
    scroll-snap-align: start;
  }

  body.route-group .group-related-profile {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

  .live-dashboard {
    gap: 10px;
    margin: 8px 0 12px;
  }

  .live-hero-card,
  .live-metric-card,
  .live-list-card,
  .live-path-card,
  .live-empty-card {
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
  }

  .live-path-header {
    gap: 4px;
  }

  .live-path-grid,
  .live-path-profiles > div {
    grid-template-columns: 1fr;
  }

  .live-empty-feature {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .live-empty-copy {
    gap: 6px;
  }

  .live-empty-card strong {
    max-width: 250px;
    font-size: 18px;
    line-height: 1.25;
  }

  .live-empty-card p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .live-empty-actions {
    gap: 6px;
  }

  .live-empty-actions a,
  .live-empty-actions button {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11px;
  }

  .live-empty-more {
    gap: 7px;
    padding: 9px;
    border-radius: 12px;
  }

  .live-empty-more summary {
    min-height: 28px;
    font-size: 11px;
  }

  .live-empty-more summary::after {
    width: 20px;
    height: 20px;
  }

  .live-empty-suggestions {
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
  }

  .live-empty-suggestion {
    gap: 7px;
    padding: 6px 7px;
    border-radius: 11px;
  }

  .live-empty-suggestion .avatar-wrap,
  .live-empty-suggestion .avatar {
    width: 30px;
    height: 30px;
  }

  .live-empty-suggestion strong {
    font-size: 11px;
  }

  .live-empty-suggestion em,
  .live-empty-suggestion b {
    font-size: 9px;
  }

  .live-empty-more .live-path-card {
    display: none;
  }

  .live-hero-copy h2 {
    font-size: 24px;
  }

  .live-hero-profile {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 2px 10px;
    padding: 10px 12px;
  }

  .live-hero-profile .avatar-wrap,
  .live-hero-profile .avatar {
    grid-row: 1 / 3;
    width: 54px;
    height: 54px;
  }

  .live-hero-profile span {
    text-align: left;
  }

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

  .live-list-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .live-list-meta {
    grid-column: 2;
    justify-self: start;
  }

  .profile-spotlight {
    margin: 8px 0 12px;
  }

  .profile-spotlight-card {
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }

  .profile-identity {
    align-items: center;
    gap: 10px;
  }

  .profile-identity .avatar-wrap,
  .profile-identity .avatar {
    width: 46px;
    height: 46px;
  }

  .profile-identity h2 {
    margin: 2px 0;
    font-size: 20px;
  }

  .profile-identity p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .profile-chip-row {
    display: none;
  }

  .profile-tier-panel {
    padding: 10px 11px;
    border-radius: 13px;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .profile-stat-grid span:first-child {
    grid-column: auto;
  }

  .profile-stat-grid span {
    gap: 2px;
    min-height: 58px;
    padding: 8px;
  }

  .profile-stat-grid strong {
    font-size: 13px;
  }

  .profile-stat-grid em {
    font-size: 10px;
  }

  .profile-champions {
    gap: 5px;
  }

  .profile-action-rail {
    display: none;
  }

  .profile-insights {
    gap: 10px;
    margin-bottom: 12px;
  }

  .profile-comparison {
    gap: 10px;
    margin-bottom: 12px;
  }

  .profile-pathways {
    margin-bottom: 12px;
  }

  .profile-insight-card {
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
  }

  .profile-compare-card {
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
  }

  .profile-compare-card > strong {
    font-size: 22px;
  }

  body.route-profile .profile-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.route-profile .profile-compare-card {
    gap: 7px;
    min-height: 0;
    padding: 10px;
  }

  body.route-profile .profile-compare-kicker {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-profile .profile-compare-card > strong {
    overflow: hidden;
    font-size: 19px;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-compare-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-profile .profile-rank-balance {
    gap: 5px;
  }

  body.route-profile .profile-rank-balance span {
    gap: 2px;
    padding: 7px;
    border-radius: 10px;
  }

  body.route-profile .profile-rank-balance em,
  body.route-profile .profile-focus-champion em {
    font-size: 9px;
  }

  body.route-profile .profile-rank-balance b {
    font-size: 12px;
  }

  body.route-profile .profile-focus-champions {
    gap: 5px;
  }

  body.route-profile .profile-focus-champion {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    padding: 5px 7px;
    border-radius: 10px;
  }

  body.route-profile .profile-focus-champion .champion-icon-wrap,
  body.route-profile .profile-focus-champion .champion-icon {
    width: 24px;
    height: 24px;
  }

  body.route-profile .profile-focus-champion strong {
    font-size: 12px;
  }

  body.route-profile .profile-focus-champion em {
    display: none;
  }

  .profile-path-card {
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
  }

  .profile-path-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profile-path-grid,
  .profile-path-similar > div {
    grid-template-columns: 1fr;
  }

  body.route-profile .summary-strip {
    display: none;
  }

  body.route-profile .profile-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.route-profile .profile-path-link {
    align-content: center;
    min-height: 82px;
    gap: 3px;
    padding: 9px;
  }

  body.route-profile .profile-path-link strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-profile .profile-path-link em {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

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

  .role-filter {
    position: sticky;
    top: var(--mobile-sticky-header-offset, 115px);
    z-index: 41;
    display: flex;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    margin: 0 0 10px;
    padding: 5px 6px;
    border: 1px solid rgba(220, 228, 240, 0.92);
    border-radius: 14px;
    background: rgba(247, 249, 253, 0.96);
    box-shadow: 0 7px 16px rgba(15, 27, 51, 0.09);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .role-filter::-webkit-scrollbar {
    display: none;
  }

  .role-filter button {
    flex: 0 0 auto;
    min-width: 58px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    scroll-snap-align: start;
  }

  .context-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin-bottom: 6px;
    padding: 6px 7px;
    overflow: hidden;
    border-radius: 12px;
  }

  .context-breadcrumb {
    display: none;
  }

  .context-meta,
  .context-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .context-meta::-webkit-scrollbar,
  .context-links::-webkit-scrollbar {
    display: none;
  }

  .context-meta span,
  .context-links a {
    flex: 0 0 auto;
    max-width: min(220px, 72vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 22px;
    padding: 2px 7px;
    font-size: 10px;
  }

  .quick-jump:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -2px 0 10px;
    padding: 8px 9px 8px 11px;
    border: 1px solid rgba(37, 97, 197, 0.16);
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 5px 16px rgba(15, 27, 51, 0.06);
  }

  .quick-jump span {
    min-width: 0;
    overflow: hidden;
    color: var(--text-sub);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quick-jump a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 31px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
  }

  #leaderboardHeading {
    scroll-margin-top: var(--leaderboard-scroll-margin, 178px);
  }

  .portal-dashboard {
    gap: 10px;
    margin: 8px 0 12px;
  }

  .portal-hero-card,
  .portal-list-card {
    border-radius: 14px;
  }

  .portal-hero-card {
    min-height: 0;
    padding: 17px;
  }

  .portal-hero-card h2 {
    font-size: 22px;
  }

  .portal-hero-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

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

  .portal-metric-grid span {
    gap: 2px;
    padding: 8px 9px;
  }

  .portal-metric-grid span:last-child {
    grid-column: 1 / -1;
  }

  .portal-metric-grid strong {
    font-size: 17px;
  }

  .portal-metric-grid em,
  .portal-metric-grid b {
    font-size: 10px;
  }

  .portal-list-card {
    min-height: 0;
    padding: 13px;
  }

  .portal-profile-row,
  .portal-link-tile,
  .portal-champion-row {
    padding: 9px;
  }

  body.route-portal .summary-strip {
    display: none;
  }

  .portal-dashboard[data-portal="guides"] .portal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .portal-dashboard[data-portal="guides"] .portal-link-tile {
    min-height: 82px;
    align-content: center;
    gap: 3px;
    padding: 9px;
  }

  .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 17px;
  }

  .portal-dashboard[data-portal="guides"] .portal-link-tile em {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .summary-kicker,
  .summary-card span:last-child {
    font-size: 10px;
  }

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

  .summary-card strong {
    font-size: 21px;
  }

  .summary-card strong.summary-compact {
    font-size: 12px;
    line-height: 1.25;
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .summary-card strong.summary-name,
  .summary-card strong.summary-state {
    font-size: 17px;
  }

  .table-scroll {
    display: none;
  }

  .mobile-list {
    display: block;
    padding: 10px 12px 12px;
  }

  .mobile-rank-card {
    gap: 5px;
    padding: 10px;
    border-radius: 14px;
  }

  .mobile-rank-card + .mobile-rank-card {
    margin-top: 8px;
  }

  .mobile-row {
    gap: 8px;
  }

  .mobile-channel {
    grid-template-columns: 38px 38px minmax(0, 1fr);
    gap: 7px;
  }

  .mobile-rank-stack {
    gap: 3px;
  }

  .mobile-channel .avatar-wrap,
  .mobile-channel .avatar {
    width: 38px;
    height: 38px;
  }

  .mobile-channel .channel-name {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-channel-meta {
    flex-wrap: wrap;
    gap: 3px;
    overflow: visible;
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .mobile-channel-meta .mobile-sub-text,
  .mobile-channel-meta .chip,
  .mobile-channel-meta .quality-badge {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .mobile-tier-row {
    padding: 5px 7px;
    border-radius: 10px;
  }

  .mobile-meta-grid {
    gap: 3px 6px;
    padding: 5px 7px;
    border-radius: 10px;
  }

  .mobile-champion-row {
    padding-top: 0;
  }

  .mobile-rank-card .champions {
    gap: 4px;
  }

  .mobile-rank-card .champion-icon-wrap,
  .mobile-rank-card .champion-icon {
    width: 30px;
    height: 30px;
  }

  .mobile-rank-card .champion-icon-wrap {
    flex-basis: 30px;
    border-radius: 10px;
  }

  .mobile-rank-card .champion-icon {
    border-radius: 10px;
  }

  .table-card-top {
    gap: 8px;
    padding: 13px 14px 8px;
  }

  .table-card h2 {
    font-size: 18px;
  }

  .table-card p {
    max-width: 100%;
    margin-top: 3px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: 12px;
    line-height: 1.34;
  }

  .result-meta {
    align-items: flex-start;
    gap: 5px 7px;
    font-size: 12px;
  }

  .result-status-chip {
    min-height: 21px;
    font-size: 10px;
  }

  .table-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
    align-items: center;
    justify-content: stretch;
  }

  .tabs {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
    padding: 3px;
  }

  .tabs button {
    flex: 1 1 0;
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .sort-select,
  .table-actions .soft-button {
    width: 100%;
    min-width: 0;
  }

  .sort-select span {
    display: none;
  }

  .sort-select select {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 30px 0 12px;
    font-size: 12px;
  }

  .table-actions .soft-button {
    width: 44px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 0;
    white-space: nowrap;
  }

  .table-actions .soft-button svg {
    width: 18px;
    height: 18px;
  }

  .live-status-line {
    display: inline-flex;
    max-width: 100%;
    width: fit-content;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 9px;
    line-height: 1.1;
  }

  .mobile-rank-card .live-dot,
  .mobile-rank-card .live-status-label {
    display: none;
  }

  .live-status-meta {
    display: inline;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .live-status-title {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 18px 28px;
  }

  .site-footer::before {
    right: 18px;
    left: 18px;
  }

  .site-footer > p {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid rgba(218, 227, 242, 0.14);
    border-left: 0;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  .modal-top {
    padding: 12px 14px;
  }

  .modal-kicker {
    min-height: 18px;
    margin-bottom: 4px;
    padding: 0 7px;
    font-size: 9px;
  }

  .modal h2 {
    font-size: 17px;
    line-height: 1.2;
  }

  .guide-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 8px 0;
  }

  .guide-summary span {
    min-height: 46px;
    padding: 7px 6px;
    border-radius: 10px;
  }

  .guide-summary b {
    font-size: 10px;
    line-height: 1.1;
  }

  .guide-summary em {
    font-size: 9px;
    line-height: 1.2;
  }

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

  .guide-list div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 9px;
    border-radius: 11px;
  }

  .guide-list dt {
    min-height: 19px;
    padding: 0 7px;
    font-size: 10px;
  }

  .guide-list dd {
    font-size: 10px;
    line-height: 1.3;
  }

  .guide-note {
    margin: 0 8px 8px;
    padding: 7px 9px;
    border-radius: 11px;
    font-size: 9px;
    line-height: 1.3;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .table-card-top {
    gap: 10px;
    padding: 16px 18px 10px;
  }

  .table-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px 132px;
    width: 100%;
    gap: 10px;
    align-items: end;
  }

  .tabs {
    width: 100%;
  }

  .tabs button {
    min-width: 0;
  }

  .sort-select span {
    display: none;
  }

  .sort-select select {
    width: 100%;
  }

  .table-actions .soft-button {
    width: 100%;
    white-space: nowrap;
  }

  .mobile-list {
    padding: 10px 12px 12px;
  }

  .mobile-rank-card {
    gap: 6px;
    padding: 11px;
    border-radius: 14px;
  }

  .mobile-rank-card + .mobile-rank-card {
    margin-top: 9px;
  }

  .mobile-row,
  .mobile-channel {
    gap: 8px;
  }

  .mobile-tier-row {
    padding: 6px 8px;
    border-radius: 11px;
  }

  .mobile-meta-grid {
    gap: 3px 6px;
    padding: 5px 8px;
    border-radius: 11px;
  }

  .mobile-champion-row {
    padding-top: 0;
  }

  .mobile-rank-card .champions {
    gap: 4px;
  }

  .mobile-rank-card .champion-icon-wrap,
  .mobile-rank-card .champion-icon {
    width: 31px;
    height: 31px;
  }

  .mobile-rank-card .champion-icon-wrap,
  .mobile-rank-card .champion-icon {
    border-radius: 10px;
  }

  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(0, 1.12fr) minmax(250px, 0.78fr);
    gap: 12px;
    padding: 14px;
  }

  body.route-profile .profile-identity {
    align-items: center;
  }

  body.route-profile .profile-tier-panel {
    align-self: stretch;
  }

  body.route-profile .profile-stat-grid {
    grid-column: 1 / -1;
  }

  body.route-profile .profile-champions {
    grid-column: 1;
  }

  body.route-profile .profile-action-rail {
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }
}

@media (max-width: 900px) {
  body.route-role .role-dashboard,
  body.route-group .group-dashboard {
    gap: 10px;
    margin: 8px 0 12px;
  }

  body.route-role .role-leader-card,
  body.route-group .group-leader-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 14px;
    border-radius: 14px;
  }

  body.route-role .role-leader-copy,
  body.route-group .group-leader-copy {
    gap: 7px;
  }

  body.route-role .role-leader-copy h2,
  body.route-group .group-leader-copy h2 {
    font-size: 22px;
  }

  body.route-role .role-leader-copy p,
  body.route-group .group-leader-copy p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    gap: 6px;
    margin-top: 2px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11px;
  }

  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile {
    display: grid;
    justify-items: center;
    align-content: center;
    width: 82px;
    min-width: 82px;
    min-height: 82px;
    padding: 8px;
    gap: 3px;
  }

  body.route-role .role-leader-profile .avatar-wrap,
  body.route-role .role-leader-profile .avatar,
  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar {
    width: 46px;
    height: 46px;
  }

  body.route-role .role-leader-profile .tier-emblem,
  body.route-group .group-leader-profile .tier-emblem {
    position: static;
    width: 34px;
    height: 24px;
  }

  body.route-role .role-metric-card,
  body.route-role .role-runners-card,
  body.route-role .role-switch-card,
  body.route-group .group-metric-card,
  body.route-group .group-roster-card,
  body.route-group .group-related-card {
    gap: 9px;
    min-height: 0;
    padding: 12px;
    border-radius: 14px;
  }

  body.route-role .role-metric-grid span,
  body.route-group .group-metric-grid span,
  body.route-group .group-role-chip {
    padding: 8px;
    border-radius: 11px;
  }

  body.route-role .role-metric-card p,
  body.route-group .group-metric-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-role .role-runner-list,
  body.route-group .group-member-list {
    gap: 6px;
  }

  body.route-role .role-runner-row,
  body.route-group .group-member-row {
    min-height: 46px;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 11px;
  }

  body.route-role .role-runner-row .avatar-wrap,
  body.route-role .role-runner-row .avatar,
  body.route-group .group-member-row .avatar-wrap,
  body.route-group .group-member-row .avatar {
    width: 30px;
    height: 30px;
  }

  body.route-role .role-runner-row strong,
  body.route-group .group-member-row strong {
    font-size: 12px;
  }

  body.route-role .role-runner-row em,
  body.route-group .group-member-row em {
    font-size: 10px;
  }

  body.route-role .role-champion-strip,
  body.route-group .group-champion-strip {
    gap: 6px;
  }

  body.route-role .role-champion-chip,
  body.route-group .group-champion-chip {
    min-height: 30px;
    gap: 5px;
    padding: 3px 7px 3px 4px;
  }

  body.route-role .role-champion-chip .champion-icon-wrap,
  body.route-role .role-champion-chip .champion-icon,
  body.route-group .group-champion-chip .champion-icon-wrap,
  body.route-group .group-champion-chip .champion-icon {
    width: 24px;
    height: 24px;
  }

  body.route-role .role-switch-grid,
  body.route-group .group-role-grid,
  body.route-group .group-related-grid,
  body.route-group .group-related-profiles > div {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body.route-role .role-switch-grid::-webkit-scrollbar,
  body.route-group .group-role-grid::-webkit-scrollbar,
  body.route-group .group-related-grid::-webkit-scrollbar,
  body.route-group .group-related-profiles > div::-webkit-scrollbar {
    display: none;
  }

  body.route-role .role-switch-link,
  body.route-group .group-related-link {
    flex: 0 0 142px;
    min-height: 68px;
    padding: 8px;
    scroll-snap-align: start;
  }

  body.route-group .group-role-chip {
    flex: 0 0 112px;
    min-height: 62px;
    scroll-snap-align: start;
  }

  body.route-group .group-related-profile {
    flex: 0 0 168px;
    scroll-snap-align: start;
  }

  .quick-jump:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -2px 0 10px;
    padding: 8px 9px 8px 11px;
    border: 1px solid rgba(37, 97, 197, 0.16);
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 5px 16px rgba(15, 27, 51, 0.06);
  }

  .quick-jump span {
    min-width: 0;
    overflow: hidden;
    color: var(--text-sub);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quick-jump a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 31px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
  }

  .summary-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 4px 0 10px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .summary-strip::-webkit-scrollbar {
    display: none;
  }

  .summary-card {
    flex: 0 0 clamp(132px, 22vw, 168px);
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 13px;
    scroll-snap-align: start;
  }

  .summary-kicker,
  .summary-card span:last-child {
    font-size: 10px;
  }

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

  .summary-card strong {
    font-size: 20px;
    line-height: 1.05;
  }

  .summary-card strong.summary-compact {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    font-size: 12px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .summary-card strong.summary-name,
  .summary-card strong.summary-state {
    font-size: 16px;
  }

  body.route-group .summary-strip,
  body.route-role .summary-strip,
  body.route-profile .summary-strip,
  body.route-live .summary-strip,
  body.route-portal .summary-strip {
    display: none;
  }
}

@media (min-width: 700px) and (max-width: 900px) {
  .hero,
  .hero-inner {
    min-height: 196px;
  }

  .hero-inner {
    padding: 24px 18px 28px;
  }

  .hero-emblem svg {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    margin: 6px 0;
    font-size: clamp(38px, 6.4vw, 52px);
    line-height: 1.04;
  }

  .hero p {
    max-width: 680px;
    font-size: 16px;
    line-height: 1.4;
  }

  body.route-portal .portal-dashboard {
    grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.96fr);
    align-items: stretch;
  }

  body.route-portal .portal-hero-card,
  body.route-portal .portal-list-card {
    min-height: 0;
  }

  body.route-portal .portal-list-card {
    align-content: start;
  }

  body.route-portal .portal-dashboard,
  body.route-group .group-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  body.route-portal .portal-list-card,
  body.route-group .group-metric-card {
    display: none;
  }

  body.route-portal .portal-hero-card {
    min-height: 0;
    padding: 15px;
  }

  body.route-portal .portal-profile-row:nth-child(n + 4),
  body.route-portal .portal-champion-row:nth-child(n + 4),
  body.route-portal .portal-link-tile:nth-child(n + 5) {
    display: none;
  }

  body.route-group .group-dashboard,
  body.route-role .role-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.route-group .group-leader-card,
  body.route-group .group-roster-card,
  body.route-role .role-leader-card,
  body.route-role .role-runners-card {
    grid-column: 1;
  }

  body.route-group .group-metric-card,
  body.route-group .group-related-card,
  body.route-role .role-metric-card,
  body.route-role .role-switch-card {
    grid-column: 2;
  }

  body.route-group .group-role-grid,
  body.route-role .role-switch-grid {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body.route-group .group-role-grid::-webkit-scrollbar,
  body.route-role .role-switch-grid::-webkit-scrollbar {
    display: none;
  }

  body.route-group .group-role-chip,
  body.route-role .role-switch-link {
    flex: 0 0 112px;
    min-height: 62px;
    scroll-snap-align: start;
  }

  body.route-profile .profile-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.route-profile .profile-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.route-profile .profile-path-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.route-profile .profile-spotlight-card {
    gap: 9px 12px;
    padding: 12px;
  }

  body.route-profile .profile-champions {
    grid-column: 2;
    grid-row: 2;
    align-content: center;
    gap: 5px;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid #e4ebf6;
    border-radius: 12px;
    background: #fbfdff;
  }

  body.route-profile .profile-champions > span {
    font-size: 10px;
  }

  body.route-profile .profile-champions .champions {
    gap: 5px;
  }

  body.route-profile .profile-champions .champion-icon-wrap,
  body.route-profile .profile-champions .champion-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  body.route-profile .profile-stat-grid {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
  }

  body.route-profile .profile-stat-grid span {
    min-height: 58px;
    padding: 8px;
  }

  body.route-profile .profile-action-rail {
    display: none;
  }

  body.route-role .role-runners-card,
  body.route-role .role-switch-card,
  body.route-group .group-roster-card,
  body.route-group .group-related-card {
    display: none;
  }
}

@media (max-width: 760px) {
  body.route-role .role-metric-card,
  body.route-group .group-metric-card {
    display: none;
  }

  body.route-portal .portal-list-card {
    display: none;
  }

  body.route-portal .portal-hero-card {
    padding: 15px;
  }

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

  body.route-portal .portal-metric-grid span:last-child {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .global-header {
    padding: 8px 14px 7px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .brand {
    font-size: 18px;
  }

  .filter-panel {
    padding: 12px;
  }

  .table-card-top {
    padding: 13px 14px 8px;
  }

  .summary-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 2px 0 8px;
    padding: 0 18px 1px 0;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .summary-strip::-webkit-scrollbar {
    display: none;
  }

  .summary-card {
    flex: 0 0 132px;
    min-height: 56px;
    padding: 9px 10px;
    border-radius: 13px;
    scroll-snap-align: start;
  }

  .summary-card:last-child {
    margin-right: 2px;
  }

  .summary-card strong {
    font-size: 19px;
    line-height: 1.05;
  }

  .summary-card strong.summary-compact {
    font-size: 11px;
    line-height: 1.2;
    -webkit-line-clamp: 2;
  }

  .summary-card strong.summary-name,
  .summary-card strong.summary-state {
    font-size: 16px;
  }

  .tabs button {
    min-width: 0;
  }

  .mobile-row {
    align-items: flex-start;
  }

  .role-switch-grid {
    grid-template-columns: 1fr;
  }

  .role-filter {
    gap: 4px;
    padding: 5px;
  }

  .role-filter button {
    min-width: 44px;
    min-height: 29px;
    padding: 0 8px;
    font-size: 11px;
  }

  .context-strip {
    display: none;
  }

  body.route-role .role-switch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.route-role .role-runners-card,
  body.route-role .role-switch-card,
  body.route-group .group-roster-card {
    display: none;
  }

  body.route-profile .profile-insight-card:first-child,
  body.route-profile .profile-insight-card:last-child,
  body.route-profile .profile-comparison {
    display: none;
  }

  body.route-profile .profile-insights {
    margin-bottom: 12px;
  }

  .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    display: none;
  }

  body.route-group .group-related-card,
  body.route-profile .profile-pathways {
    display: none;
  }

  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(0, 1fr) minmax(118px, 0.48fr);
    grid-auto-flow: dense;
    gap: 7px;
    padding: 10px;
    border-color: rgba(199, 164, 115, 0.28);
    background:
      linear-gradient(135deg, rgba(245, 201, 107, 0.13), rgba(255, 255, 255, 0) 34%),
      #ffffff;
    box-shadow: var(--shadow-card);
  }

  body.route-profile .profile-identity {
    grid-column: 1 / -1;
    gap: 8px;
  }

  body.route-profile .profile-spotlight-card .profile-kicker {
    color: var(--text-muted);
  }

  body.route-profile .profile-identity .avatar-wrap,
  body.route-profile .profile-identity .avatar {
    width: 42px;
    height: 42px;
  }

  body.route-profile .profile-identity h2 {
    margin: 1px 0;
    color: var(--text-main);
    font-size: 18px;
  }

  body.route-profile .profile-identity p {
    color: var(--text-sub);
    font-size: 11px;
    -webkit-line-clamp: 1;
  }

  body.route-profile .profile-spotlight-card .profile-chip-row .chip {
    border-color: rgba(37, 97, 197, 0.14);
    background: #eef5ff;
    color: var(--text-sub);
  }

  body.route-profile .profile-tier-panel {
    grid-column: 1;
    grid-row: 2;
    min-height: 54px;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  body.route-profile .profile-tier-panel strong {
    font-size: 15px;
  }

  body.route-profile .profile-tier-panel span:not(.tier-emblem) {
    font-size: 11px;
  }

  body.route-profile .profile-champions {
    grid-column: 2;
    grid-row: 2;
    align-content: center;
    justify-items: center;
    gap: 0;
    min-height: 54px;
    padding: 8px;
    border: 1px solid #e4ebf6;
    border-radius: 12px;
    background: #fbfdff;
  }

  body.route-profile .profile-champions > span {
    display: none;
  }

  body.route-profile .profile-champions .champions {
    justify-content: center;
    gap: 4px;
  }

  body.route-profile .profile-champions .champion-icon-wrap,
  body.route-profile .profile-champions .champion-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  body.route-profile .profile-stat-grid {
    grid-column: 1 / -1;
    grid-row: 3;
    gap: 5px;
  }

  body.route-profile .profile-stat-grid span {
    min-height: 50px;
    padding: 7px;
  }

  body.route-profile .profile-stat-grid strong {
    white-space: normal;
    line-height: 1.14;
  }
}

@media (min-width: 1280px) {
  body.route-portal .portal-profile-row:nth-child(n + 4),
  body.route-portal .portal-champion-row:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  body.route-role .role-dashboard,
  body.route-group .group-dashboard,
  body.route-portal .portal-dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 8px 0 12px;
  }

  body.route-role .role-metric-card,
  body.route-role .role-runners-card,
  body.route-role .role-switch-card,
  body.route-group .group-metric-card,
  body.route-group .group-roster-card,
  body.route-group .group-related-card,
  body.route-portal .portal-list-card {
    display: none;
  }

  body.route-role .role-leader-card,
  body.route-group .group-leader-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    border-radius: 15px;
  }

  body.route-role .role-leader-copy,
  body.route-group .group-leader-copy {
    gap: 7px;
  }

  body.route-role .role-leader-copy h2,
  body.route-group .group-leader-copy h2 {
    font-size: 24px;
    line-height: 1.12;
  }

  body.route-role .role-leader-copy p,
  body.route-group .group-leader-copy p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    gap: 6px;
    margin-top: 2px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 11px;
  }

  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile {
    min-width: 128px;
    min-height: 112px;
    border-radius: 15px;
  }

  body.route-role .role-leader-profile .avatar-wrap,
  body.route-role .role-leader-profile .avatar,
  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar {
    width: 60px;
    height: 60px;
  }

  body.route-role .role-leader-profile .tier-emblem,
  body.route-group .group-leader-profile .tier-emblem {
    right: 11px;
    bottom: 10px;
    width: 34px;
    height: 24px;
  }

  body.route-portal .portal-hero-card {
    min-height: 0;
    gap: 10px;
    padding: 18px;
    border-radius: 15px;
  }

  body.route-portal .portal-hero-card h2 {
    font-size: 26px;
    line-height: 1.16;
  }

  body.route-portal .portal-hero-card p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-portal .portal-metric-grid {
    gap: 8px;
    margin-top: 0;
  }

  body.route-portal .portal-metric-grid span {
    padding: 9px;
    border-radius: 11px;
  }

  body.route-portal .portal-metric-grid strong {
    font-size: 18px;
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  body.route-role .context-strip,
  body.route-group .context-strip,
  body.route-portal .context-strip {
    display: none;
  }

  body.route-role .role-dashboard,
  body.route-group .group-dashboard,
  body.route-portal .portal-dashboard {
    gap: 12px;
    margin: 8px 0 12px;
  }

  body.route-role .role-leader-card,
  body.route-role .role-metric-card,
  body.route-role .role-runners-card,
  body.route-group .group-leader-card,
  body.route-group .group-metric-card,
  body.route-group .group-roster-card,
  body.route-group .group-related-card,
  body.route-portal .portal-hero-card,
  body.route-portal .portal-list-card {
    min-height: 0;
    padding: 16px;
    border-radius: 15px;
  }

  body.route-role .role-leader-card,
  body.route-group .group-leader-card {
    gap: 12px;
  }

  body.route-role .role-leader-copy,
  body.route-group .group-leader-copy,
  body.route-portal .portal-hero-card {
    gap: 9px;
  }

  body.route-role .role-leader-copy h2,
  body.route-group .group-leader-copy h2,
  body.route-portal .portal-hero-card h2 {
    font-size: 26px;
    line-height: 1.14;
  }

  body.route-role .role-leader-copy p,
  body.route-group .group-leader-copy p,
  body.route-portal .portal-hero-card p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    gap: 6px;
    margin-top: 2px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 11px;
  }

  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile {
    min-width: 136px;
    min-height: 118px;
    border-radius: 15px;
  }

  body.route-role .role-leader-profile .avatar-wrap,
  body.route-role .role-leader-profile .avatar,
  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar {
    width: 64px;
    height: 64px;
  }

  body.route-role .role-leader-profile .tier-emblem,
  body.route-group .group-leader-profile .tier-emblem {
    right: 12px;
    bottom: 10px;
    width: 36px;
    height: 25px;
  }

  body.route-role .role-metric-grid,
  body.route-group .group-metric-grid,
  body.route-portal .portal-metric-grid {
    gap: 8px;
  }

  body.route-role .role-metric-grid span,
  body.route-group .group-metric-grid span,
  body.route-portal .portal-metric-grid span {
    padding: 9px;
    border-radius: 11px;
  }

  body.route-portal .portal-list {
    gap: 7px;
  }

  body.route-portal .portal-profile-row,
  body.route-portal .portal-link-tile,
  body.route-portal .portal-champion-row {
    min-height: 0;
    padding: 9px;
    border-radius: 11px;
  }
}

@media (min-width: 1440px) and (max-height: 950px) {
  body.route-role .context-strip,
  body.route-group .context-strip,
  body.route-profile .context-strip,
  body.route-live .context-strip,
  body.route-portal .context-strip {
    display: none;
  }

  body.route-role .role-dashboard,
  body.route-group .group-dashboard,
  body.route-live .live-dashboard,
  body.route-portal .portal-dashboard {
    gap: 12px;
    margin: 8px 0 12px;
  }

  body.route-role .role-leader-card,
  body.route-role .role-metric-card,
  body.route-role .role-runners-card,
  body.route-group .group-leader-card,
  body.route-group .group-metric-card,
  body.route-group .group-roster-card,
  body.route-group .group-related-card,
  body.route-live .live-hero-card,
  body.route-live .live-metric-card,
  body.route-live .live-list-card,
  body.route-portal .portal-hero-card,
  body.route-portal .portal-list-card,
  body.route-profile .profile-spotlight-card {
    min-height: 0;
    padding: 16px;
    border-radius: 15px;
  }

  body.route-role .role-leader-card,
  body.route-group .group-leader-card {
    gap: 12px;
  }

  body.route-role .role-leader-copy,
  body.route-group .group-leader-copy,
  body.route-live .live-hero-copy,
  body.route-portal .portal-hero-card {
    gap: 9px;
  }

  body.route-role .role-leader-copy h2,
  body.route-group .group-leader-copy h2,
  body.route-live .live-hero-copy h2,
  body.route-portal .portal-hero-card h2 {
    font-size: 26px;
    line-height: 1.14;
  }

  body.route-role .role-leader-copy p,
  body.route-group .group-leader-copy p,
  body.route-live .live-hero-copy p,
  body.route-portal .portal-hero-card p {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions,
  body.route-live .live-hero-actions {
    gap: 6px;
    margin-top: 2px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a,
  body.route-live .live-hero-actions a {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 10px;
    font-size: 11px;
  }

  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile,
  body.route-live .live-hero-profile {
    min-width: 136px;
    min-height: 118px;
    border-radius: 15px;
  }

  body.route-role .role-leader-profile .avatar-wrap,
  body.route-role .role-leader-profile .avatar,
  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar,
  body.route-live .live-hero-profile .avatar-wrap,
  body.route-live .live-hero-profile .avatar {
    width: 64px;
    height: 64px;
  }

  body.route-role .role-leader-profile .tier-emblem,
  body.route-group .group-leader-profile .tier-emblem {
    right: 12px;
    bottom: 10px;
    width: 36px;
    height: 25px;
  }

  body.route-role .role-metric-grid,
  body.route-group .group-metric-grid,
  body.route-live .live-metric-grid,
  body.route-portal .portal-metric-grid {
    gap: 8px;
  }

  body.route-role .role-metric-grid span,
  body.route-group .group-metric-grid span,
  body.route-live .live-metric-grid span,
  body.route-portal .portal-metric-grid span {
    padding: 9px;
    border-radius: 11px;
  }

  body.route-portal .portal-list {
    gap: 7px;
  }

  body.route-portal .portal-profile-row,
  body.route-portal .portal-link-tile,
  body.route-portal .portal-champion-row,
  body.route-live .live-list-row {
    min-height: 0;
    padding: 9px;
    border-radius: 11px;
  }
}

@media (max-width: 900px) {
  body.route-live .live-dashboard {
    gap: 8px;
    margin: 6px 0 10px;
  }

  body.route-live .live-hero-card,
  body.route-live .live-metric-card,
  body.route-live .live-list-card {
    padding: 12px;
    border-radius: 14px;
  }

  body.route-live .live-hero-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  body.route-live .live-hero-copy {
    gap: 6px;
  }

  body.route-live .live-hero-copy h2 {
    font-size: 22px;
    line-height: 1.14;
  }

  body.route-live .live-hero-copy p {
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
  }

  body.route-live .live-hero-actions {
    gap: 6px;
    margin-top: 2px;
  }

  body.route-live .live-hero-actions a {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 11px;
  }

  body.route-live .live-hero-profile {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 2px 9px;
    padding: 8px 10px;
  }

  body.route-live .live-hero-profile .avatar-wrap,
  body.route-live .live-hero-profile .avatar {
    grid-row: 1 / 3;
    width: 46px;
    height: 46px;
  }

  body.route-live .live-hero-profile .champions {
    display: none;
  }

  .live-empty-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .live-empty-status-grid span {
    align-content: center;
    min-height: 42px;
    padding: 7px 6px;
    text-align: center;
  }

  .live-empty-status-grid strong {
    justify-self: center;
    max-width: 100%;
    font-size: 11px;
  }

  .live-empty-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-live .live-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  body.route-live .live-metric-grid span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 10px;
  }

  body.route-live .live-metric-grid strong {
    max-width: 58%;
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
  }

  body.route-live .live-metric-grid em {
    font-size: 9px;
  }

  body.route-live .live-metric-card p {
    display: none;
  }

  body.route-live .live-list-card {
    gap: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.route-live .live-list-header {
    align-items: center;
  }

  body.route-live .live-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body.route-live .live-list::-webkit-scrollbar {
    display: none;
  }

  body.route-live .live-list-row {
    flex: 0 0 236px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    min-height: 58px;
    padding: 7px 8px;
    border-radius: 12px;
    scroll-snap-align: start;
  }

  body.route-live .live-list-row .avatar-wrap,
  body.route-live .live-list-row .avatar {
    width: 32px;
    height: 32px;
  }

  body.route-live .live-list-main strong {
    font-size: 12px;
  }

  body.route-live .live-list-main > span,
  body.route-live .live-list-meta {
    font-size: 10px;
  }

  body.route-live .live-list-meta {
    grid-column: 2;
    display: flex;
    justify-content: flex-start;
    gap: 6px;
  }

  body.route-live .quick-jump:not([hidden]),
  body.route-role .quick-jump:not([hidden]),
  body.route-group .quick-jump:not([hidden]),
  body.route-profile .quick-jump:not([hidden]) {
    display: none;
  }

  body.route-profile .profile-spotlight {
    margin: 6px 0 10px;
  }

  body.route-profile .table-card-top {
    padding: 11px 14px 7px;
  }
}

@media (max-width: 480px) and (max-height: 760px) {
  body.route-role .hero,
  body.route-role .hero-inner,
  body.route-group .hero,
  body.route-group .hero-inner,
  body.route-live .hero,
  body.route-live .hero-inner,
  body.route-portal .hero,
  body.route-portal .hero-inner,
  body.route-profile .hero,
  body.route-profile .hero-inner {
    min-height: 136px;
  }

  body.route-role .hero-inner,
  body.route-group .hero-inner,
  body.route-live .hero-inner,
  body.route-portal .hero-inner,
  body.route-profile .hero-inner {
    padding: 11px 16px 16px;
  }

  body.route-role .hero-emblem svg,
  body.route-group .hero-emblem svg,
  body.route-live .hero-emblem svg,
  body.route-portal .hero-emblem svg,
  body.route-profile .hero-emblem svg {
    width: 30px;
    height: 30px;
  }

  body.route-role .hero h1,
  body.route-group .hero h1,
  body.route-live .hero h1,
  body.route-portal .hero h1,
  body.route-profile .hero h1 {
    font-size: 27px;
  }

  body.route-role .hero p,
  body.route-group .hero p,
  body.route-live .hero p,
  body.route-portal .hero p,
  body.route-profile .hero p {
    max-width: 320px;
    font-size: 12px;
    line-height: 1.24;
  }

  body.route-role .role-dashboard,
  body.route-group .group-dashboard,
  body.route-live .live-dashboard,
  body.route-portal .portal-dashboard,
  body.route-profile .profile-spotlight {
    margin: 6px 0 8px;
  }

  body.route-role .role-leader-card,
  body.route-group .group-leader-card,
  body.route-live .live-hero-card,
  body.route-live .live-metric-card,
  body.route-live .live-list-card,
  body.route-portal .portal-hero-card,
  body.route-profile .profile-spotlight-card {
    min-height: 0;
    padding: 10px;
    border-radius: 13px;
  }

  body.route-role .role-leader-card,
  body.route-group .group-leader-card,
  body.route-live .live-hero-card,
  body.route-portal .portal-hero-card {
    gap: 7px;
  }

  body.route-role .role-leader-copy,
  body.route-group .group-leader-copy,
  body.route-live .live-hero-copy,
  body.route-portal .portal-hero-card {
    gap: 5px;
  }

  body.route-role .role-leader-copy h2,
  body.route-group .group-leader-copy h2,
  body.route-live .live-hero-copy h2,
  body.route-portal .portal-hero-card h2 {
    font-size: 18px;
    line-height: 1.12;
  }

  body.route-role .role-leader-copy p,
  body.route-group .group-leader-copy p,
  body.route-live .live-hero-copy p,
  body.route-portal .portal-hero-card p {
    display: none;
  }

  body.route-role .leader-meta-row,
  body.route-group .leader-meta-row {
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent 100%);
  }

  body.route-role .leader-meta-row::-webkit-scrollbar,
  body.route-group .leader-meta-row::-webkit-scrollbar {
    display: none;
  }

  body.route-role .leader-meta-chip,
  body.route-group .leader-meta-chip {
    flex: 0 0 auto;
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  body.route-role .role-leader-copy p,
  body.route-group .group-leader-copy p {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.2;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions,
  body.route-live .live-hero-actions {
    display: none;
  }

  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile,
  body.route-live .live-hero-profile {
    min-width: 78px;
    min-height: 70px;
    border-radius: 12px;
  }

  body.route-role .role-leader-profile .avatar-wrap,
  body.route-role .role-leader-profile .avatar,
  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar,
  body.route-live .live-hero-profile .avatar-wrap,
  body.route-live .live-hero-profile .avatar {
    width: 42px;
    height: 42px;
  }

  body.route-role .role-leader-profile .tier-emblem,
  body.route-group .group-leader-profile .tier-emblem {
    right: 7px;
    bottom: 7px;
    width: 28px;
    height: 20px;
  }

  body.route-portal .portal-metric-grid {
    gap: 5px;
  }

  body.route-portal .portal-metric-grid span {
    gap: 2px;
    padding: 6px;
    border-radius: 9px;
  }

  body.route-portal .portal-metric-grid strong {
    font-size: 15px;
  }

  body.route-portal .portal-metric-grid em,
  body.route-portal .portal-metric-grid b {
    font-size: 9px;
  }

  body.route-profile .profile-spotlight-card {
    gap: 6px;
  }

  body.route-profile .profile-identity {
    gap: 7px;
  }

  body.route-profile .profile-identity .avatar-wrap,
  body.route-profile .profile-identity .avatar {
    width: 36px;
    height: 36px;
  }

  body.route-profile .profile-identity h2 {
    font-size: 16px;
  }

  body.route-profile .profile-identity p {
    display: none;
  }

  body.route-profile .profile-stat-grid {
    display: flex;
    grid-column: 1 / -1;
    grid-row: auto;
    gap: 5px;
    overflow: visible;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  body.route-profile .profile-stat-grid::-webkit-scrollbar {
    display: none;
  }

  body.route-profile .profile-stat-grid span {
    flex: 1 1 0;
    gap: 1px;
    min-height: 36px;
    padding: 5px 6px;
    border-radius: 8px;
  }

  body.route-profile .profile-stat-grid span:last-child {
    display: none;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 11px;
    line-height: 1.15;
  }

  body.route-profile .profile-stat-grid em {
    font-size: 9px;
    line-height: 1.15;
  }

  body.route-profile .profile-tier-panel,
  body.route-profile .profile-champions {
    min-height: 46px;
    padding: 7px;
    border-radius: 10px;
  }

  body.route-profile .profile-tier-panel strong {
    font-size: 14px;
  }

  body.route-profile .profile-tier-panel span:not(.tier-emblem) {
    font-size: 10px;
  }

  body.route-profile .profile-champions .champion-icon-wrap,
  body.route-profile .profile-champions .champion-icon {
    width: 26px;
    height: 26px;
    border-radius: 9px;
  }

  body.route-role .table-card-top,
  body.route-group .table-card-top,
  body.route-live .table-card-top,
  body.route-portal .table-card-top,
  body.route-profile .table-card-top {
    padding: 10px 12px 7px;
  }

  body.route-role .table-card p,
  body.route-group .table-card p,
  body.route-live .table-card p,
  body.route-portal .table-card p,
  body.route-profile .table-card p {
    display: none;
  }
}

/* Final polish: keep compact routes touchable and make the first data row read clearly. */
.role-filter button,
.tabs button,
.filter-panel button,
.filter-panel input,
.quick-jump a,
.detail-link,
.mobile-detail-link {
  -webkit-tap-highlight-color: rgba(37, 97, 197, 0.14);
}

.role-filter button:focus-visible,
.tabs button:focus-visible,
.quick-jump a:focus-visible,
.detail-link:focus-visible,
.mobile-detail-link:focus-visible {
  outline: 3px solid rgba(245, 201, 107, 0.82);
  outline-offset: 3px;
}

.table-card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    var(--shadow-card);
}

@media (min-width: 901px) {
  body.route-ranking .table-card {
    border-color: #d9e4f2;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 16px 34px rgba(15, 27, 51, 0.1);
  }

  body.route-ranking .table-card-top {
    padding: 18px 22px 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.98)),
      #ffffff;
  }

  body.route-ranking .leaderboard-table th {
    height: 40px;
    background:
      linear-gradient(180deg, rgba(244, 248, 254, 0.98), rgba(235, 242, 252, 0.98)),
      #f4f8fe;
    color: #40506a;
  }

  body.route-ranking .leaderboard-table td {
    height: 64px;
    padding-block: 6px;
  }

  body.route-ranking .leaderboard-table tbody tr.rank-1 td {
    background-color: rgba(255, 250, 235, 0.58);
  }

  body.route-ranking .leaderboard-table tbody tr.rank-2 td {
    background-color: rgba(248, 251, 255, 0.78);
  }

  body.route-ranking .leaderboard-table tbody tr.rank-3 td {
    background-color: rgba(250, 252, 255, 0.72);
  }

  body.route-ranking .leaderboard-table tr.top-rank .channel-name,
  body.route-ranking .leaderboard-table tr.top-rank .tier-name,
  body.route-ranking .leaderboard-table tr.top-rank .account-name {
    color: #071a38;
  }
}

.mobile-rank-card:first-child {
  border-color: var(--border);
  box-shadow:
    0 0 0 1px rgba(15, 27, 51, 0.03),
    0 10px 26px rgba(15, 27, 51, 0.1);
}

body.route-role .role-leader-copy h2,
body.route-group .group-leader-copy h2,
body.route-live .live-hero-copy h2,
body.route-portal .portal-hero-card h2,
body.route-profile .profile-identity h2 {
  line-height: 1.16;
}

body.route-role .role-leader-copy p,
body.route-group .group-leader-copy p,
body.route-live .live-hero-copy p,
body.route-portal .portal-hero-card p,
body.route-profile .profile-identity p {
  line-height: 1.38;
}

body.route-live.route-live-empty .table-card {
  display: none;
}

body.route-live.route-live-empty .quick-jump:not([hidden]) {
  display: none;
}

@media (max-width: 1279px) {
  .mobile-filter-summary p {
    display: none;
  }
}

@media (max-width: 768px) {
  .role-filter button,
  .tabs button,
  .quick-jump a,
  .mobile-detail-link {
    min-height: 40px;
  }

  .detail-link {
    width: 40px;
    height: 40px;
  }

  .mobile-rank-card:first-child {
    transform: translateY(-1px);
  }

  .mobile-filter-summary p {
    display: none;
  }
}

@media (max-width: 480px) and (max-height: 760px) {
  .role-filter {
    margin-bottom: 4px;
    padding: 1px 4px;
    border-radius: 12px;
  }

  .role-filter button {
    min-width: 44px;
    min-height: 40px;
    padding: 0 7px;
  }
}

@media (max-width: 480px) {
  .brand {
    min-height: 44px;
  }
}

@media (min-width: 1280px) and (max-height: 950px) {
  body.route-profile .quick-jump:not([hidden]) {
    display: none;
  }

  body.route-portal .hero,
  body.route-portal .hero-inner {
    min-height: 238px;
  }

  body.route-portal .hero-inner {
    padding: 28px 20px 34px;
  }

  body.route-profile .profile-spotlight {
    margin: 6px 0 10px;
  }

  body.route-profile .profile-spotlight-card {
    padding: 13px 16px;
  }

  body.route-profile .table-card-top {
    padding: 13px 18px 9px;
  }

  body.route-portal .portal-dashboard {
    grid-template-columns: minmax(0, 1fr);
    margin: 6px 0 8px;
  }

  body.route-portal .portal-list-card {
    display: none;
  }

  body.route-portal .portal-hero-card,
  body.route-group .group-metric-card,
  body.route-role .role-metric-card {
    gap: 8px;
    padding: 13px 16px;
  }

  body.route-portal .portal-hero-card p,
  body.route-group .group-metric-card p,
  body.route-role .role-metric-card p {
    -webkit-line-clamp: 1;
  }

  body.route-portal .portal-hero-card h2 {
    font-size: 26px;
    line-height: 1.14;
  }

  body.route-portal .portal-metric-grid {
    gap: 6px;
    margin-top: 0;
  }

  body.route-portal .portal-metric-grid span {
    min-height: 50px;
    padding: 7px 8px;
  }

  body.route-portal .portal-metric-grid strong {
    font-size: 18px;
  }

  body.route-portal .portal-metric-grid b {
    display: none;
  }

  body.route-portal .portal-hero-cta {
    min-height: 32px;
    padding: 0 12px;
  }

  body.route-group .group-champion-strip,
  body.route-group .group-role-grid,
  body.route-role .role-champion-strip {
    display: none;
  }

  body.route-group .group-metric-card,
  body.route-role .role-metric-card {
    gap: 9px;
  }
}

@media (max-width: 480px) and (max-height: 760px) {
  body.route-ranking .table-card-top {
    gap: 8px;
    padding: 10px 12px 7px;
  }

  body.route-ranking .table-card h2 {
    font-size: 18px;
    line-height: 1.16;
  }

  body.route-ranking .table-card p {
    display: none;
  }

  body.route-ranking .table-actions {
    gap: 6px;
  }
}

@media (max-width: 340px) and (max-height: 620px) {
  body.route-ranking .hero,
  body.route-ranking .hero-inner {
    min-height: 120px;
  }

  body.route-ranking .hero-inner {
    padding: 8px 16px 10px;
  }

  body.route-ranking .hero-emblem svg {
    width: 28px;
    height: 28px;
  }

  body.route-ranking .hero h1 {
    margin: 3px 0 0;
    font-size: 25px;
  }

  body.route-ranking .hero p {
    display: none;
  }

  body.route-ranking .mobile-filter-summary {
    margin: -7px 0 6px;
  }

  .filter-panel.filter-collapsed {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 10px;
  }

  .filter-panel.filter-collapsed .search-field,
  .filter-panel.filter-collapsed .primary-button {
    grid-column: auto;
  }

  .filter-panel.filter-collapsed .primary-button {
    width: 44px;
    min-height: 40px;
    padding: 0;
    font-size: 0;
  }

  .filter-panel.filter-collapsed .primary-button svg {
    width: 18px;
    height: 18px;
  }

  body.route-ranking .summary-strip {
    display: none;
  }

  body.route-ranking .table-card {
    margin-top: 2px;
  }

  body.route-ranking .table-card-top {
    padding: 6px 10px 4px;
  }

  body.route-ranking .mobile-list {
    padding-top: 4px;
  }

  body.route-ranking .tabs {
    min-height: 34px;
    padding: 2px;
  }

  body.route-ranking .tabs button {
    min-height: 30px;
  }

  body.route-ranking .sort-select select,
  body.route-ranking .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
  }
}

@media (min-width: 901px) and (max-width: 1279px) {
  .table-card-top {
    padding: 8px 14px 6px;
  }

  .tabs {
    min-height: 34px;
  }

  .tabs button {
    min-height: 28px;
  }

  .sort-select select,
  .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
  }

  body.route-portal .portal-dashboard {
    margin: 6px 0 8px;
  }

  body.route-portal .portal-hero-card {
    gap: 8px;
    padding: 14px 16px;
  }

  body.route-portal .portal-hero-card p {
    display: none;
  }

  body.route-portal .portal-hero-card h2 {
    font-size: 22px;
    line-height: 1.16;
  }

  body.route-portal .portal-metric-grid {
    gap: 6px;
  }

  body.route-portal .portal-metric-grid span {
    min-height: 50px;
    padding: 7px 8px;
  }

  body.route-portal .portal-metric-grid strong {
    font-size: 18px;
  }

  body.route-portal .portal-metric-grid b {
    display: none;
  }

  body.route-portal .portal-hero-cta {
    min-height: 32px;
    padding: 0 12px;
  }
}

@media (min-width: 901px) and (max-width: 1279px) and (max-height: 820px) {
  body.route-ranking .summary-strip,
  body.route-role .role-dashboard,
  body.route-group .group-dashboard,
  body.route-portal .portal-dashboard {
    display: none;
  }

  body.route-ranking .table-card p,
  body.route-role .table-card p,
  body.route-group .table-card p,
  body.route-portal .table-card p {
    display: none;
  }
}

@media (max-width: 480px) {
  .live-empty-card p {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 760px) {
  body.route-portal .portal-dashboard {
    gap: 8px;
  }

  body.route-portal .portal-list-card {
    display: grid;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    border-color: rgba(37, 97, 197, 0.14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96)),
      #ffffff;
  }

  body.route-portal .portal-list-header {
    gap: 8px;
  }

  body.route-portal .portal-list-header a {
    min-height: 28px;
    padding: 0 9px;
    font-size: 11px;
  }

  body.route-portal .portal-list {
    gap: 6px;
  }

  body.route-portal .portal-profile-row,
  body.route-portal .portal-link-tile,
  body.route-portal .portal-champion-row {
    gap: 8px;
    min-height: 44px;
    padding: 7px 8px;
    border-radius: 11px;
  }

  body.route-portal .portal-profile-row .avatar-wrap,
  body.route-portal .portal-profile-row .avatar,
  body.route-portal .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-champion-row .champion-icon {
    width: 32px;
    height: 32px;
  }

  body.route-portal .portal-profile-row strong,
  body.route-portal .portal-champion-row strong,
  body.route-portal .portal-link-tile strong {
    font-size: 12px;
  }

  body.route-portal .portal-profile-row em,
  body.route-portal .portal-champion-row em,
  body.route-portal .portal-link-tile em {
    font-size: 10px;
  }

  body.route-portal .portal-profile-row b {
    font-size: 11px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile {
    min-height: 58px;
  }
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card {
    gap: 7px;
    min-height: 0;
    padding: 12px 14px;
    overflow: hidden;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::before,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::after {
    display: block;
    opacity: 0.22;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::before {
    right: 6px;
    top: auto;
    bottom: 8px;
    width: 74px;
    height: 58px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::after {
    right: 16px;
    bottom: 18px;
    width: 96px;
    height: 48px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span {
    min-height: 44px;
    padding: 7px 8px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span:last-child {
    display: none;
  }
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard {
    gap: 5px;
    margin: 3px 0 7px;
  }

  body.route-portal .portal-hero-card {
    gap: 6px;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 12px;
  }

  body.route-portal .portal-hero-card h2 {
    font-size: 19px;
    line-height: 1.12;
  }

  body.route-portal .portal-kicker {
    font-size: 10px;
    letter-spacing: 0;
  }

  body.route-portal .portal-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-portal .portal-metric-grid span {
    min-height: 40px;
    padding: 6px 7px;
    border-radius: 10px;
  }

  body.route-portal .portal-metric-grid span:last-child {
    display: none;
  }

  body.route-portal .portal-metric-grid strong {
    font-size: 15px;
  }

  body.route-portal .portal-metric-grid em,
  body.route-portal .portal-metric-grid b {
    font-size: 9px;
  }

  body.route-portal .portal-hero-cta {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  body.route-portal .portal-list-card {
    gap: 4px;
    padding: 7px;
    border-radius: 12px;
  }

  body.route-portal .portal-list-header strong {
    font-size: 0;
  }

  body.route-portal .portal-list-header strong::before {
    color: var(--gold);
    content: "TOP";
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.03em;
  }

  body.route-portal .portal-list-header a {
    min-height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  body.route-portal .portal-list {
    gap: 4px;
  }

  body.route-portal .portal-profile-row,
  body.route-portal .portal-link-tile,
  body.route-portal .portal-champion-row {
    gap: 6px;
    min-height: 34px;
    padding: 5px 6px;
    border-radius: 10px;
  }

  body.route-portal .portal-profile-row:nth-child(n + 3),
  body.route-portal .portal-champion-row:nth-child(n + 3) {
    display: none;
  }

  body.route-portal .portal-profile-row .avatar-wrap,
  body.route-portal .portal-profile-row .avatar,
  body.route-portal .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-champion-row .champion-icon {
    width: 25px;
    height: 25px;
  }

  body.route-portal .portal-profile-row strong,
  body.route-portal .portal-champion-row strong,
  body.route-portal .portal-link-tile strong {
    font-size: 11px;
  }

  body.route-portal .portal-profile-row em,
  body.route-portal .portal-champion-row em,
  body.route-portal .portal-link-tile em,
  body.route-portal .portal-profile-row b {
    font-size: 9px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile {
    min-height: 42px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 3) {
    display: none;
  }
}

body.route-profile .profile-insights,
body.route-profile .profile-comparison {
  display: grid;
}

/* Portal mobile clarity pass: remove decorative fragments and keep all three metrics readable. */
@media (max-width: 480px) {
  body.route-portal .portal-hero-card::before,
  body.route-portal .portal-hero-card::after,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::before,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::after {
    display: none;
  }

  body.route-portal .portal-hero-card {
    gap: 8px;
    padding: 12px;
  }

  body.route-portal .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    position: relative;
    z-index: 2;
  }

  body.route-portal .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span {
    display: grid;
    align-content: start;
    min-height: 60px;
    padding: 7px 6px;
    border-left-width: 1px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
      rgba(8, 28, 64, 0.56);
  }

  body.route-portal .portal-metric-grid span:last-child,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span:last-child {
    display: grid;
  }

  body.route-portal .portal-metric-grid strong {
    font-size: 14px;
    line-height: 1.08;
  }

  body.route-portal .portal-metric-grid em,
  body.route-portal .portal-metric-grid b {
    overflow-wrap: anywhere;
    font-size: 9px;
    line-height: 1.15;
  }
}

body.route-profile .profile-pathways {
  display: block;
}

@media (min-width: 901px) {
  body.route-profile .profile-insights {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) minmax(0, 0.8fr);
    align-items: start;
    margin: 0 0 14px;
  }

  body.route-profile .profile-comparison {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    margin: 0 0 14px;
  }

  body.route-profile .profile-pathways {
    margin: 0 0 14px;
  }

  body.route-profile .profile-insight-card,
  body.route-profile .profile-compare-card,
  body.route-profile .profile-path-card {
    min-height: 0;
  }

  body.route-profile .profile-path-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  body.route-profile .profile-insight-card,
  body.route-profile .profile-compare-card {
    gap: 11px;
    padding: 15px 16px;
  }

  body.route-profile .profile-champion-list,
  body.route-profile .profile-focus-champions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.route-profile .profile-champion-list li,
  body.route-profile .profile-focus-champion {
    min-height: 58px;
    padding: 8px 9px;
  }

  body.route-profile .profile-champion-list li > div {
    min-width: 0;
  }

  body.route-profile .profile-champion-list strong,
  body.route-profile .profile-champion-list span,
  body.route-profile .profile-focus-champion strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-focus-champion {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px;
    min-height: 52px;
    padding: 7px;
  }

  body.route-profile .profile-focus-champion .champion-icon-wrap,
  body.route-profile .profile-focus-champion .champion-icon {
    width: 24px;
    height: 24px;
  }

  body.route-profile .profile-focus-champion strong {
    font-size: 12px;
  }

  body.route-profile .profile-focus-champion em {
    display: none;
  }
}

@media (max-width: 900px) {
  body.route-profile .profile-insights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 0 8px;
  }

  body.route-profile .profile-insight-card {
    display: grid;
    gap: 7px;
    min-height: 0;
    padding: 8px;
  }

  body.route-profile .profile-insight-card:first-child,
  body.route-profile .profile-insight-card:last-child {
    display: none;
  }

  body.route-profile .profile-champion-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-profile .profile-champion-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 3px;
    min-height: 56px;
    padding: 6px 5px;
    text-align: center;
  }

  body.route-profile .profile-champion-list .champion-icon-wrap,
  body.route-profile .profile-champion-list .champion-icon {
    width: 28px;
    height: 28px;
  }

  body.route-profile .profile-champion-list li > div {
    display: grid;
    gap: 1px;
    min-width: 0;
    max-width: 100%;
  }

  body.route-profile .profile-champion-list strong {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-profile .profile-champion-list li span:not(.champion-icon-wrap) {
    display: none;
  }

  body.route-profile .profile-comparison,
  body.route-profile .profile-pathways {
    display: none;
  }
}

@media (max-width: 760px) {
  body.route-role .role-metric-card {
    display: grid;
    gap: 8px;
    min-height: 0;
    margin-top: -2px;
    padding: 10px;
    border-radius: 14px;
  }

  body.route-role .role-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.route-role .role-metric-grid span {
    min-height: 50px;
    padding: 8px;
    border-radius: 10px;
  }

  body.route-role .role-metric-grid strong {
    font-size: 14px;
  }

  body.route-role .role-metric-card p {
    display: none;
  }
}

/* Profile phone pass: remove duplicate champion weight before the rank snapshot. */
@media (min-width: 341px) and (max-width: 480px) {
  body.route-profile .profile-spotlight {
    margin: 5px 0 8px;
  }

  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 9px;
  }

  body.route-profile .profile-tier-panel {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 48px;
    padding: 7px 8px;
  }

  body.route-profile .profile-champions {
    display: none;
  }

  body.route-profile .profile-stat-grid {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    min-height: 34px;
    padding: 5px;
    border-radius: 9px;
  }

  body.route-profile .profile-stat-grid em {
    font-size: 8px;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 10px;
    line-height: 1.1;
  }

  body.route-profile .profile-insights {
    grid-template-columns: 1fr;
    margin: 0 0 8px;
  }

  body.route-profile .profile-insight-card {
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 12px;
  }

  body.route-profile .profile-insight-card:nth-child(2) {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-insight-header {
    display: grid;
    gap: 1px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-insight-header strong {
    text-align: left;
    font-size: 13px;
  }

  body.route-profile .profile-champion-list {
    display: flex;
    justify-content: flex-end;
    gap: 0;
  }

  body.route-profile .profile-champion-list li {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.route-profile .profile-champion-list li + li {
    margin-left: -6px;
  }

  body.route-profile .profile-champion-list li div {
    display: none;
  }

  body.route-profile .profile-champion-list .champion-icon-wrap,
  body.route-profile .profile-champion-list .champion-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }
}

body.route-group .group-roster-card,
body.route-group .group-related-card {
  display: grid;
}

body.route-group .group-dashboard {
  align-items: start;
}

@media (min-width: 901px) {
  body.route-group .group-dashboard {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr) minmax(320px, 0.82fr);
  }

  body.route-group .group-roster-card .group-role-grid {
    display: none;
  }

  body.route-group .group-related-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.58fr);
    align-items: start;
    gap: 14px 18px;
    padding: 18px;
  }

  body.route-group .group-related-header {
    grid-column: 1 / -1;
  }

  body.route-group .group-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.route-group .group-related-link {
    min-height: 76px;
    padding: 10px;
  }

  body.route-group .group-related-profiles {
    align-content: start;
    gap: 8px;
    padding-top: 0;
  }

  body.route-group .group-related-profiles > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.route-group .group-related-profile {
    min-height: 54px;
    padding: 8px 9px;
  }
}

@media (max-width: 900px) {
  body.route-group .group-roster-card {
    display: none;
  }

  body.route-group .group-related-card {
    display: grid;
    gap: 8px;
    margin-top: -2px;
    padding: 10px;
    border-radius: 14px;
  }

  body.route-group .group-related-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  body.route-group .group-related-header strong {
    font-size: 16px;
  }

  body.route-group .group-related-grid {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body.route-group .group-related-grid::-webkit-scrollbar {
    display: none;
  }

  body.route-group .group-related-link {
    flex: 0 0 118px;
    min-height: 58px;
    padding: 8px;
    scroll-snap-align: start;
  }

  body.route-group .group-related-link strong {
    font-size: 14px;
  }

  body.route-group .group-related-link em {
    white-space: normal;
    line-height: 1.25;
  }

  body.route-group .group-related-profiles {
    display: none;
  }

  body.route-group .group-related-profiles > div {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
  }

  body.route-group .group-related-profile {
    flex: initial;
    width: 100%;
  }

  body.route-group .group-related-profile:nth-child(n + 3) {
    display: none;
  }
}

/* Final guide desktop rhythm pass: make guides feel like a quick portal tool, not a landing section. */
@media (min-width: 1280px) {
  body.route-portal .portal-dashboard[data-portal="guides"] {
    grid-template-columns: minmax(0, 0.98fr) minmax(410px, 0.9fr);
    gap: 13px;
    margin: 8px 0 14px;
    align-items: start;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card {
    min-height: 226px;
    gap: 10px;
    padding: 16px 18px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card p {
    line-height: 1.36;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid {
    gap: 8px;
    margin-top: 2px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
    min-height: 68px;
    padding: 10px 11px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid strong {
    font-size: 21px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-cta {
    min-height: 32px;
    padding-inline: 11px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    min-height: 226px;
    gap: 10px;
    padding: 13px 14px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-header a {
    min-height: 38px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    min-height: 62px;
    gap: 2px;
    padding: 8px 36px 8px 44px;
    border-radius: 12px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile span {
    min-height: 18px;
    padding-inline: 7px;
    font-size: 9.5px;
    line-height: 16px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 14px;
    line-height: 1.05;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile em {
    font-size: 10px;
  }
}

/* Final champion desktop TOP-grid pass: keep all four champion signals while shortening the table handoff. */
@media (min-width: 1280px) {
  body.route-portal .portal-dashboard[data-portal="champions"] {
    grid-template-columns: minmax(0, 0.98fr) minmax(430px, 0.9fr);
    gap: 13px;
    margin: 8px 0 14px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card {
    min-height: 226px;
    gap: 10px;
    padding: 16px 18px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card p {
    line-height: 1.36;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid {
    gap: 8px;
    margin-top: 2px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span {
    min-height: 68px;
    padding: 10px 11px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    min-height: 226px;
    gap: 10px;
    padding: 13px 14px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3),
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(n + 4) {
    position: relative;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank rank count"
      "icon info count";
    align-items: center;
    min-height: 76px;
    gap: 4px 7px;
    padding: 7px 8px;
    border-radius: 12px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-rank {
    position: static;
    grid-area: rank;
    justify-self: start;
    min-width: 42px;
    height: 18px;
    padding-inline: 6px;
    font-size: 8.5px;
    line-height: 16px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    grid-area: icon;
    width: 30px;
    height: 30px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row > span:not(.champion-icon-wrap) {
    grid-area: info;
    gap: 3px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    font-size: 14px;
    line-height: 1.05;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row em {
    min-height: 18px;
    padding-inline: 7px;
    font-size: 9.5px;
    line-height: 16px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row i {
    display: none;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
    grid-area: count;
    align-self: center;
    min-width: 36px;
    min-height: 22px;
    padding-inline: 7px;
    font-size: 10px;
  }
}

/* Final profile desktop analysis-density pass: keep detail cards useful while moving the snapshot closer. */
@media (min-width: 1280px) {
  body.route-profile .profile-insights {
    gap: 12px;
    margin: 0 0 12px;
  }

  body.route-profile .profile-insight-card {
    min-height: 142px;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  body.route-profile .profile-insight-header {
    gap: 8px;
  }

  body.route-profile .profile-insight-header strong {
    font-size: 16px;
    line-height: 1.08;
  }

  body.route-profile .profile-rank-grid {
    gap: 6px;
  }

  body.route-profile .profile-rank-grid span {
    gap: 3px;
    padding: 8px 9px;
    border-radius: 10px;
  }

  body.route-profile .profile-champion-list {
    gap: 6px;
  }

  body.route-profile .profile-champion-list li {
    min-height: 42px;
    gap: 8px;
    padding: 6px 7px;
    border-radius: 10px;
  }

  body.route-profile .profile-champion-list .champion-icon-wrap,
  body.route-profile .profile-champion-list .champion-icon {
    width: 28px;
    height: 28px;
  }

  body.route-profile .profile-live-copy {
    font-size: 12px;
    line-height: 1.36;
  }

  body.route-profile .profile-comparison {
    gap: 12px;
    margin: 0 0 12px;
  }

  body.route-profile .profile-compare-card {
    min-height: 126px;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  body.route-profile .profile-compare-card > strong {
    font-size: 22px;
    line-height: 1.1;
  }

  body.route-profile .profile-compare-card p {
    line-height: 1.36;
  }

  body.route-profile .profile-rank-balance {
    gap: 6px;
  }

  body.route-profile .profile-rank-balance span {
    padding: 7px 8px;
    border-radius: 10px;
  }

  body.route-profile .profile-focus-champion {
    min-height: 42px;
    gap: 7px;
    padding: 6px 7px;
    border-radius: 10px;
  }

  body.route-profile .profile-focus-champion .champion-icon-wrap,
  body.route-profile .profile-focus-champion .champion-icon {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 480px) {
  body.route-live .live-dashboard {
    gap: 5px;
    margin: 3px 0 7px;
  }

  body.route-live .live-hero-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 12px;
  }

  body.route-live .live-hero-copy {
    gap: 3px;
    min-width: 0;
  }

  body.route-live .live-hero-copy p,
  body.route-live .live-hero-actions {
    display: none;
  }

  body.route-live .live-panel-kicker {
    font-size: 10px;
    letter-spacing: 0;
  }

  body.route-live .live-hero-copy h2 {
    font-size: 17px;
    line-height: 1.08;
  }

  body.route-live .live-hero-profile {
    display: grid;
    place-items: center;
    min-width: 0;
    width: auto;
    min-height: 0;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.route-live .live-hero-profile .avatar-wrap,
  body.route-live .live-hero-profile .avatar {
    width: 34px;
    height: 34px;
  }

  body.route-live .live-hero-profile strong,
  body.route-live .live-hero-profile span {
    display: none;
  }

  body.route-live .live-metric-card,
  body.route-live .live-list-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 7px;
    border-radius: 12px;
  }

  body.route-live .live-metric-card {
    display: none;
  }

  body.route-live .live-metric-grid {
    gap: 4px;
  }

  body.route-live .live-metric-grid span {
    min-height: 30px;
    padding: 5px 7px;
    border-radius: 9px;
  }

  body.route-live .live-metric-grid strong {
    font-size: 11px;
  }

  body.route-live .live-list-header strong {
    display: grid;
    place-items: center;
    width: auto;
    min-width: 38px;
    height: 31px;
    padding: 0 9px;
    border: 1px solid rgba(199, 164, 115, 0.32);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
    font-size: 12px;
    white-space: nowrap;
  }

  body.route-live .live-list-header .live-panel-kicker {
    display: none;
  }

  body.route-live .live-list {
    min-width: 0;
    gap: 5px;
    padding-bottom: 0;
  }

  body.route-live .live-list-row {
    flex-basis: 150px;
    min-height: 40px;
    padding: 5px 6px;
    border-radius: 11px;
  }

  body.route-live .live-list-row .avatar-wrap,
  body.route-live .live-list-row .avatar {
    width: 24px;
    height: 24px;
  }

  body.route-live .live-list-main strong {
    gap: 3px;
    font-size: 10px;
  }

  body.route-live .live-list-main strong em {
    display: none;
  }

  body.route-live .live-list-main > span {
    display: none;
  }

  body.route-live .live-list-meta {
    font-size: 8px;
  }
}

@media (max-width: 760px) {
  .mobile-list {
    padding: 8px 10px 10px;
  }

  .mobile-rank-card {
    gap: 4px;
    padding: 9px;
    border-radius: 13px;
    box-shadow: 0 5px 14px rgba(15, 27, 51, 0.055);
  }

  .mobile-rank-card + .mobile-rank-card {
    margin-top: 7px;
  }

  .mobile-row {
    gap: 6px;
  }

  .mobile-channel {
    grid-template-columns: 34px 34px minmax(0, 1fr);
    gap: 6px;
  }

  .mobile-rank-stack {
    gap: 2px;
    flex-basis: 34px;
  }

  .mobile-rank-delta {
    min-height: 15px;
    padding: 0 5px;
    font-size: 9px;
    line-height: 15px;
  }

  .mobile-channel .avatar-wrap,
  .mobile-channel .avatar {
    width: 34px;
    height: 34px;
  }

  .mobile-channel .channel-name {
    font-size: 14px;
    line-height: 1.12;
    white-space: nowrap;
    -webkit-line-clamp: 1;
  }

  .mobile-channel-meta {
    flex-wrap: nowrap;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 10px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 14px), transparent 100%);
  }

  .mobile-channel-meta .mobile-sub-text,
  .mobile-channel-meta .chip,
  .mobile-channel-meta .quality-badge {
    flex: 0 0 auto;
    min-height: 16px;
    max-width: 96px;
    padding: 0 5px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-channel-meta .mobile-sub-text {
    max-width: none;
    padding-left: 0;
    font-size: 9px;
  }

  .mobile-tier-row {
    padding: 4px 6px;
    border-radius: 10px;
  }

  .mobile-tier-row .tier-emblem {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    font-size: 10px;
  }

  .mobile-tier-row .tier-name {
    font-size: 11px;
  }

  .mobile-tier-row .channel-sub {
    gap: 4px;
  }

  .mobile-meta-grid {
    gap: 2px 5px;
    padding: 4px 6px;
    border-radius: 10px;
  }

  .mobile-meta-grid em {
    font-size: 8px;
  }

  .mobile-meta-grid strong {
    font-size: 10px;
  }

  .mobile-meta-grid .mobile-winrate-stat strong,
  .mobile-meta-grid .mobile-record-stat strong {
    font-size: 11px;
  }

  .mobile-meta-grid .mobile-role-stat {
    min-height: 15px;
    padding: 0 5px;
  }

  .mobile-champion-row {
    min-height: 27px;
    opacity: 0.92;
  }

  .mobile-rank-card .champions {
    gap: 3px;
  }

  .mobile-rank-card .champion-icon-wrap,
  .mobile-rank-card .champion-icon {
    width: 27px;
    height: 27px;
  }

  .mobile-rank-card .champion-icon-wrap,
  .mobile-rank-card .champion-icon {
    border-radius: 9px;
  }

  .mobile-detail-link {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 0;
    box-shadow: inset 0 0 0 1px rgba(37, 97, 197, 0.08);
  }

  .mobile-detail-link::after {
    display: block;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
  }
}

/* Final toolbar pass: make ranking table controls read as one deliberate unit. */
@media (min-width: 901px) {
  body.route-ranking .table-card-top {
    align-items: center;
  }

  body.route-ranking .table-actions {
    gap: 5px;
    align-items: center;
    padding: 5px;
    border: 1px solid rgba(217, 228, 242, 0.95);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 253, 0.98)),
      #f8fbff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 10px 22px rgba(15, 27, 51, 0.07);
  }

  body.route-ranking .tabs {
    gap: 2px;
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.route-ranking .tabs button {
    min-height: 38px;
    border-radius: 11px;
  }

  body.route-ranking .sort-select {
    min-width: 112px;
    gap: 0;
  }

  body.route-ranking .sort-select span {
    display: none;
  }

  body.route-ranking .sort-select select,
  body.route-ranking .table-actions .soft-button {
    height: 38px;
    min-height: 38px;
    border-color: rgba(217, 228, 242, 0.86);
    border-radius: 11px;
    background-color: #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 4px 10px rgba(15, 27, 51, 0.06);
  }
}

@media (max-width: 760px) {
  body.route-ranking .table-actions {
    padding: 4px;
    border: 1px solid rgba(217, 228, 242, 0.9);
    border-radius: 14px;
    background: #f8fbff;
  }

  body.route-ranking .tabs {
    border-color: transparent;
    background: #edf4ff;
  }

  body.route-ranking .sort-select select,
  body.route-ranking .table-actions .soft-button {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 340px) and (max-height: 620px) {
  body.route-ranking .table-card-top {
    padding: 5px 9px 3px;
  }

  body.route-ranking .table-actions {
    gap: 4px;
    padding: 2px;
    border-radius: 12px;
  }

  body.route-ranking .tabs {
    min-height: 32px;
  }

  body.route-ranking .tabs button {
    min-height: 28px;
  }

  body.route-ranking .sort-select select,
  body.route-ranking .table-actions .soft-button {
    height: 32px;
    min-height: 32px;
  }
}

/* LIVE mobile count polish: avoid a contextless standalone number badge. */
@media (max-width: 480px) {
  body.route-live .live-list-header strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-width: 58px;
    height: 31px;
    padding: 0 8px;
    white-space: nowrap;
  }

  body.route-live .live-list-header strong::before {
    color: #9a7132;
    content: "LIVE";
    font-size: 8px;
    font-weight: 950;
    letter-spacing: 0;
  }
}

/* Profile mobile stat pass: keep all representative account signals visible. */
@media (max-width: 480px) {
  body.route-profile .profile-tier-panel .profile-lp-text {
    display: grid;
    gap: 1px;
  }

  body.route-profile .profile-tier-panel .profile-lp-text span {
    line-height: 1.1;
  }

  body.route-profile .profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    padding-bottom: 0;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    display: grid;
    min-height: 39px;
  }

  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 10px;
  }
}

/* Profile desktop pass: keep cross-links useful without competing with analysis cards. */
@media (min-width: 901px) {
  body.route-profile .profile-pathways {
    margin: -2px 0 12px;
  }

  body.route-profile .profile-path-card {
    grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px 14px;
    padding: 14px;
    border-color: #e4ebf6;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
    box-shadow: 0 8px 22px rgba(15, 27, 51, 0.07);
  }

  body.route-profile .profile-path-header {
    display: grid;
    align-content: start;
    justify-content: start;
    gap: 5px;
  }

  body.route-profile .profile-path-header strong {
    font-size: 16px;
    line-height: 1.28;
    text-align: left;
  }

  body.route-profile .profile-path-grid {
    gap: 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.route-profile .profile-path-link {
    gap: 2px;
    min-height: 64px;
    padding: 9px 10px;
    border-radius: 12px;
  }

  body.route-profile .profile-path-primary {
    border-color: rgba(245, 201, 107, 0.46);
    background:
      linear-gradient(135deg, rgba(245, 201, 107, 0.14), rgba(255, 255, 255, 0.98) 66%),
      #ffffff;
  }

  body.route-profile .profile-path-link span {
    font-size: 10px;
  }

  body.route-profile .profile-path-link strong {
    font-size: 14px;
  }

  body.route-profile .profile-path-link em {
    font-size: 10px;
  }

  body.route-profile .profile-path-similar {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(220, 228, 240, 0.86);
  }

  body.route-profile .profile-path-title {
    white-space: nowrap;
  }

  body.route-profile .profile-path-similar > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.route-profile .profile-path-profile {
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 11px;
  }

  body.route-profile .profile-path-profile:nth-child(n + 3) {
    display: none;
  }

  body.route-profile .profile-path-profile .avatar-wrap,
  body.route-profile .profile-path-profile .avatar {
    width: 30px;
    height: 30px;
  }

  body.route-profile .profile-path-profile strong {
    font-size: 12px;
  }

  body.route-profile .profile-path-profile em {
    font-size: 10px;
  }
}

/* Guides portal pass: make the guide page feel editorial, not just another stats grid. */
@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    border-color: rgba(199, 164, 115, 0.28);
    background:
      linear-gradient(90deg, rgba(255, 248, 230, 0.58), rgba(255, 255, 255, 0.98) 34%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-header {
    align-items: flex-start;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-header .portal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(199, 164, 115, 0.3);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    gap: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile {
    position: relative;
    min-height: 78px;
    overflow: hidden;
    padding: 12px 12px 12px 48px;
    border-color: rgba(217, 228, 242, 0.94);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile::before {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(199, 164, 115, 0.36);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
    content: "01";
    font-size: 10px;
    font-weight: 950;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(2)::before {
    content: "02";
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(3)::before {
    content: "03";
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(4)::before {
    content: "04";
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child {
    border-color: rgba(199, 164, 115, 0.46);
    background:
      linear-gradient(135deg, rgba(245, 201, 107, 0.16), rgba(255, 255, 255, 0.98) 66%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 15px;
  }
}

/* Role landing pass: give each lane a distinct landing-page signal. */
@media (min-width: 901px) {
  body.route-role .role-dashboard {
    --role-accent: #2561c5;
    --role-deep: #123b82;
    --role-soft: rgba(37, 97, 197, 0.13);
    --role-surface: #eef5ff;
    --role-label: "LANE";
  }

  body.route-role .role-dashboard[data-role="top"] {
    --role-accent: #c7a473;
    --role-deep: #7a4b12;
    --role-soft: rgba(199, 164, 115, 0.18);
    --role-surface: #fff8e6;
    --role-label: "TOP";
  }

  body.route-role .role-dashboard[data-role="jungle"] {
    --role-accent: #0f766e;
    --role-deep: #134e4a;
    --role-soft: rgba(15, 118, 110, 0.16);
    --role-surface: #ecfdf5;
    --role-label: "JGL";
  }

  body.route-role .role-dashboard[data-role="mid"] {
    --role-accent: #2561c5;
    --role-deep: #123b82;
    --role-soft: rgba(37, 97, 197, 0.15);
    --role-surface: #eaf1ff;
    --role-label: "MID";
  }

  body.route-role .role-dashboard[data-role="adc"] {
    --role-accent: #7c3aed;
    --role-deep: #4c1d95;
    --role-soft: rgba(124, 58, 237, 0.14);
    --role-surface: #f5f3ff;
    --role-label: "BOT";
  }

  body.route-role .role-dashboard[data-role="support"] {
    --role-accent: #0891b2;
    --role-deep: #155e75;
    --role-soft: rgba(8, 145, 178, 0.14);
    --role-surface: #ecfeff;
    --role-label: "SUP";
  }

  body.route-role .role-leader-card {
    position: relative;
    border-color: color-mix(in srgb, var(--role-accent) 24%, #ffffff);
    background:
      linear-gradient(122deg, rgba(255, 255, 255, 0.98) 0 55%, var(--role-surface) 55% 100%),
      #ffffff;
  }

  body.route-role .role-leader-card::before {
    content: none;
  }

  body.route-role .role-leader-card::after {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: color-mix(in srgb, var(--role-accent) 18%, transparent);
    content: var(--role-label);
    font-size: 66px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-role .role-panel-kicker,
  body.route-role .role-switch-link span,
  body.route-role .role-runner-row b {
    color: var(--role-deep);
  }

  body.route-role .role-leader-actions a:first-child {
    border-color: var(--role-accent);
    background: var(--role-accent);
    color: #ffffff;
  }

  body.route-role .role-metric-card,
  body.route-role .role-runners-card {
    border-color: color-mix(in srgb, var(--role-accent) 18%, #ffffff);
  }

  body.route-role .role-metric-grid span:first-child,
  body.route-role .role-runners-card .role-champion-chip:first-child {
    border-color: color-mix(in srgb, var(--role-accent) 34%, #ffffff);
    background:
      linear-gradient(135deg, var(--role-soft), rgba(255, 255, 255, 0.98) 62%),
    #ffffff;
  }
}

/* Role mobile pass: keep lane pages recognizable in compact SEO landings. */
@media (max-width: 900px) {
  body.route-role .role-dashboard {
    --role-accent: #2561c5;
    --role-deep: #123b82;
    --role-soft: rgba(37, 97, 197, 0.12);
    --role-surface: #eef5ff;
    --role-label: "LANE";
  }

  body.route-role .role-dashboard[data-role="top"] {
    --role-accent: #c7a473;
    --role-deep: #7a4b12;
    --role-soft: rgba(199, 164, 115, 0.18);
    --role-surface: #fff8e6;
    --role-label: "TOP";
  }

  body.route-role .role-dashboard[data-role="jungle"] {
    --role-accent: #0f766e;
    --role-deep: #134e4a;
    --role-soft: rgba(15, 118, 110, 0.16);
    --role-surface: #ecfdf5;
    --role-label: "JGL";
  }

  body.route-role .role-dashboard[data-role="mid"] {
    --role-accent: #2561c5;
    --role-deep: #123b82;
    --role-soft: rgba(37, 97, 197, 0.14);
    --role-surface: #eaf1ff;
    --role-label: "MID";
  }

  body.route-role .role-dashboard[data-role="adc"] {
    --role-accent: #7c3aed;
    --role-deep: #4c1d95;
    --role-soft: rgba(124, 58, 237, 0.13);
    --role-surface: #f5f3ff;
    --role-label: "BOT";
  }

  body.route-role .role-dashboard[data-role="support"] {
    --role-accent: #0891b2;
    --role-deep: #155e75;
    --role-soft: rgba(8, 145, 178, 0.13);
    --role-surface: #ecfeff;
    --role-label: "SUP";
  }

  body.route-role .role-leader-card {
    position: relative;
    border-color: color-mix(in srgb, var(--role-accent) 22%, #ffffff);
    background:
      linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0 64%, var(--role-surface) 64% 100%),
      #ffffff;
    box-shadow:
      inset 0 0 0 1px color-mix(in srgb, var(--role-accent) 8%, transparent),
      0 10px 24px rgba(15, 27, 51, 0.07);
  }

  body.route-role .role-leader-card::after {
    position: absolute;
    right: 12px;
    bottom: 3px;
    color: var(--role-accent);
    content: var(--role-label);
    font-size: 34px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    opacity: 0.16;
    pointer-events: none;
  }

  body.route-role .role-leader-card > * {
    position: relative;
    z-index: 1;
  }

  body.route-role .role-panel-kicker,
  body.route-role .role-runner-row b {
    color: var(--role-deep);
  }

  body.route-role .role-leader-actions a:first-child {
    border-color: var(--role-accent);
    background: var(--role-accent);
  }

  body.route-role .role-metric-grid span:first-child {
    border-color: rgba(37, 97, 197, 0.14);
    background:
      linear-gradient(135deg, var(--role-soft), rgba(255, 255, 255, 0.98) 68%),
      #ffffff;
  }
}

@media (max-width: 360px) {
  body.route-role .role-leader-card {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  body.route-role .leader-meta-row {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body.route-role .leader-meta-chip {
    min-height: 19px;
    padding: 0 6px;
    font-size: 9px;
  }

  body.route-role .role-leader-profile {
    width: 64px;
    min-width: 64px;
    min-height: 70px;
    padding: 6px;
  }

  body.route-role .role-leader-profile .avatar-wrap,
  body.route-role .role-leader-profile .avatar {
    width: 38px;
    height: 38px;
  }

  body.route-role .role-leader-profile .tier-emblem {
    right: 5px;
    bottom: 5px;
    width: 24px;
    height: 18px;
  }
}

/* Portal mobile pass: make trend and champion snapshots feel like compact portal modules. */
@media (max-width: 760px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    position: relative;
    overflow: hidden;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card::before,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--gold-button);
    content: "";
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px 7px;
    min-height: 56px;
    padding: 7px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3),
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(n + 3) {
    display: none;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row strong,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    font-size: 11px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row em,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row em {
    font-size: 9px;
  }
}

/* Guide mobile pass: give guide routes an editorial learning-path treatment. */
@media (max-width: 760px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(199, 164, 115, 0.28);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.78), rgba(255, 255, 255, 0.98) 42%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--gold-button);
    content: "";
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    gap: 6px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile {
    position: relative;
    min-height: 48px;
    overflow: hidden;
    padding: 8px 7px 7px 30px;
    border-color: rgba(199, 164, 115, 0.26);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96) 72%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile::before {
    position: absolute;
    top: 8px;
    left: 7px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(199, 164, 115, 0.38);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
    content: "1";
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(2)::before {
    content: "2";
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 12px;
  }
}

/* Live desktop pass: make the live landing read as an active broadcast board. */
@media (min-width: 901px) {
  body.route-live .live-hero-card {
    position: relative;
    border-color: rgba(245, 201, 107, 0.34);
    background:
      radial-gradient(circle at 76% 14%, rgba(245, 201, 107, 0.26), transparent 27%),
      linear-gradient(90deg, rgba(245, 201, 107, 0.18), transparent 32%),
      linear-gradient(135deg, #061229, #0f3a80 58%, #123b82);
  }

  body.route-live .live-hero-card::before {
    content: none;
  }

  body.route-live .live-hero-card::after {
    position: absolute;
    right: 24px;
    top: 22px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.12), 0 0 22px rgba(34, 197, 94, 0.46);
    content: "";
  }

  body.route-live .live-panel-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(245, 201, 107, 0.3);
    border-radius: 999px;
    background: rgba(245, 201, 107, 0.11);
  }

  body.route-live .live-hero-profile {
    border-color: rgba(245, 201, 107, 0.24);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06)),
      rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  body.route-live .live-list-card {
    border-color: rgba(245, 201, 107, 0.28);
    background:
      linear-gradient(180deg, rgba(255, 248, 230, 0.44), rgba(255, 255, 255, 0.98) 34%),
      #ffffff;
  }
}

/* Profile desktop pass: make the streamer detail page feel more like a dedicated profile. */
@media (min-width: 901px) {
  body.route-profile .profile-spotlight-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(245, 201, 107, 0.42);
    background:
      radial-gradient(circle at 72% 10%, rgba(245, 201, 107, 0.22), transparent 26%),
      linear-gradient(120deg, rgba(245, 201, 107, 0.2), transparent 33%),
      linear-gradient(102deg, #061229 0%, #0d2857 45%, #f8fbff 45.2%, #ffffff 100%);
  }

  body.route-profile .profile-spotlight-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--gold-button), rgba(245, 201, 107, 0.16));
    content: "";
  }

  body.route-profile .profile-spotlight-card::after {
    position: absolute;
    right: 28px;
    bottom: 12px;
    color: rgba(18, 59, 130, 0.08);
    content: "PROFILE";
    font-size: 46px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-profile .profile-spotlight-card > * {
    position: relative;
    z-index: 1;
  }

  body.route-profile .profile-identity .avatar-wrap {
    border-radius: 999px;
    box-shadow:
      0 0 0 3px rgba(245, 201, 107, 0.28),
      0 14px 28px rgba(0, 0, 0, 0.26);
  }

  body.route-profile .profile-tier-panel {
    border-color: rgba(245, 201, 107, 0.48);
    background:
      radial-gradient(circle at 16% 20%, rgba(245, 201, 107, 0.22), transparent 34%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 226, 0.94));
  }

  body.route-profile .profile-action-primary {
    box-shadow: 0 10px 22px rgba(154, 113, 50, 0.18);
  }
}

/* Champions desktop pass: make champion analysis read like a champion pool board. */
@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card {
    isolation: isolate;
    overflow: hidden;
    border-color: rgba(45, 212, 191, 0.32);
    background:
      radial-gradient(circle at 73% 16%, rgba(245, 201, 107, 0.24), transparent 24%),
      linear-gradient(105deg, rgba(6, 18, 41, 0.98), rgba(12, 53, 90, 0.96) 58%, rgba(15, 118, 110, 0.82)),
      #061229;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::before {
    position: absolute;
    top: 30px;
    right: 24px;
    width: 188px;
    height: 184px;
    border: 1px solid rgba(217, 228, 242, 0.24);
    border-radius: 24px;
    background:
      radial-gradient(circle at 30% 23%, rgba(245, 201, 107, 0.82) 0 15px, transparent 16px),
      radial-gradient(circle at 70% 34%, rgba(74, 144, 245, 0.8) 0 13px, transparent 14px),
      radial-gradient(circle at 22% 63%, rgba(226, 232, 240, 0.74) 0 11px, transparent 12px),
      radial-gradient(circle at 66% 76%, rgba(45, 212, 191, 0.72) 0 10px, transparent 11px),
      linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
      rgba(255, 255, 255, 0.07);
    background-size:
      auto,
      auto,
      auto,
      auto,
      100% 42px,
      42px 100%,
      auto;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 18px 34px rgba(1, 8, 18, 0.18);
    content: "";
    opacity: 0.96;
    transform: rotate(-2deg);
    z-index: 0;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::after {
    position: absolute;
    right: 28px;
    bottom: 14px;
    color: rgba(45, 212, 191, 0.13);
    content: "CHAMPIONS";
    font-size: 36px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid {
    max-width: 570px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span {
    border-left: 3px solid rgba(45, 212, 191, 0.74);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
      rgba(6, 18, 41, 0.1);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(45, 212, 191, 0.25);
    background:
      radial-gradient(circle at 92% 18%, rgba(45, 212, 191, 0.16), transparent 28%),
      linear-gradient(180deg, rgba(236, 253, 245, 0.58), rgba(255, 255, 255, 0.98) 42%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-button), rgba(45, 212, 191, 0.74), rgba(37, 97, 197, 0));
    content: "";
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card::after {
    position: absolute;
    right: 18px;
    bottom: 10px;
    color: rgba(15, 118, 110, 0.08);
    content: "POOL";
    font-size: 42px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    counter-reset: champion-pool;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    position: relative;
    counter-increment: champion-pool;
    min-height: 74px;
    padding-left: 56px;
    border-color: rgba(217, 228, 242, 0.92);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row::before {
    position: absolute;
    left: 14px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 999px;
    background: #ecfdf5;
    color: #134e4a;
    content: counter(champion-pool, decimal-leading-zero);
    font-size: 10px;
    font-weight: 950;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:first-child {
    border-color: rgba(245, 201, 107, 0.5);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.84), rgba(255, 255, 255, 0.98) 66%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:first-child::before {
    border-color: rgba(199, 164, 115, 0.48);
    background: #fff8e6;
    color: #7a4b12;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    width: 42px;
    height: 42px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap {
    box-shadow:
      0 0 0 3px rgba(37, 97, 197, 0.08),
      0 10px 18px rgba(15, 27, 51, 0.08);
  }
}

/* Trends desktop pass: make trend pages read as a momentum dashboard. */
@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card {
    isolation: isolate;
    overflow: hidden;
    border-color: rgba(34, 197, 94, 0.32);
    background:
      radial-gradient(circle at 78% 20%, rgba(34, 197, 94, 0.2), transparent 27%),
      radial-gradient(circle at 52% 94%, rgba(245, 201, 107, 0.18), transparent 26%),
      linear-gradient(110deg, #061229, #123b82 58%, #0f766e);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card::before {
    position: absolute;
    right: 26px;
    bottom: 24px;
    width: 280px;
    height: 122px;
    border: 1px solid rgba(217, 228, 242, 0.2);
    border-radius: 20px;
    background:
      linear-gradient(140deg, transparent 0 20%, rgba(245, 201, 107, 0.64) 20% 23%, transparent 23% 52%, rgba(34, 197, 94, 0.72) 52% 55%, transparent 55%),
      linear-gradient(22deg, transparent 0 39%, rgba(74, 144, 245, 0.7) 39% 41%, transparent 41%),
      radial-gradient(circle at 21% 68%, rgba(245, 201, 107, 0.88) 0 5px, transparent 6px),
      radial-gradient(circle at 45% 48%, rgba(226, 232, 240, 0.78) 0 5px, transparent 6px),
      radial-gradient(circle at 67% 31%, rgba(34, 197, 94, 0.9) 0 5px, transparent 6px),
      linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
      rgba(255, 255, 255, 0.06);
    background-size:
      auto,
      auto,
      auto,
      auto,
      auto,
      100% 30px,
      46px 100%,
      auto;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.13),
      0 16px 32px rgba(1, 8, 18, 0.18);
    content: "";
    opacity: 0.98;
    z-index: 0;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card::after {
    position: absolute;
    right: 34px;
    bottom: 16px;
    color: rgba(34, 197, 94, 0.14);
    content: "MOMENTUM";
    font-size: 34px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid {
    max-width: 610px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span {
    border-color: rgba(34, 197, 94, 0.22);
    border-left: 3px solid rgba(34, 197, 94, 0.76);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
      rgba(6, 18, 41, 0.12);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span:first-child {
    border-left-color: var(--gold-button);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(34, 197, 94, 0.24);
    background:
      radial-gradient(circle at 92% 18%, rgba(34, 197, 94, 0.14), transparent 28%),
      linear-gradient(180deg, rgba(236, 253, 245, 0.54), rgba(255, 255, 255, 0.98) 38%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-button), rgba(34, 197, 94, 0.82), rgba(37, 97, 197, 0));
    content: "";
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card::after {
    position: absolute;
    right: 18px;
    bottom: 11px;
    color: rgba(22, 163, 74, 0.08);
    content: "UP";
    font-size: 44px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row {
    position: relative;
    min-height: 74px;
    padding-right: 64px;
    border-color: rgba(217, 228, 242, 0.92);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row::before {
    position: absolute;
    inset: 13px auto 13px 0;
    width: 3px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.68);
    content: "";
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child {
    border-color: rgba(245, 201, 107, 0.5);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.82), rgba(255, 255, 255, 0.98) 66%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child::before {
    background: var(--gold-button);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
    position: absolute;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 24px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 12px;
    font-weight: 950;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child b {
    border-color: rgba(199, 164, 115, 0.42);
    background: #fff8e6;
    color: #7a4b12;
  }
}

/* Ranking desktop pass: make the main page feel like the streamer ranking command board. */
@media (min-width: 901px) {
  body.route-ranking .summary-strip {
    grid-template-columns: minmax(210px, 0.9fr) minmax(320px, 1.35fr) minmax(240px, 1fr) minmax(220px, 0.95fr);
    gap: 16px;
    margin: 12px 0 16px;
  }

  body.route-ranking .summary-card {
    min-height: 104px;
    padding: 18px 20px;
    border-color: rgba(37, 97, 197, 0.14);
    background:
      radial-gradient(circle at 88% 14%, rgba(37, 97, 197, 0.08), transparent 26%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-ranking .summary-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, var(--summary-accent), rgba(255, 255, 255, 0));
    content: "";
  }

  body.route-ranking .summary-card::after {
    position: absolute;
    right: 16px;
    bottom: 10px;
    display: block;
    color: rgba(18, 59, 130, 0.07);
    content: "RANK";
    font-size: 34px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-ranking .summary-card:first-child {
    --summary-accent: #f5c96b;
    --summary-deep: #f8fbff;
    border-color: rgba(245, 201, 107, 0.34);
    background:
      radial-gradient(circle at 82% 18%, rgba(245, 201, 107, 0.28), transparent 28%),
      linear-gradient(135deg, #061229, #123b82 68%, #0d2857);
    box-shadow: 0 18px 42px rgba(6, 18, 41, 0.18);
  }

  body.route-ranking .summary-card:first-child::after {
    color: rgba(255, 255, 255, 0.08);
    content: "STREAMERS";
    font-size: 31px;
  }

  body.route-ranking .summary-card:nth-child(2)::after {
    content: "LANES";
  }

  body.route-ranking .summary-card:nth-child(3)::after {
    color: rgba(122, 75, 18, 0.08);
    content: "TOP 1";
  }

  body.route-ranking .summary-card:nth-child(4)::after {
    color: rgba(49, 46, 129, 0.08);
    content: "LIVE";
  }

  body.route-ranking .summary-card:first-child .summary-kicker,
  body.route-ranking .summary-card:first-child span:last-child {
    color: rgba(248, 251, 255, 0.72);
  }

  body.route-ranking .summary-card:first-child strong {
    color: #ffffff;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  }

  body.route-ranking .summary-card:nth-child(2) {
    border-color: rgba(15, 159, 143, 0.25);
    background:
      radial-gradient(circle at 88% 12%, rgba(15, 159, 143, 0.15), transparent 30%),
      linear-gradient(135deg, rgba(236, 253, 245, 0.72), rgba(255, 255, 255, 0.98) 58%),
      #ffffff;
  }

  body.route-ranking .summary-card:nth-child(3) {
    border-color: rgba(245, 201, 107, 0.5);
    background:
      radial-gradient(circle at 88% 16%, rgba(245, 201, 107, 0.2), transparent 28%),
      linear-gradient(135deg, rgba(255, 248, 230, 0.84), rgba(255, 255, 255, 0.98) 62%),
      #ffffff;
  }

  body.route-ranking .summary-card:nth-child(4) {
    border-color: rgba(79, 70, 229, 0.26);
    background:
      radial-gradient(circle at 88% 16%, rgba(79, 70, 229, 0.14), transparent 30%),
      linear-gradient(135deg, rgba(239, 246, 255, 0.82), rgba(255, 255, 255, 0.98) 62%),
      #ffffff;
  }

  body.route-ranking .table-card {
    position: relative;
    border-color: rgba(37, 97, 197, 0.16);
    box-shadow: 0 18px 46px rgba(15, 27, 51, 0.1);
  }

  body.route-ranking .table-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-button), rgba(37, 97, 197, 0.74), rgba(15, 159, 143, 0));
    content: "";
    z-index: 2;
  }

  body.route-ranking .table-card-top {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at 92% 18%, rgba(37, 97, 197, 0.08), transparent 28%),
      linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
  }

  body.route-ranking .table-card-top > div:first-child::before {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-bottom: 8px;
    padding: 0 9px;
    border: 1px solid rgba(199, 164, 115, 0.36);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
    content: "STREAMER BOARD";
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0;
  }

  body.route-ranking .table-card-top::after {
    position: absolute;
    right: 260px;
    bottom: 9px;
    color: rgba(18, 59, 130, 0.055);
    content: "LEADERBOARD";
    font-size: 40px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }
}

/* Group desktop pass: make SEO group pages feel like a focused crew board. */
@media (min-width: 901px) {
  body.route-group .group-dashboard {
    align-items: stretch;
    gap: 18px;
  }

  body.route-group .group-leader-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(245, 201, 107, 0.36);
    background:
      radial-gradient(circle at 77% 18%, rgba(245, 201, 107, 0.28), transparent 25%),
      linear-gradient(112deg, #061229, #123b82 62%, #0d2857);
    box-shadow: 0 20px 48px rgba(6, 18, 41, 0.2);
  }

  body.route-group .group-leader-card::before {
    content: none;
  }

  body.route-group .group-leader-card::after {
    position: absolute;
    right: 20px;
    bottom: 12px;
    color: rgba(255, 255, 255, 0.08);
    content: "CREW #1";
    font-size: 38px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-group .group-leader-card > * {
    position: relative;
    z-index: 1;
  }

  body.route-group .group-leader-profile {
    border-color: rgba(245, 201, 107, 0.28);
    background:
      radial-gradient(circle at 50% 34%, rgba(245, 201, 107, 0.22), transparent 31%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 16px 34px rgba(1, 8, 18, 0.2);
  }

  body.route-group .group-leader-profile .avatar-wrap {
    box-shadow:
      0 0 0 4px rgba(245, 201, 107, 0.16),
      0 12px 24px rgba(1, 8, 18, 0.22);
  }

  body.route-group .group-metric-card,
  body.route-group .group-roster-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(199, 164, 115, 0.28);
    background:
      radial-gradient(circle at 92% 14%, rgba(245, 201, 107, 0.13), transparent 26%),
      linear-gradient(180deg, rgba(255, 248, 230, 0.4), rgba(255, 255, 255, 0.98) 36%),
      #ffffff;
  }

  body.route-group .group-metric-card::before,
  body.route-group .group-roster-card::before {
    content: none;
  }

  body.route-group .group-metric-card::after {
    position: absolute;
    right: 18px;
    bottom: 12px;
    color: rgba(122, 75, 18, 0.06);
    content: "GROUP";
    font-size: 38px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-group .group-metric-grid span {
    border-color: rgba(199, 164, 115, 0.24);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-group .group-champion-strip {
    position: relative;
    z-index: 1;
  }

  body.route-group .group-roster-card::after {
    position: absolute;
    right: 14px;
    bottom: 10px;
    color: rgba(18, 59, 130, 0.06);
    content: "ROSTER";
    font-size: 34px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-group .group-member-row {
    position: relative;
    border-color: rgba(217, 228, 242, 0.94);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-group .group-member-row::before {
    content: none;
  }

  body.route-group .group-member-row:first-child {
    border-color: rgba(245, 201, 107, 0.48);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.82), rgba(255, 255, 255, 0.98) 64%),
      #ffffff;
  }

  body.route-group .group-member-row:first-child::before {
    content: none;
  }

  body.route-group .group-related-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(199, 164, 115, 0.34);
    background:
      radial-gradient(circle at 88% 14%, rgba(245, 201, 107, 0.2), transparent 28%),
      linear-gradient(100deg, rgba(255, 248, 230, 0.66), rgba(255, 255, 255, 0.98) 50%, rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-group .group-related-card::before {
    content: none;
  }

  body.route-group .group-related-card::after {
    position: absolute;
    right: 22px;
    bottom: 12px;
    color: rgba(122, 75, 18, 0.07);
    content: "EXPLORE";
    font-size: 40px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
  }
}

/* Role desktop board pass: make lane SEO pages read as focused lane analysis. */
@media (min-width: 901px) {
  body.route-role .role-dashboard {
    position: relative;
    align-items: stretch;
    gap: 18px;
    padding-top: 14px;
  }

  body.route-role .role-dashboard::before {
    content: none;
  }

  body.route-role .role-dashboard::after {
    content: none;
  }

  body.route-role .role-leader-card {
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 27, 51, 0.1);
  }

  body.route-role .role-leader-card::before {
    content: none;
  }

  body.route-role .role-leader-card::after {
    right: 18px;
    bottom: 10px;
    opacity: 0.95;
  }

  body.route-role .role-leader-profile {
    border-color: color-mix(in srgb, var(--role-accent) 22%, #ffffff);
    background:
      radial-gradient(circle at 50% 35%, var(--role-soft), transparent 32%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--role-surface) 68%, #ffffff));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      0 14px 26px rgba(15, 27, 51, 0.08);
  }

  body.route-role .role-metric-card,
  body.route-role .role-runners-card,
  body.route-role .role-switch-card {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--role-accent) 18%, #ffffff);
    background:
      radial-gradient(circle at 92% 15%, var(--role-soft), transparent 28%),
      linear-gradient(180deg, color-mix(in srgb, var(--role-surface) 42%, #ffffff), rgba(255, 255, 255, 0.98) 42%),
      #ffffff;
  }

  body.route-role .role-metric-card::before,
  body.route-role .role-runners-card::before,
  body.route-role .role-switch-card::before {
    content: none;
  }

  body.route-role .role-metric-card::after {
    position: absolute;
    right: 18px;
    bottom: 10px;
    color: color-mix(in srgb, var(--role-accent) 10%, transparent);
    content: "LANE";
    font-size: 38px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
  }

  body.route-role .role-metric-grid span {
    border-color: color-mix(in srgb, var(--role-accent) 18%, #ffffff);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-role .role-runners-card::after {
    position: absolute;
    right: 14px;
    bottom: 10px;
    color: color-mix(in srgb, var(--role-accent) 10%, transparent);
    content: "CHASERS";
    font-size: 34px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
  }

  body.route-role .role-runner-row {
    position: relative;
    border-color: rgba(217, 228, 242, 0.94);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-role .role-runner-row::before {
    content: none;
  }

  body.route-role .role-runner-row b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 24px;
    border: 1px solid color-mix(in srgb, var(--role-accent) 24%, #ffffff);
    border-radius: 999px;
    background: color-mix(in srgb, var(--role-surface) 72%, #ffffff);
    color: var(--role-deep);
    font-size: 12px;
    font-weight: 950;
  }

  body.route-role .role-switch-card::after {
    position: absolute;
    right: 16px;
    bottom: 10px;
    color: color-mix(in srgb, var(--role-accent) 9%, transparent);
    content: "LANES";
    font-size: 34px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
  }

  body.route-role .role-switch-link.active {
    border-color: color-mix(in srgb, var(--role-accent) 42%, #ffffff);
    background:
      linear-gradient(135deg, var(--role-soft), rgba(255, 255, 255, 0.98) 68%),
      #ffffff;
  }
}

/* LIVE desktop state pass: make both empty and active broadcast pages feel intentional. */
@media (min-width: 901px) {
  body.route-live.route-live-empty .live-empty-card {
    position: relative;
    overflow: hidden;
    min-height: 286px;
    padding: 28px 30px;
    border-color: rgba(245, 201, 107, 0.38);
    background:
      radial-gradient(circle at 86% 16%, rgba(245, 201, 107, 0.22), transparent 28%),
      radial-gradient(circle at 18% 92%, rgba(37, 97, 197, 0.08), transparent 30%),
      linear-gradient(110deg, rgba(255, 248, 230, 0.58), rgba(255, 255, 255, 0.98) 45%, rgba(248, 251, 255, 0.98)),
      #ffffff;
    box-shadow: 0 18px 46px rgba(15, 27, 51, 0.09);
  }

  body.route-live.route-live-empty .live-empty-card::before {
    content: none;
  }

  body.route-live.route-live-empty .live-empty-card::after {
    position: absolute;
    left: 30px;
    bottom: 18px;
    color: rgba(122, 75, 18, 0.07);
    content: "RANKING HUB";
    font-size: 48px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-live.route-live-empty .live-empty-copy,
  body.route-live.route-live-empty .live-empty-more {
    position: relative;
    z-index: 1;
  }

  body.route-live.route-live-empty .live-empty-copy .live-panel-kicker {
    width: fit-content;
    border-color: rgba(245, 201, 107, 0.42);
    background: #fff8e6;
    color: #7a4b12;
  }

  body.route-live.route-live-empty .live-empty-card strong {
    max-width: 680px;
    font-size: 25px;
  }

  body.route-live.route-live-empty .live-empty-card p {
    max-width: 760px;
    color: var(--text-sub);
    font-weight: 850;
  }

  body.route-live.route-live-empty .live-empty-status-grid span {
    border-color: rgba(37, 97, 197, 0.14);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-live.route-live-empty .live-empty-status-grid span:first-child {
    border-color: rgba(245, 201, 107, 0.48);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.86), rgba(255, 255, 255, 0.98) 66%),
      #ffffff;
  }

  body.route-live.route-live-empty .live-empty-more {
    border-color: rgba(37, 97, 197, 0.14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
      #ffffff;
    box-shadow: 0 14px 30px rgba(15, 27, 51, 0.07);
  }

  body.route-live.route-live-empty .live-empty-more summary {
    min-height: 40px;
  }

  body.route-live.route-live-empty .live-empty-suggestions {
    border-color: rgba(217, 228, 242, 0.94);
    background:
      radial-gradient(circle at 96% 8%, rgba(245, 201, 107, 0.12), transparent 24%),
      rgba(255, 255, 255, 0.9);
  }

  body.route-live.route-live-empty .live-empty-suggestion {
    position: relative;
    min-height: 58px;
    border-color: rgba(217, 228, 242, 0.94);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-live.route-live-empty .live-empty-suggestion::before {
    content: none;
  }

  body.route-live.route-live-empty .live-empty-suggestion:first-child {
    border-color: rgba(245, 201, 107, 0.46);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.82), rgba(255, 255, 255, 0.98) 66%),
      #ffffff;
  }

  body.route-live.route-live-empty .live-empty-suggestion:first-child::before {
    content: none;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    position: relative;
    overflow: hidden;
  }

  body.route-live:not(.route-live-empty) .live-list-card::after {
    position: absolute;
    right: 18px;
    bottom: 10px;
    color: rgba(34, 197, 94, 0.08);
    content: "ON AIR";
    font-size: 38px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-live:not(.route-live-empty) .live-list-row {
    position: relative;
    border-color: rgba(217, 228, 242, 0.94);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-live:not(.route-live-empty) .live-list-row:first-child {
    border-color: rgba(245, 201, 107, 0.48);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.82), rgba(255, 255, 255, 0.98) 66%),
      #ffffff;
  }
}

/* Guides desktop pass: make guides feel like an editorial lane handbook. */
@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card {
    isolation: isolate;
    overflow: hidden;
    border-color: rgba(245, 201, 107, 0.34);
    background:
      radial-gradient(circle at 83% 18%, rgba(245, 201, 107, 0.24), transparent 28%),
      linear-gradient(112deg, #061229, #123b82 58%, #6f5326);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card::before {
    position: absolute;
    top: 28px;
    right: 26px;
    width: 186px;
    height: 170px;
    border: 1px solid rgba(245, 201, 107, 0.24);
    border-radius: 24px 16px 16px 24px;
    background:
      linear-gradient(90deg, rgba(245, 201, 107, 0.28) 0 8px, transparent 8px),
      linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
      linear-gradient(90deg, transparent 0 49%, rgba(255, 255, 255, 0.14) 49% 51%, transparent 51%),
      rgba(255, 255, 255, 0.08);
    background-size:
      auto,
      100% 34px,
      auto,
      auto;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.15),
      0 18px 34px rgba(1, 8, 18, 0.2);
    content: "";
    transform: rotate(2deg);
    z-index: 0;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card::after {
    position: absolute;
    right: 34px;
    bottom: 16px;
    color: rgba(245, 201, 107, 0.14);
    content: "GUIDEBOOK";
    font-size: 34px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card > * {
    position: relative;
    z-index: 1;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid {
    max-width: 610px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
    border-color: rgba(245, 201, 107, 0.24);
    border-left: 3px solid rgba(245, 201, 107, 0.78);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
      rgba(6, 18, 41, 0.1);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(245, 201, 107, 0.34);
    background:
      radial-gradient(circle at 92% 18%, rgba(245, 201, 107, 0.16), transparent 28%),
      linear-gradient(180deg, rgba(255, 248, 230, 0.62), rgba(255, 255, 255, 0.98) 42%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-button), rgba(199, 164, 115, 0.34), rgba(37, 97, 197, 0));
    content: "";
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card::after {
    position: absolute;
    right: 18px;
    bottom: 10px;
    color: rgba(122, 75, 18, 0.07);
    content: "PATH";
    font-size: 42px;
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile {
    min-height: 78px;
    border-color: rgba(217, 228, 242, 0.92);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child {
    border-color: rgba(245, 201, 107, 0.5);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.84), rgba(255, 255, 255, 0.98) 66%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile::before {
    box-shadow: 0 8px 18px rgba(122, 75, 18, 0.08);
  }
}

/* Leaderboard row polish: make the core streamer table feel more like a ranking board. */
@media (min-width: 901px) {
  .leaderboard-table tbody tr {
    isolation: isolate;
  }

  .leaderboard-table tbody tr.top-rank {
    background:
      linear-gradient(90deg, var(--rank-wash), rgba(255, 255, 255, 0) 54%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.94));
  }

  .leaderboard-table tbody tr.rank-1 {
    background:
      radial-gradient(circle at 6% 50%, rgba(245, 201, 107, 0.3), transparent 22%),
      linear-gradient(90deg, rgba(255, 248, 230, 0.9), rgba(255, 255, 255, 0.97) 46%),
      #ffffff;
  }

  .leaderboard-table tbody tr.rank-2 {
    background:
      linear-gradient(90deg, rgba(226, 232, 240, 0.52), rgba(255, 255, 255, 0.95) 42%),
      #ffffff;
  }

  .leaderboard-table tbody tr.rank-3 {
    background:
      linear-gradient(90deg, rgba(219, 234, 254, 0.5), rgba(255, 255, 255, 0.95) 42%),
      #ffffff;
  }

  .leaderboard-table tbody tr.top-rank td {
    background: transparent;
  }

  .leaderboard-table tbody tr:hover td {
    background-color: rgba(234, 241, 255, 0.44);
    background-image: none;
  }

  .leaderboard-table tbody tr:hover .avatar-wrap,
  .leaderboard-table tbody tr:hover .tier-emblem,
  .leaderboard-table tbody tr:hover .champion-icon-wrap {
    transform: translateY(-1px);
  }

  .leaderboard-table .avatar-wrap,
  .leaderboard-table .tier-emblem,
  .leaderboard-table .champion-icon-wrap {
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  .leaderboard-table tr.top-rank .avatar-wrap {
    filter: drop-shadow(0 8px 16px rgba(15, 27, 51, 0.12));
  }

  .leaderboard-table tr.rank-1 .avatar-wrap {
    filter: drop-shadow(0 10px 20px rgba(154, 113, 50, 0.16));
  }

  .leaderboard-table .champions {
    min-width: 98px;
    padding-inline: 9px;
    border-color: rgba(204, 217, 234, 0.96);
  }

  .leaderboard-table .champion-icon-wrap:first-child {
    z-index: 3;
    box-shadow:
      0 6px 15px rgba(37, 97, 197, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.9);
  }

  .leaderboard-table .champion-icon-wrap:nth-child(2) {
    z-index: 2;
  }

  .leaderboard-table .champion-icon-wrap:nth-child(3) {
    z-index: 1;
  }

  .leaderboard-table .detail-link {
    border-color: rgba(37, 97, 197, 0.18);
    background:
      linear-gradient(180deg, #ffffff, #f3f7fd),
      #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .leaderboard-table tr.rank-1 .detail-link {
    border-color: rgba(245, 201, 107, 0.46);
    color: #7a4b12;
  }
}

/* Desktop filter console pass: make discovery controls feel like part of the ranking portal. */
@media (min-width: 1280px) {
  .filter-panel {
    isolation: isolate;
    overflow: visible;
    gap: 10px;
    padding: 14px;
    border-color: rgba(37, 97, 197, 0.18);
    background:
      radial-gradient(circle at 92% 8%, rgba(245, 201, 107, 0.18), transparent 18%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.98)),
      #ffffff;
    box-shadow:
      0 22px 46px rgba(15, 27, 51, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.94);
  }

  .filter-panel::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--gold-button), rgba(37, 97, 197, 0.74), rgba(15, 159, 143, 0));
    content: "";
    pointer-events: none;
    z-index: 1;
  }

  .filter-panel label {
    min-height: 58px;
    padding: 8px 11px 9px;
    border: 1px solid rgba(214, 224, 238, 0.92);
    border-radius: 13px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.95)),
      #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .filter-panel label > span {
    color: #52627c;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
  }

  .filter-panel select,
  .filter-panel input {
    height: 28px;
    min-height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #0a1730;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    padding: 0;
  }

  .filter-panel .search-field {
    border-color: rgba(37, 97, 197, 0.22);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98)),
      #ffffff;
  }

  .filter-panel .search-field input {
    padding-left: 0;
  }

  .filter-panel select:focus,
  .filter-panel input:focus {
    outline: none;
  }

  .filter-panel label:focus-within {
    border-color: rgba(37, 97, 197, 0.44);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 0 0 3px rgba(37, 97, 197, 0.08);
  }

  .filter-panel .primary-button {
    height: 58px;
    border-radius: 13px;
    background:
      linear-gradient(135deg, #1958c4, #0c347b 66%, #061229),
      #123b82;
    box-shadow:
      0 14px 26px rgba(18, 59, 130, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .filter-panel .primary-button:hover {
    transform: translateY(-1px);
    box-shadow:
      0 18px 32px rgba(18, 59, 130, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .role-filter {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(214, 224, 238, 0.92);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 248, 253, 0.76)),
      #f8fbff;
    box-shadow: 0 10px 24px rgba(15, 27, 51, 0.06);
  }

  .role-filter button {
    min-height: 36px;
    border-color: rgba(203, 213, 225, 0.96);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98)),
      #ffffff;
    color: #334155;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  }

  .role-filter button[aria-checked="true"] {
    border-color: rgba(18, 59, 130, 0.88);
    background:
      linear-gradient(135deg, #123b82, #174ea6),
      #123b82;
    color: #ffffff;
    box-shadow:
      0 10px 22px rgba(18, 59, 130, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

/* Summary signal pass: make the ranking snapshot explain why each number matters. */
@media (min-width: 901px) {
  body.route-ranking .summary-card {
    grid-template-rows: auto 1fr auto;
    align-content: stretch;
    min-height: 112px;
    padding: 18px 20px 16px;
  }

  body.route-ranking .summary-card::before {
    display: block;
  }

  body.route-ranking .summary-card .summary-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid color-mix(in srgb, var(--summary-accent) 26%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--summary-accent) 8%, #ffffff);
    color: var(--summary-deep);
    font-size: 11px;
    font-weight: 950;
  }

  body.route-ranking .summary-card strong {
    align-self: center;
    letter-spacing: 0;
  }

  body.route-ranking .summary-card strong.summary-compact {
    font-size: 20px;
  }

  body.route-ranking .summary-card strong.summary-name {
    font-size: 24px;
  }

  body.route-ranking .summary-card strong.summary-state {
    font-size: 24px;
  }

  body.route-ranking .summary-card span:last-child {
    max-width: 88%;
    color: #52627c;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
  }

  body.route-ranking .summary-card:first-child span:last-child {
    color: rgba(248, 251, 255, 0.78);
  }

  body.route-ranking .summary-card:first-child .summary-kicker {
    border-color: rgba(245, 201, 107, 0.34);
    background: rgba(245, 201, 107, 0.12);
    color: #ffe8a3;
  }

  body.route-ranking .summary-card:first-child::after {
    content: "POOL";
  }

  body.route-ranking .summary-card:nth-child(2)::after {
    content: "LANE MAP";
    font-size: 28px;
  }

  body.route-ranking .summary-card:nth-child(3)::after {
    content: "LEADER";
    font-size: 30px;
  }

  body.route-ranking .summary-card:nth-child(4)::after {
    content: "SIGNAL";
    font-size: 30px;
  }
}

/* Ranking mobile summary pass: show the full snapshot on normal phone widths. */
@media (min-width: 360px) and (max-width: 480px) {
  body.route-ranking .summary-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    margin: 4px 0 10px;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
    scroll-snap-type: none;
  }

  body.route-ranking .summary-card {
    flex: initial;
    min-height: 66px;
    padding: 9px 10px;
    scroll-snap-align: none;
  }

  body.route-ranking .summary-card:last-child {
    margin-right: 0;
  }

  body.route-ranking .summary-kicker {
    font-size: 10px;
    line-height: 1.15;
  }

  body.route-ranking .summary-card strong {
    font-size: 18px;
  }

  body.route-ranking .summary-card strong.summary-compact {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    font-size: 12px;
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.route-ranking .summary-card strong.summary-name,
  body.route-ranking .summary-card strong.summary-state {
    font-size: 16px;
  }

  body.route-ranking .summary-card span:last-child {
    display: block;
    overflow: hidden;
    color: #66728a;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Mobile leaderboard controls pass: reduce repeated control height across SEO pages. */
@media (max-width: 480px) {
  .table-card-top {
    gap: 8px;
    padding: 14px 13px 10px;
  }

  .table-card h2 {
    font-size: 17px;
    line-height: 1.16;
  }

  .table-card p {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
  }

  .table-actions {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 5px;
  }

  .tabs {
    min-height: 34px;
    padding: 2px;
    border-radius: 12px;
  }

  .tabs button {
    min-height: 29px;
    padding: 0 8px;
    font-size: 11px;
  }

  .sort-select select {
    height: 36px;
    min-height: 36px;
    padding: 0 28px 0 11px;
    font-size: 11px;
  }

  .table-actions .soft-button {
    width: 40px;
    height: 36px;
    min-height: 36px;
  }

  .mobile-list {
    gap: 9px;
    padding: 10px 10px 14px;
  }
}

@media (max-width: 340px) and (max-height: 620px) {
  .table-card-top {
    padding: 5px 9px 3px;
  }

  .tabs {
    min-height: 32px;
  }

  .tabs button {
    min-height: 28px;
  }

  .sort-select select,
  .table-actions .soft-button {
    height: 32px;
    min-height: 32px;
  }
}

/* Portal narrow-phone pass: keep preview cards legible on 320px screens. */
@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    grid-template-columns: 1fr;
  }

  body.route-portal .portal-hero-cta {
    display: none;
  }

  body.route-portal .portal-profile-row,
  body.route-portal .portal-link-tile,
  body.route-portal .portal-champion-row {
    min-height: 42px;
    padding: 7px 8px;
  }

  body.route-portal .portal-profile-row span,
  body.route-portal .portal-champion-row span,
  body.route-portal .portal-link-tile {
    gap: 2px;
  }

  body.route-portal .portal-profile-row strong,
  body.route-portal .portal-champion-row strong,
  body.route-portal .portal-link-tile strong {
    font-size: 12px;
  }

  body.route-portal .portal-profile-row em,
  body.route-portal .portal-champion-row em,
  body.route-portal .portal-link-tile em {
    font-size: 10px;
  }

  body.route-portal .portal-profile-row b {
    font-size: 10px;
  }
}

/* Group narrow-phone pass: avoid clipped horizontal cards in group exploration. */
@media (max-width: 340px) {
  body.route-group .group-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  body.route-group .group-related-link {
    flex: initial;
    min-width: 0;
    min-height: 58px;
    scroll-snap-align: none;
  }

  body.route-group .group-related-link:nth-child(n + 3) {
    grid-column: 1 / -1;
  }
}

/* Portal mobile decoration cleanup: avoid stray colored bars that read like broken data. */
@media (max-width: 760px) {
  body.route-portal .portal-list-card::before,
  body.route-portal .portal-list-card::after,
  body.route-portal .portal-profile-row::before,
  body.route-portal .portal-profile-row::after,
  body.route-portal .portal-champion-row::before,
  body.route-portal .portal-champion-row::after,
  body.route-portal .portal-link-tile::before,
  body.route-portal .portal-link-tile::after {
    display: none;
  }

  body.route-portal .portal-list-card,
  body.route-portal .portal-profile-row,
  body.route-portal .portal-champion-row,
  body.route-portal .portal-link-tile {
    border-left-width: 1px;
  }
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card::before,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card::before,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card::before,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row::before {
    display: none;
  }

  body.route-portal .portal-dashboard .portal-metric-grid span {
    border-left-width: 1px;
  }
}

/* Mobile footer cleanup: avoid the top rule reading as a stray colored bar. */
@media (max-width: 760px) {
  .site-footer {
    border-top-color: rgba(218, 227, 242, 0.16);
  }

  .site-footer::before {
    display: none;
  }
}

/* LIVE narrow-phone cleanup: remove tiny accent noise and prevent clipped live previews. */
@media (max-width: 480px) {
  body.route-live .live-hero-copy .live-panel-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 19px;
    padding: 0 7px;
    border: 1px solid rgba(245, 201, 107, 0.32);
    border-radius: 999px;
    background: rgba(245, 201, 107, 0.12);
    color: #f7d78a;
  }

  body.route-live .live-panel-kicker::before,
  body.route-live .live-panel-kicker::after {
    content: none;
  }
}

@media (max-width: 340px) {
  body.route-live .live-list-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body.route-live .live-list-header {
    justify-content: space-between;
  }

  body.route-live .live-list {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  body.route-live .live-list-row {
    flex: initial;
    width: 100%;
    scroll-snap-align: none;
  }

  body.route-live .live-list-row:nth-child(n + 3) {
    display: none;
  }
}

/* LIVE active narrow-phone pass: keep the broadcast context, then move quickly into rank cards. */
@media (max-width: 340px) {
  body.route-live:not(.route-live-empty) .live-list-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 38px;
    padding: 6px 8px;
  }

  body.route-live:not(.route-live-empty) .live-list-header {
    display: contents;
  }

  body.route-live:not(.route-live-empty) .live-list-header .live-panel-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    width: fit-content;
    padding: 0 8px;
    border: 1px solid rgba(245, 201, 107, 0.32);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
    font-size: 10px;
  }

  body.route-live:not(.route-live-empty) .live-list-header strong {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  body.route-live:not(.route-live-empty) .live-list {
    display: none;
  }
}

/* Final group phone override: keep all exploration links, but stop the third link from pushing rankings down. */
@media (max-width: 340px) {
  body.route-group .group-related-card {
    gap: 5px;
    padding: 7px;
  }

  body.route-group .group-related-header strong {
    max-width: 146px;
    font-size: 12px;
  }

  body.route-group .group-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  body.route-group .group-related-link,
  body.route-group .group-related-link:nth-child(n + 3) {
    grid-column: auto;
    min-height: 36px;
    padding: 5px 4px;
  }

  body.route-group .group-related-link strong {
    font-size: 10px;
    line-height: 1.1;
  }
}

/* Final profile narrow-phone override: remove empty card space and keep profile stats in one row. */
@media (max-width: 340px) {
  body.route-profile .profile-spotlight {
    margin: 4px 0 7px;
  }

  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 8px;
  }

  body.route-profile .profile-tier-panel {
    grid-column: 1 / -1;
    min-height: 43px;
    padding: 6px 8px;
  }

  body.route-profile .profile-tier-panel .tier-emblem {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  body.route-profile .profile-tier-panel strong {
    font-size: 12px;
  }

  body.route-profile .profile-stat-grid {
    grid-template-columns: 0.7fr 0.78fr 0.75fr 1.28fr;
    gap: 4px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 3px;
    text-align: center;
  }

  body.route-profile .profile-stat-grid em {
    display: none;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 9px;
    line-height: 1.08;
    white-space: normal;
  }
}

/* Portal mobile identity pass: make trend, champion, and guide previews feel distinct. */
@media (max-width: 480px) {
  body.route-portal .portal-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(245, 201, 107, 0.34);
    border-radius: 999px;
    background: rgba(245, 201, 107, 0.12);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card {
    border-color: rgba(96, 165, 250, 0.42);
    background:
      radial-gradient(circle at 96% 6%, rgba(96, 165, 250, 0.24), transparent 34%),
      radial-gradient(circle at 4% 100%, rgba(245, 201, 107, 0.14), transparent 34%),
      linear-gradient(135deg, #071a38, #0e3572 58%, #163f8d);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card {
    border-color: rgba(45, 212, 191, 0.36);
    background:
      radial-gradient(circle at 92% 8%, rgba(45, 212, 191, 0.22), transparent 34%),
      radial-gradient(circle at 6% 100%, rgba(245, 201, 107, 0.13), transparent 34%),
      linear-gradient(135deg, #06172f, #114156 56%, #0f5a57);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card {
    border-color: rgba(245, 201, 107, 0.44);
    background:
      radial-gradient(circle at 92% 9%, rgba(245, 201, 107, 0.28), transparent 36%),
      radial-gradient(circle at 4% 100%, rgba(77, 138, 255, 0.13), transparent 34%),
      linear-gradient(135deg, #071a38, #17335e 54%, #5a4421);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-kicker {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(96, 165, 250, 0.13);
    color: #bfdbfe;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-kicker {
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.12);
    color: #99f6e4;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-kicker {
    border-color: rgba(245, 201, 107, 0.46);
    background: rgba(245, 201, 107, 0.14);
    color: #fde68a;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span {
    border-color: rgba(96, 165, 250, 0.22);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span {
    border-color: rgba(45, 212, 191, 0.2);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
    border-color: rgba(245, 201, 107, 0.24);
  }
}

/* Profile desktop refinement: make the profile header read as one polished player card. */
@media (min-width: 901px) {
  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(360px, 1.08fr) minmax(250px, 0.68fr) minmax(350px, 0.96fr) minmax(180px, 0.48fr);
    gap: 18px;
    min-height: 196px;
    padding: 24px;
  }

  body.route-profile .profile-spotlight-card::before {
    content: none;
  }

  body.route-profile .profile-identity {
    min-height: 128px;
    padding: 16px;
    border: 1px solid rgba(245, 201, 107, 0.18);
    border-radius: 18px;
    background:
      radial-gradient(circle at 84% 6%, rgba(245, 201, 107, 0.14), transparent 30%),
      rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body.route-profile .profile-tier-panel {
    min-height: 108px;
    padding: 16px;
  }

  body.route-profile .profile-stat-grid {
    gap: 10px;
  }

  body.route-profile .profile-stat-grid span {
    min-height: 66px;
    padding: 12px;
  }

  body.route-profile .profile-champions {
    align-self: stretch;
    justify-content: center;
    min-height: 108px;
    padding: 14px;
    border: 1px solid rgba(220, 228, 240, 0.94);
    border-radius: 15px;
    background:
      radial-gradient(circle at 88% 8%, rgba(37, 97, 197, 0.08), transparent 28%),
      rgba(255, 255, 255, 0.9);
  }

  body.route-profile .profile-spotlight-card .profile-champions > span {
    color: var(--text-muted);
  }

  body.route-profile .profile-action-rail {
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    gap: 10px;
  }

  body.route-profile .profile-action-link {
    min-height: 54px;
    padding: 9px 10px;
  }

  body.route-profile .profile-action-link span,
  body.route-profile .profile-action-link strong {
    white-space: normal;
    line-height: 1.15;
  }
}

/* Portal desktop KPI readability pass: keep decorative graphs behind the data. */
@media (min-width: 901px) {
  body.route-portal .portal-metric-grid {
    position: relative;
    z-index: 2;
  }

  body.route-portal .portal-metric-grid span {
    border-color: rgba(217, 228, 242, 0.2);
    background:
      linear-gradient(180deg, rgba(7, 26, 56, 0.94), rgba(16, 49, 121, 0.84)),
      rgba(255, 255, 255, 0.06);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 12px 24px rgba(3, 10, 24, 0.16);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card::before {
    right: 30px;
    bottom: 16px;
    width: min(210px, 30%);
    opacity: 0.34;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card::after {
    right: 32px;
    bottom: 12px;
    font-size: 26px;
    opacity: 0.08;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid {
    max-width: min(560px, 100%);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::before,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card::before {
    opacity: 0.34;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card::after,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card::after {
    opacity: 0.1;
  }
}

/* Mobile card chip cleanup: avoid clipped tag fragments in streamer cards. */
@media (max-width: 760px) {
  .mobile-channel-meta {
    flex-wrap: wrap;
    max-height: 36px;
    overflow: hidden;
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .mobile-channel-meta .mobile-sub-text {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .mobile-channel-meta .chip,
  .mobile-channel-meta .quality-badge {
    flex: 0 1 auto;
    max-width: 78px;
  }
}

/* Group mobile link copy cleanup: keep exploration cards readable on narrow SEO pages. */
@media (max-width: 480px) {
  body.route-group .group-related-link {
    align-content: start;
    gap: 3px;
  }

  body.route-group .group-related-link span,
  body.route-group .group-related-link strong {
    white-space: nowrap;
  }

  body.route-group .group-related-link em {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* SEO detail narrow-phone pass: reduce secondary blocks before the main ranking snapshot. */
@media (max-width: 340px) {
  body.route-group .group-related-card {
    gap: 6px;
    padding: 8px;
  }

  body.route-group .group-related-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  body.route-group .group-related-header strong {
    overflow: hidden;
    max-width: 168px;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-group .group-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-group .group-related-link {
    min-height: 42px;
    padding: 6px;
    scroll-snap-align: none;
  }

  body.route-group .group-related-link em {
    display: none;
  }

  body.route-group .group-related-link strong {
    font-size: 12px;
  }

  body.route-profile .profile-champions {
    display: none;
  }

  body.route-profile .profile-insights {
    display: none;
  }

  body.route-profile .profile-spotlight-card {
    gap: 5px;
  }
}

/* Portal narrow-phone pass: collapse preview lists so the reference leaderboard starts earlier. */
@media (max-width: 340px) {
  body.route-portal .portal-list-card {
    min-height: 0;
    gap: 0;
    padding: 7px 8px;
  }

  body.route-portal .portal-list-header {
    min-height: 28px;
  }

  body.route-portal .portal-list-header .portal-kicker {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  body.route-portal .portal-list-header a {
    min-height: 26px;
    padding: 0 9px;
    font-size: 10px;
  }

  body.route-portal .portal-list {
    display: none;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    display: none;
  }
}

/* Ranking label polish: keep the main Korean leaderboard free of decorative English noise. */
@media (min-width: 901px) {
  body.route-ranking .summary-card::after,
  body.route-ranking .table-card-top::after {
    display: none;
    content: none;
  }

  body.route-ranking .table-card-top > div:first-child::before {
    content: "스트리머 보드";
  }
}

/* Data guide mobile readability pass: improve text rhythm without adding modal scroll. */
@media (max-width: 480px) {
  .guide-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .guide-summary span {
    min-height: 46px;
    gap: 4px;
    padding: 7px 6px;
  }

  .guide-summary b {
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .guide-summary em {
    font-size: 9px;
    line-height: 1.2;
  }

  .guide-list div {
    padding: 8px 9px;
  }

  .guide-list dt {
    font-size: 10px;
  }

  .guide-list dd {
    font-size: 10px;
    line-height: 1.32;
    word-break: keep-all;
  }

  .guide-note {
    font-size: 9px;
    line-height: 1.38;
    word-break: keep-all;
  }
}

/* Decorative bar cleanup: keep ranking cards focused on data, not stray accent strips. */
.filter-panel::before,
body.route-ranking .summary-card::before,
body.route-ranking .table-card::before,
body.route-ranking .table-card-top > div:first-child::before,
body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row::before {
  display: none;
  content: none;
}

@media (max-width: 760px) {
  body.route-ranking .summary-card::before,
  body.route-ranking .summary-card::after,
  body.route-ranking .table-card::before,
  body.route-ranking .table-card::after,
  body.route-group .group-member-row::before,
  body.route-group .group-member-row::after,
  body.route-portal .portal-list-card::before,
  body.route-portal .portal-list-card::after,
  body.route-portal .portal-profile-row::before,
  body.route-portal .portal-profile-row::after,
  body.route-portal .portal-champion-row::before,
  body.route-portal .portal-champion-row::after,
  body.route-portal .portal-link-tile::before,
  body.route-portal .portal-link-tile::after {
    display: none;
    content: none;
  }
}

/* Final stray-strip cleanup: avoid small accent bars reading as broken status marks. */
body.route-live:not(.route-live-empty) .live-list-card::after,
body.route-role .role-dashboard::before,
body.route-role .role-dashboard::after,
body.route-role .role-leader-card::before,
body.route-role .role-leader-card::after,
body.route-role .role-metric-card::before,
body.route-role .role-runners-card::before,
body.route-role .role-switch-card::before,
body.route-group .group-leader-card::before,
body.route-group .group-leader-card::after,
body.route-group .group-metric-card::before,
body.route-group .group-roster-card::before,
body.route-group .group-member-row::before,
body.route-group .group-related-card::before,
body.route-portal .portal-profile-row::before,
body.route-portal .portal-champion-row::before,
body.route-portal .portal-link-tile::before {
  display: none;
  content: none;
}

@media (max-width: 480px) {
  body.route-ranking .summary-strip {
    display: none;
  }
}

/* SEO detail phone compression: keep context visible while moving into rankings faster. */
@media (min-width: 341px) and (max-width: 480px) {
  body.route-role .role-metric-card {
    gap: 6px;
    padding: 8px;
  }

  body.route-role .role-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body.route-role .role-metric-grid span {
    min-height: 38px;
    padding: 5px 4px;
    border-radius: 9px;
  }

  body.route-role .role-metric-grid em {
    overflow: hidden;
    font-size: 8px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-role .role-metric-grid strong {
    font-size: 12px;
    line-height: 1.1;
  }

  body.route-group .group-related-card {
    gap: 7px;
    padding: 9px;
  }

  body.route-group .group-related-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  body.route-group .group-related-header strong {
    overflow: hidden;
    max-width: 184px;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-group .group-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-group .group-related-link {
    min-height: 46px;
    padding: 6px;
  }

  body.route-group .group-related-link em {
    display: none;
  }

  body.route-group .group-related-link strong {
    font-size: 12px;
    line-height: 1.12;
  }
}

/* Role narrow-phone pass: preserve lane context but move faster into streamer cards. */
@media (max-width: 340px) {
  body.route-role .role-dashboard {
    gap: 6px;
  }

  body.route-role .role-metric-card {
    gap: 5px;
    min-height: 0;
    padding: 7px 8px;
  }

  body.route-role .role-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-role .role-metric-grid span {
    min-height: 34px;
    padding: 5px 6px;
    border-radius: 9px;
  }

  body.route-role .role-metric-grid span:nth-child(n + 3) {
    display: none;
  }

  body.route-role .role-metric-grid em {
    font-size: 9px;
  }

  body.route-role .role-metric-grid strong {
    font-size: 12px;
  }

  body.route-role .role-metric-card p {
    display: none;
  }
}

/* Final portal phone override: route-specific skins must stay compact on 390px phones. */
@media (min-width: 341px) and (max-width: 480px) {
  body.route-portal .portal-dashboard {
    gap: 7px;
    margin: 5px 0 8px;
  }

  body.route-portal .portal-hero-card,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card {
    gap: 6px;
    padding: 11px 12px;
    border-radius: 13px;
  }

  body.route-portal .portal-hero-card h2 {
    font-size: 19px;
    line-height: 1.16;
  }

  body.route-portal .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-portal .portal-metric-grid span,
  body.route-portal .portal-metric-grid span:last-child,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
    grid-column: auto;
    min-height: 39px;
    padding: 6px;
    border-radius: 10px;
  }

  body.route-portal .portal-metric-grid strong {
    font-size: 14px;
    line-height: 1.1;
  }

  body.route-portal .portal-metric-grid em {
    font-size: 8px;
  }

  body.route-portal .portal-hero-cta {
    min-height: 28px;
    width: fit-content;
    padding: 0 10px;
    font-size: 10px;
  }

  body.route-portal .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    gap: 0;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 12px;
  }

  body.route-portal .portal-list-header {
    min-height: 26px;
  }

  body.route-portal .portal-list-header .portal-kicker,
  body.route-portal .portal-list-header a {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  body.route-portal .portal-list,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    display: none;
  }
}

/* Final profile phone override: keep the representative account context, but make the rank snapshot arrive sooner. */
@media (min-width: 341px) and (max-width: 480px) {
  body.route-profile .profile-spotlight-card {
    gap: 5px;
    padding: 8px;
  }

  body.route-profile .profile-identity {
    min-height: 44px;
  }

  body.route-profile .profile-tier-panel {
    min-height: 44px;
    padding: 6px 8px;
  }

  body.route-profile .profile-stat-grid {
    grid-template-columns: 0.7fr 0.7fr 0.72fr 1.24fr;
    gap: 4px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 31px;
    padding: 4px;
    text-align: center;
  }

  body.route-profile .profile-stat-grid em {
    display: none;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 10px;
    line-height: 1.05;
    white-space: normal;
  }

  body.route-profile .profile-insights {
    margin: -2px 0 7px;
  }
}

/* Final LIVE phone override: avoid showing a duplicate mini list before the real rank cards. */
@media (min-width: 341px) and (max-width: 480px) {
  body.route-live:not(.route-live-empty) .live-list-card {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 38px;
    padding: 6px 8px;
  }

  body.route-live:not(.route-live-empty) .live-list-header {
    display: contents;
  }

  body.route-live:not(.route-live-empty) .live-list-header .live-panel-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(245, 201, 107, 0.32);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
    font-size: 10px;
  }

  body.route-live:not(.route-live-empty) .live-list-header strong {
    width: auto;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.route-live:not(.route-live-empty) .live-list {
    display: none;
  }
}

/* Final LIVE narrow-phone viewport fit: keep status context while bringing rankings into view. */
@media (max-width: 340px) {
  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 4px;
    margin: 1px 0 5px;
  }

  body.route-live:not(.route-live-empty) .live-hero-card {
    min-height: 46px;
    padding: 6px 8px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy h2 {
    font-size: 16px;
    line-height: 1.05;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    min-height: 34px;
    padding: 5px 7px;
  }

  body.route-live:not(.route-live-empty) .table-card-top {
    gap: 6px;
    padding: 10px 12px 7px;
  }

  body.route-live:not(.route-live-empty) .table-card h2 {
    font-size: 18px;
  }

  body.route-live:not(.route-live-empty) .table-actions {
    grid-template-columns: minmax(120px, 1fr) 88px 36px;
    gap: 4px;
  }

  body.route-live:not(.route-live-empty) .tabs {
    grid-column: auto;
    min-height: 34px;
    padding: 2px;
  }

  body.route-live:not(.route-live-empty) .tabs button {
    min-height: 29px;
    padding: 0 6px;
    font-size: 11px;
  }

  body.route-live:not(.route-live-empty) .sort-select select,
  body.route-live:not(.route-live-empty) .table-actions .soft-button {
    height: 36px;
    min-height: 36px;
  }

  body.route-live:not(.route-live-empty) .mobile-list {
    padding-top: 8px;
  }
}

/* Final group narrow-phone controls: keep the event context and move into ranking cards sooner. */
@media (max-width: 340px) {
  body.route-role .table-actions,
  body.route-group .table-actions {
    grid-template-columns: minmax(120px, 1fr) 88px 36px;
    gap: 4px;
  }

  body.route-role .tabs,
  body.route-group .tabs {
    grid-column: auto;
    min-height: 34px;
    padding: 2px;
  }

  body.route-role .tabs button,
  body.route-group .tabs button {
    min-height: 29px;
    padding: 0 6px;
    font-size: 11px;
  }

  body.route-role .sort-select select,
  body.route-role .table-actions .soft-button,
  body.route-group .sort-select select,
  body.route-group .table-actions .soft-button {
    height: 36px;
    min-height: 36px;
  }

  body.route-role .mobile-list,
  body.route-group .mobile-list {
    padding-top: 8px;
  }
}

/* Final profile phone controls: preserve the profile summary while surfacing the rank card earlier. */
@media (max-width: 480px) {
  body.route-profile .table-actions {
    grid-template-columns: minmax(120px, 1fr) 88px 36px;
    gap: 4px;
  }

  body.route-profile .tabs {
    grid-column: auto;
    min-height: 34px;
    padding: 2px;
  }

  body.route-profile .tabs button {
    min-height: 29px;
    padding: 0 6px;
    font-size: 11px;
  }

  body.route-profile .sort-select select,
  body.route-profile .table-actions .soft-button {
    height: 36px;
    min-height: 36px;
  }

  body.route-profile .mobile-list {
    padding-top: 8px;
  }
}

/* Final group phone controls: keep group discovery visible while making rank cards less buried. */
@media (min-width: 341px) and (max-width: 480px) {
  body.route-group .table-actions {
    grid-template-columns: minmax(120px, 1fr) 88px 36px;
    gap: 4px;
  }

  body.route-group .tabs {
    grid-column: auto;
    min-height: 34px;
    padding: 2px;
  }

  body.route-group .tabs button {
    min-height: 29px;
    padding: 0 6px;
    font-size: 11px;
  }

  body.route-group .sort-select select,
  body.route-group .table-actions .soft-button {
    height: 36px;
    min-height: 36px;
  }

  body.route-group .mobile-list {
    padding-top: 8px;
  }
}

/* Final artifact cleanup: remove decorative strips that can read as broken red status marks. */
body.route-profile .profile-spotlight-card::before,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile::before,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile::after,
body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row::before {
  display: none;
  content: none;
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
  border-left-width: 1px;
}

/* Final LIVE phone controls: keep broadcast context while surfacing rank cards sooner. */
@media (min-width: 341px) and (max-width: 480px) {
  body.route-live:not(.route-live-empty) .table-actions {
    grid-template-columns: minmax(120px, 1fr) 88px 36px;
    gap: 4px;
  }

  body.route-live:not(.route-live-empty) .tabs {
    grid-column: auto;
    min-height: 34px;
    padding: 2px;
  }

  body.route-live:not(.route-live-empty) .tabs button {
    min-height: 29px;
    padding: 0 6px;
    font-size: 11px;
  }

  body.route-live:not(.route-live-empty) .sort-select select,
  body.route-live:not(.route-live-empty) .table-actions .soft-button {
    height: 36px;
    min-height: 36px;
  }

  body.route-live:not(.route-live-empty) .mobile-list {
    padding-top: 8px;
  }
}

/* Final mobile rank-card readability pass: make streamer, tier, and record scan first. */
@media (max-width: 760px) {
  .mobile-rank-card {
    gap: 6px;
    padding: 10px;
  }

  .mobile-channel {
    align-items: start;
    grid-template-columns: 36px 36px minmax(0, 1fr);
    gap: 7px;
  }

  .mobile-rank-stack .rank-cell {
    min-height: 28px;
  }

  .mobile-channel .avatar-wrap,
  .mobile-channel .avatar {
    width: 36px;
    height: 36px;
  }

  .mobile-channel .channel-name {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 18px;
    font-size: 14px;
  }

  .mobile-channel .channel-name .live-badge {
    flex: 0 0 auto;
  }

  .mobile-channel-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px;
    max-height: none;
    margin-top: 2px;
  }

  .mobile-channel-meta .mobile-sub-text {
    grid-column: 1 / -1;
    min-height: 15px;
    color: #52627a;
    font-size: 9px;
    line-height: 1.2;
  }

  .mobile-channel-meta .chip,
  .mobile-channel-meta .quality-badge {
    min-height: 15px;
    max-width: none;
    padding: 0 5px;
    font-size: 8px;
  }

  .mobile-channel-meta .chip:nth-of-type(n + 3),
  .mobile-channel-meta .quality-badge:nth-of-type(n + 3) {
    display: none;
  }

  .mobile-tier-row {
    padding: 5px 7px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98)),
      #ffffff;
  }

  .mobile-tier-row .tier-cell {
    gap: 7px;
  }

  .mobile-tier-row .tier-name {
    font-size: 11px;
    line-height: 1.12;
  }

  .mobile-tier-row .channel-sub {
    min-height: 17px;
  }

  .mobile-meta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 0.55fr minmax(82px, 0.9fr);
    gap: 4px;
    padding: 5px;
  }

  .mobile-meta-grid span:first-child,
  .mobile-meta-grid span {
    display: grid;
    align-content: center;
    flex: initial;
    min-height: 30px;
    gap: 1px;
    padding: 3px 5px;
    border: 1px solid rgba(220, 228, 240, 0.78);
    border-radius: 9px;
    background: #ffffff;
  }

  .mobile-meta-grid .mobile-role-stat {
    display: none;
  }

  .mobile-meta-grid em {
    color: #66728a;
    font-size: 7px;
    line-height: 1;
  }

  .mobile-meta-grid strong {
    font-size: 9px;
    line-height: 1.1;
  }

  .mobile-meta-grid .mobile-winrate-stat strong,
  .mobile-meta-grid .mobile-record-stat strong {
    font-size: 10px;
  }

  .mobile-meta-grid .mobile-record-stat {
    margin-left: 0;
  }

  .mobile-champion-row {
    min-height: 26px;
    padding-top: 0;
  }
}

/* Final mobile metric correction: keep account wide, then compare win rate and record. */
@media (max-width: 760px) {
  .mobile-meta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 0.82fr);
    gap: 4px 5px;
    padding: 5px 6px;
  }

  .mobile-meta-grid .mobile-account-stat {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    min-height: 24px;
    gap: 6px;
    padding: 3px 7px;
  }

  .mobile-meta-grid .mobile-account-stat em {
    flex: 0 0 auto;
  }

  .mobile-meta-grid .mobile-account-stat strong {
    flex: 1 1 auto;
    max-width: none;
    font-size: 10px;
  }

  .mobile-meta-grid .mobile-winrate-stat,
  .mobile-meta-grid .mobile-record-stat {
    display: flex;
    align-items: center;
    min-height: 24px;
    gap: 5px;
    padding: 3px 7px;
  }

  .mobile-meta-grid .mobile-winrate-stat strong,
  .mobile-meta-grid .mobile-record-stat strong {
    font-size: 10px;
    line-height: 1;
  }

  .mobile-meta-grid .mobile-record-stat {
    justify-content: flex-end;
  }
}

/* Final red-strip cleanup: decorative accents must not read as broken status marks. */
.summary-card::before,
body.route-ranking .summary-card::before,
body.route-ranking .summary-card:nth-child(3)::before,
body.route-ranking .summary-card:nth-child(4)::before,
body.route-portal .portal-list-card::before,
body.route-portal .portal-list-card::after,
body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card::before {
  display: none !important;
  content: none !important;
}

/* Final portal mobile CTA pass: hidden preview lists should read as intentional navigation. */
@media (max-width: 480px) {
  body.route-portal .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    min-height: 38px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 27, 51, 0.07);
  }

  body.route-portal .portal-list-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    min-height: 26px;
    align-items: center;
  }

  body.route-portal .portal-list-header .portal-kicker {
    overflow: hidden;
    max-width: 100%;
    color: #7a4b12;
    font-size: 10px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-portal .portal-list-header strong {
    display: none;
  }

  body.route-portal .portal-list-header a {
    min-height: 26px;
    padding: 0 9px;
    border-color: rgba(37, 97, 197, 0.18);
    background: #f8fbff;
    color: var(--primary-dark);
    font-size: 10px;
    white-space: nowrap;
  }

  body.route-portal .portal-list {
    display: none !important;
  }
}

/* Final mobile champion context pass: label the small champion row so it does not read as loose buttons. */
@media (max-width: 760px) {
  .mobile-champion-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 1px 2px 0;
    opacity: 1;
  }

  .mobile-champion-row::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(199, 164, 115, 0.28);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
    content: "주력";
    font-size: 9px;
    font-weight: 950;
    white-space: nowrap;
  }

  .mobile-champion-row .champions {
    min-width: 0;
    gap: 4px;
  }

  .mobile-champion-row .champion-icon-wrap,
  .mobile-champion-row .champion-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    border-radius: 50%;
  }

  .mobile-champion-row .champion-icon-wrap {
    border: 1px solid rgba(199, 216, 239, 0.9);
    box-shadow: 0 5px 12px rgba(15, 27, 51, 0.1);
  }

  .mobile-champion-row .champion-icon-wrap::before {
    border-width: 1px;
    border-radius: 50%;
    font-size: 9px;
  }

  .mobile-champion-row .mobile-detail-link {
    min-width: 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .mobile-champion-row .mobile-detail-link::after {
    display: block;
    color: var(--primary-dark);
    content: "\203A";
    font-size: 18px;
    line-height: 1;
  }
}

/* Final profile champion names pass: profile pages should expose champion names, not only icons. */
body.route-profile .profile-champions .profile-champion-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
}

body.route-profile .profile-champion-pill {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  min-height: 32px;
  padding: 3px 8px 3px 3px;
  border: 1px solid rgba(199, 216, 239, 0.9);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 253, 0.98)),
    #ffffff;
  box-shadow: 0 5px 12px rgba(15, 27, 51, 0.08);
}

body.route-profile .profile-champion-pill .champion-icon-wrap,
body.route-profile .profile-champion-pill .champion-icon {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  border-radius: 50%;
}

body.route-profile .profile-champion-pill .champion-icon-wrap::before {
  border-width: 1px;
  border-radius: 50%;
  font-size: 9px;
}

body.route-profile .profile-champion-text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body.route-profile .profile-champion-pill strong {
  overflow: hidden;
  max-width: 72px;
  color: #123b82;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.route-profile .profile-champion-pill em {
  overflow: hidden;
  max-width: 72px;
  color: #66728a;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.route-profile .profile-champion-empty {
  color: #66728a;
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 760px) {
  body.route-profile .profile-champions {
    justify-items: stretch;
  }

  body.route-profile .profile-champions .profile-champion-pills {
    justify-content: flex-end;
    gap: 5px;
  }

  body.route-profile .profile-champion-pill {
    min-height: 28px;
    padding: 2px 7px 2px 2px;
  }

  body.route-profile .profile-champion-pill .champion-icon-wrap,
  body.route-profile .profile-champion-pill .champion-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  body.route-profile .profile-champion-pill strong {
    max-width: 54px;
    font-size: 10px;
  }

  body.route-profile .profile-champion-pill em {
    max-width: 54px;
    font-size: 7.5px;
  }
}

@media (max-width: 340px) {
  body.route-profile .profile-champion-pill strong,
  body.route-profile .profile-champion-pill em {
    max-width: 42px;
  }
}

/* Final profile mobile insight pass: keep the champion summary compact while showing names. */
@media (max-width: 480px) {
  body.route-profile .profile-insight-card:nth-child(2) {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  body.route-profile .profile-champion-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
    gap: 5px;
  }

  body.route-profile .profile-champion-list li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
    min-height: 28px;
    padding: 2px 6px 2px 2px;
    border: 1px solid rgba(199, 216, 239, 0.9);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 5px 12px rgba(15, 27, 51, 0.08);
  }

  body.route-profile .profile-champion-list li + li {
    margin-left: 0;
  }

  body.route-profile .profile-champion-list .champion-icon-wrap,
  body.route-profile .profile-champion-list .champion-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-radius: 50%;
  }

  body.route-profile .profile-champion-list li div {
    display: grid;
    min-width: 0;
  }

  body.route-profile .profile-champion-list strong {
    overflow: hidden;
    max-width: 42px;
    color: #123b82;
    font-size: 9px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-champion-list li span:not(.champion-icon-wrap) {
    display: none;
  }
}

/* Final LIVE empty mobile pass: separate current status from the next useful action. */
@media (max-width: 480px) {
  body.route-live.route-live-empty .live-empty-card {
    gap: 9px;
    padding: 10px;
    border-color: rgba(245, 201, 107, 0.36);
    background:
      radial-gradient(circle at 92% 4%, rgba(245, 201, 107, 0.18), transparent 30%),
      linear-gradient(180deg, rgba(255, 250, 238, 0.98), rgba(255, 255, 255, 0.98) 54%, rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-live.route-live-empty .live-empty-copy {
    gap: 8px;
  }

  body.route-live.route-live-empty .live-empty-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-live.route-live-empty .live-empty-status-grid span {
    min-height: 48px;
    padding: 6px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
  }

  body.route-live.route-live-empty .live-empty-status-grid span:first-child {
    border-color: rgba(245, 201, 107, 0.52);
    background: #fff8e6;
  }

  body.route-live.route-live-empty .live-empty-status-grid em {
    font-size: 8px;
  }

  body.route-live.route-live-empty .live-empty-status-grid strong {
    overflow: visible;
    font-size: 12px;
    line-height: 1.08;
    text-overflow: clip;
    white-space: normal;
    word-break: keep-all;
  }

  body.route-live.route-live-empty .live-empty-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(220, 228, 240, 0.76);
  }

  body.route-live.route-live-empty .live-empty-actions a,
  body.route-live.route-live-empty .live-empty-actions button {
    min-height: 34px;
    padding: 0 6px;
    border-radius: 10px;
    background: #ffffff;
    font-size: 10px;
  }

  body.route-live.route-live-empty .live-empty-actions a:first-child {
    grid-column: 1 / -1;
    min-height: 36px;
    background: var(--gold-button);
    font-size: 11px;
  }

  body.route-live.route-live-empty .live-empty-more {
    margin-top: 2px;
    padding: 8px;
    border-color: rgba(217, 228, 242, 0.94);
    background: rgba(255, 255, 255, 0.88);
  }

  body.route-live.route-live-empty .live-empty-suggestions {
    gap: 6px;
    padding: 7px;
    background: rgba(248, 251, 255, 0.78);
  }

  body.route-live.route-live-empty .live-empty-suggestion {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 44px;
    padding: 5px 7px;
  }

  body.route-live.route-live-empty .live-empty-suggestion b {
    color: var(--primary);
    font-size: 10px;
  }
}

/* Final role/group mobile CTA pass: landing cards should offer an immediate next step. */
@media (max-width: 480px) {
  body.route-role .role-leader-card,
  body.route-group .group-leader-card {
    align-items: stretch;
  }

  body.route-role .role-leader-copy,
  body.route-group .group-leader-copy {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    max-width: 178px;
    margin-top: 2px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }

  body.route-role .role-leader-actions a:first-child,
  body.route-group .group-leader-actions a:first-child {
    border-color: rgba(245, 201, 107, 0.62);
    background: var(--gold-button);
    color: #3b2608;
  }

  body.route-role .role-leader-actions a:nth-child(2),
  body.route-group .group-leader-actions a:nth-child(2) {
    border-color: rgba(37, 97, 197, 0.2);
    background: rgba(248, 251, 255, 0.94);
    color: var(--primary-dark);
  }

  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile {
    align-self: center;
  }
}

@media (max-width: 340px) {
  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    max-width: 152px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    min-height: 28px;
    padding: 0 6px;
    font-size: 9px;
  }
}

/* Final accent artifact pass: no decorative card strips that can be mistaken for status markers. */
.filter-panel::before,
.summary-card::before,
.summary-card::after,
body.route-ranking .table-card::before,
body.route-ranking .table-card::after,
body.route-ranking .table-card-top::after,
body.route-ranking .table-card-top > div:first-child::before,
body.route-role .role-dashboard::before,
body.route-role .role-dashboard::after,
body.route-role .role-leader-card::before,
body.route-role .role-leader-card::after,
body.route-role .role-metric-card::before,
body.route-role .role-runners-card::before,
body.route-role .role-switch-card::before,
body.route-role .role-runner-row::before,
body.route-group .group-leader-card::before,
body.route-group .group-leader-card::after,
body.route-group .group-metric-card::before,
body.route-group .group-roster-card::before,
body.route-group .group-member-row::before,
body.route-group .group-member-row::after,
body.route-group .group-related-card::before,
body.route-group .group-related-card::after,
body.route-live:not(.route-live-empty) .live-list-card::after,
body.route-portal .portal-list-card::before,
body.route-portal .portal-list-card::after,
body.route-portal .portal-profile-row::before,
body.route-portal .portal-profile-row::after,
body.route-portal .portal-champion-row::before,
body.route-portal .portal-champion-row::after,
body.route-portal .portal-link-tile::before,
body.route-portal .portal-link-tile::after {
  display: none !important;
  content: none !important;
}

/* Final SEO mobile entry pass: get role/group visitors into the ranking cards faster. */
@media (max-width: 480px) {
  body.route-role .role-dashboard,
  body.route-group .group-dashboard {
    gap: 8px;
  }

  body.route-role .role-metric-card {
    gap: 5px;
    min-height: 0;
    padding: 7px 9px;
  }

  body.route-role .role-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-role .role-metric-grid span {
    min-height: 36px;
    padding: 5px 8px;
    border-radius: 9px;
  }

  body.route-role .role-metric-grid span:nth-child(n + 3) {
    display: none;
  }

  body.route-role .role-metric-grid em {
    font-size: 9px;
    line-height: 1.05;
  }

  body.route-role .role-metric-grid strong {
    font-size: 12px;
    line-height: 1.08;
  }

  body.route-role .role-metric-card p {
    display: none !important;
  }

  body.route-group .group-related-card {
    gap: 6px;
    padding: 8px;
  }

  body.route-group .group-related-header {
    align-items: center;
    flex-direction: row;
    gap: 6px;
  }

  body.route-group .group-related-header strong {
    overflow: hidden;
    max-width: 170px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-group .group-related-grid {
    gap: 4px;
  }

  body.route-group .group-related-link {
    min-height: 40px;
    padding: 5px;
    border-radius: 10px;
  }

  body.route-group .group-related-link em {
    display: none;
  }
}

/* Final portal entry pass: make trend/champion/guide pages land on ranking content sooner. */
@media (max-width: 480px) {
  body.route-portal .hero,
  body.route-portal .hero-inner {
    min-height: 132px;
  }

  body.route-portal .hero-inner {
    padding: 10px 16px 15px;
  }

  body.route-portal .hero-emblem svg {
    width: 29px;
    height: 29px;
  }

  body.route-portal .hero h1 {
    margin: 3px 0;
    font-size: 28px;
    line-height: 1.02;
  }

  body.route-portal .hero p {
    max-width: 270px;
    font-size: 11px;
    line-height: 1.22;
  }

  body.route-portal .portal-dashboard {
    gap: 5px;
    margin: 4px 0 7px;
  }

  body.route-portal .portal-hero-card,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card {
    position: relative;
    gap: 5px;
    padding: 9px 10px 10px;
    border-radius: 12px;
  }

  body.route-portal .portal-hero-card .portal-kicker {
    max-width: 128px;
  }

  body.route-portal .portal-hero-card h2 {
    padding-right: 0;
    font-size: 18px;
    line-height: 1.12;
  }

  body.route-portal .portal-hero-card p {
    display: none !important;
  }

  body.route-portal .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid {
    gap: 4px;
  }

  body.route-portal .portal-metric-grid span,
  body.route-portal .portal-metric-grid span:last-child,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
    min-height: 34px;
    padding: 5px;
    border-radius: 9px;
  }

  body.route-portal .portal-metric-grid b {
    display: none;
  }

  body.route-portal .portal-metric-grid strong {
    font-size: 13px;
    line-height: 1.05;
  }

  body.route-portal .portal-hero-cta {
    position: absolute;
    top: 8px;
    right: 9px;
    overflow: hidden;
    max-width: 128px;
    min-height: 22px;
    padding: 0 8px;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-portal .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    min-height: 30px;
    padding: 5px 7px;
  }
}

/* Final portal desktop affordance pass: make preview links read as useful next steps. */
@media (min-width: 901px) {
  body.route-portal .portal-list-card {
    border-color: rgba(199, 216, 239, 0.92);
  }

  body.route-portal .portal-list-header a {
    border-color: rgba(37, 97, 197, 0.2);
    background: rgba(248, 251, 255, 0.92);
    box-shadow: 0 7px 16px rgba(15, 27, 51, 0.06);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  body.route-portal .portal-list-header a:hover,
  body.route-portal .portal-list-header a:focus-visible {
    border-color: rgba(199, 164, 115, 0.58);
    box-shadow: 0 10px 22px rgba(154, 113, 50, 0.13);
    outline: none;
    transform: translateY(-1px);
  }

  body.route-portal .portal-profile-row,
  body.route-portal .portal-link-tile {
    border-color: rgba(217, 228, 242, 0.96);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
    box-shadow: 0 6px 16px rgba(15, 27, 51, 0.04);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  body.route-portal .portal-profile-row:hover,
  body.route-portal .portal-profile-row:focus-visible,
  body.route-portal .portal-link-tile:hover,
  body.route-portal .portal-link-tile:focus-visible {
    border-color: rgba(199, 164, 115, 0.54);
    box-shadow: 0 12px 26px rgba(15, 27, 51, 0.1);
    outline: none;
    transform: translateY(-1px);
  }

  body.route-portal .portal-profile-row b {
    min-width: 38px;
    padding: 4px 9px;
    border: 1px solid rgba(199, 164, 115, 0.34);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
    text-align: center;
  }

  body.route-portal .portal-link-tile span {
    width: fit-content;
    padding: 3px 9px;
    border: 1px solid rgba(37, 97, 197, 0.16);
    border-radius: 999px;
    background: #eef5ff;
  }

  body.route-portal .portal-champion-row {
    border-color: rgba(217, 228, 242, 0.92);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }
}

/* Final leaderboard desktop action pass: make row details read as profile navigation. */
@media (min-width: 1280px) {
  .leaderboard-table th:nth-child(12),
  .leaderboard-table td:nth-child(12) {
    width: 62px;
    padding-inline: 6px;
  }

  .leaderboard-table .detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 44px;
    height: 30px;
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 950;
  }

  .leaderboard-table .detail-link::before {
    content: "상세";
  }

  .leaderboard-table .detail-link span {
    font-size: 16px;
    transform: translateY(-1px);
  }

  .leaderboard-table tbody tr:hover .channel-name,
  .leaderboard-table tbody tr:focus-within .channel-name {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .leaderboard-table tbody tr:focus-within td {
    background-color: rgba(234, 241, 255, 0.44);
    box-shadow: inset 0 1px 0 rgba(37, 97, 197, 0.06), inset 0 -1px 0 rgba(37, 97, 197, 0.08);
  }
}

/* Final LIVE profile-image pass: keep mobile LIVE previews centered on streamer profile photos, not broadcast thumbnails. */
@media (max-width: 480px) {
  body.route-live:not(.route-live-empty) .live-hero-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    display: grid !important;
    place-items: center;
    align-self: center;
    justify-self: end;
    width: 48px;
    height: 48px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    display: inline-flex !important;
    width: 36px;
    height: 36px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap.image-fallback {
    overflow: visible;
    border-radius: 50%;
    background: transparent;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap.image-fallback::before {
    inset: 0;
    border: 1px solid rgba(219, 230, 244, 0.95);
    border-radius: 50%;
    background:
      radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.98), transparent 34%),
      linear-gradient(145deg, #f4f8ff, #cfdbef 48%, #97accb);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    color: #244266;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-live-label {
    right: -4px;
    bottom: -4px;
    min-width: 24px;
    height: 14px;
    padding: 0 4px;
    font-size: 7px;
  }
}

/* Final small-strip guard: keep non-data decorations from reading as red error marks. */
@media (max-width: 760px) {
  body.route-live .live-hero-card::before,
  body.route-live .live-hero-card::after,
  body.route-live.route-live-empty .live-empty-card::before,
  body.route-live.route-live-empty .live-empty-card::after,
  body.route-live.route-live-empty .live-empty-suggestion::before,
  body.route-live .live-list-header strong::before,
  body.route-profile .profile-spotlight-card::before,
  body.route-profile .profile-spotlight-card::after,
  body.route-portal .portal-hero-card::before,
  body.route-portal .portal-hero-card::after,
  body.route-portal .portal-list-header strong::before,
  body.route-ranking .summary-card::before,
  body.route-ranking .summary-card::after,
  body.route-ranking .table-card::before,
  body.route-ranking .table-card::after,
  body.route-ranking .table-card-top::before,
  body.route-ranking .table-card-top::after,
  body.route-profile .profile-path-card::before,
  body.route-profile .profile-path-card::after,
  body.route-profile .profile-card::before,
  body.route-profile .profile-card::after,
  body.route-group .group-leader-card::before,
  body.route-group .group-leader-card::after,
  body.route-role .role-leader-card::before,
  body.route-role .role-leader-card::after,
  .mobile-rank-card::before,
  .mobile-rank-card::after {
    display: none !important;
    content: none !important;
  }
}

/* Final role/group mobile entry pass: keep SEO context, but bring the ranking cards forward. */
@media (max-width: 480px) {
  body.route-role .role-dashboard,
  body.route-group .group-dashboard {
    gap: 6px;
    margin: 0 0 8px;
  }

  body.route-role .role-leader-card,
  body.route-group .group-leader-card {
    gap: 9px;
    padding: 11px 12px;
    border-radius: 13px;
  }

  body.route-role .role-leader-copy,
  body.route-group .group-leader-copy {
    gap: 4px;
  }

  body.route-role .role-leader-copy h2,
  body.route-group .group-leader-copy h2 {
    font-size: 21px;
    line-height: 1.05;
  }

  body.route-role .role-leader-copy p,
  body.route-group .group-leader-copy p {
    display: none;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    max-width: 166px;
    margin-top: 1px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    min-height: 27px;
    padding: 0 8px;
    font-size: 10px;
  }

  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile {
    min-width: 86px;
    min-height: 82px;
    padding: 8px;
    border-radius: 13px;
  }

  body.route-role .role-leader-profile .avatar-wrap,
  body.route-role .role-leader-profile .avatar,
  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar {
    width: 46px;
    height: 46px;
  }

  body.route-role .role-leader-profile .tier-emblem,
  body.route-group .group-leader-profile .tier-emblem {
    right: 12px;
    bottom: 8px;
    width: 28px;
    height: 20px;
  }

  body.route-role .role-metric-card,
  body.route-group .group-related-card {
    padding: 7px 8px;
    border-radius: 12px;
  }

  body.route-role .role-metric-grid span,
  body.route-group .group-related-link {
    min-height: 34px;
  }

  body.route-group .group-related-header strong {
    max-width: 150px;
  }
}

@media (max-width: 340px) {
  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile {
    min-width: 74px;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    max-width: 142px;
  }
}

/* Final group desktop entry pass: keep exploration links, but stop them from burying the leaderboard. */
@media (min-width: 901px) {
  body.route-group .group-related-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    grid-template-areas:
      "header profiles"
      "links profiles";
    align-items: center;
    gap: 10px 16px;
    min-height: 0;
    padding: 14px 16px;
  }

  body.route-group .group-related-header {
    grid-area: header;
    align-items: center;
    min-width: 0;
  }

  body.route-group .group-related-header strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-group .group-related-grid {
    grid-area: links;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
  }

  body.route-group .group-related-link {
    min-height: 54px;
    padding: 8px 10px;
    border-radius: 11px;
  }

  body.route-group .group-related-link:nth-child(n + 4) {
    display: none;
  }

  body.route-group .group-related-link strong {
    font-size: 15px;
  }

  body.route-group .group-related-link em {
    font-size: 10px;
  }

  body.route-group .group-related-profiles {
    grid-area: profiles;
    gap: 6px;
    min-width: 0;
    padding-top: 0;
  }

  body.route-group .group-related-profiles > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.route-group .group-related-profile {
    min-height: 46px;
    padding: 6px 8px;
    border-radius: 11px;
  }

  body.route-group .group-related-profile:nth-child(n + 3) {
    display: none;
  }

  body.route-group .group-related-profile .avatar-wrap,
  body.route-group .group-related-profile .avatar {
    width: 28px;
    height: 28px;
  }

  body.route-group .group-related-profile .avatar-live-label {
    display: none;
  }

  body.route-group .group-related-profile strong {
    font-size: 12px;
  }

  body.route-group .group-related-profile em {
    font-size: 10px;
  }
}

/* Final profile desktop entry pass: keep cross-links visible while moving the ranking snapshot up. */
@media (min-width: 901px) {
  body.route-profile .profile-pathways {
    margin: -6px 0 8px;
  }

  body.route-profile .profile-path-card {
    grid-template-columns: minmax(158px, 0.26fr) minmax(0, 1fr) minmax(340px, 0.86fr);
    grid-template-areas: "header links similar";
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
  }

  body.route-profile .profile-path-header {
    grid-area: header;
    gap: 4px;
  }

  body.route-profile .profile-path-header strong {
    font-size: 15px;
    line-height: 1.16;
  }

  body.route-profile .profile-path-grid {
    grid-area: links;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body.route-profile .profile-path-link {
    min-height: 44px;
    padding: 6px 8px;
  }

  body.route-profile .profile-path-link strong {
    font-size: 13px;
  }

  body.route-profile .profile-path-link em {
    display: none;
  }

  body.route-profile .profile-path-similar {
    grid-area: similar;
    grid-column: auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding-top: 0;
    padding-left: 10px;
    border-top: 0;
    border-left: 1px solid rgba(220, 228, 240, 0.86);
  }

  body.route-profile .profile-path-similar > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.route-profile .profile-path-profile {
    min-height: 34px;
    gap: 7px;
    padding: 4px 6px;
  }

  body.route-profile .profile-path-profile .avatar-wrap,
  body.route-profile .profile-path-profile .avatar {
    width: 24px;
    height: 24px;
  }

  body.route-profile .profile-path-profile .avatar-live-label {
    display: none;
  }
}

/* Final mobile channel metadata pass: tags should read as chips, not progress bars. */
@media (max-width: 760px) {
  .mobile-channel-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 4px;
    overflow: visible;
    max-height: none;
    margin-top: 2px;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .mobile-channel-meta .mobile-sub-text {
    flex: 0 0 100%;
    min-height: 13px;
    padding: 0;
    color: #52627a;
    font-size: 9px;
    line-height: 1.18;
  }

  .mobile-channel-meta .chip,
  .mobile-channel-meta .quality-badge {
    flex: 0 1 auto;
    width: auto;
    max-width: min(108px, 48%);
    min-height: 16px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 8px;
    line-height: 16px;
  }

  .mobile-channel-meta .chip {
    border: 1px solid rgba(199, 164, 115, 0.38);
    background: #fffaf0;
    color: #7a4b12;
  }

  .mobile-channel-meta .quality-badge {
    border: 1px solid rgba(37, 97, 197, 0.18);
    background: #f2f7ff;
    color: #31547e;
  }
}

/* Final mobile detail target pass: keep the row action from reading as a tiny stray mark. */
@media (max-width: 760px) {
  .mobile-champion-row .mobile-detail-link,
  .mobile-detail-link {
    display: inline-grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .mobile-champion-row .mobile-detail-link::after,
  .mobile-detail-link::after {
    display: block;
    color: var(--primary-dark);
    content: "\203A";
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
  }
}

/* Final mobile tap-target pass: keep visible navigation and row links comfortably clickable. */
@media (max-width: 760px) {
  .main-nav a {
    min-height: 38px;
    align-items: center;
  }

  .tabs button,
  body.route-ranking .tabs button,
  body.route-live:not(.route-live-empty) .tabs button,
  body.route-role .tabs button,
  body.route-group .tabs button,
  body.route-profile .tabs button {
    min-height: 36px;
  }

  .mobile-channel .channel-name {
    min-height: 30px;
    align-items: center;
    padding: 2px 0;
  }
}

/* Final desktop summary artifact pass: summary cards should not show stray strips or watermark-like smudges. */
@media (min-width: 901px) {
  body.route-ranking .summary-card {
    overflow: hidden;
  }

  body.route-ranking .summary-card::before {
    display: none !important;
    content: none !important;
  }

  body.route-ranking .summary-card::after {
    display: none !important;
    content: none !important;
  }

  body.route-ranking .summary-card:first-child {
    background:
      linear-gradient(135deg, #061229, #123b82 68%, #0d2857),
    #061229;
  }
}

/* Final LIVE empty disclosure pass: make fallback rankings feel like a clear tap target. */
@media (max-width: 480px) {
  body.route-live.route-live-empty .live-empty-more summary {
    min-height: 44px;
    padding: 0 2px 6px;
    gap: 10px;
    font-size: 13px;
  }

  body.route-live.route-live-empty .live-empty-more summary::after {
    width: 32px;
    height: 32px;
    box-shadow: 0 6px 14px rgba(37, 97, 197, 0.1);
    font-size: 15px;
    font-weight: 950;
  }

  body.route-live.route-live-empty .live-empty-more[open] summary {
    border-bottom-color: rgba(199, 216, 239, 0.92);
  }
}

/* Final role/group hero CTA pass: keep primary actions tappable without burying rankings. */
@media (max-width: 480px) {
  body.route-role .role-leader-card,
  body.route-group .group-leader-card {
    gap: 6px;
    padding: 8px 10px;
  }

  body.route-role .role-leader-copy,
  body.route-group .group-leader-copy {
    gap: 3px;
  }

  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    max-width: 172px;
    margin-top: 0;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }

  body.route-role .role-leader-profile,
  body.route-group .group-leader-profile {
    min-height: 76px;
    padding: 6px;
  }

  body.route-role .role-leader-profile .avatar-wrap,
  body.route-role .role-leader-profile .avatar,
  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar {
    width: 44px;
    height: 44px;
  }

  body.route-role .role-leader-profile .tier-emblem,
  body.route-group .group-leader-profile .tier-emblem {
    right: 10px;
    bottom: 6px;
  }
}

@media (max-width: 340px) {
  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    max-width: 150px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    min-height: 34px;
    padding: 0 7px;
    font-size: 10px;
  }
}

/* Final portal mobile affordance pass: make the route handoff CTA actually tappable. */
@media (max-width: 480px) {
  body.route-portal .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    min-height: 42px;
    padding: 6px 8px;
  }

  body.route-portal .portal-list-header {
    min-height: 34px;
  }

  body.route-portal .portal-list-header a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
  }
}

/* Final desktop detail affordance pass: keep table row actions unmistakably clickable. */
@media (min-width: 1280px) {
  .leaderboard-table .col-detail {
    width: 76px;
  }

  .leaderboard-table th:nth-child(12),
  .leaderboard-table td:nth-child(12) {
    width: 76px;
    padding-inline: 8px;
    overflow: visible;
  }

  .leaderboard-table .detail-link {
    min-width: 52px;
    width: auto;
    height: 34px;
    padding: 0 10px;
    border-color: #cbdcf4;
    background: linear-gradient(180deg, #ffffff, #f2f7ff);
    box-shadow: 0 8px 18px rgba(37, 97, 197, 0.1);
  }

  .leaderboard-table .detail-link:hover,
  .leaderboard-table .detail-link:focus-visible {
    border-color: #8eb3ef;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(37, 97, 197, 0.16);
  }

  .leaderboard-table .detail-link::before {
    content: "프로필";
  }

  .leaderboard-table tbody tr:hover .detail-link,
  .leaderboard-table tbody tr:focus-within .detail-link {
    border-color: rgba(199, 164, 115, 0.5);
    background: #fff8e6;
    color: #7a4b12;
    box-shadow: 0 10px 22px rgba(154, 113, 50, 0.14);
  }
}

/* Final profile mobile clarity pass: make the streamer snapshot read as a profile card, not a squeezed table row. */
@media (max-width: 480px) {
  body.route-profile .profile-spotlight-card {
    gap: 7px;
    padding: 9px;
  }

  body.route-profile .profile-tier-panel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    min-height: 58px;
    gap: 10px;
    padding: 8px 10px;
    overflow: hidden;
  }

  body.route-profile .profile-tier-panel .tier-emblem {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }

  body.route-profile .profile-tier-panel > div {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  body.route-profile .profile-tier-panel strong {
    overflow: hidden;
    color: var(--tier-color);
    font-size: 15px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-tier-panel .profile-lp-text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    min-width: 0;
    line-height: 1.08;
  }

  body.route-profile .profile-tier-panel .profile-lp-text span:first-child {
    color: var(--text-main);
    font-size: 11px;
    font-weight: 950;
  }

  body.route-profile .profile-tier-panel .profile-lp-delta {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    font-size: 11px;
  }

  body.route-profile .profile-stat-grid {
    gap: 5px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    min-width: 0;
    min-height: 34px;
    padding: 5px 4px;
    border-color: #dbe6f5;
    background: #ffffff;
  }
}

@media (min-width: 341px) and (max-width: 480px) {
  body.route-profile .profile-stat-grid em {
    display: block;
    margin-bottom: 2px;
    color: #6a7690;
    font-size: 9px;
    line-height: 1;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 11px;
    line-height: 1.08;
  }
}

/* Final LIVE mobile hero pass: restore the broadcast actions without crowding the first ranking card. */
@media (max-width: 480px) {
  body.route-live:not(.route-live-empty) .live-hero-card {
    grid-template-columns: minmax(0, 1fr) 58px;
    align-items: stretch;
    min-height: 86px;
    gap: 8px;
    padding: 9px 10px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy {
    align-content: center;
    gap: 4px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy h2 {
    font-size: 18px;
    line-height: 1.06;
  }

  body.route-live:not(.route-live-empty) .live-hero-meta {
    display: block;
    overflow: hidden;
    color: #f8d27d;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy p {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions a {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    display: grid !important;
    align-content: center;
    justify-items: center;
    width: 58px;
    height: auto;
    min-height: 58px;
    gap: 2px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    display: inline-flex !important;
    width: 34px;
    height: 34px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile strong,
  body.route-live:not(.route-live-empty) .live-hero-profile span {
    display: none;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .champions {
    display: none;
  }
}

/* Final portal desktop affordance pass: make secondary panels feel like navigation, not static notes. */
@media (min-width: 901px) {
  body.route-portal .portal-list-card {
    gap: 15px;
  }

  body.route-portal .portal-list-header a {
    min-width: 94px;
    min-height: 38px;
    padding: 0 15px;
    border-color: rgba(37, 97, 197, 0.22);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.98)),
      #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 8px 18px rgba(37, 97, 197, 0.09);
  }

  body.route-portal .portal-list-header a:hover,
  body.route-portal .portal-list-header a:focus-visible {
    border-color: rgba(199, 164, 115, 0.62);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 97, 197, 0.14);
    transform: translateY(-1px);
  }

  body.route-portal .portal-profile-row,
  body.route-portal .portal-link-tile,
  body.route-portal .portal-champion-row {
    min-height: 70px;
    border-color: rgba(207, 220, 240, 0.92);
    box-shadow: 0 6px 16px rgba(15, 27, 51, 0.045);
  }

  body.route-portal .portal-profile-row:hover,
  body.route-portal .portal-profile-row:focus-visible,
  body.route-portal .portal-link-tile:hover,
  body.route-portal .portal-link-tile:focus-visible,
  body.route-portal .portal-champion-row:hover,
body.route-portal .portal-champion-row:focus-visible {
    border-color: rgba(199, 164, 115, 0.54);
    box-shadow: 0 12px 26px rgba(15, 27, 51, 0.1);
    outline: none;
    transform: translateY(-1px);
  }
}

/* Final LIVE empty desktop navigation pass: make the no-live state feel actionable, not decorative. */
@media (min-width: 901px) {
  body.route-live.route-live-empty .live-empty-feature {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.62fr);
    align-items: stretch;
    min-height: 304px;
    padding: 30px;
  }

  body.route-live.route-live-empty .live-empty-card::after {
    content: none !important;
  }

  body.route-live.route-live-empty .live-empty-copy {
    align-content: center;
    max-width: none;
    padding-right: 26px;
    border-right: 1px solid rgba(207, 220, 240, 0.72);
  }

  body.route-live.route-live-empty .live-empty-actions {
    gap: 9px;
  }

  body.route-live.route-live-empty .live-empty-actions a,
  body.route-live.route-live-empty .live-empty-actions button {
    min-height: 40px;
    padding: 0 16px;
    border-color: rgba(37, 97, 197, 0.18);
    box-shadow: 0 8px 18px rgba(37, 97, 197, 0.07);
  }

  body.route-live.route-live-empty .live-empty-actions a:hover,
  body.route-live.route-live-empty .live-empty-actions a:focus-visible,
  body.route-live.route-live-empty .live-empty-actions button:hover,
  body.route-live.route-live-empty .live-empty-actions button:focus-visible {
    border-color: rgba(199, 164, 115, 0.56);
    box-shadow: 0 12px 24px rgba(15, 27, 51, 0.1);
    outline: none;
    transform: translateY(-1px);
  }

  body.route-live.route-live-empty .live-empty-flow {
    max-width: 760px;
  }

  body.route-live.route-live-empty .live-empty-flow span {
    min-height: 66px;
    box-shadow: 0 8px 20px rgba(15, 27, 51, 0.045);
  }

  body.route-live.route-live-empty .live-empty-more {
    align-self: stretch;
    align-content: center;
    gap: 12px;
    padding: 16px;
  }

  body.route-live.route-live-empty .live-empty-more summary {
    min-height: 44px;
    font-size: 13px;
  }

  body.route-live.route-live-empty .live-empty-suggestions {
    gap: 10px;
    padding: 10px;
  }

  body.route-live.route-live-empty .live-empty-suggestion {
    min-height: 68px;
    padding: 10px 12px;
    border-color: rgba(207, 220, 240, 0.92);
    box-shadow: 0 7px 18px rgba(15, 27, 51, 0.045);
  }

  body.route-live.route-live-empty .live-empty-suggestion:hover,
  body.route-live.route-live-empty .live-empty-suggestion:focus-visible {
    border-color: rgba(199, 164, 115, 0.5);
    box-shadow: 0 12px 26px rgba(15, 27, 51, 0.1);
    outline: none;
    transform: translateY(-1px);
  }
}

@media (max-width: 700px) {
  body.route-live.route-live-empty .live-empty-flow {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  body.route-live.route-live-empty .live-empty-flow span {
    grid-template-columns: auto minmax(0, 0.78fr) minmax(0, 1.22fr);
    min-height: 38px;
    padding: 7px 9px;
  }

  body.route-live.route-live-empty .live-empty-flow em {
    grid-row: auto;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  body.route-live.route-live-empty .live-empty-flow strong {
    font-size: 11px;
  }

  body.route-live.route-live-empty .live-empty-flow small {
    font-size: 9.5px;
  }
}

/* Final profile mobile stat pass: keep rank summary values readable without pushing the leaderboard down. */
@media (max-width: 340px) {
  body.route-profile .profile-stat-grid {
    grid-template-columns: minmax(44px, 0.72fr) minmax(60px, 0.96fr) minmax(54px, 0.82fr) minmax(84px, 1.42fr);
  }

  body.route-profile .profile-stat-grid em {
    display: block !important;
    overflow: hidden;
    color: #6a7690;
    font-size: 7px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 34px;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    overflow: hidden;
    font-size: 9px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 341px) and (max-width: 480px) {
  body.route-profile .profile-stat-grid {
    grid-template-columns: minmax(52px, 0.78fr) minmax(68px, 1fr) minmax(58px, 0.86fr) minmax(94px, 1.42fr);
  }

  body.route-profile .profile-stat-grid em {
    display: block !important;
    overflow: hidden;
    color: #6a7690;
    font-size: 8px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 36px;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    overflow: hidden;
    font-size: 10px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Final group narrow hero pass: avoid clipped tier chips; the emblem already carries tier. */
@media (max-width: 340px) {
  body.route-group .group-leader-card .leader-meta-chip[class*="tier-"] {
    display: none !important;
  }

  body.route-group .group-leader-copy {
    min-width: 0;
  }

  body.route-group .leader-meta-row {
    max-width: 176px;
  }
}

/* Final portal hero CTA pass: keep the primary route handoff large enough to tap. */
@media (max-width: 480px) {
  body.route-portal .portal-hero-cta {
    display: inline-flex !important;
    min-width: 124px;
    min-height: 34px;
    max-width: 174px;
    padding: 0 12px;
    border-color: rgba(255, 225, 154, 0.78);
    background: linear-gradient(180deg, #f6cf78, #c7a473);
    box-shadow: 0 10px 20px rgba(6, 18, 41, 0.24);
    color: #07152f;
    font-size: 10.5px;
  }

  body.route-portal .portal-hero-cta::after {
    font-size: 16px;
  }
}

/* Final portal secondary-nav pass: make the preview handoff read as a deliberate action row. */
@media (max-width: 480px) {
  body.route-portal .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    padding: 7px 8px;
    border-color: rgba(199, 216, 239, 0.92);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.96)),
      #ffffff;
    box-shadow: 0 8px 18px rgba(15, 27, 51, 0.07);
  }

  body.route-portal .portal-list-header {
    min-height: 36px;
    gap: 8px;
  }

  body.route-portal .portal-list-header .portal-kicker {
    display: inline-flex;
    align-items: center;
    max-width: min(172px, 58vw);
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(245, 201, 107, 0.78) !important;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff3cf, #fffaf0) !important;
    color: #6f4708 !important;
    font-size: 10.5px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
  }

  body.route-portal .portal-list-header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    min-height: 34px;
    padding: 0 12px;
    border-color: rgba(37, 97, 197, 0.24);
    background: linear-gradient(180deg, #ffffff, #eef5ff);
    box-shadow: 0 6px 14px rgba(37, 97, 197, 0.08);
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 950;
  }
}

/* Final desktop leader-action pass: make role/group hero actions read as primary navigation. */
@media (min-width: 901px) {
  body.route-role .role-leader-actions,
  body.route-group .group-leader-actions {
    gap: 10px;
    margin-top: 6px;
  }

  body.route-role .role-leader-actions a,
  body.route-group .group-leader-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 11px;
    box-shadow: 0 10px 18px rgba(15, 27, 51, 0.08);
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
  }

  body.route-role .role-leader-actions a:first-child,
  body.route-group .group-leader-actions a:first-child {
    border-color: rgba(245, 201, 107, 0.82);
    background: linear-gradient(180deg, #f6cf78, #c7a473);
    color: #3b2608;
  }

  body.route-role .role-leader-actions a:nth-child(2),
  body.route-group .group-leader-actions a:nth-child(2) {
    border-color: rgba(37, 97, 197, 0.28);
    background: linear-gradient(180deg, #ffffff, #eef5ff);
    color: var(--primary-dark);
  }
}

/* Final profile desktop pathway pass: keep cross-page navigation compact but clearly clickable. */
@media (min-width: 901px) {
  body.route-profile .profile-path-card {
    grid-template-columns: minmax(168px, 0.28fr) minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 10px 14px;
    padding: 12px 14px;
    border-color: rgba(199, 216, 239, 0.92);
    background:
      linear-gradient(90deg, rgba(255, 250, 240, 0.62), rgba(255, 255, 255, 0.98) 40%, rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-profile .profile-path-header {
    padding-right: 4px;
  }

  body.route-profile .profile-path-header strong {
    font-size: 16px;
  }

  body.route-profile .profile-path-link {
    min-height: 50px;
    padding: 8px 10px;
    border-color: rgba(199, 216, 239, 0.92);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
  }

  body.route-profile .profile-path-primary {
    border-color: rgba(245, 201, 107, 0.68);
    background: linear-gradient(180deg, #fff7df, #ffffff);
  }

  body.route-profile .profile-path-link span {
    font-size: 10.5px;
  }

  body.route-profile .profile-path-link strong {
    font-size: 13.5px;
  }

  body.route-profile .profile-path-similar {
    gap: 10px;
    padding-left: 14px;
    border-left-color: rgba(199, 216, 239, 0.92);
  }

  body.route-profile .profile-path-title {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(199, 216, 239, 0.92);
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-dark);
  }

  body.route-profile .profile-path-profile {
    min-height: 40px;
    padding: 6px 8px;
    border-color: rgba(199, 216, 239, 0.9);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
  }
}

/* Final guide desktop link-card pass: line guide tiles should read as navigation, not static metrics. */
@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile {
    align-content: space-between;
    gap: 7px;
    min-height: 86px;
    padding: 14px 16px;
    border-color: rgba(199, 216, 239, 0.96);
    background:
      linear-gradient(135deg, #ffffff, #f8fbff 68%),
      #ffffff;
    box-shadow: 0 8px 18px rgba(15, 27, 51, 0.06);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child {
    border-color: rgba(245, 201, 107, 0.72);
    background:
      linear-gradient(135deg, #fff7df, #ffffff 66%),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile span {
    width: fit-content;
    padding: 4px 10px;
    border-color: rgba(37, 97, 197, 0.22);
    background: #eef5ff;
    color: var(--primary);
    font-size: 11px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.05;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile em {
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 900;
  }
}

/* Final LIVE first-view pass: keep broadcast context, but let the first rank card enter sooner on 320px phones. */
@media (max-width: 340px) {
  body.route-live:not(.route-live-empty) .mobile-filter-toggle {
    height: 38px;
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 6px;
    padding: 7px 8px;
  }

  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed input,
  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed .primary-button {
    min-height: 40px;
    height: 40px;
  }

  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed .primary-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 3px;
    margin: 0 0 4px;
  }

  body.route-live:not(.route-live-empty) .live-hero-card {
    grid-template-columns: minmax(0, 1fr) 52px;
    min-height: 72px;
    gap: 6px;
    padding: 7px 8px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy {
    gap: 3px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy .live-panel-kicker {
    min-height: 18px;
    padding: 0 6px;
    font-size: 9px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy h2 {
    font-size: 17px;
  }

  body.route-live:not(.route-live-empty) .live-hero-meta {
    font-size: 9px;
    line-height: 1.15;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy p {
    display: none;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions {
    gap: 4px;
    margin-top: 1px;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions a {
    min-height: 28px;
    padding: 0 7px;
    font-size: 9px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    width: 52px;
    min-height: 52px;
    padding: 5px;
    border-radius: 14px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 30px;
    height: 30px;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    min-height: 32px;
    padding: 4px 7px;
  }

  body.route-live:not(.route-live-empty) .table-card-top {
    gap: 5px;
    padding: 8px 10px 5px;
  }

  body.route-live:not(.route-live-empty) .table-card h2 {
    font-size: 17px;
    line-height: 1.1;
  }
}

/* Final role desktop runner cleanup: runner cards should not carry clipped watermark text behind data chips. */
@media (min-width: 901px) {
  body.route-role .role-runners-card::after {
    display: none !important;
    content: none !important;
  }
}

/* Final profile desktop watermark cleanup: keep the profile hero focused on streamer stats. */
@media (min-width: 901px) {
  body.route-profile .profile-spotlight-card::after {
    display: none !important;
    content: none !important;
  }
}

/* Final group desktop data-card cleanup: keep group summary and roster cards free of watermark labels. */
@media (min-width: 901px) {
  body.route-group .group-metric-card::after,
  body.route-group .group-roster-card::after {
    display: none !important;
    content: none !important;
  }
}

/* Final footer strip cleanup: remove the thin decorative rule that can read as a red artifact. */
.site-footer::before {
  display: none !important;
  content: none !important;
}

/* Final role desktop data-card cleanup: keep lane summary metrics free of watermark labels. */
@media (min-width: 901px) {
  body.route-role .role-metric-card::after {
    display: none !important;
    content: none !important;
  }
}

/* Final profile desktop hero pass: soften the split background so profile stats read as one snapshot. */
@media (min-width: 901px) {
  body.route-profile .profile-spotlight-card {
    border-color: rgba(199, 216, 239, 0.92);
    background:
      radial-gradient(circle at 16% 18%, rgba(245, 201, 107, 0.18), transparent 30%),
      radial-gradient(circle at 86% 0%, rgba(77, 138, 255, 0.18), transparent 34%),
      linear-gradient(108deg, #07152f 0%, #0d2857 34%, #dfeaff 100%) !important;
  }
}

/* Final group related-card hierarchy pass: keep the section title attached to exploration links. */
@media (min-width: 901px) {
  body.route-group .group-related-header {
    display: grid;
    justify-content: start;
    justify-items: start;
    gap: 2px;
  }

  body.route-group .group-related-header strong {
    max-width: 100%;
    text-align: left;
  }

  body.route-group .group-related-profiles {
    align-self: stretch;
    padding-left: 14px;
    border-left: 1px solid rgba(199, 216, 239, 0.72);
  }

  body.route-group .group-related-title {
    align-self: start;
    text-align: left;
  }
}

/* Final portal accent-bar cleanup: tiny colored strips can read as broken status marks. */
body.route-portal .portal-metric-grid span,
body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span,
body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span,
body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span:first-child {
  border-left-width: 1px;
  border-left-color: rgba(255, 255, 255, 0.18);
}

/* Final LIVE empty desktop compact pass: keep the no-live state useful without a large blank panel. */
@media (min-width: 901px) {
  body.route-live.route-live-empty .live-empty-feature {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.56fr);
    min-height: 258px;
    padding: 24px 30px;
  }

  body.route-live.route-live-empty .live-empty-copy {
    gap: 9px;
    padding-right: 22px;
  }

  body.route-live.route-live-empty .live-empty-card strong {
    font-size: 21px;
  }

  body.route-live.route-live-empty .live-empty-status-grid {
    max-width: 560px;
  }

  body.route-live.route-live-empty .live-empty-status-grid span {
    min-height: 58px;
    padding: 9px 10px;
  }

  body.route-live.route-live-empty .live-empty-actions a,
  body.route-live.route-live-empty .live-empty-actions button {
    min-height: 40px;
    padding: 0 14px;
  }

  body.route-live.route-live-empty .live-empty-more {
    padding: 14px;
  }

  body.route-live.route-live-empty .live-empty-more summary {
    min-height: 44px;
  }

  body.route-live.route-live-empty .live-empty-suggestion {
    min-height: 66px;
    padding: 8px 11px;
  }
}

/* Final role runner-count pass: make the chaser count read as a status badge, not a loose numeral. */
body.route-role .role-runners-header {
  align-items: center;
}

body.route-role .role-runners-header strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 46px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--role-accent, #2561c5) 28%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--role-surface, #eef5ff) 78%, #ffffff);
  color: var(--role-deep, #123b82);
  font-size: 15px;
  line-height: 1;
}

body.route-role .role-runners-header strong::after {
  margin-left: 1px;
  content: "명";
  font-size: 10px;
  font-weight: 950;
}

/* Final role mobile overview pass: keep all four lane metrics visible without delaying the ranking list. */
@media (max-width: 480px) {
  body.route-role .role-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  body.route-role .role-metric-grid span:nth-child(n + 3) {
    display: grid;
  }

  body.route-role .role-metric-grid span {
    min-height: 34px;
    padding: 5px 4px;
  }

  body.route-role .role-metric-grid em {
    font-size: 8px;
    text-align: center;
  }

  body.route-role .role-metric-grid strong {
    font-size: 11px;
    text-align: center;
  }
}

/* Final group roster-count pass: match role pages by presenting roster totals as status badges. */
body.route-group .group-roster-header {
  align-items: center;
}

body.route-group .group-roster-header strong {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 46px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(199, 164, 115, 0.32);
  border-radius: 999px;
  background: #fff8e6;
  color: #7a4b12;
  font-size: 15px;
  line-height: 1;
}

body.route-role .role-runners-header strong::after,
body.route-group .group-roster-header strong::after {
  margin-left: 1px;
  content: "\BA85";
  font-size: 10px;
  font-weight: 950;
}

/* Final LIVE mid-phone density pass: show the first live ranking card sooner on common 390px phones. */
@media (min-width: 341px) and (max-width: 480px) {
  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed {
    gap: 7px;
    padding: 8px 9px;
  }

  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed input,
  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed .primary-button {
    min-height: 42px;
    height: 42px;
  }

  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 5px;
    margin: 2px 0 6px;
  }

  body.route-live:not(.route-live-empty) .live-hero-card {
    grid-template-columns: minmax(0, 1fr) 54px;
    min-height: 78px;
    gap: 7px;
    padding: 8px 9px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy {
    gap: 3px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy .live-panel-kicker {
    min-height: 18px;
    padding: 0 7px;
    font-size: 9px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy h2 {
    font-size: 18px;
    line-height: 1.05;
  }

  body.route-live:not(.route-live-empty) .live-hero-meta {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #f8d27d;
    font-size: 9px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy p {
    display: none;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions {
    gap: 4px;
    margin-top: 1px;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions a {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 9px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    width: 54px;
    min-height: 54px;
    padding: 5px;
    border-radius: 14px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 31px;
    height: 31px;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    min-height: 34px;
    padding: 5px 8px;
  }
}

/* Final profile mobile champion-strip pass: keep champion context without delaying the ranking snapshot. */
@media (max-width: 480px) {
  body.route-profile .profile-insights {
    gap: 0;
    margin: 0 0 8px;
  }

  body.route-profile .profile-insight-card:nth-child(2) {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 8px 10px;
    border-radius: 13px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-insight-header {
    display: grid;
    justify-content: start;
    gap: 1px;
    min-width: 72px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-insight-header span {
    font-size: 10px;
    line-height: 1.05;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-insight-header strong {
    font-size: 15px;
    line-height: 1.05;
    text-align: left;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list li {
    flex: 0 1 auto;
    min-width: 0;
    gap: 4px;
    padding: 3px 6px 3px 4px;
    border-radius: 999px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list .champion-icon-wrap,
  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list .champion-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list strong {
    max-width: 42px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list span {
    display: none;
  }
}

/* Final profile mobile table-toolbar pass: profile detail pages need a compact one-result toolbar. */
@media (max-width: 480px) {
  body.route-profile .table-card-top {
    gap: 6px;
    padding: 8px 10px 5px;
  }

  body.route-profile .table-card h2 {
    font-size: 18px;
    line-height: 1.12;
  }

  body.route-profile .table-actions {
    grid-template-columns: minmax(112px, 1fr) 82px 34px;
    gap: 4px;
  }

  body.route-profile .tabs {
    min-height: 36px;
  }

  body.route-profile .tabs button {
    min-height: 36px;
    font-size: 10px;
  }

  body.route-profile .sort-select select,
  body.route-profile .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
  }

  body.route-profile .mobile-list {
    padding-top: 7px;
  }
}

/* Final role mobile metric-strip pass: keep lane context as a short status strip before cards. */
@media (max-width: 480px) {
  body.route-role .role-metric-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 7px 8px;
    border-radius: 13px;
  }

  body.route-role .role-metric-card .role-panel-kicker {
    min-width: 44px;
    font-size: 10px;
    line-height: 1.05;
  }

  body.route-role .role-metric-card p {
    display: none;
  }

  body.route-role .role-metric-grid {
    gap: 4px;
  }

  body.route-role .role-metric-grid span {
    min-height: 31px;
    padding: 4px 3px;
    border-radius: 9px;
  }

  body.route-role .role-metric-grid em {
    font-size: 7px;
    line-height: 1;
  }

  body.route-role .role-metric-grid strong {
    font-size: 10px;
    line-height: 1.05;
  }
}

/* Final group mobile related-strip pass: keep discovery links without burying the group leaderboard. */
@media (max-width: 480px) {
  body.route-group .group-related-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 7px 8px;
    border-radius: 13px;
  }

  body.route-group .group-related-header {
    display: grid;
    align-content: center;
    min-width: 48px;
    gap: 1px;
  }

  body.route-group .group-related-header .group-panel-kicker {
    font-size: 10px;
    line-height: 1.05;
  }

  body.route-group .group-related-header strong {
    display: none;
  }

  body.route-group .group-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
  }

  body.route-group .group-related-link:nth-child(n + 4) {
    display: none;
  }

  body.route-group .group-related-link {
    position: relative;
    align-content: center;
    min-height: 40px;
    gap: 1px;
    padding: 5px 18px 5px 7px;
    border-color: rgba(207, 220, 240, 0.98);
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
      #ffffff;
    box-shadow: 0 5px 12px rgba(15, 27, 51, 0.045);
  }

  body.route-group .group-related-link::after {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(37, 97, 197, 0.14);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--primary-dark);
    content: ">";
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
  }

  body.route-group .group-related-primary {
    border-color: rgba(245, 201, 107, 0.55);
    background:
      radial-gradient(circle at 92% 12%, rgba(245, 201, 107, 0.24), transparent 32%),
      linear-gradient(180deg, #fffaf0, #ffffff);
  }

  body.route-group .group-related-primary::after {
    border-color: rgba(199, 164, 115, 0.42);
    background: #fff8e6;
    color: #7a4b12;
  }

  body.route-group .group-related-link span {
    font-size: 8px;
    line-height: 1;
  }

  body.route-group .group-related-link strong {
    display: block;
    font-size: 11px;
    line-height: 1.05;
    text-align: left;
    white-space: nowrap;
  }

  body.route-group .group-related-link em {
    display: none;
  }

  body.route-group .group-related-profiles {
    display: none;
  }
}

/* Final guide desktop link-map pass: make lane guide cards read as compact navigation, not large placeholders. */
@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    gap: 14px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    gap: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile {
    align-content: center;
    min-height: 74px;
    padding: 10px 42px 10px 50px;
    box-shadow: 0 8px 18px rgba(37, 97, 197, 0.06);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile::before {
    top: 50%;
    transform: translateY(-50%);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile::after {
    position: absolute;
    top: 50%;
    right: 11px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(37, 97, 197, 0.14);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--primary-dark);
    content: ">";
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    transform: translateY(-50%);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile span {
    width: fit-content;
    max-width: 100%;
    min-height: 20px;
    padding: 0 8px;
    border: 1px solid rgba(37, 97, 197, 0.16);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--primary);
    font-size: 10px;
    line-height: 18px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 16px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile em {
    color: var(--text-sub);
    font-size: 11px;
  }
}

/* Final guide mobile link-map pass: surface real lane navigation before the reference leaderboard. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    gap: 6px;
    min-height: 0;
    padding: 7px 8px 8px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile {
    display: grid;
    align-content: center;
    min-height: 54px;
    gap: 3px;
    padding: 6px;
    border-radius: 11px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4) {
    display: none;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(-n + 3) {
    display: grid;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile span {
    width: fit-content;
    max-width: 100%;
    min-height: 18px;
    padding: 0 6px;
    border: 1px solid rgba(199, 164, 115, 0.28);
    border-radius: 999px;
    background: #fff8e6;
    color: #7a4b12;
    font-size: 9px;
    font-weight: 950;
    line-height: 16px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile em {
    display: none;
  }
}

/* Final role chasers board pass: make desktop role competitors feel like a scoped lane race panel. */
@media (min-width: 901px) {
  body.route-role .role-runners-card {
    border-color: color-mix(in srgb, var(--role-accent) 24%, #ffffff);
    background:
      radial-gradient(circle at 96% 6%, var(--role-soft), transparent 28%),
      linear-gradient(135deg, color-mix(in srgb, var(--role-surface) 62%, #ffffff) 0%, rgba(255, 255, 255, 0.98) 54%, rgba(248, 251, 255, 0.96) 100%);
    box-shadow:
      0 16px 34px rgba(15, 27, 51, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  body.route-role .role-runners-card::after {
    right: 18px;
    bottom: 8px;
    opacity: 0.42;
  }

  body.route-role .role-runners-header {
    position: relative;
    z-index: 1;
  }

  body.route-role .role-runners-header .role-panel-kicker {
    width: fit-content;
    padding: 4px 10px;
    border: 1px solid color-mix(in srgb, var(--role-accent) 28%, #ffffff);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--role-deep);
  }

  body.route-role .role-runner-list {
    position: relative;
    z-index: 1;
    gap: 10px;
  }

  body.route-role .role-runner-row {
    min-height: 78px;
    padding: 11px 12px;
    border-color: color-mix(in srgb, var(--role-accent) 17%, #dbe6f4);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--role-surface) 30%, #ffffff));
    box-shadow:
      0 10px 20px rgba(15, 27, 51, 0.055),
      inset 0 1px 0 rgba(255, 255, 255, 0.84);
  }

  body.route-role .role-runner-row:first-child {
    border-color: color-mix(in srgb, var(--role-accent) 38%, #ffffff);
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--role-surface) 78%, #ffffff), rgba(255, 255, 255, 0.98));
  }

  body.route-role .role-runner-row .avatar-wrap {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--role-accent) 22%, #ffffff),
      0 8px 16px rgba(15, 27, 51, 0.12);
  }

  body.route-role .role-runner-main > strong {
    color: #061229;
    letter-spacing: 0;
  }

  body.route-role .role-runner-main > em {
    color: #3b4861;
    font-weight: 800;
  }

  body.route-role .role-runner-stats small {
    border: 1px solid color-mix(in srgb, var(--role-accent) 18%, #dbe6f4);
    background: rgba(255, 255, 255, 0.74);
  }

  body.route-role .role-runner-row b {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  }
}

/* Final champion desktop TOP pass: separate champion identity from usage count for faster scanning. */
body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(37, 97, 197, 0.16);
  border-radius: 999px;
  background: #eef5ff;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row i {
  display: none;
  font-style: normal;
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    gap: 14px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    gap: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 74px;
    gap: 12px;
    padding: 10px 14px 10px 58px;
    box-shadow: 0 8px 18px rgba(15, 27, 51, 0.045);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row::before {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    content: none !important;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row > span:not(.champion-icon-wrap) {
    display: grid;
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row i {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row small {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    max-width: 132px;
    padding: 0 7px;
    border: 1px solid rgba(37, 97, 197, 0.14);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 950;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row small:first-child {
    border-color: rgba(15, 159, 143, 0.18);
    background: #ecfdf5;
    color: #0f766e;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    font-size: 16px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row em {
    width: fit-content;
    max-width: 100%;
    min-height: 20px;
    padding: 0 8px;
    border: 1px solid rgba(15, 159, 143, 0.16);
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 10px;
    line-height: 18px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:first-child b {
    border-color: rgba(199, 164, 115, 0.52);
    background: #fff8e6;
    color: #7a4b12;
  }
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    gap: 6px;
    min-height: 0;
    padding: 7px 8px 8px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon name"
      "count count";
    align-items: center;
    min-height: 54px;
    gap: 3px 5px;
    padding: 6px;
    border-radius: 11px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(n + 4) {
    display: none;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    grid-area: icon;
    width: 24px;
    height: 24px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row > span:not(.champion-icon-wrap) {
    grid-area: name;
    min-width: 0;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row em,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row i {
    display: none;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3) {
    display: grid;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
    grid-area: count;
    justify-self: start;
    min-width: 28px;
    min-height: 18px;
    padding: 0 6px;
    font-size: 9px;
    line-height: 16px;
  }
}

/* Final guide route-board pass: make lane links read as navigable guide paths, not plain filter chips. */
body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
  border-color: rgba(199, 164, 115, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.98) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(238, 245, 255, 0.94) 100%);
  box-shadow:
    0 16px 34px rgba(15, 27, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-header h2 {
  color: #3b2608;
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
  gap: 12px;
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 97, 197, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.9));
  box-shadow:
    0 10px 22px rgba(15, 27, 51, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child {
  border-color: rgba(245, 201, 107, 0.68);
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow:
    0 14px 28px rgba(154, 113, 50, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile span {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(37, 97, 197, 0.14);
  border-radius: 999px;
  background: #eef7ff;
  color: #0b3b82;
  font-weight: 950;
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child span {
  border-color: rgba(199, 164, 115, 0.42);
  background: #fff8e6;
  color: #7a4b12;
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
  color: #061229;
  font-weight: 950;
  letter-spacing: 0;
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile em {
  color: #3b4861;
  font-weight: 850;
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-arrow {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(37, 97, 197, 0.16);
  border-radius: 999px;
  background: #eef7ff;
  color: #0b3b82;
  font-size: 14px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child .portal-link-arrow {
  border-color: rgba(199, 164, 115, 0.44);
  background: #fff8e6;
  color: #7a4b12;
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    min-height: 92px;
    padding: 14px 46px 14px 14px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.98) 62%, rgba(238, 245, 255, 0.94));
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    min-height: 54px;
    padding: 5px 3px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile span {
    padding: 2px 5px;
    font-size: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 12px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-arrow {
    display: none;
  }
}

/* Final profile pathway desktop pass: separate navigation from peer comparison. */
@media (min-width: 901px) {
  body.route-profile .profile-path-card {
    grid-template-columns: minmax(210px, 0.3fr) minmax(0, 1fr) minmax(320px, 0.62fr);
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-color: rgba(199, 216, 239, 0.96);
    background:
      linear-gradient(90deg, rgba(255, 250, 240, 0.54), rgba(255, 255, 255, 0.98) 34%, rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-profile .profile-path-header {
    display: grid;
    align-content: center;
    justify-content: start;
    gap: 5px;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid rgba(245, 201, 107, 0.28);
    border-radius: 14px;
    background:
      radial-gradient(circle at 92% 12%, rgba(245, 201, 107, 0.18), transparent 30%),
      linear-gradient(135deg, #071a38, #123b82);
    color: #ffffff;
  }

  body.route-profile .profile-path-header .profile-kicker {
    color: #f8d27d;
  }

  body.route-profile .profile-path-header strong {
    max-width: 100%;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.18;
    overflow-wrap: normal;
    text-wrap: balance;
    word-break: keep-all;
  }

  body.route-profile .profile-path-header > em {
    overflow: hidden;
    max-width: 100%;
    color: rgba(229, 239, 255, 0.86);
    font-size: 10.5px;
    line-height: 1.22;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-path-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-content: stretch;
    gap: 7px;
  }

  body.route-profile .profile-path-link {
    align-content: center;
    gap: 3px;
    min-height: 62px;
    padding: 9px 10px;
  }

  body.route-profile .profile-path-link span {
    width: fit-content;
    max-width: 100%;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(37, 97, 197, 0.14);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--primary);
    font-size: 10px;
    line-height: 18px;
  }

  body.route-profile .profile-path-primary span {
    border-color: rgba(199, 164, 115, 0.46);
    background: #fff8e6;
    color: #7a4b12;
  }

  body.route-profile .profile-path-link strong {
    font-size: 13.5px;
    line-height: 1.08;
  }

  body.route-profile .profile-path-link em {
    font-size: 10.5px;
  }

  body.route-profile .profile-path-similar {
    align-content: center;
    gap: 8px;
    padding: 10px 0 10px 14px;
    border-left: 1px solid rgba(199, 216, 239, 0.92);
  }

  body.route-profile .profile-path-similar > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.route-profile .profile-path-profile {
    min-height: 52px;
    padding: 7px 8px;
    border-color: rgba(199, 216, 239, 0.92);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
  }

  body.route-profile .profile-path-profile:nth-child(n + 3) {
    display: none;
  }

  body.route-profile .profile-path-profile .avatar-wrap,
  body.route-profile .profile-path-profile .avatar {
    width: 34px;
    height: 34px;
  }

  body.route-profile .profile-path-title {
    width: fit-content;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(37, 97, 197, 0.16);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--primary-dark);
    font-size: 10.5px;
    line-height: 22px;
  }
}

/* Final trend desktop momentum pass: surface LP movement and scan-ready context in the riser list. */
body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row i {
  display: none;
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    gap: 6px;
    min-height: 0;
    padding: 7px 8px 8px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "delta delta";
    align-items: center;
    min-height: 58px;
    gap: 4px 6px;
    padding: 6px;
    border-radius: 11px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3) {
    display: none;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar-wrap,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar {
    grid-area: avatar;
    width: 26px;
    height: 26px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row > span:not(.avatar-wrap) {
    grid-area: name;
    min-width: 0;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row strong {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row em,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row i,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .live-badge {
    display: none;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
    grid-area: delta;
    justify-self: start;
    min-width: 44px;
    min-height: 19px;
    padding: 0 7px;
    border-color: rgba(22, 163, 74, 0.24);
    background: #ecfdf3;
    color: #15803d;
    font-size: 9px;
    line-height: 17px;
  }
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    gap: 14px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list {
    gap: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 78px;
    gap: 12px;
    padding: 11px 16px 11px 14px;
    border-color: rgba(207, 220, 240, 0.96);
    box-shadow: 0 8px 18px rgba(15, 27, 51, 0.045);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row::before {
    inset: 12px auto 12px 0;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row > span:not(.avatar-wrap) {
    display: grid;
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row strong {
    font-size: 15px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row em {
    color: var(--text-sub);
    font-size: 10.5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row i {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
    font-style: normal;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row small {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid rgba(37, 97, 197, 0.14);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 950;
    line-height: 18px;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row small:first-child {
    border-color: rgba(34, 197, 94, 0.22);
    background: #ecfdf5;
    color: #15803d;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
    position: static;
    justify-self: end;
    min-width: 56px;
    height: 30px;
    padding: 0 10px;
    border-color: rgba(34, 197, 94, 0.24);
    background: #ecfdf5;
    color: #15803d;
    font-size: 11px;
    line-height: 28px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child b {
    border-color: rgba(199, 164, 115, 0.5);
    background: #fff8e6;
    color: #7a4b12;
  }
}

/* Final role runner detail pass: make lane SEO pages compare chasers with real rank signals. */
@media (min-width: 901px) {
  body.route-role .role-runner-row {
    min-height: 76px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
  }

  body.route-role .role-runner-main {
    gap: 4px;
  }

  body.route-role .role-runner-stats {
    gap: 6px;
  }

  body.route-role .role-runner-stats small {
    border-color: color-mix(in srgb, var(--role-accent) 18%, #ffffff);
    background: color-mix(in srgb, var(--role-surface) 52%, #ffffff);
  }

  body.route-role .role-runner-stats small.positive {
    border-color: rgba(22, 163, 74, 0.28);
    background: #ecfdf3;
  }
}

@media (max-width: 700px) {
  body.route-role .role-runner-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 66px;
    padding: 8px 9px;
  }

  body.route-role .role-runner-stats {
    gap: 4px;
  }

  body.route-role .role-runner-stats small {
    min-height: 19px;
    padding: 0 6px;
    font-size: 9px;
  }
}

/* Final group roster detail pass: keep LIVE badges compact and add scan-ready rank signals. */
@media (min-width: 901px) {
  body.route-group .group-member-row {
    min-height: 76px;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
  }

  body.route-group .group-member-title {
    min-width: 0;
  }

  body.route-group .group-member-title .live-badge {
    min-height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }

  body.route-group .group-member-stats small {
    border-color: rgba(37, 97, 197, 0.14);
    background: #eef5ff;
    color: var(--primary-dark);
  }

  body.route-group .group-member-stats small.positive {
    border-color: rgba(22, 163, 74, 0.28);
    background: #ecfdf3;
    color: #078436;
  }
}

@media (max-width: 700px) {
  body.route-group .group-member-row {
    min-height: 66px;
    padding: 8px 9px;
  }

  body.route-group .group-member-stats {
    gap: 4px;
  }

  body.route-group .group-member-stats small {
    min-height: 19px;
    padding: 0 6px;
    font-size: 9px;
  }
}

/* Final ranking mobile toolbar pass: bring the first ranking card higher without losing controls. */
@media (max-width: 480px) {
  body.route-ranking .table-card-top {
    gap: 6px;
    padding: 9px 10px 7px;
  }

  body.route-ranking .table-card h2 {
    font-size: 16px;
    line-height: 1.14;
  }

  body.route-ranking .table-card p {
    display: none;
  }

  body.route-ranking .table-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, 0.58fr) 38px;
    gap: 5px;
    align-items: center;
    width: 100%;
    padding: 3px;
    border-radius: 13px;
  }

  body.route-ranking .tabs {
    grid-column: auto;
    min-height: 34px;
    padding: 2px;
    border-radius: 11px;
  }

  body.route-ranking .tabs button {
    min-width: 0;
    min-height: 36px;
    padding: 0 5px;
    font-size: 11px;
  }

  body.route-ranking .sort-select,
  body.route-ranking .table-actions .soft-button {
    width: 100%;
    min-width: 0;
  }

  body.route-ranking .sort-select select,
  body.route-ranking .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
    border-radius: 10px;
  }

  body.route-ranking .sort-select select {
    padding: 0 22px 0 8px;
    font-size: 10px;
  }

  body.route-ranking .table-actions .soft-button {
    width: 38px;
  }

  body.route-ranking .mobile-list {
    padding-top: 8px;
  }
}

/* Final LIVE mobile toolbar pass: show active broadcast cards sooner while preserving tap targets. */
@media (max-width: 480px) {
  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 5px;
    margin: 0 0 6px;
  }

  body.route-live:not(.route-live-empty) .live-hero-card {
    grid-template-columns: minmax(0, 1fr) 54px;
    min-height: 76px;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 14px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy {
    gap: 4px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy .live-panel-kicker {
    min-height: 18px;
    padding: 0 7px;
    font-size: 9px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy h2 {
    font-size: 18px;
    line-height: 1.08;
  }

  body.route-live:not(.route-live-empty) .live-hero-meta {
    font-size: 10px;
    line-height: 1.15;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions {
    gap: 4px;
    margin-top: 0;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions a {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    width: 54px;
    min-height: 54px;
    padding: 5px;
    border-radius: 16px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 32px;
    height: 32px;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    min-height: 32px;
    padding: 4px 8px;
    border-radius: 13px;
  }

  body.route-live:not(.route-live-empty) .live-list-header {
    gap: 6px;
    align-items: center;
  }

  body.route-live:not(.route-live-empty) .live-list-header strong {
    min-width: 26px;
    height: 24px;
    min-height: 24px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.route-live:not(.route-live-empty) .table-card-top {
    gap: 4px;
    padding: 7px 9px 5px;
  }

  body.route-live:not(.route-live-empty) .table-card h2 {
    font-size: 16px;
    line-height: 1.13;
  }

  body.route-live:not(.route-live-empty) .table-card p {
    display: none;
  }

  body.route-live:not(.route-live-empty) .table-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, 0.58fr) 38px;
    gap: 4px;
    align-items: center;
    width: 100%;
    padding: 2px;
    border-radius: 13px;
  }

  body.route-live:not(.route-live-empty) .tabs {
    grid-column: auto;
    min-height: 34px;
    padding: 2px;
    border-radius: 11px;
  }

  body.route-live:not(.route-live-empty) .tabs button {
    min-width: 0;
    min-height: 36px;
    padding: 0 5px;
    font-size: 11px;
  }

  body.route-live:not(.route-live-empty) .sort-select,
  body.route-live:not(.route-live-empty) .table-actions .soft-button {
    width: 100%;
    min-width: 0;
  }

  body.route-live:not(.route-live-empty) .sort-select select,
  body.route-live:not(.route-live-empty) .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
    border-radius: 10px;
  }

  body.route-live:not(.route-live-empty) .sort-select select {
    padding: 0 22px 0 8px;
    font-size: 10px;
  }

  body.route-live:not(.route-live-empty) .table-actions .soft-button {
    width: 38px;
  }

  body.route-live:not(.route-live-empty) .mobile-list {
    padding-top: 8px;
  }
}

/* Final LIVE 320px override: keep the first live card inside the initial viewport. */
@media (max-width: 340px) {
  body.route-live:not(.route-live-empty) .live-hero-card {
    grid-template-columns: minmax(0, 1fr) 52px;
    min-height: 72px;
    gap: 6px;
    padding: 7px 8px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    width: 52px;
    min-height: 52px;
    padding: 5px;
    border-radius: 14px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 30px;
    height: 30px;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    min-height: 32px;
    padding: 4px 7px;
  }

  body.route-live:not(.route-live-empty) .table-card-top {
    gap: 2px;
    padding: 5px 8px 4px;
  }

  body.route-live:not(.route-live-empty) .table-card h2 {
    font-size: 14px;
    line-height: 1.05;
  }

  body.route-live:not(.route-live-empty) .table-actions {
    grid-template-columns: minmax(0, 1fr) 80px 36px;
    gap: 3px;
    padding: 2px;
  }

  body.route-live:not(.route-live-empty) .tabs button {
    min-height: 36px;
  }

  body.route-live:not(.route-live-empty) .sort-select select,
  body.route-live:not(.route-live-empty) .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
  }

  body.route-live:not(.route-live-empty) .mobile-list {
    padding-top: 6px;
  }
}

/* Final portal mobile toolbar pass: make trend/champion/guide leaderboards enter sooner. */
@media (max-width: 480px) {
  body.route-portal .table-card-top {
    gap: 6px;
    padding: 9px 10px 7px;
  }

  body.route-portal .table-card h2 {
    font-size: 16px;
    line-height: 1.14;
  }

  body.route-portal .table-card p {
    display: none;
  }

  body.route-portal .table-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(86px, 0.58fr) 38px;
    gap: 5px;
    align-items: center;
    width: 100%;
    padding: 3px;
    border-radius: 13px;
  }

  body.route-portal .tabs {
    grid-column: auto;
    min-height: 34px;
    padding: 2px;
    border-radius: 11px;
  }

  body.route-portal .tabs button {
    min-width: 0;
    min-height: 36px;
    padding: 0 5px;
    font-size: 11px;
  }

  body.route-portal .sort-select,
  body.route-portal .table-actions .soft-button {
    width: 100%;
    min-width: 0;
  }

  body.route-portal .sort-select select,
  body.route-portal .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
    border-radius: 10px;
  }

  body.route-portal .sort-select select {
    padding: 0 22px 0 8px;
    font-size: 10px;
  }

  body.route-portal .table-actions .soft-button {
    width: 38px;
  }

  body.route-portal .mobile-list {
    padding-top: 8px;
  }

  body.route-portal .pagination {
    display: none;
  }
}

@media (max-width: 340px) {
  body.route-portal .table-card-top {
    gap: 2px;
    padding: 5px 8px 4px;
  }

  body.route-portal .table-card h2 {
    font-size: 14px;
    line-height: 1.05;
  }

  body.route-portal .table-actions {
    grid-template-columns: minmax(0, 1fr) 80px 36px;
    gap: 3px;
    padding: 2px;
  }

  body.route-portal .tabs button {
    min-height: 36px;
  }

  body.route-portal .sort-select select,
  body.route-portal .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
  }

  body.route-portal .mobile-list {
    padding-top: 6px;
  }
}

/* Final no-stray-status-bars guard: keep decorative pseudo-elements from looking like broken red data marks. */
body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row::before,
body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row::before,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile::before,
body.route-role .role-runner-row::before,
body.route-group .group-member-row::before {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
  content: none !important;
}

/* Final profile stat readability pass: keep long win/loss values legible on phone widths. */
@media (max-width: 480px) {
  body.route-profile .profile-stat-grid {
    grid-template-columns: minmax(45px, 0.68fr) minmax(54px, 0.82fr) minmax(48px, 0.72fr) minmax(104px, 1.62fr) !important;
    gap: 5px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    min-width: 0;
    padding: 5px 5px 4px;
  }

  body.route-profile .profile-stat-grid strong {
    display: block;
    max-width: 100%;
    letter-spacing: 0;
  }

  body.route-profile .profile-stat-grid span:last-child {
    padding-inline: 6px;
  }

  body.route-profile .profile-stat-grid span:last-child strong {
    overflow: visible !important;
    color: var(--text-main);
    font-size: 9.5px !important;
    line-height: 1.08;
    text-overflow: clip !important;
    white-space: nowrap !important;
    word-break: keep-all;
  }
}

@media (max-width: 340px) {
  body.route-profile .profile-stat-grid {
    grid-template-columns: minmax(39px, 0.62fr) minmax(48px, 0.78fr) minmax(43px, 0.66fr) minmax(92px, 1.66fr) !important;
    gap: 4px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    padding: 4px 4px 3px;
  }

  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 8.6px !important;
  }
}

/* Final role mobile lane-nav pass: expose cross-lane navigation without delaying the ranking cards. */
@media (max-width: 480px) {
  body.route-role .role-dashboard {
    gap: 4px;
  }

  body.route-role .role-metric-card {
    gap: 4px;
    padding: 5px 8px;
  }

  body.route-role .role-metric-card .role-panel-kicker {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 32px;
    padding: 0 5px;
    border: 1px solid color-mix(in srgb, var(--role-accent) 28%, #ffffff);
    border-radius: 999px;
    background: color-mix(in srgb, var(--role-surface) 82%, #ffffff);
    color: var(--role-deep);
    letter-spacing: 0;
    text-align: center;
  }

  body.route-role .role-metric-grid span {
    align-content: center;
    gap: 1px;
    min-height: 32px;
    padding: 4px 4px;
  }

  body.route-role .role-metric-grid span:first-child,
  body.route-role .role-metric-grid span:nth-child(2) {
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--role-surface) 72%, #ffffff), rgba(255, 255, 255, 0.98));
  }

  body.route-role .role-metric-grid em {
    overflow: hidden;
    max-width: 100%;
    color: #52627c;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-role .role-metric-grid strong {
    color: #061229;
  }

  body.route-role .role-runners-card {
    display: none !important;
  }

  body.route-role .role-switch-card {
    display: grid !important;
    min-height: 0;
    gap: 0;
    padding: 3px 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
  }

  body.route-role .role-switch-header {
    display: none !important;
  }

  body.route-role .role-switch-grid {
    display: flex;
    gap: 5px;
    overflow: visible;
    padding: 0 1px 1px;
  }

  body.route-role .role-switch-link {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 28px;
    gap: 3px;
    padding: 3px 4px;
    border-radius: 999px;
  }

  body.route-role .role-switch-link span,
  body.route-role .role-switch-link strong {
    font-size: 10px;
    line-height: 1;
  }

  body.route-role .role-switch-link em {
    display: none;
  }
}

@media (max-width: 340px) {
  body.route-role .role-dashboard {
    gap: 4px;
  }

  body.route-role .role-switch-card {
    padding: 3px 5px;
  }

  body.route-role .role-switch-link {
    min-height: 28px;
    padding-inline: 3px;
  }

  body.route-role .role-switch-link span,
  body.route-role .role-switch-link strong {
    font-size: 9px;
  }
}

/* Final portal mobile preview polish: make top trend/champion/guide modules read as intentional data cards. */
@media (max-width: 480px) {
  body.route-portal .portal-list {
    gap: 7px;
  }

  body.route-portal .portal-profile-row,
  body.route-portal .portal-champion-row,
  body.route-portal .portal-link-tile {
    border-color: rgba(199, 216, 239, 0.96);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98)),
      #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 7px 16px rgba(15, 27, 51, 0.06);
  }

  body.route-portal .portal-profile-row:first-child,
  body.route-portal .portal-champion-row:first-child,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child {
    border-color: rgba(245, 201, 107, 0.52);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.99) 64%),
      #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 8px 18px rgba(199, 164, 115, 0.13);
  }

  body.route-portal .portal-profile-row strong,
  body.route-portal .portal-champion-row strong,
  body.route-portal .portal-link-tile strong {
    color: var(--text-main);
  }

  body.route-portal .portal-profile-row b,
  body.route-portal .portal-champion-row b {
    border-color: rgba(37, 97, 197, 0.14);
    background: rgba(255, 255, 255, 0.88);
  }

  body.route-portal .portal-profile-row:first-child b,
  body.route-portal .portal-champion-row:first-child b {
    border-color: rgba(245, 201, 107, 0.42);
    background: #fff8e6;
    color: #7a4b12;
  }
}

/* Final LIVE empty recommendation affordance: make suggested ranker rows read as profile links. */
body.route-live.route-live-empty .live-empty-suggestion {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  column-gap: 8px;
  border-color: rgba(37, 97, 197, 0.16);
  background:
    linear-gradient(135deg, #ffffff, rgba(248, 251, 255, 0.98)),
    #ffffff;
  box-shadow: 0 7px 16px rgba(15, 27, 51, 0.055);
}

body.route-live.route-live-empty .live-empty-suggestion b {
  min-width: 30px;
  padding: 5px 7px;
  border: 1px solid rgba(37, 97, 197, 0.12);
  border-radius: 999px;
  background: rgba(234, 241, 255, 0.82);
  text-align: center;
}

body.route-live.route-live-empty .live-empty-suggestion::after {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(37, 97, 197, 0.13);
  border-radius: 999px;
  background: #f4f8ff;
  color: var(--primary-dark);
  content: ">";
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

body.route-live.route-live-empty .live-empty-suggestion:hover,
body.route-live.route-live-empty .live-empty-suggestion:focus-visible {
  border-color: rgba(199, 164, 115, 0.42);
  box-shadow: 0 10px 22px rgba(15, 27, 51, 0.09);
}

body.route-live.route-live-empty .live-empty-suggestion:first-of-type b {
  border-color: rgba(199, 164, 115, 0.24);
  background: rgba(255, 248, 230, 0.92);
  color: #7a4b12;
}

@media (max-width: 480px) {
  body.route-live.route-live-empty .live-empty-suggestion {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    column-gap: 7px;
  }

  body.route-live.route-live-empty .live-empty-suggestion b {
    min-width: 27px;
    padding: 4px 5px;
  }

  body.route-live.route-live-empty .live-empty-suggestion::after {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  body.route-live.route-live-empty .live-empty-suggestion {
    column-gap: 6px;
    padding-right: 6px;
  }

  body.route-live.route-live-empty .live-empty-suggestion b {
    min-width: 24px;
    padding: 3px 4px;
    font-size: 8px;
  }

  body.route-live.route-live-empty .live-empty-suggestion::after {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

/* Final profile mobile path chips: keep profile SEO landings connected to ranking, lane, and channel paths. */
@media (max-width: 480px) {
  body.route-profile .profile-spotlight-card {
    gap: 6px;
    padding: 9px;
  }

  body.route-profile .profile-tier-panel,
  body.route-profile .profile-champions {
    min-height: 50px;
  }

  body.route-profile .profile-stat-grid {
    gap: 5px;
  }

  body.route-profile .profile-action-rail {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 0;
  }

  body.route-profile .profile-action-link {
    justify-items: center;
    min-height: 30px;
    gap: 1px;
    padding: 4px 6px;
    border-color: rgba(199, 216, 239, 0.94);
    border-radius: 10px;
    background:
      linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.98)),
      #ffffff;
    text-align: center;
  }

  body.route-profile .profile-action-primary {
    border-color: rgba(245, 201, 107, 0.46);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.98)),
      #ffffff;
  }

  body.route-profile .profile-action-link span {
    color: var(--text-muted);
    font-size: 8.5px;
    line-height: 1;
  }

  body.route-profile .profile-action-link strong {
    color: var(--primary-dark);
    font-size: 10px;
    line-height: 1.05;
  }
}

@media (max-width: 340px) {
  body.route-profile .profile-action-rail {
    gap: 4px;
  }

  body.route-profile .profile-action-link {
    min-height: 30px;
    padding: 4px 4px;
  }

  body.route-profile .profile-action-link span {
    display: none;
  }

  body.route-profile .profile-action-link strong {
    font-size: 9px;
  }
}

/* Final group mobile related-grid fit: show the three discovery links fully instead of a clipped scroll strip. */
@media (max-width: 480px) {
  body.route-group .group-related-card {
    grid-template-columns: auto minmax(0, 1fr);
    overflow: visible;
  }

  body.route-group .group-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  body.route-group .group-related-link {
    width: 100%;
    min-width: 0;
    flex: initial;
    padding: 5px 16px 5px 6px;
  }

  body.route-group .group-related-link strong {
    font-size: 10.5px;
  }

  body.route-group .group-related-link::after {
    right: 4px;
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

@media (max-width: 340px) {
  body.route-group .group-related-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 5px;
  }

  body.route-group .group-related-grid {
    gap: 3px;
  }

  body.route-group .group-related-link {
    min-height: 36px;
    padding: 5px 14px 5px 5px;
  }

  body.route-group .group-related-link span {
    font-size: 7.5px;
  }

  body.route-group .group-related-link strong {
    font-size: 9.5px;
  }
}

/* Final guide desktop link affordance: use a real arrow element so lane cards read as navigation. */
.portal-link-arrow {
  display: none;
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile {
    position: relative;
    padding-right: 46px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(37, 97, 197, 0.14);
    border-radius: 999px;
    background: #eef5ff;
    color: var(--primary-dark);
    font-size: 14px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    transform: translateY(-50%);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child .portal-link-arrow {
    border-color: rgba(199, 164, 115, 0.42);
    background: #fff8e6;
    color: #7a4b12;
  }
}

/* Final LIVE empty disclosure label pass: replace the cryptic +/- control with clear text. */
body.route-live.route-live-empty .live-empty-more summary {
  align-items: center;
}

body.route-live.route-live-empty .live-empty-more summary::after {
  display: none !important;
  content: none !important;
}

body.route-live.route-live-empty .live-empty-more summary em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(37, 97, 197, 0.16);
  border-radius: 999px;
  background: #f4f8ff;
  color: var(--primary-dark);
  font-size: 0;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

body.route-live.route-live-empty .live-empty-more summary em::before {
  content: "펼치기";
  font-size: 11px;
}

body.route-live.route-live-empty .live-empty-more[open] summary em {
  border-color: rgba(199, 164, 115, 0.42);
  background: #fff8e6;
  color: #7a4b12;
}

body.route-live.route-live-empty .live-empty-more[open] summary em::before {
  content: "접기";
}

@media (max-width: 480px) {
  body.route-live.route-live-empty .live-empty-more summary {
    padding-right: 0;
  }

  body.route-live.route-live-empty .live-empty-more summary em {
    min-width: 50px;
    height: 28px;
    padding-inline: 9px;
  }
}

/* Final decorative-strip hard stop: keep non-data accents from reading as broken red marks. */
body.route-ranking .summary-card::after,
body.route-ranking .table-card::before,
body.route-ranking .table-card::after,
body.route-ranking .table-card-top::before,
body.route-ranking .table-card-top::after,
body.route-live .live-hero-card::before,
body.route-live .live-hero-card::after,
body.route-live .live-list-card::after,
body.route-live .live-list-header strong::before,
body.route-live.route-live-empty .live-empty-card::before,
body.route-live.route-live-empty .live-empty-card::after,
body.route-live.route-live-empty .live-empty-suggestion::before,
body.route-profile .profile-spotlight-card::before,
body.route-profile .profile-spotlight-card::after,
body.route-profile .profile-card::before,
body.route-profile .profile-card::after,
body.route-profile .profile-path-card::before,
body.route-profile .profile-path-card::after,
body.route-role .role-dashboard::before,
body.route-role .role-dashboard::after,
body.route-role .role-leader-card::before,
body.route-role .role-leader-card::after,
body.route-role .role-metric-card::before,
body.route-role .role-runners-card::before,
body.route-role .role-switch-card::before,
body.route-role .role-runner-row::before,
body.route-group .group-leader-card::before,
body.route-group .group-leader-card::after,
body.route-group .group-metric-card::before,
body.route-group .group-roster-card::before,
body.route-group .group-member-row::before,
body.route-group .group-member-row::after,
body.route-group .group-related-card::before,
body.route-group .group-related-card::after,
body.route-portal .portal-hero-card::before,
body.route-portal .portal-hero-card::after,
body.route-portal .portal-list-card::before,
body.route-portal .portal-list-card::after,
body.route-portal .portal-profile-row::before,
body.route-portal .portal-profile-row::after,
body.route-portal .portal-champion-row::before,
body.route-portal .portal-champion-row::after,
body.route-portal .portal-link-tile::before,
body.route-portal .portal-link-tile::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
}

body.route-live.route-live-empty .live-empty-more summary::-webkit-details-marker {
  display: none;
}

/* Final trend LP badge cleanup: keep movement values from reading as stray color bars. */
body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: fit-content;
  min-width: 58px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 999px;
  background: #ecfdf5;
  box-shadow: none;
  color: #15803d;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child b {
  border-color: rgba(199, 164, 115, 0.42);
  background: #fff8e6;
  color: #7a4b12;
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
    justify-self: start;
    min-width: 0;
    min-height: 21px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
  }
}

/* Final trend mobile list-card pass: make the riser preview read as a compact data card, not a clipped capsule. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    display: grid !important;
    gap: 8px;
    min-height: 0;
    overflow: visible;
    padding: 10px;
    border-color: rgba(199, 216, 239, 0.96);
    border-radius: 16px;
    background:
      linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.98)),
      #ffffff;
    box-shadow: 0 12px 28px rgba(15, 27, 51, 0.1);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header {
    align-items: center;
    min-height: 30px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header .portal-kicker,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header a {
    padding-inline: 9px;
    border-radius: 999px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header .portal-kicker {
    min-height: 26px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header a {
    min-height: 36px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list {
    gap: 7px;
  }
}

/* Final LIVE empty desktop balance pass: tighten the no-live state into one intentional panel. */
@media (min-width: 901px) {
  body.route-live.route-live-empty .live-dashboard {
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
  }

  body.route-live.route-live-empty .live-empty-feature {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
    gap: 24px;
    align-items: stretch;
    min-height: 0;
    padding: 26px;
  }

  body.route-live.route-live-empty .live-empty-copy {
    justify-content: stretch;
    align-content: center;
    max-width: none;
    padding-right: 0;
    border-right: 0;
  }

  body.route-live.route-live-empty .live-empty-status-grid span,
  body.route-live.route-live-empty .live-empty-flow span {
    min-height: 58px;
  }

  body.route-live.route-live-empty .live-empty-actions a,
  body.route-live.route-live-empty .live-empty-actions button {
    min-height: 40px;
  }

  body.route-live.route-live-empty .live-empty-more {
    align-content: start;
    align-self: stretch;
    padding: 14px;
  }

  body.route-live.route-live-empty .live-empty-more summary {
    min-height: 44px;
  }

  body.route-live.route-live-empty .live-empty-suggestion {
    min-height: 66px;
  }
}

/* Final guide desktop lane completeness pass: show all five lane paths promised by the metrics. */
@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    display: grid !important;
    min-height: 70px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(-n + 3) {
    grid-column: span 2;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* Final champion desktop rank-chip pass: make the champion TOP list read as analysis data. */
.portal-champion-rank {
  display: none;
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    display: grid;
    grid-template-columns: 54px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 28px;
    border: 1px solid rgba(45, 212, 191, 0.24);
    border-radius: 999px;
    background: #ecfdf5;
    color: #134e4a;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:first-child .portal-champion-rank {
    border-color: rgba(199, 164, 115, 0.46);
    background: #fff8e6;
    color: #7a4b12;
  }
}

/* Final champion mobile TOP pass: center champion identity and sample count inside each tile. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    overflow: visible;
    gap: 8px;
    padding: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "icon"
      "name"
      "count";
    justify-items: center;
    align-content: center;
    min-height: 68px;
    gap: 3px;
    padding: 7px 5px;
    text-align: center;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(n + 4) {
    display: none !important;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    grid-area: icon;
    width: 28px;
    height: 28px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row > span:not(.champion-icon-wrap) {
    grid-area: name;
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    display: block;
    overflow: hidden;
    width: 100%;
    font-size: 11px;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
    grid-area: count;
    justify-self: center;
    min-width: 34px;
    min-height: 19px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 9px;
    line-height: 17px;
  }
}

/* Final guide mobile lane completeness pass: expose every lane path before the reference leaderboard. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    overflow: visible;
    gap: 8px;
    padding: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    display: grid !important;
    grid-column: span 2;
    min-height: 54px;
    padding: 7px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4) {
    grid-column: span 3;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    white-space: normal;
  }
}

/* Final portal reference tone pass: keep the lower leaderboard visually secondary to the portal cards. */
@media (min-width: 901px) {
  body.route-portal .table-card {
    box-shadow: 0 10px 28px rgba(15, 27, 51, 0.06);
  }

  body.route-portal .table-card-top {
    align-items: center;
    padding: 18px 24px 12px;
  }

  body.route-portal .table-card h2 {
    color: var(--text-sub);
    font-size: 18px;
    line-height: 1.18;
  }

  body.route-portal .table-card p,
  body.route-portal .result-meta {
    font-size: 12px;
  }
}

/* Final profile champion density pass: tighten 390px profile summaries without changing the card grid. */
@media (min-width: 341px) and (max-width: 480px) {
  body.route-profile .profile-champions {
    min-height: 44px;
    gap: 4px;
    padding: 5px 7px;
  }

  body.route-profile .profile-champion-summary {
    min-width: 76px;
    gap: 1px;
  }

  body.route-profile .profile-champion-summary strong {
    font-size: 11px;
  }

  body.route-profile .profile-champion-summary em {
    font-size: 9px;
  }

  body.route-profile .profile-champions .profile-champion-pills {
    gap: 4px;
  }

  body.route-profile .profile-champion-pill {
    min-height: 26px;
    gap: 4px;
    padding: 2px 6px 2px 2px;
    box-shadow: 0 4px 10px rgba(15, 27, 51, 0.06);
  }

  body.route-profile .profile-champion-pill .champion-icon-wrap,
  body.route-profile .profile-champion-pill .champion-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  body.route-profile .profile-champion-pill strong,
  body.route-profile .profile-champion-pill em {
    max-width: 48px;
  }
}

/* Final portal preview background pass: keep mobile guide/champion modules calm and data-focused. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    border-color: rgba(199, 216, 239, 0.96);
    border-radius: 16px;
    background:
      linear-gradient(180deg, #ffffff, rgba(248, 251, 255, 0.98)),
      #ffffff;
    box-shadow: 0 12px 28px rgba(15, 27, 51, 0.08);
  }
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card::after,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card::before,
body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card::after {
  display: none !important;
  content: none !important;
}

/* Final thin-accent neutralizer: keep small card borders from reading as stray red bars. */
body.route-portal .portal-dashboard .portal-metric-grid span,
body.route-live .live-metric-grid span,
body.route-role .role-metric-grid span,
body.route-group .group-metric-grid span {
  border-top-color: rgba(228, 235, 246, 0.92) !important;
  border-right-color: rgba(228, 235, 246, 0.92) !important;
  border-bottom-color: rgba(228, 235, 246, 0.92) !important;
  border-left-width: 1px !important;
  border-left-color: rgba(228, 235, 246, 0.92) !important;
}

/* Final guide mobile density pass: keep all lane paths while bringing the ranking preview higher. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] {
    gap: 7px;
    margin: 4px 0 9px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card {
    gap: 4px;
    padding: 8px 10px 9px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card h2 {
    font-size: 17px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid {
    gap: 5px;
    margin-top: 2px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
    gap: 2px;
    min-height: 44px;
    padding: 6px;
    border-radius: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid em,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid b {
    font-size: 9px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid strong {
    font-size: 16px;
    line-height: 1.05;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-cta {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    gap: 6px;
    padding: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    min-height: 50px;
    padding: 6px;
  }
}

/* Final champion mobile density pass: keep TOP 3 visible while moving the ranking preview up. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    gap: 6px;
    padding: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3) {
    min-height: 60px;
    gap: 2px;
    padding: 5px 4px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    width: 26px;
    height: 26px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    font-size: 10.5px;
    line-height: 1.04;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
    min-height: 18px;
    line-height: 16px;
  }
}

/* Final LIVE mobile handoff pass: tighten the summary-to-ranking transition without shrinking controls. */
@media (max-width: 480px) {
  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 4px;
    margin-bottom: 4px;
  }

  body.route-live:not(.route-live-empty) .live-hero-card {
    min-height: 74px;
    padding: 7px 8px;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    min-height: 30px;
    padding: 3px 8px;
  }

  body.route-live:not(.route-live-empty) .live-list-header {
    gap: 4px;
  }

  body.route-live:not(.route-live-empty) .live-list-header strong {
    height: 22px;
    min-height: 22px;
    font-size: 11.5px;
  }

  body.route-live:not(.route-live-empty) .table-card-top {
    gap: 3px;
    padding: 5px 8px 4px;
  }

  body.route-live:not(.route-live-empty) .table-card h2 {
    font-size: 15px;
    line-height: 1.08;
  }

  body.route-live:not(.route-live-empty) .table-actions {
    gap: 3px;
  }

  body.route-live:not(.route-live-empty) .mobile-list {
    padding-top: 5px;
  }
}

@media (max-width: 340px) {
  body.route-live:not(.route-live-empty) .live-hero-card {
    min-height: 70px;
    padding: 6px 8px;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    padding: 3px 7px;
  }

  body.route-live:not(.route-live-empty) .table-card-top {
    padding: 4px 7px 3px;
  }

  body.route-live:not(.route-live-empty) .table-card h2 {
    font-size: 13.5px;
  }

  body.route-live:not(.route-live-empty) .mobile-list {
    padding-top: 4px;
  }
}

/* Final profile mobile handoff pass: keep the summary useful while bringing the snapshot up. */
@media (max-width: 480px) {
  body.route-profile .profile-spotlight {
    margin: 6px 0 8px;
  }

  body.route-profile .profile-spotlight-card {
    gap: 5px;
    padding: 8px;
    border-radius: 14px;
  }

  body.route-profile .profile-identity {
    gap: 8px;
    width: 100%;
  }

  body.route-profile .profile-identity > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.route-profile .profile-identity .avatar-wrap,
  body.route-profile .profile-identity .avatar {
    width: 42px;
    height: 42px;
  }

  body.route-profile .profile-kicker {
    font-size: 9px;
    line-height: 1;
  }

  body.route-profile .profile-identity h2 {
    display: flex;
    flex-wrap: nowrap;
    margin: 1px 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.06;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-identity h2 .live-badge {
    flex: 0 0 auto;
  }

  body.route-profile .profile-identity p {
    font-size: 10px;
    line-height: 1.15;
  }

  body.route-profile .profile-chip-row {
    gap: 4px;
    margin-top: 4px;
  }

  body.route-profile .profile-tier-panel {
    min-height: 60px;
    gap: 8px;
    padding: 7px 9px;
  }

  body.route-profile .profile-tier-panel strong {
    font-size: 14px;
    line-height: 1.08;
  }

  body.route-profile .profile-tier-panel span {
    font-size: 10px;
  }

  body.route-profile .profile-stat-grid {
    gap: 4px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    min-height: 32px;
    gap: 1px;
    padding: 5px 6px;
  }

  body.route-profile .profile-stat-grid em {
    font-size: 8px;
    line-height: 1;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 11px;
    line-height: 1.08;
  }

  body.route-profile .profile-action-rail {
    gap: 4px;
    margin-top: 0;
  }

  body.route-profile .profile-action-link {
    min-height: 28px;
    padding: 4px 5px;
  }

  body.route-profile .profile-insights {
    margin-bottom: 6px;
  }

  body.route-profile .table-card-top {
    padding-top: 6px;
  }
}

@media (max-width: 340px) {
  body.route-profile .profile-spotlight {
    margin-bottom: 7px;
  }

  body.route-profile .profile-spotlight-card {
    gap: 4px;
    padding: 7px;
  }

  body.route-profile .profile-identity .avatar-wrap,
  body.route-profile .profile-identity .avatar {
    width: 38px;
    height: 38px;
  }

  body.route-profile .profile-identity h2 {
    font-size: 16px;
  }

  body.route-profile .profile-tier-panel {
    min-height: 54px;
    padding: 6px 8px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    min-height: 32px;
    padding: 4px 5px;
  }
}

/* Final guide mobile title pass: reserve room for the CTA so the long Korean title never sits underneath it. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card h2 {
    max-width: calc(100% - 138px);
    padding-right: 0;
    overflow-wrap: normal;
    word-break: keep-all;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card {
    gap: 3px;
    padding: 8px 9px 9px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card h2 {
    max-width: calc(100% - 132px);
    font-size: 15px;
    line-height: 1.1;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-cta {
    right: 8px;
    max-width: 124px;
    min-width: 124px;
    padding: 0 8px;
    font-size: 9px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
    min-height: 40px;
  }
}

/* Final guide lane-tile compact pass: keep all five paths while recovering space after the safer title wrap. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    gap: 5px;
    padding: 7px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    min-height: 46px;
    padding: 5px 6px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    padding: 6px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    min-height: 42px;
    padding: 5px;
  }
}

/* Final LIVE desktop density pass: reduce empty space in the active broadcast summary row. */
@media (min-width: 1280px) {
  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 12px;
    margin: 8px 0 14px;
  }

  body.route-live:not(.route-live-empty) .live-hero-card {
    min-height: 196px;
    gap: 14px;
    padding: 18px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy {
    gap: 7px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy h2 {
    font-size: 28px;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions {
    margin-top: 2px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    min-width: 148px;
    gap: 5px;
    padding: 13px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 64px;
    height: 64px;
  }

  body.route-live:not(.route-live-empty) .live-metric-card,
  body.route-live:not(.route-live-empty) .live-list-card {
    min-height: 196px;
    gap: 11px;
    padding: 15px 16px;
  }

  body.route-live:not(.route-live-empty) .live-metric-grid span {
    gap: 3px;
    padding: 8px 9px;
  }

  body.route-live:not(.route-live-empty) .live-list-row {
    min-height: 46px;
    padding: 7px 9px;
  }
}

/* Final role mobile control handoff pass: keep ranking controls in one compact row. */
@media (max-width: 480px) {
  body.route-role .table-card-top {
    gap: 5px;
    padding: 8px 10px 6px;
  }

  body.route-role .table-card h2 {
    font-size: 17px;
    line-height: 1.12;
  }

  body.route-role .table-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px 36px;
    gap: 4px;
    width: 100%;
    align-items: center;
  }

  body.route-role .tabs {
    grid-column: auto;
    min-height: 36px;
    padding: 2px;
    border-radius: 12px;
  }

  body.route-role .tabs button {
    min-height: 36px;
    padding: 0 6px;
    font-size: 11px;
  }

  body.route-role .sort-select,
  body.route-role .table-actions .soft-button {
    width: 100%;
    min-width: 0;
  }

  body.route-role .sort-select select,
  body.route-role .table-actions .soft-button {
    height: 36px;
    min-height: 36px;
    border-radius: 11px;
  }

  body.route-role .sort-select select {
    padding: 0 20px 0 8px;
    font-size: 10.5px;
  }

  body.route-role .table-actions .soft-button {
    width: 36px;
    padding: 0;
  }

  body.route-role .mobile-list {
    padding-top: 6px;
  }
}

@media (max-width: 340px) {
  body.route-role .table-card-top {
    gap: 4px;
    padding: 7px 9px 5px;
  }

  body.route-role .table-actions {
    grid-template-columns: minmax(0, 1fr) 78px 34px;
    gap: 3px;
  }

  body.route-role .tabs,
  body.route-role .sort-select select,
  body.route-role .table-actions .soft-button {
    min-height: 36px;
    height: 36px;
  }

  body.route-role .tabs button {
    min-height: 36px;
    padding: 0 4px;
    font-size: 10.5px;
  }

  body.route-role .table-actions .soft-button {
    width: 34px;
  }

  body.route-role .mobile-list {
    padding-top: 5px;
  }
}

/* Final guide mobile lane-strip pass: keep all lane links visible in one compact row. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    gap: 3px;
    padding: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    grid-column: auto;
    min-height: 42px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    padding: 4px 3px;
    text-align: center;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile span {
    max-width: 100%;
    font-size: 9px;
    line-height: 1.05;
    white-space: normal;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 12px;
    line-height: 1.05;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile em {
    display: none;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    gap: 3px;
    padding: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    gap: 3px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    min-height: 40px;
    padding: 4px 2px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile span {
    font-size: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 11px;
  }
}

/* Final profile mobile champion-card pass: keep names visible while shortening the handoff to the snapshot. */
@media (max-width: 480px) {
  body.route-profile .profile-insights {
    margin: 0 0 4px;
  }

  body.route-profile .profile-insight-card:nth-child(2) {
    min-height: 40px;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 12px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-insight-header {
    min-width: 58px;
    gap: 0;
  }

  body.route-profile .profile-insight-title {
    gap: 0;
  }

  body.route-profile .profile-insight-title em {
    display: none;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-insight-header strong {
    font-size: 14px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list {
    gap: 4px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list li {
    min-height: 26px;
    padding: 2px 5px 2px 2px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list .champion-icon-wrap,
  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list .champion-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 340px) {
  body.route-profile .profile-insight-card:nth-child(2) {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 5px;
    padding: 5px 7px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-insight-header {
    min-width: 0;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list {
    gap: 3px;
  }

  body.route-profile .profile-insight-card:nth-child(2) .profile-champion-list strong {
    max-width: 38px;
    font-size: 9px;
  }
}

/* Final portal trend/champion mobile preview pass: keep context visible while moving the leaderboard handoff up. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    gap: 5px;
    padding: 6px 7px 7px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header {
    min-height: 24px;
    gap: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header h2,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header h2 {
    font-size: 13px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header span,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header span {
    font-size: 9px;
    line-height: 1.05;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list {
    gap: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row {
    min-height: 50px;
    gap: 3px 5px;
    padding: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar-wrap,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar {
    width: 24px;
    height: 24px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
    min-height: 17px;
    padding: 0 6px;
    font-size: 8.5px;
    line-height: 15px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3) {
    min-height: 56px;
    gap: 2px;
    padding: 5px 4px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    width: 24px;
    height: 24px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
    min-height: 17px;
    padding: 0 6px;
    font-size: 8.5px;
    line-height: 15px;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row {
    min-height: 48px;
    padding: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3) {
    min-height: 54px;
    padding: 4px 3px;
  }
}

/* Final LIVE mobile handoff pass: trim filter chrome before the broadcast board without shrinking CTAs. */
@media (max-width: 480px) {
  body.route-live:not(.route-live-empty) .mobile-filter-summary {
    margin: -4px 0 5px;
  }

  body.route-live:not(.route-live-empty) .mobile-filter-toggle {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed {
    margin-bottom: 4px;
    border-radius: 14px;
  }

  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 4px;
    margin: 0 0 5px;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    min-height: 30px;
    padding: 4px 7px;
  }

  body.route-live:not(.route-live-empty) .live-list-header {
    gap: 5px;
  }
}

@media (min-width: 341px) and (max-width: 480px) {
  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed {
    gap: 6px;
    padding: 7px 8px;
  }

  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed input,
  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed .primary-button {
    min-height: 40px;
    height: 40px;
  }
}

/* Final LIVE desktop rhythm pass: make metadata lighter and bring the leaderboard closer. */
@media (min-width: 1280px) {
  body.route-live:not(.route-live-empty) .context-strip {
    gap: 9px;
    margin: 0 0 10px;
    padding: 9px 12px;
    border-radius: 14px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96)),
      #ffffff;
    box-shadow: 0 8px 18px rgba(15, 27, 51, 0.045);
  }

  body.route-live:not(.route-live-empty) .context-meta,
  body.route-live:not(.route-live-empty) .context-links {
    gap: 5px;
  }

  body.route-live:not(.route-live-empty) .context-meta span {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 10.5px;
  }

  body.route-live:not(.route-live-empty) .context-links a {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 11px;
  }

  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 11px;
    margin: 6px 0 11px;
  }

  body.route-live:not(.route-live-empty) .live-hero-card {
    min-height: 176px;
    gap: 12px;
    padding: 15px 16px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy {
    gap: 6px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy h2 {
    font-size: 26px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    min-width: 132px;
    min-height: 124px;
    padding: 11px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 58px;
    height: 58px;
  }

  body.route-live:not(.route-live-empty) .live-metric-card,
  body.route-live:not(.route-live-empty) .live-list-card {
    min-height: 176px;
    gap: 9px;
    padding: 13px 14px;
  }

  body.route-live:not(.route-live-empty) .live-metric-grid {
    gap: 8px;
  }

  body.route-live:not(.route-live-empty) .live-list-row {
    min-height: 42px;
    padding: 6px 8px;
  }
}

/* Final portal desktop rhythm pass: shorten trend/champion preview dashboards before the table. */
@media (min-width: 1280px) {
  body.route-portal .portal-dashboard[data-portal="trends"],
  body.route-portal .portal-dashboard[data-portal="champions"] {
    gap: 13px;
    margin: 8px 0 14px;
    align-items: start;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card {
    min-height: 246px;
    gap: 12px;
    padding: 18px 20px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card h2,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card h2 {
    font-size: 29px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card p,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card p {
    line-height: 1.38;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid {
    gap: 9px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span {
    min-height: 80px;
    padding: 12px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    min-height: 246px;
    gap: 11px;
    padding: 15px 16px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row {
    min-height: 68px;
    padding: 9px 13px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    min-height: 66px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* Final profile desktop pathway pass: keep related navigation useful without delaying the snapshot. */
@media (min-width: 1280px) {
  body.route-profile .profile-pathways {
    margin: 0 0 11px;
  }

  body.route-profile .profile-path-card {
    grid-template-columns: minmax(188px, 0.25fr) minmax(0, 1fr) minmax(286px, 0.48fr);
    gap: 9px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  body.route-profile .profile-path-header {
    min-height: 54px;
    gap: 3px;
    padding: 9px 11px;
    border-radius: 12px;
  }

  body.route-profile .profile-path-header strong {
    font-size: 14px;
    line-height: 1.12;
  }

  body.route-profile .profile-path-header > em {
    font-size: 10px;
  }

  body.route-profile .profile-path-grid {
    gap: 6px;
  }

  body.route-profile .profile-path-link {
    min-height: 50px;
    gap: 2px;
    padding: 7px 9px;
    border-radius: 11px;
  }

  body.route-profile .profile-path-link span {
    min-height: 18px;
    padding: 0 6px;
    font-size: 9.5px;
    line-height: 16px;
  }

  body.route-profile .profile-path-link strong {
    font-size: 12.5px;
  }

  body.route-profile .profile-path-link em {
    font-size: 10px;
  }

  body.route-profile .profile-path-similar {
    gap: 6px;
    padding: 7px 0 7px 10px;
  }

  body.route-profile .profile-path-title {
    min-height: 20px;
    padding: 0 8px;
    font-size: 10px;
    line-height: 18px;
  }

  body.route-profile .profile-path-similar > div {
    gap: 6px;
  }

  body.route-profile .profile-path-profile {
    min-height: 44px;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 11px;
  }

  body.route-profile .profile-path-profile .avatar-wrap,
  body.route-profile .profile-path-profile .avatar {
    width: 30px;
    height: 30px;
  }
}

/* Final group desktop related-strip pass: keep group exploration useful without delaying the leaderboard. */
@media (min-width: 1280px) {
  body.route-group .group-related-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr) minmax(300px, 0.56fr);
    align-items: center;
    gap: 9px 12px;
    min-height: 0;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  body.route-group .group-related-header {
    display: grid;
    align-content: center;
    justify-content: start;
    gap: 4px;
    min-height: 54px;
  }

  body.route-group .group-related-header strong {
    font-size: 14px;
    line-height: 1.12;
  }

  body.route-group .group-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.route-group .group-related-link {
    min-height: 50px;
    gap: 2px;
    padding: 7px 9px;
    border-radius: 11px;
  }

  body.route-group .group-related-link span {
    min-height: 18px;
    padding: 0 6px;
    font-size: 9.5px;
    line-height: 16px;
  }

  body.route-group .group-related-link strong {
    font-size: 12.5px;
  }

  body.route-group .group-related-link em {
    font-size: 10px;
  }

  body.route-group .group-related-profiles {
    gap: 6px;
    padding: 7px 0 7px 10px;
    border-left: 1px solid rgba(220, 228, 240, 0.86);
  }

  body.route-group .group-related-title {
    min-height: 20px;
    padding: 0 8px;
    font-size: 10px;
    line-height: 18px;
  }

  body.route-group .group-related-profiles > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.route-group .group-related-profile {
    min-height: 44px;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 11px;
  }

  body.route-group .group-related-profile .avatar-wrap,
  body.route-group .group-related-profile .avatar {
    width: 30px;
    height: 30px;
  }

  body.route-group .group-related-profile:nth-child(n + 3) {
    display: none;
  }
}

/* Final trend mobile riser-completeness pass: show the full top-three movement set without delaying the table too much. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3) {
    display: grid !important;
    min-height: 46px;
    padding: 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child {
    grid-column: 1 / -1;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas: "avatar name delta";
    min-height: 48px;
    padding: 6px 7px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child b {
    grid-area: delta;
    justify-self: end;
    min-width: 48px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 2) {
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "delta delta";
    gap: 3px 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 2) b {
    justify-self: end;
    min-width: 42px;
    min-height: 16px;
    padding: 0 6px;
    font-size: 8.5px;
    line-height: 14px;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    min-height: 45px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3) {
    min-height: 43px;
    padding: 4px;
  }
}

/* Final trend mobile hero-CTA hierarchy pass: keep the title readable before the route handoff. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card {
    gap: 5px;
    padding: 12px 14px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-kicker {
    order: 1;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card h2 {
    order: 2;
    max-width: 100%;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-cta {
    position: static;
    order: 3;
    justify-self: start;
    min-width: 124px;
    min-height: 34px;
    max-width: 100%;
    margin: -2px 0 0;
    padding: 0 12px;
    font-size: 10.5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid {
    order: 4;
    gap: 3px;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-cta {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }
}

/* Final champion mobile hero-CTA hierarchy pass: keep the long champion title clear on narrow phones. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card {
    gap: 5px;
    padding: 12px 14px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-kicker {
    order: 1;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card h2 {
    order: 2;
    max-width: 100%;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-cta {
    position: static;
    order: 3;
    justify-self: start;
    min-width: 124px;
    min-height: 34px;
    max-width: 100%;
    margin: -2px 0 0;
    padding: 0 12px;
    font-size: 10.5px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid {
    order: 4;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-cta {
    padding: 0 10px;
    font-size: 10px;
  }
}

/* Final guide mobile hero-CTA hierarchy pass: align the guide preview with trend and champion mobile cards. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card {
    gap: 4px;
    padding: 10px 12px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-kicker {
    order: 1;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card h2 {
    order: 2;
    max-width: 100%;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-cta {
    position: static;
    order: 3;
    justify-self: start;
    min-width: 124px;
    min-height: 34px;
    max-width: 100%;
    margin: -2px 0 0;
    padding: 0 12px;
    font-size: 10.5px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid {
    order: 4;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-cta {
    padding: 0 10px;
    font-size: 10px;
  }
}

/* Final portal mobile metric-density pass: recover ranking handoff after separating hero CTAs. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid {
    gap: 3px;
    margin-top: 0;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
    align-content: center;
    gap: 1px;
    min-height: 30px;
    padding: 4px 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid em,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid em,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid em {
    font-size: 8.5px;
    line-height: 1;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid strong,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid strong,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid strong {
    font-size: 12px;
    line-height: 1;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-metric-grid span {
    min-height: 28px;
    padding: 3px 4px;
  }
}

/* Final profile desktop summary-rhythm pass: make the top stat cluster read as one dashboard. */
@media (min-width: 1180px) {
  body.route-profile .profile-spotlight {
    margin-bottom: 14px;
  }

  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(310px, 1.08fr) minmax(210px, 0.62fr) minmax(260px, 0.78fr) minmax(148px, 0.42fr) minmax(128px, 0.34fr);
    align-items: stretch;
    gap: 10px;
    padding: 18px 20px;
  }

  body.route-profile .profile-identity {
    align-self: stretch;
  }

  body.route-profile .profile-tier-panel {
    align-self: stretch;
    min-height: 96px;
    border-color: rgba(230, 237, 249, 0.9);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 232, 0.9)),
      #ffffff;
    box-shadow: 0 10px 22px rgba(6, 18, 41, 0.08);
  }

  body.route-profile .profile-stat-grid {
    align-self: stretch;
    gap: 7px;
  }

  body.route-profile .profile-stat-grid span {
    min-height: 44px;
    padding: 8px 10px;
    border-color: rgba(230, 237, 249, 0.9);
    background: rgba(255, 255, 255, 0.9);
  }

  body.route-profile .profile-champions {
    align-self: stretch;
    align-content: center;
    min-height: 96px;
    padding: 10px 12px;
    border: 1px solid rgba(230, 237, 249, 0.9);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
  }

  body.route-profile .profile-action-rail {
    align-self: stretch;
    gap: 7px;
  }

  body.route-profile .profile-action-link {
    min-height: 36px;
    border-color: rgba(230, 237, 249, 0.9);
    background: rgba(255, 255, 255, 0.9);
  }

  body.route-profile .profile-action-primary {
    border-color: rgba(245, 201, 107, 0.5);
    background: linear-gradient(135deg, #ffe3a1, var(--gold-button));
  }
}

/* Final LIVE hero profile-photo pass: make the now-correct source read as a streamer portrait. */
body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
  object-fit: cover;
  object-position: center top;
}

body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap {
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(255, 255, 255, 0.09);
}

@media (min-width: 901px) {
  body.route-live:not(.route-live-empty) .live-hero-profile {
    border-color: rgba(255, 255, 255, 0.24);
    background:
      radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.16), transparent 48%),
      rgba(255, 255, 255, 0.1);
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 74px;
    height: 74px;
  }
}

@media (max-width: 480px) {
  body.route-live:not(.route-live-empty) .live-hero-profile {
    width: 68px;
    min-height: 66px;
    padding: 7px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 50% 4%, rgba(255, 255, 255, 0.18), transparent 54%),
      rgba(255, 255, 255, 0.11);
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 340px) {
  body.route-live:not(.route-live-empty) .live-hero-profile {
    width: 64px;
    min-height: 62px;
    padding: 6px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 42px;
    height: 42px;
  }
}

/* Final group mobile exploration readability pass: give the three discovery chips full row width. */
@media (max-width: 480px) {
  body.route-group .group-related-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body.route-group .group-related-header {
    display: none;
  }

  body.route-group .group-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-group .group-related-link {
    min-height: 39px;
    padding: 6px 18px 6px 8px;
  }

  body.route-group .group-related-link span {
    font-size: 8.5px;
  }

  body.route-group .group-related-link strong {
    font-size: 11.5px;
    letter-spacing: 0;
  }
}

@media (max-width: 340px) {
  body.route-group .group-related-link {
    min-height: 38px;
    padding: 6px 17px 6px 7px;
  }

  body.route-group .group-related-link strong {
    font-size: 10.5px;
  }
}

/* Final profile narrow stat-value pass: prioritize readable values on 320px profile cards. */
@media (max-width: 480px) {
  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    align-content: center;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    letter-spacing: 0;
  }
}

@media (max-width: 340px) {
  body.route-profile .profile-stat-grid {
    gap: 3px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    min-height: 32px;
    padding: 4px 3px;
  }

  body.route-profile .profile-stat-grid em {
    display: none;
  }

  body.route-profile .profile-stat-grid strong,
  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 10.8px !important;
    line-height: 1.05;
  }

  body.route-profile .profile-stat-grid span:last-child strong {
    font-size: 9.4px !important;
  }
}

/* Final portal card handoff pass: separate dark portal summaries from white recommendation cards without adding colored strips. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard {
    row-gap: 6px;
  }

  body.route-portal .portal-list-card {
    border-top-color: rgba(148, 163, 184, 0.36);
    box-shadow:
      0 -1px 0 rgba(255, 255, 255, 0.86),
      0 10px 24px rgba(15, 27, 51, 0.07);
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard {
    row-gap: 5px;
  }
}

/* Final portal desktop list anchoring pass: make right-side recommendation rows feel intentionally grouped. */
@media (min-width: 1280px) {
  body.route-portal .portal-list-card .portal-profile-row,
  body.route-portal .portal-list-card .portal-champion-row,
  body.route-portal .portal-list-card .portal-link-tile {
    border-color: rgba(199, 216, 239, 0.86);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.route-portal .portal-list-card .portal-profile-row:hover,
  body.route-portal .portal-list-card .portal-profile-row:focus-visible,
  body.route-portal .portal-list-card .portal-champion-row:hover,
  body.route-portal .portal-list-card .portal-champion-row:focus-visible,
  body.route-portal .portal-list-card .portal-link-tile:hover,
  body.route-portal .portal-list-card .portal-link-tile:focus-visible {
    border-color: rgba(37, 97, 197, 0.24);
    background:
      linear-gradient(180deg, #ffffff, rgba(241, 247, 255, 0.98));
    transform: translateY(-1px);
  }

  body.route-portal .portal-list-card .portal-profile-row strong,
  body.route-portal .portal-list-card .portal-champion-row strong,
  body.route-portal .portal-list-card .portal-link-tile strong {
    letter-spacing: 0;
  }
}

/* Final group desktop related-balance pass: contain sparse related profiles so the strip does not read unfinished. */
@media (min-width: 1280px) {
  body.route-group .group-related-card {
    grid-template-columns: minmax(170px, 0.22fr) minmax(0, 1fr) minmax(500px, 0.52fr);
    grid-template-areas: "header links profiles";
  }

  body.route-group .group-related-profiles {
    grid-area: profiles;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    align-content: start;
  }

  body.route-group .group-related-profiles > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final role desktop leader-tone pass: align lane leader cards with the darker RIFTSTATS hero language. */
@media (min-width: 1280px) {
  body.route-role .role-leader-card {
    border-color: color-mix(in srgb, var(--role-accent) 34%, rgba(255, 255, 255, 0.16));
    background:
      radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--role-accent) 26%, transparent), transparent 32%),
      linear-gradient(122deg, #07152f 0%, #0d2857 58%, color-mix(in srgb, var(--role-deep) 58%, #07152f) 100%);
    box-shadow:
      0 14px 32px rgba(15, 27, 51, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  body.route-role .role-leader-card::after {
    color: rgba(255, 255, 255, 0.07);
  }

  body.route-role .role-panel-kicker {
    color: var(--gold-button);
  }

  body.route-role .role-leader-copy h2 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
  }

  body.route-role .role-leader-copy p {
    color: rgba(226, 232, 240, 0.88);
  }

  body.route-role .role-leader-card .leader-meta-chip {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
  }

  body.route-role .role-leader-card .leader-meta-chip.is-rank {
    border-color: rgba(245, 201, 107, 0.68);
    background: var(--gold-button);
    color: #3b2608;
  }

  body.route-role .role-leader-card .leader-meta-chip.is-live {
    border-color: rgba(34, 197, 94, 0.42);
    background: rgba(22, 163, 74, 0.18);
    color: #bbf7d0;
  }

  body.route-role .role-leader-actions a:first-child {
    border-color: rgba(245, 201, 107, 0.72);
    background: linear-gradient(180deg, #f6d77a 0%, #e6b94f 100%);
    color: #3b2608;
  }

  body.route-role .role-leader-actions a:nth-child(2) {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  body.route-role .role-leader-profile {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
}

/* Final ranking summary strip cleanup: remove decorative slivers that can look like stray red marks. */
body.route-ranking .summary-card::before {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
}

/* Final LIVE desktop portrait-frame pass: make the hero media read as a streamer profile, not a nested placeholder card. */
@media (min-width: 1280px) {
  body.route-live:not(.route-live-empty) .live-hero-profile {
    min-width: 136px;
    padding: 4px 2px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 88px;
    height: 88px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap {
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.46),
      0 0 0 7px rgba(255, 255, 255, 0.08),
      0 16px 30px rgba(1, 8, 18, 0.36);
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap.image-fallback::before {
    border-color: rgba(245, 201, 107, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    border-color: rgba(245, 201, 107, 0.78);
    box-shadow: none;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile strong {
    max-width: 136px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile > span:not(.avatar-wrap) {
    max-width: 136px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .champions {
    justify-content: center;
    padding: 2px 5px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
  }
}

/* Final profile desktop composition pass: make the right-side spotlight data read as one composed dashboard surface. */
@media (min-width: 1280px) {
  body.route-profile .profile-spotlight-card {
    background:
      radial-gradient(circle at 74% 16%, rgba(96, 165, 250, 0.24), transparent 27%),
      radial-gradient(circle at 96% 7%, rgba(245, 201, 107, 0.2), transparent 22%),
      linear-gradient(120deg, rgba(245, 201, 107, 0.16), transparent 34%),
      linear-gradient(102deg, #07152f 0%, #0d2857 45%, #eaf2ff 45.2%, #f8fbff 100%);
  }

  body.route-profile .profile-stat-grid,
  body.route-profile .profile-champions,
  body.route-profile .profile-action-rail {
    align-self: stretch;
    padding: 8px;
    border: 1px solid rgba(199, 216, 239, 0.72);
    border-radius: 16px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(232, 241, 255, 0.68)),
      rgba(255, 255, 255, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.84),
      0 10px 24px rgba(15, 27, 51, 0.06);
  }

  body.route-profile .profile-stat-grid {
    gap: 7px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-action-link {
    border-color: rgba(199, 216, 239, 0.86);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.94)),
      #ffffff;
  }

  body.route-profile .profile-stat-grid span {
    min-height: 48px;
  }

  body.route-profile .profile-champions {
    min-height: 100%;
    gap: 9px;
  }

  body.route-profile .profile-action-rail {
    gap: 7px;
  }

  body.route-profile .profile-action-primary {
    border-color: rgba(245, 201, 107, 0.62);
    background: linear-gradient(135deg, #ffe3a1, var(--gold-button));
  }
}

/* Final LIVE mobile portrait cleanup: keep the active-stream hero on a clean profile photo, not a stacked badge. */
@media (max-width: 767px) {
  body.route-live:not(.route-live-empty) .live-hero-profile {
    align-self: center;
    min-width: 72px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 70px;
    height: 70px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap {
    overflow: hidden;
    border: 1px solid rgba(245, 201, 107, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.1),
      0 10px 22px rgba(2, 8, 23, 0.3);
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap:not(.image-loaded) .avatar {
    visibility: hidden;
    opacity: 0;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap.image-fallback::before {
    border: 0;
    background:
      radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.98), transparent 33%),
      linear-gradient(145deg, #f8fbff 0%, #d7e4f5 56%, #a7bbd7 100%);
    box-shadow: none;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    object-fit: cover;
    object-position: center;
  }
}

/* Final champions board identity pass: make the champion TOP module feel like a dedicated champion board. */
body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
  border-color: rgba(45, 212, 191, 0.34);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.94) 0%, rgba(248, 251, 255, 0.98) 47%, rgba(255, 248, 230, 0.92) 100%);
  box-shadow:
    0 16px 36px rgba(15, 27, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header {
  align-items: center;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header h2 {
  color: #073642;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
  gap: 12px;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row,
body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3),
body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(n + 4) {
  border-color: rgba(14, 116, 144, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.82));
  box-shadow:
    0 10px 22px rgba(15, 27, 51, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:first-child {
  border-color: rgba(245, 201, 107, 0.66);
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.96) 58%, rgba(236, 253, 245, 0.82));
  box-shadow:
    0 14px 28px rgba(154, 113, 50, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap {
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(245, 201, 107, 0.34),
    0 10px 18px rgba(15, 27, 51, 0.12);
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
  color: #061229;
  letter-spacing: 0;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row em {
  color: #0f766e;
  font-weight: 900;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row i {
  gap: 5px;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row small,
body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
  border: 1px solid rgba(37, 97, 197, 0.14);
  background: #eef7ff;
  color: #0b3b82;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:first-child small,
body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:first-child b {
  border-color: rgba(199, 164, 115, 0.4);
  background: #fff8e6;
  color: #7a4b12;
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    min-height: 112px;
    padding: 14px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-rank {
    border-color: rgba(14, 116, 144, 0.24);
    background: #f0fdfa;
    color: #115e59;
  }
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    background:
      linear-gradient(135deg, rgba(240, 253, 250, 0.96), rgba(255, 255, 255, 0.98) 56%, rgba(255, 248, 230, 0.92));
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    gap: 6px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3) {
    min-height: 76px;
    border-color: rgba(14, 116, 144, 0.18);
    background: rgba(255, 255, 255, 0.88);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    width: 31px;
    height: 31px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
    font-weight: 950;
  }
}

/* Final profile desktop rail placement pass: use the full spotlight width and anchor quick actions on the right. */
@media (min-width: 1280px) {
  body.route-profile .profile-spotlight-card {
    grid-template-columns:
      minmax(320px, 0.98fr)
      minmax(220px, 0.62fr)
      minmax(286px, 0.78fr)
      minmax(166px, 0.46fr)
      minmax(218px, 0.6fr);
    align-items: stretch;
  }

  body.route-profile .profile-identity {
    grid-column: 1;
    grid-row: 1;
  }

  body.route-profile .profile-tier-panel {
    grid-column: 2;
    grid-row: 1;
  }

  body.route-profile .profile-stat-grid {
    grid-column: 3;
    grid-row: 1;
  }

  body.route-profile .profile-champions {
    grid-column: 4;
    grid-row: 1;
    justify-items: stretch;
  }

  body.route-profile .profile-action-rail {
    grid-column: 5;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
    padding: 8px;
  }

  body.route-profile .profile-action-link {
    min-height: 42px;
    width: 100%;
    padding: 7px 10px;
  }

  body.route-profile .profile-action-link span,
  body.route-profile .profile-action-link strong {
    max-width: 100%;
    white-space: nowrap;
  }
}

/* Final red artifact guard: remove decorative slivers only, while preserving real badges, avatars, and data states. */
.filter-panel::before,
.filter-panel::after,
body.route-ranking .summary-card::before,
body.route-ranking .summary-card::after,
body.route-ranking .table-card::before,
body.route-ranking .table-card::after,
body.route-ranking .table-card-top::before,
body.route-ranking .table-card-top::after,
body.route-ranking .table-card-top > div:first-child::before,
body.route-live .live-hero-card::before,
body.route-live .live-hero-card::after,
body.route-live .live-list-card::before,
body.route-live .live-list-card::after,
body.route-live .live-list-header strong::before,
body.route-live.route-live-empty .live-empty-card::before,
body.route-live.route-live-empty .live-empty-card::after,
body.route-live.route-live-empty .live-empty-suggestion::before,
body.route-profile .profile-spotlight-card::before,
body.route-profile .profile-spotlight-card::after,
body.route-profile .profile-card::before,
body.route-profile .profile-card::after,
body.route-profile .profile-path-card::before,
body.route-profile .profile-path-card::after,
body.route-portal .portal-hero-card::before,
body.route-portal .portal-hero-card::after,
body.route-portal .portal-list-card::before,
body.route-portal .portal-list-card::after,
body.route-portal .portal-list-header strong::before,
body.route-portal .portal-list-header strong::after,
body.route-portal .portal-profile-row::before,
body.route-portal .portal-profile-row::after,
body.route-portal .portal-champion-row::before,
body.route-portal .portal-champion-row::after,
body.route-portal .portal-link-tile::before,
body.route-portal .portal-link-tile::after,
body.route-role .role-dashboard::before,
body.route-role .role-dashboard::after,
body.route-role .role-leader-card::before,
body.route-role .role-leader-card::after,
body.route-role .role-metric-card::before,
body.route-role .role-metric-card::after,
body.route-role .role-runners-card::before,
body.route-role .role-runners-card::after,
body.route-role .role-switch-card::before,
body.route-role .role-switch-card::after,
body.route-role .role-runner-row::before,
body.route-role .role-runners-header strong::after,
body.route-group .group-leader-card::before,
body.route-group .group-leader-card::after,
body.route-group .group-metric-card::before,
body.route-group .group-metric-card::after,
body.route-group .group-roster-card::before,
body.route-group .group-roster-card::after,
body.route-group .group-member-row::before,
body.route-group .group-member-row::after,
body.route-group .group-related-card::before,
body.route-group .group-related-card::after,
body.route-group .group-roster-header strong::after,
.mobile-rank-card::before,
.mobile-rank-card::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
  transform: none !important;
}

/* Final trend momentum-board pass: make the riser card read as movement data, without decorative strips. */
body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
  border-color: rgba(34, 197, 94, 0.26);
  background:
    radial-gradient(circle at 92% 8%, rgba(34, 197, 94, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.98) 48%, rgba(239, 246, 255, 0.94));
  box-shadow:
    0 16px 36px rgba(15, 27, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header h2 {
  color: #064e3b;
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header a {
  border-color: rgba(37, 97, 197, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92));
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(37, 97, 197, 0.08);
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row,
body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3) {
  border-color: rgba(34, 197, 94, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.72));
  box-shadow:
    0 10px 22px rgba(15, 27, 51, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child {
  border-color: rgba(245, 201, 107, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.96) 54%, rgba(236, 253, 245, 0.84));
  box-shadow:
    0 14px 28px rgba(154, 113, 50, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar-wrap {
  overflow: hidden;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.2),
    0 10px 18px rgba(15, 27, 51, 0.11);
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child .avatar-wrap {
  box-shadow:
    0 0 0 1px rgba(245, 201, 107, 0.46),
    0 10px 20px rgba(154, 113, 50, 0.14);
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row strong {
  color: #061229;
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row em {
  color: #315071;
  font-weight: 900;
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row small {
  border-color: rgba(37, 97, 197, 0.14);
  background: #eef7ff;
  color: #0b3b82;
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row small:first-child,
body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
  border-color: rgba(22, 163, 74, 0.24);
  background: #ecfdf5;
  color: #15803d;
}

body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child b {
  border-color: rgba(199, 164, 115, 0.42);
  background: #fff8e6;
  color: #7a4b12;
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list {
    gap: 12px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row {
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    border-color: rgba(34, 197, 94, 0.2);
    background:
      linear-gradient(135deg, rgba(236, 253, 245, 0.86), rgba(255, 255, 255, 0.98) 58%, rgba(239, 246, 255, 0.9));
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3) {
    min-height: 60px;
    border-color: rgba(34, 197, 94, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px rgba(15, 27, 51, 0.052);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child {
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.96));
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar-wrap {
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.16);
  }
}

/* Final profile dossier-card pass: give the detail cards clearer stats hierarchy without adding decorative bars. */
body.route-profile .profile-insight-card {
  border-color: rgba(199, 216, 239, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
    #ffffff;
  box-shadow:
    0 14px 32px rgba(15, 27, 51, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.route-profile .profile-insight-card:nth-child(1) {
  border-color: rgba(245, 201, 107, 0.34);
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 201, 107, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(255, 255, 255, 0.98));
}

body.route-profile .profile-insight-card:nth-child(2) {
  border-color: rgba(37, 97, 197, 0.2);
  background:
    radial-gradient(circle at 90% 10%, rgba(37, 97, 197, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
}

body.route-profile .profile-insight-card:nth-child(3) {
  border-color: rgba(34, 197, 94, 0.2);
  background:
    radial-gradient(circle at 88% 10%, rgba(34, 197, 94, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(248, 253, 251, 0.98), rgba(255, 255, 255, 0.98));
}

body.route-profile .profile-insight-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(199, 216, 239, 0.64);
}

body.route-profile .profile-insight-header strong {
  color: #061229;
}

body.route-profile .profile-insight-header span,
body.route-profile .profile-insight-title b {
  color: #0f2a4d;
}

body.route-profile .profile-rank-grid span,
body.route-profile .profile-champion-list li,
body.route-profile .profile-live-copy {
  border: 1px solid rgba(199, 216, 239, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

body.route-profile .profile-live-copy {
  padding: 10px 11px;
  border-radius: 12px;
  color: #213858;
}

body.route-profile .profile-champion-list li {
  box-shadow:
    0 8px 18px rgba(15, 27, 51, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body.route-profile .profile-champion-list li:first-child {
  border-color: rgba(245, 201, 107, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.92), rgba(255, 255, 255, 0.98));
}

body.route-profile .profile-champion-list .champion-icon-wrap {
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(37, 97, 197, 0.12),
    0 8px 16px rgba(15, 27, 51, 0.1);
}

body.route-profile .profile-rank-grid strong {
  color: #061229;
}

@media (max-width: 480px) {
  body.route-profile .profile-insight-header {
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.route-profile .profile-spotlight-card .profile-champions {
    border-color: rgba(37, 97, 197, 0.14);
    background:
      linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
  }

  body.route-profile .profile-spotlight-card .profile-champion-summary {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.route-profile .profile-spotlight-card .profile-champion-summary strong {
    color: #061229;
  }

  body.route-profile .profile-spotlight-card .profile-champion-pills {
    gap: 5px;
  }
}

/* Final role lane-dossier pass: tighten the summary card so lane pages feel like analysis, not filler. */
@media (min-width: 901px) {
  body.route-role .role-metric-card {
    align-content: stretch;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    border-color: color-mix(in srgb, var(--role-accent) 24%, #ffffff);
    background:
      radial-gradient(circle at 92% 10%, var(--role-soft), transparent 32%),
      linear-gradient(180deg, color-mix(in srgb, var(--role-surface) 58%, #ffffff), rgba(255, 255, 255, 0.98) 44%),
      #ffffff;
    box-shadow:
      0 16px 34px rgba(15, 27, 51, 0.075),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  body.route-role .role-metric-card .role-panel-kicker {
    width: fit-content;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid color-mix(in srgb, var(--role-accent) 30%, #ffffff);
    border-radius: 999px;
    background: color-mix(in srgb, var(--role-surface) 82%, #ffffff);
    color: var(--role-deep);
    line-height: 22px;
  }

  body.route-role .role-metric-grid {
    align-self: stretch;
    gap: 10px;
  }

  body.route-role .role-metric-grid span {
    min-height: 64px;
    padding: 11px 12px;
    border-color: color-mix(in srgb, var(--role-accent) 20%, #ffffff);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--role-surface) 34%, #ffffff));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  body.route-role .role-metric-grid span:first-child,
  body.route-role .role-metric-grid span:nth-child(2) {
    border-color: color-mix(in srgb, var(--role-accent) 34%, #ffffff);
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--role-surface) 82%, #ffffff), rgba(255, 255, 255, 0.98));
  }

  body.route-role .role-metric-grid em {
    color: #315071;
  }

  body.route-role .role-metric-grid strong {
    color: #061229;
    font-size: 17px;
  }

  body.route-role .role-metric-card p {
    align-self: end;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--role-accent) 16%, #ffffff);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: #213858;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }
}

/* Final ranking KPI pass: make the top summary useful at a glance instead of repeating table text. */
@media (min-width: 901px) {
  body.route-ranking .summary-strip {
    grid-template-columns: minmax(210px, 0.9fr) minmax(230px, 0.95fr) minmax(250px, 1.05fr) minmax(220px, 0.9fr);
    align-items: stretch;
  }

  body.route-ranking .summary-card {
    align-content: stretch;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 112px;
    padding: 17px 19px;
  }

  body.route-ranking .summary-card::before,
  body.route-ranking .summary-card::after {
    display: none !important;
    content: none !important;
  }

  body.route-ranking .summary-kicker {
    width: fit-content;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid color-mix(in srgb, var(--summary-accent) 28%, #ffffff);
    border-radius: 999px;
    background: color-mix(in srgb, var(--summary-soft) 72%, #ffffff);
    color: var(--summary-deep);
    font-size: 11px;
    font-weight: 950;
    line-height: 22px;
  }

  body.route-ranking .summary-card:first-child .summary-kicker {
    border-color: rgba(245, 201, 107, 0.48);
    background: rgba(245, 201, 107, 0.12);
    color: #f5d582;
  }

  body.route-ranking .summary-card strong,
  body.route-ranking .summary-card strong.summary-compact,
  body.route-ranking .summary-card strong.summary-name,
  body.route-ranking .summary-card strong.summary-state {
    align-self: center;
    color: var(--summary-deep);
    font-size: clamp(24px, 2vw, 31px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
  }

  body.route-ranking .summary-card:first-child strong {
    color: #ffffff;
  }

  body.route-ranking .summary-card:nth-child(2) strong {
    color: #0f766e;
  }

  body.route-ranking .summary-card:nth-child(3) strong {
    color: #7a4b12;
  }

  body.route-ranking .summary-card:nth-child(4) strong {
    color: #312e81;
  }

  body.route-ranking .summary-card span:last-child {
    display: block;
    min-height: 30px;
    color: #52627a;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body.route-ranking .summary-card:first-child span:last-child {
    color: rgba(248, 251, 255, 0.76);
  }
}

/* Final champion preview pass: make champion pages read through champion mastery, not a reused rank list. */
body.route-portal[data-portal="champions"] .champion-focus-strip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 7px;
  margin-top: 7px;
  padding: 5px 7px;
  border: 1px solid rgba(15, 159, 143, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.78), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.route-portal[data-portal="champions"] .champion-focus-icons {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
}

body.route-portal[data-portal="champions"] .champion-focus-icons .champion-icon-wrap,
body.route-portal[data-portal="champions"] .champion-focus-icons .champion-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 50%;
}

body.route-portal[data-portal="champions"] .champion-focus-icons .champion-icon-wrap {
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(15, 27, 51, 0.1);
}

body.route-portal[data-portal="champions"] .champion-focus-icons .champion-icon-wrap + .champion-icon-wrap {
  margin-left: -6px;
}

body.route-portal[data-portal="champions"] .champion-focus-names {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
}

body.route-portal[data-portal="champions"] .champion-focus-names > span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 3px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

body.route-portal[data-portal="champions"] .champion-focus-more {
  display: none !important;
}

body.route-portal[data-portal="champions"] .champion-focus-names em {
  color: #7a4b12;
  font-size: 10px;
  font-style: normal;
}

body.route-portal[data-portal="champions"] .champion-focus-names strong {
  min-width: 0;
  overflow: hidden;
  color: #061229;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-overflow: ellipsis;
}

body.route-portal[data-portal="champions"] .leaderboard-table .channel-main {
  gap: 2px;
}

body.route-portal[data-portal="champions"] .leaderboard-table .channel-cell {
  align-items: flex-start;
}

body.route-portal[data-portal="champions"] .leaderboard-table .champion-focus-name + .champion-focus-name {
  display: none;
}

body.route-portal[data-portal="champions"] .leaderboard-table .champion-focus-more {
  display: inline-flex !important;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(15, 159, 143, 0.2);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.92);
  color: #0f766e;
  font-size: 10px;
  font-weight: 950;
}

body.route-portal[data-portal="champions"] .leaderboard-table .champions {
  border-color: rgba(15, 159, 143, 0.18);
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.74), rgba(248, 251, 255, 0.96)),
    #ffffff;
}

@media (max-width: 900px) {
  body.route-portal[data-portal="champions"] .mobile-champion-row {
    gap: 8px;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-strip {
    flex: 1 1 auto;
    margin-top: 0;
    padding: 6px 7px;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-names {
    flex-wrap: wrap;
    gap: 3px 6px;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-names > span {
    font-size: 10px;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-more {
    display: none !important;
  }
}

/* Final guide reference pass: make guide previews read as lane reference notes, not generic rank rows. */
body.route-portal[data-portal="guides"] .guide-focus-strip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  margin-top: 7px;
  padding: 5px 7px;
  border: 1px solid rgba(199, 164, 115, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.82), rgba(255, 255, 255, 0.96)),
    #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.route-portal[data-portal="guides"] .guide-focus-main {
  display: inline-grid;
  flex: 0 0 auto;
  gap: 1px;
}

body.route-portal[data-portal="guides"] .guide-focus-main em {
  color: #7a4b12;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.1;
}

body.route-portal[data-portal="guides"] .guide-focus-main strong {
  color: #061229;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
}

body.route-portal[data-portal="guides"] .guide-focus-champions {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

body.route-portal[data-portal="guides"] .guide-focus-icons {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
}

body.route-portal[data-portal="guides"] .guide-focus-icons .champion-icon-wrap,
body.route-portal[data-portal="guides"] .guide-focus-icons .champion-icon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
  border-radius: 50%;
}

body.route-portal[data-portal="guides"] .guide-focus-icons .champion-icon-wrap {
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(15, 27, 51, 0.1);
}

body.route-portal[data-portal="guides"] .guide-focus-icons .champion-icon-wrap + .champion-icon-wrap {
  margin-left: -6px;
}

body.route-portal[data-portal="guides"] .guide-focus-champions b {
  min-width: 0;
  overflow: hidden;
  color: #123b82;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.route-portal[data-portal="guides"] .leaderboard-table .channel-main {
  gap: 2px;
}

body.route-portal[data-portal="guides"] .leaderboard-table .channel-cell {
  align-items: flex-start;
}

body.route-portal[data-portal="guides"] .leaderboard-table .role-pill {
  border-color: rgba(199, 164, 115, 0.28);
  background: #fff8e6;
  color: #7a4b12;
}

@media (max-width: 900px) {
  body.route-portal[data-portal="guides"] .mobile-champion-row {
    gap: 8px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-strip {
    flex: 1 1 auto;
    margin-top: 0;
    padding: 6px 7px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-main {
    min-width: 60px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-champions b {
    max-width: 88px;
  }
}

/* Final data-guide modal pass: keep the shared explanation readable on desktop and phones. */
.modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-body {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 14px;
}

.modal-body .guide-summary,
.modal-body .guide-list {
  padding: 0;
}

.modal-body .guide-note {
  margin: 0;
  border-left-width: 1px;
  border-left-color: rgba(37, 97, 197, 0.14);
}

.modal-top {
  flex: 0 0 auto;
}

.modal-top .icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
}

.guide-list div {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* Final stray red marker hardening: keep thin UI accents neutral unless they carry rank data. */
.context-strip::before,
.context-strip::after,
.breadcrumb::before,
.breadcrumb::after,
.data-status::before,
.data-status::after,
.result-meta::before,
.result-meta::after,
.result-status-chip::before,
.result-status-chip::after,
.guide-note::before,
.guide-note::after,
.modal-body .guide-note::before,
.modal-body .guide-note::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
}

.guide-note,
.modal-body .guide-note {
  border-left-width: 1px !important;
  border-left-color: rgba(37, 97, 197, 0.14) !important;
}

@media (max-width: 640px) {
  .modal-backdrop {
    align-items: start;
    padding: 10px;
  }

  .modal {
    width: min(100%, 520px);
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  .modal-top {
    position: sticky;
    top: 0;
    z-index: 2;
    align-items: center;
    padding: 13px 13px 12px;
  }

  .modal-kicker {
    min-height: 20px;
    margin-bottom: 5px;
    padding: 0 8px;
    font-size: 10px;
    line-height: 18px;
  }

  .modal h2 {
    font-size: 18px;
    line-height: 1.15;
  }

  .modal-top .icon-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 11px;
  }

  .modal-body {
    gap: 9px;
    padding: 10px;
  }

  .guide-summary {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .guide-summary span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 10px;
    padding: 8px 10px;
  }

  .guide-summary b {
    font-size: 13px;
    white-space: nowrap;
  }

  .guide-summary em {
    text-align: right;
  }

  .guide-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .guide-list div {
    gap: 5px;
    padding: 10px;
    border-radius: 12px;
  }

  .guide-list dt {
    min-height: 20px;
    padding: 0 7px;
    font-size: 11px;
    line-height: 18px;
  }

  .guide-list dd {
    font-size: 11px;
    line-height: 1.45;
  }

  .guide-note {
    padding: 10px 11px;
    border-left-width: 1px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.45;
  }
}

/* Final LIVE mobile first-card pass: remove duplicate broadcast chrome before the actual rank cards. */
@media (max-width: 767px) {
  body.route-live:not(.route-live-empty) .mobile-filter-summary {
    margin: -9px 0 3px;
  }

  body.route-live:not(.route-live-empty) .mobile-filter-toggle {
    min-height: 40px;
    height: 40px;
    padding: 0 12px;
  }

  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed {
    margin-bottom: 3px;
    padding: 6px 7px;
  }

  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed input,
  body.route-live:not(.route-live-empty) .filter-panel.filter-collapsed .primary-button {
    min-height: 40px;
    height: 40px;
  }

  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 3px;
    margin: 0 0 3px;
  }

  body.route-live:not(.route-live-empty) .live-hero-card {
    min-height: 74px;
    gap: 5px;
    padding: 5px 8px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy {
    gap: 3px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy h2 {
    font-size: 18px;
  }

  body.route-live:not(.route-live-empty) .live-hero-meta,
  body.route-live:not(.route-live-empty) .live-hero-copy p {
    font-size: 10px;
    line-height: 1.18;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions {
    gap: 6px;
    margin-top: 2px;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions a {
    min-height: 28px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 10.5px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    min-width: 60px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 54px;
    height: 54px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile strong,
  body.route-live:not(.route-live-empty) .live-hero-profile > span:not(.avatar-wrap),
  body.route-live:not(.route-live-empty) .live-hero-profile .champions {
    display: none;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    display: grid;
    min-height: 22px;
    padding: 2px 7px;
  }

  body.route-live:not(.route-live-empty) .table-card-top {
    gap: 4px;
    padding: 6px 8px 4px;
  }

  body.route-live:not(.route-live-empty) .table-card h2 {
    font-size: 16px;
  }

  body.route-live:not(.route-live-empty) .tabs,
  body.route-live:not(.route-live-empty) .sort-select select,
  body.route-live:not(.route-live-empty) .table-actions .soft-button {
    min-height: 40px;
    height: 40px;
  }

  body.route-live:not(.route-live-empty) .tabs button {
    min-height: 36px;
  }
}

/* Final champion mobile identity pass: make TOP picks read as analysis cards, not plain chips. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    position: relative;
    overflow: hidden;
    min-height: 58px;
    padding: 7px 6px 6px;
    border-color: rgba(15, 159, 143, 0.22);
    background:
      radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.95), transparent 24%),
      linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(248, 251, 255, 0.98));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 8px 18px rgba(15, 27, 51, 0.06);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(1) {
    border-color: rgba(245, 201, 107, 0.52);
    background:
      radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.98), transparent 24%),
      linear-gradient(145deg, rgba(255, 248, 230, 0.98), rgba(236, 253, 245, 0.94));
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-rank {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 15px;
    padding: 0 5px;
    border: 1px solid rgba(15, 159, 143, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #0f766e;
    font-size: 7px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(1) .portal-champion-rank {
    border-color: rgba(199, 164, 115, 0.34);
    background: #fff8e6;
    color: #7a4b12;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap {
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 999px;
    box-shadow:
      0 0 0 3px rgba(37, 97, 197, 0.05),
      0 7px 14px rgba(15, 27, 51, 0.1);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    padding-right: 29px;
    color: #061229;
    font-weight: 950;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
    border-color: rgba(15, 159, 143, 0.18);
    background: #ecfdf5;
    color: #0f766e;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(1) b {
    border-color: rgba(199, 164, 115, 0.34);
    background: #fff8e6;
    color: #7a4b12;
  }
}

/* Final mobile first-screen hierarchy pass: bring real ranking data into view sooner without losing the portal identity. */
@media (max-width: 760px) {
  .global-header {
    min-height: 96px;
    padding: 7px 16px 6px;
    row-gap: 3px;
  }

  .brand {
    min-height: 34px;
    font-size: 18px;
  }

  .brand-mark svg {
    width: 28px;
    height: 28px;
  }

  .header-actions .icon-button {
    width: 38px;
    height: 38px;
  }

  .main-nav {
    height: 32px;
    gap: 10px;
  }

  .main-nav a {
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  .hero,
  .hero-inner {
    min-height: 136px;
  }

  .hero-inner {
    padding: 10px 14px 14px;
  }

  .hero-emblem svg {
    width: 28px;
    height: 28px;
  }

  .hero h1 {
    margin: 3px 0 2px;
    font-size: clamp(25px, 7.2vw, 30px);
    line-height: 1.03;
  }

  .hero p {
    display: -webkit-box;
    max-width: 300px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .ornament {
    display: none;
  }

  .page-shell {
    width: min(100% - 20px, 1440px);
  }

  .mobile-filter-summary {
    gap: 6px;
    margin: -7px 0 5px;
  }

  .mobile-filter-toggle {
    min-height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 11px;
  }

  .filter-panel.filter-collapsed {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 6px;
    padding: 7px;
    border-radius: 14px;
  }

  .filter-panel.filter-collapsed input {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .filter-panel.filter-collapsed .primary-button {
    width: 42px;
    min-height: 38px;
    padding: 0;
    border-radius: 11px;
    font-size: 0;
  }

  .filter-panel.filter-collapsed .primary-button svg {
    width: 17px;
    height: 17px;
  }

  .role-filter {
    gap: 5px;
    margin: 0 0 7px;
    padding: 2px 4px;
    border-radius: 13px;
  }

  .role-filter button {
    min-width: 44px;
    min-height: 38px;
    padding: 0 7px;
    font-size: 12px;
  }

  body.route-ranking .table-card-top,
  body.route-role .table-card-top,
  body.route-group .table-card-top,
  body.route-live .table-card-top,
  body.route-portal .table-card-top,
  body.route-profile .table-card-top {
    gap: 7px;
    padding: 9px 10px 6px;
  }

  body.route-ranking .table-card h2,
  body.route-role .table-card h2,
  body.route-group .table-card h2,
  body.route-live .table-card h2,
  body.route-portal .table-card h2,
  body.route-profile .table-card h2 {
    font-size: 18px;
    line-height: 1.14;
  }

  .table-actions {
    gap: 6px;
  }

  .tabs {
    min-height: 34px;
    padding: 2px;
    border-radius: 11px;
  }

  .tabs button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .sort-select select,
  .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
  }

  .mobile-list {
    padding: 7px 8px 10px;
  }
}

/* Final guide desktop data-panel pass: make the reference leaderboard read as a scan-ready analytics module. */
@media (min-width: 901px) {
  body.route-portal[data-portal="guides"] .table-card {
    border-color: rgba(199, 164, 115, 0.34);
    background:
      linear-gradient(180deg, rgba(255, 252, 244, 0.96) 0, rgba(255, 255, 255, 0.98) 118px),
      #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 18px 38px rgba(15, 27, 51, 0.1);
  }

  body.route-portal[data-portal="guides"] .table-card-top {
    align-items: center;
    padding: 20px 22px 14px;
    border-bottom-color: rgba(199, 164, 115, 0.22);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.72), rgba(248, 251, 255, 0.92) 58%, rgba(255, 255, 255, 0.98)),
      #ffffff;
  }

  body.route-portal[data-portal="guides"] .table-card h2 {
    color: #071a38;
    font-size: 21px;
    letter-spacing: 0;
  }

  body.route-portal[data-portal="guides"] .table-card p {
    max-width: 760px;
    color: #52627c;
    font-weight: 750;
  }

  body.route-portal[data-portal="guides"] .result-status-chip {
    border-color: rgba(199, 164, 115, 0.34);
    background: #fff8e6;
    color: #7a4b12;
  }

  body.route-portal[data-portal="guides"] .tabs,
  body.route-portal[data-portal="guides"] .sort-select select,
  body.route-portal[data-portal="guides"] .table-actions .soft-button {
    border-color: rgba(199, 164, 115, 0.24);
  }

  body.route-portal[data-portal="guides"] .leaderboard-table th {
    height: 42px;
    border-bottom-color: rgba(199, 164, 115, 0.24);
    background:
      linear-gradient(180deg, rgba(255, 248, 230, 0.96), rgba(244, 248, 254, 0.98)),
      #f8fbff;
    color: #52627c;
    box-shadow:
      0 1px 0 rgba(199, 164, 115, 0.18),
      0 9px 18px rgba(15, 27, 51, 0.07);
  }

  body.route-portal[data-portal="guides"] .leaderboard-table td {
    height: 62px;
    border-bottom-color: rgba(220, 228, 240, 0.86);
    background-color: rgba(255, 255, 255, 0.86);
  }

  body.route-portal[data-portal="guides"] .leaderboard-table tbody tr:nth-child(even) td {
    background-color: rgba(248, 251, 255, 0.78);
  }

  body.route-portal[data-portal="guides"] .leaderboard-table tbody tr.top-rank td {
    background-color: rgba(255, 250, 235, 0.68);
  }

  body.route-portal[data-portal="guides"] .leaderboard-table tbody tr:hover td {
    background-color: rgba(255, 248, 230, 0.5);
    box-shadow:
      inset 0 1px 0 rgba(199, 164, 115, 0.12),
      inset 0 -1px 0 rgba(199, 164, 115, 0.16);
  }

  body.route-portal[data-portal="guides"] .leaderboard-table th:nth-child(1),
  body.route-portal[data-portal="guides"] .leaderboard-table td:nth-child(1),
  body.route-portal[data-portal="guides"] .leaderboard-table th:nth-child(2),
  body.route-portal[data-portal="guides"] .leaderboard-table td:nth-child(2),
  body.route-portal[data-portal="guides"] .leaderboard-table th:nth-child(8),
  body.route-portal[data-portal="guides"] .leaderboard-table td:nth-child(8),
  body.route-portal[data-portal="guides"] .leaderboard-table th:nth-child(9),
  body.route-portal[data-portal="guides"] .leaderboard-table td:nth-child(9),
  body.route-portal[data-portal="guides"] .leaderboard-table th:nth-child(10),
  body.route-portal[data-portal="guides"] .leaderboard-table td:nth-child(10),
  body.route-portal[data-portal="guides"] .leaderboard-table th:nth-child(12),
  body.route-portal[data-portal="guides"] .leaderboard-table td:nth-child(12) {
    text-align: center;
  }

  body.route-portal[data-portal="guides"] .leaderboard-table .channel-main {
    gap: 1px;
  }

  body.route-portal[data-portal="guides"] .leaderboard-table .guide-focus-strip {
    gap: 5px;
    margin-top: 4px;
    padding: 3px 6px;
    border-color: rgba(199, 164, 115, 0.36);
    border-radius: 999px;
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.96), rgba(255, 255, 255, 0.98)),
      #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 6px 16px rgba(199, 164, 115, 0.12);
  }

  body.route-portal[data-portal="guides"] .leaderboard-table .guide-focus-main {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  body.route-portal[data-portal="guides"] .leaderboard-table .guide-focus-main em,
  body.route-portal[data-portal="guides"] .leaderboard-table .guide-focus-main strong {
    font-size: 10px;
    line-height: 1;
  }

  body.route-portal[data-portal="guides"] .leaderboard-table .guide-focus-champions {
    gap: 4px;
  }

  body.route-portal[data-portal="guides"] .leaderboard-table .guide-focus-icons .champion-icon-wrap,
  body.route-portal[data-portal="guides"] .leaderboard-table .guide-focus-icons .champion-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  body.route-portal[data-portal="guides"] .leaderboard-table .guide-focus-icons .champion-icon-wrap {
    border-width: 1px;
  }

  body.route-portal[data-portal="guides"] .leaderboard-table .guide-focus-champions b {
    max-width: 72px;
    font-size: 10px;
  }
}

/* Final global stray-marker guard: remove tiny decorative slivers that read like red error bars. */
.summary-kicker::before,
.summary-kicker::after,
.live-panel-kicker::before,
.live-panel-kicker::after,
.role-panel-kicker::before,
.role-panel-kicker::after,
.group-panel-kicker::before,
.group-panel-kicker::after,
.portal-kicker::before,
.portal-kicker::after,
.guide-kicker::before,
.guide-kicker::after,
.table-card-top > div:first-child::before,
.table-card-top > div:first-child::after,
.live-list-header strong::before,
.live-list-header strong::after,
.context-meta span::before,
.context-meta span::after,
.context-links a::before,
.context-links a::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
}

.guide-note,
.modal-body .guide-note,
.live-metric-grid span,
.role-metric-grid span,
.group-metric-grid span,
.portal-metric-grid span {
  border-left-width: 1px !important;
  border-left-color: rgba(220, 228, 240, 0.9) !important;
}

/* Final role desktop support-panel pass: make lane summaries and chasers match the leader card's weight. */
@media (min-width: 901px) {
  body.route-role .role-metric-card,
  body.route-role .role-runners-card {
    border-color: color-mix(in srgb, var(--role-accent) 34%, #ffffff);
    background:
      radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--role-accent) 16%, transparent), transparent 34%),
      linear-gradient(135deg, color-mix(in srgb, var(--role-surface) 76%, #ffffff), rgba(255, 255, 255, 0.98) 54%),
      #ffffff;
    box-shadow:
      0 18px 38px rgba(15, 27, 51, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  body.route-role .role-runners-card {
    gap: 14px;
    padding: 18px;
  }

  body.route-role .role-runners-header {
    align-items: center;
    padding-bottom: 4px;
    border-bottom: 1px solid color-mix(in srgb, var(--role-accent) 16%, #ffffff);
  }

  body.route-role .role-runners-header strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    border: 1px solid color-mix(in srgb, var(--role-accent) 28%, #ffffff);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--role-deep);
    font-size: 15px;
    font-weight: 950;
  }

  body.route-role .role-metric-card .role-panel-kicker,
  body.route-role .role-runners-header .role-panel-kicker {
    border-color: color-mix(in srgb, var(--role-accent) 38%, #ffffff);
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--role-surface) 88%, #ffffff), rgba(255, 255, 255, 0.9));
    color: var(--role-deep);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  }

  body.route-role .role-metric-grid span {
    min-height: 70px;
    border-color: color-mix(in srgb, var(--role-accent) 24%, #ffffff) !important;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--role-surface) 46%, #ffffff));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 8px 16px rgba(15, 27, 51, 0.045);
  }

  body.route-role .role-metric-grid strong {
    font-size: 20px;
    letter-spacing: 0;
  }

  body.route-role .role-metric-card p {
    border-color: color-mix(in srgb, var(--role-accent) 22%, #ffffff);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.84), color-mix(in srgb, var(--role-surface) 38%, #ffffff));
    color: #102340;
    font-weight: 900;
  }

  body.route-role .role-runner-row {
    min-height: 78px;
    border-color: color-mix(in srgb, var(--role-accent) 22%, #ffffff);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--role-surface) 36%, #ffffff));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 8px 18px rgba(15, 27, 51, 0.055);
  }

  body.route-role .role-runner-row:first-child {
    border-color: color-mix(in srgb, var(--role-accent) 44%, #ffffff);
    background:
      linear-gradient(135deg, color-mix(in srgb, var(--role-surface) 82%, #ffffff), rgba(255, 255, 255, 0.96));
  }

  body.route-role .role-runner-row .avatar-wrap,
  body.route-role .role-runner-row .avatar {
    width: 42px;
    height: 42px;
  }

  body.route-role .role-runner-row strong {
    color: #061229;
    font-size: 15px;
    font-weight: 950;
  }

  body.route-role .role-runner-row em {
    color: #304766;
    font-weight: 850;
  }

  body.route-role .role-runner-row b {
    min-width: 38px;
    border-color: color-mix(in srgb, var(--role-accent) 32%, #ffffff);
    background: color-mix(in srgb, var(--role-surface) 86%, #ffffff);
    color: var(--role-deep);
  }
}

/* Final profile desktop hierarchy pass: keep the profile lead strong and demote repeated meta cards. */
@media (min-width: 1024px) {
  body.route-profile .profile-spotlight-card {
    align-items: stretch;
    grid-template-columns: minmax(310px, 1.32fr) minmax(210px, 0.72fr) minmax(250px, 0.9fr) minmax(170px, 0.56fr) minmax(190px, 0.6fr);
    gap: 12px;
    padding: 18px 20px;
    border-color: rgba(37, 97, 197, 0.2);
    background:
      radial-gradient(circle at 92% 18%, rgba(125, 181, 255, 0.28), transparent 28%),
      linear-gradient(115deg, rgba(7, 18, 41, 0.96) 0 29%, rgba(17, 45, 91, 0.9) 29% 54%, rgba(232, 241, 255, 0.92) 54% 100%),
      #ffffff;
    box-shadow:
      0 18px 42px rgba(15, 27, 51, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  body.route-profile .profile-identity {
    min-height: 128px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  body.route-profile .profile-identity h2 {
    font-size: 27px;
    line-height: 1.05;
  }

  body.route-profile .profile-identity p {
    max-width: 380px;
  }

  body.route-profile .profile-tier-panel {
    min-height: 128px;
    border-color: rgba(245, 201, 107, 0.4);
    background:
      radial-gradient(circle at 13% 50%, rgba(245, 201, 107, 0.2), transparent 36%),
      linear-gradient(135deg, rgba(255, 252, 244, 0.98), rgba(255, 255, 255, 0.92));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      0 10px 22px rgba(15, 27, 51, 0.06);
  }

  body.route-profile .profile-tier-panel strong {
    font-size: 22px;
  }

  body.route-profile .profile-stat-grid,
  body.route-profile .profile-champions,
  body.route-profile .profile-action-rail {
    min-height: 128px;
    border-color: rgba(203, 216, 235, 0.88);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.84));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 8px 18px rgba(15, 27, 51, 0.045);
  }

  body.route-profile .profile-stat-grid {
    gap: 7px;
    padding: 10px;
  }

  body.route-profile .profile-stat-grid span {
    min-height: 50px;
    padding: 10px 11px;
    border-color: rgba(207, 220, 238, 0.9);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: none;
  }

  body.route-profile .profile-stat-grid span:first-child {
    border-color: rgba(245, 201, 107, 0.34);
    background: rgba(255, 248, 230, 0.72);
  }

  body.route-profile .profile-stat-grid strong {
    color: #061229;
    font-size: 17px;
  }

  body.route-profile .profile-champions {
    align-content: center;
    gap: 10px;
    padding: 13px;
  }

  body.route-profile .profile-champion-summary {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(207, 220, 238, 0.76);
  }

  body.route-profile .profile-champion-summary strong {
    color: #061229;
    font-size: 14px;
  }

  body.route-profile .profile-action-rail {
    align-content: stretch;
    gap: 7px;
    padding: 10px;
  }

  body.route-profile .profile-action-link {
    min-height: 34px;
    border-color: rgba(207, 220, 238, 0.86);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
  }

  body.route-profile .profile-action-primary {
    border-color: rgba(245, 201, 107, 0.55);
    background: linear-gradient(135deg, rgba(245, 201, 107, 0.72), rgba(255, 248, 230, 0.94));
  }
}

/* Final profile mobile identity fix: prevent Korean names from stacking and keep tier weight. */
@media (max-width: 480px) {
  body.route-profile .profile-identity {
    width: 100%;
  }

  body.route-profile .profile-identity > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.route-profile .profile-identity h2 {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-identity h2 .live-badge {
    flex: 0 0 auto;
  }

  body.route-profile .profile-tier-panel {
    min-height: 58px !important;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* Final group desktop hero hierarchy pass: make the group #1 card lead the section. */
@media (min-width: 901px) {
  body.route-group .group-dashboard {
    align-items: stretch;
    gap: 18px;
  }

  body.route-group .group-leader-card {
    position: relative;
    overflow: hidden;
    min-height: 276px;
    padding: 26px 28px;
    border-color: rgba(245, 201, 107, 0.34);
    background:
      radial-gradient(circle at 82% 18%, rgba(245, 201, 107, 0.24), transparent 28%),
      radial-gradient(circle at 18% 90%, rgba(37, 97, 197, 0.2), transparent 34%),
      linear-gradient(135deg, #07152f 0%, #103179 58%, #0b244f 100%);
    box-shadow:
      0 22px 48px rgba(15, 27, 51, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  body.route-group .group-leader-card::after {
    position: absolute;
    right: 20px;
    bottom: 12px;
    color: rgba(245, 201, 107, 0.12);
    content: "GROUP #1";
    font-size: 58px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
  }

  body.route-group .group-leader-copy,
  body.route-group .group-leader-profile {
    position: relative;
    z-index: 1;
  }

  body.route-group .group-leader-copy {
    gap: 10px;
  }

  body.route-group .group-leader-copy h2 {
    color: #ffffff;
    font-size: 34px;
    letter-spacing: 0;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  }

  body.route-group .group-leader-copy p {
    color: rgba(245, 248, 255, 0.94);
    font-size: 14px;
  }

  body.route-group .group-leader-card .group-panel-kicker {
    width: fit-content;
    min-height: 25px;
    padding: 0 10px;
    border: 1px solid rgba(245, 201, 107, 0.42);
    border-radius: 999px;
    background: rgba(245, 201, 107, 0.12);
    color: #f5d582;
    line-height: 23px;
  }

  body.route-group .group-leader-card .leader-meta-chip {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #f7fbff;
  }

  body.route-group .group-leader-card .leader-meta-chip.is-rank {
    border-color: rgba(245, 201, 107, 0.54);
    background: #f5c96b;
    color: #071229;
  }

  body.route-group .group-leader-profile {
    border-color: rgba(245, 201, 107, 0.28);
    background:
      radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.22), transparent 50%),
      rgba(255, 255, 255, 0.1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 18px 32px rgba(0, 0, 0, 0.16);
  }

  body.route-group .group-metric-card,
  body.route-group .group-roster-card {
    border-color: rgba(226, 214, 191, 0.68);
    background:
      linear-gradient(135deg, rgba(255, 252, 244, 0.84), rgba(255, 255, 255, 0.96) 58%),
      #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 10px 24px rgba(15, 27, 51, 0.06);
  }

  body.route-group .group-metric-grid span,
  body.route-group .group-member-row {
    border-color: rgba(217, 228, 242, 0.9);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.94));
    box-shadow: none;
  }

  body.route-group .group-roster-card .group-member-row:first-child {
    border-color: rgba(245, 201, 107, 0.42);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.72), rgba(255, 255, 255, 0.96));
  }

  body.route-group .group-related-card {
    min-height: 86px;
    padding: 14px 18px;
    border-color: rgba(226, 214, 191, 0.56);
    background:
      linear-gradient(135deg, rgba(255, 252, 244, 0.7), rgba(248, 251, 255, 0.9)),
      #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 8px 20px rgba(15, 27, 51, 0.045);
  }

  body.route-group .group-related-header strong {
    font-size: 15px;
  }

  body.route-group .group-related-link,
  body.route-group .group-related-profile {
    min-height: 46px;
    border-color: rgba(207, 220, 238, 0.82);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
  }
}

/* Final profile mobile champion-bridge pass: connect top champions to the profile summary flow. */
@media (max-width: 900px) {
  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 5px;
  }

  body.route-profile .profile-identity,
  body.route-profile .profile-tier-panel,
  body.route-profile .profile-stat-grid,
  body.route-profile .profile-champions,
  body.route-profile .profile-action-rail {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  body.route-profile .profile-tier-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 54px;
    padding: 7px 10px;
    overflow: hidden;
  }

  body.route-profile .profile-tier-panel .tier-emblem {
    width: 34px;
    height: 34px;
  }

  body.route-profile .profile-tier-panel > div {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  body.route-profile .profile-tier-panel strong {
    overflow: hidden;
    color: var(--tier-color);
    font-size: 14px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-tier-panel .profile-lp-text {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    min-width: 0;
    font-size: 11px;
    line-height: 1.1;
  }

  body.route-profile .profile-champions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin-top: -1px;
    padding: 4px 7px;
    border-color: rgba(245, 201, 107, 0.34);
    border-radius: 13px;
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.82), rgba(248, 251, 255, 0.94) 62%, rgba(255, 255, 255, 0.98)),
      #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 6px 12px rgba(15, 27, 51, 0.045);
  }

  body.route-profile .profile-champion-summary {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.route-profile .profile-champion-summary strong {
    color: #061229;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.08;
  }

  body.route-profile .profile-champion-summary em {
    max-width: 128px;
    overflow: hidden;
    color: #445a78;
    font-size: 10px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-champions .profile-champion-pills {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
    gap: 4px;
  }

  body.route-profile .profile-champion-pill {
    min-width: 0;
    height: 24px;
    padding: 2px 6px 2px 2px;
    border-color: rgba(199, 164, 115, 0.34);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 4px 9px rgba(15, 27, 51, 0.055);
  }

  body.route-profile .profile-champion-pill .champion-icon-wrap,
  body.route-profile .profile-champion-pill .champion-icon {
    width: 20px;
    height: 20px;
  }

  body.route-profile .profile-champion-pill strong {
    max-width: 44px;
    overflow: hidden;
    color: #0f376f;
    font-size: 10px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-profile .profile-champion-pill em,
  body.route-profile .profile-champion-pill .profile-champion-text em {
    display: none;
  }
}

@media (max-width: 360px) {
  body.route-profile .profile-tier-panel {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
    min-height: 54px !important;
    padding: 6px 8px;
  }

  body.route-profile .profile-tier-panel .tier-emblem {
    width: 32px;
    height: 32px;
  }

  body.route-profile .profile-tier-panel strong {
    font-size: 13px;
  }

  body.route-profile .profile-tier-panel .profile-lp-text {
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
    font-size: 10px;
  }

  body.route-profile .profile-tier-panel .profile-lp-text span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.route-profile .profile-tier-panel .profile-lp-delta {
    flex: 0 0 auto;
  }

  body.route-profile .profile-champions {
    grid-template-columns: minmax(76px, 0.72fr) minmax(0, 1fr);
    padding-inline: 7px;
  }

  body.route-profile .profile-champion-summary em {
    display: none;
  }

  body.route-profile .profile-champion-pill strong {
    max-width: 32px;
  }
}

/* Final champion TOP highlight pass: make champion picks read as a composed analysis board. */
body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
  border-color: rgba(15, 159, 143, 0.32);
  background:
    radial-gradient(circle at 94% 10%, rgba(245, 201, 107, 0.14), transparent 25%),
    linear-gradient(135deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.98) 52%, rgba(248, 251, 255, 0.96)),
    #ffffff;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header {
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(15, 159, 143, 0.14);
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header .portal-kicker {
  border-color: rgba(15, 159, 143, 0.24);
  background: #ecfdf5;
  color: #0f766e;
}

body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header a {
  border-color: rgba(37, 97, 197, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    gap: 13px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    min-height: 114px;
    padding: 15px 14px;
    border-color: rgba(15, 159, 143, 0.22);
    background:
      radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.98), transparent 22%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.78));
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:first-child {
    border-color: rgba(245, 201, 107, 0.68);
    background:
      radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.98), transparent 22%),
      linear-gradient(145deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.96) 52%, rgba(236, 253, 245, 0.82));
    box-shadow:
      0 18px 34px rgba(154, 113, 50, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-rank {
    align-self: start;
    min-width: 52px;
    height: 26px;
    border-radius: 999px;
    text-align: center;
    letter-spacing: 0;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    width: 48px;
    height: 48px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    font-size: 17px;
    line-height: 1.05;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row i {
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    padding: 7px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header {
    padding-bottom: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    min-height: 54px;
    padding-top: 5px;
    padding-bottom: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-rank {
    top: 4px;
    right: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    font-size: 11px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    width: 28px;
    height: 28px;
  }
}

/* Final LIVE empty desktop command-panel pass: make the no-broadcast state feel anchored and useful. */
@media (min-width: 901px) {
  body.route-live.route-live-empty .live-dashboard {
    margin-bottom: 28px;
  }

  body.route-live.route-live-empty .live-empty-feature {
    grid-template-columns: minmax(0, 0.98fr) minmax(360px, 420px);
    gap: 28px;
    min-height: 344px;
    padding: 30px 32px;
    border-color: rgba(199, 164, 115, 0.42);
    background:
      radial-gradient(circle at 80% 10%, rgba(245, 201, 107, 0.24), transparent 28%),
      radial-gradient(circle at 20% 100%, rgba(37, 97, 197, 0.12), transparent 30%),
      linear-gradient(118deg, rgba(255, 248, 230, 0.68), rgba(255, 255, 255, 0.98) 44%, rgba(248, 251, 255, 0.98)),
      #ffffff;
    box-shadow:
      0 22px 54px rgba(15, 27, 51, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.94);
  }

  body.route-live.route-live-empty .live-empty-copy {
    align-content: center;
    gap: 12px;
  }

  body.route-live.route-live-empty #liveEmptyTitle {
    font-size: 26px;
    letter-spacing: 0;
  }

  body.route-live.route-live-empty .live-empty-status-grid {
    grid-template-columns: 1.18fr 1fr 1fr;
  }

  body.route-live.route-live-empty .live-empty-status-grid span,
  body.route-live.route-live-empty .live-empty-flow span {
    min-height: 62px;
    border-color: rgba(199, 216, 239, 0.86);
    box-shadow:
      0 8px 20px rgba(15, 27, 51, 0.045),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.route-live.route-live-empty .live-empty-status-grid span:first-child {
    border-color: rgba(245, 201, 107, 0.62);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.96), rgba(255, 255, 255, 0.98) 64%),
      #ffffff;
  }

  body.route-live.route-live-empty .live-empty-status-grid span:first-child strong {
    color: #0d2f68;
    font-size: 16px;
  }

  body.route-live.route-live-empty .live-empty-status-grid span:not(:first-child) strong {
    font-size: 13px;
  }

  body.route-live.route-live-empty .live-empty-flow strong {
    font-size: 13px;
  }

  body.route-live.route-live-empty .live-empty-more {
    align-content: start;
    padding: 18px;
    border-color: rgba(199, 216, 239, 0.92);
    background:
      radial-gradient(circle at 92% 6%, rgba(37, 97, 197, 0.08), transparent 30%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95)),
      #ffffff;
    box-shadow:
      0 18px 38px rgba(15, 27, 51, 0.085),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  body.route-live.route-live-empty .live-empty-more summary {
    padding-bottom: 4px;
    color: var(--text-main);
    font-size: 14px;
  }

  body.route-live.route-live-empty .live-empty-suggestions {
    padding: 12px;
    border-color: rgba(199, 216, 239, 0.88);
  }

  body.route-live.route-live-empty .live-empty-suggestion {
    min-height: 70px;
    padding: 11px 12px;
  }

  body.route-live.route-live-empty .live-empty-suggestion strong {
    font-size: 16px;
  }
}

/* Final role desktop context pass: keep breadcrumb chips secondary to the lane dashboard. */
@media (min-width: 901px) {
  body.route-role .context-strip {
    grid-template-columns: minmax(180px, 0.52fr) minmax(0, 0.68fr) minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 18px;
    padding: 9px 12px;
    border-color: rgba(220, 228, 240, 0.68);
    border-radius: 14px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(248, 251, 255, 0.62)),
      rgba(255, 255, 255, 0.7);
    box-shadow: none;
  }

  body.route-role .context-breadcrumb {
    color: #7c8798;
    font-size: 11px;
  }

  body.route-role .context-meta {
    justify-content: flex-start;
  }

  body.route-role .context-meta span,
  body.route-role .context-links a {
    min-height: 24px;
    padding: 4px 8px;
    border-color: rgba(220, 228, 240, 0.72);
    background: rgba(255, 255, 255, 0.62);
    color: #536079;
    font-size: 10px;
    box-shadow: none;
  }

  body.route-role .context-links {
    justify-content: flex-end;
  }

  body.route-role .context-links a.active {
    border-color: rgba(245, 201, 107, 0.58);
    background: rgba(255, 248, 230, 0.82);
    color: #7a4b12;
  }
}

/* Final guides desktop priority pass: give the first lane guide a clear starting point. */
@media (min-width: 1180px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    grid-column: span 2;
    min-height: 70px;
    border-color: rgba(199, 216, 239, 0.74);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.92)),
      #ffffff;
    box-shadow: 0 8px 18px rgba(15, 27, 51, 0.045);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child {
    grid-column: span 4;
    min-height: 90px;
    border-color: rgba(245, 201, 107, 0.72);
    background:
      radial-gradient(circle at 92% 12%, rgba(245, 201, 107, 0.16), transparent 28%),
      linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.96) 62%),
      #ffffff;
    box-shadow:
      0 16px 32px rgba(154, 113, 50, 0.11),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(2) {
    grid-column: span 2;
    min-height: 90px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child strong {
    font-size: 20px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:not(:first-child) strong {
    font-size: 15px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:not(:first-child) em {
    color: #66728a;
  }
}

/* Final group mobile summary-board pass: make the hero handoff read as group data, not loose chips. */
@media (max-width: 480px) {
  body.route-group .group-dashboard {
    gap: 5px;
    margin-bottom: 6px;
  }

  body.route-group .group-leader-card {
    gap: 5px;
    padding: 7px 9px;
  }

  body.route-group .group-leader-profile {
    min-height: 72px;
    padding: 5px;
  }

  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar {
    width: 42px;
    height: 42px;
  }

  body.route-group .group-related-card {
    margin-top: 5px;
    margin-bottom: 8px;
    padding: 6px;
    border-color: rgba(245, 201, 107, 0.34);
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.76), rgba(255, 255, 255, 0.98) 54%, rgba(248, 251, 255, 0.94)),
      #ffffff;
    box-shadow:
      0 10px 22px rgba(15, 27, 51, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.route-group .group-related-grid {
    gap: 5px;
  }

  body.route-group .group-related-link {
    min-height: 38px;
    padding: 6px 18px 5px 8px;
    border-color: rgba(199, 164, 115, 0.28);
    border-radius: 11px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
      #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  body.route-group .group-related-primary {
    border-color: rgba(245, 201, 107, 0.5);
    background:
      linear-gradient(145deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.98)),
      #ffffff;
  }

  body.route-group .group-related-link span {
    color: #7a4b12;
    font-size: 8.5px;
    font-weight: 950;
  }

  body.route-group .group-related-link strong {
    color: var(--text-main);
    font-size: 12.5px;
    line-height: 1.05;
  }

  body.route-group .table-card-top {
    padding: 8px 10px 5px;
  }
}

/* Final profile desktop cohesion pass: make the top area read as one anchored streamer summary. */
@media (min-width: 901px) {
  body.route-profile .profile-spotlight-card {
    gap: 14px;
    padding: 22px;
    border-color: rgba(199, 216, 239, 0.62);
    background:
      radial-gradient(circle at 8% 14%, rgba(245, 201, 107, 0.1), transparent 30%),
      radial-gradient(circle at 84% 18%, rgba(234, 241, 255, 0.34), transparent 34%),
      linear-gradient(120deg, #07152f 0%, #173766 34%, #dfeafe 100%);
    box-shadow:
      0 22px 48px rgba(15, 27, 51, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  body.route-profile .profile-identity {
    min-height: 148px;
    padding: 18px;
    border-color: rgba(245, 201, 107, 0.28);
    background:
      radial-gradient(circle at 86% 10%, rgba(245, 201, 107, 0.16), transparent 30%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
    box-shadow:
      0 16px 30px rgba(3, 10, 24, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  body.route-profile .profile-identity .avatar-wrap,
  body.route-profile .profile-identity .avatar {
    width: 70px;
    height: 70px;
  }

  body.route-profile .profile-identity h2 {
    font-size: 31px;
    line-height: 1.02;
  }

  body.route-profile .profile-tier-panel,
  body.route-profile .profile-stat-grid,
  body.route-profile .profile-champions,
  body.route-profile .profile-action-rail {
    border: 1px solid rgba(255, 255, 255, 0.66);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.84)),
      #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 12px 24px rgba(15, 27, 51, 0.075);
  }

  body.route-profile .profile-tier-panel {
    min-height: 148px;
    border-color: rgba(245, 201, 107, 0.34);
    background:
      radial-gradient(circle at 88% 14%, rgba(245, 201, 107, 0.18), transparent 30%),
      linear-gradient(145deg, rgba(255, 252, 244, 0.98), rgba(255, 255, 255, 0.94));
  }

  body.route-profile .profile-stat-grid {
    align-content: stretch;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  body.route-profile .profile-stat-grid span,
  body.route-profile .profile-stat-grid span:last-child {
    min-height: 60px;
    border-color: rgba(199, 216, 239, 0.72);
    background: rgba(255, 255, 255, 0.66);
  }

  body.route-profile .profile-champions {
    border-color: rgba(199, 216, 239, 0.76);
  }

  body.route-profile .profile-action-rail {
    align-content: stretch;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  body.route-profile .profile-action-link {
    border-color: rgba(199, 216, 239, 0.72);
    background: rgba(255, 255, 255, 0.68);
  }

  body.route-profile .profile-action-primary {
    border-color: rgba(245, 201, 107, 0.5);
    background:
      linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.94)),
      #ffffff;
  }
}

/* Final LIVE empty desktop width pass: keep the no-broadcast command panel composed on wide screens. */
@media (min-width: 901px) {
  body.route-live.route-live-empty .live-dashboard {
    display: grid;
    justify-items: center;
  }

  body.route-live.route-live-empty .live-empty-feature {
    width: min(100%, 1180px);
    grid-template-columns: minmax(0, 1fr) minmax(332px, 384px);
    gap: 20px;
    min-height: 306px;
    padding: 24px;
  }

  body.route-live.route-live-empty .live-empty-more {
    padding: 14px;
  }

  body.route-live.route-live-empty .live-empty-suggestions {
    padding: 9px;
  }

  body.route-live.route-live-empty .live-empty-suggestion {
    min-height: 66px;
    padding: 9px 10px;
  }

  body.route-live.route-live-empty .live-empty-actions {
    gap: 8px;
  }
}

/* Final artifact override: keep accidental accent slivers out of every route. */
.filter-panel::before,
.filter-panel::after,
body.route-ranking .summary-card::before,
body.route-ranking .summary-card::after,
body.route-ranking .table-card::before,
body.route-ranking .table-card::after,
body.route-ranking .table-card-top::before,
body.route-ranking .table-card-top::after,
body.route-ranking .table-card-top > div:first-child::before,
body.route-ranking .table-card-top > div:first-child::after,
body.route-live .live-hero-card::before,
body.route-live .live-hero-card::after,
body.route-live .live-list-card::before,
body.route-live .live-list-card::after,
body.route-live .live-list-header strong::before,
body.route-live .live-list-header strong::after,
body.route-live.route-live-empty .live-empty-card::before,
body.route-live.route-live-empty .live-empty-card::after,
body.route-live.route-live-empty .live-empty-suggestion::before,
body.route-live.route-live-empty .live-empty-suggestion::after,
body.route-profile .profile-spotlight-card::before,
body.route-profile .profile-spotlight-card::after,
body.route-profile .profile-card::before,
body.route-profile .profile-card::after,
body.route-profile .profile-path-card::before,
body.route-profile .profile-path-card::after,
body.route-role .role-dashboard::before,
body.route-role .role-dashboard::after,
body.route-role .role-leader-card::before,
body.route-role .role-leader-card::after,
body.route-role .role-metric-card::before,
body.route-role .role-metric-card::after,
body.route-role .role-runners-card::before,
body.route-role .role-runners-card::after,
body.route-role .role-switch-card::before,
body.route-role .role-switch-card::after,
body.route-role .role-runner-row::before,
body.route-role .role-runner-row::after,
body.route-group .group-leader-card::before,
body.route-group .group-metric-card::before,
body.route-group .group-metric-card::after,
body.route-group .group-roster-card::before,
body.route-group .group-roster-card::after,
body.route-group .group-member-row::before,
body.route-group .group-member-row::after,
body.route-group .group-related-card::before,
body.route-group .group-related-card::after,
body.route-portal .portal-hero-card::before,
body.route-portal .portal-hero-card::after,
body.route-portal .portal-list-card::before,
body.route-portal .portal-list-card::after,
body.route-portal .portal-list-header strong::before,
body.route-portal .portal-list-header strong::after,
body.route-portal .portal-profile-row::before,
body.route-portal .portal-profile-row::after,
body.route-portal .portal-champion-row::before,
body.route-portal .portal-champion-row::after,
body.route-portal .portal-link-tile::before,
body.route-portal .portal-link-tile::after,
.summary-kicker::before,
.summary-kicker::after,
.live-panel-kicker::before,
.live-panel-kicker::after,
.role-panel-kicker::before,
.role-panel-kicker::after,
.group-panel-kicker::before,
.group-panel-kicker::after,
.portal-kicker::before,
.portal-kicker::after,
.guide-kicker::before,
.guide-kicker::after,
.context-strip::before,
.context-strip::after,
.breadcrumb::before,
.breadcrumb::after,
.data-status::before,
.data-status::after,
.result-meta::before,
.result-meta::after,
.result-status-chip::before,
.result-status-chip::after,
.guide-note::before,
.guide-note::after,
.mobile-rank-card::before,
.mobile-rank-card::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
  opacity: 0 !important;
  transform: none !important;
}

/* Final guide palette balance pass: keep gold as an accent, not the dominant surface color. */
@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-hero-card {
    border-color: rgba(77, 138, 255, 0.24);
    background:
      radial-gradient(circle at 84% 18%, rgba(245, 201, 107, 0.18), transparent 25%),
      radial-gradient(circle at 18% 95%, rgba(45, 212, 191, 0.18), transparent 30%),
      linear-gradient(122deg, #07152f 0%, #123b82 58%, #0f766e 100%);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    border-color: rgba(199, 216, 239, 0.88);
    background:
      radial-gradient(circle at 94% 8%, rgba(37, 97, 197, 0.08), transparent 26%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96)),
      #ffffff;
    box-shadow:
      0 16px 34px rgba(15, 27, 51, 0.075),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-header h2 {
    color: var(--text-main);
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    border-color: rgba(199, 216, 239, 0.84);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 255, 0.96)),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:first-child {
    border-color: rgba(245, 201, 107, 0.58);
    background:
      radial-gradient(circle at 92% 18%, rgba(245, 201, 107, 0.14), transparent 26%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.96)),
      #ffffff;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] ~ .table-card {
    border-color: rgba(199, 216, 239, 0.86);
    background:
      radial-gradient(circle at 96% 0%, rgba(37, 97, 197, 0.06), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

body.route-portal .portal-dashboard[data-portal="guides"] ~ .table-card .table-card-top {
    background:
      linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
      #ffffff;
  }
}

/* Final channel-link affordance pass: make streamer names feel intentionally clickable. */
.channel-name {
  display: inline-block;
  max-width: 100%;
  border-radius: 6px;
  background-image: linear-gradient(90deg, rgba(245, 201, 107, 0.95), rgba(37, 97, 197, 0.62));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 1px);
  background-size: 0 2px;
  transition:
    color 160ms ease,
    background-size 160ms ease;
}

.channel-name:hover,
.channel-name:focus-visible,
.leaderboard-table tbody tr:hover .channel-name,
.leaderboard-table tbody tr:focus-within .channel-name {
  color: var(--primary-dark);
  text-decoration: none;
  background-size: 100% 2px;
}

.mobile-channel .channel-name:hover,
.mobile-channel .channel-name:focus-visible {
  color: var(--primary);
}

/* Final profile section-title hierarchy pass: make secondary panels scan like named data sections. */
body.route-profile .profile-insight-header {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(199, 216, 239, 0.78);
}

body.route-profile .profile-insight-header > span,
body.route-profile .profile-compare-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(37, 97, 197, 0.16);
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.92);
  color: #0d2f68;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

body.route-profile .profile-insight-header > strong {
  color: #061229;
  font-size: 20px;
  line-height: 1;
}

body.route-profile .profile-compare-card {
  gap: 10px;
}

body.route-profile .profile-compare-card > strong {
  margin-top: 2px;
}

body.route-profile .profile-compare-rank .profile-compare-kicker,
body.route-profile .profile-insight-card:first-child .profile-insight-header > span {
  border-color: rgba(245, 201, 107, 0.44);
  background: rgba(255, 248, 230, 0.94);
  color: #7a4b12;
}

@media (max-width: 480px) {
  body.route-profile .profile-insight-header {
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.route-profile .profile-insight-header > span,
  body.route-profile .profile-compare-kicker,
  body.route-profile .profile-insight-card:first-child .profile-insight-header > span,
  body.route-profile .profile-compare-rank .profile-compare-kicker {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
  }

  body.route-profile .profile-insight-header > strong {
    font-size: 16px;
  }

  body.route-profile .profile-compare-card {
    gap: 8px;
  }
}

/* Final clean-bars lock: keep decorative slivers disabled after every page-specific pass. */
.filter-panel::before,
.filter-panel::after,
body.route-ranking .summary-card::before,
body.route-ranking .summary-card::after,
body.route-ranking .table-card::before,
body.route-ranking .table-card::after,
body.route-ranking .table-card-top::before,
body.route-ranking .table-card-top::after,
body.route-live .live-hero-card::before,
body.route-live .live-hero-card::after,
body.route-live .live-list-card::before,
body.route-live .live-list-card::after,
body.route-live.route-live-empty .live-empty-card::before,
body.route-live.route-live-empty .live-empty-card::after,
body.route-profile .profile-spotlight-card::before,
body.route-profile .profile-spotlight-card::after,
body.route-profile .profile-card::before,
body.route-profile .profile-card::after,
body.route-role .role-dashboard::before,
body.route-role .role-dashboard::after,
body.route-role .role-leader-card::before,
body.route-role .role-leader-card::after,
body.route-group .group-leader-card::before,
body.route-group .group-leader-card::after,
body.route-portal .portal-hero-card::before,
body.route-portal .portal-hero-card::after,
body.route-portal .portal-list-card::before,
body.route-portal .portal-list-card::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  content: none !important;
  opacity: 0 !important;
  transform: none !important;
}

/* Final LIVE and trends hierarchy pass: make active broadcasts and mobile trend handoff read faster. */
body.route-live .live-badge.lol-live {
  min-height: 24px;
  border-color: rgba(245, 201, 107, 0.72);
  background:
    linear-gradient(180deg, #fff8e6, #f5c96b),
    #f5c96b;
  color: #061229;
  box-shadow:
    0 7px 16px rgba(245, 201, 107, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.route-live .live-list-row:first-child {
  border-color: rgba(245, 201, 107, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 248, 230, 0.98), rgba(255, 255, 255, 0.98) 58%),
    #ffffff;
  box-shadow:
    0 12px 26px rgba(154, 113, 50, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.route-live .live-list-row:first-child .live-list-meta {
  color: #7a4b12;
  font-weight: 950;
}

body.route-live .leaderboard-table tbody tr:first-child .live-badge.lol-live {
  transform: translateY(-1px);
}

/* Final champion mobile ownership pass: make champion ownership read as data, not crowded chips. */
@media (max-width: 480px) {
  body.route-portal[data-portal="champions"] .mobile-champion-row {
    grid-template-columns: auto minmax(0, 1fr) 34px;
    gap: 7px;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row::before {
    align-self: center;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 42px;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 14px;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-icons {
    align-self: center;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-icons .champion-icon-wrap,
  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-icons .champion-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-names {
    display: grid;
    min-width: 0;
    gap: 2px;
    line-height: 1.18;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-name {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    min-width: 0;
    gap: 4px;
    white-space: nowrap;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-name em {
    color: #9a7132;
    font-size: 9px;
    font-style: normal;
    font-weight: 950;
  }

  body.route-portal[data-portal="champions"] .mobile-champion-row .champion-focus-name strong {
    min-width: 0;
    overflow: hidden;
    color: #073f3c;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 901px) {
  body.route-portal .portal-dashboard[data-portal="trends"] {
    align-items: stretch;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    border-color: rgba(22, 163, 74, 0.24);
    box-shadow:
      0 18px 38px rgba(15, 27, 51, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] {
    margin: 4px 0 13px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] ~ .table-card {
    border-color: rgba(199, 216, 239, 0.94);
    box-shadow:
      0 14px 30px rgba(15, 27, 51, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  body.route-portal .portal-dashboard[data-portal="trends"] ~ .table-card .table-card-top {
    padding-top: 14px;
    border-top: 1px solid rgba(199, 216, 239, 0.82);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.98)),
      #ffffff;
  }

  body.route-live .live-badge.lol-live {
    min-height: 22px;
    padding: 0 7px;
    font-size: 10px;
  }
}

/* Final trend mobile ticker pass: keep the top-three risers visible while shortening the handoff. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] {
    gap: 7px;
    margin: 2px 0 8px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    gap: 5px;
    padding: 5px 6px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3) {
    min-height: 38px;
    gap: 2px 5px;
    padding: 4px 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child {
    min-height: 42px;
    padding: 5px 6px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar-wrap,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar {
    width: 23px;
    height: 23px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row > span:not(.avatar-wrap) {
    min-width: 0;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row em,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row i {
    display: none;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
    min-width: 42px;
    min-height: 16px;
    padding: 0 6px;
    font-size: 8.5px;
    line-height: 14px;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3) {
    min-height: 36px;
    padding: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child {
    min-height: 40px;
  }
}

/* Final guide mobile reference-strip pass: keep lane guidance compact and scan-ready. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] {
    margin-bottom: 6px;
  }

  body.route-portal[data-portal="guides"] .table-card-top {
    padding: 12px 12px 8px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row {
    grid-template-columns: auto minmax(0, 1fr) 34px;
    gap: 7px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row::before {
    align-self: center;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-strip {
    display: grid;
    grid-template-columns: minmax(62px, 0.45fr) minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 38px;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 14px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-main {
    min-width: 0;
    gap: 1px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-main em,
  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-main em {
    font-size: 9px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-main strong {
    font-size: 10px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-champions {
    justify-content: flex-end;
    min-width: 0;
    gap: 5px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-icons .champion-icon-wrap,
  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-icons .champion-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-champions b {
    max-width: min(84px, 34vw);
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-strip {
    grid-template-columns: minmax(58px, 0.43fr) minmax(0, 1fr);
    min-height: 36px;
    gap: 5px;
    padding: 5px 6px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-champions b {
    max-width: 66px;
  }
}

/* Final profile 390px handoff pass: keep champion context while moving the account card into view sooner. */
@media (min-width: 361px) and (max-width: 480px) {
  body.route-profile .profile-champions {
    min-height: 32px;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 12px;
  }

  body.route-profile .profile-champion-summary {
    gap: 0;
  }

  body.route-profile .profile-champion-summary strong {
    font-size: 11px;
    line-height: 1.02;
  }

  body.route-profile .profile-champion-summary em {
    max-width: 114px;
    font-size: 9px;
    line-height: 1.05;
  }

  body.route-profile .profile-champions .profile-champion-pills {
    gap: 3px;
  }

  body.route-profile .profile-champion-pill {
    height: 22px;
    padding: 1px 5px 1px 1px;
  }

  body.route-profile .profile-champion-pill .champion-icon-wrap,
  body.route-profile .profile-champion-pill .champion-icon {
    width: 18px;
    height: 18px;
  }

  body.route-profile .profile-champion-pill strong {
    max-width: 38px;
    font-size: 9.5px;
  }

  body.route-profile .table-card-top {
    gap: 5px;
    padding: 7px 10px 5px;
  }

  body.route-profile .table-card h2 {
    font-size: 17px;
    line-height: 1.1;
  }

  body.route-profile .table-actions {
    gap: 4px;
  }

  body.route-profile .tabs {
    min-height: 36px;
  }

  body.route-profile .tabs button {
    min-height: 36px;
    font-size: 10.5px;
  }

  body.route-profile .sort-select select,
  body.route-profile .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
  }

  body.route-profile .mobile-list {
    padding-top: 6px;
  }
}

/* Final trend mobile hero-density pass: keep the movement preview useful while shortening the table handoff. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] {
    gap: 6px;
    margin: 0 0 6px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card {
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card h2 {
    font-size: 19px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-cta {
    min-height: 34px;
    margin-top: -3px;
    padding: 0 11px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid {
    gap: 3px;
    margin-top: -1px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span {
    min-height: 28px;
    padding: 3px 5px;
    border-radius: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid em {
    font-size: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid strong {
    font-size: 11.5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    gap: 4px;
    padding: 5px 6px 6px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header {
    min-height: 22px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header .portal-kicker,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-header a {
    min-height: 34px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] ~ .table-card .table-card-top {
    padding-top: 11px;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card {
    padding: 9px 10px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card h2 {
    font-size: 18px;
  }
}

/* Final champion mobile hero-density pass: preserve TOP context while moving owned champion cards up. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] {
    gap: 6px;
    margin: 0 0 6px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card {
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card h2 {
    font-size: 19px;
    line-height: 1.08;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-cta {
    min-height: 34px;
    margin-top: -3px;
    padding: 0 11px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid {
    gap: 3px;
    margin-top: -1px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span {
    min-height: 28px;
    padding: 3px 5px;
    border-radius: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid em {
    font-size: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid strong {
    font-size: 11.5px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    gap: 4px;
    padding: 5px 6px 6px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header {
    min-height: 22px;
    padding-bottom: 2px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header .portal-kicker,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header a {
    min-height: 34px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    gap: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3) {
    min-height: 50px;
    gap: 1px;
    padding: 4px 3px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    width: 24px;
    height: 24px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-rank {
    top: 3px;
    right: 3px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    font-size: 10.5px;
    line-height: 1.02;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
    min-height: 16px;
    padding: 0 6px;
    font-size: 8px;
    line-height: 14px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] ~ .table-card .table-card-top {
    padding-top: 11px;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card {
    padding: 9px 10px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card h2 {
    font-size: 18px;
  }
}

/* Final trend mobile table-handoff pass: keep controls tappable while bringing the first rank card up. */
@media (max-width: 480px) {
  body.route-portal[data-portal="trends"] .table-card-top {
    gap: 4px;
    padding: 8px 10px 4px;
  }

  body.route-portal[data-portal="trends"] .table-card h2 {
    font-size: 17px;
    line-height: 1.08;
  }

  body.route-portal[data-portal="trends"] .table-actions {
    gap: 4px;
  }

  body.route-portal[data-portal="trends"] .tabs {
    min-height: 36px;
  }

  body.route-portal[data-portal="trends"] .tabs button {
    min-height: 36px;
    font-size: 10.5px;
  }

  body.route-portal[data-portal="trends"] .sort-select select,
  body.route-portal[data-portal="trends"] .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
  }

  body.route-portal[data-portal="trends"] .mobile-list {
    padding-top: 5px;
  }
}

/* Final profile 390px table-density pass: tighten the one-result snapshot without shrinking tap targets. */
@media (min-width: 361px) and (max-width: 480px) {
  body.route-profile .profile-champions {
    min-height: 30px;
    padding: 2px 6px;
  }

  body.route-profile .table-card-top {
    gap: 4px;
    padding: 6px 10px 4px;
  }

  body.route-profile .table-card h2 {
    font-size: 16.5px;
    line-height: 1.08;
  }

  body.route-profile .table-actions {
    gap: 4px;
  }

  body.route-profile .tabs,
  body.route-profile .tabs button {
    min-height: 36px;
  }

  body.route-profile .sort-select select,
  body.route-profile .table-actions .soft-button {
    height: 34px;
    min-height: 34px;
  }

  body.route-profile .mobile-list {
    padding-top: 5px;
    padding-bottom: 6px;
  }

  body.route-profile .pagination {
    gap: 10px;
    padding: 10px 16px 12px;
  }

  body.route-profile .pagination span {
    min-width: 56px;
  }
}

/* Final champion desktop preview-density pass: keep the TOP board useful while moving the table closer. */
@media (min-width: 1280px) {
  body.route-portal .portal-dashboard[data-portal="champions"] {
    gap: 11px;
    margin: 6px 0 11px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card {
    min-height: 220px;
    gap: 10px;
    padding: 16px 18px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-hero-card h2 {
    font-size: 27px;
    line-height: 1.06;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid {
    gap: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-metric-grid span {
    min-height: 68px;
    padding: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    min-height: 220px;
    gap: 8px;
    padding: 12px 14px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-header {
    padding-bottom: 2px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    gap: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row {
    min-height: 86px;
    padding: 10px 12px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-rank {
    min-width: 48px;
    height: 24px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    width: 42px;
    height: 42px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    font-size: 15.5px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row i {
    margin-top: 3px;
  }
}

/* Final trend desktop preview-density pass: keep movement context while moving the ranking table closer. */
@media (min-width: 1280px) {
  body.route-portal .portal-dashboard[data-portal="trends"] {
    gap: 11px;
    margin: 6px 0 11px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card {
    min-height: 220px;
    gap: 10px;
    padding: 16px 18px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card h2 {
    font-size: 27px;
    line-height: 1.06;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid {
    gap: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span {
    min-height: 68px;
    padding: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    min-height: 220px;
    gap: 8px;
    padding: 12px 14px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list {
    gap: 8px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3) {
    min-height: 66px;
    padding: 8px 11px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar-wrap,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row .avatar {
    width: 38px;
    height: 38px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row b {
    min-height: 28px;
    padding: 0 10px;
  }
}

/* Final group desktop summary-density pass: keep group context complete while bringing the leaderboard up. */
@media (min-width: 1280px) {
  body.route-group .group-dashboard {
    gap: 14px;
    margin: 8px 0 12px;
  }

  body.route-group .group-leader-card {
    min-height: 238px;
    gap: 14px;
    padding: 22px 24px;
  }

  body.route-group .group-leader-card::after {
    right: 18px;
    bottom: 10px;
    font-size: 48px;
  }

  body.route-group .group-leader-copy {
    gap: 8px;
  }

  body.route-group .group-leader-copy h2 {
    font-size: 31px;
    line-height: 1.08;
  }

  body.route-group .group-leader-copy p {
    font-size: 13px;
    line-height: 1.38;
  }

  body.route-group .leader-meta-row {
    gap: 5px;
  }

  body.route-group .group-leader-actions {
    gap: 7px;
    margin-top: 3px;
  }

  body.route-group .group-leader-profile {
    min-width: 144px;
    min-height: 132px;
    border-radius: 16px;
  }

  body.route-group .group-leader-profile .avatar-wrap,
  body.route-group .group-leader-profile .avatar {
    width: 68px;
    height: 68px;
  }

  body.route-group .group-leader-profile .tier-emblem {
    right: 12px;
    bottom: 10px;
    width: 36px;
    height: 26px;
  }

  body.route-group .group-metric-card,
  body.route-group .group-roster-card {
    min-height: 238px;
    gap: 10px;
    padding: 15px 16px;
  }

  body.route-group .group-metric-grid {
    gap: 7px;
  }

  body.route-group .group-metric-grid span,
  body.route-group .group-role-chip {
    gap: 3px;
    padding: 8px 9px;
  }

  body.route-group .group-metric-card p {
    font-size: 12.5px;
    line-height: 1.38;
  }

  body.route-group .group-champion-strip {
    gap: 5px;
  }

  body.route-group .group-champion-chip {
    min-height: 30px;
    gap: 5px;
    padding: 3px 7px 3px 4px;
  }

  body.route-group .group-champion-chip .champion-icon-wrap,
  body.route-group .group-champion-chip .champion-icon {
    width: 24px;
    height: 24px;
  }

  body.route-group .group-member-list {
    gap: 6px;
  }

  body.route-group .group-member-row {
    gap: 8px;
    padding: 7px 8px;
    border-radius: 11px;
  }

  body.route-group .group-member-row .avatar-wrap,
  body.route-group .group-member-row .avatar {
    width: 34px;
    height: 34px;
  }

  body.route-group .group-member-stats {
    gap: 4px;
  }

  body.route-group .group-member-stats small {
    min-height: 20px;
    padding: 0 7px;
  }

  body.route-group .group-related-card {
    gap: 7px 10px;
    margin-bottom: 10px;
    padding: 9px 11px;
  }

  body.route-group .group-related-header {
    min-height: 48px;
  }

  body.route-group .group-related-grid {
    gap: 5px;
  }

  body.route-group .group-related-link {
    min-height: 44px;
    padding: 6px 8px;
  }

  body.route-group .group-related-profiles {
    gap: 5px;
    padding: 6px 0 6px 9px;
  }

  body.route-group .group-related-profile {
    min-height: 40px;
    gap: 6px;
    padding: 5px 6px;
  }

  body.route-group .group-related-profile .avatar-wrap,
  body.route-group .group-related-profile .avatar {
    width: 28px;
    height: 28px;
  }
}

/* Final LIVE empty desktop density pass: keep fallback guidance visible without leaving the page hollow. */
@media (min-width: 1280px) {
  body.route-live.route-live-empty .live-dashboard {
    margin: 8px 0 18px;
  }

  body.route-live.route-live-empty .live-empty-feature {
    width: min(100%, 1120px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    gap: 18px;
    min-height: 274px;
    padding: 20px 22px;
  }

  body.route-live.route-live-empty .live-empty-copy {
    gap: 9px;
  }

  body.route-live.route-live-empty #liveEmptyTitle {
    font-size: 24px;
    line-height: 1.12;
  }

  body.route-live.route-live-empty .live-empty-card p {
    line-height: 1.42;
  }

  body.route-live.route-live-empty .live-empty-status-grid,
  body.route-live.route-live-empty .live-empty-flow {
    gap: 7px;
  }

  body.route-live.route-live-empty .live-empty-status-grid span,
  body.route-live.route-live-empty .live-empty-flow span {
    min-height: 56px;
    padding: 8px 10px;
  }

  body.route-live.route-live-empty .live-empty-status-grid span:first-child strong {
    font-size: 15px;
  }

  body.route-live.route-live-empty .live-empty-flow em {
    width: 20px;
    height: 20px;
  }

  body.route-live.route-live-empty .live-empty-actions {
    margin-top: 0;
  }

  body.route-live.route-live-empty .live-empty-more {
    gap: 8px;
    padding: 12px;
  }

  body.route-live.route-live-empty .live-empty-more summary {
    min-height: 44px;
    padding-bottom: 2px;
  }

  body.route-live.route-live-empty .live-empty-suggestions {
    gap: 6px;
    padding: 8px;
  }

  body.route-live.route-live-empty .live-empty-suggestion {
    min-height: 66px;
    gap: 8px;
    padding: 9px 10px;
  }

  body.route-live.route-live-empty .live-empty-suggestion .avatar-wrap,
  body.route-live.route-live-empty .live-empty-suggestion .avatar {
    width: 32px;
    height: 32px;
  }

  body.route-live.route-live-empty .live-empty-suggestion strong {
    font-size: 14px;
  }
}

/* Final ranking desktop KPI-density pass: keep the headline metrics useful while moving rows higher. */
@media (min-width: 1280px) {
  body.route-ranking .summary-strip {
    gap: 12px;
    margin: 8px 0 12px;
  }

  body.route-ranking .summary-card {
    gap: 7px;
    min-height: 92px;
    padding: 14px 16px;
  }

  body.route-ranking .summary-kicker {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10.5px;
    line-height: 20px;
  }

  body.route-ranking .summary-card strong,
  body.route-ranking .summary-card strong.summary-compact,
  body.route-ranking .summary-card strong.summary-name,
  body.route-ranking .summary-card strong.summary-state {
    font-size: clamp(23px, 1.8vw, 29px);
  }

  body.route-ranking .summary-card span:last-child {
    min-height: 24px;
    font-size: 11.5px;
    line-height: 1.25;
  }
}

/* Final ranking mobile card-density pass: keep each row complete while making the long list easier to scan. */
@media (max-width: 480px) {
  body.route-ranking .mobile-list {
    padding: 6px 7px 9px;
  }

  body.route-ranking .mobile-rank-card {
    gap: 5px;
    padding: 9px;
  }

  body.route-ranking .mobile-rank-card + .mobile-rank-card {
    margin-top: 9px;
  }

  body.route-ranking .mobile-channel {
    gap: 6px;
  }

  body.route-ranking .mobile-channel-meta {
    margin-top: 1px;
  }

  body.route-ranking .mobile-tier-row {
    padding: 4px 6px;
  }

  body.route-ranking .mobile-tier-row .tier-emblem {
    width: 30px;
    height: 30px;
  }

  body.route-ranking .mobile-meta-grid {
    gap: 3px 4px;
    padding: 4px 5px;
  }

  body.route-ranking .mobile-meta-grid .mobile-account-stat {
    min-height: 22px;
    padding: 2px 6px;
  }

  body.route-ranking .mobile-meta-grid .mobile-winrate-stat,
  body.route-ranking .mobile-meta-grid .mobile-record-stat {
    min-height: 22px;
    padding: 2px 6px;
  }

  body.route-ranking .mobile-champion-row {
    min-height: 24px;
  }
}

/* Final profile 320px tier-readability pass: keep the top tier card legible before champion pills. */
@media (max-width: 360px) {
  body.route-profile .profile-spotlight-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body.route-profile .profile-identity {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 1;
  }

  body.route-profile .profile-tier-panel {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    min-height: 56px !important;
    order: 2;
    padding: 6px 8px;
    background:
      linear-gradient(135deg, rgba(255, 251, 239, 0.98), rgba(248, 251, 255, 0.98));
  }

  body.route-profile .profile-tier-panel > div {
    gap: 1px;
  }

  body.route-profile .profile-tier-panel strong {
    color: var(--tier-deep);
    font-size: 14px;
    letter-spacing: 0;
  }

  body.route-profile .profile-tier-panel .profile-lp-text {
    flex-wrap: nowrap;
    gap: 4px;
    color: #16243b;
    font-size: 10.5px;
    font-weight: 900;
  }

  body.route-profile .profile-tier-panel .profile-lp-text span:first-child {
    min-width: 0;
    overflow: hidden;
    color: #16243b;
    text-overflow: ellipsis;
  }

  body.route-profile .profile-tier-panel .profile-lp-delta {
    flex: 0 0 auto;
  }

  body.route-profile .profile-champions {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    order: 3;
    min-height: 30px;
    padding: 3px 6px;
  }

  body.route-profile .profile-stat-grid {
    grid-column: 1 / -1;
    grid-row: auto;
    order: 4;
  }

  body.route-profile .profile-action-rail {
    display: none;
  }
}

/* Final guide 320px reference-strip pass: keep lane notes compact without letting champion names crowd the row. */
@media (max-width: 360px) {
  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-strip {
    grid-template-columns: minmax(74px, 0.56fr) minmax(0, 0.44fr);
    min-height: 34px;
    gap: 4px;
    padding: 4px 6px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-main {
    gap: 0;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-main em {
    font-size: 8.5px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-main strong {
    font-size: 9.5px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-champions {
    justify-content: flex-end;
    gap: 3px;
    overflow: hidden;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-icons {
    min-width: 48px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-icons .champion-icon-wrap,
  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-icons .champion-icon {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-icons .champion-icon-wrap {
    border-width: 1px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-icons .champion-icon-wrap + .champion-icon-wrap {
    margin-left: -7px;
  }

  body.route-portal[data-portal="guides"] .mobile-champion-row .guide-focus-champions b {
    display: none;
  }
}

/* Final ranking mobile repeated-action pass: quiet the repeated champion/action row in the long ranking list. */
@media (max-width: 480px) {
  body.route-ranking .mobile-champion-row {
    grid-template-columns: auto minmax(0, 1fr) 40px;
    gap: 4px;
    min-height: 22px;
    padding-inline: 1px;
  }

  body.route-ranking .mobile-champion-row::before {
    min-height: 18px;
    padding: 0 6px;
    font-size: 8.5px;
  }

  body.route-ranking .mobile-champion-row .champions {
    gap: 3px;
  }

  body.route-ranking .mobile-champion-row .champion-icon-wrap,
  body.route-ranking .mobile-champion-row .champion-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  body.route-ranking .mobile-champion-row .mobile-detail-link {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  body.route-ranking .mobile-champion-row .mobile-detail-link::after {
    font-size: 18px;
  }
}

/* Final LIVE empty mobile flow pass: keep fallback guidance visible without three stacked rows. */
@media (max-width: 480px) {
  body.route-live.route-live-empty .live-empty-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  body.route-live.route-live-empty .live-empty-flow span {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 3px;
    min-height: 54px;
    padding: 6px 4px;
    text-align: center;
  }

  body.route-live.route-live-empty .live-empty-flow em {
    grid-row: auto;
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  body.route-live.route-live-empty .live-empty-flow strong {
    overflow: visible;
    font-size: 10.5px;
    line-height: 1.12;
    text-overflow: clip;
    white-space: normal;
    word-break: keep-all;
  }

  body.route-live.route-live-empty .live-empty-flow small {
    display: none;
  }

  body.route-live.route-live-empty .live-empty-actions a,
  body.route-live.route-live-empty .live-empty-actions button {
    min-height: 38px;
  }

  body.route-live.route-live-empty .live-empty-actions a:first-child {
    min-height: 40px;
  }
}

/* Final profile 390px champion-handoff pass: make the champion bridge read as a slim label row. */
@media (min-width: 361px) and (max-width: 480px) {
  body.route-profile .profile-spotlight {
    margin: 5px 0 5px;
  }

  body.route-profile .profile-champions {
    min-height: 27px;
    gap: 4px;
    padding: 1px 5px;
    border-radius: 10px;
    box-shadow: none;
  }

  body.route-profile .profile-champion-summary {
    display: flex;
    align-items: center;
    gap: 3px;
  }

  body.route-profile .profile-champion-summary strong {
    font-size: 10px;
    line-height: 1;
  }

  body.route-profile .profile-champion-summary em {
    max-width: 28px;
    font-size: 9px;
    line-height: 1;
  }

  body.route-profile .profile-champions .profile-champion-pills {
    gap: 2px;
  }

  body.route-profile .profile-champion-pill {
    height: 21px;
    padding: 1px 4px 1px 1px;
  }

  body.route-profile .profile-champion-pill .champion-icon-wrap,
  body.route-profile .profile-champion-pill .champion-icon {
    width: 17px;
    height: 17px;
  }

  body.route-profile .profile-champion-pill strong {
    max-width: 36px;
    font-size: 9px;
  }
}

/* Final trend mobile preview-strip pass: trim spacing without shrinking navigation targets. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="trends"] {
    gap: 5px;
    margin: 0 0 4px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-hero-card {
    padding: 9px 10px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-metric-grid span {
    min-height: 26px;
    padding: 2px 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list-card {
    padding: 4px 5px 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-list {
    gap: 3px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row,
  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:nth-child(n + 3) {
    min-height: 36px;
    padding: 3px 5px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] .portal-profile-row:first-child {
    min-height: 39px;
    padding: 4px 6px;
  }

  body.route-portal .portal-dashboard[data-portal="trends"] ~ .table-card .table-card-top {
    padding-top: 9px;
  }
}

/* Final champion mobile top-board pass: keep TOP picks visible while shortening the preview band. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="champions"] {
    gap: 5px;
    margin-bottom: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list-card {
    padding: 4px 5px 5px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-list {
    gap: 3px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row:nth-child(-n + 3) {
    min-height: 45px;
    padding: 3px 3px 4px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-rank {
    top: 2px;
    right: 3px;
    height: 14px;
    min-width: 25px;
    padding: 0 4px;
    font-size: 6.5px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon-wrap,
  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row .champion-icon {
    width: 22px;
    height: 22px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row strong {
    padding-right: 25px;
    font-size: 10px;
  }

  body.route-portal .portal-dashboard[data-portal="champions"] .portal-champion-row b {
    min-height: 15px;
    padding: 0 5px;
    font-size: 7.5px;
  }

body.route-portal .portal-dashboard[data-portal="champions"] ~ .table-card .table-card-top {
    padding-top: 9px;
  }
}

/* Final guide mobile lane-board pass: keep five lane links tappable while shortening the guide handoff. */
@media (max-width: 480px) {
  body.route-portal .portal-dashboard[data-portal="guides"] {
    gap: 5px;
    margin-bottom: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list-card {
    gap: 2px;
    padding: 4px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-list {
    gap: 3px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    min-height: 40px;
    padding: 3px 2px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile span {
    font-size: 8.5px;
  }

  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile strong {
    font-size: 11.5px;
  }

  body.route-portal[data-portal="guides"] .table-card-top {
    padding-top: 10px;
  }
}

@media (max-width: 340px) {
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile,
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 4),
  body.route-portal .portal-dashboard[data-portal="guides"] .portal-link-tile:nth-child(n + 5) {
    min-height: 40px;
  }
}

/* Final LIVE mobile active-card pass: keep broadcast context while moving the rank cards higher. */
@media (max-width: 480px) {
  body.route-live:not(.route-live-empty) .live-dashboard {
    gap: 2px;
    margin-bottom: 2px;
  }

  body.route-live:not(.route-live-empty) .live-hero-card {
    grid-template-columns: minmax(0, 1fr) 50px;
    min-height: 68px;
    gap: 4px;
    padding: 4px 7px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy {
    gap: 2px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy .live-panel-kicker {
    min-height: 17px;
    padding: 0 6px;
    font-size: 8.5px;
  }

  body.route-live:not(.route-live-empty) .live-hero-copy h2 {
    font-size: 17px;
    line-height: 1.04;
  }

  body.route-live:not(.route-live-empty) .live-hero-meta,
  body.route-live:not(.route-live-empty) .live-hero-copy p {
    font-size: 9.5px;
    line-height: 1.12;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions {
    gap: 4px;
    margin-top: 1px;
  }

  body.route-live:not(.route-live-empty) .live-hero-actions a {
    min-height: 28px;
    padding: 0 7px;
    font-size: 10px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile {
    min-width: 52px;
  }

  body.route-live:not(.route-live-empty) .live-hero-profile .avatar-wrap,
  body.route-live:not(.route-live-empty) .live-hero-profile .avatar {
    width: 48px;
    height: 48px;
  }

  body.route-live:not(.route-live-empty) .live-list-card {
    padding: 2px 6px;
  }

  body.route-live:not(.route-live-empty) .table-card-top {
    padding-top: 5px;
  }
}

/* Final role mobile strip pass: preserve lane context while shortening the handoff to rankings. */
@media (max-width: 480px) {
  body.route-role .role-dashboard {
    gap: 3px;
    margin-bottom: 5px;
  }

  body.route-role .role-metric-card {
    gap: 3px;
    padding: 4px 6px;
  }

  body.route-role .role-metric-card .role-panel-kicker {
    min-width: 42px;
    min-height: 28px;
    padding: 0 5px;
    font-size: 9px;
  }

  body.route-role .role-metric-grid {
    gap: 3px;
  }

  body.route-role .role-metric-grid span {
    min-height: 30px;
    padding: 3px;
  }

  body.route-role .role-metric-grid em {
    font-size: 7.5px;
  }

  body.route-role .role-metric-grid strong {
    font-size: 10.5px;
  }

  body.route-role .role-switch-card {
    padding: 2px 4px;
  }

  body.route-role .role-switch-grid {
    gap: 4px;
  }

  body.route-role .role-switch-link {
    min-height: 27px;
    gap: 2px;
    padding: 2px 3px;
  }

  body.route-role .role-switch-link span,
  body.route-role .role-switch-link strong {
    font-size: 9.5px;
  }
}

@media (max-width: 340px) {
  body.route-role .role-metric-card {
    padding: 4px 5px;
  }

  body.route-role .role-switch-card {
    padding-inline: 4px;
  }

  body.route-role .role-switch-grid {
    gap: 3px;
  }
}
