#game-content {
  --game-bg: #111313;
  --game-surface: #1e2422;
  --game-accent: #e3c24f;
  --game-text: #f6f5f2;
  --game-muted: #d0d3d1;
  --game-line: #ffffff2e;
  --game-space: clamp(1.25rem, 4.5vw, 4rem);
  background: var(--game-bg);
  color: var(--game-text);
  min-width: 0;
  overflow-wrap: anywhere;
}
#game-content[data-game="ri"] {
  --game-bg: #12362a;
  --game-surface: #1f493b;
  --game-accent: #f5d965;
  --game-text: #fffaf0;
  --game-muted: #deded2;
  font-family: Poppins, system-ui, sans-serif;
}
#game-content[data-game="ri"] .gb-game-heading h2 em {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
}
#game-content[data-game="ri"] .gb-ri-quality {
  display: block;
  width: 100%;
  padding: clamp(56px, 8vw, 112px) max(16px, 5.5vw) clamp(48px, 6vw, 88px);
  background: #0f2419;
  color: #f4efe2;
  border-top: 1px solid rgb(227 194 79 / .3);
}
.gb-ri-quality .gb-game-heading {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.gb-ri-quality .gb-game-heading h2 {
  max-width: none;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.gb-ri-quality .gb-game-heading p {
  max-width: 720px;
  margin: 0;
  color: #d9d2c0;
  font-size: clamp(1.125rem, 1rem + .45vw, 1.25rem);
  line-height: 1.55;
}
.gb-ri-quality-track {
  --quality-column: calc((100% - 60px) / 3.15);
  --quality-gap: 20px;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--quality-column);
  gap: var(--quality-gap);
  max-width: 1240px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: 4px 0 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #b8983a transparent;
  cursor: grab;
}
.gb-ri-quality-track:focus-visible {
  outline: 2px solid #e3c24f;
  outline-offset: 4px;
  border-radius: 8px;
}
.gb-ri-quality-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}
.gb-ri-quality-slide {
  margin: 0;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #1e4531;
  border: 1px solid rgb(227 194 79 / .3);
}
.gb-ri-quality-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gb-ri-quality-slide:first-child img { object-position: 94% 50%; }
@media (max-width: 1099px) {
  .gb-ri-quality-track { --quality-column: calc((100% - 40px) / 2.15); }
}
@media (max-width: 699px) {
  .gb-ri-quality-track { --quality-column: 88%; --quality-gap: 14px; }
  .gb-ri-quality-slide { border-radius: 12px; }
}
#game-content[data-game="gdg"] {
  --game-bg: #000;
  --game-surface: #191816;
  --game-accent: #f5c941;
}
#game-content[data-game="pop"] {
  --game-bg: #fff;
  --game-surface: #f1f0ec;
  --game-accent: #171717;
  --game-text: #171717;
  --game-muted: #454440;
  --game-line: #17171729;
  font-family: "PoP DM Sans", sans-serif;
}
.gb-game-section,
.gb-game-facts,
.gb-game-official,
.gb-game-unavailable {
  width: min(100%, 92rem);
  padding-inline: var(--game-space);
  margin-inline: auto;
  box-sizing: border-box;
}
.gb-game-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.3rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  min-width: 0;
}
.gb-game-section + .gb-game-section,
.gb-game-facts + .gb-game-section {
  border-top: 1px solid var(--game-line);
}
.gb-game-section > * { min-width: 0; }
.gb-game-heading { align-self: center; }
.gb-game-heading h2 {
  max-width: 23ch;
  font-size: clamp(1.65rem, 4.2vw, 3.4rem);
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 0;
}
.gb-game-heading p {
  max-width: 60ch;
  color: var(--game-muted);
  margin: .75rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
}
.gb-game-facts {
  display: flex;
  list-style: none;
  margin-block: 0;
  padding-block: 1.1rem;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem 1.35rem;
  font-weight: 650;
}
.gb-ri-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(40px, 5vw, 72px) max(16px, calc((100% - 1040px) / 2));
  margin: 0;
  background: #0f2419;
  list-style: none;
}
.gb-ri-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px 30px;
  border: 1px solid rgb(227 194 79 / .3);
  border-radius: 16px;
  background: rgb(227 194 79 / .08);
  text-align: center;
}
.gb-ri-fact img { height: 88px; width: auto; margin-bottom: 8px; }
.gb-ri-fact strong { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.01em; }
.gb-ri-fact span { font: italic 500 18px/1.4 "EB Garamond", Georgia, serif; color: #d9d2c0; }
@media (max-width: 700px) {
  .gb-ri-facts { grid-template-columns: 1fr; padding-inline: max(16px, calc((100% - 420px) / 2)); }
  .gb-ri-fact { padding: 24px 18px 22px; }
}
.gb-game-gallery {
  display: grid;
  gap: clamp(.55rem, 1.5vw, 1rem);
  min-width: 0;
  max-width: 100%;
}
.gb-game-gallery--deck,
.gb-game-gallery--feature:has(> :nth-child(2)),
.gb-game-gallery--learn:has(> :nth-child(2)) {
  display: flex;
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding: .25rem 0 .55rem;
}
.gb-game-gallery--deck > *,
.gb-game-gallery--learn:has(> :nth-child(2)) > * {
  flex: 0 0 clamp(8.5rem, 22%, 17rem);
  scroll-snap-align: start;
}
.gb-game-gallery--feature:has(> :nth-child(2)) > * {
  flex: 0 0 clamp(14rem, 74%, 35rem);
  scroll-snap-align: start;
}
.gb-game-gallery--components,
.gb-game-gallery--reviews,
.gb-game-reviews {
  grid-template-columns: repeat(auto-fit,minmax(min(12rem,100%),1fr));
}
.gb-game-gallery--logos {
  grid-template-columns: repeat(auto-fit,minmax(min(7rem,100%),1fr));
}
.gb-game-gallery-image {
  min-width: 0;
  padding: 0;
  background: var(--game-surface);
  color: inherit;
  border: 0;
  border-radius: .5rem;
  overflow: hidden;
  font: inherit;
  align-self: start;
  cursor: zoom-in;
}
.gb-game-gallery img {
  width: 100%;
  height: auto;
  display: block;
}
.gb-game-gallery--deck img { aspect-ratio: 5/7; object-fit: contain; }
.gb-game-gallery--logos img { aspect-ratio: 2; object-fit: contain; padding: .3rem; }
.gb-game-image-caption {
  display: block;
  padding: .5rem;
  text-align: left;
  font-size: .9rem;
  font-weight: 600;
}
.gb-game-reviews { display: grid; gap: 1rem; }
.gb-game-press {
  display: flex;
  gap: 1rem;
  overflow: auto hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-block-end: .55rem;
}
.gb-game-press a {
  flex: 0 0 clamp(14rem, 31%, 24rem);
  scroll-snap-align: start;
  text-decoration-thickness: .08em;
  text-underline-offset: .15em;
}
.gb-game-reviews figure,
.gb-game-press a {
  margin: 0;
  background: var(--game-surface);
  border-radius: .5rem;
  overflow: hidden;
  color: inherit;
}
.gb-game-reviews blockquote,
.gb-game-reviews figcaption,
.gb-game-press h3 { margin: 0; padding: .8rem 1rem; }
.gb-game-press h3 { font-size: 1rem; line-height: 1.35; }
.gb-game-press p { color: var(--game-muted); margin: 0; padding: 0 1rem .7rem; }
.gb-game-article-byline { font-size: .9rem; }
.gb-game-reviews figcaption { color: var(--game-muted); }
.gb-game-press img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.gb-game-play,
.gb-game-secondary,
.gb-game-photo button {
  display: inline-flex;
  width: fit-content;
  margin: .8rem .55rem 0 0;
  align-items: center;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid currentColor;
  border-radius: .35rem;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
}
.gb-game-play {
  border-color: var(--game-accent);
  background: var(--game-accent);
  color: var(--game-bg);
}
.gb-game-tutorial { min-width: 0; }
.gb-game-heading > .gb-game-tutorial { margin-top: .85rem; }
.gb-game-play--poster {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151515;
  color: #fff;
  border-color: var(--game-line);
}
.gb-game-play--poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gb-game-play-icon {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.75rem;
  min-height: 2.75rem;
  border-radius: .65rem;
  color: #fff;
  background: #151515f2;
  box-shadow: 0 0 0 2px #fff;
}
.gb-game-play-label {
  position: absolute;
  inset: auto 0 0;
  padding: .65rem .7rem;
  text-align: left;
  font-size: clamp(.85rem, 2vw, 1rem);
  line-height: 1.25;
  background: #151515ed;
}
.gb-game-play--poster:is(:hover,:focus-visible) .gb-game-play-icon {
  background: #b32623;
}
.gb-game-watch-link {
  display: inline-block;
  padding-block: .7rem;
  text-underline-offset: .22em;
  font-size: .92rem;
}
.gb-game-play:not(.gb-game-play--poster) + .gb-game-watch-link { margin-inline-start: .4rem; }
.gb-game-official { padding-block: 0 3rem; }
.gb-game-unavailable { padding-block: 2rem; }
.gb-game-photo {
  width: min(95vw, 62rem);
  max-height: 92dvh;
  background: #141414;
  color: #fff;
}
.gb-game-photo::backdrop { background: #000c; }
.gb-game-photo figure {
  display: grid;
  place-items: center;
  margin: .65rem 0;
}
.gb-game-photo img { display: block; max-width: 100%; max-height: 65dvh; object-fit: contain; }
.gb-game-photo-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gb-game-photo .gb-game-photo-caption { margin: 0; }
.gb-game-photo button { margin: 0; }
@media (min-width: 760px) {
  .gb-game-section--feature,
  .gb-game-section--learn,
  .gb-game-section--rule-image {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }
  .gb-game-section--image-first {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  }
  .gb-game-section--image-first .gb-game-heading {
    grid-column: 2;
    grid-row: 1;
  }
  .gb-game-section--image-first .gb-game-gallery {
    grid-column: 1;
    grid-row: 1;
  }
}
