/* =============================================================
   Pograne.eu / GOG: arkusz stylów (wygląd „Galaxy”).
   Kolory z tokenów GOG (gdsx): brand, gog-green, shark grey.
   Kroje: Hubot Sans (nagłówki, rozciągnięty) i Mona Sans (tekst).
   ============================================================= */
:root {
  --gog-300: #ca90d6; --gog-400: #b360c4; --gog-500: #a524ab; --gog-600: #7b237f; --gog-700: #6e2f7b;
  --green: #acdc4f; --green-hover: #bae26e; --green-700: #85b629;
  --sh-25: #f7f7f7; --sh-50: #eeeeee; --sh-75: #e3e3e3; --sh-350: #a0a0a0; --sh-600: #5d5d5d;
  --sh-750: #393939; --sh-800: #2e2e2e; --sh-875: #212121; --sh-900: #191919; --sh-950: #111111;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --pad: clamp(16px, 3vw, 32px);
  --head: "Hubot Sans", system-ui, sans-serif;
  --text: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px }
body { margin: 0; background: var(--sh-950); color: var(--sh-50); font: 400 16px/1.55 var(--text); overflow-x: hidden }
img { display: block; max-width: 100%; height: auto }
picture { display: block }
a { color: var(--gog-300); text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-skip-ink: none;
  text-decoration-color: #ca90d680 }
a:hover { text-decoration-color: currentColor }
a:hover { color: #e0bbe8 }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); line-height: 1.15 }
p { margin: 0 }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter) }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--green); color: var(--sh-900); padding: 12px 16px; border-radius: 6px; font-weight: 700; text-decoration: none }
.skip:focus { top: 8px }

/* --- przyciski -------------------------------------------------------- */
.btn { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 6px; text-decoration: none;
  font: 700 15px/1.1 var(--head); font-stretch: 110%; border: 0; cursor: pointer }
.btn--read { background: var(--gog-500); color: #fff }
.btn--read:hover { background: var(--gog-400); color: #fff }
.btn--buy { background: var(--green); color: var(--sh-900) }
.btn--buy:hover { background: var(--green-hover); color: var(--sh-900) }
.btn--ghost { background: transparent; color: var(--sh-50); box-shadow: inset 0 0 0 1px var(--sh-750) }
.btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--gog-400) }
.btn svg { width: 16px; height: 16px; flex: none }

/* --- nagłówek strony -------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; background: #111111f2; border-bottom: 1px solid var(--sh-800) }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 60px }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--sh-25); text-decoration: none;
  font: 800 17px/1 var(--head); font-stretch: 125%; letter-spacing: .01em }
.brand:hover { color: #fff }
.brand b { background: var(--gog-500); color: #fff; padding: 4px 7px 5px; border-radius: 4px; font-weight: 800 }
.nav { display: none; align-items: center; gap: 4px 22px }
.nav a { color: var(--sh-75); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px }
.nav a:hover { color: #fff }
.nav .nav__home { color: var(--sh-350); padding-left: 18px; border-left: 1px solid var(--sh-800) }
.menu { position: relative }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px }
.menu summary::-webkit-details-marker { display: none }
.menu summary:hover { background: var(--sh-875) }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--sh-50); border-radius: 2px; position: relative }
.burger::before, .burger::after { content: ""; position: absolute; left: 0 }
.burger::before { top: -6px }
.burger::after { top: 6px }
.menu[open] .burger { background: transparent }
.menu[open] .burger::before { top: 0; transform: rotate(45deg) }
.menu[open] .burger::after { top: 0; transform: rotate(-45deg) }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; display: grid; padding: 8px; background: var(--sh-900);
  border: 1px solid var(--sh-800); border-radius: 8px; box-shadow: 0 12px 32px #000a }
.menu__panel a { color: var(--sh-50); text-decoration: none; min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 6px }
.menu__panel a:hover { background: var(--sh-875) }
@media (min-width: 900px) {
  .nav { display: flex }
  .menu { display: none }
}

/* --- tytuł strony ----------------------------------------------------- */
.intro { padding-block: 22px 18px }
.intro h1 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; font-stretch: 120%; letter-spacing: -.005em }
.intro p { margin-top: 6px; color: var(--sh-350); max-width: 72ch }

/* --- scena: najnowsze recenzje ---------------------------------------- */
.stage { position: relative; max-width: 1320px; margin-inline: auto }
.slide { display: grid }
.slide[hidden] { display: none }
.slide__bg { grid-area: 1 / 1; overflow: hidden; background: var(--sh-900) }
.slide__bg img { width: 100%; height: clamp(200px, 52vw, 300px); object-fit: cover; object-position: 50% 30% }
.slide__copy { display: grid; gap: 12px; padding: 0 var(--gutter) 20px; margin-top: -44px; position: relative; z-index: 1 }
.slide__logo { margin: 0 }
.slide__logo img { width: auto; max-width: min(72%, 340px); max-height: 110px; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 6px 18px #000c) }
.slide__meta { font: 600 12px/1.3 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--gog-300) }
.quote { margin: 0 }
.quote p { font: 500 clamp(17px, 2vw, 22px)/1.42 var(--text); max-width: 52ch }
.quote p::before { content: "„" }
.quote p::after { content: "”" }
.quote footer { margin-top: 8px; color: var(--sh-350); font-size: 14px }
.slide__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
@media (min-width: 760px) {
  .stage { padding-inline: var(--gutter) }
  .slide { border-radius: 10px; overflow: hidden }
  .slide::after { content: ""; grid-area: 1 / 1; pointer-events: none;
    background: linear-gradient(90deg, #111111 0%, #111111e0 30%, #11111100 70%), linear-gradient(0deg, #111111 0%, #11111100 40%) }
  .slide__bg img { height: clamp(400px, 42vw, 540px) }
  .slide__copy { grid-area: 1 / 1; align-self: end; z-index: 2; margin: 0; max-width: min(64%, 660px);
    padding: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 56px) }
  .slide__logo img { max-height: 150px }
}
/* Logo z serwera GOG-a (nowe recenzje z wtyczki) ma szerokie przezroczyste marginesy: większe pudełko. */
.slide__logo img.is-raw { max-height: 150px; max-width: min(90%, 420px) }
@media (min-width: 760px) { .slide__logo img.is-raw { max-height: 210px } }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 1fr); gap: 10px; padding: 14px var(--gutter) 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--sh-750) transparent }
.tab { scroll-snap-align: start; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px;
  border-radius: 8px; background: var(--sh-900); border: 1px solid var(--sh-800); color: var(--sh-50); font: inherit; text-align: left;
  cursor: pointer; min-height: 44px }
.tab picture, .tab img { width: 48px; border-radius: 4px }
.tab img { aspect-ratio: 342 / 482; object-fit: cover; opacity: .72 }
.tab span { display: grid; gap: 2px; min-width: 0 }
.tab b { font: 700 13.5px/1.2 var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tab small { color: var(--sh-350); font-size: 12px }
.tab:hover img, .tab[aria-selected="true"] img { opacity: 1 }
.tab[aria-selected="true"] { border-color: var(--gog-500); background: #a524ab26 }
@media (min-width: 760px) {
  .tabs { padding-inline: 0; scroll-padding-inline: 0 }
}

/* --- sekcje ------------------------------------------------------------ */
.sec { padding-top: clamp(36px, 5vw, 56px) }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 14px }
.sec__head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; font-stretch: 120% }
.sec__head p, .stamp { color: var(--sh-350); font-size: 13.5px }
.sec__head a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14.5px }

/* --- promocje ---------------------------------------------------------- */
.promos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none }
.promo { background: var(--sh-900); border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: auto 1fr }
.promo img { width: 100%; aspect-ratio: 1600 / 740; object-fit: cover; background: var(--sh-875) }
.promo__body { display: flex; flex-direction: column; gap: 8px; padding: 14px }
.promo h3 { font-size: 17px; font-weight: 700 }
.promo__op { font-size: 14px; color: var(--sh-350) }
.promo__by { font-size: 13.5px; color: var(--sh-350); margin-top: -4px }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px }
.price__disc { background: var(--green); color: var(--sh-900); font: 800 14px/1 var(--text); padding: 6px 7px; border-radius: 4px; font-variant-numeric: tabular-nums }
.price__now { font: 800 22px/1 var(--text); font-variant-numeric: tabular-nums; margin-right: auto; white-space: nowrap }

/* --- newsy i felietony -------------------------------------------------- */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 22px 16px; margin: 0; padding: 0; list-style: none }
.post { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0 }
.post__img { display: block; overflow: hidden; border-radius: 8px; background: var(--sh-900) }
.post__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease }
.post:hover .post__img img { transform: scale(1.03) }
.post__body { display: grid; gap: 6px; align-content: start }
.post__kind { font: 700 11.5px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--gog-300) }
.post h3 { font-size: 17px; font-weight: 700; line-height: 1.25 }
.post h3 a { color: var(--sh-25); text-decoration: none }
.post h3 a:hover { text-decoration: underline; text-decoration-color: var(--gog-500); text-underline-offset: 3px }
.post__meta { color: var(--sh-350); font-size: 13.5px }
@media (min-width: 900px) {
  .news { grid-template-columns: 2fr 1fr 1fr }
  .post--lead { grid-row: span 2 }
  .post--lead .post__img img { aspect-ratio: 4 / 3 }
  .post--lead h3 { font-size: clamp(22px, 2.2vw, 28px); font-stretch: 110% }
}

/* --- katalog ------------------------------------------------------------ */
.tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 16px }
.tools[hidden] { display: none }
.search { flex: 1 1 260px; max-width: 420px; position: relative }
.search input { width: 100%; min-height: 44px; padding: 0 14px 0 40px; border-radius: 6px; border: 1px solid var(--sh-750); background: var(--sh-900);
  color: var(--sh-25); font: inherit }
.search input::placeholder { color: var(--sh-350) }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--sh-350); pointer-events: none }
.sort { display: inline-flex; gap: 4px; padding: 3px; border-radius: 8px; background: var(--sh-900); border: 1px solid var(--sh-800); margin: 0 }
.sort legend { float: left; padding: 0 8px 0 6px; align-self: center; color: var(--sh-350); font-size: 13.5px; line-height: 38px }
.sort button { min-height: 38px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--sh-75); font: 600 14px/1 var(--text); cursor: pointer }
.sort button[aria-pressed="true"] { background: var(--sh-800); color: #fff }
.tools__count { color: var(--sh-350); font-size: 13.5px }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none }
.game { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 14px; align-content: start; padding: 12px; border-radius: 8px;
  background: var(--sh-900); border: 1px solid var(--sh-875) }
.game[hidden] { display: none }
.game__cover { grid-row: span 2 }
.game__cover img { width: 64px; aspect-ratio: 342 / 482; object-fit: cover; border-radius: 4px; background: var(--sh-875) }
/* Na wąskim ekranie okładka stoi obok tytułu, a cytat i przyciski biorą całą szerokość karty. */
.game__body { display: contents }
.game__body > * { grid-column: 2; min-width: 0 }
.game__body > .quote, .game__body > .game__btns, .game__body > .game__more { grid-column: 1 / -1 }
.game h3 { font-size: 17px; font-weight: 700 }
.game__meta { color: var(--sh-350); font-size: 13px }
.game .quote p { font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--sh-75) }
.game .quote footer { margin-top: 4px; font-size: 13px }
.game__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px }
.game__btns .btn { min-height: 44px; padding: 0 14px; font-size: 14px }
.game__more { font-size: 13.5px; color: var(--sh-350) }
.game__more a { display: inline-block; padding-block: 6px }
.empty { color: var(--sh-350); padding: 24px 0 }
.empty[hidden] { display: none }
@media (min-width: 520px) {
  .game { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 14px }
  .game__cover { grid-row: auto }
  .game__cover img { width: 112px }
  .game__body { display: grid; gap: 7px; align-content: start; min-width: 0 }
  .game__body > *, .game__body > .quote, .game__body > .game__btns, .game__body > .game__more { grid-column: auto }
}

/* --- też na GOG: krótka lista ----------------------------------------- */
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 8px 12px; margin: 0; padding: 0; list-style: none }
.mini { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px 8px 8px;
  border-radius: 8px; border: 1px solid var(--sh-875) }
.mini[hidden], .sec[hidden] { display: none }
.mini img { width: 56px; aspect-ratio: 342 / 482; object-fit: cover; border-radius: 4px; background: var(--sh-875) }
.mini__body { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere }
.mini h3 { font-size: 15px; font-weight: 700 }
.mini p { font-size: 13.5px; line-height: 1.4; color: var(--sh-350) }
.mini p a { display: inline-block; padding-block: 3px }

.mini .btn { padding: 0 12px; font-size: 13.5px }
@media (max-width: 420px) {
  .mini { grid-template-columns: 48px minmax(0, 1fr) }
  .mini img { width: 48px }
  .mini .btn { grid-column: 2; justify-self: start }
}

.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px }
.more[hidden], .more [hidden] { display: none }

/* --- FAQ ------------------------------------------------------------- */
.faq { display: grid; gap: 8px; max-width: 900px }
.faq details { background: var(--sh-900); border: 1px solid var(--sh-875); border-radius: 8px }
.faq summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; padding: 10px 16px; font: 700 16px/1.3 var(--head) }
.faq details p { padding: 0 16px 16px; color: var(--sh-75); max-width: 75ch }

/* --- stopka ------------------------------------------------------------ */
.foot { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--sh-800); padding-block: 28px max(28px, env(safe-area-inset-bottom)); color: var(--sh-350); font-size: 13.5px }
.foot__in { display: grid; gap: 14px }
.foot__in p { max-width: 100ch }
.foot a { color: var(--sh-75) }
.foot a:hover { color: #fff }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .post__img img { transition: none }
}
