/* County League Manager: brand colours, fonts and base styles.
   Fonts are self-hosted in fonts/ (see fonts/fonts.css), nothing loads from Google.
   Every colour and font is defined once here. To try a different accent,
   change --accent and --on-accent only. */

:root {
  /* Base */
  --night: #121417;   /* app background */
  --panel: #1B1E23;   /* cards and panels */
  --row: #24282E;     /* alternate rows and inputs */
  --line: #30353C;    /* dividers and borders */
  --chalk: #F1F3F5;   /* main text */
  --mist: #A3ABB5;    /* secondary text */
  --deep: #0D0F11;    /* bottom menu and action bar, as in the mock-ups */

  /* The one accent (Continue, selected tab, links). Swap here. */
  --touchline-green: #34C46E;
  --ink: #06210F;     /* text on green */
  --accent: var(--touchline-green);
  --on-accent: var(--ink);

  /* Ratings and results: always show the number too */
  --rating-low: #F2786D;   /* 1-7, loss */
  --rating-mid: #F2B84B;   /* 8-13, draw */
  --rating-high: #4FCB86;  /* 14-20, win */
  --loss: var(--rating-low);
  --draw: var(--rating-mid);
  --win: var(--rating-high);

  /* Teletext: The Worcester Source news section only */
  --tt-black: #000000;
  --tt-blue: #0047AB;
  --tt-yellow: #FFD400;
  --tt-cyan: #00E5FF;
  --tt-green: #3DF53D;
  --tt-red: #FF3B30;

  /* Fonts */
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif; /* 600/700/800, capitals */
  --font-body: 'Inter', system-ui, sans-serif;                    /* 400/600 */
  --font-teletext: 'VT323', monospace;                            /* news section only */

  --body-size: 16px;
  --radius: 10px;
  --touch: 44px;      /* minimum touch target */
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent); }

/* Buttons */
.btn {
  display: block;
  width: 100%;
  min-height: var(--touch);
  padding: 15px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
}
.btn-secondary {
  background: rgba(27, 30, 35, 0.92); /* Panel, slightly see-through */
  color: var(--chalk);
  border: 1px solid var(--line);
}
.btn:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; }
.btn:disabled,
.btn:disabled:hover {
  background: rgba(27, 30, 35, 0.92);
  color: var(--mist);
  border-color: var(--line);
  cursor: not-allowed;
}

[hidden] { display: none !important; }

button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--chalk); outline-offset: 2px; }

/* ---------- Title screen ---------- */

.title-screen {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-width: 480px;          /* phone-shaped column on a desktop browser */
  margin: 0 auto;
  overflow: hidden;
  background: var(--night);
}

.title-screen__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 50%;
}

/* Dark fade at the bottom so the buttons sit on something solid */
.title-screen__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 230px;
  background: linear-gradient(to bottom, rgba(18, 20, 23, 0) 0%, rgba(18, 20, 23, 0.92) 70%);
}

/* The logo sits in the sky */
.logo {
  position: absolute;
  top: calc(58px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(5, 20, 50, 0.45);
}
.logo__lockup {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.logo__top {
  font-size: 54px;
  line-height: 0.88;
  letter-spacing: 1px;
}
.logo__bottom {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo__manager {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 11px;
}
.logo__rule {
  flex: 1;
  height: 3px;
  background: #fff;
}

.logo__scarf {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  filter: drop-shadow(0 2px 6px rgba(5, 20, 50, 0.35));
}

.edition {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border-radius: 20px;
  background: rgba(10, 20, 40, 0.35);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 3px;
}

.title-screen__actions {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(34px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Game screens: title bar, content, action bar, bottom menu ---------- */

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 480px;          /* phone-shaped column on a desktop browser */
  margin: 0 auto;
  background: var(--night);
  border-left: 1px solid var(--night);
  border-right: 1px solid var(--night);
}

.titlebar {
  background: var(--panel);
  padding: calc(8px + env(safe-area-inset-top)) 14px 12px 16px;
}
.titlebar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--touch);
}
.titlebar__back {
  min-height: var(--touch);
  padding: 0 16px 0 0;
  background: none;
  border: 0;
  color: var(--chalk);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.titlebar__continue {
  min-height: var(--touch);
  padding: 0 16px;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.titlebar__caption {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.titlebar__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.titlebar__title--long { font-size: 25px; }   /* long titles still fit on one line */
.titlebar__sub {
  margin-top: 2px;
  font-size: 14px;
  color: var(--mist);
}

.content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* In a scrolling column, nothing should get squashed to fit (that cut off buttons),
   and the last item keeps a gap above the menu. */
.content > * { flex-shrink: 0; }
.content::after { content: ''; flex: none; height: 4px; }

.card {
  background: var(--row);
  border-radius: var(--radius);
  padding: 12px;
}
.placeholder {
  margin: 0;
  line-height: 1.5;
}
.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent);
  font-weight: 600;
  text-align: left;
}
.notice {
  margin: 0;
  padding: 10px 12px;
  background: var(--panel);
  border-left: 3px solid var(--rating-mid);
  border-radius: 8px;
  line-height: 1.4;
}

.actionbar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
  padding: 10px 12px;
  background: var(--deep);
  border-top: 1px solid var(--line);
}
.actionbar__btn {
  min-height: var(--touch);
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__tab {
  min-height: 56px;
  padding: 12px 0 14px;
  background: none;
  border: 0;
  border-top: 3px solid transparent;
  color: var(--mist);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tabbar__tab.is-on {
  color: var(--accent);
  border-top-color: var(--accent);
}

/* Title bar with a crest (club screen) */
.titlebar__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.titlebar__head .crest { flex: none; }

/* Tabs inside a screen (Overview, Squad... / Table, Fixtures...) */
.subtabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.subtabs__tab {
  min-height: var(--touch);
  padding: 0 2px;
  background: none;
  border: 0;
  color: var(--mist);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.subtabs__tab.is-on {
  color: var(--accent);
  box-shadow: inset 0 -3px var(--accent);
}

/* Division picker */
.chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.chip {
  min-height: var(--touch);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--chalk);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* League table */
.table__grid {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 34px 46px 40px;
  align-items: center;
  column-gap: 2px;
}
.table__head { padding: 0 8px; }
.th {
  min-height: var(--touch);
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--mist);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.th.is-on { color: var(--accent); }
.table__row {
  width: 100%;
  min-height: 46px;
  padding: 6px 8px;
  background: none;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.table__row:nth-child(even) { background: var(--row); }
.table__club {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.table__club > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table__club .crest { flex: none; }
.zone-champions, .zone-promotion { box-shadow: inset 3px 0 var(--rating-high); }
.zone-playoff { box-shadow: inset 3px 0 var(--rating-mid); }
.zone-relegation { box-shadow: inset 3px 0 var(--rating-low); }
.legend {
  padding: 2px 8px;
  font-size: 14px;
  color: var(--mist);
}
.legend__item { box-shadow: none; }
.legend__item::before { content: '▌'; margin-right: 2px; }
.legend__item.zone-champions::before, .legend__item.zone-promotion::before { color: var(--rating-high); }
.legend__item.zone-playoff::before { color: var(--rating-mid); }
.legend__item.zone-relegation::before { color: var(--rating-low); }

/* The full league table: slides sideways on a phone, with the position and
   club staying put on the left. Rows need a solid background so the numbers
   slide underneath the club names cleanly. */
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 0 -4px;
  padding: 0 4px;
}
.table--wide { min-width: 512px; }
.wide__grid {
  display: grid;
  grid-template-columns: 172px 26px 36px 34px 86px repeat(5, 26px);
  align-items: center;
  column-gap: 4px;
}
.table--wide .table__head { padding: 0; }
.table--wide .table__row { padding: 0; background: var(--night); }
.table--wide .table__row:nth-child(even) { background: var(--row); }
.wide__lead {
  position: sticky;
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  align-self: stretch;
  padding: 0 4px 0 6px;
  background: inherit;
  border-radius: 8px 0 0 8px;
}
.table__head .wide__lead { background: var(--night); }
.table--wide .table__row > :not(.wide__lead) { text-align: center; }
.table--wide .table__head > .th { text-align: center; }
.form { display: inline-flex; gap: 2px; justify-content: center; font-weight: 600; }
.form > span { width: 15px; text-align: center; font-size: 15px; }
.form__win { color: var(--win); }
.form__draw { color: var(--draw); }
.form__loss { color: var(--loss); }

/* Top scorers */
.scorers__grid {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 44px 52px;
  align-items: center;
  column-gap: 6px;
}
.scorers__name { display: flex; flex-direction: column; min-width: 0; }
.scorers__name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorers__name .small { margin-top: 0; }
.scorers__grid > :nth-child(n+3) { text-align: center; }

/* The table self-check's warning */
.card--warn { border-left: 3px solid var(--loss); }
.card--warn ul { margin: 4px 0 0; padding-left: 20px; }

/* Transfers: search and shortlist */
.search__grid {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 40px 56px;
  align-items: center;
  column-gap: 6px;
}
.search__grid > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.search__attr { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 8px; }
.search__attr .field:only-child { grid-column: 1 / -1; }
.chip--asked { border-color: var(--draw); color: var(--draw); }

/* Squad list */
.squad__grid {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 40px 40px 40px;
  align-items: center;
  column-gap: 6px;
}
.squad__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.squad__name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.squad__name .small { margin-top: 0; }
.avatar { flex: none; display: block; }

/* Ratings: always the number, with colour as a second clue */
.rating { font-weight: 600; }
.rating--low { color: var(--rating-low); }
.rating--mid { color: var(--rating-mid); }
.rating--high { color: var(--rating-high); }

.chips--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chip--small { font-size: 15px; }
.hint {
  margin: 0;
  font-size: 14px;
  color: var(--mist);
  line-height: 1.4;
}

/* Player screen: profile */
.chips-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.stat {
  background: var(--row);
  border-radius: 8px;
  padding: 8px 10px;
}
.att-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}
.att {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--touch);
  border-bottom: 1px solid var(--panel);
}
.att__name {
  min-height: var(--touch);
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  color: var(--chalk);
}
.att .rating { font-variant-numeric: tabular-nums; }

/* Player screen: status */
.kv-list { display: flex; flex-direction: column; }
.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 6px;
}
.kv-row:nth-child(even) { background: var(--row); }
.kv-row > span:last-child { text-align: right; font-weight: 600; }
.kv-row.kv-row--total { border-top: 1px solid var(--line); border-radius: 0; background: none; font-weight: 600; }

/* Club finances */
.money-big { font-size: 26px; font-variant-numeric: tabular-nums; }
.money-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 64px;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.money-grid:nth-child(odd) { background: var(--row); }
.money-grid > span:not(:first-child) { text-align: right; }
.money-grid--head {
  padding-top: 0;
  padding-bottom: 0;
  background: none !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mist);
}
.fundraiser__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fundraiser__on { color: var(--accent); }
.btn-small:disabled { background: var(--row); color: var(--mist); cursor: not-allowed; }
.link {
  min-height: var(--touch);
  margin: -12px 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}
.season-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 52px 52px;
  padding: 9px 8px;
  background: var(--row);
  border-radius: 6px;
}
.season-grid--head {
  background: none;
  padding-top: 0;
  padding-bottom: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mist);
}

/* Player screen: scout */
.verdict {
  margin: 6px 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

/* Cards on the club screen */
.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.card--line {
  background: var(--panel);
  border: 1px solid var(--line);
}
.card--row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card--row .kit { flex: none; }
.label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mist);
}
.value {
  margin-top: 2px;
  font-weight: 600;
}
.small {
  margin-top: 2px;
  font-size: 14px;
  color: var(--mist);
  line-height: 1.4;
}

/* ---------- Test match result (scoreboard as in the matchday mock-up) ---------- */
.field-row.field-row--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scoreboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  background: var(--panel);
  border-radius: var(--radius);
}
.scoreboard__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  align-items: center;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}
.scoreboard__score { font-size: 44px; color: var(--accent); }
.scoreboard__ht { text-align: center; margin: 0; }
.possession {
  height: 8px;
  border-radius: 4px;
  background: var(--night);
  overflow: hidden;
  display: flex;
}
.possession > div { background: var(--accent); }
.scorers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
  line-height: 1.6;
}
.scorers__away { text-align: right; }
.match-stat {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  align-items: center;
  padding: 6px 0;
  font-weight: 600;
}
.match-stat > span:nth-child(2) { text-align: center; margin: 0; }
.match-stat > span:last-child { text-align: right; }
.lineup__row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: var(--touch);
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
}
.lineup__row > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup__row .small { margin: 0; width: 24px; flex: none; }
.lineup__row .rating { flex: none; font-variant-numeric: tabular-nums; }
.moment {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: baseline;
  padding: 4px 0;
}
.moment__minute { color: var(--accent); font-weight: 600; }
.moment .small { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }

/* ---------- Matchday ---------- */
.scorebar { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.scorebar__top { display: flex; justify-content: space-between; margin: 0; }
.scorebar__minute { color: var(--accent); font-weight: 600; }
.scorebar__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  align-items: center;
  text-align: center;
}
.scorebar__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}
.scorebar__score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  color: var(--accent);
}
.scorebar__poss { display: flex; justify-content: space-between; margin: 0; }
.speed-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.feed { display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.line { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px; }
.line__minute { color: var(--accent); font-weight: 600; }
.line--quiet { color: var(--mist); }
.line--goal b { color: var(--rating-high); }
.line--goal { font-weight: 600; }
.line--yellow > span:last-child { color: var(--rating-mid); }
.line--red > span:last-child { color: var(--rating-low); }
.line--whistle { font-weight: 600; }
.actionbar__btn.is-on { border-color: var(--accent); color: var(--accent); }
.panel { display: flex; flex-direction: column; gap: 10px; }
.sub-row {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  min-height: var(--touch);
  padding: 0 6px;
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
}
.sub-row .small { margin: 0; width: 26px; flex: none; }
.sub-row.is-on { border-color: var(--accent); background: var(--row); }
.sub-row:disabled { opacity: 0.55; cursor: default; }
.scene {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--panel);
}
.scene--flash { aspect-ratio: 16 / 9; }
.line--funny > span:last-child { color: var(--chalk); font-style: italic; }
.line--injury > span:last-child { color: var(--chalk); }
.scene-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}
.lineup__row--sub .small { color: var(--accent); }

/* ---------- Key-moment 2D view ---------- */
.moments-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.moments-row .small { margin: 0 4px 0 0; }
.chip--tiny { min-height: var(--touch); padding: 0 10px; font-size: 14px; }
.moment-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.moment-view__caption {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.moment-view__caption.is-goal { color: var(--rating-high); }
.pitch {
  display: block;
  width: 100%;
  aspect-ratio: 105 / 68;
  border-radius: 6px;
}
.moment-view .small { margin: 0; }

/* ---------- Testing lab ---------- */
.target { display: block; margin: 0; }
.scorelines { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; }
.biggest { margin-top: 4px; }
.gaps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 64px 48px 52px;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.gaps--head { border-bottom: 0; padding-bottom: 0; }
.gaps > span:not(:first-child) { text-align: right; }

/* ---------- New game screens ---------- */
.setup { gap: 12px; }
.setup__footer {
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  background: var(--deep);
  border-top: 1px solid var(--line);
}
.pick-list { display: flex; flex-direction: column; gap: 6px; }
.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}
.pick.is-on { border: 2px solid var(--accent); }
.pick .crest { flex: none; }
.pick__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pick__text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__name { font-weight: 600; }
.pick > .small { flex: none; margin: 0; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.field-head { display: flex; justify-content: space-between; align-items: center; }
.tick {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: var(--row);
  border-radius: 8px;
}
.tick input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  accent-color: var(--accent);
}
.tick > span { display: flex; flex-direction: column; gap: 2px; }
.tick__label { font-weight: 600; }
.setup__footer .notice { margin-bottom: 10px; }
.input {
  width: 100%;
  min-height: var(--touch);
  padding: 10px 12px;
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--chalk);
  font: inherit;
  font-size: 16px;   /* 16px stops phones zooming in on the box */
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.chips--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn-small {
  min-height: var(--touch);
  padding: 0 12px;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: var(--on-accent);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.faces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  justify-items: center;
}
.face {
  padding: 3px;
  background: none;
  border: 3px solid transparent;
  border-radius: 50%;
}
.face.is-on { border-color: var(--accent); }

.builder__face { display: flex; justify-content: center; padding: 4px 0; }
.opt {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 2px 12px;
  background: var(--row);
  border-radius: 8px;
}
.opt__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__arrows { display: flex; }
.arrow {
  width: var(--touch);
  height: var(--touch);
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  font-size: 15px;
}
.type-card.is-on { border: 2px solid var(--accent); }
.type-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.type-card.is-on .type-card__name { color: var(--accent); }
.type-card .small { margin: 0; }

/* Yes/no box, only for things that can't be undone */
.dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  background: rgba(6, 7, 8, 0.75);
}
.dialog__panel {
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.dialog__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dialog__body {
  margin: 0 0 4px;
  line-height: 1.5;
}

/* Small phones (about 360px wide): a little tighter so long club names fit. */
@media (max-width: 380px) {
  .scorebar__team { font-size: 15px; }
  .scorebar__score { font-size: 38px; }
  .scorebar__teams { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); }
  .titlebar__title { font-size: 27px; }
  .titlebar__title--long { font-size: 23px; }
}

/* Portrait only: on a phone turned sideways, ask for it upright */
.rotate-notice { display: none; }
@media (orientation: landscape) and (max-height: 500px) {
  .rotate-notice {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--night);
    color: var(--chalk);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 2px;
    text-align: center;
  }
}

/* ---------- Tactics: the team on an upright pitch ---------- */
.tpitch {
  position: relative;
  width: 100%;
  aspect-ratio: 68 / 80;
  /* Short enough to see the whole team without scrolling on a phone. */
  max-height: max(260px, calc(100dvh - 380px));
  margin: 0 auto;
  border-radius: 6px;
  background: repeating-linear-gradient(#2E7D3A 0 10%, #2A7435 10% 20%);
  overflow: hidden;
}
.tpitch__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}
.tpitch__spot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  max-width: 25%;
  padding: 2px;
  background: none;
  border: 0;
  border-radius: 8px;
}
.tpitch__spot.is-on { background: rgba(18, 20, 23, 0.55); box-shadow: 0 0 0 2px var(--accent); }
.tpitch__dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
}
.tpitch__dot--empty { border: 2px dashed var(--chalk); color: var(--chalk); background: rgba(18, 20, 23, 0.4); }
.tpitch__name {
  max-width: 100%;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(18, 20, 23, 0.8);
  color: var(--chalk);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tpitch__name .rating { font-variant-numeric: tabular-nums; }
.chips--six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.chips--six .chip { padding: 0 2px; font-size: 14px; letter-spacing: 0; }
.bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.bench__spot {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: var(--touch);
  padding: 0 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--chalk);
  text-align: left;
}
.bench__spot > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench__spot .small { margin: 0; }
.bench__spot--empty { grid-template-columns: 1fr; border-style: dashed; color: var(--mist); }
.bench__spot.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tlist__grid {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 40px 44px;
  align-items: center;
  column-gap: 6px;
}
.tlist__grid .small { margin: 0; }
.role__label { display: flex; justify-content: space-between; gap: 6px; }

/* ---------- Tactics controls: segmented choices, sliders and switches ---------- */
.segs { display: grid; gap: 4px; }
.segs--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segs--slider { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg {
  min-height: var(--touch);
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--chalk);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.seg.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.segs--slider .seg.is-filled:not(.is-on) { background: #1F4A30; border-color: #2B6A44; }
.seg:disabled:not(.is-on) { opacity: 0.5; }
.tslider__head { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.tslider__now { color: var(--accent); }
.tslider__ends { display: flex; justify-content: space-between; margin: 2px 0 0; }
.tswitch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--touch);
  padding: 8px 10px;
  margin-top: 6px;
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--chalk);
  text-align: left;
}
.tswitch__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tswitch__text .hint { margin: 2px 0 0; }
.tswitch__label { font-weight: 600; }
.tswitch__state {
  flex: none;
  min-width: 52px;
  padding: 6px 0;
  border-radius: 999px;
  background: var(--line);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}
.tswitch.is-on { border-color: var(--accent); }
.tswitch.is-on .tswitch__state { background: var(--accent); color: var(--on-accent); }

/* ---------- The season: next match, news, fixtures and results ---------- */
.next-match {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--touch);
  margin-top: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--chalk);
  text-align: left;
}
.next-match > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.next-match .crest, .next-match svg { flex: none; }
.news { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.news:last-child { border-bottom: 0; }
.news .small { margin: 0; }
.link-row--small { min-height: var(--touch); padding: 8px 12px; color: var(--mist); }
.fx__week { margin-top: 12px; }
.fx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  border-radius: 8px;
}
.fx:nth-of-type(even) { background: var(--row); }
.fx--mine { box-shadow: inset 3px 0 var(--accent); }
.fx__club {
  min-height: var(--touch);
  padding: 4px 6px;
  background: none;
  border: 0;
  color: var(--chalk);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx__club:first-child { text-align: right; }
.fx__club:last-child { text-align: left; }
.fx__club.is-mine, .table__row.is-mine { color: var(--accent); font-weight: 600; }
.fx__score {
  min-height: var(--touch);
  background: none;
  border: 0;
  color: var(--chalk);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
button.fx__score { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.fx__score--v { color: var(--mist); font-size: 16px; display: grid; place-items: center; }
.cfx {
  display: grid;
  grid-template-columns: 92px 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 8px;
}
.cfx:nth-child(even) { background: var(--row); }
.cfx .small { margin: 0; }
.cfx .fx__club { text-align: left; }
.fx__result {
  min-height: var(--touch);
  padding: 0 6px;
  background: none;
  border: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fx__result--win { color: var(--win); }
.fx__result--draw { color: var(--draw); }
.fx__result--loss { color: var(--loss); }
.pm { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); align-items: center; }
.pm__club {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: var(--touch);
  background: none;
  border: 0;
  color: var(--chalk);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  text-align: center;
}
.pm__v { text-align: center; color: var(--mist); }
.pm__ground { text-align: center; margin-top: 6px; }
.fx__special { padding: 10px 8px; color: var(--mist); border-radius: 8px; background: var(--row); }
.cfx--special { min-height: var(--touch); }

/* ---------- Penalties ---------- */
.scorebar__pens, .scoreboard__pens {
  text-align: center;
  font-weight: 600;
  color: var(--accent);
  margin: 2px 0;
}

/* ---------- End of season and awards night ---------- */
.scene--top { aspect-ratio: 16 / 9; }
.link-inline {
  min-height: var(--touch);
  padding: 0;
  background: none;
  border: 0;
  color: var(--chalk);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.link-inline.is-mine { color: var(--accent); font-weight: 600; }
.end-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.end-row + .end-row { border-top: 1px solid var(--line); }
.end-row .small { margin: 0; }
.end-row__club { display: flex; align-items: center; gap: 8px; min-width: 0; }
.end-row__club .crest { flex: none; }
.end-move + .end-move { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.end-playoff + .end-playoff { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.end-playoff .fx { background: none; }
.end-playoff .link-inline:first-child { text-align: right; }
.end-playoff__pens { text-align: center; margin: 0; }

.end-move__group { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: start; }
.end-move__group > span { line-height: var(--touch); font-weight: 600; }

/* ---------- History tabs ---------- */
.history__grid {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 36px 32px 32px 36px;
  align-items: center;
  column-gap: 4px;
}
.history__grid > :nth-child(n+3) { text-align: center; }
.history__club { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clubhist__grid {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 44px 40px;
  align-items: center;
  column-gap: 6px;
}
.clubhist__grid > :nth-child(n+3) { text-align: center; }
.clubhist__note { display: block; margin: 0; }

/* Position and form under each club before a match */
.pm__standing { margin: 0; font-family: var(--font-body); font-size: 14px; font-weight: 400; text-transform: none; display: flex; gap: 6px; align-items: center; }
.next-match .form > span, .pm__standing .form > span { font-size: 14px; width: 14px; }

/* ---------- The week's stages ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.steps__step {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 2px; border-radius: 8px; background: var(--panel); color: var(--mist);
  font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.steps__n { font-size: 16px; }
.steps__step.is-done { color: var(--chalk); }
.steps__step.is-done .steps__n { color: var(--win); }
.steps__step.is-on { background: var(--accent); color: var(--on-accent); }
.news--ask { display: flex; flex-direction: column; gap: 4px; }
.news--ask.is-waiting { border-left: 3px solid var(--draw); padding-left: 8px; }
.answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn--small { width: auto; min-height: var(--touch); padding: 0 14px; font-size: 16px; }
.avail { display: flex; flex-direction: column; }
.avail__row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 6px;
  min-height: var(--touch); padding: 0 6px; background: none; border: 0; border-radius: 8px; color: var(--chalk); text-align: left;
}
.avail__row:nth-child(even) { background: var(--row); }
.avail__row .small { margin: 0; }

/* ---------- Availability ---------- */
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px;
  font-size: 13px; font-weight: 600; line-height: 1.4; vertical-align: 1px; white-space: nowrap;
}
.tag--out { background: rgba(242, 120, 109, 0.16); color: var(--loss); }
.tag--late, .tag--hungover { background: rgba(242, 184, 75, 0.16); color: var(--draw); }
.table__row.is-out { opacity: 0.75; }
.chips--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chats { display: flex; flex-direction: column; gap: 8px; }
.chat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  max-width: 88%; min-height: var(--touch); padding: 8px 12px; border: 0; border-radius: 4px 14px 14px 14px;
  background: var(--row); font: inherit; text-align: left;
}
.chat__who { color: var(--accent); font-weight: 600; font-size: 14px; }
.chat__text { color: var(--chalk); }
.chat--note { max-width: 100%; border-radius: 10px; background: none; border: 1px dashed var(--line); color: var(--mist); }
.avail__row .tag { justify-self: end; }
/* A name that may be cut short, with its availability tag always showing */
.squad__name.namewrap { flex-direction: row; align-items: center; }
.namewrap > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.namewrap .tag { flex: none; }

/* ---------- Matchday conditions ---------- */
.fx__note { margin: -2px 0 4px; padding: 0 8px; text-align: center; color: var(--mist); }

/* ---------- Training: this season's changes ---------- */
.att__value { display: inline-flex; align-items: center; gap: 4px; }
.att__arrow { font-size: 11px; line-height: 1; }
.att__arrow--up { color: var(--win); }
.att__arrow--down { color: var(--loss); }

/* Fair play table */
.fair__grid { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px 32px 28px 36px; align-items: center; column-gap: 2px; }
.fair__grid > :nth-child(n+3) { text-align: center; }
.edition__badge { display: block; width: 26px; height: 26px; }

/* ---------- The county's paper (retro news style: this section only) ---------- */
.content--tt { background: var(--tt-black); padding: 0; gap: 0; }
.tt { background: var(--tt-black); color: #FFFFFF; font-family: var(--font-teletext); min-height: 100%; }
.tt-top { display: flex; justify-content: space-between; padding: 12px 16px 6px; font-size: 22px; }
.tt-cyan { color: var(--tt-cyan); }
.tt-red { color: var(--tt-red) !important; }
.tt-band { background: var(--tt-blue); padding: 10px 16px; }
.tt-name { font-size: 36px; line-height: 1; color: var(--tt-yellow); letter-spacing: 1px; }
.tt-strap { font-size: 20px; color: #FFFFFF; }
.tt-body { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 20px; }
.tt-story { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 2px solid var(--tt-blue); }
.tt-headline { margin: 0; font-family: var(--font-teletext); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--tt-yellow); }
.tt-byline { font-size: 18px; color: var(--tt-cyan); }
.tt-text { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: #FFFFFF; }
.tt-section { margin: 0; padding-top: 10px; border-top: 2px solid var(--tt-blue); font-family: var(--font-teletext); font-weight: 400; font-size: 24px; color: var(--tt-cyan); }
.tt-results { display: flex; flex-direction: column; gap: 4px; font-size: 22px; }
.tt-result { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); gap: 4px; }
.tt-result > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-result > span:last-child { text-align: right; }
.tt-score { color: var(--tt-yellow); text-align: center; }
.tt-note { font-size: 20px; color: var(--tt-green); }
.actionbar__btn.tt-key { border: 0; font-family: var(--font-teletext); font-size: 22px; letter-spacing: 0; color: #000000; }
.actionbar__btn.tt-key--red { background: var(--tt-red); }
.actionbar__btn.tt-key--green { background: var(--tt-green); }
.actionbar__btn.tt-key--yellow { background: var(--tt-yellow); }
.actionbar__btn.tt-key--cyan { background: var(--tt-cyan); }
.actionbar__btn.tt-key.is-on { outline: 3px solid #FFFFFF; outline-offset: -3px; }
/* The paper on Home (app style) */
.paper-card__label { display: flex; justify-content: space-between; }
.paper-card__new { color: var(--accent); }
.paper-card__headline { padding: 6px 0; font-family: var(--font-heading); font-weight: 700; font-size: 20px; line-height: 1.15; text-transform: uppercase; }
.card--action { border-color: var(--draw); }
.inline-link { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.news .news__from { color: var(--accent); font-size: var(--body-size); font-weight: 600; }

/* Committee: job offers */
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* Your ground, drawn */
.ground-card { border-radius: var(--radius); overflow: hidden; }
.ground-svg { display: block; width: 100%; height: auto; }

/* The editor */
.edit-form { display: flex; flex-direction: column; gap: 10px; }
.edit-ratings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.edit-rating { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.edit-rating .input { width: 64px; text-align: center; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.swatch { min-height: var(--touch); border: 2px solid var(--line); border-radius: 8px; cursor: pointer; }
.swatch.is-on { border-color: var(--chalk); outline: 2px solid var(--accent); outline-offset: 1px; }
.kit-preview { justify-content: center; }
.btn-file { display: block; }

/* Awards night */
.award__winner { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.award__winner .avatar, .award__winner svg { flex: none; }
.award--funny .label { color: var(--draw); }
.award-envelope { text-align: center; }
.award-replay { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--accent); background: var(--row); border-radius: 6px; }
.award-replay p { margin: 0 0 4px; font-style: italic; }
/* Team of the Season: a team sheet, one player a row. */
.tots { margin-top: 4px; }
.tots__row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid var(--line); }
.tots__row:first-child { border-top: 0; }
.tots__pos { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; color: var(--mist); }
.tots__who { min-width: 0; }
.tots__club { color: var(--mist); text-align: right; }
