:root {
  --bg: #0c0f13;
  --surface: rgba(17, 22, 28, 0.88);
  --surface-2: rgba(21, 27, 34, 0.86);
  --surface-3: rgba(25, 31, 39, 0.84);
  --surface-4: rgba(15, 20, 25, 0.86);
  --surface-blur: blur(6px);
  --text: #edf2f7;
  --muted: #8e99a5;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #9ac27a;
  --accent-soft: rgba(154, 194, 122, 0.15);
  --warning: #b79355;
  --danger: #cb7d68;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(154, 194, 122, 0.12), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(111, 160, 220, 0.1), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(183, 147, 85, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(8, 12, 16, 0.7), rgba(8, 12, 16, 0.86)),
    url("/static/images/background.webp"),
    var(--bg);
  background-repeat: no-repeat;
  background-size: auto, auto, auto, auto, cover, auto;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

input,
select,
button {
  font: inherit;
}

textarea {
  font: inherit;
}

.site-chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(154, 194, 122, 0.05), transparent 20%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.018), transparent 16%);
  filter: blur(10px);
  opacity: 0.68;
}

.topbar,
.page-shell,
.footer {
  width: min(1260px, calc(100vw - 28px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.brand-mark-image {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

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

.topnav {
  display: inline-flex;
  gap: 14px;
}

.topbar-actions,
.footer-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav a,
.topnav-button,
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.topnav-button {
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.topnav-button:disabled {
  cursor: default;
  opacity: 0.5;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link::after {
  content: "\21A9";
  font-size: 1rem;
  line-height: 1;
}

.topnav a:hover,
.topnav-button:hover:not(:disabled),
.back-link:hover {
  color: var(--text);
}

.topnav a.active,
.topnav-button.active {
  color: var(--text);
  font-weight: 700;
}

.page-shell {
  padding: 4px 0 30px;
}

.page-shell > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.footer {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-row {
  justify-content: space-between;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

p {
  margin: 0;
}

.lede,
.club-meta,
.brand-copy small,
.table-note,
.stat-table small,
.stat-row small,
.mini-metric small,
.search-result-row small {
  color: var(--muted);
}

.compact-card,
.club-banner,
.match-banner,
.search-hero,
.status-panel,
.favorite-card,
.search-result-row {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}

.compact-card,
.ranking-column,
.club-banner,
.match-result-card {
  position: relative;
  z-index: 0;
}

.compact-card:hover,
.compact-card:focus-within,
.ranking-column:hover,
.ranking-column:focus-within,
.club-banner:hover,
.club-banner:focus-within,
.match-result-card:hover,
.match-result-card:focus-within {
  z-index: 70;
}

.compact-search-panel,
.mini-metric,
.ranking-column,
.note-list.condensed p,
.kit-card,
.nested-card,
.compare-player-card,
.result-disclosure-toggle,
.compare-player-meta,
.performer-pill-card,
.result-open-pill,
.player-pill-card,
.player-flag-chip,
.raw-block,
.empty-panel {
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}

.compact-card,
.status-panel {
  padding: 14px;
  margin-top: 12px;
}

.compact-card.compact-card-tight {
  padding: 12px 14px;
}

.compact-disclosure {
  padding: 0;
  overflow: hidden;
}

.compact-disclosure-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px;
}

.compact-disclosure-summary::-webkit-details-marker {
  display: none;
}

.compact-disclosure-summary::marker {
  display: none;
}

.compact-disclosure-head {
  margin-bottom: 0;
}

.compact-disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-disclosure-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.compact-disclosure[open] .compact-disclosure-toggle {
  color: var(--text);
}

.compact-disclosure[open] .compact-disclosure-toggle::before {
  transform: rotate(225deg) translateY(-1px);
}

.compact-disclosure-body {
  padding: 0 14px 14px;
}

.stats-surface {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.stats-primary-block,
.stats-secondary-block {
  display: grid;
  gap: 10px;
}

.stats-primary-block > *,
.stats-secondary-block > * {
  margin-top: 0;
}

.stats-secondary-block {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.stats-primary-block .card-grid.thirds,
.stats-primary-block .three-col-grid,
.stats-primary-block .two-col-grid,
.stats-secondary-block .card-grid.thirds,
.stats-secondary-block .three-col-grid,
.stats-secondary-block .two-col-grid,
.stats-secondary-block .ranking-columns {
  margin-top: 0;
}

.stats-surface .card-grid.thirds > .compact-card,
.stats-surface .three-col-grid > .compact-card,
.stats-surface .two-col-grid > .compact-card,
.stats-surface .stack-grid > .compact-card {
  margin-top: 0;
}

.stats-surface .compact-card-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.stats-surface .compact-card-head h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.stats-surface .stat-row,
.stats-surface .stat-table-row,
.stats-surface .compact-bar {
  padding: 8px 0;
}

.profile-card-body {
  display: grid;
  gap: 10px;
}

.profile-card {
  position: relative;
  z-index: 0;
}

.profile-card:hover,
.profile-card:focus-within {
  z-index: 12;
}

.profile-card-tooltip-trigger {
  margin-left: auto;
}

.profile-card-tooltip-label {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-card-tooltip-trigger .stat-tooltip {
  left: 50%;
  right: auto;
  transform: translate(-50%, -4px);
  width: min(320px, calc(100vw - 32px));
  max-width: min(320px, calc(100vw - 32px));
  z-index: 120;
  background: rgba(18, 22, 28, 0.98);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.profile-card-tooltip-trigger:hover .stat-tooltip,
.profile-card-tooltip-trigger:focus .stat-tooltip,
.profile-card-tooltip-trigger:focus-visible .stat-tooltip {
  transform: translate(-50%, 0);
}

.profile-card-tooltip-trigger .stat-tooltip-copy {
  gap: 4px;
}

.profile-card-tooltip-trigger .stat-tooltip-copy strong {
  font-size: 0.95rem;
}

.profile-card-tooltip-trigger .stat-tooltip-rows {
  gap: 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.profile-card-tooltip-trigger .stat-tooltip-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-card-tooltip-trigger .stat-tooltip-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-card-tooltip-trigger .stat-tooltip-row span {
  font-size: 0.74rem;
  line-height: 1.3;
}

.profile-card-tooltip-trigger .stat-tooltip-row strong {
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: left;
  justify-self: start;
  overflow-wrap: anywhere;
}

.profile-card-value-row,
.profile-card-context-row {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.profile-card-value-row span {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-card-value-row strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.profile-card-context-row p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #d9e3f4;
  font-weight: 600;
}

.profile-card-context-list {
  display: grid;
  gap: 4px;
}

.profile-card-context-item {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #d9e3f4;
  font-weight: 600;
}

.stats-sample-note {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.stats-accordion {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.stats-accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: transparent;
}

.stats-accordion-summary::-webkit-details-marker {
  display: none;
}

.stats-accordion-summary::marker {
  display: none;
}

.stats-accordion-summary .eyebrow {
  margin-bottom: 4px;
}

.stats-accordion-summary h2 {
  font-size: 1rem;
}

.stats-accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stats-accordion-toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.stats-accordion[open] .stats-accordion-toggle {
  color: var(--text);
}

.stats-accordion[open] .stats-accordion-toggle::before {
  transform: rotate(225deg) translateY(-1px);
}

.stats-accordion-content {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.stats-accordion-content > * {
  margin-top: 0;
}

.compact-card-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 10px;
}

.compact-card-head h2 {
  font-size: 1.06rem;
}

.search-hero {
  padding: 16px;
  margin-top: 6px;
}

.search-hero.compact {
  display: grid;
  gap: 14px;
}

.search-hero-head h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.02;
}

.search-panel {
  display: grid;
  gap: 12px;
}

.compact-search-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-4);
}

.search-help-callout {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid rgba(154, 194, 122, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(24, 31, 38, 0.96), rgba(18, 24, 30, 0.98));
}

.search-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.search-help-head strong {
  font-size: 0.92rem;
}

.search-help-head span {
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.search-help-callout p {
  color: var(--muted);
  font-size: 0.86rem;
}

.search-help-callout strong {
  color: var(--text);
}

.search-help-callout code {
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
}

.page-home {
  --home-panel-border: rgba(255, 255, 255, 0.1);
  --home-green: var(--accent);
  --home-green-soft: rgba(154, 194, 122, 0.2);
  --home-blue-soft: rgba(95, 126, 255, 0.18);
  --home-shell: linear-gradient(180deg, rgba(17, 22, 31, 0.96), rgba(12, 16, 23, 0.98));
}

.page-home .page-shell {
  gap: 16px;
}

.page-leaderboard .page-shell {
  gap: 16px;
}

.page-fc-builder .page-shell {
  gap: 16px;
}

.leaderboard-splash {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(72vh, 760px);
  margin-top: 8px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(154, 194, 122, 0.14), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(154, 194, 122, 0.09), transparent 22%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.98), rgba(12, 16, 23, 0.98));
  box-shadow: var(--shadow);
}

.leaderboard-splash::before,
.leaderboard-splash::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(8px);
}

.leaderboard-splash::before {
  inset: auto auto -80px -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(154, 194, 122, 0.14), transparent 70%);
}

.leaderboard-splash::after {
  inset: -80px -30px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(154, 194, 122, 0.12), transparent 70%);
}

.leaderboard-splash-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.leaderboard-splash-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.8rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.leaderboard-splash-lede {
  margin: 0;
  max-width: 44ch;
  color: rgba(237, 242, 247, 0.72);
  font-size: 1rem;
  text-align: center;
}

.splash-action-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.leaderboard-gate-form {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 148px) auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 330px);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(10, 13, 18, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.leaderboard-gate-head {
  display: flex;
  align-items: center;
}

.leaderboard-gate-head small,
.leaderboard-gate-field span {
  color: rgba(237, 242, 247, 0.42);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leaderboard-gate-field {
  min-width: 0;
}

.leaderboard-gate-field input {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(6, 9, 12, 0.66);
  color: var(--text);
  font-size: 0.84rem;
}

.leaderboard-gate-field input:focus {
  outline: none;
  border-color: rgba(154, 194, 122, 0.34);
  box-shadow: 0 0 0 2px rgba(154, 194, 122, 0.08);
}

.leaderboard-gate-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.leaderboard-gate-error {
  margin: 0;
  grid-column: 1 / -1;
  color: #ffb3b3;
  font-size: 0.8rem;
}

.leaderboard-lock-form {
  display: flex;
  align-items: center;
}

.builder-hero,
.builder-feature-card,
.builder-role-showcase {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 16%, rgba(154, 194, 122, 0.14), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(111, 160, 220, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.98), rgba(12, 16, 23, 0.98));
  box-shadow: var(--shadow);
}

.builder-hero,
.builder-role-showcase {
  padding: clamp(24px, 4vw, 34px);
}

.builder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 8px;
}

.builder-hero-copy,
.builder-preview-panel,
.builder-role-showcase-head,
.builder-feature-list,
.builder-feature-card,
.builder-role-card {
  position: relative;
  z-index: 1;
}

.builder-hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.builder-hero-copy h1,
.builder-preview-head h2,
.builder-role-showcase-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.builder-hero-copy h1 {
  font-size: clamp(2.7rem, 5.5vw, 4.8rem);
  max-width: 11ch;
}

.builder-lede {
  max-width: 56ch;
  color: rgba(237, 242, 247, 0.78);
  font-size: 1rem;
}

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

.builder-status-pill,
.builder-preview-badge,
.builder-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 700;
}

.builder-status-pill {
  color: rgba(237, 242, 247, 0.8);
}

.builder-preview-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.08), transparent 34%),
    linear-gradient(165deg, rgba(13, 18, 25, 0.96), rgba(17, 24, 33, 0.98));
}

.builder-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.builder-preview-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.builder-preview-badge {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.builder-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.builder-preview-card,
.builder-role-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.builder-preview-card.is-primary {
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(28, 36, 24, 0.7), rgba(255, 255, 255, 0.03));
  border-color: rgba(154, 194, 122, 0.18);
}

.builder-preview-card small,
.builder-role-card small {
  color: rgba(237, 242, 247, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.builder-preview-card strong,
.builder-role-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.builder-preview-card span,
.builder-role-card p {
  color: rgba(237, 242, 247, 0.72);
  font-size: 0.92rem;
}

.builder-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.builder-feature-card {
  padding: 16px;
}

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

.builder-feature-list p {
  color: rgba(237, 242, 247, 0.76);
}

.builder-feature-list strong {
  color: var(--text);
}

.builder-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-pill {
  color: rgba(237, 242, 247, 0.9);
}

.builder-role-showcase {
  display: grid;
  gap: 18px;
  margin-top: 12px;
}

.builder-role-showcase-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

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

.builder-role-card {
  min-height: 220px;
  align-content: start;
}

.builder-role-card.role-attack {
  background:
    radial-gradient(circle at top right, rgba(255, 173, 70, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.builder-role-card.role-midfield {
  background:
    radial-gradient(circle at top right, rgba(104, 189, 255, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.builder-role-card.role-defense {
  background:
    radial-gradient(circle at top right, rgba(135, 220, 187, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.builder-role-card.role-keeper {
  background:
    radial-gradient(circle at top right, rgba(196, 156, 255, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.builder-studio {
  margin-top: 8px;
}

.builder-studio-shell {
  display: grid;
  gap: 16px;
}

.builder-studio-header,
.builder-toolbar,
.builder-studio-card,
.builder-secondary-card,
.builder-detail-card,
.builder-category-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 21, 27, 0.98), rgba(11, 15, 20, 0.98));
  box-shadow: var(--shadow);
}

.builder-studio-header,
.builder-toolbar,
.builder-studio-card,
.builder-secondary-card,
.builder-detail-card {
  padding: 18px;
}

.builder-studio-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.builder-studio-header-copy {
  display: grid;
  gap: 10px;
}

.builder-studio-header-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.builder-studio-lede {
  max-width: 62ch;
  color: rgba(237, 242, 247, 0.76);
  font-size: 0.98rem;
}

.builder-studio-header-actions,
.builder-studio-name {
  display: grid;
  gap: 8px;
}

.builder-studio-name span,
.builder-studio-copy-status,
.builder-toolbar-kicker,
.builder-stat-caption,
.builder-range-caption,
.builder-slot-note,
.builder-requirement,
.builder-detail-meta small,
.builder-control-footnote {
  color: rgba(237, 242, 247, 0.58);
  font-size: 0.74rem;
}

.builder-studio-name input,
.builder-toolbar-level input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.builder-studio-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-studio-copy-status.is-success {
  color: var(--accent);
}

.builder-studio-copy-status.is-error {
  color: #f2b1b1;
}

.builder-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 14px;
  align-items: center;
}

.builder-toolbar-main,
.builder-toolbar-box {
  display: grid;
  gap: 4px;
}

.builder-toolbar-main strong {
  font-size: 1.18rem;
  line-height: 1.1;
}

.builder-toolbar-box {
  justify-items: center;
  min-width: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.builder-toolbar-box strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

.builder-toolbar-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.builder-toolbar-level label {
  color: rgba(237, 242, 247, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.builder-toolbar-level input {
  width: 88px;
  min-height: 40px;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.builder-level-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.builder-level-slider {
  --builder-slider-fill: 0%;
  --builder-slider-fill-top: #758a67;
  --builder-slider-fill-bottom: #5f7252;
  --builder-slider-thumb-top: #cadcab;
  --builder-slider-thumb-bottom: #89a26f;
  --builder-slider-thumb-edge: #5f7352;
  --builder-slider-glow: rgba(164, 202, 120, 0.1);
  width: 100%;
  appearance: none;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, var(--builder-slider-fill-top), var(--builder-slider-fill-bottom)),
    linear-gradient(180deg, #2c3239, #232930);
  background-size: var(--builder-slider-fill) 100%, 100% 100%;
  background-position: left top, left top;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(6, 8, 12, 0.22);
}

.builder-level-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(14, 18, 24, 0.6);
  background:
    linear-gradient(180deg, var(--builder-slider-thumb-top), var(--builder-slider-thumb-bottom));
  box-shadow:
    0 0 0 3px var(--builder-slider-glow),
    0 2px 6px rgba(0, 0, 0, 0.32);
}

.builder-level-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(14, 18, 24, 0.6);
  background:
    linear-gradient(180deg, var(--builder-slider-thumb-top), var(--builder-slider-thumb-bottom));
  box-shadow:
    0 0 0 3px var(--builder-slider-glow),
    0 2px 6px rgba(0, 0, 0, 0.32);
}

.builder-config-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.builder-studio-card-head,
.builder-secondary-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.builder-studio-card-head h2 {
  font-size: 1.18rem;
  line-height: 1;
}

.builder-group-row,
.builder-chip-grid,
.builder-secondary-tabs,
.builder-slot-row,
.builder-playstyle-library,
.builder-specialization-grid,
.builder-facility-grid,
.builder-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-group-button,
.builder-chip,
.builder-tab-button,
.builder-slot,
.builder-playstyle-chip,
.builder-small-button,
.builder-detail-action {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.builder-group-button:hover,
.builder-chip:hover,
.builder-tab-button:hover,
.builder-slot:hover,
.builder-playstyle-chip:hover,
.builder-detail-action:hover {
  border-color: rgba(154, 194, 122, 0.26);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.builder-group-button.is-active,
.builder-chip.is-active,
.builder-tab-button.is-active,
.builder-slot.is-active,
.builder-playstyle-chip.is-active,
.builder-detail-action.is-primary {
  border-color: rgba(154, 194, 122, 0.36);
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(30, 38, 28, 0.95), rgba(17, 22, 18, 0.98));
}

.builder-chip-grid {
  margin-top: 12px;
}

.builder-chip {
  font-size: 0.86rem;
  font-weight: 700;
}

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

.builder-archetype-option,
.builder-specialization-card,
.builder-facility-card,
.builder-category-card,
.builder-detail-meta {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.builder-archetype-option {
  display: grid;
  gap: 8px;
  padding: 14px;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.builder-archetype-option:hover {
  border-color: rgba(154, 194, 122, 0.24);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.builder-archetype-option.is-active {
  border-color: rgba(154, 194, 122, 0.34);
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.05);
}

.builder-archetype-option small,
.builder-specialization-card small,
.builder-facility-card small {
  color: rgba(237, 242, 247, 0.56);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.builder-archetype-option strong,
.builder-specialization-card strong,
.builder-facility-card strong,
.builder-category-card h3,
.builder-detail-card h3 {
  font-size: 1rem;
  line-height: 1.15;
}

.builder-archetype-option span,
.builder-specialization-card p,
.builder-facility-card p,
.builder-playstyle-caption,
.builder-detail-description,
.builder-body-summary p {
  color: rgba(237, 242, 247, 0.74);
  font-size: 0.88rem;
}

.builder-secondary-tabs {
  margin-bottom: 14px;
}

.builder-secondary-panel {
  display: grid;
  gap: 14px;
}

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

.builder-status-pill-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.builder-status-pill-card small {
  color: rgba(237, 242, 247, 0.58);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.builder-status-pill-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.28rem;
  line-height: 1;
}

.builder-slot-row {
  align-items: stretch;
}

.builder-slot {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.builder-slot.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.builder-tab-section {
  display: grid;
  gap: 10px;
}

.builder-playstyle-library {
  margin-top: 6px;
}

.builder-playstyle-chip {
  min-height: 38px;
  font-size: 0.84rem;
  font-weight: 700;
}

.builder-playstyle-chip strong {
  display: block;
}

.builder-playstyle-chip.is-unmet {
  border-color: rgba(255, 182, 182, 0.18);
}

.builder-recommend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-recommend-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(154, 194, 122, 0.16);
  background: rgba(154, 194, 122, 0.09);
  color: rgba(237, 242, 247, 0.92);
  font-size: 0.82rem;
}

.builder-specialization-grid,
.builder-facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.builder-specialization-card,
.builder-facility-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.builder-specialization-card[data-builder-specialization] {
  width: 100%;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.builder-specialization-card[data-builder-specialization]:hover {
  border-color: rgba(154, 194, 122, 0.26);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.builder-specialization-card[data-builder-specialization]:focus-visible {
  outline: none;
  border-color: rgba(154, 194, 122, 0.34);
  box-shadow: 0 0 0 2px rgba(154, 194, 122, 0.12);
}

.builder-specialization-card.is-active[data-builder-specialization] {
  border-color: rgba(154, 194, 122, 0.36);
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(36, 45, 31, 0.92), rgba(18, 25, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 24px rgba(0, 0, 0, 0.22);
}

.builder-specialization-card.is-unmet[data-builder-specialization] {
  border-color: rgba(255, 182, 182, 0.18);
}

.builder-specialization-reward {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bfe0ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.builder-requirement-list {
  display: grid;
  gap: 6px;
}

.builder-specialization-state {
  color: rgba(237, 242, 247, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-requirement.is-met {
  color: var(--accent);
}

.builder-requirement.is-unmet {
  color: #ffb6b6;
}

.builder-body-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.builder-range-control {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.builder-range-control input[type="range"] {
  --builder-slider-fill: 0%;
  --builder-slider-fill-top: #758a67;
  --builder-slider-fill-bottom: #5f7252;
  --builder-slider-thumb-top: #cadcab;
  --builder-slider-thumb-bottom: #89a26f;
  --builder-slider-glow: rgba(164, 202, 120, 0.1);
  width: 100%;
  appearance: none;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, var(--builder-slider-fill-top), var(--builder-slider-fill-bottom)),
    linear-gradient(180deg, #2c3239, #232930);
  background-size: var(--builder-slider-fill) 100%, 100% 100%;
  background-position: left top, left top;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(6, 8, 12, 0.22);
}

.builder-range-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(14, 18, 24, 0.6);
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--builder-slider-thumb-top), var(--builder-slider-thumb-bottom));
  box-shadow:
    0 0 0 3px var(--builder-slider-glow),
    0 2px 6px rgba(0, 0, 0, 0.32);
}

.builder-range-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(14, 18, 24, 0.6);
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--builder-slider-thumb-top), var(--builder-slider-thumb-bottom));
  box-shadow:
    0 0 0 3px var(--builder-slider-glow),
    0 2px 6px rgba(0, 0, 0, 0.32);
}

.builder-range-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.builder-range-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.builder-body-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.builder-body-adjustments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-adjustment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}

.builder-adjustment-pill.is-positive {
  color: var(--accent);
}

.builder-adjustment-pill.is-negative {
  color: #f2b1b1;
}

.builder-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.builder-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.builder-category-card {
  padding: 14px;
}

.builder-category-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

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

.builder-attribute-button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.builder-attribute-button:hover {
  border-color: rgba(154, 194, 122, 0.22);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.builder-attribute-button.is-active {
  border-color: rgba(154, 194, 122, 0.3);
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.05);
}

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

.builder-attribute-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.builder-key-star {
  color: var(--accent);
  font-size: 0.82rem;
}

.builder-attribute-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.94rem;
}

.builder-attribute-delta {
  color: var(--accent);
  font-size: 0.78rem;
}

.builder-attribute-delta.is-negative {
  color: #f2b1b1;
}

.builder-attribute-bar {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.builder-attribute-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(154, 194, 122, 0.86), rgba(217, 239, 191, 0.92));
}

.builder-detail-card {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.builder-detail-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: rgba(237, 242, 247, 0.56);
  text-align: center;
}

.builder-detail-card h3 {
  font-size: 1.45rem;
}

.builder-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.builder-detail-meta strong {
  display: block;
  margin-top: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.builder-detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.builder-detail-action {
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 14px;
  text-align: center;
}

.builder-detail-action[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.builder-detail-action strong {
  display: block;
  font-size: 0.92rem;
}

.builder-detail-action small {
  display: block;
  margin-top: 2px;
  color: rgba(237, 242, 247, 0.62);
  font-size: 0.72rem;
}

.builder-summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.builder-summary-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.builder-collapsible {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.builder-collapsible[open] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.03);
}

.builder-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.builder-collapsible-summary::-webkit-details-marker {
  display: none;
}

.builder-collapsible-copy {
  display: grid;
  gap: 4px;
}

.builder-collapsible-copy .eyebrow {
  margin: 0;
}

.builder-collapsible-copy h2,
.builder-collapsible-copy h3 {
  margin: 0;
}

.builder-collapsible-meta {
  color: rgba(237, 242, 247, 0.62);
  font-size: 0.82rem;
}

.builder-collapsible-body {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.builder-collapsible-toggle {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.builder-collapsible-toggle::before,
.builder-collapsible-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(237, 242, 247, 0.72);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, opacity 160ms ease;
}

.builder-collapsible-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.builder-collapsible[open] .builder-collapsible-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.builder-collapsible-summary-inline {
  padding: 0;
}

.builder-category-summary-side {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(237, 242, 247, 0.78);
}

.builder-summary-list span,
.builder-save-meta span {
  color: rgba(237, 242, 247, 0.68);
  font-size: 0.86rem;
}

.builder-save-actions,
.builder-save-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-save-meta {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.builder-save-meta strong {
  font-size: 1rem;
}

.builder-save-list {
  display: grid;
  gap: 12px;
}

.builder-save-item.is-active {
  border-color: rgba(154, 194, 122, 0.32);
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.builder-studio-muted {
  color: rgba(237, 242, 247, 0.6);
}

@media (max-width: 1180px) {
  .builder-studio-header,
  .builder-config-strip,
  .builder-editor-grid {
    grid-template-columns: 1fr;
  }

  .builder-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .builder-detail-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .builder-toolbar,
  .builder-slot-status-grid,
  .builder-specialization-grid,
  .builder-facility-grid,
  .builder-body-panel,
  .builder-category-grid,
  .builder-detail-meta,
  .builder-detail-actions,
  .builder-archetype-grid {
    grid-template-columns: 1fr;
  }

  .builder-toolbar-level {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .builder-studio-header,
  .builder-toolbar,
  .builder-studio-card,
  .builder-secondary-card,
  .builder-detail-card {
    padding: 16px;
    border-radius: 18px;
  }

  .builder-studio-action-row {
    flex-direction: column;
  }

  .builder-studio-action-row .button {
    width: 100%;
  }

  .builder-toolbar {
    gap: 10px;
  }
}

.builder-workspace {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.builder-config-panel,
.builder-output-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.builder-config-panel {
  position: sticky;
  top: 18px;
}

.builder-panel-block,
.builder-summary-card,
.builder-stats-card,
.builder-insight-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(18, 24, 31, 0.98), rgba(12, 17, 23, 0.98));
  box-shadow: var(--shadow);
}

.builder-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.builder-panel-head h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1;
}

.builder-position-grid,
.builder-archetype-grid {
  display: grid;
  gap: 10px;
}

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

.builder-archetype-grid {
  grid-template-columns: 1fr;
}

.builder-position-card,
.builder-archetype-card,
.builder-frame-chip,
.builder-playstyle-chip {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.builder-position-card:hover,
.builder-archetype-card:hover,
.builder-frame-chip:hover,
.builder-playstyle-chip:hover {
  border-color: rgba(154, 194, 122, 0.24);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.builder-position-card,
.builder-archetype-card {
  padding: 14px;
  border-radius: 18px;
}

.builder-position-card small,
.builder-archetype-card small {
  color: rgba(237, 242, 247, 0.56);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.builder-position-card strong,
.builder-archetype-card strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.builder-archetype-card span {
  color: rgba(237, 242, 247, 0.72);
  font-size: 0.89rem;
}

.builder-position-card.is-active,
.builder-archetype-card.is-active,
.builder-frame-chip.is-active,
.builder-playstyle-chip.is-active {
  border-color: rgba(154, 194, 122, 0.36);
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(36, 45, 31, 0.92), rgba(18, 25, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 24px rgba(0, 0, 0, 0.22);
}

.builder-slider-block {
  display: grid;
  gap: 10px;
}

.builder-slider-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: rgba(237, 242, 247, 0.86);
}

.builder-slider-head span {
  color: rgba(237, 242, 247, 0.68);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.builder-slider-head strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.builder-slider-block input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(154, 194, 122, 0.42), rgba(255, 255, 255, 0.12));
  outline: none;
}

.builder-slider-block input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #cfe7bd, #9ac27a);
  box-shadow: 0 0 0 4px rgba(154, 194, 122, 0.14);
}

.builder-slider-block input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, #cfe7bd, #9ac27a);
  box-shadow: 0 0 0 4px rgba(154, 194, 122, 0.14);
}

.builder-frame-grid,
.builder-playstyle-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-frame-chip,
.builder-playstyle-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.builder-playstyle-chip {
  width: auto;
}

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

.builder-summary-card,
.builder-insight-card.is-wide {
  grid-column: 1 / -1;
}

.builder-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.builder-summary-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.94;
}

.builder-overall-chip {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  min-width: 104px;
  padding: 12px 14px;
  border: 1px solid rgba(154, 194, 122, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(154, 194, 122, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(28, 35, 24, 0.92), rgba(15, 19, 16, 0.98));
}

.builder-overall-chip small {
  color: rgba(237, 242, 247, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.builder-reference-header,
.builder-reference-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.96), rgba(10, 12, 18, 0.98)),
    rgba(10, 12, 18, 0.96);
  box-shadow: var(--shadow);
}

.builder-reference-header::before,
.builder-reference-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.builder-reference-header::before {
  background:
    radial-gradient(circle at 52% 12%, rgba(11, 255, 127, 0.14), transparent 18%),
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.06), transparent 20%);
  opacity: 0.9;
}

.builder-reference-panel::before {
  background:
    radial-gradient(circle at 56% 104%, rgba(11, 255, 127, 0.09), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 30%);
  opacity: 0.92;
}

.builder-reference-header {
  display: grid;
  gap: 16px;
  padding: 22px 22px 18px;
}

.builder-reference-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-height: 64px;
  padding: 8px 0 2px;
}

.builder-reference-brand {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 26px;
  flex-wrap: wrap;
  min-width: 0;
}

.builder-reference-archetype {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f4f7fb;
  line-height: 1;
}

.builder-reference-tabs-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding-top: 30px;
}

.builder-reference-tab-hints {
  display: inline-flex;
  gap: 8px;
}

.builder-reference-tab-hints span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 242, 247, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.builder-reference-tabs {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 0;
}

.builder-reference-tabs .builder-tab-button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(237, 242, 247, 0.52);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  transform: none;
}

.builder-reference-tabs .builder-tab-button::after {
  content: "";
  display: block;
  margin-top: 8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.builder-reference-archetype,
.builder-reference-tabs .builder-tab-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.builder-reference-tabs .builder-tab-button:hover {
  color: rgba(237, 242, 247, 0.8);
  border: 0;
  background: transparent;
  transform: none;
}

.builder-reference-tabs .builder-tab-button.is-active {
  color: #f4f7fb;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.builder-reference-tabs .builder-tab-button.is-active::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35));
}

.builder-reference-toolbar {
  display: grid;
  gap: 12px;
  min-width: min(100%, 360px);
  align-self: start;
}

.builder-reference-level {
  display: grid;
  gap: 6px;
}

.builder-reference-level small,
.builder-reference-toolbar-stat small,
.builder-reference-control-block > small {
  color: rgba(237, 242, 247, 0.48);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.builder-reference-level-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: center;
}

.builder-reference-level-input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f7fb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  text-align: center;
}

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

.builder-reference-toolbar-stat {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.builder-reference-toolbar-stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.builder-reference-setup {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.builder-reference-setup[open] {
  background: rgba(255, 255, 255, 0.03);
}

.builder-reference-setup summary {
  list-style: none;
}

.builder-reference-setup summary::-webkit-details-marker {
  display: none;
}

.builder-reference-setup-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
}

.builder-reference-setup-summary span {
  color: #f4f7fb;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.builder-reference-setup-summary small {
  color: rgba(237, 242, 247, 0.46);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.builder-reference-controls {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1fr;
  gap: 14px;
  padding: 0 16px 16px;
}

.builder-reference-control-block {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.builder-reference-control-actions {
  align-content: start;
}

.builder-reference-control-block .builder-group-row,
.builder-reference-control-block .builder-chip-grid,
.builder-reference-control-block .builder-archetype-grid {
  margin-top: 0;
}

.builder-reference-control-block .builder-group-row {
  display: grid;
  gap: 10px;
}

.builder-reference-control-block .builder-group-button,
.builder-reference-control-block .builder-chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.builder-reference-control-block .builder-archetype-option {
  padding: 12px 14px;
  border-radius: 16px;
}

.builder-reference-control-block .builder-archetype-grid.is-fill-grid {
  height: 100%;
  align-content: stretch;
  grid-auto-rows: 1fr;
}

.builder-reference-control-block .builder-archetype-grid.is-fill-grid .builder-archetype-option {
  height: 100%;
  align-content: center;
}

.builder-reference-control-block .builder-position-group-option {
  width: 100%;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: center;
  justify-items: center;
}

.builder-reference-panel {
  padding: 18px;
  min-height: 520px;
}

.builder-reference-panel-body {
  display: grid;
  gap: 18px;
}

.builder-game-attributes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
}

.builder-game-attributes.is-goalkeeper {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.builder-game-category {
  display: grid;
  gap: 12px;
  align-content: start;
}

.builder-game-category h2 {
  margin: 0;
  color: #f6f8fb;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1;
}

.builder-game-attribute-list {
  display: grid;
  gap: 10px;
}

.builder-game-attribute-row {
  --builder-slider-fill-top: #748765;
  --builder-slider-fill-bottom: #617154;
  --builder-slider-thumb-top: #ccddab;
  --builder-slider-thumb-bottom: #8ca370;
  --builder-slider-glow: rgba(165, 205, 123, 0.12);
  display: grid;
  gap: 8px;
  padding: 8px 2px 8px;
  border: 1px solid transparent;
  border-radius: 14px;
}

.builder-game-attribute-row.is-selected {
  padding-inline: 12px;
  border-color: rgba(0, 224, 255, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(0, 224, 255, 0.12),
    0 0 0 1px rgba(0, 224, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
}

.builder-game-attribute-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.builder-game-attribute-name,
.builder-game-attribute-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.builder-game-attribute-name {
  color: rgba(237, 242, 247, 0.82);
  font-size: 1rem;
  font-weight: 700;
}

.builder-game-attribute-number,
.builder-game-stars {
  color: #f4f7fb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.builder-game-stars {
  color: #e4c46a;
  letter-spacing: 0.04em;
}

.builder-game-key-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #00ff94;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(0, 255, 148, 0.08);
}

.builder-game-attribute-row.is-elite .builder-game-attribute-name,
.builder-game-attribute-row.is-elite .builder-game-attribute-number {
  color: #9cbe82;
}

.builder-game-attribute-row.is-good .builder-game-attribute-name,
.builder-game-attribute-row.is-good .builder-game-attribute-number {
  color: #cdb65d;
}

.builder-game-attribute-row.is-warning .builder-game-attribute-name,
.builder-game-attribute-row.is-warning .builder-game-attribute-number {
  color: #9a6260;
}

.builder-game-attribute-slider {
  width: 100%;
  height: 12px;
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, var(--builder-slider-fill-top), var(--builder-slider-fill-bottom)),
    linear-gradient(180deg, #2c3239, #232930);
  background-size: var(--builder-slider-fill) 100%, 100% 100%;
  background-position: left top, left top;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(6, 8, 12, 0.22);
  outline: none;
}

.builder-game-attribute-slider::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: transparent;
}

.builder-game-attribute-slider::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: transparent;
}

.builder-game-attribute-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -5px;
  border: 1px solid rgba(14, 18, 24, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--builder-slider-thumb-top), var(--builder-slider-thumb-bottom));
  box-shadow:
    0 0 0 3px var(--builder-slider-glow),
    0 2px 6px rgba(0, 0, 0, 0.34);
}

.builder-game-attribute-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(14, 18, 24, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(180deg, var(--builder-slider-thumb-top), var(--builder-slider-thumb-bottom));
  box-shadow:
    0 0 0 3px var(--builder-slider-glow),
    0 2px 6px rgba(0, 0, 0, 0.34);
}

.builder-game-attribute-row.is-elite .builder-game-attribute-slider {
  --builder-slider-fill-top: #7a8c6c;
  --builder-slider-fill-bottom: #667658;
  --builder-slider-thumb-top: #cfe0ad;
  --builder-slider-thumb-bottom: #90a674;
  --builder-slider-glow: rgba(165, 205, 123, 0.14);
}

.builder-game-attribute-row.is-good .builder-game-attribute-slider {
  --builder-slider-fill-top: #b9a45b;
  --builder-slider-fill-bottom: #9a874a;
  --builder-slider-thumb-top: #e2d186;
  --builder-slider-thumb-bottom: #b9a25d;
  --builder-slider-glow: rgba(224, 194, 76, 0.14);
}

.builder-game-attribute-row.is-warning .builder-game-attribute-slider {
  --builder-slider-fill-top: #855356;
  --builder-slider-fill-bottom: #6d4345;
  --builder-slider-thumb-top: #c39a8f;
  --builder-slider-thumb-bottom: #916566;
  --builder-slider-glow: rgba(158, 77, 75, 0.16);
}

@media (max-width: 1280px) {
  .builder-reference-nav {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .builder-reference-controls {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 860px) {
  .builder-reference-header,
  .builder-reference-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .builder-reference-controls,
  .builder-reference-toolbar-stats,
  .builder-reference-level-controls,
  .builder-game-attributes,
  .builder-game-attributes.is-goalkeeper {
    grid-template-columns: 1fr;
  }

  .builder-reference-tabs {
    gap: 14px;
    flex-wrap: wrap;
  }

  .builder-reference-brand {
    gap: 16px;
  }
}

.builder-overall-chip strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  line-height: 0.95;
  color: #eef8e8;
}

.builder-summary-text {
  margin-top: 14px;
  color: rgba(237, 242, 247, 0.78);
  font-size: 0.98rem;
  max-width: 64ch;
}

.builder-summary-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.builder-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-copy-status {
  min-height: 18px;
  color: rgba(237, 242, 247, 0.58);
  font-size: 0.82rem;
}

.builder-copy-status.is-success {
  color: var(--accent);
}

.builder-copy-status.is-error {
  color: #f4b1b1;
}

.builder-code-card {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(6, 9, 12, 0.36);
}

.builder-code-card small,
.builder-meta-card small,
.builder-insight-card small {
  color: rgba(237, 242, 247, 0.56);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.builder-code-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  word-break: break-word;
}

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

.builder-meta-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.builder-meta-card strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.builder-stat-stack {
  display: grid;
  gap: 12px;
}

.builder-stat-row {
  display: grid;
  gap: 8px;
}

.builder-stat-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.builder-stat-copy span {
  color: rgba(237, 242, 247, 0.7);
  font-size: 0.9rem;
}

.builder-stat-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
}

.builder-stat-bar {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.builder-stat-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.builder-stat-fill.is-pace {
  background: linear-gradient(90deg, #d8f8b9, #9ac27a);
}

.builder-stat-fill.is-shooting {
  background: linear-gradient(90deg, #ffc89a, #ff9966);
}

.builder-stat-fill.is-passing {
  background: linear-gradient(90deg, #b2e4ff, #6eb9ff);
}

.builder-stat-fill.is-dribbling {
  background: linear-gradient(90deg, #f0c7ff, #bc85f2);
}

.builder-stat-fill.is-defending {
  background: linear-gradient(90deg, #b8f1de, #67c7a2);
}

.builder-stat-fill.is-physical {
  background: linear-gradient(90deg, #ffd7ae, #c48d5f);
}

.builder-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

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

.builder-bullet-list p {
  position: relative;
  padding-left: 16px;
  color: rgba(237, 242, 247, 0.76);
  font-size: 0.92rem;
}

.builder-bullet-list p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(154, 194, 122, 0.28);
}

.builder-pill-grid-strong .builder-pill {
  border-color: rgba(154, 194, 122, 0.18);
  background:
    radial-gradient(circle at top right, rgba(154, 194, 122, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.04);
}

.builder-pill-active {
  color: #eff8ea;
}

@media (max-width: 1180px) {
  .builder-hero,
  .builder-workspace,
  .builder-output-panel {
    grid-template-columns: 1fr;
  }

  .builder-config-panel {
    position: static;
  }

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

@media (max-width: 860px) {
  .builder-preview-grid,
  .builder-position-grid,
  .builder-insight-grid,
  .builder-meta-grid {
    grid-template-columns: 1fr;
  }

  .builder-summary-head {
    flex-direction: column;
  }

  .builder-overall-chip {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .builder-hero,
  .builder-panel-block,
  .builder-summary-card,
  .builder-stats-card,
  .builder-insight-card {
    padding: 16px;
    border-radius: 20px;
  }

  .builder-action-row {
    flex-direction: column;
  }

  .builder-action-row .button {
    width: 100%;
  }

  .builder-frame-grid,
  .builder-playstyle-grid {
    gap: 8px;
  }
}

.leaderboard-shell {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.leaderboard-hero,
.leaderboard-method-card,
.leaderboard-board,
.leaderboard-empty {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 14%, rgba(154, 194, 122, 0.14), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(154, 194, 122, 0.09), transparent 22%),
    linear-gradient(180deg, rgba(17, 22, 31, 0.98), rgba(12, 16, 23, 0.98));
  box-shadow: var(--shadow);
}

.leaderboard-hero,
.leaderboard-method-card,
.leaderboard-board {
  padding: clamp(22px, 4vw, 32px);
}

.leaderboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.leaderboard-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.leaderboard-hero-copy h1,
.leaderboard-board-head h2,
.leaderboard-method-head h2,
.leaderboard-empty h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.leaderboard-hero-copy h1 {
  font-size: clamp(2.8rem, 5.8vw, 4.9rem);
}

.leaderboard-hero-count {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: #edf8e6;
  text-shadow:
    0 0 8px rgba(154, 194, 122, 0.16),
    0 0 18px rgba(154, 194, 122, 0.1);
  animation: leaderboard-count-text-glow 3.2s ease-in-out infinite alternate;
}

.leaderboard-hero-count::before {
  content: attr(data-count);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: rgba(190, 233, 146, 0.68);
  text-shadow:
    -10px 0 18px rgba(186, 232, 140, 0.16),
    -4px 0 12px rgba(154, 194, 122, 0.2),
    0 0 18px rgba(216, 247, 191, 0.22),
    6px 0 14px rgba(122, 186, 94, 0.18),
    12px 0 20px rgba(171, 219, 137, 0.14);
  filter: blur(8px) saturate(1.15);
  animation:
    leaderboard-pulse-count 3.2s ease-in-out infinite alternate,
    leaderboard-count-drift 5.4s ease-in-out infinite alternate;
}

.leaderboard-hero-count::after {
  content: attr(data-count);
  position: absolute;
  inset: 0;
  z-index: -2;
  color: rgba(210, 244, 175, 0.3);
  text-shadow:
    0 0 24px rgba(186, 232, 140, 0.22),
    0 0 40px rgba(154, 194, 122, 0.16),
    0 0 58px rgba(122, 186, 94, 0.12);
  filter: blur(14px) saturate(1.2);
  mix-blend-mode: screen;
  animation:
    elite-aurora-breathe 3.4s ease-in-out infinite alternate,
    leaderboard-count-drift 6.2s ease-in-out infinite alternate-reverse;
}

.leaderboard-lede,
.leaderboard-board-note,
.leaderboard-empty p {
  margin: 0;
  max-width: 60ch;
  color: rgba(237, 242, 247, 0.78);
  font-size: 1rem;
}

.leaderboard-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.leaderboard-summary-card,
.leaderboard-detail-card {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-summary-card small,
.leaderboard-detail-card small {
  color: rgba(237, 242, 247, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.leaderboard-summary-card strong,
.leaderboard-detail-card strong,
.leaderboard-score-block strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.leaderboard-summary-card span,
.leaderboard-score-block span,
.leaderboard-rank-copy,
.leaderboard-player-club {
  color: rgba(237, 242, 247, 0.7);
  font-size: 0.92rem;
}

.leaderboard-player-club-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(154, 194, 122, 0.35);
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.leaderboard-player-club-link:hover,
.leaderboard-player-club-link:focus-visible {
  color: rgba(237, 242, 247, 0.96);
  text-decoration-color: rgba(154, 194, 122, 0.72);
}

.leaderboard-method-card {
  display: grid;
  gap: 18px;
}

.leaderboard-method-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.leaderboard-method-head h2,
.leaderboard-board-head h2,
.leaderboard-empty h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
}

.leaderboard-method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.leaderboard-method-pill,
.leaderboard-stat-pill,
.leaderboard-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
  font-weight: 700;
}

.leaderboard-method-pill {
  color: rgba(237, 242, 247, 0.9);
}

.leaderboard-board {
  display: grid;
  gap: 18px;
}

.leaderboard-board-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.leaderboard-list {
  display: grid;
  gap: 12px;
}

.leaderboard-entry {
  display: grid;
  grid-template-columns: 108px minmax(0, 1.45fr) 120px minmax(260px, 0.9fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(154, 194, 122, 0.05), rgba(255, 255, 255, 0.01) 45%, rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
}

.leaderboard-entry.is-top-entry {
  border-color: rgba(154, 194, 122, 0.22);
  background:
    radial-gradient(circle at 12% 20%, rgba(154, 194, 122, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(154, 194, 122, 0.06), rgba(255, 255, 255, 0.02) 46%, rgba(255, 255, 255, 0.03));
}

.leaderboard-entry.is-rank-1,
.leaderboard-entry.is-rank-2,
.leaderboard-entry.is-rank-3 {
  position: relative;
  overflow: hidden;
}

.leaderboard-entry.is-rank-1::before,
.leaderboard-entry.is-rank-2::before,
.leaderboard-entry.is-rank-3::before,
.leaderboard-entry.is-rank-1::after,
.leaderboard-entry.is-rank-2::after,
.leaderboard-entry.is-rank-3::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity, background-position;
}

.leaderboard-entry.is-rank-1::before {
  background:
    radial-gradient(circle at 14% 38%, rgba(255, 224, 136, 0.24), transparent 44%),
    radial-gradient(circle at 74% 24%, rgba(255, 181, 84, 0.18), transparent 40%),
    radial-gradient(circle at 54% 76%, rgba(255, 215, 130, 0.12), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 58%),
    linear-gradient(135deg, rgba(255, 214, 120, 0.08), rgba(10, 12, 16, 0.2) 52%, rgba(255, 184, 61, 0.08));
  background-size: 180% 180%;
  background-position: 0% 52%;
  opacity: 0.8;
  filter: blur(8px) saturate(1.02) brightness(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 218, 128, 0.14),
    0 0 28px rgba(255, 204, 102, 0.08),
    0 0 52px rgba(255, 170, 66, 0.06);
  animation:
    leaderboard-pulse-gold 2.6s ease-in-out infinite,
    elite-aurora-flow 5.8s ease-in-out infinite alternate;
}

.leaderboard-entry.is-rank-1::after {
  inset: -34% -12%;
  border-radius: 36px;
  background:
    radial-gradient(circle at 16% 42%, rgba(255, 220, 132, 0.22), transparent 44%),
    radial-gradient(circle at 78% 26%, rgba(255, 177, 88, 0.18), transparent 40%),
    radial-gradient(circle at 56% 82%, rgba(255, 208, 116, 0.12), transparent 46%);
  background-size: 155% 155%;
  background-position: 36% 56%;
  opacity: 0.34;
  filter: blur(18px) saturate(1.08) brightness(1.04);
  mix-blend-mode: screen;
  animation:
    elite-aurora-breathe 3.4s ease-in-out infinite alternate,
    elite-aurora-float 4.8s ease-in-out infinite alternate;
}

.leaderboard-entry.is-rank-2::before {
  background:
    radial-gradient(circle at 14% 38%, rgba(239, 245, 251, 0.2), transparent 44%),
    radial-gradient(circle at 74% 24%, rgba(188, 198, 212, 0.16), transparent 40%),
    radial-gradient(circle at 54% 76%, rgba(219, 229, 239, 0.11), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 58%),
    linear-gradient(135deg, rgba(213, 223, 234, 0.07), rgba(10, 12, 16, 0.18) 52%, rgba(154, 168, 182, 0.07));
  background-size: 180% 180%;
  background-position: 0% 52%;
  opacity: 0.78;
  filter: blur(8px) saturate(1.01) brightness(1.02);
  box-shadow:
    0 0 0 1px rgba(228, 236, 245, 0.12),
    0 0 24px rgba(196, 208, 220, 0.08),
    0 0 44px rgba(168, 180, 194, 0.05);
  animation:
    leaderboard-pulse-silver 2.8s ease-in-out infinite,
    elite-aurora-flow 6.4s ease-in-out infinite alternate;
}

.leaderboard-entry.is-rank-2::after {
  inset: -34% -12%;
  border-radius: 36px;
  background:
    radial-gradient(circle at 16% 42%, rgba(235, 241, 249, 0.18), transparent 44%),
    radial-gradient(circle at 78% 26%, rgba(186, 197, 210, 0.16), transparent 40%),
    radial-gradient(circle at 56% 82%, rgba(219, 229, 239, 0.1), transparent 46%);
  background-size: 155% 155%;
  background-position: 36% 56%;
  opacity: 0.3;
  filter: blur(18px) saturate(1.04) brightness(1.03);
  mix-blend-mode: screen;
  animation:
    elite-aurora-breathe 3.7s ease-in-out infinite alternate,
    elite-aurora-float 5.2s ease-in-out infinite alternate;
}

.leaderboard-entry.is-rank-3::before {
  background:
    radial-gradient(circle at 14% 38%, rgba(222, 168, 124, 0.2), transparent 44%),
    radial-gradient(circle at 74% 24%, rgba(176, 104, 68, 0.16), transparent 40%),
    radial-gradient(circle at 54% 76%, rgba(208, 150, 112, 0.11), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035), transparent 58%),
    linear-gradient(135deg, rgba(193, 126, 82, 0.08), rgba(10, 12, 16, 0.18) 52%, rgba(139, 78, 43, 0.08));
  background-size: 180% 180%;
  background-position: 0% 52%;
  opacity: 0.78;
  filter: blur(8px) saturate(1.02) brightness(1.02);
  box-shadow:
    0 0 0 1px rgba(211, 146, 103, 0.12),
    0 0 22px rgba(188, 121, 79, 0.08),
    0 0 40px rgba(138, 83, 50, 0.05);
  animation:
    leaderboard-pulse-bronze 3s ease-in-out infinite,
    elite-aurora-flow 6.8s ease-in-out infinite alternate;
}

.leaderboard-entry.is-rank-3::after {
  inset: -34% -12%;
  border-radius: 36px;
  background:
    radial-gradient(circle at 16% 42%, rgba(222, 168, 126, 0.18), transparent 44%),
    radial-gradient(circle at 78% 26%, rgba(171, 103, 66, 0.16), transparent 40%),
    radial-gradient(circle at 56% 82%, rgba(205, 146, 108, 0.1), transparent 46%);
  background-size: 155% 155%;
  background-position: 36% 56%;
  opacity: 0.3;
  filter: blur(18px) saturate(1.04) brightness(1.03);
  mix-blend-mode: screen;
  animation:
    elite-aurora-breathe 3.9s ease-in-out infinite alternate,
    elite-aurora-float 5.4s ease-in-out infinite alternate;
}

.leaderboard-entry.is-rank-1 > *,
.leaderboard-entry.is-rank-2 > *,
.leaderboard-entry.is-rank-3 > * {
  position: relative;
  z-index: 1;
}

.leaderboard-entry.is-rank-1 .leaderboard-rank-label {
  color: #ffe6a3;
  text-shadow: 0 0 18px rgba(255, 209, 94, 0.22);
}

.leaderboard-entry.is-rank-2 .leaderboard-rank-label {
  color: #eef4fb;
  text-shadow: 0 0 16px rgba(219, 229, 240, 0.18);
}

.leaderboard-entry.is-rank-3 .leaderboard-rank-label {
  color: #edc0a1;
  text-shadow: 0 0 16px rgba(212, 145, 100, 0.18);
}

.leaderboard-rank-block {
  display: grid;
  gap: 4px;
  align-content: center;
}

.leaderboard-rank-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.leaderboard-rank-copy {
  max-width: 10ch;
}

.leaderboard-player-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.leaderboard-player-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.leaderboard-player-heading h3 {
  margin: 0;
  min-width: 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.leaderboard-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaderboard-equivalent-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(124, 152, 188, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-equivalent-label {
  color: rgba(169, 181, 196, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leaderboard-equivalent-row strong {
  color: rgba(237, 242, 247, 0.92);
  font-size: 0.84rem;
  font-weight: 600;
}

.leaderboard-stat-pill {
  color: rgba(237, 242, 247, 0.88);
}

.leaderboard-role-chip {
  color: #0f1419;
  background: rgba(154, 194, 122, 0.92);
  border-color: rgba(154, 194, 122, 0.35);
}

.leaderboard-role-chip.role-forward {
  background: rgba(255, 194, 122, 0.95);
}

.leaderboard-role-chip.role-midfielder {
  background: rgba(154, 194, 122, 0.95);
}

.leaderboard-role-chip.role-defender {
  background: rgba(126, 178, 214, 0.95);
}

.leaderboard-role-chip.role-goalkeeper {
  background: rgba(200, 164, 238, 0.95);
}

.leaderboard-role-chip.role-utility {
  background: rgba(214, 214, 214, 0.92);
}

.leaderboard-score-block {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.leaderboard-score-block strong {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.92;
}

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

.leaderboard-detail-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.leaderboard-empty {
  display: grid;
  place-items: center;
  min-height: min(56vh, 560px);
  padding: 28px;
  text-align: center;
}

.leaderboard-empty .eyebrow {
  margin-bottom: 4px;
}

@keyframes leaderboard-pulse-gold {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.84;
  }
  50% {
    transform: scale(1.01);
    opacity: 1;
  }
}

@keyframes leaderboard-pulse-silver {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.008);
    opacity: 0.98;
  }
}

@keyframes leaderboard-pulse-bronze {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.007);
    opacity: 0.96;
  }
}

@keyframes leaderboard-pulse-count {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes leaderboard-count-drift {
  0% {
    transform: translate3d(-2px, 0, 0);
  }
  50% {
    transform: translate3d(1px, -1px, 0);
  }
  100% {
    transform: translate3d(3px, 0, 0);
  }
}

@keyframes leaderboard-count-text-glow {
  0%,
  100% {
    text-shadow:
      0 0 8px rgba(154, 194, 122, 0.16),
      0 0 18px rgba(154, 194, 122, 0.1);
  }
  50% {
    text-shadow:
      0 0 10px rgba(186, 232, 140, 0.22),
      0 0 22px rgba(154, 194, 122, 0.16),
      0 0 34px rgba(122, 186, 94, 0.1);
  }
}

.home-hero-shell {
  --hero-pointer-x: 0;
  --hero-pointer-y: 0;
  position: relative;
  margin-top: 8px;
  padding: clamp(18px, 3.2vw, 30px);
  overflow: hidden;
  border: 1px solid var(--home-panel-border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(20, 25, 35, 0.8), rgba(14, 17, 28, 0.74));
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}

.home-hero-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.home-hero-shell::after {
  left: 50%;
  right: auto;
  top: auto;
  bottom: -280px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 60%, rgba(154, 194, 122, 0.12) 0%, rgba(154, 194, 122, 0.055) 32%, rgba(154, 194, 122, 0.018) 58%, transparent 82%),
    radial-gradient(ellipse at 50% 94%, rgba(188, 224, 160, 0.06) 0%, transparent 70%);
  filter: blur(23px);
  transform: translate3d(
    calc(-50% + var(--hero-pointer-x) * 9px),
    calc(var(--hero-pointer-y) * 8px),
    0
  );
}

.home-hero-center {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: center;
}

.home-display-title {
  display: grid;
  gap: 2px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.45rem, 5.8vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.home-display-title span {
  display: block;
}

.home-display-title em {
  color: var(--home-green);
  font-style: normal;
  text-shadow: 0 0 30px rgba(154, 194, 122, 0.12);
}

.home-display-lede {
  width: min(560px, 100%);
  margin: 0 auto;
  color: #aeb8c7;
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  line-height: 1.45;
}

.home-search-panel {
  width: min(640px, 100%);
  margin: 2px auto 0;
  gap: 10px;
}

.home-mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
}

.home-mode-option {
  position: relative;
}

.home-mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.home-mode-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: #96a2b1;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.home-mode-option input:checked + span {
  background: linear-gradient(180deg, rgba(25, 31, 43, 0.98), rgba(19, 25, 37, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.home-query-shell {
  display: grid;
  gap: 12px;
}

.home-query-input-shell {
  position: relative;
  display: block;
}

.home-query-input-shell input {
  min-height: 58px;
  padding: 0 62px 0 22px;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(30, 37, 50, 0.94);
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-query-input-shell input::placeholder {
  color: #a0acba;
}

.home-query-input-shell input:focus,
.home-platform-select select:focus {
  border-color: rgba(32, 226, 125, 0.42);
  box-shadow: 0 0 0 3px rgba(32, 226, 125, 0.08);
}

.home-search-input-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #a9b5c4;
  transform: translateY(-50%);
}

.home-search-input-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-search-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.home-platform-select {
  display: block;
}

.home-platform-select select {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(30, 37, 50, 0.94);
  font-weight: 600;
  color: var(--text);
}

.home-search-actions .button {
  min-height: 50px;
  min-width: 136px;
  padding: 0 24px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #5c6778, #4f5969);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  box-shadow: 0 14px 24px rgba(5, 8, 14, 0.22);
}

.home-search-actions .button:hover {
  background: linear-gradient(180deg, #687486, #576273);
}

.home-search-helper {
  width: min(620px, 100%);
  margin: 0 auto;
  color: #97a4b3;
  font-size: 0.9rem;
  line-height: 1.55;
}

.home-search-helper code {
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
}

.home-top-clubs-shell {
  width: min(620px, 100%);
  margin: 2px auto 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.home-top-clubs-toggle {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border-color: rgba(150, 191, 117, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe7d3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.home-top-clubs-toggle:hover {
  border-color: rgba(150, 191, 117, 0.4);
  background: rgba(150, 191, 117, 0.1);
  color: #f4faf0;
}

.home-top-clubs-menu {
  display: grid;
  width: min(760px, 100%);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 360ms ease,
    transform 360ms ease;
}

.home-top-clubs-menu[hidden] {
  display: none;
}

.home-top-clubs-menu.is-open {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
}

.home-top-clubs-menu.is-closing {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
}

.home-top-clubs-menu-head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.home-top-clubs-menu-head strong,
.home-top-clubs-menu-head span {
  color: #f3f7fb;
}

.home-top-clubs-menu-head strong {
  display: block;
  font-size: 0.96rem;
}

.home-top-clubs-menu-head small,
.home-top-clubs-menu-head span {
  color: #8694a4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-top-clubs-status {
  margin: 0;
  color: #90a0b3;
  font-size: 0.88rem;
  text-align: center;
}

.home-top-clubs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.home-top-clubs-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.home-top-clubs-row:hover {
  border-color: rgba(150, 191, 117, 0.24);
  background: rgba(150, 191, 117, 0.08);
  transform: translateY(-1px);
}

.home-top-clubs-menu.is-open .home-top-clubs-row {
  animation: homeTopClubFadeIn 460ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--top-club-index, 0) * 34ms);
}

.home-top-clubs-menu.is-closing .home-top-clubs-row {
  animation: homeTopClubFadeOut 320ms ease forwards;
}

.home-top-clubs-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.02);
}

.home-top-clubs-copy {
  min-width: 0;
  max-width: 190px;
}

.home-top-clubs-copy strong {
  display: block;
  color: #f6f8fb;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-top-clubs-skill {
  text-align: right;
  padding-left: 8px;
}

.home-top-clubs-skill strong {
  color: #cfa34b;
  font-size: 0.86rem;
  font-weight: 700;
}

@keyframes homeTopClubFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeTopClubFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-top-clubs-menu,
  .home-top-clubs-row,
  .home-top-clubs-menu.is-open .home-top-clubs-row,
  .home-top-clubs-menu.is-closing .home-top-clubs-row {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    max-height: none;
    transform: none;
  }
}

.favorite-card-tag {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.home-section-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.home-results-shell,
.home-favorites-shell {
  padding: 20px;
  border: 1px solid var(--home-panel-border);
  border-radius: 24px;
  background: var(--home-shell);
  box-shadow: var(--shadow);
}

.home-section-head {
  align-items: start;
}

.home-section-head .eyebrow {
  margin-bottom: 4px;
}

.home-results-shell .search-results-list {
  gap: 12px;
}

.page-home .search-result-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 1fr) auto;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(21, 27, 34, 0.98), rgba(14, 19, 25, 0.98));
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.page-home .search-result-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
}

.page-home .search-result-main {
  gap: 14px;
}

.page-home .search-result-main strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.page-home .search-result-main small {
  display: block;
  font-size: 0.82rem;
}

.page-home .club-token-image {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  padding: 6px;
}

.page-home .search-result-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.page-home .search-result-stats > div {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.page-home .search-result-stats span {
  font-size: 0.62rem;
}

.page-home .search-result-stats strong {
  font-size: 1.02rem;
}

.page-home .search-result-actions {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}

.page-home .search-result-actions .button {
  min-width: 118px;
}

.page-home .search-result-actions .favorite-heart-button {
  min-width: 40px;
  width: 40px;
}

.page-home .favorite-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(32, 226, 125, 0.12), transparent 32%),
    linear-gradient(170deg, rgba(18, 24, 31, 0.98), rgba(12, 17, 24, 0.98));
}

.page-home .home-favorites-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-home .home-favorites-grid .search-result-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
}

.page-home .home-favorites-grid .search-result-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.page-home .home-favorites-grid .search-result-stats > div {
  padding: 8px 10px;
  border-radius: 12px;
}

.page-home .home-favorites-grid .search-result-stats span {
  font-size: 0.62rem;
}

.page-home .home-favorites-grid .search-result-stats strong {
  font-size: 1.02rem;
}

.favorite-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.favorite-card-crest {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: transparent;
  padding: 4px;
}

.favorite-card-copy {
  display: grid;
  gap: 4px;
}

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

.favorite-card-copy p,
.favorite-card-copy small {
  color: var(--muted);
}

.favorite-card-copy small {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.favorite-card-record {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.favorite-card-record strong {
  color: var(--text);
}

.page-home .favorite-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 148px;
}

.page-home .favorite-actions .button {
  width: 100%;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-pill {
  position: relative;
}

.platform-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.platform-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.84rem;
  cursor: pointer;
}

.platform-pill input:checked + span {
  border-color: rgba(154, 194, 122, 0.5);
  background: var(--accent-soft);
  color: var(--text);
}

.search-row,
.inline-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-row.search-row-with-mode {
  grid-template-columns: 160px minmax(0, 1fr) auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--surface-2);
  color: var(--text);
}

input::placeholder {
  color: #798490;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(154, 194, 122, 0.55);
  box-shadow: 0 0 0 3px rgba(154, 194, 122, 0.08);
}

textarea {
  resize: vertical;
  min-height: 144px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.button-primary {
  background: #eef2f6;
  color: #0c0f13;
}

.button-discord {
  background: #7289da;
  border-color: #7289da;
  color: #ffffff;
}

.button-discord:hover {
  background: #6479c3;
  border-color: #6479c3;
  color: #ffffff;
}

.button-secondary {
  background: var(--surface-3);
  border-color: var(--line);
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
}

.button-ghost.is-active {
  background: var(--accent-soft);
  border-color: rgba(154, 194, 122, 0.5);
}

.favorite-heart-button {
  min-height: 40px;
  min-width: 40px;
  width: 40px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite-heart-button .favorite-heart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1;
}

.favorite-heart-button .favorite-heart-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: transparent;
  stroke: #b8c2d0;
  stroke-width: 1.7;
}

.favorite-heart-button.is-active .favorite-heart-icon svg,
.favorite-heart-button[data-favorite-state="on"] .favorite-heart-icon svg {
  fill: #e25766;
  stroke: #e25766;
}

.favorite-heart-button.is-active,
.favorite-heart-button[data-favorite-state="on"] {
  background: rgba(226, 87, 102, 0.18);
  border-color: rgba(226, 87, 102, 0.5);
}

.favorite-heart-button.is-pending {
  opacity: 0.65;
}

.button-small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.button-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.favorites-grid.compact {
  margin-top: 4px;
}

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

.favorite-actions,
.banner-actions,
.search-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.search-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

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

.club-token,
.club-token-image {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.club-token {
  display: grid;
  place-items: center;
  background: var(--surface-3);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.club-token-image {
  object-fit: contain;
  background: transparent;
  padding: 4px;
}

.search-result-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.search-result-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.search-result-stats strong {
  display: block;
  margin-top: 4px;
  font-family: "Space Grotesk", sans-serif;
}

.club-banner,
.match-banner {
  display: grid;
  gap: 10px;
  padding: 12px;
  margin-top: 6px;
}

.club-banner-row,
.match-banner {
  align-items: center;
}

.club-banner-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.club-crest-lockup {
  display: grid;
  align-items: center;
}

.club-badge-image {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  object-fit: contain;
  padding: 6px;
}

.club-badge-image.compact {
  width: 70px;
  height: 70px;
}

.headline-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.club-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.player-pos-pill {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.player-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.player-badge-row .badge-tooltip-trigger {
  max-width: 100%;
}

.club-pill-row .badge-tooltip-trigger {
  max-width: 100%;
}

.player-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(18, 28, 43, 0.96), rgba(28, 39, 57, 0.92)),
    rgba(22, 31, 45, 0.92);
  color: #eef4fb;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(6, 10, 16, 0.7),
    0 0 10px rgba(6, 10, 16, 0.28);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
}

.player-pill::before,
.player-pill::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.player-pill::before {
  inset: -55% -16%;
  z-index: -2;
  border-radius: inherit;
  filter: blur(10px) saturate(1.14);
  opacity: 0.88;
}

.player-pill::after {
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0.5;
}

.player-pill-playmaker {
  border-color: rgba(126, 195, 255, 0.55);
  background: linear-gradient(145deg, rgba(11, 35, 61, 0.97), rgba(18, 54, 88, 0.94));
  color: #cdeaff;
  box-shadow:
    0 10px 22px rgba(71, 156, 255, 0.14),
    inset 0 1px 0 rgba(217, 242, 255, 0.18);
}

.player-pill-playmaker::before {
  inset: -12% -2%;
  filter: blur(0.6px) saturate(1.18);
  opacity: 0.96;
  background:
    radial-gradient(circle at 18% 50%, rgba(137, 222, 255, 0.34), transparent 18%),
    radial-gradient(circle at 82% 50%, rgba(102, 181, 255, 0.28), transparent 18%),
    repeating-linear-gradient(
      90deg,
      rgba(156, 225, 255, 0) 0 18px,
      rgba(156, 225, 255, 0.26) 18px 20px,
      rgba(20, 61, 94, 0) 20px 46px
    );
  background-size: auto, auto, 140% 100%;
  animation: player-playmaker-lanes 5.2s linear infinite;
}

.player-pill-playmaker::after {
  inset: 0;
  filter: none;
  opacity: 0.72;
  background: linear-gradient(105deg, transparent 0%, rgba(228, 248, 255, 0) 36%, rgba(228, 248, 255, 0.32) 50%, transparent 64%);
  animation: player-playmaker-thread 2.8s ease-in-out infinite;
}

.player-pill-motm-magnet {
  border-color: rgba(255, 191, 114, 0.52);
  background: linear-gradient(145deg, rgba(62, 38, 10, 0.97), rgba(93, 55, 16, 0.94));
  color: #ffe4bd;
  box-shadow:
    0 10px 24px rgba(255, 182, 75, 0.16),
    inset 0 1px 0 rgba(255, 244, 222, 0.2);
}

.player-pill-motm-magnet::before {
  inset: -52% -12%;
  filter: blur(10px) saturate(1.18);
  opacity: 0.96;
  background:
    radial-gradient(circle at 50% -6%, rgba(255, 246, 214, 0.6), transparent 34%),
    radial-gradient(circle at 28% 40%, rgba(255, 215, 146, 0.26), transparent 24%),
    radial-gradient(circle at 72% 40%, rgba(255, 186, 101, 0.22), transparent 24%);
  animation: player-magnet-spotlight 3.6s ease-in-out infinite;
}

.player-pill-motm-magnet::after {
  inset: -10% -6%;
  filter: none;
  opacity: 0.82;
  background:
    radial-gradient(circle at 24% 34%, rgba(255, 246, 223, 0.9), transparent 4%),
    radial-gradient(circle at 76% 36%, rgba(255, 236, 196, 0.84), transparent 4%),
    radial-gradient(circle at 56% 64%, rgba(255, 204, 128, 0.54), transparent 6%);
  animation: player-magnet-stars 2.8s steps(1, end) infinite;
}

.player-pill-clinical {
  border-color: rgba(255, 143, 143, 0.52);
  background: linear-gradient(145deg, rgba(69, 17, 20, 0.97), rgba(102, 23, 28, 0.94));
  color: #ffd7d7;
  box-shadow:
    0 10px 22px rgba(255, 92, 92, 0.14),
    inset 0 1px 0 rgba(255, 227, 227, 0.16);
}

.player-pill-clinical::before {
  inset: -2% -24%;
  filter: none;
  opacity: 0.98;
  background:
    linear-gradient(126deg, rgba(255, 255, 255, 0) 38%, rgba(255, 217, 217, 0.86) 49%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(126deg, rgba(255, 255, 255, 0) 56%, rgba(255, 140, 140, 0.62) 64%, rgba(255, 255, 255, 0) 70%);
  animation: player-clinical-cut 2.45s cubic-bezier(0.45, 0, 0.18, 1) infinite;
}

.player-pill-clinical::after {
  inset: -8% -4%;
  filter: blur(2px);
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 93, 93, 0.56), transparent 24%);
  animation: player-clinical-flash 2.45s ease-in-out infinite;
}

.player-pill-ball-winner {
  border-color: rgba(126, 238, 196, 0.52);
  background: linear-gradient(145deg, rgba(11, 48, 43, 0.97), rgba(17, 69, 62, 0.94));
  color: #d0fff0;
  box-shadow:
    0 10px 22px rgba(82, 223, 177, 0.14),
    inset 0 1px 0 rgba(226, 255, 246, 0.18);
}

.player-pill-ball-winner::before {
  inset: -6% -2%;
  filter: blur(1.2px) saturate(1.1);
  opacity: 0.96;
  background:
    linear-gradient(90deg, rgba(150, 255, 221, 0) 0%, rgba(150, 255, 221, 0.38) 13%, rgba(150, 255, 221, 0) 24%),
    linear-gradient(270deg, rgba(105, 233, 190, 0) 0%, rgba(105, 233, 190, 0.34) 13%, rgba(105, 233, 190, 0) 24%),
    radial-gradient(circle at 50% 50%, rgba(126, 240, 205, 0.16), transparent 32%);
  animation: player-ballwinner-clamp 3.2s ease-in-out infinite;
}

.player-pill-ball-winner::after {
  inset: -18% -8%;
  filter: blur(4px);
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(169, 255, 228, 0.44), transparent 28%);
  animation: player-ballwinner-impact 3.2s ease-out infinite;
}

.player-pill-ironman {
  border-color: rgba(183, 196, 216, 0.46);
  background: linear-gradient(145deg, rgba(35, 42, 55, 0.97), rgba(50, 60, 77, 0.94));
  color: #e4ecf8;
  box-shadow:
    0 10px 22px rgba(166, 186, 212, 0.12),
    inset 0 1px 0 rgba(242, 248, 255, 0.14);
}

.player-pill-ironman::before {
  inset: -4% -24%;
  filter: none;
  opacity: 0.86;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(231, 241, 255, 0) 0 10px,
      rgba(231, 241, 255, 0.16) 10px 14px,
      rgba(49, 61, 79, 0) 14px 28px
    );
  animation: player-ironman-tread 5.4s linear infinite;
}

.player-pill-ironman::after {
  inset: 0;
  filter: blur(1px);
  opacity: 0.4;
  background: linear-gradient(100deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  animation: player-ironman-scan 4.8s ease-in-out infinite;
}

.player-pill-hot-form {
  border-color: rgba(255, 148, 184, 0.54);
  background: linear-gradient(145deg, rgba(82, 22, 50, 0.97), rgba(116, 30, 67, 0.94));
  color: #ffd9e8;
  box-shadow:
    0 10px 22px rgba(255, 103, 160, 0.16),
    inset 0 1px 0 rgba(255, 230, 240, 0.18);
}

.player-pill-hot-form::before {
  inset: -32% -10% -8%;
  filter: blur(12px) saturate(1.24);
  opacity: 0.98;
  background:
    radial-gradient(circle at 24% 112%, rgba(255, 188, 218, 0.38), transparent 26%),
    radial-gradient(circle at 50% 124%, rgba(255, 132, 186, 0.36), transparent 30%),
    radial-gradient(circle at 76% 112%, rgba(255, 160, 202, 0.3), transparent 24%);
  animation: player-hotform-rise 2.9s ease-in-out infinite;
}

.player-pill-hot-form::after {
  inset: -12% 0 0;
  filter: none;
  opacity: 0.7;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 226, 239, 0) 56%, rgba(255, 226, 239, 0.18) 74%, transparent 100%);
  animation: player-hotform-flicker 1.85s steps(1, end) infinite;
}

.player-pill-metronome {
  border-color: rgba(182, 171, 255, 0.52);
  background: linear-gradient(145deg, rgba(34, 24, 67, 0.97), rgba(53, 36, 95, 0.94));
  color: #e7ddff;
  box-shadow:
    0 10px 22px rgba(174, 144, 255, 0.14),
    inset 0 1px 0 rgba(240, 233, 255, 0.18);
}

.player-pill-metronome::before {
  inset: -4% 0;
  filter: none;
  opacity: 0.94;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(233, 223, 255, 0.04) 0 7px,
      rgba(233, 223, 255, 0.26) 7px 10px,
      rgba(50, 36, 87, 0) 10px 22px
    );
  animation: player-metronome-bars 1.6s steps(8, end) infinite;
}

.player-pill-metronome::after {
  inset: 0;
  filter: none;
  opacity: 0.86;
  background: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(223, 210, 255, 0.66) 49%, transparent 56%, transparent 100%);
  animation: player-metronome-tick 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.player-pill-on-radar {
  border-color: rgba(154, 194, 122, 0.5);
  background: linear-gradient(145deg, rgba(18, 37, 26, 0.97), rgba(24, 58, 34, 0.94));
  color: #e3f6d3;
  box-shadow:
    0 10px 20px rgba(147, 206, 94, 0.12),
    inset 0 1px 0 rgba(236, 255, 221, 0.16);
}

.player-pill-on-radar::before {
  inset: -38% -28%;
  filter: none;
  opacity: 0.94;
  transform-origin: 16% 50%;
  background:
    conic-gradient(from 0deg at 16% 50%, rgba(195, 255, 148, 0.24), transparent 42%, transparent 100%);
  animation: player-radar-sweep 3.8s linear infinite;
}

.player-pill-on-radar::after {
  inset: -12% -8%;
  filter: blur(3px);
  opacity: 0.88;
  background:
    radial-gradient(circle at 16% 50%, rgba(214, 255, 184, 0.22), transparent 18%);
  animation: player-radar-ping 3.8s ease-out infinite;
}

.player-badge-row .player-pill {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

@keyframes player-playmaker-lanes {
  0% {
    background-position: 18% 50%, 82% 50%, 0 0;
  }
  100% {
    background-position: 18% 50%, 82% 50%, 46px 0;
  }
}

@keyframes player-playmaker-thread {
  0% {
    opacity: 0;
    transform: translate3d(-52%, 0, 0) skewX(-18deg);
  }
  24% {
    opacity: 0.82;
  }
  54% {
    opacity: 0.32;
    transform: translate3d(36%, 0, 0) skewX(-18deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(54%, 0, 0) skewX(-18deg);
  }
}

@keyframes player-magnet-spotlight {
  0% {
    opacity: 0.72;
    transform: translate3d(-10%, 0, 0) scale(0.96, 0.92);
  }
  50% {
    opacity: 0.94;
    transform: translate3d(0, 0, 0) scale(1.04, 1.08);
  }
  100% {
    opacity: 0.76;
    transform: translate3d(10%, 0, 0) scale(0.98, 0.95);
  }
}

@keyframes player-magnet-stars {
  0% {
    opacity: 0.16;
    transform: scale(0.92);
  }
  25% {
    opacity: 0.92;
    transform: scale(1.08);
  }
  45% {
    opacity: 0.24;
    transform: scale(0.96);
  }
  70% {
    opacity: 0.86;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.18;
    transform: scale(0.94);
  }
}

@keyframes player-clinical-cut {
  0% {
    opacity: 0;
    transform: translate3d(-30%, 0, 0);
  }
  18% {
    opacity: 0.96;
  }
  52% {
    opacity: 0.42;
    transform: translate3d(8%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(34%, 0, 0);
  }
}

@keyframes player-clinical-flash {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  28% {
    opacity: 0;
  }
  40% {
    opacity: 0.82;
    transform: scale(1);
  }
  58% {
    opacity: 0.16;
    transform: scale(1.24);
  }
  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

@keyframes player-ballwinner-clamp {
  0% {
    opacity: 0.54;
    transform: scaleX(1.12);
  }
  40% {
    opacity: 0.98;
    transform: scaleX(0.88);
  }
  100% {
    opacity: 0.58;
    transform: scaleX(1.08);
  }
}

@keyframes player-ballwinner-impact {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  34% {
    opacity: 0.76;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes player-ironman-tread {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 28px 0;
  }
}

@keyframes player-ironman-scan {
  0% {
    opacity: 0;
    transform: translate3d(-58%, 0, 0);
  }
  24% {
    opacity: 0.4;
  }
  56% {
    opacity: 0.2;
    transform: translate3d(24%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(58%, 0, 0);
  }
}

@keyframes player-hotform-rise {
  0% {
    opacity: 0.76;
    transform: translate3d(0, 10%, 0) scale(0.96);
  }
  50% {
    opacity: 1;
    transform: translate3d(0, -2%, 0) scale(1.04);
  }
  100% {
    opacity: 0.82;
    transform: translate3d(0, -10%, 0) scale(1.08);
  }
}

@keyframes player-hotform-flicker {
  0%,
  100% {
    opacity: 0.14;
  }
  25% {
    opacity: 0.54;
  }
  55% {
    opacity: 0.24;
  }
  75% {
    opacity: 0.66;
  }
}

@keyframes player-metronome-bars {
  0% {
    background-position: 0 0;
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: 22px 0;
    opacity: 0.72;
  }
}

@keyframes player-metronome-tick {
  0%,
  100% {
    opacity: 0.32;
    transform: translate3d(-26%, 0, 0);
  }
  50% {
    opacity: 0.9;
    transform: translate3d(26%, 0, 0);
  }
}

@keyframes player-radar-sweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes player-radar-ping {
  0% {
    opacity: 0.9;
    transform: scale(0.66);
  }
  70% {
    opacity: 0.18;
    transform: scale(1.24);
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}

@keyframes player-badge-sheen {
  0%,
  100% {
    transform: translate3d(-56%, 0, 0) skewX(-16deg);
    opacity: 0;
  }
  28% {
    opacity: 0.82;
  }
  52% {
    transform: translate3d(42%, 0, 0) skewX(-16deg);
    opacity: 0.26;
  }
}

@keyframes player-badge-drift {
  0% {
    transform: translate3d(-8%, 0, 0);
    opacity: 0.28;
  }
  100% {
    transform: translate3d(8%, 0, 0);
    opacity: 0.54;
  }
}

.badge-tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  z-index: 1;
}

.badge-tooltip-trigger:focus-visible {
  outline: none;
}

.badge-tooltip-trigger:hover,
.badge-tooltip-trigger:focus,
.badge-tooltip-trigger:focus-visible,
.badge-tooltip-trigger:focus-within,
.banner-stat-help:hover,
.banner-stat-help:focus,
.banner-stat-help:focus-visible,
.banner-stat-help:focus-within,
.profile-card-tooltip-trigger:hover,
.profile-card-tooltip-trigger:focus,
.profile-card-tooltip-trigger:focus-visible,
.profile-card-tooltip-trigger:focus-within,
.lineup-motm-help:hover,
.lineup-motm-help:focus,
.lineup-motm-help:focus-visible,
.lineup-motm-help:focus-within,
.table-head-help:hover,
.table-head-help:focus,
.table-head-help:focus-visible,
.table-head-help:focus-within {
  z-index: 180;
}

.club-banner-copy h1,
.match-banner-head h1 {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.02;
}

.micro-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(154, 194, 122, 0.45);
  background: var(--accent-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow:
    0 1px 0 rgba(6, 10, 16, 0.72),
    0 0 10px rgba(6, 10, 16, 0.3);
}

.micro-pill-marathon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(151, 236, 223, 0.44);
  background: linear-gradient(145deg, rgba(8, 16, 18, 0.98), rgba(18, 31, 35, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(225, 255, 249, 0.14),
    0 10px 24px rgba(88, 217, 194, 0.1);
  color: #e8fffb;
  text-shadow:
    0 0 8px rgba(139, 241, 222, 0.14),
    0 0 12px rgba(99, 214, 190, 0.09);
}

.micro-pill-marathon::before {
  content: "";
  position: absolute;
  inset: -44% -18%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 32%, rgba(158, 243, 229, 0.24), transparent 24%),
    radial-gradient(circle at 78% 70%, rgba(105, 214, 196, 0.18), transparent 24%),
    repeating-linear-gradient(
      108deg,
      rgba(130, 239, 221, 0) 0 14px,
      rgba(130, 239, 221, 0.22) 14px 20px,
      rgba(12, 39, 42, 0) 20px 34px
    );
  background-size: 160% 160%, 140% 140%, 46px 46px;
  background-position: 0% 48%, 100% 54%, 0 0;
  filter: blur(2px) saturate(1.14);
  opacity: 0.88;
  transform: translate3d(0, 0, 0) scale(1.08);
  animation: marathon-lane-run 7.2s linear infinite;
}

.micro-pill-marathon::after {
  content: "";
  position: absolute;
  inset: -16px -12px;
  z-index: -2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 42%, rgba(168, 245, 231, 0.24), transparent 32%),
    radial-gradient(circle at 84% 28%, rgba(94, 214, 188, 0.22), transparent 30%),
    radial-gradient(circle at 52% 108%, rgba(191, 255, 242, 0.14), transparent 46%);
  filter: blur(16px);
  opacity: 0.46;
  animation: marathon-breathe 4.4s ease-in-out infinite alternate;
}

.micro-pill-gold {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 226, 148, 0.58);
  background: linear-gradient(145deg, rgba(48, 34, 10, 0.96), rgba(83, 57, 14, 0.9));
  box-shadow:
    0 0 12px rgba(255, 210, 103, 0.13),
    0 0 20px rgba(255, 239, 151, 0.08),
    inset 0 1px 0 rgba(255, 246, 206, 0.2);
  color: #ffefb8;
  text-shadow:
    0 0 6px rgba(255, 232, 160, 0.24),
    0 0 10px rgba(255, 206, 104, 0.14);
}

.micro-pill-gold::before {
  content: "";
  position: absolute;
  inset: -56% -22%;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(
      108deg,
      rgba(255, 220, 126, 0) 8%,
      rgba(255, 220, 126, 0.26) 22%,
      rgba(255, 201, 84, 0.5) 40%,
      rgba(255, 237, 154, 0.44) 58%,
      rgba(255, 173, 70, 0.3) 76%,
      rgba(255, 220, 126, 0) 100%
    );
  opacity: 0.74;
  filter: blur(9px) saturate(1.2);
  transform: translate3d(-8%, 7%, 0) rotate(-8deg) scale(1.12);
  animation: gold-aurora-drift 7.4s ease-in-out infinite alternate;
}

.micro-pill-gold::after {
  content: "";
  position: absolute;
  inset: -16px -12px;
  z-index: -2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 34%, rgba(255, 248, 220, 0.3) 0 8%, transparent 10%),
    radial-gradient(circle at 72% 24%, rgba(255, 239, 184, 0.24) 0 7%, transparent 9%),
    radial-gradient(circle at 48% 108%, rgba(255, 173, 70, 0.22), transparent 56%),
    radial-gradient(circle at 16% 34%, rgba(255, 220, 126, 0.34), transparent 48%),
    radial-gradient(circle at 52% 18%, rgba(255, 201, 84, 0.32), transparent 44%),
    radial-gradient(circle at 84% 32%, rgba(255, 237, 154, 0.28), transparent 46%);
  filter: blur(16px);
  opacity: 0.54;
  transform: scale(1);
  animation:
    gold-aurora-breathe 4s ease-in-out infinite alternate,
    gold-crown-spark 5.6s ease-in-out infinite;
}

.micro-pill-ruthless {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(248, 214, 152, 0.4);
  background: linear-gradient(145deg, rgba(6, 6, 8, 0.99), rgba(24, 18, 13, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 209, 0.12),
    0 12px 28px rgba(255, 154, 73, 0.08);
  color: #fff4dc;
  text-shadow:
    0 1px 0 rgba(61, 40, 18, 0.78),
    0 0 10px rgba(255, 218, 156, 0.12);
}

.micro-pill-ruthless::before {
  content: "";
  position: absolute;
  inset: -58% -22%;
  z-index: -2;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 34%, rgba(255, 228, 184, 0.18), transparent 24%),
    radial-gradient(circle at 76% 28%, rgba(245, 172, 90, 0.16), transparent 22%),
    repeating-linear-gradient(
      124deg,
      rgba(255, 232, 198, 0) 0 13px,
      rgba(255, 232, 198, 0.08) 13px 15px,
      rgba(79, 57, 34, 0.18) 15px 29px
    ),
    linear-gradient(
      108deg,
      rgba(255, 224, 172, 0) 0%,
      rgba(255, 224, 172, 0.18) 16%,
      rgba(197, 143, 74, 0.34) 34%,
      rgba(32, 24, 17, 0.12) 52%,
      rgba(227, 177, 98, 0.3) 72%,
      rgba(255, 238, 202, 0.14) 86%,
      rgba(255, 224, 172, 0) 100%
    );
  background-size: 160% 160%, 140% 140%, 40px 40px, 220% 220%;
  background-position: 10% 42%, 82% 62%, 0 0, 0% 50%;
  filter: blur(3px) saturate(1.2) contrast(1.06);
  opacity: 0.94;
  transform: translate3d(0, 0, 0) scale(1.12);
  animation: trophy-foil-shift 7.8s ease-in-out infinite alternate;
}

.micro-pill-ruthless::after {
  content: "";
  position: absolute;
  inset: -22% -44%;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(
      112deg,
      rgba(255, 246, 223, 0) 34%,
      rgba(255, 246, 223, 0.06) 42%,
      rgba(255, 244, 219, 0.62) 49%,
      rgba(255, 188, 94, 0.3) 53%,
      rgba(255, 246, 223, 0.08) 58%,
      rgba(255, 246, 223, 0) 66%
    );
  filter: blur(2px) brightness(1.04);
  opacity: 0.82;
  transform: translate3d(-58%, 0, 0) skewX(-18deg);
  mix-blend-mode: screen;
  animation: trophy-glint 6.8s cubic-bezier(0.35, 0.01, 0.15, 1) infinite;
}

.micro-pill-competitive {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(140, 202, 255, 0.58);
  background: linear-gradient(145deg, rgba(8, 25, 48, 0.96), rgba(10, 44, 83, 0.9));
  box-shadow:
    0 0 12px rgba(88, 168, 255, 0.13),
    0 0 20px rgba(118, 197, 255, 0.08),
    inset 0 1px 0 rgba(219, 241, 255, 0.18);
  color: #dff3ff;
  text-shadow:
    0 0 6px rgba(167, 225, 255, 0.18),
    0 0 10px rgba(88, 168, 255, 0.12);
}

.micro-pill-competitive::before {
  content: "";
  position: absolute;
  inset: -56% -22%;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(
      108deg,
      rgba(122, 194, 255, 0) 8%,
      rgba(122, 194, 255, 0.24) 22%,
      rgba(82, 164, 255, 0.5) 40%,
      rgba(164, 223, 255, 0.44) 58%,
      rgba(62, 138, 241, 0.3) 76%,
      rgba(122, 194, 255, 0) 100%
    );
  opacity: 0.74;
  filter: blur(9px) saturate(1.16);
  transform: translate3d(-8%, 7%, 0) rotate(-8deg) scale(1.12);
  animation: gold-aurora-drift 7.4s ease-in-out infinite alternate;
}

.micro-pill-competitive::after {
  content: "";
  position: absolute;
  inset: -14px -18px;
  z-index: -2;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      112deg,
      rgba(188, 232, 255, 0) 0 14px,
      rgba(188, 232, 255, 0.08) 14px 17px,
      rgba(96, 182, 255, 0.28) 17px 19px,
      rgba(188, 232, 255, 0) 19px 34px
    ),
    radial-gradient(circle at 16% 34%, rgba(122, 194, 255, 0.34), transparent 48%),
    radial-gradient(circle at 52% 18%, rgba(82, 164, 255, 0.32), transparent 44%),
    radial-gradient(circle at 84% 32%, rgba(164, 223, 255, 0.28), transparent 46%),
    radial-gradient(circle at 48% 112%, rgba(62, 138, 241, 0.22), transparent 56%);
  background-size: 34px 34px, auto, auto, auto, auto;
  filter: blur(12px);
  opacity: 0.6;
  transform: scale(1);
  animation:
    competitive-core-breathe 4.8s ease-in-out infinite alternate,
    competitive-scan-sweep 2.8s linear infinite;
}

.micro-pill-streak {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(154, 255, 188, 0.52);
  background: linear-gradient(145deg, rgba(8, 21, 14, 0.95), rgba(12, 34, 21, 0.9));
  box-shadow:
    0 0 12px rgba(108, 255, 168, 0.13),
    0 0 20px rgba(74, 235, 124, 0.08),
    inset 0 1px 0 rgba(230, 255, 238, 0.12);
  color: #ebfff1;
  text-shadow:
    0 0 6px rgba(157, 255, 196, 0.18),
    0 0 10px rgba(105, 255, 170, 0.12);
}

.micro-pill-streak::before {
  content: "";
  position: absolute;
  inset: -56% -22%;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(
      106deg,
      rgba(110, 255, 177, 0) 8%,
      rgba(110, 255, 177, 0.3) 24%,
      rgba(126, 255, 149, 0.54) 42%,
      rgba(78, 231, 121, 0.42) 58%,
      rgba(181, 255, 171, 0.22) 78%,
      rgba(110, 255, 177, 0) 100%
    );
  opacity: 0.74;
  filter: blur(9px) saturate(1.26);
  transform: translate3d(-8%, 7%, 0) rotate(-8deg) scale(1.12);
  animation: streak-aurora-drift 7.8s ease-in-out infinite alternate;
}

.micro-pill-streak::after {
  content: "";
  position: absolute;
  inset: -16px -12px;
  z-index: -2;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(181, 255, 171, 0) 0 10px,
      rgba(126, 255, 149, 0.16) 10px 14px,
      rgba(78, 231, 121, 0.34) 14px 18px,
      rgba(181, 255, 171, 0) 18px 30px
    ),
    radial-gradient(circle at 14% 36%, rgba(110, 255, 177, 0.36), transparent 50%),
    radial-gradient(circle at 52% 16%, rgba(126, 255, 149, 0.28), transparent 44%),
    radial-gradient(circle at 82% 30%, rgba(78, 231, 121, 0.3), transparent 48%);
  background-size: 100% 30px, auto, auto, auto;
  filter: blur(14px);
  opacity: 0.64;
  transform: scale(1);
  animation:
    streak-core-breathe 3.4s ease-in-out infinite alternate,
    streak-surge-rise 2.4s linear infinite;
}

.micro-pill-loss {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 140, 162, 0.54);
  background: linear-gradient(145deg, rgba(33, 10, 18, 0.96), rgba(58, 12, 24, 0.9));
  box-shadow:
    0 0 12px rgba(255, 104, 141, 0.14),
    0 0 20px rgba(255, 72, 126, 0.09),
    inset 0 1px 0 rgba(255, 225, 232, 0.1);
  color: #fff1f4;
  text-shadow:
    0 0 6px rgba(255, 171, 193, 0.16),
    0 0 10px rgba(255, 110, 146, 0.12);
}

.micro-pill-loss::before {
  content: "";
  position: absolute;
  inset: -56% -22%;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(
      106deg,
      rgba(255, 122, 154, 0) 8%,
      rgba(255, 122, 154, 0.24) 24%,
      rgba(255, 89, 126, 0.5) 42%,
      rgba(255, 68, 108, 0.4) 58%,
      rgba(255, 167, 188, 0.2) 78%,
      rgba(255, 122, 154, 0) 100%
    );
  opacity: 0.74;
  filter: blur(9px) saturate(1.24);
  transform: translate3d(-8%, 7%, 0) rotate(-8deg) scale(1.12);
  animation: loss-aurora-drift 7.8s ease-in-out infinite alternate;
}

.micro-pill-loss::after {
  content: "";
  position: absolute;
  inset: -16px -12px;
  z-index: -2;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14% 36%, rgba(255, 122, 154, 0.36), transparent 50%),
    radial-gradient(circle at 52% 16%, rgba(255, 89, 126, 0.32), transparent 44%),
    radial-gradient(circle at 82% 30%, rgba(255, 68, 108, 0.34), transparent 48%),
    radial-gradient(circle at 48% 112%, rgba(255, 167, 188, 0.22), transparent 56%);
  filter: blur(17px);
  opacity: 0.56;
  transform: scale(1);
  animation: loss-aurora-breathe 4.2s ease-in-out infinite alternate;
}

.micro-pill-elite {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(219, 244, 255, 0.6);
  background: linear-gradient(145deg, rgba(9, 13, 24, 0.95), rgba(20, 17, 34, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fbf9ff;
}

.micro-pill-elite::before {
  content: "";
  position: absolute;
  inset: -58% -24%;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(
      108deg,
      rgba(86, 255, 218, 0) 8%,
      rgba(106, 255, 198, 0.34) 18%,
      rgba(86, 255, 218, 0.38) 28%,
      rgba(117, 212, 255, 0.62) 40%,
      rgba(255, 130, 210, 0.5) 54%,
      rgba(179, 125, 255, 0.58) 66%,
      rgba(255, 166, 102, 0.36) 78%,
      rgba(255, 225, 150, 0.28) 88%,
      rgba(86, 255, 218, 0) 100%
    );
  background-size: 205% 205%;
  background-position: 0% 52%;
  opacity: 0.9;
  filter: blur(7px) saturate(1.82) brightness(1.08) contrast(1.06);
  transform: translate3d(-8%, 8%, 0) rotate(-9deg) scale(1.12);
  animation:
    elite-aurora-drift 4.8s ease-in-out infinite alternate,
    elite-aurora-flow 5.6s ease-in-out infinite alternate;
}

.micro-pill-elite::after {
  content: "";
  position: absolute;
  inset: -30% -12%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 34%, rgba(106, 255, 198, 0.46), transparent 42%),
    radial-gradient(circle at 28% 18%, rgba(86, 255, 218, 0.44), transparent 38%),
    radial-gradient(circle at 50% 18%, rgba(117, 212, 255, 0.46), transparent 40%),
    radial-gradient(circle at 78% 24%, rgba(255, 130, 210, 0.5), transparent 40%),
    radial-gradient(circle at 88% 44%, rgba(255, 166, 102, 0.4), transparent 38%),
    radial-gradient(circle at 52% 92%, rgba(179, 125, 255, 0.52), transparent 48%),
    radial-gradient(circle at 22% 88%, rgba(255, 225, 150, 0.28), transparent 36%);
  background-size: 155% 155%;
  background-position: 40% 52%;
  opacity: 0.46;
  filter: blur(11px) saturate(1.74) brightness(1.06);
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0) scale(1);
  animation:
    elite-aurora-breathe 3.6s ease-in-out infinite alternate,
    elite-aurora-float 4.8s ease-in-out infinite alternate;
}

.micro-pill-undefeated {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 146, 92, 0.36);
  background: linear-gradient(145deg, rgba(7, 4, 5, 0.98), rgba(30, 10, 8, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 190, 0.12),
    0 10px 24px rgba(255, 103, 54, 0.14);
  color: #fff4ee;
  text-shadow:
    0 0 8px rgba(255, 182, 146, 0.14),
    0 0 14px rgba(255, 112, 51, 0.1);
}

.micro-pill-undefeated::before {
  content: "";
  position: absolute;
  inset: -60% -24%;
  z-index: -1;
  border-radius: 999px;
    background:
      linear-gradient(
        108deg,
        rgba(255, 98, 56, 0) 8%,
        rgba(255, 98, 56, 0.26) 18%,
        rgba(255, 132, 66, 0.42) 30%,
        rgba(255, 168, 85, 0.58) 44%,
        rgba(168, 27, 20, 0.7) 58%,
        rgba(255, 116, 54, 0.5) 72%,
        rgba(255, 168, 85, 0.36) 86%,
        rgba(255, 168, 85, 0) 100%
      );
  background-size: 180% 180%;
  filter: blur(8px) saturate(1.8) brightness(1.02) contrast(1.06);
  transform: translate3d(-8%, 8%, 0) rotate(-8deg) scale(1.14);
  animation:
    elite-aurora-drift 4.8s ease-in-out infinite alternate,
    elite-aurora-flow 5.6s ease-in-out infinite alternate;
}

.micro-pill-undefeated::after {
  content: "";
  position: absolute;
  inset: -26% -10%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 34%, rgba(255, 128, 72, 0.36), transparent 40%),
    radial-gradient(circle at 28% 18%, rgba(255, 173, 90, 0.28), transparent 36%),
    radial-gradient(circle at 50% 18%, rgba(187, 33, 24, 0.34), transparent 38%),
    radial-gradient(circle at 78% 24%, rgba(255, 110, 52, 0.3), transparent 36%),
    radial-gradient(circle at 88% 44%, rgba(255, 149, 64, 0.24), transparent 34%),
    radial-gradient(circle at 52% 92%, rgba(109, 10, 8, 0.3), transparent 44%);
  filter: blur(11px) saturate(1.3);
  mix-blend-mode: screen;
  opacity: 0.56;
  transform: translate3d(0, 0, 0) scale(1);
  animation:
    undefeated-core-breathe 4.6s ease-in-out infinite alternate,
    undefeated-smolder 4.6s ease-in-out infinite;
}

@keyframes elite-aurora-drift {
  0% {
    transform: translate3d(-10%, 8%, 0) rotate(-10deg) scale(1.08);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(4%, -2%, 0) rotate(-4deg) scale(1.16);
    opacity: 1;
  }
  100% {
    transform: translate3d(10%, -10%, 0) rotate(7deg) scale(1.12);
    opacity: 0.8;
  }
}

@keyframes elite-aurora-breathe {
  0% {
    opacity: 0.32;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.06);
  }
}

@keyframes elite-aurora-flow {
  0% {
    background-position: 0% 52%;
  }
  50% {
    background-position: 56% 46%;
  }
  100% {
    background-position: 100% 54%;
  }
}

@keyframes elite-aurora-float {
  0% {
    background-position: 36% 56%;
  }
  50% {
    background-position: 50% 42%;
  }
  100% {
    background-position: 64% 56%;
  }
}

@keyframes streak-aurora-drift {
  0% {
    transform: translate3d(-10%, 8%, 0) rotate(-9deg) scale(1.08);
    opacity: 0.68;
  }
  50% {
    transform: translate3d(3%, -2%, 0) rotate(-3deg) scale(1.15);
    opacity: 0.98;
  }
  100% {
    transform: translate3d(10%, -8%, 0) rotate(6deg) scale(1.1);
    opacity: 0.76;
  }
}

@keyframes gold-aurora-drift {
  0% {
    transform: translate3d(-9%, 8%, 0) rotate(-8deg) scale(1.08);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(3%, -2%, 0) rotate(-3deg) scale(1.14);
    opacity: 0.96;
  }
  100% {
    transform: translate3d(9%, -8%, 0) rotate(6deg) scale(1.1);
    opacity: 0.78;
  }
}

@keyframes gold-aurora-breathe {
  0% {
    opacity: 0.58;
    transform: scale(1);
  }
  100% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

@keyframes gold-crown-breathe {
  0% {
    box-shadow:
      0 0 12px rgba(255, 210, 103, 0.13),
      0 0 20px rgba(255, 239, 151, 0.08),
      inset 0 1px 0 rgba(255, 246, 206, 0.2);
  }
  100% {
    box-shadow:
      0 0 15px rgba(255, 210, 103, 0.18),
      0 0 28px rgba(255, 239, 151, 0.12),
      inset 0 1px 0 rgba(255, 246, 206, 0.24);
  }
}

@keyframes gold-crown-spark {
  0%,
  100% {
    background-position: 18% 34%, 72% 24%, 48% 112%, 16% 34%, 52% 18%, 84% 32%;
    opacity: 0.46;
  }
  35% {
    background-position: 24% 28%, 64% 18%, 48% 112%, 18% 34%, 52% 18%, 84% 32%;
    opacity: 0.8;
  }
  62% {
    background-position: 70% 24%, 26% 26%, 48% 112%, 16% 34%, 52% 18%, 84% 32%;
    opacity: 0.54;
  }
}

@keyframes marathon-lane-run {
  0% {
    background-position: 18% 32%, 78% 70%, 0 0;
    transform: scale(1.08);
  }
  50% {
    background-position: 22% 28%, 74% 66%, 23px 0;
    transform: scale(1.12);
  }
  100% {
    background-position: 18% 32%, 78% 70%, 46px 0;
    transform: scale(1.08);
  }
}

@keyframes marathon-breathe {
  0% {
    opacity: 0.34;
    transform: scale(0.98);
  }
  100% {
    opacity: 0.62;
    transform: scale(1.08);
  }
}

@keyframes competitive-core-breathe {
  0% {
    box-shadow:
      0 0 12px rgba(88, 168, 255, 0.13),
      0 0 20px rgba(118, 197, 255, 0.08),
      inset 0 1px 0 rgba(219, 241, 255, 0.18);
  }
  100% {
    box-shadow:
      0 0 14px rgba(88, 168, 255, 0.16),
      0 0 30px rgba(118, 197, 255, 0.11),
      inset 0 1px 0 rgba(219, 241, 255, 0.22);
  }
}

@keyframes competitive-scan-sweep {
  0% {
    opacity: 0.48;
    background-position: 0 0, 16% 34%, 52% 18%, 84% 32%, 48% 112%;
  }
  100% {
    opacity: 0.62;
    background-position: 34px 0, 16% 34%, 52% 18%, 84% 32%, 48% 112%;
  }
}

@keyframes streak-aurora-breathe {
  0% {
    opacity: 0.58;
    transform: scale(1);
  }
  100% {
    opacity: 0.96;
    transform: scale(1.08);
  }
}

@keyframes streak-core-breathe {
  0% {
    box-shadow:
      0 0 12px rgba(108, 255, 168, 0.13),
      0 0 20px rgba(74, 235, 124, 0.08),
      inset 0 1px 0 rgba(230, 255, 238, 0.12);
  }
  100% {
    box-shadow:
      0 0 14px rgba(108, 255, 168, 0.17),
      0 0 28px rgba(74, 235, 124, 0.12),
      inset 0 1px 0 rgba(230, 255, 238, 0.18);
  }
}

@keyframes streak-surge-rise {
  0% {
    opacity: 0.52;
    transform: scale(1);
    filter: blur(14px) saturate(1.08);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.04);
    filter: blur(16px) saturate(1.24);
  }
}

@keyframes trophy-foil-shift {
  0% {
    background-position: 18% 34%, 76% 28%, 0 0, 0% 50%;
    transform: scale(1.12);
    opacity: 0.86;
  }
  50% {
    background-position: 22% 30%, 72% 24%, 20px 0, 56% 48%;
    transform: scale(1.14);
    opacity: 1;
  }
  100% {
    background-position: 18% 34%, 76% 28%, 40px 0, 112% 50%;
    transform: scale(1.12);
    opacity: 0.86;
  }
}

@keyframes trophy-glint {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(-62%, 0, 0) skewX(-18deg);
  }
  28% {
    opacity: 0.88;
    transform: translate3d(-18%, 0, 0) skewX(-18deg);
  }
  42% {
    opacity: 0.54;
    transform: translate3d(34%, 0, 0) skewX(-18deg);
  }
}

@keyframes undefeated-core-breathe {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 214, 190, 0.12),
      0 10px 24px rgba(255, 103, 54, 0.14);
  }
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 214, 190, 0.16),
      0 14px 30px rgba(255, 103, 54, 0.18);
  }
}

@keyframes undefeated-smolder {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(1);
    background-position: 12% 34%, 28% 18%, 50% 18%, 78% 24%, 88% 44%, 52% 92%;
    filter: blur(10px) saturate(1.18);
  }
  50% {
    opacity: 0.68;
    transform: scale(1.04);
    background-position: 18% 40%, 34% 14%, 56% 20%, 74% 30%, 84% 50%, 48% 88%;
    filter: blur(12px) saturate(1.36);
  }
}

@keyframes loss-aurora-drift {
  0% {
    transform: translate3d(-10%, 8%, 0) rotate(-9deg) scale(1.08);
    opacity: 0.68;
  }
  50% {
    transform: translate3d(3%, -2%, 0) rotate(-3deg) scale(1.15);
    opacity: 0.98;
  }
  100% {
    transform: translate3d(10%, -8%, 0) rotate(6deg) scale(1.1);
    opacity: 0.76;
  }
}

@keyframes loss-aurora-breathe {
  0% {
    opacity: 0.58;
    transform: scale(1);
  }
  100% {
    opacity: 0.96;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .micro-pill-marathon,
  .micro-pill-marathon::before,
  .micro-pill-marathon::after,
  .micro-pill-gold,
  .micro-pill-gold::before,
  .micro-pill-gold::after,
  .micro-pill-ruthless,
  .micro-pill-ruthless::before,
  .micro-pill-ruthless::after,
  .micro-pill-competitive,
  .micro-pill-competitive::before,
  .micro-pill-competitive::after,
  .micro-pill-elite,
  .micro-pill-elite::before,
  .micro-pill-elite::after,
  .micro-pill-undefeated,
  .micro-pill-undefeated::before,
  .micro-pill-undefeated::after,
  .micro-pill-loss,
  .micro-pill-loss::before,
  .micro-pill-loss::after,
  .micro-pill-streak,
  .lineup-motm-name,
  .lineup-motm-help .table-link.lineup-motm-name,
  .micro-pill-streak::before,
  .micro-pill-streak::after,
  .player-pill::before,
  .player-pill::after,
  .leaderboard-entry.is-rank-1::before,
  .leaderboard-entry.is-rank-2::before,
  .leaderboard-entry.is-rank-3::before {
    animation: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .headline-inline {
    align-items: flex-start;
    row-gap: 8px;
  }

  .headline-inline h1 {
    flex: 1 0 100%;
  }

  .player-pill-row .badge-tooltip-trigger,
  .club-pill-row .badge-tooltip-trigger,
  .headline-inline .badge-tooltip-trigger {
    max-width: 100%;
  }

  .player-pill-row .micro-pill,
  .club-pill-row .micro-pill,
  .player-pill-row .player-pill,
  .headline-inline .micro-pill {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }
}

.banner-stats,
.mini-metrics {
  display: grid;
  gap: 8px;
}

.banner-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mini-metrics.six-up {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 12px;
}

.banner-stat,
.mini-metric {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-4);
}

.banner-stat-help {
  position: relative;
  cursor: help;
}

.banner-stat-help:focus-visible {
  outline: none;
  border-color: rgba(154, 194, 122, 0.55);
  box-shadow: 0 0 0 3px rgba(154, 194, 122, 0.08);
}

.banner-stat-help > span:not(.stat-tooltip) {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.2em;
}

.stat-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 220;
  width: max-content;
  max-width: min(292px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(18, 22, 28, 0.99);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease;
  color: var(--text);
}

.stat-tooltip span,
.stat-tooltip small,
.stat-tooltip strong,
.stat-tooltip p {
  text-decoration: none;
}

.badge-tooltip {
  top: calc(100% + 12px);
  min-width: 280px;
  max-width: min(340px, calc(100vw - 32px));
  gap: 8px;
}

.badge-tooltip .stat-tooltip-copy {
  gap: 4px;
}

.badge-tooltip .stat-tooltip-copy strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.badge-tooltip .stat-tooltip-rows {
  gap: 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.badge-tooltip .stat-tooltip-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-tooltip .stat-tooltip-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.badge-tooltip .stat-tooltip-row span {
  font-size: 0.74rem;
  line-height: 1.35;
}

.badge-tooltip .stat-tooltip-row strong {
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: left;
  justify-self: start;
  overflow-wrap: anywhere;
}

.badge-tooltip .stat-tooltip-note {
  margin-top: 2px;
  line-height: 1.4;
}

.banner-stat-help:hover .stat-tooltip,
.banner-stat-help:focus .stat-tooltip,
.banner-stat-help:focus-visible .stat-tooltip,
.badge-tooltip-trigger:hover .stat-tooltip,
.badge-tooltip-trigger:focus .stat-tooltip,
.badge-tooltip-trigger:focus-visible .stat-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.stat-tooltip-copy {
  display: grid;
  gap: 3px;
}

.stat-tooltip-copy small {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-tooltip-copy strong {
  margin-top: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.stat-tooltip-rows {
  display: grid;
  gap: 7px;
}

.stat-tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.stat-tooltip-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.stat-tooltip-row span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.stat-tooltip-row strong {
  margin-top: 0;
  font-size: 0.74rem;
}

.stat-tooltip-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.banner-stat span,
.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.banner-stat strong,
.mini-metric strong,
.match-side strong {
  display: block;
  margin-top: 5px;
  font-family: "Space Grotesk", sans-serif;
}

.stat-row > strong,
.stat-table-row > strong,
.compact-bar > strong,
.stat-table-side > strong {
  display: block;
  margin-top: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
}

.section-tabs,
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.section-tab,
.sub-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
}

.section-tab.is-active,
.section-tab:hover,
.sub-tab.is-active,
.sub-tab:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-strong);
}

.card-grid.thirds,
.three-col-grid,
.ranking-columns {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.card-grid.thirds > *,
.three-col-grid > *,
.two-col-grid > *,
.stack-grid > *,
.ranking-columns > * {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.card-grid.thirds,
.three-col-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.stack-grid > .compact-card {
  margin-top: 0;
}

.about-badge-guide {
  display: grid;
  gap: 12px;
}

.badge-guide-note {
  margin: 0;
  color: rgba(237, 242, 247, 0.72);
}

.badge-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 224px;
  gap: 10px;
}

.badge-guide-item {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 10px;
  height: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  overflow: visible;
}

.badge-guide-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 4px 2px 8px;
  overflow: visible;
}

.badge-guide-chip-row .micro-pill,
.badge-guide-chip-row .player-pill {
  min-height: 31px;
  padding: 5px 12px;
}

.badge-guide-chip-row .player-pill {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.badge-guide-copy {
  display: grid;
  gap: 4px;
}

.badge-guide-copy strong {
  font-size: 0.95rem;
}

.badge-guide-copy p {
  margin: 0;
  color: rgba(237, 242, 247, 0.74);
  font-size: 0.92rem;
}

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

.ranking-column {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-4);
}

.ranking-column h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.stat-row-stack,
.note-list,
.stat-table,
.match-compare-table,
.compact-bars {
  display: grid;
  gap: 6px;
}

.match-compare-table {
  margin-top: 10px;
}

.match-compare-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-bottom: 6px;
}

.match-compare-head-team,
.match-compare-head-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
}

.match-compare-head-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.note-list.condensed p {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-4);
}

.note-list.condensed p strong {
  color: var(--text);
}

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

.player-feedback-section h3 {
  margin: 0 0 8px;
  color: rgba(237, 242, 247, 0.84);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.68rem;
}

.player-feedback-section .note-list.condensed p {
  margin: 0;
}

.stat-row,
.stat-table-row,
.compact-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.stat-row:first-child,
.stat-table-row:first-child,
.compact-bar:first-child {
  padding-top: 0;
  border-top: 0;
}

.match-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.match-compare-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.match-compare-label {
  width: 100%;
  text-align: center;
}

.match-compare-label strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.match-compare-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.match-compare-row .match-compare-value:first-child {
  text-align: center;
}

.match-compare-row .match-compare-value:last-child {
  text-align: center;
}

.match-compare-value.is-better {
  color: #ebfff1;
  background: linear-gradient(145deg, rgba(8, 21, 14, 0.95), rgba(12, 34, 21, 0.9));
  border: 1px solid rgba(154, 255, 188, 0.38);
  border-radius: 999px;
  padding: 2px 10px;
  text-shadow: none;
  box-shadow:
    0 0 10px rgba(108, 255, 168, 0.1),
    inset 0 1px 0 rgba(230, 255, 238, 0.1);
}

.stat-row > span:not(.badge-tooltip-trigger),
.compact-bar > span {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.stat-row.triple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.ranking-tooltip-value > strong {
  display: block;
  margin-top: 0;
  color: var(--text);
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-color: rgba(237, 242, 247, 0.5);
}

.stat-table-row {
  align-items: center;
}

.stat-table-row strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.stat-table-side {
  text-align: right;
}

.result-strip-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

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

.result-dot,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.result-dot-w,
.pill-w {
  border: 1px solid rgba(154, 255, 188, 0.38);
  background: linear-gradient(145deg, rgba(8, 21, 14, 0.95), rgba(12, 34, 21, 0.9));
  box-shadow:
    0 0 10px rgba(108, 255, 168, 0.1),
    inset 0 1px 0 rgba(230, 255, 238, 0.1);
  color: #ebfff1;
}

.result-dot-d,
.pill-d {
  background: rgba(183, 147, 85, 0.2);
  color: #ebcf9a;
}

.result-dot-l,
.pill-l {
  border: 1px solid rgba(232, 120, 120, 0.34);
  background: linear-gradient(145deg, rgba(38, 12, 12, 0.95), rgba(58, 18, 18, 0.9));
  box-shadow:
    0 0 10px rgba(232, 120, 120, 0.08),
    inset 0 1px 0 rgba(255, 220, 220, 0.08);
  color: #ffe3de;
}

.compact-bars {
  margin-top: 2px;
}

.compact-bar-track,
.rank-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.compact-bar-track i,
.rank-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

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

.kit-grid.compact {
  margin-top: 2px;
}

.kit-card {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-4);
}

.kit-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kit-card strong {
  display: block;
  margin: 5px 0 10px;
  font-family: "Space Grotesk", sans-serif;
}

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

.swatch-row i {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tiny-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 132px;
}

.tiny-bar-col {
  display: grid;
  gap: 6px;
  align-content: end;
}

.tiny-bar-col span,
.tiny-bar-col small {
  text-align: center;
}

.tiny-bar-col span {
  font-family: "Space Grotesk", sans-serif;
}

.tiny-bar-track {
  height: 76px;
  display: flex;
  align-items: end;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
}

.tiny-bar-track i {
  display: block;
  width: 100%;
  background: var(--accent);
}

.tiny-bars.defense .tiny-bar-track i {
  background: var(--warning);
}

.tiny-bars.points .tiny-bar-track i {
  background: #6fa0dc;
}

.line-chart {
  position: relative;
  height: 158px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 27, 38, 0.36), rgba(12, 18, 28, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
}

.line-chart-plot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.line-chart-gridline {
  position: absolute;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.line-chart-gridlabel {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  font-size: 0.66rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.line-chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.line-chart-svg polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.line-chart.defense .line-chart-svg polyline {
  stroke: var(--warning);
}

.line-chart.points .line-chart-svg polyline {
  stroke: #6fa0dc;
}

.line-chart-point {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  padding: 0;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
}

.line-chart-dot {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.8px solid var(--accent);
  background: #0d1420;
  box-shadow: 0 0 0 2px rgba(154, 194, 122, 0.22);
}

.line-chart.defense .line-chart-dot {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(183, 147, 85, 0.2);
}

.line-chart.points .line-chart-dot {
  border-color: #6fa0dc;
  box-shadow: 0 0 0 2px rgba(111, 160, 220, 0.2);
}

.line-chart-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  display: none;
  min-width: 250px;
  max-width: 310px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(11, 18, 29, 0.98), rgba(8, 13, 21, 0.98));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  z-index: 230;
  text-align: left;
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  pointer-events: none;
}

.line-chart-point:nth-last-child(-n+2) .line-chart-tooltip {
  left: auto;
  right: 0;
  transform: none;
}

.line-chart-point:nth-child(-n+2) .line-chart-tooltip {
  left: 0;
  transform: none;
}

.line-chart-tooltip strong {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.line-chart-tooltip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.line-chart-tooltip-head b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text);
}

.line-chart-tooltip-sub {
  display: block;
  margin-top: 4px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  color: #8fa4bf;
}

.line-chart-tooltip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.line-chart-tooltip-grid > span {
  display: grid;
  gap: 2px;
}

.line-chart-tooltip-grid > span small {
  margin: 0;
  font-size: 0.62rem;
  color: #7f90a5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.line-chart-tooltip-grid > span b {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  color: #e8edf5;
}

.line-chart-tooltip > small {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--muted);
}

.line-chart-point:hover .line-chart-tooltip,
.line-chart-point:focus-visible .line-chart-tooltip {
  display: block;
}

.line-chart-point:hover,
.line-chart-point:focus-visible {
  z-index: 30;
}

.line-chart-point:hover .line-chart-dot,
.line-chart-point:focus-visible .line-chart-dot {
  transform: scale(1.08);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.table-wrap.compact-scroll {
  margin: 0 -2px;
  padding: 0 2px 2px;
}

.lineup-table-wrap {
  overflow: visible;
}

.lineup-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 2px;
}

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

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

.condensed-table.wide {
  min-width: 1320px;
}

.condensed-table.table-tight {
  font-size: 0.8rem;
}

.player-log-table {
  min-width: 1080px;
}

.lineup-table {
  display: table;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.lineup-table.table-tight {
  font-size: 0.74rem;
}

.lineup-table.table-tight th {
  padding: 0 4px 7px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.lineup-table.table-tight td {
  padding: 6px 3px;
}

.lineup-table td small {
  font-size: 0.64rem;
  line-height: 1.2;
}

.lineup-table .match-team-name,
.lineup-table .table-link,
.lineup-table td strong {
  font-size: 1em;
}

.lineup-motm-help {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lineup-motm-help span,
.lineup-motm-help .lineup-motm-name,
.lineup-motm-help .table-link {
  text-decoration: none;
}

.lineup-motm-name,
.lineup-motm-help .table-link.lineup-motm-name {
  color: #ffd76a;
  text-shadow: 0 0 10px rgba(255, 205, 97, 0.16);
  animation: lineup-motm-pulse 2.8s ease-in-out infinite alternate;
}

.lineup-motm-help .table-link.lineup-motm-name:hover {
  color: #ffe08d;
}

@keyframes lineup-motm-pulse {
  0%,
  100% {
    opacity: 0.82;
    text-shadow:
      0 0 10px rgba(255, 205, 97, 0.16),
      0 0 20px rgba(255, 205, 97, 0.08);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 12px rgba(255, 218, 122, 0.24),
      0 0 26px rgba(255, 205, 97, 0.14);
    transform: scale(1.03);
  }
}

@media (max-width: 980px) {
  .builder-hero,
  .builder-section-grid,
  .builder-role-grid {
    grid-template-columns: 1fr;
  }

  .builder-preview-grid {
    grid-template-columns: 1fr;
  }

  #squad-detailed-player-table th:first-child,
  #squad-detailed-player-table td:first-child,
  .recent-results-table th:first-child,
  .recent-results-table td:first-child,
  .match-results-table th:first-child,
  .match-results-table td:first-child {
    position: sticky;
    left: 0;
  }

  #squad-detailed-player-table th:first-child,
  .recent-results-table th:first-child,
  .match-results-table th:first-child {
    z-index: 36;
    background: rgba(14, 20, 26, 0.98);
    box-shadow:
      1px 0 0 var(--line),
      12px 0 18px rgba(5, 8, 12, 0.5);
  }

  #squad-detailed-player-table td:first-child,
  .recent-results-table td:first-child,
  .match-results-table td:first-child {
    z-index: 22;
    background: rgba(13, 18, 24, 0.98);
    box-shadow:
      1px 0 0 var(--line),
      12px 0 18px rgba(5, 8, 12, 0.45);
  }

  #squad-detailed-player-table th:first-child,
  #squad-detailed-player-table td:first-child {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
  }

  .recent-results-table th:first-child,
  .recent-results-table td:first-child {
    width: 156px;
    min-width: 156px;
    max-width: 156px;
  }

  .match-results-table th:first-child,
  .match-results-table td:first-child {
    width: 126px;
    min-width: 126px;
    max-width: 126px;
  }

  .match-results-table {
    width: max-content;
    min-width: 760px;
    table-layout: auto;
  }

  .match-results-table th,
  .match-results-table td {
    min-width: 58px;
    white-space: nowrap;
    padding-left: 8px;
    padding-right: 8px;
  }

  .match-results-table th:nth-child(2),
  .match-results-table td:nth-child(2) {
    min-width: 48px;
  }

  .match-results-table th:nth-child(3),
  .match-results-table td:nth-child(3) {
    min-width: 74px;
  }

  .match-results-table th:nth-child(4),
  .match-results-table td:nth-child(4) {
    min-width: 54px;
  }

  .match-results-table th:nth-child(5),
  .match-results-table td:nth-child(5),
  .match-results-table th:nth-child(6),
  .match-results-table td:nth-child(6),
  .match-results-table th:nth-child(7),
  .match-results-table td:nth-child(7),
  .match-results-table th:nth-child(9),
  .match-results-table td:nth-child(9) {
    min-width: 56px;
  }

  .match-results-table th:nth-child(8),
  .match-results-table td:nth-child(8) {
    min-width: 82px;
  }

  .match-results-table th:nth-child(10),
  .match-results-table td:nth-child(10) {
    min-width: 90px;
  }

  #squad-detailed-player-table tbody tr:hover td:first-child,
  .recent-results-table tbody tr:hover td:first-child,
  .match-results-table tbody tr:hover td:first-child {
    background: rgba(255, 255, 255, 0.03);
  }

  #squad-detailed-player-table td:first-child strong,
  #squad-detailed-player-table td:first-child .table-link,
  #squad-detailed-player-table td:first-child small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-results-table td:first-child strong,
  .match-results-table td:first-child .table-link,
  .match-results-table td:first-child .lineup-motm-name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
  }

  .recent-results-table td:first-child .table-club-lockup {
    min-width: 0;
  }

  .recent-results-table td:first-child .table-club-lockup strong,
  .recent-results-table td:first-child .table-club-lockup small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.lineup-motm-help:hover,
.lineup-motm-help:focus-within,
.lineup-motm-help:focus {
  z-index: 30;
}

.lineup-motm-help .stat-tooltip {
  left: 0;
  right: auto;
  top: calc(100% + 10px);
  bottom: auto;
  transform: translate(0, -4px);
  z-index: 240;
}

.lineup-motm-help:hover .stat-tooltip,
.lineup-motm-help:focus .stat-tooltip,
.lineup-motm-help:focus-visible .stat-tooltip,
.lineup-motm-help:focus-within .stat-tooltip {
  transform: translate(0, 0);
}

.table-head-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.lineup-table th .table-head-help .stat-tooltip {
  z-index: 245;
  padding: 10px 12px;
  max-width: min(240px, calc(100vw - 32px));
}

.lineup-table th .table-head-help .stat-tooltip-copy {
  gap: 0;
}

.lineup-table th .table-head-help .stat-tooltip-copy strong {
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

@media (max-width: 1280px) {
  .lineup-table th:nth-child(14),
  .lineup-table td:nth-child(14) {
    display: none;
  }
}

@media (max-width: 1160px) {
  .lineup-table th:nth-child(11),
  .lineup-table td:nth-child(11),
  .lineup-table th:nth-child(13),
  .lineup-table td:nth-child(13),
  .lineup-table th:nth-child(12),
  .lineup-table td:nth-child(12) {
    display: none;
  }
}

.condensed-table th {
  padding: 0 8px 9px;
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  white-space: nowrap;
}

#squad-detailed-player-table th.sortable-header {
  cursor: pointer;
  user-select: none;
}

#squad-detailed-player-table th.sortable-header::after {
  content: "⭥";
  margin-left: 6px;
  opacity: 0.35;
  font-size: 0.68rem;
}

#squad-detailed-player-table th.sortable-header[data-sort-direction="asc"]::after {
  content: "↑";
  opacity: 0.8;
}

#squad-detailed-player-table th.sortable-header[data-sort-direction="desc"]::after {
  content: "↓";
  opacity: 0.8;
}

#squad-detailed-player-table th.sortable-header:focus-visible {
  outline: none;
  color: var(--text);
}

#squad-detailed-player-table {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
}

#squad-detailed-player-table th,
#squad-detailed-player-table td {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

#squad-detailed-player-table th:first-child,
#squad-detailed-player-table td:first-child {
  white-space: normal;
  text-align: left;
  padding-left: 18px;
}

#squad-detailed-player-table th:last-child,
#squad-detailed-player-table td:last-child {
  padding-right: 18px;
}

#squad-detailed-player-table th {
  padding: 0 4px 7px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

#squad-detailed-player-table td {
  padding: 6px 4px;
}

#squad-detailed-player-table td small {
  font-size: 0.64rem;
  line-height: 1.2;
}

#squad-detailed-player-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.condensed-table td {
  padding: 9px 8px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.condensed-table.table-tight th {
  padding: 0 6px 8px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.condensed-table.table-tight td {
  padding: 7px 6px;
}

.condensed-table td strong {
  display: block;
}

.condensed-table td small {
  font-size: 0.68rem;
  line-height: 1.3;
}

.lineup-table th,
.lineup-table td {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.lineup-table th:first-child,
.lineup-table td:first-child {
  white-space: normal;
  text-align: left;
}

.lineup-table td:first-child {
  min-width: 0;
}

.lineup-table th:nth-child(1),
.lineup-table td:nth-child(1),
.lineup-table th:nth-child(2),
.lineup-table td:nth-child(2),
.lineup-table th:nth-child(3),
.lineup-table td:nth-child(3) {
  padding-right: 6px;
}

.lineup-table th:nth-child(n + 4),
.lineup-table td:nth-child(n + 4) {
  width: auto;
}

.lineup-table th:nth-child(1),
.lineup-table td:nth-child(1) {
  width: 16%;
}

.lineup-table th:nth-child(2),
.lineup-table td:nth-child(2) {
  width: 7%;
}

.lineup-table th:nth-child(3),
.lineup-table td:nth-child(3) {
  width: 8%;
}

.lineup-table th:nth-child(4),
.lineup-table td:nth-child(4) {
  width: 6%;
}

.lineup-table th {
  padding: 0 4px 7px;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}

.lineup-table td {
  padding: 6px 3px;
}

.lineup-table tfoot td {
  padding: 8px 3px 2px;
  border-top: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
}

.lineup-summary-row td {
  background: rgba(255, 255, 255, 0.015);
}

.lineup-summary-row td:first-child {
  color: var(--muted);
}

.lineup-stat-leader-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(154, 255, 188, 0.38);
  background: linear-gradient(145deg, rgba(8, 21, 14, 0.95), rgba(12, 34, 21, 0.9));
  color: #ebfff1;
  text-shadow: none;
  box-shadow:
    0 0 10px rgba(108, 255, 168, 0.1),
    inset 0 1px 0 rgba(230, 255, 238, 0.1);
}

.table-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
}

.table-link:hover {
  color: var(--accent);
}

.rating-cell {
  white-space: nowrap;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 24px;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 0 8px rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.match-banner {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: 132px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.match-banner-top {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  z-index: 1;
}

.match-fixture-card {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 96px;
  padding: 0;
  justify-items: center;
  align-content: center;
}

.match-fixture-copy {
  grid-column: auto;
  width: 100%;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.match-fixture-copy .match-result-title-row.centered {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  align-items: center;
  width: min(100%, 980px);
  margin: 0 auto;
  gap: 12px;
}

.match-fixture-copy .match-team-lockup {
  min-width: 0;
}

.match-fixture-copy .match-team-lockup-home {
  justify-self: end;
  text-align: right;
}

.match-fixture-copy .match-team-lockup-away {
  justify-self: start;
  text-align: left;
}

.match-banner-eyebrow {
  margin: 0;
  text-align: center;
}

.match-banner-meta {
  justify-self: center;
  text-align: center;
  font-size: 0.8rem;
}

.match-banner .match-team-name,
.match-banner-link {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2.45rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--text);
  text-decoration: none;
}

.match-banner-link:hover {
  color: var(--accent);
}

.match-score-cluster-banner {
  display: inline-flex;
  gap: 12px;
  white-space: nowrap;
}

.match-banner .table-crest {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.match-banner .match-score-pill.match-score-pill-banner {
  min-height: 54px;
  padding: 0 16px;
  font-size: 1.58rem;
}

.match-banner .match-score-pill.match-score-pill-banner strong {
  font-size: 1.76rem;
}

.match-banner .match-score-pill.match-score-pill-banner span {
  font-size: 1.24rem;
}

.match-banner .score-crest.score-crest-banner {
  width: 48px;
  height: 48px;
}

.table-club-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-crest {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
  padding: 3px;
}

.compact-bars-tight {
  margin-top: 10px;
}

.tight-after-head {
  margin-top: 12px;
}

.nested-card {
  margin-top: 0;
  background: var(--surface-4);
}

.results-card-stack,
.squad-group-grid {
  display: grid;
  gap: 10px;
}

.match-result-card,
.squad-group-card,
.compare-player-card {
  position: relative;
  display: block;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-4);
}

.match-result-card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.match-result-card-link:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
}

.result-disclosure {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.result-disclosure-stack {
  margin-top: 0;
}

.result-disclosure-stack [hidden] {
  display: none !important;
}

.result-disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-4);
  color: var(--text);
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  justify-self: start;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.result-disclosure-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
}

.result-disclosure-toggle::after {
  content: "\25BE";
  font-size: 0.78rem;
  color: var(--muted);
  transition: transform 200ms ease;
}

.result-disclosure.is-open .result-disclosure-toggle::after {
  transform: rotate(180deg);
}

.result-disclosure-toggle-label {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .result-disclosure-toggle::after {
    transition: none;
  }
}

.match-result-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.squad-group-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.match-result-club-copy {
  display: grid;
  gap: 4px;
}

.match-result-club-copy.centered {
  grid-column: 2;
  justify-items: center;
  text-align: center;
}

.match-result-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
}

.match-result-title-row.centered {
  gap: 12px;
  width: min(100%, 720px);
}

.match-result-title-row > strong:first-child {
  font-size: 0.98rem;
}

.match-result-club-copy small {
  color: var(--muted);
  font-size: 0.73rem;
}

.match-team-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.1;
}

.match-team-lockup {
  min-width: 0;
}

.match-team-lockup-home {
  justify-self: end;
}

.match-team-lockup-away {
  justify-self: start;
}

.match-team-lockup .match-team-name {
  white-space: nowrap;
}

.match-score-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.match-result-card .table-crest {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.score-crest {
  width: 22px;
  height: 22px;
}

.match-result-score {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: absolute;
  right: 12px;
  top: calc(50% - 4px);
  transform: translateY(-50%);
}

.match-result-score strong,
.match-scoreline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.34rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.match-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1;
}

.match-score-pill strong {
  display: inline;
  font-size: 1.02rem;
}

.match-score-pill span {
  display: inline;
  color: inherit;
  font-size: 0.92rem;
  letter-spacing: 0;
}

.match-result-card .match-team-lockup {
  display: flex;
  align-items: center;
}

.match-result-card .match-team-lockup-home {
  justify-content: flex-end;
}

.match-result-card .match-team-lockup-away {
  justify-content: flex-start;
}

.match-result-card .match-score-cluster {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  column-gap: 12px;
  min-height: 34px;
}

.match-result-card .score-crest {
  display: block;
}

.match-result-card .match-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  box-sizing: border-box;
  min-width: 58px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.match-result-card .match-score-pill .match-score-pill-value {
  display: block;
  margin-top: 0;
  min-width: 3ch;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  line-height: 1;
}

.compare-player-meta {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.match-result-notes span,
.squad-group-head small,
.compare-form label span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-result-metric strong,
.match-result-notes strong,
.player-pill-card strong,
.compare-player-card h3 {
  display: block;
}

.match-result-notes {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.performer-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.performer-pill-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.performer-pill-card strong {
  display: inline;
  font-size: 0.78rem;
  line-height: 1;
}

.performer-pill-card .rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 24px;
  padding: 0 8px;
  line-height: 1;
  flex: 0 0 auto;
}

.result-open-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.result-open-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #08110a;
}

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

.squad-group-head {
  margin-bottom: 10px;
}

.squad-group-head h3 {
  margin: 0;
  font-size: 1rem;
}

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

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

.player-pill-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.player-pill-card span,
.player-pill-card small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.player-pill-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.player-pill-card.simple {
  gap: 3px;
}

.player-flag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roster-position-groups {
  display: grid;
  gap: 12px;
}

.roster-position-section {
  display: grid;
  gap: 8px;
}

.roster-position-label {
  margin: 0;
}

.player-flag-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
  cursor: pointer;
}

.player-flag-chip:hover,
.player-flag-chip:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}

.player-flag-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(150, 191, 117, 0.12);
}

.player-flag-chip-icon-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  margin-top: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-flag-chip-icon {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  object-position: 51% 50%;
  transform: scale(1.12);
  transform-origin: center;
}

.player-flag-chip-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.player-flag-chip-copy strong {
  display: block;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-flag-chip-copy small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
  white-space: nowrap;
}

.squad-player-modal-card {
  width: min(100%, 370px);
  max-height: min(86vh, 780px);
  overflow: hidden;
  padding: 0;
}

.squad-player-modal-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(150, 191, 117, 0.36), rgba(150, 191, 117, 0.13) 34%, rgba(150, 191, 117, 0.03) 58%, rgba(150, 191, 117, 0) 82%);
  filter: blur(22px);
  opacity: 0.82;
  pointer-events: none;
}

.squad-player-modal-head {
  position: relative;
  z-index: 1;
  align-items: center;
  margin: 0;
  padding: 18px 18px 8px;
}

.squad-player-modal-head .eyebrow {
  margin: 0;
}

.squad-player-modal-hero {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 2px 18px 18px;
  text-align: center;
}

.squad-player-modal-flag-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(112px, 24vw);
  min-height: 82px;
  margin: -4px auto 10px;
}

.squad-player-modal-flag-glow,
#squad-player-modal-flag {
  width: min(78px, 18vw);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  justify-self: center;
  align-self: center;
  margin: -2px auto 12px;
  image-rendering: auto;
}

.squad-player-modal-flag-glow {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(106px, 24vw);
  opacity: 0.62;
  filter: blur(20px) saturate(1.22);
  transform: translate(-50%, -50%) scale(1.28);
  pointer-events: none;
  mix-blend-mode: screen;
}

#squad-player-modal-flag {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

#squad-player-modal-flag {
  margin-inline: auto;
}

.squad-player-modal-avr {
  min-width: 72px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.squad-player-modal-hero h2 {
  font-size: 1.7rem;
  line-height: 1.04;
  margin: 0;
}

.squad-player-modal-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.squad-player-modal-title-link:hover,
.squad-player-modal-title-link:focus-visible {
  color: var(--accent);
  border-bottom-color: rgba(111, 194, 133, 0.48);
  outline: none;
}

.squad-player-modal-title-link.is-disabled {
  pointer-events: none;
  border-bottom-color: transparent;
}

.squad-player-modal-meta {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.squad-player-modal-meta-item {
  padding: 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.squad-player-modal-meta-item strong {
  display: block;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.squad-player-modal-meta-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.squad-player-modal-badges {
  width: 100%;
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 8px;
  padding: 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.squad-player-modal-badges small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.squad-player-modal-badge-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.squad-player-modal-badge-row .badge-tooltip-trigger {
  position: relative;
}

.squad-player-modal-badge-row .badge-tooltip {
  top: auto;
  bottom: calc(100% + 12px);
  min-width: min(280px, calc(100vw - 40px));
  max-width: min(308px, calc(100vw - 40px));
  transform: translate(-50%, 6px);
}

.squad-player-modal-badge-row .badge-tooltip .stat-tooltip-copy {
  justify-items: center;
  text-align: center;
}

.squad-player-modal-badge-row .badge-tooltip .stat-tooltip-note {
  text-align: center;
}

.squad-player-modal-badge-row .player-pill {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.squad-player-modal-stats {
  position: relative;
  z-index: 1;
  max-height: min(44vh, 360px);
  overflow: auto;
  padding: 0 18px 18px;
}

.squad-player-modal-stat-list {
  display: grid;
  gap: 8px;
}

.squad-player-modal-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.028);
}

.squad-player-modal-stat-row span {
  color: rgba(237, 242, 247, 0.8);
  font-size: 0.92rem;
}

.squad-player-modal-stat-row strong {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  text-align: right;
}

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

.compare-form {
  margin-bottom: 12px;
}

.compare-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.compare-form label {
  display: grid;
  gap: 6px;
}

.compare-form select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

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

.compare-player-card h3 {
  margin: 0;
}

.compare-duel-card {
  margin-top: 10px;
}

.duel-table {
  display: grid;
  gap: 2px;
}

.duel-row {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, 1fr) minmax(64px, auto);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.duel-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.duel-row span {
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

.duel-row strong:first-child {
  text-align: left;
}

.duel-row strong:last-child {
  text-align: right;
}

.duel-row .is-lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(154, 255, 188, 0.38);
  background: linear-gradient(145deg, rgba(8, 21, 14, 0.95), rgba(12, 34, 21, 0.9));
  color: #ebfff1;
  text-shadow: none;
  box-shadow:
    0 0 10px rgba(108, 255, 168, 0.1),
    inset 0 1px 0 rgba(230, 255, 238, 0.1);
}

.duel-row strong:last-child.is-lead {
  justify-self: end;
}

.raw-stack {
  display: grid;
  gap: 10px;
}

.raw-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-4);
  overflow: hidden;
}

.raw-block summary {
  cursor: pointer;
  padding: 11px 12px;
  font-family: "Space Grotesk", sans-serif;
}

.code-block {
  margin: 0;
  padding: 0 12px 12px;
  overflow: auto;
  font-size: 0.76rem;
  line-height: 1.55;
}

.status-panel {
  margin-top: 16px;
}

.status-panel h1,
.status-panel h2 {
  margin-bottom: 8px;
}

.error-panel {
  border-color: rgba(203, 125, 104, 0.45);
  background: rgba(44, 23, 22, 0.96);
}

.empty-panel {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-4);
  color: var(--muted);
}

.empty-panel.empty-panel-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  text-align: center;
}

.inline-search.compact {
  max-width: 620px;
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .banner-stats,
  .mini-metrics.six-up,
  .card-grid.thirds,
  .three-col-grid,
  .ranking-columns,
  .ranking-columns.ranking-columns-wide,
  .kit-grid,
  .search-result-row,
  .club-banner-row,
  .two-col-grid,
  .squad-group-grid,
  .player-compare-shell {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

}

@media (max-width: 860px) {
  .topbar,
  .page-shell,
  .footer {
    width: min(100vw - 18px, 1260px);
  }

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

  .topbar-actions,
  .footer-row {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-stats,
  .mini-metrics.six-up,
  .card-grid.thirds,
  .three-col-grid,
  .ranking-columns,
  .ranking-columns.ranking-columns-wide,
  .kit-grid,
  .two-col-grid,
  .club-banner-row,
  .squad-group-grid,
  .player-compare-shell {
    grid-template-columns: 1fr;
  }

  .search-row,
  .inline-search {
    grid-template-columns: 1fr;
  }

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

  .match-banner {
    min-height: 0;
    padding-top: 12px;
  }

  .match-banner-top {
    position: static;
    margin-bottom: 8px;
  }

  .match-fixture-copy .match-result-title-row.centered {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .match-fixture-copy .match-team-lockup,
  .match-fixture-copy .match-score-cluster-banner {
    display: inline-flex;
    width: auto;
  }

  .match-fixture-copy .match-team-lockup-home,
  .match-fixture-copy .match-team-lockup-away {
    padding: 0;
    text-align: center;
  }

  .profile-card-value-row strong {
    font-size: 1.55rem;
  }

  .profile-card-context-row p {
    font-size: 0.95rem;
  }

  .profile-card-context-item {
    font-size: 0.9rem;
  }

  .result-strip-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-row,
  .stat-table-row,
  .compact-bar,
  .match-compare-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-table-side {
    text-align: left;
  }

  .match-compare-row {
    display: flex;
    gap: 4px;
  }

  .match-compare-head {
    display: flex;
    gap: 4px;
  }

  .match-compare-label,
  .match-compare-head,
  .match-compare-row .match-compare-value:first-child,
  .match-compare-row .match-compare-value:last-child {
    text-align: center;
  }

  .stat-row.triple {
    grid-template-columns: 1fr;
  }

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

  .match-result-head,
  .squad-group-head {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .match-result-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .match-result-title-row.centered {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .match-result-score {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    justify-content: center;
    text-align: center;
  }

  .player-pill-grid,
  .player-pill-grid.player-pill-grid-tight,
  .compare-form-grid {
    grid-template-columns: 1fr;
  }

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

  .duel-row span,
  .duel-row strong:first-child,
  .duel-row strong:last-child {
    text-align: left;
  }

  .duel-row strong:last-child.is-lead {
    justify-self: start;
  }

}

.page-loader {
  display: none;
}

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

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

.squad-player-modal-shell:not(.is-visible) {
  pointer-events: none;
}

.squad-player-modal-shell.is-closing {
  pointer-events: none;
}

.squad-player-modal-shell .modal-backdrop {
  opacity: 0;
  transition: opacity 220ms ease;
}

.squad-player-modal-shell .modal-card {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.squad-player-modal-shell.is-visible .modal-backdrop {
  opacity: 1;
}

.squad-player-modal-shell.is-visible .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 12, 0.78);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 24, 31, 0.98), rgba(14, 19, 25, 0.98));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  padding: 18px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-head h2 {
  font-size: 1.2rem;
}

.modal-close {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-field {
  display: grid;
  gap: 6px;
}

.feedback-field span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.feedback-note {
  margin: 2px 0 0;
  color: rgba(237, 242, 247, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
}

.feedback-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 0.84rem;
}

.feedback-status.is-error {
  color: var(--danger);
}

.feedback-status.is-success {
  color: var(--accent);
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

html.js .page-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 9, 12, 0.82);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 160ms ease,
    visibility 160ms ease;
}

html.js body[data-page-ready="true"] .page-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-panel {
  min-width: min(100%, 280px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(18, 22, 28, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.page-loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  flex: 0 0 auto;
  animation: spin 0.8s linear infinite;
}

.page-loader-copy {
  display: grid;
  gap: 3px;
}

.page-loader-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-loader-copy .loader-brand-accent {
  color: var(--accent);
}

.page-loader-copy strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.club-update-snackbar[hidden] {
  display: none;
}

.club-update-snackbar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 185;
  width: min(calc(100% - 24px), 560px);
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(145, 230, 175, 0.28);
  background: linear-gradient(180deg, rgba(16, 22, 30, 0.96), rgba(11, 17, 24, 0.96));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  transform: translate(-50%, 12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    visibility 160ms ease;
}

.club-update-snackbar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.club-update-snackbar-message {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.club-update-snackbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

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

@media (prefers-reduced-motion: reduce) {
  .squad-player-modal-shell .modal-backdrop,
  .squad-player-modal-shell .modal-card {
    transition: none;
  }
}

.builder-warning-shell {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
}

.builder-warning-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(10px) brightness(0.55);
}

.builder-warning-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  justify-items: center;
  text-align: center;
}

.builder-warning-panel {
  width: 100%;
  justify-content: center;
  text-align: left;
}

.builder-warning-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7rem;
  font-weight: 800;
}

.builder-warning-copy strong {
  max-width: 27ch;
}

.builder-warning-button {
  min-width: 92px;
  justify-self: center;
}

.loading-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loading-panel::before,
.button.is-pending::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: currentColor;
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.button[disabled],
.button.is-pending {
  cursor: progress;
  opacity: 0.82;
}

@media (max-width: 1180px) {
  .page-home .search-result-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .search-result-row {
    grid-template-columns: 1fr;
  }

  .page-home .search-result-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .home-hero-shell,
  .leaderboard-splash,
  .leaderboard-hero,
  .leaderboard-method-card,
  .leaderboard-board,
  .home-results-shell,
  .home-favorites-shell {
    padding: 18px;
  }

  .leaderboard-hero,
  .leaderboard-board-head,
  .leaderboard-method-head,
  .leaderboard-entry {
    grid-template-columns: 1fr;
  }

  .leaderboard-board-head,
  .leaderboard-method-head {
    display: grid;
    align-items: start;
  }

  .leaderboard-summary-grid,
  .leaderboard-detail-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-score-block {
    justify-items: start;
    text-align: left;
  }

  .home-display-title {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

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

  .home-search-actions .button {
    width: 100%;
  }

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

  .page-home .search-result-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .search-result-stats > div {
    padding: 7px 8px;
  }

  .page-home .search-result-stats span {
    font-size: 0.58rem;
  }

  .page-home .search-result-stats strong {
    font-size: 0.94rem;
  }

  .page-home .search-result-row {
    padding: 14px;
  }

  .page-home .home-favorites-grid .search-result-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .page-home .home-favorites-grid .search-result-main {
    align-items: center;
    gap: 10px;
  }

  .page-home .home-favorites-grid .search-result-main > div {
    min-width: 0;
  }

  .page-home .home-favorites-grid .search-result-main strong {
    display: block;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .page-home .home-favorites-grid .search-result-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .page-home .home-favorites-grid .search-result-actions {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .page-home .home-favorites-grid .search-result-actions .button.button-primary {
    min-width: 112px;
  }

  .badge-guide-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .badge-guide-item {
    height: auto;
  }
}

@media (max-width: 620px) {
  .home-hero-shell {
    padding: 16px;
    border-radius: 20px;
  }

  .leaderboard-splash,
  .leaderboard-hero,
  .leaderboard-method-card,
  .leaderboard-board,
  .leaderboard-empty {
    padding: 18px;
    border-radius: 22px;
  }

  .leaderboard-empty {
    min-height: 50vh;
  }

  .leaderboard-splash {
    min-height: 58vh;
  }

  .leaderboard-gate-form {
    position: relative;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    width: min(100%, 260px);
    margin-top: 18px;
    justify-self: center;
  }

  .home-hero-center {
    gap: 15px;
  }

  .home-display-lede,
  .home-search-helper {
    font-size: 0.92rem;
  }

  .home-top-clubs-shell {
    width: 100%;
  }

  .home-mode-switch {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-mode-option span,
  .home-query-input-shell input,
  .home-platform-select select,
  .home-search-actions .button {
    border-radius: 14px;
  }

  .home-query-input-shell input {
    min-height: 60px;
    padding-left: 18px;
    padding-right: 54px;
  }

  .home-search-input-icon {
    right: 16px;
  }

  .home-search-helper code {
    display: inline-block;
    margin-block: 2px;
  }

  .home-top-clubs-menu {
    width: 100%;
  }

  .home-top-clubs-row {
    width: 100%;
    justify-content: flex-start;
  }

  .home-top-clubs-copy {
    max-width: none;
  }

  .page-home .search-result-main {
    align-items: flex-start;
  }

  .page-home .search-result-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .page-home .search-result-actions .button {
    width: auto;
  }

  .page-home .home-favorites-grid .search-result-stats {
    grid-template-columns: 1fr;
  }

  .page-home .favorite-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .page-home .favorite-actions {
    flex-direction: row;
    align-items: center;
    min-width: 0;
  }

  .page-home .favorite-actions .button {
    width: auto;
  }

  .leaderboard-hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .leaderboard-splash-copy h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .leaderboard-player-heading {
    align-items: flex-start;
  }

  .leaderboard-rank-copy {
    max-width: none;
  }

  .leaderboard-score-block strong {
    font-size: 2.2rem;
  }
}

@media (max-width: 420px) {
  .home-display-title {
    font-size: clamp(2.4rem, 14vw, 3.3rem);
  }

  .home-mode-option span {
    padding-inline: 12px;
    font-size: 0.8rem;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
