/* Liga FIFA Ministrantów — Stadium Night (dark) */
:root {
  --bg: #0c1018;
  --bg-elevated: #121824;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --gold: #e8c547;
  --gold-soft: #f5df82;
  --stadium-glow: rgba(52, 211, 153, 0.12);
  --stadium-glow-strong: rgba(52, 211, 153, 0.22);
  --win: #22c55e;
  --draw: #f59e0b;
  --loss: #ef4444;
  --max: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
  --font-display: "Sora", system-ui, sans-serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--stadium-glow-strong), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(232, 197, 71, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* ---------- Nawigacja ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 16, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.5rem 0;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav__brand:hover {
  color: var(--gold-soft);
}

.site-nav__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  background: rgba(232, 197, 71, 0.12);
  border-color: rgba(232, 197, 71, 0.35);
  color: var(--gold-soft);
}

.site-nav__link--back {
  background: rgba(232, 197, 71, 0.14);
  border-color: rgba(232, 197, 71, 0.4);
  font-weight: 600;
}

.site-nav__link--back:hover {
  background: rgba(232, 197, 71, 0.22);
}

.site-nav__current {
  color: var(--gold);
  font-size: 0.88rem;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.site-header.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, var(--stadium-glow), transparent 60%),
    linear-gradient(180deg, #0f1520 0%, var(--bg) 100%);
  color: var(--text);
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 10%, transparent 90%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.site-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.site-header__sub {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(232, 197, 71, 0.1);
  border: 1px solid rgba(232, 197, 71, 0.28);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold-soft);
}

.hero-badge--muted {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-muted);
}

.hero-badge--button {
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.hero-badge--button:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-badge--button.is-active {
  background: rgba(232, 197, 71, 0.1);
  border-color: rgba(232, 197, 71, 0.28);
  color: var(--gold-soft);
}

.hero-badge--button.is-active.hero-badge--muted {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text);
}

.hero-badge--button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.past-seasons-panel .section__intro {
  margin: 0 0 1.25rem;
}

.seasons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.season-card {
  padding: 1rem 1rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.season-card__year {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.season-card__podium {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.season-card__place {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.season-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.season-card__place--1 .season-card__rank {
  background: rgba(232, 197, 71, 0.18);
  color: var(--gold-soft);
  border: 1px solid rgba(232, 197, 71, 0.35);
}

.season-card__place--2 .season-card__rank {
  background: rgba(192, 200, 212, 0.12);
  color: #d5dde8;
  border: 1px solid rgba(192, 200, 212, 0.25);
}

.season-card__place--3 .season-card__rank {
  background: rgba(205, 127, 50, 0.12);
  color: #d9a066;
  border: 1px solid rgba(205, 127, 50, 0.28);
}

.season-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.season-card__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.season-card__name {
  font-weight: 600;
  color: var(--text);
}

.season-card__place--1 .season-card__name {
  color: var(--gold-soft);
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--stadium-glow-strong) 0%, rgba(232, 197, 71, 0.06) 45%, transparent 70%);
  pointer-events: none;
}

.hero__logo {
  position: relative;
  width: min(100%, 260px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(52, 211, 153, 0.15)) drop-shadow(0 0 20px rgba(232, 197, 71, 0.1));
}

/* ---------- Sekcje ---------- */
.section {
  padding: 2.75rem 0 3.5rem;
}

.section--team {
  padding-top: 2rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  max-width: 42rem;
}

/* ---------- Tabela ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.standings-table th,
.standings-table td {
  padding: 1rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.standings-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.standings-table tbody tr {
  transition: background 0.15s ease;
}

.standings-table tbody tr:hover {
  background: var(--surface-hover);
}

.standings-table tbody tr:last-child td {
  border-bottom: none;
}

.standings-table tbody tr.row-podium {
  background: linear-gradient(90deg, rgba(232, 197, 71, 0.1), transparent 60%);
  border-left: 3px solid var(--gold);
}

.standings-table tbody tr.row-podium td:first-child {
  padding-left: calc(0.9rem - 3px);
}

.col-rank {
  width: 3.5rem;
  font-weight: 700;
  color: var(--text);
}

.standings-table td.col-coach,
.standings-table th.col-coach,
.standings-table td.col-team,
.standings-table th.col-team {
  text-align: left;
}

.cell-coach,
.cell-team {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  width: 100%;
}

.col-coach,
.col-team {
  text-align: left;
}

.cell-coach a,
.cell-team a,
.team-link {
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease;
}

.cell-coach a:hover,
.cell-team a:hover,
.team-link:hover {
  color: var(--gold-soft);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.crest {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.col-coach {
  min-width: 11rem;
}

.col-team {
  min-width: 10rem;
}

.col-team .cell-team span {
  color: var(--text-muted);
  font-weight: 500;
}

.col-points {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-muted);
}

.rank-badge--top {
  background: rgba(232, 197, 71, 0.15);
  border-color: rgba(232, 197, 71, 0.4);
  color: var(--gold-soft);
  box-shadow: 0 0 16px rgba(232, 197, 71, 0.15);
}

.loading,
.error-box {
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--border);
}

.error-box {
  color: var(--loss);
  border-color: rgba(239, 68, 68, 0.3);
}

/* ---------- Profil drużyny ---------- */
.team-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.team-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--team-accent, var(--gold));
  box-shadow: 0 0 20px var(--team-accent, var(--gold));
}

.team-hero--city {
  --team-accent: #6cabdd;
}

.team-hero--liverpool {
  --team-accent: #c8102e;
}

.team-hero--barcelona {
  --team-accent: #a50044;
}

.team-hero__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.team-hero__photo-wrap {
  position: relative;
}

.team-hero__photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.team-hero__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.team-hero__coach {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.team-hero__name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.15rem;
  font-weight: 600;
}

.team-hero__name img {
  width: 36px;
  height: 36px;
}

.team-hero__desc {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.fact-tag {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.match-section {
  margin-top: 2rem;
}

.match-section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
}

.match-list {
  display: grid;
  gap: 0.85rem;
}

.match-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.match-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.match-card__teams {
  font-weight: 500;
  color: var(--text);
}

.match-card__vs {
  color: var(--text-muted);
  font-weight: 600;
}

.match-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.match-card__date {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.match-card__score {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.result-pill--W {
  background: var(--win);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.result-pill--D {
  background: var(--draw);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.result-pill--L {
  background: var(--loss);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* ---------- Profile trenerów ---------- */
.coaches-grid__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.coach-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.coach-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.coach-card::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--team-accent, var(--gold));
}

.coach-card--city { --team-accent: #6cabdd; }
.coach-card--liverpool { --team-accent: #c8102e; }
.coach-card--barcelona { --team-accent: #a50044; }

.coach-card__photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
}

.coach-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.coach-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.coach-card__team {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.coach-card__team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.coach-card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Zasady ---------- */
.rules-card {
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.rules-card__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
}

.rules-card__text {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
}

.rules-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.rules-list li + li {
  margin-top: 0.4rem;
}

.rules-list strong {
  color: var(--text);
}

.rules-list--ordered {
  padding-left: 1.5rem;
}

/* ---------- Stopka ---------- */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.9;
}

/* ---------- Responsywność ---------- */

/* Mobilna tabela — karty */
.standings-mobile {
  display: none;
}

.standing-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.standing-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.standing-card--podium {
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(232, 197, 71, 0.08), var(--surface));
}

.standing-card__head {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.standing-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.standing-card--podium .standing-card__rank {
  background: rgba(232, 197, 71, 0.15);
  border-color: rgba(232, 197, 71, 0.4);
  color: var(--gold-soft);
}

.standing-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--border-strong);
}

.standing-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.standing-card__info strong {
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standing-card__team {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.standing-card__team img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.standing-card__points {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.standing-card__points small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.standing-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.standing-card__stats b {
  color: var(--gold);
  font-weight: 600;
  margin-right: 0.15rem;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy {
    align-items: center;
  }

  .site-header__sub {
    max-width: none;
  }

  .hero__badges {
    justify-content: center;
  }

  .seasons-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .site-nav {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .site-nav__inner {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    gap: 0.65rem;
  }

  .site-nav__brand span {
    font-size: 0.9rem;
  }

  .site-nav__links {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
  }

  .site-nav__links::-webkit-scrollbar {
    display: none;
  }

  .site-nav__link {
    flex-shrink: 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    min-height: 44px;
  }

  .site-header.hero {
    padding: 2rem 0 2.5rem;
  }

  .site-header__title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .site-header__title br {
    display: none;
  }

  .hero__logo {
    width: min(100%, 200px);
  }

  .hero__visual::before {
    width: 220px;
    height: 220px;
  }

  .section {
    padding: 2rem 0 2.75rem;
  }

  .standings-desktop {
    display: none;
  }

  .standings-mobile {
    display: grid;
    gap: 0.75rem;
  }

  .coaches-grid__inner {
    grid-template-columns: 1fr;
  }

  .rules-card {
    padding: 1.15rem 1.25rem;
  }

  .team-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .team-hero__media {
    justify-items: center;
  }

  .team-hero__photo {
    width: 140px;
    height: 140px;
  }

  .team-hero__name {
    justify-content: center;
  }

  .facts-grid {
    justify-content: center;
  }

  .match-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1rem;
  }

  .match-card__meta {
    align-items: center;
    text-align: center;
  }

  .match-card__score {
    justify-content: center;
  }

  .site-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .site-nav__brand span {
    display: none;
  }

  .standing-card__head {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
  }

  .standing-card__points {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.25rem;
  }
}
