:root {
  --zielony: #2d7d2d;
  --zielony-ciemny: #1a4d1a;
  --zielony-ramka: #b8d4b8;
  --zielony-tlo: #f0faf0;
  --cien-ramka: 0 2px 5px rgba(45,125,45,0.07);
  --cien-ramka-mocny: 0 2px 6px rgba(45,125,45,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,255,255,0.18) 0%, transparent 55%),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0) 70px,
      rgba(0,0,0,0.08) 70px,
      rgba(0,0,0,0.08) 140px),
    linear-gradient(135deg, #1a4d1a 0%, #2d7d2d 50%, #1a4d1a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.karta {
  background: white;
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

h1,
.ekran-tytul,
.ranking-tytul,
.statystyki-tytul,
.wynik-tytul,
.mecz-naglowek h3 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  letter-spacing: 1.5px;
  font-weight: 400;
}

/* ===== ANIMACJE WEJŚCIA EKRANU ===== */
@keyframes ekranWejscie {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ekran-anim {
  animation: ekranWejscie 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== KONFETTI ===== */
.konfetti-kontener {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.konfetti-czastka {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 14px;
  opacity: 0;
  animation: konfettiSpadanie linear forwards;
}

@keyframes konfettiSpadanie {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0.9;
    transform: translateY(110vh) rotate(720deg);
  }
}

h1 { font-size: 38px; color: #1a4d1a; margin-bottom: 6px; }
.ekran-tytul { font-size: 28px; }
.ranking-tytul,
.statystyki-tytul,
.wynik-tytul { font-size: 30px; }
.mecz-naglowek h3 { font-size: 24px; }

/* ===== EKRAN STARTOWY ===== */
#ekran-start { text-align: center; }

.logo { font-size: 64px; margin-bottom: 8px; }

.lena-wrapper {
  position: fixed;
  right: 20%;
  top: 21vh;
  height: 80vh;
  max-height: 760px;
  pointer-events: none;
  z-index: 1;
  animation: lena-wjazd 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lena-postac {
  height: 100%;
  width: auto;
  object-fit: contain;
  animation: lena-float 4s ease-in-out infinite 0.7s;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lena-postac:hover {
  transform: scale(1.02);
}

@keyframes lena-wjazd {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes lena-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.lena-dymek {
  position: absolute;
  top: 6%;
  right: 68%;
  width: 220px;
  background: #1a4d1a;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  pointer-events: auto;
  animation: lena-dymek-wjazd 0.5s ease-out 1s both;
}

.lena-dymek::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #1a4d1a;
}

@keyframes lena-dymek-wjazd {
  from { transform: translateY(-8px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

.lena-mobile { display: none; }

@media (max-width: 1200px) {
  .lena-wrapper { display: none; }

  .logo { display: none; }

  .lena-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
  }

  .lena-mobile img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    background: radial-gradient(circle at 50% 35%, #5cb85c 0%, #2d7d2d 70%, #1a4d1a 100%);
  }

  .lena-mobile-dymek {
    position: relative;
    background: #1a4d1a;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 14px;
    max-width: 320px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  }

  .lena-mobile-dymek::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #1a4d1a;
  }
}

.podtytul { color: #777; margin-bottom: 28px; font-size: 14px; }

.pole-imie {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.pole-imie label { font-size: 14px; font-weight: 600; color: #444; }

.pole-imie input {
  padding: 11px 18px;
  font-size: 15px;
  border: 2px solid var(--zielony-ramka);
  border-radius: 8px;
  width: 260px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  box-shadow: var(--cien-ramka);
}

.pole-imie input:focus { border-color: #2d7d2d; }
.pole-imie input.blad { border-color: #d32f2f; animation: shake 0.3s; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.wybierz-tryb { font-size: 13px; color: #888; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }

.tryby { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.btn-tryb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  border: 2px solid var(--zielony-ramka);
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: var(--cien-ramka-mocny);
}

.btn-tryb:hover {
  border-color: #2d7d2d;
  background: #f0faf0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45,125,45,0.15);
}

.tryb-emoji { font-size: 32px; }
.tryb-nazwa { font-size: 14px; color: #222; font-weight: 700; }
.tryb-opis { font-size: 12px; color: #555; font-weight: 500; line-height: 1.3; }

/* ===== EKRAN POZIOMU ===== */
.ekran-tytul {
  font-size: 20px;
  color: #1a4d1a;
  text-align: center;
  margin-bottom: 20px;
}

.poziomy { display: grid; gap: 12px; }

.btn-poziom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--zielony-ramka);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  box-shadow: var(--cien-ramka-mocny);
}

.btn-poziom:hover {
  border-color: var(--kolor);
  background: color-mix(in srgb, var(--kolor) 8%, white);
  transform: translateX(4px);
}

.poz-emoji { font-size: 28px; flex-shrink: 0; }

.poz-info { display: flex; flex-direction: column; gap: 2px; }
.poz-nazwa { font-size: 16px; font-weight: 700; color: var(--kolor); }
.poz-opis { font-size: 13px; color: #555; font-weight: 500; }

/* ===== PASEK POSTĘPU ===== */
.pasek-postep { margin-bottom: 20px; }

.info-postep {
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}

.pasek { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; }

.pasek-wypelnienie {
  height: 100%;
  background: linear-gradient(90deg, #2d7d2d, #5cb85c);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ===== EKRAN PYTANIA ===== */
.numer-pytania {
  font-size: 12px;
  font-weight: 700;
  color: #2d7d2d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

#tresc-pytania {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 24px;
}

/* Tryb "Łączący klub" — wewnątrz #tresc-pytania */
.zagadka-tytul {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1a4d1a;
  margin-bottom: 12px;
}

.lista-zawodnikow {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.lista-zawodnikow li {
  background: #f0faf0;
  border: 1px solid #c8e6c9;
  border-left: 4px solid #2d7d2d;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1a4d1a;
}

/* Sekcja ze zdjęciem */
#sekcja-zdjecia {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f8f8;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ladowanie-zdjecia {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #aaa;
  font-size: 14px;
  padding: 40px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #2d7d2d;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#zdjecie-zawodnika {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  background: #f8f8f8;
}

#brak-zdjecia {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #bbb;
  font-size: 13px;
  padding: 40px;
}

#brak-zdjecia span { font-size: 48px; }

/* ===== ODPOWIEDZI ===== */
.odpowiedzi { display: grid; gap: 10px; }

.btn-odpowiedz {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  background: #f8f8f8;
  color: #333;
  border: 2px solid var(--zielony-ramka);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s;
  line-height: 1.3;
  gap: 0;
  box-shadow: var(--cien-ramka);
}

.btn-odpowiedz:hover:not(:disabled) {
  background: #e8f5e9;
  border-color: #2d7d2d;
  color: #1a4d1a;
}

.btn-odpowiedz.poprawna {
  background: #e8f5e9;
  border-color: #2d7d2d;
  color: #1a4d1a;
  font-weight: 700;
}

.btn-odpowiedz.zla {
  background: #fdecea;
  border-color: #d32f2f;
  color: #b71c1c;
}

.btn-odpowiedz:disabled { cursor: default; }

.litera {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: #ddd;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  margin-right: 12px;
}

.btn-odpowiedz.poprawna .litera { background: #2d7d2d; color: white; }
.btn-odpowiedz.zla .litera { background: #d32f2f; color: white; }

/* ===== WYNIK ===== */
#ekran-wynik { text-align: center; }

.wynik-emoji { font-size: 60px; margin-bottom: 14px; }

.wynik-video {
  display: block;
  margin: 0 auto 16px;
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background: #000;
}
.wynik-tytul { font-size: 24px; font-weight: 800; color: #1a4d1a; margin-bottom: 8px; }
.wynik-opis { color: #666; font-size: 15px; margin-bottom: 24px; }
.wynik-liczba { font-size: 56px; font-weight: 900; color: #2d7d2d; line-height: 1; margin-bottom: 4px; }
.wynik-max { font-size: 15px; color: #aaa; margin-bottom: 28px; }

.przyciski-wynik { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== RANKING ===== */
.ranking-tytul { font-size: 20px; font-weight: 800; color: #1a4d1a; text-align: center; margin-bottom: 16px; }

.ranking-zakladki {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  justify-content: center;
}

.btn-zakladka {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--zielony-ramka);
  border-radius: 20px;
  background: white;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(45,125,45,0.07);
}

.btn-zakladka:hover { border-color: #2d7d2d; color: #2d7d2d; }
.btn-zakladka.aktywna { background: #2d7d2d; border-color: #2d7d2d; color: white; }

.ranking-lista { list-style: none; }

.ranking-pozycja {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #f8f8f8;
  gap: 14px;
}

.ranking-pozycja:nth-child(1) { background: #fff8e1; }
.ranking-pozycja:nth-child(2) { background: #f5f5f5; }
.ranking-pozycja:nth-child(3) { background: #fce4e4; }

.medal { font-size: 20px; width: 28px; text-align: center; }
.ranking-imie { flex: 1; font-weight: 600; color: #333; }
.ranking-wynik { font-weight: 800; color: #2d7d2d; font-size: 16px; }

.ranking-pusty { text-align: center; color: #bbb; padding: 32px; font-size: 14px; }

/* ===== PRZYCISKI ===== */
.btn {
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn:active { transform: scale(0.97); }

.btn-restart { background: #2d7d2d; color: white; box-shadow: 0 4px 12px rgba(45,125,45,0.35); }
.btn-restart:hover { background: #1a5c1a; }

.btn-wynik { background: #f4a900; color: #1a1a1a; box-shadow: 0 4px 12px rgba(244,169,0,0.35); }
.btn-wynik:hover { background: #d99500; }

.btn-ghost { background: white; color: #2d7d2d; border: 2px solid var(--zielony-ramka); padding: 10px 20px; font-size: 13px; margin-top: 4px; box-shadow: 0 2px 5px rgba(45,125,45,0.08); }
.btn-ghost:hover { background: #f0faf0; color: #1a4d1a; border-color: #2d7d2d; }

.btn-back {
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 16px 0;
  display: block;
}

.btn-back:hover { color: #333; }

/* ===== TRYB SKŁAD MECZU ===== */
.mecz-naglowek {
  text-align: center;
  margin: 8px 0 16px 0;
}
.mecz-naglowek h3 {
  color: #1a4d1a;
  font-size: 18px;
  margin-bottom: 4px;
}
.mecz-kontekst {
  color: #444;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.mecz-meta {
  color: #888;
  font-size: 12px;
}

.mecz-boisko {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 2 / 3;
  margin: 0 auto 16px auto;
  background:
    linear-gradient(180deg,
      #2d7d2d 0%, #2d7d2d 8%,
      #258525 8%, #258525 16%,
      #2d7d2d 16%, #2d7d2d 24%,
      #258525 24%, #258525 32%,
      #2d7d2d 32%, #2d7d2d 40%,
      #258525 40%, #258525 48%,
      #2d7d2d 48%, #2d7d2d 56%,
      #258525 56%, #258525 64%,
      #2d7d2d 64%, #2d7d2d 72%,
      #258525 72%, #258525 80%,
      #2d7d2d 80%, #2d7d2d 88%,
      #258525 88%, #258525 100%);
  border: 3px solid white;
  border-radius: 4px;
  overflow: hidden;
}
/* Linia środka boiska */
.mecz-boisko::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: white;
}
/* Koło środkowe */
.mecz-boisko::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  aspect-ratio: 1;
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pole-karne-gora,
.pole-karne-dol {
  position: absolute;
  left: 50%;
  width: 50%;
  height: 14%;
  border: 2px solid white;
  transform: translateX(-50%);
}
.pole-karne-gora { top: 0; border-top: none; }
.pole-karne-dol  { bottom: 0; border-bottom: none; }

.punkt-zawodnika {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  border: 3px solid #1e40af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
  z-index: 2;
  text-align: center;
  line-height: 1;
}
.punkt-zawodnika .nazwisko-pod {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 3px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}
.punkt-zawodnika.ukryty {
  background: #facc15;
  border-color: #b45309;
  color: #7c2d12;
  font-size: 22px;
  animation: pulseUkryty 1.4s ease-in-out infinite;
}
.punkt-zawodnika.ukryty .nazwisko-pod {
  display: none;
}
.punkt-zawodnika.aktywny {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.35);
  transform: translate(-50%, -50%) scale(1.12);
}
.punkt-zawodnika.poprawna-flash {
  background: #16a34a !important;
  border-color: #14532d !important;
  color: white !important;
}
.punkt-zawodnika.zla-flash {
  background: #dc2626 !important;
  border-color: #7f1d1d !important;
  color: white !important;
}

@keyframes pulseUkryty {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(250, 204, 21, 0); }
}

.mecz-podpowiedzi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.mecz-podpowiedzi .podpowiedz-grupa {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}
.mecz-podpowiedzi .podpowiedz-grupa-tytul {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  text-align: center;
}
.mecz-podpowiedzi .podpowiedz-grupa-przyciski {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mecz-input-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.mecz-input-grupa {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mecz-input-grupa label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.mecz-input {
  padding: 11px 14px;
  font-size: 16px;
  border: 2px solid var(--zielony-ramka);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  box-shadow: var(--cien-ramka);
}
.mecz-input:focus {
  border-color: #3b82f6;
}
.mecz-input.poprawny {
  border-color: #16a34a;
  background: #dcfce7;
}
.mecz-input.zly {
  border-color: #dc2626;
  background: #fee2e2;
}
.btn-sprawdz-mecz {
  margin-top: 4px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  background: #1e40af;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-sprawdz-mecz:hover { background: #1e3a8a; }
.btn-sprawdz-mecz:disabled { background: #999; cursor: not-allowed; }

.btn-nie-wiem {
  margin-top: 4px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-nie-wiem:hover { background: #d97706; }
.btn-nie-wiem:disabled { background: #999; cursor: not-allowed; }

.mecz-info-punkty {
  text-align: center;
  font-size: 12px;
  color: #555;
  background: #fff7e6;
  border: 1px solid #ffe1a8;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 4px;
}

/* ===== EKRAN STATYSTYK GRACZA ===== */
.start-akcje {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.statystyki-tytul {
  font-size: 22px;
  color: #1a4d1a;
  text-align: center;
  margin-bottom: 6px;
}

.statystyki-nick {
  text-align: center;
  color: #777;
  font-size: 13px;
  margin-bottom: 20px;
}

.statystyki-nick strong { color: #1a4d1a; font-size: 15px; }

.statystyki-podsumowanie {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.kafel-stat {
  background: linear-gradient(135deg, #f0faf0, #e0f0e0);
  border: 1px solid #cfe6cf;
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
}

.kafel-stat-wartosc {
  font-size: 24px;
  font-weight: 800;
  color: #1a4d1a;
  line-height: 1.1;
}

.kafel-stat-etykieta {
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.statystyki-naglowek {
  font-size: 15px;
  color: #1a4d1a;
  margin-bottom: 10px;
  margin-top: 4px;
}

.statystyki-tabela {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.wiersz-stat {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 13px;
}

.wiersz-stat-nagl {
  background: #1a4d1a;
  color: white;
  border: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wiersz-stat-kategoria {
  color: #222;
  font-weight: 600;
}

.wiersz-stat-wartosc {
  text-align: center;
  color: #444;
}

.statystyki-pusty {
  text-align: center;
  color: #999;
  padding: 40px 20px;
  font-style: italic;
}

@media (max-width: 480px) {
  .karta { padding: 24px 20px; }
  .tryby { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .punkt-zawodnika { width: 36px; height: 36px; font-size: 9px; }
  .punkt-zawodnika.ukryty { font-size: 18px; }
  .punkt-zawodnika .nazwisko-pod { font-size: 9px; padding: 1px 4px; }
  .mecz-boisko { max-width: 320px; }

  .start-akcje { grid-template-columns: 1fr; }
  .statystyki-podsumowanie { grid-template-columns: repeat(2, 1fr); }
  .kafel-stat-wartosc { font-size: 20px; }
  .wiersz-stat { grid-template-columns: 1.5fr 1fr 1fr 1fr; font-size: 11px; padding: 8px; }
}
