/* StatsD MVP: same-origin payload state and narrow viewport containment. */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.shell,
.topbar,
.nav-area,
.tabs,
.selector-stack,
.team-layout,
.team-roster-stats-layout,
.content-grid,
.hero,
.team-feature,
.command-panel,
.section,
.team-roster-mini-grid,
.team-stats-panel {
  min-width: 0;
  max-width: 100%;
}

.tabs {
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabs .tab {
  flex: 0 0 auto;
}

.statsd-no-data,
.statsd-error {
  box-sizing: border-box;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line, rgba(255, 255, 255, .18));
  color: var(--muted, #aaa);
  background: var(--panel, #111);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.statsd-error {
  margin: 12px auto;
  max-width: 1564px;
  color: #f7bd22;
}

.team-selector {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.team-token {
  min-width: 0;
}

.data-table {
  max-width: 100%;
}

@media (min-width: 761px) and (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding-inline: 18px;
  }

  .nav-area {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .tabs {
    gap: 8px;
    padding-right: 0;
  }

  .tab {
    padding: 10px 12px;
  }

  .tab-panel.active {
    padding-top: 82px;
  }

  body[data-selection-stage="team"] .selection-flow {
    padding-top: 82px;
  }

  .hero {
    height: auto;
  }

  .player-panel,
  .command-panel {
    height: auto;
    min-height: 0;
  }

  .hero .side-rail {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .topbar .brand-title {
    display: none;
  }

  .topbar .ffws-logo {
    width: 100px;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(300px, .68fr) minmax(0, 1.32fr);
    height: clamp(560px, calc(100dvh - 116px), 740px);
  }

  .player-panel,
  .command-panel {
    height: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .command-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .player-basic {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 14px;
  }

  .player-basic > * {
    min-width: 0;
  }

  .player-flag-block .flag-img {
    width: 112px;
  }

  .player-stat-item {
    align-items: start;
  }

  .player-stat-item span {
    overflow: visible;
    overflow-wrap: anywhere;
    line-height: 1.12;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (min-width: 1181px) and (max-width: 1366px) {
  .topbar {
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
    gap: 16px;
  }

  .nav-area {
    gap: 16px;
  }

  .tabs {
    flex: 1 1 auto;
    min-width: 0;
    gap: 18px;
  }

  .tabs .tab {
    font-size: 13px;
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    padding: 8px;
  }

  .hero {
    grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
    gap: 12px;
  }

  .hero .side-rail {
    display: none;
  }

  .player-panel,
  .command-panel {
    min-height: 568px;
  }

  .player-basic {
    grid-template-columns: minmax(0, 1fr) 124px;
    gap: 14px;
    padding: 22px;
  }

  .player-basic h2 {
    font-size: 28px;
  }

  .basic-grid {
    gap: 8px;
    margin-top: 14px;
  }

  .basic-item {
    padding: 7px 8px;
  }

  .basic-item span {
    font-size: 13px;
  }

  .basic-item b {
    font-size: 15px;
  }

  .player-flag-block {
    min-height: 106px;
    padding-left: 14px;
  }

  .player-flag-block .flag-img {
    width: 112px;
  }

  .flag-label {
    font-size: 13px;
  }

  .metric {
    min-height: 112px;
    padding: 12px 8px;
  }

  .metric span,
  .metric small {
    font-size: 13px;
  }

  .metric b {
    font-size: clamp(27px, 3.3vw, 38px);
  }

  .metric.compact b {
    font-size: clamp(24px, 2.55vw, 32px);
  }

  .quick-grid {
    grid-template-columns: minmax(150px, .72fr) minmax(150px, .72fr) minmax(260px, 1.18fr);
    min-height: 0;
  }

  .asset-stage {
    gap: 8px;
    padding: 12px;
  }

  .asset-tile {
    grid-template-rows: 34px minmax(0, 1fr);
  }

  .asset-tile-label {
    font-size: 13px;
  }

  .player-stats-head {
    padding-inline: 10px;
  }

  .player-stats-head strong,
  .player-stats-head span {
    font-size: 13px;
  }

  .player-stat-item {
    gap: 8px;
    padding: 5px 9px;
  }

  .player-stat-item span {
    overflow: visible;
    font-size: 13px;
    line-height: 1.12;
    text-overflow: clip;
    white-space: normal;
  }

  .player-stat-item b {
    font-size: 14px;
  }
}

@media (min-width: 761px) and (max-width: 1366px) {
  .selection-flow__grid--players {
    padding-inline: 22px;
  }

  .selection-flow__grid--players .selection-choice {
    flex-basis: clamp(168px, 19.5vw, 230px);
    min-height: clamp(332px, 34vw, 424px);
    margin-inline: -32px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: 100%;
    min-height: 100dvh;
    padding: 0 8px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    gap: 6px;
    padding: 6px 8px;
  }

  .brand-lockup,
  .brand-title,
  .nav-area,
  .tabs {
    width: auto;
    max-width: none;
  }

  .brand-lockup {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .ffws-logo {
    flex: 0 0 82px;
    width: 82px;
    height: 32px;
    object-fit: contain;
    object-position: left center;
  }

  .brand-title strong {
    font-size: clamp(13px, 3.45vw, 15px);
    letter-spacing: .035em;
  }

  .brand-title span {
    margin-top: 2px;
    font-size: 13px;
    letter-spacing: .06em;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-area {
    position: relative;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .mobile-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 8px;
    border: 1px solid var(--line, rgba(255, 255, 255, .18));
    border-radius: 0;
    color: var(--ink);
    background: color-mix(in srgb, var(--panel, #111) 62%, transparent);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
  }

  .mobile-menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-width: 2;
  }

  .nav-area > .tabs,
  .nav-area > .theme-toggle {
    position: absolute;
    right: 0;
    z-index: 60;
    display: none;
    width: min(210px, calc(100vw - 28px));
    border: 1px solid var(--line, rgba(255, 255, 255, .18));
    background: color-mix(in srgb, var(--panel, #111) 84%, transparent);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
    backdrop-filter: blur(18px) saturate(138%);
    -webkit-backdrop-filter: blur(18px) saturate(138%);
  }

  .nav-area.is-open > .tabs {
    top: calc(100% + 8px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 6px;
    overflow: visible;
  }

  .nav-area.is-open > .theme-toggle {
    top: calc(100% + 188px);
    display: flex;
    min-height: 46px;
  }

  .tabs .tab {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 13px;
    text-align: left;
  }

  .theme-toggle {
    width: 100%;
    height: auto;
    flex-basis: auto;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
    overflow: hidden;
  }

  .theme-toggle svg {
    position: static;
    width: 22px;
    height: 22px;
    transform: none;
  }

  .theme-toggle-label {
    display: inline;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .selector-stack {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .selection-flow {
    min-height: 100dvh;
    padding: 78px 0 12px;
  }

  .selection-flow__panel {
    width: 100%;
    padding: 0;
  }

  body[data-selection-stage="home"] .selection-flow {
    box-sizing: border-box;
    height: 100dvh;
    min-height: 0;
    padding: 72px 0 8px;
  }

  body[data-selection-stage="home"] .selection-flow__panel {
    width: 100%;
    padding-inline: 16px;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px;
    margin-top: 12px;
  }

  body[data-selection-stage="home"] .selection-entry {
    min-height: 160px;
    gap: 10px;
  }

  body[data-selection-stage="home"] .selection-entry__icon {
    width: 62px;
    height: 62px;
  }

  body[data-selection-stage="home"] .selection-entry__icon svg {
    width: 36px;
    height: 36px;
  }

  .selection-flow__header {
    padding-bottom: 14px;
  }

  .selection-flow h2 {
    font-size: clamp(27px, 9vw, 40px);
  }

  body[data-selection-stage="player"] .selection-flow__header {
    gap: 5px;
    padding-bottom: 10px;
  }

  body[data-selection-stage="player"] .selection-flow__title-line {
    gap: 4px;
    min-height: 0;
  }

  body[data-selection-stage="player"] .selection-flow__mark {
    width: 64px;
    height: 64px;
  }

  body[data-selection-stage="player"] .selection-flow h2 {
    font-size: clamp(14px, 4.2vw, 18px);
  }

  body[data-selection-stage="player"] .selection-flow p {
    font-size: clamp(16px, 4.2vw, 18px);
  }

  .selection-flow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0;
  }

  .selection-choice {
    min-height: 98px;
    padding: 8px 5px;
  }

  .selection-choice__visual {
    width: 58px;
    height: 48px;
  }

  .tab-panel.active {
    padding-top: 72px;
  }

  body[data-selection-stage="team"] .shell {
    height: 100dvh;
    padding-bottom: 0;
  }

  body[data-selection-stage="team"] .selection-flow {
    height: 100dvh;
    min-height: 0;
    padding: 68px 0 8px;
  }

  body[data-selection-stage="team"] .selection-flow__panel {
    height: calc(100dvh - 76px);
    min-height: 0;
    align-self: start;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body[data-selection-stage="team"] .selection-flow__header {
    gap: 3px;
    padding: 0 0 9px;
  }

  body[data-selection-stage="team"] .selection-flow h2 {
    font-size: clamp(25px, 7vw, 34px);
  }

  body[data-selection-stage="team"] .selection-flow p {
    font-size: 13px;
  }

  body[data-selection-stage="team"] .selection-flow__grid:not(.selection-flow__grid--players) {
    height: 100%;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    margin-top: 0;
  }

  body[data-selection-stage="team"] .selection-choice {
    min-height: 0;
    height: 100%;
    gap: 4px;
    padding: 4px;
  }

  body[data-selection-stage="team"] .selection-choice__visual {
    width: min(60%, 58px);
    height: clamp(36px, 10vw, 48px);
  }

  body[data-selection-stage="team"] .selection-choice strong {
    min-height: 2.35em;
    font-size: clamp(13px, 2.7vw, 13px);
    letter-spacing: .03em;
    line-height: 1.08;
  }

  .selection-flow__grid--players {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding-inline: 8px;
  }

  .selection-flow__grid--players .selection-choice {
    flex-basis: calc(50% + 8px);
    min-height: 276px;
    margin-inline: -10px;
    top: 0;
  }

  .selection-flow__grid--players .selection-choice:nth-child(n),
  .selection-flow__grid--players .selection-choice:nth-last-child(n) {
    top: 0;
    z-index: 1;
  }

  .selection-flow__grid--players .selection-choice__visual {
    width: 100%;
    height: 100%;
  }

  .selection-choice strong {
    font-size: 13px;
  }

  .selector-head {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .player-selector {
    min-width: 0;
    width: 100%;
  }

  .player-selector select {
    max-width: 100%;
  }

  .team-selector {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-height: none;
    overflow: hidden;
  }

  .team-token {
    width: auto !important;
    min-width: 0;
    min-height: 78px;
    flex: 0 0 auto !important;
    padding: 8px 3px;
    touch-action: manipulation;
  }

  .team-token img {
    width: 34px;
    height: 34px;
  }

  .team-token small {
    line-height: 1.15;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .hero,
  .team-layout,
  .team-roster-stats-layout,
  .content-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .side-rail {
    display: none;
  }

  .player-panel,
  .command-panel,
  .team-feature,
  .section,
  .micro-stack {
    width: 100%;
    min-width: 0;
  }

  .player-basic,
  .metrics,
  .quick-grid,
  .player-stats-grid,
  .team-metrics,
  .team-stats-grid {
    min-width: 0;
  }

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

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

  .data-table {
    display: table;
    table-layout: fixed;
    width: 100%;
    min-width: 0;
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    min-width: 0;
    padding: 8px 5px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .data-table th:nth-child(1),
  .data-table td:nth-child(1) {
    width: 18%;
  }

  .data-table th:nth-child(2),
  .data-table td:nth-child(2) {
    width: 27%;
  }

  .data-table th:nth-child(3),
  .data-table td:nth-child(3) {
    width: 23%;
  }

  .data-table th:nth-child(4),
  .data-table td:nth-child(4) {
    width: 18%;
  }

  .data-table th:nth-child(5),
  .data-table td:nth-child(5) {
    width: 14%;
  }

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

  .team-player-card {
    min-width: 0;
    min-height: 0;
  }

  .team-player-photo {
    width: 100%;
    height: 118px;
    object-fit: contain;
  }

  .team-player-card h4,
  .team-player-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

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

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

  .player-trend-chart-wrap,
  .player-trend-chart {
    width: 100%;
    max-width: 100%;
  }

  .season-records {
    grid-auto-columns: minmax(162px, 68vw);
    grid-auto-flow: column;
    grid-template-columns: none !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
  }

  .season-record-medal {
    min-height: 132px;
    scroll-snap-align: start;
  }

  .position-chart {
    width: 100%;
    overflow-x: auto;
  }

  .position-chart svg {
    min-width: 620px;
  }

  .position-side {
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .shell {
    padding-left: 7px;
    padding-right: 7px;
  }

  .team-token {
    padding-left: 2px;
    padding-right: 2px;
  }

  .team-token img {
    width: 30px;
    height: 30px;
  }

  .team-token small {
    font-size: 13px;
  }

  .map-widgets,
  .weapons,
  .team-roster-mini-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .brand-title span {
    display: none;
  }

  .brand-title strong {
    display: block;
    max-width: 172px;
    overflow: hidden;
    color: var(--ink, #f4f2ed);
    font-size: clamp(13px, 3.6vw, 15px);
    font-weight: 1000;
    letter-spacing: .025em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-title strong::after {
    content: none;
  }

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

  .selection-flow__grid:not(.selection-flow__grid--players) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .team-token {
    grid-template-rows: 34px minmax(30px, auto);
  }
}

/* TASK-970 final cascade ownership: later legacy compact layers must not
   recombine the brand or hide the menu label. */
@media (max-width: 760px) {
  .topbar {
    min-height: 64px !important;
    height: 64px !important;
  }

  .ffws-logo {
    flex: 0 0 94px !important;
    width: 94px !important;
    height: 46px !important;
  }

  .brand-title strong {
    display: block !important;
    max-width: none !important;
    overflow: visible !important;
    color: var(--ink, #f4f2ed) !important;
    font-size: 13px !important;
    font-weight: 1000 !important;
    letter-spacing: .055em !important;
    line-height: 1 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .brand-title strong::after {
    content: none !important;
    display: none !important;
  }

  .brand-title span {
    display: block !important;
    margin: 3px 0 0 !important;
    overflow: visible !important;
    color: var(--gold, #f7bd22) !important;
    font-size: 13px !important;
    font-weight: 1000 !important;
    line-height: 1 !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .nav-area.is-open > .tabs .tab {
    display: grid;
    place-items: center;
    font-weight: 1000;
    text-align: center;
  }

  .nav-area.is-open > .theme-toggle .theme-toggle-label {
    position: static !important;
    order: -1;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    font-weight: 1000;
    text-align: left;
    white-space: nowrap !important;
  }

  .nav-area.is-open > .theme-toggle svg {
    position: absolute !important;
    inset: 50% 12px auto auto !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 390px) {
  .ffws-logo {
    flex-basis: 84px !important;
    width: 84px !important;
    height: 44px !important;
  }

  .brand-title strong {
    font-size: 13px !important;
  }

  .brand-title span {
    font-size: 13px !important;
  }
}

/* TASK-1341: contain the player identity without shrinking unrelated titles. */
@media (max-width: 760px) {
  .player-panel .identity {
    min-width: 0;
  }

  .player-panel .identity h1 {
    max-width: 100%;
    font-size: clamp(42px, 14vw, 64px);
    line-height: .82;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* TASK-1107 — responsive corrective layer.  This file loads after the document
   stylesheet, so these rules deliberately own only narrow/mobile adaptations. */
body.light .brand-title strong,
body.light .brand-title span {
  color: #17191d;
}

@media (max-width: 760px) {
  .topbar {
    gap: 8px;
    min-height: 64px;
  }

  .brand-lockup {
    min-width: 0;
  }

  .brand-title {
    min-width: 0;
  }

  .brand-title strong {
    font-size: clamp(13px, 3.4vw, 17px);
  }

  .brand-title span,
  .topbar nav button,
  .theme-button {
    font-size: 13px;
  }

  .topbar .tab,
  .topbar .theme-toggle {
    font-size: 13px !important;
  }

  .selection-flow {
    box-sizing: border-box;
    min-height: calc(100dvh - 64px);
    padding: 8px 0 10px;
  }

  .selection-flow__panel {
    box-sizing: border-box;
    min-height: calc(100dvh - 82px);
    padding: clamp(12px, 3vh, 22px) 10px 10px;
  }

  .selection-flow__eyebrow,
  .selection-flow__grid:not(.selection-flow__grid--players) .selection-choice--team strong,
  .selection-choice__name,
  .selection-choice__country,
  .selection-flow__copy {
    font-size: 13px;
  }

  .selection-flow__title {
    font-size: clamp(26px, 9vw, 40px);
  }

  body[data-selection-stage="player"] {
    overflow: hidden;
  }

  body[data-selection-stage="player"] .selection-flow {
    height: 100dvh;
    min-height: 0;
    padding: 68px 0 10px;
  }

  body[data-selection-stage="player"] .selection-flow__panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
  }

  body[data-selection-stage="player"] .selection-flow__header {
    margin-bottom: 4px;
  }

  body[data-selection-stage="player"] .selection-flow__grid--players {
    align-items: end;
    display: grid !important;
    grid-auto-rows: minmax(0, 1fr);
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    height: 100%;
    margin: 0 auto;
    max-width: 640px;
    min-height: 0;
    overflow: visible;
    padding: 0 4px;
  }

  body[data-selection-stage="player"] .selection-choice--player {
    align-self: end;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  body[data-selection-stage="player"] .selection-choice--player .selection-choice__visual {
    height: calc(100% - 72px);
    min-height: 112px;
  }

  body[data-selection-stage="player"] .selection-choice--player .selection-choice__visual img {
    height: 100%;
    max-width: 146%;
    object-position: center bottom;
  }

  body[data-selection-stage="player"] .selection-choice--player .selection-choice__identity {
    gap: 2px;
    min-height: 72px;
    padding: 3px 1px 0;
  }

  body[data-selection-stage="player"] .selection-choice--player .selection-choice__name {
    font-size: clamp(13px, 3.4vw, 15px);
  }

  body[data-selection-stage="player"] .selection-choice--player .selection-choice__country {
    font-size: 13px;
  }

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

  .team-player-card {
    min-height: 392px;
    padding: 10px;
  }

  .team-player-card h4 {
    font-size: clamp(17px, 4.6vw, 21px);
    line-height: 1.05;
  }

  .team-player-photo {
    top: 5px;
    right: 50%;
    bottom: auto;
    width: min(118px, 78%);
    height: 136px;
    opacity: 1;
    transform: translateX(50%);
  }

  .team-player-card > div:not(.team-player-stats) {
    box-sizing: border-box;
    max-width: 100%;
    padding-top: 138px;
    text-align: center;
  }

  .team-player-meta {
    justify-content: center;
    margin-top: 5px;
  }

  .team-player-stats {
    bottom: 10px;
    left: 10px;
    right: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 9px;
  }

  .team-player-stats small,
  .team-player-stats strong,
  .team-stats-grid small,
  .team-stats-grid strong {
    font-size: 13px;
  }

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

  .team-performance-chart {
    min-height: 166px;
  }

  .position-chart {
    aspect-ratio: auto;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding: 48px 8px 8px;
  }

  .position-chart svg {
    display: block;
    height: 300px;
    min-width: 0;
    width: 100%;
  }

  .weapon-meta strong,
  .weapon-meta small,
  .metric span {
    font-size: 13px;
  }

  .metric b { font-size: 24px; }
  .map-card h4 { font-size: 20px; }
}

@media (max-width: 400px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-title span {
    display: none;
  }

  .topbar nav {
    gap: 4px;
  }

  .topbar nav button,
  .theme-button {
    min-height: 40px;
    padding-inline: 8px;
  }

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

  .team-performance-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* TASK-970: owner-annotated mobile home composition. */
@media (max-width: 760px) {
  .topbar {
    min-height: 64px;
    height: 64px;
  }

  .ffws-logo {
    flex: 0 0 94px;
    width: 94px;
    height: 46px;
  }

  .brand-title {
    display: grid;
    align-content: center;
    gap: 3px;
    overflow: visible;
  }

  .brand-title strong,
  .brand-title strong::after {
    content: none;
    display: block;
    max-width: none;
    overflow: visible;
    color: var(--ink, #f4f2ed);
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: .055em;
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
  }

  .brand-title span {
    display: block !important;
    margin: 0;
    overflow: visible;
    color: var(--gold, #f7bd22) !important;
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: .06em;
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
  }

  .nav-area.is-open > .tabs .tab {
    justify-content: center;
    font-weight: 1000;
    text-align: center;
  }

  .nav-area.is-open > .theme-toggle {
    position: absolute;
    justify-content: flex-start;
    padding-left: 14px;
    padding-right: 46px;
    text-align: left;
  }

  .nav-area.is-open > .theme-toggle .theme-toggle-label {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    font-weight: 1000;
    text-align: left;
    white-space: nowrap;
  }

  .nav-area.is-open > .theme-toggle svg {
    position: absolute;
    inset: 50% 12px auto auto;
    transform: translateY(-50%);
  }

  body[data-selection-stage="home"] .selection-flow__header {
    gap: 5px;
    padding-bottom: 4px;
  }

  body[data-selection-stage="home"] .selection-flow__eyebrow {
    color: var(--gold, #f7bd22);
    font-size: clamp(15px, 4vw, 18px);
  }

  body[data-selection-stage="home"] .selection-flow h2 {
    font-size: clamp(32px, 9vw, 40px);
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
  }

  body[data-selection-stage="home"] .selection-entry {
    min-width: 0;
    min-height: 330px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 7px 16px;
    overflow: hidden;
  }

  body[data-selection-stage="home"] .selection-entry__visual {
    width: 100%;
    height: 248px;
  }

  body[data-selection-stage="home"] .selection-entry strong {
    position: relative;
    z-index: 3;
    width: 100%;
    font-size: clamp(16px, 4.8vw, 21px);
    font-weight: 1000;
    text-align: center;
  }

  body[data-selection-stage="home"] .selection-flow__copy {
    margin-top: 8px;
    color: #fff;
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 1000;
  }
}

@media (max-width: 390px) {
  .ffws-logo {
    flex-basis: 84px;
    width: 84px;
    height: 44px;
  }

  .brand-title strong,
  .brand-title strong::after {
    font-size: 13px;
  }

  .brand-title span {
    font-size: 13px;
  }

  body[data-selection-stage="home"] .selection-entry {
    min-height: 308px;
  }

  body[data-selection-stage="home"] .selection-entry__visual {
    height: 226px;
  }
}

@media (max-width: 480px) {
  .ffws-logo {
    flex: 0 0 78px;
    width: 78px;
    height: 34px;
  }

  .brand-lockup {
    gap: 7px;
  }

  .brand-title strong {
    max-width: 140px;
    font-size: var(--statsd-font-min);
    line-height: 1.05;
    white-space: normal;
    text-wrap: balance;
  }

  .brand-title strong::after {
    content: none;
  }
}

/* TASK-1108 / TASK-20000036 — compact layouts retain the official 13 px floor and
   reserve a stable header/selection frame before the first paint. */
@media (min-width: 761px) and (max-width: 1366px) {
  .basic-item span,
  .metric span,
  .metric small,
  .asset-tile-label,
  .player-stats-head strong,
  .player-stats-head span,
  .player-stat-item span,
  .team-performance-axis,
  .team-performance-value {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 4px;
    padding-inline: 7px;
  }

  .brand-lockup {
    min-width: 0;
    overflow: hidden;
  }

  .brand-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .brand-title strong {
    max-width: 100%;
  }

  .nav-area {
    flex: 0 0 auto;
    gap: 4px;
  }

  .tabs .tab {
    min-width: 62px;
    padding-inline: 7px;
  }

  .theme-toggle {
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .theme-toggle svg { inset: 50% auto auto 50%; }

  body[data-selection-stage="team"] .selection-flow {
    padding: 68px 0 10px;
  }

  .selection-flow__panel {
    width: calc(100% - 16px);
    margin-inline: auto;
  }

  body[data-selection-stage="team"] .selection-flow__panel {
    height: calc(100dvh - 84px);
  }

  body[data-selection-stage="team"] .selection-flow__grid:not(.selection-flow__grid--players) {
    padding-bottom: 8px;
  }

  body[data-selection-stage="team"] .selection-choice--team {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  body[data-selection-stage="team"] .selection-choice--team strong,
  .selection-flow__eyebrow,
  .selection-flow__copy {
    font-size: 13px;
  }

  body[data-selection-stage="player"] .selection-flow h2,
  body[data-selection-stage="loading-player"] .selection-flow h2 {
    font-size: clamp(20px, 5.6vw, 24px);
  }

  .position-chart {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .position-chart svg {
    display: block;
    height: 300px;
    min-width: 0;
    width: 100%;
  }

  .team-performance-chart svg {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .team-player-card {
    min-height: 392px;
  }

  .team-player-card small,
  .team-player-meta span,
  .team-player-stats span,
  .team-player-stats b {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .tabs .tab {
    min-width: 58px;
    padding-inline: 5px;
  }

  .brand-title strong::after {
    font-size: 13px;
  }

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

/* TASK-1305: readable mobile data, map identity and centered roster details. */
@media (max-width: 760px) {
  .player-flag-block {
    padding-left: 0;
    border-left: 0;
  }

  .map-card {
    min-height: 320px;
    grid-template-rows: auto minmax(108px, 1fr) auto;
  }

  .map-card h4 {
    margin-bottom: 18px;
    font-size: clamp(20px, 5.4vw, 24px);
    line-height: 1;
  }

  .map-stats { margin-top: auto; }

  .metric span,
  .metric small,
  .team-player-stats span { font-size: 13px; }

  .metric b { font-size: clamp(24px, 7vw, 32px); }
  .team-player-stats b { font-size: 16px; }

  .player-trend-stage > h3,
  .team-performance-chart h3 { font-size: 13px; }

  .player-trend-chart,
  .team-performance-chart svg { height: 120px; }

  .team-player-card > div:not(.team-player-stats) {
    max-width: 100%;
    text-align: center;
  }

  .team-player-meta { justify-content: center; }
}

@media (max-width: 370px) {
  .ffws-logo {
    flex-basis: 58px;
    width: 58px;
  }

  .brand-lockup { gap: 4px; }

  .brand-title strong::after {
    font-size: 13px;
    letter-spacing: 0;
  }

  .tabs .tab {
    min-width: 52px;
    padding-inline: 3px;
    font-size: 13px;
  }
}

/* STATSD-UI-80: ordered podium with player-led imagery and facial table crops. */
.ranking-podium[data-entity="players"] {
  min-height: 330px;
  align-items: stretch;
}

.ranking-podium[data-entity="players"] .podium-card {
  min-height: 284px;
  grid-template-rows: minmax(152px, 1fr) auto auto auto;
  align-content: end;
  padding-top: 12px;
}

.ranking-podium[data-entity="players"] .podium-card img {
  align-self: end;
  width: clamp(118px, 12vw, 158px);
  height: clamp(148px, 14vw, 182px);
  object-fit: contain;
  object-position: center bottom;
}

.ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
  width: clamp(136px, 14vw, 176px);
  height: clamp(164px, 16vw, 198px);
}

.ranking-entity--players {
  min-height: 48px;
}

.ranking-entity--players img {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(247, 189, 34, .38);
  background: rgba(255, 255, 255, .035);
  object-fit: cover;
  object-position: 50% 12%;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .34));
}

body.light .ranking-entity--players img {
  border-color: rgba(247, 189, 34, .44);
  background: rgba(0, 0, 0, .035);
}

@media (max-width: 760px) {
  .ranking-podium[data-entity="players"] {
    min-width: 720px;
    min-height: 310px;
  }

  .ranking-podium[data-entity="players"] .podium-card {
    min-height: 264px;
    grid-template-rows: minmax(142px, 1fr) auto auto auto;
  }

  .ranking-podium[data-entity="players"] .podium-card img {
    width: 124px;
    height: 154px;
  }

  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    width: 138px;
    height: 170px;
  }

  .ranking-entity--players img {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
}

/* TASK-1340: preserve the desktop roster composition on compact screens. */
@media (max-width: 480px) {
  .team-roster-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-roster-section .team-metrics { margin-top: 16px; }

  .team-player-card {
    min-height: 300px;
    padding: 14px;
  }

  .team-player-card:not(.vacant) .team-player-photo {
    top: 8px;
    right: 6px;
    bottom: auto;
    width: min(48%, 160px);
    height: 190px;
    object-position: right top;
    transform: none;
  }

  .team-player-card:not(.vacant) > div:not(.team-player-stats) {
    max-width: 52%;
    padding-top: 4px;
    text-align: left;
  }

  .team-player-card:not(.vacant) .team-player-meta {
    justify-content: flex-start;
    margin-top: 8px;
  }

  .team-player-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 10px;
  }
}

/* TASK-970 final cascade guard. */
@media (max-width: 760px) {
  .topbar { min-height: 64px !important; height: 64px !important; }
  .ffws-logo { flex: 0 0 94px !important; width: 94px !important; height: 46px !important; }
  .brand-title strong {
    display: block !important; max-width: none !important; overflow: visible !important;
    color: var(--ink, #f4f2ed) !important; font-size: 13px !important;
    font-weight: 1000 !important; letter-spacing: .055em !important; line-height: 1 !important;
    text-overflow: clip !important; white-space: nowrap !important;
  }
  .brand-title strong::after { content: none !important; display: none !important; }
  .brand-title span {
    display: block !important; margin: 3px 0 0 !important; overflow: visible !important;
    color: var(--gold, #f7bd22) !important; font-size: 13px !important;
    font-weight: 1000 !important; line-height: 1 !important;
    text-overflow: clip !important; white-space: nowrap !important;
  }
  .nav-area.is-open > .tabs .tab {
    display: grid; place-items: center; font-weight: 1000; text-align: center;
  }
  .nav-area.is-open > .theme-toggle .theme-toggle-label {
    position: static !important; order: -1; display: block !important;
    width: auto !important; height: auto !important; margin: 0 !important;
    overflow: visible !important; clip: auto !important; font-weight: 1000;
    text-align: left; white-space: nowrap !important;
  }
  .nav-area.is-open > .theme-toggle svg {
    position: absolute !important; inset: 50% 12px auto auto !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 390px) {
  .ffws-logo { flex-basis: 84px !important; width: 84px !important; height: 44px !important; }
  .brand-title strong { font-size: 13px !important; }
  .brand-title span { font-size: 13px !important; }
}

/* TASK-971: owner mobile corrections and restored 2026-08-11 glass recipe. */
.selection-entry,
body[data-selection-stage="team"] .selection-choice--team,
body.light[data-selection-stage="team"] .selection-choice--team {
  border: 1px solid var(--statsd-glass-line) !important;
  background: var(--statsd-glass-fill) !important;
  box-shadow: var(--statsd-glass-shadow) !important;
  backdrop-filter: var(--statsd-glass-filter) !important;
  -webkit-backdrop-filter: var(--statsd-glass-filter) !important;
}

.selection-entry:hover,
.selection-entry:focus-visible,
body[data-selection-stage="team"] .selection-choice--team:hover,
body[data-selection-stage="team"] .selection-choice--team:focus-visible {
  background: rgba(247, 189, 34, .13) !important;
  box-shadow: inset 0 0 0 1px rgba(247, 189, 34, .64) !important;
}

.team-roster-section,
.team-roster-stats-section {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible;
}

.team-roster-grid,
.team-roster-stats-layout { padding: 0 !important; }

.team-metrics .metric { background: var(--statsd-glass-fill) !important; }

@media (max-width: 760px) {
  .brand-lockup { align-items: center !important; }
  .brand-title {
    align-self: center !important;
    display: grid !important;
    align-content: center !important;
    min-height: 46px;
  }
  .brand-title strong { font-size: 14px !important; }
  .brand-title span { margin-top: 2px !important; font-size: 13px !important; }

  body[data-selection-stage="home"] .selection-flow__header { gap: 0 !important; }
  body[data-selection-stage="home"] .selection-flow__title-line {
    min-height: 0 !important;
    margin-top: -10px;
  }
  body[data-selection-stage="home"] .selection-flow__eyebrow {
    margin-bottom: -2px !important;
    font-size: clamp(18px, 4.8vw, 21px) !important;
  }
  body[data-selection-stage="home"] .selection-flow__copy {
    color: #fff !important;
    font-size: clamp(20px, 5.4vw, 24px) !important;
    line-height: 1.05 !important;
  }

  .team-feature-rank { margin-bottom: 14px; gap: 5px; }
  .team-feature-rank b { font-size: 46px !important; }

  .team-player-card:not(.vacant) > div:not(.team-player-stats) {
    display: grid !important;
    align-content: center !important;
    min-height: 190px;
    padding-top: 0 !important;
    text-align: center !important;
  }
  .team-player-card:not(.vacant) .team-player-meta {
    justify-content: center !important;
    margin-top: 6px !important;
  }
  .team-player-card small { font-size: 14px !important; }
  .team-player-card h4 { font-size: clamp(20px, 5.5vw, 24px) !important; }
  .team-player-real-name { font-size: 13px !important; }
  .team-player-meta span { font-size: 13px !important; }
}

@media (max-width: 390px) {
  .brand-title strong { font-size: 13px !important; }
  .brand-title span { font-size: 13px !important; }
  .tabs .tab { font-size: 13px !important; }
}

/* STATSD-UI-65: Fixture uses one visual surface per section. */
#season-view-fixture {
  --fixture-divider: rgba(247, 189, 34, .22);
}

#season-view-fixture .fixture-overview-toolbar {
  margin: 0 0 18px;
}

#season-view-fixture .fixture-grid {
  gap: 28px;
  margin-top: 0;
}

#season-view-fixture .fixture-journey-view {
  gap: 28px;
}

#season-view-fixture .fixture-card,
#season-view-fixture .fixture-section,
#season-view-fixture .fixture-global-maps,
#season-view-fixture .fixture-weapon-usage,
#season-view-fixture .fixture-map-top {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#season-view-fixture .fixture-card-head,
#season-view-fixture .fixture-section-head,
#season-view-fixture .fixture-map-top > header {
  min-height: 58px;
  padding: 10px 2px 11px;
  border-bottom: 1px solid var(--fixture-divider);
  background: transparent;
}

#season-view-fixture .fixture-global-map-list,
#season-view-fixture .fixture-weapon-usage-list,
#season-view-fixture .fixture-map-top-grid,
#season-view-fixture .fixture-week-grid {
  padding: 12px 0 0;
}

#season-view-fixture .fixture-global-map-list {
  gap: 0;
}

#season-view-fixture .fixture-global-map-item {
  min-height: 98px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

#season-view-fixture .fixture-global-map-item:last-child {
  border-bottom: 0;
}

#season-view-fixture .fixture-weapon-usage-list {
  gap: 0;
}

#season-view-fixture .fixture-weapon-usage-card {
  border: 0;
  border-left: 1px solid var(--line-soft);
  background: transparent;
}

#season-view-fixture .fixture-weapon-usage-card:first-child {
  border-left: 0;
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-profile {
  background: linear-gradient(100deg, rgba(247, 189, 34, .08), transparent 44%);
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-media {
  margin-inline: 0;
  border: 0;
  border-bottom: 2px solid var(--gold);
  background:
    radial-gradient(circle at 50% 32%, rgba(247, 189, 34, .13), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}

#season-view-fixture .fixture-mvp-stat {
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
}

#season-view-fixture .fixture-mvp-stat:nth-child(even) {
  border-left: 1px solid var(--line-soft);
}

#season-view-fixture .fixture-mvp-stat.primary {
  border-top-color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold);
}

#season-view-fixture .fixture-maps-layout {
  gap: 22px;
}

#season-view-fixture .fixture-map-top-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

#season-view-fixture .fixture-map-top-card,
#season-view-fixture .fixture-map-top-card:first-child {
  min-height: 68px;
  grid-template-columns: 30px 56px minmax(0, 1fr) auto;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: start;
  gap: 10px;
  padding: 7px 4px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

#season-view-fixture .fixture-map-top-card:last-child {
  border-bottom: 0;
}

#season-view-fixture .fixture-map-top-rank {
  position: static;
  color: var(--muted);
  font-size: 16px;
}

#season-view-fixture .fixture-map-top-card:first-child .fixture-map-top-rank {
  color: var(--gold);
}

#season-view-fixture .fixture-map-top-card img {
  width: 50px;
  height: 50px;
}

#season-view-fixture .fixture-map-top-card strong {
  margin: 0;
  overflow: visible;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
}

#season-view-fixture .fixture-map-top-card b {
  margin: 0;
  font-size: 22px;
  text-align: right;
  white-space: nowrap;
}

#season-view-fixture .fixture-week-grid {
  grid-template-columns: minmax(300px, .62fr) minmax(0, 1.38fr);
  gap: 18px;
}

#season-view-fixture .fixture-week-winner {
  border: 0;
  border-right: 1px solid var(--fixture-divider);
  background: linear-gradient(135deg, rgba(247,189,34,.13), transparent 62%);
}

#season-view-fixture .fixture-week-kpis div,
#season-view-fixture .fixture-week-best-map {
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
}

#season-view-fixture .fixture-week-kpis div + div {
  border-left: 1px solid var(--line-soft);
}

#season-view-fixture .fixture-week-player {
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 150px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(115deg, rgba(247,189,34,.075), transparent 50%);
}

#season-view-fixture .fixture-week-player > img {
  width: 118px;
  height: 154px;
  object-fit: contain;
  object-position: center bottom;
  background: none;
  transform: translateY(8px) scale(1.18);
  transform-origin: center bottom;
}

#season-view-fixture .fixture-week-player.is-open {
  border: 0;
  border-bottom: 1px dashed var(--line-soft);
  background: transparent;
}

@media (max-width: 1180px) {
  #season-view-fixture .fixture-week-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #season-view-fixture .fixture-week-winner {
    border-right: 0;
    border-bottom: 1px solid var(--fixture-divider);
  }
}

@media (max-width: 760px) {
  #season-view-fixture .fixture-overview-toolbar {
    margin-bottom: 14px;
  }

  #season-view-fixture .fixture-grid,
  #season-view-fixture .fixture-journey-view {
    gap: 22px;
  }

  #season-view-fixture .fixture-card-head,
  #season-view-fixture .fixture-section-head,
  #season-view-fixture .fixture-map-top > header {
    align-items: flex-start;
    padding-inline: 0;
  }

  #season-view-fixture .fixture-weapon-usage-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #season-view-fixture .fixture-weapon-usage-card,
  #season-view-fixture .fixture-weapon-usage-card:first-child {
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  #season-view-fixture .fixture-weapon-usage-card:last-child {
    border-bottom: 0;
  }

  #season-view-fixture .fixture-week-player {
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 158px;
  }

  #season-view-fixture .fixture-week-player > img {
    width: 126px;
    height: 164px;
  }
}

/* TASK-972: compact home cards and clean assets. */
.selection-entry {
  transition: border-color 180ms ease, background-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

.selection-entry:hover,
.selection-entry:focus-visible,
.selection-entry:active,
.selection-entry.is-selected,
.selection-entry[aria-pressed="true"] {
  border-color: rgba(247, 189, 34, .92) !important;
  background: rgba(247, 189, 34, .13) !important;
  box-shadow: inset 0 0 0 1px rgba(247, 189, 34, .72),
    0 14px 32px rgba(0, 0, 0, .24) !important;
  transform: translateY(-3px);
}

.selection-entry__player-placeholder {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

@media (max-width: 760px) {
  .topbar { padding-right: 13px !important; }

  body[data-selection-stage="home"] .selection-flow__panel {
    min-height: 0 !important;
    align-content: start !important;
    grid-template-rows: auto auto auto !important;
  }

  body[data-selection-stage="home"] .selection-flow__header {
    align-content: end !important;
    grid-template-rows: max-content max-content !important;
    gap: 0 !important;
  }

  body[data-selection-stage="home"] .selection-flow__eyebrow {
    align-self: end !important;
    margin: 0 0 -1px !important;
    line-height: 1 !important;
  }

  body[data-selection-stage="home"] .selection-flow__title-line {
    margin-top: 0 !important;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    align-items: start !important;
  }

  body[data-selection-stage="home"] .selection-entry {
    align-self: start !important;
    align-content: start !important;
    min-height: 0 !important;
    height: auto !important;
    grid-template-rows: auto auto !important;
  }

  body[data-selection-stage="home"] .selection-entry__visual {
    height: 248px !important;
  }

  body[data-selection-stage="home"] .selection-entry__team-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 2px 8px;
  }

  body[data-selection-stage="home"] .selection-entry__team-logo {
    width: clamp(30px, 9vw, 42px);
    height: clamp(30px, 9vw, 42px);
  }
}

@media (max-width: 390px) {
  body[data-selection-stage="home"] .selection-entry__visual {
    height: 226px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .selection-entry {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* TASK-1618 / STATSD-UI-28: restore the approved transparent glass recipe. */
:root {
  --statsd-glass-fill: rgba(255, 255, 255, .018);
  --statsd-glass-fill-hover: rgba(247, 189, 34, .13);
  --statsd-glass-line: var(--line);
  --statsd-glass-line-soft: var(--line-soft);
  --statsd-glass-shadow: none;
  --statsd-glass-shadow-compact: none;
  --statsd-glass-filter: none;
}

/* Structural wrappers stay in the DOM but no longer draw a second box. */
.command-panel,
.weapons,
.content-grid > .section,
.team-roster-section,
.team-roster-stats-section,
.season-positions {
  border: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.map-widgets,
.metrics {
  border: 0;
}

/* Leaf cards use the effective first-menu recipe: 1.8% white and no veil. */
.selection-entry,
body[data-selection-stage="team"] .selection-choice--team,
.metric,
.asset-tile,
.player-stats-panel,
.weapon,
.player-trend-stage,
.season-records-card,
.team-feature,
.team-player-card,
.team-performance-chart,
.team-stats-panel,
.position-chart {
  border-color: var(--statsd-glass-line);
  background: var(--statsd-glass-fill) !important;
  box-shadow: var(--statsd-glass-shadow-compact);
  backdrop-filter: var(--statsd-glass-filter);
  -webkit-backdrop-filter: var(--statsd-glass-filter);
}

.selection-entry,
body[data-selection-stage="team"] .selection-choice--team {
  box-shadow: var(--statsd-glass-shadow) !important;
}

.selection-entry:hover,
.selection-entry:focus-visible,
.selection-entry:active,
.selection-entry.is-selected,
.selection-entry[aria-pressed="true"],
body[data-selection-stage="team"] .selection-choice--team:hover,
body[data-selection-stage="team"] .selection-choice--team:focus-visible {
  background: var(--statsd-glass-fill-hover) !important;
}

.metrics > .metric {
  border: 1px solid var(--statsd-glass-line) !important;
  background: var(--statsd-glass-fill) !important;
  box-shadow: var(--statsd-glass-shadow-compact);
}

.player-stats-head,
.player-stats-grid,
.player-stat-item,
.map-stats,
.season-record-medal,
.team-stat-item {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.player-stat-item,
.team-stat-item,
.season-record-medal {
  border-color: var(--statsd-glass-line-soft);
}

.map-stats {
  border: 0;
}

.season-record-medal {
  border: 0;
  border-top: 1px solid var(--statsd-glass-line-soft);
}

.season-record-medal:first-child {
  border-top: 0;
}

/* TASK-1684: corrective polish only; no new layout or visual language. */
body[data-selection-stage="home"] .selection-flow__copy,
body.light[data-selection-stage="home"] .selection-entry,
body.light[data-selection-stage="home"] .selection-entry strong,
body.light .mobile-menu-toggle,
body.light .nav-area.is-open > .tabs .tab,
body.light .nav-area.is-open > .theme-toggle {
  color: var(--ink) !important;
}

body.light .team-player-card::after {
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--panel-2) 52%, transparent) 42%,
    var(--panel-2) 96%
  );
}

body[data-selection-stage="dashboard"] .latam-flag-sweep {
  opacity: .14;
}

.selection-flow.is-player-loading .selection-flow__loader {
  position: fixed;
  z-index: 70;
  top: var(--selection-loader-top, calc(50% + 120px));
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 761px) {
  .team-player-card small,
  .team-player-real-name,
  .team-player-meta span,
  .team-player-stats span,
  .team-player-stats b {
    font-size: 13px;
  }
}

@media (min-width: 1367px) {
  .hero {
    grid-template-columns: minmax(320px, 450px) minmax(0, 1fr);
  }

  .hero .side-rail {
    display: none;
  }
}

@media (max-width: 760px) {
  .player-stat-item {
    align-items: start;
  }

  .player-stat-item span {
    overflow: visible;
    overflow-wrap: anywhere;
    line-height: 1.12;
    text-overflow: clip;
    white-space: normal;
  }
}

/* TASK-10000031: direct player directory only; dashboards retain their pre-2026-08-18 layout. */
@media (min-width: 761px) and (max-width: 1180px) {
  .selection-flow__grid--all-players { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; column-gap: 24px; row-gap: 38px; }
  .selection-player-group { min-height: 296px; padding-inline: 4px; }
  .selection-player-group__grid { min-height: 260px; }
  .selection-player-group__grid .selection-choice--player { min-height: 252px; }
  .selection-player-group__grid .selection-choice__visual { height: 230px; }
}

@media (max-width: 760px) {
  body[data-selection-stage="players"] .selection-flow { padding: 76px 12px 20px; }
  body[data-selection-stage="players"] .selection-flow__grid.selection-flow__grid--all-players {
    grid-template-columns: 1fr !important;
    gap: 34px;
    padding-bottom: 20px;
  }
  .selection-player-group { min-height: 380px; padding-inline: 8px; }
  .selection-player-group__grid { min-height: 310px; }
  .selection-player-group__grid .selection-choice--player { min-height: 300px; }
  .selection-player-group__grid .selection-choice__visual { height: 276px; }
  .selection-player-group__grid .selection-choice__visual img { width: 160%; transform: scale(1.04); }
  .selection-player-group__backdrop { inset: -28px 1% 52px; opacity: .33; }
  .selection-player-group__backdrop img { width: min(92vw, 400px); height: 110%; }
  .selection-player-group__grid .selection-choice__identity { width: 100%; margin-inline: 0; grid-template-rows: minmax(38px, auto) 16px; }
  .selection-player-group__grid .selection-choice__identity strong { font-size: clamp(13px, 3.8vw, 15px); }
  .selection-player-group__name { margin-top: 18px; padding: 10px 18px 0; font-size: 18px; line-height: 1.2; letter-spacing: .14em; }
}

/* TASK-20000031: preserve the annotated home hierarchy on narrow viewports. */
@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-flow__event-logo {
    width: clamp(96px, 29vw, 124px) !important;
  }

  body[data-selection-stage="home"] .selection-flow__header {
    gap: 7px !important;
    padding-bottom: 0 !important;
  }

  body[data-selection-stage="home"] .selection-flow__eyebrow {
    margin: 0 !important;
    font-size: clamp(32px, 9.8vw, 44px) !important;
    letter-spacing: .035em !important;
    line-height: .86 !important;
  }

  body[data-selection-stage="home"] .selection-flow h2 {
    min-height: 0 !important;
    font-size: clamp(16px, 5vw, 22px) !important;
    letter-spacing: .15em !important;
  }

  body[data-selection-stage="home"] .selection-flow__copy {
    grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr) !important;
    gap: 7px !important;
    width: calc(100% - 16px) !important;
    margin: 12px auto 0 !important;
    font-size: clamp(14px, 4vw, 18px) !important;
    letter-spacing: .07em !important;
    line-height: 1 !important;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    margin-top: 14px !important;
  }
}

/* TASK-20000034: keep the global search usable without covering the viewport. */
@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-search {
    width: min(420px, calc(100% - 32px)) !important;
    margin-top: 11px !important;
  }

  .selection-search__label {
    margin-bottom: 5px;
    font-size: 13px;
  }

  .selection-search__field {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    min-height: 48px;
  }

  .selection-search__input {
    height: 46px;
    font-size: 13px;
    letter-spacing: .02em;
  }

  .selection-search__results {
    max-height: none;
    overflow: visible;
  }

  .selection-search__option {
    height: 48px;
    min-height: 48px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 4px 8px;
  }

  .selection-search__option--player {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 7px;
    padding: 0 8px 0 0;
  }

  .selection-search__media {
    width: 32px;
    height: 32px;
  }

  .selection-search__option--player .selection-search__media {
    width: 70px;
    height: 48px;
  }

  .selection-search__option--team {
    padding-inline: 8px;
  }

  .selection-search__team-line { gap: 8px; }

  .selection-search__option--team .selection-search__media {
    flex-basis: 32px;
  }

  .selection-search__option-copy strong,
  .selection-search__team-name { font-size: 15px; }
  .selection-search__option-copy small { font-size: 13px; }
  .selection-search__team-flag { width: 26px; height: 16px; }

  .selection-search__option--player .selection-search__option-copy strong { font-size: 16px; }
  .selection-search__option--player .selection-search__option-copy small { font-size: 14px; }
  .selection-search__player-line { gap: 7px; }
  .selection-search__player-flag { width: 30px; height: 19px; }

  .selection-search__option-type { display: none; }

  body[data-selection-stage="home"] .selection-flow__copy {
    margin-top: 10px !important;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    margin-top: 12px !important;
  }
}

/* TASK-20000035: compact the home by viewport height; only results may scroll. */
@media (max-width: 760px) {
  body[data-selection-stage="home"] .shell {
    height: 100dvh !important;
    min-height: 0 !important;
    padding: 0 8px !important;
    overflow: hidden !important;
  }

  body[data-selection-stage="home"] .selection-flow {
    height: 100dvh !important;
    min-height: 0 !important;
    padding: 68px 0 8px !important;
    overflow: hidden !important;
  }

  body[data-selection-stage="home"] .selection-flow__panel {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  }

  body[data-selection-stage="home"] .selection-flow__header {
    gap: 4px !important;
  }

  body[data-selection-stage="home"] .selection-flow__event-logo {
    width: clamp(80px, 18dvh, 104px) !important;
  }

  body[data-selection-stage="home"] .selection-flow__eyebrow {
    font-size: clamp(28px, 6dvh, 40px) !important;
  }

  body[data-selection-stage="home"] .selection-flow h2 {
    font-size: clamp(28px, 5dvh, 38px) !important;
  }

  body[data-selection-stage="home"] .selection-search {
    margin-top: 7px !important;
  }

  .selection-search__label {
    margin-bottom: 4px;
  }

  .selection-search__field {
    min-height: 42px;
  }

  .selection-search__input {
    height: 40px;
  }

  body[data-selection-stage="home"] .selection-flow__copy {
    margin-top: 7px !important;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    height: 100% !important;
    min-height: 0 !important;
    margin-top: 8px !important;
    align-items: start !important;
  }

  body[data-selection-stage="home"] .selection-entry {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 260px !important;
    gap: 7px !important;
    padding: 7px 6px 10px !important;
  }

  body[data-selection-stage="home"] .selection-entry__visual {
    height: min(218px, 28dvh) !important;
  }

  body[data-selection-stage="home"] .selection-entry__season-logo {
    width: min(82%, 118px);
  }

}

/* TASK-20000038: compact search; results expand over available home space without a nested scrollbar. */
@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-search__results {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  body[data-selection-stage="home"] .selection-flow {
    padding-top: 64px !important;
  }

  body[data-selection-stage="home"] .selection-flow__event-logo {
    width: clamp(72px, 15dvh, 90px) !important;
  }

  body[data-selection-stage="home"] .selection-flow__eyebrow {
    font-size: clamp(25px, 5.6dvh, 34px) !important;
  }

  body[data-selection-stage="home"] .selection-entry__visual {
    height: min(170px, 25dvh) !important;
  }
}

/* STATSD-UI-124: the official Free Fire short logo sits beside the home title. */
.selection-flow__event-line {
  display: contents;
}

body[data-selection-stage="home"] .selection-flow__event-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 22px);
  width: 100%;
}

body[data-selection-stage="home"] .selection-flow__event-logo {
  display: block;
  flex: 0 0 auto;
  width: clamp(92px, 8vw, 126px);
  height: auto;
  aspect-ratio: 2383 / 2026;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}

body[data-selection-stage="home"] .selection-flow__event-line .selection-flow__eyebrow {
  margin: 0 !important;
}

@media (min-width: 761px) and (max-height: 700px) {
  body[data-selection-stage="home"] .selection-flow__event-logo {
    width: clamp(82px, 13vh, 98px);
  }
}

@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-flow__event-line {
    gap: 9px;
  }

  body[data-selection-stage="home"] .selection-flow__event-logo {
    width: clamp(68px, 19vw, 88px) !important;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  body[data-selection-stage="home"] .selection-flow__event-logo {
    width: clamp(64px, 10vh, 78px) !important;
  }
}

/* STATSD-UI-66: annotated player-dashboard readability and chart geometry. */
.asset-tile-image strong {
  left: 24px;
  right: 24px;
  padding-inline: 8px;
}

.player-stats-panel {
  grid-template-rows: minmax(0, 1fr);
}

.player-stats-grid {
  height: 100%;
}

.player-stat-item {
  gap: 14px;
  padding: 10px 14px;
}

.player-stat-item span {
  overflow: visible;
  color: var(--paper);
  font-size: 14px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.player-stat-item b {
  color: var(--gold);
  font-size: 21px;
  line-height: 1;
}

.weapon {
  grid-template-rows: 76px auto minmax(54px, auto);
}

.weapon-meta {
  align-self: stretch;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.weapon .weapon-meta .label {
  color: var(--paper);
  font-size: 15px;
  letter-spacing: .08em;
}

.weapon .weapon-meta strong {
  color: var(--gold);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: .9;
}

.player-trend-chart {
  width: 100%;
  height: clamp(220px, 24vw, 320px);
  min-height: 220px;
  overflow: visible;
}

.player-trend-axis-line {
  stroke: var(--line);
  stroke-width: 1;
}

.player-trend-axis-tick {
  fill: var(--muted);
  font-family: var(--font-gff-black);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .asset-tile-image strong {
    left: 20px;
    right: 20px;
  }

  .player-stat-item {
    align-items: center;
    padding: 11px 12px;
  }

  .player-stat-item span { font-size: 13px; }
  .player-stat-item b { font-size: 20px; }

  .weapon .weapon-meta strong {
    font-size: clamp(28px, 9vw, 36px);
  }

  .player-trend-chart {
    height: clamp(230px, 70vw, 280px);
    min-height: 230px;
  }
}

/* STATSD-UI-67: Global compacta reutiliza su ancho libre para el Top de armas. */
#season-view-fixture .fixture-global-layout.is-collapsed {
  grid-template-columns: minmax(680px, 860px) 270px minmax(260px, 1fr);
  align-items: start;
  justify-content: stretch;
}

#season-view-fixture .fixture-global-layout.is-collapsed > .fixture-card {
  grid-column: 1;
  grid-row: 1;
}

#season-view-fixture .fixture-global-layout.is-collapsed > .fixture-global-maps {
  grid-column: 2;
  grid-row: 1;
}

#season-view-fixture .fixture-global-layout.is-collapsed > .fixture-weapon-usage {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  align-self: start;
  justify-self: stretch;
}

#season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-list {
  grid-template-columns: minmax(0, 1fr);
}

#season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-card {
  min-height: 104px;
}

@media (min-width: 901px) and (max-width: 1450px) {
  #season-view-fixture .fixture-global-layout.is-collapsed {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    grid-template-areas:
      "global-table global-weapons"
      "global-maps global-maps";
  }

  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-card {
    grid-area: global-table;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-global-maps {
    grid-area: global-maps;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-weapon-usage {
    grid-area: global-weapons;
  }
}

@media (max-width: 900px) {
  #season-view-fixture .fixture-global-layout.is-collapsed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "global-table"
      "global-weapons"
      "global-maps";
  }

  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-card {
    grid-area: global-table;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-global-maps {
    grid-area: global-maps;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-weapon-usage {
    grid-area: global-weapons;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-list,
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-global-map-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-list,
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-global-map-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* STATSD-UI-68: team hover starts after pointer movement and preserves color. */
body[data-selection-stage="team"] .selection-flow__grid:not(.is-team-pointer-ready)
  .selection-choice--team:hover:not(:focus-visible) {
  z-index: auto;
  background: var(--statsd-glass-fill) !important;
  box-shadow: var(--statsd-glass-shadow) !important;
  transform: none;
}

body[data-selection-stage="team"] .selection-flow__grid:not(.is-team-pointer-ready)
  .selection-choice--team:hover:not(:focus-visible) .selection-choice__visual {
  transform: none;
}

body[data-selection-stage="team"] .selection-flow__grid:not(.is-team-pointer-ready)
  .selection-choice--team:hover:not(:focus-visible) strong {
  color: var(--paper);
  font-size: clamp(13px, 1.18vw, 14px);
}

body[data-selection-stage="team"] .selection-flow__grid:not(.is-team-pointer-ready):has(.selection-choice--team:hover)
  .selection-choice--team:not(:hover) img {
  opacity: 1 !important;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .36)) !important;
  transform: none !important;
}

body[data-selection-stage="team"] .selection-flow__grid:not(.is-team-pointer-ready):has(.selection-choice--team:hover)
  .selection-choice--team:not(:hover) strong {
  color: var(--paper) !important;
}

body[data-selection-stage="team"] .selection-flow__grid.is-team-pointer-ready:has(.selection-choice--team:hover)
  .selection-choice--team:not(:hover) img,
body[data-selection-stage="team"] .selection-flow__grid:has(.selection-choice--team:focus-visible)
  .selection-choice--team:not(:focus-visible) img {
  opacity: .7 !important;
  filter: brightness(.8) saturate(.86) drop-shadow(0 8px 12px rgba(0, 0, 0, .36)) !important;
  transform: scale(.96) !important;
}

body[data-selection-stage="team"] .selection-flow__grid.is-team-pointer-ready:has(.selection-choice--team:hover)
  .selection-choice--team:not(:hover) strong,
body[data-selection-stage="team"] .selection-flow__grid:has(.selection-choice--team:focus-visible)
  .selection-choice--team:not(:focus-visible) strong {
  color: rgba(255, 255, 255, .72) !important;
}

.selection-flow.is-team-loading .selection-choice--team:not(.selection-choice--selected) {
  opacity: .62 !important;
  filter: brightness(.72) saturate(.84) !important;
  transform: scale(.97);
}

/* STATSD-UI-69: team dashboard spacing, navigation and responsive chart polish. */
.team-roster-section {
  row-gap: clamp(14px, 1.4vw, 20px);
}

.team-roster-section .team-metrics {
  margin-top: 0 !important;
}

.team-metrics .metric b,
.team-metrics .metric.compact b {
  width: 100%;
  font-size: clamp(22px, 1.85vw, 31px);
  line-height: .92;
  text-align: center;
  white-space: nowrap;
}

.team-performance-chart svg {
  height: clamp(184px, 18vw, 232px);
}

.position-chart {
  height: auto;
}

.position-chart svg {
  height: clamp(252px, 25vw, 340px);
}

@media (max-width: 760px) {
  .brand-area { gap: 7px; }
  .view-back { flex: 0 0 44px; width: 44px; padding: 0; }
  .view-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand-area:has(.view-back:not([hidden])) .ffws-logo { flex-basis: 72px !important; width: 72px !important; }
  .brand-area:has(.view-back:not([hidden])) .brand-title { display: none !important; }

  .team-roster-section { row-gap: 14px; }
  .team-metrics .metric b,
  .team-metrics .metric.compact b { font-size: clamp(23px, 7vw, 32px); }
  .team-performance-chart svg { height: clamp(210px, 58vw, 250px); }
  .position-chart svg { height: clamp(260px, 76vw, 320px); }
}

/* STATSD-UI-70: canonical search remains available in the fixed header. */
@media (min-width: 761px) and (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(210px, .8fr) minmax(200px, 320px) minmax(0, 1fr);
    gap: 12px;
  }

  .header-search__results {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(58px, auto) minmax(112px, 1fr) max-content !important;
    gap: 6px !important;
    overflow: visible;
  }

  .brand-area { min-width: 0; }
  .brand-title { display: none !important; }
  .ffws-logo {
    flex: 0 0 72px !important;
    width: 72px !important;
    height: 44px !important;
  }

  .header-search { min-width: 0; }
  .header-search__field {
    min-height: 44px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }
  .header-search__input {
    height: 42px;
    padding-right: 2px;
    font-size: 13px;
    letter-spacing: 0;
  }
  .header-search__input::placeholder { text-overflow: ellipsis; }
  .header-search__results {
    position: fixed;
    inset: 70px 8px auto;
    width: auto;
    max-height: none;
    overflow: visible;
    transform: none;
  }
}

@media (max-width: 370px) {
  .ffws-logo { flex-basis: 60px !important; width: 60px !important; }
  .header-search__field { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .header-search__input::placeholder { color: transparent; }
}

/* STATSD-UI-71: the light home eyebrow uses the yellow sampled from the official FFWS mark. */
body.light #selectionFlowEyebrow {
  color: var(--ffws-official-yellow) !important;
}

/* STATSD-UI-72: team names never inherit the pale dark-theme dim color in light mode. */
body.light[data-selection-stage="team"] .selection-choice--team strong,
body.light[data-selection-stage="team"] .selection-flow__grid.is-team-pointer-ready:has(.selection-choice--team:hover)
  .selection-choice--team:not(:hover) strong,
body.light[data-selection-stage="team"] .selection-flow__grid:has(.selection-choice--team:focus-visible)
  .selection-choice--team:not(:focus-visible) strong {
  color: var(--paper) !important;
  opacity: 1;
  text-shadow: none;
}

body.light[data-selection-stage="team"] .selection-choice--team:hover strong,
body.light[data-selection-stage="team"] .selection-choice--team:focus-visible strong,
body.light[data-selection-stage="team"] .selection-choice--team.selection-choice--selected strong {
  color: var(--gold) !important;
}

/* STATSD-UI-73: team watermarks remain identifiable on light roster cards. */
body.light .team-player-card .team-player-watermark {
  opacity: .24;
  filter: saturate(1.15) contrast(1.25);
}

@media (max-width: 760px) {
  body.light .team-player-card .team-player-watermark {
    opacity: .21;
  }
}

/* STATSD-UI-74: annotated player identity and season-record composition. */
.player-panel {
  container-type: inline-size;
}

.player-panel::before {
  content: attr(data-team-mark);
  top: 14%;
  left: -4%;
  right: -4%;
  max-width: none;
  overflow-wrap: anywhere;
  color: color-mix(in srgb, var(--team-accent) 14%, transparent);
  font-size: clamp(72px, 25cqw, 126px);
  letter-spacing: -.045em;
  line-height: .78;
  text-align: center;
}

.player-panel .team-row {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.player-panel .team-logo {
  width: 64px;
  height: 64px;
}

.player-panel .team-name {
  max-width: 100%;
  font-size: clamp(19px, 6cqw, 26px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.player-panel .identity h1 {
  max-width: 100%;
  font-size: clamp(42px, 15cqw, 68px);
  line-height: .88;
  letter-spacing: -.025em;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.player-panel[data-nickname-size="compact"] .identity h1 {
  font-size: clamp(38px, 12.5cqw, 58px);
}

.player-panel[data-nickname-size="tight"] .identity h1 {
  font-size: clamp(32px, 10.5cqw, 50px);
}

.season-record-medal__icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 9px 14px rgba(0, 0, 0, .28));
}

@media (min-width: 761px) {
  .season-records-card {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .season-records {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    align-items: stretch;
    gap: 0;
    overflow: hidden;
  }

  .season-record-medal {
    min-width: 0;
    min-height: 0;
    padding: 18px 12px;
    grid-template: "icon" 76px "copy" auto "value" auto / minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    gap: 10px;
    border: 0;
    border-left: 1px solid var(--statsd-glass-line-soft);
    text-align: center;
  }

  .season-record-medal:first-child { border-left: 0; }
  .season-record-medal__icon { grid-area: icon; width: 72px; height: 72px; }
  .season-record-medal__copy { grid-area: copy; align-self: center; }
  .season-record-medal strong { grid-area: value; font-size: clamp(22px, 1.65vw, 28px); }
}

@media (max-width: 760px) {
  .player-panel .identity h1 {
    font-size: clamp(36px, 13cqw, 52px);
  }

  .player-panel[data-nickname-size="compact"] .identity h1 {
    font-size: clamp(32px, 11.5cqw, 46px);
  }

  .player-panel[data-nickname-size="tight"] .identity h1 {
    font-size: clamp(28px, 9.5cqw, 40px);
  }

  .season-record-medal {
    grid-template: "icon copy" auto "icon value" auto / 54px minmax(0, 1fr);
    align-content: center;
    column-gap: 12px;
    text-align: left;
  }

  .season-record-medal__icon { grid-area: icon; width: 54px; height: 54px; }
  .season-record-medal__copy { grid-area: copy; }
  .season-record-medal strong { grid-area: value; }
}

/* STATSD-UI-75: roster cards reserve separate text, portrait and metric zones. */
@media (min-width: 761px) and (max-width: 980px) {
  .team-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 1366px) {
  .team-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-player-card {
    min-height: 268px;
  }

  .team-player-card:not(.vacant) > div:not(.team-player-stats) {
    max-width: 54%;
  }

  .team-player-card:not(.vacant) .team-player-photo {
    right: 4px;
    width: 44%;
  }
}

/* STATSD-UI-76: annotated Rankings simplification and draggable period line. */
.ranking-map-card,
.ranking-map-card-image,
.ranking-map-card-copy {
  border-radius: 0 !important;
}

.ranking-category.active {
  box-shadow: none !important;
}

.ranking-category-icon,
body.light .ranking-category-icon,
.ranking-category.active .ranking-category-icon {
  padding: 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ranking-range-slider {
  --ranking-range-from: 0%;
  --ranking-range-to: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
  padding: 6px 10px 4px;
}

.ranking-range-slider__labels {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.ranking-range-slider__labels output {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 7px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.ranking-range-slider__labels output:last-child {
  justify-items: end;
  text-align: right;
}

.ranking-range-slider__labels output span {
  grid-column: 1 / -1;
  color: var(--gold);
  letter-spacing: .12em;
}

.ranking-range-slider__labels output small {
  color: var(--muted);
  font-size: 14px;
}

.ranking-range-slider__track {
  position: relative;
  min-height: 44px;
  display: grid;
  align-items: center;
}

.ranking-range-slider__rail {
  position: absolute;
  right: 11px;
  left: 11px;
  height: 4px;
  background:
    linear-gradient(to right,
      var(--line) 0 var(--ranking-range-from),
      var(--gold) var(--ranking-range-from) var(--ranking-range-to),
      var(--line) var(--ranking-range-to) 100%);
}

.ranking-range-slider__track input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.ranking-range-slider__track input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.ranking-range-slider__track input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

.ranking-range-slider__track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--page);
  box-shadow: 0 0 0 4px rgba(247, 189, 34, .14);
  cursor: ew-resize;
  pointer-events: auto;
}

.ranking-range-slider__track input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--page);
  box-shadow: 0 0 0 4px rgba(247, 189, 34, .14);
  cursor: ew-resize;
  pointer-events: auto;
}

.ranking-range-slider__track input[type="range"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

@media (max-width: 760px) {
  .ranking-range-slider {
    padding-inline: 4px;
  }

  .ranking-range-slider__labels {
    gap: 8px;
  }

  .ranking-range-slider__labels output {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ranking-range-slider__labels output span {
    grid-column: auto;
  }
}

/* STATSD-UI-77: Jugadores becomes the editorial landscape entry on home. */
body[data-selection-stage="home"] .selection-flow__panel {
  width: min(1120px, calc(100% - 32px));
}

body[data-selection-stage="home"] .selection-flow__grid--home {
  width: min(1120px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 18px;
}

body[data-selection-stage="home"] .selection-entry--jugadores {
  grid-column: 1 / -1;
  min-height: 210px !important;
  height: 210px !important;
  max-height: 210px !important;
  display: grid;
  grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) !important;
  place-items: stretch;
  align-content: stretch !important;
  gap: 26px !important;
  padding: 0 32px 0 0 !important;
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(104deg, rgba(247, 189, 34, .10), transparent 42%),
    var(--statsd-glass-fill) !important;
}

body[data-selection-stage="home"] .selection-entry--jugadores:hover,
body[data-selection-stage="home"] .selection-entry--jugadores:focus-visible,
body[data-selection-stage="home"] .selection-entry--jugadores[aria-pressed="true"] {
  background:
    linear-gradient(104deg, rgba(247, 189, 34, .20), transparent 48%),
    var(--statsd-glass-fill-hover) !important;
}

body[data-selection-stage="home"] .selection-entry--jugadores .selection-entry__visual {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  align-self: stretch;
  background: linear-gradient(90deg, rgba(247, 189, 34, .08), transparent 78%);
}

body[data-selection-stage="home"] .selection-entry--jugadores .selection-entry__player-placeholder {
  width: 100%;
  height: 100%;
  object-position: center bottom;
  transform: scale(1.34);
  transform-origin: 50% 100%;
  filter: brightness(1.12) drop-shadow(0 16px 26px rgba(247, 189, 34, .16));
  -webkit-mask-image: linear-gradient(90deg, #000 0 78%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0 78%, transparent 100%);
}

body[data-selection-stage="home"] .selection-entry__copy {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding-block: 18px;
}

body[data-selection-stage="home"] .selection-entry__copy > strong {
  width: 100%;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: .9;
  letter-spacing: .035em;
}

body[data-selection-stage="home"] .selection-entry__description {
  max-width: 620px;
  color: var(--paper);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 750;
  line-height: 1.35;
}

body[data-selection-stage="home"] .selection-entry__action {
  min-width: 230px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 2px;
  padding: 0 18px;
  background: var(--gold);
  color: #080808;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body[data-selection-stage="home"] .selection-entry__action-arrow {
  font-size: 27px;
  line-height: 1;
}

body[data-selection-stage="home"] .selection-entry--equipos,
body[data-selection-stage="home"] .selection-entry--rankings {
  min-height: 158px !important;
  height: 158px !important;
  max-height: 158px !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  gap: 4px !important;
  padding: 8px 12px 12px !important;
}

body[data-selection-stage="home"] .selection-entry--equipos .selection-entry__visual,
body[data-selection-stage="home"] .selection-entry--rankings .selection-entry__visual {
  height: 108px !important;
}

@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-flow__panel,
  body[data-selection-stage="home"] .selection-flow__grid--home {
    width: 100%;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores {
    min-height: 150px !important;
    height: 150px !important;
    max-height: 150px !important;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    gap: 8px !important;
    padding-right: 10px !important;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores .selection-entry__player-placeholder {
    transform: scale(1.2);
  }

  body[data-selection-stage="home"] .selection-entry__copy {
    gap: 6px;
    padding-block: 8px;
  }

  body[data-selection-stage="home"] .selection-entry__copy > strong {
    font-size: clamp(24px, 8vw, 34px);
  }

  body[data-selection-stage="home"] .selection-entry__description {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-selection-stage="home"] .selection-entry__action {
    width: min(100%, 210px);
    min-width: 0;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 13px;
  }

  body[data-selection-stage="home"] .selection-entry__action-arrow {
    font-size: 22px;
  }

  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 112px !important;
    height: 112px !important;
    max-height: 112px !important;
    padding: 5px 5px 9px !important;
  }

  body[data-selection-stage="home"] .selection-entry--equipos .selection-entry__visual,
  body[data-selection-stage="home"] .selection-entry--rankings .selection-entry__visual {
    height: 76px !important;
  }

  body[data-selection-stage="home"] .selection-entry--equipos > strong,
  body[data-selection-stage="home"] .selection-entry--rankings > strong {
    font-size: clamp(16px, 5vw, 22px);
  }
}

/* STATSD-UI-125: directory nicknames keep isolated single-line bands. */
.selection-player-group__grid .selection-choice--player {
  flex-basis: 21.5%;
  margin-inline: -.9%;
}

.selection-player-group__grid:has(.selection-choice--player:nth-child(6)) .selection-choice--player {
  flex-basis: 18.4%;
}

.selection-player-group__grid .selection-choice__identity {
  min-height: 44px;
  grid-template-rows: 18px 16px;
  gap: 6px;
}

.selection-player-group__grid .selection-choice__identity strong {
  min-height: 18px;
  overflow: visible;
  overflow-wrap: normal;
  font-size: 13px;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-overflow: clip;
  white-space: nowrap;
}

.selection-player-group__backdrop {
  opacity: .4;
}

@media (min-width: 761px) and (max-width: 1365px) {
  .selection-flow__grid--all-players {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .selection-player-group__grid .selection-choice__identity strong {
    width: 116%;
    max-width: 116%;
    transform: scaleX(.76);
    transform-origin: center;
  }
}

@media (max-width: 360px), (max-height: 700px) {
  body[data-selection-stage="home"] .selection-entry--jugadores {
    min-height: 136px !important;
    height: 136px !important;
    max-height: 136px !important;
  }

  body[data-selection-stage="home"] .selection-entry__action {
    min-height: 44px;
  }

  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 98px !important;
    height: 98px !important;
    max-height: 98px !important;
  }

  body[data-selection-stage="home"] .selection-entry--equipos .selection-entry__visual,
  body[data-selection-stage="home"] .selection-entry--rankings .selection-entry__visual {
    height: 64px !important;
  }
}

/* STATSD-UI-89: Temporada reflows tables and podiums for phone widths. */
@media (max-width: 600px) {
  .rankings-panel {
    min-width: 0;
    margin-top: 8px;
  }

  .season-view,
  .rankings-layout,
  .ranking-toolbar,
  .ranking-sidebar,
  .ranking-catalog,
  .ranking-stage,
  .fixture-panel,
  .fixture-global-layout,
  .fixture-journey-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ranking-toolbar-head,
  .ranking-calendar,
  .ranking-catalog-head,
  .ranking-stage-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .ranking-presets {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .ranking-journey-calendar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .ranking-podium-wrap {
    overflow: visible;
  }

  .ranking-podium,
  .ranking-podium[data-entity="players"] {
    width: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    padding: 6px;
  }

  .ranking-podium[data-entity="players"] .podium-card {
    min-width: 0;
    min-height: 238px;
    height: 238px;
    max-height: 238px;
    padding-inline: 6px;
  }

  .ranking-podium[data-entity="players"] .podium-card img,
  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    top: 3px;
    left: 0;
    width: 100%;
    height: 190px;
  }

  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    top: 0;
    height: 202px;
  }

  .ranking-podium[data-entity="players"] .podium-card h4,
  .ranking-podium[data-entity="players"] .podium-card p,
  .ranking-podium[data-entity="players"] .podium-card > div {
    right: 5px;
    left: 5px;
  }

  .ranking-podium[data-entity="players"] .podium-card h4 {
    bottom: 60px;
    font-size: 13px;
  }

  .ranking-podium[data-entity="players"] .podium-card p {
    bottom: 41px;
    font-size: 13px;
  }

  .ranking-podium[data-entity="players"] .podium-card > div {
    bottom: 8px;
  }

  .ranking-podium[data-entity="players"] .podium-card b {
    font-size: clamp(22px, 7vw, 28px);
  }

  .ranking-table-wrap,
  .fixture-table-wrap {
    overflow: visible !important;
    border: 0;
    background: transparent;
  }

  .ranking-table,
  .fixture-table,
  .fixture-global-table,
  .fixture-global-table.is-collapsed,
  .fixture-journey-table {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .ranking-table thead,
  .fixture-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ranking-table tbody,
  .fixture-table tbody {
    width: 100%;
    display: grid;
    gap: 8px;
  }

  .ranking-table tbody tr,
  .fixture-table tbody tr {
    width: 100%;
    min-width: 0;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--statsd-glass-fill);
  }

  .ranking-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-table td,
  .fixture-table td {
    min-width: 0;
    min-height: 58px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 8px 10px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: transparent !important;
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ranking-table td::before,
  .fixture-table td::before {
    content: attr(data-label);
    color: var(--gold);
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
  }

  .ranking-table td[data-ranking-field="rank"],
  .ranking-table td[data-ranking-field="entity"] {
    min-height: 68px;
  }

  .ranking-table td[data-ranking-field="entity"] .ranking-entity,
  .ranking-table td[data-ranking-field="type"] .ranking-team-cell,
  .ranking-table td[data-ranking-field="nationality"] .ranking-nationality {
    min-width: 0;
    white-space: normal;
  }

  .ranking-table td[data-ranking-field="entity"] .ranking-entity > span,
  .ranking-table td[data-ranking-field="type"] .ranking-team-cell > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ranking-table td[colspan] {
    grid-column: 1 / -1;
  }

  .fixture-table tbody tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fixture-table td[data-fixture-field="rank"] {
    grid-column: 1;
    grid-row: 1;
  }

  .fixture-table td[data-fixture-field="team"] {
    grid-column: 2 / -1;
    grid-row: 1;
  }

  .fixture-table td[data-fixture-field="total"] {
    grid-column: 1 / -1;
    min-height: 54px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-right: 0;
  }

  .fixture-table td[data-fixture-field="total"]::before {
    align-self: center;
  }

  .fixture-table td[hidden] {
    display: none !important;
  }

  .fixture-table .fixture-team-cell {
    min-width: 0;
    white-space: normal;
  }

  .fixture-table tbody tr.fixture-team-selected {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
  }

  .fixture-table tbody tr.fixture-team-selected td {
    box-shadow: none !important;
  }

  .fixture-card-head,
  .fixture-section-head {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px;
  }

  .fixture-global-controls {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .fixture-global-toggle {
    min-width: 132px;
  }
}

/* STATSD-UI-88: weekly roster portraits preserve the full head edge. */
#season-view-fixture .fixture-week-player > img {
  align-self: start;
  object-position: center top;
  transform: scale(1.18);
  transform-origin: center top;
}

/* STATSD-UI-86: canonical player content exists visually only after selection. */
body:not([data-selection-stage="dashboard"]) #panel-jugadores {
  display: none !important;
}

/* STATSD-UI-87: best-map identity and metrics occupy independent rows. */
#season-view-fixture .fixture-week-best-map {
  grid-template:
    "preview identity" 48px
    "metrics metrics" minmax(44px, auto)
    / 64px minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  min-height: 108px;
  padding: 8px;
}

#season-view-fixture .fixture-week-best-map > img {
  grid-area: preview;
}

#season-view-fixture .fixture-week-best-map > div:not(.fixture-week-map-metrics) {
  grid-area: identity;
  min-width: 0;
}

#season-view-fixture .fixture-week-best-map > div:not(.fixture-week-map-metrics) strong {
  overflow-wrap: anywhere;
  line-height: 1.1;
}

#season-view-fixture .fixture-week-map-metrics {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

#season-view-fixture .fixture-week-map-metrics > b {
  min-width: 0;
  padding: 7px 8px 0;
  text-align: center;
}

#season-view-fixture .fixture-week-map-metrics > b + b {
  border-left: 1px solid var(--line-soft);
}

#season-view-fixture .fixture-week-map-metrics small {
  overflow-wrap: anywhere;
  white-space: normal;
}

/* STATSD-UI-85: roster copy and chart axes own non-overlapping layout bands. */
@media (min-width: 761px) {
  .team-player-card:not(.vacant) {
    min-height: 300px;
    padding: 14px;
  }

  .team-player-card:not(.vacant) > div:not(.team-player-stats) {
    position: absolute !important;
    top: 64px;
    bottom: 88px;
    left: 14px;
    display: grid;
    align-content: start;
    width: 52%;
    max-width: 52% !important;
    min-width: 0;
  }

  .team-player-card:not(.vacant) .team-player-photo {
    right: 4px;
    bottom: 86px;
    width: 44%;
    height: 190px;
  }

  .team-player-card:not(.vacant) .team-player-stats {
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-height: 66px;
    align-items: start;
  }
}

/* STATSD-UI-83: bounded player podium and face-only ranking thumbnails. */
.ranking-podium[data-entity="players"] {
  min-height: 316px;
  align-items: stretch;
}

.ranking-podium[data-entity="players"] .podium-card {
  min-height: 286px;
  height: 286px;
  max-height: 286px;
  display: block;
  padding: 10px 10px 12px;
  isolation: isolate;
  overflow: hidden;
}

.ranking-podium[data-entity="players"] .podium-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 38% 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 7, 6, .72) 54%, rgba(7, 7, 6, .98) 100%);
}

.ranking-podium[data-entity="players"] .podium-card img {
  position: absolute;
  z-index: 0;
  top: 5px;
  left: 5%;
  width: 90%;
  height: 234px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .48));
}

.ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
  top: 1px;
  left: 2%;
  width: 96%;
  height: 250px;
}

.ranking-podium[data-entity="players"] .podium-card .podium-rank {
  z-index: 2;
}

.ranking-podium[data-entity="players"] .podium-card h4,
.ranking-podium[data-entity="players"] .podium-card p,
.ranking-podium[data-entity="players"] .podium-card > div {
  position: absolute;
  z-index: 2;
  right: 10px;
  left: 10px;
  margin: 0;
  text-align: center;
}

.ranking-podium[data-entity="players"] .podium-card h4 {
  bottom: 68px;
  color: #fff;
  text-shadow: 0 2px 9px #000, 0 0 18px rgba(0, 0, 0, .9);
}

.ranking-podium[data-entity="players"] .podium-card p {
  bottom: 47px;
  color: rgba(255, 255, 255, .76);
}

.ranking-podium[data-entity="players"] .podium-card > div {
  bottom: 11px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.ranking-entity--players .ranking-entity-face {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(247, 189, 34, .38);
  background: rgba(255, 255, 255, .035);
}

.ranking-entity--players .ranking-entity-face img {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  object-fit: cover;
  object-position: 50% 10%;
  transform: scale(2.35);
  transform-origin: 50% 10%;
  filter: none;
}

body.light .ranking-entity--players .ranking-entity-face {
  border-color: rgba(247, 189, 34, .44);
  background: rgba(0, 0, 0, .035);
}

@media (max-width: 760px) {
  .ranking-podium[data-entity="players"] {
    min-height: 294px;
  }

  .ranking-podium[data-entity="players"] .podium-card {
    min-height: 264px;
    height: 264px;
    max-height: 264px;
  }

  .ranking-podium[data-entity="players"] .podium-card img {
    top: 4px;
    height: 216px;
  }

  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    top: 1px;
    height: 230px;
  }

  .ranking-podium[data-entity="players"] .podium-card h4 {
    bottom: 66px;
  }

  .ranking-podium[data-entity="players"] .podium-card p {
    bottom: 45px;
  }

  .ranking-entity--players .ranking-entity-face {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }
}

/* STATSD-UI-78: restore map-card edges and the readable statistics plate. */
.map-widgets {
  gap: clamp(8px, 1vw, 14px);
}

.map-card,
.map-card:last-child {
  border: 1px solid var(--statsd-glass-line) !important;
  box-shadow: none;
}

.map-stats {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  background: rgba(0, 0, 0, .68) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.light .map-stats {
  border-color: rgba(0, 0, 0, .26) !important;
  background: rgba(255, 255, 255, .84) !important;
}

@media (max-width: 760px) {
  .map-widgets {
    gap: 12px;
  }

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

/* STATSD-UI-79: make the contextual back control unmistakably visible. */
.view-back:not([hidden]) {
  flex: 0 0 auto;
  display: inline-flex !important;
  position: relative;
  z-index: 35;
  visibility: visible !important;
  opacity: 1 !important;
  border-color: #F7BD22 !important;
  background: #F7BD22 !important;
  color: #080806 !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .34), 0 0 18px rgba(247, 189, 34, .28);
}

.view-back:not([hidden]) svg {
  flex: 0 0 20px;
  stroke: currentColor;
}

.view-back:not([hidden]):hover,
.view-back:not([hidden]):focus-visible {
  border-color: var(--paper) !important;
  background: var(--paper) !important;
  color: var(--panel) !important;
}

@media (max-width: 370px) {
  .brand-area:has(.view-back:not([hidden])) .ffws-logo {
    flex-basis: 56px !important;
    width: 56px !important;
  }
}

/* STATSD-UI-82: equal editorial entries for Jugadores, Equipos and Temporada. */
body[data-selection-stage="home"] .selection-flow__panel {
  width: min(1120px, calc(100% - 32px));
}

body[data-selection-stage="home"] .selection-flow__grid--home {
  width: min(1120px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px;
}

body[data-selection-stage="home"] .selection-entry--jugadores,
body[data-selection-stage="home"] .selection-entry--equipos,
body[data-selection-stage="home"] .selection-entry--rankings {
  grid-column: auto;
  min-height: 184px !important;
  height: 184px !important;
  max-height: 184px !important;
  display: grid;
  grid-template-columns: minmax(92px, 42%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) !important;
  place-items: stretch;
  align-content: stretch !important;
  gap: 10px !important;
  padding: 0 12px 0 0 !important;
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(104deg, rgba(247, 189, 34, .10), transparent 48%),
    var(--statsd-glass-fill) !important;
}

body[data-selection-stage="home"] .selection-entry--jugadores:hover,
body[data-selection-stage="home"] .selection-entry--jugadores:focus-visible,
body[data-selection-stage="home"] .selection-entry--jugadores[aria-pressed="true"],
body[data-selection-stage="home"] .selection-entry--equipos:hover,
body[data-selection-stage="home"] .selection-entry--equipos:focus-visible,
body[data-selection-stage="home"] .selection-entry--equipos[aria-pressed="true"],
body[data-selection-stage="home"] .selection-entry--rankings:hover,
body[data-selection-stage="home"] .selection-entry--rankings:focus-visible,
body[data-selection-stage="home"] .selection-entry--rankings[aria-pressed="true"] {
  background:
    linear-gradient(104deg, rgba(247, 189, 34, .20), transparent 54%),
    var(--statsd-glass-fill-hover) !important;
}

body[data-selection-stage="home"] .selection-entry .selection-entry__visual {
  width: 100%;
  height: 100% !important;
  min-height: 0;
  align-self: stretch;
  background: linear-gradient(90deg, rgba(247, 189, 34, .08), transparent 88%);
}

body[data-selection-stage="home"] .selection-entry__player-placeholder {
  transform: scale(1.2);
}

body[data-selection-stage="home"] .selection-entry__team-cloud {
  inset: 5%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 2px 5px;
}

body[data-selection-stage="home"] .selection-entry__team-logo {
  width: clamp(21px, 2.1vw, 29px);
  height: clamp(21px, 2.1vw, 29px);
}

body[data-selection-stage="home"] .selection-entry__season-logo {
  width: min(82%, 132px);
}

body[data-selection-stage="home"] .selection-entry__copy {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: center;
  justify-items: stretch;
  gap: 7px;
  padding-block: 13px;
}

body[data-selection-stage="home"] .selection-entry__copy > strong {
  width: 100%;
  color: var(--ink);
  font-size: clamp(18px, 2.6vw, 32px);
  line-height: .95;
  letter-spacing: .025em;
  white-space: nowrap;
}

body[data-selection-stage="home"] .selection-entry__description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--paper);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 750;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body[data-selection-stage="home"] .selection-entry__action {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
  gap: 8px;
}

body[data-selection-stage="home"] .selection-entry__action-arrow {
  font-size: 22px;
}

@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-flow__panel,
  body[data-selection-stage="home"] .selection-flow__grid--home {
    width: 100%;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 112px !important;
    height: 112px !important;
    max-height: 112px !important;
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    gap: 8px !important;
    padding-right: 8px !important;
  }

  body[data-selection-stage="home"] .selection-entry__copy {
    gap: 4px;
    padding-block: 5px;
  }

  body[data-selection-stage="home"] .selection-entry__copy > strong {
    font-size: clamp(21px, 6.2vw, 27px);
  }

  body[data-selection-stage="home"] .selection-entry__description {
    font-size: 13px;
    line-height: 1.15;
    -webkit-line-clamp: 1;
  }

  body[data-selection-stage="home"] .selection-entry__action {
    min-height: 44px;
  }

  body[data-selection-stage="home"] .selection-entry__team-logo {
    width: clamp(18px, 5.4vw, 23px);
    height: clamp(18px, 5.4vw, 23px);
  }
}

@media (max-width: 360px), (max-height: 700px) {
  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 104px !important;
    height: 104px !important;
    max-height: 104px !important;
  }
}

/* STATSD-UI-89 final phone authority after legacy podium layers. */
@media (max-width: 600px) {
  .ranking-podium,
  .ranking-podium[data-entity="players"] {
    width: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 6px;
    padding: 6px;
  }

  .ranking-podium[data-entity="players"] .podium-card {
    min-height: 238px;
    height: 238px;
    max-height: 238px;
  }

  .ranking-podium[data-entity="players"] .podium-card img,
  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    top: 3px;
    left: 0;
    width: 100%;
    height: 190px;
  }

  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    top: 0;
    height: 202px;
  }

  .ranking-podium[data-entity="players"] .podium-card h4 {
    bottom: 60px;
    font-size: 13px;
  }

  .ranking-podium[data-entity="players"] .podium-card p {
    bottom: 41px;
    font-size: 13px;
  }

  .ranking-podium[data-entity="players"] .podium-card > div {
    bottom: 8px;
  }
}

/* STATSD-UI-90: light and dark themes share one canonical yellow. */
body.light .tab.active {
  background: var(--gold);
}

body.light #selectionFlowEyebrow {
  color: var(--gold) !important;
}

/* STATSD-UI-91: phone Season rankings stay compact lists, never data cards. */
@media (max-width: 600px) {
  .ranking-catalog-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  .ranking-category {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    min-height: 50px;
    padding: 6px 4px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
  }

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

  .ranking-category:hover,
  .ranking-category.active {
    border-color: var(--gold);
    background: linear-gradient(90deg, rgba(247, 189, 34, .12), transparent 72%);
  }

  .ranking-category-icon {
    width: 30px;
    height: 30px;
  }

  .ranking-table tbody,
  .fixture-table tbody {
    display: block;
  }

  .ranking-table tbody tr,
  .fixture-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
    overflow: visible;
  }

  .ranking-table tbody tr:last-child,
  .fixture-table tbody tr:last-child {
    border-bottom: 0;
  }

  .ranking-table td,
  .fixture-table td {
    min-height: 0;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    gap: 4px;
    padding: 4px 6px;
    border: 0;
    background: transparent !important;
    line-height: 1.2;
  }

  .ranking-table td::before,
  .fixture-table td::before {
    flex: 0 0 auto;
    font-size: 13px;
    letter-spacing: .025em;
    line-height: 1.1;
  }

  .ranking-table td[data-ranking-field="rank"] {
    order: 0;
    flex: 0 0 34px;
    min-height: 44px;
    justify-content: center;
    padding-inline: 2px;
  }

  .ranking-table td[data-ranking-field="rank"]::before,
  .ranking-table td[data-ranking-field="entity"]::before,
  .fixture-table td[data-fixture-field="rank"]::before,
  .fixture-table td[data-fixture-field="team"]::before,
  .fixture-table td[data-fixture-field="nationality"]::before {
    display: none;
  }

  .ranking-table td[data-ranking-field="entity"] {
    order: 1;
    flex: 1 1 150px;
    min-height: 44px;
    padding-inline: 4px;
  }

  .ranking-table td[data-ranking-field="value"] {
    order: 2;
    flex: 0 0 auto;
    min-height: 44px;
    margin-left: auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right !important;
  }

  .ranking-table td[data-ranking-field="role"],
  .ranking-table td[data-ranking-field="nationality"],
  .ranking-table td[data-ranking-field="type"],
  .ranking-table td[data-ranking-field="matches"] {
    order: 3;
    flex: 0 1 auto;
    padding-block: 3px;
  }

  .ranking-table td[colspan] {
    flex: 1 1 100%;
  }

  .fixture-table td[data-fixture-field="rank"] {
    order: 0;
    flex: 0 0 34px;
    min-height: 44px;
    justify-content: center;
    padding-inline: 2px;
  }

  .fixture-table td[data-fixture-field="team"] {
    order: 1;
    flex: 1 1 150px;
    min-height: 44px;
    padding-inline: 4px;
  }

  .fixture-table td[data-fixture-field="total"] {
    order: 2;
    flex: 0 0 auto;
    min-height: 44px;
    margin-left: auto;
    grid-template-columns: none;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right !important;
  }

  .fixture-table td[data-fixture-field="nationality"],
  .fixture-table td[data-fixture-field="kills"],
  .fixture-table td[data-fixture-field="booyah"],
  .fixture-table td[data-fixture-field="journey"],
  .fixture-table td[data-fixture-field="round"] {
    order: 3;
    flex: 0 1 auto;
    padding-block: 3px;
  }

  .fixture-table td[data-fixture-field="nationality"] {
    flex-basis: 38px;
  }

  .fixture-table tbody tr.fixture-team-selected {
    outline: 0;
    border-bottom-color: var(--gold);
    background: linear-gradient(90deg, rgba(247, 189, 34, .1), transparent 74%);
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-list {
    gap: 0;
    padding: 0;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-card,
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-card:first-child {
    min-height: 76px;
    grid-template-columns: 28px 74px minmax(0, 1fr);
    gap: 6px;
    padding: 6px 2px;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-card:last-child {
    border-bottom: 0;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-card img {
    height: 58px;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-copy {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-copy h4,
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-copy small {
    grid-column: 1;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-copy strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* STATSD-UI-92: the player-loading clone has no rectangular shadow plates. */
.selection-choice--travel-player,
.selection-choice--travel-player .selection-choice__visual,
.selection-choice--travel-player .selection-choice__identity,
.selection-choice--travel-player .selection-choice__nationality {
  border: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.selection-choice--travel-player .selection-choice__identity {
  background-image: none !important;
  text-shadow: none !important;
}

.selection-choice--travel-player .selection-choice__identity::before,
.selection-choice--travel-player .selection-choice__identity::after {
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}

.selection-choice--travel-player .selection-choice__visual::after {
  right: -32%;
  left: -32%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .12) 48%, rgba(0, 0, 0, .58) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}

body.light .selection-choice--travel-player .selection-choice__visual::after {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .05) 52%, rgba(0, 0, 0, .2) 100%);
}

.selection-choice--travel-player .selection-choice__visual img {
  filter: saturate(1.08) contrast(1.04) !important;
}

.selection-choice--travel-player .selection-choice__identity strong,
.selection-choice--travel-player .selection-choice__nationality,
.selection-choice--travel-player .selection-choice__nationality img {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* STATSD-UI-93: Rankings map thumbnails crop edge-to-edge without letterboxing. */
.ranking-map-card {
  height: 104px;
  background: var(--panel-2);
}

.ranking-map-card-image {
  background-position: center;
  background-size: 100% 100%, cover;
  background-color: var(--panel-2);
}

.ranking-map-card-copy {
  padding: 18px 7px 7px;
}

/* STATSD-UI-94: phone Season tables preserve the desktop table language. */
@media (max-width: 600px) {
  .ranking-table-wrap,
  .fixture-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    background: var(--panel);
    scrollbar-color: var(--gold) var(--line-soft);
    scrollbar-width: thin;
  }

  .ranking-table,
  .fixture-table,
  .fixture-global-table,
  .fixture-global-table.is-collapsed,
  .fixture-journey-table {
    width: 100%;
    display: table;
    border-collapse: collapse;
    table-layout: auto;
  }

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

  .fixture-table {
    min-width: 540px;
  }

  .fixture-global-table {
    min-width: 1260px;
  }

  .fixture-global-table.is-collapsed {
    min-width: 760px;
  }

  .fixture-journey-table {
    min-width: 860px;
  }

  .ranking-table thead,
  .fixture-table thead {
    position: static;
    width: auto;
    height: auto;
    display: table-header-group;
    overflow: visible;
    clip-path: none;
    white-space: nowrap;
  }

  .ranking-table tbody,
  .fixture-table tbody {
    width: auto;
    display: table-row-group;
  }

  .ranking-table thead tr,
  .fixture-table thead tr,
  .ranking-table tbody tr,
  .fixture-table tbody tr {
    width: auto;
    min-width: 0;
    display: table-row;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .ranking-table th,
  .fixture-table th,
  .ranking-table td,
  .fixture-table td,
  .ranking-table td[data-ranking-field],
  .fixture-table td[data-fixture-field] {
    min-width: 0;
    min-height: 0;
    height: auto;
    display: table-cell;
    order: initial;
    flex: none;
    margin: 0;
    padding: 8px 9px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    background-color: transparent;
    line-height: 1.2;
    text-align: left !important;
    white-space: nowrap;
    overflow-wrap: normal;
    vertical-align: middle;
  }

  .ranking-table th,
  .fixture-table th {
    background-color: var(--panel-2);
    font-size: 13px;
  }

  .ranking-table td,
  .fixture-table td {
    font-size: 13px;
  }

  .ranking-table tr:hover td {
    background-color: rgba(247, 189, 34, .055) !important;
  }

  .fixture-table tbody tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, .014) !important;
  }

  .fixture-table tbody tr:hover td {
    background-color: rgba(247, 189, 34, .065) !important;
  }

  .fixture-table tbody tr.fixture-team-selected td {
    border-top-color: rgba(247, 189, 34, .72);
    border-bottom-color: rgba(247, 189, 34, .72);
    background-color: rgba(247, 189, 34, .16) !important;
    box-shadow: inset 0 1px 0 rgba(247, 189, 34, .42), inset 0 -1px 0 rgba(247, 189, 34, .42) !important;
  }

  .fixture-table tbody tr.fixture-team-selected td:first-child {
    box-shadow:
      inset 4px 0 0 var(--gold),
      inset 0 1px 0 rgba(247, 189, 34, .42),
      inset 0 -1px 0 rgba(247, 189, 34, .42) !important;
  }

  .fixture-table tbody tr.fixture-team-selected .fixture-total {
    background-color: var(--gold) !important;
    color: #090909 !important;
    box-shadow: none !important;
  }

  .ranking-table td::before,
  .fixture-table td::before {
    content: none !important;
    display: none !important;
  }

  .ranking-table th:first-child,
  .ranking-table td:first-child,
  .fixture-table th:first-child,
  .fixture-table td:first-child {
    text-align: center !important;
  }

  .ranking-table th:last-child,
  .ranking-table td:last-child,
  .fixture-table th:last-child,
  .fixture-table td:last-child,
  .ranking-table td[data-ranking-field="value"],
  .fixture-table td[data-fixture-field="total"] {
    text-align: right !important;
  }

  .ranking-table td[colspan] {
    display: table-cell;
  }

  .fixture-table td[hidden],
  .fixture-global-table [data-fixture-global-journey][hidden] {
    display: none !important;
  }

  .fixture-table tbody tr.fixture-team-selected {
    outline: 0;
    background: transparent;
  }
}

/* STATSD-UI-95: enlarge the published player inside the loading clone. */
.selection-choice--travel-player .selection-choice__visual {
  width: 210%;
  margin-left: -55%;
}

.selection-choice--travel-player .selection-choice__visual img {
  transform: scale(1.70);
  translate: 0 -10px;
  transform-origin: center 18%;
}

/* STATSD-UI-96: annotation batch for player identity, Global clipping and home cards. */
.player-panel .team-row {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.player-panel .team-logo {
  width: 64px;
  height: 64px;
}

.player-panel .team-name {
  min-height: 64px;
  display: flex;
  align-items: center;
  font-size: clamp(28px, 8cqw, 40px);
  line-height: .96;
  letter-spacing: .045em;
}

@media (min-width: 1000px) {
  body[data-selection-stage="home"] .selection-flow__panel,
  body[data-selection-stage="home"] .selection-flow__grid--home {
    width: min(1180px, calc(100% - 32px));
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    gap: 18px;
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: clamp(194px, 23vh, 208px) !important;
    height: clamp(194px, 23vh, 208px) !important;
    max-height: 208px !important;
    grid-template-columns: minmax(108px, 40%) minmax(0, 1fr);
    gap: 12px !important;
    padding-right: 16px !important;
  }
}

@media (min-width: 1000px) and (max-height: 780px) {
  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 184px !important;
    height: 184px !important;
    max-height: 184px !important;
  }
}

@media (max-width: 600px) {
  #fixtureGlobalLayout > .fixture-card {
    overflow: hidden;
  }

  #fixtureGlobalLayout .fixture-table-wrap {
    position: relative;
    isolation: isolate;
    contain: paint;
    clip-path: inset(0);
  }

  .fixture-global-table th:first-child,
  .fixture-global-table td:first-child,
  .fixture-global-table th:nth-child(2),
  .fixture-global-table td:nth-child(2) {
    overflow: hidden;
    background-color: #080c10 !important;
    background-image: none !important;
  }

  body.light .fixture-global-table th:first-child,
  body.light .fixture-global-table td:first-child,
  body.light .fixture-global-table th:nth-child(2),
  body.light .fixture-global-table td:nth-child(2) {
    background-color: #f2efe7 !important;
  }

  .fixture-global-table td:nth-child(2) .fixture-team-cell {
    width: 100%;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    overflow: hidden;
  }

  .fixture-global-table td:nth-child(2) .fixture-team-cell span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fixture-global-table tbody tr.fixture-team-selected td:first-child,
  .fixture-global-table tbody tr.fixture-team-selected td:nth-child(2) {
    background-color: color-mix(in srgb, var(--gold) 16%, #080c10) !important;
  }

  body.light .fixture-global-table tbody tr.fixture-team-selected td:first-child,
  body.light .fixture-global-table tbody tr.fixture-team-selected td:nth-child(2) {
    background-color: color-mix(in srgb, var(--gold) 20%, #f2efe7) !important;
  }
}

/* STATSD-UI-97: center the loading-player viewport and increase its presence. */
.selection-choice--travel-player .selection-choice__visual {
  left: 50%;
  width: 235%;
  margin-left: 0;
  translate: -50% 0;
}

.selection-choice--travel-player .selection-choice__visual img {
  transform: scale(1.82);
  translate: 0 -12px;
  transform-origin: center 18%;
}

/* STATSD-UI-98: keep the home player placeholder's head inside its viewport. */
body[data-selection-stage="home"] .selection-entry--jugadores .selection-entry__player-placeholder {
  object-position: 50% 0%;
  transform: scale(1.14);
  translate: 0 10px;
  transform-origin: 50% 0%;
}

@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-entry--jugadores .selection-entry__player-placeholder {
    transform: scale(1.24);
    translate: 0 4px;
  }
}

/* STATSD-UI-100: fully occlude horizontally scrolled Global data on phones. */
@media (max-width: 600px) {
  #fixtureGlobalLayout .fixture-global-table {
    --fixture-global-rank-width: 42px;
    --fixture-global-team-width: 148px;
    border-collapse: separate;
    border-spacing: 0;
  }

  #fixtureGlobalLayout .fixture-global-table th:nth-child(n + 3) {
    z-index: 2;
  }

  #fixtureGlobalLayout .fixture-global-table td:nth-child(n + 3) {
    position: relative;
    z-index: 0;
  }

  #fixtureGlobalLayout .fixture-global-table th:first-child,
  #fixtureGlobalLayout .fixture-global-table td:first-child {
    left: 0;
    z-index: 12;
    box-sizing: border-box;
    width: var(--fixture-global-rank-width);
    min-width: var(--fixture-global-rank-width);
    max-width: var(--fixture-global-rank-width);
    isolation: isolate;
    overflow: hidden;
    background: #080c10 !important;
    background-clip: padding-box;
  }

  #fixtureGlobalLayout .fixture-global-table th:nth-child(2),
  #fixtureGlobalLayout .fixture-global-table td:nth-child(2) {
    left: var(--fixture-global-rank-width);
    z-index: 11;
    box-sizing: border-box;
    width: var(--fixture-global-team-width);
    min-width: var(--fixture-global-team-width);
    max-width: var(--fixture-global-team-width);
    isolation: isolate;
    overflow: hidden;
    background: #080c10 !important;
    background-clip: padding-box;
    box-shadow: 2px 0 0 var(--line), 8px 0 14px rgba(0, 0, 0, .30);
  }

  #fixtureGlobalLayout .fixture-global-table th:first-child,
  #fixtureGlobalLayout .fixture-global-table th:nth-child(2) {
    z-index: 14;
    background: #10151a !important;
  }

  #fixtureGlobalLayout .fixture-global-table td:nth-child(2) .fixture-team-cell {
    width: 100%;
    min-width: 0;
  }

  #fixtureGlobalLayout .fixture-global-table tbody tr.fixture-team-selected td:first-child,
  #fixtureGlobalLayout .fixture-global-table tbody tr.fixture-team-selected td:nth-child(2) {
    background: color-mix(in srgb, var(--gold) 16%, #080c10) !important;
  }

  body.light #fixtureGlobalLayout .fixture-global-table th:first-child,
  body.light #fixtureGlobalLayout .fixture-global-table th:nth-child(2) {
    background: #e8e4da !important;
  }

  body.light #fixtureGlobalLayout .fixture-global-table td:first-child,
  body.light #fixtureGlobalLayout .fixture-global-table td:nth-child(2) {
    background: #f2efe7 !important;
  }

  body.light #fixtureGlobalLayout .fixture-global-table tbody tr.fixture-team-selected td:first-child,
  body.light #fixtureGlobalLayout .fixture-global-table tbody tr.fixture-team-selected td:nth-child(2) {
    background: color-mix(in srgb, var(--gold) 20%, #f2efe7) !important;
  }
}

/* STATSD-UI-101: center the loading-player image itself and enlarge it. */
.selection-choice--travel-player .selection-choice__visual {
  left: 50%;
  width: 270%;
  margin-left: 0;
  justify-self: center;
  translate: -50% 0;
}

.selection-choice--travel-player .selection-choice__visual img {
  display: block;
  justify-self: center;
  object-position: 50% 0%;
  transform: scale(2.05);
  translate: 0 -14px;
  transform-origin: center 18%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 50%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 28%, transparent 50%);
}

.selection-choice--travel-player .selection-choice__visual::after {
  content: none;
}

/* STATSD-UI-102: taller home entries keep editorial descriptions readable. */
@media (min-width: 1000px) and (min-height: 781px) {
  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: clamp(214px, 25vh, 228px) !important;
    height: clamp(214px, 25vh, 228px) !important;
    max-height: 228px !important;
  }

  body[data-selection-stage="home"] .selection-entry__description {
    -webkit-line-clamp: 5;
  }
}

@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-flow__panel {
    box-sizing: border-box;
    width: calc(100% - 16px) !important;
    max-width: calc(100vw - 16px);
    margin-inline: auto;
    padding-inline: 0;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home,
  body[data-selection-stage="home"] .selection-entry {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 148px !important;
    height: 148px !important;
    max-height: 148px !important;
  }

  body[data-selection-stage="home"] .selection-entry__copy {
    gap: 5px;
    padding-block: 6px;
  }

  body[data-selection-stage="home"] .selection-entry__description {
    line-height: 1.2;
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 360px) and (min-height: 701px) {
  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 144px !important;
    height: 144px !important;
    max-height: 144px !important;
  }
}

@media (max-height: 700px) {
  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 120px !important;
    height: 120px !important;
    max-height: 120px !important;
  }

  body[data-selection-stage="home"] .selection-entry__description {
    -webkit-line-clamp: 2;
  }
}

/* STATSD-UI-103: roster names keep readable vertical rhythm at every width. */
.team-player-card:not(.vacant) h4 {
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.team-player-card:not(.vacant) .team-player-real-name {
  margin-top: 7px;
  line-height: 1.36;
  letter-spacing: .01em;
}

.team-player-card:not(.vacant) .team-player-meta {
  margin-top: 10px;
}

@media (min-width: 761px) {
  .team-player-card:not(.vacant) {
    min-height: 316px;
  }

  .team-player-card:not(.vacant) .team-player-real-name {
    display: -webkit-box !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 760px) {
  .team-player-card:not(.vacant) .team-player-real-name {
    line-height: 1.4;
  }
}

/* STATSD-UI-104: keep the Rankings podium balanced and legible on phones. */
@media (max-width: 600px) {
  .ranking-podium,
  .ranking-podium[data-entity="players"] {
    gap: clamp(3px, 1.5vw, 6px);
    padding: clamp(3px, 1.5vw, 6px);
  }

  .ranking-podium .podium-card {
    padding-inline: clamp(3px, 1.5vw, 6px);
  }

  .ranking-podium .podium-rank {
    top: 6px;
    left: clamp(4px, 1.8vw, 7px);
    font-size: clamp(30px, 9.5vw, 38px);
  }

  .ranking-podium .podium-card h4 {
    font-size: clamp(13px, 4vw, 16px);
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ranking-podium .podium-card > div {
    display: grid;
    justify-items: center;
    align-items: end;
    gap: 1px;
  }

  .ranking-podium .podium-card b {
    font-size: clamp(22px, 7vw, 28px);
    line-height: .9;
  }

  .ranking-podium .podium-card small {
    max-width: 100%;
    margin-left: 0;
    font-size: 13px;
    line-height: 1;
    letter-spacing: -.035em;
    text-align: center;
    white-space: nowrap;
  }

  .ranking-podium[data-entity="players"] .podium-card {
    min-height: clamp(224px, 61vw, 238px);
    height: clamp(224px, 61vw, 238px);
    max-height: clamp(224px, 61vw, 238px);
  }

  .ranking-podium[data-entity="players"] .podium-card img,
  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    height: clamp(174px, 48.7vw, 190px);
  }

  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    height: clamp(186px, 51.8vw, 202px);
  }

  .ranking-podium[data-entity="players"] .podium-card h4 {
    right: 3px;
    bottom: clamp(56px, 15.4vw, 60px);
    left: 3px;
    display: -webkit-box;
    max-height: 2.1em;
    overflow: hidden;
    text-overflow: clip;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .ranking-podium[data-entity="players"] .podium-card p {
    right: 3px;
    bottom: clamp(39px, 10.5vw, 41px);
    left: 3px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ranking-podium[data-entity="players"] .podium-card > div {
    right: 3px;
    bottom: 5px;
    left: 3px;
  }
}

/* STATSD-UI-105: phone roster identity and metrics own separate bands. */
@media (max-width: 480px) {
  .team-player-card:not(.vacant) {
    min-height: 336px;
    padding: 14px;
  }

  .team-player-card:not(.vacant) > div:not(.team-player-stats) {
    position: absolute !important;
    top: 14px;
    bottom: auto;
    left: 14px;
    width: 46%;
    max-width: 46% !important;
    min-height: 0;
    height: 198px;
    padding: 0 !important;
    align-content: center !important;
  }

  .team-player-card:not(.vacant) .team-player-photo {
    top: 8px;
    right: 8px;
    width: 46%;
    height: 200px;
  }

  .team-player-card:not(.vacant) .team-player-real-name {
    display: -webkit-box !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .team-player-card:not(.vacant) .team-player-meta {
    min-height: 18px;
    margin-top: 10px !important;
    flex-wrap: nowrap;
  }

  .team-player-card:not(.vacant) .team-player-meta > span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .team-player-card:not(.vacant) .team-player-meta > span > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .team-player-card:not(.vacant) .team-player-stats {
    right: 14px;
    bottom: 14px;
    left: 14px;
    min-height: 94px;
  }
}

/* STATSD-UI-106: every Season table keeps a compact sticky identity on phones. */
@media (max-width: 600px) {
  #season-view-rankings .ranking-table-wrap,
  #season-view-fixture .fixture-table-wrap {
    position: relative;
    isolation: isolate;
    contain: paint;
    clip-path: inset(0);
  }

  #season-view-rankings .ranking-table,
  #season-view-fixture .fixture-table {
    --season-rank-width: 36px;
    --season-identity-width: 124px;
    border-collapse: separate;
    border-spacing: 0;
  }

  #season-view-rankings .ranking-table th:nth-child(n + 3),
  #season-view-fixture .fixture-table th:nth-child(n + 3) {
    z-index: 2;
  }

  #season-view-rankings .ranking-table td:nth-child(n + 3),
  #season-view-fixture .fixture-table td:nth-child(n + 3) {
    position: relative;
    z-index: 0;
  }

  #season-view-rankings .ranking-table th:first-child,
  #season-view-rankings .ranking-table td:first-child,
  #season-view-fixture .fixture-table th:first-child,
  #season-view-fixture .fixture-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 12;
    box-sizing: border-box;
    width: var(--season-rank-width);
    min-width: var(--season-rank-width);
    max-width: var(--season-rank-width);
    padding-inline: 4px;
    isolation: isolate;
    overflow: hidden;
    background: #080c10 !important;
    background-clip: padding-box;
  }

  #season-view-rankings .ranking-table th:nth-child(2),
  #season-view-rankings .ranking-table td:nth-child(2),
  #season-view-fixture .fixture-table th:nth-child(2),
  #season-view-fixture .fixture-table td:nth-child(2) {
    position: sticky;
    left: var(--season-rank-width);
    z-index: 11;
    box-sizing: border-box;
    width: var(--season-identity-width);
    min-width: var(--season-identity-width);
    max-width: var(--season-identity-width);
    padding-inline: 6px;
    isolation: isolate;
    overflow: hidden;
    background: #080c10 !important;
    background-clip: padding-box;
    box-shadow: 2px 0 0 var(--line), 7px 0 12px rgba(0, 0, 0, .28);
  }

  #season-view-rankings .ranking-table th:first-child,
  #season-view-rankings .ranking-table th:nth-child(2),
  #season-view-fixture .fixture-table th:first-child,
  #season-view-fixture .fixture-table th:nth-child(2) {
    z-index: 14;
    background: #10151a !important;
  }

  #season-view-rankings .ranking-table td:nth-child(2) .ranking-entity,
  #season-view-fixture .fixture-table td:nth-child(2) .fixture-team-cell {
    width: 100%;
    min-width: 0;
    gap: 6px;
    overflow: hidden;
  }

  #season-view-rankings .ranking-table td:nth-child(2) .ranking-entity > span,
  #season-view-fixture .fixture-table td:nth-child(2) .fixture-team-cell > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #season-view-rankings .ranking-table td:nth-child(2) .ranking-entity > img,
  #season-view-rankings .ranking-table td:nth-child(2) .ranking-entity-face,
  #season-view-fixture .fixture-table td:nth-child(2) .fixture-team-logo {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }

  #season-view-fixture .fixture-table td:nth-child(2) .fixture-team-cell {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  #season-view-fixture .fixture-table tbody tr.fixture-team-selected td:first-child,
  #season-view-fixture .fixture-table tbody tr.fixture-team-selected td:nth-child(2) {
    background: color-mix(in srgb, var(--gold) 16%, #080c10) !important;
  }

  body.light #season-view-rankings .ranking-table th:first-child,
  body.light #season-view-rankings .ranking-table th:nth-child(2),
  body.light #season-view-fixture .fixture-table th:first-child,
  body.light #season-view-fixture .fixture-table th:nth-child(2) {
    background: #e8e4da !important;
  }

  body.light #season-view-rankings .ranking-table td:first-child,
  body.light #season-view-rankings .ranking-table td:nth-child(2),
  body.light #season-view-fixture .fixture-table td:first-child,
  body.light #season-view-fixture .fixture-table td:nth-child(2) {
    background: #f2efe7 !important;
  }

  body.light #season-view-fixture .fixture-table tbody tr.fixture-team-selected td:first-child,
  body.light #season-view-fixture .fixture-table tbody tr.fixture-team-selected td:nth-child(2) {
    background: color-mix(in srgb, var(--gold) 20%, #f2efe7) !important;
  }
}

/* STATSD-UI-107: Rankings and Fixture share one continuous Season page. */
.tab-panel.rankings-panel.active {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

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

.season-unified-head,
.season-section-heading {
  min-width: 0;
}

.season-unified-head {
  display: grid;
  gap: 6px;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}

.season-unified-head span,
.season-section-heading span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.season-unified-head h2,
.season-section-heading h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-gff-black);
  font-synthesis: none;
  text-transform: uppercase;
}

.season-unified-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: .95;
}

.season-unified-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.season-section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.season-section-heading h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

#season-view-rankings,
#season-view-fixture {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#season-view-fixture {
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .rankings-panel {
    gap: 24px;
  }

  .season-unified-head {
    padding: 12px 0 14px;
  }

  .season-unified-head h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .season-section-heading {
    margin-bottom: 10px;
  }

  .season-section-heading h2 {
    font-size: clamp(22px, 7vw, 28px);
  }

  #season-view-fixture {
    padding-top: 24px;
  }
}

/* STATSD-UI-108: Fixture leads the unified Season page with a clearer editorial rhythm. */
.tab-panel.rankings-panel.active {
  gap: clamp(34px, 5vw, 64px);
}

.season-unified-head {
  order: 0;
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  column-gap: clamp(28px, 5vw, 76px);
  align-items: end;
  padding: clamp(24px, 3vw, 38px) clamp(18px, 2.4vw, 34px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(112deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent 52%);
}

.season-unified-head::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
}

.season-unified-head span,
.season-unified-head h2 {
  grid-column: 1;
}

.season-unified-head p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 440px;
  padding-bottom: 2px;
  font-size: clamp(13px, 1.1vw, 15px);
}

.season-unified-head h2 {
  max-width: 780px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: .9;
  text-wrap: balance;
}

#season-view-fixture {
  order: 1;
  padding-top: 0;
  border-top: 0;
}

#season-view-rankings {
  order: 2;
  padding-top: clamp(30px, 4vw, 52px);
  border-top: 1px solid var(--line);
}

.season-section-heading {
  gap: 7px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.season-section-heading span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.season-section-heading span::after {
  content: "";
  width: clamp(42px, 7vw, 104px);
  height: 1px;
  background: color-mix(in srgb, var(--gold) 62%, transparent);
}

.season-section-heading span b {
  color: var(--paper);
  font-family: var(--font-gff-black);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: .8;
  opacity: .22;
}

.season-section-heading h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: .015em;
}

@media (max-width: 760px) {
  .season-unified-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 22px 16px 20px;
  }

  .season-unified-head span,
  .season-unified-head h2,
  .season-unified-head p {
    grid-column: 1;
    grid-row: auto;
  }

  .season-unified-head h2 {
    font-size: clamp(30px, 10vw, 42px);
    line-height: .92;
  }

  .season-unified-head p {
    max-width: 36rem;
    padding-bottom: 0;
  }

  #season-view-rankings {
    padding-top: 28px;
  }

  .season-section-heading h2 {
    font-size: clamp(26px, 8vw, 34px);
  }
}

/* STATSD-UI-109: global search exposes direct Overall Rankings results. */
.tab-panel.rankings-panel.active {
  gap: clamp(18px, 2vw, 28px);
}

.season-unified-head {
  gap: 3px;
  padding-block: clamp(18px, 2vw, 26px);
}

.season-section-heading {
  gap: 2px;
  margin-bottom: clamp(10px, 1.2vw, 14px);
}

#season-view-rankings {
  padding-top: clamp(18px, 2vw, 26px);
}

@media (max-width: 760px) {
  .tab-panel.rankings-panel.active {
    gap: 18px;
  }

  .season-unified-head {
    gap: 4px;
    padding-block: 16px;
  }

  #season-view-rankings {
    padding-top: 18px;
  }
}

.selection-search__ranking-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-gff-black);
  font-size: 13px;
  letter-spacing: .04em;
  border: 1px solid color-mix(in srgb, var(--gold) 54%, transparent);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}

.selection-search__option--ranking .selection-search__option-copy strong {
  color: var(--paper);
}

.selection-search__option--ranking:hover .selection-search__ranking-mark,
.selection-search__option--ranking.is-active .selection-search__ranking-mark,
.selection-search__option--ranking[aria-selected="true"] .selection-search__ranking-mark {
  color: #090909;
  background: var(--gold);
}

/* STATSD-UI-110: the global search yields to the title and becomes a magnifier. */
.header-search__toggle {
  appearance: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
}

.header-search__toggle .header-search__icon {
  width: 22px;
  height: 22px;
}

.header-search__toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .topbar {
    grid-template-columns: minmax(340px, 1fr) minmax(220px, 320px) max-content;
    gap: 16px;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 52px max-content !important;
    gap: 10px;
  }

  .brand-area,
  .brand-lockup,
  .brand-title {
    min-width: 0;
  }

  .brand-area {
    min-width: min(196px, calc(100vw - 108px));
  }

  .header-search {
    width: 52px;
    min-width: 52px;
    justify-self: end;
  }

  .header-search__field {
    width: 52px;
    min-width: 52px;
    grid-template-columns: 50px 0 0;
    overflow: hidden;
  }

  .header-search__toggle {
    width: 50px;
    min-width: 50px;
    height: 44px;
  }

  .header-search__input,
  .header-search__clear {
    width: 0;
    min-width: 0;
    padding-inline: 0;
    opacity: 0;
    pointer-events: none;
  }

  .header-search.is-open {
    position: fixed;
    inset: 72px 8px auto;
    z-index: 70;
    width: auto;
    min-width: 0;
  }

  .header-search.is-open .header-search__field {
    width: 100%;
    min-width: 0;
    grid-template-columns: 50px minmax(0, 1fr) 44px;
    overflow: visible;
    border-color: var(--gold);
    background: rgba(8, 14, 22, .98);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .48);
  }

  body.light .header-search.is-open .header-search__field {
    background: rgba(252, 249, 239, .99);
  }

  .header-search.is-open .header-search__input,
  .header-search.is-open .header-search__clear {
    width: auto;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .header-search.is-open .header-search__input {
    padding-inline: 4px;
  }

  .header-search.is-open .header-search__results {
    inset: calc(100% + 6px) 0 auto;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 48px 44px !important;
    gap: 6px;
  }

  .header-search,
  .header-search__field {
    width: 48px;
    min-width: 48px;
  }

  .header-search__field {
    grid-template-columns: 46px 0 0;
  }

  .header-search__toggle {
    width: 46px;
    min-width: 46px;
  }

  .header-search.is-open {
    inset: 66px 8px auto;
  }

  .header-search.is-open .header-search__field {
    grid-template-columns: 46px minmax(0, 1fr) 44px;
  }
}

/* STATSD-UI-111: weapon cards give the KILLS label stronger hierarchy. */
.weapon .weapon-meta .label {
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 1000;
  line-height: 1;
}

@media (max-width: 760px) {
  .weapon .weapon-meta .label {
    font-size: clamp(18px, 5.4vw, 21px);
  }
}

/* STATSD-UI-112: Season opens without a redundant hero and uses compact centered titles. */
.tab-panel.rankings-panel.active {
  gap: clamp(14px, 1.6vw, 22px);
}

.season-section-heading {
  justify-items: center;
  gap: 3px;
  margin-bottom: clamp(7px, .7vw, 10px);
  padding: clamp(4px, .45vw, 6px) 0;
  text-align: center;
}

.season-section-heading span {
  justify-content: center;
}

.season-section-heading h2 {
  width: 100%;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  text-align: center;
}

.season-section-heading span b {
  font-size: clamp(18px, 1.8vw, 25px);
}

#season-view-rankings {
  padding-top: clamp(14px, 1.6vw, 22px);
}

@media (max-width: 760px) {
  .tab-panel.rankings-panel.active {
    gap: 14px;
  }

  .season-section-heading {
    margin-bottom: 7px;
    padding-block: 4px;
  }

  .season-section-heading h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  #season-view-rankings {
    padding-top: 14px;
  }
}

/* STATSD-UI-113: header controls yield before brand copy can be compressed. */
.brand-title strong,
.brand-title span {
  overflow: visible;
  text-overflow: clip;
}

@media (min-width: 1501px) {
  .topbar {
    grid-template-columns: minmax(480px, .9fr) minmax(250px, 420px) max-content;
  }
}

/* STATSD-UI-127: search and navigation share the same compact boundary. */
@media (min-width: 1181px) and (max-width: 1306px) {
  .brand-area:has(.view-back:not([hidden])) {
    gap: 8px;
  }

  .brand-area:has(.view-back:not([hidden])) .brand-lockup {
    gap: 8px;
  }

  .brand-area:has(.view-back:not([hidden])) .view-back {
    width: 44px;
    padding: 0;
  }

  .brand-area:has(.view-back:not([hidden])) .view-back span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .brand-area:has(.view-back:not([hidden])) .ffws-logo {
    flex-basis: 72px;
    width: 72px;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(max-content, 1fr) 52px max-content !important;
    gap: 10px;
  }

  .brand-area,
  .brand-lockup,
  .brand-title {
    min-width: max-content;
  }

  .header-search {
    width: 52px;
    min-width: 52px;
    justify-self: end;
  }

  .header-search__field {
    width: 52px;
    min-width: 52px;
    grid-template-columns: 50px 0 0;
    overflow: hidden;
  }

  .header-search__toggle {
    width: 50px;
    min-width: 50px;
    height: 44px;
  }

  .header-search__input,
  .header-search__clear {
    width: 0;
    min-width: 0;
    padding-inline: 0;
    opacity: 0;
    pointer-events: none;
  }

  .header-search.is-open {
    position: fixed;
    inset: 72px 8px auto;
    z-index: 70;
    width: auto;
    min-width: 0;
  }

  .header-search.is-open .header-search__field {
    width: 100%;
    min-width: 0;
    grid-template-columns: 50px minmax(0, 1fr) 44px;
    overflow: visible;
    border-color: var(--gold);
    background: rgba(8, 14, 22, .98);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .48);
  }

  body.light .header-search.is-open .header-search__field {
    background: rgba(252, 249, 239, .99);
  }

  .header-search.is-open .header-search__input,
  .header-search.is-open .header-search__clear {
    width: auto;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .header-search.is-open .header-search__input {
    padding-inline: 4px;
  }

  .header-search.is-open .header-search__results {
    inset: calc(100% + 6px) 0 auto;
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 52px 44px !important;
  }

  .mobile-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: color-mix(in srgb, var(--panel) 84%, transparent);
  }

  .mobile-menu-toggle svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-width: 2;
  }

  .nav-area {
    position: relative;
    width: 44px;
    min-width: 44px;
    overflow: visible;
  }

  .nav-area > .tabs,
  .nav-area > .theme-toggle {
    position: absolute;
    right: 0;
    z-index: 70;
    display: none;
    width: min(240px, calc(100vw - 16px));
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 94%, transparent);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  }

  .nav-area.is-open > .tabs {
    top: calc(100% + 8px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 6px;
    overflow: visible;
  }

  .nav-area.is-open > .theme-toggle {
    top: calc(100% + 152px);
    display: flex;
    min-height: 46px;
    justify-content: flex-start;
    padding-inline: 14px 46px;
  }

  .nav-area.is-open > .tabs .tab {
    display: grid;
    width: 100%;
    min-height: 44px;
    place-items: center;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
  }

  .nav-area.is-open > .theme-toggle .theme-toggle-label {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
  }

  .nav-area.is-open > .theme-toggle svg {
    position: absolute !important;
    inset: 50% 12px auto auto !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 48px 44px !important;
    gap: 6px;
  }

  .brand-area,
  .brand-lockup,
  .brand-title {
    min-width: 0;
  }

  .brand-area:has(.view-back:not([hidden])) .brand-title,
  .brand-title {
    display: grid !important;
    flex: 0 0 auto;
    overflow: visible !important;
  }

  .brand-title strong,
  .brand-title span {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .brand-area:has(.view-back:not([hidden])) .ffws-logo {
    flex-basis: 54px !important;
    width: 54px !important;
  }
}

@media (max-width: 370px) {
  .topbar {
    gap: 4px;
    padding-inline: 4px;
  }

  .brand-area,
  .brand-lockup {
    gap: 3px;
  }

  .brand-area:has(.view-back:not([hidden])) .ffws-logo {
    flex-basis: 28px !important;
    width: 28px !important;
  }
}

/* STATSD-UI-114: Fixture Jornada exposes all 18 positions in one taller table. */
.fixture-journey-layout > .fixture-card {
  align-self: start;
}

.fixture-journey-layout > .fixture-card .fixture-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.fixture-journey-table tbody tr,
.fixture-journey-table th,
.fixture-journey-table td {
  height: 40px;
}

.fixture-journey-table th,
.fixture-journey-table td {
  padding: 6px;
  font-size: 13px;
  line-height: 1;
}

.fixture-journey-table .fixture-team-logo {
  width: 26px;
  height: 26px;
}

@media (min-width: 601px) {
  .fixture-journey-table {
    min-width: 820px;
  }
}

@media (min-width: 1181px) {
  .fixture-journey-layout {
    align-items: stretch;
  }

  .fixture-journey-layout > .fixture-mvp-section {
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }

  .fixture-journey-layout > .fixture-mvp-section .fixture-mvp-profile {
    min-height: 0;
  }
}

@media (min-width: 901px) {
  #season-view-fixture .fixture-global-layout.is-collapsed {
    align-items: stretch;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-card,
  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-weapon-usage {
    height: 100%;
    align-self: stretch;
  }

  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-weapon-usage,
  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-global-maps {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-list,
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-global-map-list {
    min-height: 0;
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-card,
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-global-map-item {
    min-height: 0;
  }
}

@media (min-width: 1451px) {
  #season-view-fixture .fixture-global-layout.is-collapsed > .fixture-global-maps {
    height: 100%;
    align-self: stretch;
  }
}

/* STATSD-UI-115: Fixture identity shares the compact control toolbar. */
#season-view-fixture > .fixture-overview-toolbar {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) max-content;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 7px 12px;
}

#season-view-fixture.fixture-panel {
  margin-top: 0;
}

#season-view-fixture > .fixture-overview-toolbar > .season-section-heading {
  min-width: 0;
  justify-items: start;
  align-content: center;
  gap: 1px;
  margin: 0;
  padding: 0;
  text-align: left;
}

#season-view-fixture > .fixture-overview-toolbar > .season-section-heading span {
  justify-content: flex-start;
  line-height: 1;
}

#season-view-fixture > .fixture-overview-toolbar > .season-section-heading h2 {
  width: auto;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: .9;
  text-align: left;
}

#season-view-fixture > .fixture-overview-toolbar > .fixture-hero-controls {
  width: auto;
  justify-self: end;
}

@media (max-width: 760px) {
  #season-view-fixture > .fixture-overview-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 7px 8px 8px;
  }

  #season-view-fixture > .fixture-overview-toolbar > .season-section-heading h2 {
    font-size: clamp(21px, 6vw, 26px);
  }

  #season-view-fixture > .fixture-overview-toolbar > .fixture-hero-controls {
    width: 100%;
    justify-self: stretch;
  }
}

/* STATSD-UI-119: phone podium metrics use one compact opaque brand band. */
@media (max-width: 600px) {
  .ranking-podium[data-entity="players"] .podium-card {
    min-height: clamp(220px, 59vw, 232px);
    height: clamp(220px, 59vw, 232px);
    max-height: clamp(220px, 59vw, 232px);
  }

  .ranking-podium[data-entity="players"] .podium-card img,
  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    height: clamp(170px, 46vw, 184px);
  }

  .ranking-podium[data-entity="players"] .podium-card[data-rank="1"] img {
    height: clamp(182px, 49vw, 196px);
  }

  .ranking-podium[data-entity="players"] .podium-card h4 {
    bottom: 67px;
  }

  .ranking-podium[data-entity="players"] .podium-card p {
    bottom: 48px;
  }

  .ranking-podium[data-entity="players"] .podium-card > div {
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 43px;
    box-sizing: border-box;
    align-content: center;
    padding: 4px 3px 3px;
    background: #f7bd22;
    color: #090909;
  }

  .ranking-podium[data-entity="players"] .podium-card > div b,
  .ranking-podium[data-entity="players"] .podium-card > div small {
    color: #090909;
    opacity: 1;
  }
}

/* STATSD-UI-120: low-height home cards preserve complete text and controls. */
@media (min-width: 761px) and (max-height: 700px) {
  body[data-selection-stage="home"] .selection-flow__header {
    gap: 4px;
  }

  body[data-selection-stage="home"] .selection-flow__event-logo {
    width: clamp(72px, 12vh, 88px);
  }

  body[data-selection-stage="home"] .selection-flow__eyebrow {
    font-size: clamp(32px, 7vh, 46px);
  }

  body[data-selection-stage="home"] .selection-flow h2 {
    font-size: clamp(27px, 4.8vh, 34px);
  }

  body[data-selection-stage="home"] .selection-flow__copy {
    margin-top: 4px;
    font-size: clamp(16px, 2.9vh, 20px);
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    margin-top: 6px;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: clamp(164px, 27vh, 184px) !important;
    height: clamp(164px, 27vh, 184px) !important;
    max-height: 184px !important;
  }

  body[data-selection-stage="home"] .selection-entry__copy {
    gap: 4px;
    padding-block: 6px;
  }

  body[data-selection-stage="home"] .selection-entry__copy > strong {
    font-size: clamp(20px, 2.2vw, 26px);
  }

  body[data-selection-stage="home"] .selection-entry__description {
    display: block;
    overflow: visible;
    font-size: 13px;
    line-height: 1.15;
    -webkit-line-clamp: unset;
  }
}

/* STATSD-UI-121: pending Fixture map labels use theme-safe contrast. */
body.light .fixture-map-pending .fixture-map-state strong {
  color: #090909;
}

/* STATSD-UI-122: typed header searches always keep their result dropdown visible. */
.header-search.is-open .header-search__results:not([hidden]) {
  display: block !important;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 90;
}

@media (max-width: 1180px) {
  .header-search.is-open .header-search__results:not([hidden]) {
    position: fixed;
    inset: 174px 8px auto;
    width: auto;
  }
}

@media (max-width: 760px) {
  .header-search.is-open .header-search__results:not([hidden]) {
    inset-block-start: 168px;
  }
}

/* STATSD-UI-123: narrow-window header overlays stay aligned and opaque. */
@media (max-width: 1180px) {
  .nav-area.is-open > .tabs {
    position: fixed !important;
    inset: 72px 8px auto !important;
    z-index: 96;
    width: calc(100vw - 16px) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #080c10;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-area.is-open > .theme-toggle {
    position: fixed !important;
    inset: 134px 8px auto !important;
    z-index: 96;
    width: calc(100vw - 16px) !important;
    background: #080c10;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.light .nav-area.is-open > .tabs,
  body.light .nav-area.is-open > .theme-toggle {
    background: #f2efe7;
  }

  body .header-search.is-open {
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 16px) !important;
    transform: translateX(-50%);
  }

  body .header-search.is-open .header-search__field {
    width: 100% !important;
  }

  body .header-search.is-open .header-search__results:not([hidden]) {
    position: absolute;
    inset: calc(100% + 6px) 0 auto;
    width: 100%;
    transform: none;
    background: #080c10;
  }

  body.light .header-search.is-open .header-search__results:not([hidden]) {
    background: #f2efe7;
  }
}

@media (max-width: 760px) {
  .nav-area.is-open > .tabs {
    inset-block-start: 66px !important;
  }

  .nav-area.is-open > .theme-toggle {
    inset-block-start: 128px !important;
  }
}

@media (max-width: 520px) {
  .nav-area.is-open > .tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-area.is-open > .theme-toggle {
    inset-block-start: 216px !important;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  body[data-selection-stage="home"] .selection-flow {
    padding-top: 72px;
    padding-bottom: 6px;
  }

  body[data-selection-stage="home"] .selection-flow__header {
    gap: 3px;
  }

  body[data-selection-stage="home"] .selection-flow__event-logo {
    width: clamp(60px, 10vh, 74px);
  }

  body[data-selection-stage="home"] .selection-flow__eyebrow {
    font-size: clamp(28px, 9vw, 36px);
  }

  body[data-selection-stage="home"] .selection-flow h2 {
    font-size: clamp(22px, 7vw, 28px);
  }

  body[data-selection-stage="home"] .selection-flow__copy {
    margin-top: 3px;
    font-size: 14px;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    gap: 6px;
    margin-top: 5px;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 144px !important;
    height: 144px !important;
    max-height: 144px !important;
    grid-template-columns: minmax(84px, 29%) minmax(0, 1fr);
  }

  body[data-selection-stage="home"] .selection-entry__copy {
    gap: 3px;
    padding-block: 4px;
  }

  body[data-selection-stage="home"] .selection-entry__copy > strong {
    font-size: clamp(19px, 6vw, 25px);
  }

  body[data-selection-stage="home"] .selection-entry__description {
    display: block;
    overflow: visible;
    font-size: 13px;
    line-height: 1.1;
    -webkit-line-clamp: unset;
  }
}

/* STATSD-UI-126: finish the annotated home/header responsive seam. */
body[data-selection-stage="home"] .selection-flow__event-logo {
  display: none !important;
}

body[data-selection-stage="home"] .selection-flow__event-line {
  display: block;
}

body[data-selection-stage="home"] .selection-entry__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  font-weight: 1000;
  letter-spacing: .055em;
  white-space: nowrap;
}

body[data-selection-stage="home"] .selection-entry__action-arrow {
  flex: 0 0 auto;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

body[data-selection-stage="home"] .selection-entry__season-logo {
  width: min(78%, 126px);
  height: min(78%, 126px);
  object-fit: contain;
}

@media (min-width: 761px) and (max-width: 900px) {
  .topbar .brand-title {
    display: grid !important;
    min-width: 0;
  }

  .topbar .ffws-logo {
    flex: 0 0 72px;
    width: 72px;
    height: 48px;
  }

  .topbar .brand-title strong {
    font-size: clamp(17px, 2.1vw, 20px);
  }

  .topbar .brand-title span {
    font-size: 13px;
  }

  body[data-selection-stage="home"] .selection-flow__panel,
  body[data-selection-stage="home"] .selection-flow__grid--home {
    width: min(100%, calc(100vw - 24px));
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    gap: 10px;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 184px !important;
    height: 184px !important;
    max-height: 184px !important;
    grid-template-columns: minmax(78px, 34%) minmax(0, 1fr);
    gap: 7px !important;
    padding-right: 8px !important;
  }

  body[data-selection-stage="home"] .selection-entry__copy {
    gap: 3px;
    padding-block: 5px;
  }

  body[data-selection-stage="home"] .selection-entry__copy > strong {
    font-size: clamp(19px, 2.6vw, 24px);
  }

  body[data-selection-stage="home"] .selection-entry__description {
    display: block;
    overflow: visible;
    font-size: 13px;
    line-height: 1.1;
    -webkit-line-clamp: unset;
  }

  body[data-selection-stage="home"] .selection-entry__action {
    padding-inline: 10px;
  }
}

@media (min-width: 761px) and (max-width: 900px) and (max-height: 700px) {
  body[data-selection-stage="home"] .selection-flow {
    padding-top: 70px;
    padding-bottom: 6px;
  }

  body[data-selection-stage="home"] .selection-flow__header {
    gap: 2px;
  }

  body[data-selection-stage="home"] .selection-flow__eyebrow {
    font-size: clamp(30px, 6.4vh, 36px);
  }

  body[data-selection-stage="home"] .selection-flow h2 {
    font-size: clamp(25px, 5.2vh, 30px);
  }

  body[data-selection-stage="home"] .selection-flow__copy {
    margin-top: 3px;
    font-size: clamp(15px, 3.1vh, 18px);
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    margin-top: 5px;
  }
}

@media (min-width: 1501px) {
  .header-search__toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
}

@media (min-width: 761px) and (max-width: 800px) {
  body[data-selection-stage="home"] .selection-entry__action {
    gap: 4px;
    padding-inline: 6px;
    letter-spacing: .015em;
  }

  body[data-selection-stage="home"] .selection-entry__action-arrow {
    font-size: 20px;
  }
}

@media (max-width: 360px) {
  body[data-selection-stage="home"] .selection-flow__eyebrow {
    font-size: clamp(24px, 7.4vw, 27px) !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  body[data-selection-stage="home"] .selection-flow h2 {
    font-size: clamp(27px, 8.5vw, 31px) !important;
  }

  body[data-selection-stage="home"] .selection-flow__copy {
    font-size: 13px !important;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 160px !important;
    height: 160px !important;
    max-height: 160px !important;
  }

  body[data-selection-stage="home"] .selection-entry__description {
    display: block;
    overflow: visible;
    line-height: 1.1;
    -webkit-line-clamp: unset;
  }
}

@media (max-width: 360px) and (max-height: 700px) {
  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 156px !important;
    height: 156px !important;
    max-height: 156px !important;
  }
}

/* STATSD-UI-130: final Fixture/Rankings annotation normalization. */
#season-view-rankings .ranking-toolbar-head {
  grid-template-columns: minmax(0, 1fr);
}

#season-view-rankings .ranking-toolbar-controls {
  grid-template-columns: minmax(480px, .95fr) minmax(520px, 1.05fr);
  align-items: end;
  gap: 10px 14px;
}

#season-view-rankings .ranking-range-slider {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
}

#season-view-rankings .ranking-map-gallery {
  grid-column: 2;
  grid-row: 1;
  display: block;
  min-width: 0;
}

#season-view-rankings .ranking-map-gallery-viewport,
#season-view-rankings .ranking-map-gallery-track {
  width: 100%;
  overflow: visible;
}

#season-view-rankings .ranking-map-gallery-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  scroll-snap-type: none;
}

#season-view-rankings .ranking-map-card {
  width: 100%;
  height: 104px;
  min-width: 0;
  flex: none;
  scroll-snap-align: none;
}

#season-view-rankings .ranking-map-card-image {
  background-size: 100% 100%, cover;
}

#season-view-rankings .ranking-presets {
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
}

#season-view-rankings .ranking-reset {
  min-height: 34px;
  padding: 5px;
  border: 1px solid var(--statsd-glass-line);
  background: transparent;
  color: var(--muted);
}

#season-view-rankings .ranking-reset:hover,
#season-view-rankings .ranking-reset:focus-visible {
  border-color: var(--gold);
  background: var(--statsd-glass-fill-hover);
  color: var(--ink);
  outline: 0;
}

@media (min-width: 601px) {
  #season-view-rankings .ranking-table {
    width: 100%;
    min-width: 820px;
    table-layout: fixed;
  }

  #season-view-rankings .ranking-table th,
  #season-view-rankings .ranking-table td {
    height: 62px;
    padding: 8px 7px;
    text-align: center;
    vertical-align: middle;
  }

  #season-view-rankings .ranking-table th {
    height: 48px;
  }

  #season-view-rankings .ranking-table th:nth-child(1) { width: 56px; }
  #season-view-rankings .ranking-table th:nth-child(2) { width: 180px; }
  #season-view-rankings .ranking-table th:nth-child(3) { width: 96px; }
  #season-view-rankings .ranking-table th:nth-child(4) { width: 122px; }
  #season-view-rankings .ranking-table th:nth-child(5) { width: 180px; }
  #season-view-rankings .ranking-table th:nth-child(6) { width: 90px; }
  #season-view-rankings .ranking-table th:nth-child(7) { width: 116px; }

  #season-view-rankings .ranking-column-control,
  #season-view-rankings .ranking-entity,
  #season-view-rankings .ranking-team-cell,
  #season-view-rankings .ranking-nationality,
  #season-view-rankings .ranking-entity.statsd-entity-link,
  #season-view-rankings .ranking-team-cell.statsd-entity-link {
    justify-content: center;
    text-align: center;
  }

  #season-view-rankings .ranking-table th:last-child,
  #season-view-rankings .ranking-table td:last-child {
    text-align: center;
  }
}

#season-view-fixture .fixture-journey-table thead tr,
#season-view-fixture .fixture-global-table thead tr,
#season-view-fixture .fixture-journey-table tbody tr,
#season-view-fixture .fixture-global-table tbody tr,
#season-view-fixture .fixture-journey-table th,
#season-view-fixture .fixture-global-table th,
#season-view-fixture .fixture-journey-table td,
#season-view-fixture .fixture-global-table td {
  box-sizing: border-box;
  height: 44px;
}

#season-view-fixture .fixture-journey-table th,
#season-view-fixture .fixture-global-table th,
#season-view-fixture .fixture-journey-table td,
#season-view-fixture .fixture-global-table td {
  padding-block: 6px;
  line-height: 1;
  vertical-align: middle;
}

#season-view-fixture .fixture-table .fixture-team-cell {
  min-width: 0;
  white-space: nowrap;
}

#season-view-fixture .fixture-table .fixture-team-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
}

#season-view-fixture .fixture-global-maps .fixture-global-map-list {
  padding-top: 0;
}

#season-view-fixture .fixture-mvp-section {
  display: grid;
  height: auto;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  border: 0;
  background: transparent;
}

#season-view-fixture .fixture-mvp-section > .fixture-section-head {
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
}

#season-view-fixture #fixtureTopPlayersList {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-profile {
  min-height: 260px;
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-profile + .fixture-mvp-profile {
  border-top: 1px solid var(--statsd-glass-line);
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-media {
  min-height: 258px;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-bottom: 2px solid var(--gold);
  background:
    radial-gradient(circle at 50% 32%, rgba(247,189,34,.10), transparent 50%),
    transparent;
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-copy {
  padding: 14px 14px 7px;
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-stats {
  gap: 0;
  padding: 0 14px 14px;
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-stat {
  min-height: 58px;
  padding: 9px 10px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-stat:nth-child(even) {
  border-left: 1px solid var(--line-soft);
}

#season-view-fixture .fixture-weapon-usage-list {
  justify-items: stretch;
  padding: 4px 10px 8px;
}

#season-view-fixture .fixture-weapon-usage-card,
#season-view-fixture .fixture-weapon-usage-card:first-child {
  width: 100%;
  min-height: 96px;
  grid-template-columns: 38px 132px minmax(0, 1fr);
  justify-content: center;
  gap: 10px;
  padding: 9px 4px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

#season-view-fixture .fixture-weapon-usage-card:last-child {
  border-bottom: 0;
}

#season-view-fixture .fixture-weapon-usage-rank {
  align-self: center;
  text-align: center;
}

#season-view-fixture .fixture-weapon-usage-copy {
  justify-items: center;
  text-align: center;
}

#season-view-fixture .fixture-week-section {
  border: 0;
  background: transparent;
}

#season-view-fixture .fixture-week-section > .fixture-section-head,
#season-view-fixture .fixture-week-winner,
#season-view-fixture .fixture-week-player {
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
}

#season-view-fixture .fixture-week-grid {
  align-items: stretch;
  padding-top: 8px;
}

#season-view-fixture .fixture-week-winner {
  border-right: 1px solid var(--statsd-glass-line);
  background:
    linear-gradient(135deg, rgba(247,189,34,.10), transparent 62%),
    var(--statsd-glass-fill);
}

#season-view-fixture .fixture-week-roster {
  gap: 8px;
}

#season-view-fixture .fixture-week-player {
  border-bottom: 1px solid var(--statsd-glass-line);
  background:
    linear-gradient(115deg, rgba(247,189,34,.06), transparent 50%),
    var(--statsd-glass-fill);
}

@media (max-width: 1180px) {
  #season-view-rankings .ranking-toolbar-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  #season-view-rankings .ranking-range-slider,
  #season-view-rankings .ranking-map-gallery,
  #season-view-rankings .ranking-presets {
    grid-column: 1;
    grid-row: auto;
  }

  #season-view-rankings .ranking-map-gallery-track {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #season-view-fixture .fixture-mvp-section .fixture-mvp-profile {
    min-height: 0;
    grid-template-columns: 145px minmax(0, 1fr);
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-media {
    min-height: 230px;
  }

  #season-view-fixture .fixture-week-section > .fixture-section-head,
  #season-view-fixture .fixture-week-winner,
  #season-view-fixture .fixture-week-player {
    border-color: var(--statsd-glass-line);
  }
}

@media (max-width: 600px) {
  #season-view-rankings .ranking-map-gallery-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #season-view-rankings .ranking-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #season-view-fixture .fixture-weapon-usage-card,
  #season-view-fixture .fixture-weapon-usage-card:first-child {
    grid-template-columns: 34px 96px minmax(0, 1fr);
  }

  #season-view-fixture .fixture-weapon-usage-card img {
    width: 96px;
  }
}

/* STATSD-UI-129: annotated home, Fixture and Overall Rankings refinement. */
body[data-selection-stage="home"] .selection-flow__search-label,
body[data-selection-stage="home"] .selection-flow__copy {
  font-family: var(--font-display);
  font-size: 19px !important;
  font-weight: 1000;
  line-height: 25px !important;
}

body[data-selection-stage="home"] .selection-flow__copy {
  color: var(--ink);
}

.theme-toggle {
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

body[data-selection-stage="home"] .selection-entry__season-logo {
  width: 256px;
  max-width: none;
  height: 94px;
  image-rendering: auto;
}

.statsd-entity-link {
  appearance: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}

.statsd-entity-link:hover,
.statsd-entity-link:focus-visible {
  color: var(--gold);
}

.statsd-entity-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.ranking-toolbar,
.ranking-sidebar,
.ranking-stage-head,
.ranking-table-wrap,
.podium-card,
.fixture-card,
.fixture-section,
.fixture-global-maps,
.fixture-weapon-usage {
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
  box-shadow: var(--statsd-glass-shadow);
  backdrop-filter: var(--statsd-glass-filter);
  -webkit-backdrop-filter: var(--statsd-glass-filter);
}

#season-view-rankings {
  padding-top: clamp(10px, 1.2vw, 16px);
}

#season-view-rankings .ranking-toolbar-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

#season-view-rankings .ranking-toolbar-controls {
  align-items: start;
}

#season-view-rankings .ranking-range-slider {
  grid-column: 1 / -1;
}

#season-view-rankings .ranking-presets {
  grid-column: 1 / -1;
  justify-self: start;
  width: min(100%, 480px);
  margin-top: 1px;
}

#season-view-rankings .ranking-preset,
#season-view-rankings .ranking-map-card,
#season-view-rankings .ranking-category,
#season-view-rankings .ranking-reset {
  box-shadow: none;
}

#season-view-rankings .ranking-preset:hover,
#season-view-rankings .ranking-preset.active,
#season-view-rankings .ranking-map-card:hover,
#season-view-rankings .ranking-map-card.active,
#season-view-rankings .ranking-category:hover,
#season-view-rankings .ranking-category.active {
  border: 1px solid var(--gold);
  background: var(--statsd-glass-fill-hover);
  box-shadow: none;
}

#season-view-rankings .ranking-stage {
  overflow: visible;
  border: 0;
  background: transparent;
}

#season-view-rankings .ranking-stage-head {
  margin-bottom: 8px;
  background: var(--statsd-glass-fill);
}

#season-view-rankings .ranking-podium {
  gap: 8px;
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}

#season-view-rankings .podium-card,
#season-view-rankings .podium-card[data-rank="1"] {
  border: 1px solid var(--statsd-glass-line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 62%),
    var(--statsd-glass-fill);
  box-shadow: none;
}

#season-view-rankings .podium-card[data-rank="1"] {
  border-color: var(--gold);
}

#season-view-rankings .ranking-table-wrap {
  border-top: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
}

#season-view-rankings .ranking-entity.statsd-entity-link,
#season-view-rankings .ranking-team-cell.statsd-entity-link {
  display: flex;
  width: 100%;
  align-items: center;
}

#season-view-fixture > .fixture-overview-toolbar {
  min-height: 0;
  display: flex;
  justify-content: flex-start;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

#season-view-fixture > .fixture-overview-toolbar .fixture-journey-control {
  width: min(100%, 280px);
}

#season-view-fixture .fixture-journey-control select {
  margin-top: 5px;
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
  box-shadow: none;
}

#season-view-fixture .fixture-tables-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(420px, .75fr);
  align-items: start;
  gap: 12px;
}

#season-view-fixture .fixture-journey-column,
#season-view-fixture .fixture-global-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

#season-view-fixture .fixture-global-table {
  width: 100%;
  min-width: 420px;
  table-layout: fixed;
}

#season-view-fixture .fixture-journey-table {
  min-width: 820px;
}

#season-view-fixture .fixture-table td:nth-child(2) .fixture-team-cell.statsd-entity-link {
  display: grid;
  grid-template-columns: 28px 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
}

#season-view-fixture .fixture-global-card .fixture-table-wrap {
  --fixture-web-rank-width: 40px;
  --fixture-web-team-width: 170px;
}

#season-view-fixture .fixture-global-table th:nth-child(n+3),
#season-view-fixture .fixture-global-table td:nth-child(n+3) {
  width: 70px;
  min-width: 70px;
  padding-inline: 5px;
  text-align: center;
}

#season-view-fixture .fixture-country-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
}

#season-view-fixture .fixture-week-player-meta small {
  font-size: 13px;
}

#season-view-fixture .fixture-week-map-metrics > b {
  box-sizing: border-box;
  min-height: 48px;
  padding-bottom: 7px;
  line-height: 1;
}

#season-view-fixture .fixture-week-map-metrics > b small {
  line-height: 1.1;
}

#season-view-fixture .fixture-global-maps,
#season-view-fixture .fixture-weapon-usage,
#season-view-fixture .fixture-card,
#season-view-fixture .fixture-section {
  background: var(--statsd-glass-fill);
}

#season-view-fixture .fixture-maps-section,
#season-view-fixture .fixture-maps-section .fixture-map-grid {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#season-view-fixture .fixture-maps-section > .fixture-section-head {
  margin-bottom: 8px;
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
}

#season-view-fixture .fixture-map {
  border: 1px solid var(--statsd-glass-line);
  background-color: var(--statsd-glass-fill);
}

@media (max-width: 1180px) {
  #season-view-fixture .fixture-tables-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #season-view-fixture .fixture-global-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #season-view-fixture .fixture-global-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-flow__search-label,
  body[data-selection-stage="home"] .selection-flow__copy {
    font-size: 19px !important;
    line-height: 25px !important;
  }

  body[data-selection-stage="home"] .selection-entry__season-logo {
    width: 222px;
    height: 82px;
  }

  #season-view-rankings .ranking-presets,
  #season-view-fixture .fixture-global-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #season-view-fixture .fixture-global-card {
    grid-column: auto;
  }

  #season-view-fixture .fixture-maps-section > .fixture-section-head {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  #season-view-rankings .ranking-podium[data-entity="players"] .podium-card h4 {
    bottom: 71px;
  }

  #season-view-rankings .ranking-podium[data-entity="players"] .podium-card p {
    bottom: 54px;
  }

  #season-view-rankings .ranking-podium[data-entity="players"] .podium-card > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    min-height: 48px;
    padding: 5px 6px;
    border-top: 1px solid var(--statsd-glass-line);
    background: color-mix(in srgb, var(--panel) 72%, transparent);
    color: var(--ink);
  }

  #season-view-rankings .ranking-podium[data-entity="players"] .podium-card > div b {
    color: var(--gold);
    font-size: clamp(24px, 7.2vw, 28px);
    line-height: 1;
  }

  #season-view-rankings .ranking-podium[data-entity="players"] .podium-card > div small {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    line-height: 1;
    overflow-wrap: normal;
    white-space: nowrap;
  }
}

/* STATSD-UI-128: one search component moves into home and the annotated
   composition keeps a centered, consistent control rhythm. */
.selection-flow__search-block {
  display: none;
}

body[data-selection-stage="home"] .topbar {
  grid-template-columns: minmax(0, 1fr) max-content !important;
}

body[data-selection-stage="home"] .topbar > .nav-area {
  grid-column: 2;
}

body[data-selection-stage="home"] .selection-flow__search-block {
  position: relative;
  z-index: 8;
  order: 1;
  display: grid;
  width: min(520px, calc(100% - 32px));
  margin: clamp(8px, 1.5vh, 14px) auto 0;
  gap: 6px;
  text-align: left;
}

body[data-selection-stage="home"] .selection-flow__search-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

body[data-selection-stage="home"] .selection-flow__search-mount,
body[data-selection-stage="home"] .selection-flow__search-mount .header-search,
body[data-selection-stage="home"] .selection-flow__search-mount .header-search__field {
  width: 100% !important;
  min-width: 0 !important;
}

body[data-selection-stage="home"] .selection-flow__search-mount .header-search,
body[data-selection-stage="home"] .selection-flow__search-mount .header-search.is-open {
  position: relative !important;
  inset: auto !important;
  z-index: 24;
  justify-self: stretch;
  transform: none !important;
}

body[data-selection-stage="home"] .selection-flow__search-mount .header-search__field,
body[data-selection-stage="home"] .selection-flow__search-mount .header-search.is-open .header-search__field {
  min-height: 48px;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  overflow: visible;
}

body[data-selection-stage="home"] .selection-flow__search-mount .header-search__toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

body[data-selection-stage="home"] .selection-flow__search-mount .header-search__input,
body[data-selection-stage="home"] .selection-flow__search-mount .header-search__clear {
  width: auto;
  min-width: 0;
  opacity: 1;
  pointer-events: auto;
}

body[data-selection-stage="home"] .selection-flow__search-mount .header-search__input {
  padding-inline: 4px;
}

body[data-selection-stage="home"] .selection-flow__search-mount .header-search__results:not([hidden]) {
  position: absolute !important;
  inset: calc(100% + 6px) 0 auto !important;
  width: 100% !important;
  max-width: none;
  transform: none !important;
}

body[data-selection-stage="home"] .selection-flow__copy {
  margin-top: clamp(7px, 1.2vh, 11px);
}

body[data-selection-stage="home"] .selection-entry__action {
  justify-content: center;
  gap: 10px;
  text-align: center;
}

body[data-selection-stage="home"] .selection-entry__season-logo {
  width: min(86%, 155px);
  height: min(86%, 132px);
}

@media (min-width: 901px) {
  body[data-selection-stage="home"] .selection-flow__panel {
    align-content: center;
    grid-template-rows: auto auto auto auto auto;
  }

  body[data-selection-stage="home"] .selection-flow__grid--home {
    height: auto;
  }
}

@media (max-width: 1180px) {
  body:not([data-selection-stage="home"]) .topbar {
    grid-template-columns: minmax(0, 1fr) 44px 44px !important;
  }

  body:not([data-selection-stage="home"]) .header-search,
  body:not([data-selection-stage="home"]) .header-search__field {
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  body:not([data-selection-stage="home"]) .header-search__field {
    grid-template-columns: 44px 0 0;
  }

  body:not([data-selection-stage="home"]) .header-search__toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  body:not([data-selection-stage="home"]) .header-search.is-open {
    width: calc(100vw - 16px);
    min-width: 0;
  }
}

@media (min-width: 761px) and (max-height: 700px) {
  body[data-selection-stage="home"] .selection-flow__search-block {
    margin-top: 5px;
    gap: 4px;
  }

  body[data-selection-stage="home"] .selection-flow__search-label {
    font-size: 13px;
  }

  body[data-selection-stage="home"] .selection-flow__search-mount .header-search__field,
  body[data-selection-stage="home"] .selection-flow__search-mount .header-search.is-open .header-search__field {
    min-height: 44px;
  }
}

@media (max-width: 360px) and (max-height: 700px) {
  body[data-selection-stage="home"] .selection-flow {
    padding-top: 64px;
  }

  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--rankings {
    min-height: 144px !important;
    height: 144px !important;
    max-height: 144px !important;
  }
}

/* STATSD-UI-131: release-order corrections for Fixture and Overall Rankings. */
@media (min-width: 1181px) {
  #season-view-rankings .ranking-toolbar-controls {
    grid-template-columns: minmax(480px, .95fr) minmax(520px, 1.05fr);
    align-items: end;
    gap: 10px 14px;
  }

  #season-view-rankings .ranking-range-slider {
    grid-column: 1;
    grid-row: 1;
  }

  #season-view-rankings .ranking-map-gallery {
    grid-column: 2;
    grid-row: 1;
  }

  #season-view-rankings .ranking-presets {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 1306px) {
  #season-view-fixture .fixture-week-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #season-view-fixture .fixture-week-winner {
    border-right: 1px solid var(--statsd-glass-line);
  }
}

@media (min-width: 761px) {
  .team-player-card:not(.vacant) > div:not(.team-player-stats) {
    top: 56px;
    bottom: 104px;
    width: 52%;
    max-width: 52% !important;
  }

  .team-player-card:not(.vacant) .team-player-photo {
    width: 35%;
  }
}

.selection-player-group__grid .selection-choice__identity strong {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: scaleX(.86);
  transform-origin: center;
}

@media (max-width: 480px) {
  .selection-player-group__grid .selection-choice__identity strong {
    width: 100%;
    max-width: 100%;
    letter-spacing: -.1em;
    transform: scaleX(.72);
  }
}

/* STATSD-UI-134: keep long nicknames isolated inside six-player formations. */
@media (min-width: 481px) and (max-width: 1180px) {
  .selection-player-group__grid:has(.selection-choice--player:nth-child(6))
    .selection-choice__identity strong {
    transform: scaleX(.76);
  }
}

@media (max-width: 480px) {
  .selection-player-group__grid:has(.selection-choice--player:nth-child(6))
    .selection-choice__identity strong {
    transform: scaleX(.62);
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .team-performance-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* STATSD-UI-132: align search identities and normalize TEMPORADA tables and
   supplemental rankings without changing their data or navigation contract. */
.selection-search__option--team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: stretch;
  gap: 10px;
  padding: 0 12px 0 0;
}

.selection-search__team-line {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 88px 34px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  gap: 9px;
}

.selection-search__option--team .selection-search__media {
  width: 88px;
  height: 62px;
  justify-self: center;
}

.selection-search__option--team .selection-search__media img {
  width: 42px;
  height: 42px;
}

.selection-search__option--team .selection-search__team-flag {
  width: 34px;
  height: 22px;
  justify-self: center;
}

.selection-search__option--team .selection-search__option-type {
  position: static;
  transform: none;
}

#season-view-fixture .fixture-tables-layout {
  grid-template-columns: minmax(760px, 1.62fr) minmax(440px, .88fr);
  gap: 12px;
}

#season-view-fixture .fixture-journey-column,
#season-view-fixture .fixture-global-layout {
  display: block;
}

#season-view-fixture .fixture-supplemental-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

#season-view-fixture .fixture-journey-card .fixture-table-wrap,
#season-view-fixture .fixture-global-card .fixture-table-wrap {
  --fixture-web-rank-width: 42px;
  --fixture-web-team-width: 240px;
}

#season-view-fixture .fixture-journey-table {
  width: 100%;
  min-width: 748px;
  table-layout: fixed;
}

#season-view-fixture .fixture-global-table {
  width: 100%;
  min-width: 430px;
  table-layout: fixed;
}

#season-view-fixture .fixture-journey-table th:first-child,
#season-view-fixture .fixture-journey-table td:first-child,
#season-view-fixture .fixture-global-table th:first-child,
#season-view-fixture .fixture-global-table td:first-child {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
}

#season-view-fixture .fixture-journey-table th:nth-child(2),
#season-view-fixture .fixture-journey-table td:nth-child(2),
#season-view-fixture .fixture-global-table th:nth-child(2),
#season-view-fixture .fixture-global-table td:nth-child(2) {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
}

#season-view-fixture .fixture-journey-table th:nth-child(n + 3),
#season-view-fixture .fixture-journey-table td:nth-child(n + 3) {
  width: 54px;
  min-width: 54px;
  padding-inline: 5px;
}

#season-view-fixture .fixture-global-table th:nth-child(n + 3),
#season-view-fixture .fixture-global-table td:nth-child(n + 3) {
  width: 56px;
  min-width: 56px;
  padding-inline: 5px;
}

#season-view-fixture .fixture-table th + th,
#season-view-fixture .fixture-table td + td {
  border-left: 1px solid var(--line-soft);
}

#season-view-fixture .fixture-table td:nth-child(2) .fixture-team-cell > span {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap;
}

#season-view-fixture #fixtureTopPlayersList {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-profile {
  min-width: 0;
  min-height: 258px;
  grid-template-columns: clamp(150px, 13vw, 190px) minmax(0, 1fr);
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-profile + .fixture-mvp-profile {
  border-top: 1px solid var(--statsd-glass-line);
}

#season-view-fixture .fixture-weapon-usage {
  min-width: 0;
  overflow: hidden;
}

#season-view-fixture .fixture-weapon-usage-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  justify-items: stretch;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--gold) var(--line-soft);
  scrollbar-width: thin;
}

#season-view-fixture .fixture-weapon-usage-card,
#season-view-fixture .fixture-weapon-usage-card:first-child {
  width: auto;
  min-width: 0;
  min-height: 96px;
  grid-template-columns: 28px minmax(72px, 96px) minmax(0, 1fr);
  gap: 7px;
  padding: 9px 8px;
  border: 0;
  border-left: 1px solid var(--line-soft);
}

#season-view-fixture .fixture-weapon-usage-card:first-child {
  border-left: 0;
}

#season-view-fixture .fixture-weapon-usage-card img {
  width: 100%;
  height: 70px;
  object-fit: contain;
}

#season-view-fixture .fixture-weapon-usage-copy {
  justify-items: start;
  text-align: left;
}

#season-view-rankings .ranking-table {
  min-width: 940px;
  table-layout: auto;
}

#season-view-rankings .ranking-table th,
#season-view-rankings .ranking-table td {
  vertical-align: middle;
}

#season-view-rankings .ranking-table th:nth-child(1) { width: 56px; }
#season-view-rankings .ranking-table th:nth-child(2) { width: clamp(190px, 22vw, 260px); }
#season-view-rankings .ranking-table th:nth-child(3) { width: 112px; }
#season-view-rankings .ranking-table th:nth-child(4) { width: 150px; }
#season-view-rankings .ranking-table th:nth-child(5) { width: clamp(190px, 20vw, 250px); }
#season-view-rankings .ranking-table th:nth-child(6) { width: 84px; }
#season-view-rankings .ranking-table th:nth-child(7) { width: 108px; }

#season-view-rankings .ranking-table td[data-ranking-field="entity"],
#season-view-rankings .ranking-table td[data-ranking-field="role"],
#season-view-rankings .ranking-table td[data-ranking-field="nationality"],
#season-view-rankings .ranking-table td[data-ranking-field="type"],
#season-view-rankings .ranking-column-control[data-column="entity"],
#season-view-rankings .ranking-column-control[data-column="role"],
#season-view-rankings .ranking-column-control[data-column="nationality"],
#season-view-rankings .ranking-column-control[data-column="team"],
#season-view-rankings .ranking-entity,
#season-view-rankings .ranking-team-cell,
#season-view-rankings .ranking-nationality,
#season-view-rankings .ranking-entity.statsd-entity-link,
#season-view-rankings .ranking-team-cell.statsd-entity-link {
  justify-content: flex-start;
  text-align: left !important;
}

#season-view-rankings .ranking-table td[data-ranking-field="rank"],
#season-view-rankings .ranking-table td[data-ranking-field="matches"],
#season-view-rankings .ranking-table td[data-ranking-field="value"],
#season-view-rankings .ranking-column-control[data-column="rank"],
#season-view-rankings .ranking-column-control[data-column="matches"],
#season-view-rankings .ranking-column-control[data-column="value"] {
  justify-content: center;
  text-align: center !important;
}

#season-view-rankings .ranking-table td[data-ranking-field="entity"] .ranking-entity > span:not(.ranking-entity-face),
#season-view-rankings .ranking-table td[data-ranking-field="type"] .ranking-team-cell > span,
#season-view-rankings .ranking-table td[data-ranking-field="role"],
#season-view-rankings .ranking-table td[data-ranking-field="nationality"] {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: break-word;
}

@media (max-width: 1240px) {
  #season-view-fixture .fixture-tables-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .selection-search__option--team {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 8px 0 0;
  }

  .selection-search__team-line {
    grid-template-columns: 70px 30px minmax(0, 1fr);
    gap: 7px;
  }

  .selection-search__option--team .selection-search__media {
    width: 70px;
    height: 48px;
  }

  .selection-search__option--team .selection-search__media img {
    width: 32px;
    height: 32px;
  }

  .selection-search__option--team .selection-search__team-flag {
    width: 30px;
    height: 19px;
  }

  #season-view-fixture #fixtureTopPlayersList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-profile {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 138px auto auto;
    align-content: start;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-media {
    grid-column: 1;
    grid-row: 1;
    min-height: 138px;
    height: 138px;
    margin: 0;
    border-right: 0;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-copy {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 9px 8px 7px;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-copy h4 {
    margin-top: 3px;
    font-size: clamp(17px, 4.8vw, 22px);
    overflow-wrap: anywhere;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-team,
  #season-view-fixture .fixture-mvp-section .fixture-mvp-nationality {
    min-width: 0;
    margin-top: 3px;
    gap: 5px;
    font-size: 13px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-team img {
    width: 22px;
    height: 22px;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-stats {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0 8px 8px;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-stat {
    min-height: 52px;
    padding: 7px 5px;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-stat span {
    font-size: 13px;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
  }

  #season-view-fixture .fixture-mvp-section .fixture-mvp-stat b {
    font-size: 18px;
  }

  #season-view-fixture .fixture-weapon-usage-list {
    grid-template-columns: repeat(5, minmax(184px, 1fr));
  }

  #season-view-rankings .ranking-table {
    min-width: 940px;
  }

  #season-view-rankings .ranking-table-wrap {
    --season-identity-width: clamp(180px, 54vw, 240px);
  }

  #season-view-rankings .ranking-table td:nth-child(2) .ranking-entity > span:not(.ranking-entity-face) {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

/* STATSD-UI-133: final J9 annotation pass. Keep the existing visual language;
   only normalize alignment, responsive containment and compact controls. */
.header-search__toggle {
  display: grid;
  place-items: center;
  padding: 0;
}

.header-search__toggle .header-search__icon {
  display: block;
  margin: auto;
}

.view-back:not([hidden]) svg {
  display: block !important;
  width: 20px !important;
  min-width: 20px;
  height: 20px !important;
  stroke: #080806 !important;
}

#season-view-fixture .fixture-card-head,
#season-view-fixture .fixture-section-head,
#season-view-fixture .fixture-map-top > header {
  padding: 12px 14px;
}

#season-view-fixture .fixture-journey-card > .fixture-card-head {
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(242px, 320px) auto;
  justify-content: start;
  align-items: end;
  column-gap: 16px;
}

#season-view-fixture .fixture-journey-card .fixture-journey-control {
  width: 100%;
  display: grid;
  grid-template-columns: max-content minmax(144px, 1fr);
  align-items: center;
  gap: 9px;
}

#season-view-fixture .fixture-journey-card .fixture-journey-control label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#season-view-fixture .fixture-journey-card .fixture-journey-control select {
  min-height: 38px;
  margin: 0;
  padding: 7px 32px 7px 10px;
  border: 1px solid var(--statsd-glass-line);
  background-color: var(--panel-2);
  color: var(--ink);
  color-scheme: dark;
  font-size: 13px;
  font-weight: 1000;
}

#season-view-fixture .fixture-journey-card .fixture-journey-control select option {
  background: var(--panel-2);
  color: var(--ink);
}

body.light #season-view-fixture .fixture-journey-card .fixture-journey-control select {
  color-scheme: light;
}

#season-view-fixture .fixture-journey-card .fixture-table-wrap,
#season-view-fixture .fixture-global-card .fixture-table-wrap {
  --fixture-web-rank-width: 42px;
  --fixture-web-team-width: 240px;
}

#season-view-fixture .fixture-global-card {
  width: min(100%, 440px);
}

#season-view-fixture .fixture-global-table {
  width: 438px;
  min-width: 438px;
}

#season-view-fixture .fixture-global-table th:nth-child(n + 3),
#season-view-fixture .fixture-global-table td:nth-child(n + 3) {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
}

#season-view-fixture .fixture-weapon-usage {
  overflow: visible;
}

#season-view-fixture .fixture-weapon-usage-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: visible;
  scrollbar-width: none;
}

#season-view-fixture .fixture-weapon-usage-card,
#season-view-fixture .fixture-weapon-usage-card:first-child {
  grid-template-columns: 24px minmax(68px, 92px) minmax(0, 1fr);
  min-height: 104px;
  padding: 10px 9px;
}

#season-view-fixture .fixture-weapon-usage-rank,
#season-view-fixture .fixture-weapon-usage-copy h4,
#season-view-fixture .fixture-weapon-usage-copy small {
  font-size: 13px;
}

#season-view-fixture .fixture-week-grid {
  gap: 16px;
  padding: 14px;
}

#season-view-fixture .fixture-week-roster {
  gap: 12px;
}

#season-view-fixture .fixture-week-player {
  border-color: var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
}

#season-view-fixture .fixture-week-best-map {
  grid-template-rows: minmax(48px, auto) minmax(44px, auto);
}

#season-view-rankings {
  border-top: 0 !important;
}

#season-view-rankings .ranking-catalog-head {
  padding: 14px;
}

#season-view-rankings .ranking-search {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

#season-view-rankings .ranking-search:hover,
#season-view-rankings .ranking-search:focus-visible {
  border-color: var(--gold);
  background: var(--statsd-glass-fill-hover);
}

#season-view-fixture .fixture-map-grid {
  align-items: stretch;
  gap: 12px;
}

#season-view-fixture .fixture-map {
  min-width: 0;
  min-height: clamp(190px, 18vw, 230px);
  isolation: isolate;
}

#season-view-fixture .fixture-map-winner,
#season-view-fixture .fixture-map-state {
  min-width: 0;
}

#season-view-fixture .fixture-map-winner strong,
#season-view-fixture .fixture-map-state strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1306px) {
  #season-view-fixture .fixture-week-roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  #season-view-fixture .fixture-weapon-usage-list {
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  }
}

@media (max-width: 760px) {
  #season-view-fixture .fixture-journey-card > .fixture-card-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 10px;
  }

  #season-view-fixture .fixture-journey-card .fixture-journey-control {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  #season-view-fixture .fixture-journey-card .fixture-journey-control select {
    width: 100%;
    min-height: 44px;
  }

  #season-view-fixture .fixture-global-card {
    width: 100%;
  }

  #season-view-fixture .fixture-week-roster {
    grid-template-columns: minmax(0, 1fr);
  }

  #season-view-fixture .fixture-weapon-usage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #season-view-fixture .fixture-weapon-usage-card,
  #season-view-fixture .fixture-weapon-usage-card:first-child {
    grid-template-columns: 22px minmax(58px, 76px) minmax(0, 1fr);
  }

  #season-view-fixture .fixture-map-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 340px) {
  .brand-area:has(.view-back:not([hidden])) .ffws-logo {
    flex-basis: 20px !important;
    width: 20px !important;
  }

  .brand-area:has(.view-back:not([hidden])) .brand-title span {
    letter-spacing: 0 !important;
  }
}

/* STATSD-UI-135: apply the 2026-09-07 Fixture and Rankings annotations. */
.ranking-range-slider__rail {
  top: 50%;
  right: 12px;
  left: 12px;
  transform: translateY(-50%);
  background:
    linear-gradient(to right,
      var(--line) 0 calc(var(--ranking-range-from) + 12px),
      var(--gold) calc(var(--ranking-range-from) + 12px) calc(var(--ranking-range-to) - 12px),
      var(--line) calc(var(--ranking-range-to) - 12px) 100%);
}

#season-view-fixture .fixture-journey-card,
#season-view-fixture .fixture-global-card {
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
}

#season-view-fixture .fixture-journey-card > .fixture-card-head {
  grid-template-columns: minmax(210px, 1fr) auto;
  align-items: center;
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-media {
  border-bottom: 0;
}

#season-view-fixture .fixture-mvp-section .fixture-mvp-stat.primary {
  border-top-color: var(--line-soft);
  box-shadow: none;
}

/* STATSD-UI-136: center the competitive-range handles on their rail and
   present the weekly winner plus roster as one uninterrupted data surface. */
.ranking-range-slider__rail {
  background:
    linear-gradient(to right,
      var(--line) 0 var(--ranking-range-from),
      var(--gold) var(--ranking-range-from) var(--ranking-range-to),
      var(--line) var(--ranking-range-to) 100%);
}

.ranking-range-slider__rail::before,
.ranking-range-slider__rail::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--page);
  box-shadow: 0 0 0 4px rgba(247, 189, 34, .14);
  pointer-events: none;
}

.ranking-range-slider__rail::before {
  left: var(--ranking-range-from);
  transform: translate(-50%, -50%);
}

.ranking-range-slider__rail::after {
  left: var(--ranking-range-to);
  transform: translate(-50%, -50%);
}

.ranking-range-slider__track input[type="range"] {
  box-sizing: border-box;
  padding: 0;
}

.ranking-range-slider__track input[type="range"]::-webkit-slider-thumb {
  box-sizing: border-box;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ranking-range-slider__track input[type="range"]::-moz-range-thumb {
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

#season-view-fixture .fixture-week-section {
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
}

#season-view-fixture .fixture-week-section > .fixture-section-head,
#season-view-fixture .fixture-week-grid,
#season-view-fixture .fixture-week-winner,
#season-view-fixture .fixture-week-player,
#season-view-fixture .fixture-week-player.is-open,
#season-view-fixture .fixture-week-kpis div,
#season-view-fixture .fixture-week-best-map {
  border: 0;
  background: transparent;
  box-shadow: none;
}

#season-view-fixture .fixture-week-map-metrics,
#season-view-fixture .fixture-week-kpis div + div,
#season-view-fixture .fixture-week-map-metrics > b + b,
#season-view-fixture .fixture-week-player-stats small {
  border: 0;
}

/* STATSD-UI-137: align the player quick cards with the KPI band above. */
#panel-jugadores .quick-grid {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-inline: 0;
}

@media (min-width: 981px) and (max-width: 1180px) {
  #panel-jugadores .quick-grid {
    grid-template-columns: minmax(0, .72fr) minmax(0, .72fr) minmax(0, 1.18fr);
  }
}

/* STATSD-UI-138: every player weapon is a complete leaf card. */
#panel-jugadores .weapons > .weapon {
  border: 1px solid var(--statsd-glass-line);
}

/* STATSD-UI-139: center-weighted player lineups and annotated selection surfaces. */
body[data-selection-stage="home"] .selection-entry--rankings .selection-entry__visual {
  display: grid;
  place-items: center;
}

body[data-selection-stage="home"] .selection-entry__season-logo {
  position: absolute;
  inset: 0 auto 0 50%;
  width: min(155%, 300px);
  height: 100%;
  margin: 0;
  object-position: center;
  transform: translateX(-50%);
}

.selection-flow__grid--all-players > .selection-player-group {
  box-sizing: border-box;
  border: 1px solid var(--statsd-glass-line);
  background: rgba(0, 0, 0, .42);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.selection-player-group__grid .selection-choice--player {
  z-index: calc(2 + var(--selection-depth, 0));
  transform-origin: center bottom;
  transition: transform .18s ease, filter .18s ease;
}

.selection-player-group__grid .selection-choice__visual img {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

.selection-player-group__grid .selection-choice--player:hover,
.selection-player-group__grid .selection-choice--player:focus-visible {
  z-index: 60;
  transform: scale(1.045);
  animation: none;
}

.selection-player-group__grid .selection-choice--player.selection-choice--selected {
  z-index: 70;
  transform: scale(1.06);
  animation: none;
}

@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-entry__season-logo {
    width: min(100%, 270px);
  }
}

/* STATSD-UI-140: corrected Fixture and Rankings annotation pass. Keep the
   Jornada control, align Global, frame weekly players and stop the range line. */
#season-view-fixture .fixture-global-card,
#season-view-fixture .fixture-global-card .fixture-table-wrap {
  width: 100%;
  max-width: none;
}

#season-view-fixture .fixture-global-card .fixture-table-wrap {
  --fixture-web-team-width: 228px;
}

#season-view-fixture .fixture-global-table th:nth-child(2),
#season-view-fixture .fixture-global-table td:nth-child(2) {
  width: 228px;
  min-width: 228px;
  max-width: 228px;
}

#season-view-fixture .fixture-global-table {
  width: 100%;
  min-width: 438px;
}

#season-view-fixture .fixture-global-table th:nth-child(4),
#season-view-fixture .fixture-global-table td:nth-child(4) {
  width: 64px;
  min-width: 64px;
  max-width: 64px;
}

.ranking-range-slider__rail {
  background:
    linear-gradient(to right,
      var(--line) 0 calc(var(--ranking-range-from) + 12px),
      var(--gold) calc(var(--ranking-range-from) + 12px) calc(var(--ranking-range-to) - 12px),
      var(--line) calc(var(--ranking-range-to) - 12px) 100%);
}

/* STATSD-UI-141: weekly roster lines match the neutral Top eliminations
   dividers instead of drawing a yellow accent frame. */
#season-view-fixture .fixture-week-player,
#season-view-fixture .fixture-week-player.is-open {
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  background: transparent;
  box-shadow: none;
}

/* STATSD-UI-142: distribute the desktop team identity across deliberate
   vertical bands and strengthen the hierarchy shown in the reference. */
@media (min-width: 981px) {
  #panel-equipos .team-feature {
    grid-template-rows: 130px 230px 90px 130px 65px;
    align-content: center;
    padding-bottom: 64px;
  }

  #panel-equipos .team-feature-rank {
    align-self: end;
    gap: 6px;
    margin-bottom: 0;
  }

  #panel-equipos .team-feature-rank span {
    font-size: clamp(18px, 1.4vw, 22px);
    line-height: 1;
  }

  #panel-equipos .team-feature-rank b {
    font-size: clamp(64px, 5vw, 76px);
  }

  #panel-equipos .team-feature > img:not(.flag-img) {
    align-self: center;
    width: min(190px, 58%);
  }

  #panel-equipos .team-feature h2 {
    align-self: start;
    margin-top: 8px;
  }

  #panel-equipos .team-feature .flag-img {
    align-self: center;
    width: clamp(160px, 35%, 196px);
    margin-top: 0;
  }

  #panel-equipos .team-country {
    align-self: center;
    margin-top: 0;
    font-size: clamp(28px, 2.8vw, 42px);
    line-height: .9;
  }
}

/* STATSD-UI-143: enlarge desktop/tablet roster portraits, reclaim the empty
   upper band and raise the card typography without crossing the metrics. */
@media (min-width: 761px) {
  #panel-equipos .team-player-card:not(.vacant) > div:not(.team-player-stats) {
    top: 20px;
    bottom: 116px;
    width: 45%;
    max-width: 45% !important;
  }

  #panel-equipos .team-player-card:not(.vacant) .team-player-photo {
    right: 4px;
    bottom: 68px;
    width: 47%;
    height: 230px;
  }

  #panel-equipos .team-player-card:not(.vacant) > div:not(.team-player-stats) > small {
    font-size: 14px;
  }

  #panel-equipos .team-player-card:not(.vacant) h4 {
    width: 117.65%;
    font-size: clamp(23px, 1.65vw, 26px);
    white-space: nowrap;
    transform: scaleX(.85);
    transform-origin: left center;
  }

  #panel-equipos .team-player-card:not(.vacant) .team-player-real-name {
    font-size: 14px;
  }

  #panel-equipos .team-player-card:not(.vacant) .team-player-meta span,
  #panel-equipos .team-player-card:not(.vacant) .team-player-stats span {
    font-size: 14px;
  }

  #panel-equipos .team-player-card:not(.vacant) .team-player-stats b {
    font-size: 16px;
  }
}

/* STATSD-UI-144: every desktop/tablet Fixture weapon is a complete leaf card. */
@media (min-width: 761px) {
  #season-view-fixture .fixture-weapon-usage-card,
  #season-view-fixture .fixture-weapon-usage-card:first-child,
  #season-view-fixture .fixture-weapon-usage-card:last-child,
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-card,
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-card:first-child,
  #season-view-fixture .fixture-global-layout.is-collapsed .fixture-weapon-usage-card:last-child {
    border: 1px solid var(--statsd-glass-line);
  }
}

/* STATSD-UI-145: contain the official season logo at its natural proportion. */
body[data-selection-stage="home"] .selection-entry__season-logo {
  position: static;
  inset: auto;
  width: min(92%, 132px);
  height: auto;
  max-width: 100%;
  max-height: 80%;
  margin: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}

/* STATSD-UI-146: use the full desktop player column down to the profile edge
   while keeping the featured character proportionally contained. */
@media (min-width: 1181px) {
  #panel-jugadores .quick-grid {
    padding-bottom: 0;
  }

  #panel-jugadores .asset-tile-character .asset-tile-image img {
    inset: 10px;
    width: auto;
    height: auto;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    object-fit: contain;
    object-position: center bottom;
  }
}

/* STATSD-UI-147: enlarge portraits in the three-column team roster without
   crossing the identity column or the protected metrics band. */
@media (min-width: 1367px) {
  #panel-equipos .team-player-card:not(.vacant) > div:not(.team-player-stats) {
    width: 40%;
    max-width: 40% !important;
  }

  #panel-equipos .team-player-card:not(.vacant) .team-player-photo {
    right: 0;
    bottom: 62px;
    width: 54%;
    height: 250px;
  }
}

/* STATSD-UI-148: strengthen Fixture's neutral table frames and weekly-roster
   dividers without adding a second wrapper surface or a gold accent. */
#season-view-fixture .fixture-journey-card,
#season-view-fixture .fixture-global-card {
  border-color: color-mix(in srgb, var(--ink) 24%, transparent);
}

#season-view-fixture .fixture-week-player,
#season-view-fixture .fixture-week-player.is-open {
  border-bottom-color: color-mix(in srgb, var(--ink) 18%, transparent);
  border-left-color: color-mix(in srgb, var(--ink) 18%, transparent);
}

/* STATSD-UI-149: fill the wide roster card's upper portrait band while
   clipping only the transparent gutter that precedes the identity column. */
@media (min-width: 1367px) {
  #panel-equipos .team-player-card:not(.vacant) > div:not(.team-player-stats) {
    width: 45%;
    max-width: 45% !important;
  }

  #panel-equipos .team-player-card:not(.vacant) .team-player-photo {
    --team-photo-clip-left: 18%;
    width: 60%;
    height: 250px;
    object-position: right top;
    clip-path: inset(0 0 0 var(--team-photo-clip-left));
  }
}

/* STATSD-UI-150: honor the annotated leaf surfaces and complete portraits. */
@media (min-width: 1367px) {
  #panel-equipos .team-player-card:not(.vacant) .team-player-photo {
    --team-photo-clip-left: 0%;
    clip-path: none;
  }
}

#season-view-fixture .fixture-week-section {
  border: 0;
  background: transparent;
  box-shadow: none;
}

#season-view-fixture .fixture-week-section > .fixture-section-head,
#season-view-fixture .fixture-week-grid {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* STATSD-UI-152: compact the Season team identity with canonical tricodes
   on phones while preserving the full-name fallback for legacy entities. */
#season-view-fixture .fixture-team-code {
  display: none;
}

@media (max-width: 760px) {
  #season-view-fixture .fixture-table {
    --season-identity-width: 124px;
  }

  #season-view-fixture .fixture-table th:nth-child(2),
  #season-view-fixture .fixture-table td:nth-child(2) {
    width: var(--season-identity-width);
    min-width: var(--season-identity-width);
    max-width: var(--season-identity-width);
  }

  #season-view-fixture .fixture-table td:nth-child(2) .fixture-team-cell.has-tricode {
    grid-template-columns: 32px 24px minmax(0, 1fr);
  }

  #season-view-fixture .fixture-table td:nth-child(2) .fixture-team-cell.has-tricode .fixture-team-name {
    display: none;
  }

  #season-view-fixture .fixture-table td:nth-child(2) .fixture-team-cell.has-tricode .fixture-team-code {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #season-view-fixture .fixture-table td:nth-child(2) .fixture-team-cell:not(.has-tricode) .fixture-team-name {
    display: block;
  }
}

#season-view-fixture .fixture-week-winner,
#season-view-fixture .fixture-week-player,
#season-view-fixture .fixture-week-player.is-open {
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: var(--statsd-glass-fill);
  box-shadow: none;
}

#season-view-fixture #fixtureWeaponUsage > .fixture-section-head {
  border-bottom-color: var(--statsd-glass-line);
}

#season-view-fixture #fixtureTopTeams {
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
  box-shadow: none;
}

.ranking-range-slider__rail::before,
.ranking-range-slider__rail::after {
  background: var(--gold);
}

#panel-equipos .season-positions .position-chart {
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill) !important;
}

.selection-search__option.is-active,
.selection-search__option[aria-selected="true"] {
  box-shadow: none;
}

/* STATSD-UI-151: give the Top 6 heading the same framed rhythm as Maps. */
#season-view-fixture .fixture-map-top > header {
  box-sizing: border-box;
  margin-bottom: 8px;
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
}

/* Four entry points share the established transparent, square StatsD surface. */
body[data-selection-stage="home"] .selection-flow__panel {
  width: min(1320px, calc(100% - 32px));
}

body[data-selection-stage="home"] .selection-flow__grid--home {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body[data-selection-stage="home"] .selection-entry {
  min-width: 0;
  padding-inline: 10px;
}

body[data-selection-stage="home"] .selection-entry__visual {
  height: min(138px, 20dvh);
}

.selection-entry__weapon-icon {
  display: block;
  width: min(130px, 80%);
  height: 100%;
  margin: auto;
  color: var(--gold);
  filter: drop-shadow(0 8px 18px rgba(247, 189, 34, .12));
}

.selection-entry__action { min-height: 44px; }

/* ARMAS reads family totals from the current season snapshot. */
#panel-armas {
  box-sizing: border-box;
  width: min(1480px, 100%);
  margin-inline: auto;
  padding: 90px 16px 48px;
  color: var(--ink);
}

.armas-heading,
.armas-section-head,
.armas-detail-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.armas-heading h1 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1;
  text-transform: uppercase;
}

.armas-heading p,
.armas-detail-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.armas-eyebrow,
.armas-coverage,
.armas-section-head > span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.armas-coverage { text-align: right; }

.armas-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(210px, 1.3fr);
  gap: 12px;
  margin: 24px 0;
}

.armas-filters label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.armas-filters select,
.armas-filters input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--statsd-glass-line);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.armas-filters :is(select, input):focus-visible,
.armas-item:focus-visible,
.armas-contributor:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.armas-status {
  padding: 24px;
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
  color: var(--muted);
  font-size: 14px;
}

.armas-layout {
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 24px;
}

.armas-layout[hidden],
.armas-status[hidden] { display: none; }

.armas-data-coverage,
.armas-source-note,
.armas-formula {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.armas-data-coverage { color: var(--ink); }
.armas-source-note { margin-bottom: 18px; }
.armas-formula { margin-top: 10px; }

.armas-list-section,
.armas-detail {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--statsd-glass-line);
  background: var(--statsd-glass-fill);
  box-shadow: none;
}

.armas-section-head {
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--statsd-glass-line-soft);
}

.armas-section-head h2,
.armas-detail h2 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 30px);
  text-transform: uppercase;
}

.armas-list {
  display: grid;
  max-height: min(72dvh, 760px);
  overflow-y: auto;
}

.armas-item {
  display: grid;
  grid-template-columns: 36px 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 70px;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid var(--statsd-glass-line-soft);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.armas-item:hover,
.armas-item[aria-pressed="true"] {
  background: var(--statsd-glass-fill-hover);
}

.armas-rank { color: var(--gold); font-size: 13px; font-weight: 900; }
.armas-item-image { width: 76px; height: 46px; object-fit: contain; }
.armas-item-name { display: grid; gap: 3px; min-width: 0; }
.armas-item-name strong { overflow-wrap: anywhere; font-size: 15px; }
.armas-item-name small { color: var(--muted); font-size: 13px; }
.armas-item-value { color: var(--gold); font-size: 14px; font-weight: 900; white-space: nowrap; }

.armas-detail-hero { align-items: center; justify-content: start; padding-bottom: 18px; }
.armas-detail-image { width: 32%; max-width: 210px; height: 100px; object-fit: contain; }
.armas-detail-hero > div { min-width: 0; }
.armas-detail h2 { overflow-wrap: anywhere; }
.armas-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--statsd-glass-line-soft); }
.armas-stat { display: grid; align-content: center; gap: 4px; min-height: 76px; padding: 8px; border-bottom: 1px solid var(--statsd-glass-line-soft); }
.armas-stat:not(:nth-child(4n+1)) { border-left: 1px solid var(--statsd-glass-line-soft); }
.armas-stat span { color: var(--muted); font-size: 13px; }
.armas-stat strong { color: var(--gold); font-size: clamp(18px, 2vw, 26px); }
.armas-subhead { margin: 22px 0 7px; font-size: 14px; text-transform: uppercase; }
.armas-contributors,
.armas-map-list { display: grid; }
.armas-contributor,
.armas-map-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 46px; padding: 7px 5px; border: 0; border-bottom: 1px solid var(--statsd-glass-line-soft); background: transparent; color: var(--ink); text-align: left; font: inherit; font-size: 13px; }
.armas-contributor { cursor: pointer; }
.armas-contributor:hover { background: var(--statsd-glass-fill-hover); }
.armas-contributor strong,
.armas-map-row strong { min-width: 0; overflow-wrap: anywhere; }
.armas-map-row { grid-template-columns: minmax(0, 1fr) auto; }
.armas-map-row span { color: var(--gold); font-weight: 900; }

#season-view-fixture .fixture-no-results {
  display: block;
  min-height: 0;
  margin: 12px;
  padding: 10px 12px;
  text-align: center;
}
#season-view-fixture .fixture-no-results[hidden] { display: none; }

@media (max-width: 760px) {
  #season-view-fixture.is-empty-period .fixture-journey-table,
  #season-view-fixture.is-empty-period .fixture-global-table { min-width: 0; }
}

@media (max-width: 900px) {
  .armas-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .armas-layout { grid-template-columns: minmax(0, 1fr); }
  .armas-list { max-height: 380px; }
}

@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-flow__grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body[data-selection-stage="home"] .selection-entry {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 3px;
    padding: 5px 7px 7px;
  }
  body[data-selection-stage="home"] .selection-entry__visual { height: 100%; min-height: 0; }
  body[data-selection-stage="home"] .selection-entry__copy { min-width: 0; }
  body[data-selection-stage="home"] .selection-entry strong { font-size: clamp(16px, 4vw, 20px); }
  body[data-selection-stage="home"] .selection-entry__description { font-size: 13px; line-height: 1.15; }
  body[data-selection-stage="home"] .selection-entry__action { min-height: 44px; }
  .nav-area.is-open > .theme-toggle { top: calc(100% + 232px); }
  #panel-armas { padding: 80px 8px 32px; }
  .armas-heading { align-items: start; flex-direction: column; gap: 8px; }
  .armas-coverage { text-align: left; }
  .armas-filters { gap: 8px; margin: 18px 0; }
  .armas-search-label { grid-column: 1 / -1; }
  .armas-list-section,
  .armas-detail { padding: 10px; }
  .armas-list { max-height: 340px; }
  .armas-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .armas-stat:not(:nth-child(4n+1)) { border-left: 0; }
  .armas-stat:nth-child(2n) { border-left: 1px solid var(--statsd-glass-line-soft); }
}

@media (max-width: 390px) {
  body[data-selection-stage="home"] .selection-entry__description { display: none; }
  .armas-item { grid-template-columns: 28px 60px minmax(0, 1fr) auto; gap: 5px; }
  .armas-item-image { width: 60px; }
  .armas-item-value { font-size: 13px; }
  .armas-contributor { grid-template-columns: 28px minmax(0, 1fr); }
  .armas-contributor > span:last-child { grid-column: 2; }
}

/* The earlier three-card geometry is normalized for the fourth entry. */
body[data-selection-stage="home"] .selection-flow__grid--home {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (min-width: 1181px) {
  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--armas,
  body[data-selection-stage="home"] .selection-entry--rankings {
    display: grid !important;
    grid-template-columns: 40% minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-content: stretch !important;
    min-height: 240px !important;
    height: 240px !important;
    max-height: 240px !important;
    gap: 7px !important;
    padding: 0 8px 0 0 !important;
  }
  body[data-selection-stage="home"] .selection-entry__copy > strong {
    font-size: clamp(17px, 1.8vw, 24px);
  }
}

@media (max-width: 1180px) {
  body[data-selection-stage="home"] .selection-flow__grid--home {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }
  body[data-selection-stage="home"] .selection-entry--jugadores,
  body[data-selection-stage="home"] .selection-entry--equipos,
  body[data-selection-stage="home"] .selection-entry--armas,
  body[data-selection-stage="home"] .selection-entry--rankings {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    align-content: stretch !important;
    place-items: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 3px !important;
    padding: 5px 7px 7px !important;
  }
  body[data-selection-stage="home"] .selection-entry__visual {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  body[data-selection-stage="home"] .selection-entry__copy {
    display: grid !important;
    grid-template-rows: auto auto 44px !important;
    gap: 2px !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }
  body[data-selection-stage="home"] .selection-entry__copy > strong {
    width: 100% !important;
    font-size: clamp(16px, 2.2vw, 23px) !important;
    text-align: center !important;
  }
  body[data-selection-stage="home"] .selection-entry__description {
    display: -webkit-box !important;
    max-height: 2.5em;
    overflow: hidden !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.2 !important;
  }
  body[data-selection-stage="home"] .selection-entry__action {
    box-sizing: border-box;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 7px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 760px) {
  body[data-selection-stage="home"] .selection-entry__copy > strong {
    font-size: clamp(15px, 4vw, 19px) !important;
  }
  body[data-selection-stage="home"] .selection-entry__description {
    display: none !important;
  }
  body[data-selection-stage="home"] .selection-entry__copy {
    grid-template-rows: auto 44px !important;
  }
  body[data-selection-stage="home"] .selection-entry__team-logo {
    width: clamp(20px, 6vw, 30px);
    height: clamp(20px, 6vw, 30px);
  }
  .armas-coverage {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }
  .nav-area.is-open > .theme-toggle {
    inset-block-start: 260px !important;
  }
}

@media (max-width: 360px) {
  body[data-selection-stage="home"] .selection-entry__action-arrow { display: none; }
  body[data-selection-stage="home"] .selection-entry__action { justify-content: center; }
}
