:root {
  /* Layout */
  --wrap-max: 1170px;
  --wrap-gutter: 64px;
  --wrap-max-sm: 540px;
  --wrap-gutter-sm: 34px;

  /* Typografia */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Powierzchnie i obramowania */
  --bg: #101521;
  --surface: #1b2131;
  --surface-sunken: #181d2c;
  --border: #30374a;
  --border-header: #ffffff12;

  /* Akcent marki */
  --accent: #bda4ff;
  --accent-hover: #d3c2ff;
  --on-accent: #191326;

  /* Skala tekstu: kontrast na tle strony 16.2 / 16.2 / 9.5 / 7.6 / 6.2 */
  --text: #eef1ff;
  --text-bright: #fff;
  --text-secondary: #b5bbcf;
  --text-tertiary: #9ea7bb;
  --text-muted: #8d96ab;

  /* Status "bez reklam" i potwierdzenia */
  --mint: #7fe2b3;
  --mint-ring: #7fe2b322;
  --mint-text: #c2e5cb;
  --mint-border: #315a4e;

  /* Karta "gra tygodnia" - zamknięta ilustracja, własna paleta */
  --pitch-from: #2b675f;
  --pitch-to: #182e36;
  --pitch-border: #3c4b4a;
  --pitch-grid: #a1d8c9;
  --pitch-stripe-a: #56a38a30;
  --pitch-stripe-b: #2c745e35;
  --pitch-chalk: #d8f2e66b;
  --pitch-goal: #c9fbf5;
  --pitch-shadow: #03091555;
  --ball-shadow: #112c2c77;
  --player-outline: #fff;
  --player-shadow: #16292355;
  --player-a: #fe9c70;
  --player-b: #a999fa;
  --feature-kicker: #c7e9d9;
  --feature-sub: #bcd5cc;
  --tag-bg: #ffffff25;
  --play-bg: #d6ffb5;
  --play-ink: #17362e;

  /* Okładki gier */
  --cover-ring: #ffffff30;
  --cover-glow-1: #ffffff0d;
  --cover-glow-2: #ffffff07;
  --cover-art-shadow: #0003;
  --cover-play-bg: #ffffffd9;
  --cover-play-ink: #243047;
  --badge-bg: #15192577;

  /* Promienie narożników: cztery stopnie plus pigułka */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Ruch i fokus */
  --lift: transform .2s;
  --focus: #f7cf71;

  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; min-width: 320px }
a { color: inherit; text-decoration: none }
button, input { font: inherit }
button { cursor: pointer }
.wrap { width: min(var(--wrap-max), calc(100% - var(--wrap-gutter))); margin: auto }

/* Nagłówek */
.site-header { border-bottom: 1px solid var(--border-header); background: var(--bg) }
.topbar { min-height: 80px; display: flex; align-items: center; gap: 32px }
.brand { font-size: 24px; font-weight: 850; letter-spacing: -1.2px; display: flex; align-items: center; gap: 10px }
.brand small { color: var(--text-secondary); font-weight: 650; letter-spacing: -.7px }
.brand-accent { color: var(--accent) }
.brand-mark { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); width: 38px; height: 38px; border-radius: var(--radius-md); font-size: 29px }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 33px; color: var(--text-secondary); font-size: 13px; font-weight: 650 }
.main-nav a { padding: 12px 0 }
.main-nav a:hover { color: var(--text-bright) }
.status { font-size: 11px; letter-spacing: 1px; color: var(--mint-text); border: 1px solid var(--mint-border); padding: 10px 14px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 8px; font-weight: 800 }
.pulse { width: 7px; height: 7px; border-radius: 100%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-ring) }

/* Hero */
.hero { padding-top: 70px; padding-bottom: 76px; display: grid; grid-template-columns: 1fr 1fr; gap: 57px; align-items: center }
.eyebrow, .section-kicker { font-size: 11px; font-weight: 850; letter-spacing: 2.6px; color: var(--accent) }
.eyebrow { display: flex; align-items: center; gap: 12px }
.eyebrow-line { display: block; height: 2px; width: 21px; background: var(--accent) }
.hero h1 { max-width: 560px; font-size: clamp(50px, 5.2vw, 82px); letter-spacing: -4px; line-height: 1.07; margin: 20px 0 21px; font-weight: 850 }
.hero h1 em { font-style: normal; color: var(--accent) }
.hero-description { color: var(--text-secondary); max-width: 430px; line-height: 1.75; font-size: 16px }
.hero-actions { display: flex; align-items: center; gap: 20px; margin: 28px 0 40px }
.btn-primary { border-radius: var(--radius-md); padding: 15px 23px; display: inline-flex; align-items: center; gap: 27px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px) }
.free-note { color: var(--text-tertiary); font-size: 12px }
.hero-stats { display: flex; align-items: center; gap: 25px }
.hero-stats span { display: flex; flex-direction: column; gap: 3px }
.hero-stats b { font-size: 24px }
.hero-stats small { color: var(--text-muted); font-size: 11px }
.hero-stats i { height: 30px; width: 1px; background: var(--border) }

/* Karta "gra tygodnia" */
.feature-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; height: 420px; border-radius: var(--radius-xl); border: 1px solid var(--pitch-border); background: linear-gradient(137deg, var(--pitch-from), var(--pitch-to) 72%); padding: 25px; box-shadow: 0 20px 70px var(--pitch-shadow); transition: var(--lift) }
.feature-card:hover { transform: translateY(-5px) }
.feature-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(var(--pitch-grid) 1px, transparent 1px), linear-gradient(90deg, var(--pitch-grid) 1px, transparent 1px); background-size: 28px 28px }
.feature-top, .feature-caption { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center }
.tag-live { padding: 10px 13px; background: var(--tag-bg); border-radius: var(--radius-sm); font-size: 10px; letter-spacing: 1.5px; font-weight: 800 }
.feature-arrow { font-size: 24px }
.stadium { position: relative; height: 190px; margin: 3px 3px 0; border: 3px solid var(--pitch-chalk); border-radius: 6px; background: repeating-linear-gradient(90deg, var(--pitch-stripe-a) 0 55px, var(--pitch-stripe-b) 55px 110px) }
.pitch-line { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid var(--pitch-chalk) }
.pitch-circle { position: absolute; width: 86px; height: 86px; border: 2px solid var(--pitch-chalk); top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%, -50%) }
.ball { position: absolute; left: 52%; top: 50%; font-size: 30px; transform: translate(-50%, -50%); filter: drop-shadow(0 7px 7px var(--ball-shadow)) }
.player { position: absolute; width: 27px; height: 27px; border: 6px solid var(--player-outline); border-radius: 9px; box-shadow: 0 9px 0 var(--player-shadow); transform: rotate(9deg) }
.player-a { left: 34%; top: 45%; background: var(--player-a) }
.player-b { right: 27%; top: 22%; background: var(--player-b) }
.goal { position: absolute; width: 12px; height: 65px; top: 50%; transform: translateY(-50%); border: 2px solid var(--pitch-goal) }
.left-goal { left: -14px }
.right-goal { right: -14px }
.feature-caption strong { display: block; font-size: 35px; letter-spacing: -1.3px }
.feature-caption small { font-size: 10px; letter-spacing: 1.5px; color: var(--feature-kicker); font-weight: 800 }
.feature-sub { color: var(--feature-sub); font-size: 12px }
.round-play { display: grid; place-items: center; background: var(--play-bg); color: var(--play-ink); width: 48px; height: 48px; border-radius: 50% }

/* Katalog: nagłówek sekcji, filtry, wyszukiwanie */
.catalog { padding-bottom: 100px }
.section-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px }
.section-top h2 { font-size: 38px; margin: 10px 0 0; letter-spacing: -1.7px }
.question { color: var(--accent) }
.section-top p { color: var(--text-tertiary); font-size: 13px }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 9px }
.filter { border: 1px solid var(--border); color: var(--text-secondary); background: var(--surface); border-radius: var(--radius-md); padding: 11px 16px; font-weight: 700; font-size: 12px }
.filter:hover, .filter.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent) }
.searchbox { height: 42px; border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; align-items: center; padding: 0 14px; min-width: 210px; gap: 8px; color: var(--text-tertiary); background: var(--surface-sunken) }
.searchbox span { font-size: 25px; line-height: 1 }
.searchbox input { background: none; border: none; outline: none; color: var(--text-bright); width: 100%; font-size: 12px }
.searchbox input::placeholder { color: var(--text-muted) }

/* Karty gier */
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px }
.game-card { min-width: 0; padding-bottom: 18px; transition: var(--lift); animation: slide-in .35s ease both; animation-delay: calc(var(--order) * 35ms) }
.game-card:hover { transform: translateY(-5px) }
.card-cover { height: 192px; border-radius: var(--radius-lg); position: relative; display: grid; place-items: center; background: linear-gradient(135deg, var(--cover-start), var(--cover-end)); overflow: hidden }
.cover-decoration { position: absolute; width: 220px; height: 220px; border: 2px solid var(--cover-ring); border-radius: 50%; box-shadow: 0 0 0 25px var(--cover-glow-1), 0 0 0 65px var(--cover-glow-2); transform: translate(55px, 50px) }
.game-art { position: relative; z-index: 1; font-size: 77px; filter: drop-shadow(0 13px 12px var(--cover-art-shadow)); transition: var(--lift) }
.game-card:hover .game-art { transform: scale(1.13) rotate(-3deg) }
.cover-play { position: absolute; right: 16px; bottom: 15px; background: var(--cover-play-bg); color: var(--cover-play-ink); display: grid; place-items: center; border-radius: 100%; width: 39px; height: 39px; z-index: 2; font-size: 12px }
.badge-featured { position: absolute; left: 14px; top: 14px; border-radius: var(--radius-sm); padding: 8px 10px; font-size: 9px; letter-spacing: 1.2px; font-weight: 900; color: var(--text-bright); background: var(--badge-bg) }
.card-meta { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px 3px }
.card-meta h3 { font-size: 20px; letter-spacing: -.4px; margin: 0 0 4px }
.card-meta p { color: var(--text-tertiary); font-size: 12px; margin: 0; line-height: 1.5 }
.card-arrow { color: var(--accent); font-size: 24px }
.category-label { color: var(--text-muted); font-size: 10px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; padding-left: 2px }
.empty { text-align: center; color: var(--text-tertiary); padding: 30px }

/* O projekcie i stopka */
.suggest { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; padding-bottom: 65px }
.suggest h2 { font-size: 31px; margin: 10px 0 }
.suggest-copy p { color: var(--text-tertiary); font-size: 13px; line-height: 1.7; max-width: 420px }
.suggest-form { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px }
.suggest-form label { font-size: 12px; font-weight: 700; color: var(--text-secondary) }
.suggest-form textarea { width: 100%; resize: vertical; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-bright); font: inherit; font-size: 14px; padding: 12px 14px }
.suggest-form textarea::placeholder { color: var(--text-muted) }
.suggest-note { margin: 0; font-size: 12px; color: var(--text-tertiary) }
.suggest-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap }
.suggest-actions .btn-primary { border: 0; cursor: pointer; font-family: inherit }
.suggest-actions .btn-primary:disabled { opacity: .6; cursor: progress; transform: none }
.suggest-status { margin: 0; font-size: 13px; font-weight: 650; color: var(--mint-text) }
.suggest-status.error { color: #ffb4a8 }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.about { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px; display: grid; grid-template-columns: 95px 1fr auto; gap: 30px; align-items: center; margin-bottom: 65px }
.about-symbol { font-size: 69px; color: var(--accent) }
.about h2 { font-size: 31px; margin: 5px 0 }
.about p { font-size: 13px; line-height: 1.7; color: var(--text-tertiary); max-width: 540px }
.about-checks { display: grid; gap: 11px; color: var(--mint-text); font-size: 12px; font-weight: 650 }
footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--text-tertiary) }
.footer-inner { display: flex; justify-content: space-between; font-size: 12px }
.footer-inner b { color: var(--accent-hover) }
.footer-inner .version { font-variant-numeric: tabular-nums; opacity: .8 }
.footer-inner a { color: var(--accent-hover); text-decoration: none }
.footer-inner a:hover { text-decoration: underline }
.copyright { padding-left: 14px }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px }

@keyframes slide-in {
  from { opacity: 0; transform: translateY(10px) }
  to { opacity: 1; transform: translateY(0) }
}

@media (max-width: 950px) {
  .suggest { grid-template-columns: 1fr; gap: 24px }
  .hero { gap: 25px }
  .hero h1 { font-size: 56px; letter-spacing: -2.5px }
  .feature-card { height: 360px }
  .stadium { height: 160px }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .about { grid-template-columns: 60px 1fr }
  .about-checks { grid-column: 2; grid-template-columns: 1fr 1fr }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - var(--wrap-gutter-sm), var(--wrap-max-sm)) }
  .topbar { min-height: 70px }
  .brand { font-size: 20px }
  .main-nav { display: none }
  .status { margin-left: auto; font-size: 9px; padding: 8px }
  .hero { grid-template-columns: 1fr; padding-top: 42px; padding-bottom: 65px }
  .hero h1 { font-size: 53px }
  .hero-actions { flex-wrap: wrap }
  .feature-card { height: 340px }
  .stadium { height: 145px }
  .section-top { display: block }
  .section-top h2 { font-size: 31px }
  .filters { align-items: stretch; flex-direction: column }
  .filter-tabs { gap: 7px }
  .filter { padding: 10px 12px }
  .searchbox { width: 100% }
  .games-grid { gap: 18px 13px }
  .card-cover { height: 140px }
  .game-art { font-size: 55px }
  .card-meta h3 { font-size: 17px }
  .card-meta p { font-size: 11px }
  .category-label { font-size: 9px }
  .about { grid-template-columns: 1fr; padding: 24px }
  .about-symbol { display: none }
  .about-checks { grid-column: 1 }
  .footer-inner { flex-direction: column; gap: 10px }
}
