:root {
  color-scheme: dark;
  --bg: #070b12;
  --panel: #101722;
  --panel-2: #151f2d;
  --line: #243247;
  --text: #eef4ff;
  --muted: #8c9bb0;
  --lime: #42a5ff;
  --lime-dark: #102943;
  --red: #ed6b61;
  --amber: #f2c66d;
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.loading {
  padding: 12vh 8vw;
  color: var(--muted);
}

.creation-shell {
  max-width: 1440px;
  min-height: 100vh;
  margin: auto;
  padding: 26px 5vw 60px;
}

.brand-row {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 14px "Space Grotesk", sans-serif;
  letter-spacing: .16em;
}

.brand-ball {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #14200e;
  background: var(--lime);
  font: 700 14px "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--muted);
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .13em;
}

.lime {
  color: var(--lime);
}

.creation-grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(520px, 1.2fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
  padding: 62px 0;
}

.creation-copy {
  position: sticky;
  top: 60px;
  padding-top: 48px;
}

.creation-copy h1 {
  margin: 18px 0;
  font: 600 clamp(46px, 5vw, 74px)/.98 "Space Grotesk", sans-serif;
  letter-spacing: -.065em;
}

.creation-copy h1 em {
  color: var(--lime);
  font-style: normal;
}

.creation-copy>p {
  max-width: 370px;
  color: #a9b3a6;
  font-size: 16px;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 17px;
  margin-top: 52px;
  color: #c7d0c3;
  font-size: 13px;
}

.feature-list b {
  margin-right: 14px;
  color: var(--lime);
  font: 11px "DM Mono", monospace;
}

.data-note {
  max-width: 355px;
  display: flex;
  gap: 10px;
  margin-top: 48px;
  color: #788477;
  font-size: 11px;
  line-height: 1.6;
}

.note-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.creation-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #1b241b, #151b16 56%);
  box-shadow: 0 30px 100px #0004;
}

.form-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resume-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0 15px;
  margin: 13px 0 3px;
  border-top: 1px solid #293329;
  border-bottom: 1px solid #293329;
}

.resume-bar label {
  display: grid;
  gap: 5px;
  color: #778474;
  font: 9px "DM Mono", monospace;
  letter-spacing: .08em;
}

.resume-bar select {
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid #334033;
  border-radius: 4px;
  color: #c6d0c1;
  background: #111711;
  font: 11px "DM Sans", sans-serif;
}

.resume-bar button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.creation-notice {
  margin: 12px 0;
  color: #f1aa93;
  font-size: 11px;
}

.step-count {
  color: #6d786c;
  font: 10px "DM Mono", monospace;
  letter-spacing: .1em;
}

.creation-card h2 {
  margin: 14px 0 24px;
  font: 600 28px "Space Grotesk", sans-serif;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 14px;
}

.field-grid label,
.panel-foot label,
.focus-select {
  display: grid;
  gap: 7px;
  color: #9ca99a;
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .06em;
}

.field-grid label.wide {
  grid-column: span 2;
}

.field-grid input,
.field-grid select,
.slot-select select,
.panel-foot select,
.focus-select select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #334033;
  border-radius: 5px;
  color: var(--text);
  background: #111711;
  font: 500 13px "DM Sans", sans-serif;
  letter-spacing: 0;
}

.field-grid input[type=number] {
  appearance: textfield;
}

.field-grid small {
  color: #748072;
  font: 11px "DM Sans", sans-serif;
  letter-spacing: 0;
}

.button-primary {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border: 0;
  border-radius: 5px;
  color: #151c10;
  background: var(--lime);
  font: 700 12px "Space Grotesk", sans-serif;
  transition: background .18s, transform .18s;
}

.button-primary:hover {
  transform: translateY(-1px);
  background: #c9ff77;
}

.button-primary:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.button-quiet:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.button-primary span {
  font: 17px "DM Sans", sans-serif;
}

.full-width {
  width: 100%;
  margin-top: 23px;
}

.form-footnote {
  margin: 12px 0 0;
  color: #717d70;
  text-align: center;
  font-size: 11px;
}

.game-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 25px 16px 18px;
  border-right: 1px solid var(--line);
  background: #131a14;
}

.sidebar .brand {
  padding: 0 8px 32px;
}

.side-label {
  padding: 0 12px 13px;
  color: #606d60;
  font: 10px "DM Mono", monospace;
  letter-spacing: .12em;
}

.sidebar nav {
  max-height: calc(100vh - 235px);
  overflow-y: auto;
  display: grid;
  gap: 4px;
  scrollbar-color: #344965 transparent;
  scrollbar-width: thin;
}

.nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #97a295;
  background: transparent;
  text-align: left;
  font-size: 13px;
}

.nav-item span {
  width: 18px;
  color: #768376;
  text-align: center;
  font-size: 18px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: #222c21;
}

.nav-item.active span {
  color: var(--lime);
}

.sidebar-bottom {
  margin-top: auto;
}

.club-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 7px 17px;
  margin-bottom: 6px;
  border-top: 1px solid var(--line);
}

.club-crest,
.table-crest {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 36px;
  border: 0;
  color: var(--lime);
  background: transparent;
}

.club-mini b {
  display: block;
  max-width: 145px;
  overflow: hidden;
  color: #e6ece3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.club-mini small {
  display: block;
  margin-top: 4px;
  color: #758172;
  font-size: 10px;
}

.workspace {
  min-width: 0;
}

.topbar {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: #131a14;
}

.top-date {
  margin-top: 5px;
  font: 600 13px "Space Grotesk", sans-serif;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.slot-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #738071;
  font: 10px "DM Mono", monospace;
  letter-spacing: .08em;
}

.slot-select select {
  width: auto;
  min-height: 34px;
  padding: 6px 9px;
}

.button-quiet {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #344034;
  border-radius: 5px;
  color: #c4cec0;
  background: transparent;
  font-size: 11px;
}

.button-quiet:hover {
  border-color: #61735c;
  color: var(--lime);
}

.content {
  max-width: 1500px;
  margin: auto;
  padding: 34px 4vw 55px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 7px 0 5px;
  font: 600 clamp(28px, 3vw, 38px) "Space Grotesk", sans-serif;
  letter-spacing: -.045em;
}

.page-heading p {
  margin: 0;
  color: #8b978a;
  font-size: 13px;
}

.page-heading>.button-primary {
  min-width: 180px;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.fixture-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-league-picker {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.table-league-picker select {
  min-width: 220px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
}

.toast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin: 0 0 20px;
  border: 1px solid #3b5030;
  border-radius: 5px;
  color: #d1e3c6;
  background: #202d1b;
  font-size: 12px;
}

.toast button {
  border: 0;
  color: #b8c8ae;
  background: transparent;
  font-size: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 15px;
}

.stat-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.stat-card {
  min-height: 154px;
  padding: 17px 19px;
}

.card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #869184;
  font: 10px "DM Mono", monospace;
  letter-spacing: .08em;
}

.status-pill,
.trend,
.live-tag {
  color: var(--lime);
  font: 9px "DM Mono", monospace;
  letter-spacing: .06em;
}

.status-pill {
  padding: 5px 7px;
  border-radius: 3px;
  background: #29371f;
}

.player-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 16px 0 13px;
}

.player-title h2 {
  margin: 0;
  font: 600 18px "Space Grotesk", sans-serif;
}

.player-title p {
  margin: 5px 0 0;
  color: #899587;
  font-size: 11px;
}

.rating-badge {
  width: 57px;
  height: 57px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #7c9c4a;
  border-radius: 7px;
  color: var(--lime);
  font: 700 22px "Space Grotesk", sans-serif;
}

.rating-badge small {
  margin-top: -2px;
  font: 8px "DM Mono", monospace;
  letter-spacing: .08em;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #293329;
  color: #899587;
  font-size: 10px;
}

.big-number {
  margin: 17px 0 4px;
  font: 600 36px "Space Grotesk", sans-serif;
  letter-spacing: -.05em;
}

.big-number span {
  color: #6b786a;
  font-size: 20px;
}

.muted {
  color: #819080;
  font-size: 11px;
}

.trend {
  color: #768573;
}

.stat-triplet {
  display: flex;
  gap: 28px;
  margin: 18px 0 10px;
}

.stat-triplet b {
  display: block;
  font: 600 21px "Space Grotesk", sans-serif;
}

.stat-triplet small {
  display: block;
  margin-top: 2px;
  color: #7f8a7e;
  font: 9px "DM Mono", monospace;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-bottom: 15px;
}

.panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  font: 600 16px "Space Grotesk", sans-serif;
}

.panel-heading h2 span {
  color: #82917e;
  font-size: 13px;
}

.live-tag {
  padding: 6px 8px;
  border-radius: 3px;
  background: #27341f;
  white-space: nowrap;
}

.fixture-preview {
  min-height: 113px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 18px 0;
}

.fixture-side {
  width: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #dce5d8;
  text-align: center;
  font-size: 11px;
}

.fixture-side .club-crest {
  width: 40px;
  height: 40px;
}

.vs {
  color: #6f7b6c;
  font: 10px "DM Mono", monospace;
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid #293329;
}

.dashboard-balances {
  justify-content: start;
}

.fan-approval {
  margin: 0 0 15px;
}

.fan-meter {
  height: 9px;
  overflow: hidden;
  margin: 14px 0;
  border-radius: 8px;
  background: #402c2b;
}

.fan-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e27669, #c9b34c 55%, var(--lime));
  transition: width .2s ease;
}

.fan-reactions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fan-reactions>div {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111b18;
}

.fan-reactions small {
  color: #788575;
  font: 9px "DM Mono", monospace;
}

.fan-reactions b {
  color: #cbd6c6;
  font: 600 11px "DM Mono", monospace;
}

.fan-reactions span {
  color: #98a396;
  font-size: 10px;
  line-height: 1.4;
}

.fan-reactions .positive,
.positive {
  color: var(--lime) !important;
}

.fan-reactions .negative,
.negative {
  color: #e27669 !important;
}

.panel-foot label {
  grid-template-columns: auto 125px;
  align-items: center;
}

.panel-foot select {
  min-height: 31px;
  padding: 5px 7px;
}

.inbox-count {
  color: #71806d;
  font: 11px "DM Mono", monospace;
}

.news-list {
  min-height: 113px;
  padding: 9px 0;
}

.news-item {
  display: flex;
  gap: 9px;
  padding: 7px 0;
  color: #aeb8ac;
  font-size: 11px;
  line-height: 1.4;
}

.news-indicator {
  flex: 0 0 5px;
  height: 5px;
  margin-top: 4px;
  border-radius: 50%;
  background: #546150;
}

.news-indicator.is-new {
  background: var(--lime);
  box-shadow: 0 0 8px #b8f35a88;
}

.points-pill {
  padding: 6px 9px;
  border: 1px solid #465c36;
  border-radius: 4px;
  color: var(--lime);
  background: #202a1a;
  font: 10px "DM Mono", monospace;
}

.points-pill.large-points {
  padding: 10px 13px;
}

.match-report {
  margin-top: 15px;
}

.objective-result {
  margin: 6px 0 0;
  font: 9px "DM Mono", monospace;
  letter-spacing: .07em;
}

.objective-met {
  color: var(--lime);
}

.objective-missed {
  color: #d48c79;
}

.small-rating {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 0;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.performance-grid>div {
  display: grid;
  gap: 4px;
  text-align: center;
}

.performance-grid b {
  font: 600 18px "Space Grotesk", sans-serif;
}

.performance-grid small {
  color: #788575;
  font: 9px "DM Mono", monospace;
}

.report-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.report-bottom p {
  color: #b4c1af;
  font-size: 12px;
}

.teammate-ratings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  padding-top: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.teammate-ratings>.eyebrow,
.teammate-ratings>.muted {
  grid-column: 1 / -1;
}

.teammate-ratings>.eyebrow {
  margin-bottom: 5px;
}

.teammate-rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid #202d40;
}

.teammate-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd8e8;
  font-size: 11px;
}

.teammate-name small,
.scorer-position {
  color: var(--muted);
  font: 8px "DM Mono", monospace;
}

.teammate-rating-row b,
.scorer-goals {
  color: var(--lime);
  font: 700 12px "DM Mono", monospace;
}

.match-events {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  justify-content: end;
}

.simulation-events {
  max-width: 760px;
  margin: 24px auto 0;
}

.simulation-events>.eyebrow {
  display: block;
  padding-bottom: 8px;
}

.simulation-events .match-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.timeline-event {
  display: grid;
  grid-template-columns: 30px 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 7px;
  padding: 6px 8px;
  border-radius: 4px;
  border-left: 3px solid transparent;
  background: #202920;
  font-size: 10px;
}

.timeline-minute {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--lime);
  font: 10px "DM Mono", monospace;
}

.timeline-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2c372a;
  font-size: 12px;
  line-height: 1;
}

.timeline-event>b {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-event small {
  grid-column: 3;
  grid-row: 2;
  color: #788675;
  font: 8px "DM Mono", monospace;
}

/* Event accent colours so goals, cards, and other moments read at a glance. */
.timeline-event.event-goal,
.timeline-event.event-penaltyGoal {
  border-left-color: #7ac74f;
}

.timeline-event.event-goal .timeline-icon,
.timeline-event.event-penaltyGoal .timeline-icon {
  background: #2f4a24;
}

.timeline-event.event-ownGoal {
  border-left-color: #e0846f;
}

.timeline-event.event-ownGoal .timeline-icon {
  background: #4a2d24;
}

.timeline-event.event-yellow {
  border-left-color: #e6c34a;
}

.timeline-event.event-yellow .timeline-icon {
  background: #4a4324;
}

.timeline-event.event-red {
  border-left-color: #e05b4a;
}

.timeline-event.event-red .timeline-icon {
  background: #4a2622;
}

.timeline-event.event-injury {
  border-left-color: #e0846f;
}

.timeline-event.event-save .timeline-icon,
.timeline-event.event-block .timeline-icon {
  background: #263a4a;
}

.timeline-event.event-situation {
  border-left-color: #31567e;
}

.timeline-event.event-entry,
.timeline-event.event-sub {
  border-left-color: #f2ce66;
}

.timeline-event.event-entry .timeline-icon,
.timeline-event.event-sub .timeline-icon {
  background: #4a4324;
}

.key-moments {
  display: grid;
  gap: 8px;
  padding: 15px 0 5px;
}

.key-moment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid #344132;
  border-radius: 5px;
  background: #1b241b;
}

.moment-copy {
  display: grid;
  gap: 5px;
}

.moment-copy span,
.moment-outcome {
  color: #8b9887;
  font: 8px "DM Mono", monospace;
  letter-spacing: .07em;
}

.moment-copy b {
  color: #e0e8dc;
  font-size: 11px;
}

.moment-actions {
  display: flex;
  gap: 6px;
}

.moment-actions .button-quiet {
  min-height: 29px;
  font-size: 10px;
}

.moment-outcome.success {
  color: var(--lime);
}

.moment-outcome.failure {
  color: #e29a8f;
}

.empty-report {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 20px;
  border: 1px dashed #334033;
  border-radius: 6px;
}

.empty-report p {
  margin: 0;
  color: #8b978a;
  font-size: 11px;
}

.page-bottom {
  margin-top: 18px;
  color: #596657;
  font: 9px "DM Mono", monospace;
  letter-spacing: .08em;
}

.page-bottom span {
  padding: 0 8px;
  color: #86947f;
}

.table-panel {
  padding: 7px 15px 12px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 750px;
  border-collapse: collapse;
}

th {
  height: 39px;
  color: #778474;
  text-align: right;
  font: 9px "DM Mono", monospace;
  letter-spacing: .07em;
}

th:first-child {
  text-align: left;
}

td {
  height: 43px;
  border-top: 1px solid #283128;
  color: #a7b0a4;
  text-align: right;
  font: 11px "DM Mono", monospace;
}

td:first-child {
  text-align: left;
}

.scorer-panel {
  margin-bottom: 14px;
}

.scorer-panel table {
  min-width: 540px;
}

.scorer-panel .team-cell {
  gap: 10px;
}

/* Per-table column layout. Every table declares its own widths and alignment so
   headers line up with their cells regardless of how many stat columns exist. */

/* League standings: POS | CLUB | PL W D L GF GA GD PTS | FORM */
.league-standings-table th:nth-child(1),
.league-standings-table td:nth-child(1) {
  width: 46px;
  text-align: left;
}

.league-standings-table th:nth-child(2),
.league-standings-table td:nth-child(2) {
  width: 30%;
  text-align: left;
}

.league-standings-table th:nth-child(3),
.league-standings-table td:nth-child(3),
.league-standings-table th:nth-child(4),
.league-standings-table td:nth-child(4),
.league-standings-table th:nth-child(5),
.league-standings-table td:nth-child(5),
.league-standings-table th:nth-child(6),
.league-standings-table td:nth-child(6) {
  width: 40px;
  text-align: center;
}

.league-standings-table th:nth-child(7),
.league-standings-table td:nth-child(7),
.league-standings-table th:nth-child(8),
.league-standings-table td:nth-child(8),
.league-standings-table th:nth-child(9),
.league-standings-table td:nth-child(9),
.league-standings-table th:nth-child(10),
.league-standings-table td:nth-child(10) {
  width: 44px;
  text-align: right;
}

.league-standings-table th:nth-child(11),
.league-standings-table td:nth-child(11) {
  width: 118px;
  text-align: right;
}

/* League stats leaders: # | PLAYER | CLUB | APP | GOALS | AVG RTG */
.league-performer-table th:nth-child(1),
.league-performer-table td:nth-child(1) {
  width: 42px;
  text-align: left;
}

.league-performer-table th:nth-child(2),
.league-performer-table td:nth-child(2) {
  width: 32%;
  text-align: left;
}

.league-performer-table th:nth-child(3),
.league-performer-table td:nth-child(3) {
  width: 34%;
  text-align: left;
}

.league-performer-table th:nth-child(4),
.league-performer-table td:nth-child(4),
.league-performer-table th:nth-child(5),
.league-performer-table td:nth-child(5),
.league-performer-table th:nth-child(6),
.league-performer-table td:nth-child(6) {
  text-align: right;
}

/* Top performers: # | PLAYER | POS | CLUB | APP | GOALS | G/APP */
.performer-table th:nth-child(1),
.performer-table td:nth-child(1) {
  width: 42px;
  text-align: left;
}

.performer-table th:nth-child(2),
.performer-table td:nth-child(2) {
  width: 24%;
  text-align: left;
}

.performer-table th:nth-child(3),
.performer-table td:nth-child(3) {
  width: 58px;
  text-align: center;
}

.performer-table th:nth-child(4),
.performer-table td:nth-child(4) {
  width: 25%;
  text-align: left;
}

.performer-table th:nth-child(n+5),
.performer-table td:nth-child(n+5) {
  text-align: right;
}

/* Award race: # | PLAYER | CLUB | APP | G | A | AVG RTG | RACE PTS */
.history-table {
  min-width: 860px;
}

.history-table th:nth-child(1),
.history-table td:nth-child(1) {
  width: 90px;
  text-align: left;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
  width: 24%;
  text-align: left;
}

.history-table th:nth-child(3),
.history-table td:nth-child(3) {
  width: 24%;
  text-align: left;
}

.history-table th:nth-child(4),
.history-table td:nth-child(4) {
  text-align: left;
}

.history-season {
  color: var(--muted);
  font: 500 11px "DM Mono", monospace;
}

.history-winner {
  color: var(--text);
  font-weight: 600;
  white-space: normal;
}

/* Agent tab: representative and transfer radar cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.transfer-list {
  display: grid;
  gap: 10px;
  padding: 18px 0;
}

.transfer-agent,
.transfer-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #121d2c, #0e1622);
  transition: border-color .15s ease, transform .15s ease;
}

.transfer-agent:hover,
.transfer-offer:hover {
  border-color: #2e5f92;
  transform: translateY(-1px);
}

.transfer-agent>div:first-child,
.transfer-offer>div:first-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.transfer-agent b,
.transfer-offer b {
  color: var(--text);
  font-size: 13px;
}

.transfer-agent small,
.transfer-offer small {
  color: var(--muted);
  font-size: 11px;
}

.agent-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.agent-meta>span {
  padding: 4px 9px;
  border: 1px solid #2b3d56;
  border-radius: 999px;
  color: #9fc4e8;
  background: #0d1a2b;
  font: 500 10px "DM Mono", monospace;
  white-space: nowrap;
}

.empty-report {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.empty-report p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.simulation-embed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.simulation-embed .button-primary {
  flex-shrink: 0;
}

.scorer-panel table.awards-race-table {
  min-width: 1000px;
  table-layout: auto;
}

.awards-race-table th,
.awards-race-table td {
  padding: 6px 9px;
  white-space: nowrap;
}

.awards-race-table th:nth-child(1),
.awards-race-table td:nth-child(1) {
  width: 5%;
  text-align: left;
}

.awards-race-table th:nth-child(2),
.awards-race-table td:nth-child(2) {
  min-width: 170px;
  text-align: left;
}

.awards-race-table th:nth-child(3),
.awards-race-table td:nth-child(3) {
  min-width: 240px;
  text-align: left;
  white-space: normal;
}

.awards-race-table th:nth-child(4),
.awards-race-table td:nth-child(4) {
  width: 7%;
  text-align: right;
}

.awards-race-table th:nth-child(5),
.awards-race-table td:nth-child(5),
.awards-race-table th:nth-child(6),
.awards-race-table td:nth-child(6) {
  width: 7%;
  text-align: right;
}

.awards-race-table th:nth-child(7),
.awards-race-table td:nth-child(7) {
  width: 17%;
  text-align: right;
}

.awards-race-table th:nth-child(8),
.awards-race-table td:nth-child(8) {
  width: 18%;
  text-align: right;
  color: var(--lime);
  font-weight: 600;
}

.award-race-panel {
  margin-bottom: 15px;
}

.award-race-description {
  margin: 10px 0 5px;
  font-size: 11px;
  line-height: 1.5;
}

/* Teammate stats: # | PLAYER | POS | APP | G | A | AVG RTG | LAST RTG */
.teammate-table th:nth-child(1),
.teammate-table td:nth-child(1) {
  width: 42px;
  text-align: left;
}

.teammate-table th:nth-child(2),
.teammate-table td:nth-child(2) {
  width: 32%;
  text-align: left;
}

.teammate-table th:nth-child(3),
.teammate-table td:nth-child(3) {
  width: 58px;
  text-align: center;
}

.teammate-table th:nth-child(n+4),
.teammate-table td:nth-child(n+4) {
  text-align: right;
}

/* Finances: WEEK | TRANSACTION | AMOUNT | BALANCE */
.finance-table th:nth-child(1),
.finance-table td:nth-child(1) {
  width: 70px;
  text-align: left;
}

.finance-table th:nth-child(2),
.finance-table td:nth-child(2) {
  width: auto;
  text-align: left;
}

.finance-table th:nth-child(3),
.finance-table td:nth-child(3),
.finance-table th:nth-child(4),
.finance-table td:nth-child(4) {
  width: 140px;
  text-align: right;
}

/* World squad comparison: # | TEAM | PLAYERS | AVG OVR | TOP OVR */
.world-club-table th:nth-child(1),
.world-club-table td:nth-child(1) {
  width: 46px;
  text-align: left;
}

.world-club-table th:nth-child(2),
.world-club-table td:nth-child(2) {
  width: 46%;
  text-align: left;
}

.world-club-table th:nth-child(n+3),
.world-club-table td:nth-child(n+3) {
  text-align: right;
}

/* Stats: # | PLAYER | POS | CLUB | APP | GLS | AST | YC | RC | AVG RTG */
.stats-table {
  min-width: 880px;
}

.stats-table th,
.stats-table td {
  padding: 0 9px;
}

.stats-table th:nth-child(1),
.stats-table td:nth-child(1) {
  width: 42px;
  text-align: left;
}

.stats-table th:nth-child(2),
.stats-table td:nth-child(2) {
  width: 22%;
  text-align: left;
}

.stats-table th:nth-child(3),
.stats-table td:nth-child(3) {
  width: 54px;
  text-align: center;
}

.stats-table th:nth-child(4),
.stats-table td:nth-child(4) {
  width: 22%;
  text-align: left;
}

.stats-table th:nth-child(n+5),
.stats-table td:nth-child(n+5) {
  text-align: right;
}

.stats-table td.stat-card-cell {
  text-align: center;
}

.card-chip {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 22px;
  padding: 0 5px;
  border-radius: 3px;
  color: #17130a;
  font: 700 10px "DM Mono", monospace;
}

.card-chip.yellow {
  background: #e6c34a;
}

.card-chip.red {
  background: #e05b4a;
  color: #fff;
}

.scorer-empty {
  text-align: center !important;
  color: var(--muted);
  font: 12px "DM Sans", sans-serif;
}

.tournament-panel {
  margin-bottom: 14px;
}

.tournament-panel>.button-primary {
  width: 100%;
  margin: 16px 0 4px;
}

.tournament-champion {
  margin: 16px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.tournament-champion b {
  color: var(--lime);
}

.tournament-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tournament-group {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111b18;
}

.tournament-group h3,
.tournament-results h3 {
  margin: 0 0 7px;
  color: #cbd6c6;
  font: 600 11px "Space Grotesk", sans-serif;
}

.tournament-group table {
  min-width: 0;
}

.tournament-group th {
  height: 26px;
  font-size: 8px;
}

.tournament-group td {
  height: 29px;
  font-size: 9px;
}

.tournament-group th:first-child,
.tournament-group td:first-child {
  width: auto;
  text-align: left;
}

.tournament-group th:not(:first-child),
.tournament-group td:not(:first-child) {
  text-align: right;
}

.legends-panel {
  margin-bottom: 15px;
}

.legends-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.legend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #6a5a2f;
  border-radius: 6px;
  background: linear-gradient(135deg, #2a2614, #16211a);
}

.legend-card>div {
  display: grid;
  gap: 4px;
}

.legend-card b {
  color: #f4e2a0;
  font: 600 13px "Space Grotesk", sans-serif;
}

.legend-card small {
  color: #b5c8b8;
  font: 9px "DM Mono", monospace;
}

.legend-rating {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #17130a;
  background: #f2ce66;
  font: 700 18px "DM Mono", monospace;
}

.legend-rating small {
  color: #4a4324;
  font: 7px "DM Mono", monospace;
}

.tournament-bracket {
  margin-top: 17px;
}

.tournament-bracket>h3 {
  margin: 0 0 4px;
  color: #cbd6c6;
  font: 600 11px "Space Grotesk", sans-serif;
}

.bracket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.bracket-round {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111b18;
}

.bracket-round.current {
  border-color: #31567e;
  background: #10243a;
}

.bracket-round h4 {
  margin: 0 0 7px;
  color: #cbd6c6;
  font: 600 10px "Space Grotesk", sans-serif;
  letter-spacing: .04em;
}

.bracket-tie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
  border-top: 1px solid #283128;
  font-size: 10px;
}

.bracket-tie:first-of-type {
  border-top: 0;
}

.bracket-tie b {
  color: var(--lime);
  text-align: center;
  font: 10px "DM Mono", monospace;
}

.bracket-side {
  overflow: hidden;
  color: #a7b0a4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-side.right {
  text-align: right;
}

.bracket-side.winner {
  color: #e5f2e8;
  font-weight: 600;
}

.bracket-side.user {
  color: var(--lime);
}

.bracket-tie.user-tie {
  background: #1a2a1a;
}

.tournament-results {
  margin-top: 17px;
}

.tournament-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-top: 1px solid #283128;
  color: #a7b0a4;
  font-size: 10px;
}

.tournament-result span:last-child {
  text-align: right;
}

.tournament-result b {
  color: var(--lime);
  text-align: center;
  font: 10px "DM Mono", monospace;
}

.skill-upgrades {
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.skill-upgrades>p {
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 11px;
}

.skill-upgrade-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #202d40;
}

.skill-upgrade-row>div {
  display: grid;
  gap: 4px;
}

.skill-upgrade-row b {
  color: var(--text);
  font-size: 11px;
}

.skill-upgrade-row small {
  color: var(--muted);
  font: 9px "DM Mono", monospace;
}

.user-row {
  background: #202b1c;
}

.user-row td {
  color: #e3eddc;
}

.position-cell {
  width: 40px;
  color: #788577;
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  font: 600 11px "DM Sans", sans-serif;
}

.table-crest {
  flex-basis: 25px;
  width: 25px;
  height: 27px;
}

.you-label {
  padding: 3px 5px;
  border-radius: 2px;
  color: var(--lime);
  background: #303f27;
  font: 8px "DM Mono", monospace;
}

.points-cell {
  color: var(--text);
  font-weight: 700;
}

.positive {
  color: #98ca68;
}

.form-dots {
  display: flex;
  justify-content: end;
  gap: 3px;
}

.form-dots span {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 8px "DM Mono", monospace;
}

.form-w {
  color: #c5f78b;
  background: #344e26;
}

.form-d {
  color: #d8c786;
  background: #4b4325;
}

.form-l {
  color: #eda199;
  background: #4b2a27;
}

.form-– {
  color: #899485;
  background: #303830;
}

.fixture-list {
  padding: 2px 17px;
}

.fixture-entry {
  border-bottom: 1px solid #293329;
}

.fixture-entry:last-child {
  border-bottom: 0;
}

.fixture-row {
  min-height: 55px;
  display: grid;
  grid-template-columns: 36px 100px minmax(100px, 1fr) 74px minmax(100px, 1fr) minmax(145px, 1.1fr);
  align-items: center;
  gap: 9px;
  color: #859082;
  font-size: 11px;
}

.fixture-row.played {
  color: #dce4d8;
}

.fixture-row.next {
  background: #1a2a1a;
  box-shadow: inset 3px 0 0 var(--lime);
}

.next-tag {
  display: inline-block;
  padding: 1px 5px;
  margin-right: 4px;
  border-radius: 2px;
  color: #0c1a12;
  background: var(--lime);
  font: 8px "DM Mono", monospace;
  letter-spacing: .06em;
}

.fixture-round,
.fixture-date,
.home-away {
  color: #6e7b6c;
  font: 9px "DM Mono", monospace;
}

.fixture-date {
  font-size: 10px;
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b9c4b6;
}

.fixture-crest {
  display: block;
  flex: 0 0 23px;
  width: 23px;
  height: 24px;
  color: var(--lime);
}

.home-name {
  justify-content: end;
  text-align: right;
}

.fixture-score {
  color: #d9e4d4;
  text-align: center;
  font: 600 12px "DM Mono", monospace;
}

.home-away {
  text-align: right;
  white-space: normal;
}

.fixture-stats-toggle {
  display: block;
  margin: 4px 0 4px auto;
  padding: 2px 6px;
  border: 1px solid #43533d;
  border-radius: 3px;
  color: var(--lime);
  background: #1b261a;
  font: 9px "DM Mono", monospace;
  cursor: pointer;
}

.fixture-stats-toggle:hover {
  border-color: var(--lime);
}

.fixture-stats-panel {
  padding: 12px 18px 16px;
  background: #141c15;
}

.fixture-stats-panel h3 {
  margin: 0 0 8px;
  color: var(--lime);
  font: 10px "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fixture-stats-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.fixture-stats-panel table {
  width: 100%;
  border-collapse: collapse;
  color: #dce4d8;
  font-size: 11px;
}

.fixture-stats-panel th,
.fixture-stats-panel td {
  padding: 5px 8px;
  border-bottom: 1px solid #293329;
}

.fixture-stats-panel thead th {
  color: #93a08e;
  font: 9px "DM Mono", monospace;
  text-transform: uppercase;
}

.fixture-stats-panel th:first-child,
.fixture-stats-panel td:first-child {
  text-align: left;
}

.fixture-stats-panel th:nth-child(2) {
  width: 35%;
  color: #778474;
  text-align: center;
  font-weight: 400;
}

.fixture-stats-panel td:last-child,
.fixture-stats-panel thead th:last-child {
  text-align: right;
}

.performer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manager-panel {
  margin: 14px 0;
}

.manager-panel>.muted {
  margin: 10px 0 4px;
}

.manager-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.manager-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.manager-offer>div {
  display: grid;
  gap: 4px;
}

.manager-offer b {
  color: var(--text);
  font-size: 11px;
}

.manager-offer span {
  color: var(--muted);
  font-size: 10px;
}

.negative-amount {
  color: #ed9a8f;
}

.player-hub-heading {
  margin-bottom: 14px;
}

.player-hub-menu {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.player-hub-link {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.player-hub-link:hover,
.player-hub-link:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

.player-hub-section {
  scroll-margin-top: 64px;
  margin-bottom: 34px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font: 600 22px "Space Grotesk", sans-serif;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.player-condition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.player-condition-grid .stat-card {
  min-height: 118px;
}

.player-condition-grid .big-number span,
.player-stat-grid small {
  color: var(--muted);
  font: 10px "DM Mono", monospace;
}

.player-stat-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.player-stat-panels>.panel {
  padding: 20px;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 10px;
  padding: 18px 0 4px;
}

.player-stat-grid>div {
  display: grid;
  gap: 4px;
}

.player-stat-grid b {
  font: 600 21px "DM Mono", monospace;
}

.player-stat-grid small {
  font-size: 9px;
}

.player-history-panel {
  margin-top: 14px;
  overflow-x: auto;
}

.player-history-panel .history-table {
  min-width: 780px;
}

.player-hub-section .attributes-panel {
  padding: 20px;
}

.profile-panel,
.attributes-panel {
  min-height: 290px;
}

.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  padding: 24px 0;
}

.profile-details>div {
  display: grid;
  gap: 5px;
}

.profile-details small {
  color: #768273;
  font: 9px "DM Mono", monospace;
}

.profile-details b {
  color: #d9e2d5;
  font-size: 12px;
}

.profile-details .position-select {
  display: grid;
  gap: 6px;
}

.position-select select,
.position-select input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #2b3d56;
  border-radius: 4px;
  color: var(--text);
  background: #0a111b;
  font: 12px "DM Sans", sans-serif;
}

.profile-details .position-select small {
  color: var(--muted);
  font: 9px "DM Sans", sans-serif;
}

.trust-meter {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.trust-meter>div:first-child {
  display: flex;
  justify-content: space-between;
  color: #98a495;
  font-size: 11px;
}

.trust-meter b {
  color: var(--lime);
  font: 11px "DM Mono", monospace;
}

.meter {
  height: 5px;
  margin-top: 9px;
  border-radius: 5px;
  background: #293329;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.attribute-list {
  display: grid;
  gap: 17px;
  padding: 25px 0;
}

.attribute-row {
  display: grid;
  grid-template-columns: 88px 1fr 28px;
  align-items: center;
  gap: 10px;
}

.attribute-row>span {
  color: #8d9a8a;
  font: 9px "DM Mono", monospace;
}

.attribute-row>b {
  color: #dce5d7;
  text-align: right;
  font: 600 12px "DM Mono", monospace;
}

.attribute-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #2a352a;
}

.attribute-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #779b40, var(--lime));
}

.lower-stats {
  margin-top: 15px;
}

.lower-stats .stat-card {
  min-height: 107px;
}

.lower-stats .big-number {
  margin-top: 12px;
  font-size: 29px;
}

.training-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
}

.training-session,
.training-log {
  min-height: 330px;
  padding: 24px;
}

.training-session h2 {
  margin: 9px 0;
  font: 600 22px "Space Grotesk", sans-serif;
}

.training-session>p {
  max-width: 510px;
  margin: 0 0 24px;
  color: #8b9789;
  font-size: 12px;
  line-height: 1.6;
}

.focus-select {
  max-width: 390px;
  margin-bottom: 19px;
}

.focus-select select {
  min-height: 42px;
}

.training-progress {
  display: flex;
  gap: 30px;
  padding: 17px 0;
  margin-bottom: 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.training-progress>div {
  display: grid;
  gap: 5px;
}

.training-progress span {
  color: #7b8878;
  font-size: 10px;
}

.training-progress b {
  color: #e7eee2;
  font: 600 17px "Space Grotesk", sans-serif;
}

.training-progress .hidden-potential {
  color: var(--lime);
}

.hidden-potential small {
  font: 8px "DM Mono", monospace;
}

.training-tip {
  margin-top: 15px;
  color: #849080;
  font-size: 10px;
}

.training-tip span {
  margin-right: 6px;
  color: var(--lime);
}

.developer-panel {
  grid-column: 1 / -1;
}

.developer-panel>.muted {
  margin: 10px 0 4px;
}

.developer-password-form {
  display: grid;
  justify-items: start;
  gap: 9px;
  max-width: 360px;
  margin-top: 14px;
  color: var(--muted);
  font: 9px "DM Mono", monospace;
}

.developer-password-form input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #2b3d56;
  border-radius: 4px;
  color: var(--text);
  background: #0a111b;
  font: 13px "DM Sans", sans-serif;
}

.developer-password-form>div {
  display: flex;
  gap: 8px;
}

.developer-attributes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.developer-attributes label {
  display: grid;
  grid-template-columns: 1fr 75px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font: 9px "DM Mono", monospace;
}

.developer-attributes input {
  width: 75px;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid #2b3d56;
  border-radius: 4px;
  color: var(--text);
  background: #0a111b;
  text-align: right;
  font: 12px "DM Mono", monospace;
}

.routine-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.routine-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #374532;
  border-radius: 4px;
  color: var(--lime);
  font: 9px "DM Mono", monospace;
}

.routine-row div {
  display: grid;
  gap: 4px;
}

.routine-row b {
  color: #d9e1d5;
  font-size: 11px;
}

.routine-row small {
  color: #7b8878;
  font-size: 10px;
}

.routine-state {
  margin-left: auto;
  color: #8cad68;
  font: 8px "DM Mono", monospace;
}

.season-finish {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px;
  margin-bottom: 16px;
  border: 1px solid #506735;
  border-radius: 7px;
  background: linear-gradient(110deg, #25341d, #172018);
}

.season-finish h2 {
  margin: 7px 0;
  font: 600 22px "Space Grotesk", sans-serif;
}

.season-finish p {
  margin: 0;
  color: #a5b39e;
  font-size: 12px;
}

.season-finish .button-primary {
  margin-top: 15px;
}

.award-show {
  margin-bottom: 15px;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.award-card {
  min-height: 125px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111a13;
}

.award-card h2 {
  margin: 12px 0 4px;
  color: var(--text);
  font: 600 17px "Space Grotesk", sans-serif;
}

.award-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.trophy-case {
  margin-top: 15px;
}

.trophy-case>.muted {
  margin: 5px 0;
}

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.trophy-card {
  position: relative;
  overflow: hidden;
}

.trophy-art {
  width: 58px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid color-mix(in srgb, var(--trophy-color) 45%, transparent);
  border-radius: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--trophy-color) 16%, #101722), #0b111b);
}

.trophy-art svg {
  width: 42px;
  height: 49px;
  overflow: visible;
}

.trophy-cup,
.trophy-handle,
.trophy-stem {
  fill: none;
  stroke: var(--trophy-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trophy-detail {
  fill: var(--trophy-color);
  stroke: none;
}

.trophy-ballon {
  --trophy-color: #f5c451;
}

.trophy-ballon .trophy-cup {
  fill: #f5c451;
}

.trophy-boot {
  --trophy-color: #74c8ff;
}

.trophy-boot .trophy-detail {
  transform: scale(.8) translate(8px, 7px);
}

.trophy-playmaker {
  --trophy-color: #9c8cff;
}

.trophy-glove {
  --trophy-color: #67d7b1;
}

.trophy-world {
  --trophy-color: #65baff;
}

.trophy-champion {
  --trophy-color: #f0a45c;
}

.trophy-rating {
  --trophy-color: #85d994;
}

.trophy-star {
  --trophy-color: #f4da75;
}

.trophy-card h2 {
  font-size: 15px;
}

.trophy-card .live-tag {
  display: inline-flex;
  margin-top: 3px;
}

.formation-panel,
.bench-panel {
  margin-bottom: 14px;
}

.formation-picker {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font: 8px "DM Mono", monospace;
  letter-spacing: .08em;
}

.formation-picker select {
  min-width: 112px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #344034;
  border-radius: 4px;
  color: var(--text);
  background: #101811;
  font: 11px "DM Mono", monospace;
}

.formation-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

/* Vertical pitch: attack at the top, keeper at the bottom, matching formation-4-3-3. */
.pitch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(90px, auto));
  gap: 6px;
  padding: 20px 14px;
  margin-top: 14px;
  border: 2px solid #2f6a4f;
  border-radius: 8px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, #105a28 0, #105a28 11%, #0f5425 11%, #0f5425 22%);
}

.pitch-markings {
  position: absolute;
  inset: 14px 12px;
  border: 1px solid #2f6a4f;
  border-radius: 4px;
  pointer-events: none;
}

.pitch-markings::before {
  content: "";
  position: absolute;
  left: 21%;
  right: 21%;
  bottom: 0;
  height: 32%;
  border: 1px solid #3f8854;
  border-bottom: 0;
}

.pitch-markings::after {
  content: "";
  position: absolute;
  left: 37%;
  right: 37%;
  bottom: 0;
  height: 14%;
  border: 1px solid #3f8854;
  border-bottom: 0;
}

.pitch-arc {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: calc(14px + 32%);
  width: 30%;
  height: 30%;
  border: 1px solid #3f8854;
  border-radius: 50%;
  clip-path: inset(0 0 50%);
  pointer-events: none;
  transform: translate(-50%, 50%);
}

/*
 * Each player is a circular jersey token with a 3D, embossed look: a radial highlight,
 * a strong drop shadow beneath, and a subtle top-lit border. The position badge sits at
 * the centre and the name reads below the disc.
 */
.pitch-slot {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
}

.pitch-slot.lineup-starter {
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.pitch-slot.lineup-starter:hover,
.pitch-slot.lineup-starter:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 3px;
}

.pitch-slot::before {
  content: "";
  width: 38px;
  height: 42px;
  background: linear-gradient(145deg, #ffffff55 0%, #ffffff08 48%, #00000030 100%), var(--shirt-color);
  clip-path: polygon(31% 0, 43% 10%, 57% 10%, 69% 0, 100% 17%, 84% 43%, 73% 37%, 73% 100%, 27% 100%, 27% 37%, 16% 43%, 0 17%);
  filter: drop-shadow(0 2px 2px #0008);
}

.pitch-slot.is-user::before {
  filter: drop-shadow(0 0 2px #ffeaa0) drop-shadow(0 2px 2px #0008);
}

.pitch-badge {
  color: #f3fff5;
  text-shadow: 0 1px 2px #000c;
  font: 700 10px "DM Mono", monospace;
  letter-spacing: .04em;
}

.pitch-slot.is-user .pitch-badge {
  color: #fff;
}

.pitch-incident {
  position: absolute;
  top: -3px;
  right: calc(50% - 28px);
  z-index: 2;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #0b111a;
  box-shadow: 0 1px 5px #000a;
  font-size: 13px;
  line-height: 1;
}

.pitch-compact .pitch-incident {
  top: -4px;
  right: calc(50% - 21px);
  width: 16px;
  height: 16px;
  font-size: 11px;
}

.pitch-name {
  max-width: 100%;
  overflow: hidden;
  color: #e5f2e8;
  font: 600 10px "DM Sans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000000aa;
}

.pitch-meta {
  color: #b5c8b8;
  font: 8px "DM Mono", monospace;
}

/* Both teams' shapes, always side by side and never wrapping. */
.match-formations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
  align-items: start;
}

.match-formation {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0d1620;
  min-width: 0;
}

.match-formation.is-user {
  border-color: #2f6a4f;
  box-shadow: 0 0 0 1px #2f6a4f inset;
}

.match-formation-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.match-formation-head>div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.match-formation-head b {
  overflow: hidden;
  color: var(--text);
  font: 600 11px "Space Grotesk", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-formation-head small {
  overflow: hidden;
  color: var(--muted);
  font: 7px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-formation-shape {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 4px;
  color: #0c1a12;
  background: var(--lime);
  font: 700 11px "DM Mono", monospace;
}

.pitch-compact {
  grid-template-rows: repeat(5, minmax(66px, auto));
  gap: 3px;
  padding: 12px 6px;
  margin-top: 0;
}

.pitch-compact .pitch-slot::before {
  width: 28px;
  height: 32px;
}

.pitch-compact .pitch-badge {
  font-size: 8px;
}

.pitch-compact .pitch-name {
  font-size: 8px;
}

.pitch-compact .pitch-meta {
  font-size: 7px;
}

.simulation-panel-embedded {
  margin-top: 15px;
}

.simulation-competition {
  padding-bottom: 12px;
  color: var(--muted);
  font: 9px "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bench-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
  margin-top: 10px;
}

.bench-player {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 4px 7px;
  align-items: center;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
}

.lineup-bench-player {
  width: 100%;
  color: var(--text);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: grab;
}

.bench-select-button {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.lineup-bench-player:hover,
.lineup-bench-player.is-selected {
  background: #ffffff0b;
  outline: 1px solid var(--lime);
  outline-offset: -1px;
}

.bench-select-button:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 2px;
}

.lineup-bench-player:active {
  cursor: grabbing;
}

.lineup-edit-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.bench-player>span {
  grid-row: span 2;
  color: var(--lime);
  font: 9px "DM Mono", monospace;
}

.bench-player b {
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bench-player small {
  color: var(--muted);
  font: 8px "DM Mono", monospace;
}

.performer-table {
  min-width: 650px;
}

.performer-table th,
.performer-table td {
  padding: 0 9px;
}

.performer-player {
  color: #d9e2d5;
  font: 600 11px "DM Sans", sans-serif;
}

.compact-heading {
  margin: 24px 0 12px;
}

.compact-heading h2 {
  margin: 0;
  font: 600 22px "Space Grotesk", sans-serif;
}

.world-filters {
  display: flex;
  gap: 14px;
  margin-bottom: 15px;
}

.world-filters label {
  display: grid;
  flex: 1;
  gap: 7px;
  color: var(--muted);
  font: 9px "DM Mono", monospace;
  letter-spacing: .08em;
}

.world-filters select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #2b3d56;
  border-radius: 5px;
  color: var(--text);
  background: #0a111b;
  font: 12px "DM Sans", sans-serif;
}

.world-roster-panel,
.world-league-panel {
  margin-bottom: 15px;
}

.world-roster-table {
  margin-top: 12px;
  min-width: 850px;
}

.world-roster-table th,
.world-roster-table td {
  padding: 0 10px;
}

.world-roster-table th:first-child,
.world-roster-table td:first-child {
  text-align: left;
}

.world-roster-table td:first-child {
  font: 600 12px "DM Sans", sans-serif;
}

.world-nationality {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 8px "DM Mono", monospace;
}

.world-rating {
  color: var(--lime);
  font-weight: 700;
}

.world-data-foot {
  padding: 8px 10px 0;
}

.simulation-panel {
  padding: clamp(18px, 4vw, 42px);
}

.simulation-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.simulation-team {
  color: var(--text);
  font: 600 clamp(14px, 2vw, 21px) "Space Grotesk", sans-serif;
}

.simulation-score {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--lime);
  font: 700 clamp(30px, 5vw, 48px) "Space Grotesk", sans-serif;
}

.simulation-score span {
  color: var(--muted);
  font-size: .7em;
}

.live-goal-commentary {
  display: grid;
  gap: 5px;
  justify-items: center;
  margin: 18px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101c2b;
  text-align: center;
}

.live-goal-commentary>span {
  color: var(--muted);
  font: 9px "DM Mono", monospace;
  letter-spacing: .1em;
}

.live-goal-commentary>b {
  color: var(--text);
  font: 600 clamp(16px, 2vw, 22px) "Space Grotesk", sans-serif;
}

.live-goal-commentary>small {
  color: var(--muted);
  font-size: 10px;
}

.live-goal-commentary.has-goal {
  border-color: #2474b8;
  background: linear-gradient(120deg, #10243a, #10251f);
}

.live-goal-commentary.has-goal>span {
  color: var(--lime);
}

.live-situation {
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.live-situation.has-situation {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #121d2b;
}

.live-situation.entry {
  border-color: #f2ce66;
  background: #2a2614;
  color: #f4e2a0;
  font-weight: 600;
}

.player-pitch-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0f1a28;
  color: var(--muted);
  font-size: 11px;
}

.player-pitch-status b {
  color: var(--text);
  font: 600 11px "DM Sans", sans-serif;
}

.player-pitch-status .player-pitch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #788675;
  box-shadow: 0 0 0 3px #78867522;
}

.player-pitch-status.on {
  border-color: #2f6a4f;
}

.player-pitch-status.on .player-pitch-dot {
  background: var(--lime);
  box-shadow: 0 0 0 3px #c5f78b33;
}

.player-pitch-status.bench {
  border-color: #6a5a2f;
}

.player-pitch-status.bench .player-pitch-dot {
  background: #e6c34a;
  box-shadow: 0 0 0 3px #e6c34a33;
}

.player-pitch-status.off {
  border-color: #6a332f;
}

.player-pitch-status.off .player-pitch-dot {
  background: #e05b4a;
  box-shadow: 0 0 0 3px #e05b4a33;
}

.simulation-event #poor-substitution {
  margin-top: 12px;
}

.simulation-clock {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 12px;
  align-items: center;
  margin: 30px 0 12px;
  color: var(--lime);
  font: 11px "DM Mono", monospace;
}

.simulation-clock>span:last-child {
  color: var(--muted);
  text-align: right;
}

.simulation-track {
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: #26364b;
}

.simulation-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2474b8, var(--lime));
  transition: width .35s ease;
}

.simulation-event {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.simulation-event h2 {
  margin: 9px 0;
  font: 600 clamp(19px, 3vw, 26px) "Space Grotesk", sans-serif;
}

.simulation-event p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.simulation-decisions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  max-width: 920px;
  margin: 18px auto 0;
  text-align: left;
}

.moment-choice {
  display: grid;
  gap: 7px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #101e30;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.moment-choice:hover {
  transform: translateY(-1px);
  border-color: #398acb;
  background: #152942;
}

.moment-choice>span {
  font-size: 11px;
  line-height: 1.45;
}

.moment-choice>small {
  color: var(--muted);
  font: 8px "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.simulation-running {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: var(--lime);
  font: 10px "DM Mono", monospace;
  letter-spacing: .08em;
}

.simulation-timeline {
  max-width: 620px;
  margin: 24px auto 0;
}

.simulation-timeline>.eyebrow {
  display: block;
  padding-bottom: 8px;
}

.simulation-timeline-row {
  display: grid;
  grid-template-columns: 45px 1fr 75px;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.simulation-timeline-row>b {
  color: var(--lime);
  font: 11px "DM Mono", monospace;
}

.simulation-timeline-row>small {
  text-align: right;
  font: 8px "DM Mono", monospace;
}

.simulation-timeline-row.current {
  border-radius: 4px;
  color: var(--text);
  background: #142a42;
}

.simulation-empty {
  display: grid;
  justify-items: start;
  gap: 9px;
}

.simulation-empty h2,
.simulation-empty p {
  margin: 0;
}

.simulation-empty .button-primary {
  margin-top: 10px;
}

.finish-mark {
  color: var(--lime);
  font: 600 38px "Space Grotesk", sans-serif;
}

.fatal-error {
  max-width: 540px;
  margin: 12vh auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fatal-error h1 {
  font: 600 24px "Space Grotesk", sans-serif;
}

.fatal-error p {
  color: #9daa98;
  font-size: 13px;
  line-height: 1.5;
}

.fatal-error code {
  color: var(--lime);
}

/* Black and blue theme surfaces for the palette values used throughout the UI. */
.creation-card {
  background: linear-gradient(145deg, #131e2d, #0d131e 56%);
}

.resume-bar {
  border-color: #253449;
}

.resume-bar select,
.field-grid input,
.field-grid select,
.slot-select select,
.panel-foot select,
.focus-select select {
  border-color: #2b3d56;
  background: #0a111b;
}

.button-primary {
  color: #06111f;
  background: #42a5ff;
}

.button-primary:hover {
  background: #70bbff;
}

.sidebar,
.topbar {
  background: #0b111b;
}

.nav-item:hover,
.nav-item.active {
  background: #162439;
}

.club-crest,
.table-crest {
  border-color: #31567e;
  color: #70bbff;
  background: transparent;
}

.toast {
  border-color: #28527b;
  color: #d5eaff;
  background: #10243a;
}

.status-pill {
  background: #142c45;
}

.rating-badge {
  border-color: #347fbd;
}

.live-tag {
  background: #122a43;
}

.points-pill {
  border-color: #31567e;
  background: #10243a;
}

.timeline-event {
  background: #141e2c;
}

.key-moment {
  border-color: #2b3d56;
  background: #111b29;
}

.empty-report {
  border-color: #2b3d56;
}

.user-row {
  background: #12243a;
}

.you-label {
  background: #173755;
}

.attribute-bar {
  background: #26364b;
}

.attribute-bar i {
  background: linear-gradient(90deg, #2474b8, var(--lime));
}

.routine-icon {
  border-color: #31506f;
}

.season-finish {
  border-color: #31567e;
  background: linear-gradient(110deg, #142b43, #0d1724);
}

@media (max-width: 920px) {
  .creation-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
  }

  .creation-copy {
    position: static;
    padding: 0;
  }

  .creation-copy h1 {
    font-size: 52px;
  }

  .feature-list,
  .data-note {
    display: none;
  }

  .game-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .sidebar {
    align-items: center;
    padding: 20px 7px;
  }

  .sidebar .brand {
    padding: 0 0 30px;
    font-size: 0;
  }

  .sidebar .brand-ball {
    font-size: 14px;
  }

  .side-label,
  .nav-item:not(.active) {
    font-size: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-item span {
    font-size: 18px;
  }

  .club-mini {
    justify-content: center;
    padding: 12px 0;
  }

  .club-mini>div:last-child {
    display: none;
  }

  .sidebar-bottom .nav-item {
    height: 42px;
  }

  .dashboard-grid,
  .profile-grid,
  .player-stat-panels,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .developer-attributes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performer-grid {
    grid-template-columns: 1fr;
  }

  .tournament-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .award-grid {
    grid-template-columns: 1fr;
  }

  .bench-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-card {
    grid-column: span 2;
  }

  .topbar {
    padding: 0 3vw;
  }

  .content {
    padding: 28px 3vw 42px;
  }
}

@media (max-width: 560px) {
  .creation-shell {
    padding: 17px 16px 34px;
  }

  .creation-card {
    padding: 20px 16px;
  }

  .field-grid {
    gap: 11px 9px;
  }

  .game-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    z-index: 2;
    top: 0;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 9px 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar .brand {
    padding: 0;
    font-size: 0;
  }

  .sidebar nav {
    min-width: 0;
    max-height: none;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar nav .nav-item {
    flex: 0 0 35px;
    width: 35px;
    min-height: 39px;
  }

  .side-label,
  .sidebar-bottom {
    display: none;
  }

  .topbar {
    min-height: 64px;
    padding: 0 15px;
  }

  .slot-select {
    font-size: 0;
  }

  .top-actions {
    gap: 5px;
  }

  .button-quiet {
    padding: 0 8px;
  }

  .content {
    padding: 24px 14px 40px;
  }

  .player-hub-menu {
    top: 64px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .player-hub-link {
    flex: 0 0 auto;
  }

  .page-heading {
    align-items: start;
    flex-direction: column;
  }

  .world-filters {
    flex-direction: column;
  }

  .page-heading>.button-primary {
    width: 100%;
  }

  .overview-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .overview-actions>button {
    width: 100%;
  }

  .fixture-heading-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .fixture-heading-actions>button {
    width: 100%;
  }

  .fixture-heading-actions>.live-tag {
    align-self: flex-start;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .player-card {
    grid-column: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .manager-offers {
    grid-template-columns: 1fr;
  }

  .tournament-groups {
    grid-template-columns: 1fr;
  }

  .simulation-scoreboard {
    grid-template-columns: 1fr 1fr;
  }

  .player-condition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simulation-score {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .panel {
    padding: 14px;
  }

  .panel-foot {
    flex-wrap: wrap;
  }

  .panel-foot label {
    width: 100%;
    grid-template-columns: auto 1fr;
  }

  .report-bottom {
    flex-direction: column;
  }

  .teammate-ratings {
    grid-template-columns: 1fr;
  }

  .fan-reactions {
    grid-template-columns: 1fr;
  }

  .match-events {
    justify-content: start;
  }

  .simulation-events .match-events {
    grid-template-columns: 1fr;
  }

  .empty-report {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .fixture-row {
    grid-template-columns: 25px 1fr 60px 1fr;
    gap: 5px;
  }

  .fixture-row {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    grid-template-rows: 24px 30px auto;
    gap: 2px 5px;
  }

  .fixture-date {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .fixture-round {
    display: none;
  }

  .fixture-row .home-name {
    grid-column: 1;
    grid-row: 2;
  }

  .fixture-score {
    grid-column: 2;
    grid-row: 2;
  }

  .fixture-row .fixture-team:not(.home-name) {
    grid-column: 3;
    grid-row: 2;
  }

  .fixture-row .home-away {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: left;
  }

  .fixture-team {
    font-size: 10px;
  }

  .profile-details {
    gap: 15px 8px;
  }

  .pitch {
    grid-template-rows: repeat(5, minmax(74px, auto));
    gap: 4px;
    padding: 14px 8px;
  }

  .pitch-slot::before {
    width: 32px;
    height: 36px;
  }

  .pitch-badge {
    font-size: 9px;
  }

  .pitch-name {
    font-size: 8px;
  }

  .pitch-meta {
    font-size: 7px;
  }

  .match-formations {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .training-progress {
    gap: 18px;
  }

  .training-progress span {
    font-size: 9px;
  }
}

  .player-directory-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
  }

  .player-directory-filters label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .player-directory-filters input,
  .player-directory-filters select {
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
  }

  .player-directory-table {
    width: 100%;
  }

  .player-directory-name {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    text-align: left;
  }

  .player-directory-name:hover {
    color: var(--lime);
    text-decoration: underline;
  }

  .player-profile-link {
    color: inherit;
    text-decoration: none;
  }

  .player-profile-link:hover,
  .player-profile-link:focus-visible {
    color: var(--lime);
    text-decoration: underline;
  }

  .player-profile-link:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
  }

  .pitch-player-link {
    display: inline-block;
    position: relative;
    z-index: 3;
  }

  .player-directory-name + small,
  .player-directory-table td small {
    display: block;
    margin-top: 3px;
  }

  .player-directory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
  }

  .player-directory-panel {
    overflow-x: auto;
  }

  .player-directory-panel .world-roster-table {
    min-width: 950px;
  }

  .player-back-button {
    margin-bottom: 18px;
  }

  .player-directory-empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
  }