.market-value {
  white-space: nowrap;
}
.market-trend {
  display: inline-block;
  margin-left: 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.market-trend-up {
  color: var(--green-light);
}
.market-trend-flat {
  color: var(--muted);
}
.market-trend-down {
  color: var(--red);
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range:
    U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308,
    U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700-latin.woff2") format("woff2");
  unicode-range:
    U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308,
    U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-800-latin.woff2") format("woff2");
  unicode-range:
    U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308,
    U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2");
  unicode-range:
    U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308,
    U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2");
  unicode-range:
    U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308,
    U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}
:root {
  --green: #143d2b;
  --green-deep: #0b291d;
  --green-light: #2d634a;
  --green-status: #276d40;
  --green-status-light: #70d190;
  --cream: #f2e8cd;
  --paper: #fffaf0;
  --paper-input: #fffdf7;
  --paper-focus: #fff3bf;
  --paper-warning: #fff3cf;
  --paper-table: #e2d7ba;
  --paper-active: #fff2c7;
  --paper-error: #f6d8cd;
  --paper-danger: #fff0ed;
  --ink: #18211d;
  --yellow: #f2b705;
  --red: #b43a20;
  --red-deep: #7b2415;
  --red-danger: #b42318;
  --line: rgba(24, 33, 29, 0.2);
  --muted: #4a574f;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body:
    "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --shadow:
    0 12px 28px rgba(11, 41, 29, 0.14), 0 3px 8px rgba(11, 41, 29, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
::selection {
  background: var(--yellow);
  color: var(--green-deep);
}
a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  background: var(--yellow);
  padding: 0.7rem 1rem;
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  background: var(--green-deep);
  color: var(--paper);
  border-bottom: 4px solid var(--yellow);
}
.header-inner {
  width: min(1280px, calc(100% - 2rem));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--green-deep);
  clip-path: polygon(
    12% 0,
    88% 0,
    100% 21%,
    82% 33%,
    82% 100%,
    18% 100%,
    18% 33%,
    0 21%
  );
}
.brand-mark span {
  font: 800 1.05rem var(--display);
  letter-spacing: 0.05em;
}
.brand-name {
  font: 600 1.35rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.brand-name strong {
  color: var(--yellow);
}
.utility-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}
.user-chip {
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 250, 240, 0.3);
}
.page-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: auto;
  min-height: calc(100vh - 145px);
}
.site-footer {
  width: min(1280px, calc(100% - 2rem));
  margin: 5rem auto 0;
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.95;
}
h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.015em;
}
.button {
  border: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.button-primary,
.button-buy {
  background: var(--yellow);
  color: var(--green-deep);
}
.button-primary:hover,
.button-buy:hover {
  background: #ffd12e;
}
.button-secondary {
  background: var(--green);
  color: var(--paper);
}
.button-full {
  width: 100%;
}
.muted {
  color: var(--muted);
  font-size: 0.85rem;
}
.locker-hero {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: clamp(3rem, 8vw, 7rem) max(1rem, calc((100vw - 1280px) / 2));
  overflow: hidden;
  background-color: var(--green);
  color: var(--paper);
  background-image: radial-gradient(
    circle,
    rgba(242, 232, 205, 0.18) 1.2px,
    transparent 1.3px
  );
  background-size: 22px 22px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 4rem;
}
.locker-hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 58px,
    var(--green-deep) 58px 68px
  );
}
.locker-copy {
  max-width: 740px;
}
.locker-copy h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 10vw, 8.5rem);
}
.locker-copy h1 span {
  color: var(--yellow);
}
.locker-copy p {
  max-width: 610px;
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: #f7f1df;
}
.jersey-rail {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(0.5rem, 2vw, 1.4rem);
  padding-top: 3rem;
}
.jersey-rail:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: #d3c7a7;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}
.jersey-tag {
  width: clamp(68px, 8vw, 104px);
  height: clamp(92px, 11vw, 140px);
  background: #ebe1c5;
  color: var(--green-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(
    13% 0,
    36% 8%,
    64% 8%,
    87% 0,
    100% 20%,
    84% 33%,
    84% 100%,
    16% 100%,
    16% 33%,
    0 20%
  );
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.22));
  transform-origin: 50% 0;
  animation: kit-settle 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.jersey-tag:nth-child(2) {
  animation-delay: 0.07s;
}
.jersey-tag:nth-child(3) {
  animation-delay: 0.14s;
}
.jersey-tag:nth-child(4) {
  animation-delay: 0.21s;
}
.jersey-tag.active {
  background: var(--yellow);
  transform: translateY(-12px);
}
.jersey-tag b {
  font: 800 clamp(2rem, 4vw, 3.8rem) var(--display);
  line-height: 0.8;
}
.jersey-tag i {
  font: 700 0.7rem var(--display);
  font-style: normal;
  letter-spacing: 0.12em;
  margin-top: 0.7rem;
}
@keyframes kit-settle {
  from {
    opacity: 0.6;
    filter: blur(5px) drop-shadow(0 10px 8px rgba(0, 0, 0, 0.22));
    transform: translateY(-18px) rotate(-2deg);
  }
  to {
    opacity: 1;
    filter: blur(0) drop-shadow(0 10px 8px rgba(0, 0, 0, 0.22));
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .jersey-tag {
    animation: none;
  }
}
.league-rack {
  padding: 4rem 0;
}
.section-heading,
.board-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-heading h2,
.board-title h2 {
  margin: 0;
}
.section-heading > span,
.board-title > span {
  font: 700 0.85rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.league-list {
  border-top: 2px solid var(--ink);
}
.league-ticket {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0.3rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    padding 0.15s ease;
}
.league-ticket:hover {
  background: var(--paper);
  padding-inline: 1rem;
}
.ticket-number {
  font: 800 2.3rem var(--display);
  color: var(--red);
}
.ticket-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ticket-main strong {
  font: 700 clamp(1.3rem, 2.5vw, 1.8rem) var(--display);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-main small,
.ticket-sync {
  color: var(--muted);
}
.ticket-arrow {
  font-size: 1.8rem;
  text-align: right;
}
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--paper);
}
.empty-number {
  display: block;
  font: 800 6rem var(--display);
  line-height: 1;
  color: var(--line);
}
.empty-state p {
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}
.empty-state.compact {
  padding: 3rem 1rem;
}
.empty-state.compact .empty-number {
  font-size: 4rem;
}
.competition-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin: 0 calc(50% - 50vw);
  padding: 0.65rem max(1rem, calc((100vw - 1280px) / 2));
  background: var(--green-deep);
  color: var(--paper);
  scrollbar-width: thin;
}
.competition-nav a {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  font: 700 0.92rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.competition-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}
.competition-nav a[aria-current="page"] {
  color: var(--yellow);
  border-color: var(--yellow);
}
.league-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 3.5rem 0 2rem;
  border-bottom: 2px solid var(--ink);
}
.league-header h1 {
  margin: 0.65rem 0 0.25rem;
}
.league-header p {
  margin: 0;
  color: var(--muted);
}
.back-link {
  font: 700 0.85rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sync-stamp,
.budget-tag,
.hanging-label {
  position: relative;
  min-width: 190px;
  padding: 1rem 1.15rem;
  background: var(--green);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.sync-stamp:before,
.budget-tag:before,
.hanging-label:before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream);
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.sync-stamp small,
.sync-stamp strong,
.budget-tag small,
.budget-tag strong,
.hanging-label small,
.hanging-label strong {
  display: block;
}
.sync-stamp strong,
.budget-tag strong,
.hanging-label strong {
  font: 700 1.5rem var(--display);
  margin-top: 0.2rem;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70d190;
  margin-right: 0.3rem;
}
.budget-tag {
  background: var(--yellow);
  color: var(--green-deep);
}
.hanging-label {
  min-width: 130px;
  text-align: center;
  background: var(--red);
}
.hanging-label strong {
  font-size: 2.3rem;
}
.matchday-board,
.market-board,
.tip-sheet,
.ranking-board {
  margin-top: 2rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.matchday-board {
  padding: 1.5rem;
}
.fixture {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 150px 90px;
  align-items: center;
  gap: 1rem;
  min-height: 88px;
  border-top: 1px solid var(--line);
}
.fixture:first-child {
  border-top: 0;
}
.fixture-time {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.45rem;
  align-items: baseline;
}
.fixture-time strong {
  font: 800 1.3rem var(--display);
  text-transform: uppercase;
  color: var(--red);
}
.fixture-time small {
  grid-column: 1/-1;
  color: var(--muted);
}
.fixture-teams {
  display: flex;
  flex-direction: column;
  font-weight: 700;
}
.fixture-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.fixture-score b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 52px;
  background: var(--green-deep);
  color: var(--yellow);
  font: 800 2rem var(--display);
}
.fixture-score i {
  font-style: normal;
  font-weight: 700;
}
.fixture-status {
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}
.fixture.is-live {
  background: #fff3cf;
}
.fixture.is-live .fixture-status span {
  color: var(--red);
  font-weight: 700;
}
.empty-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-inline strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
}
.squad-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.75fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.formation-wall {
  position: relative;
  min-height: 720px;
  padding: 1.25rem;
  background-color: var(--green);
  color: var(--paper);
  overflow: hidden;
  background-image: radial-gradient(
    circle,
    rgba(242, 232, 205, 0.2) 1.2px,
    transparent 1.3px
  );
  background-size: 20px 20px;
}
.wall-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wall-header h2 {
  margin: 0;
}
.wall-header span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c9d9cf;
}
.pitch-lines {
  position: absolute;
  inset: 76px 5% 28px;
  border: 2px solid rgba(242, 232, 205, 0.25);
  pointer-events: none;
}
.pitch-lines:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid rgba(242, 232, 205, 0.25);
}
.center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130px;
  height: 130px;
  border: 2px solid rgba(242, 232, 205, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.penalty {
  position: absolute;
  left: 50%;
  width: 210px;
  height: 90px;
  border: 2px solid rgba(242, 232, 205, 0.25);
  transform: translateX(-50%);
}
.penalty.top {
  top: -2px;
  border-top: 0;
}
.penalty.bottom {
  bottom: -2px;
  border-bottom: 0;
}
.position-row {
  position: relative;
  z-index: 2;
  min-height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.position-row.forwards {
  margin-top: 1rem;
}
.player-marker {
  position: relative;
  width: min(150px, 28%);
  min-width: 110px;
  padding: 1rem 0.7rem 0.7rem;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.player-marker:before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(-50%);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.25);
}
.marker-number {
  display: block;
  font: 800 2rem var(--display);
  color: var(--red);
  line-height: 1;
}
.player-marker strong {
  display: block;
  font: 700 1rem var(--display);
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0.3rem 0;
}
.player-marker small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.7rem;
}
.open-hook {
  padding: 0.55rem 0.8rem;
  border: 1px dashed rgba(242, 232, 205, 0.6);
  color: #dce7df;
  font: 700 0.75rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kit-ledger {
  align-self: start;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.8rem;
}
.ledger-head h2 {
  margin: 0;
}
.ledger-head span {
  font: 800 1.5rem var(--display);
  color: var(--red);
}
.ledger-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row > span:nth-child(2) {
  min-width: 0;
}
.ledger-row strong,
.ledger-row small {
  display: block;
}
.ledger-row strong {
  font: 700 1rem var(--display);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledger-row small {
  font-size: 0.75rem;
  color: var(--muted);
}
.ledger-price {
  font: 700 0.9rem var(--display);
}
.ledger-row form {
  grid-column: 2/-1;
  text-align: right;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 0.1rem;
  color: var(--red);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ledger-empty {
  text-align: center;
  padding: 2rem 0.5rem;
}
.position-badge {
  display: inline-flex;
  justify-content: center;
  min-width: 40px;
  padding: 0.25rem 0.35rem;
  background: var(--green-deep);
  color: var(--paper);
  font: 700 0.75rem var(--display);
  letter-spacing: 0.04em;
}
.filter-strip,
.tip-sheet-head,
.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--green);
  color: var(--paper);
}
.filter-strip strong {
  font: 700 1.4rem var(--display);
  text-transform: uppercase;
}
.filter-strip span {
  font-size: 0.8rem;
  color: #d0ddd5;
}
.data-table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  background: #e2d7ba;
  font: 700 0.75rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr:hover {
  background: #fff2c7;
}
.data-table th:last-child,
.data-table td:last-child {
  text-align: right;
}
.player-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.player-cell > span:last-child {
  display: flex;
  flex-direction: column;
}
.player-cell strong {
  font-family: var(--display);
  font-size: 1.08rem;
  text-transform: uppercase;
}
.player-cell a {
  font-size: 0.72rem;
  color: var(--green-light);
}
.shirt-mini {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  background: var(--green);
  color: var(--paper);
  font: 800 1rem var(--display);
  clip-path: polygon(
    10% 0,
    34% 8%,
    66% 8%,
    90% 0,
    100% 22%,
    82% 33%,
    82% 100%,
    18% 100%,
    18% 33%,
    0 22%
  );
}
.market-value {
  font: 700 1.05rem var(--display);
  font-variant-numeric: tabular-nums;
}
.button-buy,
.button-save {
  font-size: 0.78rem;
}
.market-filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(4, minmax(145px, 1fr));
  gap: 0.85rem;
  padding: 1.25rem;
  background: #e2d7ba;
  border-bottom: 2px solid var(--green);
}
.market-filters > div:not(.market-filter-actions) {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.market-filters label {
  font: 700 0.72rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.market-filters input[type="search"],
.market-filters select {
  width: 100%;
  height: 44px;
  border: 2px solid var(--green);
  border-radius: 0;
  padding: 0.5rem 0.65rem;
  background: var(--paper);
  color: var(--ink);
}
.market-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
}
.market-check input {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
}
.market-filter-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.market-filter-actions a {
  font-size: 0.82rem;
  font-weight: 700;
}
.owned-badge {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  background: #d9e3dc;
  color: var(--green-deep);
  font: 700 0.75rem var(--display);
  text-transform: uppercase;
}
.market-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.market-pagination > a:last-child {
  justify-self: end;
}
.market-pagination > span {
  font: 700 0.8rem var(--display);
  text-transform: uppercase;
}
.market-confirmation {
  width: min(100% - 2rem, 480px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(11, 41, 29, 0.35);
}
.market-confirmation::backdrop {
  background: rgba(11, 41, 29, 0.7);
  backdrop-filter: blur(3px);
}
.market-confirmation-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 1.25rem;
  background: var(--yellow);
  color: var(--green-deep);
  border: 5px solid var(--paper);
  border-radius: 50%;
  font: 800 2.2rem var(--display);
  line-height: 1;
}
.market-confirmation > *:not(.market-confirmation-mark) {
  margin-inline: 1.5rem;
}
.market-confirmation-kicker {
  margin-bottom: 0.45rem;
  color: var(--red);
  font: 700 0.8rem var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.market-confirmation h2 {
  margin-bottom: 0.8rem;
  font-size: 2.5rem;
  text-transform: uppercase;
}
.market-confirmation p:not(.market-confirmation-kicker) {
  margin-bottom: 1.5rem;
  color: var(--muted);
}
.market-confirmation p strong {
  color: var(--ink);
}
.market-confirmation form {
  margin: 0;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
}
.market-confirmation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.market-confirmation .text-button {
  color: var(--green-deep);
}
.player-photo-link,
.marker-profile,
.ledger-profile {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.player-photo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #d9e3dc;
  border: 2px solid var(--green);
}
.team-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.team-identity > span {
  min-width: 0;
}
.team-identity-end {
  flex-direction: row-reverse;
  text-align: right;
}
.team-crest {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}
.fixture-teams .team-crest {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}
.marker-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--yellow);
  background: #d9e3dc;
}
.player-marker .team-identity {
  justify-content: center;
  max-width: 100%;
}
.player-marker .team-crest {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.ledger-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
}
.ledger-row small .team-crest {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.market-confirmation-error {
  padding: 0.75rem;
  background: #f6d8cd !important;
  color: #7b2415 !important;
  border-left: 4px solid var(--red);
  font-weight: 700;
}
.lock-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--yellow);
  color: var(--green-deep);
  box-shadow: var(--shadow);
}
.lock-countdown.is-locked {
  background: #f6d8cd;
  color: #7b2415;
}
.lock-countdown span {
  font: 700 0.75rem var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lock-countdown strong {
  font: 700 1.2rem var(--display);
  text-transform: uppercase;
}
.lock-countdown b {
  font-variant-numeric: tabular-nums;
}
.lock-countdown small {
  font-size: 0.8rem;
  font-weight: 700;
}
.lineup-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.lineup-editor .formation-wall {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.lineup-editor .wall-header {
  width: 100%;
}
.wall-header label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 0.75rem var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wall-header select,
.selection-row select {
  min-height: 38px;
  border: 2px solid var(--green);
  background: var(--paper);
  color: var(--ink);
  font: 700 0.85rem var(--display);
}
.lineup-editor .player-marker {
  z-index: 2;
}
.position-gk {
  order: 4;
}
.position-def {
  order: 3;
}
.position-mid {
  order: 2;
}
.position-fwd {
  order: 1;
}
.lineup-empty {
  position: relative;
  z-index: 2;
  padding: 1rem;
  background: var(--paper);
  color: var(--muted);
}
.selection-sheet {
  background: var(--paper);
  box-shadow: var(--shadow);
}
.selection-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 2px solid var(--ink);
}
.selection-head p {
  margin: 0;
  color: var(--red);
  font: 700 0.75rem var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.selection-head h2 {
  margin: 0.35rem 0 0;
  text-transform: uppercase;
}
.selection-note {
  margin: 0;
  padding: 1rem 1.25rem;
  background: #e2d7ba;
  color: var(--green-deep);
  font-size: 0.85rem;
}
.selection-list {
  padding: 0 1.25rem;
}
.selection-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.selection-row > span:nth-child(2) {
  min-width: 0;
}
.selection-row strong,
.selection-row small {
  display: block;
}
.selection-row strong {
  font: 700 1.05rem var(--display);
  text-transform: uppercase;
}
.selection-row small {
  font-size: 0.75rem;
  color: var(--muted);
}
.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--yellow);
  font: 700 0.75rem var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pitch-players {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.selection-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: #e2d7ba;
}
.drop-zone {
  min-height: 82px;
  padding: 0.75rem;
  border: 2px dashed rgba(20, 61, 43, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 250, 240, 0.5);
}
.drop-zone strong {
  font: 700 1.1rem var(--display);
  text-transform: uppercase;
}
.drop-zone b {
  color: var(--red);
  font-size: 1.4rem;
}
.drop-zone span {
  font-size: 0.73rem;
  color: var(--muted);
}
.selection-row {
  grid-template-columns: 42px 46px minmax(0, 1fr) 112px;
  cursor: grab;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}
.selection-row:active {
  cursor: grabbing;
  transform: scale(0.99);
}
.lineup-dialog {
  width: min(100% - 2rem, 420px);
  border: 0;
  padding: 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.lineup-dialog::backdrop {
  background: rgba(11, 41, 29, 0.7);
  backdrop-filter: blur(3px);
}
.lineup-dialog h2 {
  font-size: 2.2rem;
  text-transform: uppercase;
}
.lineup-dialog p {
  color: var(--muted);
}
.pitch-players {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-height: 490px;
}
.pitch-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}
.pitch-slot {
  width: min(130px, 23%);
  min-height: 74px;
  padding: 0.5rem;
  border: 2px dashed rgba(242, 232, 205, 0.55);
  background: rgba(255, 250, 240, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--paper);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}
.pitch-slot.is-over {
  background: var(--yellow);
  color: var(--green-deep);
  transform: scale(1.04);
}
.pitch-slot span {
  font: 700 1rem var(--display);
  text-transform: uppercase;
}
.pitch-slot small {
  font-size: 0.65rem;
  color: #dce7df;
}
.pitch-slot.is-over small {
  color: var(--green-deep);
}
.selection-head > .wall-header label,
.selection-head > label {
  margin-left: auto;
}
.lineup-editor {
  gap: 1rem;
  margin-top: 1.25rem;
}
.lineup-editor .formation-wall {
  min-height: 810px;
  justify-content: flex-start;
  padding: 1rem;
}
.pitch-lines {
  bottom: 184px;
}
.pitch-players {
  min-height: 560px;
  padding-top: 0.5rem;
  gap: 0.55rem;
}
.pitch-row {
  width: 100%;
  min-width: 0;
  gap: 0.45rem;
}
.pitch-slot {
  position: relative;
  flex: 1 1 0;
  width: auto;
  max-width: 128px;
  min-width: 0;
  min-height: 92px;
  padding: 0.45rem;
  background: rgba(255, 250, 240, 0.14);
}
.pitch-slot:not(:empty) {
  border-style: solid;
  border-color: rgba(242, 232, 205, 0.3);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 7px 16px rgba(11, 41, 29, 0.24);
}
.pitch-slot-position {
  font-size: 0.9rem;
}
.pitch-player-photo {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  margin-bottom: 0.3rem;
  border: 2px solid var(--yellow) !important;
  object-fit: cover;
}
.pitch-slot .shirt-mini.pitch-player-photo {
  display: grid;
  border: 0 !important;
  background: var(--green);
  color: var(--paper);
}
.pitch-player-copy {
  display: block;
  width: 100%;
  min-width: 0;
}
.pitch-player-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 0.82rem var(--display);
  line-height: 1.05;
  text-transform: uppercase;
}
.pitch-player-copy .team-identity {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.18rem;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.1;
}
.pitch-player-copy .team-identity > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pitch-player-copy .team-crest {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.formation-picker {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 88px;
  align-items: center;
  gap: 0.65rem !important;
  min-height: 44px;
  margin-left: auto;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  background: var(--yellow);
  color: var(--green-deep);
  box-shadow: 0 5px 12px rgba(11, 41, 29, 0.18);
}
.formation-picker:after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--green-deep);
  border-bottom: 2px solid var(--green-deep);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.formation-picker select {
  width: 100%;
  min-height: 36px !important;
  padding: 0.35rem 1.7rem 0.35rem 0.55rem;
  border: 0 !important;
  border-left: 2px solid rgba(11, 41, 29, 0.28) !important;
  appearance: none;
  background: var(--yellow) !important;
  color: var(--green-deep) !important;
  font: 800 1.05rem var(--display) !important;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.formation-picker:focus-within {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.pitch-bench {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 2px solid rgba(242, 232, 205, 0.45);
}
.pitch-bench-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.pitch-bench-title strong {
  font: 800 1.2rem var(--display);
  text-transform: uppercase;
}
.pitch-bench-title span {
  color: #dce7df;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pitch-bench-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}
.bench-slot {
  max-width: none;
  min-height: 104px;
  border-color: rgba(242, 232, 205, 0.4) !important;
}
.bench-number {
  position: absolute;
  top: 0.25rem;
  left: 0.35rem;
  color: var(--red);
  font: 800 0.85rem var(--display);
  font-variant-numeric: tabular-nums;
}
.selection-head {
  align-items: center;
  padding: 1rem;
}
.selection-head .formation-picker {
  order: 2;
}
.selection-head .button {
  order: 3;
}
.selection-note {
  padding: 0.75rem 1rem;
}
.selection-status {
  padding: 0.75rem 1rem;
}
.selection-list {
  padding: 0 1rem;
}
.selection-row {
  padding: 0.65rem 0;
}
@media (max-width: 1000px) {
  .market-filters {
    grid-template-columns: repeat(3, 1fr);
  }
  .market-search {
    grid-column: span 2;
  }
  .lineup-editor {
    grid-template-columns: 1fr;
  }
  .lineup-editor .formation-wall {
    min-height: 780px;
  }
  .pitch-players {
    min-height: 530px;
  }
  .pitch-slot {
    width: auto;
    min-height: 84px;
  }
}
@media (max-width: 640px) {
  .market-filters {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .market-search {
    grid-column: auto;
  }
  .market-filter-actions {
    justify-content: space-between;
  }
  .market-pagination {
    padding: 0.85rem 0.75rem;
  }
  .market-pagination .button {
    padding-inline: 0.7rem;
  }
  .lineup-editor {
    margin-inline: -0.625rem;
  }
  .lineup-editor .formation-wall {
    min-height: 690px;
    padding: 0.75rem 0.5rem;
  }
  .pitch-lines {
    inset: 68px 2.5% 166px;
  }
  .pitch-players {
    min-height: 455px;
    gap: 0.35rem;
  }
  .pitch-row {
    gap: 0.25rem;
  }
  .pitch-slot {
    min-height: 72px;
    padding: 0.3rem 0.2rem;
  }
  .pitch-player-photo {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    margin-bottom: 0.2rem;
  }
  .pitch-player-copy strong {
    font-size: 0.68rem;
  }
  .pitch-player-copy .team-identity {
    font-size: 0.52rem;
  }
  .pitch-player-copy .team-crest {
    display: none;
  }
  .pitch-slot small {
    font-size: 0.55rem;
  }
  .pitch-bench {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
  }
  .pitch-bench-title {
    margin-bottom: 0.4rem;
  }
  .pitch-bench-title span {
    font-size: 0.6rem;
  }
  .bench-slot {
    min-height: 82px;
  }
  .selection-head {
    align-items: center;
    flex-wrap: wrap;
  }
  .selection-head .formation-picker {
    order: 3;
    width: 100%;
    margin: 0;
  }
  .selection-head .button {
    margin-left: auto;
  }
  .selection-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.6rem;
  }
  .drop-zone {
    min-height: 68px;
    padding: 0.5rem;
  }
  .drop-zone strong {
    font-size: 0.85rem;
  }
  .drop-zone span {
    display: none;
  }
  .selection-list {
    padding: 0 0.75rem;
  }
  .selection-row {
    cursor: default;
    grid-template-columns: 38px 40px minmax(0, 1fr);
    gap: 0.5rem;
  }
  .selection-row select {
    grid-column: 1/-1;
    width: 100%;
    min-height: 44px;
  }
}
@media (max-width: 480px) {
  .market-confirmation > *:not(.market-confirmation-mark) {
    margin-inline: 1.1rem;
  }
  .market-confirmation form {
    padding-inline: 1.1rem;
  }
  .market-confirmation-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .market-confirmation-actions .button {
    width: 100%;
  }
  .market-confirmation-actions .text-button {
    text-align: center;
  }
}
.selection-status {
  position: sticky;
  top: 0;
  z-index: 8;
  box-shadow: 0 8px 16px rgba(11, 41, 29, 0.12);
}
.pitch-slot[draggable="true"] {
  cursor: grab;
}
.pitch-slot[draggable="true"]:active {
  cursor: grabbing;
}
.pitch-slot.is-dragging {
  opacity: 0.55;
}
.pitch-player-photo-link {
  display: inline-grid;
  place-items: center;
}
.pitch-player-photo-link:focus-visible,
.pitch-player-copy .player-detail-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.drop-zone.is-over {
  border-style: solid;
  background: var(--yellow);
  color: var(--green-deep);
  transform: scale(1.02);
}
.drop-zone.is-over span {
  color: var(--green-deep);
}
.selection-list.is-over {
  background: #fff3cf;
  outline: 2px dashed var(--green);
  outline-offset: -2px;
}
.selection-row {
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
}
.selection-row.is-dragging {
  opacity: 0.48;
}
.selection-sheet .selection-summary {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0.55rem 1rem;
  background: #e2d7ba;
  border-bottom: 1px solid rgba(20, 61, 43, 0.28);
  color: var(--green-deep);
  font: 700 0.75rem var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.selection-summary span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.18rem 0.55rem;
}
.selection-summary span + span {
  border-left: 1px solid rgba(20, 61, 43, 0.28);
}
.selection-summary b {
  color: var(--red-deep);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1001px) {
  .selection-list {
    max-height: min(720px, calc(100vh - 11rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .selection-list .selection-row {
    padding-right: 0.35rem;
  }
}
.selection-row select option:disabled {
  color: var(--muted);
}
@media (pointer: coarse) {
  .selection-row {
    cursor: default;
  }
}
.tip-sheet-head {
  display: grid;
  grid-template-columns: 1fr auto;
  font: 700 0.8rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tip-row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 1fr) minmax(260px, auto);
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.tip-date {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.25rem;
}
.tip-date strong {
  font: 800 2rem var(--display);
  color: var(--red);
  line-height: 1;
}
.tip-date span {
  font: 700 0.8rem var(--display);
  text-transform: uppercase;
}
.tip-date small {
  grid-column: 1/-1;
  color: var(--muted);
}
.tip-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
}
.tip-teams strong:first-child {
  text-align: right;
}
.tip-teams i {
  font-size: 0.72rem;
  color: var(--muted);
}
.score-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}
.score-form input {
  width: 48px;
  height: 48px;
  border: 2px solid var(--green);
  background: var(--paper);
  text-align: center;
  font: 800 1.4rem var(--display);
  color: var(--ink);
  caret-color: var(--red);
}
.score-form input:focus {
  background: #fff3bf;
}
.final-score {
  text-align: right;
}
.final-score strong,
.final-score small {
  display: block;
}
.final-score strong {
  font: 800 1.4rem var(--display);
}
.final-score small {
  color: var(--muted);
}
.ranking-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: baseline;
  margin: 0;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9rem;
}
.ranking-note strong {
  font: 800 1rem var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.ranking-note span {
  min-width: 0;
}
.ranking-board {
  max-width: 850px;
  margin-inline: auto;
}
.ranking-head {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  font: 700 0.8rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ranking-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 80px;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--line);
}
.ranking-row.podium {
  background: #fff4c8;
}
.rank-number {
  font: 800 2rem var(--display);
  color: var(--red);
}
.manager-name {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}
.manager-initial {
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  background: var(--green);
  color: var(--paper);
  font: 800 1rem var(--display);
  clip-path: polygon(
    10% 0,
    34% 8%,
    66% 8%,
    90% 0,
    100% 22%,
    82% 33%,
    82% 100%,
    18% 100%,
    18% 33%,
    0 22%
  );
}
.manager-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 1.15rem var(--display);
  text-transform: uppercase;
}
.points {
  font: 800 1.5rem var(--display);
  font-variant-numeric: tabular-nums;
}
.points small {
  font-size: 0.7rem;
  text-transform: uppercase;
}
.ranking-row:not(.podium) .points {
  color: var(--muted);
}
.ranking-switch {
  display: flex;
  gap: 0.25rem;
  margin: 1.5rem auto -0.5rem;
  max-width: 850px;
  border-bottom: 2px solid var(--green);
}
.ranking-switch a {
  padding: 0.7rem 1rem;
  color: var(--green);
  font: 700 0.85rem var(--display);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.ranking-switch a:hover {
  background: #fff3bf;
}
.ranking-switch a[aria-current="page"] {
  background: var(--green);
  color: var(--paper);
}
.tip-ranking-board {
  max-width: 850px;
}
.tip-ranking-board .ranking-head,
.tip-ranking-board .ranking-row {
  grid-template-columns: 70px minmax(220px, 1fr) repeat(3, 82px) 125px;
}
.tip-ranking-board .ranking-head span:not(:nth-child(2)),
.tip-stat {
  text-align: center;
}
.tip-stat {
  font: 700 1rem var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.tip-ranking-board .points {
  text-align: right;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #d8cdae;
}
::-webkit-scrollbar-thumb {
  background: var(--green);
  border: 2px solid #d8cdae;
}
@media (max-width: 640px) {
  * {
    scrollbar-width: none;
  }
  ::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 900px) {
  .locker-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .jersey-rail {
    justify-content: flex-start;
    max-width: 560px;
  }
  .squad-layout {
    grid-template-columns: 1fr;
  }
  .kit-ledger {
    width: 100%;
  }
  .fixture {
    grid-template-columns: 70px minmax(0, 1fr) 130px;
  }
  .fixture-status {
    display: none;
  }
  .tip-row {
    grid-template-columns: 72px 1fr;
  }
  .tip-action {
    grid-column: 2;
  }
  .tip-teams {
    grid-template-columns: 1fr;
  }
  .tip-teams strong:first-child {
    text-align: left;
  }
  .tip-teams i {
    display: none;
  }
}
@media (max-width: 640px) {
  .header-inner,
  .page-shell,
  .site-footer {
    width: min(100% - 1.25rem, 1280px);
  }
  .site-header {
    border-bottom-width: 3px;
  }
  .header-inner {
    min-height: 62px;
  }
  .brand-mark {
    width: 36px;
    height: 42px;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .user-chip {
    display: none;
  }
  .utility-nav {
    font-size: 0.8rem;
  }
  .locker-hero {
    padding-top: 3.4rem;
    padding-bottom: 4rem;
  }
  .locker-copy h1 {
    font-size: clamp(3.8rem, 20vw, 6rem);
  }
  .locker-copy p {
    font-size: 1rem;
  }
  .jersey-rail {
    gap: 0.35rem;
    padding-top: 2.25rem;
  }
  .jersey-tag {
    width: 68px;
    height: 94px;
  }
  .league-rack {
    padding: 2.5rem 0;
  }
  .league-ticket {
    grid-template-columns: 48px minmax(0, 1fr) 26px;
    gap: 0.7rem;
  }
  .ticket-number {
    font-size: 1.7rem;
  }
  .ticket-main strong {
    font-size: 1.2rem;
  }
  .ticket-sync {
    display: none;
  }
  .competition-nav {
    padding: 0.45rem 0.625rem;
  }
  .competition-nav a {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }
  .league-header {
    align-items: stretch;
    flex-direction: column;
    padding: 2.25rem 0 1.5rem;
    gap: 1.2rem;
  }
  .league-header h1 {
    font-size: 3.7rem;
  }
  .sync-stamp,
  .budget-tag,
  .hanging-label {
    align-self: flex-start;
    min-width: 0;
    width: auto;
    padding: 0.85rem 1rem;
  }
  .hanging-label {
    position: absolute;
    right: 0.625rem;
    margin-top: 1rem;
  }
  .matchday-board,
  .market-board,
  .tip-sheet,
  .ranking-board {
    margin-left: -0.625rem;
    margin-right: -0.625rem;
  }
  .matchday-board {
    padding: 0.8rem;
  }
  .fixture {
    grid-template-columns: 55px minmax(0, 1fr) 96px;
    gap: 0.5rem;
    min-height: 78px;
  }
  .fixture-time span {
    display: none;
  }
  .fixture-time strong {
    font-size: 1rem;
  }
  .fixture-score {
    gap: 0.25rem;
  }
  .fixture-score b {
    width: 36px;
    height: 42px;
    font-size: 1.5rem;
  }
  .fixture-teams {
    font-size: 0.85rem;
  }
  .squad-heading {
    padding-bottom: 1rem;
  }
  .squad-layout {
    margin-top: 0.75rem;
    margin-inline: -0.625rem;
    gap: 0.75rem;
  }
  .formation-wall {
    min-height: 680px;
    padding: 1rem 0.65rem;
  }
  .wall-header span {
    display: none;
  }
  .pitch-lines {
    inset: 68px 3% 22px;
  }
  .position-row {
    min-height: 137px;
    gap: 0.35rem;
  }
  .player-marker {
    width: 31%;
    min-width: 90px;
    padding: 0.85rem 0.35rem 0.55rem;
  }
  .player-marker strong {
    font-size: 0.82rem;
  }
  .player-marker small {
    font-size: 0.62rem;
  }
  .marker-number {
    font-size: 1.55rem;
  }
  .kit-ledger {
    box-shadow: none;
  }
  .data-table thead {
    display: none;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
  }
  .data-table tr {
    position: relative;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .data-table td {
    padding: 0.3rem 0;
    border: 0;
    text-align: left !important;
  }
  .data-table td[data-label]:before {
    content: attr(data-label);
    display: inline-block;
    width: 82px;
    color: var(--muted);
    font: 700 0.7rem var(--display);
    text-transform: uppercase;
  }
  .data-table td:first-child:before {
    display: none;
  }
  .data-table td:last-child {
    margin-top: 0.5rem;
  }
  .data-table td:last-child .button {
    width: 100%;
  }
  .tip-sheet-head {
    display: none;
  }
  .tip-row {
    grid-template-columns: 54px 1fr;
    padding: 1rem 0.75rem;
    gap: 0.65rem;
  }
  .tip-date strong {
    font-size: 1.6rem;
  }
  .tip-action {
    grid-column: 1/-1;
  }
  .score-form {
    justify-content: stretch;
  }
  .score-form .button {
    flex: 1;
    margin-left: 0.3rem;
  }
  .final-score {
    text-align: left;
    margin-left: 64px;
  }
  .ranking-head,
  .ranking-row {
    grid-template-columns: 55px 1fr auto;
    padding-inline: 0.75rem;
  }
  .ranking-head {
    padding-block: 0.8rem;
  }
  .rank-number {
    font-size: 1.5rem;
  }
  .points {
    font-size: 1.25rem;
  }
  .site-footer {
    margin-top: 3rem;
    flex-direction: column;
    gap: 0.25rem;
  }
}
.league-ticket {
  transition: background-color 0.15s ease;
}
.league-ticket:hover {
  padding-inline: 0.3rem;
}
@media (max-width: 640px) {
  .ranking-switch {
    margin-inline: -0.625rem;
    padding-inline: 0.625rem;
    overflow-x: auto;
  }
  .ranking-switch a {
    flex: 0 0 auto;
  }
  .tip-ranking-board .ranking-head {
    display: none;
  }
  .tip-ranking-board .ranking-row {
    grid-template-columns: 55px 1fr auto;
    grid-template-rows: auto auto auto auto;
    align-items: center;
    min-height: 0;
    padding-block: 1rem;
  }
  .tip-ranking-board .rank-number {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
  }
  .tip-ranking-board .manager-name {
    grid-column: 2;
    grid-row: 1;
  }
  .tip-ranking-board .points {
    grid-column: 3;
    grid-row: 1;
  }
  .tip-ranking-board .tip-stat {
    grid-column: 2 / -1;
    display: flex;
    justify-content: space-between;
    padding-top: 0.45rem;
    text-align: left;
    font-size: 0.85rem;
  }
  .tip-ranking-board .tip-stat:before {
    content: attr(data-label);
    font: 700 0.7rem var(--display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}
.logout-form {
  margin: 0;
}
.logout-form button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.auth-layout {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  margin: 0 calc(50% - 50vw);
}
.auth-world {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
  padding: clamp(3rem, 8vw, 7rem) max(1rem, calc((100vw - 1280px) / 2));
  padding-right: clamp(2rem, 7vw, 7rem);
  background-color: var(--green);
  background-image: radial-gradient(
    circle,
    rgba(242, 232, 205, 0.18) 1.2px,
    transparent 1.3px
  );
  background-size: 22px 22px;
  color: var(--paper);
}
.auth-world:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 58px,
    var(--green-deep) 58px 68px
  );
}
.auth-copy {
  max-width: 680px;
}
.auth-copy h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  margin-bottom: 1.5rem;
}
.auth-copy h1 span {
  color: var(--yellow);
}
.auth-copy p {
  max-width: 55ch;
  font-size: 1.15rem;
  color: #f7f1df;
}
.auth-hooks {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  border-top: 8px solid #d3c7a7;
  padding-top: 1.5rem;
}
.auth-hooks span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 116px;
  background: var(--paper);
  color: var(--green-deep);
  font: 800 3.2rem var(--display);
  clip-path: polygon(
    13% 0,
    36% 8%,
    64% 8%,
    87% 0,
    100% 20%,
    84% 33%,
    84% 100%,
    16% 100%,
    16% 33%,
    0 20%
  );
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.2));
}
.auth-hooks span:nth-child(2) {
  background: var(--yellow);
}
.auth-sheet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--paper);
}
.auth-sheet h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.auth-sheet p {
  max-width: 48ch;
  color: var(--muted);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field-group label {
  font: 700 0.82rem var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.field-group input {
  width: 100%;
  min-height: 50px;
  border: 2px solid var(--green);
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  background: #fffdf7;
  color: var(--ink);
  caret-color: var(--red);
}
.field-group input:focus {
  background: #fff3bf;
}
.field-help {
  font-size: 0.78rem;
  color: var(--muted);
}
.field-help ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}
.field-error {
  font-size: 0.82rem;
  color: #a52f1b;
  font-weight: 700;
}
.form-alert {
  padding: 1rem;
  background: #f6d8cd;
  color: #7b2415;
  border-top: 2px solid var(--red);
  font-weight: 700;
}
.auth-help {
  font-size: 0.85rem;
  margin: 0;
}
.invite-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  max-width: 520px;
  padding: 1.25rem 1.5rem;
  background: var(--yellow);
  color: var(--green-deep);
  box-shadow: var(--shadow);
}
.invite-ticket:before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
}
.invite-ticket small {
  margin-top: 0.6rem;
  font: 700 0.72rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.invite-ticket strong {
  font: 800 clamp(1.8rem, 4vw, 3rem) var(--display);
  text-transform: uppercase;
  line-height: 1;
}
.invite-ticket span {
  margin-top: 0.5rem;
}
.auth-sheet strong {
  color: var(--ink);
}
@media (max-width: 800px) {
  .auth-layout {
    grid-template-columns: 1fr;
    margin-inline: calc(50% - 50vw);
  }
  .auth-world {
    min-height: 470px;
    padding: 3.5rem 1rem 4rem;
  }
  .auth-copy h1 {
    font-size: clamp(4rem, 18vw, 6.5rem);
  }
  .auth-hooks {
    margin-top: 2rem;
  }
  .auth-hooks span {
    width: 70px;
    height: 90px;
    font-size: 2.4rem;
  }
  .auth-sheet {
    padding: 2.5rem max(1rem, calc((100vw - 620px) / 2));
    min-height: 430px;
  }
  .invite-layout .auth-world {
    min-height: 520px;
  }
}
.invite-manager {
  display: grid;
  grid-template-columns: minmax(300px, 0.58fr) minmax(0, 1.42fr);
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: start;
}
.invite-issue {
  position: sticky;
  top: 70px;
  padding: 1.5rem;
  background: var(--green);
  color: var(--paper);
  box-shadow: var(--shadow);
  background-image: radial-gradient(
    circle,
    rgba(242, 232, 205, 0.15) 1.1px,
    transparent 1.2px
  );
  background-size: 20px 20px;
}
.issue-heading {
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(242, 232, 205, 0.45);
  margin-bottom: 1.25rem;
}
.issue-heading h2 {
  margin-bottom: 0.6rem;
}
.issue-heading p {
  margin: 0;
  color: #dce7df;
}
.issue-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.issue-form .field-group label {
  color: var(--paper);
}
.issue-form .field-help {
  color: #dce7df;
}
.field-group select {
  width: 100%;
  min-height: 50px;
  border: 2px solid var(--green);
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  background: #fffdf7;
  color: var(--ink);
}
.issue-form input,
.issue-form select {
  border-color: var(--cream);
}
.invite-register {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.invite-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(100px, 0.55fr) minmax(
      150px,
      0.8fr
    );
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.invite-row.just-created {
  background: #fff3bf;
  margin-inline: -1.25rem;
  padding-inline: 1.25rem;
}
.invite-status,
.invite-usage,
.invite-expiry {
  display: flex;
  flex-direction: column;
}
.invite-status strong,
.invite-usage strong,
.invite-expiry strong {
  font: 700 1.05rem var(--display);
  text-transform: uppercase;
}
.invite-status small,
.invite-usage small,
.invite-expiry small {
  color: var(--muted);
  font-size: 0.75rem;
}
.status-mark {
  display: inline-block;
  width: 32px;
  height: 5px;
  margin-bottom: 0.45rem;
  background: var(--red);
}
.status-mark.available {
  background: #368d58;
}
.invite-link {
  grid-column: 1/-1;
}
.invite-link label {
  display: block;
  margin-bottom: 0.35rem;
  font: 700 0.75rem var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.invite-link > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}
.invite-link input {
  min-width: 0;
  height: 46px;
  border: 2px solid var(--green);
  border-right: 0;
  padding: 0.6rem 0.75rem;
  background: #fffdf7;
  color: var(--ink);
}
.button-copy {
  min-width: 100px;
  background: var(--green-deep);
  color: var(--paper);
}
.button-copy:hover {
  background: var(--green-light);
}
.invite-stop {
  grid-column: 1/-1;
  text-align: right;
}
.invite-stop .text-button {
  font-weight: 700;
}
.invite-register > .empty-inline {
  min-height: 240px;
  justify-content: center;
}
@media (max-width: 900px) {
  .invite-manager {
    grid-template-columns: 1fr;
  }
  .invite-issue {
    position: static;
  }
  .invite-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .invite-manager {
    margin-inline: -0.625rem;
    gap: 0.75rem;
  }
  .invite-issue,
  .invite-register {
    padding: 1rem;
    box-shadow: none;
  }
  .invite-row {
    grid-template-columns: 1fr 1fr;
  }
  .invite-row.just-created {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
  .invite-expiry {
    grid-column: 1/-1;
  }
  .invite-link > div {
    grid-template-columns: 1fr;
  }
  .invite-link input {
    border-right: 2px solid var(--green);
    border-bottom: 0;
  }
  .button-copy {
    width: 100%;
  }
  .invite-stop {
    text-align: left;
  }
}
.section-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-actions > span {
  font: 700 0.85rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.button-small {
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}
.text-button {
  border: 0;
  padding: 0.25rem 0;
  background: transparent;
  color: inherit;
  font: 700 0.9rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.league-create-header {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: 2.5rem max(1rem, calc((100vw - 1280px) / 2)) 4rem;
  overflow: hidden;
  background-color: var(--green);
  background-image: radial-gradient(
    circle,
    rgba(242, 232, 205, 0.18) 1.2px,
    transparent 1.3px
  );
  background-size: 22px 22px;
  color: var(--paper);
}
.league-create-header:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 58px,
    var(--green-deep) 58px 68px
  );
}
.league-create-header .back-link {
  display: inline-block;
  margin-bottom: 2.75rem;
}
.league-create-header > div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}
.league-create-header h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(4rem, 9vw, 7rem);
}
.league-create-header h1 span {
  color: var(--yellow);
}
.league-create-header p {
  max-width: 48ch;
  margin: 0 0 0.6rem;
  color: #f7f1df;
  font-size: 1.08rem;
}
.league-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: -1.75rem;
  position: relative;
}
.league-create-sheet {
  padding: 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--ink);
}
.sheet-heading h2 {
  margin: 0;
}
.sheet-heading span {
  padding: 0.35rem 0.6rem;
  background: var(--red);
  color: var(--paper);
  font: 800 0.8rem var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.league-create-form {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1.15rem;
}
.league-create-form .field-group:last-of-type {
  grid-column: 1/-1;
}
.form-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 0.35rem;
}
.league-create-notes {
  margin-top: 3.25rem;
  padding: 1.5rem;
  background: var(--yellow);
  color: var(--green-deep);
  box-shadow: var(--shadow);
}
.league-create-notes h2 {
  font-size: 2rem;
}
.league-create-notes dl {
  margin: 1.5rem 0;
}
.league-create-notes dl div {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(11, 41, 29, 0.3);
}
.league-create-notes dt {
  font: 800 1.05rem var(--display);
  text-transform: uppercase;
}
.league-create-notes dd {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}
.league-create-notes > p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}
@media (max-width: 800px) {
  .league-create-header > div {
    display: block;
  }
  .league-create-header p {
    margin-top: 1.25rem;
  }
  .league-create-layout {
    grid-template-columns: 1fr;
  }
  .league-create-notes {
    margin-top: 0;
  }
  .league-create-form {
    grid-template-columns: 1fr 150px;
  }
}
@media (max-width: 560px) {
  .section-heading {
    align-items: flex-start;
  }
  .section-actions {
    align-items: flex-end;
    flex-direction: column;
  }
  .league-create-header {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }
  .league-create-header .back-link {
    margin-bottom: 2rem;
  }
  .league-create-header h1 {
    font-size: 3.8rem;
  }
  .league-create-layout {
    margin-inline: -0.625rem;
  }
  .league-create-sheet,
  .league-create-notes {
    padding: 1rem;
    box-shadow: none;
  }
  .league-create-form {
    grid-template-columns: 1fr;
  }
  .league-create-form .field-group:last-of-type,
  .form-actions {
    grid-column: auto;
  }
  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .form-actions .button {
    width: 100%;
  }
  .form-actions .text-button {
    text-align: center;
  }
}
.initialising-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 1rem 1.2rem;
  background: var(--yellow);
  color: var(--green-deep);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.initialising-banner span:nth-child(2) {
  display: flex;
  flex-direction: column;
}
.initialising-banner strong {
  font: 800 1.25rem var(--display);
  text-transform: uppercase;
}
.initialising-banner small {
  font-size: 0.82rem;
}
.initialising-banner b {
  font: 800 1.6rem var(--display);
}
.initialising-banner.is-failed {
  background: #f6d8cd;
  color: #7b2415;
}
.status-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(217, 75, 43, 0.5);
  animation: status-pulse 1.8s ease-out infinite;
}
@keyframes status-pulse {
  70%,
  100% {
    box-shadow: 0 0 0 12px rgba(217, 75, 43, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .status-pulse {
    animation: none;
  }
}
.sync-page-header {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: 3.25rem max(1rem, calc((100vw - 1280px) / 2)) 5.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  overflow: hidden;
  background-color: var(--green);
  background-image: radial-gradient(
    circle,
    rgba(242, 232, 205, 0.18) 1.2px,
    transparent 1.3px
  );
  background-size: 22px 22px;
  color: var(--paper);
}
.sync-page-header:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 58px,
    var(--green-deep) 58px 68px
  );
}
.sync-page-header h1 {
  margin: 2.5rem 0 0;
  font-size: clamp(4rem, 9vw, 7rem);
}
.sync-page-header h1 span {
  color: var(--yellow);
}
.sync-page-header > div:first-child > p {
  max-width: 58ch;
  margin: 0.9rem 0 0;
  color: #e2ece5;
}
.sync-number {
  font: 800 clamp(8rem, 20vw, 17rem) var(--display);
  line-height: 0.65;
  color: rgba(242, 232, 205, 0.12);
}
.sync-workbench {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: -2.4rem;
}
.sync-card {
  padding: 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.sync-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.sync-card-head > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
  align-items: center;
}
.sync-card-head .status-pulse {
  grid-row: 1/3;
}
.sync-status-label {
  margin: 0;
  font: 700 0.75rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.sync-card-head h2 {
  margin: 0.2rem 0 0;
  text-transform: uppercase;
}
.sync-card-head > strong {
  font: 800 clamp(2.8rem, 6vw, 5rem) var(--display);
  line-height: 0.85;
  color: var(--red);
}
.progress-track {
  height: 18px;
  margin: 1.4rem 0 1.6rem;
  overflow: hidden;
  background: #ded3b6;
  border: 2px solid var(--green-deep);
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--yellow);
}
.sync-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.sync-metrics div {
  padding: 1rem;
  border-right: 1px solid var(--line);
}
.sync-metrics div:last-child {
  border-right: 0;
}
.sync-metrics dt {
  font: 700 0.72rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.sync-metrics dd {
  margin: 0.25rem 0 0;
  font: 800 1.45rem var(--display);
  font-variant-numeric: tabular-nums;
}
.sync-note {
  min-height: 48px;
  margin: 1.25rem 0;
  color: var(--muted);
}
.sync-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sync-ledger {
  margin-top: 2.4rem;
  padding: 1.4rem;
  background: var(--yellow);
  box-shadow: var(--shadow);
}
.sync-ledger h2 {
  margin-bottom: 1rem;
}
.sync-ledger ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sync-ledger li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(11, 41, 29, 0.25);
  opacity: 0.52;
}
.sync-ledger li.is-done {
  opacity: 1;
}
.sync-ledger li > b {
  font: 800 1.7rem var(--display);
  color: var(--red);
}
.sync-ledger li span {
  display: flex;
  flex-direction: column;
}
.sync-ledger li strong {
  font: 800 1rem var(--display);
  text-transform: uppercase;
}
.sync-ledger li small {
  font-size: 0.78rem;
}
.sync-ledger li.is-done strong:after {
  content: " · erledigt";
  color: var(--green-light);
  font-size: 0.72rem;
}
@media (max-width: 800px) {
  .sync-page-header {
    padding-bottom: 4.5rem;
  }
  .sync-number {
    display: none;
  }
  .sync-workbench {
    grid-template-columns: 1fr;
  }
  .sync-ledger {
    margin-top: 0;
  }
  .sync-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .sync-metrics div:nth-child(2) {
    border-right: 0;
  }
  .sync-metrics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
.simulation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  background: var(--yellow);
  color: var(--green-deep);
  box-shadow: var(--shadow);
}
.simulation-banner div {
  display: grid;
  gap: 0.2rem;
}
.simulation-banner strong {
  font: 800 1.1rem var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.simulation-banner span {
  font-size: 0.86rem;
  font-weight: 700;
}
@media (max-width: 560px) {
  .simulation-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .simulation-banner .button {
    width: 100%;
  }
}
.league-create-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.league-create-form .shared-field {
  grid-column: 1/-1;
}
.source-picker {
  grid-column: 1/-1;
  margin: 0;
  padding: 0;
  border: 0;
}
.source-picker legend {
  padding: 0;
  font: 800 clamp(1.45rem, 2.5vw, 2rem) var(--display);
  text-transform: uppercase;
}
.source-picker > p {
  max-width: 48ch;
  margin: 0.2rem 0 0.9rem;
  color: var(--muted);
}
.source-picker #id_source_mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.source-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 116px;
  padding: 1rem;
  border: 2px solid var(--green);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
.source-option input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  accent-color: var(--green);
}
.source-option-copy {
  display: grid;
  gap: 0.25rem;
}
.source-option-copy strong {
  font: 800 1.3rem var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.source-option-copy small {
  max-width: 26ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.source-option b {
  color: var(--red);
  font: 800 1.7rem var(--display);
  transition: transform 0.16s ease;
}
.source-option:has(input:checked) {
  border-color: var(--green-deep);
  background: var(--yellow);
  box-shadow: var(--shadow);
}
.source-option:has(input:checked) small {
  color: var(--green-deep);
}
.source-option:has(input:focus-visible) {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.source-option:hover b {
  transform: translateX(0.2rem);
}
.source-form {
  grid-column: 1/-1;
  padding: 1.1rem 1.2rem 1.25rem;
  background: var(--paper-warning);
  box-shadow: 0 8px 18px rgba(11, 41, 29, 0.08);
}
.source-form header {
  margin-bottom: 1rem;
}
.source-form h3 {
  margin: 0;
  font-size: 1.5rem;
  text-transform: uppercase;
}
.source-form p {
  max-width: 62ch;
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.source-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.source-form-grid .field-group:last-child:nth-child(odd) {
  grid-column: 1/-1;
}
.league-create-form .fupa-field[hidden],
.league-create-form .simulation-field[hidden] {
  display: none;
}
.league-create-notes dl > div:first-child {
  border-top: 0;
}
.league-create-notes dt {
  color: var(--green-deep);
}
.league-create-form .form-actions {
  margin-top: 0.35rem;
  border-top: 2px solid var(--ink);
}
@media (max-width: 700px) {
  .source-picker #id_source_mode,
  .source-form-grid {
    grid-template-columns: 1fr;
  }
  .source-option {
    min-height: 96px;
  }
  .source-form-grid .field-group:last-child:nth-child(odd) {
    grid-column: auto;
  }
}
@media (max-width: 560px) {
  .league-create-form {
    grid-template-columns: 1fr;
  }
  .source-picker {
    margin-inline: 0;
  }
  .source-option {
    padding: 0.85rem;
  }
  .source-option-copy strong {
    font-size: 1.18rem;
  }
  .source-form {
    margin-inline: 0;
    padding: 1rem;
  }
  .source-form h3 {
    font-size: 1.32rem;
  }
}
@media (max-width: 560px) {
  .initialising-banner {
    margin-inline: -0.625rem;
    padding: 0.9rem;
  }
  .initialising-banner small {
    font-size: 0.75rem;
  }
  .sync-page-header {
    padding-top: 2rem;
  }
  .sync-page-header .eyebrow {
    margin-top: 2rem;
  }
  .sync-page-header h1 {
    font-size: 3.7rem;
  }
  .sync-workbench {
    margin-inline: -0.625rem;
  }
  .sync-card,
  .sync-ledger {
    padding: 1rem;
    box-shadow: none;
  }
  .sync-card-head > strong {
    font-size: 2.7rem;
  }
  .sync-metrics dd {
    font-size: 1.2rem;
  }
  .sync-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .sync-actions .button {
    width: 100%;
  }
  .sync-actions .text-button {
    text-align: center;
  }
}
.selection-row:has(select option:not([value="reserve"]):checked) {
  opacity: 1;
  background: #e2d7ba;
}
.selection-row:has(select option:not([value="reserve"]):checked):hover,
.selection-row:has(select option:not([value="reserve"]):checked):focus-within {
  opacity: 1;
}
.selection-row:has(select option[value="reserve"]:checked) {
  opacity: 1;
}
.tip-season {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.tip-matchday {
  background: var(--paper);
  box-shadow: var(--shadow);
}
.tip-matchday-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--green);
  color: var(--paper);
}
.tip-matchday-header h2 {
  margin: 0;
  text-transform: uppercase;
}
.tip-matchday-header > div:first-child > span {
  color: #dce7df;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.tip-deadline {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.7rem;
  align-items: baseline;
  text-align: right;
}
.tip-deadline small {
  font: 700 0.7rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #dce7df;
}
.tip-deadline strong {
  color: var(--yellow);
  font: 800 1.35rem var(--display);
  font-variant-numeric: tabular-nums;
}
.tip-deadline span {
  grid-column: 1/-1;
  color: #dce7df;
  font-size: 0.72rem;
}
.tip-matchday.is-locked .tip-matchday-header {
  background: var(--green-deep);
}
.tip-matchday.is-locked .tip-deadline strong {
  color: var(--cream);
}
.tip-matchday .tip-sheet {
  margin: 0;
  box-shadow: none;
}
.tip-row:last-child {
  border-bottom: 0;
}
.tip-locked {
  text-align: right;
}
.tip-locked strong,
.tip-locked small {
  display: block;
}
.tip-locked strong {
  font: 800 1.35rem var(--display);
  font-variant-numeric: tabular-nums;
}
.tip-locked small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.tip-row.is-live {
  background: #fff3cf;
}
.button-save {
  background: var(--yellow);
  color: var(--green-deep);
}
@media (max-width: 640px) {
  .tip-season {
    gap: 1rem;
    margin-inline: -0.625rem;
  }
  .tip-matchday {
    box-shadow: none;
  }
  .tip-matchday-header {
    align-items: flex-start;
    padding: 0.85rem 0.75rem;
  }
  .tip-matchday-header h2 {
    font-size: 1.7rem;
  }
  .tip-deadline {
    grid-template-columns: 1fr;
    text-align: right;
  }
  .tip-deadline small,
  .tip-deadline strong,
  .tip-deadline span {
    grid-column: 1;
  }
  .tip-deadline strong {
    font-size: 1rem;
  }
  .tip-deadline span {
    font-size: 0.62rem;
  }
  .tip-matchday .tip-sheet {
    margin-inline: 0;
  }
  .tip-locked,
  .final-score {
    text-align: left;
    margin-left: 0;
  }
  .selection-row:has(select option:not([value="reserve"]):checked) {
    opacity: 1;
  }
}
.button-sell {
  background: var(--red);
  color: var(--paper);
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}
.button-sell:hover {
  background: #bd3e22;
}
.button:active {
  transform: scale(0.96);
}
.button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.market-owned-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.market-owned-action form {
  margin: 0;
}
.market-owned-action .button {
  min-height: 40px;
  font-size: 0.75rem;
}
.squad-sell-trigger {
  grid-column: 3/-1;
  justify-self: end;
  min-height: 40px;
  color: var(--red);
}
.market-confirmation strong,
.market-value,
.squad-sell-trigger {
  font-variant-numeric: tabular-nums;
}
.selection-row:has(select option[value=""]:checked) {
  opacity: 1;
  background: transparent;
}
.selection-note strong {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.selection-note.is-warning {
  background: var(--yellow);
  color: var(--green-deep);
}
@media (max-width: 640px) {
  .market-owned-action {
    align-items: stretch;
    flex-direction: column;
  }
  .market-owned-action .button {
    width: 100%;
  }
  .squad-sell-trigger {
    grid-column: 1/-1;
    justify-self: stretch;
    text-align: right;
  }
  .selection-row:has(select option[value=""]:checked) {
    opacity: 1;
  }
}
.tip-matchday-form {
  display: block;
}
.tip-matchday-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: #e2d7ba;
  border-top: 2px solid var(--green);
}
.tip-matchday-actions span {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.78rem;
}
.tip-matchday-actions .button {
  min-width: 180px;
}
@media (max-width: 640px) {
  .tip-matchday-actions {
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem;
  }
  .tip-matchday-actions span {
    margin: 0;
  }
  .tip-matchday-actions .button {
    width: 100%;
  }
}
.matchday-jump {
  position: sticky;
  top: 57px;
  z-index: 15;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  margin-top: 1.25rem;
  padding: 0.55rem;
  background: var(--green-deep);
  box-shadow: 0 6px 16px rgba(11, 41, 29, 0.18);
  scrollbar-width: thin;
}
.matchday-jump a {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  min-height: 40px;
  background: rgba(242, 232, 205, 0.1);
  color: var(--paper);
  font: 800 0.9rem var(--display);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.matchday-jump a:hover {
  background: rgba(242, 232, 205, 0.22);
}
.matchday-jump a:active {
  transform: scale(0.96);
}
.matchday-jump a[aria-current="true"] {
  background: var(--yellow);
  color: var(--green-deep);
}
.tip-matchday {
  scroll-margin-top: 125px;
}
.matchdays-heading p {
  max-width: 65ch;
}
@media (max-width: 640px) {
  .matchday-jump {
    top: 61px;
    margin: 0 -0.625rem;
    padding: 0.45rem 0.625rem;
    box-shadow: none;
  }
  .matchday-jump a {
    flex-basis: 38px;
    min-height: 38px;
  }
  .tip-matchday {
    scroll-margin-top: 116px;
  }
}
.market-header-stats {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}
.market-header-stats .budget-tag strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .market-header-stats {
    width: 100%;
    align-items: stretch;
  }
  .market-header-stats .budget-tag {
    flex: 1;
  }
  .market-header-stats .hanging-label {
    min-width: 105px;
  }
}

/* Operations room: superuser-only Temporal control surface */

.pitch-slot .pitch-player-position {
  position: absolute;
  top: 0.25rem;
  right: 0.35rem;
  display: inline-flex;
  justify-content: center;
  min-width: 29px;
  padding: 0.1rem 0.18rem;
  background: var(--green-deep);
  color: var(--paper);
  font: 700 0.65rem var(--display);
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .pitch-slot:not(:empty) {
    padding-top: 0.7rem;
  }
  .pitch-slot .pitch-player-position {
    top: 0;
    right: 0;
    min-width: 26px;
    padding: 0.08rem 0.12rem;
    font-size: 0.56rem;
    line-height: 1;
  }
  .bench-number {
    top: 0.18rem;
    left: 0.25rem;
  }
}

.help-header {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: 2.5rem max(1rem, calc((100vw - 1280px) / 2)) 4rem;
  overflow: hidden;
  background-color: var(--green);
  background-image: radial-gradient(
    circle,
    rgba(242, 232, 205, 0.18) 1.2px,
    transparent 1.3px
  );
  background-size: 22px 22px;
  color: var(--paper);
}
.help-header:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 58px,
    var(--green-deep) 58px 68px
  );
}
.help-header .back-link {
  display: inline-block;
  margin-bottom: 2.75rem;
}
.help-header h1 {
  margin: 0;
  font-size: clamp(4rem, 9vw, 7rem);
}
.help-header h1 span {
  color: var(--yellow);
}
.help-header p {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: #f7f1df;
  font-size: 1.08rem;
}
.help-layout {
  display: grid;
  grid-template-columns: minmax(200px, 0.38fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}
.help-index {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.2rem;
  background: var(--yellow);
  color: var(--green-deep);
  box-shadow: var(--shadow);
}
.help-index strong {
  margin-bottom: 0.45rem;
  font: 800 1.15rem var(--display);
  text-transform: uppercase;
}
.help-index a {
  padding: 0.35rem 0;
  font-weight: 700;
  text-decoration-thickness: 1px;
}
.faq-list {
  border-top: 2px solid var(--ink);
}
.faq-section {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.faq-section h2 {
  margin-bottom: 1.25rem;
}
.faq-section dl {
  margin: 0;
}
.faq-section dl > div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.faq-section dl > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.faq-section dt {
  margin-bottom: 0.35rem;
  font: 800 1.2rem var(--display);
  text-transform: uppercase;
}
.faq-section dd {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
}
.faq-section-dark {
  margin-inline: -1.5rem;
  padding: 2rem 1.5rem;
  background: var(--green-deep);
  color: var(--paper);
  border-bottom: 0;
}
.faq-section-dark p {
  max-width: 64ch;
  color: #dce7df;
}
.faq-section-dark small {
  display: block;
  margin-top: 1rem;
  color: #dce7df;
}
.points-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(242, 232, 205, 0.3);
}
.points-grid div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(242, 232, 205, 0.3);
}
.points-grid div:nth-child(odd) {
  padding-right: 1rem;
}
.points-grid div:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid rgba(242, 232, 205, 0.3);
}
.points-grid span {
  font-size: 0.9rem;
}
.points-grid strong {
  color: var(--yellow);
  font: 800 1.4rem var(--display);
}
.feedback-sheet {
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.field-group textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 2px solid var(--green);
  border-radius: 0;
  padding: 0.75rem;
  background: #fffdf7;
  color: var(--ink);
  caret-color: var(--red);
}
.field-group textarea:focus {
  background: #fff3bf;
}
.form-success {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #dcebd8;
  color: var(--green-deep);
  border-top: 2px solid #368d58;
  font-weight: 700;
}
@media (max-width: 800px) {
  .help-layout {
    grid-template-columns: 1fr;
  }
  .help-index {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .help-index strong {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .help-header {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }
  .help-header .back-link {
    margin-bottom: 2rem;
  }
  .help-header h1 {
    font-size: 3.8rem;
  }
  .help-layout {
    margin-top: 1rem;
  }
  .help-index {
    margin-inline: -0.625rem;
    padding: 1rem;
  }
  .faq-section {
    padding: 1.75rem 0;
  }
  .faq-section-dark {
    margin-inline: -0.625rem;
    padding: 1.5rem 0.625rem;
  }
  .points-grid {
    grid-template-columns: 1fr;
  }
  .points-grid div:nth-child(odd),
  .points-grid div:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }
  .feedback-sheet {
    margin: 1rem -0.625rem 0;
    padding: 1rem;
    box-shadow: none;
  }
}
.feedback-inbox-intro {
  margin: -0.55rem 0 1.25rem;
  color: var(--muted);
}
.feedback-entry {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.feedback-entry header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.feedback-entry header strong {
  font: 800 1.15rem var(--display);
  text-transform: uppercase;
}
.feedback-entry time {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.feedback-entry > div {
  max-width: 68ch;
}
.feedback-entry p {
  margin: 0;
}
.feedback-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  font: 700 0.85rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feedback-pagination a {
  color: var(--green);
  text-decoration-thickness: 2px;
}
@media (max-width: 560px) {
  .feedback-entry header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }
  .feedback-pagination {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .feedback-pagination span {
    order: -1;
    width: 100%;
  }
}
@media (min-width: 641px) and (max-width: 800px) {
  .help-header {
    margin-inline: -1rem;
  }
  .faq-section-dark {
    margin-inline: 0;
  }
}

/* Match source link: the fixture identity opens FuPa while score controls stay local. */
.tip-row {
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
}
.tip-source-link,
.tip-source-static {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(220px, 1fr);
  align-items: center;
  gap: 1rem;
  min-width: 0;
  padding: 0.35rem 5rem 0.35rem 0;
  color: inherit;
  text-decoration: none;
}
.tip-source-link {
  transition:
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}
.tip-source-link:hover {
  background: #fff3bf;
  box-shadow: 0 0 0 0.65rem #fff3bf;
}
.tip-source-link:focus-visible {
  outline-offset: 4px;
}
.tip-source-mark {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transform: translateY(-50%);
  color: var(--green);
  font: 800 0.72rem var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tip-source-mark svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
@media (max-width: 900px) {
  .tip-row {
    grid-template-columns: 1fr;
  }
  .tip-source-link,
  .tip-source-static {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .tip-action {
    grid-column: 1;
  }
}
@media (max-width: 640px) {
  .tip-source-link,
  .tip-source-static {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0.65rem;
    padding-right: 3.6rem;
  }
  .tip-source-mark {
    right: 0.1rem;
    font-size: 0.65rem;
  }
  .tip-source-mark svg {
    width: 12px;
    height: 12px;
  }
}

.team-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: inherit;
  text-decoration: none;
}
.team-source-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.team-source-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.league-header > div:first-child > .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
}

/* Phone composition: keep navigation reachable and give club names the width they need. */
@media (max-width: 640px) {
  .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    padding-top: 0.5rem;
  }
  .brand {
    width: max-content;
    margin: 0 0.625rem 0.5rem;
  }
  .utility-nav {
    width: 100%;
    min-width: 0;
    gap: 0.15rem;
    overflow-x: auto;
    padding: 0.2rem max(0.625rem, env(safe-area-inset-right)) 0.55rem
      max(0.625rem, env(safe-area-inset-left));
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .utility-nav::-webkit-scrollbar {
    display: none;
  }
  .utility-nav a,
  .logout-form button {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
    text-underline-offset: 3px;
  }
  .utility-nav .user-chip {
    display: none;
  }
  .competition-nav {
    padding-left: max(0.625rem, env(safe-area-inset-left));
    padding-right: max(0.625rem, env(safe-area-inset-right));
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .competition-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

/* League creation: make the budget choice read as a compact decision. */
.league-create-form .budget-choice {
  grid-column: 1/-1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.league-create-form .budget-choice legend {
  padding: 0;
  font: 700 0.82rem var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.league-create-form #id_budget_mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
  list-style: none;
}
.league-create-form #id_budget_mode label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.65rem 0.75rem;
  border: 2px solid var(--green);
  background: #fffdf7;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}
.league-create-form #id_budget_mode label:has(input:checked) {
  background: var(--yellow);
  color: var(--green-deep);
}
.league-create-form #id_budget_mode input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--green);
  flex: none;
}
.league-create-form .budget-choice > .field-help {
  display: block;
  margin-top: 0.4rem;
}
.league-create-form .budget-custom-field {
  display: none;
  max-width: 360px;
  margin-top: 0.85rem;
  flex-direction: column;
  gap: 0.35rem;
}
.league-create-form .budget-custom-field[aria-hidden="false"] {
  display: flex;
}
.league-create-form .budget-custom-field label {
  font: 700 0.82rem var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.league-create-form .budget-custom-field input {
  width: 100%;
  min-height: 50px;
  border: 2px solid var(--green);
  border-radius: 0;
  padding: 0.65rem 0.75rem;
  background: #fffdf7;
  color: var(--ink);
  caret-color: var(--red);
}
.league-create-form .budget-custom-field input:focus {
  background: #fff3bf;
}
.league-create-form #id_custom_starting_budget {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .league-create-form #id_budget_mode {
    grid-template-columns: 1fr;
  }
  .league-create-form .budget-custom-field {
    max-width: none;
  }
}

@media (max-width: 370px) {
  .brand-name {
    font-size: 1.05rem;
  }
}

.account-header {
  margin: 0 calc(50% - 50vw);
  padding: 3rem max(1rem, calc((100vw - 1280px) / 2)) 3.5rem;
  background: var(--green-deep);
  color: var(--paper);
}
.account-header .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--paper);
}
.account-header h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 6rem);
}
.account-header h1 span {
  color: var(--yellow);
}
.account-header p {
  max-width: 48ch;
  margin: 1rem 0 0;
  color: #dce7df;
}
.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.account-sheet {
  padding: 1.35rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.account-sheet h2 {
  margin-bottom: 0.45rem;
}
.account-form {
  display: grid;
  gap: 1rem;
}
.account-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--green);
  border-radius: 0;
  padding: 0.6rem 0.7rem;
  background: #fffdf7;
  color: var(--ink);
}
.account-form input:focus {
  background: #fff3bf;
}
.account-notifications {
  grid-column: 1/-1;
}
.account-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.account-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.notification-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.notification-option input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0.15rem 0;
  accent-color: var(--green);
}
.notification-option strong,
.notification-option small {
  display: block;
}
.notification-option strong {
  font: 700 1rem var(--display);
  text-transform: uppercase;
}
.notification-option small {
  color: var(--muted);
  font-size: 0.8rem;
}
.push-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  color: var(--green);
  font-weight: 700;
}
.notification-row {
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.notification-dot {
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 0.45rem;
  background: var(--red);
  border-radius: 50%;
}
.notification-row strong {
  font: 700 1rem var(--display);
  text-transform: uppercase;
}
.notification-row p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.notification-row small {
  color: var(--muted);
  font-size: 0.72rem;
}
@media (max-width: 700px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-notifications {
    grid-column: auto;
  }
  .account-section-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .account-section-heading .button {
    width: 100%;
  }
}

/* Notification choices stay adjacent to their label at every viewport width. */
.notification-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
}
.notification-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.notification-group legend {
  padding: 0 0 0.45rem;
  font: 700 0.9rem var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.notification-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 68px;
  gap: 0.75rem;
  padding: 1rem 0;
}
.account-form .notification-option input[type="checkbox"] {
  width: 24px;
  min-height: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: var(--green);
}
.notification-copy {
  min-width: 0;
}
.notification-option:has(input:focus-visible) {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.notification-option:has(input:checked) strong {
  color: var(--green);
}
.notification-save {
  grid-column: 1/-1;
  justify-self: start;
  min-width: min(100%, 280px);
}
@media (hover: hover) {
  .notification-option:hover {
    background: #fff3bf;
  }
}
@media (max-width: 720px) {
  .notification-form {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .notification-save {
    justify-self: stretch;
    width: 100%;
  }
}
@media (pointer: coarse) {
  .notification-option {
    min-height: 72px;
  }
}

.account-danger-zone {
  border: 2px solid var(--red-danger);
  background: var(--paper-danger);
}
.account-danger-zone h2 {
  color: var(--red-deep);
}
.account-danger-zone p {
  max-width: 60ch;
  color: var(--red-deep);
}

/* Mobile page headers become a compact ledger instead of detached hanging tags. */
@media (max-width: 640px) {
  .league-header > div:first-child {
    min-width: 0;
    max-width: 100%;
  }
  .league-header h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 12.5vw, 3.7rem);
    letter-spacing: -0.04em;
  }
  .league-header > .hanging-label,
  .market-header-stats .hanging-label {
    position: relative;
    right: auto;
    margin-top: 0;
  }
  .league-header > .hanging-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    align-self: stretch;
    width: 100%;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    text-align: left;
  }
  .league-header > .sync-stamp,
  .league-header > .budget-tag {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    align-self: stretch;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    box-shadow: none;
  }
  .league-header > .hanging-label:before,
  .league-header > .sync-stamp:before,
  .league-header > .budget-tag:before,
  .market-header-stats .hanging-label:before,
  .market-header-stats .budget-tag:before {
    display: none;
  }
  .league-header > .hanging-label strong {
    margin: 0;
    color: var(--red);
    font-size: 1.5rem;
  }
  .league-header > .sync-stamp .status-dot {
    flex: 0 0 8px;
    margin-right: -0.45rem;
  }
  .league-header > .sync-stamp small,
  .league-header > .budget-tag small {
    flex: 1;
  }
  .league-header > .sync-stamp strong,
  .league-header > .budget-tag strong {
    margin: 0;
    font-size: 1.2rem;
    text-align: right;
    white-space: nowrap;
  }
  .league-header > .budget-tag strong {
    color: var(--green);
  }
  .market-header-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(105px, 0.55fr);
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .market-header-stats .budget-tag,
  .market-header-stats .hanging-label {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    background: transparent;
    box-shadow: none;
    text-align: left;
  }
  .market-header-stats .budget-tag {
    padding-left: 0;
    color: var(--ink);
  }
  .market-header-stats .hanging-label {
    border-left: 1px solid var(--line);
    color: var(--ink);
  }
  .market-header-stats .budget-tag strong,
  .market-header-stats .hanging-label strong {
    margin-top: 0.1rem;
    font-size: 1.35rem;
  }
  .market-header-stats .hanging-label strong {
    color: var(--red);
  }
}

.squad-finances {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}
.squad-value-tag {
  position: relative;
  min-width: 190px;
  padding: 1rem 1.15rem;
  background: var(--green);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.squad-value-tag:before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream);
  transform: translateX(-50%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.squad-value-tag small,
.squad-value-tag strong {
  display: block;
}
.squad-value-tag strong {
  margin-top: 0.2rem;
  font: 700 1.5rem var(--display);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .squad-finances {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .squad-finances .budget-tag,
  .squad-finances .squad-value-tag {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
  }
  .squad-finances .budget-tag {
    padding-left: 0;
  }
  .squad-finances .squad-value-tag {
    border-left: 1px solid var(--line);
  }
  .squad-finances .budget-tag:before,
  .squad-finances .squad-value-tag:before {
    display: none;
  }
  .squad-finances .budget-tag strong,
  .squad-finances .squad-value-tag strong {
    margin-top: 0.1rem;
    font-size: 1.2rem;
    white-space: normal;
  }
  .squad-finances .budget-tag strong {
    color: var(--green);
  }
  .squad-finances .squad-value-tag strong {
    color: var(--red);
  }
}

/* Shared interface primitives: a compact, consistent baseline for every server-rendered surface. */
:root {
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --control-height: 44px;
  --content-measure: 72ch;
}
button,
input,
select,
textarea {
  font: inherit;
}
input,
select,
textarea {
  max-width: 100%;
  border: 2px solid var(--green);
  border-radius: 0;
  background: var(--paper-input);
  color: var(--ink);
  caret-color: var(--red);
}
input:focus,
select:focus,
textarea:focus {
  background: var(--paper-focus);
}
button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}
.sync-workbench {
  margin-top: 0;
}
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.field-group {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}
.field-group > label,
.field-group > label + input,
.field-group > label + select,
.field-group > label + textarea {
  min-width: 0;
}
.field-group > label {
  font: 700 0.78rem var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field-group input:not([type="checkbox"]):not([type="radio"]),
.field-group select {
  width: 100%;
  min-height: var(--control-height);
  padding: 0.55rem 0.65rem;
}
.field-group textarea {
  min-height: calc(var(--control-height) * 2);
  width: 100%;
  padding: 0.65rem 0.75rem;
  resize: vertical;
}
.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.field-error {
  color: var(--red-deep);
  font-size: 0.84rem;
  font-weight: 700;
}
.form-alert {
  margin: 0 0 var(--space-2);
  padding: var(--space-2);
  background: var(--paper-error);
  border-top: 3px solid var(--red);
  color: var(--red-deep);
  font-weight: 700;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  color: var(--green);
  font: 700 0.82rem var(--display);
  letter-spacing: 0.05em;
  text-decoration-thickness: 2px;
  text-transform: uppercase;
}
.text-button:hover {
  color: var(--green-deep);
}
.page-shell :where(p) {
  max-width: var(--content-measure);
}
.player-detail-link,
.team-source-link {
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.player-detail-link:after {
  content: none !important;
}
.player-detail-link:hover,
.player-detail-link:focus-visible,
.team-source-link:hover,
.team-source-link:focus-visible {
  color: inherit;
  text-decoration-line: underline !important;
  text-decoration-color: var(--green) !important;
}
.player-detail-link:focus-visible,
.team-source-link:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.player-fupa-link-small {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--green-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.player-fupa-link-small:hover,
.player-fupa-link-small:focus-visible {
  color: var(--green);
}
@media (max-width: 640px) {
  .form-actions > * {
    flex: 1 1 auto;
  }
  .form-actions .button {
    width: 100%;
  }
}

.mobile-match-score,
.tip-action-label {
  display: none;
}

/* Mobile match center: club identities face the score, with tipping beneath. */
@media (max-width: 640px) {
  .tip-row {
    padding-block: 1rem 1.1rem;
  }
  .tip-source-link,
  .tip-source-static {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.65rem;
    padding-right: 0;
    padding-bottom: 0.9rem;
  }
  .tip-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
    align-items: start;
    gap: 0.35rem;
  }
  .tip-teams > i {
    display: none;
  }
  .tip-teams > strong {
    min-width: 0;
    text-align: center !important;
  }
  .tip-teams .team-identity,
  .tip-teams .team-identity-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    text-align: center;
  }
  .tip-teams > strong {
    display: flex;
    justify-content: center;
  }
  .tip-teams .team-source-link {
    width: 100%;
    justify-content: center;
  }
  .tip-teams .team-identity,
  .tip-teams .team-identity-end {
    width: 100%;
    align-items: center;
    justify-content: center;
  }
  .tip-teams .team-crest {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }
  .tip-teams .team-identity > span {
    width: 100%;
    text-align: center;
    overflow-wrap: normal;
    hyphens: auto;
    font: 700 0.88rem/1.08 var(--display);
  }
  .mobile-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding-top: 0.2rem;
    font: 800 1.25rem var(--display);
    font-variant-numeric: tabular-nums;
  }
  .mobile-match-score b {
    display: grid;
    place-items: center;
    width: 30px;
    height: 40px;
    border: 1px solid rgba(24, 33, 29, 0.16);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 3px 8px rgba(11, 41, 29, 0.1);
  }
  .tip-source-mark {
    position: static;
    grid-column: 2;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-top: 1px solid var(--line);
    color: var(--green);
    transform: none;
  }
  .tip-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin-left: calc(46px + 0.65rem);
    padding-top: 0.8rem;
  }
  .tip-action-label {
    display: block;
    color: var(--muted);
    font: 700 0.75rem var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .score-form {
    justify-content: flex-end;
  }
  .score-form input {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(24, 33, 29, 0.22);
    background: #fff;
    box-shadow: 0 3px 8px rgba(11, 41, 29, 0.1);
  }
  .tip-locked,
  .final-score {
    grid-column: 1/-1;
    text-align: right;
  }
  .final-score > strong {
    display: none;
  }
}

@media (max-width: 360px) {
  .tip-teams {
    grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  }
  .tip-teams .team-crest {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .mobile-match-score b {
    width: 27px;
    height: 38px;
  }
  .tip-action {
    margin-left: 0;
  }
}

/* Roomier screens keep the same match center while preserving a compact row. */
@media (min-width: 641px) {
  .tip-teams {
    grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
    gap: 0.65rem;
  }
  .tip-teams > i {
    display: none;
  }
  .tip-teams > strong {
    min-width: 0;
  }
  .tip-teams .team-identity {
    max-width: 100%;
  }
  .tip-teams .team-identity > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font: 800 1.35rem var(--display);
    font-variant-numeric: tabular-nums;
  }
  .mobile-match-score b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 44px;
    border: 1px solid rgba(24, 33, 29, 0.16);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 3px 8px rgba(11, 41, 29, 0.1);
  }
  .tip-action:has(.tip-action-label) {
    display: grid;
    justify-items: end;
    gap: 0.25rem;
  }
  .tip-action-label {
    display: block;
    color: var(--muted);
    font: 700 0.72rem var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .final-score > strong {
    display: none;
  }
}

@media (min-width: 760px) and (max-width: 900px) {
  .tip-row {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
  }
  .tip-action {
    grid-column: auto;
  }
}

/* Shared touch floor found during the responsive QA pass. */
@media (pointer: coarse) {
  .button,
  .brand,
  .back-link,
  .help-index a,
  .market-check {
    min-height: 44px;
  }
  .back-link,
  .help-index a {
    display: flex;
    align-items: center;
  }
}
@media (max-width: 640px) {
  .matchday-jump a {
    flex-basis: 44px;
    min-height: 44px;
  }
}

/* Chat widget */
.chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  font-family: var(--body);
}
.chat-widget-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  background: var(--green);
  color: var(--paper);
  border: 0;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  font: 700 0.95rem var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  touch-action: manipulation;
}
.chat-widget-toggle:hover,
.chat-widget-toggle:focus-visible {
  background: var(--green-light);
}
.chat-widget-toggle[aria-expanded="true"] {
  background: var(--green-light);
  box-shadow: 0 0 0 3px var(--yellow);
}
.chat-widget-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.chat-widget-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  background: var(--red);
  color: var(--paper);
  border-radius: 999px;
  font: 700 0.72rem/1.35rem var(--body);
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
.chat-widget-badge[hidden] {
  display: none;
}
.chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(360px, calc(100vw - 2rem));
  height: min(480px, calc(100dvh - 120px));
  max-height: 600px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel[hidden] {
  display: none !important;
}
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: var(--paper);
  border-bottom: 2px solid var(--yellow);
  min-height: 52px;
}
.chat-panel-header strong {
  font: 700 1rem var(--display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.chat-panel-close {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  background: transparent;
  border: 0;
  color: var(--paper);
  line-height: 1;
  cursor: pointer;
}
.chat-panel-close svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
}
.chat-panel-close:hover,
.chat-panel-close:focus-visible {
  color: var(--yellow);
  outline-offset: -3px;
}
.chat-panel-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-padding-bottom: 1rem;
}
.chat-message-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  min-height: 100%;
}
.chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.chat-message-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.chat-message-user {
  font-weight: 700;
  color: var(--ink);
}
.chat-message-time {
  font-variant-numeric: tabular-nums;
}
.chat-message-text {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  word-break: break-word;
}
.chat-error {
  color: var(--red);
  font-size: 0.9rem;
  text-align: center;
}
.chat-history-error {
  margin: auto 0;
  padding: 1rem;
  background: var(--paper-focus);
  border-top: 2px solid var(--red);
  color: var(--ink);
  text-align: center;
}
.chat-history-error p {
  margin: 0 0 0.75rem;
}
.chat-history-retry {
  min-height: 42px;
  border: 0;
  padding: 0.55rem 0.8rem;
  background: var(--green);
  color: var(--paper);
  font: 700 0.82rem var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chat-history-retry:hover,
.chat-history-retry:focus-visible {
  background: var(--green-light);
}
.chat-connection-status {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-left: auto;
  margin-right: 0.75rem;
}
.chat-connection-status[data-state="open"] {
  background: #70d190;
}
.chat-connection-status[data-state="connecting"] {
  background: var(--yellow);
}
.chat-panel-form {
  position: relative;
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-new-messages {
  position: absolute;
  z-index: 1;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  min-height: 38px;
  border: 1px solid var(--green-deep);
  padding: 0.4rem 0.65rem;
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 3px 8px rgba(11, 41, 29, 0.2);
  font: 700 0.72rem var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}
.chat-new-messages:hover,
.chat-new-messages:focus-visible {
  background: var(--green-light);
}
.chat-new-messages[hidden] {
  display: none;
}
.chat-panel-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  min-height: 48px;
  font-size: 16px;
}
.chat-panel-input:focus-visible {
  outline-offset: -3px;
}
.chat-panel-send {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 48px;
  background: var(--green);
  color: var(--paper);
  border: 0;
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.chat-panel-send svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.chat-panel-send:hover,
.chat-panel-send:focus-visible,
.chat-panel-send:active {
  background: var(--green-light);
}
@media (max-width: 640px) {
  .chat-panel {
    --chat-edge: max(0.75rem, env(safe-area-inset-bottom));
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(var(--chat-edge) + var(--chat-keyboard-inset, 0px));
    width: auto;
    height: calc(var(--chat-visible-height, 100dvh) - (var(--chat-edge) * 2));
    max-height: none;
    border-radius: var(--radius);
  }
}
@media (max-width: 480px) {
  .chat-widget {
    right: auto;
    left: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
  .chat-widget-label {
    display: none;
  }
}

.button-danger {
  border-color: #8f1d14 !important;
  background: #b42318 !important;
  color: #fff !important;
}
.button-danger:hover,
.button-danger:focus {
  background: #8f1d14 !important;
}

.player-status {
  display: block !important;
  width: max-content;
  max-width: 100%;
  margin: 0.25rem auto !important;
  padding: 0.15rem 0.35rem;
  background: var(--yellow);
  color: var(--green-deep) !important;
  font: 700 0.62rem var(--display) !important;
  line-height: 1.1 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal !important;
}
.player-status-injured {
  background: var(--red) !important;
  color: var(--paper) !important;
}
.selection-row .player-status,
.player-cell .player-status {
  margin: 0.18rem 0 0.1rem !important;
}
.player-marker.is-unavailable {
  background: #e2d7ba;
}
.player-marker.is-unavailable:before {
  background: var(--red);
}
.lineup-popover {
  position: fixed;
  z-index: 20;
  width: min(280px, calc(100vw - 1rem));
  max-height: min(280px, calc(100dvh - 1rem));
  overflow-y: auto;
  border: 2px solid var(--green-deep);
  background: var(--paper);
  box-shadow:
    0 12px 28px rgba(11, 41, 29, 0.22),
    0 3px 8px rgba(11, 41, 29, 0.12);
}
.lineup-popover > p {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--line);
  background: var(--green-deep);
  color: var(--paper);
  font: 700 0.72rem var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lineup-popover-option {
  display: grid;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}
.lineup-popover-option:last-child {
  border-bottom: 0;
}
.lineup-popover-option:active,
.lineup-popover-option[aria-current="true"] {
  background: #fff3bf;
}
.lineup-popover-option:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}
.lineup-popover-option strong {
  overflow: hidden;
  font: 700 1rem var(--display);
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.lineup-popover-option small {
  overflow: hidden;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .pitch-slot {
    cursor: pointer;
  }
}

.site-hero-surface {
  background-color: var(--green);
  background-image: radial-gradient(
    circle,
    rgba(242, 232, 205, 0.18) 1.2px,
    transparent 1.3px
  );
  background-size: 22px 22px;
}

/* Betrieb: incident-first control room */
:root {
  --ops-rail-height: 12px;
  --ops-rail: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 58px,
    var(--green-deep) 58px 68px
  );
  --ops-panel-padding: 1.25rem;
  --ops-note-size: 0.85rem;
}

/* Account access stays discoverable on small screens. */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 250, 240, 0.3);
  text-decoration: none;
}
.user-chip-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.user-chip-mobile-label {
  display: none;
}
@media (min-width: 641px) {
  .utility-nav {
    order: 2;
    margin-left: auto;
  }
  .header-inner > .user-chip {
    order: 3;
  }
}
@media (max-width: 640px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .header-inner > .user-chip {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0 0.625rem 0.5rem 0;
  }
  .utility-nav {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .header-inner > .user-chip {
    display: inline-flex;
    gap: 0.4rem;
    background: var(--yellow);
    color: var(--green-deep);
    border-color: var(--yellow);
    font-weight: 700;
  }
  .user-chip-mobile-label {
    display: inline;
  }
  .user-chip-name {
    display: none;
  }
}
.footer-nav {
  display: flex;
  gap: 1rem;
}
.footer-nav a {
  color: var(--green);
  font-weight: 700;
}
.legal-page {
  max-width: 860px;
  margin: 3rem auto;
}
.legal-page > h1 {
  margin: 1rem 0 1.5rem;
}
.legal-sheet {
  padding: clamp(1.25rem, 4vw, 3rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.legal-sheet h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
}
.legal-sheet h2:first-child {
  margin-top: 0;
}
.legal-sheet p {
  max-width: 72ch;
}
.legal-note {
  padding: 1rem 1.15rem;
  background: var(--paper-warning);
  border-top: 4px solid var(--yellow);
}
@media (max-width: 640px) {
  .footer-nav {
    gap: 0.75rem;
  }
  .legal-page {
    margin-top: 2rem;
  }
  .legal-sheet {
    margin-inline: -0.625rem;
    box-shadow: none;
  }
}
.flash-messages {
  display: grid;
  gap: 0.5rem;
  width: min(1280px, calc(100% - 2rem));
  margin: 1rem auto 0;
}
.flash-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--paper);
  border-top: 3px solid var(--green);
  box-shadow: 0 5px 14px rgba(11, 41, 29, 0.1);
  font-weight: 700;
  transition: opacity 0.4s ease;
}
.flash-message.is-hiding {
  opacity: 0;
}
.flash-message.flash-error {
  border-color: var(--red);
  color: #7b2415;
}
.flash-message.flash-success {
  border-color: #368d58;
}
.flash-message.flash-warning {
  border-color: var(--yellow);
}
.flash-dismiss {
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}
.is-loading {
  opacity: 0.75;
  pointer-events: none;
}
.is-loading:after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-left: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.1em;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.update-banner {
  position: sticky;
  top: 57px;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--yellow);
  color: var(--green-deep);
  box-shadow: var(--shadow);
}
.update-banner p {
  margin: 0;
  font-weight: 700;
}
.lineup-saved {
  margin-left: 0.75rem;
  color: #368d58;
  font-weight: 700;
  transition: opacity 0.5s ease;
}
.lineup-saved.is-hiding {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .flash-message,
  .lineup-saved {
    transition: none;
  }
  .is-loading:after {
    animation-duration: 1.6s;
  }
}

/* Shared select treatment: operational and market controls keep their native
   semantics but no longer inherit a browser-specific arrow. */
select:not([multiple]) {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 2.6rem;
}
.source-form-grid {
  align-items: start;
}

/* Betrieb details must bleed only to the scrollbar-adjusted mobile viewport. */

/* Shared accessible states and responsive component contracts. */
.image-fallback {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--paper-table);
  color: var(--green-deep);
  font-family: var(--display);
  font-weight: 700;
}
.player-fupa-link-small {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}
.pitch-slot-action {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}
.pitch-slot-action:focus-visible {
  outline: 3px solid var(--green-deep);
  outline-offset: -3px;
  box-shadow: inset 0 0 0 6px var(--yellow);
}
.pitch-slot a {
  position: relative;
  z-index: 2;
}
.pitch-slot .pitch-player-copy strong a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
}
.pitch-slot small,
.pitch-slot .team-identity,
.pitch-player-copy small {
  color: var(--muted);
  font-size: 0.875rem;
}
.pitch-slot .pitch-player-position,
.bench-slot .pitch-slot-position {
  font-size: 0.875rem;
}
.lineup-editor .formation-picker > span {
  color: var(--green-deep);
}
.lineup-popover p {
  padding: 0.65rem;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
}
.ranking-table th {
  text-align: left;
}
.ranking-table td,
.ranking-table th {
  min-width: 0;
}
.tip-ranking-board .ranking-head th:not(:nth-child(2)) {
  text-align: center;
}
.ranking-table .ranking-head {
  margin: 0;
}
.ranking-table .manager-name {
  font-weight: inherit;
}
.faq-section-dark {
  margin-inline: 0;
}

@media (max-width: 800px) {
  .market-header-stats {
    flex-wrap: wrap;
    min-width: 0;
  }
  .market-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .tip-ranking-board .ranking-head,
  .tip-ranking-board .ranking-row {
    grid-template-columns: 48px minmax(0, 1fr) repeat(3, 55px) 85px;
    padding-inline: 0.75rem;
  }
}
@media (max-width: 640px) {
  .pitch-player-copy strong {
    font-size: 0.875rem;
    line-height: 1.2;
  }
  .pitch-player-copy .team-identity > span {
    display: none;
  }
  .pitch-slot small {
    font-size: 0.875rem;
    line-height: 1.25;
  }
  .pitch-slot {
    min-height: 90px;
  }
  .pitch-slot .pitch-player-position {
    font-size: 0.875rem;
  }
  .pitch-bench-title span {
    font-size: 0.875rem;
  }
  .tip-ranking-board .ranking-head {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tip-ranking-board .ranking-row {
    grid-template-columns: 45px minmax(0, 1fr) auto;
  }
  .lock-countdown {
    flex-wrap: wrap;
  }
  .lock-countdown > * {
    min-width: 0;
  }
  .lock-countdown small {
    white-space: normal;
  }
}

/* Compact roster: identity and actions share one row. */
.selection-list .selection-row {
  grid-template-columns: 42px 34px minmax(0, 1fr) minmax(112px, 136px);
  gap: 0.65rem;
  padding: 0.85rem 0.35rem 0.85rem 0;
  align-items: center;
}
.selection-player {
  min-width: 0;
}
.selection-row .selection-player strong {
  font-size: 1rem;
  line-height: 1.25;
}
.selection-player .player-fupa-link-small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
.selection-player .team-identity {
  gap: 0.35rem;
}
.selection-actions {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.selection-actions select {
  width: 100%;
  min-height: 44px;
}
.selection-actions .squad-sell-trigger {
  grid-column: auto;
  justify-self: stretch;
  min-height: 32px;
  padding: 0;
  text-align: right;
  font-size: 0.75rem;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .selection-list .selection-row {
    grid-template-columns: 38px minmax(0, 1fr) 120px;
    gap: 0.5rem;
    padding-block: 0.75rem;
  }
  .selection-row > .player-photo-link {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }
  .selection-row > .position-badge {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 46px;
    width: 38px;
  }
  .selection-player {
    grid-column: 2;
    grid-row: 1;
  }
  .selection-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .selection-actions .squad-sell-trigger {
    min-height: 44px;
  }
}
