@font-face {
  font-family: 'Gallery Serif Fallback';
  src: local('Georgia');
  font-weight: 600;
  size-adjust: 87.87%;
}
@font-face {
  font-family: 'Gallery Sans Fallback';
  src: local('Arial');
  font-weight: 400 600;
  size-adjust: 93.56%;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/assets/fonts/source-sans-3-roman.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --canvas: #101110;
  --surface: #151614;
  --text: #f3f0e8;
  --muted: #c1c2ba;
  --accent: #dfbd79;
  --border: #46473f;
  --control-border: #77796e;
  --rule: #796848;
  --heading: 'Source Serif 4', 'Gallery Serif Fallback', Georgia, serif;
  --body: 'Source Sans 3', 'Gallery Sans Fallback', Arial, sans-serif;
  --content-accent: var(--accent);
  --content-tint: #181b18;
  --content-border: var(--border);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      ellipse at 65% 8%,
      rgba(41, 35, 27, 0.1450980392),
      transparent 68%
    ),
    var(--canvas);
  color: var(--text);
  font: 18px/1.5 var(--body);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button,
input,
select,
textarea {
  font: inherit;
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
summary,
select {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 4.2vw, 64px);
}

h2 {
  font-size: clamp(28px, 2.5vw, 38px);
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--accent);
  color: #101211;
  padding: 12px;
}

.skip-link:focus {
  top: 8px;
}

.shop-header {
  border-bottom: 1px solid var(--border);
  background: #101211;
}

.shop-header__inner {
  max-width: 1408px;
  margin: auto;
  padding: 8px 24px;
  display: flex;
  gap: 32px;
  align-items: center;
}

.shop-wordmark {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 3px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.shop-wordmark span {
  color: var(--accent);
}

.shop-wordmark small {
  display: block;
  font: 10px/1.6 var(--body);
  letter-spacing: 3.4px;
  margin-top: 4px;
  color: var(--accent);
}

.shop-navigation {
  display: flex;
  gap: 26px;
  margin: auto;
}

.shop-navigation a {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 10px 0;
}

.shop-navigation a:hover,
.shop-footer a:hover {
  color: var(--accent);
}

.shop-menu {
  display: none;
}

.shop-menu:not([open]) nav {
  display: none;
}

.site-search-form {
  display: flex;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  min-width: 0;
  width: 280px;
}

.site-search-form input {
  width: 100%;
  min-width: 0;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 10px 12px;
  font-size: 16px;
}

.site-search-form button {
  min-height: 44px;
  color: var(--accent);
  border: 0;
  border-left: 1px solid var(--control-border);
  background: transparent;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
}

.site-search-form__label,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shop-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.shop-footer__inner {
  max-width: 1408px;
  padding: 24px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 32px;
  font-size: 16px;
  color: var(--muted);
}

.shop-footer__inner p {
  max-width: 520px;
  margin: 16px 0 0;
}

.shop-footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
}

.shop-container {
  max-width: 1408px;
  margin: auto;
  padding: 18px 24px 32px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.section-heading::after {
  content: '';
  height: 1px;
  background: var(--rule);
  flex: 1;
  order: 1;
}

.section-heading a {
  order: 2;
  color: var(--accent);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.shop-button,
.btn-buy,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: linear-gradient(110deg, #edcf93, #d3ac68);
  color: #101211;
  font-weight: 600;
  text-decoration: none;
}

.shop-button:hover,
.btn-buy:hover,
.btn-primary:hover {
  background: #f0d8a9;
}

.shop-button--quiet {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.shop-button--quiet:hover {
  background: #111311;
}

.product-grid,
.pgrid,
.related-grid,
.category-grid,
.search-results {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.pcard,
.related-card,
.category-card,
.search-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  overflow: hidden;
}

.pcard,
.related-card,
.category-card {
  display: flex;
  flex-direction: column;
}

.pcard-link,
.related-card a,
.category-card,
.search-card__link {
  text-decoration: none;
  display: block;
}

.category-grid > .category-card,
#relatedGrid > .category-card,
#relatedGrid > .related-card,
.product-grid > .category-card {
  display: flex;
  flex-direction: column;
}

.related-card > a {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.pimg,
.card-image {
  position: relative;
  aspect-ratio: 1.45;
  background: #23221e;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pimg img,
.related-card img,
.category-card img,
.search-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  object-fit: contain;
}

.pimg img {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
}

.pimg-ph {
  width: 50%;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.pimg-ph svg {
  width: 50%;
}

.pbody,
.related-card__body,
.category-card__body,
.search-card__copy {
  padding: 10px 12px;
  display: block;
}

.pname,
.related-card strong,
.category-card strong,
.search-card h2 {
  display: block;
  font: 600 19px/1.2 var(--heading);
  overflow-wrap: anywhere;
}

.pcard .pname {
  min-height: 46px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.pcard-link {
  min-height: 0;
  flex: 1;
}

.pcard .pbody {
  display: flex;
  flex-direction: column;
}

.pcard .pname {
  order: 0;
}

.pcard .pcat {
  order: 1;
}

.pcard .pcta {
  margin-top: auto;
}

.pcat,
.pstore,
.related-card__body > span,
.category-card__category,
.category-card__store {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0;
}

.pcta {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
  align-items: center;
}

.pcard .pcta {
  display: grid;
  grid-template-columns: 1fr auto auto;
}

.pcard .pcta .btn-buy {
  grid-column: 1/-1;
  width: 100%;
  min-height: 44px;
}

.pcard .btn-like,
.pcard .btn-share {
  border: 0;
  height: 44px;
  background: transparent;
}

.pcard .btn-like {
  grid-column: 2;
}

.pcard .card-retailer {
  grid-column: 1;
  font-size: 12px;
  color: var(--muted);
}

.pcta .btn-buy {
  flex: 1;
  font-size: 15px;
  padding: 8px;
}

.btn-like,
.btn-share {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: transparent;
  color: var(--text);
}

.btn-like svg,
.btn-share svg {
  width: 20px;
  height: 20px;
}

.btn-share .ico-check {
  display: none;
}

.btn-share.is-copied .ico-clip {
  display: none;
}

.btn-share.is-copied .ico-check {
  display: block;
}

.btn-like.is-liked {
  color: var(--accent);
}

.pcorner,
.pfeatured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(16, 18, 17, 0.9098039216);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 5px 7px;
  border: 1px solid var(--border);
}

.pfeatured {
  left: auto;
  right: 10px;
}

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

.game-card {
  position: relative;
  min-height: 148px;
  background: linear-gradient(145deg, #302b22, #131513);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.game-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(9, 11, 9, 0.9294117647));
}

.game-card h3,
.game-card p {
  position: relative;
  z-index: 1;
}

.game-card h3 {
  margin: 0 0 4px;
  font-size: 27px;
}

.game-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.card-disclosure {
  display: block;
  text-align: center;
  font: 400 13px/1.4 var(--body);
  color: var(--muted);
  margin-top: 8px;
}

.category-card__body,
.related-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-card__body strong,
.related-card__body strong {
  order: 0;
}

.category-card__category,
.related-card__body > span:not(.shop-button) {
  order: 1;
}

.category-card__store {
  display: none;
}

.category-card__body .shop-button,
.related-card__body .shop-button {
  order: 2;
  width: 100%;
  margin-top: auto;
  color: #101211;
}

.card-disclosure {
  order: 3;
}

.game-card:hover {
  border-color: var(--accent);
}

.empty-state {
  padding: 32px;
  grid-column: 1/-1;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 32px 0;
}

.pagination a,
.pagination button {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}

.pagination [aria-current],
.pagination .is-active {
  background: var(--accent);
  color: #101211;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.7;
}

@media (max-width: 1100px) {
  .shop-header__inner {
    gap: 20px;
    flex-wrap: wrap;
  }
  .shop-navigation {
    gap: 20px;
  }
  .site-search-form {
    width: 220px;
  }
  .product-grid,
  .pgrid,
  .related-grid,
  .category-grid,
  .search-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .shop-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
  }
  .shop-header__inner {
    padding: 14px 16px;
    gap: 12px;
  }
  .shop-wordmark {
    font-size: 20px;
    letter-spacing: 2px;
  }
  .shop-wordmark small {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .shop-navigation {
    display: none;
  }
  .shop-menu {
    display: block;
    margin-left: auto;
  }
  .shop-menu summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px;
  }
  .shop-menu nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 16px;
    top: 72px;
    z-index: 20;
    background: var(--surface);
    border: 1px solid var(--border);
    width: 220px;
    padding: 12px;
  }
  .shop-menu nav a {
    padding: 12px;
    text-decoration: none;
  }
  .site-search-form {
    width: 100%;
  }
  .shop-container {
    padding: 28px 16px;
  }
  .shop-footer__inner {
    padding: 32px 16px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-grid,
  .pgrid,
  .related-grid,
  .category-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .game-card {
    padding: 16px;
  }
  .game-card h3 {
    font-size: 23px;
  }
  .pcta {
    flex-wrap: wrap;
  }
  .pcta .btn-buy {
    flex-basis: 100%;
  }
  .pname {
    font-size: 18px;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .section-heading a {
    white-space: normal;
    max-width: 90px;
  }
}
@media (max-width: 374px) {
  .product-grid,
  .pgrid,
  .related-grid,
  .category-grid,
  .search-results {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.catalog-header {
  max-width: 850px;
  margin-bottom: 32px;
}

.catalog-header h1 {
  margin: 8px 0 16px;
}

.catalog-header p {
  color: var(--muted);
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-bottom: 24px;
}

.catalog-filters label {
  flex: 1 1 160px;
  font-size: 14px;
  font-weight: 600;
}

.catalog-filters select {
  display: block;
  margin-top: 6px;
  width: 100%;
  min-height: 44px;
  background: var(--canvas);
  color: var(--text);
  border: 1px solid var(--control-border);
  border-radius: 4px;
  padding: 8px;
}

.catalog-status {
  color: var(--muted);
  margin: 16px 0;
}

.catalog-filters details {
  width: 100%;
}

.catalog-filters summary {
  min-height: 44px;
  color: var(--accent);
}

.catalog-filters__more {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
}

.category-page {
  max-width: 1408px;
  margin: auto;
  padding: 40px 24px;
}

.category-description {
  color: var(--muted);
  max-width: 760px;
}

.category-kicker {
  color: var(--accent);
}

.category-title {
  margin: 16px 0;
}

.category-card__category {
  color: var(--accent);
}

.shop-auxiliary {
  cursor: auto;
  font-family: var(--body);
  background: var(--canvas);
}

.shop-auxiliary::before {
  display: none;
}

.shop-auxiliary .cursor,
.shop-auxiliary .cursor-ring {
  display: none;
}

.shop-auxiliary h1,
.shop-auxiliary h2,
.shop-auxiliary h3,
.shop-auxiliary .page-title,
.shop-auxiliary .shead {
  font-family: var(--heading);
}

.shop-auxiliary p,
.shop-auxiliary a,
.shop-auxiliary button {
  font-family: var(--body);
}

.shop-auxiliary .shop-wordmark {
  font-family: var(--heading);
}

.shop-auxiliary .shop-header {
  position: relative;
}

.shop-auxiliary .page-hero {
  min-height: 220px;
}

.shop-auxiliary .shop-footer {
  padding: 0;
}
