/* Calendar presentation from sub22-calendar-final-clean, scoped to PLAYER. */
.player-ux .match-rail {align-items:stretch}
.player-ux .match-card {flex:0 0 86%;max-width:360px;min-width:0;border-radius:var(--radius);background:var(--surface);padding:20px;scroll-snap-align:start;overflow-wrap:anywhere}
.player-ux .match-meta {display:flex;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:.07em;font-weight:700;color:var(--muted)}
.player-ux .match-teams {margin:18px 0}
.player-ux .match-teams>div {display:grid;grid-template-columns:1fr auto;gap:2px 12px}
.player-ux .match-side {grid-column:1/-1;font-size:9px;letter-spacing:.08em;color:var(--muted)}
.player-ux .match-teams strong {font-size:18px;line-height:1.25;font-weight:750}
.player-ux .match-versus {display:block;margin:6px 0;font-size:11px;color:var(--muted)}
.player-ux .match-score {font-size:20px}
.player-ux .match-when {border-top:1px solid var(--line);padding-top:12px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 10px;font-size:13px}
.player-ux .match-when>span {text-transform:uppercase}
.player-ux .match-venue {font-size:12px;color:var(--muted);line-height:1.4;margin:7px 0 0}
.player-ux .matches-note {font-size:11px;line-height:1.5;color:var(--muted);margin:10px 0}
.player-ux .match-list {display:grid;gap:14px}
.player-ux .match-list .match-card {max-width:none}
.player-ux .match-rail:focus-visible {outline:2px solid var(--ink);outline-offset:-2px}
.player-ux .match-card {flex-basis:320px}
.player-ux .match-rail .match-card-home {
  background:#192824;
  border:1px solid #9ed2c02a;
}
.player-ux .match-rail .match-card-home .match-meta span:last-child {
  color:var(--team-accent);
}
.player-ux .match-place {
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}
.player-ux .match-place svg {
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 auto;
}
.player-ux .match-place {
  font-size:13px !important;
  font-weight:720;
  letter-spacing:.055em;
}
.player-ux .match-place svg {
  width:15px !important;
  height:15px !important;
}
.player-ux .calendar-tabs {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  margin:2px 0 18px;
  padding:4px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.05);
}
.player-ux .calendar-tab {
  appearance:none;
  border:0;
  border-radius:10px;
  padding:10px 8px;
  background:transparent;
  color:rgba(255,255,255,.55);
  font:inherit;
  font-size:12px;
  font-weight:750;
  letter-spacing:.055em;
  cursor:pointer;
}
.player-ux .calendar-tab.is-active {
  background:rgba(255,255,255,.12);
  color:#fff;
}
.player-ux .standings-table {
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.025);
}
.player-ux .standings-head, .player-ux .standings-row {
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 30px 30px 30px 36px;
  gap:3px;
  align-items:center;
}
.player-ux .standings-head {
  padding:9px 10px;
  color:rgba(255,255,255,.45);
  font-size:9px;
  font-weight:750;
  letter-spacing:.06em;
}
.player-ux .standings-row {
  min-height:55px;
  padding:8px 10px;
  border-top:1px solid rgba(255,255,255,.07);
  font-size:12px;
  text-align:center;
}
.player-ux .standings-row-own {
  background:#192824;
}
.player-ux .standings-pos {
  font-size:15px;
}
.player-ux .standings-team {
  min-width:0;
  text-align:left;
}
.player-ux .standings-team strong {
  display:block;
  overflow:hidden;
  font-size:12px;
  line-height:1.25;
  text-overflow:ellipsis;
}
.player-ux .standings-team span {
  display:block;
  margin-top:3px;
  color:rgba(255,255,255,.46);
  font-size:9px;
  font-weight:600;
}
.player-ux .standings-row-own .standings-team span {
  color:rgba(255,255,255,.62);
}
.player-ux .competition-summary {
  margin:2px 0 16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.player-ux .competition-stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
}
.player-ux .competition-stat {
  padding:14px 10px 13px;
  text-align:center;
}
.player-ux .competition-stat + .competition-stat {
  border-left:1px solid rgba(255,255,255,.08);
}
.player-ux .competition-stat span {
  display:block;
  margin-bottom:5px;
  color:rgba(255,255,255,.45);
  font-size:9px;
  font-weight:750;
  letter-spacing:.07em;
}
.player-ux .competition-stat strong {
  font-size:20px;
  line-height:1;
}
.player-ux .competition-objective {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 13px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}
.player-ux .competition-objective div span {
  display:block;
  color:rgba(255,255,255,.42);
  font-size:9px;
  font-weight:750;
  letter-spacing:.07em;
}
.player-ux .competition-objective div strong {
  display:block;
  margin-top:2px;
  font-size:12px;
}
.player-ux .competition-objective b {
  color:var(--gold);
  font-size:10px;
  text-align:right;
  letter-spacing:.03em;
}
.player-ux .competition-objective.is-playoff {
  background:#192824;
}
.player-ux .standings-row-playoff .standings-pos {
  color:#91c9af;
}
.player-ux .standings-legend {
  display:flex;
  align-items:center;
  gap:16px;
  margin:0 3px 10px;
  color:rgba(255,255,255,.58);
  font-size:11px;
  font-weight:650;
}
.player-ux .standings-legend span {
  display:flex;
  align-items:center;
  gap:6px;
}
.player-ux .standings-legend i {
  width:9px;
  height:9px;
  border-radius:50%;
}
.player-ux .legend-playoff {
  background:#47775f;
}
.player-ux .legend-liceo {
  background:#2779c5;
}
.player-ux .standings-table {
  border-radius:18px;
}
.player-ux .standings-head, .player-ux .standings-row {
  grid-template-columns:38px minmax(0,1fr) 34px 34px 34px 40px;
}
.player-ux .standings-head {
  padding:11px 12px;
  font-size:10px;
}
.player-ux .standings-row {
  min-height:64px;
  padding:10px 12px;
  font-size:13px;
}
.player-ux .standings-pos {
  font-size:17px;
}
.player-ux .standings-team strong {
  font-size:13.5px;
  line-height:1.3;
}
.player-ux .standings-team span {
  margin-top:4px;
  font-size:10px;
}
.player-ux .standings-row-playoff {
  background:rgba(38,78,59,.42);
}
.player-ux .standings-row-playoff .standings-pos {
  color:#9bd0b5;
}
.player-ux .standings-row-own, .player-ux .standings-row-playoff.standings-row-own {
  background:rgba(25,82,143,.82);
  box-shadow:inset 3px 0 0 #69b5ff;
}
.player-ux .standings-row-own .standings-pos {
  color:#fff;
}
.player-ux .standings-row-own .standings-team span {
  color:rgba(255,255,255,.75);
}
.player-ux .match-card-scout {
 cursor:pointer;
 position:relative;
}
.player-ux .match-card-scout:focus-visible {
 outline:2px solid #69b5ff;
 outline-offset:3px;
}
.player-ux .match-scout-hint {
 margin-top:14px;
 padding-top:12px;
 border-top:1px solid var(--line);
 display:flex;
 align-items:center;
 justify-content:space-between;
 color:#69b5ff;
 font-size:10px;
 font-weight:800;
 letter-spacing:.1em;
}
.player-ux .match-scout-hint b {
 font-size:21px;
 line-height:1;
}
.player-ux .match-scout-hint {
 margin-top:16px;
 padding:14px 2px 2px;
}
.player-ux .match-scout-hint span {
 font-size:14px;
 font-weight:900;
 letter-spacing:.09em;
 color:#69b5ff;
}
.player-ux .match-scout-hint b {
 font-size:28px;
 font-weight:400;
 line-height:.8;
 color:#69b5ff;
}
.player-ux .match-card-scout {
 transition:transform .15s ease,border-color .15s ease;
}
.player-ux .match-card-scout:active {
 transform:scale(.985);
}
.player-ux .standings-table {border-radius:28px;padding:6px;background:#111113;}
.player-ux .standings-row {border-radius:16px;}
.player-ux .standings-row-playoff {background:transparent;}
.player-ux .standings-row-own, .player-ux .standings-row-playoff.standings-row-own, .player-ux .standings-row-relegation.standings-row-own {background:#142d4c;box-shadow:none;border-top-color:transparent;}
.player-ux .standings-pos {display:grid;place-items:center;width:32px;height:34px;border-radius:10px;background:#252529;color:#cbcad2;font-size:14px;}
.player-ux .standings-row-playoff .standings-pos {background:#174d39;color:#a1ebbb;}
.player-ux .standings-row-relegation .standings-pos {background:#692d33;color:#ffd2d7;}
.player-ux .standings-row-own:not(.standings-row-playoff):not(.standings-row-relegation) .standings-pos {color:#cbcad2;}
.player-ux .standings-legend {flex-wrap:wrap;gap:8px 14px;}
.player-ux .legend-playoff {background:#32865d;}
.player-ux .legend-relegation {background:#b64b57;}
.player-ux .legend-liceo {background:#4482cd;}
.player-ux .standings-head, .player-ux .standings-row {grid-template-columns:32px minmax(0,1fr) 25px 25px 25px 28px;padding-left:6px;padding-right:6px;}
.player-ux .standings-team strong {overflow-wrap:anywhere;}

.player-ux { --gold: #e9cd86; --team-accent: #9ed2c0; }
#tabs.liquid-dock { grid-template-columns: repeat(3,minmax(0,1fr)); }
.player-ux .calendar-tab { text-align: center; text-decoration: none; }
.player-ux .standings-head > :not(:nth-child(2)) { text-align: center; }
.player-ux .match-list .match-card { max-width: none; }
.player-ux .player-rail .match-card { flex: 0 0 min(77vw, 320px); }
.player-ux .match-scout-hint { width: 100%; background: none; padding-inline: 0; border-inline: 0; border-bottom: 0; text-align: left; }
.player-ux .sheet-head .close { right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(127,127,127,.15); }
.player-ux .sheet-head h2 { padding-right: 42px; }
.player-ux .personal-header h1 { overflow-wrap: anywhere; }
.player-ux .profile-settings { margin-top: 24px; }
.player-ux .appearance-options legend { font-weight: 700; margin-bottom: 8px; }
.player-ux .appearance-options { margin-bottom: 20px; }
.player-ux .attribute > span, .player-ux form legend { display: flex; align-items: center; gap: 8px; }
.player-ux .attribute svg, .player-ux form legend svg { width: 18px; height: 18px; }
.wellness-evolution, .wellness-history { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.wellness-series { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 12px; }
.wellness-series button { flex: 1 0 auto; padding: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 12px; }
.wellness-series button[aria-pressed="true"] { background: #1768ed; border-color: #1768ed; color: #fff; }
@media (max-width: 700px) {
 .player-ux .player-rail .match-card { min-height: min(77vw, 280px); display: flex; flex-direction: column; }
 .player-ux .player-rail .match-teams { margin: 12px 0; flex: 1; }
 .player-ux .player-rail .match-teams strong { font-size: 16px; }
}
@media (max-width: 420px) {
 .player-ux .standings-head,.player-ux .standings-row { grid-template-columns: 32px minmax(0,1fr) 25px 25px 25px 28px; padding-inline: 6px; }
}
:root[data-theme="light"] .player-ux :is(.standings-table,.calendar-tabs,.competition-summary) { background: var(--surface); border-color: var(--line); }
:root[data-theme="light"] .player-ux :is(.calendar-tab,.standings-head,.standings-team span,.competition-stat span,.competition-objective span,.competition-objective b) { color: var(--muted); }
:root[data-theme="light"] .player-ux .calendar-tab.is-active { background: #dce9ff; color: #133662; }
:root[data-theme="light"] .player-ux .standings-row { border-top-color: var(--line); }
:root[data-theme="light"] .player-ux .standings-row-own { background: #dce9ff; }
:root[data-theme="light"] .player-ux .competition-objective.is-playoff { background: #e3f3eb; }

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f8;
  --card: #fff;
  --surface: #fdfdfe;
  --text: var(--light-text);
  --ink: var(--light-text);
  --muted: var(--light-muted);
  --line: var(--light-line);
  --light-text: #19232f;
  --light-muted: #596575;
  --light-line: #d2dae5;
  --blue: #1559be;
  --soft: #eaf1ff;
  --surface-2: #eaeef4;
  --shadow: 0 1px 2px #24364f0c, 0 4px 12px #24364f12;
  --light-icon-shadow: drop-shadow(0 1px 1px #24364f30);
  --good: #176943;
  --mid: #924600;
  --poor: #a82035;
  --good-surface: #e3f3eb;
  --poor-surface: #fae7e9;
}
:root[data-theme="light"] #tabs.liquid-dock {
  background: #fffffff0;
  border-color: var(--line);
  box-shadow: 0 10px 34px #19232f22;
}
:root[data-theme="light"] #tabs.liquid-dock::before { background: var(--soft); }
:root[data-theme="light"] #tabs.liquid-dock a { color: var(--muted); }
#tabs.liquid-dock a { min-height: 56px; }
.weekly-attributes { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0; }
.weekly-attributes > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.weekly-attributes dt { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.weekly-attributes svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue); }
.weekly-attributes dd { margin: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.player-ux .player-rail .match-card-home {
  background: #225394 !important;
  border: 1px solid #4d92ff !important;
}
.player-ux .player-rail .match-card-home .match-meta span:last-child { color: #a5cdff; }
:root[data-theme="light"] .player-ux .player-rail .match-card-home {
  background: #cfe2ff !important;
  border-color: #397add !important;
}
:root[data-theme="light"] .player-ux .player-rail .match-card-home .match-meta span:last-child { color: #15469b; }
.player-ux .player-rail .match-card:not(.match-card-home) .match-meta span:last-child { color: var(--muted); }
.player-profile { display: grid; gap: 22px; margin-bottom: 24px; }
.player-profile .personal-header { margin: 0; padding: 14px 0; border-bottom: 2px solid #397add; }
.player-profile > .card,.player-profile > .wellness-evolution {
  margin: 0;
  padding: clamp(14px, 4vw, 26px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.player-profile h2,.player-profile h3 { font-size: .9rem; letter-spacing: .07em; }

.player-profile .weekly-attributes dd small { margin-left: 2px; color: var(--muted); }
.player-profile .weekly-attributes dd.wellness-good,.player-ux .attribute.wellness-good strong { color: #73dba9; }
.player-profile .weekly-attributes dd.wellness-mid,.player-ux .attribute.wellness-mid strong { color: #ffb361; }
.player-profile .weekly-attributes dd.wellness-poor,.player-ux .attribute.wellness-poor strong { color: #ff8a91; }
:root[data-theme="light"] :is(.player-profile .weekly-attributes dd.wellness-good,.player-ux .attribute.wellness-good strong) { color: var(--good); }
:root[data-theme="light"] :is(.player-profile .weekly-attributes dd.wellness-mid,.player-ux .attribute.wellness-mid strong) { color: var(--mid); }
:root[data-theme="light"] :is(.player-profile .weekly-attributes dd.wellness-poor,.player-ux .attribute.wellness-poor strong) { color: var(--poor); }
.player-ux .attribute.wellness-good { --wellness-fill: #219866; }
.player-ux .attribute.wellness-mid { --wellness-fill: #d8802d; }
.player-ux .attribute.wellness-poor { --wellness-fill: #cf4557; }
.player-ux .attribute meter::-webkit-meter-optimum-value { background: var(--wellness-fill, var(--blue)); }
.player-ux .attribute meter::-moz-meter-bar { background: var(--wellness-fill, var(--blue)); }
.compact-roster .row { min-height: 44px; padding-block: 8px; }
.team-competition-heading { margin-top: 26px; }
.line-chart { margin: 0; }
.line-chart svg { display: block; width: 100%; max-height: 220px; }
.line-chart .chart-grid { stroke: var(--line); fill: none; }
.line-chart polyline { stroke: var(--chart-series, #397add); stroke-width: 2; fill: none; }
.line-chart circle { fill: var(--chart-series, #397add); }
.line-chart figcaption { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.line-chart details { margin-top: 10px; }

.wellness-evolution .line-chart svg { min-height: 164px; }
.chart-latest { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; color: var(--muted); font-size: .8rem; }
.chart-latest strong { color: var(--text); font-size: 1.15rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; padding: 0; font-size: .8rem; }
.chart-legend li::before { content: ""; display: inline-block; width: 10px; height: 3px; margin: 0 6px 3px 0; background: var(--chart-series); }
.player-ux .internal-tabs .calendar-tab {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px;
  line-height: 1.2;
}
.player-ranking { display: grid; gap: 10px; list-style: none; padding: 0; }
.player-ranking li {
  display: grid;
  grid-template-columns: 2rem 2.25rem minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.player-ranking li.is-you { border-color: #4b8fff; box-shadow: inset 3px 0 #4b8fff; }
.ranking-position,.ranking-score { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ranking-avatar { display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; background: var(--soft); font-weight: 700; font-size: .8rem; }
.player-ranking strong { overflow-wrap: anywhere; }
.ranking-score { text-align: right; }
.ranking-score small { display: block; color: var(--muted); font-weight: 500; }

body #tabs.liquid-dock {
  background: #242424a6;
  border-color: #ffffff30;
  backdrop-filter: blur(28px) grayscale(1);
  -webkit-backdrop-filter: blur(28px) grayscale(1);
}
body #tabs.liquid-dock::before {
  background: linear-gradient(#ffffff36, #ffffff16);
  border-color: #ffffff42;
  box-shadow: inset 0 1px 2px #ffffff4a, 0 3px 12px #0004;
  backdrop-filter: blur(14px) grayscale(1);
  -webkit-backdrop-filter: blur(14px) grayscale(1);
  box-sizing: border-box;
}
body #tabs.liquid-dock a { color: #d6d6d6; }
body #tabs.liquid-dock a:is([aria-current], .liquid-preview) { color: #fff; }
:root[data-theme="light"] body #tabs.liquid-dock {
  background: #f3f4f7e0;
  border-color: #ffffffa8;
  box-shadow: 0 10px 34px #0002;
}
:root[data-theme="light"] body #tabs.liquid-dock::before {
  background: linear-gradient(#fff, #ffffff66);
  border-color: #fff;
  box-shadow: inset 0 1px 2px #fff, 0 3px 12px #0002;
}
:root[data-theme="light"] body #tabs.liquid-dock a { color: #505050; }
:root[data-theme="light"] body #tabs.liquid-dock a:is([aria-current], .liquid-preview) { color: #171717; }

.home-calendar-loading p { padding: 12px; border-radius: 12px; background: var(--card); }
:root:not([data-theme="light"]) body.player-ux:has(.player-home) { background: #030304; }
.player-home {
  --home-surface: radial-gradient(ellipse at 18% 0%, #29292e, transparent 67%), linear-gradient(155deg, #18181c, #101013);
  --home-edge: #ffffff1d;
  --home-inset: inset 0 1px 0 #ffffff12, inset 0 -2px 5px #0004, 0 5px 14px #0005;
  grid-template-columns: minmax(0, 1fr); gap: 28px;
}
:root[data-theme="light"] .player-home {
  --home-surface: linear-gradient(155deg, var(--card), var(--surface-2));
  --home-edge: var(--line);
  --home-inset: inset 0 1px 0 #fff, var(--shadow);
}
.player-home > * { min-width: 0; }
.player-home .personal-header { border: 0; padding: 6px 0 0; }
.player-home .personal-header > div { flex: 1; min-width: 0; }
.player-home .personal-header h1 { font-size: clamp(2rem, 8vw, 3.25rem); line-height: 1; }
.player-home h2 { margin: 0 0 14px; }
.player-home .player-settings {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
}
.player-home .player-settings svg { width: 20px; height: 20px; }
.home-streak { display: inline-flex; align-items: center; gap: 3px; color: #ffb85f; font-size: .85rem; }
.home-streak svg { width: 27px; height: 27px; }
.home-illustration { filter: drop-shadow(0 3px 2px #0008); }
.home-illustration .glint { fill: none; stroke: #fff; stroke-opacity: .52; stroke-width: 1.3; stroke-linecap: round; }

.player-home :is(.season-stats > div, .weekly-attributes > div, .internal-result) {
  min-width: 0; border: 1px solid var(--home-edge);
  background: var(--home-surface); box-shadow: var(--home-inset);
}
.home-season .season-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(4px, 1.6vw, 12px); margin: 0; }
.home-season .season-stats > div { border-radius: clamp(13px, 4vw, 22px); padding: 13px 1px; }
.home-season .season-stats strong { font-size: clamp(17px, 5.7vw, 30px); font-weight: 750; }
.home-season .season-stats span { font-size: clamp(9px, 2.8vw, 11px); white-space: nowrap; }

.home-status-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.player-home .home-status-heading h2 { margin: 0; }
.home-general { display: flex; align-items: center; font-size: 1.16rem; font-weight: 750; white-space: nowrap; }
.home-general svg { width: 31px; height: 31px; margin-right: 5px; }
.player-home .weekly-attributes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(5px, 1.4vw, 12px); margin: 0; }
.player-home .home-wellness .weekly-attributes > div {
  border-radius: clamp(15px, 5vw, 25px); padding: 11px 2px 12px;
  flex-direction: column; justify-content: space-between; align-items: center; text-align: center;
  background: var(--home-surface);
}
.home-wellness .weekly-attributes dt { flex-direction: column; align-items: center; gap: 5px; font-size: clamp(9px, 2.8vw, 13px); line-height: 1.2; overflow-wrap: anywhere; }
.home-wellness .weekly-attributes svg { width: clamp(32px, 10.5vw, 52px); height: auto; }
.home-wellness .weekly-attributes dd { white-space: nowrap; font-size: clamp(17px, 5vw, 25px); }
.player-home .home-wellness :is(dd, .home-general) small { color: var(--muted); font-size: .65em; font-weight: 600; }
.player-home .wellness-good { color: #73dba9; }
.player-home .wellness-mid { color: #ffb361; }
.player-home .wellness-poor { color: #ff8a91; }
:root[data-theme="light"] .player-home .wellness-good { color: var(--good); }
:root[data-theme="light"] .player-home .wellness-mid { color: var(--mid); }
:root[data-theme="light"] .player-home .wellness-poor { color: var(--poor); }

.home-wellness-pending {
  padding: clamp(16px, 5vw, 28px); border-radius: 27px;
  color: #fff2dd; background: linear-gradient(140deg, #402612, #21170f 62%, #17110d);
  border: 1px solid #9c653f; box-shadow: inset 0 1px 0 #ffe3a724;
}
.home-pending-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-pending-heading .eyebrow { color: #ffca8b; margin: 0 0 5px; }
.player-home .home-pending-heading h2 { font-size: 1.35rem; letter-spacing: 0; margin: 0; }
.home-pending-heading svg { width: 46px; height: 46px; flex: none; }
.home-wellness-pending > p { color: #e2cdb7; line-height: 1.45; margin: 10px 0 14px; }
.home-wellness .wellness-complete {
  padding: 10px 16px; min-height: 44px; background: #ffc16f; color: #2e1805;
  border: 0; border-radius: 14px; font-weight: 700;
}
.home-check-in fieldset { min-width: 0; border-color: #9c653f; padding: 10px; }
.home-check-in legend svg { width: 18px; height: 18px; vertical-align: middle; }
.home-check-in .scale span { color: var(--text); }
.home-check-in .scale input:checked + span { color: white; }
.wellness-history-link {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px;
  font-size: .8rem; color: var(--muted);
}
.wellness-history-link svg { width: 14px; height: 14px; }

.internal-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.internal-result { display: flex; flex-direction: column; gap: 8px; padding: clamp(12px, 3.7vw, 24px); border-radius: 25px; }
.player-home .internal-highlights .internal-result { background: var(--home-surface); }
.internal-result svg { width: clamp(48px, 15vw, 72px); height: auto; }
.player-home .internal-result span { color: var(--text); font-weight: 700; }
.player-home .wellness-history-link { margin-top: 7px; }
.internal-result span, .internal-result small { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 480px) {
  .player-home .internal-highlights .internal-result > div > span {
    font-size: clamp(0.59375rem, 2.95vw, 0.71875rem);
    white-space: nowrap;
  }
}
.internal-result strong { display: block; margin: 8px 0 3px; font-size: clamp(1.85rem, 8vw, 2.5rem); line-height: 1; }
.player-ux .player-home .player-rail {
  padding-inline: 0; align-items: stretch; overscroll-behavior-x: contain; scrollbar-width: none;
}
.player-home .player-rail::-webkit-scrollbar { display: none; }
.player-ux .player-home .player-rail .match-card { min-height: 0; border-radius: 25px; scroll-snap-align: start; }
.player-ux .player-home .player-rail .match-card {
  background: var(--home-surface) !important;
  border: 1px solid var(--home-edge) !important;
  box-shadow: var(--home-inset);
}
.player-ux .player-home .player-rail .match-card-home {
  --home-game-background: #223B59;
  background: var(--home-game-background) !important;
  border-color: #4d92ff !important;
}
:root[data-theme="light"] .player-ux .player-home .player-rail .match-card-home {
  background: var(--home-game-background) !important;
  border-color: #397add !important;
}
.player-ux .player-home .player-rail .match-card-home {
  color: rgb(255 255 255 / 94%);
}
.player-ux .player-home .player-rail .match-card-home :is(
  .match-meta, .match-meta span.match-place:last-child, .match-side, .match-versus, .match-venue, .matches-note
) { color: rgb(255 255 255 / 86%); }
.player-ux .player-home .player-rail :is(.match-card-home .match-score-win, .match-card-home.match-card-win .match-outcome) {
  color: #73dba9;
}
.player-ux .player-home .player-rail :is(.match-card-home .match-score-loss, .match-card-home.match-card-loss .match-outcome) {
  color: #ff8a91;
}
.player-ux .match-list .match-place { color: var(--muted); }
.player-ux .match-list .match-card-home .match-place { color: var(--blue); }
.player-home :is(.home-wellness, .home-wellness-pending) { position: relative; }
.player-home :is(.home-wellness-link, .wellness-complete:not([hidden]))::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px;
}
.player-home :is(.home-wellness-link, .wellness-complete):focus-visible::after,
.player-home .internal-result:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.player-home :is(.home-wellness-link, .wellness-complete):active::after,
.player-home .internal-result:active { box-shadow: inset 0 0 0 2px var(--blue); }
.player-home .internal-result { color: var(--text); text-decoration: none; }
.player-ux .scout-antecedent {
  display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.player-ux .scout-antecedent small { color: var(--muted); }
.player-home .match-team-name { display: flex; align-items: center; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.player-home .team-crest {
  position: relative; display: inline-grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px;
  border-radius: 50%; background: #ffffff10; font-size: .57rem;
}
.player-home .team-crest img { position: absolute; inset: 0; margin: auto; object-fit: contain; }
.player-home .team-crest:has(img) { background: transparent; color: transparent; }

@media (min-width: 650px) {
  .player-home { gap: 34px; }
}
.player-ux :is(.match-score-win, .match-card-win .match-outcome) { color: #73dba9; }
.player-ux :is(.match-score-loss, .match-card-loss .match-outcome) { color: #ff8a91; }
:root[data-theme="light"] .player-ux :is(.match-score-win, .match-card-win .match-outcome) { color: var(--good); }
:root[data-theme="light"] .player-ux :is(.match-score-loss, .match-card-loss .match-outcome) { color: var(--poor); }

.player-home :is(.home-wellness, .home-internal) .home-illustration { filter: none; }
.player-home .player-rail .match-meta { flex-wrap: wrap; gap: 4px 6px; }
.player-ux .player-home .player-rail :is(.match-card-win, .match-card-loss) {
  align-self: center;
}
.player-ux .player-home .player-rail :is(.match-card-win, .match-card-loss) .match-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  white-space: nowrap;
}
.player-ux .player-home .player-rail .match-outcome { text-transform: uppercase; }
.player-ux .player-home .player-rail :is(.match-card-win, .match-card-loss) .match-place { justify-self: end; font: inherit !important; letter-spacing: inherit; }
.player-ux .player-home .player-rail :is(.match-card-win, .match-card-loss) .match-teams { flex: none; margin: 10px 0 8px; }
.player-ux .player-home .player-rail :is(.match-card-win, .match-card-loss) .match-when { padding-top: 8px; }
.player-ux .player-home .player-rail :is(.match-card-win, .match-card-loss) .match-venue { margin-top: 4px; }
.player-home .player-rail .match-place { margin-left: auto; }
.home-achievements { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: -16px; }
.home-achievements ul, .achievement-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.home-achievements ul:empty { display: none; }
.home-achievements button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); text-decoration: none; }
.achievement { display: flex; align-items: center; gap: 3px; }
.achievement svg { width: 30px; height: 30px; flex: none; }
.achievement[data-badge="fire"] { color: var(--text); }
.achievement[data-badge="star"] svg { color: #e7a944; fill: #e7a94440; }
.achievement-legend { display: grid; gap: 0; }
.achievement-legend li { align-items: start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.achievement-legend .locked svg { filter: grayscale(1); opacity: .55; }
.achievement-legend p { margin: 3px 0; color: var(--text); }
.achievement-legend small { color: var(--muted); }

.identity-page {
  --identity-accent: #81b0ff;
  --identity-secondary: #b9b9bf;
  color: #f5f5f6;
  background: #080809;
  border-radius: 20px;
  padding: clamp(14px, 4vw, 36px);
}
.identity-page :is(.back,.eyebrow) { color: var(--identity-accent); }
.identity-hero { padding: clamp(12px, 3vw, 38px) 0 clamp(30px, 6vw, 70px); }
.identity-hero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.12;
}
.identity-hero h2 span { display: inline-block; }
.identity-pillars { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.identity-pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #2a2a2d;
  border-radius: 18px;
  background: #151517;
}
.identity-pillar > svg { color: #dedee1; width: 32px; height: 32px; }
.identity-pillar h3 { text-transform: uppercase; font-size: 1.2rem; margin: 14px 0 8px; }
.identity-pillar-copy { margin: 8px 0 12px; }
.identity-pillar p { color: var(--identity-secondary); margin: 0; }
.identity-pillar p + p { margin-top: 6px; }
.identity-pillar a { color: var(--identity-accent); margin-top: auto; padding: 8px 0 0; font-size: .875rem; }
.identity-rules { margin-top: 38px; }
.identity-rules ul { padding-left: 1.2em; display: grid; gap: 9px; color: var(--identity-secondary); }
.identity-rules li::marker { color: var(--identity-accent); }
@media (max-width: 600px) {
  .identity-pillars { grid-template-columns: minmax(0,1fr); }
}

.player-competition {
  min-width: 0;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  --competition-blue: #81b0ff;
  --competition-card: #191b20;
  --competition-line: #323640;
  --competition-muted: #b7bfcd;
}
.player-competition section { margin-top: 26px; min-width: 0; }
.player-competition .ranking-hero {
  padding: clamp(14px, 4vw, 26px);
  border-radius: 20px;
  border: 1px solid var(--competition-line);
  background: var(--competition-card);
  color: #f5f7fb;
}
.player-competition .ranking-hero h2 { margin: 0 0 10px; font-size: 1rem; }
.player-competition .ranking-hero p { margin: 10px 0 0; color: var(--competition-muted); }
.ranking-situation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(8px, 3vw, 20px);
}
.ranking-hero-position, .ranking-latest strong {
  display: block;
  font-size: clamp(1.7rem, 6.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.ranking-hero-position { margin-bottom: 6px; }
.ranking-total, .ranking-latest span { font-size: clamp(.72rem, 2.8vw, .96rem); }
.ranking-latest {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: clamp(7px, 2.5vw, 16px);
  border-radius: 12px;
  color: var(--competition-blue);
}
.ranking-evolution .line-chart svg text { fill: var(--text); font: 700 10px system-ui, sans-serif; }
.player-competition .player-ranking { gap: 6px; }
.player-competition .player-ranking li {
  background: var(--competition-card);
  border-color: var(--competition-line);
  color: #f5f7fb;
}
.player-competition .ranking-position { margin: 0; text-align: center; font-weight: 750; }
.player-competition .ranking-avatar {
  position: relative;
  width: 30px;
  height: 30px;
  overflow: hidden;
  background: #303744;
}
.player-competition .ranking-avatar .avatar {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: #f5f7fb;
  font-size: .72rem;
}
.player-competition .ranking-score { white-space: nowrap; font-size: .94rem; }
.player-competition .ranking-score small { color: var(--competition-muted); }
.player-competition .ranking-rest li {
  min-height: 44px;
  padding: 5px 8px;
  grid-template-columns: 1.7rem 30px minmax(0, 1fr) auto;
  border-radius: 11px;
  font-size: .85rem;
}
.player-competition .ranking-rest .ranking-position { color: var(--competition-muted); font-size: .84rem; }
.player-competition .ranking-rest .is-you {
  border-color: #4b8fff;
  background: #182741;
}
.player-competition .player-ranking .is-you .ranking-score { color: var(--competition-blue); }

.home-achievements button {
  display: grid; place-items: center; min-width: 44px; text-decoration: none;
}
.home-achievements button span {
  display: grid; place-items: center; width: 17px; height: 17px;
  border: 1px solid currentColor; border-radius: 50%; font-size: .68rem; font-weight: 700;
}
.achievement-legend .locked { color: var(--muted); }
.achievement-legend .locked p { color: inherit; }
.block-coverage {
  background: #101113;
  color: #f6f6f7;
  border-radius: 16px;
  padding: clamp(10px, 2vw, 20px);
  margin-bottom: 12px;
}
.block-coverage > p { margin: 0 0 14px; color: #c3c6cc; }
.block-rules {
  background: #1b1d21;
  border: 1px solid #32353b;
  border-radius: 13px;
  padding: 13px;
  margin-top: 14px;
}
.block-rules h3 {
  margin: 0;
  font-size: .8rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.block-rules ul {
  margin: 8px 0 0;
  padding-inline-start: 1.15em;
  font-size: .875rem;
  line-height: 1.45;
}
.block-rules li + li { margin-top: 4px; }
.block-rules li::marker { color: #aeb4bf; }
.block-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.block-card {
  grid-column: span 2;
  min-width: 0;
  background: #1b1d21;
  border: 1px solid var(--block-border, transparent);
  border-radius: 15px;
}
.block-card-green { --block-color: #156443; }
.block-card-blue { --block-color: #1955a5; }
.block-card-black { --block-color: #000; --block-border: #646870; }
.block-card-white { --block-color: #fff; --block-text: #191b20; }
.block-card-red { --block-color: #a32336; grid-column: 2 / span 2; }
.block-card[open] { grid-column: 1 / -1; }
.block-coverage .block-card > summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 114px;
  padding: 12px 6px;
  background: var(--block-color);
  color: var(--block-text, #fff);
  border-radius: 14px;
  text-align: center;
  list-style: none;
  cursor: pointer;
}
.block-coverage .block-card > summary:focus-visible {
  outline: 2px solid #84bdff;
  outline-offset: 2px;
}
.block-card > summary::-webkit-details-marker { display: none; }
.block-card > summary::marker { content: ''; }
.block-card > summary strong {
  font-size: clamp(1.25rem, 4vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: .035em;
}
.block-card > summary small { font-size: .8rem; line-height: 1.2; }
.block-coverage .block-card > summary span {
  width: .45rem;
  height: .45rem;
  margin-top: 2px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  color: inherit;
  transform: rotate(45deg);
}
.block-card[open] > summary span { transform: rotate(225deg); }
.block-coverage .block-card[open] > summary { border-radius: 14px 14px 0 0; }
.block-card > dl { display: block; margin: 0; padding: 0 clamp(12px, 3vw, 24px); }
.block-card dl > div { padding-block: 12px; }
.block-card dl > div + div { border-top: 1px solid #383b42; }
.block-card dl dt {
  margin: 0 0 4px;
  color: #b7bdc8;
  font-size: .75rem;
  font-weight: 650;
}
.block-card dl dd { margin: 0; font-size: .92rem; line-height: 1.5; }

.chart-viewport { overflow-x: auto; overscroll-behavior-x: contain; }
.line-chart svg .chart-date { fill: var(--muted); font: 500 10px system-ui, sans-serif; }
.ranking-evolution .line-chart details li { padding-block: 4px; }
.ranking-score small { display: block; text-align: right; }

.wellness-followup {
  --wellness-panel: #15181d;
  --text: #f3f5fa;
  --muted: #a3aab6;
  --line: #30353f;
  color: var(--text); background: #08090b; border-radius: 20px;
  padding: clamp(10px, 3vw, 30px); margin-inline: -4px; min-width: 0;
}
.wellness-page-header {
  display: flex; justify-content: space-between; align-items: end; gap: 6px; margin-block: 12px 22px;
}
.wellness-page-header h1 { margin: 0; font-size: clamp(1.9rem, 7vw, 3.1rem); }
.wellness-main-score { display: flex; align-items: baseline; font-weight: 750; font-size: clamp(1.5rem, 6vw, 2.3rem); }
.wellness-main-score svg { width: 28px; height: 28px; margin-right: 4px; align-self: center; }
.wellness-followup small { color: var(--muted); font-size: .65em; }
.wellness-followup .wellness-good { color: #73dba9; }
.wellness-followup .wellness-mid { color: #ffb361; }
.wellness-followup .wellness-poor { color: #ff8a91; }
.wellness-followup h2 { font-size: 1.05rem; margin: 0 0 12px; }
.wellness-followup section { margin-block: 16px; min-width: 0; }
.wellness-followup .home-illustration { filter: none; }
.wellness-week, .wellness-panel, .wellness-pending {
  background: var(--wellness-panel); border-radius: 16px; padding: clamp(10px, 3vw, 20px);
}
.wellness-week-picker {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center;
  background: var(--wellness-panel); border: 1px solid var(--line); border-radius: 14px;
  text-align: center; font-size: clamp(.8rem, 3.5vw, 1rem); font-weight: 700;
}
.wellness-week-picker button { display: grid; place-items: center; min-height: 44px; border-radius: 12px; }
.wellness-week-picker svg { width: 20px; height: 20px; }
.wellness-week-picker button:first-child svg { transform: rotate(180deg); }
.wellness-week-picker button[aria-disabled="true"] { opacity: .35; cursor: default; }
.wellness-followup .wellness-week { margin-top: 8px; }
.wellness-week .weekly-attributes { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; }
.wellness-week .weekly-attributes > div { flex-direction: column; border: 0; padding: 2px 0; }
.wellness-week dt { flex-direction: column; }
.wellness-week dt svg { width: 23px; height: 23px; }
.wellness-followup .wellness-series { flex-wrap: wrap; overflow: visible; margin-bottom: 4px; padding-inline: 0; }
.wellness-followup .wellness-series button { display: grid; place-items: center; text-align: center; border-radius: 99px; background: #222731; color: var(--text); padding: 6px; min-height: 38px; }
.wellness-followup .wellness-series button[aria-pressed="true"] { background: #1768ed; }
.wellness-panel .line-chart svg { min-height: 155px; max-height: 300px; }
.wellness-panel .line-chart g text { fill: var(--text); font: 700 11px system-ui, sans-serif; }
.wellness-panel .chart-latest { justify-content: end; gap: 8px; margin: 4px 0; }
.wellness-trend { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }
.wellness-panel .chart-latest strong { color: var(--chart-series); }
.wellness-week-history table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.wellness-week-history :is(th, td) {
  text-align: center; padding: 8px 2px; border-bottom: 1px solid var(--line);
}
.wellness-week-history th:first-child { width: 23%; text-align: start; font-size: .75rem; }
.wellness-week-history tbody th { color: var(--muted); font-weight: 500; }
.wellness-week-history td { font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wellness-week-history svg { display: block; width: 22px; height: 22px; margin-inline: auto; }
.wellness-pending p { color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.wellness-pending button { background: #1768ed; color: #fff; border: 0; border-radius: 12px; min-height: 44px; padding: 8px 14px; }

.player-avatar img[src$="/sub22-rodrigo.jpg"] { object-position: center 85%; }
.player-avatar img[src$="/sub22-sebas.jpg"] { object-position: center 70%; }

.player-avatar img[src$="/sub22-alvarito.png"] { object-position: 38% 58%; }
.player-avatar img[src$="/sub22-ares.png"] { object-position: 65% center; }
.player-avatar img[src$="/sub22-dylan.png"] { object-position: center 9%; }
.player-avatar img[src$="/sub22-ernesto.jpg"],
.player-avatar img[src$="/sub22-nico.jpg"] { object-position: center 28%; }

.player-photo > .avatar {
  position: absolute;
  inset: 0;
}

.player-avatar img[src$="/sub22-mijangos.png"] { object-position: center 30%; }
.player-avatar img[src$="/sub22-rouqui.png"] { object-position: center 65%; }

/* Light surfaces and text for components with a dedicated dark palette. */
:root[data-theme="light"] {
  & :is(input:not([type="radio"], [type="checkbox"]), select) {
    background: var(--card);
    border-color: var(--line);
  }

  & :is(.sheet, .scouting-sheet) {
    box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px #24364f1f;
  }
  & .sheet-head .close { color: var(--text); }
  & .attribute meter::-webkit-meter-bar { background: var(--surface-2); }
  & .attribute.wellness-good { --wellness-fill: var(--good); }
  & .attribute.wellness-mid { --wellness-fill: var(--mid); }
  & .attribute.wellness-poor { --wellness-fill: var(--poor); }
  & .attribute.alert meter::-webkit-meter-optimum-value { background: var(--mid); }
  & :is(.green, .wellness-good) { color: var(--good); }
  & :is(.amber, .wellness-mid) { color: var(--mid); }
  & :is(.red, .wellness-poor) { color: var(--poor); }

  & #tabs {
    background: #f6f7fabf;
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
  & #tabs::before {
    background: var(--soft);
    border-color: #fff;
    box-shadow: var(--shadow);
  }
  & #tabs a, & #tabs.liquid-dragging a:not(.liquid-preview) { color: var(--muted); }
  & #tabs a:is([aria-current], .liquid-preview) { color: var(--blue); }
  & body #tabs.liquid-dock {
    background: #f8f9fbe8;
    border-color: var(--line);
    box-shadow: 0 2px 4px #24364f0e, 0 8px 20px #24364f1a;
  }
  & body #tabs.liquid-dock::before {
    border-color: var(--line);
    box-shadow: inset 0 1px 0 #fff, 0 2px 5px #24364f14;
  }

  & :is(.playbook-folder, .play-category, .player-card, .player-ux .standings-table) {
    box-shadow: var(--shadow);
  }
  & :is(.playbook-folder, .play-category, .player-card) {
    background-color: var(--card);
    border-color: var(--line);
  }
  & :is(.playbook-folder .folder-icon, .ranking-avatar) {
    box-shadow: inset 0 0 0 1px #24364f18, 0 1px 2px #24364f12;
  }

  & .identity-page {
    --identity-accent: var(--blue);
    --identity-secondary: var(--muted);
    background: var(--surface-2);
    color: var(--text);
  }
  & .identity-hero h2 { color: var(--text); }
  & .identity-pillar {
    background: var(--card);
    border-color: var(--line);
    box-shadow: var(--shadow);
  }
  & .identity-pillar > svg { color: var(--identity-accent); }

  & .block-coverage {
    background: var(--surface-2);
    color: var(--text);
  }
  & .block-coverage > p, & .block-card dl dt { color: var(--muted); }
  & .block-rules, & .block-card {
    background: var(--card);
    box-shadow: var(--shadow);
  }
  & .block-rules, & .block-card dl > div + div { border-color: var(--line); }
  & .block-rules li::marker { color: var(--muted); }
  & .block-card[open]:not(.block-card-white) { --block-border: var(--line); }
  & .block-card-white { --block-border: #8995a5; }
  & .block-coverage .block-card > summary:focus-visible { outline-color: var(--blue); }

  & .player-ux :is(.standings-legend, .standings-head, .standings-row-own .standings-team span, .competition-objective div span) {
    color: var(--muted);
  }
  & .player-ux .standings-row:is(.standings-row-own, .standings-row-own.standings-row-playoff, .standings-row-own.standings-row-relegation) {
    background: var(--soft);
    color: var(--text);
  }
  & .player-ux .standings-pos,
  & .player-ux .standings-row-own:not(.standings-row-playoff):not(.standings-row-relegation) .standings-pos {
    background: var(--surface-2);
    color: var(--text);
  }
  & .player-ux .standings-row-playoff .standings-pos {
    background: var(--good-surface);
    color: var(--good);
  }
  & .player-ux .standings-row-relegation .standings-pos {
    background: var(--poor-surface);
    color: var(--poor);
  }

  & .player-ux { --team-accent: var(--good); }
  & .home-streak, & .home-pending-heading .eyebrow { color: var(--mid); }
  & .home-wellness-pending {
    background: #fff3e3;
    border-color: #d4ad7e;
    box-shadow: var(--shadow);
    color: var(--text);
  }
  & .home-wellness-pending > p { color: #70502f; }
  & :is(
    .home-illustration, .player-home .home-illustration, .wellness-followup .home-illustration,
    .achievement:not(.locked) svg, .ranking-podium .ranking-position svg, .identity-pillar > svg
  ) { filter: var(--light-icon-shadow); }
  & .player-ux .player-home .player-rail .match-card-home {
    --home-game-background: var(--soft);
    color: var(--text);
  }
  & .player-ux .player-home .player-rail .match-card-home :is(
    .match-meta, .match-meta span.match-place:last-child, .match-side,
    .match-versus, .match-venue, .matches-note
  ) { color: var(--muted); }
  & .player-ux .player-home .player-rail :is(.match-card-home .match-score-win, .match-card-home.match-card-win .match-outcome) {
    color: var(--good);
  }
  & .player-ux .player-home .player-rail :is(.match-card-home .match-score-loss, .match-card-home.match-card-loss .match-outcome) {
    color: var(--poor);
  }

  & .wellness-followup {
    --wellness-panel: var(--card);
    --text: var(--light-text);
    --muted: var(--light-muted);
    --line: var(--light-line);
    background: var(--surface-2);
  }
  & :is(.wellness-week, .wellness-panel, .wellness-pending) {
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  }
  & .wellness-panel .chart-latest strong { color: var(--text); }
  & .wellness-followup .wellness-good { color: var(--good); }
  & .wellness-followup .wellness-mid { color: var(--mid); }
  & .wellness-followup .wellness-poor { color: var(--poor); }
  & .wellness-followup .wellness-series button { background: var(--surface-2); }
  & :is(.wellness-series button[aria-pressed="true"], .wellness-pending button) {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
  }

  & .player-competition {
    --competition-blue: var(--blue);
    --competition-card: var(--card);
    --competition-line: var(--line);
    --competition-muted: var(--muted);
  }
  & .player-competition :is(.ranking-hero, .ranking-podium li) { box-shadow: var(--shadow); }
  & .player-competition :is(.ranking-hero, .player-ranking li) { color: var(--text); }
  & .player-competition .ranking-avatar { background: var(--soft); }
  & .player-competition .ranking-avatar .avatar { color: var(--text); }
  & .player-competition .ranking-rest .is-you { background: var(--soft); }
  & .player-competition .ranking-podium .podium-1 { --medal: #855a12; }
  & .player-competition .ranking-podium .podium-2 { --medal: #4b5d76; }
  & .player-competition .ranking-podium .podium-3 { --medal: #914e2c; }

  & :is(.scout-summary span, .scout-player-stats span, .scouting-close) { background: var(--surface-2); }
  & :is(.scout-summary b, .scout-player-stats b, .scouting-close) { color: var(--text); }
  & :is(.scout-rank, .scout-jersey, .scouting-kicker, .scouting-loading span, .match-scout-hint span, .match-scout-hint b) {
    color: var(--blue);
  }
  & .scout-reading h3 { color: var(--blue) !important; }
  & .scout-result.is-win > b { background: var(--good-surface); color: var(--good); }
  & .scout-result.is-loss > b { background: var(--poor-surface); color: var(--poor); }
  & .scouting-sheet { background: var(--surface); border-color: var(--line); }
}

.player-ux .player-home .player-rail .match-card .match-scout-hint {
  color: #81baff;
  font-size: 13px;
  font-weight: 900;
}
.player-ux .player-home .player-rail .match-card .match-scout-hint b { color: inherit; }
:root[data-theme="light"] .player-ux .player-home .player-rail .match-card .match-scout-hint { color: var(--blue); }

.scouting-player { --scout-accent: #81baff; }
:root[data-theme="light"] .scouting-player { --scout-accent: var(--blue); }
.scouting-player .scout-keys { display: block; margin: 0; }
.scouting-player .scout-keys > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
  padding-block: 8px;
}
.scouting-player .scout-keys > div + div { border-top: 1px solid var(--line); }
.scouting-player .scout-keys dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .06em;
}
.scouting-player .scout-keys dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
@media (max-width: 480px) {
  .scouting-player .scout-keys > div { grid-template-columns: minmax(0, 1fr); }
}
.scouting-player .scout-common { gap: 6px; }
.scouting-player .scout-common-result {
  display: grid;
  gap: 3px;
  padding: 7px 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.scouting-player .scout-common-result.is-liceo { border-inline-start: 2px solid var(--scout-accent); }
.scouting-player .scout-common-match { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.scouting-player .scout-common-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
  font-size: 10px;
  text-transform: uppercase;
}
.scouting-player .scout-common-meta small { color: var(--muted); font-size: inherit; }
.scouting-player .scout-locality.is-home { color: var(--scout-accent); }
.scouting-player .scout-score { color: var(--text); white-space: nowrap; }
.scouting-player .scout-antecedent { overflow-wrap: anywhere; }
.scouting-player .scout-plan { margin: 0; padding-inline-start: 18px; font-size: 13px; }
.scout-plan li + li { margin-top: 5px; }

.coach-home { gap: 24px; }
.coach-home .coach-quick,
.coach-home .coach-competitions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.coach-home .coach-card {
  min-width: 0;
  padding: clamp(12px, 3.5vw, 18px);
  border: 1px solid var(--home-edge);
  border-radius: 18px;
  background: var(--home-surface);
  box-shadow: var(--home-inset);
}
.coach-home .coach-quick a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 56px;
  padding: 8px;
  border: 1px solid var(--home-edge);
  border-radius: 14px;
  background: #222225;
  color: var(--text);
  box-shadow: 0 2px 5px #0003;
}
:root[data-theme="light"] .coach-home .coach-quick a {
  background: var(--card);
  box-shadow: 0 2px 5px #192a4610;
}
.coach-home .coach-quick .home-illustration {
  flex: none;
  width: 28px;
  height: 28px;
}
.coach-home .coach-quick strong,
.coach-home .coach-quick small {
  display: block;
  line-height: 1.25;
}
.coach-home .coach-quick strong { font-size: 14px; }
.coach-home .coach-quick small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.coach-home .coach-leader small {
  display: block;
  color: var(--muted);
}
.coach-home .coach-card p { margin: 5px 0 0; }
.coach-home .coach-card h3 { font-size: 14px; margin: 0 0 8px; }
.coach-home .coach-wellness-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  background: #222225;
  transition: background-color 150ms, border-color 150ms;
}
:root[data-theme="light"] .coach-home .coach-wellness-card {
  background: var(--card);
  box-shadow: var(--shadow);
}
@media (hover: hover) {
  .coach-home .coach-wellness-card:hover { border-color: var(--muted); }
}
.coach-home .coach-wellness-card:active {
  background: #303036;
}
:root[data-theme="light"] .coach-home .coach-wellness-card:active {
  background: var(--surface-2);
}
.coach-home .coach-wellness-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.coach-home .coach-wellness-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.coach-home .coach-wellness-heading h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
}
.coach-wellness-icon,
.coach-wellness-chevron { display: inline-flex; }
.coach-wellness-icon { color: var(--blue); }
.coach-wellness-chevron { margin-inline-start: auto; color: var(--muted); }
.coach-wellness-heading svg { width: 18px; height: 18px; }
.coach-wellness-count { font-size: 14px; }
.coach-wellness-count strong { font-size: 22px; }
.coach-home .coach-wellness-card p { font-size: 13px; margin-top: 2px; }
.coach-home .coach-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  list-style: none;
  padding: 0;
  margin: 9px 0 0;
  font-size: 12px;
}
.coach-alerts li { white-space: nowrap; }
.coach-alerts strong { color: #ff8a91; }
:root[data-theme="light"] .coach-alerts strong { color: var(--poor); }
.coach-home .coach-leader { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.coach-home .coach-leader .avatar { flex: none; width: 30px; height: 30px; font-size: 12px; }
.coach-home .coach-competition .wellness-history-link { font-size: 12px; }
.coach-home .coach-fbm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.coach-home .coach-fbm button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--blue);
  font-weight: 700;
}
.coach-home .coach-fbm span { color: var(--muted); font-size: 12px; }
@media (max-width: 360px) {
  .coach-home .coach-competitions { grid-template-columns: minmax(0, 1fr); }
}

/* Wellness del equipo */
:root:not([data-theme="light"]) body:has(.coach-wellness) { background: #030304; }
.coach-wellness {
  --cw-surface: #161619;
  --cw-line: #ffffff22;
  --cw-good: #73dba9;
  --cw-poor: #ff8a91;
  --cw-medium: #ffb074;
  --cw-info: #f4d473;
  --cw-accent: #92bdff;
  max-width: 840px;
  margin-inline: auto;
}
:root[data-theme="light"] .coach-wellness {
  --cw-surface: var(--card);
  --cw-line: var(--line);
  --cw-good: var(--good);
  --cw-poor: var(--poor);
  --cw-medium: #9a4500;
  --cw-info: #765900;
  --cw-accent: #1457bf;
}
.coach-wellness h1 { margin: 14px 0 16px; font-size: clamp(29px, 5vw, 44px); }
.coach-wellness h2 { margin: 0 0 10px; font-size: 20px; }
.coach-wellness .is-good { color: var(--cw-good); }
.coach-wellness .is-poor { color: var(--cw-poor); }
.cw-options {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  padding: 3px;
  border: 1px solid var(--cw-line);
  border-radius: 14px;
  background: var(--cw-surface);
}
.cw-options button {
  min-height: 42px;
  padding: 4px clamp(8px, 2vw, 14px);
  border-radius: 10px;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.cw-options button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--cw-accent) 17%, var(--cw-surface));
  color: var(--cw-accent);
}
.cw-summary, .cw-attention, .cw-players, .cw-detail-summary, .cw-detail-chart, .cw-detail-history { margin-top: 22px; }
.cw-summary-heading, .cw-completion {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12px;
  color: var(--muted);
}
.cw-summary-heading > span:first-child { color: var(--text); font-weight: 650; }
.cw-summary-heading small { color: var(--muted); }
.cw-scores {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 4px;
  margin: 8px 0 0;
}
.cw-scores > div {
  padding: 8px 2px;
  border: 1px solid var(--cw-line);
  border-radius: 12px;
  background: var(--cw-surface);
  text-align: center;
}
.cw-scores dt { display: grid; justify-items: center; gap: 3px; font-size: 11px; }
.cw-scores svg { width: 21px; height: 21px; }
.cw-scores dd { display: grid; margin: 4px 0 0; gap: 2px; }
.cw-scores dd strong { font-size: clamp(16px, 4vw, 24px); }
.cw-scores dd small { font-size: 10px; color: var(--muted); }
.cw-completion {
  padding: 8px 10px;
  margin-top: 6px;
  border: 1px solid var(--cw-line);
  border-radius: 12px;
  background: var(--cw-surface);
}
.cw-completion strong { color: var(--text); }
.cw-attention h2 span { margin-left: 4px; color: var(--muted); font-size: 13px; }
.cw-attention ul { margin: 0; padding: 0; list-style: none; }
.cw-attention li + li { margin-top: 5px; }
.cw-attention a, .cw-roster th a, .cw-detail-name { display: flex; align-items: center; gap: 8px; }
.cw-attention a {
  padding: 7px 10px;
  border: 1px solid var(--cw-line);
  border-radius: 12px;
  background: var(--cw-surface);
}
.cw-attention small { display: block; margin-top: 2px; color: var(--muted); }
.cw-attention small, .cw-roster-player { overflow-wrap: anywhere; min-width: 0; }
.cw-cause--high { color: var(--cw-poor); }
.cw-cause--medium { color: var(--cw-medium); }
.cw-cause--info { color: var(--cw-info); }
.cw-pain-summary {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
small.cw-pain-summary { margin-top: 3px; font-weight: 400; }
.cw-pain-summary svg { flex: none; width: 14px; height: 14px; align-self: flex-start; }
.cw-detail-summary .cw-pain-summary {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid var(--cw-line);
  border-radius: 10px;
  background: var(--cw-surface);
  font-size: 13px;
}
.cw-pain-summary strong { display: block; color: var(--text); }
.cw-attention a > svg, .cw-roster a > svg { margin-left: auto; width: 16px; height: 16px; color: var(--muted); flex: none; }
.cw-attention .avatar, .cw-roster .avatar, .cw-detail-name .avatar { object-fit: cover; width: 30px; height: 30px; }
.cw-caption, .cw-empty { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.cw-roster { width: 100%; margin-top: 8px; border-spacing: 0 4px; font-size: 13px; }
.cw-roster tbody tr { position: relative; background: var(--cw-surface); cursor: pointer; }
.cw-roster th { text-align: left; }
.cw-roster tbody th a { padding: 7px 9px; }
.cw-roster tr:has(a:focus-visible) { outline: 2px solid var(--blue); border-radius: 12px; }
.cw-roster a:focus-visible { outline: none; }
.cw-roster th, .cw-roster td { font-variant-numeric: tabular-nums; }
.cw-roster .cw-missing { color: var(--muted); padding: 0 9px 7px; }
.cw-roster-icon svg { width: 17px; height: 17px; display: block; }
.cw-empty { margin-top: 12px; }
.cw-detail-name { margin: 0 0 8px; color: var(--muted); }
.cw-detail-chart .cw-options { margin-bottom: 8px; }
.cw-detail-history .attribute { min-width: 0; }
.cw-detail-history .wellness-chart { max-width: 100%; overflow-x: auto; }
@media (max-width: 619px) {
  .cw-roster, .cw-roster tbody { display: block; }
  .cw-roster thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cw-roster tbody tr {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    margin-bottom: 5px;
    border: 1px solid var(--cw-line);
    border-radius: 12px;
  }
  .cw-roster tbody th, .cw-roster .cw-missing { grid-column: 1 / -1; }
  .cw-value { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 0 7px; }
}
@media (min-width: 620px) {
  .cw-scores { gap: 8px; }
  .cw-scores dt { display: flex; align-items: center; justify-content: center; }
  .cw-scores dd { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
  .cw-roster :is(td,th:not(:first-child)) { text-align: center; }
  .cw-roster td, .cw-roster tbody th { border-block: 1px solid var(--cw-line); }
  .cw-roster tbody th { border-radius: 12px 0 0 12px; border-left: 1px solid var(--cw-line); width: 27%; }
  .cw-roster td:last-child { border-radius: 0 12px 12px 0; border-right: 1px solid var(--cw-line); }
  .cw-roster tbody th a { padding-left: 12px; }
  .cw-roster .cw-missing { padding: 0; }
  .cw-roster-icon { display: inline-flex; margin-inline-end: .3rem; vertical-align: middle; }
}

.coach-home .coach-team-stats > a,
.coach-home .coach-competition {
  display: block;
  color: var(--text);
  text-decoration: none;
}
.coach-home .coach-quick {
  grid-template-columns: repeat(2, minmax(0, 180px));
  justify-content: center;
  gap: clamp(8px, 3vw, 16px);
}
.coach-home .coach-quick a {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: clamp(98px, 22vw, 128px);
  text-align: center;
}
.coach-home .coach-quick .home-illustration { width: 38px; height: 38px; }
.coach-home .coach-quick small { font-size: 12px; }
.coach-home .coach-wellness-card {
  --cw-good: #73dba9;
  --cw-poor: #ff8a91;
  --cw-line: var(--home-edge);
  --cw-surface: var(--home-surface);
}
:root[data-theme="light"] .coach-home .coach-wellness-card {
  --cw-good: var(--good);
  --cw-poor: var(--poor);
}
.coach-home .cw-scores { margin-bottom: 9px; }
.coach-home .cw-scores dt { font-size: clamp(9px, 2.8vw, 11px); }
.coach-home .cw-scores svg { width: 17px; height: 17px; }
.coach-home .cw-scores .is-good { color: var(--cw-good); }
.coach-home .cw-scores .is-poor { color: var(--cw-poor); }
.coach-home :is(.coach-quick a, .coach-competition, .coach-team-stats > a):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.coach-ranking .page-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}
.coach-register-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}
.coach-register {
  max-width: 680px;
  margin-inline: auto;
}
.coach-register h2, .register-picker h2 { font-size: 1rem; margin: 0; }
.coach-register h3 { font-size: .92rem; margin: 14px 0 8px; }
.register-heading, .register-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.register-heading button { min-height: 44px; color: var(--blue); font-size: .82rem; }
.register-heading small { color: var(--muted); }
.register-chips, .register-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
}
.register-chips :is(button,span,label),
.register-preview,
.register-confirmation {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: .88rem;
}
.register-chips button { min-height: 44px; font-weight: 700; }
.register-custom, .register-custom label { display: flex; align-items: center; gap: 6px; }
.register-custom label { font-size: .8rem; }
.register-custom input { width: 65px; padding: 6px; background: var(--card); }
.register-roster { display: grid; gap: 5px; margin: 8px 0; }
.register-player, .register-podium button, .register-choices > button, .register-numbers button, .register-clear {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 7px 10px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
}
.register-player .avatar { width: 30px; height: 30px; flex: none; }
.register-player span { overflow-wrap: anywhere; }
.register-player strong { margin-inline-start: auto; color: var(--blue); white-space: nowrap; }
.register-player[data-assign] strong { font-size: .8rem; }
.register-player[data-hits] strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.register-podium { display: grid; gap: 6px; margin: 12px 0; }
.register-podium button { justify-content: space-between; }
.register-preview { font-weight: 700; gap: 6px 12px; }
.register-confirmation { color: var(--good); }
.register-main { width: 100%; margin-top: 10px; }
.register-main:disabled, .register-chips button:disabled { opacity: .5; cursor: default; }
.register-status { margin: 0; color: var(--poor); }
.register-picker {
  position: fixed;
  inset: auto 0 0;
  margin: auto auto 0;
  width: min(100%, 460px);
  max-width: 100%;
  max-height: min(72dvh, 580px);
  padding: 0;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
}
.register-picker::backdrop { background: #0008; }
.register-picker-content { padding: 12px 14px max(16px, env(safe-area-inset-bottom)); }
.register-picker header { margin-bottom: 8px; }
.register-picker header button { min-width: 44px; min-height: 44px; font-size: 1.5rem; }
.register-choices { display: grid; gap: 5px; }
.register-numbers { display: grid; grid-template-columns: repeat(auto-fit,minmax(42px,1fr)); gap: 5px; }
.register-numbers button { justify-content: center; font-weight: 750; }
.register-clear { width: 100%; margin-top: 10px; color: var(--poor); }
:is(.coach-register,.register-picker) button[aria-pressed="true"] {
  color: var(--blue);
  background: var(--soft);
  border-color: var(--blue);
}
@media (min-width: 600px) {
  .register-roster { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .register-picker { inset: 0; margin: auto; border-radius: 22px; }
}

@media (max-width: 360px) {
  .coach-home .personal-header h1 { font-size: clamp(23px, 8vw, 29px); }
}

@media (min-width: 900px) {
 .coach-home .coach-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .coach-home .coach-quick a { min-height: 162px; padding: 20px; }
 .coach-home .coach-quick strong { font-size: 18px; }
 .coach-home .coach-quick .home-illustration { width: 54px; height: 54px; }
}
.register-player.team-assignment {
 display: grid;
 grid-template-columns: auto 1fr;
 gap: 6px 10px;
 text-align: start;
}
.team-assignment .register-chips { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 4px; }
.team-assignment .register-chips button { min-width: 0; padding-inline: 4px; min-height: 44px; }
.ranking-period, .release-form, .release-form label { display: grid; gap: 10px; }
.ranking-period { margin-block: 14px; }
.ranking-period select, .release-form input, .access-member input { max-width: 100%; width: 100%; box-sizing: border-box; }
.ranking-rules, .scouting-editor details { margin: 12px 0; padding: 12px; border: 1px solid var(--line,currentColor); border-radius: 12px; }
.ranking-rules summary, .scouting-editor summary { font-weight: 650; cursor: pointer; }
.player-ranking li.ranking-zone-reward { box-shadow: inset 3px 0 #279b68; background: color-mix(in srgb,#279b68 12%,transparent); }
.player-ranking li.ranking-zone-consequence { box-shadow: inset 3px 0 #db525d; background: color-mix(in srgb,#db525d 12%,transparent); }
.access-member { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line,currentColor); }
.access-member small { display: block; }
.access-member label { width: 100%; }
.release-form .scouting-publish { display: flex; align-items: center; }
.scouting-publish input[type=checkbox] { width: auto; }
.scouting-note { display: grid; gap: 6px; margin-block: 10px; }
.ranking-zone-key { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; }
.ranking-zone-key span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #279b68; margin-inline-end: 6px; }
.ranking-zone-key span + span::before { background: #db525d; }

.player-ranking .ranking-eligibility {
 display: block;
 font-size: .75rem;
 font-weight: 500;
}

.season-chips{display:flex;gap:.35rem;overflow-x:auto;margin-block:0 1rem;padding:.2rem}
.season-chips button{flex:0 0 auto;white-space:nowrap}
.team-link{color:inherit;text-decoration:none;border-radius:4px}
.team-link:is(:hover,:focus-visible){background:var(--soft);color:var(--blue)}
.match-team-name .team-link{display:flex;align-items:center;gap:.4rem}
.standings-team .team-link{display:inline-block;max-width:100%}
.scouting-history-row,.home-season>a{color:inherit;text-decoration:none}
.scouting-history-row>span{display:grid;gap:.25rem}
.scouting-history-row svg{width:1rem;height:1rem}
.team-detail h1{display:flex;align-items:center;gap:.6rem}
.team-detail h1 .team-crest{flex:none}
.team-detail h1 .team-crest img{display:block;object-fit:contain}
.season-chips{margin-top:1rem}
.season-chips button{font:inherit;font-weight:650;padding:.45rem .7rem;border:1px solid currentColor;border-radius:99px;background:transparent;color:inherit}
.season-chips button[aria-pressed="true"]{background:#145cc9;color:white;border-color:#145cc9}
.season-ranking{list-style:none;padding:0;margin:0}
.season-ranking li{display:grid;grid-template-columns:1.3rem 2.15rem minmax(0,1fr) auto;align-items:center;gap:.45rem;padding:.65rem .2rem;border-bottom:1px solid color-mix(in srgb,currentColor 16%,transparent)}
.season-ranking .team-avatar,.season-ranking .avatar{width:2rem;height:2rem;font-size:.75rem}
.season-identity{display:grid;gap:.2rem;overflow-wrap:anywhere}
.season-identity small,.season-rank{font-size:.74rem;opacity:.78}
.season-value{font-size:1.15rem;text-align:right;white-space:nowrap}
.season-value small{font-size:.62rem}

.match-scout-hint{text-decoration:none}
[data-home-scouting] a.back{margin-top:1rem}

.previous-scouting svg { width: 1em; height: 1em; color: var(--blue); }
.scouting-history-row:hover, .previous-scouting:hover { background: var(--soft); }
.previous-scouting { padding:10px 14px; margin-bottom:16px; border-radius:16px; }
.scouting-editor { margin-top:20px; }
.scouting-editor h2 { margin-bottom:0; }
.scouting-editor details { margin:0; background:var(--card); }
.scouting-publish { min-height:44px; }
.scouting-publish input { accent-color:var(--blue); }
.coach-shared-notes { margin-block:12px; padding:14px; border-radius:18px; overflow-wrap:anywhere; }
.coach-shared-notes h2 { font-size:1rem; margin:0 0 8px; }
.coach-shared-notes h3 { font-size:.875rem; margin:8px 0 3px; }
.coach-shared-notes ul { margin:0; padding-left:1.2rem; line-height:1.5; }
.settings-sheet .sheet-body { background:var(--bg); padding:14px; }
.settings-sheet .app-settings { display:grid; gap:10px; }
.app-settings section { padding:12px 14px; border-radius:18px; background:var(--card); border:1px solid var(--line); }
.app-settings h3 { font-size:1rem; margin:0 0 6px; }
.app-settings .row { min-height:44px; padding-block:6px; }
.app-settings .row[data-action=logout] { border-bottom:0; }
.app-settings p, .app-settings ol { font-size:.85rem; margin:6px 0; color:var(--muted); }
.app-settings ol { padding-left:1.25em; line-height:1.55; }
.app-settings p:empty { display:none; }
.app-settings [data-install] button, .app-settings [data-notifications] button {
 min-height:44px; margin:4px 4px 0 0; padding:7px 12px; border:1px solid var(--line);
 border-radius:12px; background:var(--soft); color:var(--blue); font-weight:650; font-size:.84rem;
}
.app-settings [data-install-app], .app-settings [data-enable-push] { color:#fff!important; background:#1760d6!important; }
.app-settings .settings-status { font-weight:650; }


.avatar.player-avatar {
 position: relative;
 display: inline-grid;
 place-items: center;
 flex-shrink: 0;
 overflow: hidden;
 vertical-align: middle;
 background: var(--soft);
 color: var(--text);
}
.player-photo > .avatar.player-avatar { position: absolute; }
.player-avatar img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 opacity: 0;
}
.player-avatar.has-photo img { opacity: 1; }
.player-avatar.has-photo > span { visibility: hidden; }
.player-competition .ranking-avatar .player-avatar img[src$="/sub22-alvarito.png"] { object-position: center 68%; }
.player-competition .ranking-avatar .player-avatar img[src$="/sub22-rodrigo.jpg"] { object-position: center 60%; }

.player-competition, .personal-season { padding-bottom: 32px; }
.player-competition .ranking-rest li { min-height: 48px; grid-template-columns: 1.6rem 30px minmax(0,1fr) auto; }
.player-competition .ranking-score small { white-space: normal; max-width: 17ch; font-size: .71rem; }
.player-competition .ranking-rest .is-you { background: var(--competition-card); border-color: var(--competition-line); box-shadow: none; }
.player-competition .ranking-rest .is-you .ranking-score { color: inherit; }
.player-competition .ranking-rest li.ranking-zone-reward {
 background: color-mix(in srgb, #279b68 18%, var(--competition-card));
 box-shadow: inset 3px 0 #279b68;
}
.player-competition .ranking-rest li.ranking-zone-consequence {
 background: color-mix(in srgb, #db525d 18%, var(--competition-card));
 box-shadow: inset 3px 0 #db525d;
}

.register-custom[hidden], [data-player-preview][hidden] { display: none; }

.personal-season .personal-header { border-bottom: 0; }
.team-results .scout-result { grid-template-columns: 25px 70px 52px minmax(0, 1fr); }
.team-results .scout-result > span:last-child { overflow-wrap: anywhere; }
.season-game { border-bottom: 1px solid var(--line); padding: 10px 0; }
.result-meta { display: block; color: var(--muted); font-size: .72rem; }
.result-meta span { margin-inline-start: .45em; font-weight: 700; }
.result-win { color: #51ce95; }
.result-loss { color: #ff818d; }
:root[data-theme="light"] .result-win { color: #137548; }
:root[data-theme="light"] .result-loss { color: #b0253c; }
.season-game { display: grid; gap: 6px; }
.season-game-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 12px; }
.season-game-stats {
 display: grid;
 grid-template-columns: repeat(4, minmax(0, 1fr));
 gap: 6px;
 margin: 6px 0 2px;
}
.season-game-stats > div {
 display: flex;
 flex-direction: column-reverse;
 align-items: center;
 gap: 3px;
 padding: 8px 2px;
 border-radius: 10px;
 background: var(--surface);
}
.season-game-stats dt { color: var(--muted); font-size: .7rem; font-weight: 700; }
.season-game-stats dd { margin: 0; font-size: clamp(1.25rem, 5vw, 1.65rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.season-game-missing { margin: 4px 0; font-size: .85rem; }
.rival-scouting { margin-top: 22px; }
.rival-scouting h3 { font-size: .8rem; letter-spacing: .04em; }
.rival-scouting-recent li { display: grid; grid-template-columns: minmax(0,5.5rem) 1fr auto; gap: 8px; align-items: center; font-size: .85rem; }
.rival-scouting-recent small { color: var(--muted); }

.scouting-editor { gap: 12px; }
.scouting-editor > h2 { font-size: 1.15rem; }
.scouting-editor .scouting-publish, .scouting-editor details {
 border: 1px solid var(--line);
 border-radius: 16px;
 background: var(--card);
 padding: 12px 14px;
}
.scouting-editor summary { min-height: 30px; align-content: center; }
.scouting-editor .scouting-note {
 grid-template-columns: minmax(0,1fr) auto;
 align-items: end;
 border-top: 1px solid var(--line);
 padding-top: 9px;
}
.scouting-note label { font-size: .75rem; color: var(--muted); }
.scouting-note input { background: var(--bg); color: var(--text); font-size: 1rem; }
.scouting-editor :is([data-add],[data-remove]) { min-height: 44px; padding: 6px; font-size: .85rem; }
.scouting-editor [data-add] { color: var(--blue); }
.scouting-editor [data-remove] { color: var(--muted); }
.scouting-editor > p:empty { display: none; }
[data-player-preview] label { display: grid; gap: 6px; margin-block: 8px; }
.player-preview-banner {
 margin-bottom: 12px;
 padding: 5px 12px;
 border: 1px solid var(--line);
 border-radius: 12px;
 background: var(--card);
 font-size: .82rem;
}
.player-preview-banner button { min-height: 44px; color: var(--blue); text-decoration: underline; }

.scouting-player .scout-common-meta .result-win { color: var(--good); }
.scouting-player .scout-common-meta .result-loss,
.player-ranking .throw-loser { color: var(--poor); }

.home-season .personal-season-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-season .coach-stat-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(2px, .8vw, 6px);
}
.coach-stat-cards strong { overflow-wrap: anywhere; }

.stat-overview {
  display: grid;
  gap: .45rem;
  padding-block: .4rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.stat-metric-row {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: .25rem;
  margin: 0;
}
.stat-metric-row > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: .15rem;
  min-width: 0;
}
.stat-metric-row dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 6vw, 1.8rem);
  font-weight: 750;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.stat-metric-row dt {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
  line-height: 1.2;
}
.stat-overview-personal {
  gap: .35rem;
  padding-block: .25rem .55rem;
}
.stat-overview-personal dd { font-size: 1.125rem; }
.stat-overview-team {
  padding-block: .6rem .75rem;
  gap: .7rem;
}
.team-detail > .stat-summary + section { margin-top: .65rem; }

#tabs[hidden], .player-home .push-banner[hidden] { display:none; }
.app-settings { display:grid; gap:10px; }
.app-settings .appearance-options { width:100%; margin:0; }
.app-settings .appearance-options legend { font-weight:700; }
.app-settings .appearance-options label { display:inline-flex; gap:.35rem; margin-right:1rem; }
.app-settings .push-test-buttons { display:flex; flex-wrap:wrap; gap:.35rem; }
.push-test-buttons button {
 min-height:44px; padding:.35rem .75rem; border:1px solid var(--line); border-radius:12px;
 background:var(--soft); color:var(--blue); font-weight:650;
}
.player-home .push-banner {
 display:grid; grid-template-columns:auto minmax(0,1fr); column-gap:.8rem; align-items:start;
 padding:.85rem; margin-bottom:1rem; border:1px solid var(--line); border-radius:18px; background:var(--card);
}
.player-home .push-banner > .symbol { width:24px; height:24px; color:var(--blue); }
.player-home .push-banner h2 { margin:0; font-size:1rem; color:var(--text); }
.player-home .push-banner p { font-size:.88rem; margin:.28rem 0 .5rem; color:var(--muted); }
.player-home .push-banner p:empty { display:none; }
.push-banner .primary { width:auto; margin:0; min-height:44px; background:#1760d6; color:white; }

.ranking-zone-key span.consequence-key::before { background:#db525d; }
.cycle-summary { display: grid; gap: 1rem; }
.cycle-heading, .cycle-highlight, .cycle-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.cycle-heading {
  padding: 1.5rem 1rem;
  text-align: center;
  background: radial-gradient(ellipse at top, #1768ed33, transparent 78%), var(--surface);
}
.cycle-heading svg { width: 54px; height: 54px; }
.cycle-heading h1 { margin: .15rem 0; }
.cycle-heading p { margin: .25rem 0 .85rem; color: var(--muted); }
.cycle-heading small { display: block; margin-top: .55rem; color: var(--muted); }
.cycle-date {
  display: inline-block;
  border: 1px solid #1768ed65;
  border-radius: 99px;
  background: #1768ed18;
  padding: .35rem .75rem;
  font-size: .84rem;
}
.cycle-highlights, .cycle-groups, .cycle-outcomes dl { display: grid; gap: .65rem; }
.cycle-highlights { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cycle-highlight {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: clamp(.65rem, 2.4vw, 1.15rem);
  overflow-wrap: anywhere;
}
.cycle-highlight-cup { background: linear-gradient(135deg,#efb14323,transparent 80%),var(--surface); }
.cycle-highlight-target { background: linear-gradient(135deg,#1768ed30,transparent 80%),var(--surface); }
.cycle-highlight svg { width: clamp(24px,5vw,42px); height: auto; flex: none; }
.cycle-highlight h2 { margin: 0 0 .4rem; font-size: .79rem; color: var(--muted); }
.cycle-highlight strong { display: block; margin-bottom: .25rem; }
.cycle-highlight p { margin: 0; font-size: .84rem; }
.cycle-section { padding: clamp(.75rem,3vw,1.25rem); }
.cycle-section h2 { margin: 0 0 .8rem; }
.cycle-section h3 { margin: 0 0 .55rem; font-size: .92rem; }
.cycle-group { border: 1px solid var(--line); border-radius: 12px; padding: .7rem; }
.cycle-reward { background: #31a56d15; border-color: #31a56d60; }
.cycle-consequence { background: #db525d15; border-color: #db525d60; }
.cycle-ranking, .cycle-podium { list-style: none; margin: 0; padding: 0; }
.cycle-ranking li { display: flex; gap: .5rem; align-items: center; padding: .55rem 0; }
.cycle-ranking li + li { border-top: 1px solid var(--line); }
.cycle-ranking strong, .cycle-podium strong { overflow-wrap: anywhere; }
.cycle-ranking .cycle-score { margin-inline-start: auto; text-align: end; flex: none; }
.cycle-position {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  flex: none;
  border-radius: .5rem;
  background: #1768ed29;
  font-size: .8rem;
  font-weight: 750;
}
.cycle-reward .cycle-position { background: #31a56d32; }
.cycle-consequence .cycle-position { background: #db525d32; }
.cycle-score { font-variant-numeric: tabular-nums; }
.cycle-summary :is(.cycle-score, .cycle-ranking) small { display: block; font-size: .73rem; color: var(--muted); }
.cycle-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; margin-bottom: .8rem; }
.cycle-podium li {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .35rem;
  padding: .65rem .35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-size: .86rem;
  background: var(--surface-2);
}
.cycle-podium li:nth-child(1) { background: #efb14319; border-color: #efb14370; }
.cycle-podium li:nth-child(1) .cycle-position { background: #efb14338; }
.cycle-podium li:nth-child(2) .cycle-position { background: #9db4ce38; }
.cycle-podium li:nth-child(3) .cycle-position { background: #bd794b38; }
.cycle-empty { margin: 0 0 .45rem; font-size: .85rem; color: var(--muted); }
.cycle-outcomes dl { margin: 0; }
.cycle-outcomes dl > div { padding-inline-start: .7rem; border-inline-start: 2px solid var(--blue); }
.cycle-outcomes dt { font-weight: 700; }
.cycle-outcomes dd { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); }
@media (min-width: 620px) {
  .cycle-groups, .cycle-outcomes dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.wellness-radar { display: grid; gap: .7rem; }
.wellness-pentagon { width: min(100%,260px); justify-self: center; color: var(--blue); }
.wellness-pentagon .radar-grid { fill:none; stroke:var(--muted); stroke-opacity:.55; stroke-width:.75; }
.wellness-pentagon .radar-data { fill:currentColor; fill-opacity:.23; stroke:currentColor; stroke-width:1.8; }
.wellness-pentagon circle { fill:currentColor; }
.wellness-pentagon text { fill:var(--muted); font-size:8px; }
.wellness-radar-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; gap: .4rem; }
.wellness-radar-metrics > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  padding: .44rem .35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.wellness-radar dt { display:flex; align-items:center; gap:.24rem; font-size:.82rem; overflow-wrap:anywhere; }
.wellness-radar dd { margin:0; font-weight:700; white-space:nowrap; font-variant-numeric:tabular-nums; }
.wellness-radar dd small { font-size:.72rem; color:var(--muted); }
:is(.wellness-radar, .wellness-series, .wellness-selected-series, .attribute, .cw-attention small) .home-illustration {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
.attribute meter { appearance: none; }
.cw-detail-history .attribute.alert meter::-webkit-meter-optimum-value { background: #e7a264; }
form legend .home-illustration { width: 20px; height: 20px; vertical-align: middle; }
.radar-caption { margin:.55rem 0 0; font-size:.81rem; }
@media (min-width: 620px) {
  .wellness-radar.has-pentagon { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: 1rem; }
  .wellness-radar-metrics { grid-template-columns: 1fr; }
  .wellness-radar-metrics > div { padding-inline: .65rem; }
}
.stat-overview-team + .season-chips { margin-top: .75rem; }
.stat-overview-rival + section { margin-top: .75rem; }

.league-teams {
 display: grid;
 grid-template-columns: repeat(2,minmax(0,1fr));
 gap: .55rem;
}
.league-team, .league-profile dl > div, .league-history li {
 border: 1px solid var(--competition-line,var(--line));
 border-radius: 12px;
 background: var(--competition-card,var(--card));
 padding: .55rem;
 min-width: 0;
}
.league-team h3 { font-size: .9rem; margin: 0 0 .35rem; }
.league-team ul, .league-history { list-style: none; margin: 0; padding: 0; }
.league-team li { display: flex; align-items: center; gap: .15rem; font-size: .8rem; }
.league-team li + li { border-top: 1px solid var(--competition-line,var(--line)); }
.league-member {
 display: flex;
 gap: .35rem;
 align-items: center;
 text-align: start;
 min-width: 0;
 min-height: 36px;
 overflow-wrap: anywhere;
}
button.league-member { flex: 1; min-height: 44px; padding: 0; }
.league-member .avatar { width: 24px; height: 24px; flex: none; }
.league-drag {
 display: grid;
 place-items: center;
 flex: 0 0 26px;
 height: 44px;
 touch-action: none;
 user-select: none;
 cursor: grab;
 color: var(--muted);
}
.league-drag.is-dragging { cursor: grabbing; color: var(--blue); }
.league-drop-target { outline: 2px solid var(--blue); outline-offset: -2px; }
.league-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; text-align: center; margin-top: .5rem; }
.league-points small { grid-column: 1 / -1; }
.league-points button { width: 100%; min-height: 44px; font-size: 1.15rem; color: var(--blue); }
.league-points button:disabled { opacity: .4; }
.league-points output { font-variant-numeric: tabular-nums; }
.league-latest { margin-block: 1rem; }
.league-winner { font-weight: 700; color: var(--blue); margin: .25rem 0 .6rem; }
.league-empty, .league-team small, .league-history small, .league-profile dt { color: var(--muted); }
.league-teams-aligned > .league-team { display: flex; flex-direction: column; }
.league-roster { display: flex; flex: 1; }
.league-roster > ul { display: flex; flex: 1; flex-direction: column; justify-content: space-between; min-width: 0; }
@supports (grid-template-rows: subgrid) {
 .league-teams-aligned > .league-team {
  display: grid;
  grid-row: 1 / span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
 }
 .league-teams-with-points > .league-team { grid-row: 1 / span 3; }
 .league-teams-aligned > .league-team:first-child { grid-column: 1; }
 .league-teams-aligned > .league-team:last-child { grid-column: 2; }
}
.player-competition .ranking-rest li { display: block; padding: 0; }
.ranking-profile-link {
 display: grid;
 grid-template-columns: 1.6rem 30px minmax(0,1fr) auto;
 gap: 8px;
 align-items: center;
 min-height: 46px;
 padding: 5px 8px;
 border-radius: inherit;
 color: inherit;
 text-decoration: none;
}
.player-competition a.ranking-profile-link { color: inherit; text-decoration: none; }
.player-competition .ranking-rest .is-you {
 background: color-mix(in srgb, var(--blue) 15%, var(--competition-card));
 border-color: color-mix(in srgb, var(--blue) 48%, var(--competition-line));
}
.player-competition .ranking-rest .is-you.ranking-zone-consequence {
 background: color-mix(in srgb, #db525d 18%, var(--competition-card));
}
@media (hover: hover) {
 .ranking-profile-link:hover { background: color-mix(in srgb, var(--blue) 9%, transparent); }
}
.ranking-profile-link:active { background: color-mix(in srgb, var(--blue) 15%, transparent); }
.ranking-profile-link:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ranking-identity { min-width: 0; }
.ranking-identity small { display: block; margin-top: .15rem; color: var(--competition-muted); }
.ranking-zone-consequence .ranking-score,
.league-profile .is-consequence dd { color: var(--poor, #f08a92); }
body #app.ranking-profile-page { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.league-profile-heading { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.league-profile-heading .avatar { width: clamp(72px, 22vw, 104px); height: clamp(72px, 22vw, 104px); font-size: 1.65rem; }
.league-profile-heading :is(h1,h2) { margin: .25rem 0; font-size: clamp(1.65rem, 6vw, 2.5rem); overflow-wrap: anywhere; }
.league-profile-heading p { margin: 0; color: var(--muted); font-size: .85rem; }
.league-profile-heading .league-profile-context { color: var(--text); font-weight: 700; }
.league-profile > section { margin-top: 1.5rem; }
.league-profile dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
.league-profile dt, .league-history small { font-size: .8rem; }
.league-profile dd { margin: .2rem 0 0; font-weight: 700; }
.league-history { display: grid; gap: .35rem; }
.league-history li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.league-history small { display: block; }
.league-history-score { text-align: end; }
.league-history strong { white-space: nowrap; }
.league-profile dl > div.is-consequence {
 border-color: color-mix(in srgb, #db525d 48%, var(--competition-line));
}
[data-ranking-period-results] > .coach-register-cta { margin-top: 1rem; }
.league-profile dl:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (min-width: 620px) {
 .league-profile dl { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

.internal-standings { margin-top: 1.5rem; }

.player-competition .league-standings .league-average {
 font-size: 1.2rem;
}
.player-competition .league-standings li.is-you {
 background: color-mix(in srgb, var(--blue) 15%, var(--competition-card));
}
.league-profile dl.league-personal-stats {
 grid-template-columns: none;
 grid-auto-columns: minmax(0, 1fr);
 grid-auto-flow: column;
 text-align: center;
}
.league-personal-stats > div {
 display: grid;
 place-content: center;
}

.match-directions {
 display: flex;
 align-items: center;
 justify-content: space-between;
 min-height: 44px;
 color: inherit;
 text-decoration: none;
}

.match-directions {
 justify-content: flex-start;
 gap: 6px;
}
.match-directions small {
 display: block;
 font-size: inherit;
}
