:root { --site-max: 1600px; }
[hidden] { display: none !important; }
.shell { width: min(var(--site-max), calc(100% - 48px)); }
body { font-family: Outfit, Inter, ui-sans-serif, system-ui, sans-serif; }
.search-open { overflow: hidden; }
.product-page { width: min(var(--site-max), calc(100% - 48px)); }

.nav { z-index: 30; }
.nav nav { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-actions { margin-left: auto; }
.country-picker { position: relative; }
.country-trigger { min-width: 170px; height: 42px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 0 12px; color: #d8dae0; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #20242b; cursor: pointer; }
.country-trigger:hover, .country-trigger[aria-expanded="true"] { border-color: rgba(145,126,255,.5); background: #252a32; }
.country-trigger #countryLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.country-chevron { color: #7f858f; transform: translateY(-2px); }
.country-menu { width: 310px; position: absolute; z-index: 80; top: calc(100% + 9px); right: 0; overflow: hidden; padding: 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: #171a1f; box-shadow: 0 24px 70px rgba(0,0,0,.58); }
.country-search { height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid #333842; border-radius: 9px; background: #101216; }
.country-search > span { color: #8e949e; }
.country-search input { min-width: 0; flex: 1; color: #fff; border: 0; outline: 0; background: transparent; font: 13px inherit; }
.country-options { max-height: 340px; margin-top: 8px; overflow-y: auto; scrollbar-color: #555b66 transparent; }
.country-option { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; color: #d8dae0; text-align: left; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.country-option:hover { background: #23272e; }
.country-option.active { color: #fff; background: rgba(128,103,255,.2); }
.country-option b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.country-option small { color: #717781; font-size: 10px; letter-spacing: .08em; }
.country-options > p { padding: 20px; color: #7d838d; text-align: center; }
.search-button { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: #20242b; color: #e7e8eb; font-size: 20px; cursor: pointer; }
.search-button:hover { background: #292e36; }
.search-button > span,
.search > span:first-child,
.search-dialog-input > span {
  width: 15px;
  height: 15px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  overflow: visible;
  color: transparent;
  font-size: 0;
  border: 1.7px solid currentColor;
  border-color: #b5bac3;
  border-radius: 50%;
}
.search-button > span::after,
.search > span:first-child::after,
.search-dialog-input > span::after {
  content: "";
  width: 6px;
  height: 1.7px;
  position: absolute;
  right: -5px;
  bottom: -3px;
  border-radius: 2px;
  background: #b5bac3;
  transform: rotate(48deg);
  transform-origin: left center;
}
.search-dialog-input > span { border-color: #22252a; }
.search-dialog-input > span::after { background: #22252a; }
.mobile-nav { display: none; }
.trust-strip { width: min(var(--site-max), calc(100% - 48px)); margin: 28px auto 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.trust-strip .shell { width: 100%; }

.editorial-section { padding-block: 18px 82px; }
.editorial-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.story-card { min-width: 0; padding: 8px 8px 17px; color: #fff; text-decoration: none; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); transition: transform .2s ease, border-color .2s ease; }
.story-card:hover { transform: translateY(-3px); border-color: rgba(155,136,255,.42); }
.story-card img { width: 100%; height: 178px; display: block; object-fit: cover; border-radius: 10px; }
.story-card span, .news-item span, .guide-card span, .guide-feature span, .news-lead span { display: block; margin: 14px 10px 5px; color: #8f83cf; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.story-card h3 { margin: 0 10px; font-size: 17px; line-height: 1.25; }
.story-card small { display: block; margin: 9px 10px 0; color: #777d87; }
.story-card.landscape img { height: 206px; }
.home-guides { padding-top: 8px; }

.route-home .hero { min-height: 680px; }
.route-home .section { padding-block: 82px 68px; }
.route-home .featured-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 16px; }
.route-home .featured-grid .game-card {
  gap: 13px;
  padding: 7px 7px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #15181d;
}
.route-home .featured-grid .game-card:first-child { grid-column: auto; }
.route-home .featured-grid .cover,
.route-home .featured-grid .game-card:first-child .cover { aspect-ratio: 4 / 3; }
.route-home .featured-grid .product-meta { padding: 0 6px; }
.route-home .featured-grid .product-title { min-height: 0; font-size: 15px; }
.route-home .featured-grid .product-platform { margin-top: 7px; }
.route-home .featured-grid .price { font-size: 15px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; color: #989eaa; font-size: 11px; }
.card-details { color: #c7c9cf; font-weight: 700; }
.card-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.game-card:hover .card-details { color: #9f8cff; }
.variant-picker { margin: 22px 0 2px; }
.variant-picker > span { display: block; margin-bottom: 9px; color: #8d939e; font-size: 12px; font-weight: 700; }
.variant-picker > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.variant-option { min-width: 0; padding: 10px 11px; color: #d9dbe0; text-decoration: none; border: 1px solid #343842; border-radius: 9px; background: #171a20; }
.variant-option:hover, .variant-option.active { border-color: #8067ff; background: rgba(128,103,255,.12); }
.variant-option b, .variant-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-option small { margin-top: 2px; color: #858b95; font-size: 10px; }
.route-home .section-heading h2,
.route-home .editorial-section .section-heading h2 { font-size: clamp(35px, 3vw, 48px); }

.route-page { min-height: 800px; padding: 78px 0 110px; }
.page-intro { max-width: 630px; margin-bottom: 52px; }
.page-intro h1 { margin: 0 0 12px; font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; }
.page-intro p:last-child { max-width: 560px; margin: 0; color: #9298a3; font-size: 16px; }

.games-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 38px; align-items: start; }
.games-layout > *, .catalog-content, .filter-panel { min-width: 0; }
.filter-panel, .guide-filter { position: sticky; top: 105px; }
.filter-panel { max-height: calc(100vh - 125px); padding-right: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4b515c transparent; }
.filter-panel::-webkit-scrollbar, .country-options::-webkit-scrollbar { width: 7px; }
.filter-panel::-webkit-scrollbar-thumb, .country-options::-webkit-scrollbar-thumb { border-radius: 10px; background: #4b515c; }
.filter-panel::-webkit-scrollbar-track, .country-options::-webkit-scrollbar-track { background: transparent; }
.filter-label { display: block; margin: 0 0 9px; color: #777e89; font-size: 11px; font-weight: 700; }
.filter-panel .search { width: 100%; }
.filter-panel .search input { width: 100%; }
.filter-rule { height: 1px; margin: 22px 0; background: var(--line); }
.filter-panel .platforms { display: flex; flex-direction: column; gap: 7px; }
.filter-panel .platform-chip { width: 100%; padding: 9px 11px; text-align: left; border-radius: 8px; }
.facet-list { display: flex; flex-direction: column; gap: 5px; }
.facet-button { width: 100%; padding: 8px 10px; text-align: left; color: #a8adb6; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; }
.facet-button:hover { color: #fff; background: #191c22; }
.facet-button.active { color: #fff; border-color: rgba(127,102,255,.38); background: rgba(127,102,255,.16); }
.clear-catalog-filters { width: 100%; margin-top: 22px; padding: 10px; color: #9ca2ac; border: 1px solid var(--line); border-radius: 9px; background: #15181d; cursor: pointer; }
.clear-catalog-filters:hover { color: #fff; border-color: rgba(255,255,255,.18); }
.games-page .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
.games-page .cover { aspect-ratio: 4 / 5; }
.games-page .secondary-button { margin-top: 46px; }

.news-lead { display: grid; grid-template-columns: .75fr 1.5fr; gap: 28px; align-items: center; margin-bottom: 72px; }
.news-lead-copy { padding: 30px; }
.news-lead-copy span { margin-left: 0; }
.news-lead-copy h2 { margin: 0 0 16px; font-size: clamp(28px, 3.5vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.news-lead-copy p { color: #969ca6; }
.news-lead > img { width: 100%; height: 390px; object-fit: cover; border-radius: 18px; }
.page-section-title { margin: 0 0 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.page-section-title h2 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.news-item img { width: 100%; height: 170px; object-fit: cover; border-radius: 12px; }
.news-item span, .news-item h3, .news-item p { margin-left: 0; }
.news-item h3 { margin-top: 4px; margin-bottom: 7px; font-size: 21px; }
.news-item p { max-width: 650px; margin-top: 0; color: #838995; }
.news-item small, .guide-card small, .guide-feature small { color: #6f7580; }

.guide-feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 74px; }
.guide-feature { min-height: 300px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.guide-feature::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, rgba(10,11,14,.96)); }
.guide-feature img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.guide-feature div { position: absolute; z-index: 1; inset: auto 26px 24px; }
.guide-feature span { margin-left: 0; }
.guide-feature h2 { margin: 0 0 6px; font-size: 28px; }
.guides-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 38px; align-items: start; }
.guide-filter button { width: 100%; padding: 12px; text-align: left; color: #9298a3; border: 1px solid var(--line); border-radius: 9px; background: #171a1f; cursor: pointer; }
.guide-filter > span { display: block; padding: 7px 2px; color: #969ca6; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.guide-card { overflow: hidden; padding-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.guide-card img { width: calc(100% - 12px); height: 175px; margin: 6px; object-fit: cover; border-radius: 9px; }
.guide-card span, .guide-card h3, .guide-card small { margin-left: 16px; margin-right: 16px; }
.guide-card h3 { min-height: 2.7em; margin-top: 4px; margin-bottom: 10px; font-size: 16px; line-height: 1.35; }

.site-search-overlay { position: fixed; inset: 0; z-index: 100; padding: 13vh 20px 40px; background: rgba(4,5,7,.82); backdrop-filter: blur(8px); }
.search-dismiss { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: default; }
.search-dialog { position: relative; width: min(680px, 100%); max-height: min(650px, 75vh); margin: 0 auto; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: #f6f6f7; box-shadow: 0 35px 100px rgba(0,0,0,.65); }
.search-dialog-input { height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 0 20px; color: #16171a; background: #fff; }
.search-dialog-input > span { font-size: 22px; }
.search-dialog-input input { min-width: 0; border: 0; outline: 0; font: 17px/1.4 inherit; color: #16171a; background: transparent; }
.search-dialog-input button { border: 0; background: transparent; color: #777; font-size: 11px; text-transform: uppercase; cursor: pointer; }
.search-results { max-height: calc(min(650px, 75vh) - 68px); overflow-y: auto; border-top: 1px solid #e6e6e8; }
.search-results > p { margin: 0; padding: 30px 22px; color: #76787e; }
.search-results a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 12px 18px; color: #25262a; text-decoration: none; border-bottom: 1px solid #e7e7e9; }
.search-results a:hover { background: #ececef; }
.search-results img, .result-icon { width: 52px; height: 52px; display: grid; place-items: center; object-fit: cover; border-radius: 8px; background: #6f52f5; color: #fff; font-weight: 900; }
.search-results b, .search-results small { display: block; }
.search-results b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results small { margin-top: 3px; color: #8b8d93; }
.search-results i { font-style: normal; color: #8b8d93; }

@media (max-width: 1120px) {
  .nav nav { position: static; transform: none; }
  .country-trigger { min-width: 52px; width: 52px; }
  .country-trigger #countryLabel, .country-chevron { display: none; }
  .games-page .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-home .hero { min-height: 610px; }
  .route-home .featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell { width: min(var(--site-max), calc(100% - 30px)); }
  .trust-strip { width: min(var(--site-max), calc(100% - 30px)); }
  .product-page { width: min(var(--site-max), calc(100% - 30px)); }
  .nav nav { display: none; }
  .mobile-nav { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; border: 1px solid var(--line); border-radius: 13px; background: #14171c; }
  .mobile-nav a { padding: 8px 17px; color: #969ca6; text-decoration: none; border-radius: 8px; font-size: 13px; font-weight: 700; }
  .mobile-nav a.active { color: #fff; background: rgba(127,102,255,.17); }
  .route-page { padding-top: 54px; }
  .page-intro { margin-bottom: 38px; }
  .games-layout, .guides-layout { grid-template-columns: 1fr; gap: 28px; }
  .games-layout, .catalog-content, .filter-panel { width: 100%; max-width: 100%; min-width: 0; }
  .filter-panel, .guide-filter { position: static; }
  .filter-panel { max-height: none; padding-right: 0; overflow: visible; }
  .filter-panel .platforms, .filter-panel .facet-list { width: 100%; max-width: 100%; min-width: 0; }
  .filter-panel .platforms { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .filter-panel .platform-chip { width: auto; flex: 0 0 auto; }
  .filter-panel .platforms, .filter-panel .facet-list { scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #4b515c transparent; -webkit-overflow-scrolling: touch; }
  .filter-panel .facet-list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .filter-panel .facet-button { width: auto; flex: 0 0 auto; white-space: nowrap; border-color: var(--line); background: #181b20; }
  .filter-panel .platform-chip, .filter-panel .facet-button { scroll-snap-align: start; }
  .clear-catalog-filters { width: auto; }
  .guide-filter > span { display: inline-block; margin-right: 18px; }
  .news-lead { grid-template-columns: 1fr; }
  .news-lead-copy { padding: 0; }
  .news-lead > img { height: 340px; }
  .news-item { grid-template-columns: 220px minmax(0, 1fr); }
  .editorial-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-row .story-card:last-child { display: none; }
  .route-home .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .nav { padding-left: 16px; }
  .nav .brand img { width: 102px; }
  .nav-actions { gap: 5px; }
  .country-trigger, .icon-button, .search-button { width: 39px; min-width: 39px; height: 39px; padding: 0; justify-content: center; }
  .country-trigger { display: grid; grid-template-columns: 1fr; place-items: center; }
  .country-menu { width: min(310px, calc(100vw - 30px)); right: -92px; }
  .icon-button { position: relative; }
  .icon-button img { margin: 0; }
  .icon-button .count { min-width: 16px; width: 16px; height: 16px; position: absolute; top: 3px; right: 2px; margin: 0; font-size: 9px; }
  .mobile-nav a { padding-inline: 14px; }
  .route-page { padding: 46px 0 78px; }
  .page-intro h1 { font-size: 43px; }
  .games-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 11px; }
  .editorial-section { padding-bottom: 58px; }
  .editorial-row { grid-template-columns: 1fr; }
  .editorial-row .story-card:last-child { display: block; }
  .story-card img, .story-card.landscape img { height: 205px; }
  .news-lead { margin-bottom: 52px; }
  .news-lead > img { height: 230px; }
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-item img { height: 205px; }
  .guide-feature-row { grid-template-columns: 1fr; margin-bottom: 55px; }
  .guide-feature { min-height: 250px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card img { height: 205px; }
  .site-search-overlay { padding: 9vh 12px 25px; }
  .search-dialog-input { padding-inline: 14px; }
  .route-home .hero { min-height: 520px; }
  .route-home .section { padding-block: 64px; }
  .route-home .featured-grid { grid-template-columns: 1fr; }
  .route-home .featured-grid .cover,
  .route-home .featured-grid .game-card:first-child .cover { aspect-ratio: 16 / 10; }
  .variant-picker > div { grid-template-columns: 1fr; }
}
