:root {
  --bg: #0b1121;
  --bg-panel: #101a33;
  --bg-panel-2: #17223f;
  --line: rgba(125, 175, 255, 0.16);
  --text: #edf3ff;
  --match-when-color: #ffffff;
  --text-dim: #8da3cb;
  --muted: #7b8bb4;
  --accent: #7ae2d2;
  --accent-strong: #8cd5ff;
  --win: #4af3c3;
  --loss: #ff8080;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-heading: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 22px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--accent);
  color: #0a0a0b;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader__text-brand {
  font-family: 'Anton', Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 400;
  white-space: nowrap;
  display: block;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
.page-loader__brand-word1 {
  color: #ffffff !important;
}
.page-loader__brand-word2 {
  color: #5da9ff !important;
}
.page-loader__dots {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.page-loader__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  transform: scale(0.7);
  animation: pageLoaderDotPulse 1.1s ease-in-out infinite;
}
.page-loader__dots span:nth-child(2) { animation-delay: 0.2s; }
.page-loader__dots span:nth-child(3) { animation-delay: 0.4s; }
.page-loader__bar {
  width: min(280px, 72vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.page-loader__bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  animation: pageLoaderBarFill 1.2s ease-out forwards;
}
.page-loader__text {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

@keyframes pageLoaderDotPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes pageLoaderBarFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

.icon svg { width: 1em; height: 1em; display: block; }
.icon { width: 16px; height: 16px; display: inline-flex; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}


.nav {
  display: none !important;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav__links {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__links a { color: var(--text-dim); transition: color 0.15s ease; }
.nav__links a:hover { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__socials { display: flex; gap: 8px; }
.nav__socials .social-link,
.footer__socials .social-link {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav__socials .social-link:hover,
.footer__socials .social-link:hover { color: var(--accent); }

.btn {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn--accent { background: var(--accent); color: #0a0a0b; border-color: var(--accent); }
.btn--accent:hover { background: transparent; color: var(--accent); }
.btn--ghost { background: transparent; color: var(--text-dim); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }


.hero {
  padding: 42px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(260px, 420px) minmax(260px, 420px);
  grid-template-areas:
    "head head head"
    "roster roster roster"
    "stats stats stats";
  row-gap: 40px; /* Zwiekszony odstep pionowy miedzy sekcjami z 18px do 40px */
  column-gap: 18px;
}

.hero__head {
  grid-area: head;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px; /* Dodatkowy margines pod tytulem PROJECT SZPONT */
}.roster-grid { grid-area: roster; }
.hero__stats { grid-area: stats; }
.hero-match { grid-area: match; }
.hero__head {
  grid-area: head;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__head .eyebrow { display: none; }
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(46px, 7vw, 80px);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.05em;
  text-align: center;
  color: #ffffff;
  transform: translateX(8px);
}
.hero__title .accentline {
  color: #5da9ff;
}
.hero__tagline {
  display: none;
}
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }

.hero__stats {
  grid-area: stats;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  width: 100%;
}
.hero__stats .stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 26px;
  padding: 14px 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  width: 220px;
}
.hero__stats .stat-card__value {
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #f6f7fb;
  font-weight: 700;
}
.hero__stats .stat-card__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-heading);
}
.hero__stats .stat-card__label--elo {
  color: #ffb347;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-family: var(--font-heading);
  font-size: 12px;
}
.hero__stats .stat-card__label--record {
  color: #39ff88;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-family: var(--font-heading);
  font-size: 12px;
}
.hero__stats .stat-card__label--playoff {
  color: #ffd166;
}
.hero__stats .stat-card--playoff .stat-card__value {
  color: #ffd166;
}
.hero__stats .status { display: none; }

.hero-match {
  display: none !important;
}


.section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section__head {
  position: relative;
  margin-bottom: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__head::before {
  display: none;
}
.section__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.section__head .eyebrow {
  display: none;
}

.section#liga {
  display: none !important;
}

.status { color: var(--muted); font-size: 13px; padding: 0; margin: 0; }
.status--empty { color: var(--muted); font-style: italic; }
.status code { background: var(--bg-panel); padding: 2px 6px; border-radius: 3px; font-family: var(--font-mono); font-size: 11px; }


.roster-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: none;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-inline: auto;
  max-width: 1200px;
}
.player-card {
  position: relative;
  width: 200px;
  min-height: 74px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  border-radius: 24px;
  flex-shrink: 0;
}
.player-card:hover { transform: translateY(-1px); }
.player-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.player-card__top {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 18px;
}
.player-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.18);
}
.player-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 14px;
}
.player-card__flag {
  position: absolute; bottom: -6px; right: -6px;
  font-size: 10px; background: rgba(255, 255, 255, 0.12);
  border-radius: 999px; line-height: 1;
  padding: 2px 5px;
  color: var(--text);
}
.player-card__body {
  width: calc(100% - 72px);
}
.player-card__name {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: #f6f7fb;
  text-align: left;
}
.player-card__stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-dim);
  font-size: 10px;
}
.player-card__footer {
  display: none;
}
.player-card__faceit {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 5px;
}
.player-card__faceit:hover { color: var(--accent); }
.player-card__socials { display: flex; gap: 6px; }
.player-social { color: var(--muted); }
.player-social:hover { color: var(--accent); }

.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--badge-color, var(--line));
  color: var(--badge-color, var(--text-dim));
}
.badge--ghost { border-color: var(--line); color: var(--text-dim); }
.badge--elo {
  border-color: transparent;
  color: #ff8a8a;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
  padding-inline: 0;
}
.badge--highlight {
  border-color: transparent;
  color: #ff6b6b;
  background: transparent;
  box-shadow: none;
  font-weight: 700;
  padding-inline: 0;
}
.badge--win { border-color: var(--win); color: var(--win); background: rgba(74, 243, 195, 0.14); box-shadow: 0 0 0 1px rgba(74, 243, 195, 0.22); font-weight: 700; padding: 6px 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.badge--loss { border-color: var(--loss); color: var(--loss); background: rgba(255, 128, 128, 0.14); box-shadow: 0 0 0 1px rgba(255, 128, 128, 0.22); font-weight: 700; padding: 6px 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.badge--live {
  border-color: var(--loss);
  color: var(--loss);
  background: rgba(255, 84, 104, 0.12);
  animation: liveBlink 1.4s ease-in-out infinite;
}
.match-row--live { box-shadow: inset 0 0 0 1px var(--loss), 0 0 0 1px rgba(255, 84, 104, 0.25); }
.badge--win,
.badge--loss {
  display: inline-flex;
  justify-content: flex-start;
  min-width: 92px;
}
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }


.match-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  background: transparent;
  border: none;
  overflow: visible;
}
.match-list .status { padding: 26px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18); }
.match-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  background: rgba(18, 26, 46, 0.94);
  padding: 18px 22px 18px 24px;
  border: 1px solid rgba(85, 122, 198, 0.16);
  border-radius: 28px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.match-row > .match-row__line {
  grid-column: 1;
}
.match-row:hover { transform: translateY(-1px); border-color: rgba(126, 190, 255, 0.5); box-shadow: 0 24px 52px rgba(15, 24, 62, 0.32); }
.match-row__link {
  position: absolute;
  inset: 0;
}
.match-row__result {
  position: absolute;
  left: -86px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  color: #0c111a;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.16em;
  border: 1px solid rgba(16, 24, 39, 0.18);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}
.match-row__line {
  display: grid;
  justify-content: start;
  align-items: center;
  gap: 0 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  width: 100%;
  grid-template-columns: repeat(8, auto);
}

#upcomingList .match-row__line {
  grid-template-columns: repeat(6, auto);
}

#upcomingList .match-row__map {
  display: none;
}

#resultsList .match-row__line {
  grid-template-columns: repeat(7, auto);
}
.match-row__when,
.match-row__team,
.match-row__score,
.match-row__comp,
.match-row__format,
.match-row__map,
.match-row__date {
  white-space: nowrap;
}
.match-row__when {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  white-space: nowrap;
  flex-wrap: nowrap;
  min-width: 0;
  width: 180px;
  color: var(--match-when-color);
}

#upcomingList .match-row__when {
  grid-column: 1;
}

#resultsList .match-row__when {
  grid-column: 1;
}
.match-row__icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
.match-row__datetime, .match-row__date { color: var(--match-when-color); justify-self: start; }
.match-row__team {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 14px;
  color: #00ffff;
  text-align: left;
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: 52px;
}

#upcomingList .match-row__team {
  grid-column: 2;
  color: #00ffff !important;
}

#resultsList .match-row__team {
  grid-column: 2;
  color: #00ffff !important;
}

.match-row__team--opp {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text);
  text-align: left;
  letter-spacing: 0.04em;
  white-space: nowrap;
  width: 240px;
}

#upcomingList .match-row__team--opp {
  grid-column: 4;
  color: #ffffff !important;
}

#resultsList .match-row__team--opp {
  grid-column: 4;
  color: #ffffff !important;
}
.match-row__score {
  font-family: var(--font-mono);
  color: var(--accent);
}
.match-row__vs-upcoming {
  font-family: var(--font-mono);
  color: var(--accent-strong);
  text-align: center;
  grid-column: 3;
  white-space: nowrap;
  width: 50px;
}
.match-row__wyniki {
  font-family: var(--font-mono);
  color: var(--accent);
  text-align: center;
  font-weight: bold;
  grid-column: 3;
  white-space: nowrap;
  width: 50px;
}
.match-row__comp { color: var(--muted); font-size: 12px; white-space: nowrap; width: 140px; }
#upcomingList .match-row__comp { grid-column: 5; }
#resultsList .match-row__comp { grid-column: 5; }
.match-row__enemy-elo { display: none; }
.match-row__comp--league { color: #82e28a; font-weight: 700; }
.match-row__comp--playoff { color: #ffd166; font-weight: 700; }
.match-row__format { color: var(--accent); font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; width: 70px; }
#upcomingList .match-row__format { grid-column: 6; }
#resultsList .match-row__format { grid-column: 6; }
.match-row__format--bo1 { color: #f3d66a; }
.match-row__format--bo3 { color: #7fd1c8; }
.match-row__map { color: #ffd26a; font-weight: 600; white-space: normal; overflow-wrap: break-word; grid-column: 7; min-width: 0; max-width: 220px; line-height: 1.3; }
.match-row__map--mirage { color: #ff9f6d; text-shadow: 0 0 12px rgba(255, 159, 109, 0.25); }
.match-row__map--nuke { color: #73d7ff; text-shadow: 0 0 10px rgba(115, 215, 255, 0.22); }
.match-row__date { color: var(--match-when-color); display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); white-space: nowrap; }
.match-row__date .icon { width: 16px; height: 16px; color: var(--match-when-color); }
.match-row__result--win { background: #7dff92; }
.match-row__result--loss { background: #ff8f8f; }
.match-row__result--empty { visibility: hidden; }


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-card {
  background: var(--bg-panel);
  padding: 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card__value { font-family: var(--font-heading); font-size: 26px; color: var(--accent); }
.stat-card__label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }


.footer { padding: 32px 0; }
.footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__brand { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; color: var(--text-dim); }
.footer__socials { display: flex; gap: 8px; }
.footer__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.footer__meta span { display: inline-flex; align-items: center; gap: 6px; }
.footer__meta span:nth-child(2) { flex: 1 1 100%; color: var(--text-dim); font-size: 12px; }
.footer__meta a { color: var(--muted); }
.footer__meta a:hover { color: var(--accent); }


@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "roster"
      "stats"
      "match";
  }
  .hero__stats {
    grid-template-columns: 1fr;
  }
  .roster-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .match-row__line { grid-template-columns: 1fr; gap: 12px; }
  .match-row__when, .match-row__vs, .match-row__comp, .match-row__format, .match-row__map, .match-row__date { justify-self: start; }
  .hero__inner {
    gap: 24px;
  }
  .hero__stats .stat-card {
    padding: 24px 20px;
  }
  .hero-match {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .match-row, .match-row--result { grid-template-columns: 1fr; align-items: flex-start; gap: 4px; }
  .match-row--result .match-row__comp { grid-column: 1; }
  .player-card { flex-wrap: wrap; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
  .section__head::before {
    font-size: 84px;
    top: -18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}