:root {
  --bg: #070b18;
  --bg-2: #0b1224;
  --card: #121c36;
  --card-2: #172445;
  --line: rgba(255,255,255,.08);
  --text: #f5f7fb;
  --muted: #9aa6c3;
  --yellow: #f5c518;
  --yellow-2: #ffe27a;
  --navy: #0a1630;
  --pitch: #1f7a38;
  --pitch-2: #145528;
  --up: #3ddc84;
  --down: #ff6b81;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --ink: #ffffff;
  --ink-soft: #d5dced;
  --nav: #c9d2e8;
  --tab: #d7deee;
  --surface: #0b152c;
  --chrome: #0d1730;
  --chrome-2: #09101f;
  --topbar: rgba(8,12,24,.88);
  --bottombar: rgba(8,12,24,.96);
  --glow: #1a2a55;
  --brand-plate: #0a1630;
  --avatar: #2a3d6d;
  --hero-p: #dbe3f5;
  --hero-star: #f0e6b0;
  --hero-veil: rgba(7,11,24,.82);
  --hero-veil-2: rgba(7,11,24,.35);
  --flash-ok: #b9ffd4;
  --flash-err: #ffd0d6;
  --row: rgba(0,0,0,.18);
  --xi: #b9ffd4;
  --hint: #ffd36a;
  color-scheme: dark;
}

html.theme-light {
  --bg: #f3f5fb;
  --bg-2: #e6ebf5;
  --card: #ffffff;
  --card-2: #f4f7fc;
  --line: rgba(18, 32, 64, .12);
  --text: #121826;
  --muted: #5a6684;
  --shadow: 0 14px 32px rgba(20, 36, 70, .10);
  --ink: #121826;
  --ink-soft: #2c3854;
  --nav: #3a4664;
  --tab: #2c3854;
  --surface: #ffffff;
  --chrome: #ffffff;
  --chrome-2: #eef2fa;
  --topbar: rgba(255,255,255,.92);
  --bottombar: rgba(255,255,255,.96);
  --glow: #c9d6f0;
  --brand-plate: #0a1630;
  --avatar: #dce4f5;
  --hero-p: #2c3854;
  --hero-star: #6b5410;
  --hero-veil: rgba(243,245,251,.90);
  --hero-veil-2: rgba(243,245,251,.42);
  --flash-ok: #0a5c34;
  --flash-err: #9b1d32;
  --row: rgba(18, 32, 64, .06);
  --xi: #0a5c34;
  --hint: #8a6a00;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, var(--glow) 0%, transparent 50%), var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; display: block; }

.app {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--chrome), var(--chrome-2));
  border-right: 1px solid var(--line);
  padding: 16px 5%;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar nav { flex: 1; }
.brand {
  display: block;
  margin: 0 0 18px;
}
.brand__plate,
.brand__crop {
  display: block;
  width: 90%;
  max-width: none;
  margin: 0 auto 4px;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.brand__plate img,
.brand__crop img,
.brand img,
.brand img.brand__emblem,
.brand img.brand__lockup,
.brand img.brand__mark {
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
  background: transparent;
}
html.theme-light .brand__plate,
html.theme-light .brand__crop {
  box-shadow: none;
}
.brand strong {
  display: block;
  font-family: Oswald, sans-serif;
  font-style: italic;
  letter-spacing: .4px;
  font-size: 18px;
}
.brand strong span { color: var(--yellow); }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .6px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.side-link i { width: 18px; text-align: center; opacity: .85; }
.side-link.is-active, .side-link:hover {
  background: var(--yellow);
  color: #111;
  font-weight: 700;
}
.stage { min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--topbar);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.brand--top { display: none; }
.top-nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
.top-nav a { color: var(--nav); font-size: 14px; padding: 6px 0; }
.top-nav a.is-active {
  color: var(--yellow);
  box-shadow: inset 0 -2px 0 var(--yellow);
  font-weight: 700;
}
.top-meta { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.theme-toggle__ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #111;
  font-style: normal;
  font-size: 14px;
}
html.theme-light .theme-toggle__sun { display: none; }
html:not(.theme-light) .theme-toggle__moon { display: none; }
.theme-toggle--side {
  width: 100%;
  margin-top: auto;
  justify-content: flex-start;
}
.theme-toggle--drawer {
  width: 100%;
  margin: 8px 0 0;
  justify-content: flex-start;
  min-height: 44px;
}
.theme-toggle--bar {
  display: none;
  padding: 5px 6px;
}
.bell {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); position: relative;
}
.bell em {
  position: absolute; top: -4px; right: -4px;
  background: var(--yellow); color: #111; border-radius: 99px;
  font-style: normal; font-size: 11px; font-weight: 800;
  min-width: 16px; padding: 1px 4px;
}
.userchip {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px 4px 4px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--avatar); display: grid; place-items: center; font-weight: 800;
}
.userchip b { display: block; font-size: 13px; }
.userchip small { color: var(--muted); font-size: 11px; }
.main { padding: 22px; }
.footer {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  letter-spacing: .8px;
  font-size: 13px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; border-radius: 8px;
  padding: 10px 16px; font-weight: 700;
}
.btn--yellow {
  background: var(--yellow); color: #111;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn--full { width: 100%; }
.btn + .btn { margin-left: 6px; }

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 18px;
  background:
    linear-gradient(90deg, var(--hero-veil), var(--hero-veil-2)),
    radial-gradient(circle at 80% 40%, #2a4a2a, #0b1a12 55%);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 20px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-family: Oswald, sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-style: italic;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.hero p { color: var(--hero-p); margin: 0 0 16px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.hero-cta .btn { margin: 0; }
.hero-list { list-style: none; margin: 0; padding: 8px 0 0; }
.hero-list li { margin: 8px 0; color: var(--hero-star); }
.hero-list li:before { content: "★ "; color: var(--yellow); }

.league-picker { margin: 0 0 16px; }
.league-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--card); width: fit-content;
  padding: 6px; border-radius: 12px; border: 1px solid var(--line);
}
.league-tabs button, .league-tabs a {
  border: 0; background: transparent; color: var(--tab);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 700;
}
.league-tabs button small {
  display: inline-block; margin-left: 6px; opacity: .7; font-size: 11px;
}
.league-tabs .is-on { background: var(--yellow); color: #111; }
.league-tabs .is-on small { color: #111; opacity: .7; }
.league-groups {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0;
}
.league-groups button {
  border: 1px solid var(--line); background: var(--card); color: var(--tab);
  padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.league-groups .is-on { background: var(--yellow); color: #111; border-color: var(--yellow); }
.league-now { margin: 8px 0 0; font-size: 13px; }

.grid-dash {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 16px;
}
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.statline { display: flex; justify-content: space-between; margin: 8px 0; }
.rank-up { color: var(--up); font-weight: 800; }
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 14px;
}
.cd {
  background: var(--surface); border-radius: 10px; text-align: center; padding: 8px 4px;
  border: 1px solid var(--line);
}
.cd b { display: block; font-size: 18px; }
.cd span { font-size: 10px; color: var(--muted); text-transform: uppercase; }

.pitch {
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.05) 0 2px, transparent 2px 14%),
    linear-gradient(#249445, #145528);
  border-radius: 16px;
  min-height: 520px;
  padding: 52px 10px 88px;
  position: relative;
  overflow: hidden;
}
.pitch-marks {
  position: absolute;
  inset: 10px 8px 6px;
  pointer-events: none;
  z-index: 0;
  background: url("/assets/img/pitch-half.svg?v=half4") center / 100% 100% no-repeat;
}
.pitch-row {
  display: flex; justify-content: space-evenly; margin: 10px 0 18px; position: relative; z-index: 2;
}
.pitch > .pitch-row:nth-child(2) {
  margin-top: 6px;
  margin-bottom: 22px;
}
.pitch .player { z-index: 2; }
.player {
  width: 82px; text-align: center; color: #fff; position: relative;
}
.jersey {
  --k1: #2d6cdf;
  --k2: #fff;
  width: 76px;
  height: 96px;
  margin: 0 auto 2px;
  display: block;
  overflow: visible;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.4));
}
.jersey-wrap {
  position: relative;
  display: block;
  width: 76px;
  height: 96px;
  margin: 0 auto 2px;
  flex-shrink: 0;
}
.jersey-wrap .jersey {
  width: 100%;
  height: 100%;
  margin: 0;
}
.jersey-crest {
  position: absolute;
  left: 67.8%;
  top: 43%;
  width: 24%;
  height: 19%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  background: #fff;
  border: 1.5px solid #111;
  border-radius: 50%;
  padding: 1px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 2;
}
.jersey .joutline {
  fill: none;
  stroke: #111;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.jersey .jnum {
  fill: #fff;
  stroke: #111;
  stroke-width: .6px;
  paint-order: stroke;
  font-family: "Barlow Condensed", Oswald, sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-anchor: middle;
}
.armband {
  position: absolute;
  left: 2px;
  top: 24px;
  width: 22px;
  height: 16px;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(#111 0 2px, transparent 2px 14px, #111 14px),
    repeating-linear-gradient(90deg, #f5c518 0 4px, #c9920a 4px 7px);
  color: #111;
  font-family: Oswald, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  display: grid;
  place-items: center;
  border: 1px solid #1a1400;
  box-shadow: 0 2px 4px rgba(0,0,0,.4);
  z-index: 2;
}
.armband--dock {
  position: relative;
  left: auto;
  top: auto;
  width: 52px;
  height: 36px;
  font-size: 18px;
  border-radius: 6px 12px 12px 6px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.armband--dock:active { cursor: grabbing; }
.lineup-form:has(.chip.is-captain) .armband--dock,
.armband--dock.is-worn {
  color: var(--muted);
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  box-shadow: none;
  opacity: .45;
}
.armband.is-ghost {
  position: fixed;
  pointer-events: none;
  z-index: 80;
  margin: 0;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.45));
}
.player b,
.chip b { display: block; font-size: 12px; }
.chip-club {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 1.15;
  margin-top: 1px;
}
.player small { color: #e9f7d8; font-size: 11px; }
.tabs { display: flex; gap: 10px; margin-bottom: 10px; }
.tabs a, .tabs span {
  color: var(--muted); font-size: 13px; padding-bottom: 4px;
}
.tabs .on { color: var(--yellow); box-shadow: inset 0 -2px 0 var(--yellow); }

.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: 36px 1fr auto auto;
  gap: 8px; align-items: center;
  background: var(--row); border-radius: 10px; padding: 8px;
}
.kitdot { width: 28px; height: 28px; border-radius: 6px; display: inline-block; vertical-align: middle; }
.club-badge {
  width: 32px;
  height: 32px;
  object-fit: contain;
  vertical-align: middle;
  background: #fff;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-cell .kitdot,
.player-cell .club-badge {
  flex: 0 0 auto;
}
.plus {
  width: 28px; height: 28px; border-radius: 8px; border: 0;
  background: #2ecc71; color: #083; font-weight: 900; cursor: pointer;
}
.news-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.news-item img { width: 54px; height: 40px; object-fit: cover; border-radius: 6px; background: #234; }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table td, .rank-table th { padding: 8px 6px; text-align: left; }
.rank-table tr.me { background: rgba(245,197,24,.16); }
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.flash--ok { background: rgba(61,220,132,.15); color: var(--flash-ok); }
.flash--err { background: rgba(255,107,129,.16); color: var(--flash-err); }

.form { display: grid; gap: 10px; max-width: 420px; }
.form h2 {
  margin: 8px 0 0;
  font-size: 16px;
  font-family: Oswald, sans-serif;
  font-style: italic;
  text-transform: uppercase;
}
.form input, .form select, .form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); border-radius: 10px; padding: 10px 12px;
}
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.page-head h1 {
  margin: 0; font-family: Oswald, sans-serif; font-style: italic; text-transform: uppercase;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.table { width: 100%; border-collapse: collapse; }
.table td, .table th { padding: 10px 8px; border-bottom: 1px solid var(--line); }
.hint { color: var(--hint); font-size: 13px; margin: 6px 0; }
.bench { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rules-logo {
  width: 90%;
  max-width: 280px;
  margin: 0 auto 18px;
}
.rules ol { line-height: 1.6; }
.rules li { margin: 8px 0; }
.rules h2 {
  margin: 22px 0 8px;
  font-family: Oswald, sans-serif;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 18px;
  color: var(--hint);
}
.rules h2:first-of-type { margin-top: 8px; }
.rules p { margin: 0 0 8px; }

.side-link--admin { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--card); width: fit-content;
  padding: 6px; border-radius: 12px; border: 1px solid var(--line);
  margin-bottom: 16px;
}
.admin-nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--tab); font-weight: 700;
}
.admin-nav a.is-on { background: var(--yellow); color: #111; }
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.stat-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.stat-card b { display: block; font-size: 28px; font-family: Oswald, sans-serif; }
.stat-card span { color: var(--muted); font-size: 12px; }
.form--wide { max-width: none; }
.btn--sm { padding: 6px 10px; font-size: 13px; }
.btn--danger { background: #ff6b81; color: #111; font-weight: 800; }
.inline { display: inline; }
.inline-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.inline-row input, .inline-row select { max-width: 220px; }
input.pts { width: 72px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 8px; }
.tier-head {
  margin: 18px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  color: var(--yellow);
}
.league-card { margin-bottom: 12px; }
.league-card.is-off { opacity: .78; }
.league-card h3 {
  margin: 0 0 6px;
  font-family: Oswald, sans-serif;
  font-size: 22px;
}
.league-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.league-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.league-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.league-badge.is-on { background: #1f8a4c; color: #fff; }
.league-badge.is-off { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.league-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
}
.league-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}
.league-form-grid .league-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}
.league-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

.team-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--card); width: fit-content;
  padding: 6px; border-radius: 12px; border: 1px solid var(--line);
  margin: 0 0 14px;
}
.team-tabs button {
  border: 0; background: transparent; color: var(--tab);
  padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 700;
}
.team-tabs button small {
  display: inline-block; margin-left: 6px; opacity: .7; font-size: 11px;
}
.team-tabs .is-on { background: var(--yellow); color: #111; }
.team-tabs .is-on small { color: #111; opacity: .7; }
.team-edit {
  display: block;
}
.lineup-form { max-width: none; }
.pitch-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}
.pitch-toolbar label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pitch-toolbar select { width: auto; min-width: 110px; }
.pitch--board {
  min-height: 900px;
  width: 100%;
  padding: 8px 0 16px;
  border: 3px solid rgba(255,255,255,.2);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.08);
}
.pitch--board .pitch-marks {
  inset: 12px 14px 8px;
}
.chip-club {
  display: block;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--yellow);
  text-transform: uppercase;
  line-height: 1.15;
  margin: 1px 0 0;
}
.player .chip-club { margin-top: 1px; }
.pitch-slot {
  position: absolute;
  width: 104px;
  min-height: 124px;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.28);
  background: rgba(0,0,0,.12);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.pitch-slot.is-over { background: rgba(245,197,24,.28); border-color: var(--yellow); }
.pitch-slot.is-bad { background: rgba(255,107,129,.28); border-color: var(--down); }
.slot-label {
  position: absolute; top: 4px; left: 0; right: 0;
  text-align: center; font-size: 9px; letter-spacing: .8px;
  color: rgba(255,255,255,.55); pointer-events: none;
}
.chip {
  width: 96px; text-align: center; color: #fff; cursor: grab;
  user-select: none; touch-action: none; position: relative; z-index: 5;
  overflow: visible;
}
.player-info-btn {
  position: absolute;
  right: -2px;
  top: 2px;
  z-index: 7;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: #0a1630;
  color: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.player-info-btn:hover,
.player-info-btn:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
  background: #14264d;
}
.player-cell .player-info-btn,
.player-info-btn--row {
  position: static;
  flex: 0 0 auto;
}
html.theme-light .player-info-btn {
  background: #fff;
  color: #121826;
  border-color: rgba(18, 32, 64, .28);
}
.chip-meta {
  display: block;
  margin-top: 2px;
}
.chip-pts,
.player .chip-pts {
  display: inline-block;
  margin: 2px 0 1px;
  padding: 1px 7px;
  border-radius: 7px;
  background: var(--yellow);
  color: #111;
  font-family: Oswald, sans-serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.chip-pts.is-neg,
.player .chip-pts.is-neg {
  background: #c62828;
  color: #fff;
}
.chip-round {
  display: block;
  margin-top: 2px;
  color: #e9f7d8;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}
.chip-round.is-neg { color: #ff8a80; }
.pitch-slot .chip-round,
.pitch-slot .chip-card,
.pitch .chip-round,
.pitch .chip-card {
  display: none;
}
.chip-card {
  display: inline-block;
  margin: 3px 2px 0;
  vertical-align: middle;
}
.chip-card--red {
  width: 9px;
  height: 13px;
  padding: 0;
  border-radius: 1px;
  background: #c62828;
  box-shadow: 1px 1px 0 rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.18);
  transform: rotate(10deg);
}
.home-round-h { margin: 16px 0 6px; font-size: 16px; }
.home-round-table { width: 100%; }
.chip small { display: block; font-size: 10px; color: #e9f7d8; }
.chip.is-ghost {
  position: fixed; pointer-events: none; z-index: 80; margin: 0; opacity: .95;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.5));
}
.chip.is-dragging { opacity: .35; }
.chip.is-captain .jersey {
  filter: drop-shadow(0 7px 8px rgba(0,0,0,.45)) drop-shadow(0 0 8px rgba(245,197,24,.75));
}
.bench-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.captain-dock {
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: rgba(245,197,24,.1);
  border: 1px dashed rgba(245,197,24,.45);
  border-radius: 12px;
  text-align: center;
}
.captain-dock span {
  font-size: 10px;
  line-height: 1.25;
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.bench-drop {
  flex: 1;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  min-height: 110px; padding: 10px;
  background: rgba(0,0,0,.2); border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.18);
}
.bench-drop.is-over { border-color: var(--yellow); background: rgba(245,197,24,.12); }
.pitch-slot.is-band { background: rgba(245,197,24,.28); border-color: var(--yellow); }
.pitch-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.swap-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.swap-board h3 {
  margin: 0 0 4px;
  font-family: Oswald, sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 20px;
}
.swap-board h3 small {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  margin-left: 6px;
}
.swap-board > section > .muted { margin: 0 0 10px; font-size: 13px; }
.swap-row {
  display: grid;
  grid-template-columns: 32px 78px 1fr 28px 40px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  width: 100%;
  margin: 0 0 6px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}
.swap-badge {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swap-badge .club-badge,
.swap-badge .kitdot {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}
.swap-row em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--yellow);
}
.swap-row b { grid-column: 3; grid-row: 1; font-size: 15px; line-height: 1.2; }
.swap-row small { grid-column: 3; grid-row: 2; color: var(--muted); font-size: 12px; }
.swap-row.is-xi em { color: var(--xi); }
.swap-row.is-empty { opacity: .72; }
.swap-row.is-empty b { color: var(--muted); font-weight: 700; }
.swap-row.is-on {
  border-color: var(--yellow);
  background: rgba(245,197,24,.16);
  box-shadow: inset 0 0 0 1px var(--yellow);
}
.swap-row.is-fit {
  border-color: #3ddc84;
  background: rgba(61,220,132,.12);
}
.swap-row.is-captain {
  border-color: var(--yellow);
}
.swap-row .player-info-btn--row {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: center;
}
.swap-cap {
  grid-row: 1 / span 2;
  grid-column: 5;
  align-self: center;
  justify-self: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: Oswald, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  box-shadow: none;
  cursor: pointer;
  user-select: none;
}
.swap-cap.is-on {
  color: #111;
  background:
    linear-gradient(#111 0 2px, transparent 2px 32px, #111 32px),
    repeating-linear-gradient(90deg, #f5c518 0 4px, #c9920a 4px 7px);
  border: 1px solid #1a1400;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--yellow);
}
.swap-cap.is-off {
  opacity: .28;
  cursor: default;
  filter: grayscale(1);
}
.swap-board.is-locked .swap-row { cursor: default; pointer-events: none; opacity: .7; }
.swap-board.is-locked .swap-row .player-info-btn {
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .swap-board { grid-template-columns: 1fr; }
  .swap-cap { width: 40px; height: 40px; }
}
.pitch.is-locked .chip,
.bench-row.is-locked .armband--dock { cursor: default; }
.bench-row.is-locked .armband--dock { opacity: .45; }
@media (max-width: 1100px) {
  .pitch--board { min-height: 720px; }
  .bench-row { flex-direction: column; }
  .captain-dock {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
  }
  .captain-dock span { text-align: left; }
}

@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .theme-toggle--bar { display: inline-flex; }
  .brand--top { display: flex; }
  .grid-dash { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
}

.club-edit__head {
  display: flex; gap: 14px; align-items: center; margin-bottom: 12px;
}
.club-edit__head .jersey,
.club-edit__head .jersey-wrap { width: 64px; height: 82px; margin: 0; }
.club-edit__head h2 { margin: 0 0 4px; }
.club-edit__fields {
  display: grid; grid-template-columns: 1fr 140px; gap: 12px;
}
.kit-colors {
  display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 12px;
}
.kit-colors label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.kit-colors input[type=color] {
  width: 48px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent;
}
.kit-styles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 16px;
}
.kit-style { cursor: pointer; }
.kit-style input { position: absolute; opacity: 0; }
.kit-style span {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: 10px 8px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.18);
  min-height: 100%;
}
.kit-style input:checked + span { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.kit-style b { font-size: 13px; }
.kit-style small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.kit-style .jersey,
.kit-style .jersey-wrap { width: 56px; height: 72px; margin: 0; }
.club-logo-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}
.club-logo-preview {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.club-logo-field input[type=file] { max-width: 100%; }
.club-logo-remove { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.jersey-crest { pointer-events: none; }
.club-players { margin-top: 18px; }
.club-players summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 10px;
}
.club-players__table input,
.club-players__table select,
.player-add input,
.player-add select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 8px;
}
.player-add {
  display: grid;
  grid-template-columns: 1fr 90px 90px 110px auto;
  gap: 8px;
  align-items: end;
  margin-top: 12px;
}
.player-add label { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .kit-styles { grid-template-columns: 1fr 1fr; }
  .club-edit__fields { grid-template-columns: 1fr; }
  .player-add { grid-template-columns: 1fr; }
}

.nav-toggle,
.bottom-nav,
.nav-drawer,
.nav-backdrop {
  display: none;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 80;
  background: linear-gradient(180deg, var(--chrome), var(--chrome-2));
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 40px rgba(0,0,0,.5);
  padding: 16px 14px calc(88px + env(safe-area-inset-bottom));
  overflow-y: auto;
  flex-direction: column;
}
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.nav-drawer__head strong {
  font-family: Oswald, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.nav-drawer__close {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  font-size: 18px;
}
.nav-drawer nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.nav-drawer nav a i { width: 20px; text-align: center; opacity: .85; font-style: normal; }
.nav-drawer nav a.is-active {
  background: var(--yellow);
  color: #111;
  font-weight: 700;
}
.nav-drawer__acc {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.nav-drawer__acc a { min-height: 44px; display: flex; align-items: center; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,.55);
}
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--bottombar);
  border-top: 1px solid var(--line);
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
  justify-content: space-around;
  backdrop-filter: blur(10px);
}
.bottom-nav a,
.bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.bottom-nav i { font-style: normal; font-size: 18px; line-height: 1; }
.bottom-nav a.is-active,
.bottom-nav button.is-active { color: var(--yellow); }

.nav-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 0;
  flex-shrink: 0;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span:before,
.nav-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span { position: relative; }
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span:before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span:after { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }
  body.nav-open { overflow: hidden; }
  .muted { color: var(--muted); font-size: 15px; line-height: 1.45; }
  .nav-toggle { display: grid; }
  .bottom-nav { display: flex; }
  body.nav-open .nav-drawer { display: flex; }
  body.nav-open .nav-backdrop { display: block; }
  .stage { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar {
    padding: 10px 12px;
    gap: 8px;
    padding-top: max(10px, env(safe-area-inset-top));
  }
  .top-nav,
  .userchip__txt,
  .btn--logout,
  .btn--join,
  .bell { display: none; }
  .btn--login {
    display: inline-flex;
    padding: 10px 14px;
    font-size: 15px;
    white-space: nowrap;
  }
  .theme-toggle--bar { display: inline-flex; }
  .theme-toggle--bar .theme-toggle__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
  }
  .brand--top { flex: 1; min-width: 0; margin: 0; }
  .brand--top .brand__plate,
  .brand--top .brand__crop {
    width: 48px;
    height: 48px;
    max-width: 48px;
  }
  .brand--top img,
  .brand--top img.brand__emblem,
  .brand--top img.brand__lockup,
  .brand--top img.brand__mark {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    transform: none;
  }
  .brand--top strong { font-size: 17px; }
  .brand--top small { font-size: 11px; }
  .userchip {
    padding: 2px;
    background: transparent;
    border: 0;
  }
  .main { padding: 16px 14px; }
  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .page-head h1 { font-size: 30px; }
  .hero { padding: 22px 16px; border-radius: 14px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .hero-list li { font-size: 16px; margin: 10px 0; }
  .cd b { font-size: 22px; }
  .cd span { font-size: 12px; }
  .card h2, .card h3 { font-size: 20px; }
  .statline { font-size: 16px; }
  .league-now { font-size: 14px; }
  .league-tabs, .admin-nav, .team-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .league-tabs button, .league-tabs a,
  .team-tabs button, .admin-nav a {
    min-height: 48px;
    white-space: nowrap;
    font-size: 15px;
    padding: 10px 14px;
  }
  .filters {
    flex-direction: column;
  }
  .filters select, .filters input, .filters .btn {
    width: 100%;
    min-height: 48px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 16px;
  }
  .filters .btn--yellow { color: #111; }
  input, select, textarea { font-size: 16px; }
  .card { overflow-x: visible; }
  .table, .rank-table { min-width: 0; width: 100%; font-size: 15px; }
  .table td, .table th,
  .rank-table td, .rank-table th {
    padding: 12px 6px;
    vertical-align: middle;
  }
  .col-kit, .col-form { display: none; }
  .plus {
    width: 48px; height: 44px;
    font-size: 24px;
  }
  .form { max-width: none; }
  .form label { font-size: 15px; font-weight: 700; }
  .btn { min-height: 48px; font-size: 16px; padding: 12px 16px; }
  .btn--sm { min-height: 40px; font-size: 14px; }
  .bottom-nav {
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a,
  .bottom-nav button {
    min-height: 56px;
    font-size: 12px;
  }
  .bottom-nav i { font-size: 20px; }
  .pitch {
    min-height: 480px;
    padding: 24px 2px 44px;
  }
  .pitch .player { width: 64px; overflow: visible; }
  .pitch .jersey,
  .pitch .jersey-wrap { width: 50px; height: 64px; }
  .pitch .player b,
  .chip b {
    display: -webkit-box;
    font-size: 11px;
    line-height: 1.2;
    overflow: hidden;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .pitch .player small { display: block; font-size: 11px; }
  .pitch .chip-club,
  .chip .chip-club {
    display: block;
    font-size: 10px;
  }
  .chip small { display: block; font-size: 11px; }
  .chip-pts,
  .player .chip-pts {
    font-size: 12px;
    padding: 1px 5px;
  }
  .pitch-row { margin: 6px 0 12px; }
  .bench { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .pitch--board { min-height: 620px; padding: 8px 0 12px; }
  .pitch-slot {
    width: 68px;
    min-height: 96px;
    border-radius: 10px;
  }
  .chip { width: 64px; }
  .chip .jersey,
  .chip .jersey-wrap { width: 50px; height: 64px; }
  .slot-label { font-size: 10px; }
  .armband {
    width: 18px; height: 14px; font-size: 9px; top: 18px;
  }
  .pitch-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pitch-toolbar select { width: 100%; min-height: 48px; font-size: 16px; }
  .pitch-status, #pitch-status { font-size: 14px; }
  .pitch-actions .btn { flex: 1; }
  .team-tabs { width: 100%; }
  .team-tabs button { flex: 1; }
  .admin-nav { width: 100%; }
  .club-players__table { min-width: 0; }
  .protocol-teams { grid-template-columns: 1fr; }
  .row {
    grid-template-columns: 36px 1fr auto;
    font-size: 15px;
    padding: 12px;
  }
  .news-item b { font-size: 16px; }
  .nav-drawer nav a { font-size: 17px; min-height: 48px; }
  .nav-drawer__acc a, .nav-drawer__acc .btn { font-size: 16px; }
}

@media (max-width: 380px) {
  .pitch-slot { width: 58px; min-height: 90px; }
  .chip { width: 56px; }
  .chip .jersey,
  .chip .jersey-wrap { width: 46px; height: 58px; }
  .pitch .player { width: 56px; }
  .pitch .jersey,
  .pitch .jersey-wrap { width: 46px; height: 58px; }
}

.fixture-add, .fixture-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.fixture-add label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.fixture-add select, .fixture-pair select {
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}
.fixture-vs {
  font-weight: 800;
  color: var(--yellow);
  padding-bottom: 10px;
}
.fixture-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.fixture-table tr.is-draft td {
  background: rgba(245, 200, 66, 0.06);
}
.protocol-score {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.protocol-score .pts { width: 64px; font-size: 20px; text-align: center; }
.protocol-time {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-weight: 700;
  color: var(--muted);
}
.protocol-time input {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
}
.protocol-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.protocol-table .pts { width: 52px; padding: 6px; }
.protocol-table input[type=checkbox] {
  width: 18px; height: 18px;
}
.protocol-pts { font-weight: 800; color: var(--yellow); }
@media (max-width: 900px) {
  .protocol-teams { grid-template-columns: 1fr; }
}
.admin-user-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-user-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0 18px;
  margin: 8px 0 16px;
}
.pitch--preview {
  min-height: 420px;
  padding: 40px 8px 64px;
}
@media (max-width: 900px) {
  .admin-user-grid { grid-template-columns: 1fr; }
}
.player-round-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.player-round-head h2 { margin: 0; }
.player-round-sum { font-family: Oswald, sans-serif; font-size: 28px; color: var(--yellow); }
.player-round-card .muted a { margin-left: 6px; }
.pts-lines {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 12px 0 8px; padding: 0;
}
.pts-line {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; font-size: 13px;
}
.pts-line b { font-family: Oswald, sans-serif; font-size: 16px; }
.pts-line--plus b { color: var(--yellow); }
.pts-line--minus b { color: #e35d6a; }
.player-round-total { margin: 10px 0 0; }
.player-round-total b { font-family: Oswald, sans-serif; }


html.theme-light .theme-toggle--bar { color: var(--text); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}
.modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, .72);
}
.modal__box {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 22px 22px 18px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.modal__box:focus { outline: none; }
.modal__box h2 {
  margin: 0 40px 0 0;
  font-family: Oswald, sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 26px;
}
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--row);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.modal__close:hover,
.modal__close:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}
.player-hist__meta {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.player-hist__round {
  margin: 0 0 14px;
  padding: 12px 12px 10px;
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.player-hist__round h3 {
  margin: 0 0 4px;
  font-family: Oswald, sans-serif;
  font-style: italic;
  text-transform: uppercase;
  font-size: 18px;
}
.player-hist__round ul {
  margin: 8px 0;
  padding: 0 0 0 18px;
}
.player-hist__round li { margin: 3px 0; }
.player-hist__round li.is-pos { color: var(--up); }
.player-hist__round li.is-neg { color: var(--down); }
.player-hist__sum {
  margin: 0;
  font-weight: 700;
}
