
:root {
  --bg: #101310;
  --surface: #191d19;
  --surface2: #202620;
  --border: #2c322b;
  --text: #f1f3ed;
  --muted: #a1aa9d;
  --lime: #b9ef50;
  --gold: #d6b66b;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.12;
  margin-bottom: 14px;
}
h1 em {
  color: var(--lime);
  font-style: normal;
}
h1 > span {
  color: var(--lime);
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
h3 {
  font-weight: 650;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
p {
  line-height: 1.65;
  color: var(--muted);
  font-size: 1rem;
}
small {
  font-size: 0.8rem;
  line-height: 1.5;
}
svg {
  flex-shrink: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.875rem;
  color: #d7ddcf;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #3b4238;
  border-radius: 8px;
  background: #131812;
  color: var(--text);
  padding: 12px 13px;
  min-height: 46px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--lime);
}
input[type="color"] {
  padding: 5px;
}
input::placeholder {
  color: #7e8879;
}
textarea {
  resize: vertical;
}
select {
  cursor: pointer;
}
button {
  border: 0;
  background: transparent;
}
button:not(.button) {
  min-height: 36px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 8px;
  background: var(--lime);
  color: #17200d;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid transparent;
  white-space: normal;
}
.button:hover {
  filter: brightness(1.08);
}
.button.secondary {
  background: #242a22;
  border-color: #3a4234;
  color: #e4eadc;
}
.button.danger {
  background: #352323;
  border-color: #634039;
  color: #ffb3a7;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--lime);
}
.muted {
  color: var(--muted);
}
.wide {
  grid-column: 1/-1;
}
.app {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  border-right: 1px solid var(--border);
  padding: 36px 22px;
  background: #151914;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.11em;
}
.brand > span > span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  margin-top: 5px;
  color: var(--muted);
}
.brand-mark {
  width: 49px;
  height: 58px;
  border: 2px solid var(--lime);
  border-radius: 8px 8px 18px 18px;
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-label {
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  color: #7d8776;
  margin: 55px 12px 18px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 49px;
  padding: 12px 14px;
  color: #aeb7a7;
  font-size: 0.875rem;
  border-radius: 8px;
}
.sidebar nav a.active {
  background: #28351d;
  color: var(--lime);
  font-weight: 700;
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.club-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 26px;
  color: #849078;
  font-size: 0.65rem;
  line-height: 1.9;
  letter-spacing: 0.09em;
}
.club-note b {
  color: #c1cbb7;
}
.sidebar-bottom > small {
  display: block;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin-bottom: 10px;
}
.sidebar-bottom > button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.main-wrap {
  margin-left: 232px;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--border);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.season-badge {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
}
.content {
  max-width: 1490px;
  padding: 40px 42px 0;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  margin-bottom: 0;
  font-size: 0.95rem;
}
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.source-control {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.source-control select {
  width: auto;
  max-width: 100%;
  font-size: 0.83rem;
  background: #181e15;
  border-color: #333d2a;
}
.sync {
  font-size: 0.75rem;
  color: #a2b290;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sync > span {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
}
.sync.warning {
  color: #e6b86a;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}
.match-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 24px;
  background: var(--surface);
  overflow: hidden;
}
.match-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.row > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.match-card .eyebrow {
  margin: 0;
  color: var(--lime);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #46513b;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.match-card h2 {
  margin: 27px 0 22px;
  font-size: 1.7rem;
}
.match-card.featured {
  border-color: #526b33;
  background: linear-gradient(120deg, #28351e, #1a2215);
  height: 100%;
  position: relative;
}
.match-card.featured h2 {
  font-size: 2.3rem;
  letter-spacing: -0.05em;
}
.match-date {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  text-transform: capitalize;
}
.match-date b {
  margin-left: auto;
  color: var(--lime);
  font-size: 1.25rem;
}
.match-card p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  margin: 17px 0 20px;
}
.capacity {
  height: 5px;
  background: #38432e;
  border-radius: 9px;
  margin: 26px 0 12px;
  overflow: hidden;
}
.capacity span {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: 9px;
}
.match-card .row > span {
  font-size: 0.78rem;
}
.match-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #3c4a30;
  color: var(--lime);
  font-weight: 700;
  font-size: 0.9rem;
}
.featured .match-cta {
  background: var(--lime);
  color: #1d2b10;
  padding: 13px 18px;
  border: 0;
  border-radius: 7px;
}
.leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.leader {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.leader-icon {
  width: 45px;
  height: 45px;
  background: #2b3820;
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 30px;
}
.leader .eyebrow {
  font-size: 0.64rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.leader > strong {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.leader-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
}
.leader-bottom > span {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.8rem;
}
.leader-bottom b {
  font-size: 3.3rem;
  font-weight: 500;
  letter-spacing: -0.06em;
  color: var(--lime);
  line-height: 1.3;
}
.gold .leader-icon {
  background: #3b3323;
  color: var(--gold);
}
.gold .leader-bottom b {
  color: var(--gold);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #45513b;
}
.initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #43523a, #20291a);
  color: #d2e8bb;
  font-size: 0.85rem;
  font-weight: 700;
}
.avatar.large {
  width: 112px;
  height: 112px;
  font-size: 2.5rem;
}
.home-lower {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin: 0 0 32px;
}
.panel {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  margin-bottom: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading .eyebrow {
  font-size: 0.63rem;
  margin-bottom: 10px;
}
.ranking-panel {
  padding: 24px 0 0;
  overflow: hidden;
}
.ranking-panel > .section-heading {
  padding: 0 24px;
}
.home-top-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 20px 24px;
  border-top: 1px solid #30382c;
  background: #131712;
}
.home-top-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #30392c;
  border-radius: 11px;
  background: linear-gradient(145deg, #1c2219, #151a14);
}
.home-top-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.home-top-title > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #29331f;
  font-size: 0.8rem;
}
.home-top-title h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.home-top-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-top-card li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.home-top-rank {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
}
.home-top-card li > a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 0.74rem;
  font-weight: 700;
}
.home-top-card li > a > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-top-card .avatar {
  width: 28px;
  height: 28px;
  font-size: 0.6rem;
}
.home-top-card li > strong {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #f3f6ef;
  font-size: 0.9rem;
  line-height: 1;
}
.home-top-card li > strong small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.48rem;
  font-weight: 500;
}
.table-scroll {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 0.875rem;
}
th {
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  color: #8f9a86;
  font-weight: 500;
  background: #171b15;
  text-align: center;
  padding: 13px 17px;
}
th:nth-child(2) {
  text-align: left;
}
th button {
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
  padding: 0;
}
td {
  padding: 14px 17px;
  border-top: 1px solid #293025;
  text-align: center;
}
td:nth-child(2) {
  text-align: left;
}
.table-player {
  display: flex;
  align-items: center;
  gap: 13px;
}
.table-player b {
  font-weight: 550;
  font-size: 0.9rem;
}
.table-player small {
  display: block;
  color: #919d86;
  font-size: 0.7rem;
  margin-top: 5px;
}
.rank {
  color: #7b876f;
  font-size: 0.8rem;
}
.rank.top {
  color: var(--lime);
}
.points {
  color: var(--lime);
  font-weight: 750;
  font-size: 1rem;
}
tbody tr:hover {
  background: #20271b;
}
.announcement {
  padding: 17px 0;
  border-top: 1px solid var(--border);
}
.announcement:first-of-type {
  border: 0;
  padding-top: 0;
}
.announcement small {
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  color: #8c987f;
}
.announcement h3 {
  margin: 12px 0 8px;
}
.announcement p {
  font-size: 0.85rem;
  margin-bottom: 0;
  white-space: pre-wrap;
}
.announcement img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
}
.score span {
  font-size: 0.85rem;
  color: var(--muted);
}
.score b {
  font-size: 2rem;
  white-space: nowrap;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  justify-content: space-between;
}
.toolbar > input {
  max-width: 380px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0 14px;
  width: 400px;
  max-width: 100%;
  color: #94a288;
}
.search input {
  border: 0;
  background: transparent;
  padding-left: 0;
  outline-offset: 0;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.count {
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
}
.count b {
  display: block;
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--lime);
  letter-spacing: -0.04em;
}
.tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  border-bottom: 1px solid var(--border);
  padding-bottom: 11px;
  margin-bottom: 24px;
}
.tabs button {
  padding: 11px 15px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.86rem;
  border-radius: 7px;
}
.tabs button.selected {
  background: #2e3c20;
  color: var(--lime);
}
.players-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.player-card {
  display: block;
  text-align: center;
  background: linear-gradient(155deg, #242d1f, #171d15);
  border: 1px solid #37412e;
  border-radius: 12px;
  padding: 20px 18px 0;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.player-card:hover {
  transform: translateY(-3px);
  border-color: #839f5d;
}
.player-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.position {
  font-size: 0.7rem;
  color: #aebc9e;
  letter-spacing: 0.04em;
}
.shirt {
  font-weight: 750;
  color: #6b8056;
  font-size: 1.5rem;
}
.player-card > .avatar {
  margin: 0 auto 20px;
}
.player-card h3 {
  font-size: 1.13rem;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.player-card .badges {
  justify-content: center;
}
.player-numbers {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 16px 0;
}
.player-numbers span {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 0.65rem;
}
.player-numbers b {
  color: #eaf0df;
  font-size: 1.3rem;
  font-weight: 600;
}
.card-foot {
  margin-top: 12px;
  border-top: 1px solid #38432e;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lime);
  font-size: 0.73rem;
  letter-spacing: 0.07em;
}
.load-more {
  display: flex;
  margin: 24px auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat-card > span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stat-card strong {
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--lime);
}
.stat-card.gold strong {
  color: var(--gold);
}
.stat-card small {
  color: var(--muted);
}
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  margin-bottom: 26px;
}
.profile-grid .stats-grid {
  grid-template-columns: repeat(3, 1fr);
}
.football-card {
  background: linear-gradient(145deg, #405128, #202b17);
  border: 1px solid #879b55;
  border-radius: 20px 20px 60px 20px;
  padding: 30px;
  text-align: center;
  box-shadow:
    inset 0 0 0 7px #243218,
    inset 0 0 0 8px #566a36;
}
.football-card > .row {
  margin-bottom: 24px;
  color: var(--gold);
}
.football-card .large {
  width: 130px;
  height: 130px;
  margin: 0 auto 25px;
  background: linear-gradient(150deg, #8b9d67, #324723);
  color: #f0f4d8;
  border-color: #a9b881;
}
.football-card .eyebrow {
  font-size: 0.57rem;
  margin-bottom: 10px;
  color: #bac8a2;
}
.football-card h2 {
  font-size: 1.7rem;
}
.card-rating strong {
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 700;
}
.card-rating span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  margin-top: 10px;
  color: var(--gold);
}
.football-card .player-numbers {
  margin-top: 22px;
  border-top: 1px solid #566541;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.actions select {
  width: auto;
  max-width: 100%;
}
.admin-table td:first-child {
  text-align: left;
}
.admin-table td:last-child {
  text-align: right;
}
.admin-table .actions {
  justify-content: flex-end;
}
.admin-table td > small {
  display: block;
}
.modal {
  border: 1px solid #48513c;
  border-radius: 14px;
  color: var(--text);
  background: #181e15;
  width: 720px;
  max-width: calc(100vw - 24px);
  max-height: 90dvh;
  padding: 26px;
  box-shadow: 0 30px 100px #0009;
}
.modal::backdrop {
  background: #030701b8;
  backdrop-filter: blur(5px);
}
.modal-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-title h2 {
  margin-bottom: 0;
}
.modal-title button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
}
.form-grid legend {
  font-size: 0.86rem;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.upload {
  padding: 14px;
  border: 1px dashed #45513b;
  border-radius: 9px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.upload img {
  object-fit: cover;
  border-radius: 8px;
}
.upload input {
  font-size: 0.75rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: -26px;
  padding: 22px 0;
  background: #181e15;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.error,
.success,
.info {
  padding: 15px 18px;
  border: 1px solid #6c453a;
  border-radius: 8px;
  background: #36251d;
  color: #ffd3bd;
  font-size: 0.9rem;
  line-height: 1.5;
}
.success,
.info {
  border-color: #465d30;
  background: #25321a;
  color: #c9ec9e;
}
.error button {
  margin-left: 15px;
  text-decoration: underline;
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  color: #8fa17a;
  padding: 30px;
  text-align: center;
  gap: 14px;
}
.empty p {
  margin: 0;
}
.loading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--muted);
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #39462d;
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.login {
  max-width: 460px;
  margin: 50px auto;
}
.login > .brand-mark {
  margin-bottom: 30px;
}
.login h1 {
  font-size: 2rem;
}
.login form,
.account-panel form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-login {
  display: block;
  margin-top: 25px;
  color: var(--muted);
}
.account-panel {
  max-width: 620px;
  margin: 30px auto;
}
.account-panel details {
  margin: 25px 0;
}
.account-panel summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  color: var(--lime);
}
.account-panel form {
  margin-bottom: 25px;
}
.match-info {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
}
.match-info > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c1cfb2;
  font-size: 0.95rem;
}
.match-info strong {
  color: var(--lime);
  margin-left: auto;
}
.match-detail .score {
  justify-content: center;
  gap: 40px;
  padding: 35px;
}
.match-detail .score b {
  font-size: 4rem;
  color: var(--lime);
}
.participants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 25px;
}
.participants a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.participants small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.7rem;
}
.participants a > span:last-child {
  margin-left: auto;
  color: var(--lime);
  font-size: 0.75rem;
}
.result-players {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.result-player {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 10px;
  background: #11170e;
}
.result-player h3 {
  color: var(--lime);
}
.result-player .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.result-player label {
  font-size: 0.7rem;
}
.result-player label:nth-child(1),
.result-player label:nth-child(2) {
  grid-column: span 2;
}
.bars > div {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  font-size: 0.875rem;
}
.bars > div > span {
  width: 140px;
}
.bars > div > div {
  flex: 1;
  height: 10px;
  background: #2d3526;
  border-radius: 5px;
  overflow: hidden;
}
.bars i {
  display: block;
  background: var(--lime);
  height: 100%;
  border-radius: 5px;
}
.bars b {
  width: 40px;
  text-align: right;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  margin-top: 50px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: #7e8974;
}
footer > span:first-child {
  color: var(--lime);
  font-weight: 800;
}
footer b {
  font-size: 0.6rem;
  color: #929d88;
  font-weight: 500;
  margin-left: 10px;
  letter-spacing: 0.1em;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 30px 0;
}
.bottom-nav,
.mobile-brand,
.mobile-only {
  display: none;
}
@media (min-width: 1500px) {
  .content {
    padding: 48px 60px 0;
  }
  .home-grid {
    grid-template-columns: 1.35fr 1fr;
  }
  .leader {
    padding: 30px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding: 28px 16px;
  }
  .main-wrap {
    margin-left: 205px;
  }
  .content {
    padding: 30px 25px 0;
  }
  .topbar {
    padding: 0 25px;
  }
  .home-grid {
    grid-template-columns: 1.1fr 1fr;
  }
  .leader {
    padding: 18px;
  }
  .leader > strong {
    font-size: 1.35rem;
  }
  .leader-bottom .avatar {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }
  .players-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .match-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-lower {
    grid-template-columns: 1.35fr 1fr;
  }
  .home-lower .section-heading {
    align-items: flex-start;
  }
  .home-lower .text-link {
    font-size: 0.7rem;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 185px;
    padding: 26px 12px;
  }
  .main-wrap {
    margin-left: 185px;
  }
  .brand {
    font-size: 0.8rem;
    gap: 8px;
  }
  .brand-mark {
    width: 43px;
  }
  .sidebar nav a {
    gap: 10px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-grid .leaders {
    grid-template-columns: 1fr 1fr;
  }
  .leader {
    padding: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 20px;
  }
  .leader-icon {
    grid-row: 1/4;
    grid-column: 2;
    margin: 0;
  }
  .leader > .eyebrow {
    grid-column: 1;
  }
  .leader-bottom {
    grid-column: 1/-1;
    padding-top: 8px;
  }
  .leader-bottom > span {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .leader-bottom b {
    font-size: 2.5rem;
  }
  .home-lower {
    grid-template-columns: 1fr;
  }
  .home-lower > div > .panel {
    margin-bottom: 0;
  }
  .players-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-grid {
    grid-template-columns: 260px 1fr;
  }
  .profile-grid .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-grid .stat-card {
    padding: 16px;
  }
  .filters {
    grid-template-columns: repeat(2, 1fr);
  }
  .participants {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .main-wrap {
    margin-left: 0;
  }
  .topbar {
    height: 68px;
    padding: 0 20px;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--lime);
    letter-spacing: -0.06em;
  }
  .mobile-brand span {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
    color: #acb99f;
    width: 70px;
    line-height: 1.6;
  }
  .season-badge {
    font-size: 0.6rem;
    padding: 6px;
  }
  .top-right {
    gap: 18px;
  }
  .content {
    padding: 27px 18px 90px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 2.5rem;
  }
  .page-heading .eyebrow {
    font-size: 0.61rem;
    margin-bottom: 13px;
  }
  .page-heading p {
    font-size: 0.875rem;
  }
  .source-control {
    gap: 12px;
    margin-bottom: 22px;
  }
  .source-control select {
    font-size: 0.78rem;
    min-height: 43px;
  }
  .sync {
    font-size: 0.7rem;
  }
  .home-grid {
    gap: 16px;
    margin-bottom: 22px;
  }
  .match-card {
    padding: 21px;
  }
  .match-card.featured h2 {
    font-size: 2rem;
  }
  .match-card .eyebrow {
    font-size: 0.6rem;
  }
  .badge {
    font-size: 0.58rem;
  }
  .match-date {
    font-size: 0.85rem;
  }
  .leaders {
    gap: 12px !important;
  }
  .leader {
    padding: 18px 15px;
    display: flex;
  }
  .leader-icon {
    width: 35px;
    height: 35px;
    margin-bottom: 16px;
  }
  .leader .eyebrow {
    font-size: 0.53rem;
    letter-spacing: 0.08em;
    margin-bottom: 9px;
  }
  .leader > strong {
    font-size: 1.25rem;
  }
  .leader-bottom {
    padding-top: 17px;
    width: 100%;
    gap: 5px;
  }
  .leader-bottom > span {
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
  }
  .leader-bottom b {
    font-size: 2.65rem;
  }
  .home-lower {
    gap: 0;
  }
  .panel {
    padding: 20px;
    border-radius: 11px;
  }
  .ranking-panel {
    padding: 20px 0 0;
  }
  .ranking-panel > .section-heading {
    padding: 0 18px;
  }
  .home-top-three {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }
  .home-top-card {
    padding: 14px;
  }
  .home-top-card ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .home-top-card li {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    padding-right: 7px;
    border-right: 1px solid #30392c;
  }
  .home-top-card li:last-child {
    padding-right: 0;
    border-right: 0;
  }
  .home-top-card li > a {
    align-items: flex-start;
    flex-direction: column;
    font-size: 0.7rem;
  }
  .home-top-card li > strong {
    grid-column: 2;
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 1.15rem;
  }
  .section-heading .eyebrow {
    font-size: 0.54rem;
  }
  .section-heading .text-link {
    font-size: 0.7rem;
  }
  .home-lower .panel {
    margin-bottom: 22px;
  }
  .home-lower > div > .panel {
    margin-bottom: 0;
  }
  .match-grid {
    grid-template-columns: 1fr;
  }
  .table-scroll th,
  .table-scroll td {
    padding: 13px 12px;
  }
  .table-player {
    gap: 10px;
  }
  .table-player .avatar {
    width: 34px;
    height: 34px;
    font-size: 0.7rem;
  }
  .table-player b {
    font-size: 0.8rem;
  }
  .table-player small {
    font-size: 0.62rem;
  }
  .players-grid {
    gap: 12px;
  }
  .player-card {
    padding: 15px 12px 0;
  }
  .player-card .avatar.large {
    width: 85px;
    height: 85px;
    font-size: 2rem;
  }
  .player-top {
    margin-bottom: 15px;
    gap: 5px;
  }
  .position {
    font-size: 0.6rem;
  }
  .shirt {
    font-size: 1.1rem;
  }
  .player-card h3 {
    font-size: 0.95rem;
  }
  .player-numbers {
    gap: 5px;
  }
  .player-numbers span {
    font-size: 0.53rem;
  }
  .player-numbers b {
    font-size: 1.1rem;
  }
  .card-foot {
    font-size: 0.61rem;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .button {
    padding: 10px 12px;
    font-size: 0.75rem;
  }
  .search {
    padding: 0 10px;
  }
  .search input {
    font-size: 0.8rem;
  }
  .count b {
    font-size: 2rem;
  }
  .count {
    font-size: 0.55rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-card strong {
    font-size: 2rem;
  }
  .stat-card > span {
    font-size: 0.6rem;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .football-card {
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
  }
  .profile-grid .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .profile-grid .stat-card {
    padding: 15px 10px;
  }
  .profile-grid .stat-card strong {
    font-size: 1.6rem;
  }
  .profile-grid .stat-card > span {
    font-size: 0.53rem;
  }
  .form-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }
  .form-grid > div {
    min-width: 0;
  }
  .modal {
    padding: 20px;
    max-height: 92dvh;
  }
  .modal-actions {
    bottom: -20px;
  }
  .result-player .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-player label:nth-child(1),
  .result-player label:nth-child(2) {
    grid-column: span 1;
  }
  .result-player {
    padding: 16px;
  }
  .match-info {
    gap: 17px;
    flex-direction: column;
    align-items: flex-start;
  }
  .match-info strong {
    margin-left: 0;
  }
  .match-detail .score {
    gap: 18px;
  }
  .match-detail .score b {
    font-size: 2.8rem;
  }
  .participants a {
    flex-wrap: wrap;
  }
  .participants a > span:last-child {
    font-size: 0.7rem;
  }
  .tabs {
    gap: 3px;
  }
  .tabs button {
    padding: 10px 13px;
    font-size: 0.8rem;
  }
  .login {
    margin: 15px auto;
  }
  .login h1 {
    font-size: 1.8rem;
  }
  .filters {
    padding: 16px;
    gap: 14px;
  }
  .filters label {
    font-size: 0.75rem;
  }
  .admin-table .actions {
    flex-wrap: nowrap;
  }
  .admin-table td {
    font-size: 0.8rem;
  }
  .bars > div {
    gap: 12px;
  }
  .bars > div > span {
    width: 90px;
    font-size: 0.8rem;
  }
  .bars b {
    font-size: 0.8rem;
  }
  footer {
    margin-top: 35px;
    padding: 23px 0;
    gap: 20px;
  }
  footer > span:last-child {
    display: none;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #151a13f5;
    backdrop-filter: blur(16px);
    border-top: 1px solid #35402b;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    z-index: 40;
    padding: 8px 8px max(9px, env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 7px 0;
    min-height: 48px;
    color: #89957d;
  }
  .bottom-nav a span {
    font-size: 0.59rem;
  }
  .bottom-nav a.active {
    color: var(--lime);
  }
  .mobile-brand .brand-mark {
    height: 42px;
  }
  .error,
  .success,
  .info {
    font-size: 0.8rem;
  }
  .button {
    min-height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.last-mvp {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--gold);
}
.last-mvp span {
  flex: 1;
}
.last-mvp small {
  display: block;
  font-size: 0.58rem;
  margin-bottom: 8px;
}
.last-mvp b {
  font-size: 0.95rem;
}
.lineup-section {
  margin: 28px 0;
  border: 1px solid #394333;
  background: #151b12;
  border-radius: 15px;
  padding: 24px;
}
.lineup-section > .section-heading {
  margin-bottom: 14px;
}
.lineup-section h2 {
  font-size: 1.55rem;
}
.lineup-status {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: #99a790;
  font-size: 0.75rem;
}
.lineup-status .draft {
  color: #f4cf8d;
  border-color: #765d31;
  background: #3a301b;
}
.lineup-tools {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.lineup-name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 18px;
}
.lineup-name-fields label {
  position: relative;
  display: block;
}
.lineup-name-fields input {
  margin-top: 10px;
}
.lineup-name-fields .team-swatch {
  display: inline-block;
  margin-right: 8px;
  width: 12px;
  height: 12px;
}
.lineup-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.875rem;
  margin: 18px 0;
  color: #b9c8ad;
}
.tactical-board {
  border: 1px solid #59604f;
  border-radius: 12px;
  overflow: hidden;
  background: #0b100a;
  box-shadow: 0 14px 40px #0003;
}
.tactical-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 20px 25px;
  background: linear-gradient(110deg, #343a32 0%, #10140e 48%, #111510 100%);
  border-bottom: 1px solid #4c5643;
}
.team-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  min-width: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.team-heading > span:nth-child(2) {
  overflow-wrap: anywhere;
}
.team-heading > b {
  margin-left: auto;
  color: #f0f2ec;
  font-size: 1.65rem;
  font-weight: 600;
  white-space: nowrap;
}
.team-heading b small {
  font-size: 0.8rem;
  color: #8e9987;
  margin-left: 3px;
}
.team-swatch {
  height: 18px;
  width: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #737e68;
}
.team-swatch.white {
  background: #f7f8f1;
  border-color: #fff;
}
.team-swatch.black {
  background: repeating-linear-gradient(135deg, #000 0 5px, #999 5px 6px);
  border-color: #ddd;
}
.team-shield {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke-width: 1.8;
}
.team-shield.white {
  color: #fff;
  fill: #fff;
  filter: drop-shadow(0 0 3px rgb(255 255 255 / 0.3));
}
.team-shield.black {
  color: #050505;
  fill: #050505;
  filter: drop-shadow(0 0 1px #aeb7a7);
}
.versus {
  font-size: 1.75rem;
  letter-spacing: -0.08em;
  font-style: italic;
  font-weight: 800;
  color: #e7eddf;
  white-space: nowrap;
}
.versus > span {
  font-size: 0.8rem;
  color: #93a584;
  margin: 0 5px;
}
.tactical-pitch {
  position: relative;
  aspect-ratio: 1000/640;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    #1e4b2a 0%,
    #1e4b2a 10%,
    #245530 10%,
    #245530 20%
  );
  isolation: isolate;
  overflow: hidden;
}
.tactical-pitch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, #071c0c70);
  pointer-events: none;
  z-index: 0;
}
.field-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #ccdebec4;
  pointer-events: none;
  z-index: 1;
}
.field-lines.portrait {
  display: none;
}
.pitch-player {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  width: 90px;
  z-index: 3;
  cursor: default;
  user-select: none;
  touch-action: none;
  min-height: unset !important;
  opacity: 1 !important;
}
.pitch-player:disabled {
  cursor: default;
  filter: none;
  opacity: 1;
}
.match-team-performances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0;
}
.captain-teams { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.captain-team { padding: 16px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.captain-team h3 { margin-top: 0; }
.captain-team .button { width: 100%; margin-top: 10px; white-space: normal; }
.live-goal-history { margin-top: 20px; }
.live-goal-history summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.live-goal-history ol { padding: 0; list-style: none; }
.live-goal-history li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.live-goal-history .goal-voided { opacity: .55; }
.live-goal-history .text-link { flex-shrink: 0; min-height: 44px; }
@media (max-width: 520px) {
  .captain-teams { grid-template-columns: 1fr; }
  .live-goal-history li { flex-wrap: wrap; }
}
.team-performance {
  padding: 16px;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  background: #ffffff04;
  min-width: 0;
}
.team-performance h3 { margin: 0 0 12px; font-size: 1rem; }
.team-performance ul { list-style: none; padding: 0; margin: 0; }
.team-performance li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 7px 0; }
.team-performance a { color: inherit; overflow-wrap: anywhere; }
.match-performance { display: inline-flex; justify-content: center; flex-wrap: wrap; gap: 5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.match-performance > span { white-space: nowrap; }
.performance-legend { color: var(--muted); font-size: .8rem; margin: 12px 0 20px; }
.pitch-player > .match-performance { background: #081009ed; color: #fff; border-radius: 4px; padding: 2px 4px; font-size: .75rem; line-height: 1.3; max-width: 100px; }
@media (max-width: 480px) {
  .match-team-performances { gap: 8px; }
  .team-performance { padding: 12px 10px; }
  .team-performance li { font-size: .875rem; }
}
.pitch-avatar {
  position: relative;
  display: grid;
  line-height: 0;
  border-radius: 50%;
  box-shadow: 0 4px 10px #0007;
}
.pitch-avatar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--team-ring, #fff);
  border-radius: 50%;
  pointer-events: none;
}
.pitch-player.team-A {
  --team-ring: #fff;
}
.pitch-player.team-B {
  --team-ring: #000;
}
.pitch-avatar .avatar {
  width: 51px;
  height: 51px;
  border-width: 0;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px #0003;
}
.team-A .avatar {
  background: linear-gradient(140deg, #fff, #dae0d4);
  color: #172413;
  border-color: #f5f7ef;
}
.team-B .avatar {
  background: linear-gradient(140deg, #2c3127, #090d07);
  color: #f5f6f1;
  border-color: #000;
}
.pitch-avatar > small {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.63rem;
  font-weight: 700;
  background: #b9ef50;
  color: #13200a;
  border: 1px solid #172410;
}
.pitch-captain {
  position: absolute;
  top: -7px;
  left: -9px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid #211700;
  background: #ffd45c;
  color: #211700;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 5px #0008;
}
.pitch-player-name {
  max-width: 110px;
  min-width: 45px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #091409d6;
  box-shadow: 0 2px 5px #0003;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.is-editing .pitch-player {
  cursor: grab;
}
.pitch-player.team-A .pitch-player-name,
.pitch-player.team-A .pitch-avatar > small {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.pitch-player.team-B .pitch-player-name,
.pitch-player.team-B .pitch-avatar > small {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
}
.tactical-board { color-scheme: only dark; }
.is-editing .pitch-player:active {
  cursor: grabbing;
}
.pitch-player.selected {
  z-index: 5;
}
.pitch-player.selected .pitch-avatar {
  outline: 2px dashed var(--lime);
  outline-offset: 10px;
}
.pitch-player.selected .pitch-player-name {
  background: var(--lime);
  color: #16220b;
}
.pitch-player:focus-visible {
  outline: 0;
}
.pitch-player:focus-visible .pitch-avatar {
  outline: 3px solid var(--lime);
  outline-offset: 10px;
}
.pitch-watermark {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #d3e7c019;
  pointer-events: none;
  z-index: 1;
}
.pitch-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(75%, 380px);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  background: #0b180ce8;
  border: 1px solid #658255;
  border-radius: 12px;
  text-align: center;
  padding: 24px;
  z-index: 2;
  pointer-events: none;
}
.pitch-empty strong {
  font-size: 1.15rem;
  color: #e6f0df;
}
.pitch-empty span {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #c1d1b8;
}
.pitch-empty svg {
  color: var(--lime);
}
.tactical-footer {
  display: flex;
  justify-content: space-between;
  padding: 13px 22px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a8b59b;
  border-top: 1px solid #45553a;
}
.tactical-footer > span:first-child {
  color: #dce6d1;
}
.lineup-roster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 25px 0 15px;
}
.lineup-roster-heading h3 {
  margin: 0;
}
.lineup-roster-heading h3 span {
  color: var(--lime);
  margin-left: 5px;
}
.lineup-roster-heading > .muted {
  font-size: 0.75rem;
}
.lineup-roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.roster-player {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #1d2518;
  border: 1px solid #35442b;
  border-radius: 9px;
  padding: 12px;
  min-width: 0;
}
.roster-player .avatar {
  width: 36px;
  height: 36px;
  font-size: 0.8rem;
}
.roster-player > span {
  flex: 1;
  min-width: 0;
}
.roster-player strong {
  display: block;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.roster-player small {
  display: block;
  margin-top: 4px;
  font-size: 0.67rem;
  color: #9aab8d;
}
.team-assign {
  display: flex;
  gap: 5px;
  align-items: center;
}
.team-assign button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1px solid #5c6d4d;
  border-radius: 6px;
  background: #2c3923;
}
.team-assign .assign-white {
  background: #e4e8dc;
  color: #1d2914;
}
.team-assign .assign-black {
  background: #0b1108;
  color: #e3edda;
}
.team-assign .chosen {
  outline: 2px solid var(--lime);
  outline-offset: 1px;
}
.lineup-save {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  position: sticky;
  bottom: 12px;
  padding: 18px;
  margin-top: 20px;
  border: 1px solid #53633e;
  border-radius: 10px;
  background: #17210fed;
  backdrop-filter: blur(12px);
  z-index: 7;
  box-shadow: 0 6px 24px #0004;
}
.lineup-bench {
  padding: 22px 0 0;
}
.lineup-bench h3 {
  font-size: 0.85rem;
  color: #b9c8ab;
}
.lineup-bench > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lineup-bench > div > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #34432b;
  background: #1c2616;
  border-radius: 24px;
  font-size: 0.8rem;
}
.lineup-bench .avatar {
  width: 29px;
  height: 29px;
  font-size: 0.65rem;
}
.lineup-add {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.lineup-add label {
  flex: 1;
  max-width: 420px;
}
.selected-player-control {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #25341b;
  border: 1px solid #4e6637;
  border-radius: 9px;
  margin: 16px 0;
}
.selected-player-control > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.selected-player-control strong {
  display: block;
  font-size: 0.95rem;
}
.selected-player-control small {
  display: block;
  color: #a8b996;
}
.nudge-buttons {
  display: flex;
  gap: 5px;
}
.nudge-buttons button {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #35482a;
  border-radius: 7px;
}
.lineup-section .error,
.lineup-section .success {
  margin-top: 18px;
}
.lineup-section .lineup-status > .badge {
  font-size: 0.65rem;
}
@media (max-width: 1050px) {
  .tactical-scoreboard {
    padding: 16px;
    gap: 13px;
  }
  .team-heading {
    font-size: 0.875rem;
  }
  .pitch-avatar .avatar {
    width: 45px;
    height: 45px;
  }
  .pitch-player {
    width: 78px;
  }
  .lineup-roster {
    grid-template-columns: 1fr;
  }
  .selected-player-control {
    flex-wrap: wrap;
  }
  .selected-player-control > div:first-child {
    min-width: 180px;
  }
}
@media (max-width: 700px) {
  .lineup-section {
    padding: 17px 12px;
    margin: 24px -4px;
  }
  .lineup-section > .section-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .lineup-section h2 {
    font-size: 1.2rem;
  }
  .lineup-section .eyebrow {
    font-size: 0.56rem;
  }
  .lineup-section > .section-heading .button {
    padding: 10px 12px;
    font-size: 0.72rem;
    max-width: 145px;
  }
  .lineup-status {
    font-size: 0.65rem;
    gap: 9px;
  }
  .lineup-section .lineup-status > .badge {
    font-size: 0.58rem;
  }
  .lineup-name-fields {
    gap: 12px;
  }
  .lineup-name-fields label {
    font-size: 0.75rem;
  }
  .lineup-tools .actions .button {
    font-size: 0.75rem;
    padding: 10px 12px;
  }
  .lineup-hint {
    font-size: 0.8rem;
    line-height: 1.6;
  }
  .tactical-scoreboard {
    grid-template-columns: 1fr auto 1fr;
    padding: 13px 9px;
    gap: 7px;
  }
  .team-heading {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 5px;
    font-size: 0.75rem;
    letter-spacing: -0.015em;
  }
  .team-heading .team-swatch,
  .team-heading .team-shield {
    width: 11px;
    height: 11px;
  }
  .team-heading > b {
    grid-column: 2;
    font-size: 1.1rem;
    margin-left: 0;
  }
  .team-heading b small {
    font-size: 0.7rem;
  }
  .versus {
    font-size: 1.3rem;
  }
  .versus > span {
    font-size: 0.65rem;
    margin: 0 3px;
  }
  .tactical-pitch {
    aspect-ratio: 640/1000;
    background: repeating-linear-gradient(
      180deg,
      #1e4b2a 0%,
      #1e4b2a 10%,
      #245530 10%,
      #245530 20%
    );
  }
  .field-lines.landscape {
    display: none;
  }
  .field-lines.portrait {
    display: block;
  }
  .pitch-player {
    left: var(--portrait-x);
    top: var(--x);
    width: 52px;
    gap: 3px;
  }
  .pitch-avatar .avatar {
    width: 35px;
    height: 35px;
    font-size: 0.7rem;
    border-width: 0;
  }
  .pitch-player-name {
    font-size: 0.64rem;
    max-width: 58px;
    padding: 2px 4px;
  }
  .pitch-avatar > small {
    width: 14px;
    height: 14px;
    right: -2px;
    bottom: -1px;
    font-size: 0.49rem;
  }
  .pitch-captain {
    width: 18px;
    height: 18px;
    top: -6px;
    left: -7px;
    border-width: 1px;
    font-size: 10px;
  }
  .pitch-player > .match-performance {
    max-width: 62px;
    gap: 3px;
    padding: 1px 3px;
    font-size: 0.61rem;
  }
  .pitch-empty {
    width: 76%;
    padding: 20px 14px;
  }
  .pitch-empty strong {
    font-size: 1rem;
  }
  .pitch-empty span {
    font-size: 0.8rem;
  }
  .tactical-footer {
    font-size: 0.5rem;
    padding: 12px 10px;
    letter-spacing: 0.09em;
  }
  .lineup-roster-heading {
    align-items: flex-start;
  }
  .lineup-roster-heading h3 {
    font-size: 0.9rem;
  }
  .lineup-roster-heading > .muted {
    font-size: 0.65rem;
    text-align: right;
    max-width: 120px;
  }
  .roster-player {
    padding: 10px;
    gap: 9px;
  }
  .roster-player strong {
    font-size: 0.85rem;
  }
  .roster-player .avatar {
    width: 30px;
    height: 30px;
  }
  .team-assign button {
    width: 44px;
    height: 44px;
  }
  .lineup-save {
    bottom: 78px;
    padding: 12px;
    gap: 9px;
    margin-left: -3px;
    margin-right: -3px;
  }
  .lineup-save .button {
    font-size: 0.8rem;
    padding: 11px 13px;
  }
  .lineup-add {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .lineup-add label {
    max-width: none;
  }
  .selected-player-control {
    padding: 12px;
    gap: 12px;
  }
  .selected-player-control > div:first-child {
    width: 100%;
  }
  .selected-player-control .button {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 10px;
  }
  .nudge-buttons button {
    width: 42px;
  }
  .lineup-name-fields input {
    font-size: 0.875rem;
  }
  .pitch-watermark {
    bottom: 48%;
    font-size: 2.5rem;
    opacity: 0.6;
  }
  .lineup-bench > div {
    gap: 8px;
  }
  .lineup-bench > div > span {
    padding: 7px 9px;
    font-size: 0.75rem;
  }
}

/* LFC club identity */
.app::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/lfc-logo.webp") no-repeat right 10% center;
  background-size: min(70vw, 740px);
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
.main-wrap {
  position: relative;
}
.brand-mark.club-logo {
  background: transparent;
  border: 0;
  clip-path: none;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.club-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mobile-brand {
  align-items: center;
  gap: 8px;
}
.mobile-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.boot .club-logo,
.login .club-logo {
  width: 100px;
  height: 100px;
  margin-inline: auto;
}
.pitch-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  bottom: auto;
  width: 18%;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.13;
  pointer-events: none;
}
.football-card {
  position: relative;
  isolation: isolate;
}
.football-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/lfc-logo.webp") center/90% auto no-repeat;
  opacity: 0.075;
  z-index: -1;
  pointer-events: none;
}

.participant-with-remove {
  position: relative;
  min-width: 0;
}
.participants .participant-with-remove > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 46px 12px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 72px;
}
.participant-with-remove small {
  display: block;
  color: var(--muted);
}
.remove-participant {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffaaaa;
  border-radius: 50%;
}
.remove-participant:hover {
  background: #512c2c;
}
.remove-participant:focus-visible {
  outline: 2px solid var(--lime);
}
.own-photo {
  margin: 24px 0;
}
.match-reminder-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 7, 3, 0.86);
  backdrop-filter: blur(9px);
}
.match-reminder {
  position: relative;
  width: min(100%, 440px);
  padding: 34px 24px 28px;
  text-align: center;
  color: #fff;
  background: linear-gradient(155deg, #18251a, #0a0f0b 72%);
  border: 1px solid color-mix(in srgb, var(--lime) 45%, #354239);
  border-radius: 24px;
  box-shadow: 0 25px 80px #000, 0 0 45px rgba(184,238,82,.08);
}
.match-reminder .club-logo { width: 104px; height: 104px; margin: 18px auto; }
.match-reminder h2 { margin: 8px 0; font-size: clamp(2rem, 8vw, 3rem); }
.match-reminder > p { color: var(--muted); font-size: 1rem; }
.match-reminder-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #202821;
  border: 1px solid #465148;
  border-radius: 50%;
}
.match-reminder-details { display: grid; gap: 10px; margin: 22px 0; }
.match-reminder-details span { display: grid; grid-template-columns: 28px 1fr; align-items: center; text-align: left; padding: 14px; background: #111812; border: 1px solid #2c382e; border-radius: 14px; }
.match-reminder-details svg { grid-row: 1 / span 2; color: var(--lime); }
.match-reminder-details b { font-size: 1.15rem; }
.match-reminder-details small { color: var(--muted); }
.match-reminder .button { width: 100%; justify-content: center; min-height: 52px; }
