@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/oxanium-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/oxanium-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pg-bg: #0e1116;
  --pg-bg-soft: #0b0e13;
  --pg-surface: #151a21;
  --pg-surface-2: #1b212a;
  --pg-surface-3: #232b36;
  --pg-border: #242c37;
  --pg-border-strong: #333d4b;
  --pg-text: #eef1f6;
  --pg-muted: #9aa4b2;
  --pg-muted-2: #7d8796;
  --pg-accent: #ff7a18;
  --pg-accent-hover: #ff8f3d;
  --pg-accent-ink: #111418;
  --pg-green: #3ddc84;
  --pg-red: #d92d20;
  --pg-yellow: #f5b942;
  --pg-radius: 8px;
  --pg-radius-sm: 6px;
  --pg-radius-xs: 4px;
  --pg-container: 1360px;
  --pg-header-h: 64px;
  --pg-font-display: "Oxanium", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pg-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pg-body {
  margin: 0;
  min-height: 100vh;
  background: var(--pg-bg);
  color: var(--pg-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.pg-locked { overflow: hidden; }

::selection { background: rgba(255, 122, 24, .3); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--pg-font-display);
  letter-spacing: -.01em;
}

a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

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

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

.pg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-block;
  vertical-align: -.2em;
  overflow: visible;
}

/* Header */

.pg-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(14, 17, 22, .97);
  border-bottom: 1px solid var(--pg-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pg-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .28); }
.pg-header__inner {
  height: var(--pg-header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}
.pg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
}
.pg-brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
  border-radius: var(--pg-radius-sm);
}
.pg-brand__text {
  font-family: var(--pg-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.pg-brand__text > span { color: var(--pg-accent); }

.pg-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 560px;
  min-width: 200px;
}
.pg-search > .icon {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--pg-muted-2);
  pointer-events: none;
}
.pg-search input {
  width: 100%;
  height: 40px;
  padding: 0 84px 0 38px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-surface);
  color: var(--pg-text);
  font-size: 13px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.pg-search input::placeholder { color: var(--pg-muted-2); }
.pg-search input:focus { border-color: var(--pg-accent); background: var(--pg-surface-2); }
.pg-search__submit {
  position: absolute;
  right: 4px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--pg-radius-xs);
  background: var(--pg-accent);
  color: var(--pg-accent-ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.pg-search__submit:hover { background: var(--pg-accent-hover); }

.pg-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.pg-nav a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--pg-radius-sm);
  color: var(--pg-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.pg-nav a:hover { background: var(--pg-surface-2); color: var(--pg-text); }
.pg-nav a.is-active { background: var(--pg-surface-2); color: #fff; }

.pg-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.pg-iconbtn {
  width: 36px;
  height: 36px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: transparent;
  color: var(--pg-text);
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s;
}
.pg-iconbtn:hover { background: var(--pg-surface-2); border-color: var(--pg-border-strong); }
.pg-iconbtn .icon { width: 18px; height: 18px; }

.pg-steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(102, 192, 244, .3);
  border-radius: var(--pg-radius-sm);
  background: #17212c;
  color: #e7f3ff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.pg-steam-btn .icon { width: 18px; height: 18px; color: #8fd3ff; }
.pg-steam-btn:hover { background: #1b2838; border-color: rgba(102, 192, 244, .6); }
.pg-steam-btn--wide {
  width: 100%;
  height: 46px;
  justify-content: center;
  margin: 8px 0 4px;
  font-size: 14px;
}

.pg-badge {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pg-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.pg-badge--dark { background: var(--pg-surface-3); color: var(--pg-text); }
.pg-notif { position: relative; }
.pg-notif__btn .pg-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  border: 2px solid var(--pg-bg);
}

.pg-usermenu { position: relative; }
.pg-usermenu__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 2px 8px 2px 2px;
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.pg-usermenu__btn:hover { background: var(--pg-surface-2); }
.pg-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pg-surface-3);
  font-size: 12px;
  font-weight: 700;
}
.pg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pg-usermenu__name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
}
.pg-chevron { width: 13px; height: 13px; color: var(--pg-muted-2); }

.pg-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 75;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--pg-surface);
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-shadow);
  overflow: hidden;
}
.pg-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pg-border);
}
.pg-popover__head strong { font-size: 13.5px; }
.pg-popover__foot {
  display: block;
  padding: 11px 14px;
  border-top: 1px solid var(--pg-border);
  color: var(--pg-accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.pg-popover__foot:hover { background: var(--pg-surface-2); }

.pg-notif__list { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.pg-notif__empty { padding: 24px 16px; text-align: center; color: var(--pg-muted-2); font-size: 12.5px; }
.pg-notif__item {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--pg-border);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pg-notif__item:hover { background: var(--pg-surface-2); }
.pg-notif__item.is-unread { background: rgba(255, 122, 24, .06); }
.pg-notif__item img { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: var(--pg-radius-xs); background: var(--pg-surface-3); }
.pg-notif__item > span { min-width: 0; }
.pg-notif__item strong { display: block; margin-bottom: 2px; font-size: 12.5px; line-height: 1.3; }
.pg-notif__item p,
.pg-notif__item time { margin: 0; color: var(--pg-muted); font-size: 11.5px; line-height: 1.4; }
.pg-notif__item time { display: block; margin-top: 4px; color: var(--pg-muted-2); font-size: 10.5px; }

.pg-usermenu__panel { width: 270px; padding: 6px; }
.pg-usermenu__head { padding: 10px 10px 12px; border-bottom: 1px solid var(--pg-border); margin-bottom: 4px; }
.pg-usermenu__head strong { display: block; font-size: 13.5px; }
.pg-usermenu__head small { display: block; margin-top: 2px; color: var(--pg-muted-2); font-size: 10.5px; }
.pg-usermenu__panel > a,
.pg-usermenu__panel > button,
.pg-usermenu__panel form button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--pg-radius-sm);
  background: none;
  color: var(--pg-text);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pg-usermenu__panel > a:hover,
.pg-usermenu__panel > button:hover,
.pg-usermenu__panel form button:hover { background: var(--pg-surface-2); }
.pg-usermenu__panel .icon { width: 15px; height: 15px; color: var(--pg-muted); }
.pg-usermenu__panel form { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--pg-border); }
.pg-usermenu__logout { color: #ff8f8f !important; }
.pg-usermenu__danger { color: #ffb4b4 !important; }

.pg-mobile-search { display: none; }

.pg-linkbtn {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--pg-accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pg-linkbtn:hover { color: var(--pg-accent-hover); }

/* Catalog layout */

.pg-catalog {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 20px 24px;
  align-items: start;
  padding-top: 28px;
  padding-bottom: 56px;
  scroll-margin-top: calc(var(--pg-header-h) + 12px);
}

.pg-page-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.pg-page-head h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}
.pg-page-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 7px 0 0;
  color: var(--pg-muted);
  font-size: 12.5px;
}
.pg-page-head__meta strong { color: var(--pg-text); font-weight: 700; }
.pg-page-head__intro {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--pg-muted);
  font-size: 12px;
  line-height: 1.6;
}
.pg-page-head__sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 3px;
  color: var(--pg-muted-2);
  font-size: 12px;
  white-space: nowrap;
}
.pg-page-head__sync .icon { width: 14px; height: 14px; }

/* Spotlight */

.pg-spotlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  grid-template-areas: "cover body buy";
  min-height: 150px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  overflow: hidden;
}
.pg-spotlight__cover {
  grid-area: cover;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--pg-border);
  background: var(--pg-surface-2);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}
.pg-spotlight__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.pg-spotlight__cover:hover img { transform: scale(1.03); }
.pg-spotlight__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 20px 24px;
}
.pg-spotlight__eyebrow {
  margin: 0;
  color: var(--pg-accent);
  font-family: var(--pg-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pg-spotlight h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
.pg-spotlight h2 a {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pg-spotlight h2 a:hover { color: var(--pg-accent); }
.pg-spotlight__meta { margin: 2px 0 0; color: var(--pg-muted); font-size: 12px; }
.pg-spotlight__rating { display: flex; align-items: center; gap: 6px; margin: 7px 0 0; color: var(--pg-muted); font-size: 11px; }
.pg-spotlight__rating .icon { width: 14px; height: 14px; color: var(--pg-yellow); fill: currentColor; }
.pg-spotlight__rating strong { color: #fff; font-family: var(--pg-font-display); font-size: 15px; }
.pg-spotlight__rating span { color: var(--pg-muted-2); }
.pg-spotlight__buy {
  grid-area: buy;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 20px 24px;
  border-left: 1px solid var(--pg-border);
}
.pg-spotlight__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.pg-spotlight__price strong { font-size: 26px; font-weight: 700; line-height: 1; }
.pg-spotlight__price s { color: var(--pg-muted-2); font-size: 13px; }
.pg-spotlight__save { color: var(--pg-green); font-size: 11.5px; font-weight: 600; }
.pg-spotlight__buy .pg-btn { width: 100%; min-height: 36px; margin-top: 2px; }

/* Filters */

.pg-filters {
  grid-column: 1;
  position: sticky;
  top: calc(var(--pg-header-h) + 16px);
  max-height: calc(100vh - var(--pg-header-h) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  scrollbar-width: thin;
  scrollbar-color: var(--pg-border-strong) transparent;
}
.pg-filters::-webkit-scrollbar { width: 5px; }
.pg-filters::-webkit-scrollbar-thumb { background: var(--pg-border-strong); border-radius: 99px; }
.pg-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pg-filters__head strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
}
.pg-filters__head .icon { width: 16px; height: 16px; color: var(--pg-accent); }
.pg-filters__close { display: none; }

.pg-filter-group {
  min-width: 0;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--pg-border);
}
.pg-filter-group legend {
  padding: 0;
  margin-bottom: 8px;
  color: var(--pg-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pg-check-list { display: grid; gap: 2px; }
.pg-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--pg-text);
  font-size: 12.5px;
  cursor: pointer;
}
.pg-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex: none;
  accent-color: var(--pg-accent);
}
.pg-check i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--store-color, var(--pg-muted-2));
}
.pg-check span { min-width: 0; }
.pg-check em {
  margin-left: auto;
  color: var(--pg-muted-2);
  font-style: normal;
  font-size: 11px;
}
.pg-check:hover { color: #fff; }

.pg-store--steam { --store-color: #66c0f4; }
.pg-store--epic { --store-color: #e8e8f2; }
.pg-store--gog { --store-color: #b084ff; }
.pg-store--fanatical { --store-color: #ff6b2c; }
.pg-store--muve { --store-color: #ffc247; }
.pg-store--gmg { --store-color: #3ddc97; }
.pg-store--gamesplanet { --store-color: #4aa3ff; }
.pg-store--humble { --store-color: #ff4d6d; }
.pg-store--nintendo { --store-color: #ff5a5f; }
.pg-store--xbox { --store-color: #65d46e; }
.pg-store--playstation { --store-color: #5aa9ff; }

.pg-select-wrap { position: relative; }
.pg-select-wrap select {
  width: 100%;
  height: 36px;
  padding: 0 32px 0 10px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-surface-2);
  color: var(--pg-text);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.pg-select-wrap select:focus { border-color: var(--pg-accent); }
.pg-select-wrap select option { background: var(--pg-surface); color: var(--pg-text); }
.pg-select-arrow {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 14px !important;
  height: 14px !important;
  transform: translateY(-50%);
  color: var(--pg-muted-2);
  pointer-events: none;
}

.pg-filter-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--pg-muted);
  font-size: 11.5px;
}
.pg-filter-value output { color: var(--pg-text); font-weight: 600; }
.pg-range {
  width: 100%;
  height: 4px;
  margin: 2px 0;
  accent-color: var(--pg-accent);
  cursor: pointer;
}
.pg-range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  color: var(--pg-muted-2);
  font-size: 10px;
}

.pg-radio-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.pg-radio { position: relative; min-width: 0; cursor: pointer; }
.pg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.pg-radio span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-xs);
  background: var(--pg-surface-2);
  color: var(--pg-muted);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.pg-radio:hover span { border-color: var(--pg-border-strong); color: var(--pg-text); }
.pg-radio input:checked + span {
  border-color: var(--pg-accent);
  background: var(--pg-accent);
  color: var(--pg-accent-ink);
}
.pg-radio input:focus-visible + span { outline: 2px solid var(--pg-accent); outline-offset: 2px; }

.pg-filters__actions {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--pg-border);
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--pg-radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pg-btn--primary {
  background: var(--pg-accent);
  color: var(--pg-accent-ink);
}
.pg-btn--primary:hover { background: var(--pg-accent-hover); }
.pg-btn--ghost {
  border-color: var(--pg-border-strong);
  background: transparent;
  color: var(--pg-text);
}
.pg-btn--ghost:hover { background: var(--pg-surface-2); }
.pg-btn--danger {
  border-color: rgba(217, 45, 32, .55);
  background: rgba(217, 45, 32, .14);
  color: #ffb4b4;
}
.pg-btn--danger:hover { background: rgba(217, 45, 32, .24); border-color: rgba(217, 45, 32, .8); }

/* Toolbar */

.pg-deals { grid-column: 2; min-width: 0; }
.pg-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 12px;
}
.pg-platform-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pg-platform-tabs::-webkit-scrollbar { display: none; }
.pg-platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--pg-radius-sm);
  background: transparent;
  color: var(--pg-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.pg-platform-tab .icon { width: 15px; height: 15px; }
.pg-platform-tab:hover { background: var(--pg-surface-2); color: var(--pg-text); }
.pg-platform-tab.is-active {
  border-color: var(--pg-border);
  background: var(--pg-surface-2);
  color: #fff;
}
.pg-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pg-toolbar__count {
  margin: 0 4px 0 0;
  color: var(--pg-muted);
  font-size: 12px;
  white-space: nowrap;
}
.pg-toolbar__count strong { color: var(--pg-text); font-weight: 700; }
.pg-select-wrap--sort select { width: 190px; }
.pg-filterbtn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-surface);
  color: var(--pg-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pg-filterbtn .icon { width: 15px; height: 15px; }

.pg-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.pg-active-filters:empty { display: none; }
.pg-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-xs);
  background: var(--pg-surface);
  color: var(--pg-text);
  font-size: 10.5px;
  font-weight: 600;
}
.pg-chip button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pg-muted);
  cursor: pointer;
}
.pg-chip button:hover { color: var(--pg-accent); }
.pg-chip .icon { width: 11px; height: 11px; }

/* Game cards */

.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.pg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  overflow: hidden;
  transition: border-color .15s;
}
.pg-card:hover { border-color: var(--pg-border-strong); }

.pg-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: var(--pg-surface-2);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}
.pg-card__cover img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.pg-card:hover .pg-card__cover img { transform: scale(1.03); }
.pg-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 13, 18, .4), transparent 48%);
  pointer-events: none;
}
.pg-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--pg-surface-2);
  color: var(--pg-muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pg-card__discount {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: var(--pg-radius-xs);
  background: var(--pg-red);
  color: #fff;
  font-family: var(--pg-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.pg-card__discount.is-free { background: var(--pg-green); color: #08110b; }

.pg-discount {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border-radius: var(--pg-radius-xs);
  background: var(--pg-red);
  color: #fff;
  font-family: var(--pg-font-display);
  font-size: 12px;
  font-weight: 700;
}
.pg-discount.is-free { background: var(--pg-green); color: #08110b; }

.pg-card__watch {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: var(--pg-radius-sm);
  border-color: rgba(255, 255, 255, .18);
  background: rgba(14, 17, 22, .78);
  color: #fff;
  opacity: 0;
  transition: opacity .15s, background .15s, border-color .15s;
}
.pg-card:hover .pg-card__watch,
.pg-card__watch:focus-visible,
.pg-card__watch.is-active { opacity: 1; }
.pg-card__watch:hover { background: rgba(14, 17, 22, .95); border-color: rgba(255, 255, 255, .36); }
.pg-card__watch.is-active {
  border-color: var(--pg-accent);
  background: var(--pg-accent);
  color: var(--pg-accent-ink);
}
.pg-card__watch.is-active .icon { fill: currentColor; }
.pg-card__watch .icon { width: 15px; height: 15px; }

.pg-card__rating {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--pg-radius-xs);
  background: rgba(10, 13, 18, .84);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(5px);
}
.pg-card__rating .icon { width: 12px; height: 12px; color: var(--pg-yellow); fill: currentColor; }
.pg-card__rating b { font: inherit; }
.pg-card__rating.is-good { color: var(--pg-green); }
.pg-card__rating.is-mixed { color: var(--pg-yellow); }
.pg-card__rating.is-bad { color: var(--pg-red); }

.pg-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 10px 12px 12px;
}
.pg-card__store {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--pg-muted);
  font-size: 10.5px;
  font-weight: 600;
}
.pg-card__store i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--store-color, var(--pg-muted-2));
}
.pg-card__store span { color: var(--pg-muted-2); }
.pg-card__store span::before { content: "·"; margin-right: 6px; }

.pg-card__title {
  margin: 0;
  min-height: 37px;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -.01em;
}
.pg-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pg-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.pg-card__title a:hover { color: var(--pg-accent); }

.pg-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}
.pg-price { font-family: var(--pg-font-display); font-size: 18px; font-weight: 700; line-height: 1.1; color: #fff; letter-spacing: -.01em; }
.pg-card.is-free .pg-price { color: var(--pg-green); }
.pg-price-old { color: var(--pg-muted-2); font-size: 11px; text-decoration: line-through; }
.pg-card__note { margin: 0; color: var(--pg-yellow); font-size: 10.5px; font-weight: 600; }

.pg-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin-top: auto;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  color: var(--pg-text);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.pg-card__cta:hover {
  border-color: var(--pg-accent);
  background: var(--pg-accent);
  color: var(--pg-accent-ink);
}

/* Empty, skeleton, loading */

.pg-skeletons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.pg-skeleton {
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  overflow: hidden;
}
.pg-skeleton__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(100deg, var(--pg-surface-2) 20%, var(--pg-surface-3) 40%, var(--pg-surface-2) 60%);
  background-size: 200% 100%;
  animation: pgShimmer 1.4s infinite;
}
.pg-skeleton__body { display: grid; gap: 8px; padding: 12px; }
.pg-skeleton__line { height: 9px; border-radius: 3px; background: var(--pg-surface-3); }
.pg-skeleton__line--short { width: 55%; }
.pg-skeleton__line--price { width: 42%; height: 16px; }

.pg-empty {
  padding: 48px 20px;
  border: 1px dashed var(--pg-border-strong);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  text-align: center;
}
.pg-empty h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.pg-empty p { max-width: 420px; margin: 0 auto 16px; color: var(--pg-muted); font-size: 13px; }
.pg-loadmore { display: flex; justify-content: center; padding: 24px 0 4px; }
.pg-loadmore .pg-btn { min-width: 200px; }
.pg-loadmore .icon { width: 15px; height: 15px; }
.pg-results__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 0;
  color: var(--pg-muted-2);
  font-size: 10.5px;
  text-align: center;
}
.pg-results__note .icon { width: 13px; height: 13px; }

/* Footer */

.pg-footer {
  border-top: 1px solid var(--pg-border);
  background: var(--pg-bg-soft);
  padding: 40px 0 20px;
}
.pg-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.pg-footer__brand p {
  max-width: 340px;
  margin: 12px 0 14px;
  color: var(--pg-muted);
  font-size: 12px;
  line-height: 1.6;
}
.pg-footer__col { display: flex; flex-direction: column; gap: 7px; }
.pg-footer__col strong {
  margin-bottom: 2px;
  color: var(--pg-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pg-footer__col a { color: var(--pg-muted); font-size: 12px; text-decoration: none; }
.pg-footer__col a:hover { color: var(--pg-accent); }
.pg-status { display: flex; align-items: flex-start; gap: 7px; color: var(--pg-muted); font-size: 11.5px; }
.pg-status .icon { width: 13px; height: 13px; margin-top: 2px; color: var(--pg-muted-2); }
.pg-status__dot {
  width: 7px;
  height: 7px;
  flex: none;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--pg-green);
}
.pg-install-footer { width: fit-content; min-height: 34px; font-size: 11.5px; }
.pg-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--pg-border);
  color: var(--pg-muted-2);
  font-size: 10.5px;
}
.pg-footer__bottom a { color: var(--pg-muted); text-decoration: none; }
.pg-footer__bottom a:hover { color: var(--pg-text); }
.pg-footer__legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }

/* Mobile navigation and utilities */

.pg-bottomnav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(14, 17, 22, .97);
  border-top: 1px solid var(--pg-border);
  backdrop-filter: blur(10px);
}
.pg-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  border-radius: var(--pg-radius-sm);
  color: var(--pg-muted-2);
  font-size: 8.5px;
  font-weight: 600;
  text-decoration: none;
}
.pg-bottomnav a .icon { width: 19px; height: 19px; }
.pg-bottomnav a.is-active { background: var(--pg-surface-2); color: var(--pg-accent); }

.pg-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 38px;
  height: 38px;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-surface);
  color: var(--pg-text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.pg-to-top:hover { border-color: var(--pg-accent); color: var(--pg-accent); }

.pg-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(4, 6, 10, .68);
}

/* Modals */

.pg-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 18px;
  overflow-y: auto;
  background: rgba(4, 6, 10, .78);
}
.pg-modal__dialog {
  position: relative;
  width: min(940px, 100%);
  margin: auto;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  box-shadow: var(--pg-shadow);
  overflow: hidden;
}
.pg-modal--sm .pg-modal__dialog { width: min(460px, 100%); }
.pg-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(14, 17, 22, .8);
}
.pg-modal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 300px;
  color: var(--pg-muted);
  font-size: 13px;
}
.pg-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid var(--pg-border-strong);
  border-top-color: var(--pg-accent);
  border-radius: 50%;
  animation: pgSpin .8s linear infinite;
}

/* Game page (SEO) */

.pg-game { padding-top: 22px; padding-bottom: 52px; }
.pg-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--pg-muted-2);
  font-size: 11px;
}
.pg-breadcrumbs a { color: var(--pg-muted); text-decoration: none; }
.pg-breadcrumbs a:hover { color: var(--pg-accent); }
.pg-breadcrumbs [aria-current="page"] { color: var(--pg-text); }

.pg-game__hero {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
}
.pg-game__cover {
  position: relative;
  align-self: start;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--pg-radius-sm);
  background: var(--pg-surface-2);
}
.pg-game__cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pg-game__discount {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: var(--pg-radius-xs);
  background: var(--pg-red);
  color: #fff;
  font-family: var(--pg-font-display);
  font-size: 12px;
  font-weight: 700;
}
.pg-game__discount.is-free { background: var(--pg-green); color: #08110b; }
.pg-game__info { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.pg-game__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.pg-game__info h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}
.pg-game__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  color: var(--pg-muted);
  font-size: 11.5px;
}
.pg-game__meta span + span::before { content: "·"; margin-right: 6px; color: var(--pg-muted-2); }
.pg-game__pricebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface-2);
}
.pg-game__pricebox small { display: block; color: var(--pg-muted); font-size: 10px; }
.pg-game__pricebox strong { display: inline-block; margin-top: 2px; font-family: var(--pg-font-display); font-size: 28px; line-height: 1; color: #fff; }
.pg-game__pricebox s { margin-left: 8px; color: var(--pg-muted-2); font-size: 11px; }
.pg-game__save {
  flex: none;
  padding: 6px 9px;
  border-radius: var(--pg-radius-xs);
  background: var(--pg-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.pg-game__notice {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--pg-yellow);
  border-radius: var(--pg-radius-xs);
  background: rgba(245, 185, 66, .08);
  color: var(--pg-yellow);
  font-size: 11.5px;
  line-height: 1.55;
}
.pg-game__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-game__actions .pg-btn { min-height: 42px; }
.pg-game__disclaimer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--pg-muted-2);
  font-size: 10px;
}
.pg-game__disclaimer .icon { width: 12px; height: 12px; }
.pg-game__content { margin-top: 18px; }
.pg-game__section {
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
}
.pg-game__section h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; }
.pg-game__section p { margin: 0 0 10px; color: var(--pg-muted); font-size: 12.5px; line-height: 1.75; }
.pg-game__section .pg-grid { margin-top: 12px; }
.pg-game__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--pg-border);
}
.pg-game__facts dt { color: var(--pg-muted-2); font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pg-game__facts dd { margin: 3px 0 0; color: var(--pg-text); font-size: 11.5px; }

/* Media gry: zwiastun i zrzuty ekranu */
.pg-trailer {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0 0 14px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: #05070a;
}
.pg-trailer__poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-trailer__poster--empty {
  background:
    radial-gradient(circle at 25% 20%, rgba(132, 102, 255, .28), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(52, 211, 238, .2), transparent 50%),
    #0a0e14;
}
.pg-trailer__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: linear-gradient(to top, rgba(4, 7, 11, .62), rgba(4, 7, 11, .12));
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.pg-trailer__play .icon {
  width: 52px;
  height: 52px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(10, 14, 20, .78);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.pg-trailer__play span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 14, 20, .72);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pg-trailer__play:hover .icon,
.pg-trailer__play:focus-visible .icon { transform: scale(1.06); background: var(--pg-accent); color: #08110b; }
.pg-trailer__play:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: -3px; }
.pg-trailer__frame { position: absolute; inset: 0; z-index: 1; }
.pg-trailer__frame video,
.pg-trailer__frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.pg-trailer__error {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(245, 185, 66, .35);
  border-radius: var(--pg-radius-xs);
  background: rgba(10, 14, 20, .92);
  color: var(--pg-yellow);
  font-size: 11px;
  line-height: 1.5;
}
.pg-trailer__error a { color: var(--pg-accent); }
.pg-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.pg-shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-xs);
  background: var(--pg-surface-2);
}
.pg-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.pg-shot:hover img { transform: scale(1.03); }
.pg-shot:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 2px; }
html.pg-lightbox-open,
html.pg-lightbox-open body { overflow: hidden; }
.pg-lightbox {
  width: min(1120px, 94vw);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: #080b10;
  color: var(--pg-text);
}
.pg-lightbox::backdrop { background: rgba(2, 4, 8, .9); }
.pg-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pg-border);
}
.pg-lightbox__count { color: var(--pg-muted); font-size: 11px; }
.pg-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--pg-border);
  border-radius: 50%;
  background: var(--pg-surface-2);
  color: var(--pg-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.pg-lightbox__close:hover { color: var(--pg-accent); }
.pg-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(94vh - 49px);
  overflow: hidden;
}
.pg-lightbox__stage img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 49px);
  object-fit: contain;
}
.pg-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 52px;
  transform: translateY(-50%);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-xs);
  background: rgba(10, 14, 20, .82);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.pg-lightbox__nav:hover { color: var(--pg-accent); }
.pg-lightbox__nav--prev { left: 10px; }
.pg-lightbox__nav--next { right: 10px; }
.pg-chart.pg-chart--page { height: 160px; margin-top: 5px; }
.pg-history-wrap { margin-top: 12px; overflow-x: auto; }
.pg-history { width: 100%; border-collapse: collapse; font-size: 11px; }
.pg-history th,
.pg-history td { padding: 7px 9px; border-bottom: 1px solid var(--pg-border); text-align: left; white-space: nowrap; }
.pg-history th { color: var(--pg-muted-2); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; }
.pg-history td { color: var(--pg-muted); }
.pg-review { padding: 12px 14px; border: 1px solid var(--pg-border); border-radius: var(--pg-radius-sm); background: var(--pg-surface-2); }
.pg-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pg-review header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pg-review header strong { font-size: 11px; }
.pg-review header span { color: var(--pg-yellow); font-size: 10.5px; font-weight: 700; }
.pg-review h3 { margin: 6px 0 4px; font-size: 12px; }
.pg-review p { margin: 0 0 8px; color: var(--pg-muted); font-size: 11px; line-height: 1.6; }
.pg-review footer { color: var(--pg-muted-2); font-size: 9.5px; }
.pg-notfound { max-width: 620px; margin: 76px auto; text-align: center; }
.pg-notfound__code { margin: 0; color: var(--pg-accent); font-family: var(--pg-font-display); font-size: 78px; font-weight: 700; line-height: 1; }
.pg-notfound h1 { margin: 8px 0 8px; font-size: 26px; }
.pg-notfound p { margin: 0 0 20px; color: var(--pg-muted); font-size: 13px; line-height: 1.6; }

/* Game detail */

.pg-detail { display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.pg-detail__media { position: relative; min-height: 100%; background: var(--pg-surface-2); }
.pg-detail__media img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.pg-detail__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(21, 26, 33, .75));
}
.pg-detail__badges { position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; gap: 6px; }
.pg-detail__body { min-width: 0; padding: 28px 28px 24px; }
.pg-detail__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}
.pg-detail h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}
.pg-detail__genres { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.pg-detail__genres span {
  padding: 3px 7px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-xs);
  background: var(--pg-surface-2);
  color: var(--pg-muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pg-detail__desc { margin: 0 0 16px; color: var(--pg-muted); font-size: 12.5px; line-height: 1.65; }

.pg-store {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 7px;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-xs);
  background: var(--pg-surface-2);
  color: var(--pg-text);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.pg-store i { width: 6px; height: 6px; border-radius: 50%; background: var(--store-color, var(--pg-muted-2)); }
.pg-platform-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-xs);
  background: var(--pg-surface-2);
  color: var(--platform-color, var(--pg-muted));
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pg-genre { color: var(--pg-muted); font-size: 10px; font-weight: 600; }
.pg-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--pg-yellow); font-size: 11px; font-weight: 700; }
.pg-rating .icon { width: 13px; height: 13px; }
.pg-rating.is-good { color: var(--pg-green); }
.pg-rating.is-mixed { color: var(--pg-yellow); }
.pg-rating.is-bad { color: var(--pg-red); }

.pg-score__main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface-2);
}
.pg-score__value {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  flex: none;
  color: var(--pg-text);
  font-family: var(--pg-font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.pg-score__value small { color: var(--pg-muted-2); font-family: inherit; font-size: 11px; font-weight: 600; }
.pg-score__value.is-good { color: var(--pg-green); }
.pg-score__value.is-mixed { color: var(--pg-yellow); }
.pg-score__value.is-bad { color: var(--pg-red); }
.pg-score__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-score__meta strong { color: var(--pg-text); font-size: 12px; }
.pg-score__meta span { color: var(--pg-muted); font-size: 10.5px; }
.pg-score__meta .pg-linkbtn { align-self: flex-start; padding: 0; font-size: 10.5px; }
.pg-score__rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; margin-top: 8px; }
.pg-score__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--pg-border);
  font-size: 10.5px;
}
.pg-score__row span { color: var(--pg-muted); }
.pg-score__row strong { color: var(--pg-text); white-space: nowrap; }
.pg-score--empty p { margin: 0; color: var(--pg-muted); font-size: 11.5px; }

.pg-detail__pricebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface-2);
}
.pg-detail__pricebox strong { display: block; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.pg-detail__pricebox small { display: block; margin-top: 5px; color: var(--pg-muted); font-size: 10.5px; }
.pg-detail__pricebox small s { color: var(--pg-muted-2); }
.pg-detail__discount {
  padding: 6px 9px;
  border-radius: var(--pg-radius-xs);
  background: var(--pg-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.pg-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pg-detail__actions .pg-btn { flex: 1 1 auto; min-height: 40px; font-size: 12.5px; }
.pg-detail__section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pg-border); }
.pg-detail__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pg-detail__section-head strong {
  color: var(--pg-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pg-detail__section-head span { color: var(--pg-muted-2); font-size: 10.5px; }

.pg-chart { width: 100%; height: 90px; overflow: visible; }
.pg-chart__grid { stroke: var(--pg-border); stroke-width: 1; }
.pg-chart__line { fill: none; stroke: url(#pgChartGrad); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pg-chart__area { fill: url(#pgChartArea); opacity: .35; }
.pg-chart__dot { fill: var(--pg-accent); stroke: var(--pg-surface); stroke-width: 2; }
.pg-chart-labels { display: flex; justify-content: space-between; margin-top: 4px; color: var(--pg-muted-2); font-size: 9px; }

.pg-detail__watch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface-2);
}
.pg-detail__watch-info { display: flex; align-items: center; gap: 8px; color: var(--pg-muted); font-size: 11.5px; }
.pg-detail__watch-info .icon { color: var(--pg-accent); }
.pg-detail__target { display: flex; align-items: center; gap: 6px; }
.pg-detail__target input {
  width: 90px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-bg);
  color: var(--pg-text);
  font-size: 11.5px;
  outline: none;
}
.pg-detail__target input:focus { border-color: var(--pg-accent); }
.pg-detail__target .pg-btn { min-height: 34px; padding: 0 10px; font-size: 11px; }
.pg-detail__related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pg-mini {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-surface-2);
  text-decoration: none;
}
.pg-mini:hover { border-color: var(--pg-border-strong); background: var(--pg-surface-3); }
.pg-mini img { width: 52px; height: 40px; flex: none; object-fit: cover; border-radius: var(--pg-radius-xs); }
.pg-mini > span { display: block; min-width: 0; }
.pg-mini strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.3;
}
.pg-mini > span > span { display: block; margin-top: 3px; color: var(--pg-green); font-size: 10.5px; font-weight: 700; }

.pg-loginprompt { padding: 34px 28px 26px; text-align: center; }
.pg-loginprompt__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(102, 192, 244, .3);
  border-radius: var(--pg-radius);
  background: #17212c;
  color: #8fd3ff;
}
.pg-loginprompt__icon .icon { width: 28px; height: 28px; }
.pg-loginprompt h2 { margin: 0 0 7px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.pg-loginprompt p { margin: 0 0 16px; color: var(--pg-muted); font-size: 12.5px; line-height: 1.6; }
.pg-loginprompt .pg-linkbtn { display: block; width: 100%; margin-top: 8px; }
.pg-loginprompt small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
  color: var(--pg-muted-2);
  font-size: 9.5px;
}
.pg-loginprompt small a { color: var(--pg-accent); }
.pg-loginprompt small .icon { width: 12px; height: 12px; }

/* Legal pages */

.pg-legal {
  max-width: 920px;
  padding-top: 30px;
  padding-bottom: 56px;
}
.pg-legal__head h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.pg-legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 22px;
  color: var(--pg-muted-2);
  font-size: 11.5px;
}
.pg-legal__meta strong { color: var(--pg-muted); font-weight: 600; }
.pg-legal__intro {
  margin: 0 0 22px;
  color: var(--pg-muted);
  font-size: 13.5px;
  line-height: 1.7;
}
.pg-legal__toc {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
}
.pg-legal__toc strong {
  display: block;
  margin-bottom: 8px;
  color: var(--pg-text);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pg-legal__toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}
.pg-legal__toc li { margin: 3px 0; color: var(--pg-muted); font-size: 12px; }
.pg-legal__toc a { color: var(--pg-muted); text-decoration: none; }
.pg-legal__toc a:hover { color: var(--pg-accent); }
.pg-legal h2 {
  margin: 34px 0 10px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.pg-legal h3 {
  margin: 22px 0 8px;
  font-size: 15px;
  line-height: 1.4;
}
.pg-legal p,
.pg-legal li {
  color: var(--pg-muted);
  font-size: 13.5px;
  line-height: 1.75;
}
.pg-legal p { margin: 0 0 12px; }
.pg-legal ul,
.pg-legal ol { margin: 0 0 14px; padding-left: 22px; }
.pg-legal li { margin: 4px 0; }
.pg-legal a { color: var(--pg-accent); text-underline-offset: 2px; }
.pg-legal a:hover { color: var(--pg-accent-hover); }
.pg-legal strong { color: var(--pg-text); }
.pg-legal__box {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 122, 24, .28);
  border-radius: var(--pg-radius);
  background: rgba(255, 122, 24, .06);
}
.pg-legal__box p:last-child { margin-bottom: 0; }
.pg-legal__table {
  margin: 16px 0 20px;
  overflow-x: auto;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
}
.pg-legal table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 12px;
}
.pg-legal th,
.pg-legal td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--pg-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.pg-legal th {
  background: var(--pg-surface-2);
  color: var(--pg-text);
  font-weight: 700;
}
.pg-legal td { color: var(--pg-muted); }
.pg-legal tr:last-child td { border-bottom: 0; }
.pg-legal code {
  padding: 1px 5px;
  border-radius: var(--pg-radius-xs);
  background: var(--pg-surface-3);
  color: var(--pg-text);
  font-size: 11.5px;
}
.pg-legal__consent {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
}
.pg-legal__consent h2 { margin-top: 0; }
.pg-legal__consent-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--pg-surface-3);
  color: var(--pg-muted);
  font-size: 11.5px;
  font-weight: 600;
}
.pg-legal__consent-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  padding: 11px 12px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-bg-soft);
}
.pg-legal__consent-option input { margin-top: 3px; accent-color: var(--pg-accent); }
.pg-legal__consent-option strong { display: block; color: var(--pg-text); font-size: 12.5px; }
.pg-legal__consent-option small { display: block; margin-top: 2px; color: var(--pg-muted-2); font-size: 11px; line-height: 1.5; }
.pg-legal__consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pg-legal__fineprint { margin-top: 14px; margin-bottom: 0; font-size: 11.5px; color: var(--pg-muted-2); }

/* Cookie banner */

.pg-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 105;
  border-top: 1px solid var(--pg-border-strong);
  background: rgba(21, 26, 33, .985);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: 82vh;
  overflow-y: auto;
}
.pg-cookie__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.pg-cookie__copy { max-width: 760px; }
.pg-cookie__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  color: var(--pg-accent);
  font-family: var(--pg-font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pg-cookie__eyebrow .icon { width: 13px; height: 13px; }
.pg-cookie h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
}
.pg-cookie__copy > p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 12px;
  line-height: 1.6;
}
.pg-cookie__copy a { color: var(--pg-accent); }
.pg-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
}
.pg-cookie__actions form { margin: 0; }
.pg-cookie__details { margin-top: 9px; }
.pg-cookie__details summary {
  width: fit-content;
  color: var(--pg-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.pg-cookie__details summary:hover { color: var(--pg-text); }
.pg-cookie__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-bg-soft);
}
.pg-cookie__option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--pg-muted);
  font-size: 11.5px;
  cursor: pointer;
}
.pg-cookie__option input { margin-top: 3px; accent-color: var(--pg-accent); }
.pg-cookie__option strong { display: block; color: var(--pg-text); font-size: 11.5px; }
.pg-cookie__option small { display: block; color: var(--pg-muted-2); font-size: 10.5px; }
.pg-cookie__option--locked { cursor: default; }
body:has(.pg-cookie) { padding-bottom: 150px; }
body:has(.pg-cookie) .pg-toasts { bottom: 190px; }
body:has(.pg-cookie) .pg-offline { bottom: 190px; }

/* Account deletion */

.pg-danger {
  padding: 34px 28px 28px;
  text-align: center;
}
.pg-danger__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(217, 45, 32, .14);
  color: #ff9c9c;
}
.pg-danger__icon .icon { width: 23px; height: 23px; }
.pg-danger h2 { margin: 0 0 8px; font-size: 21px; }
.pg-danger p { margin: 0 auto 20px; max-width: 360px; color: var(--pg-muted); font-size: 12.5px; line-height: 1.6; }
.pg-danger__actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* Toasts and offline */

.pg-toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
}
.pg-toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--pg-border-strong);
  border-radius: var(--pg-radius-sm);
  background: var(--pg-surface);
  box-shadow: var(--pg-shadow);
  color: var(--pg-text);
  font-size: 12px;
  line-height: 1.45;
}
.pg-toast .icon { width: 16px; height: 16px; margin-top: 1px; flex: none; color: var(--pg-green); }
.pg-toast--error .icon { color: #ff8f8f; }
.pg-toast--info .icon { color: var(--pg-accent); }
.pg-toast.is-out { opacity: 0; transform: translateX(12px); transition: opacity .18s, transform .18s; }
.pg-offline {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(217, 45, 32, .45);
  border-radius: var(--pg-radius-sm);
  background: #2a1616;
  color: #ffc2c2;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}
.pg-offline .icon { width: 14px; height: 14px; }

/* Motion */

@keyframes pgSpin { to { transform: rotate(360deg); } }
@keyframes pgShimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */

@media (max-width: 1180px) {
  .pg-nav { display: none; }
}

@media (max-width: 1024px) {
  .pg-catalog {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px 20px;
  }
  .pg-spotlight { grid-template-columns: 180px minmax(0, 1fr) 220px; }
  .pg-footer__inner { grid-template-columns: 1.6fr 1fr 1fr; }
  .pg-footer__col:last-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 900px) {
  :root { --pg-header-h: 60px; }
  body.pg-body { padding-bottom: 66px; }

  .pg-header__inner { gap: 10px; }
  .pg-catalog {
    display: block;
    padding-top: 20px;
    padding-bottom: 40px;
  }
  .pg-page-head { margin-bottom: 16px; }
  .pg-spotlight { margin-bottom: 16px; }
  .pg-deals { min-width: 0; }
  .pg-game__hero { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .pg-game__cover { max-width: 520px; }
  .pg-game__info h1 { font-size: 26px; }
  .pg-reviews { grid-template-columns: 1fr; }

  .pg-filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 90;
    max-height: 88vh;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
    transform: translateY(105%);
    transition: transform .25s ease;
  }
  .pg-filters.is-open { transform: translateY(0); }
  .pg-filters__head {
    position: sticky;
    top: -16px;
    z-index: 2;
    margin: -16px -16px 8px;
    padding: 14px 16px 12px;
    background: var(--pg-surface);
    border-bottom: 1px solid var(--pg-border);
  }
  .pg-filters__close { display: inline-flex; }
  .pg-filters__actions {
    position: sticky;
    bottom: -16px;
    z-index: 2;
    margin: 16px -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--pg-surface);
    border-top: 1px solid var(--pg-border);
  }
  .pg-filterbtn { display: inline-flex; }
  .pg-bottomnav { display: flex; }
  .pg-to-top { bottom: 78px; }
  .pg-toasts { bottom: 78px; }
  .pg-offline { bottom: 72px; }
  .pg-select-wrap--sort select { width: 170px; }

  .pg-detail { grid-template-columns: 1fr; }
  .pg-detail__media { min-height: 0; max-height: 280px; overflow: hidden; }
  .pg-detail__media img { min-height: 0; height: 280px; }
  .pg-detail__media::after { background: linear-gradient(to top, var(--pg-surface), transparent 55%); }
  .pg-detail__body { padding: 22px 18px; }
  .pg-modal { padding: 12px; }
  .pg-score__value { font-size: 28px; }
  .pg-score__rows { grid-template-columns: 1fr; }
  .pg-score__main { gap: 10px; padding: 10px 12px; }

  .pg-footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pg-footer__brand { grid-column: 1 / -1; }
  .pg-footer__col:last-child { grid-column: auto; flex-direction: column; gap: 7px; }
  .pg-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .pg-header__inner { gap: 8px; }
  .pg-brand__mark { width: 32px; height: 32px; }
  .pg-brand__text { font-size: 17px; }
  .pg-header__actions { margin-left: auto; }
  .pg-mobile-search { display: inline-flex; }
  .pg-usermenu__name,
  .pg-chevron,
  .pg-install-btn { display: none; }
  .pg-usermenu__btn { padding: 2px; border: 0; background: none; }
  .pg-steam-btn span { display: none; }
  .pg-steam-btn { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .pg-steam-btn--wide span { display: inline; }
  .pg-steam-btn--wide { width: 100%; height: 46px; }

  .pg-search {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 2;
    max-width: none;
    min-width: 0;
    padding: 10px 16px;
    border-bottom: 1px solid var(--pg-border);
    background: var(--pg-bg);
  }
  .pg-header.is-search-open .pg-search { display: flex; }
  .pg-search__submit { height: 30px; }

  .pg-popover {
    position: fixed;
    top: calc(var(--pg-header-h) + 8px);
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
  .pg-usermenu__panel { width: auto; }
  .pg-notif__list { max-height: 52vh; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }

  .pg-page-head { display: block; }
  .pg-page-head h1 { font-size: 24px; }
  .pg-page-head__meta { gap: 4px 12px; font-size: 12px; }
  .pg-page-head__sync { margin-top: 8px; }
  .pg-game { padding-top: 14px; }
  .pg-game__hero { padding: 13px; }
  .pg-game__info h1 { font-size: 23px; }
  .pg-game__section { padding: 16px; }
  .pg-game__pricebox strong { font-size: 24px; }

  .pg-spotlight {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
      "cover body"
      "cover buy";
    min-height: 112px;
  }
  .pg-spotlight__cover { min-height: 112px; }
  .pg-spotlight__body { gap: 3px; padding: 12px 12px 3px; }
  .pg-spotlight__eyebrow { font-size: 9.5px; }
  .pg-spotlight h2 { font-size: 15px; }
  .pg-spotlight__meta { font-size: 10px; }
  .pg-spotlight__buy {
    align-items: flex-start;
    gap: 3px;
    padding: 3px 12px 12px;
    border-left: 0;
  }
  .pg-spotlight__price { gap: 6px; }
  .pg-spotlight__price strong { font-size: 19px; }
  .pg-spotlight__price s { font-size: 11px; }
  .pg-spotlight__save { font-size: 10px; }
  .pg-spotlight__buy .pg-btn { width: auto; min-height: 30px; margin-top: 2px; padding: 0 10px; font-size: 11px; }

  .pg-toolbar { gap: 8px; }
  .pg-toolbar__count { display: none; }
  .pg-toolbar__right { gap: 6px; }
  .pg-select-wrap--sort select { width: 154px; font-size: 11px; }
  .pg-platform-tab { padding: 0 8px; font-size: 11.5px; }
  .pg-filterbtn { padding: 0 9px; }

  .pg-grid,
  .pg-skeletons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pg-card__body { padding: 8px 9px 9px; gap: 5px; }
  .pg-card__title { font-size: 12.5px; min-height: 34px; }
  .pg-price { font-size: 17px; }
  .pg-price-old { font-size: 10px; }
  .pg-card__store { font-size: 9.5px; }
  .pg-card__discount { top: 6px; left: 6px; min-height: 21px; padding: 0 5px; font-size: 10.5px; }
  .pg-card__watch { top: 6px; right: 6px; width: 28px; height: 28px; }
  .pg-card__cta { height: 30px; font-size: 10.5px; }

  .pg-detail__related { grid-template-columns: 1fr; }
  .pg-detail__actions .pg-btn { flex: 1 1 100%; }
  .pg-footer__inner { grid-template-columns: 1fr; }
  .pg-footer__col:last-child { grid-column: auto; }
  .pg-toasts { left: 10px; right: 10px; bottom: 74px; max-width: none; }
}

@media (max-width: 380px) {
  .pg-brand__text { font-size: 16px; }
  .pg-card__title { font-size: 12px; }
  .pg-price { font-size: 16px; }
}

@media (hover: none) {
  .pg-card__watch { opacity: 1; }
}

/* Cookies and legal pages */

@media (max-width: 900px) {
  .pg-cookie {
    bottom: calc(62px + env(safe-area-inset-bottom));
    max-height: 68vh;
    overflow-y: auto;
  }
  .pg-cookie__inner {
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .pg-cookie__actions {
    justify-content: flex-start;
    width: 100%;
  }
  body:has(.pg-cookie) { padding-bottom: 320px; }
  body:has(.pg-cookie) .pg-toasts { bottom: 300px; }
  body:has(.pg-cookie) .pg-offline { bottom: 300px; }
  .pg-legal__toc ol { columns: 1; }
}

@media (max-width: 620px) {
  .pg-legal__head h1 { font-size: 24px; }
  .pg-legal p,
  .pg-legal li { font-size: 13px; }
  .pg-cookie h2 { font-size: 16px; }
  .pg-cookie__actions .pg-btn { flex: 1 1 100%; }
  .pg-cookie__form .pg-btn { width: 100%; }
  .pg-danger { padding: 30px 20px 22px; }
}


/* Media gry — responsywność */
@media (max-width: 900px) {
  .pg-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .pg-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pg-trailer { margin-bottom: 10px; }
  .pg-trailer__play .icon { width: 46px; height: 46px; padding: 12px; }
  .pg-trailer__play span { font-size: 9.5px; }
  .pg-lightbox__nav { width: 34px; height: 44px; font-size: 22px; }
  .pg-lightbox__nav--prev { left: 6px; }
  .pg-lightbox__nav--next { right: 6px; }
}

/* Porównanie ofert w sklepach */
.pg-card__offers {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(11, 14, 19, .72);
  border: 1px solid var(--pg-border-strong);
  color: var(--pg-text);
  font: 600 9.5px/1.2 var(--pg-font-display);
  letter-spacing: .02em;
  white-space: nowrap;
}
.pg-card__cover { position: relative; }
.pg-offers__list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.pg-offer {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  background: var(--pg-surface);
  color: var(--pg-text);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.pg-offer:hover {
  border-color: var(--pg-border-strong);
  background: var(--pg-surface-2);
  transform: translateY(-1px);
}
.pg-offer.is-best {
  border-color: rgba(61, 220, 132, .55);
  background: linear-gradient(90deg, rgba(61, 220, 132, .10), transparent 45%), var(--pg-surface);
}
.pg-offer__store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font: 600 13px/1.2 var(--pg-font-display);
}
.pg-offer__store i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.pg-offer__platform {
  color: var(--pg-muted);
  font-size: 12px;
  white-space: nowrap;
}
.pg-offer__price {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.pg-offer__price s { color: var(--pg-muted-2); font-size: 12px; }
.pg-offer__price strong { font: 700 16px/1 var(--pg-font-display); }
.pg-offer__badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 122, 24, .15);
  color: var(--pg-accent);
  font: 700 11px/1.4 var(--pg-font-display);
  font-style: normal;
}
.pg-offer__best {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(61, 220, 132, .16);
  color: var(--pg-green);
  font: 700 10px/1.4 var(--pg-font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pg-offer__go { color: var(--pg-muted); display: inline-flex; }
@media (max-width: 720px) {
  .pg-offer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
  }
  .pg-offer__platform { grid-column: 1; }
  .pg-offer__best { grid-column: 1; justify-self: start; }
  .pg-offer__go { display: none; }
  .pg-offer__price { grid-column: 2; grid-row: 1 / span 2; }
}
.pg-detail__offers { margin: 14px 0 4px; }
.pg-detail__offers .pg-detail__section-head { margin-bottom: 8px; }
.pg-detail__offers .pg-offer { grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto; }
.pg-detail__offers .pg-offer__go { display: none; }
@media (max-width: 620px) {
  .pg-detail__offers .pg-offer { grid-template-columns: minmax(0, 1fr) auto; }
  .pg-detail__offers .pg-offer__platform { grid-column: 1; }
}
