/* FMC · One More Season V1.6.2 · Career history ends after age */
:root {
  --ink: #101513;
  --ink-soft: #26312b;
  --muted: #68736c;
  --paper: #f1f4ee;
  --card: #ffffff;
  --line: #d9dfd8;
  --acid: #c8ff3d;
  --acid-deep: #86b500;
  --forest: #123b2d;
  --forest-2: #09291f;
  --blue: #dcecff;
  --danger: #d84a3d;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}

.brand {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font-size: 20px;
  font-style: italic;
  font-weight: 950;
  box-shadow: inset -7px -5px 0 rgba(200, 255, 61, 0.16);
}
.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}
.brand strong {
  font-size: 13px;
  letter-spacing: 0.12em;
}
.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.crest-wrap {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}
.crest-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.crest-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8ece7;
  color: var(--forest);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* Start */
.launch-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 11% 27%,
      rgba(200, 255, 61, 0.19),
      transparent 27rem
    ),
    linear-gradient(134deg, transparent 0 59%, rgba(18, 59, 45, 0.04) 59% 100%),
    var(--paper);
}
.topbar,
.career-topbar,
.end-topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px clamp(20px, 4.7vw, 72px);
  border-bottom: 1px solid var(--line);
}
.time-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 10px 15px;
  color: #445049;
  font-size: 12px;
  font-weight: 750;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid-deep);
  box-shadow: 0 0 0 4px rgba(134, 181, 0, 0.12);
}
.launch-grid {
  width: min(1410px, 100%);
  margin: auto;
  padding: clamp(34px, 6vh, 72px) clamp(20px, 4.7vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(500px, 0.78fr);
  align-items: center;
  gap: clamp(52px, 7.5vw, 118px);
}
.eyebrow {
  margin: 0 0 18px;
  color: #547800;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.launch-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 6.3vw, 102px);
  line-height: 0.89;
  letter-spacing: -0.073em;
  font-weight: 950;
}
.launch-copy h1 span {
  display: block;
  color: var(--forest);
  font-style: italic;
}
.lead {
  max-width: 610px;
  margin: 29px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}
.career-strip {
  max-width: 530px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 15px;
}
.career-strip div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.career-strip strong {
  font-size: 22px;
  line-height: 1;
}
.career-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.career-strip i {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--line) 0 6px,
    transparent 6px 12px
  );
}
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  margin-top: 30px;
}
.feature-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4e5c54;
  font-size: 11px;
  font-weight: 750;
}
.feature-row b {
  color: #6f9600;
  font-size: 9px;
}
.setup-card {
  position: relative;
  max-width: 590px;
  padding: clamp(24px, 2.7vw, 36px);
  border: 1px solid #d4dbd3;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px rgba(24, 43, 34, 0.12);
}
.setup-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 15px -15px -15px 15px;
  border-radius: inherit;
  background: var(--forest);
}
.setup-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}
.setup-heading p,
.report-heading p,
.timeline-heading p,
.legacy-card-heading p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.setup-heading h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 29px);
  letter-spacing: -0.04em;
}
.setup-heading > span {
  color: #67736c;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.text-field,
.select-field,
.position-picker legend,
.club-picker legend {
  color: #4f5c54;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.text-field,
.select-field {
  display: block;
}
.select-field {
  margin-top: 14px;
}
.text-field input,
.select-field select {
  width: 100%;
  height: 47px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: #f8f9f6;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
.select-field select {
  cursor: pointer;
  text-transform: none;
}
.text-field input:focus,
.select-field select:focus {
  border-color: #6f9f00;
  box-shadow: 0 0 0 3px rgba(111, 159, 0, 0.12);
}
.position-picker,
.club-picker {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}
.position-picker legend,
.club-picker legend {
  margin-bottom: 9px;
}
.position-picker > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.position-picker button {
  min-height: 53px;
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.position-picker button strong,
.position-picker button span {
  display: block;
}
.position-picker button strong {
  font-size: 13px;
}
.position-picker button span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.position-picker button.active {
  border-color: var(--forest);
  background: #eef5e7;
  box-shadow: 0 0 0 1px var(--forest);
}
.academy-picker-heading {
  min-height: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.academy-picker-heading legend {
  margin: 0;
}
.academy-refresh {
  margin: -4px 0 0;
  padding: 4px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #557600;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.academy-refresh:hover {
  background: #eef5e7;
}
.academy-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.academy-option {
  min-width: 0;
  cursor: pointer;
}
.academy-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.academy-card {
  min-height: 192px;
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  transition: 150ms ease;
}
.academy-label {
  min-height: 19px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 99px;
  background: #eef1ed;
  color: #4f5d54;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.academy-international .academy-label {
  background: #e8f0f7;
  color: #24567c;
}
.academy-regional .academy-label {
  background: #f3eee8;
  color: #775638;
}
.academy-card .crest-wrap {
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
}
.academy-club-text {
  min-width: 0;
  width: 100%;
}
.academy-club-text strong,
.academy-club-text small {
  display: block;
}
.academy-club-text strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.academy-club-text small {
  min-height: 26px;
  margin-top: 3px;
  color: #66736b;
  font-size: 10px;
  line-height: 1.35;
}
.academy-quick-facts {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.academy-quick-facts small {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  color: #6b766f;
  font-size: 9px;
}
.academy-quick-facts b {
  color: var(--forest);
  font-weight: 900;
}
.academy-path {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: #566159;
  font-size: 10px;
  line-height: 1.4;
  opacity: 0;
  transition: 160ms ease;
}
.academy-option input:checked + .academy-card .academy-path {
  max-height: 60px;
  margin-top: 8px;
  opacity: 1;
}
.academy-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: 10px;
}
.academy-option input:checked + .academy-card {
  border-color: var(--forest);
  background: #f2f7ec;
  box-shadow: 0 0 0 1px var(--forest);
  transform: translateY(-2px);
}
.academy-option input:checked + .academy-card .academy-check {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--acid);
}
.academy-option input:focus-visible + .academy-card {
  outline: 3px solid rgba(111, 159, 0, 0.25);
  outline-offset: 2px;
}
.start-button,
.replay-button {
  width: 100%;
  min-height: 54px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition: 150ms ease;
}
.start-button span,
.replay-button span {
  color: var(--acid);
  font-size: 21px;
}
.start-button:hover,
.replay-button:hover {
  transform: translateY(-2px);
  background: var(--forest);
}
.start-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}
.setup-note {
  margin: 11px 0 0;
  color: #68736d;
  text-align: center;
  font-size: 11px;
}
.launch-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px clamp(20px, 4.7vw, 72px);
  border-top: 1px solid var(--line);
  color: #69736d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Career */
.career-page {
  min-height: 100svh;
  background: #edf1eb;
}
.career-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: 74px;
  padding-top: 13px;
  padding-bottom: 13px;
  background: rgba(246, 248, 244, 0.92);
  backdrop-filter: blur(14px);
}
.career-progress {
  width: min(330px, 30vw);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 13px;
}
.career-progress > span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.career-progress > span b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 11px;
}
.career-progress > i {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe5de;
}
.career-progress > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--acid-deep);
  transition: width 0.5s ease;
}
.restart-button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.career-shell {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 27px clamp(16px, 2.2vw, 34px) 44px;
}
.career-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(390px, 1.15fr) minmax(
      350px,
      0.94fr
    );
  grid-template-areas: "player report decision";
  align-items: start;
  gap: 17px;
}
.player-card,
.report-card,
.season-control,
.timeline-panel,
.legacy-card {
  border: 1px solid var(--line);
  border-radius: 22px;
}
.player-card {
  grid-area: player;
  min-height: 570px;
  position: relative;
  overflow: hidden;
  padding: 25px;
  background:
    radial-gradient(
      circle at 84% 31%,
      rgba(200, 255, 61, 0.18),
      transparent 13rem
    ),
    linear-gradient(155deg, #153e30, #08271d 72%);
  color: #fff;
}
.player-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.player-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.player-card-top p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.player-card-top strong {
  font-size: 14px;
}
.player-club-crest {
  width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}
.player-identity {
  position: relative;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 44px;
}
.ghost-number {
  position: absolute;
  top: 4px;
  right: 10px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 220px;
  line-height: 0.8;
  font-weight: 950;
  letter-spacing: -0.12em;
}
.rating-orbit {
  position: relative;
  z-index: 2;
  width: 111px;
  height: 111px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(200, 255, 61, 0.35);
  border-radius: 50%;
  background: rgba(3, 21, 15, 0.25);
  text-align: center;
}
.rating-orbit::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(200, 255, 61, 0.25);
  border-radius: 50%;
}
.rating-orbit strong {
  font-size: 48px;
  line-height: 0.85;
  letter-spacing: -0.07em;
}
.rating-orbit span {
  margin-top: 5px;
  color: var(--acid);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.rating-orbit .player-age-badge {
  position: absolute;
  z-index: 3;
  right: 4px;
  bottom: 7px;
  min-width: 34px;
  padding: 4px 6px;
  border: 1px solid rgba(56, 214, 255, 0.32);
  border-radius: 99px;
  background: rgba(4, 9, 35, 0.92);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}
.rating-orbit small {
  position: absolute;
  z-index: 3;
  top: 5px;
  right: 1px;
  min-width: 27px;
  padding: 4px;
  border-radius: 99px;
  background: #fff;
  color: var(--forest);
  font-size: 9px;
  font-weight: 900;
}
.rating-orbit small.negative {
  background: #ffe1dd;
  color: #a23128;
}
.player-name {
  position: relative;
  z-index: 2;
  margin-top: 22px;
}
.player-name > span,
.player-name p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.player-name-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 6px;
}
.player-name h1 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-title-count {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(200, 255, 61, 0.35);
  border-radius: 99px;
  background: rgba(200, 255, 61, 0.1);
  color: var(--acid) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
}
.player-title-list {
  display: flex;
  gap: 5px;
  margin: 0 0 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.player-title-list::-webkit-scrollbar {
  display: none;
}
.player-title-list small {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.player-name p {
  margin: 0;
  color: var(--acid);
}
.form-state {
  display: inline-flex;
  margin-left: 7px;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}
.form-state.hot {
  background: rgba(200, 255, 61, 0.15);
  color: var(--acid);
}
.form-state.cold {
  background: rgba(255, 116, 99, 0.14);
  color: #ff9b8e;
}
.player-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
  gap: 8px;
  margin-top: 24px;
}
.player-metrics div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}
.player-metrics span,
.player-metrics strong {
  display: block;
}
.player-metrics span {
  color: rgba(255, 255, 255, 0.61);
  font-size: 10px;
  text-transform: uppercase;
}
.player-metrics strong {
  overflow: hidden;
  margin-top: 5px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.background-status {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.background-status > span {
  min-width: 0;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}
.background-status small,
.background-status strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.background-status small {
  color: rgba(255, 255, 255, 0.57);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.background-status strong {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}
.national-team-panel {
  position: relative;
  z-index: 2;
  margin-top: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: linear-gradient(
    135deg,
    rgba(177, 222, 0, 0.1),
    rgba(255, 255, 255, 0.035)
  );
}
.national-team-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.national-team-crest {
  width: 31px;
  height: 31px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  object-fit: contain;
}
.national-team-fallback {
  display: none;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
}
.national-team-heading.crest-missing .national-team-crest {
  display: none;
}
.national-team-heading.crest-missing .national-team-fallback {
  display: grid;
}
.national-team-heading small,
.national-team-heading strong {
  display: block;
}
.national-team-heading small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.national-team-heading strong {
  margin-top: 2px;
  color: #fff;
  font-size: 11px;
}
.national-team-heading em {
  padding: 4px 7px;
  border-radius: 99px;
  background: rgba(177, 222, 0, 0.12);
  color: var(--acid);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.national-team-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.national-team-stats > span {
  padding: 7px 7px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.national-team-stats > span:first-child {
  padding-left: 0;
  border-left: 0;
}
.national-team-stats small,
.national-team-stats strong {
  display: block;
}
.national-team-stats small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.national-team-stats strong {
  margin-top: 2px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
.potential-signal {
  position: relative;
  z-index: 2;
  min-height: 65px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.09);
}
.potential-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--acid);
  font-size: 19px;
}
.potential-signal small,
.potential-signal strong {
  display: block;
}
.potential-signal small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  text-transform: uppercase;
}
.potential-signal strong {
  margin-top: 3px;
  font-size: 13px;
}
.potential-signal em {
  grid-column: 2;
  margin-top: -9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-style: normal;
}
.potential-signal.down .potential-icon {
  color: #ff9f93;
}
.report-card {
  grid-area: report;
  min-height: 570px;
  padding: clamp(21px, 2.1vw, 31px);
  background: #fff;
}
.report-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.report-heading h2 {
  max-width: 390px;
  margin: 0;
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.season-chip {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 9px;
  background: #edf2eb;
  color: #506058;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.rating-chip {
  min-width: 60px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f1f4ef;
  text-align: center;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}
.rating-chip small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.rating-chip.hot {
  background: var(--acid);
  color: var(--forest);
}
.season-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 25px;
}
.season-stat-grid div {
  padding: 14px 10px;
  border: 1px solid #e2e6e1;
  border-radius: 13px;
  background: #f8f9f7;
}
.season-stat-grid span,
.season-stat-grid strong {
  display: block;
}
.season-stat-grid span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.season-stat-grid strong {
  margin-top: 5px;
  font-size: 24px;
  letter-spacing: -0.05em;
}
.competition-summary {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cbd8de;
  border-radius: 15px;
  background: linear-gradient(135deg, #f2f8fa, #f8faf5);
}
.competition-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.competition-heading span > * {
  display: block;
}
.competition-heading small {
  color: #58717a;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.competition-heading strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
}
.competition-verdict {
  padding: 6px 8px;
  border-radius: 8px;
  background: #e7edef;
  color: #4d6168;
  font-size: 9px;
  text-transform: uppercase;
}
.competition-verdict.meister,
.competition-verdict.aufstieg,
.competition-verdict.europa {
  background: var(--acid);
  color: var(--forest);
}
.competition-verdict.abstieg {
  background: #ffe1dd;
  color: #9e3329;
}
.competition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.competition-grid > span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(78, 106, 113, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
}
.competition-grid small,
.competition-grid strong,
.competition-grid em {
  display: block;
}
.competition-grid small {
  overflow: hidden;
  color: #66777d;
  font-size: 8px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.competition-grid strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}
.competition-grid em {
  margin-top: 4px;
  overflow: hidden;
  color: #647278;
  font-size: 8px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tournament-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--forest);
  color: rgba(255, 255, 255, 0.76);
}
.tournament-strip > span:first-child > * {
  display: block;
}
.tournament-strip small {
  color: var(--acid);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tournament-strip strong {
  margin-top: 3px;
  color: #fff;
  font-size: 10px;
}
.tournament-strip > span:last-child {
  font-size: 9px;
  text-align: right;
}
.tournament-strip.winner {
  box-shadow: inset 4px 0 0 var(--acid);
}
.forecast-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(78, 106, 113, 0.16);
}
.forecast-result span > * {
  display: block;
}
.forecast-result small {
  color: #687a80;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.forecast-result strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 10px;
}
.forecast-result em {
  color: #627077;
  font-size: 8px;
  font-style: normal;
  text-align: right;
}
.growth-row {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.growth-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.growth-rating span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.growth-rating strong {
  font-size: 21px;
}
.growth-rating i {
  margin: 0 8px;
  color: #8b958f;
  font-style: normal;
}
.growth-line {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4e9e3;
}
.growth-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acid-deep), var(--acid));
}
.delta {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  font-weight: 850;
  text-align: right;
}
.positive {
  color: #558000 !important;
}
.negative {
  color: var(--danger) !important;
}
.story-box {
  position: relative;
  min-height: 91px;
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding: 18px 18px 18px 49px;
  border-radius: 14px;
  background: var(--forest);
  color: #fff;
}
.story-box > span {
  position: absolute;
  left: 17px;
  top: 9px;
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: 37px;
}
.story-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.55;
}
.season-events {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}
.injury-tag {
  padding: 6px 8px;
  border-radius: 99px;
  background: #fff0ed;
  color: #a43d32;
  font-size: 8px;
  font-weight: 800;
}
.mini-event {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid;
  border-radius: 14px;
}
.mini-event.positive {
  border-color: #bed783;
  background: #f2f9e3;
  color: #365600 !important;
}
.mini-event.negative {
  border-color: #efc3bd;
  background: #fff2ef;
  color: #8d3027 !important;
}
.mini-event-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 19px;
  font-weight: 900;
}
.mini-event-copy,
.mini-event-copy > * {
  display: block;
}
.mini-event-copy small {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}
.mini-event-copy strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 11px;
}
.mini-event-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}
.mini-event-delta {
  font-size: 16px;
  white-space: nowrap;
}
.mini-event-delta small {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  text-align: right;
  text-transform: uppercase;
}
.season-control {
  grid-area: decision;
  min-height: 570px;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 1.9vw, 28px);
  background: #f9faf7;
}
.season-control-heading {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.season-control-kicker {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 6px 8px;
  border-radius: 99px;
  background: var(--forest);
  color: var(--acid);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.season-control-heading p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.season-control-heading h2 {
  margin: 0;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.season-control-heading > span:last-child {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.club-choice-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.club-choice {
  width: 100%;
  min-height: 94px;
  display: grid;
  grid-template-columns: 42px 1fr 25px;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: 150ms ease;
}
.club-choice:hover {
  transform: translateY(-1px);
  border-color: #99ae83;
  box-shadow: 0 7px 20px rgba(25, 50, 37, 0.07);
}
.club-choice.selected {
  border-color: #6d9500;
  box-shadow:
    inset 4px 0 0 var(--acid-deep),
    0 7px 20px rgba(25, 50, 37, 0.06);
}
.club-choice:disabled {
  cursor: progress;
  opacity: 0.64;
  transform: none;
}
.club-choice-crest {
  width: 40px;
  height: 40px;
}
.club-choice-copy,
.club-choice-copy > * {
  display: block;
}
.club-choice-copy small {
  color: #68736c;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.club-choice-copy strong {
  margin-top: 3px;
  font-size: 13px;
}
.club-choice-copy em {
  margin-top: 5px;
  color: #526f00;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.club-choice-odds {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.club-choice-odds i {
  padding: 4px 6px;
  border-radius: 6px;
  background: #eef3e9;
  color: #496400;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}
.club-choice-odds i.risk {
  background: #fff0ed;
  color: #a23e34;
}
.club-choice-check {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #d6ddd4;
  border-radius: 50%;
  color: #486600;
  font-size: 12px;
}
.club-choice.selected .club-choice-check {
  border-color: var(--acid-deep);
  background: var(--acid);
}
.first-season-note {
  margin: 12px 0 0;
  color: #66716a;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}
.rating-probability-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d9e0d7;
  border-radius: 13px;
  background: #fff;
}
.rating-probability-card > div:first-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.rating-probability-card > div:first-child span > * {
  display: block;
}
.rating-probability-card > div:first-child small {
  color: #67736b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rating-probability-card > div:first-child strong {
  margin-top: 2px;
  font-size: 11px;
}
.rating-probability-card > div:first-child em {
  color: #6b766f;
  font-size: 9px;
  font-style: normal;
  text-align: right;
}
.rating-probability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 10px;
}
.rating-probability-grid span {
  padding: 8px 5px;
  border-radius: 8px;
  background: #f1f4ef;
  text-align: center;
}
.rating-probability-grid b,
.rating-probability-grid small {
  display: block;
}
.rating-probability-grid b {
  color: var(--forest);
  font-size: 12px;
}
.rating-probability-grid small {
  margin-top: 2px;
  color: #65716a;
  font-size: 8px;
}
.simulate-season-button {
  position: relative;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding: 15px 18px;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 28px rgba(10, 38, 27, 0.17);
}
.simulate-season-button:hover {
  background: #092e22;
  transform: translateY(-1px);
}
.simulate-season-button > span {
  position: relative;
  z-index: 2;
}
.simulate-season-button small,
.simulate-season-button strong {
  display: block;
}
.simulate-season-button small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.simulate-season-button strong {
  margin-top: 5px;
  color: var(--acid);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.simulate-season-button > b {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, 0.45);
  border-radius: 50%;
  color: var(--acid);
  font-size: 12px;
}
.simulate-season-button:disabled {
  cursor: progress;
  transform: none;
}
.background-progress {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 4px;
  background: var(--acid);
  animation: backgroundSeason 850ms ease-in-out both;
  transform-origin: left;
}
.season-control.is-simulating .simulate-season-button {
  background: #071f18;
}
@keyframes backgroundSeason {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.timeline-panel {
  margin-top: 17px;
  padding: 20px;
  background: #fff;
}
.timeline-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
.timeline-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}
.career-totals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.career-totals span {
  padding: 7px 9px;
  border-radius: 8px;
  background: #f0f3ef;
  color: var(--muted);
  font-size: 8px;
}
.career-totals b {
  color: var(--ink);
}
.timeline-scroll {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.timeline-season {
  min-width: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf9;
}
.timeline-season-top {
  display: flex;
  align-items: center;
  gap: 7px;
}
.timeline-season-top .crest-wrap {
  width: 25px;
  height: 25px;
}
.timeline-season-top span {
  color: var(--muted);
  font-size: 8px;
}
.timeline-season-top b {
  margin-left: auto;
  color: #6b9200;
}
.timeline-season > strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
}
.timeline-season > strong small {
  color: var(--muted);
  font-size: 8px;
}
.timeline-season p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}
.timeline-moment {
  display: block;
  margin-top: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  background: #edf4df;
  color: #4f7000;
  font-size: 9px;
  font-weight: 900;
}
.timeline-toggle {
  margin-top: 13px;
  padding: 9px 11px;
  border: 1px solid #d5ddd3;
  border-radius: 9px;
  background: #f7f9f6;
  color: var(--forest);
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}
.empty-timeline {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
}
.empty-timeline i {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    #d8ded7 0 7px,
    transparent 7px 14px
  );
}
.season-reveal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 18, 13, 0.76);
  backdrop-filter: blur(8px);
  pointer-events: none;
  animation: revealBackdrop 1650ms ease both;
}
.season-reveal > div {
  min-width: min(330px, calc(100vw - 48px));
  padding: 31px;
  border: 1px solid rgba(200, 255, 61, 0.36);
  border-radius: 23px;
  background:
    radial-gradient(
      circle at 65% 25%,
      rgba(200, 255, 61, 0.18),
      transparent 12rem
    ),
    var(--forest-2);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  animation: revealCard 1650ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}
.season-reveal small {
  display: block;
  color: rgba(255, 255, 255, 0.67);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.season-reveal strong {
  display: inline-block;
  margin-top: 22px;
  color: #fff;
  font-size: 80px;
  line-height: 0.8;
  letter-spacing: -0.08em;
}
.season-reveal > div > span {
  display: inline-block;
  margin-left: 8px;
  color: var(--acid);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.season-reveal > div > b {
  display: block;
  width: fit-content;
  margin: 15px auto 0;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(200, 255, 61, 0.12);
  font-size: 15px;
}
.season-reveal p {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}
@keyframes revealBackdrop {
  0% {
    opacity: 0;
  }
  14%,
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes revealCard {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  18%,
  76% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
}

/* Career end */
.end-page {
  min-height: 100svh;
  padding-bottom: 50px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(200, 255, 61, 0.13),
      transparent 23rem
    ),
    var(--forest-2);
  color: #fff;
}
.end-topbar {
  border-color: rgba(255, 255, 255, 0.1);
}
.end-topbar .brand-mark {
  background: #fff;
  color: var(--forest);
}
.end-topbar .brand small {
  color: rgba(255, 255, 255, 0.5);
}
.end-topbar > span {
  color: rgba(255, 255, 255, 0.49);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legacy-hero {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding: clamp(45px, 7vw, 90px) clamp(20px, 4.5vw, 65px) 45px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}
.legacy-copy > p {
  margin: 0 0 10px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legacy-copy h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(49px, 7vw, 96px);
  line-height: 0.89;
  letter-spacing: -0.07em;
}
.legacy-copy > span {
  display: block;
  margin-top: 19px;
  color: rgba(255, 255, 255, 0.61);
  font-size: 15px;
}
.career-archetype {
  width: fit-content;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px 8px;
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 255, 61, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.career-archetype b {
  font-size: 10px;
}
.career-archetype > span {
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--acid);
  color: var(--forest);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.career-archetype small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
}
.club-path {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
}
.club-path > span {
  display: flex;
  align-items: center;
}
.club-path .crest-wrap {
  width: 36px;
  height: 36px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
}
.club-path i {
  margin: 0 5px;
  color: rgba(255, 255, 255, 0.3);
  font-style: normal;
}
.legacy-dial {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--acid) var(--legacy-angle),
    rgba(255, 255, 255, 0.09) 0
  );
}
.legacy-dial::before {
  content: "";
  position: absolute;
  width: 189px;
  height: 189px;
  border-radius: 50%;
  background: var(--forest-2);
}
.legacy-dial > div {
  position: relative;
  z-index: 2;
  text-align: center;
}
.legacy-dial small,
.legacy-dial span {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legacy-dial strong {
  display: block;
  font-size: 66px;
  line-height: 0.9;
  letter-spacing: -0.08em;
}
.legacy-grid {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
}
.legacy-card {
  min-height: 275px;
  padding: 23px;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.055);
}
.legacy-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.legacy-card-heading p {
  color: rgba(255, 255, 255, 0.48);
}
.legacy-card-heading .crest-wrap {
  width: 39px;
  height: 39px;
}
.final-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 25px;
}
.final-stat-grid div {
  padding: 13px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.065);
}
.final-stat-grid span,
.final-stat-grid strong {
  display: block;
}
.final-stat-grid span {
  color: rgba(255, 255, 255, 0.43);
  font-size: 8px;
  text-transform: uppercase;
}
.final-stat-grid strong {
  margin-top: 6px;
  font-size: 23px;
}
.final-stat-grid .final-title-stat {
  grid-column: 1 / -1;
  background: linear-gradient(
    110deg,
    rgba(177, 222, 0, 0.16),
    rgba(255, 255, 255, 0.065)
  );
}
.final-stat-grid .final-title-stat strong {
  color: var(--acid);
}
.final-stat-grid .final-title-stat small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  line-height: 1.45;
}
.best-season-club {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.best-season-club .crest-wrap {
  width: 52px;
  height: 52px;
}
.best-season-club strong,
.best-season-club small {
  display: block;
}
.best-season-club strong {
  font-size: 13px;
}
.best-season-club small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
}
.best-year > p {
  margin: 19px 0 0;
  color: rgba(255, 255, 255, 0.57);
  font-size: 10px;
  line-height: 1.55;
}
.career-highlights-card .legacy-card-heading > strong {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}
.career-highlight-list {
  display: grid;
  gap: 7px;
  margin-top: 19px;
}
.career-highlight-list > span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.career-highlight-list small {
  color: rgba(255, 255, 255, 0.43);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.career-highlight-list strong {
  color: var(--acid);
  font-size: 11px;
}
.career-highlight-list em {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  font-style: normal;
}
.legacy-breakdown-card {
  grid-column: 1 / -1;
  min-height: 0;
}
.legacy-breakdown-card .legacy-card-heading > strong {
  color: var(--acid);
  font-size: 15px;
}
.legacy-breakdown-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}
.legacy-breakdown-list > span {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.legacy-breakdown-list small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 800;
}
.legacy-breakdown-list strong {
  color: #fff;
  font-size: 10px;
}
.legacy-breakdown-list i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}
.legacy-breakdown-list i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--acid);
}
.end-actions {
  width: min(1260px, calc(100% - 40px));
  margin: 17px auto 0;
  display: flex;
  gap: 10px;
}
.replay-button {
  width: auto;
  min-width: 310px;
  margin: 0;
}
.new-career-button {
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

button:focus-visible {
  outline: 3px solid rgba(134, 181, 0, 0.4);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .career-main-grid {
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
    grid-template-areas: "player report" "decision decision";
  }
  .season-control {
    min-height: 0;
  }
  .club-choice-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .simulate-season-button {
    margin-top: 16px;
  }
  .legacy-grid {
    grid-template-columns: 1fr 1fr;
  }
  .career-highlights-card {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media (max-width: 940px) {
  .launch-page {
    overflow: visible;
  }
  .launch-grid {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .setup-card {
    width: min(640px, calc(100% - 15px));
    margin: 0 auto 15px 0;
  }
  .career-progress {
    display: none;
  }
  .legacy-hero {
    grid-template-columns: 1fr;
  }
  .legacy-dial {
    width: 180px;
    height: 180px;
  }
  .legacy-dial::before {
    width: 153px;
    height: 153px;
  }
  .legacy-dial strong {
    font-size: 52px;
  }
}

@media (max-width: 760px) {
  .career-topbar {
    min-height: 66px;
  }
  .career-topbar .brand strong {
    font-size: 10px;
  }
  .career-topbar .brand small {
    font-size: 7px;
  }
  .restart-button {
    padding: 8px 10px;
  }
  .career-shell {
    padding: 14px 12px 32px;
  }
  .career-main-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "player" "report" "decision";
  }
  .player-card,
  .report-card,
  .season-control {
    min-height: 0;
  }
  .player-card {
    padding: 21px;
  }
  .player-identity {
    min-height: 225px;
  }
  .club-choice-list {
    grid-template-columns: 1fr;
  }
  .timeline-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .career-totals {
    justify-content: flex-start;
  }
  .timeline-scroll {
    scroll-snap-type: x proximity;
  }
  .timeline-season {
    min-width: 138px;
    scroll-snap-align: start;
  }
  .legacy-grid {
    grid-template-columns: 1fr;
  }
  .career-highlights-card {
    grid-column: auto;
  }
  .legacy-card {
    min-height: 0;
  }
  .end-actions {
    flex-direction: column;
  }
  .replay-button {
    width: 100%;
    min-width: 0;
  }
  .legacy-breakdown-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* OMS V1.8.1: complete career ledger with the next-season decision directly below it. */
.career-impact-strip {
  grid-template-columns: minmax(300px, 1fr) 108px minmax(250px, 0.58fr);
}
.career-main-grid {
  display: block;
}
.timeline-panel {
  min-height: 0;
}
.career-national-total {
  display: inline-flex !important;
}
.timeline-scroll {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
}
.timeline-season--expanded {
  grid-template-columns: minmax(150px, 0.82fr) 68px minmax(300px, 1.7fr);
  gap: 12px;
  min-height: 96px;
  padding: 14px;
}
.timeline-season-club .crest-wrap {
  width: 48px;
  height: 48px;
}
.timeline-season-rating strong {
  font-size: 34px;
}
.timeline-season-metrics span {
  padding: 9px 7px;
}
.timeline-season-metrics strong {
  font-size: 12px;
}
.timeline-decision {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(126, 151, 216, 0.22);
}
.timeline-decision .season-control--compact {
  width: 100%;
  min-height: 0;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 27, 70, 0.86), rgba(10, 9, 34, 0.94));
}
.timeline-decision .season-control--compact .season-control-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 5px 14px;
}
.timeline-decision .season-control--compact .season-control-kicker {
  grid-row: 1 / span 3;
  align-self: start;
}
.timeline-decision .season-control--compact .season-control-heading p,
.timeline-decision .season-control--compact .season-control-heading h2,
.timeline-decision .season-control--compact .season-control-subcopy {
  grid-column: 2;
}
.timeline-decision .season-control--compact .club-choice-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}
.timeline-decision .season-control--compact .club-choice {
  min-height: 154px;
}

@media (max-width: 1500px) {
  .timeline-scroll {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .career-shell {
    padding: 10px 10px 28px;
  }
  .career-impact-strip {
    grid-template-columns: minmax(0, 1fr) 74px;
  }
  .timeline-scroll {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .timeline-decision {
    margin-top: 14px;
    padding-top: 14px;
  }
  .timeline-decision .season-control--compact {
    position: static;
    inset: auto;
    max-height: none;
    overflow: visible;
    padding: 13px;
    border-radius: 14px;
    box-shadow: none;
  }
  .timeline-decision .season-control-grabber {
    display: none;
  }
  .timeline-decision .season-control--compact .season-control-heading {
    display: block;
  }
  .timeline-decision .season-control--compact .season-control-heading h2 {
    font-size: 19px;
  }
  .timeline-decision .season-control--compact .club-choice-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }
  .timeline-decision .season-control--compact .club-choice {
    min-width: 0;
    min-height: 142px;
    grid-template-columns: 1fr;
    grid-template-rows: 38px 1fr;
    justify-items: center;
    padding: 10px 5px;
    text-align: center;
  }
  .timeline-decision .season-control--compact .club-choice-crest {
    width: 38px;
    height: 38px;
  }
  .timeline-decision .season-control--compact .club-choice-copy small {
    white-space: normal;
  }
  .timeline-decision .season-control--compact .club-choice-copy strong {
    font-size: 8px;
  }
  .timeline-decision .season-control--compact .club-choice-copy em {
    font-size: 7px;
  }
  .timeline-decision .season-control--compact .club-choice-check {
    position: absolute;
    top: 6px;
    right: 6px;
  }
  .timeline-decision .season-control--compact .simulate-season-button {
    position: static;
    margin-top: 9px;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  .timeline-season--expanded {
    grid-template-columns: minmax(0, 1fr) 58px;
  }
  .timeline-season-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .timeline-season-metrics span:last-child {
    grid-column: auto;
  }
  .timeline-season-metrics span {
    padding: 7px 4px;
  }
  .timeline-season-metrics small {
    font-size: 5px;
  }
  .timeline-season-metrics strong {
    font-size: 9px;
  }
}

/* OMS V1.15.0 · strict Legacy score and transparent achievements */
.legacy-dial small {
  color: #9ca9ce;
  font-size: 10px;
}

.legacy-dial span {
  margin-top: 7px;
  color: #75ddff;
  font-size: 10px;
}

.legacy-breakdown-card {
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 92% 0, rgba(151, 72, 255, 0.13), transparent 24rem),
    rgba(10, 16, 46, 0.88);
}

.legacy-definition {
  max-width: 920px;
  margin: 12px 0 0;
  color: #bcc6e5;
  font-size: 12px;
  line-height: 1.65;
}

.legacy-achievement-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 23px;
  border-top: 1px solid rgba(138, 160, 232, 0.18);
}

.legacy-achievement-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.legacy-achievement-heading span {
  color: #75ddff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-achievement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.legacy-achievement-list > article {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(138, 160, 232, 0.16);
  border-radius: 6px;
  background: rgba(20, 30, 71, 0.55);
}

.legacy-achievement-list > article.is-unlocked {
  border-color: rgba(56, 214, 255, 0.38);
  background: linear-gradient(110deg, rgba(35, 116, 211, 0.2), rgba(112, 54, 190, 0.16));
}

.legacy-achievement-list > article.is-locked {
  opacity: 0.62;
}

.legacy-achievement-list > article > div {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
}

.legacy-achievement-list b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 221, 255, 0.42);
  border-radius: 50%;
  color: #75ddff;
  font-size: 11px;
}

.legacy-achievement-list strong {
  color: #fff;
  font-size: 11px;
}

.legacy-achievement-list em {
  color: #75ddff;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-achievement-list p {
  margin: 8px 0 0 28px;
  color: #aab5d6;
  font-size: 10px;
  line-height: 1.5;
}

.legacy-achievement-list small {
  display: block;
  margin: 7px 0 0 28px;
  color: #dce4ff;
  font-size: 9px;
  font-weight: 800;
}

.legacy-perfect-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 15px;
  padding: 15px 16px;
  border-left: 3px solid #a75cff;
  border-radius: 4px;
  background: rgba(111, 50, 177, 0.12);
}

.legacy-perfect-rule strong {
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.legacy-perfect-rule span {
  color: #aeb9dc;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .legacy-definition {
    font-size: 11px;
  }

  .legacy-achievement-list {
    grid-template-columns: 1fr;
  }

  .legacy-achievement-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .legacy-perfect-rule {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .legacy-perfect-rule strong {
    white-space: normal;
  }
}

/* OMS V1.9.0 · reference-led mobile career UI */
.career-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 14% 10%, rgba(39, 116, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 16%, rgba(136, 57, 255, 0.1), transparent 26rem),
    #03040b;
}

.career-page::before {
  opacity: 0.12;
}

body:has(.career-page) .fmc-return {
  position: fixed;
  z-index: 30;
  top: max(18px, env(safe-area-inset-top));
  left: 18px;
  width: auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(111, 190, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 15, 37, 0.74);
  color: rgba(235, 241, 255, 0.76);
  font-size: 8px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(18px);
}

.career-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: 18px max(22px, calc((100vw - 920px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 4, 11, 0.82);
  backdrop-filter: blur(24px);
}

.career-topbar .brand {
  grid-column: 2;
  justify-self: center;
  gap: 10px;
}

.career-topbar .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.career-topbar .brand strong {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.career-topbar .brand small {
  margin-top: 2px;
  font-size: 6px;
  letter-spacing: 0.24em;
}

.career-topbar .career-progress {
  grid-column: 3;
  justify-self: end;
  width: min(230px, 26vw);
}

.career-topbar .restart-button {
  grid-column: 3;
  justify-self: end;
  margin-top: 46px;
  border: 0;
  background: transparent;
  color: rgba(202, 213, 244, 0.58);
  font-size: 8px;
}

.career-shell,
.career-main-grid {
  display: block;
}

.career-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.career-profile-summary {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.career-overall-tile {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(68, 198, 255, 0.45);
  border-radius: 26px;
  background: linear-gradient(145deg, #16477c, #342067 78%);
  box-shadow: inset 0 0 36px rgba(50, 172, 255, 0.12);
}

.career-overall-tile small {
  color: #55dbff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.career-overall-tile strong {
  margin-top: 1px;
  color: #fff;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 54px;
  font-style: italic;
  line-height: 0.98;
}

.career-profile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  min-height: 128px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid rgba(132, 154, 222, 0.16);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(11, 15, 30, 0.97), rgba(13, 11, 27, 0.98));
}

.career-profile-chips {
  display: flex;
  gap: 7px;
  align-items: center;
}

.career-profile-chips > span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf2ff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.career-profile-chips img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.career-profile-chips .position-chip {
  background: linear-gradient(105deg, rgba(40, 109, 222, 0.8), rgba(130, 45, 207, 0.84));
}

.career-current-club {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  align-self: end;
  min-width: 0;
}

.career-current-club .crest-wrap {
  width: 40px;
  height: 40px;
}

.career-current-club > span:last-child {
  display: grid;
  min-width: 0;
}

.career-current-club strong {
  overflow: hidden;
  color: #f7f8ff;
  font-size: 18px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-current-club small {
  margin-top: 5px;
  overflow: hidden;
  color: #777f9b;
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-profile-values {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
}

.career-profile-values span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  text-align: right;
  white-space: nowrap;
}

.career-profile-values small {
  color: #7d849e;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.career-profile-values strong {
  color: #fff;
  font-size: 21px;
  line-height: 1;
}

.career-ledger {
  margin-top: 12px;
}

.career-ledger-head,
.career-ledger-row {
  display: grid;
  grid-template-columns: 54px minmax(150px, 1fr) 54px 54px 54px 54px;
  align-items: center;
}

.career-ledger-head {
  height: 32px;
  padding: 0 12px;
  color: rgba(173, 183, 213, 0.52);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.career-ledger-head span:not(:nth-child(2)) {
  text-align: center;
}

.career-ledger-rows,
.career-ledger-future {
  display: grid;
  gap: 3px;
}

.career-ledger-row {
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: #dfe5fb;
}

.career-ledger-row.is-played {
  border-color: rgba(124, 151, 224, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.career-ledger-row > span:not(.career-ledger-club),
.career-ledger-row > strong:not(.career-ledger-age) {
  text-align: center;
}

.career-ledger-age {
  justify-self: start;
  min-width: 39px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.career-ledger-club {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.career-ledger-club .crest-wrap {
  width: 31px;
  height: 31px;
}

.career-ledger-club > span {
  display: grid;
  min-width: 0;
}

.career-ledger-club strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-ledger-club small {
  margin-top: 2px;
  color: rgba(164, 177, 215, 0.55);
  font-size: 7px;
}

.career-ledger-overall {
  justify-self: center;
  min-width: 37px;
  padding: 5px 6px;
  border-radius: 9px;
  background: linear-gradient(120deg, rgba(47, 129, 235, 0.74), rgba(111, 54, 201, 0.72));
  color: #fff;
  font-size: 13px;
}

.career-ledger-row > span:not(.career-ledger-club) {
  color: #c2cae4;
  font-size: 11px;
  font-weight: 800;
}

.career-ledger-row.is-future {
  min-height: 30px;
  background: rgba(255, 255, 255, 0.008);
  opacity: 0.2;
}

.career-ledger-row.is-future .career-ledger-age {
  background: rgba(255, 255, 255, 0.07);
}

.career-ledger-national {
  display: grid;
  min-height: 52px;
  margin-top: 6px;
  padding: 0 12px;
  border-color: rgba(53, 215, 255, 0.22);
  background: linear-gradient(90deg, rgba(30, 84, 154, 0.18), rgba(83, 46, 151, 0.14));
  color: #dfe5fb;
}

.career-ledger-national .career-ledger-club .national-crest {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.career-ledger-national .career-ledger-club strong {
  font-size: 12px;
}

.career-ledger-national .career-ledger-club small {
  overflow: hidden;
  color: rgba(73, 214, 255, 0.72);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.career-ledger .timeline-decision {
  margin-top: 10px;
  padding-top: 0;
  border: 0;
}

.career-ledger .season-control--compact {
  padding: 20px;
  border: 1px solid rgba(126, 151, 216, 0.14);
  border-radius: 24px;
  background: rgba(10, 12, 24, 0.96);
}

.career-ledger .season-control-grabber,
.career-ledger .season-control-kicker,
.career-ledger .season-control-heading p {
  display: none;
}

.career-ledger .season-control-heading {
  display: block;
  text-align: left;
}

.career-ledger .season-control-heading h2 {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: 21px;
  font-style: normal;
  letter-spacing: -0.03em;
  text-transform: none;
}

.career-ledger .season-control-subcopy {
  display: block;
  max-width: 620px;
  margin-top: 6px;
  color: #80879f;
  font-size: 10px;
  line-height: 1.45;
}

.career-ledger .club-choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.career-ledger .club-choice {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 150px;
  grid-template-columns: 1fr;
  grid-template-rows: 58px 1fr;
  align-items: start;
  justify-items: center;
  gap: 9px;
  padding: 15px 10px 12px;
  border: 1px solid rgba(133, 153, 214, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.career-ledger .club-choice.selected {
  border-color: rgba(61, 216, 255, 0.7);
  background: linear-gradient(150deg, rgba(23, 76, 139, 0.7), rgba(49, 22, 95, 0.72));
  box-shadow: inset 3px 0 0 #36d8ff;
}

.career-ledger .club-choice-crest {
  width: 58px;
  height: 58px;
}

.career-ledger .club-choice-copy {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.career-ledger .club-choice-copy small {
  color: #6ee3ff;
  font-size: 6px;
  letter-spacing: 0.12em;
  white-space: normal;
}

.career-ledger .club-choice-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.career-ledger .club-choice-copy em {
  color: #38d6ff;
  font-size: 8px;
}

.career-ledger .club-choice-check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.career-ledger .simulate-season-button {
  position: static;
  min-height: 68px;
  margin-top: 12px;
  border-radius: 18px;
  box-shadow: none;
}

@media (max-width: 760px) {
  body:has(.career-page) .fmc-return {
    top: max(13px, env(safe-area-inset-top));
    left: 10px;
    min-height: 26px;
    padding: 0 8px;
    font-size: 6px;
  }

  .career-topbar {
    min-height: 76px;
    padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  }

  .career-topbar .brand {
    gap: 7px;
  }

  .career-topbar .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .career-topbar .brand strong {
    font-size: 11px;
  }

  .career-topbar .brand small,
  .career-topbar .career-progress {
    display: none;
  }

  .career-topbar .restart-button {
    margin: 0;
    font-size: 7px;
  }

  .career-shell {
    width: 100%;
    padding: 15px 14px 44px;
  }

  .career-profile-summary {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px;
  }

  .career-overall-tile {
    min-height: 88px;
    border-radius: 20px;
  }

  .career-overall-tile small {
    font-size: 7px;
  }

  .career-overall-tile strong {
    font-size: 39px;
  }

  .career-profile-card {
    min-height: 88px;
    padding: 10px 11px;
    border-radius: 20px;
  }

  .career-profile-chips {
    gap: 4px;
  }

  .career-profile-chips > span {
    min-height: 20px;
    gap: 4px;
    padding: 0 7px;
    font-size: 6px;
  }

  .career-profile-chips img {
    width: 12px;
    height: 12px;
  }

  .career-current-club {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 6px;
  }

  .career-current-club .crest-wrap {
    width: 26px;
    height: 26px;
  }

  .career-current-club strong {
    font-size: 11px;
  }

  .career-current-club small {
    margin-top: 2px;
    font-size: 5px;
  }

  .career-profile-values {
    gap: 5px;
    padding-left: 7px;
  }

  .career-profile-values span {
    gap: 4px;
  }

  .career-profile-values small {
    font-size: 5px;
  }

  .career-profile-values strong {
    font-size: 12px;
  }

  .career-ledger {
    margin-top: 8px;
  }

  .career-ledger-head,
  .career-ledger-row {
    grid-template-columns: 38px minmax(104px, 1fr) 38px 35px 32px 32px;
  }

  .career-ledger-head {
    height: 25px;
    padding: 0 6px;
    font-size: 5px;
  }

  .career-ledger-row {
    min-height: 42px;
    padding: 0 6px;
    border-radius: 10px;
  }

  .career-ledger-age {
    min-width: 31px;
    padding: 5px 4px;
    font-size: 10px;
  }

  .career-ledger-club {
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 6px;
  }

  .career-ledger-club .crest-wrap {
    width: 23px;
    height: 23px;
  }

  .career-ledger-club strong {
    font-size: 8px;
  }

  .career-ledger-club small {
    font-size: 5px;
  }

  .career-ledger-overall {
    min-width: 30px;
    padding: 4px 3px;
    font-size: 10px;
  }

  .career-ledger-row > span:not(.career-ledger-club) {
    font-size: 8px;
  }

  .career-ledger-row.is-future {
    min-height: 24px;
  }

  .career-ledger-national {
    display: grid;
    min-height: 42px;
    padding: 0 6px;
  }

  .career-ledger-national .career-ledger-club .national-crest {
    width: 23px;
    height: 23px;
  }

  .career-ledger-national .career-ledger-club strong {
    font-size: 8px;
  }

  .career-ledger-national .career-ledger-club small {
    font-size: 5px;
  }

  .career-ledger .season-control--compact {
    padding: 14px 11px 12px;
    border-radius: 19px;
  }

  .career-ledger .season-control-heading h2 {
    font-size: 16px;
  }

  .career-ledger .season-control-subcopy {
    margin-top: 4px;
    font-size: 7px;
  }

  .career-ledger .club-choice-list {
    gap: 6px;
    margin-top: 12px;
  }

  .career-ledger .club-choice {
    min-height: 126px;
    grid-template-rows: 45px 1fr;
    gap: 7px;
    padding: 12px 5px 9px;
    border-radius: 16px;
  }

  .career-ledger .club-choice-crest {
    width: 45px;
    height: 45px;
  }

  .career-ledger .club-choice-copy strong {
    font-size: 8px;
  }

  .career-ledger .club-choice-copy small {
    font-size: 5px;
  }

  .career-ledger .club-choice-copy em {
    font-size: 6px;
  }

  .career-ledger .club-choice-check {
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
  }

  .career-ledger .simulate-season-button {
    min-height: 58px;
    border-radius: 15px;
  }

  .career-ledger .simulate-season-button small {
    font-size: 6px;
  }

  .career-ledger .simulate-season-button strong {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .topbar {
    min-height: 70px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
  }
  .brand strong {
    font-size: 10px;
  }
  .brand small {
    font-size: 7px;
  }
  .time-pill {
    max-width: 124px;
    padding: 8px 9px;
    font-size: 8px;
    line-height: 1.25;
  }
  .launch-grid {
    padding-left: 17px;
    padding-right: 17px;
  }
  .launch-copy h1 {
    font-size: clamp(50px, 16vw, 72px);
  }
  .feature-row {
    display: grid;
  }
  .career-strip {
    gap: 9px;
  }
  .career-strip strong {
    font-size: 18px;
  }
  .setup-card {
    padding: 21px 15px;
    border-radius: 20px;
  }
  .position-picker button span {
    display: none;
  }
  .academy-options {
    grid-template-columns: 1fr;
  }
  .academy-card {
    min-height: 105px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    grid-template-rows: auto auto 1fr;
    column-gap: 10px;
  }
  .academy-label {
    grid-column: 1 / 4;
    width: max-content;
    margin-bottom: 8px;
  }
  .academy-card .crest-wrap {
    grid-column: 1;
    grid-row: 2 / 4;
    margin: 0;
  }
  .academy-club-text {
    grid-column: 2;
    grid-row: 2;
  }
  .academy-quick-facts {
    grid-column: 2 / 4;
    grid-row: 3;
  }
  .academy-path {
    grid-column: 2 / 4;
    grid-row: 4;
  }
  .launch-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .season-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .competition-grid {
    grid-template-columns: 1fr;
  }
  .competition-grid em {
    white-space: normal;
  }
  .tournament-strip,
  .forecast-result {
    align-items: flex-start;
    flex-direction: column;
  }
  .tournament-strip > span:last-child,
  .forecast-result em {
    text-align: left;
  }
  .report-heading h2 {
    font-size: 21px;
  }
  .player-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .player-metrics div:first-child {
    grid-column: 1 / -1;
  }
  .legacy-hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  .legacy-copy h1 {
    font-size: 51px;
  }
  .legacy-grid,
  .end-actions {
    width: calc(100% - 24px);
  }
  .final-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .end-topbar > span {
    display: none;
  }
  .mini-event {
    grid-template-columns: 35px 1fr;
  }
  .mini-event-delta {
    grid-column: 2;
    font-size: 14px;
  }
  .mini-event-delta small {
    display: inline;
  }
  .rating-probability-card > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
  .rating-probability-card > div:first-child em {
    text-align: left;
  }
  .legacy-breakdown-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: var(--forest-2) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .end-topbar,
  .end-actions {
    display: none !important;
  }
  .end-page {
    min-height: auto;
  }
  .legacy-hero {
    padding-top: 28px;
  }
  .legacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .legacy-card,
  .legacy-hero {
    break-inside: avoid;
  }
}

/* FMC Hub Theme V1.1 ------------------------------------------------------- */
:root {
  color-scheme: dark;
  --ink: #f7f8ff;
  --ink-soft: #c5ccec;
  --muted: #8d99ba;
  --paper: #030513;
  --card: rgba(11, 16, 45, 0.9);
  --line: rgba(154, 178, 242, 0.2);
  --acid: #38d6ff;
  --acid-deep: #3b8cff;
  --forest: #11193f;
  --forest-2: #030513;
  --blue: #172c67;
  --danger: #ff6d7f;
}

body {
  background:
    radial-gradient(
      circle at 13% 12%,
      rgba(52, 139, 255, 0.2),
      transparent 32rem
    ),
    radial-gradient(
      circle at 88% 18%,
      rgba(177, 61, 255, 0.16),
      transparent 31rem
    ),
    #030513;
}

.launch-page,
.career-page,
.end-page {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgba(3, 5, 19, 0.94),
      rgba(8, 12, 37, 0.78) 50%,
      rgba(3, 5, 19, 0.94)
    ),
    radial-gradient(
      ellipse at 50% 108%,
      rgba(29, 99, 185, 0.36),
      transparent 46%
    ),
    linear-gradient(155deg, #050a25, #02030d 60%, #09031b);
  color: var(--ink);
}

.launch-page::before,
.career-page::before,
.end-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.topbar,
.career-topbar,
.end-topbar {
  border-color: rgba(173, 193, 255, 0.14);
  background: linear-gradient(
    90deg,
    rgba(3, 5, 18, 0.9),
    rgba(9, 13, 38, 0.7),
    rgba(3, 5, 18, 0.9)
  );
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(22px);
}

.brand-mark {
  width: 47px;
  height: 47px;
  border: 1px solid rgba(111, 190, 255, 0.46);
  border-radius: 4px 15px 4px 15px;
  background: linear-gradient(
    145deg,
    rgba(53, 144, 255, 0.24),
    rgba(117, 64, 255, 0.28)
  );
  color: #d9f4ff;
  box-shadow:
    0 0 35px rgba(55, 124, 255, 0.2),
    inset 0 0 25px rgba(81, 180, 255, 0.08);
  font-family: "Barlow Condensed", Impact, sans-serif;
}

.brand strong,
.launch-copy h1,
.setup-heading h2,
.report-heading h2,
.season-control-heading h2,
.timeline-heading h2,
.legacy-copy h1,
.player-name h1 {
  font-family: "Barlow Condensed", Impact, sans-serif;
  text-transform: uppercase;
}

.brand small {
  color: #6f7d9e;
}
.time-pill {
  border-color: rgba(117, 143, 218, 0.24);
  border-radius: 5px;
  background: rgba(24, 31, 66, 0.46);
  color: #a6b1cf;
  letter-spacing: 0.05em;
}
.live-dot {
  background: #66f0aa;
  box-shadow: 0 0 12px #66f0aa;
}
.eyebrow,
.feature-row b,
.academy-refresh,
.club-choice-copy em,
.timeline-season-top b,
.positive {
  color: var(--acid) !important;
}
.launch-copy h1 {
  letter-spacing: -0.045em;
}
.launch-copy h1 span {
  color: transparent;
  background: linear-gradient(90deg, #52c8ff, #b06cff);
  background-clip: text;
  -webkit-background-clip: text;
}
.feature-row span {
  color: #a2acc8;
}
.career-strip i {
  background: repeating-linear-gradient(
    90deg,
    rgba(99, 181, 255, 0.42) 0 6px,
    transparent 6px 12px
  );
}

.setup-card,
.report-card,
.season-control,
.timeline-panel,
.legacy-card {
  border-color: rgba(138, 160, 232, 0.22);
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    rgba(18, 25, 65, 0.82),
    rgba(6, 8, 26, 0.92)
  );
  box-shadow:
    0 30px 82px rgba(0, 0, 0, 0.34),
    inset 0 0 45px rgba(72, 103, 207, 0.055);
  backdrop-filter: blur(18px);
}
.setup-card::before {
  inset: 10px -10px -10px 10px;
  border: 1px solid rgba(56, 214, 255, 0.17);
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    rgba(43, 118, 218, 0.28),
    rgba(127, 43, 175, 0.24)
  );
}
.setup-heading > span,
.text-field,
.select-field,
.position-picker legend,
.club-picker legend {
  color: #8d99ba;
}
.text-field input,
.select-field select,
.position-picker button,
.academy-card,
.club-choice,
.restart-button {
  border-color: rgba(139, 163, 229, 0.22);
  border-radius: 5px;
  background: rgba(8, 13, 38, 0.78);
  color: var(--ink);
}
.text-field input:focus,
.select-field select:focus {
  border-color: var(--cyan, #38d6ff);
  box-shadow: 0 0 0 3px rgba(56, 214, 255, 0.13);
}
.position-picker button:hover,
.academy-card:hover,
.club-choice:hover {
  border-color: rgba(92, 194, 255, 0.56);
  background: rgba(17, 33, 78, 0.9);
}
.position-picker button.active,
.academy-option input:checked + .academy-card,
.club-choice.selected {
  border-color: rgba(56, 214, 255, 0.76);
  background: linear-gradient(
    120deg,
    rgba(30, 105, 210, 0.3),
    rgba(89, 42, 165, 0.28)
  );
  box-shadow:
    inset 3px 0 0 var(--acid),
    0 12px 30px rgba(17, 57, 151, 0.16);
}
.academy-label,
.academy-international .academy-label,
.academy-regional .academy-label {
  border: 1px solid rgba(127, 156, 229, 0.2);
  border-radius: 3px;
  background: rgba(31, 52, 105, 0.48);
  color: #91ceff;
}
.academy-option input:checked + .academy-card .academy-check,
.club-choice.selected .club-choice-check {
  border-color: var(--acid);
  background: linear-gradient(145deg, var(--acid), #7561ff);
  color: #030513;
}
.academy-refresh:hover {
  background: rgba(56, 214, 255, 0.09);
}
.start-button,
.replay-button,
.simulate-season-button {
  border: 1px solid rgba(134, 212, 255, 0.4);
  border-radius: 7px;
  background: linear-gradient(110deg, #1c5fcb, #5334ca 67%, #8924ba);
  box-shadow:
    0 18px 50px rgba(30, 72, 204, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.06);
}
.start-button:hover,
.replay-button:hover,
.simulate-season-button:hover {
  background: linear-gradient(110deg, #2876e4, #6949df 67%, #a231d1);
}
.start-button span,
.replay-button span,
.simulate-season-button strong,
.simulate-season-button > b {
  color: #d9f6ff;
}
.launch-footer {
  border-color: rgba(173, 193, 255, 0.12);
  color: #6f7d9e;
  background: rgba(3, 5, 18, 0.55);
}

.career-progress > i,
.growth-line {
  background: rgba(105, 124, 181, 0.22);
}
.career-progress > i b,
.growth-line span,
.background-progress {
  background: linear-gradient(90deg, #2d8cff, #38d6ff, #a95aff);
}
.player-card {
  border-radius: 8px;
  border-color: rgba(106, 174, 255, 0.3);
  background:
    radial-gradient(
      circle at 84% 28%,
      rgba(56, 214, 255, 0.18),
      transparent 13rem
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(183, 69, 255, 0.17),
      transparent 15rem
    ),
    linear-gradient(155deg, #132657, #080d2a 72%);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}
.rating-orbit {
  border-color: rgba(56, 214, 255, 0.5);
  background: rgba(4, 9, 35, 0.44);
  box-shadow: 0 0 40px rgba(56, 143, 255, 0.16);
}
.rating-orbit::after {
  border-color: rgba(166, 91, 255, 0.36);
}
.rating-orbit small {
  background: #d9f4ff;
  color: #101b44;
}
.player-title-count,
.national-team-heading em {
  border-color: rgba(56, 214, 255, 0.36);
  background: rgba(56, 214, 255, 0.1);
}
.national-team-panel {
  background: linear-gradient(
    135deg,
    rgba(56, 145, 255, 0.14),
    rgba(176, 76, 255, 0.08)
  );
}
.season-chip,
.rating-chip,
.season-stat-grid div,
.growth-row,
.career-totals span,
.timeline-season {
  border: 1px solid rgba(129, 151, 214, 0.16);
  border-radius: 5px;
  background: rgba(8, 13, 37, 0.65);
  color: var(--ink);
}
.rating-chip.hot {
  background: linear-gradient(145deg, #38d6ff, #7768ff);
  color: #030513;
}
.story-box {
  border: 1px solid rgba(95, 186, 255, 0.2);
  border-radius: 6px;
  background: linear-gradient(
    120deg,
    rgba(24, 73, 151, 0.48),
    rgba(74, 35, 128, 0.45)
  );
}
.mini-event.positive {
  border-color: rgba(75, 226, 175, 0.34);
  background: rgba(32, 122, 94, 0.16);
  color: #72efba !important;
}
.mini-event.negative {
  border-color: rgba(255, 109, 127, 0.34);
  background: rgba(151, 43, 67, 0.16);
  color: #ff8b9b !important;
}
.mini-event-copy strong {
  color: var(--ink);
}
.mini-event-icon {
  background: rgba(91, 115, 183, 0.18);
  color: #b9d9ff;
}
.empty-timeline i {
  background: repeating-linear-gradient(
    90deg,
    rgba(76, 176, 255, 0.34) 0 7px,
    transparent 7px 13px
  );
}
.season-control-kicker {
  border: 1px solid rgba(56, 214, 255, 0.3);
  border-radius: 3px;
  background: rgba(45, 112, 217, 0.24);
}
.club-choice-check {
  border-color: rgba(126, 151, 216, 0.28);
  color: #83dfff;
}
.season-control.is-simulating .simulate-season-button {
  background: linear-gradient(110deg, #173f87, #3e2f99 67%, #682085);
}

.end-page {
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(56, 214, 255, 0.14),
      transparent 24rem
    ),
    radial-gradient(
      circle at 12% 70%,
      rgba(184, 63, 255, 0.13),
      transparent 26rem
    ),
    #030513;
}
.end-topbar .brand-mark {
  background: linear-gradient(
    145deg,
    rgba(53, 144, 255, 0.28),
    rgba(117, 64, 255, 0.34)
  );
  color: #d9f4ff;
}
.career-archetype {
  border-color: rgba(56, 214, 255, 0.25);
  border-radius: 5px;
  background: rgba(22, 32, 75, 0.55);
}
.career-archetype > span {
  border-radius: 3px;
  background: linear-gradient(90deg, #38d6ff, #9268ff);
  color: #030513;
}
.legacy-dial {
  background: conic-gradient(
    #38d6ff var(--legacy-angle),
    rgba(150, 94, 255, 0.18) 0
  );
  box-shadow: 0 0 65px rgba(56, 144, 255, 0.16);
}
.legacy-dial::before {
  background: #070b22;
}
.final-stat-grid div,
.career-highlight-list > span {
  border: 1px solid rgba(138, 160, 232, 0.14);
  border-radius: 5px;
  background: rgba(26, 36, 82, 0.48);
}
.final-stat-grid .final-title-stat {
  background: linear-gradient(
    110deg,
    rgba(55, 159, 255, 0.18),
    rgba(131, 61, 205, 0.14)
  );
}
.new-career-button {
  border-radius: 6px;
  background: rgba(16, 24, 59, 0.56);
}

.fmc-return {
  border-color: rgba(111, 190, 255, 0.44);
  border-radius: 5px;
  background: linear-gradient(
    110deg,
    rgba(24, 78, 169, 0.94),
    rgba(85, 47, 180, 0.94)
  );
  box-shadow: 0 15px 38px rgba(19, 55, 157, 0.34);
  color: #fff;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 13px;
}
.fmc-return:hover {
  box-shadow: 0 18px 46px rgba(35, 91, 221, 0.45);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline-color: rgba(56, 214, 255, 0.72);
}

/* V1.2 systems in the FMC hub theme */
.fmc-return {
  position: static;
  width: 100%;
  min-height: 42px;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}
.fmc-return:hover {
  box-shadow: none;
}
.academy-quick-facts b,
.rating-probability-grid b {
  color: var(--ink);
}
.academy-quick-facts small,
.academy-path,
.rating-probability-card > div:first-child small,
.rating-probability-card > div:first-child em,
.rating-probability-grid small {
  color: #8f9bbc;
}
.rating-probability-card {
  border-color: rgba(138, 160, 232, 0.2);
  background: rgba(8, 13, 37, 0.72);
}
.rating-probability-grid span {
  background: rgba(24, 34, 79, 0.62);
}
.club-choice-odds i,
.timeline-moment {
  background: rgba(56, 214, 255, 0.1);
  color: #68dbff;
}
.legacy-breakdown-list > span {
  border: 1px solid rgba(138, 160, 232, 0.14);
}
.legacy-breakdown-list i {
  background: rgba(117, 137, 199, 0.2);
}
.legacy-breakdown-list i b {
  background: linear-gradient(90deg, #2d8cff, #38d6ff, #a95aff);
}
.season-reveal > div {
  border-color: rgba(56, 214, 255, 0.42);
  background:
    radial-gradient(
      circle at 65% 25%,
      rgba(56, 214, 255, 0.2),
      transparent 12rem
    ),
    #070b22;
}
.season-reveal > div > span,
.season-reveal > div > b {
  color: #68dbff !important;
}

/* Legacy competition-system theme */
.competition-summary {
  border-color: rgba(96, 184, 255, 0.24);
  background: linear-gradient(
    135deg,
    rgba(18, 31, 74, 0.88),
    rgba(18, 24, 59, 0.8)
  );
}
.competition-heading small,
.competition-grid small,
.forecast-result small {
  color: #8293c0;
}
.competition-heading strong,
.competition-grid strong,
.forecast-result strong {
  color: var(--ink);
}
.competition-verdict {
  background: rgba(104, 127, 194, 0.18);
  color: #a8b9e6;
}
.competition-verdict.meister,
.competition-verdict.aufstieg,
.competition-verdict.europa {
  background: linear-gradient(100deg, #2d8cff, #765fff);
  color: #fff;
}
.competition-verdict.abstieg {
  background: rgba(214, 64, 92, 0.2);
  color: #ff8b9b;
}
.competition-grid > span {
  border-color: rgba(133, 157, 225, 0.15);
  background: rgba(8, 13, 37, 0.66);
}
.competition-grid em,
.forecast-result em {
  color: #8f9bbc;
}
.tournament-strip {
  background: linear-gradient(
    110deg,
    rgba(25, 75, 159, 0.7),
    rgba(80, 40, 139, 0.7)
  );
}
.forecast-result {
  border-color: rgba(130, 153, 218, 0.16);
}
.club-choice-odds i.risk {
  background: rgba(214, 64, 92, 0.16);
  color: #ff8b9b;
}

/* V1.4 density layer: existing FMC styling, less vertical space. */
.fmc-return {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
}

.launch-grid {
  padding-top: clamp(24px, 4vh, 46px);
  padding-bottom: clamp(25px, 4vh, 48px);
  gap: clamp(36px, 5vw, 74px);
}

.launch-copy h1 {
  font-size: clamp(50px, 5.25vw, 82px);
}
.lead {
  max-width: 570px;
  margin-top: 18px;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.45;
}
.career-strip {
  margin-top: 21px;
}
.feature-row {
  margin-top: 19px;
}
.setup-card {
  padding: clamp(19px, 2vw, 28px);
}
.setup-heading {
  margin-bottom: 16px;
}
.position-picker,
.club-picker {
  margin-top: 14px;
}
.position-picker > div {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.position-picker button {
  min-height: 50px;
  padding: 6px 4px;
}
.position-picker button strong {
  font-size: 11px;
}
.position-picker button span {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-card--compact {
  min-height: 0;
  padding: 20px;
}
.player-card--compact .player-club-crest {
  width: 44px;
  height: 44px;
}
.player-card--compact .player-identity {
  min-height: 0;
  padding-top: 22px;
}
.player-card--compact .ghost-number {
  top: 10px;
  font-size: 145px;
}
.player-card--compact .rating-orbit {
  width: 86px;
  height: 86px;
}
.player-card--compact .rating-orbit strong {
  font-size: 38px;
}
.player-card--compact .player-name {
  margin-top: 13px;
}
.player-card--compact .player-name h1 {
  font-size: clamp(25px, 2vw, 34px);
}
.player-card--compact .player-title-list {
  margin-bottom: 6px;
}
.player-card--compact .player-metrics {
  margin-top: 14px;
}
.player-card--compact .player-metrics div {
  padding: 8px;
}
.player-card--compact .background-status {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.player-card--compact .background-status > span {
  padding: 7px;
}
.player-card--compact .background-status small {
  font-size: 7px;
}
.player-card--compact .background-status strong {
  font-size: 9px;
}
.player-card--compact .national-team-panel {
  padding: 7px 9px;
}
.player-card--compact .national-team-stats {
  margin-top: 6px;
}
.player-card--compact .national-team-stats > span {
  padding-top: 5px;
}
.player-card--compact .national-team-stats strong {
  font-size: 13px;
}
.player-card--compact .potential-signal {
  min-height: 51px;
  margin-top: 8px;
  padding: 7px;
}
.player-card--compact .potential-icon {
  width: 30px;
  height: 30px;
  font-size: 15px;
}
.player-card--compact .potential-signal small {
  font-size: 8px;
}
.player-card--compact .potential-signal strong {
  font-size: 11px;
}
.player-card--compact .potential-signal em {
  margin-top: -6px;
  font-size: 8px;
}

.report-card--compact {
  min-height: 0;
  padding: clamp(18px, 1.8vw, 25px);
}
.report-card--compact .report-heading h2 {
  max-width: none;
  font-size: clamp(21px, 1.8vw, 27px);
}
.season-stat-grid--compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}
.season-stat-grid--compact div {
  min-width: 0;
  padding: 12px 9px;
}
.season-stat-grid--compact strong {
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.season-stat-compare {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.25;
}
.season-report-flags {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  margin-top: 10px;
}
.season-report-flags span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}
.season-report-flags b {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.season-report-flags.has-injury span:first-child {
  border-color: rgba(255, 92, 121, 0.38);
  background: rgba(255, 92, 121, 0.08);
  color: #ff9cad;
}

.season-control--compact {
  min-height: 0;
}
.season-control--compact .season-control-heading {
  padding-bottom: 13px;
}
.season-control--compact .season-control-kicker {
  margin-bottom: 10px;
}
.season-control--compact .club-choice {
  min-height: 72px;
}
.season-control--compact .simulate-season-button {
  min-height: 66px;
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .position-picker > div {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .season-stat-grid--compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .launch-grid {
    gap: 28px;
    padding-top: 30px;
    padding-bottom: 42px;
  }
  .launch-copy h1 {
    max-width: 650px;
  }
}

@media (max-width: 760px) {
  .player-card--compact .background-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .season-stat-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .launch-grid {
    gap: 23px;
    padding-top: 23px;
    padding-bottom: 34px;
  }
  .launch-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
  }
  .lead {
    margin-top: 13px;
    font-size: 13px;
  }
  .career-strip {
    margin-top: 16px;
  }
  .feature-row {
    margin-top: 15px;
  }
  .setup-card {
    padding: 17px 14px;
  }
  .position-picker > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .position-picker button {
    min-height: 43px;
  }
  .player-card--compact {
    padding: 17px;
  }
  .player-card--compact .player-identity {
    padding-top: 16px;
  }
  .player-card--compact .rating-orbit {
    width: 76px;
    height: 76px;
  }
  .player-card--compact .rating-orbit strong {
    font-size: 33px;
  }
  .player-card--compact .player-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-card--compact .player-metrics div:first-child {
    grid-column: auto;
  }
  .player-card--compact .player-metrics span {
    font-size: 8px;
  }
  .player-card--compact .player-metrics strong {
    font-size: 10px;
  }
  .season-stat-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .season-stat-grid--compact div:last-child {
    grid-column: 1 / -1;
  }
  .season-report-flags {
    grid-template-columns: 1fr;
  }
  .season-control--compact .club-choice {
    min-height: 68px;
  }
}

/* OMS update 06: profile report left, career history center, offers right. */
.career-shell {
  width: min(1880px, 100%);
}
.career-main-grid {
  grid-template-columns: minmax(355px, 0.92fr) minmax(390px, 1.02fr) minmax(
      430px,
      1.16fr
    );
  grid-template-areas: "player timeline decision";
  gap: 17px;
}
.player-card--compact {
  min-height: 0;
}
.profile-season-report {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(3, 9, 35, 0.28);
}
.profile-season-report .report-heading p {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-season-report .report-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.1;
}
.profile-season-report .season-stat-grid--compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.profile-season-report .season-stat-grid--compact div {
  min-width: 0;
  padding: 8px 6px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}
.profile-season-report .season-stat-grid span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 6px;
}
.profile-season-report .season-stat-grid strong {
  overflow: hidden;
  margin-top: 3px;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-season-report .season-stat-compare {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.49);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-season-report .season-report-flags {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}
.profile-season-report .season-report-flags span {
  padding: 7px;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.62);
  font-size: 7px;
}
.profile-season-report .season-report-flags b {
  color: #fff;
  font-size: 6px;
}

.timeline-panel {
  grid-area: timeline;
  min-height: 100%;
  margin-top: 0;
  padding: 19px;
}
.timeline-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}
.career-totals {
  justify-content: flex-start;
}
.timeline-scroll {
  display: grid;
  max-height: 650px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
}
.timeline-season {
  min-width: 0;
}

.season-control--compact {
  min-height: 100%;
}
.season-control--compact .club-choice-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.season-control--compact .club-choice {
  position: relative;
  min-height: 166px;
  grid-template-columns: 1fr;
  grid-template-rows: 45px 1fr;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 13px 9px 11px;
  text-align: center;
}
.season-control--compact .club-choice.selected {
  box-shadow:
    inset 0 4px 0 var(--fmc-cyan, #38d6ff),
    0 7px 20px rgba(20, 49, 140, 0.15);
}
.season-control--compact .club-choice-crest {
  width: 43px;
  height: 43px;
}
.season-control--compact .club-choice-copy {
  min-width: 0;
}
.season-control--compact .club-choice-copy small {
  overflow: hidden;
  color: var(--fmc-cyan, #38d6ff);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.season-control--compact .club-choice-copy strong {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
}
.season-control--compact .club-choice-copy em {
  font-size: 8px;
  line-height: 1.25;
}
.season-control--compact .club-choice-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 19px;
  height: 19px;
  font-size: 9px;
}

@media (max-width: 1280px) {
  .career-main-grid {
    grid-template-columns: minmax(330px, 0.9fr) minmax(390px, 1.1fr);
    grid-template-areas: "player timeline" "decision decision";
  }
  .season-control--compact {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .career-main-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "player" "timeline" "decision";
  }
  .timeline-scroll {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .timeline-season {
    min-width: 138px;
  }
  .season-control--compact .club-choice-list {
    grid-template-columns: 1fr;
  }
  .season-control--compact .club-choice {
    min-height: 74px;
    grid-template-columns: 42px 1fr 24px;
    grid-template-rows: 1fr;
    justify-items: stretch;
    text-align: left;
  }
  .season-control--compact .club-choice-check {
    position: static;
  }
}

@media (max-width: 560px) {
  .profile-season-report .season-stat-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-season-report .season-stat-grid--compact div:last-child {
    grid-column: 1 / -1;
  }
  .profile-season-report .season-report-flags {
    grid-template-columns: 1fr;
  }
}

/* OMS update 07: remove the profile column and turn career history into the main information surface. */
.career-main-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(440px, 0.85fr);
  grid-template-areas: "timeline decision";
  align-items: stretch;
}
.timeline-panel {
  padding: clamp(24px, 2vw, 34px);
}
.timeline-heading h2 {
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 1;
}
.career-totals {
  gap: 8px;
}
.career-totals span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 9px 12px;
  font-size: 9px;
}
.career-totals b {
  font-size: 11px;
}
.career-national-total img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.career-national-total,
.timeline-national,
.timeline-injury,
.timeline-season--expanded .timeline-moment {
  display: none !important;
}
.timeline-scroll {
  grid-template-columns: 1fr;
  max-height: 690px;
  gap: 10px;
  margin-top: 20px;
}
.timeline-season--expanded {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 78px minmax(420px, 2.5fr);
  align-items: center;
  gap: 16px;
  min-height: 108px;
  padding: 18px;
  border-color: rgba(74, 118, 220, 0.28);
  border-radius: 14px;
  background: linear-gradient(
    105deg,
    rgba(18, 46, 103, 0.7),
    rgba(7, 13, 43, 0.86)
  );
}

/* OMS update 08: season history deliberately ends with the age metric. */
.timeline-season-club,
.timeline-national {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.timeline-season-club .crest-wrap {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
}
.timeline-season-club span,
.timeline-national span,
.timeline-season-club span > *,
.timeline-national span > * {
  display: block;
  min-width: 0;
}
.timeline-season-club small,
.timeline-national small,
.timeline-season-metrics small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline-season-club strong,
.timeline-national strong {
  overflow: hidden;
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-season-club em,
.timeline-national em {
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-season-rating {
  display: grid;
  justify-items: start;
}
.timeline-season-rating strong {
  color: #fff;
  font-size: 38px;
  line-height: 0.9;
}
.timeline-season-rating small {
  margin-top: 5px;
  color: var(--fmc-cyan, #38d6ff);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.timeline-season-rating em {
  margin-top: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}
.timeline-season-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.timeline-season-metrics span {
  min-width: 0;
  padding: 11px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
}
.timeline-season-metrics strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-national img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
}
.timeline-injury,
.timeline-season--expanded .timeline-moment {
  grid-column: 1 / -1;
  margin-top: -4px;
  padding: 7px 9px;
  border-radius: 7px;
  font-size: 7px;
}
.timeline-injury {
  background: rgba(255, 74, 108, 0.13);
  color: #ff8ca2;
}
.timeline-season--expanded .timeline-moment {
  background: rgba(56, 214, 255, 0.1);
  color: var(--fmc-cyan, #38d6ff);
}
.season-control--compact {
  min-height: 0;
}

@media (max-width: 1400px) {
  .timeline-season--expanded {
    grid-template-columns: minmax(180px, 0.9fr) 76px minmax(300px, 1.5fr);
  }
  .timeline-national {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 980px) {
  .career-main-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "timeline" "decision";
  }
  .timeline-scroll {
    display: grid;
    max-height: none;
    overflow: visible;
  }
  .timeline-season--expanded {
    grid-template-columns: minmax(170px, 0.9fr) 76px minmax(300px, 1.5fr);
  }
}

@media (max-width: 680px) {
  .timeline-panel {
    padding: 18px;
  }
  .timeline-heading h2 {
    font-size: 28px;
  }
  .career-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .career-totals span {
    justify-content: center;
  }
  .career-national-total {
    grid-column: 1 / -1;
  }
  .timeline-season--expanded {
    grid-template-columns: 1fr 70px;
    gap: 12px;
    min-height: 0;
  }
  .timeline-season-metrics,
  .timeline-national {
    grid-column: 1 / -1;
  }
  .timeline-season-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-season-metrics span:last-child {
    grid-column: 1 / -1;
  }
}

/* OMS V1.8.0: compact Copero-inspired hierarchy in the FMC visual system. */
.career-impact-strip {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) 92px minmax(
      210px,
      0.72fr
    ) minmax(520px, 1.85fr);
  align-items: stretch;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(88, 132, 236, 0.3);
  border-radius: 16px;
  background: linear-gradient(
    108deg,
    rgba(18, 48, 108, 0.92),
    rgba(8, 15, 48, 0.96) 52%,
    rgba(38, 17, 76, 0.92)
  );
  box-shadow: 0 18px 54px rgba(1, 6, 26, 0.2);
}
.career-impact-player {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}
.career-impact-crest {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
}
.career-impact-player > span,
.career-impact-player > span > * {
  display: block;
  min-width: 0;
}
.career-impact-player small,
.career-impact-rating small,
.career-impact-primary small,
.career-impact-signal small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.career-impact-player strong {
  overflow: hidden;
  margin-top: 4px;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.career-impact-player em {
  overflow: hidden;
  margin-top: 5px;
  color: var(--fmc-cyan, #38d6ff);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.career-impact-rating {
  display: grid;
  place-content: center;
  justify-items: center;
  border: 1px solid rgba(56, 214, 255, 0.32);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(31, 111, 215, 0.44),
    rgba(109, 34, 183, 0.38)
  );
}
.career-impact-rating strong {
  margin-top: 3px;
  color: #fff;
  font-size: 38px;
  line-height: 0.9;
}
.career-impact-rating small {
  color: var(--fmc-cyan, #38d6ff);
}
.career-impact-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.career-impact-primary span,
.career-impact-signal {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}
.career-impact-primary strong,
.career-impact-signal strong {
  overflow: hidden;
  margin-top: 5px;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.career-impact-signals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.career-impact-signal {
  position: relative;
  padding-top: 13px;
}
.career-impact-signal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 99px;
  background: rgba(126, 151, 216, 0.32);
}
.career-impact-signal.hot::before {
  background: #56e88d;
}
.career-impact-signal.cold::before {
  background: #ff6684;
}
.career-impact-signal.up::before {
  background: var(--fmc-cyan, #38d6ff);
}
.career-impact-signal em {
  overflow: hidden;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 6px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.season-control-grabber {
  display: none;
}
.season-control-subcopy {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 1320px) {
  .career-impact-strip {
    grid-template-columns: minmax(270px, 1fr) 84px minmax(190px, 0.7fr);
  }
  .career-impact-signals {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .career-topbar {
    min-height: 56px;
    padding: 8px 12px;
  }
  .career-topbar .brand-mark {
    width: 34px;
    height: 34px;
  }
  .career-shell {
    padding: 10px 10px 62svh;
  }
  .career-impact-strip {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 8px;
    margin-bottom: 10px;
    padding: 9px;
    border-radius: 14px;
  }
  .career-impact-player {
    padding: 8px;
  }
  .career-impact-crest {
    width: 42px;
    height: 42px;
  }
  .career-impact-player strong {
    font-size: 15px;
  }
  .career-impact-rating strong {
    font-size: 31px;
  }
  .career-impact-primary {
    grid-column: 1 / -1;
  }
  .career-impact-primary span {
    min-height: 52px;
  }
  .career-impact-signals {
    grid-column: 1 / -1;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .career-impact-signals::-webkit-scrollbar {
    display: none;
  }
  .career-impact-signal {
    flex: 0 0 136px;
    min-height: 62px;
  }
  .career-main-grid {
    display: block;
  }
  .timeline-panel {
    padding: 14px;
    border-radius: 14px;
  }
  .timeline-heading {
    gap: 9px;
  }
  .timeline-heading h2 {
    font-size: 24px;
  }
  .career-totals {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .career-totals::-webkit-scrollbar {
    display: none;
  }
  .career-totals span {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 9px;
  }
  .timeline-scroll {
    gap: 7px;
    margin-top: 12px;
  }
  .timeline-season--expanded {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 9px;
    padding: 12px;
  }
  .timeline-season-club .crest-wrap {
    width: 42px;
    height: 42px;
  }
  .timeline-season-rating strong {
    font-size: 31px;
  }
  .timeline-season-metrics {
    gap: 5px;
  }
  .timeline-season-metrics span {
    padding: 8px 7px;
  }
  .season-control--compact {
    position: fixed;
    z-index: 80;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    max-height: min(58svh, 560px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 12px 12px 10px;
    border: 1px solid rgba(95, 142, 255, 0.48);
    border-radius: 24px 24px 13px 13px;
    background: linear-gradient(
      150deg,
      rgba(8, 15, 45, 0.985),
      rgba(18, 13, 53, 0.985)
    );
    box-shadow: 0 -18px 70px rgba(0, 4, 21, 0.64);
    backdrop-filter: blur(18px);
  }
  .season-control-grabber {
    width: 42px;
    height: 4px;
    display: block;
    margin: 0 auto 9px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
  }
  .season-control--compact .season-control-heading {
    padding-bottom: 10px;
  }
  .season-control--compact .season-control-kicker {
    margin-bottom: 7px;
  }
  .season-control--compact .season-control-heading h2 {
    font-size: 18px;
  }
  .season-control--compact .club-choice-list {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .season-control--compact .club-choice-list::-webkit-scrollbar {
    display: none;
  }
  .season-control--compact .club-choice {
    flex: 0 0 min(72vw, 250px);
    min-height: 132px;
    grid-template-columns: 1fr;
    grid-template-rows: 42px 1fr;
    justify-items: center;
    padding: 12px 10px;
    border-radius: 14px;
    scroll-snap-align: start;
    text-align: center;
  }
  .season-control--compact .club-choice-check {
    position: absolute;
    top: 8px;
    right: 8px;
  }
  .season-control--compact .simulate-season-button {
    position: sticky;
    bottom: -2px;
    min-height: 58px;
    margin-top: 10px;
    border-radius: 11px;
    box-shadow: 0 -10px 25px rgba(4, 8, 31, 0.68);
  }
  .club-picker {
    margin-top: 16px;
    padding: 13px;
    border: 1px solid rgba(95, 142, 255, 0.24);
    border-radius: 18px;
    background: rgba(4, 10, 34, 0.55);
  }
  .academy-options {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .academy-options::-webkit-scrollbar {
    display: none;
  }
  .academy-option {
    flex: 0 0 min(74vw, 250px);
    scroll-snap-align: start;
  }
  .academy-card {
    min-height: 170px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 12px;
    text-align: center;
  }
  .academy-label {
    grid-column: auto;
    width: auto;
  }
  .academy-card .crest-wrap {
    width: 52px;
    height: 52px;
    margin: 2px 0 9px;
  }
  .academy-club-text,
  .academy-quick-facts,
  .academy-path {
    width: 100%;
    grid-column: auto;
    grid-row: auto;
  }
}

/* OMS V1.8.1 final cascade: full career ledger and inline season decision. */
.career-impact-strip {
  grid-template-columns: minmax(300px, 1fr) 108px minmax(250px, 0.58fr);
}
.career-main-grid {
  display: block;
  grid-template-columns: 1fr;
  grid-template-areas: "timeline";
}
.timeline-panel {
  min-height: 0;
}
.career-national-total {
  display: inline-flex !important;
}
.timeline-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
}
.timeline-season--expanded {
  grid-template-columns: minmax(150px, 0.82fr) 68px minmax(300px, 1.7fr);
  gap: 12px;
  min-height: 96px;
  padding: 14px;
}
.timeline-decision {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(126, 151, 216, 0.22);
}
.timeline-decision .season-control--compact {
  position: static;
  inset: auto;
  width: 100%;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 27, 70, 0.86), rgba(10, 9, 34, 0.94));
  box-shadow: none;
}
.timeline-decision .season-control-grabber {
  display: none;
}
.timeline-decision .season-control--compact .club-choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
  overflow: visible;
}
.timeline-decision .season-control--compact .club-choice {
  min-width: 0;
  min-height: 154px;
}
.timeline-decision .season-control--compact .simulate-season-button {
  position: static;
  box-shadow: none;
}

@media (max-width: 1500px) {
  .timeline-scroll {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .career-shell {
    padding: 10px 10px 28px;
  }
  .career-impact-strip {
    grid-template-columns: minmax(0, 1fr) 74px;
  }
  .timeline-scroll {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .timeline-decision .season-control--compact {
    padding: 13px;
    border-radius: 14px;
  }
  .timeline-decision .season-control--compact .club-choice-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .timeline-decision .season-control--compact .club-choice {
    min-width: 0;
    min-height: 142px;
    grid-template-columns: 1fr;
    grid-template-rows: 38px 1fr;
    justify-items: center;
    padding: 10px 5px;
    text-align: center;
  }
  .timeline-decision .season-control--compact .club-choice-crest {
    width: 38px;
    height: 38px;
  }
  .timeline-decision .season-control--compact .club-choice-copy small {
    white-space: normal;
  }
  .timeline-decision .season-control--compact .club-choice-copy strong {
    font-size: 8px;
  }
  .timeline-decision .season-control--compact .club-choice-copy em {
    font-size: 7px;
  }
  .timeline-decision .season-control--compact .club-choice-check {
    position: absolute;
    top: 6px;
    right: 6px;
  }
}

@media (max-width: 520px) {
  .timeline-season--expanded {
    grid-template-columns: minmax(0, 1fr) 58px;
  }
  .timeline-season-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .timeline-season-metrics span:last-child {
    grid-column: auto;
  }
  .timeline-season-metrics span {
    padding: 7px 4px;
  }
  .timeline-season-metrics small {
    font-size: 5px;
  }
  .timeline-season-metrics strong {
    font-size: 9px;
  }
}
