:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0e13;
  color: #e5e7eb;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #0a0e13; }
#app { min-width: 0; }
button, input, select, textarea { font: inherit; }
button {
  border: 1px solid #2e3a47;
  background: #141b24;
  color: #f8fafc;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 7px;
  cursor: pointer;
}
button:hover { border-color: var(--club, #38bdf8); }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: var(--club, #0ea5e9); color: #081018; border-color: transparent; font-weight: 800; }
.start {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 28px;
  padding: 36px;
  background:
    linear-gradient(115deg, rgba(10,14,19,.92) 0%, rgba(10,14,19,.78) 50%, rgba(10,14,19,.95) 100%),
    radial-gradient(circle at 72% 18%, rgba(6,182,212,.18), transparent 32%),
    #0a0e13;
}
.start__panel { align-self: center; }
.loginOnly {
  grid-template-columns: minmax(280px, 760px);
  justify-content: center;
}
.loginOnly .start__panel { width: 100%; }
.loginOnly h1 { max-width: 10ch; }
.start h1 { font-size: clamp(44px, 7vw, 84px); line-height: .9; margin: 0 0 18px; max-width: 8ch; }
.lede { color: #b9c3cf; font-size: 18px; line-height: 1.55; max-width: 58ch; }
.start__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.startSaves { margin-top: 26px; }
.startSaves h2 { font-size: 18px; margin: 0 0 10px; }
.start__clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-content: center; }
.accountStrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 520px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
  color: #d4dbe5;
}
.accountStrip small { color: #93a2b2; }
.accountPanel {
  margin-top: 22px;
  max-width: 720px;
}
.syncStatus {
  margin: 10px 0 0;
  color: #93c5fd;
  font-weight: 700;
}
.accountForms {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.accountForms > div {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.accountForms h3 { margin: 0; }
.accountForms label, .academyControls label, .customClubGrid label {
  display: grid;
  gap: 6px;
  color: #93a2b2;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.customClubPanel {
  margin-top: 22px;
  max-width: 760px;
}
.customClubGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}
.customClubGrid input[type="color"] {
  width: 100%;
  min-height: 44px;
  padding: 4px;
}
.coverageGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
}
.coverageGrid span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
  font-weight: 900;
}
.managerNameField {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin: 18px 0 0;
  color: #d4dbe5;
  font-weight: 900;
}
.managerNameField span {
  color: #93a2b2;
  font-size: 12px;
  text-transform: uppercase;
}
.managerNameField input {
  min-height: 46px;
  border: 1px solid #2e3a47;
  border-radius: 7px;
  background: #0d131a;
  color: #f8fafc;
  padding: 0 12px;
}
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.layout.navCollapsed { grid-template-columns: 1fr; }
.side {
  position: relative;
  top: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 18px;
  background: #0e141b;
  border-right: 1px solid #1e2935;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.navCollapsed .side {
  height: auto;
  min-height: 0;
  z-index: 5;
}
.brandRow {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.navToggle {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 10px;
  white-space: nowrap;
  border-color: color-mix(in srgb, var(--club, #38bdf8) 70%, #2e3a47);
  color: #f8fafc;
  font-weight: 900;
  background: color-mix(in srgb, var(--club, #38bdf8) 18%, #141b24);
}
.topNavToggle { display: none; }
.sideControls {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  overflow-y: visible;
  padding-right: 4px;
  overscroll-behavior: contain;
}
.navCollapsed .sideControls { display: none; }
.brand small, td small, .marketRow small, .fixture small, .news small { display: block; color: #93a2b2; margin-top: 3px; }
.crest {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--club), var(--club2));
  color: #071018; font-weight: 900; border: 2px solid rgba(255,255,255,.22);
}
nav { display: grid; gap: 6px; min-height: 0; }
.navCategories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.navCategories button {
  min-height: 34px;
  padding: 0 8px;
  border-color: #263443;
  background: #0d131a;
  color: #93a2b2;
  font-size: 12px;
  font-weight: 900;
}
.navCategories button.active {
  background: var(--club);
  border-color: var(--club);
  color: #071018;
}
nav button {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  background: transparent; border-color: transparent; color: #cbd5e1;
}
nav button.active { background: #182230; border-color: #2e3a47; color: #fff; }
.navBadge {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #facc15;
  color: #111827;
  font-size: 11px;
  font-weight: 900;
}
.mailAlertButton {
  border-color: #facc15;
  color: #fef3c7;
  font-weight: 900;
}
.donateButton {
  border-color: #facc15;
  background: #facc15;
  color: #111827;
  font-weight: 900;
}
.bmcButton {
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid #000;
  border-radius: 7px;
  background: #ffdd00;
  color: #000;
  font-family: "Comic Sans MS", "Trebuchet MS", cursive, sans-serif;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 #000;
}
.bmcButton span { margin-right: 8px; }
.save { margin-top: 0; }
.main { min-width: 0; padding: 24px; }
.legalDisclaimer {
  margin-top: 24px;
  padding: 12px 14px;
  border-top: 1px solid #243141;
  color: #93a2b2;
  font-size: 12px;
  line-height: 1.45;
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.top h1 { margin: 0; font-size: 30px; }
.top__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.eyebrow { color: var(--club, #38bdf8); font-size: 12px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; margin: 0 0 6px; }
.card, .panel, .heroCard, .scoreboard, .stats article {
  background: #111821;
  border: 1px solid #243141;
  border-radius: 8px;
}
.card { padding: 16px; }
.club { min-height: 230px; display: flex; flex-direction: column; gap: 10px; }
.club h3 { margin: 4px 0 0; }
.club p { color: #aab6c4; margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.metrics span { background: #0d131a; border: 1px solid #253344; padding: 8px; border-radius: 6px; color: #93a2b2; }
.metrics b { display: block; color: #f8fafc; font-size: 18px; }
.expect { margin-top: auto !important; }
.dash { display: grid; gap: 16px; }
.heroCard {
  min-height: 170px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--club) 28%, #111821), #111821 58%);
}
.heroCard h2 { font-size: 34px; margin: 0 0 8px; }
.heroCard p { color: #d4dbe5; margin: 0; }
.seasonHero {
  min-height: 210px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--club) 52%, #243141);
  border-radius: 8px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--club) 30%, #111821), #111821 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 9%);
}
.seasonHero h2 { margin: 0 0 8px; font-size: clamp(34px, 5vw, 62px); line-height: 1; }
.seasonHero p { color: #d4dbe5; margin: 0; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats article { padding: 14px; }
.stats small { color: #93a2b2; display: block; margin-bottom: 6px; }
.stats b { font-size: 22px; overflow-wrap: anywhere; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two.wide { grid-template-columns: minmax(280px, 420px) 1fr; align-items: start; }
.span2 { grid-column: 1 / -1; }
.panel { padding: 18px; min-width: 0; }
.panel h2 { margin: 0 0 14px; font-size: 20px; }
.panel h3 { margin: 16px 0 10px; }
.panel p, li { color: #b7c2cf; }
.panelHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panelHead h2 { margin: 0; }
.reportGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.reportGrid > div { border: 1px solid rgba(148, 163, 184, .18); border-radius: 8px; padding: 12px; background: rgba(15, 23, 42, .34); }
.reportGrid h3 { margin-top: 0; }
.matchReport .table { margin-top: 14px; }
.pressPanel {
  border-color: color-mix(in srgb, var(--club) 42%, #243141);
  background: linear-gradient(135deg, color-mix(in srgb, var(--club) 16%, #111821), #111821 58%);
}
.pressOptions {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.pressOption {
  min-height: 132px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}
.pressOption span { color: #d4dbe5; line-height: 1.35; }
.pressOption small { color: #93a2b2; }
.pressScore {
  border: 1px solid #314153;
  border-radius: 7px;
  padding: 8px 10px;
  color: #f8fafc;
  font-weight: 900;
  white-space: nowrap;
}
.pressMood { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: #b7c2cf; }
.pressMood span { border: 1px solid #2b3949; border-radius: 7px; padding: 8px 10px; background: #0b1118; }
.simProgressPanel {
  margin-bottom: 16px;
  border-color: color-mix(in srgb, var(--club) 48%, #243141);
}
.simProgressPanel .panelHead span {
  border: 1px solid #2b3949;
  border-radius: 7px;
  padding: 8px 10px;
  color: #d4dbe5;
}
.fixtureTicker {
  display: grid;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.fixtureTicker b { color: #f8fafc; }
.tickerBar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #071018;
}
.tickerBar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--club), #f8fafc);
  transition: width .35s ease;
}
.simLog {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-height: 168px;
  overflow: hidden;
}
.simLog p {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px;
  margin: 0;
  color: #b7c2cf;
}
.simLog span { color: var(--club); font-weight: 900; }
.saveList { display: grid; gap: 10px; }
.saveCard {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #263443;
  background: #0d131a;
  border-radius: 7px;
}
.saveCard.active { border-color: var(--club, #38bdf8); background: color-mix(in srgb, var(--club, #38bdf8) 12%, #0d131a); }
.saveCard small { display: block; color: #93a2b2; margin-top: 3px; }
.saveCard span {
  min-width: 74px;
  text-align: center;
  border: 1px solid #2b3949;
  border-radius: 7px;
  padding: 8px 10px;
  color: #d4dbe5;
}
.developmentList .marketRow span {
  min-width: 92px;
  text-align: right;
  font-weight: 900;
}
.developmentPlans {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.developmentPlan {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .8fr) minmax(110px, .7fr) minmax(170px, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.developmentPlan small {
  display: block;
  color: #93a2b2;
  margin-top: 3px;
}
.developmentPlan label {
  display: grid;
  gap: 6px;
  color: #93a2b2;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.devPace {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid #2b3949;
  border-radius: 7px;
  color: #d4dbe5;
  font-weight: 900;
  white-space: nowrap;
}
input, select, textarea {
  background: #0b1118;
  border: 1px solid #2b3949;
  border-radius: 7px;
  color: #f8fafc;
  min-height: 40px;
  padding: 0 12px;
}
textarea {
  padding: 10px 12px;
  resize: vertical;
}
.table { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid #243141; vertical-align: middle; }
th { color: #9fb0c2; font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
tbody tr:hover { background: #151f2b; }
tr.me { background: color-mix(in srgb, var(--club) 12%, transparent); }
.form { display: flex; gap: 8px; margin: 12px 0 20px; }
.form span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.W { background: #166534; } .D { background: #854d0e; } .L { background: #991b1b; }
.news { padding: 12px 0; border-bottom: 1px solid #243141; }
.news b { display: block; margin: 3px 0; }
.news.needsReply {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--club, #38bdf8) 42%, #243141);
  border-radius: 7px;
  background: color-mix(in srgb, var(--club, #38bdf8) 10%, #0d131a);
}
.playerEmailAlert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #facc15;
  background: linear-gradient(120deg, rgba(250, 204, 21, .16), #111821 62%);
}
.playerEmailAlert h2 { margin: 0 0 6px; }
.playerEmailAlert p { margin: 0; }
.playerEmailPanel {
  border-color: color-mix(in srgb, var(--club, #38bdf8) 45%, #243141);
}
.objectivePanel {
  border-color: color-mix(in srgb, var(--club, #38bdf8) 36%, #243141);
}
.objectives {
  display: grid;
  gap: 8px;
}
.objective {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.objective small { display: block; color: #93a2b2; margin-top: 3px; }
.objective span {
  min-width: 78px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 7px;
  background: #141b24;
  font-weight: 900;
}
.objective.good span { color: #86efac; }
.objective.watch span { color: #fde68a; }
.objective.bad span { color: #fca5a5; }
.previewPanel {
  border-color: color-mix(in srgb, var(--club, #38bdf8) 42%, #243141);
  background: linear-gradient(135deg, color-mix(in srgb, var(--club, #38bdf8) 12%, #111821), #111821 64%);
}
.previewGrid {
  display: grid;
  gap: 8px;
}
.previewGrid p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #243141;
}
.previewGrid span { color: #93a2b2; }
.previewGrid b { text-align: right; }
.threatList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.threatList span {
  padding: 10px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.threatList small { display: block; color: #93a2b2; margin-top: 3px; }
.emailActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.offerBadge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #facc15;
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}
.offerBadge.inbound { background: #86efac; }
.offerBadge.renewal { background: #93c5fd; }
.offerOverlay {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.56);
}
.offerPopup {
  width: min(520px, 100%);
  position: relative;
  padding: 22px;
  border-radius: 8px;
  background: #111821;
  border: 1px solid color-mix(in srgb, var(--club) 46%, #334155);
  box-shadow: 0 24px 80px rgba(0,0,0,.58);
}
.offerPopup h2 { margin: 0 0 8px; font-size: 28px; }
.offerPopup h3 { margin: 0 0 10px; font-size: 20px; }
.offerPopup p { color: #d4dbe5; line-height: 1.45; }
.offerPopup small { display: block; color: #93a2b2; margin-top: 8px; }
.offerActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.toast {
  position: sticky;
  top: 12px;
  z-index: 4;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 7px;
  background: #dcfce7;
  color: #052e16;
  font-weight: 800;
}
.lineup { display: grid; gap: 8px; }
.lineup h3 { margin: 10px 0 0; }
.slot {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 44px 1fr;
  text-align: left;
  align-items: center;
  gap: 3px 10px;
}
.slot small { grid-row: span 2; color: var(--club); font-weight: 900; }
.slot span { color: #93a2b2; font-size: 13px; }
.slot.coverPosition {
  border-color: rgba(134, 239, 172, .42);
  background: rgba(22, 101, 52, .12);
}
.slot.coverPosition span { color: #bbf7d0; }
.slot.selectedSlot {
  border-color: var(--club);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--club) 28%, transparent);
}
.slot.wrongPosition {
  border-color: rgba(252, 165, 165, .6);
  background: rgba(127, 29, 29, .22);
}
.slot.wrongPosition small,
.slot.wrongPosition span { color: #fca5a5; }
.warnings, .ok { margin-top: 14px; padding: 12px; border-radius: 7px; }
.warnings { background: rgba(185, 28, 28, .18); border: 1px solid #7f1d1d; }
.warnings p { margin: 4px 0; }
.ok { background: rgba(22, 101, 52, .18); border: 1px solid #166534; color: #bbf7d0; }
.selectRow { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; color: #cbd5e1; }
.pickerHint { margin: 4px 0 0; color: #93a2b2; }
.slotNav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.slotNav button {
  min-height: 34px;
  padding: 0 8px;
  font-weight: 900;
}
.slotNav button.active {
  background: var(--club);
  color: #071018;
  border-color: transparent;
}
.pickerTools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.playerPickList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}
.playerPick {
  min-height: 56px;
  text-align: left;
}
.playerPick span { display: block; color: #93a2b2; font-size: 13px; }
.playerPick.picked { border-color: var(--club); background: color-mix(in srgb, var(--club) 18%, #141b24); }
.playerPick.alreadyPicked:not(.picked) { opacity: .62; }
.fixtures { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.fixture { border: 1px solid #263443; border-radius: 7px; padding: 12px; background: #0d131a; display: grid; gap: 8px; }
.fixture.played { opacity: .72; }
.simTools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.simTools label {
  display: grid;
  gap: 5px;
  min-width: min(360px, 100%);
  color: #93a2b2;
  font-size: 12px;
  font-weight: 800;
}
.simTools select { width: 100%; }
.resumeHint {
  width: 100%;
  margin-top: 10px;
}
.matchGrid { display: grid; gap: 16px; align-items: start; }
.liveMatch {
  background: #111821;
  border: 1px solid #243141;
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 12px;
  z-index: 2;
}
.scoreboard {
  min-height: 132px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  padding: 20px;
}
.scoreboard b { font-size: clamp(38px, 7vw, 72px); color: var(--club); }
.scoreboard span { font-size: 24px; font-weight: 900; }
.liveScore {
  min-height: 104px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--home) 30%, #111821), #111821 48%, color-mix(in srgb, var(--away) 30%, #111821));
}
.replayBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid #243141;
  border-bottom: 1px solid #243141;
}
.replayBar small {
  color: var(--club);
  font-weight: 900;
  margin-right: 8px;
}
.replayControls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.liveDecisions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid #243141;
  background: #0d131a;
}
.liveDecisions button {
  min-height: 34px;
  padding: 0 12px;
}
.pitch {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 10%),
    linear-gradient(180deg, #14532d, #166534 48%, #14532d);
}
.matchCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  transition: transform .08s ease;
}
.pitch::before {
  content: "";
  position: absolute;
  inset: 26px 8%;
  border: 2px solid rgba(255,255,255,.52);
}
.pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 26px;
  bottom: 26px;
  width: 2px;
  background: rgba(255,255,255,.52);
}
.fieldLine {
  position: absolute;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: rgba(255,255,255,.28);
}
.inGoal {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.45);
  font-weight: 900;
  font-size: 12px;
  writing-mode: vertical-rl;
  letter-spacing: 0;
  background: rgba(5, 46, 22, .42);
}
.inGoal.left { left: 0; }
.inGoal.right { right: 0; transform: rotate(180deg); }
.tackleHud {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 7px;
  background: rgba(8, 16, 24, .82);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
.tackleHud b { color: #f8fafc; font-size: 14px; }
.tackleHud > span { color: #cbd5e1; font-size: 13px; min-width: 120px; }
.tackleHud i {
  display: flex;
  gap: 4px;
  font-style: normal;
}
.tackleHud i span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}
.tackleHud i span.used {
  background: var(--active-team, var(--club));
  box-shadow: 0 0 10px color-mix(in srgb, var(--active-team, var(--club)) 70%, transparent);
}
.playerDot {
  position: absolute;
  z-index: 2;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.72);
  font-size: 9px;
  font-weight: 900;
  color: #071018;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  transition: filter .2s ease;
}
.playerDot.home { background: var(--home); }
.playerDot.away { background: var(--away); }
.isPlaying .playerDot { filter: saturate(1.08) brightness(1.05); }
.phaseMarker {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: left .52s cubic-bezier(.22,.7,.28,1), top .52s cubic-bezier(.22,.7,.28,1), transform .28s ease, opacity .22s ease;
  pointer-events: none;
}
.phaseMarker.carrier {
  width: 34px;
  height: 34px;
  background: var(--active-team, var(--home));
  border: 3px solid #f8fafc;
  box-shadow: 0 0 0 5px rgba(255,255,255,.14), 0 8px 20px rgba(0,0,0,.36);
}
.phaseMarker.carrier::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(8, 16, 24, .78);
}
.phaseMarker.support {
  width: 22px;
  height: 22px;
  background: color-mix(in srgb, var(--active-team, var(--home)) 75%, #ffffff);
  border: 2px solid rgba(255,255,255,.78);
  opacity: .9;
}
.phaseMarker.defender {
  width: 30px;
  height: 30px;
  background: #111827;
  border: 3px solid #fca5a5;
  border-radius: 7px;
  opacity: .86;
}
.passArc {
  position: absolute;
  z-index: 4;
  height: 30px;
  border-top: 3px solid rgba(255,255,255,.72);
  border-radius: 50% 50% 0 0;
  opacity: 0;
  transform-origin: left center;
  transition: left .48s cubic-bezier(.22,.7,.28,1), top .48s cubic-bezier(.22,.7,.28,1), width .48s cubic-bezier(.22,.7,.28,1), transform .48s cubic-bezier(.22,.7,.28,1), opacity .22s ease;
  pointer-events: none;
}
.passArc.active { opacity: .82; }
.ball {
  position: absolute;
  z-index: 7;
  width: 24px;
  height: 15px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid #78350f;
  box-shadow: 0 8px 18px rgba(0,0,0,.4);
  transition: left .5s cubic-bezier(.22,.7,.28,1), top .5s cubic-bezier(.22,.7,.28,1), transform .28s ease;
}
.isPlaying .phaseMarker.carrier { animation: carrier-drive 1.8s ease-in-out infinite alternate; }
.isPlaying .phaseMarker.defender { animation: defender-brace 1.8s ease-in-out infinite alternate; }
.liveMatch[data-phase="kick"] .ball { transform: translate(-50%, -50%) rotate(-42deg) scale(1.12); }
.liveMatch[data-phase="pass"] .ball, .liveMatch[data-phase="try"] .ball { transform: translate(-50%, -50%) rotate(18deg) scale(1.14); }
.liveMatch[data-phase="error"] .ball { transform: translate(-50%, -50%) rotate(82deg) scale(.95); opacity: .78; }
.ball[data-type="try"], .ball[data-type="line_break"] { transform: translate(-50%, -50%) rotate(18deg) scale(1.2); }
.ball[data-type="drop_goal"], .ball[data-type="penalty_goal"], .ball[data-type="conversion"] { transform: translate(-50%, -50%) rotate(-42deg) scale(1.08); }
.ball[data-team="home"] { outline: 3px solid color-mix(in srgb, var(--home) 55%, transparent); }
.ball[data-team="away"] { outline: 3px solid color-mix(in srgb, var(--away) 55%, transparent); }
.eventBurst {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.eventBurst.pop {
  animation: event-pop .55s ease-out;
}
.eventBurst[data-type="try"], .eventBurst[data-type="conversion"], .eventBurst[data-type="drop_goal"], .eventBurst[data-type="penalty_goal"], .eventBurst[data-type="golden_point"] {
  background: rgba(250, 204, 21, .78);
}
.eventBurst[data-type="injury"], .eventBurst[data-type="yellow"], .eventBurst[data-type="red"], .eventBurst[data-type="error"] {
  background: rgba(248, 113, 113, .78);
}
@keyframes event-pop {
  from { opacity: .95; box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  to { opacity: 0; box-shadow: 0 0 0 44px rgba(255,255,255,0); }
}
@keyframes player-shift-home {
  from { margin-left: -3px; filter: brightness(.95); }
  to { margin-left: 4px; filter: brightness(1.12); }
}
@keyframes player-shift-away {
  from { margin-left: 3px; filter: brightness(.95); }
  to { margin-left: -4px; filter: brightness(1.12); }
}
@keyframes ball-live {
  from { margin-top: -2px; }
  to { margin-top: 2px; }
}
@keyframes carrier-drive {
  from { transform: translate(-50%, -50%) scale(.96); }
  to { transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes defender-brace {
  from { transform: translate(-50%, -50%) rotate(-4deg); }
  to { transform: translate(-50%, -50%) rotate(4deg); }
}
.progress {
  height: 8px;
  background: #0b1118;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--home), #f8fafc, var(--away));
  transition: width .35s ease;
}
.timeline { max-height: 360px; overflow: auto; overscroll-behavior: contain; }
.timeline p { display: grid; grid-template-columns: 42px 130px 1fr; gap: 8px; margin: 0; padding: 10px 0; border-bottom: 1px solid #243141; }
.timeline span { color: var(--club); text-transform: capitalize; }
.replayTimeline p { opacity: .48; }
.replayTimeline p.played { opacity: .72; }
.replayTimeline p.active {
  opacity: 1;
  background: color-mix(in srgb, var(--club) 14%, transparent);
  border-left: 3px solid var(--club);
  padding-left: 8px;
}
.market { display: grid; gap: 8px; }
.marketRow {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #263443;
  background: #0d131a;
  border-radius: 7px;
}
.marketRow.negotiateRow {
  grid-template-columns: minmax(220px, 1fr) repeat(6, auto);
}
.negotiateRow input,
.negotiateRow select { min-width: 96px; }
.dealMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.dealMeta span {
  padding: 4px 7px;
  border: 1px solid #2b3949;
  border-radius: 999px;
  background: #071018;
  color: #b7c3d0;
  font-size: 11px;
  font-weight: 900;
}
.priceControl {
  display: grid;
  gap: 5px;
  min-width: 190px;
}
.priceControl > span {
  color: #93a2b2;
  font-size: 11px;
  font-weight: 900;
}
.priceControl > b {
  color: #f8fafc;
  font-size: 12px;
}
.priceButtons {
  display: grid;
  grid-template-columns: 34px 30px minmax(78px, 1fr) 30px 34px;
  gap: 4px;
  align-items: center;
}
.priceButtons button {
  min-height: 34px;
  padding: 0;
  font-weight: 900;
}
.priceButtons input {
  width: 100%;
  min-width: 0;
  text-align: right;
}
.focusPulse {
  border-color: var(--club, #38bdf8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--club, #38bdf8) 28%, transparent);
}
.budgetPill,
.wageMeter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #2b3949;
  border-radius: 7px;
  background: #071018;
  color: #d4dbe5;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.miniCheck {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #2b3949;
  border-radius: 7px;
  background: #071018;
  color: #d4dbe5;
  font-size: 12px;
  font-weight: 900;
}
.miniCheck input {
  width: 16px;
  height: 16px;
}
.contractTools {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.contractTools label {
  display: grid;
  gap: 6px;
  color: #93a2b2;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.urgentContract {
  border-color: rgba(250, 204, 21, .45);
  background: linear-gradient(90deg, rgba(250, 204, 21, .08), #0d131a 44%);
}
.capPanel {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.capPanel p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.capPanel span {
  color: #93a2b2;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.capPanel b { color: #f8fafc; }
.capPanel.bad p { border-color: rgba(252, 165, 165, .38); }
.marqueeBadge {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(250, 204, 21, .55);
  border-radius: 999px;
  color: #fde68a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: middle;
}
.wageMeter.ok { color: #86efac; border-color: rgba(134, 239, 172, .42); }
.wageMeter.over { color: #fca5a5; border-color: rgba(252, 165, 165, .52); background: rgba(127, 29, 29, .22); }
.training { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.training button.active { background: var(--club); color: #071018; font-weight: 900; }
.range { display: grid; gap: 10px; max-width: 520px; }
.academyControls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}
.academyControls label {
  display: grid;
  gap: 6px;
  color: #93a2b2;
  font-size: 12px;
  font-weight: 800;
}
.academyGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}
.academyCard {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.academyCard small { display: block; color: #93a2b2; margin-top: 3px; }
.academyMeters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.academyMeters p {
  margin: 0;
  padding: 8px;
  border-radius: 7px;
  background: #071018;
}
.academyMeters span { display: block; color: #93a2b2; font-size: 12px; }
.facilityGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
}
.facilityCard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #263443;
  border-radius: 8px;
  background: #0d131a;
}
.facilityCard b { color: #f8fafc; }
.facilityCard small { color: #93a2b2; }
.facilityCard.locked { opacity: .78; }
.facilityMeter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #071018;
  border: 1px solid #263443;
}
.facilityMeter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
}
.facilityMeta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #93a2b2;
  font-size: 12px;
  font-weight: 800;
}
.facilityMeta b { color: #f8fafc; }
.supportHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-color: #facc15;
  background: linear-gradient(120deg, rgba(250, 204, 21, .17), #111821 62%);
}
.supportHero h2 { margin: 0 0 8px; font-size: 30px; }
.supportHero p { margin: 0; max-width: 68ch; }
.supportForm {
  display: grid;
  gap: 12px;
  max-width: 760px;
}
.supportForm label {
  display: grid;
  gap: 6px;
  color: #93a2b2;
  font-size: 12px;
  font-weight: 900;
}
.supportActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.supportIdeas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.supportIdeas p {
  margin: 0;
  padding: 12px;
  border: 1px solid #263443;
  border-radius: 7px;
  background: #0d131a;
}
.supportIdeas b,
.supportIdeas span { display: block; }
.supportIdeas span { margin-top: 4px; color: #93a2b2; }
.budgetMoveControls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, auto);
  gap: 10px;
  align-items: center;
}
.budgetMoveControls input { width: 100%; }
.sackedHero {
  border-color: #f87171;
  background: linear-gradient(120deg, rgba(127, 29, 29, .52), #111821 62%);
}
.bars p { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #243141; padding: 12px 0; margin: 0; }
.good { color: #86efac; } .bad { color: #fca5a5; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 10;
}
.profile {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #111821;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 22px;
  position: relative;
}
.profile h2 { margin: 0 0 6px; font-size: 34px; }
.x { position: absolute; right: 12px; top: 12px; width: 40px; padding: 0; font-size: 24px; }
.attrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.attrs p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #263443;
  border-radius: 6px;
  background: #0d131a;
  text-transform: capitalize;
}
.empty { min-height: 260px; display: grid; place-items: center; text-align: center; }

@media (max-width: 980px) {
  .start { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
  .start h1 { font-size: 46px; max-width: 10ch; }
  .layout { grid-template-columns: 1fr; }
  .side {
    position: relative;
    top: 0;
    z-index: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 12px;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid #1e2935;
  }
  .sideControls {
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding-right: 2px;
  }
  nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .main { padding: 16px; }
  .top, .heroCard, .seasonHero, .supportHero { align-items: stretch; flex-direction: column; }
  .top h1 { font-size: 26px; }
  .top__actions { justify-content: stretch; }
  .top__actions button { flex: 1 1 150px; }
  .topNavToggle { display: inline-flex; align-items: center; justify-content: center; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capPanel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facilityGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .two.wide { grid-template-columns: 1fr; }
  .threatList { grid-template-columns: 1fr; }
  .scoreboard { grid-template-columns: 1fr; gap: 8px; }
  .timeline p { grid-template-columns: 36px 1fr; }
  .timeline p span { grid-column: 2; }
  .marketRow { grid-template-columns: 1fr; align-items: stretch; }
  .marketRow.negotiateRow { grid-template-columns: 1fr; }
  .reportGrid { grid-template-columns: 1fr; }
  .developmentPlan { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .developmentPlan > div { grid-column: 1 / -1; }
  .contractTools { grid-template-columns: 1fr; }
  .budgetMoveControls { grid-template-columns: 1fr; }
  .accountForms { grid-template-columns: 1fr; }
  .customClubGrid { grid-template-columns: 1fr; }
  .priceControl { min-width: 0; }
  .saveCard { grid-template-columns: 1fr; align-items: stretch; }
  .saveCard span { text-align: left; }
  .academyControls, .academyMeters { grid-template-columns: 1fr; }
  .pressOptions { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  button { width: 100%; }
  .brandRow { align-items: stretch; }
  .accountStrip { align-items: flex-start; flex-direction: column; }
  .brand { min-width: 0; }
  .brand small { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .navToggle { width: auto; }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  nav button { min-height: 38px; padding: 0 10px; }
  .main { padding: 12px; }
  .panel { padding: 14px; }
  .stats { grid-template-columns: 1fr; }
  .capPanel { grid-template-columns: 1fr; }
  .facilityGrid { grid-template-columns: 1fr; }
  .panelHead { align-items: stretch; flex-direction: column; }
  .selectRow { grid-template-columns: 1fr; }
  .heroCard h2 { font-size: 26px; }
  .priceButtons { grid-template-columns: 34px 30px minmax(72px, 1fr) 30px 34px; }
  .priceButtons button { width: auto; }
  .offerPopup { padding: 18px; }
  .developmentPlan { grid-template-columns: 1fr; }
  .offerActions { grid-template-columns: 1fr; }
  .tackleHud { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .tackleHud > span { min-width: 0; }
}
