:root {
  --pgs-bg: #0f1117;
  --pgs-bg-soft: #121620;
  --pgs-card: #181b24;
  --pgs-card-2: #1d2230;
  --pgs-border: rgba(255, 255, 255, 0.08);
  --pgs-text: #ffffff;
  --pgs-muted: #9ca3af;
  --pgs-soft: #cbd5e1;
  --pgs-accent: #7c5cff;
  --pgs-accent-2: #38bdf8;
  --pgs-focus: #a78bfa;
  --pgs-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, #10131b 0%, var(--pgs-bg) 22rem);
  color: var(--pgs-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

img,
iframe {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(167, 139, 250, 0.7);
  outline-offset: 3px;
}

.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;
}

.pgs-shell {
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
}

.pgs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--pgs-border);
  background: rgba(15, 17, 23, 0.88);
  backdrop-filter: blur(18px);
}

.pgs-header-inner {
  width: min(100% - 32px, 1240px);
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.pgs-logo,
.pgs-footer-logo {
  color: var(--pgs-text);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.pgs-logo::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 999px;
  background: var(--pgs-accent);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.8);
  vertical-align: 7px;
}

.pgs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgs-nav a,
.pgs-filter-row a,
.pgs-category-grid a,
.pgs-category-strip a {
  color: var(--pgs-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pgs-nav a {
  padding: 8px 12px;
  font-size: 0.94rem;
}

.pgs-nav a:hover,
.pgs-filter-row a:hover,
.pgs-category-grid a:hover,
.pgs-category-strip a:hover {
  color: var(--pgs-text);
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.12);
}

.pgs-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--pgs-border);
  border-radius: 10px;
  background: var(--pgs-card);
  color: var(--pgs-text);
}

.pgs-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--pgs-text);
}

.pgs-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgs-search input {
  width: min(26vw, 280px);
  height: 42px;
  border: 1px solid var(--pgs-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pgs-text);
  padding: 0 16px;
}

.pgs-search input::placeholder {
  color: var(--pgs-muted);
}

.pgs-search button,
.pgs-btn {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--pgs-text);
  cursor: pointer;
  font-weight: 700;
}

.pgs-search button {
  padding: 0 16px;
  background: var(--pgs-accent);
}

.pgs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
}

.pgs-btn-primary {
  background: linear-gradient(135deg, var(--pgs-accent), #5f7cff);
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.26);
}

.pgs-btn-secondary {
  border: 1px solid var(--pgs-border);
  background: rgba(255, 255, 255, 0.06);
}

.pgs-hero {
  padding: 42px 0 24px;
}

.pgs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 28px;
}

.pgs-kicker,
.pgs-section-label {
  margin: 0 0 8px;
  color: var(--pgs-accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pgs-hero h1,
.pgs-page-head h1,
.pgs-game-title-block h1 {
  margin: 0;
  color: var(--pgs-text);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: 0;
}

.pgs-hero h1 {
  max-width: 680px;
  font-size: clamp(2.3rem, 6vw, 5rem);
}

.pgs-hero-copy > p:not(.pgs-kicker) {
  max-width: 590px;
  margin: 16px 0 0;
  color: var(--pgs-muted);
  font-size: 1.08rem;
}

.pgs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pgs-hero-panel {
  min-width: 0;
}

.pgs-section {
  padding: 34px 0;
}

.pgs-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pgs-section-head h2,
.pgs-game-info h2,
.pgs-game-meta h2 {
  margin: 0;
  color: var(--pgs-text);
  font-size: 1.45rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.pgs-section-head > a {
  color: var(--pgs-soft);
  font-weight: 700;
}

.pgs-game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.pgs-featured-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pgs-card {
  min-width: 0;
}

.pgs-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--pgs-border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--pgs-card), #131720);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pgs-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.45);
  background: linear-gradient(180deg, var(--pgs-card-2), #151927);
}

.pgs-thumb-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b0d13;
}

.pgs-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pgs-card-title {
  display: block;
  min-height: 48px;
  padding: 6px 11px 12px;
  color: var(--pgs-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.pgs-card-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px 0;
  color: var(--pgs-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.pgs-stars {
  display: inline-flex;
  gap: 1px;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.84rem;
  line-height: 1;
}

.pgs-stars .is-on {
  color: #facc15;
}

.pgs-feature-card .pgs-card-link {
  box-shadow: var(--pgs-shadow);
}

.pgs-feature-card .pgs-card-title {
  font-size: 1rem;
}

.pgs-category-grid,
.pgs-category-strip,
.pgs-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pgs-category-grid a,
.pgs-category-strip a,
.pgs-filter-row a {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.055);
  font-weight: 700;
}

.pgs-page {
  padding: 28px 0 48px;
}

.pgs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--pgs-muted);
  font-size: 0.92rem;
}

.pgs-breadcrumb a {
  color: var(--pgs-soft);
}

.pgs-page-head {
  margin-bottom: 22px;
}

.pgs-page-head h1,
.pgs-game-title-block h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.pgs-page-head p,
.pgs-page-description {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--pgs-muted);
}

.pgs-games-head,
.pgs-search-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.pgs-filter-row {
  margin: 0 0 22px;
}

.pgs-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.pgs-page-link {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pgs-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--pgs-soft);
  font-weight: 700;
}

.pgs-page-item.is-active .pgs-page-link,
.pgs-page-link:hover {
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.18);
  color: var(--pgs-text);
}

.pgs-game-title-block {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pgs-game-heading {
  display: grid;
  gap: 12px;
}

.pgs-rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--pgs-muted);
  font-weight: 700;
}

.pgs-rating-summary strong {
  color: var(--pgs-text);
}

.pgs-rating-summary .pgs-stars {
  font-size: 1rem;
}

.pgs-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pgs-player-card {
  overflow: hidden;
  border: 1px solid var(--pgs-border);
  border-radius: 8px;
  background: #05070b;
  box-shadow: var(--pgs-shadow);
}

.pgs-player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
}

.pgs-game-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.pgs-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  margin-top: 22px;
}

.pgs-game-info,
.pgs-game-meta {
  border: 1px solid var(--pgs-border);
  border-radius: 8px;
  background: rgba(24, 27, 36, 0.84);
}

.pgs-game-info {
  padding: 24px;
}

.pgs-vote-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(124, 92, 255, 0.24);
  border-radius: 8px;
  background: rgba(124, 92, 255, 0.08);
}

.pgs-vote-panel h2 {
  margin-bottom: 8px;
}

.pgs-vote-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: var(--pgs-soft);
  font-size: 0.92rem;
}

.pgs-vote-counts span {
  padding: 7px 10px;
  border: 1px solid var(--pgs-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.pgs-vote-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 220px;
}

.pgs-vote-btn {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--pgs-border);
  border-radius: 999px;
  color: var(--pgs-text);
  background: rgba(255, 255, 255, 0.075);
  font-weight: 800;
  cursor: pointer;
}

.pgs-vote-btn:hover,
.pgs-vote-btn.is-active {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.14);
}

.pgs-vote-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.pgs-vote-status {
  flex-basis: 100%;
  min-height: 18px;
  color: var(--pgs-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: right;
}

.pgs-vote-status.is-good {
  color: #86efac;
}

.pgs-vote-status.is-bad {
  color: #fca5a5;
}

.pgs-game-info section + section {
  margin-top: 24px;
}

.pgs-game-info p {
  margin: 10px 0 0;
  color: var(--pgs-soft);
}

.pgs-game-meta {
  align-self: start;
  padding: 20px;
}

.pgs-meta-pill,
.pgs-tag-list a {
  display: inline-flex;
  margin: 10px 8px 0 0;
  padding: 8px 11px;
  border: 1px solid var(--pgs-border);
  border-radius: 999px;
  color: var(--pgs-soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.9rem;
}

.pgs-related {
  padding-bottom: 0;
}

.pgs-empty {
  color: var(--pgs-muted);
}

.pgs-narrow {
  max-width: 920px;
}

.pgs-content-panel,
.pgs-post-card,
.pgs-side-panel {
  background: var(--pgs-surface);
  border: 1px solid var(--pgs-border);
  border-radius: 8px;
  box-shadow: var(--pgs-shadow);
}

.pgs-content-panel {
  padding: 34px;
}

.pgs-content-panel h1,
.pgs-post-card h2 {
  margin: 0 0 14px;
}

.pgs-rich-text {
  color: var(--pgs-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.pgs-rich-text a,
.pgs-inline-link {
  color: var(--pgs-secondary);
  font-weight: 700;
}

.pgs-post-list {
  display: grid;
  gap: 18px;
}

.pgs-post-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px;
}

.pgs-post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--pgs-card);
}

.pgs-post-card h2 a {
  color: var(--pgs-text);
}

.pgs-post-card p {
  margin: 0 0 12px;
  color: var(--pgs-muted);
  line-height: 1.6;
}

.pgs-empty-state {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pgs-empty-state img {
  max-width: 300px;
  width: 70%;
  margin-bottom: 24px;
}

.pgs-empty-state p,
.pgs-muted,
.pgs-side-panel p {
  color: var(--pgs-muted);
}

.pgs-side-panel {
  padding: 20px;
}

.pgs-side-panel h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.pgs-footer {
  margin-top: 40px;
  border-top: 1px solid var(--pgs-border);
  background: #0b0d13;
}

.pgs-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  padding: 34px 0;
}

.pgs-footer p {
  margin: 8px 0 0;
  color: var(--pgs-muted);
}

.pgs-footer nav {
  display: grid;
  gap: 8px;
}

.pgs-footer nav a {
  color: var(--pgs-soft);
}

.pgs-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--pgs-border);
  color: var(--pgs-muted);
  font-size: 0.92rem;
}

.banner-ads,
.banner-ad-wrapper {
  display: none !important;
}

@media (max-width: 1180px) {
  .pgs-game-grid,
  .pgs-featured-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .pgs-header-inner {
    gap: 14px;
  }

  .pgs-nav {
    gap: 2px;
  }

  .pgs-search input {
    width: 210px;
  }

  .pgs-game-grid,
  .pgs-featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pgs-game-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .pgs-header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 64px;
  }

  .pgs-menu-toggle {
    display: block;
  }

  .pgs-logo {
    justify-self: start;
  }

  .pgs-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 14px;
    border-bottom: 1px solid var(--pgs-border);
    background: rgba(15, 17, 23, 0.98);
  }

  .pgs-nav.is-open {
    display: flex;
  }

  .pgs-nav a {
    padding: 12px 10px;
    border-radius: 8px;
  }

  .pgs-header-search .pgs-search input {
    width: 160px;
  }

  .pgs-header-search .pgs-search button {
    padding: 0 12px;
  }

  .pgs-hero-grid {
    grid-template-columns: 1fr;
  }

  .pgs-hero-panel {
    max-width: 320px;
  }

  .pgs-games-head,
  .pgs-search-head,
  .pgs-game-title-block {
    align-items: stretch;
    flex-direction: column;
  }

  .pgs-game-actions {
    justify-content: flex-start;
  }

  .pgs-vote-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .pgs-vote-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .pgs-vote-status {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .pgs-game-grid,
  .pgs-featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .pgs-player-frame {
    min-height: 300px;
  }

  .pgs-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pgs-footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .pgs-shell,
  .pgs-header-inner {
    width: min(100% - 24px, 1240px);
  }

  .pgs-header-inner {
    grid-template-columns: auto 1fr;
  }

  .pgs-header-search {
    grid-column: 1 / -1;
    width: 100%;
    padding-bottom: 12px;
  }

  .pgs-header-search .pgs-search,
  .pgs-header-search .pgs-search input {
    width: 100%;
  }

  .pgs-header-search .pgs-search button {
    flex: 0 0 auto;
  }

  .pgs-nav {
    top: 116px;
  }

  .pgs-hero {
    padding-top: 28px;
  }

  .pgs-hero h1 {
    font-size: 2.55rem;
  }

  .pgs-game-grid,
  .pgs-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgs-card-title {
    min-height: 48px;
    padding: 9px;
    font-size: 0.86rem;
  }

  .pgs-player-frame {
    min-height: 240px;
  }

  .pgs-game-info,
  .pgs-game-meta {
    padding: 18px;
  }

  .pgs-content-panel {
    padding: 22px;
  }

  .pgs-post-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .pgs-hero h1 {
    font-size: 2.25rem;
  }

  .pgs-search button {
    padding: 0 12px;
  }

  .pgs-card-title {
    font-size: 0.82rem;
  }
}

/* Light portal refresh inspired by the provided UI reference. */
:root {
  --pgs-bg: #ffffff;
  --pgs-bg-soft: #f6f3fb;
  --pgs-card: #ffffff;
  --pgs-card-2: #fbf8ff;
  --pgs-border: rgba(31, 28, 44, 0.1);
  --pgs-text: #262231;
  --pgs-muted: #7c7688;
  --pgs-soft: #565064;
  --pgs-accent: #7b3fc7;
  --pgs-accent-2: #9c64df;
  --pgs-focus: #8b5bd6;
  --pgs-shadow: 0 14px 34px rgba(57, 39, 88, 0.1);
}

body {
  background: #fff;
  color: var(--pgs-text);
}

.pgs-shell,
.pgs-header-inner,
.pgs-home,
.pgs-page > .pgs-shell {
  width: min(100% - 84px, 1328px);
}

.pgs-header {
  position: sticky;
  border-bottom: 1px solid #19151f;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.pgs-header-inner {
  min-height: 56px;
  grid-template-columns: 220px minmax(280px, 480px) 1fr;
  gap: 24px;
}

.pgs-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pgs-accent);
  font-size: 1.04rem;
  line-height: 1;
}

.pgs-logo span {
  display: inline-flex;
  width: 34px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--pgs-accent);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(123, 63, 199, 0.2);
}

.pgs-logo::after {
  display: none;
}

.pgs-header-search {
  justify-self: center;
  width: 100%;
}

.pgs-header-search .pgs-search {
  width: 100%;
  position: relative;
}

.pgs-search {
  border-color: rgba(31, 28, 44, 0.2);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(31, 28, 44, 0.06);
}

.pgs-search input {
  width: 100%;
  height: 34px;
  color: var(--pgs-text);
  background: transparent;
}

.pgs-search input::placeholder {
  color: #aca6b7;
}

.pgs-search button {
  min-width: 40px;
  padding: 0;
  color: var(--pgs-soft);
  background: transparent;
  font-size: 0;
}

.pgs-search button::before {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateY(1px);
}

.pgs-search button::after {
  content: "";
  width: 6px;
  height: 2px;
  display: inline-block;
  margin-left: -2px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(45deg) translate(1px, 5px);
}

.pgs-nav {
  justify-content: flex-end;
  gap: 22px;
}

.pgs-nav a {
  padding: 0;
  color: #5e5969;
  font-size: 0.82rem;
  font-weight: 800;
}

.pgs-nav a:hover {
  border-color: transparent;
  background: transparent;
  color: var(--pgs-accent);
}

.pgs-home {
  margin: 0 auto;
  padding: 14px 0 48px;
}

.pgs-image-hero {
  min-height: 390px;
  display: flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 0 50px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: none;
}

.pgs-image-hero .pgs-hero-copy {
  max-width: 560px;
}

.pgs-image-hero h1 {
  max-width: 520px;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 0.98;
}

.pgs-image-hero p {
  max-width: 590px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.48;
}

.pgs-btn {
  min-height: 40px;
  padding: 0 28px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(123, 63, 199, 0.18);
}

.pgs-btn-primary {
  background: linear-gradient(180deg, #8e4dd2, #7133bd);
}

.pgs-btn-secondary {
  color: var(--pgs-accent);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.74);
}

.pgs-playground {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.pgs-mini-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding: 10px;
  border-radius: 8px;
  background: #f8f5fb;
}

.pgs-mini-card {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd6e7;
  box-shadow: 0 3px 9px rgba(28, 19, 42, 0.08);
}

.pgs-mini-card img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pgs-mini-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.pgs-mini-card span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  z-index: 1;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pgs-spotlight-card {
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f7f2fb;
}

.pgs-spotlight-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.pgs-spotlight-card h2 {
  display: inline;
  margin: 0;
  color: #2f2938;
  font-size: 1.26rem;
  line-height: 1.2;
}

.pgs-spotlight-card header a {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--pgs-accent);
  font-size: 0.76rem;
  font-weight: 900;
  vertical-align: 2px;
}

.pgs-spotlight-image {
  position: relative;
  display: block;
  overflow: hidden;
  border: 4px solid var(--pgs-accent);
  border-radius: 8px;
  background: #e7def3;
}

.pgs-spotlight-image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pgs-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 106px;
  height: 106px;
  border: 7px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(21, 88, 92, 0.72);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.pgs-play-badge::after {
  content: "";
  position: absolute;
  left: 41px;
  top: 28px;
  width: 0;
  height: 0;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
  border-left: 32px solid #fff;
}

.pgs-spotlight-card > p {
  margin: 8px 0 0;
  color: #312a3c;
  font-size: 0.84rem;
  font-weight: 800;
}

.pgs-home .pgs-section {
  width: 100%;
  padding: 36px 0 0;
}

.pgs-section-head h2,
.pgs-game-info h2,
.pgs-game-meta h2,
.pgs-page-head h1,
.pgs-game-title-block h1 {
  color: var(--pgs-text);
}

.pgs-section-label {
  color: var(--pgs-accent);
}

.pgs-game-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pgs-card-link,
.pgs-content-panel,
.pgs-post-card,
.pgs-side-panel,
.pgs-game-info,
.pgs-game-meta,
.pgs-player-card {
  border-color: rgba(31, 28, 44, 0.1);
  background: #fff;
  box-shadow: 0 9px 22px rgba(43, 31, 63, 0.08);
}

.pgs-card-link:hover {
  border-color: rgba(123, 63, 199, 0.28);
  background: #fff;
}

.pgs-thumb-wrap,
.pgs-game-iframe {
  background: #f0ecf6;
}

.pgs-card-title,
.pgs-post-card h2 a {
  color: var(--pgs-text);
}

.pgs-card-rating,
.pgs-page-head p,
.pgs-page-description,
.pgs-game-info p,
.pgs-post-card p,
.pgs-rich-text,
.pgs-footer p,
.pgs-muted,
.pgs-empty {
  color: var(--pgs-muted);
}

.pgs-vote-panel {
  border-color: rgba(123, 63, 199, 0.16);
  background: #fbf7ff;
}

.pgs-footer {
  background: #faf8fd;
  border-top-color: rgba(31, 28, 44, 0.09);
}

.pgs-footer-logo {
  color: var(--pgs-accent);
}

.pgs-footer-bottom {
  border-top-color: rgba(31, 28, 44, 0.09);
}

@media (max-width: 1060px) {
  .pgs-header-inner {
    grid-template-columns: auto minmax(220px, 1fr) auto;
  }

  .pgs-playground {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .pgs-game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .pgs-shell,
  .pgs-header-inner,
  .pgs-home,
  .pgs-page > .pgs-shell {
    width: min(100% - 28px, 1328px);
  }

  .pgs-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .pgs-header-search {
    grid-column: 1 / -1;
    order: 4;
    padding-bottom: 10px;
  }

  .pgs-image-hero {
    min-height: 330px;
    padding: 0 26px;
    border-radius: 18px;
  }

  .pgs-playground {
    grid-template-columns: 1fr;
  }

  .pgs-mini-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pgs-image-hero h1 {
    font-size: 2.55rem;
  }

  .pgs-mini-rail,
  .pgs-game-grid,
  .pgs-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pgs-spotlight-card header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pgs-play-badge {
    width: 78px;
    height: 78px;
  }

  .pgs-play-badge::after {
    left: 30px;
    top: 21px;
    border-top-width: 16px;
    border-bottom-width: 16px;
    border-left-width: 24px;
  }
}
