:root {
  color-scheme: light;
  --shell: min(1320px, 100vw - 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.simple-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  padding-block: 56px 40px;
  border-bottom: 1px solid #d9d9d9;
}
.simple-header h1 {
  margin: 0;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.simple-header p {
  margin: 12px 0 0;
  color: #666666;
}

.season-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid #111111;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 650px) {
  .simple-header {
    align-items: start;
    flex-direction: column;
    padding-block: 34px 28px;
  }
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 10px 16px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.back-link:hover {
  background: #111111;
  color: #ffffff;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.downloads a {
  padding: 15px 18px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.downloads a:hover {
  background: #111111;
  color: #ffffff;
}

@media (max-width: 650px) {
  .downloads {
    grid-template-columns: 1fr;
  }
}
.feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feed-item {
  --a: #111111;
  display: block;
  padding: 28px 24px;
  border: 1px solid #d9d9d9;
  border-top: 4px solid var(--a);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}
.feed-item:hover {
  border-color: #111111;
}
.feed-item:hover h2 {
  text-decoration: underline;
}
.feed-item h2 {
  margin: 0;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (max-width: 650px) {
  .feed {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feed-item {
    padding: 22px 20px;
  }
}
.team {
  --a: #111111;
  --b: #eeeeee;
  --ink: #111111;
  padding-block: 54px 72px;
  border-bottom: 1px solid #d9d9d9;
}

.team-head {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}
.team-head p {
  margin: 0 0 4px;
  color: #777777;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-head h2 {
  margin: 0;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: clamp(30px, 4vw, 58px);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}
.team-head > a {
  padding-bottom: 5px;
  color: #555555;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.team-head > a:hover {
  color: #111111;
  text-decoration: underline;
}

.team-number {
  align-self: start;
  color: #777777;
  font-size: 13px;
  font-weight: 800;
}

.team-body {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
}

.mark-stage {
  display: grid;
  place-items: center;
  min-height: 520px;
  margin: 0;
  border: 1px solid #d9d9d9;
  background: #ffffff;
}
.mark-stage img {
  width: min(76%, 440px);
  height: min(76%, 440px);
  object-fit: contain;
}

#ahromat .mark-stage img,
#skyup .mark-stage img {
  width: 94%;
  height: 94%;
  max-width: 560px;
  max-height: 560px;
}

.league-card .mark-stage img {
  width: 150px;
  height: 150px;
  max-width: 150px;
  max-height: 150px;
}

.team-story {
  min-width: 0;
}

.summary {
  margin: 0;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid #d9d9d9;
  background: #ffffff;
  color: #111111;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.5;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #d9d9d9;
}
.system-grid section {
  min-height: 190px;
  padding: 24px 22px 24px 0;
}
.system-grid section + section {
  padding-left: 22px;
  border-left: 1px solid #d9d9d9;
}
.system-grid h3 {
  margin: 0 0 16px;
  color: #555555;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.system-grid p {
  margin: 0;
  color: #444444;
  font-size: 14px;
}

.tokens {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
  margin-top: 20px;
}

.swatch, .font-card {
  min-width: 0;
  min-height: 118px;
  padding: 12px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  color: #111111;
  font: inherit;
  text-align: left;
}
.swatch b, .font-card b {
  display: block;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 13px;
}
.swatch small, .font-card small {
  display: block;
  margin-top: 4px;
  color: #777777;
  font-size: 11px;
}
.swatch:hover, .font-card:hover {
  border-color: #111111;
}

.swatch {
  cursor: pointer;
}
.swatch span {
  display: block;
  height: 44px;
  margin-bottom: 10px;
  border: 1px solid #cccccc;
  background: var(--swatch);
}

.font-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}
.font-card small {
  margin: 0;
}
.font-card b {
  font-size: 17px;
}
.font-card span {
  color: #555555;
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px 16px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
}
.toast.visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .team-body {
    grid-template-columns: 1fr;
  }
  .mark-stage {
    min-height: min(80vw, 560px);
  }
}
@media (max-width: 650px) {
  .team {
    padding-block: 42px 54px;
  }
  .team-head {
    grid-template-columns: 52px 1fr;
  }
  .team-head > a {
    grid-column: 2;
  }
  .system-grid {
    grid-template-columns: 1fr;
  }
  .system-grid section {
    min-height: auto;
    padding: 20px 0;
  }
  .system-grid section + section {
    padding-left: 0;
    border-top: 1px solid #d9d9d9;
    border-left: 0;
  }
  .tokens {
    grid-template-columns: 1fr 1fr;
  }
  .font-card {
    grid-column: 1/-1;
  }
}
.report-wrap {
  max-width: min(900px, 100vw - 40px);
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.report-wrap.wide {
  max-width: min(1080px, 100vw - 40px);
}

.report-head {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid #d9d9d9;
}
.report-head h1 {
  margin: 0 0 6px;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.report-head p {
  margin: 0;
  color: #666666;
  font-size: 13px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.kpi {
  border: 1px solid #d9d9d9;
  padding: 16px 18px;
}
.kpi .label {
  margin-bottom: 6px;
  color: #777777;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kpi .value {
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
}
.kpi .value span {
  font-size: 13px;
  font-weight: 400;
  color: #777777;
}

.card {
  border: 1px solid #d9d9d9;
  padding: 20px 20px 8px;
  margin-bottom: 24px;
}
.card h2 {
  margin: 0 0 2px;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.card .note {
  margin: 0 0 16px;
  color: #777777;
  font-size: 12px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px;
  padding: 0 20px;
}

table.data-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 4px;
}
table.data-table th, table.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #d9d9d9;
  text-align: left;
  white-space: nowrap;
}
table.data-table th {
  color: #777777;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
table.data-table td.num, table.data-table th.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
table.data-table td.rank {
  color: #777777;
  width: 32px;
}
table.data-table tbody tr:last-child td {
  border-bottom: none;
}
table.data-table .sticky-col {
  position: sticky;
  left: 0;
  background: #ffffff;
  box-shadow: 1px 0 0 #d9d9d9;
}

.team-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
}

.player-name {
  font-weight: 600;
}

.chance-high {
  color: #1f9d55;
  font-weight: 700;
}

.chance-mid {
  color: #c98a10;
  font-weight: 700;
}

.chance-low {
  color: #c94a2f;
  font-weight: 700;
}

.red-count {
  color: #c94a2f;
  font-weight: 700;
}

.heat {
  background: color-mix(in srgb, #111111 var(--heat, 0%), #ffffff);
}

.heat-on {
  color: #ffffff;
}

table.data-table th.move, table.data-table td.move {
  width: 44px;
  padding-right: 0;
}
table.data-table td.move {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
table.data-table td.move i {
  display: inline-block;
  margin-right: 4px;
  vertical-align: middle;
}
table.data-table td.move.up {
  color: #1f9d55;
}
table.data-table td.move.down {
  color: #c94a2f;
}
table.data-table td.move.same {
  color: #cccccc;
}
table.data-table td.move.up i {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid currentColor;
}
table.data-table td.move.down i {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
}
table.data-table td.move.same i {
  width: 8px;
  height: 2px;
  background: currentColor;
}
table.data-table.move-reverse td.move.up {
  color: #c94a2f;
}
table.data-table.move-reverse td.move.down {
  color: #1f9d55;
}

table.data-table td.strong {
  font-weight: 700;
}
table.data-table tr.in-playoff {
  background: color-mix(in srgb, #1f9d55 6%, transparent);
}
table.data-table tr.cutoff-row td {
  padding: 6px;
  background: #ffffff;
  border-bottom: 2px dashed #d9d9d9;
  color: #777777;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

.goal-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 20px;
}
.goal-bar-wrap span {
  position: relative;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding-right: 4px;
}

.goal-bar {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: #111111;
  opacity: 0.12;
}

table.data-table.compact {
  min-width: 0;
}
table.data-table.compact .short {
  display: none;
}

@media (max-width: 650px) {
  .report-wrap {
    padding: 24px 16px 48px;
  }
  table.data-table {
    font-size: 12px;
  }
  table.data-table th, table.data-table td {
    padding: 7px 8px;
  }
  table.data-table.compact td.player-name {
    white-space: normal;
  }
  table.data-table.compact .opt {
    display: none;
  }
  table.data-table.compact .short {
    display: inline;
  }
}
.chart-box {
  position: relative;
  height: 340px;
}
.chart-box.tall {
  height: 420px;
}

.legend-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 4px;
  color: #666666;
  font-size: 12px;
}
.legend-note .dash-swatch {
  display: inline-block;
  width: 14px;
  height: 0;
  border-top: 2px dashed #111111;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.warning-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid #d9d9d9;
  border-left: 3px solid #c98a10;
  color: #666666;
  font-size: 13px;
}
.warning-banner strong {
  color: #111111;
}

.hist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.hist-grid.wide {
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
}
.hist-grid.wide .chart-box {
  height: 260px;
}

.hist-card {
  border: 1px solid #d9d9d9;
  padding: 14px 18px 10px;
}
.hist-card .hist-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 10px;
  font-size: 14px;
}
.hist-card .hist-head .name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111111;
  font-weight: 700;
}
.hist-card .hist-head .meta {
  color: #777777;
}
.hist-card .chart-box {
  height: 200px;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
.squad-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.squad-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  border: 1px solid #d9d9d9;
  border-top: 3px solid var(--a, #111111);
  color: #111111;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}
.squad-nav a:hover {
  border-color: #111111;
  border-top-color: var(--a, #111111);
  background: color-mix(in srgb, #111111 4%, #ffffff);
}
.squad-nav img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  align-items: start;
}

.squad-card {
  min-width: 0;
  padding: 18px 20px 6px;
  border: 1px solid #d9d9d9;
  border-top: 3px solid var(--a, #111111);
}
.squad-card table.data-table {
  min-width: 0;
  margin-top: 0;
}
.squad-card table.data-table th:first-child, .squad-card table.data-table td:first-child {
  width: 44px;
}
.squad-card table.data-table td.player-name {
  white-space: normal;
}

.squad-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.squad-head img {
  flex: none;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.squad-head > div {
  flex: 1;
  min-width: 0;
}
.squad-head h2 {
  margin: 0;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.squad-head p {
  margin: 3px 0 0;
  color: #777777;
  font-size: 12px;
}
.squad-head > a {
  flex: none;
  color: #555555;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.squad-head > a:hover {
  color: #111111;
  text-decoration: underline;
}

.nick {
  color: #777777;
  font-weight: 400;
}

@media (max-width: 650px) {
  .squad-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .squad-card {
    padding: 16px 16px 4px;
  }
  .squad-head {
    gap: 12px;
  }
  .squad-head img {
    width: 48px;
    height: 48px;
  }
  .squad-card .opt {
    display: none;
  }
}
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.subnav a {
  padding: 9px 14px;
  border: 1px solid #d9d9d9;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.subnav a:hover {
  border-color: #111111;
}
.subnav a[aria-current=page] {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.gteam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  font-weight: 600;
}

.vs {
  display: inline-block;
  margin: 0 6px;
  vertical-align: middle;
  color: #777777;
  font-weight: 400;
}

.card h3 {
  margin: 22px 0 8px;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin: 4px 0 20px;
}

.map-trio {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.card .team-block {
  padding: 22px 0 6px;
  border-top: 1px solid #d9d9d9;
}
.card .team-block:first-of-type {
  padding-top: 4px;
  border-top: 0;
}
.card .team-block h3 {
  margin: 0 0 2px;
  font-size: 16px;
}
.card .team-block .team-meta {
  margin: 0 0 12px;
  color: #777777;
  font-size: 12px;
}

.card .map-card {
  margin: 0;
}
.card .map-card h3, .card .map-card h4 {
  margin: 0 0 8px;
  font-family: "Golos Text", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.card .map-card figcaption {
  margin: 8px 0 0;
  color: #777777;
  font-size: 12px;
  line-height: 1.4;
}

.pitch-map {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d9d9d9;
}
.pitch-map .heat rect {
  fill: #fff;
}
.pitch-map .grid line {
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}
.pitch-map .pcts text {
  fill: #fff;
  font: 700 13px "Golos Text", Arial, sans-serif;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 3px;
  pointer-events: none;
}
.pitch-map .pcts text .n {
  font-size: 9.5px;
  font-weight: 600;
  stroke-width: 2.5px;
}
.pitch-map .pcts text.zero {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.55;
  stroke-width: 2.5px;
}
.pitch-map .d-shot circle {
  fill: #fff;
  fill-opacity: 0.8;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 0.5;
}
.pitch-map .d-good circle {
  fill: #ffd60a;
  fill-opacity: 0.92;
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 0.6;
}
.pitch-map .d-goal circle {
  fill: #69db7c;
  stroke: #0b3d1a;
  stroke-width: 1;
}
.pitch-map .d-conc circle {
  fill: #ff6b6b;
  stroke: #5c0a0a;
  stroke-width: 1;
}

.key {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 5px 0 10px;
  border-radius: 50%;
  vertical-align: middle;
}
.key:first-child {
  margin-left: 0;
}
.key.k-shot {
  background: #fff;
  box-shadow: inset 0 0 0 1px #0099cc;
}
.key.k-good {
  background: #ffd60a;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.key.k-goal {
  background: #69db7c;
  box-shadow: inset 0 0 0 1px #0b3d1a;
}
.key.k-conc {
  background: #ff6b6b;
  box-shadow: inset 0 0 0 1px #5c0a0a;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 12px;
  color: #666666;
  font-size: 12px;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: middle;
}

.stack {
  display: flex;
  min-width: 150px;
  height: 12px;
  background: color-mix(in srgb, #111111 6%, #ffffff);
}
.stack span {
  display: block;
  height: 100%;
}

td.bar-cell {
  min-width: 170px;
}

.types-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 2px 0 8px;
  font-size: 13px;
}
.types-line b {
  margin-right: 4px;
  font-size: 18px;
}
