:root {
  --gtg-shop-ink: #25201d;
  --gtg-shop-muted: #62564d;
  --gtg-shop-card: #fffaf2;
  --gtg-shop-paper: #fffdf8;
  --gtg-shop-accent: #d25b43;
  --gtg-shop-yellow: #f6c53d;
  --gtg-shop-shadow: rgba(37, 32, 29, .95);
}

html.gtg-shop-discovery-page,
body.gtg-shop-discovery-page {
  overflow-x: hidden !important;
  scroll-padding-top: 130px;
}

.gtg-shop-discovery,
.gtg-shop-all-games {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  padding-top: 1.5rem;
  overflow: visible;
}

.admin-bar .gtg-shop-discovery,
.admin-bar .gtg-shop-all-games {
  padding-top: 4rem;
}

.gtg-shop-discovery,
.gtg-shop-discovery *,
.gtg-shop-all-games,
.gtg-shop-all-games * {
  box-sizing: border-box;
}

.gtg-shop-discovery a,
.gtg-shop-all-games a {
  color: inherit;
}

.gtg-shop-discovery__hero,
.gtg-shop-all-games__hero {
  padding: 0 1rem .35rem;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gtg-shop-discovery__hero-art,
.gtg-shop-discovery__hero-actions,
.gtg-shop-discovery__finder,
.gtg-shop-discovery__hero .gtg-shop-discovery__eyebrow,
.gtg-shop-discovery__category-hub .gtg-shop-discovery__section-head {
  display: none !important;
}

.gtg-shop-discovery__hero-copy h2,
.gtg-shop-all-games__hero h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .95;
  letter-spacing: -.035em;
}

.gtg-shop-discovery__hero-copy > p:not(.gtg-shop-discovery__eyebrow),
.gtg-shop-all-games__hero p:not(.gtg-shop-discovery__eyebrow) {
  max-width: 720px;
  margin: .35rem 0 0;
  color: var(--gtg-shop-muted);
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  line-height: 1.35;
}

.gtg-shop-discovery__category-hub {
  width: calc(100% - 2rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

.gtg-shop-discovery__category-grid,
.gtg-shop-discovery__shelf-tools,
.gtg-shop-discovery__front-filters,
.gtg-shop-discovery__section,
.gtg-shop-discovery__section-controls {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.gtg-shop-discovery__shelf-tools {
  display: grid;
  gap: .75rem;
}

.gtg-shop-discovery__shelf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.gtg-shop-discovery__tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .62rem .95rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 999px;
  background: var(--gtg-shop-card);
  color: var(--gtg-shop-ink) !important;
  box-shadow: 3px 3px 0 var(--gtg-shop-shadow);
  font-weight: 950;
  text-decoration: none !important;
  cursor: pointer;
}

.gtg-shop-discovery__tool-button--primary,
.gtg-shop-discovery__tool-button.is-active {
  background: var(--gtg-shop-yellow);
}

.gtg-shop-discovery__tool-button:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 4px 4px 0 var(--gtg-shop-shadow);
}

.gtg-shop-discovery__shelf-drawer {
  display: grid;
  gap: .65rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.gtg-shop-discovery__shelf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: .65rem;
  align-items: stretch;
}

.gtg-shop-discovery__shelf-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: 6.5rem;
  padding: .72rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 3px 3px 0 var(--gtg-shop-shadow);
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
  animation: gtgShelfFloat 7s ease-in-out infinite;
  animation-delay: var(--shelf-delay, 0s);
  transition: box-shadow .2s ease, outline-offset .2s ease, transform .2s ease;
}

.gtg-shop-discovery__shelf-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--shelf-image, #6b584c);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.04);
  transition: transform .25s ease;
}

.gtg-shop-discovery__shelf-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.36);
  z-index: -1;
  transition: background .2s ease;
}

.gtg-shop-discovery__shelf-card:hover::before {
  transform: scale(1.08);
}

.gtg-shop-discovery__shelf-card:hover::after {
  background: rgba(0,0,0,.24);
}

.gtg-shop-discovery__shelf-card strong {
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.gtg-shop-discovery__shelf-card.is-current {
  outline: 3px solid var(--gtg-shop-yellow);
  outline-offset: 2px;
  box-shadow: 4px 4px 0 var(--gtg-shop-shadow);
}

@keyframes gtgShelfFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -2px; }
}

.gtg-shop-discovery__front-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(130px, .65fr)) auto;
  gap: .55rem;
  align-items: end;
  padding: .72rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 18px;
  background: var(--gtg-shop-card);
  box-shadow: 3px 3px 0 var(--gtg-shop-shadow);
}

.gtg-shop-discovery__front-filters label {
  display: grid;
  gap: .28rem;
  font-weight: 900;
  color: var(--gtg-shop-muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.gtg-shop-discovery__front-filters select,
.gtg-shop-discovery__front-filters input[type='range'] {
  width: 100%;
}

.gtg-shop-discovery__front-filters select {
  min-height: 2.45rem;
  padding: .45rem .65rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 12px;
  background: #fff;
  color: var(--gtg-shop-ink);
  font: inherit;
  font-weight: 800;
}

.gtg-shop-discovery__front-filters input[type='range'] {
  accent-color: var(--gtg-shop-accent);
}

.gtg-shop-discovery__front-filters button {
  min-height: 2.45rem;
  padding: .48rem .75rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 999px;
  background: var(--gtg-shop-yellow);
  color: var(--gtg-shop-ink);
  box-shadow: 3px 3px 0 var(--gtg-shop-shadow);
  font-weight: 950;
  cursor: pointer;
}

.gtg-shop-discovery__price-slider-head {
  display: flex;
  justify-content: space-between;
}

.gtg-shop-discovery__price-value {
  color: var(--gtg-shop-ink);
  font-weight: 950;
}

.gtg-shop-discovery__price-steps {
  display: flex;
  justify-content: space-between;
  gap: .3rem;
  color: var(--gtg-shop-muted);
  font-size: .66rem;
  font-weight: 850;
}

.gtg-shop-discovery__section,
.gtg-shop-discovery__section--inline-all {
  padding-left: 1rem;
  padding-right: 1rem;
}

.gtg-shop-discovery__section:not(.is-active-shelf),
.gtg-shop-discovery__source-section {
  display: none !important;
}

.gtg-shop-discovery__section-head {
  position: relative;
}

.gtg-shop-discovery__section-head .gtg-shop-discovery__eyebrow {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  margin: 0;
  padding: .28rem .55rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 999px;
  background: var(--gtg-shop-yellow);
  color: var(--gtg-shop-ink) !important;
  box-shadow: 2px 2px 0 var(--gtg-shop-shadow);
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}

.gtg-shop-discovery__section-head h3 {
  padding-right: 10rem;
}

.gtg-shop-discovery__section-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: .25rem auto 1rem;
  padding: .6rem .75rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.gtg-shop-sortbar {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--gtg-shop-ink);
  font-size: .92rem;
  font-weight: 900;
  line-height: 1;
}

.gtg-shop-sortbar__label {
  color: var(--gtg-shop-muted);
  font-weight: 900;
}

.gtg-shop-sortbar__field {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .24rem;
  min-height: auto;
  padding: .12rem 0;
  border: 0;
  background: transparent;
  color: var(--gtg-shop-ink) !important;
  box-shadow: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.gtg-shop-sortbar__field:hover > span:first-child,
.gtg-shop-sortbar__field:focus-visible > span:first-child,
.gtg-shop-sortbar__field.is-active > span:first-child {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.gtg-shop-sortbar__arrow {
  display: inline-block;
  width: .75rem;
  text-align: center;
  font-size: .72rem;
  line-height: 1;
  opacity: .9;
  text-decoration: none !important;
}

.gtg-shop-sortbar__field:not(.is-active) .gtg-shop-sortbar__arrow {
  visibility: hidden;
}

.gtg-shop-discovery__rail,
.gtg-shop-discovery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: .2rem 0;
}

.gtg-shop-card-wrap {
  min-width: 0;
  width: auto;
  max-width: 100%;
}

.gtg-shop-card {
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 22px;
  background: white;
  box-shadow: 4px 4px 0 var(--gtg-shop-shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}

.gtg-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--gtg-shop-shadow);
}

.gtg-shop-card__badge,
.gtg-shop-card__toggle,
.gtg-shop-card__summary,
.gtg-shop-card__details,
.gtg-shop-card__meta,
.gtg-shop-card__facts,
.gtg-shop-card__pitch,
.gtg-shop-card__excerpt,
.gtg-shop-card__footer {
  display: none !important;
}

.gtg-shop-card__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: .35rem;
  background: #fff;
  overflow: hidden;
  border: 0;
}

.gtg-shop-card__image img {
  display: block;
  width: 100%;
  background: white;
  height: 198px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(31,34,38,.12));
  transition: transform .18s ease;
}

.gtg-shop-card:hover .gtg-shop-card__image img {
  transform: scale(1.025) rotate(-.6deg);
}

.gtg-shop-card__stickers {
  position: absolute;
  z-index: 5;
  left: .55rem;
  right: .55rem;
  bottom: .55rem;
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  align-items: flex-end;
  max-width: calc(100% - 1.1rem);
  pointer-events: none;
}

.gtg-shop-card__sticker {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .22rem .46rem;
  border: 1.5px solid var(--gtg-shop-ink);
  border-radius: 999px;
  background: #ead2bf;
  color: var(--gtg-shop-ink);
  font-size: .68rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.gtg-shop-card__sticker--time {
  background: var(--gtg-shop-yellow);
}

.gtg-shop-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: .55rem;
  padding: .85rem;
}

.gtg-shop-card h4 {
  margin: 0;
  min-height: 2.35em;
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.gtg-shop-card h4 a,
.gtg-shop-card h4 a:hover,
.gtg-shop-card h4 a:focus-visible {
  text-decoration: none !important;
}

.gtg-shop-card__display-price {
  display: block;
  color: var(--gtg-shop-accent);
  font-weight: 900;
}

.gtg-shop-card__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.45rem;
  margin-top: auto;
  padding: .5rem .65rem;
  border: 2px solid var(--gtg-shop-ink) !important;
  border-radius: 14px;
  background: var(--gtg-shop-accent) !important;
  color: #fff !important;
  box-shadow: 3px 3px 0 var(--gtg-shop-shadow);
  font-weight: 950;
  text-decoration: none !important;
}

.gtg-shop-card__button.is-loading {
  opacity: .76;
  pointer-events: none;
}

.gtg-shop-card__button.is-added {
  background: var(--gtg-shop-yellow) !important;
  color: var(--gtg-shop-ink) !important;
}

.gtg-shop-discovery__empty {
  color: var(--gtg-shop-muted);
  font-weight: 850;
}

.gtg-shop-discovery__lazy-sentinel {
  min-height: 1px;
}

.gtg-shop-all-games__layout {
  display: grid;
  grid-template-columns: minmax(220px,280px) 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0 1rem;
}

.gtg-shop-all-games__filters {
  display: grid;
  gap: .9rem;
  padding: .9rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 22px;
  background: #fffaf2;
  box-shadow: 4px 4px 0 var(--gtg-shop-shadow);
}

.gtg-shop-all-games__filters label,
.gtg-shop-all-games__filters fieldset {
  display: grid;
  gap: .45rem;
}

.gtg-shop-all-games__filters fieldset {
  margin: 0;
  padding: .75rem;
  border: 2px solid rgba(37,32,29,.22);
  border-radius: 16px;
}

.gtg-shop-all-games__results {
  display: grid;
  gap: .75rem;
}

.gtg-shop-discovery__toast {
  position: fixed;
  z-index: 99999;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .12rem .65rem;
  align-items: center;
  max-width: min(365px, calc(100vw - 2rem));
  padding: .82rem 1rem;
  border: 2px solid var(--gtg-shop-ink);
  border-radius: 22px;
  background: var(--gtg-shop-card);
  color: var(--gtg-shop-ink);
  box-shadow: 5px 5px 0 var(--gtg-shop-shadow);
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.92) rotate(-2deg);
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,1.35,.35,1);
}

.gtg-shop-discovery__toast::before,
.gtg-shop-discovery__toast::after {
  content: '✦';
  position: absolute;
  color: var(--gtg-shop-yellow);
  text-shadow: 1px 1px 0 var(--gtg-shop-ink);
  opacity: 0;
}

.gtg-shop-discovery__toast::before {
  right: .85rem;
  top: -.65rem;
}

.gtg-shop-discovery__toast::after {
  left: 2.35rem;
  bottom: -.65rem;
}

.gtg-shop-discovery__toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(-1deg);
}

.gtg-shop-discovery__toast.is-visible::before {
  animation: gtgToastSparkle .85s ease both;
}

.gtg-shop-discovery__toast.is-visible::after {
  animation: gtgToastSparkle .85s ease .12s both;
}

.gtg-shop-discovery__toast-icon {
  grid-row: 1/3;
  font-size: 1.9rem;
  filter: drop-shadow(1px 1px 0 var(--gtg-shop-ink));
  animation: gtgToastDice .55s cubic-bezier(.2,1.5,.35,1) both;
}

.gtg-shop-discovery__toast-title {
  font-size: 1.02rem;
  line-height: 1;
}

.gtg-shop-discovery__toast small {
  display: block;
  color: var(--gtg-shop-muted);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.2;
}

@keyframes gtgToastSparkle {
  0% { scale: .3; opacity: 0; rotate: -22deg; }
  42% { scale: 1.35; opacity: 1; }
  100% { scale: 1; opacity: .95; rotate: 14deg; }
}

@keyframes gtgToastDice {
  0% { scale: .4; rotate: -35deg; }
  60% { scale: 1.18; rotate: 12deg; }
  100% { scale: 1; rotate: 0deg; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .gtg-shop-discovery__shelf-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
  }

  .gtg-shop-discovery__shelf-card {
    min-height: 5.75rem;
  }
}

@media (max-width: 900px) {
  .gtg-shop-discovery__front-filters {
    grid-template-columns: 1fr 1fr;
  }

  .gtg-shop-discovery__front-filters button {
    grid-column: 1 / -1;
  }

  .gtg-shop-discovery__section-head h3 {
    padding-right: 0;
  }

  .gtg-shop-discovery__section-head .gtg-shop-discovery__eyebrow {
    position: static;
    margin-bottom: .45rem;
  }

  .gtg-shop-discovery__section-controls {
    justify-content: flex-start;
  }

  .gtg-shop-sortbar {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .gtg-shop-discovery,
  .gtg-shop-all-games {
    padding-top: 1rem;
  }

  .gtg-shop-discovery__hero,
  .gtg-shop-all-games__hero,
  .gtg-shop-discovery__section,
  .gtg-shop-all-games__layout {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .gtg-shop-discovery__category-hub {
    width: calc(100% - 1.5rem);
    padding: .75rem;
  }

  .gtg-shop-discovery__rail,
  .gtg-shop-discovery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .gtg-shop-card__image {
    min-height: 165px;
  }

  .gtg-shop-card__image img {
    height: 155px;
  }

  .gtg-shop-card h4 {
    font-size: .9rem;
  }

  .gtg-shop-discovery__shelf-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
  }

  .gtg-shop-discovery__shelf-card {
    min-height: 5.65rem;
  }

  .gtg-shop-all-games__layout {
    grid-template-columns: 1fr;
  }

  .gtg-shop-discovery__toast {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    max-width: none;
  }
}