:root {
  color-scheme: light;
  --paper: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #eef1f5;
  --ink: #111b28;
  --ink-soft: #536173;
  --line: #d8dee7;
  --line-strong: #b8c2cf;
  --night: #112131;
  --night-2: #172b3d;
  --blue: #0b5cff;
  --blue-dark: #0844c8;
  --green: #1aa34a;
  --green-soft: #dff5e7;
  --orange: #ff9d20;
  --red: #f04452;
  --purple: #8f3df2;
  --yellow: #f8c52f;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 92, 255, 0.28);
  outline-offset: 2px;
}

a {
  color: var(--blue-dark);
}

[hidden] {
  display: none !important;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--paper);
  color: var(--blue);
}

.loading-screen .material-symbols-rounded {
  font-size: 44px;
  animation: loading-pulse 1.1s ease-in-out infinite alternate;
}

.loading-screen strong {
  color: var(--ink);
}

@keyframes loading-pulse {
  from { opacity: 0.45; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.app-shell {
  min-height: 100vh;
  background: var(--paper);
}

.product-header {
  min-height: 78px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 30px;
  font-variation-settings: "FILL" 1, "wght" 600;
}

.brand-copy {
  display: grid;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  line-height: 0.84;
  text-transform: uppercase;
}

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

.primary-nav {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.nav-link {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #435064;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.nav-link .material-symbols-rounded {
  display: none;
  font-size: 20px;
}

.nav-link:hover {
  color: var(--blue);
  background: #f5f8ff;
}

.nav-link.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.data-status {
  min-width: 250px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 24px;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 700;
}

.live-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.mode-ribbon {
  width: 100%;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--night);
  border-bottom: 1px solid #2b4155;
}

.mode-ribbon::-webkit-scrollbar {
  display: none;
}

.mode-tab {
  flex: 1 0 110px;
  min-height: 110px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid #2b4155;
  background: transparent;
  color: #e5eaf0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.mode-tab .material-symbols-rounded {
  font-size: 34px;
  color: var(--mode-accent, #fff);
  font-variation-settings: "FILL" 1, "wght" 500;
}

.mode-tab small {
  color: #98a7b7;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
}

.mode-tab:hover {
  background: var(--night-2);
}

.mode-tab.active {
  background: var(--blue);
  color: #fff;
}

.mode-tab.active .material-symbols-rounded,
.mode-tab.active small {
  color: #fff;
}

.summary-strip {
  min-height: 112px;
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.8fr 1.5fr;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.summary-stat,
.search-field {
  min-width: 0;
  padding: 18px 26px;
}

.summary-stat:not(:first-child),
.search-field {
  border-left: 1px solid var(--line);
}

.summary-stat span,
.search-field > span:first-child,
.compact-mode-select > span,
.sort-control > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.summary-stat strong {
  display: block;
  overflow: hidden;
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-input-wrap {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-soft);
}

.search-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.12);
}

.search-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.meta-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(360px, 1fr);
  align-items: start;
  background: var(--surface);
}

.ranking-workspace {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 26px 18px;
}

.section-heading h1,
.page-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-heading p:not(.section-kicker),
.page-intro p:not(.section-kicker) {
  margin: 7px 0 0;
  color: var(--ink-soft);
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.sort-control,
.compact-mode-select {
  min-width: 160px;
}

.sort-control select,
.compact-mode-select select,
.team-picker select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 36px 0 12px;
  cursor: pointer;
}

.podium {
  min-height: 276px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 0 26px 18px;
}

.podium-card {
  min-width: 0;
  min-height: 202px;
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 5px;
  padding: 10px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.podium-card:hover,
.podium-card.selected {
  border-color: var(--blue);
}

.podium-card:hover {
  transform: translateY(-3px);
}

.podium-card.place-1 {
  min-height: 244px;
  border-color: #f3c36a;
  order: 2;
}

.podium-card.place-2 {
  order: 1;
}

.podium-card.place-3 {
  order: 3;
  border-color: #f2c4aa;
}

.podium-rank {
  color: #97a3b2;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 0.9;
}

.place-1 .podium-rank { color: var(--orange); font-size: 54px; }
.place-3 .podium-rank { color: #d5672b; }

.podium-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  image-rendering: auto;
}

.place-1 img {
  width: 96px;
  height: 96px;
}

.podium-name {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.podium-rarity {
  color: var(--rarity, var(--purple));
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.podium-stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 5px;
}

.podium-stats span {
  display: grid;
  gap: 1px;
  text-align: center;
}

.podium-stats span + span {
  border-left: 1px solid var(--line);
}

.podium-stats strong {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.podium-stats small {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.ranking-table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.ranking-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: var(--surface);
}

.ranking-table th,
.ranking-table td {
  height: 58px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.ranking-table th {
  height: 38px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ranking-table tbody tr {
  cursor: pointer;
}

.ranking-table tbody tr:hover,
.ranking-table tbody tr.selected {
  background: #f3f7ff;
}

.ranking-table tbody tr.selected {
  box-shadow: inset 3px 0 0 var(--blue);
}

.rank-number {
  width: 36px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.brawler-cell {
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brawler-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brawler-cell strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rarity-label {
  color: var(--rarity, var(--purple));
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-index {
  min-width: 66px;
  display: inline-grid;
  justify-items: start;
  padding: 5px 8px;
  border-left: 3px solid var(--tier-color, var(--blue));
  background: #f2f5f9;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.meta-index small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-index.tier-s {
  --tier-color: #14a05a;
}

.meta-index.tier-a {
  --tier-color: #0b5cff;
}

.meta-index.tier-b {
  --tier-color: #d88900;
}

.meta-index.tier-c,
.meta-index.tier-d,
.meta-index.tier-nd {
  --tier-color: #8a94a3;
}

.metric-cell {
  min-width: 128px;
}

.metric-value {
  min-width: 50px;
  display: inline-block;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.microbar {
  width: 68px;
  height: 5px;
  display: inline-block;
  overflow: hidden;
  margin-left: 7px;
  border-radius: 3px;
  background: #e6eaf0;
  vertical-align: middle;
}

.microbar i {
  display: block;
  width: var(--bar, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--green));
}

.build-cell {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.build-cell .material-symbols-rounded {
  color: var(--orange);
  font-size: 22px;
  font-variation-settings: "FILL" 1;
}

.empty-state {
  min-height: 280px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-state .material-symbols-rounded {
  color: var(--blue);
  font-size: 40px;
}

.brawler-inspector {
  position: sticky;
  top: 78px;
  min-height: calc(100vh - 78px);
  background: #fbfcfe;
}

.inspector-label {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.inspector-profile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
}

.inspector-portrait {
  width: 132px;
  height: 132px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--surface-muted);
}

.inspector-profile h2 {
  margin: 4px 0 5px;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.detail-tags,
.mode-ranks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag,
.mode-rank {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.detail-tag.win {
  background: var(--green-soft);
  color: #08762d;
}

.detail-description {
  margin: 0;
  padding: 0 20px 18px;
  color: #354356;
  font-size: 13px;
  line-height: 1.55;
}

.mode-ranks {
  padding: 0 20px 20px;
}

.mode-rank {
  background: var(--night);
  color: #fff;
}

.inspector-section-title {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid #7da5ff;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.build-detail-list {
  display: grid;
}

.build-detail-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.build-detail-asset {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  object-fit: contain;
}

.build-detail-asset.material-symbols-rounded {
  border-radius: 6px;
  background: #ddecff;
  color: var(--blue-dark);
  font-size: 32px;
  font-variation-settings: "FILL" 1;
}

.build-detail-row span:not(.build-detail-asset) {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.build-detail-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.build-detail-row small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.ability-note {
  margin: 14px 20px 20px;
  padding: 14px;
  border: 1px solid var(--blue);
  border-radius: 4px;
}

.ability-note strong {
  display: block;
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
}

.ability-note p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.secondary-view {
  width: min(1440px, 100%);
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 40px clamp(18px, 4vw, 56px) 64px;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-count {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.team-composer,
.team-ranking,
.event-board,
.build-board,
.source-layout {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.team-composer {
  overflow: hidden;
}

.team-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.team-slot {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
}

.team-slot img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.team-slot strong {
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.team-slot select {
  min-width: 0;
}

.team-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #f3f7ff;
}

.team-result h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
}

.team-result p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.team-score {
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 800;
  line-height: 0.85;
  white-space: nowrap;
}

.team-actions {
  display: flex;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.primary-button,
.secondary-button,
.event-meta-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.secondary-button,
.event-meta-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.secondary-button:hover,
.event-meta-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.team-ranking h2,
.board-title {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
}

.team-ranking-list {
  display: grid;
}

.team-ranking-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

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

.team-ranking-row > strong:first-child {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 20px;
}

.mini-team {
  display: flex;
  align-items: center;
}

.mini-team img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-right: -5px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: var(--surface-muted);
}

.team-ranking-row small {
  color: var(--ink-soft);
}

.event-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.event-row {
  min-width: 0;
  min-height: 150px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-content: center;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-row:nth-child(3n) {
  border-right: 0;
}

.event-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--night);
  color: var(--event-accent, var(--yellow));
}

.event-icon .material-symbols-rounded {
  font-size: 28px;
  font-variation-settings: "FILL" 1;
}

.event-row h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
  text-transform: uppercase;
}

.event-row p {
  margin: 4px 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

.event-meta-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.build-board {
  display: block;
  overflow: hidden;
}

.build-browser {
  min-width: 0;
}

.build-selector-bar {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
}

.build-selected-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.build-selected-summary img {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  object-fit: contain;
}

.build-selected-summary span,
.build-selected-summary small,
.build-selected-summary strong,
.build-selected-summary em {
  display: block;
}

.build-selected-summary small,
.build-brawler-select > span,
.build-mode-context > span,
.build-choice-label,
.build-alternative span {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.build-selected-summary strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.build-selected-summary em {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.build-brawler-select {
  width: min(340px, 42vw);
  display: grid;
  gap: 5px;
}

.build-brawler-select select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: 600 14px var(--font-body);
}

.build-mode-context {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 20px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  scrollbar-width: none;
}

.build-mode-context::-webkit-scrollbar {
  display: none;
}

.build-mode-context > span {
  flex: 0 0 auto;
  margin-right: 8px;
  color: var(--ink-soft);
}

.build-mode-context button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: 700 11px var(--font-display);
  text-transform: uppercase;
}

.build-mode-context button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.build-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.build-choice-card {
  min-width: 0;
  min-height: 220px;
  padding: 20px;
  background: var(--surface);
}

.build-choice-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}

.build-choice-main .build-detail-asset {
  width: 64px;
  height: 64px;
  font-size: 36px;
}

.build-choice-main h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.build-choice-main p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.build-evidence {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.build-evidence .material-symbols-rounded {
  font-size: 18px;
}

.build-alternative {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.build-alternative span {
  color: var(--ink-soft);
}

.build-alternative strong {
  font-size: 12px;
  text-transform: uppercase;
}

.build-source-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.build-column + .build-column {
  border-left: 1px solid var(--line);
}

.build-column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--blue);
}

.build-column-header .material-symbols-rounded {
  font-variation-settings: "FILL" 1;
}

.build-column-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
}

.build-leader-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

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

.build-leader-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.build-leader-row strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.build-leader-row span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.build-leader-row b {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 19px;
  white-space: nowrap;
}

.roster-intro {
  align-items: center;
}

.compact-search {
  width: min(360px, 100%);
  padding: 0;
  border-left: 0;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.roster-card {
  min-width: 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 0;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}

.roster-card:hover,
.roster-card.selected {
  background: #eef4ff;
}

.roster-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.roster-card strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.roster-card span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  overflow: hidden;
}

.source-column {
  padding: 24px;
}

.source-column + .source-column {
  border-left: 1px solid var(--line);
}

.source-column h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 25px;
  text-transform: uppercase;
}

.source-link {
  min-height: 52px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.source-link:hover strong {
  color: var(--blue);
}

.source-link .material-symbols-rounded:first-child {
  color: var(--blue);
}

.source-link strong,
.source-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-link small {
  color: var(--ink-soft);
}

.method-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.method-note .material-symbols-rounded {
  color: var(--green);
}

.method-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.legal-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.error-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.error-screen .material-symbols-rounded {
  color: var(--red);
  font-size: 44px;
}

@media (max-width: 1180px) {
  .product-header {
    grid-template-columns: 205px minmax(0, 1fr) auto;
  }

  .nav-link {
    padding: 0 10px;
  }

  .nav-link .material-symbols-rounded {
    display: inline-block;
  }

  .nav-link span:last-child {
    display: none;
  }

  .data-status {
    min-width: 205px;
    padding: 0 16px;
  }

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

  .search-field {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .meta-workspace {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  }

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

  .event-row:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .event-row:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .product-header {
    min-height: 70px;
    grid-template-columns: 185px minmax(0, 1fr);
  }

  .brand {
    padding: 9px 14px;
  }

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

  .brand-copy {
    font-size: 20px;
  }

  .primary-nav {
    overflow-x: auto;
    justify-content: flex-end;
  }

  .nav-link {
    min-width: 54px;
  }

  .data-status {
    display: none;
  }

  .mode-tab {
    min-height: 88px;
    flex-basis: 100px;
    font-size: 12px;
  }

  .mode-tab .material-symbols-rounded {
    font-size: 28px;
  }

  .summary-strip {
    min-height: 0;
  }

  .summary-stat,
  .search-field {
    padding: 15px 18px;
  }

  .meta-workspace {
    grid-template-columns: 1fr;
  }

  .ranking-workspace {
    border-right: 0;
  }

  .brawler-inspector {
    position: static;
    min-height: 0;
    border-top: 1px solid var(--line);
  }

  .team-layout,
  .source-layout {
    grid-template-columns: 1fr;
  }

  .source-column + .source-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .build-board {
    grid-template-columns: 1fr;
  }

  .build-column + .build-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .build-selector-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .build-brawler-select {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .product-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .brand {
    min-height: 66px;
    justify-content: center;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav {
    min-height: 58px;
    justify-content: flex-start;
  }

  .nav-link {
    flex: 1 0 58px;
    padding: 0 12px;
  }

  .nav-link .material-symbols-rounded {
    display: inline-block;
  }

  .mode-ribbon {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .mode-tab {
    min-height: 74px;
    flex-basis: 96px;
    gap: 5px;
  }

  .mode-tab small {
    display: none;
  }

  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .summary-stat:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .summary-stat strong {
    font-size: 27px;
  }

  .section-heading,
  .page-intro,
  .roster-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading {
    padding: 22px 16px 16px;
  }

  .sort-control,
  .compact-mode-select,
  .compact-search {
    width: 100%;
  }

  .podium {
    min-height: 0;
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 16px;
  }

  .podium-card,
  .podium-card.place-1 {
    min-width: 178px;
    min-height: 224px;
    order: initial;
  }

  .podium-card.place-1 {
    order: -1;
  }

  .ranking-table {
    min-width: 640px;
  }

  .ranking-table th:nth-child(3),
  .ranking-table td:nth-child(3),
  .ranking-table th:nth-child(6),
  .ranking-table td:nth-child(6) {
    display: none;
  }

  .inspector-profile {
    grid-template-columns: 100px minmax(0, 1fr);
    padding: 16px;
  }

  .inspector-portrait {
    width: 100px;
    height: 100px;
  }

  .inspector-profile h2 {
    font-size: 34px;
  }

  .secondary-view {
    padding: 28px 14px 48px;
  }

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

  .team-slot {
    grid-template-columns: 72px minmax(0, 1fr);
    justify-items: stretch;
    padding: 14px;
  }

  .team-slot img {
    width: 72px;
    height: 72px;
    grid-row: 1 / span 2;
  }

  .team-slot strong {
    align-self: end;
  }

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

  .team-score {
    grid-row: 1;
  }

  .team-actions {
    flex-direction: column;
  }

  .event-board {
    grid-template-columns: 1fr;
  }

  .event-row,
  .event-row:nth-child(2n),
  .event-row:nth-child(3n) {
    border-right: 0;
  }

  .build-choice-grid {
    grid-template-columns: 1fr;
  }

  .build-choice-card {
    min-height: 0;
  }

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

  .roster-card {
    min-height: 126px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .source-column {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .summary-stat {
    padding: 14px;
  }

  .summary-stat strong {
    font-size: 23px;
  }

  .summary-stat span,
  .search-field > span:first-child {
    font-size: 11px;
  }

  .ranking-table {
    min-width: 560px;
  }

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

  .inspector-profile {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .inspector-portrait {
    width: 82px;
    height: 82px;
  }

  .inspector-profile h2 {
    font-size: 30px;
  }
}
