:root {
  color-scheme: dark;
  --bg: #050709;
  --panel: #0d1115;
  --panel-2: #141b20;
  --line: #263139;
  --line-strong: #35434c;
  --text: #f4f7f5;
  --muted: #8e9ba1;
  --lime: #c8ff3d;
  --lime-dark: #263513;
  --blue: #70d7e8;
  --red: #f47e72;
  --amber: #f2c66d;
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, .24);
  --shadow-md: 0 18px 46px rgba(0, 0, 0, .34);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, .5);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
  text-rendering: optimizeLegibility;
}

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 {
  position: relative;
  isolation: isolate;
  max-width: 1440px;
  min-height: 100vh;
  margin: auto;
  padding: 26px 5vw 60px;
}

.creation-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(7,10,18,.64), rgba(11,14,22,.28) 52%, rgba(7,10,18,.56)),
    linear-gradient(180deg, rgba(8,12,20,.18), rgba(6,9,17,.46)),
    url("../../data/Sunset%20Showdown%20in%20a%20Packed%20Stadium.jpg") center / cover no-repeat;
}

.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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--muted);
  font: 500 11px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .1em;
  line-height: 1.4;
}

.lime {
  color: var(--lime);
}

.creation-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 rgba(255,255,255,.24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(19,27,36,.66), rgba(7,12,19,.58) 56%);
  box-shadow: 0 30px 100px #0006;
  backdrop-filter: blur(8px) saturate(120%);
}

.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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .1em;
}

.creation-stage-heading {
  margin: 16px 0 20px;
}

.creation-stage-heading .eyebrow {
  color: var(--lime);
}

.creation-stage-heading h2 {
  margin: 7px 0 4px;
}

.creation-stage-heading p {
  margin: 0;
  color: #b2bec5;
  font-size: 13px;
}

.creation-card h2 {
  margin: 14px 0 24px;
  font: 600 28px "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.field-grid input[type=number] {
  appearance: textfield;
}

.field-grid small {
  color: #748072;
  font: 11px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

/* ---- Player creation: the four grouped sections ---- */

/* Progress strip: the flow must be walked from 1 to 4. */
.creation-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #6d786c;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.creation-progress-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.creation-progress-step b {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #334033;
  border-radius: 50%;
  color: #7d8a7b;
  font-size: 9px;
}

.creation-progress-step.done {
  color: #9ca99a;
}

.creation-progress-step.done b {
  border-color: var(--lime);
  color: #101510;
  background: var(--lime);
}

.creation-progress-step.current {
  color: var(--text);
}

.creation-progress-step.current b {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 25%, transparent);
}

.creation-progress-step.locked {
  opacity: .5;
}

.creation-progress i {
  flex: 1 1 12px;
  height: 1px;
  background: #2c362c;
}

.creation-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.creation-tab {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  color: #9aa8b1;
  background: rgba(7,12,18,.38);
  text-align: left;
  transition: border-color .16s, background .16s, color .16s;
}

.creation-tab b {
  font: 600 11px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.creation-tab small {
  color: #6c7a6b;
  font: 11px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.creation-tab:hover {
  border-color: #435443;
  color: #c6d0c1;
}

.creation-tab.active {
  border-color: rgba(200,255,61,.76);
  color: var(--text);
  background: linear-gradient(145deg, rgba(32,52,58,.72), rgba(8,18,24,.62));
  box-shadow: inset 0 0 0 1px rgba(200,255,61,.12), 0 8px 24px rgba(0,0,0,.18);
}

.creation-tab.locked {
  opacity: .58;
  border-style: dashed;
}

.creation-tab.done:not(.active) {
  color: #b3c0b0;
  border-color: #364536;
}

/* "What this body does to your stats", shown under the body card. */
.creation-physique {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #2c362c;
  border-radius: 8px;
  background: #0e130e;
}

.creation-physique>small {
  color: #6d786c;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .1em;
}

.creation-physique-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.creation-physique-grid span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #334033;
  border-radius: 999px;
  background: #0b100b;
}

.creation-physique-grid b {
  color: #c6d0c1;
  font: 500 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .05em;
}

.creation-physique-grid em {
  color: #7d8a7b;
  font: 600 11px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-style: normal;
}

.creation-physique-grid em.up {
  color: var(--lime);
}

.creation-physique-grid em.down {
  color: var(--red);
}

/* Weak foot and skill moves are now 5-star pickers. Filled stars turn gold, the
   rest stay grey, and the whole row is clickable. */
.creation-skill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.creation-skill>span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.creation-skill b {
  color: #c6d0c1;
  font: 500 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .05em;
}

.creation-skill small {
  color: #6d786c;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.creation-stars {
  display: inline-flex;
  gap: 2px;
  cursor: pointer;
  user-select: none;
}

.creation-star {
  color: #3a4538;
  font-size: 18px;
  line-height: 1;
  transition: color .12s ease, transform .12s ease;
}

.creation-star:hover {
  transform: scale(1.15);
}

.creation-star.filled {
  color: #f2c66d;
  text-shadow: 0 0 6px #f2c66d66;
}

.creation-body-refresh {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 11px;
}

.creation-body-refresh:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.creation-tab.active b {
  color: var(--lime);
}

.creation-tab.active small {
  color: #9ca99a;
}

.creation-panel {
  display: none;
  animation: creation-panel-in .18s ease-out;
}

.creation-panel.active {
  display: block;
}

@keyframes creation-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.creation-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px dashed #334033;
  border-radius: 7px;
  background: #0e130e;
}

.creation-summary span {
  color: #6d786c;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .1em;
}

.creation-summary b {
  margin-right: 14px;
  color: #d5ddd0;
  font: 600 13px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.creation-range {
  width: 100%;
  min-height: 0;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--lime);
  cursor: pointer;
}

/* Chrome/Edge ignore accent-color inside a styled input, so paint the track by hand. */
.creation-range::-webkit-slider-runnable-track,
.creation-attr input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: #2c2c31;
}

.creation-range::-webkit-slider-thumb,
.creation-attr input[type=range]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 20%, transparent);
  appearance: none;
  -webkit-appearance: none;
}

.creation-range::-moz-range-thumb,
.creation-attr input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
}

.creation-body-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #2c362c;
  border-radius: 8px;
  background: #0e130e;
}

.creation-body-silhouette {
  display: grid;
  justify-items: center;
  gap: 5px;
  transition: gap .25s ease;
}

.creation-body-silhouette span {
  display: block;
  background: linear-gradient(180deg, #4d6a44, #2a3a27);
  transition: width .3s cubic-bezier(.2,.8,.2,1), height .3s cubic-bezier(.2,.8,.2,1), border-radius .3s ease;
}

.body-head {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.body-torso {
  width: calc(46px * var(--build, 1));
  height: 58px;
  border-radius: 14px 14px 8px 8px;
}

.body-legs {
  width: calc(34px * var(--build, 1));
  height: 48px;
  border-radius: 6px 6px 10px 10px;
}

/* The silhouette morphs with the height/weight sliders: taller players grow the
   head and legs, heavier players widen the torso and legs. The transition keeps the
   change smooth instead of snapping. */
.creation-body-silhouette[data-height="short"] .body-head,
.creation-body-silhouette[data-height="short"] .body-legs {
  transform: scaleY(0.92);
}

.creation-body-silhouette[data-height="tall"] .body-head,
.creation-body-silhouette[data-height="tall"] .body-legs {
  transform: scaleY(1.18);
}

.creation-body-silhouette[data-build="lean"] .body-torso,
.creation-body-silhouette[data-build="lean"] .body-legs {
  width: calc(40px * var(--build, 1));
}

.creation-body-silhouette[data-build="powerful"] .body-torso,
.creation-body-silhouette[data-build="powerful"] .body-legs {
  width: calc(54px * var(--build, 1));
}

.creation-body-stats {
  display: grid;
  gap: 12px;
}

.creation-body-stats>div {
  display: grid;
  gap: 4px;
}

.creation-body-stats small {
  color: #6d786c;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .1em;
}

.creation-body-stats b {
  color: #d5ddd0;
  font: 600 15px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.creation-subheading {
  margin: 26px 0 12px;
  color: #9ca99a;
  font: 500 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.creation-attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.creation-attr {
  display: grid;
  gap: 4px;
}

.creation-attr>span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #9ca99a;
  font: 500 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .06em;
}

.creation-attr output {
  color: var(--lime);
  font: 700 13px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.creation-attr input[type=range] {
  width: 100%;
  min-height: 0;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--lime);
  cursor: pointer;
}

.creation-hint {
  display: block;
  margin: 12px 0 0;
  color: #748072;
  font: 11px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

.creation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.creation-actions .button-primary {
  margin-left: auto;
}

.creation-actions .button-quiet[data-creation-step="next"] {
  margin-left: auto;
}

.creation-actions .button-quiet[data-creation-step="next"]+.button-primary {
  margin-left: 0;
}

.creation-step-label {
  color: #6d786c;
  font: 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em;
}

@media (max-width: 720px) {
  .creation-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .creation-tab small {
    display: none;
  }

  .creation-progress {
    overflow: hidden;
    gap: 4px;
  }

  .creation-progress-step {
    font-size: 0;
  }

  .creation-progress-step b {
    font-size: 9px;
  }

  .creation-attr-grid {
    grid-template-columns: 1fr;
  }

  .creation-body-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .creation-body-stats {
    width: 100%;
    text-align: left;
  }

  .creation-actions .button-quiet[data-creation-step="next"],
  .creation-actions .button-primary {
    width: 100%;
    margin-left: 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.button-primary .menu-btn-text {
  font: 700 12px "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  letter-spacing: .12em;
}

.button-primary.menu-btn {
  gap: 14px;
  padding: 0 16px;
  align-items: center;
}

.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: #050506;
}

.sidebar .brand {
  padding: 0 8px 32px;
}

.side-label {
  padding: 0 12px 13px;
  color: #606d60;
  font: 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .12em;
}

.sidebar nav {
  max-height: calc(100vh - 235px);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 14px;
  scrollbar-color: #2a2a2e transparent;
  scrollbar-width: thin;
}

.nav-group {
  display: grid;
  gap: 3px;
}

.nav-group-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px 5px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-group-heading > span:first-child {
  display: grid;
  gap: 3px;
}

.nav-group-chevron {
  color: #758174;
  font-size: 14px;
  transition: transform .16s ease;
}

.nav-group-heading:hover .nav-group-chevron,
.nav-group.expanded .nav-group-chevron {
  color: var(--lime);
}

.nav-group-items[hidden] {
  display: none;
}

.nav-group-items {
  display: grid;
  gap: 3px;
}

.nav-group-heading b {
  color: #c7d1c1;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .025em;
}

.nav-group-heading small {
  color: #687368;
  font-size: 10px;
}

.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: #151519;
}

.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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.slot-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #738071;
  font: 10px "Cascadia Code", "Cascadia Mono", Consolas, 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) "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em;
}

.status-pill,
.trend,
.live-tag {
  color: var(--lime);
  font: 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  line-height: 1.35;
  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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.rating-badge small {
  margin-top: -2px;
  font: 8px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  letter-spacing: -.05em;
}

.big-number span {
  color: #6b786a;
  font-size: 20px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

.trend {
  color: #768573;
}

.stat-triplet {
  display: flex;
  gap: 28px;
  margin: 18px 0 10px;
}

.stat-triplet b {
  display: block;
  font: 600 21px "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.stat-triplet small {
  display: block;
  margin-top: 2px;
  color: #7f8a7e;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px;
  margin-bottom: 15px;
}

.panel {
  padding: 18px;
  /* Clears the sticky sidebar strip on small screens when a panel is focused in. */
  scroll-margin-top: 72px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-heading h2 {
  margin: 6px 0 0;
  font: 600 16px "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.fan-reactions b {
  color: #cbd6c6;
  font: 600 11px "Cascadia Code", "Cascadia Mono", Consolas, 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: minmax(105px, auto) minmax(180px, 1fr);
  align-items: center;
}

.panel-foot select {
  min-height: 31px;
  padding: 5px 7px;
}

#match-role-description {
  grid-column: 1 / -1;
  max-width: 420px;
  color: var(--muted);
  font: 11px/1.45 "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.inbox-count {
  color: #71806d;
  font: 11px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.points-pill.large-points {
  padding: 10px 13px;
}

.match-report {
  margin-top: 15px;
}

.objective-result {
  margin: 6px 0 0;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.performance-grid small {
  color: #788575;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.teammate-rating-row b,
.scorer-goals {
  color: var(--lime);
  font: 700 12px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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;
}

.awards-matrix-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.awards-matrix {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.awards-matrix th,
.awards-matrix td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.awards-matrix thead th {
  color: var(--lime);
  background: #17231a;
  font: 700 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.awards-matrix thead th:not(:first-child) {
  min-width: 150px;
}

.awards-matrix tbody th {
  width: 190px;
  color: var(--text);
  background: #111a13;
  font-weight: 700;
}

.awards-matrix td {
  color: var(--text);
  font-size: 12px;
  line-height: 1.65;
}

.awards-matrix td a {
  color: var(--text);
}

.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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.card-chip.yellow {
  background: #e6c34a;
}

.card-chip.red {
  background: #e05b4a;
  color: #fff;
}

.scorer-empty {
  text-align: center !important;
  color: var(--muted);
  font: 12px "Segoe UI Variable", "Segoe UI", Arial, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.legend-card small {
  color: #b5c8b8;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.legend-rating {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #17130a;
  background: #f2ce66;
  font: 700 18px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.legend-rating small {
  color: #4a4324;
  font: 7px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.tournament-bracket {
  margin-top: 17px;
}

.tournament-bracket>h3 {
  margin: 0 0 4px;
  color: #cbd6c6;
  font: 600 11px "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 small {
  display: block;
  margin-top: 3px;
  color: #6e7b6c;
  font: 8px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.bracket-winner {
  margin: 8px 7px 0;
  color: #a7b0a4;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.bracket-tie.user-tie {
  background: #1a2a1a;
}

.tournament-results {
  margin-top: 17px;
}

.tournament-group-results {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #111b18;
}

.tournament-matchday-results + .tournament-matchday-results {
  margin-top: 6px;
}

.tournament-matchday-results summary {
  padding: 8px 9px;
  border: 1px solid #283128;
  border-radius: 4px;
  color: #d9e5d4;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  list-style-position: inside;
}

.tournament-matchday-results[open] summary {
  border-color: #42533e;
  background: #1a2a1a;
}

.tournament-matchday-results .tournament-result:first-of-type {
  margin-top: 4px;
}

.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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .06em;
}

.fixture-round,
.fixture-date,
.home-away {
  color: #6e7b6c;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.profile-details .position-select small {
  color: var(--muted);
  font: 9px "Segoe UI Variable", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.attribute-row>b {
  color: #dce5d7;
  text-align: right;
  font: 600 12px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.training-progress .hidden-potential {
  color: var(--lime);
}

.hidden-potential small {
  font: 8px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.award-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.trophy-case {
  margin-top: 15px;
  scroll-margin-top: 80px;
}

.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: 72px;
  height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--trophy-color) 45%, transparent);
  border-radius: 10px 10px 4px 4px;
  background:
    radial-gradient(ellipse at 50% 18%, color-mix(in srgb, var(--trophy-color) 19%, transparent), transparent 62%),
    linear-gradient(145deg, #182230, #0b111b 72%);
  box-shadow: inset 0 1px 0 #ffffff12, 0 8px 18px #0003;
}

/* The repeat count sits on the trophy itself, so "×5" reads at a glance. */
.trophy-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 26px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--trophy-color, var(--lime));
  color: #08121f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 3px 8px #0007;
}

.trophy-years {
  display: block;
  margin-top: 6px;
  color: var(--muted, #94a3b8);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Form swing shown under the OVR badge: green when hot, red when struggling. */
.form-delta {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.form-delta.positive {
  color: var(--lime);
}

.form-delta.negative {
  color: #f87171;
}

.injury-tag {
  color: #f87171 !important;
}

.trophy-art svg {
  width: 58px;
  height: 66px;
  overflow: visible;
  filter: drop-shadow(0 2px 3px #0007);
}

.trophy-cup,
.trophy-metal {
  fill: color-mix(in srgb, var(--trophy-color) 72%, #fff 28%);
  stroke: var(--trophy-color);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trophy-handle,
.trophy-stem {
  fill: color-mix(in srgb, var(--trophy-color) 56%, #7b571c);
  stroke: color-mix(in srgb, var(--trophy-color) 75%, #fff 25%);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trophy-detail {
  fill: color-mix(in srgb, var(--trophy-color) 30%, #fff 70%);
  stroke: none;
}

.trophy-engraving {
  fill: none;
  stroke: color-mix(in srgb, var(--trophy-color) 38%, #684713);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trophy-ballon {
  --trophy-color: #f5c451;
}

.trophy-boot {
  --trophy-color: #74c8ff;
}

.trophy-playmaker {
  --trophy-color: #9c8cff;
}

.trophy-glove {
  --trophy-color: #67d7b1;
}

.trophy-world {
  --trophy-color: #65baff;
}

.trophy-champions-league {
  --trophy-color: #b9ecff;
  background:
    radial-gradient(circle at 50% 35%, #4db9ff33, transparent 58%),
    linear-gradient(145deg, #102d52, #07101f 72%);
  border-color: #6ed6ff99;
  box-shadow: inset 0 1px 0 #ffffff25, 0 0 18px #3ab8ff26, 0 8px 18px #0005;
}

.trophy-starball {
  fill: #e8f9ff;
  stroke: #70d7ff;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.trophy-orbit {
  fill: none;
  stroke: #8de3ff;
  stroke-width: 1;
  opacity: .9;
}

.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;
}

/* A grouped trophy: one card per award, showing how many times it was won. */
.trophy-count {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 26px;
  padding: 3px 6px;
  border: 1px solid #f4da75;
  border-radius: 999px;
  color: #101811;
  background: #f4da75;
  font: 700 11px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  text-align: center;
}

.trophy-card .trophy-years {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* Form swing badge on the player's overall. */
.form-delta,
.form-swing {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
  font-weight: 700;
}

.form-delta.positive,
.form-swing.positive {
  color: #85d994;
}

.form-delta.negative,
.form-swing.negative {
  color: #f07a6b;
}

/* Injury state. */
.injury-tag {
  border-color: #f07a6b;
  color: #f07a6b;
}

.stat-card .big-number.injury {
  color: #f07a6b;
  font-size: 22px;
  line-height: 1.2;
}

.injury-card {
  border-color: rgba(240, 122, 107, .45);
}

.world-cup-scorers {
  margin-top: 14px;
}

.world-cup-scorer-table .scorer-goals {
  font-weight: 700;
  color: #85d994;
}

.formation-panel,
.bench-panel {
  margin-bottom: 14px;
}

.formation-picker {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font: 8px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000000aa;
}

.pitch-meta {
  color: #b5c8b8;
  font: 8px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-formation-head small {
  overflow: hidden;
  color: var(--muted);
  font: 7px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.performer-table {
  min-width: 650px;
}

.performer-table th,
.performer-table td {
  padding: 0 9px;
}

.performer-player {
  color: #d9e2d5;
  font: 600 11px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.compact-heading {
  margin: 24px 0 12px;
}

.compact-heading h2 {
  margin: 0;
  font: 600 22px "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable", "Segoe UI", Arial, 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 "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.world-nationality {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 8px "Cascadia Code", "Cascadia Mono", Consolas, 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) "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.simulation-score {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--lime);
  font: 700 clamp(30px, 5vw, 48px) "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .1em;
}

.live-goal-commentary>b {
  color: var(--text);
  font: 600 clamp(16px, 2vw, 22px) "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Segoe UI Variable", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, 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) "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.simulation-running {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  color: var(--lime);
  font: 10px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.simulation-timeline-row>small {
  text-align: right;
  font: 8px "Cascadia Code", "Cascadia Mono", Consolas, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, 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, rgba(19,27,36,.66), rgba(7,12,19,.58) 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: #2a2a2e;
  background: #050506;
}

.button-primary {
  color: #06111f;
  background: #42a5ff;
}

.button-primary:hover {
  background: #70bbff;
}

.sidebar,
.topbar {
  background: #050506;
}

.nav-item:hover,
.nav-item.active {
  background: #151519;
}

.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: #101012;
}

.key-moment {
  border-color: #2a2a2e;
  background: #0c0c0e;
}

.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;
  }
  /* A thin loading bar sits under the topbar so simulating a week, a half season or
     a full season shows progress without interrupting the screen. */
  .sim-progress-bar {
    height: 4px;
    background: var(--panel-2, var(--panel));
    overflow: hidden;
    border-bottom: 1px solid var(--hairline);
  }
  .sim-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--positive, #4caf50));
    transition: width 0.25s ease;
  }
  .sim-progress-label {
    position: absolute;
    right: 12px;
    top: 6px;
    font-size: 0.72rem;
    color: var(--muted);
  }
  /* A standout performance (rating 8.5+) gets a gold badge on the match report so
     great games are visible at a glance instead of buried in the stat line. */
  .standout-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f2c66d, #d4a017);
    color: #1a1206;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  /* The overview page shows the user's squad status (starter / bench / not selected)
     in the top-right action bar so it is visible before every matchday. */
  .overview-lineup-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--hairline);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  }
  .overview-lineup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--muted);
    flex: none;
  }
  .overview-lineup-status.is-starter .overview-lineup-dot { background: var(--positive, #4caf50); }
  .overview-lineup-status.is-bench .overview-lineup-dot { background: var(--warn, #ffb300); }
  .overview-lineup-status.is-out .overview-lineup-dot { background: var(--negative, #e53935); }
  .overview-lineup-status small { display: block; color: var(--muted); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .overview-lineup-status b { font-size: 0.82rem; }
  /* The player hub embeds the same directory as a responsive card grid so browsing
     every player in the world does not require leaving the hub page. */
  .player-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 4px 0 16px;
  }
  .player-directory-card {
    display: block;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease;
  }
  .player-directory-card:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
  }
  .directory-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
  }
  .directory-card-head b {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .directory-card-tag {
    font-size: 0.62rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--panel-2, var(--panel));
    padding: 2px 6px;
    border-radius: 999px;
    flex: none;
  }
  .directory-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .directory-card-meta span:not(:last-child)::after {
    content: "·";
    margin-inline: 4px;
  }
  .directory-card-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
  }
  .directory-card-stats .world-rating {
    font-weight: 700;
    color: var(--accent);
  }
  .directory-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--muted);
  }
  .directory-archetype {
    color: var(--accent);
    font-style: italic;
  }
/* Main menu (menu / credits / settings screens) */
.menu-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: auto;
  padding: 48px 5vw 56px;
  overflow: hidden;
}

.menu-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,8,11,.48), rgba(4,8,11,.2) 58%, rgba(4,8,11,.38)),
    linear-gradient(180deg, rgba(4,8,11,.12), rgba(4,8,11,.34)),
    url("../../data/Sunset%20Showdown%20in%20a%20Packed%20Stadium.jpg") center / cover no-repeat;
  pointer-events: none;
  z-index: -1;
}

/* Main menu: the action card sits left, the bouncing ball fills the right. */
.menu-shell--solo {
  grid-template-columns: minmax(0, 460px);
  justify-content: start;
  align-content: center;
  padding-left: clamp(24px, 10vw, 140px);
  background: transparent;
  isolation: isolate;
}

.menu-shell--solo .menu-card-inner {
  padding: clamp(24px, 4vw, 34px);
}

.menu-hero {
  position: relative;
  display: grid;
  gap: 32px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, #111113, #060607 62%);
  overflow: hidden;
}

.menu-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), transparent 70%);
}

.menu-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.menu-title h1 {
  margin: 12px 0 16px;
  font: 600 clamp(40px, 5.4vw, 78px)/.94 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.menu-title h1 em {
  font-style: normal;
  color: var(--lime);
}

.menu-title p {
  max-width: 46ch;
  margin: 0;
  color: #93a3b8;
  font-size: 14px;
  line-height: 1.6;
}

.settings-grid {
  display: grid;
  gap: 10px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-copy {
  display: grid;
  gap: 5px;
}

.settings-copy b {
  color: var(--text);
  font-size: 14px;
}

.settings-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.settings-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
}

.settings-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.settings-slider {
  position: absolute;
  inset: 0;
  border: 1px solid #536173;
  border-radius: 999px;
  background: #1b2532;
  transition: .18s ease;
}

.settings-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8b98a8;
  transition: .18s ease;
}

.settings-toggle input:checked + .settings-slider {
  border-color: var(--lime);
  background: #718d1c;
}

.settings-toggle input:checked + .settings-slider::after {
  left: 23px;
  background: #f5ffd0;
}

.settings-toggle input:focus-visible + .settings-slider {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.menu-ball-wrap {
  display: none;
  position: absolute;
  right: -70px;
  top: 50%;
  translate: 0 -50%;
  width: 300px;
  height: 300px;
  pointer-events: none;
}

.menu-ball {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(66, 165, 255, .28);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(66, 165, 255, .18), transparent 62%);
}

.menu-ball--two {
  inset: 46px;
  border-style: dashed;
  opacity: .7;
}

.menu-ball--three {
  inset: 92px;
  border-color: rgba(66, 165, 255, .45);
}

.menu-card {
  display: grid;
  gap: 14px;
}

.menu-card-inner {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #141416, #08080a 58%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

.menu-actions {
  display: grid;
  gap: 10px;
}

.menu-btn {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #d9d9de;
  background: rgba(255, 255, 255, .018);
  text-align: left;
  font-size: 12px;
  letter-spacing: .1em;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}

.menu-btn:disabled {
  color: #7c8ca1;
  background: rgba(255, 255, 255, .01);
}

.menu-btn-icon {
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  font: 12px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  opacity: .9;
}

.menu-btn-text {
  flex: 1 1 auto;
  font: 700 12px "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  letter-spacing: .12em;
}

.menu-btn-tag {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #2b3d56;
  border-radius: 3px;
  color: var(--muted);
  font: 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em;
}

.button-quiet.menu-btn {
  min-height: 50px;
  border-color: #26262a;
}

.button-quiet.menu-btn:hover:not(:disabled) {
  border-color: #2f5590;
  color: var(--text);
  background: #101013;
}

.button-quiet.menu-btn:disabled {
  border-color: #1c1c1f;
  color: #74747d;
  background: rgba(255, 255, 255, .01);
}

.button-primary.menu-btn {
  min-height: 56px;
  border: 1px solid #42a5ff;
  color: #06111f;
  background: #42a5ff;
}

.button-primary.menu-btn:hover:not(:disabled) {
  border-color: #70bbff;
  color: #06111f;
  background: #70bbff;
}

.button-primary.menu-btn:disabled {
  border-color: #42a5ff;
  color: #06111f;
  background: #42a5ff;
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.menu-save-status {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.menu-notice {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}

.menu-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.menu-list span {
  padding: 8px 0;
  border-bottom: 1px dashed #242427;
  color: #c3d0e0;
  font-size: 12px;
}

.menu-list span:last-child {
  border-bottom: 0;
}

.menu-list b {
  display: inline-block;
  min-width: 30px;
  color: var(--lime);
  font: 600 11px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.menu-card .panel {
  padding: 16px 18px;
  background: #050506;
}

@media (min-width: 1180px) {
  .menu-ball-wrap {
    display: block;
  }

  .menu-hero .menu-title {
    position: relative;
    z-index: 1;
    max-width: 70%;
  }
}

@media (max-width: 920px) {
  .menu-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    align-content: center;
    padding: 32px 5vw 44px;
  }

  .menu-hero {
    gap: 20px;
    padding: 24px;
  }

  .menu-title h1 {
    font-size: clamp(36px, 9vw, 52px);
  }
}

@media (max-width: 520px) {
  .menu-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-btn {
    min-height: 48px;
  }
}

/* Animated menu background: a single football bouncing in place. */
.menu-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/*
 * Faint pitch, anchored to the right where the ball lives. Kept behind the card
 * and faded out at the edges so it never reads as a UI element.
 */
.menu-pitch-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* soft stadium light behind the ball */
  background:
    radial-gradient(46% 52% at 83% 46%, rgba(66, 165, 255, .11), transparent 70%),
    radial-gradient(38% 44% at 83% 48%, rgba(255, 255, 255, .04), transparent 72%);
  mask-image: radial-gradient(75% 80% at 72% 50%, #000 45%, transparent 100%);
}

/* Centre circle + halfway arc, offset to the right and heavily faded. */
.menu-pitch-lines::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 83%;
  width: min(58vh, 520px);
  height: min(58vh, 520px);
  translate: -50% -50%;
  border: 1px solid rgba(160, 200, 235, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(160, 200, 235, .02);
  opacity: .9;
}

/* Centre spot. */
.menu-pitch-lines::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 83%;
  width: 5px;
  height: 5px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(160, 200, 235, .2);
}

/*
 * Fixed spot on the right half; only the ball inside it moves. The stage is the ball's
 * floor and its horizontal origin — ball-physics.mjs moves the ball inside it.
 */
.menu-football {
  position: absolute;
  right: 14%;
  bottom: 18vh;
  --size: clamp(84px, 8vw, 118px);
  --bounce: 46vh;
  --hold: 11%;
  width: var(--size);
  height: calc(var(--size) + var(--bounce));
}

.menu-football--back,
.menu-football--mid {
  display: none;
}

/*
 * The ball: classic 32-panel truncated icosahedron, built from gradients.
 * Panels + seams + lighting are layered so the sphere reads as 3D.
 */
.football {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: var(--size);
  height: var(--size);
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  /* Squash and stretch anchor at the floor, like a real ball compressing. */
  transform-origin: 50% 100%;
  /* Driven frame by frame by ball-physics.mjs (gravity, restitution, spin). */
  will-change: transform;
  /* The artwork is an inline SVG (see .football svg). */
}

.football svg {
  display: block;
  width: var(--size);
  height: var(--size);
  overflow: visible;
}

/* Soft contact shadow directly under the ball, independent of the floor shadow. */
.football-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(var(--size) * .95);
  height: calc(var(--size) * .18);
  translate: -50% 62%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .7) 0 30%, rgba(0, 0, 0, .3) 55%, transparent 76%);
  filter: blur(1.5px);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  z-index: 0;
}


/* Keep the card above the animation. */
.menu-shell--solo .menu-card {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------------- *
 * Manager hub: the dugout dashboard. A hero identity strip, a sticky action
 * bar, then a two-column layout (club business on the left, the manager's
 * surroundings on the right).
 * ------------------------------------------------------------------------- */
.manager-hub {
  display: grid;
  gap: 14px;
}

/* Status tones, shared by every hub element that reports a state. */
.manager-hub .tone-good {
  color: #57d68d;
}

.manager-hub .tone-warn {
  color: var(--amber);
}

.manager-hub .tone-danger {
  color: var(--red);
}

.manager-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--lime) 13%, transparent), transparent 55%),
    var(--panel);
}

.manager-hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.manager-hero .manager-crest {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.manager-hero-text {
  min-width: 0;
}

.manager-hero-text h1 {
  margin: 6px 0 4px;
  font: 600 clamp(25px, 2.6vw, 33px) "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.manager-hero-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.manager-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manager-fact {
  min-width: 150px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #00000066;
}

.manager-fact span {
  display: block;
  margin-bottom: 3px;
  color: #78828a;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .09em;
}

.manager-fact b {
  font: 600 13px "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.manager-fact-status b {
  letter-spacing: .02em;
}

/* Actions: a quiet strip that keeps the weekly loop one click away. */
.manager-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}

.manager-actions-context {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.manager-actions-week {
  color: var(--lime);
  font: 600 10px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em;
}

.manager-actions-date {
  color: var(--muted);
  font-size: 11px;
}

.manager-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-actions-buttons .button-primary {
  min-height: 38px;
}

.manager-hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: start;
}

.manager-hub-main,
.manager-hub-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.manager-hub .manager-panel {
  min-width: 0;
}

.manager-panel-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.manager-panel-note.danger-note {
  color: #f0a09a;
}

/* Board: a score block beside the three confidence meters. */
.manager-board-body {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-top: 14px;
}

.manager-board-score {
  display: grid;
  align-content: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
}

.manager-board-score b {
  font: 600 44px/1 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  letter-spacing: -.05em;
}

.manager-board-score small {
  margin-top: 4px;
  color: #78828a;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .09em;
}

.manager-board-score span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.manager-board-meters .manager-meter {
  padding: 0 0 12px;
  border-bottom: 0;
}

.manager-board-meters .manager-meter+.manager-meter {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.manager-meter>div:first-child {
  display: flex;
  justify-content: space-between;
  color: #98a4ab;
  font-size: 11px;
}

.manager-meter b {
  font: 11px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.manager-meter.tone-good b {
  color: #57d68d;
}

.manager-meter.tone-warn b {
  color: var(--amber);
}

.manager-meter.tone-danger b {
  color: var(--red);
}

.manager-meter .meter span {
  background: currentColor;
}

.manager-meter.tone-good .meter span {
  background: #57d68d;
}

.manager-meter.tone-warn .meter span {
  background: var(--amber);
}

.manager-meter.tone-danger .meter span {
  background: var(--red);
}

/* Season snapshot: four compact cells plus the last-five form strip. */
.manager-season-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.manager-season-cell {
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.manager-season-cell span {
  display: block;
  color: #78828a;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .08em;
}

.manager-season-cell b {
  display: block;
  margin: 7px 0 3px;
  font: 600 21px/1.15 "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.manager-season-cell small {
  color: var(--muted);
  font-size: 10px;
}

.manager-form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.manager-form-label {
  color: #78828a;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .09em;
  white-space: nowrap;
}

.manager-form-badges {
  display: flex;
  gap: 6px;
}

.manager-form-badge {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font: 700 11px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  cursor: default;
}

.manager-form-badge.tone-good {
  border-color: #2c6b46;
  background: #0e2417;
}

.manager-form-badge.tone-warn {
  border-color: #6d5a2e;
  background: #241f10;
}

.manager-form-badge.tone-danger {
  border-color: #6b3430;
  background: #241010;
}

.manager-form-empty {
  color: var(--muted);
  font-size: 11px;
}

/* Dressing room: squad numbers, the XI as a compact list, top scorers. */
.manager-squad-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.manager-squad-stats>div {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
}

.manager-squad-stats b {
  display: block;
  font: 600 17px "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

.manager-squad-stats b.warn-value {
  color: var(--amber);
}

.manager-squad-stats small {
  display: block;
  color: #78828a;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .07em;
}

.manager-lineup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.manager-lineup li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #17171a;
  font-size: 12px;
  min-width: 0;
}

.manager-lineup-slot {
  flex: 0 0 34px;
  color: #78828a;
  font: 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

.manager-lineup b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-lineup small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.manager-squad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.manager-top-scorers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.manager-scorer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a9b3ba;
  font-size: 11px;
}

.manager-scorer b {
  color: var(--lime);
  font: 11px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

/* Side column: inbox, club facts. */
.manager-hub-side .news-list {
  min-height: 0;
}

.manager-club-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.manager-club-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #17171a;
}

.manager-club-list li span {
  color: var(--muted);
  font-size: 11px;
}

.manager-club-list li b {
  font: 500 11px "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  text-align: right;
  overflow-wrap: anywhere;
}

.manager-club-panel .manager-wide-button {
  width: 100%;
  margin-top: 12px;
}

.manager-crest-sm {
  width: 30px;
  height: 30px;
}

/* Season history and the trophy case in the side column. */
.manager-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.manager-history-panel .history-table {
  min-width: 560px;
}

.manager-history-panel .history-table th,
.manager-history-panel .history-table td {
  width: auto !important;
  text-align: left;
  white-space: nowrap;
}

.manager-verdict {
  font: 600 9px "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  letter-spacing: .07em;
}

.manager-hub .trophy-grid {
  grid-template-columns: 1fr;
}

/* The hub is a dashboard, so the fixture card stays compact and the top
   briefing (hero + actions) stays in view while scrolling the panel stack. */
.manager-hub .next-match-panel .fixture-preview {
  min-height: 76px;
  padding: 12px 0 2px;
}

.manager-hub .next-match-panel .fixture-side .club-crest {
  width: 34px;
  height: 34px;
}

.manager-sticky {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 10px;
  padding: 6px 0 10px;
  background: linear-gradient(var(--bg) 78%, transparent);
}

@media (max-width: 1100px) {
  .manager-hub-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .manager-season-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .manager-hero {
    padding: 16px;
  }

  .manager-hero-facts {
    width: 100%;
  }

  .manager-fact {
    flex: 1 1 130px;
    min-width: 0;
  }

  .manager-actions-buttons {
    width: 100%;
  }

  .manager-actions-buttons>button {
    flex: 1 1 100%;
  }

  .manager-board-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .manager-lineup {
    grid-template-columns: 1fr;
  }

  .manager-squad-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* No sticky header on small screens — the bars would eat the viewport. */
  .manager-sticky {
    position: static;
    background: none;
    padding: 0;
  }

  /* A manager career has one more nav entry (Manager hub). With fifteen icons a
   phone cannot show them all, so the strip scrolls full-width from the brand to
   the edge and the active screen is scrolled into view by the renderer. */
  .sidebar {
    gap: 8px;
  }

  .sidebar .sidebar-nav {
    flex: 1 1 auto;
    gap: 2px;
    padding-right: 2px;
    scroll-padding-inline: 6px;
  }

  .sidebar .sidebar-nav .nav-item {
    flex: 0 0 33px;
    width: 33px;
  }

  /* Six columns in a phone-width table never fit; let cells wrap and shrink. */
  .manager-history-panel .history-table {
    min-width: 0;
  }

  .manager-history-panel .history-table th,
  .manager-history-panel .history-table td,
  .manager-history-panel .history-table .scorer-empty {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .manager-history-panel .history-table th,
  .manager-history-panel .history-table td {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .football,
  .football-shadow,
  .football::before {
    animation: none;
  }
}

@media (max-width: 620px) {
  /* Card fills the width, so park the ball to bounce clear beneath it. */
  .menu-football {
    right: 50%;
    bottom: 2vh;
    translate: 50% 0;
    --size: 44px;
    --bounce: 14vh;
  }
}

/* ------------------------------------------------------------------------- *
 * Touchline premium matchday skin
 *
 * This layer intentionally keeps the existing DOM and interaction classes. It
 * supplies the visual system: a floodlit stadium atmosphere, graphite surfaces,
 * lime matchday accents, and compact information density.
 * ------------------------------------------------------------------------- */
:root {
  --surface-glass: rgba(15, 22, 27, .84);
  --surface-raised: #182127;
  --surface-inset: #0a0f13;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 76% -6%, rgba(112, 215, 232, .09), transparent 68%),
    radial-gradient(700px 520px at 2% 72%, rgba(200, 255, 61, .045), transparent 72%),
    linear-gradient(145deg, #080d11 0%, #050709 52%, #0a1116 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .42;
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(255,255,255,.025) 42.2%, transparent 42.5%),
    linear-gradient(68deg, transparent 0 66%, rgba(112,215,232,.035) 66.2%, transparent 66.5%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 84px);
  transform: perspective(900px) rotateX(58deg) translateY(36vh) scale(1.7);
  transform-origin: center bottom;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.4) 100%);
}

button,
select,
input {
  transition: border-color .18s ease, background-color .18s ease, color .18s ease,
    box-shadow .18s ease, transform .18s ease;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--lime);
  background:
    radial-gradient(circle at center, rgba(200,255,61,.08), transparent 25%),
    var(--bg);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.game-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  grid-template-columns: 248px minmax(0, 1fr);
  background: #071013;
}

.game-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(3,8,12,.42), rgba(3,9,11,.52) 48%, rgba(3,9,8,.69)),
     url("../../data/Rain-Ready%20Stadium%20Under%20Stormy%20Skies.jpg");
  background-size: cover;
  background-position: center 54%;
  background-repeat: no-repeat;
  transform: translateZ(0) scale(1.015);
}

.game-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(196,226,236,.13), transparent 33%),
    radial-gradient(ellipse at 82% 20%, rgba(210,229,238,.1), transparent 35%),
    linear-gradient(115deg, transparent 20%, rgba(197,222,231,.035) 48%, transparent 76%);
  background-size: 170% 100%, 180% 100%, 220% 100%;
  animation: stadium-atmosphere 38s ease-in-out infinite alternate;
}

@keyframes stadium-atmosphere {
  from { background-position: 0% 0%, 100% 0%, 0% 0%; opacity: .58; }
  to { background-position: 38% 0%, 62% 0%, 100% 0%; opacity: .9; }
}

.sidebar {
  padding: 28px 17px 20px;
  border-right-color: rgba(112,215,232,.14);
  background:
    linear-gradient(180deg, rgba(7,14,18,.9), rgba(5,11,14,.88)),
    radial-gradient(circle at 30% 0%, rgba(200,255,61,.08), transparent 42%);
  box-shadow: 12px 0 36px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.sidebar .brand {
  padding: 0 10px 34px;
}

.brand-ball {
  color: #0a1010;
  background: var(--lime);
  box-shadow: 0 0 22px rgba(200,255,61,.25);
}

.nav-item {
  min-height: 44px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: #93a2a8;
}

.nav-item span {
  color: #63727a;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255,255,255,.055);
  border-left-color: rgba(200,255,61,.45);
}

.nav-item.active {
  color: #f7fff0;
  background: linear-gradient(90deg, rgba(200,255,61,.16), rgba(200,255,61,.035));
  border-left-color: var(--lime);
  box-shadow: inset 0 0 24px rgba(200,255,61,.035);
}

.nav-item.active span {
  color: var(--lime);
}

.workspace {
  min-width: 0;
  background: linear-gradient(180deg, rgba(8,13,16,.08), rgba(5,7,9,.16));
}

.topbar {
  min-height: 78px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom-color: rgba(112,215,232,.14);
  background: rgba(10,16,20,.78);
  box-shadow: 0 12px 35px rgba(0,0,0,.16);
  backdrop-filter: blur(14px);
}

.top-date {
  color: #eaf3ed;
  letter-spacing: .02em;
}

.content {
  max-width: 1640px;
  padding: clamp(24px, 4vw, 52px) clamp(20px, 4vw, 64px) 72px;
}

.page-heading {
  min-height: 80px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(112,215,232,.14);
}

.page-heading h1,
.creation-copy h1,
.menu-title h1 {
  font-weight: 750;
  letter-spacing: -.06em;
  text-shadow: 0 6px 28px rgba(0,0,0,.4);
}

.page-heading p {
  color: #9eabb0;
}

.eyebrow {
  color: #819198;
  letter-spacing: .13em;
}

.lime,
.live-tag,
.trend,
.status-pill {
  color: var(--lime);
}

.panel,
.stat-card {
  border-color: rgba(112,215,232,.14);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(22,32,38,.82), rgba(7,14,18,.88)),
    var(--panel);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(9px);
}

.panel:hover,
.stat-card:hover {
  border-color: rgba(200,255,61,.24);
}

.panel-heading {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(112,215,232,.1);
}

.panel-heading h2 {
  color: #f3f8f4;
  letter-spacing: -.02em;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after,
.manager-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), rgba(112,215,232,.5), transparent);
  opacity: .7;
}

.rating-badge {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(200,255,61,.07);
  box-shadow: 0 0 24px rgba(200,255,61,.12), inset 0 0 18px rgba(200,255,61,.05);
}

.button-primary {
  min-height: 46px;
  border: 1px solid var(--lime);
  border-radius: var(--radius-sm);
  color: #11170a;
  background: var(--lime);
  box-shadow: 0 8px 22px rgba(200,255,61,.12);
}

.button-primary:hover:not(:disabled) {
  color: #10160a;
  background: #d7ff70;
  box-shadow: 0 10px 28px rgba(200,255,61,.22);
  transform: translateY(-2px);
}

.button-quiet {
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  color: #b7c3c6;
  background: rgba(255,255,255,.025);
}

.button-quiet:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(200,255,61,.06);
}

input,
select,
.slot-select select,
.formation-picker select,
.position-select select,
.position-select input {
  border-color: var(--line-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  background: var(--surface-inset) !important;
}

input:hover,
select:hover,
input:focus,
select:focus {
  border-color: rgba(200,255,61,.65) !important;
  box-shadow: 0 0 0 3px rgba(200,255,61,.08);
}

.live-tag,
.status-pill,
.points-pill {
  border: 1px solid rgba(200,255,61,.25);
  border-radius: var(--radius-sm);
  background: rgba(200,255,61,.08);
}

.toast {
  border-color: rgba(200,255,61,.35);
  border-radius: var(--radius-md);
  color: #e9f8d7;
  background: rgba(40,57,24,.82);
  box-shadow: var(--shadow-sm);
}

table {
  min-width: 680px;
}

th {
  height: 42px;
  color: #819198;
}

td {
  height: 48px;
  border-top-color: rgba(112,215,232,.1);
  color: #c4ced0;
}

tbody tr {
  transition: background-color .16s ease;
}

tbody tr:hover {
  background: rgba(200,255,61,.045);
}

.fixture-row.next {
  background: linear-gradient(90deg, rgba(200,255,61,.12), transparent);
  box-shadow: inset 3px 0 0 var(--lime);
}

.fixture-stats-panel,
.fan-reactions > div,
.transfer-agent,
.transfer-offer,
.manager-offer,
.manager-season-cell,
.manager-board-score {
  border-color: rgba(112,215,232,.14);
  border-radius: var(--radius-sm);
  background: rgba(11,17,21,.72);
}

.transfer-agent:hover,
.transfer-offer:hover {
  border-color: rgba(200,255,61,.5);
  box-shadow: 0 8px 24px rgba(0,0,0,.24);
}

.player-hub-menu {
  border-bottom-color: rgba(112,215,232,.14);
  background: rgba(5,7,9,.82);
  backdrop-filter: blur(12px);
}

.player-hub-link {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
}

.player-hub-link:hover,
.player-hub-link:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(200,255,61,.06);
}

.profile-details b,
.profile-details small {
  color: #dce7df;
}

.profile-details small,
.card-label,
.player-stat-grid small {
  color: #819198;
}

.attribute-bar,
.meter,
.fan-meter {
  background: #202c32;
}

.attribute-bar i,
.meter span {
  background: linear-gradient(90deg, #7ea92b, var(--lime));
  box-shadow: 0 0 10px rgba(200,255,61,.2);
}

.pitch {
  border-color: rgba(200,255,61,.45);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    repeating-linear-gradient(90deg, #124d2c 0 12%, #155a32 12% 24%);
  background-size: 8% 100%, 100% 100%;
  box-shadow: inset 0 0 40px rgba(0,0,0,.24), 0 18px 36px rgba(0,0,0,.25);
  transform: perspective(1100px) rotateX(1deg);
}

.pitch-markings,
.pitch-arc {
  border-color: rgba(214,255,219,.48);
}

.pitch-slot::before {
  box-shadow: 0 8px 14px rgba(0,0,0,.32);
  transition: transform .18s ease, filter .18s ease;
}

.pitch-slot:hover::before {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 0 8px rgba(200,255,61,.55)) drop-shadow(0 8px 10px rgba(0,0,0,.45));
}

.match-formation {
  border-color: rgba(112,215,232,.14);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #101b20, #0b1115);
  box-shadow: var(--shadow-sm);
}

.match-formation.is-user {
  border-color: rgba(200,255,61,.5);
  box-shadow: 0 0 0 1px rgba(200,255,61,.25) inset, 0 12px 28px rgba(0,0,0,.2);
}

.match-formation-shape {
  color: #11170a;
  background: var(--lime);
}

.menu-shell {
  max-width: none;
  background: transparent;
}

.menu-shell--solo::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(90deg, rgba(4,8,11,.26), rgba(4,8,11,.06) 58%, rgba(4,8,11,.18)),
    linear-gradient(180deg, rgba(4,8,11,.02), rgba(4,8,11,.16)),
     url("../../data/Sunset%20Showdown%20in%20a%20Packed%20Stadium.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.menu-shell:not(.menu-shell--solo) {
  background:
    linear-gradient(115deg, rgba(5,8,10,.95) 0 42%, rgba(5,8,10,.6) 68%, rgba(5,8,10,.88)),
    #070b0e;
}

.menu-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background: linear-gradient(105deg, transparent 0 48%, rgba(255,255,255,.045) 48.2%, transparent 48.5%);
  transform: perspective(700px) rotateX(52deg) translateY(19vh) scale(1.5);
  transform-origin: center bottom;
}

.menu-hero,
.menu-card-inner {
  border-color: rgba(255,255,255,.32);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(19,27,32,.36), rgba(7,12,16,.3) 72%);
  box-shadow: 0 24px 60px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.1);
  backdrop-filter: blur(4px) saturate(125%);
}

.menu-hero::after {
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--blue), transparent 78%);
}

.menu-brand {
  border-bottom-color: rgba(112,215,232,.18);
}

.menu-title p {
  color: #a7b6ba;
}

.menu-btn {
  min-height: 58px;
  border-color: rgba(112,215,232,.14);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.035);
}

.menu-btn:hover:not(:disabled) {
  border-color: rgba(200,255,61,.55);
  color: var(--text);
  background: rgba(200,255,61,.08);
  transform: translateX(4px);
}

.button-primary.menu-btn {
  border-color: var(--lime);
  color: #11170a;
  background: var(--lime);
}

.button-primary.menu-btn:hover:not(:disabled) {
  border-color: #e1ff83;
  color: #11170a;
  background: #d7ff70;
}

.menu-foot,
.menu-card .panel {
  border-color: rgba(112,215,232,.14);
}

.menu-pitch-lines {
  background:
    radial-gradient(48% 58% at 82% 47%, rgba(200,255,61,.13), transparent 68%),
    radial-gradient(36% 42% at 82% 48%, rgba(255,255,255,.08), transparent 72%);
}

.menu-pitch-lines::before {
  border-color: rgba(214,255,219,.18);
  box-shadow: 0 0 0 34px rgba(214,255,219,.025), 0 0 80px rgba(112,215,232,.14);
}

.menu-ball {
  border-color: rgba(200,255,61,.24);
  background: radial-gradient(circle at 32% 28%, rgba(200,255,61,.18), transparent 62%);
}

@media (max-width: 920px) {
  .game-shell {
    grid-template-columns: 1fr;
  }

  .game-shell::before {
    width: 100%;
    height: 64px;
    inset: auto 0 0;
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    width: 100%;
    height: auto;
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 8px 10px;
    border-top: 1px solid rgba(112,215,232,.18);
    border-right: 0;
    box-shadow: 0 -12px 34px rgba(0,0,0,.35);
  }

  .sidebar .brand,
  .sidebar .side-label,
  .sidebar-bottom {
    display: none;
  }

  .sidebar nav {
    width: 100%;
    max-height: none;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-item {
    min-width: 48px;
    min-height: 46px;
    justify-content: center;
    padding: 0 10px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .nav-item.active {
    border-bottom-color: var(--lime);
  }

  .nav-item:not(.active) {
    font-size: 0;
  }

  .nav-item span {
    font-size: 18px;
  }

  .content {
    padding-bottom: 100px;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 68px;
    padding: 0 16px;
  }

  .top-actions {
    gap: 5px;
  }

  .slot-select {
    display: none;
  }

  .content {
    padding: 22px 14px 96px;
  }

  .page-heading {
    display: grid;
    align-items: start;
    gap: 14px;
    margin-bottom: 20px;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .stat-grid,
  .dashboard-grid,
  .profile-grid,
  .player-stat-panels,
  .performer-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .stat-card {
    padding: 15px;
  }

  .fan-reactions,
  .match-formations {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 600px;
  }

  .menu-shell {
    min-height: 100svh;
    padding: 22px 14px 32px;
  }

  .menu-shell--solo {
    justify-content: stretch;
    padding-left: 14px;
  }

  .menu-card-inner {
    padding: 20px;
  }
}

/* Subtle, consistent motion across screens and interactive game elements. */
@keyframes game-page-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes game-panel-enter {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.game-shell .content > * {
  animation: game-page-enter .32s cubic-bezier(.2,.7,.2,1) both;
}

.game-shell .content > *:nth-child(2) { animation-delay: 35ms; }
.game-shell .content > *:nth-child(3) { animation-delay: 70ms; }
.game-shell .content > *:nth-child(4) { animation-delay: 105ms; }

.game-shell .content .panel,
.game-shell .content .stat-card,
.game-shell .content .menu-card {
  animation: game-panel-enter .36s cubic-bezier(.2,.7,.2,1) both;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.game-shell .content .panel:hover,
.game-shell .content .stat-card:hover,
.game-shell .content .menu-card:hover {
  transform: translateY(-2px);
}

.game-shell .sidebar .brand,
.game-shell .sidebar .club-mini,
.game-shell .topbar {
  animation: game-page-enter .3s ease-out both;
}

@media (max-width: 920px) {
  .game-shell::before {
    background-position: center 48%;
  }

  .game-shell::after {
    opacity: .55;
    animation-duration: 52s;
  }
}

@media (max-width: 620px) {
  .game-shell::before {
    background-position: 58% center;
  }

  .game-shell .content .panel,
  .game-shell .content .stat-card {
    backdrop-filter: blur(6px);
  }
}

.game-shell .nav-item,
.game-shell .nav-group-heading,
.game-shell button,
.game-shell select,
.game-shell input {
  transition: transform .16s ease, color .16s ease, background-color .16s ease,
    border-color .16s ease, box-shadow .16s ease;
}

.game-shell .nav-item:active,
.game-shell button:active {
  transform: scale(.98);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Player PlayStyles: compact gameplay-focused ability cards. */
.playstyle-filter-row { display:flex; flex-wrap:wrap; gap:12px; margin:12px 0; }
.playstyle-filter-row label { display:grid; gap:6px; color:var(--muted); font-size:10px; letter-spacing:.08em; }
.playstyle-filter-row select { min-width:190px; padding:9px 12px; border:1px solid var(--line); border-radius:4px; color:var(--text); background:var(--panel); }
.playstyle-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:10px; }
.playstyle-card { display:flex; gap:12px; padding:15px; border:1px solid var(--line); border-radius:6px; background:var(--panel); }
.playstyle-card.is-plus { border-color:var(--lime); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--lime) 24%,transparent); background:linear-gradient(135deg,color-mix(in srgb,var(--lime) 9%,var(--panel)),var(--panel) 55%); }
.playstyle-icon { display:grid; place-items:center; flex:0 0 38px; height:38px; border-radius:50%; color:var(--lime); background:color-mix(in srgb,var(--lime) 12%,transparent); font-size:18px; }
.playstyle-card.is-plus .playstyle-icon { color:#17210a; background:var(--lime); }
.playstyle-card b,.playstyle-card small { display:block; }
.playstyle-card small { margin-top:5px; color:var(--muted); font-size:9px; letter-spacing:.06em; }
.playstyle-card p { margin:8px 0; color:var(--muted); font-size:12px; line-height:1.5; }
.playstyle-card[hidden] { display:none; }
.playstyle-comparison { margin-top:14px; }
.playstyle-compare-grid { display:grid; gap:5px; }
.playstyle-compare-grid>div { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:10px; padding:9px; border-bottom:1px solid var(--line); font-size:12px; }
.playstyle-compare-grid span { color:var(--muted); }
@media(max-width:600px) { .playstyle-compare-grid>div { grid-template-columns:1fr; gap:4px; } }


.watchlist-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:9px; padding:6px 0; }
.watchlist-card { display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:10px; padding:12px; border:1px solid var(--line); border-radius:5px; background:var(--panel); }
.watchlist-rank { color:var(--lime); font:600 18px "Cascadia Code",Consolas,monospace; }
.watchlist-card>div { display:grid; gap:4px; }
.watchlist-card>div small,.watchlist-card strong small { color:var(--muted); font-size:10px; }
.watchlist-card strong { text-align:right; color:var(--lime); }
.watchlist-change { min-width:34px; color:var(--muted); font-size:10px; text-align:right; }
.ballon-ceremony { display:grid; gap:16px; }
.ballon-winner { display:flex; justify-content:space-between; gap:18px; padding:18px; border:1px solid var(--lime); background:linear-gradient(120deg,rgba(190,255,73,.1),transparent); }
.ballon-winner h3 { margin:0 0 6px; font-size:24px; }
.ballon-winner p { margin:4px 0; color:var(--muted); }
.ballon-categories { display:grid; grid-template-columns:repeat(5,minmax(90px,1fr)); gap:8px; }
.ballon-categories span { display:grid; gap:4px; align-content:center; padding:8px; border:1px solid var(--line); text-align:center; }
.ballon-categories b { color:var(--lime); font-size:18px; }
.ballon-categories small { color:var(--muted); font-size:10px; }
@media (max-width:760px) {
  .ballon-winner { display:grid; }
  .ballon-categories { grid-template-columns:repeat(2,minmax(100px,1fr)); }
}
