:root {
  --gs-bg: #080d12;
  --gs-surface: #111820;
  --gs-surface-2: #151e28;
  --gs-line: #263241;
  --gs-text: #f4f7f9;
  --gs-muted: #8f9bab;
  --gs-accent: #b7f34b;
  --gs-accent-dark: #17230d;
  --gs-blue: #67a9ff;
  --gs-width: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.gs-body {
  margin: 0;
  background: var(--gs-bg);
  color: var(--gs-text);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
.gs-body a { color: inherit; text-decoration: none; }
.gs-body button, .gs-body input { font: inherit; }
.gs-body img { max-width: 100%; }
.gs-site { min-height: 100vh; overflow: hidden; background: var(--gs-bg); }
.gs-site > main { min-height: 70vh; }
.gs-page-content { width: min(var(--gs-width), calc(100% - 64px)); margin-inline: auto; }
.gs-muted { color: var(--gs-muted); }

/* Header */
.gs-header {
  position: relative;
  z-index: 30;
  height: 72px;
  border-bottom: 1px solid rgba(133, 160, 190, .2);
  background: rgba(8, 13, 18, .96);
}
.gs-header-inner {
  width: min(1440px, calc(100% - 48px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.gs-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.gs-brand img { display: block; width: 142px; height: 45px; object-fit: contain; object-position: left center; }
.gs-main-nav { display: flex; align-items: center; gap: 25px; margin-left: 15px; white-space: nowrap; }
.gs-main-nav a { color: #aeb7c2; font-size: 13px; font-weight: 700; transition: color .2s; }
.gs-main-nav a:hover { color: var(--gs-accent); }
.gs-header-search {
  height: 38px;
  max-width: 330px;
  margin-left: auto;
  display: flex;
  flex: 1 1 250px;
  border: 1px solid var(--gs-line);
  border-radius: 6px;
  background: #0d141c;
}
.gs-header-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 0 4px 0 14px; color: #dfe5eb; background: transparent; font-size: 12px; }
.gs-header-search input::placeholder { color: #687584; }
.gs-header-search button { width: 42px; border: 0; color: #a8b1bc; background: none; font-size: 23px; cursor: pointer; }
.gs-icon-button { width: 38px; height: 38px; border: 0; background: transparent; color: #d9e0e6; font-size: 26px; cursor: pointer; }
.gs-avatar { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; color: #0a1015; background: var(--gs-accent); font-size: 11px; box-shadow: inset 0 0 0 8px #273d15; }

/* Catalog hero */
.gs-catalog-hero {
  position: relative;
  min-height: 475px;
  isolation: isolate;
  background: #111820 url('https://game-storage.ru/media/blog/images/wallpapersden.com_k-dying-light-2_7680x4320.jpg') center 43% / cover no-repeat;
}
.gs-catalog-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 11, 16, .97) 0%, rgba(6, 11, 16, .87) 37%, rgba(6, 11, 16, .38) 68%, rgba(6, 11, 16, .65) 100%), linear-gradient(0deg, var(--gs-bg) 0%, transparent 25%);
}
.gs-catalog-hero-content { width: min(var(--gs-width), calc(100% - 64px)); margin: auto; padding: 68px 0 56px; }
.gs-catalog-hero h1 { max-width: 700px; margin: 0 0 14px; font-size: clamp(42px, 5vw, 68px); line-height: .97; letter-spacing: -.055em; text-transform: uppercase; }
.gs-catalog-hero h1::first-line { color: var(--gs-accent); }
.gs-catalog-hero p { margin: 0 0 28px; color: #a5b0bc; font-size: 17px; }
.gs-hero-search { width: min(700px, 100%); height: 55px; display: flex; align-items: center; border: 1px solid #3b4958; border-radius: 7px; background: rgba(12, 19, 27, .95); box-shadow: 0 12px 35px rgba(0,0,0,.28); }
.gs-hero-search > span { padding-left: 18px; color: #96a2af; font-size: 26px; }
.gs-hero-search input { min-width: 0; flex: 1; height: 100%; border: 0; outline: 0; padding: 0 14px; color: #fff; background: transparent; }
.gs-hero-search input::placeholder { color: #697582; }
.gs-hero-search button { width: 60px; height: 100%; border: 0; border-radius: 0 6px 6px 0; color: #11170a; background: var(--gs-accent); font-size: 27px; font-weight: 800; cursor: pointer; }
.gs-platform-row, .gs-genre-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.gs-platform-row { margin-top: 22px; }
.gs-platform-row a { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border: 1px solid #364453; border-radius: 5px; color: #d8dfe5; background: rgba(15, 23, 32, .78); font-size: 12px; font-weight: 700; }
.gs-platform-row a:hover { border-color: var(--gs-accent); color: var(--gs-accent); }
.gs-platform-row span { font-size: 16px; }
.gs-genre-row { margin-top: 18px; color: #768392; font-size: 11px; }
.gs-genre-row a { color: #aab4bf; }
.gs-genre-row a:hover { color: var(--gs-accent); }

/* Catalog and filters */
.gs-section { padding: 54px 0 60px; }
.gs-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.gs-section-heading h2, .gs-editorial-section > h2 { margin: 0; font-size: clamp(25px, 3vw, 35px); line-height: 1.1; letter-spacing: -.045em; }
.gs-section-heading > span { color: var(--gs-muted); font-size: 12px; }
.gs-section-heading > a { color: var(--gs-accent); font-size: 12px; font-weight: 800; }
.gs-filter-strip { min-height: 52px; margin-bottom: 25px; padding: 8px 12px; display: flex; align-items: center; gap: 7px; overflow-x: auto; border-block: 1px solid #1e2935; scrollbar-width: thin; }
.gs-filter-strip > span { margin-right: 4px; color: #768392; font-size: 11px; }
.gs-filter-strip a { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #2c3946; border-radius: 4px; color: #aeb8c2; font-size: 11px; font-weight: 700; }
.gs-filter-strip a:hover { border-color: var(--gs-accent); color: #101609; background: var(--gs-accent); }

/* Game cards */
.gs-game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.gs-game-card { min-width: 0; overflow: hidden; border: 1px solid #25303d; border-radius: 7px; background: #101720; transition: transform .2s, border-color .2s, box-shadow .2s; }
.gs-game-card:hover { transform: translateY(-3px); border-color: #465769; box-shadow: 0 16px 30px rgba(0,0,0,.26); }
.gs-game-cover { position: relative; display: block; aspect-ratio: 1 / 1.05; overflow: hidden; background: #161e27; }
.gs-game-cover::after { content: ''; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(7,11,16,.55)); pointer-events: none; }
.gs-game-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s; }
.gs-game-card:hover .gs-game-cover img { transform: scale(1.025); }
.gs-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gs-accent); font-size: 26px; font-weight: 900; letter-spacing: .1em; }
.gs-card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 9px; border-radius: 3px; color: #101609; background: var(--gs-accent); font-size: 9px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.gs-game-card-body { padding: 16px 17px 17px; }
.gs-game-card h3 { min-height: 46px; margin: 0 0 7px; overflow: hidden; font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.gs-game-card h3 a:hover { color: var(--gs-accent); }
.gs-card-platforms { min-height: 18px; overflow: hidden; color: #748292; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.gs-card-platforms span { color: #9aa8b5; }
.gs-card-bottom { min-height: 35px; margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #202b37; padding-top: 11px; }
.gs-card-rating { flex: 0 0 auto; font-size: 12px; font-weight: 800; }
.gs-card-rating span, .gs-star { color: var(--gs-accent); }
.gs-card-genres { overflow: hidden; color: #7e8b98; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.gs-card-action { margin-top: 13px; min-height: 35px; display: flex; align-items: center; justify-content: space-between; padding: 7px 11px; border: 1px solid #303d49; border-radius: 4px; color: #c9d1d8; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.gs-card-action:hover { border-color: var(--gs-accent); color: #101609; background: var(--gs-accent); }
.gs-empty { min-height: 220px; display: grid; place-items: center; border: 1px dashed var(--gs-line); color: var(--gs-muted); }

/* Pagination */
.pagination-section { margin-top: 38px; }
.pagination-list { margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 7px; list-style: none; }
.pagination-list .page-item a, .pagination-list .page-item span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border: 1px solid #2b3744; border-radius: 4px; color: #9eaab6; background: #101720; font-size: 11px; }
.pagination-list .page-item.active a, .pagination-list .page-item.active span, .pagination-list .page-item a:hover { border-color: var(--gs-accent); color: #11170a; background: var(--gs-accent); }

/* Editorial cards */
.gs-editorial-section { padding: 5px 0 80px; }
.gs-editorial-section > h2 { margin-bottom: 25px; }
.gs-editorial-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 22px; }
.gs-editorial-card { position: relative; min-height: 285px; overflow: hidden; padding: 38px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid #2b3845; border-radius: 7px; background: #16202a; isolation: isolate; }
.gs-editorial-card::before, .gs-editorial-card::after { content: ''; position: absolute; z-index: -1; }
.gs-editorial-card::before { inset: 0; background: radial-gradient(circle at 80% 45%, rgba(183,243,75,.32), transparent 33%), linear-gradient(115deg, #101820 45%, #202c35); }
.gs-editorial-card::after { width: 260px; height: 260px; right: -40px; bottom: -95px; border: 40px solid rgba(183,243,75,.15); border-radius: 50%; transform: rotate(-25deg); }
.gs-editorial-new::before { background: radial-gradient(circle at 77% 35%, rgba(71,139,255,.36), transparent 34%), linear-gradient(115deg, #111923 45%, #1b2937); }
.gs-editorial-card strong { font-size: 29px; line-height: 1.05; letter-spacing: -.04em; text-transform: uppercase; }
.gs-editorial-card > span { margin-top: 14px; color: #a6b0ba; font-size: 12px; }
.gs-editorial-card em { margin-top: 24px; color: var(--gs-accent); font-size: 11px; font-style: normal; font-weight: 900; text-transform: uppercase; }
.gs-editorial-card:hover { border-color: #526170; }

/* Listing pages */
.gs-listing-page { padding-top: 55px; padding-bottom: 80px; }
.gs-listing-heading { margin-bottom: 30px; }
.gs-listing-heading > span { display: block; margin-bottom: 10px; color: #697685; font-size: 11px; }
.gs-listing-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.05em; }
.gs-listing-heading strong { color: var(--gs-accent); }

/* Game detail */
.gs-game-hero { position: relative; min-height: 500px; isolation: isolate; overflow: hidden; background: #10171f; }
.gs-game-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(.8); }
.gs-game-hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,11,16,.97) 0%, rgba(7,11,16,.79) 48%, rgba(7,11,16,.35) 75%), linear-gradient(0deg, var(--gs-bg) 0%, transparent 35%); }
.gs-game-hero-inner { width: min(var(--gs-width), calc(100% - 64px)); margin: auto; padding: 35px 0 45px; }
.gs-breadcrumbs { min-height: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #73808d; font-size: 10px; }
.gs-breadcrumbs a:hover { color: var(--gs-accent); }
.gs-breadcrumbs b { color: #aab4be; font-weight: 500; }
.gs-game-identity { margin-top: 38px; display: flex; align-items: flex-end; gap: 34px; }
.gs-game-poster { width: 210px; aspect-ratio: .72; flex: 0 0 auto; overflow: hidden; border: 1px solid #44505d; border-radius: 7px; background: #131c25; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.gs-game-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gs-game-poster > span { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gs-accent); font-size: 30px; font-weight: 900; }
.gs-game-title-block { padding-bottom: 12px; }
.gs-game-title-block h1 { max-width: 850px; margin: 0 0 18px; font-size: clamp(42px, 5vw, 70px); line-height: .96; letter-spacing: -.055em; text-transform: uppercase; }
.gs-game-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.gs-game-platforms span { padding: 6px 9px; border: 1px solid #3d4956; border-radius: 3px; color: #b4bec8; background: rgba(10,16,22,.65); font-size: 10px; }
.gs-game-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.gs-tag { display: inline-flex; margin: 2px 4px 2px 0; padding: 5px 9px; border-radius: 3px; color: #cbd2d8; background: #25303a; font-size: 9px; font-weight: 700; }
a.gs-tag:hover { color: #11170a; background: var(--gs-accent); }
.gs-game-score { display: flex; align-items: center; gap: 8px; }
.gs-game-score > span { color: var(--gs-accent); font-size: 18px; }
.gs-game-score strong { font-size: 24px; }
.gs-game-score small { color: #8995a0; font-size: 10px; }
.gs-game-score em { margin-left: 10px; padding-left: 18px; border-left: 1px solid #43505c; color: #c4cbd2; font-size: 11px; font-style: normal; }
.gs-game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 42px; padding-top: 10px; padding-bottom: 55px; }
.gs-game-tabs { position: sticky; top: 0; z-index: 10; min-height: 58px; margin-bottom: 34px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid #24303c; background: rgba(8,13,18,.94); }
.gs-game-tabs a { position: relative; padding: 20px 0 17px; color: #8f9aa6; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.gs-game-tabs a:first-child { color: var(--gs-text); }
.gs-game-tabs a:first-child::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--gs-accent); }
.gs-game-section { margin-bottom: 48px; scroll-margin-top: 70px; }
.gs-game-section h2, .gs-info-card h2 { margin: 0 0 19px; font-size: 25px; letter-spacing: -.035em; }
.gs-game-description { margin: 0; color: #a5afb9; line-height: 1.8; white-space: pre-line; }
.gs-game-features { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gs-game-features > div { min-height: 105px; padding: 17px; display: grid; grid-template-columns: 28px 1fr; align-content: center; column-gap: 8px; border: 1px solid #25313e; border-radius: 5px; background: #10171f; }
.gs-game-features span { grid-row: 1 / 3; color: var(--gs-accent); font-size: 20px; }
.gs-game-features b { font-size: 10px; text-transform: uppercase; }
.gs-game-features small { margin-top: 4px; overflow: hidden; color: #7d8996; font-size: 9px; }
.gs-requirements-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #25313e; border-radius: 5px; overflow: hidden; }
.gs-requirement { min-height: 78px; padding: 15px 18px; display: flex; flex-direction: column; border-right: 1px solid #25313e; border-bottom: 1px solid #25313e; background: #10171f; }
.gs-requirement:nth-child(even) { border-right: 0; }
.gs-requirement span { color: #74818e; font-size: 9px; text-transform: uppercase; }
.gs-requirement strong { margin-top: 5px; color: #c5cdd4; font-size: 11px; font-weight: 600; }
.gs-game-gallery { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 145px 145px; gap: 10px; }
.gs-game-gallery img { width: 100%; height: 100%; display: block; border-radius: 5px; object-fit: cover; }
.gs-game-gallery img:first-child { grid-row: 1 / 3; }
.gs-game-aside { padding-top: 69px; }
.gs-info-card { position: sticky; top: 25px; padding: 23px; border: 1px solid #2b3744; border-radius: 6px; background: #111820; }
.gs-info-card-title { display: flex; justify-content: space-between; align-items: start; }
.gs-info-card-title > span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #394653; border-radius: 50%; color: #7d8995; font-size: 10px; }
.gs-info-card dl { margin: 0; }
.gs-info-card dl > div { padding: 12px 0; border-top: 1px solid #25313d; }
.gs-info-card dt { margin-bottom: 5px; color: #6f7c89; font-size: 9px; text-transform: uppercase; }
.gs-info-card dd { margin: 0; color: #c6cdd4; font-size: 11px; }
.gs-related { padding-top: 45px; padding-bottom: 75px; border-top: 1px solid #1e2833; }

/* Footer */
.gs-footer { border-top: 1px solid #222d38; background: #0c1218; }
.gs-footer-inner { width: min(var(--gs-width), calc(100% - 64px)); min-height: 175px; margin: auto; padding: 38px 0; display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: start; gap: 40px; }
.gs-footer-brand p { margin: 15px 0 0; color: #75818d; font-size: 10px; }
.gs-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; padding-top: 6px; }
.gs-footer-nav a { color: #929da7; font-size: 10px; }
.gs-footer-nav a:hover { color: var(--gs-accent); }
.gs-footer-social { display: flex; gap: 8px; }
.gs-footer-social span { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #2d3945; border-radius: 4px; color: #939ea8; font-size: 9px; }
.gs-copyright { min-height: 47px; display: grid; place-items: center; border-top: 1px solid #1e2832; color: #596570; font-size: 9px; }

/* Legacy blog content remains readable inside the new shell. */
.gs-body .primary-content-area.container { width: min(var(--gs-width), calc(100% - 64px)); margin-inline: auto; }

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

@media (max-width: 1120px) {
  .gs-main-nav { display: none; }
  .gs-game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gs-game-grid-compact .gs-game-card:nth-child(4) { display: none; }
  .gs-game-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
}

@media (max-width: 800px) {
  .gs-page-content, .gs-catalog-hero-content, .gs-game-hero-inner, .gs-footer-inner { width: min(100% - 32px, var(--gs-width)); }
  .gs-header-inner { width: calc(100% - 28px); gap: 12px; }
  .gs-header-search { display: none; }
  .gs-icon-button { margin-left: auto; }
  .gs-catalog-hero { min-height: 445px; }
  .gs-catalog-hero-content { padding-top: 55px; }
  .gs-platform-row a { padding-inline: 10px; }
  .gs-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .gs-editorial-grid { grid-template-columns: 1fr; }
  .gs-editorial-card { min-height: 240px; }
  .gs-game-hero { min-height: 460px; }
  .gs-game-identity { gap: 22px; }
  .gs-game-poster { width: 165px; }
  .gs-game-layout { display: block; }
  .gs-game-aside { padding: 0 0 35px; }
  .gs-info-card { position: static; }
  .gs-game-features { grid-template-columns: 1fr; }
  .gs-footer-inner { grid-template-columns: 1fr 1fr; }
  .gs-footer-social { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .gs-header { height: 62px; }
  .gs-brand img { width: 118px; height: 38px; }
  .gs-avatar { display: none; }
  .gs-catalog-hero { min-height: 520px; background-position: 62% center; }
  .gs-catalog-hero-content { padding-top: 48px; }
  .gs-catalog-hero h1 { font-size: 39px; }
  .gs-catalog-hero p { font-size: 14px; }
  .gs-hero-search > span { display: none; }
  .gs-hero-search input { padding-left: 14px; font-size: 11px; }
  .gs-platform-row a { font-size: 10px; }
  .gs-genre-row > span { width: 100%; }
  .gs-section { padding-top: 38px; }
  .gs-section-heading { align-items: center; }
  .gs-game-grid { grid-template-columns: 1fr; }
  .gs-game-cover { aspect-ratio: 1.2 / 1; }
  .gs-editorial-card { padding: 25px; }
  .gs-listing-page { padding-top: 38px; }
  .gs-game-hero { min-height: 570px; }
  .gs-game-hero-inner { padding-top: 22px; }
  .gs-game-identity { margin-top: 24px; align-items: flex-start; flex-direction: column; }
  .gs-game-poster { width: 125px; aspect-ratio: .72; }
  .gs-game-title-block h1 { font-size: 38px; }
  .gs-game-score { flex-wrap: wrap; }
  .gs-game-score em { margin-left: 0; }
  .gs-game-tabs { gap: 17px; overflow-x: auto; }
  .gs-requirements-grid { grid-template-columns: 1fr; }
  .gs-requirement { border-right: 0; }
  .gs-game-gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3, 180px); }
  .gs-game-gallery img:first-child { grid-row: auto; }
  .gs-footer-inner { grid-template-columns: 1fr; }
  .gs-footer-social { grid-column: auto; }
}

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