@property --card-glint-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--primary-2) 22%, transparent) 0 18rem, transparent 31rem),
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--rose) 18%, transparent) 0 16rem, transparent 29rem),
    radial-gradient(circle at 50% 104%, color-mix(in srgb, var(--primary) 12%, transparent) 0 18rem, transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 62%, var(--bg));
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
::selection { color: var(--ink); background: var(--primary); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.pixel-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(234,212,170,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234,212,170,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
/* Header: brand left, primary nav centered, utility actions right. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto minmax(14rem, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 0.85rem 0;
  backdrop-filter: blur(14px);
}
.brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.72rem;
  min-height: 2.65rem;
  color: var(--green);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}
.brand img { width: 48px; height: 48px; image-rendering: pixelated; filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.28)); }
.pwa-logo-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 4.15rem;
  height: 4.15rem;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: url("../assets/sprites/pwa-earth.png") center / contain no-repeat;
  image-rendering: pixelated;
  filter:
    drop-shadow(2px 3px 0 rgba(0,0,0,0.28))
    drop-shadow(0 0 0.7rem color-mix(in srgb, var(--blue) 22%, transparent));
}
.pwa-logo-mark::before,
.pwa-logo-mark::after {
  content: none;
}
.pwa-logo-mark > span {
  position: absolute;
  z-index: 1;
  left: 0.2rem;
  right: 0.2rem;
  top: 43%;
  transform: translateY(-50%);
  display: block;
  text-align: center;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.025em;
  white-space: nowrap;
  text-shadow:
    2px 2px 0 color-mix(in srgb, var(--ink) 94%, transparent),
    -1px 1px 0 color-mix(in srgb, var(--ink) 88%, transparent),
    0 0 0.55rem color-mix(in srgb, var(--green) 35%, transparent);
}
.footer-logo-mark {
  width: 3.25rem;
  height: 3.25rem;
}
.footer-logo-mark > span {
  font-size: 0.84rem;
  top: 43%;
}
.top-nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.74rem, 1.65vw, 1.28rem);
  min-width: 0;
  padding: 0.55rem 1.48rem;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 64%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 8px 22px rgba(13,11,16,0.13);
}
.top-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.14rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 780;
  line-height: 1;
  padding: 0 0.14rem;
  border-radius: 0;
  transition: color 150ms ease;
}
.top-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.05rem;
  width: 0.29rem;
  height: 0.29rem;
  border-radius: 0;
  background: color-mix(in srgb, var(--primary) 72%, var(--muted));
  opacity: 0;
  transform: translateX(-50%) scale(0.72);
  box-shadow: none;
  transition: opacity 150ms ease, transform 150ms ease, background-color 150ms ease;
  pointer-events: none;
}
.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav a[aria-current="page"] {
  color: var(--primary);
  background: transparent;
  text-decoration: none;
  outline: 0;
}
.top-nav a:hover::after,
.top-nav a:focus-visible::after,
.top-nav a[aria-current="page"]::after {
  opacity: 0.78;
  transform: translateX(-50%) scale(1);
}

.top-nav a.nav-rewards {
  color: color-mix(in srgb, var(--edg-yellow) 86%, var(--paper));
}
.top-nav a.nav-rewards:hover,
.top-nav a.nav-rewards:focus-visible,
.top-nav a.nav-rewards[aria-current="page"] {
  color: var(--edg-yellow);
}
.top-nav a.nav-rewards::after {
  background: color-mix(in srgb, var(--edg-yellow) 78%, var(--primary));
}

.header-actions {
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: clamp(0.84rem, 1.08vw, 1.12rem);
  min-width: 0;
  white-space: nowrap;
}
.header-link,
.header-action {
  position: relative;
  min-height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  text-underline-offset: 0.34em;
  cursor: pointer;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.header-link:hover,
.header-link:focus-visible,
.header-action:hover,
.header-action:focus-visible {
  color: var(--primary);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  outline: 0;
}

.header-link::after,
.header-action.ghost::after,
.header-action.support::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 0.22rem;
  height: 0.22rem;
  background: color-mix(in srgb, var(--primary) 58%, var(--muted));
  opacity: 0;
  transform: translateX(-50%) scale(0.82);
  transition: opacity 150ms ease, transform 150ms ease, background-color 150ms ease;
  pointer-events: none;
}
.header-link:hover::after,
.header-link:focus-visible::after,
.header-action.ghost:hover::after,
.header-action.ghost:focus-visible::after,
.header-action.support:hover::after,
.header-action.support:focus-visible::after {
  opacity: 0.58;
  transform: translateX(-50%) scale(1);
}
.header-action.support::after {
  background: color-mix(in srgb, var(--edg-yellow) 68%, var(--primary));
}

.header-action.join {
  min-height: 2.18rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--primary) 60%, var(--edg-yellow));
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 90%, white 5%), color-mix(in srgb, var(--primary) 77%, black 11%));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -2px 0 rgba(0,0,0,0.26), 0 2px 0 rgba(14,11,20,0.72);
  text-decoration: none;
}
.header-action.join:hover,
.header-action.join:focus-visible {
  color: var(--ink);
  filter: brightness(1.04);
  text-decoration: none;
  border-color: color-mix(in srgb, var(--edg-yellow) 58%, var(--primary));
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 92%, white 7%), color-mix(in srgb, var(--primary) 78%, black 9%));
}
.header-action.support {
  color: color-mix(in srgb, var(--edg-yellow) 82%, var(--muted));
}
.header-action.support:hover,
.header-action.support:focus-visible {
  color: var(--edg-yellow);
}
.header-action:active { transform: none; }
.header-action.join:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0,0,0,0.26), 0 1px 0 rgba(14,11,20,0.72); }
.header-actions .theme-toggle { margin-left: 0; flex: 0 0 auto; }
.section-pad { width: min(100% - 2rem, var(--max)); margin: 0 auto; padding: clamp(2.4rem, 4.6vw, 4.6rem) 0; }
.hero.section-pad { padding-top: clamp(1.1rem, 2vw, 2rem); padding-bottom: clamp(1.15rem, 2.8vw, 2.8rem); }
.eyebrow {
  margin: 0 0 0.72rem;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 {
  max-width: 13ch;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 4.05rem);
  letter-spacing: 0.004em;
  text-shadow: 1px 1px 0 rgba(14,11,20,0.58);
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.9vw, 3.25rem);
  letter-spacing: 0.006em;
}
h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.012em;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  min-height: min(34rem, calc(62svh - 2rem));
}
.hero-text { max-width: 42rem; color: var(--muted); font-size: clamp(0.98rem, 1.55vw, 1.08rem); margin: 1rem 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.72rem; margin-top: 1.2rem; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}
.hero-badges li,
.mode-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  padding: 0.38rem 0.58rem;
  border-radius: var(--radius-xs);
  font-size: 0.92rem;
}
.bit-button {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.7rem;
  padding: 0.62rem 0.92rem;
  border: 1px solid color-mix(in srgb, var(--edg-cloud) 20%, transparent);
  border-radius: var(--radius-xs);
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-bg) 94%, white 5%), color-mix(in srgb, var(--btn-bg) 78%, black 12%));
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -3px 0 rgba(0,0,0,0.30),
    var(--shadow-press);
  transition: filter 120ms ease, box-shadow 120ms ease, transform 80ms ease, border-color 120ms ease;
}
.bit-button:hover, .bit-button:focus-visible {
  filter: brightness(1.06);
  border-color: color-mix(in srgb, var(--primary) 54%, white 8%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -3px 0 rgba(0,0,0,0.30),
    0 3px 0 rgba(14,11,20,0.92),
    0 0 0 3px rgba(254,174,52,0.10),
    0 7px 14px rgba(0,0,0,0.16);
}
.bit-button:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.34),
    inset 0 -1px 0 rgba(255,255,255,0.08),
    0 1px 0 rgba(14,11,20,0.90);
}
.bit-button.primary { --btn-bg: var(--primary); --btn-fg: var(--ink); border-color: color-mix(in srgb, var(--edg-yellow) 54%, white 8%); }
.bit-button.secondary { --btn-bg: var(--edg-deep-forest); --btn-fg: var(--paper); }
.bit-button.quiet { --btn-bg: color-mix(in srgb, var(--surface) 86%, black); --btn-fg: var(--muted); }
.bit-button.compact { min-height: 2.25rem; padding: 0.46rem 0.68rem; font-size: 0.84rem; }
.bit-button.tiny { min-height: 2.05rem; padding: 0.39rem 0.62rem; font-size: 0.8rem; }
.hero-device { position: relative; min-height: 23rem; display: grid; place-items: center; }
.screen-frame {
  padding: 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-panel);
}
.world-diorama {
  width: min(27rem, 88vw);
  border: 2px solid rgba(14,11,20,0.78);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  image-rendering: pixelated;
}
.cart { position: absolute; width: 5.2rem; filter: drop-shadow(5px 6px 0 rgba(0,0,0,0.18)); opacity: 0.94; image-rendering: pixelated; }
.cart-a { left: 5%; bottom: 14%; transform: rotate(-8deg); }
.cart-b { right: 2%; top: 14%; transform: rotate(8deg); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.section-heading.narrow { display: block; max-width: 46rem; }
.section-note { color: var(--muted); max-width: 39rem; }
.collection-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.collection-card {
  min-height: 13rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.08)), var(--surface);
  box-shadow: var(--shadow-soft);
}
.collection-card.green { border-color: color-mix(in srgb, var(--green) 44%, transparent); }
.collection-card.amber { border-color: color-mix(in srgb, var(--primary) 44%, transparent); }
.collection-card.blue { border-color: color-mix(in srgb, var(--blue) 44%, transparent); }
.collection-card.rose { border-color: color-mix(in srgb, var(--rose) 44%, transparent); }
.collection-icon {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(14,11,20,0.82);
  border-radius: var(--radius-xs);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12) 0 50%, transparent 0),
    linear-gradient(0deg, rgba(0,0,0,0.15) 0 50%, transparent 0),
    var(--primary);
  background-size: 8px 8px, 8px 8px, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 2px 2px 0 rgba(0,0,0,0.30);
}
.collection-icon::after { content: ""; width: 0.72rem; height: 0.72rem; background: rgba(14,11,20,0.82); box-shadow: 8px 0 0 rgba(14,11,20,0.82), 0 8px 0 rgba(14,11,20,0.82); }
.collection-card.green .collection-icon { --primary: var(--green); }
.collection-card.amber .collection-icon { --primary: var(--primary); }
.collection-card.blue .collection-icon { --primary: var(--blue); }
.collection-card.rose .collection-icon { --primary: var(--rose); }
.collection-card p { color: var(--muted); margin-bottom: 0; }
.search-box input {
  width: min(25rem, 100%);
  min-height: 2.86rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.16);
  color: var(--text);
  padding: 0.72rem 0.86rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(254,174,52,0.12); }
.catalog-tools {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 0; }
.chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  padding: 0.41rem 0.64rem;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.chip:hover { color: var(--paper); border-color: var(--line-strong); }
.chip.active {
  color: var(--ink);
  background: linear-gradient(180deg, var(--edg-yellow), var(--primary));
  border-color: color-mix(in srgb, var(--edg-yellow) 72%, white 8%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 1px 0 rgba(14,11,20,0.82);
}
.shelf-controls {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: 2.1rem minmax(4.6rem, auto) 2.1rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.pager-button {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(14,11,20,0.78);
  border-radius: var(--radius-xs);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 92%, var(--paper)), var(--surface));
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 0 rgba(0,0,0,0.28);
}
.pager-button:hover:not(:disabled) { color: var(--edg-yellow); border-color: var(--line-strong); }
.pager-button:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(0,0,0,0.22), 0 1px 0 rgba(0,0,0,0.25); }
.pager-button:disabled { opacity: 0.38; cursor: not-allowed; }
.page-indicator {
  min-width: 4.6rem;
  text-align: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.shelf-count {
  margin: -0.25rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.shelf-panel {
  position: relative;
  overflow: visible;
  padding: 1rem 1rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.14)),
    rgba(0,0,0,0.10);
  box-shadow: var(--shadow-panel);
}
.shelf-top,
.shelf-lip {
  height: 0.64rem;
  border: 1px solid rgba(14,11,20,0.78);
  border-radius: var(--radius-xs);
  background: linear-gradient(180deg, var(--edg-rust), var(--edg-clay));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 3px 0 rgba(0,0,0,0.26);
}
.shelf-top { margin-bottom: 1rem; }
.shelf-lip { margin-top: 1rem; }
body:not(.cool) .shelf-top,
body:not(.cool) .shelf-lip { background: linear-gradient(180deg, #8f4f3d, #5b312e); }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; align-items: stretch; }
@media (min-width: 1360px) {
  .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.game-card {
  --card-glint-angle: 0deg;
  --card-border-size: 3px;
  --card-glint-speed: 1.05s;
  --card-border-base: color-mix(in srgb, var(--line) 78%, var(--surface-3) 22%);
  position: relative;
  overflow: hidden;
  border: var(--card-border-size) solid transparent;
  border-radius: var(--radius-sm);
  background-image:
    linear-gradient(180deg, rgba(255,235,198,0.045), rgba(0,0,0,0.10)),
    linear-gradient(180deg, var(--surface), var(--surface)),
    conic-gradient(from var(--card-glint-angle),
      var(--card-border-base) 0deg 214deg,
      color-mix(in srgb, var(--primary-2) 76%, var(--card-accent, var(--primary)) 24%) 238deg,
      color-mix(in srgb, var(--featured) 90%, white 4%) 255deg,
      color-mix(in srgb, var(--card-accent, var(--primary)) 88%, white 8%) 274deg,
      color-mix(in srgb, var(--hot) 74%, var(--rose) 26%) 292deg,
      var(--card-border-base) 318deg 360deg);
  background-origin: padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, border-box;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: box-shadow 160ms ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover,
.game-card:focus-within {
  animation: card-border-glint var(--card-glint-speed) linear infinite;
  box-shadow:
    var(--shadow-soft),
    0 0 0 1px color-mix(in srgb, var(--card-accent, var(--primary)) 34%, transparent),
    0 0 18px color-mix(in srgb, var(--card-accent, var(--primary)) 16%, transparent);
}
@keyframes card-border-glint { to { --card-glint-angle: 360deg; } }
.game-glow { display: none; }
.game-media, .game-body { position: relative; z-index: 1; }
.game-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  /* Landscape frame: width × 0.618 height. The artwork inside remains a square. */
  aspect-ratio: 1 / 0.618;
  padding: 0.76rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(0,0,0,0.11)),
    color-mix(in srgb, var(--card-accent, var(--surface-2)) 18%, var(--surface-2));
  border-bottom: 1px solid rgba(14,11,20,0.48);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.game-thumb {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(14,11,20,0.82);
  border-radius: var(--radius-xs);
  background: var(--ink);
  image-rendering: pixelated;
}

@media (max-width: 680px) {
  .game-hook { min-height: auto; }
}

.badge-list { position: absolute; left: 1rem; top: 1rem; display: flex; flex-wrap: wrap; gap: 0.35rem; max-width: calc(100% - 2rem); }
.badge {
  padding: 0.23rem 0.42rem;
  border: 1px solid rgba(14,11,20,0.78);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--paper) 88%, var(--surface));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.64rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.25);
}
.badge.hot { background: color-mix(in srgb, var(--hot) 76%, var(--paper)); }
.badge.new { background: color-mix(in srgb, var(--new) 76%, var(--paper)); }
.badge.featured { background: color-mix(in srgb, var(--featured) 84%, var(--paper)); }
.badge.heating-up { background: color-mix(in srgb, var(--heating) 78%, var(--paper)); }
.badge.playable { background: color-mix(in srgb, var(--paper) 90%, white 5%); }
.badge.prototype { background: color-mix(in srgb, var(--violet) 70%, var(--paper)); }
.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.92rem;
}
.game-title-row { display: flex; align-items: start; justify-content: space-between; gap: 0.75rem; }
.game-build { color: var(--primary); font-family: var(--font-display); font-size: 0.68rem; white-space: nowrap; }
.game-hook { color: var(--muted); min-height: 4.75rem; margin: 0.72rem 0; }
.network-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.68rem 0; }
.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.14);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.62rem;
}
.network-pill::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--offline); box-shadow: 1px 1px 0 var(--ink); }
.network-pill.online::before { background: var(--online); }
.network-pill.server::before { background: var(--blue); }
.network-pill.p2p::before { background: var(--violet); }
.network-pill.match-based::before { background: var(--rose); }
.live-meter {
  margin: 0.58rem 0 0.5rem;
  padding: 0.44rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--line) 84%, var(--online) 16%);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, rgba(0,0,0,0.18) 84%, var(--online) 16%);
}
.live-meter-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.32rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.68rem;
}
.live-meter-label span:first-child::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.34rem;
  background: var(--online);
  box-shadow: 1px 1px 0 var(--ink);
}
.meter-track { height: 0.36rem; border: 1px solid rgba(14,11,20,0.76); background: rgba(0,0,0,0.22); border-radius: var(--radius-xs); overflow: hidden; }
.meter-track span { display: block; width: var(--meter, 0%); height: 100%; background: linear-gradient(90deg, var(--online), var(--heating)); }
.tag-list, .game-terrain { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-list { margin: 0.8rem 0; }
.tag { border: 1px solid var(--line); border-radius: var(--radius-xs); color: var(--muted); background: rgba(0,0,0,0.10); padding: 0.19rem 0.36rem; font-size: 0.72rem; }
.game-terrain { margin: 0.65rem 0 0; }
.terrain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--paper);
  background: rgba(0,0,0,0.14);
  font-family: var(--font-display);
  font-size: 0.62rem;
}
.terrain-pill::before { content: ""; width: 0.45rem; height: 0.45rem; background: var(--card-accent, var(--primary)); box-shadow: 1px 1px 0 var(--ink); }
.game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: auto; padding-top: 0.78rem; }
.game-details {
  margin-top: 0.78rem;
  padding: 0.78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.13);
  color: var(--muted);
  font-size: 0.9rem;
}
.terrain-panel, .notes-panel {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(99,199,77,0.08), rgba(254,174,52,0.06) 45%, rgba(0,153,219,0.05)),
    var(--surface);
  box-shadow: var(--shadow-panel);
}
.terrain-panel { grid-template-columns: minmax(0, 0.85fr) minmax(22rem, 1.15fr); }
.notes-panel { grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr); }
.terrain-copy p, .notes-panel p { color: var(--muted); }
.terrain-list { display: grid; gap: 0.45rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.terrain-list li { position: relative; padding-left: 1.35rem; color: var(--muted); }
.terrain-list li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.58rem; height: 0.58rem; background: var(--primary); box-shadow: 1px 1px 0 var(--ink); }
.tile-kit-card { margin: 0; padding: 0.72rem; border: 1px solid rgba(14,11,20,0.70); border-radius: var(--radius-sm); background: rgba(0,0,0,0.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03); }
.tile-kit-card img { width: 100%; border-radius: var(--radius-xs); border: 1px solid var(--line); image-rendering: pixelated; }
.tile-kit-card figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.7rem; }
.note-list { display: grid; gap: 0.8rem; }
.note-list article { padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,0.10); }
.note-list strong { display: block; font-family: var(--font-display); color: var(--primary); letter-spacing: 0.01em; }
.note-list span { display: block; color: var(--muted); margin-top: 0.25rem; }
.site-footer {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4vw, 3.5rem) max(1rem, calc((100vw - var(--max)) / 2)) 1.3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.18)),
    radial-gradient(circle at 12% 0%, rgba(255,189,104,0.10), transparent 34rem),
    radial-gradient(circle at 88% 20%, rgba(113,214,178,0.07), transparent 26rem),
    color-mix(in srgb, var(--bg) 86%, var(--surface));
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
  align-items: stretch;
}
.footer-brand-panel, .footer-card {
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.12);
  box-shadow: inset 0 1px 0 rgba(255,235,198,0.035);
}
.footer-brand-panel { padding: 1.05rem; }
.footer-card { padding: 1rem; }
.footer-brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
}
.footer-brand img { image-rendering: pixelated; }
.footer-brand-panel p, .footer-card p { margin: 0.65rem 0 0; color: var(--muted); line-height: 1.55; }
.footer-card h2 { margin: 0.25rem 0 0; font-size: 1.12rem; line-height: 1.12; }
.footer-kicker {
  margin: 0 !important;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-mini-links, .footer-actions, .footer-legal { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; }
.footer-mini-links { margin-top: 1rem; }
.footer-mini-links a, .footer-legal a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-mini-links a:hover, .footer-legal a:hover { color: var(--paper); border-color: color-mix(in srgb, var(--primary) 60%, transparent); }
.footer-actions { margin-top: 0.9rem; }
.footer-button { min-width: 7.8rem; justify-content: center; }
.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.newsletter-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  font: inherit;
  padding: 0.66rem 0.72rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.22);
}
.newsletter-form input::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
.newsletter-form input:focus { outline: 2px solid color-mix(in srgb, var(--primary) 38%, transparent); outline-offset: 2px; border-color: var(--primary); }
.footer-status { min-height: 1.25rem; font-size: 0.88rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: clamp(1rem, 3vw, 1.65rem);
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  font-size: 0.92rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.empty-state { grid-column: 1 / -1; padding: 2rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); text-align: center; }

.hero + .catalog-section { padding-top: clamp(0.65rem, 1.7vw, 1.35rem); }
.catalog-section { scroll-margin-top: 5rem; }
.collections-section, .terrain-section, .notes-section { scroll-margin-top: 5rem; }

@media (max-width: 1180px) and (min-width: 981px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand-panel { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { grid-template-columns: 1fr; }
  .footer-button { width: 100%; }
  .footer-actions { align-items: stretch; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1050px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .shelf-controls { align-self: start; }
}
@media (max-width: 680px) {
  .game-grid { grid-template-columns: 1fr; }
  .shelf-count { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .game-card:hover, .game-card:focus-within { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}
@media (max-width: 1180px) and (min-width: 981px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(9rem, 0.8fr) auto minmax(12rem, 1.05fr);
    gap: 0.65rem;
  }
  .top-nav { gap: clamp(0.58rem, 1.35vw, 1.08rem); padding-inline: 0.95rem; }
  .header-actions { gap: 0.53rem; }
  .header-link { display: none; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 1.2rem; }
  .hero-device { min-height: 17rem; }
  .game-grid, .collection-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { display: grid; align-items: start; }
  .notes-panel, .terrain-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 0.64rem;
  }
  .brand { grid-column: 1; }
  .header-actions { grid-column: 2; width: auto; margin-left: auto; }
  .header-action.support,
  .header-action.ghost,
  .header-link { display: none; }
  .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: space-between;
    font-size: 0.84rem;
    overflow-x: auto;
  }
  .section-pad { width: min(100% - 1rem, var(--max)); padding: 2.25rem 0; }
  .hero.section-pad { padding-top: 1rem; padding-bottom: 1.15rem; }
  .hero-device { display: none; }
  .game-grid, .collection-row { grid-template-columns: 1fr; }
  .hero-actions .bit-button { width: 100%; }
  .cart { width: 5rem; }
  .game-actions { grid-template-columns: 1fr; }
}

/* Quieter card metadata + diagonal status strips. */
.game-card {
  overflow: visible;
}
.ribbon-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.corner-ribbon {
  position: absolute;
  top: 1.05rem;
  right: -2.85rem;
  width: 9.4rem;
  transform: rotate(45deg);
  transform-origin: center;
  padding: 0.22rem 0.35rem 0.24rem;
  border: 1px solid rgba(14,11,20,0.82);
  background: var(--edg-mist);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.62rem;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.012em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 2px 0 rgba(14,11,20,0.78),
    0 6px 12px rgba(0,0,0,0.16);
}
.corner-ribbon.hot { background: linear-gradient(180deg, var(--edg-hot), var(--edg-red)); color: var(--edg-white); }
.corner-ribbon.heating-up { background: linear-gradient(180deg, var(--edg-orange), var(--edg-brick)); color: var(--edg-white); }
.corner-ribbon.new { background: linear-gradient(180deg, var(--edg-green), var(--edg-forest)); color: var(--edg-white); }
.corner-ribbon.featured { background: linear-gradient(180deg, var(--edg-yellow), var(--edg-gold)); color: var(--ink); }
.corner-ribbon.playable { background: linear-gradient(180deg, var(--edg-cloud), var(--edg-mist)); color: var(--ink); }
.corner-ribbon.preview { background: linear-gradient(180deg, var(--edg-purple), var(--edg-indigo)); color: var(--edg-white); }
.corner-ribbon.ribbon-2 { top: 3.2rem; opacity: 0.95; }

.game-media { overflow: hidden; }
.game-thumb { filter: saturate(0.96) contrast(1.02); }
.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 0.72rem 0 0;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--primary)) 36%, var(--line));
  border-radius: var(--radius-xs);
  color: color-mix(in srgb, var(--paper) 86%, var(--muted));
  background: color-mix(in srgb, var(--card-accent, var(--surface)) 12%, rgba(0,0,0,0.12));
  font-size: 0.75rem;
  font-weight: 650;
}
.meta-chip::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  background: var(--card-accent, var(--primary));
  box-shadow: 1px 1px 0 var(--ink);
}
.tag-list,
.game-terrain,
.badge-list {
  display: none !important;
}
.game-hook {
  min-height: 3.55rem;
}
.game-details {
  color: color-mix(in srgb, var(--muted) 88%, var(--paper));
  line-height: 1.52;
}
.game-details p {
  margin: 0 0 0.62rem;
}
.game-details p:last-child {
  margin-bottom: 0;
}
.game-details strong {
  color: var(--paper);
  font-weight: 750;
}
.detail-tags {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.bit-button {
  border-color: color-mix(in srgb, var(--edg-cloud) 16%, transparent);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--btn-bg) 92%, var(--edg-cloud) 4%),
      color-mix(in srgb, var(--btn-bg) 84%, var(--ink) 10%));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -2px 0 rgba(0,0,0,0.34),
    0 2px 0 rgba(14,11,20,0.90),
    0 5px 10px rgba(0,0,0,0.12);
}
.bit-button:hover,
.bit-button:focus-visible {
  filter: brightness(1.04);
  border-color: color-mix(in srgb, var(--primary) 34%, var(--line-strong));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -2px 0 rgba(0,0,0,0.32),
    0 2px 0 rgba(14,11,20,0.90),
    0 0 0 2px rgba(254,174,52,0.075),
    0 6px 11px rgba(0,0,0,0.13);
}
.bit-button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.32),
    inset 0 -1px 0 rgba(255,255,255,0.07),
    0 1px 0 rgba(14,11,20,0.88);
}

@media (max-width: 720px) {
  .corner-ribbon { right: -3.05rem; }
  .game-hook { min-height: auto; }
}

#themeToggle {
  /* Kept at zero so Donate ↔ theme spacing matches the rest of the right nav. */
  width: 9.75rem;
  min-width: 9.75rem;
  white-space: nowrap;
  text-align: center;
  flex: 0 0 9.75rem;
  margin-left: 0;
}
@media (max-width: 700px) {
  #themeToggle { width: 8.75rem; min-width: 8.75rem; flex-basis: 8.75rem; }
  .header-action { font-size: 0.78rem; }
}

/* MVP promo carousel + player reward layer. */
.hero-carousel {
  grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.82fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.promo-carousel {
  position: relative;
  min-width: 0;
}
.promo-viewport {
  display: grid;
  min-height: clamp(20rem, 35vw, 26rem);
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 18rem),
    linear-gradient(180deg, rgba(255,235,198,0.035), rgba(0,0,0,0.13)),
    color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.promo-viewport::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 6rem;
  height: 0.5rem;
  opacity: 0.18;
  background: repeating-linear-gradient(90deg, var(--primary) 0 0.45rem, transparent 0.45rem 0.82rem);
  image-rendering: pixelated;
}
.promo-slide {
  grid-area: 1 / 1;
  padding: clamp(1.1rem, 2.7vw, 1.65rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(0.55rem);
  transition: opacity 260ms ease, transform 260ms ease, visibility 260ms ease;
}
.promo-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.promo-slide h1 {
  max-width: 15ch;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
}
.promo-slide .hero-text {
  max-width: 44rem;
}
.promo-controls {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  margin-top: 0.78rem;
}
.promo-nav,
.promo-pause,
.promo-dot {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.16);
  color: var(--muted);
  cursor: pointer;
}
.promo-nav {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: var(--radius-xs);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 0 rgba(0,0,0,0.26);
}
.promo-nav:hover,
.promo-nav:focus-visible { border-color: var(--primary); color: var(--primary); }
.promo-dots { display: inline-flex; align-items: center; gap: 0.38rem; padding: 0 0.16rem; }
.promo-dot {
  width: 0.72rem;
  height: 0.72rem;
  padding: 0;
  border-radius: 2px;
  transform: rotate(45deg);
}
.promo-dot.active {
  background: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 72%, white 6%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}
.promo-pause {
  min-width: 5.1rem;
  min-height: 2.05rem;
  padding: 0.35rem 0.62rem;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 700;
}
.promo-pause:hover,
.promo-pause:focus-visible { color: var(--paper); border-color: var(--line-strong); }
.store-badges li:nth-child(1)::before,
.store-badges li:nth-child(2)::before,
.store-badges li:nth-child(3)::before { content: "▣ "; color: var(--primary); }

.promo-device { min-height: 20rem; }
.rewards-frame {
  width: min(25rem, 92vw);
  padding: 0.72rem;
}
.reward-console {
  min-height: 18rem;
  padding: 1rem;
  border: 2px solid rgba(14,11,20,0.78);
  border-radius: var(--radius-xs);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 84%, var(--bg)), var(--surface));
  background-size: 16px 16px, 16px 16px, auto;
  box-shadow: inset 0 1px 0 rgba(255,235,198,0.08);
}
.reward-topline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--paper);
  font-family: var(--font-display);
  line-height: 1.1;
}
.reward-topline span { display: block; margin-top: 0.22rem; color: var(--muted); font-family: var(--font-body); font-size: 0.86rem; font-weight: 600; }
.reward-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid rgba(14,11,20,0.82);
  border-radius: var(--radius-xs);
  background:
    linear-gradient(90deg, transparent 0 35%, var(--ink) 35% 45%, transparent 45% 55%, var(--ink) 55% 65%, transparent 65%),
    linear-gradient(180deg, var(--primary) 0 52%, var(--rose) 52%);
  image-rendering: pixelated;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.22);
}
.reward-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}
.reward-stats span,
.store-track span {
  padding: 0.58rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.16);
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
}
.reward-stats strong { display: block; color: var(--primary); font-family: var(--font-display); font-size: 1.08rem; }
.token-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.25rem 0 1rem;
  padding: 0.7rem;
  border: 1px dashed color-mix(in srgb, var(--primary) 42%, var(--line));
  border-radius: var(--radius-xs);
}
.token-track span {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(14,11,20,0.82);
  border-radius: 3px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,189,104,0.10), 2px 2px 0 rgba(0,0,0,0.22);
}
.token-track span:nth-child(2) { background: var(--green); }
.token-track span:nth-child(3) { background: var(--rose); }
.token-track span:nth-child(4) { background: var(--cyan); }
.token-track span:nth-child(5) { background: var(--featured); }
.store-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.store-track span { font-weight: 750; color: var(--paper); }

.rewards-section { scroll-margin-top: 5rem; }
.rewards-panel {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 22rem),
    linear-gradient(180deg, rgba(255,235,198,0.035), rgba(0,0,0,0.12)),
    rgba(0,0,0,0.08);
  box-shadow: var(--shadow-panel);
}
.rewards-heading { align-items: start; }
.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.reward-card {
  min-height: 17rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(0,0,0,0.11)), var(--surface);
  box-shadow: var(--shadow-soft);
}
.reward-card h3 { margin-top: 0.55rem; font-size: 1.05rem; }
.reward-card p { color: var(--muted); }
.reward-kicker {
  margin: 0.72rem 0 0 !important;
  color: var(--primary) !important;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.reward-icon {
  display: inline-block;
  width: 2.3rem;
  height: 2.3rem;
  border: 2px solid rgba(14,11,20,0.82);
  border-radius: var(--radius-xs);
  background: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 3px 3px 0 rgba(0,0,0,0.20);
  image-rendering: pixelated;
}
.reward-icon.token { background: linear-gradient(135deg, var(--primary) 0 50%, var(--featured) 50%); }
.reward-icon.credit { background: linear-gradient(180deg, var(--green) 0 35%, var(--primary) 35% 70%, var(--rose) 70%); }
.reward-icon.premium { background: radial-gradient(circle at 50% 30%, var(--paper) 0 0.38rem, transparent 0.42rem), linear-gradient(180deg, var(--violet), var(--rose)); }
.reward-icon.avatar { background: linear-gradient(90deg, var(--cyan) 0 50%, var(--blue) 50%); }
.mock-row,
.wallet-mock,
.premium-strip,
.sprite-row,
.reward-cta-bar,
.reward-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.mock-row code {
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.18);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.78rem;
}
.wallet-mock span,
.premium-strip span {
  padding: 0.34rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--line));
  border-radius: var(--radius-xs);
  color: var(--paper);
  background: rgba(0,0,0,0.14);
  font-size: 0.78rem;
  font-weight: 700;
}
.sprite-row i {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(14,11,20,0.78);
  border-radius: 4px;
  background: var(--primary);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.22);
}
.sprite-row i:nth-child(2) { background: var(--green); }
.sprite-row i:nth-child(3) { background: var(--rose); }
.sprite-row i:nth-child(4) { background: var(--cyan); }
.reward-cta-bar {
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.16);
}
.reward-cta-bar strong { display: block; color: var(--paper); font-family: var(--font-display); }
.reward-cta-bar span { display: block; color: var(--muted); }

@media (max-width: 1050px) {
  .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) and (min-width: 981px) {
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-carousel { grid-template-columns: 1fr; }
  .promo-viewport { min-height: 23rem; }
}
@media (max-width: 640px) {
  .promo-slide h1 { font-size: clamp(1.85rem, 12vw, 2.55rem); }
  .promo-viewport { min-height: 29rem; }
  .promo-controls { flex-wrap: wrap; }
  .promo-pause { min-width: 4.8rem; }
  .reward-grid { grid-template-columns: 1fr; }
  .reward-stats { grid-template-columns: 1fr; }
  .store-track { grid-template-columns: 1fr; }
  .reward-cta-actions .bit-button { flex: 1 1 100%; }
}


/* Player-facing promotions page. */
.promo-page-main .section-pad { padding-top: clamp(1.35rem, 3vw, 2.4rem); padding-bottom: clamp(1.35rem, 3vw, 2.4rem); }
.promo-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.65fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}
.promo-page-copy,
.promo-wallet-card,
.token-panel,
.benefit-card {
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 18rem),
    linear-gradient(180deg, rgba(255,235,198,0.04), rgba(0,0,0,0.12)),
    var(--surface);
  box-shadow: var(--shadow-panel);
}
.promo-page-copy { padding: clamp(1rem, 3vw, 1.75rem); }
.promo-page-copy h1 { max-width: 16ch; margin-top: 0.4rem; font-size: clamp(2.35rem, 6vw, 4.7rem); }
.promo-wallet-card { padding: clamp(1rem, 2.3vw, 1.35rem); }
.wallet-large {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed color-mix(in srgb, var(--primary) 42%, var(--line));
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.16);
}
.wallet-large strong { display: block; color: var(--primary); font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4rem); line-height: 0.9; }
.wallet-large span { color: var(--muted); font-weight: 700; }
.wallet-lines { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.wallet-lines span,
.benefit-card span {
  display: block;
  padding: 0.56rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.14);
  color: var(--muted);
  font-size: 0.92rem;
}
.promo-step-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(14,11,20,0.8);
  border-radius: var(--radius-xs);
  background: var(--primary);
  color: var(--ink);
  font-family: var(--font-display);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.18);
}
.benefit-card { padding: 1rem; min-height: 9rem; }
.benefit-card strong { display: block; margin-bottom: 0.65rem; color: var(--paper); font-family: var(--font-display); font-size: 1.02rem; }
.token-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.7fr);
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}
.token-panel p { color: var(--muted); }
.token-actions-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.16);
}
.token-input { display: grid; gap: 0.35rem; margin: 0.8rem 0; color: var(--muted); font-weight: 700; }
.token-input input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.2);
  color: var(--paper);
  padding: 0.7rem 0.75rem;
  font: inherit;
}
@media (max-width: 980px) {
  .promo-page-hero, .token-panel { grid-template-columns: 1fr; }
  .promo-step-grid, .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .promo-step-grid, .benefit-grid { grid-template-columns: 1fr; }
}

/* Sellable promo cards: make hero carousel feel like featured store offers. */
.promo-viewport {
  min-height: clamp(19rem, 31vw, 24rem);
}
.promo-slide {
  padding: clamp(0.9rem, 2vw, 1.2rem);
}
.promo-slide-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.58fr);
  gap: clamp(0.85rem, 2.3vw, 1.35rem);
  align-items: stretch;
  min-height: 100%;
}
.promo-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(0.45rem, 1.8vw, 0.75rem);
}
.promo-message .hero-actions { margin-top: 1.1rem; }
.promo-offer-card {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 17rem;
  padding: 0.95rem;
  border: 2px solid color-mix(in srgb, var(--line-strong) 68%, var(--card-accent, var(--primary)) 18%);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 18% 4%, color-mix(in srgb, var(--card-accent, var(--primary)) 18%, transparent), transparent 9rem),
    linear-gradient(180deg, rgba(255,235,198,0.045), rgba(0,0,0,0.18)),
    color-mix(in srgb, var(--surface-2) 88%, var(--bg));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 10px 22px rgba(0,0,0,0.22);
  overflow: hidden;
}
.promo-offer-card::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  opacity: 0.16;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 100%);
  background-size: 14px 14px;
  image-rendering: pixelated;
}
.token-offer { --card-accent: var(--primary); }
.phone-offer { --card-accent: var(--green); }
.shelf-offer { --card-accent: var(--rose); }
.offer-topline,
.account-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--paper);
  font-family: var(--font-display);
  line-height: 1.1;
}
.offer-topline span:not(.offer-pixel),
.account-card-head span:not(.reward-avatar) {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
}
.offer-pixel {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border: 2px solid rgba(14,11,20,0.82);
  border-radius: 6px;
  background: var(--card-accent, var(--primary));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 3px 3px 0 rgba(0,0,0,0.24);
  image-rendering: pixelated;
}
.offer-pixel.token { background: linear-gradient(135deg, var(--primary) 0 48%, var(--featured) 48% 72%, var(--rose) 72%); }
.offer-pixel.phone { background: linear-gradient(180deg, var(--green) 0 24%, var(--ink) 24% 36%, var(--cyan) 36% 78%, var(--primary) 78%); }
.offer-pixel.shelf { background: radial-gradient(circle at 50% 30%, var(--paper) 0 0.3rem, transparent 0.34rem), linear-gradient(135deg, var(--rose), var(--violet)); }
.offer-code {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0.8rem;
  padding: 0.72rem 0.7rem;
  border: 1px dashed color-mix(in srgb, var(--card-accent, var(--primary)) 56%, var(--line));
  border-radius: var(--radius-xs);
  color: var(--paper);
  background: rgba(0,0,0,0.20);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-align: center;
}
.offer-rewards,
.offer-platform-row,
.offer-live-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.52rem;
}
.offer-rewards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offer-rewards span,
.offer-platform-row span,
.offer-live-row {
  padding: 0.55rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--card-accent, var(--primary)) 34%, var(--line));
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.16);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}
.offer-rewards strong { display: block; color: var(--card-accent, var(--primary)); font-family: var(--font-display); font-size: 1rem; }
.offer-platform-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0.95rem 0 0.7rem; }
.offer-platform-row span { font-family: var(--font-display); }
.offer-live-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin: 1rem 0 0.7rem;
  text-align: left;
}
.offer-live-row em {
  color: var(--primary);
  font-style: normal;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.live-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent);
}
.offer-mini-note {
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.account-preview-frame { width: min(25rem, 92vw); padding: 0.72rem; }
.account-preview {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border: 2px solid rgba(14,11,20,0.78);
  border-radius: var(--radius-xs);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 84%, var(--bg)), var(--surface));
  background-size: 16px 16px, 16px 16px, auto;
  box-shadow: inset 0 1px 0 rgba(255,235,198,0.08);
}
.account-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.account-progress div {
  height: 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  overflow: hidden;
}
.account-progress i {
  display: block;
  width: var(--progress, 50%);
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--green));
}
.account-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.account-wallet-grid span,
.mini-game-benefits span {
  padding: 0.58rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.16);
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 750;
}
.account-wallet-grid strong { display: block; color: var(--primary); font-family: var(--font-display); font-size: 1.08rem; }
.mini-game-benefits { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mini-game-benefits span { flex: 1 1 auto; color: var(--paper); }
@media (max-width: 1180px) {
  .promo-slide-shell { grid-template-columns: 1fr; }
  .promo-offer-card { min-height: 12.5rem; }
  .offer-rewards.three { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .promo-viewport { min-height: 30rem; }
}
@media (max-width: 640px) {
  .promo-viewport { min-height: 39rem; }
  .offer-platform-row, .offer-live-row { grid-template-columns: 1fr; text-align: center; }
  .offer-rewards.three { grid-template-columns: 1fr; }
}


/* Wide-screen polish: use more of large displays without making cards feel skinny. */
@media (min-width: 1181px) {
  .section-pad,
  .site-header {
    width: min(calc(100% - clamp(1.25rem, 3vw, 4rem)), var(--max));
  }

  .hero-carousel {
    grid-template-columns: minmax(0, 1.18fr) minmax(22rem, 0.82fr);
  }

  .promo-slide-shell {
    grid-template-columns: minmax(0, 1.18fr) minmax(22rem, 0.74fr);
  }

  .promo-message .hero-text {
    max-width: 52rem;
  }

  .shelf-panel {
    padding: 1.15rem 1.15rem 1.45rem;
  }

  .game-grid {
    grid-template-columns: repeat(4, minmax(17.75rem, 1fr));
    gap: 1.35rem;
  }

  .game-media {
    padding: 0.82rem;
  }

  .game-thumb {
    height: 100%;
    width: auto;
  }
}

@media (min-width: 1520px) {
  .game-grid {
    grid-template-columns: repeat(5, minmax(17.5rem, 1fr));
    gap: 1.55rem;
  }

  .game-body {
    padding: 1.02rem;
  }
}

@media (min-width: 1720px) {
  .promo-viewport {
    min-height: clamp(22rem, 25vw, 27.5rem);
  }
}

@media (min-width: 1500px) {
  .promo-offer-card {
    min-height: 18.75rem;
    padding: 1.1rem;
  }

  .account-preview-frame {
    width: min(29rem, 92vw);
  }
}

@media (min-width: 1880px) {
  :root { --max: 1840px; }
}

/* Game detail pages and linked card artwork/title */
.game-thumb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.game-thumb-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -4px;
}
.game-title-link {
  color: var(--paper);
  text-decoration: none;
  transition: color 150ms ease;
}
.game-title-link:hover,
.game-title-link:focus-visible {
  color: var(--primary);
  outline: 0;
}
.game-page-main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}
.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding-top: clamp(1.25rem, 3vw, 2.4rem);
}
.game-hero-copy,
.game-hero-art,
.game-info-panel,
.game-detail-panel,
.game-promo-panel,
.game-news-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(0,0,0,0.12)),
    var(--surface);
  box-shadow: var(--shadow-panel);
}
.game-hero-copy {
  padding: clamp(1.15rem, 3vw, 2rem);
  display: grid;
  align-content: center;
}
.game-hero-copy h1 {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}
.game-hero-copy .hero-text { max-width: 60rem; }
.game-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}
.game-hero-art {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  min-height: 25rem;
  padding: clamp(1rem, 3vw, 1.45rem);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--card-accent, var(--primary)) 30%, transparent) 0 7rem, transparent 15rem),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(0,0,0,0.2)),
    color-mix(in srgb, var(--card-accent, var(--surface-2)) 14%, var(--surface-2));
}
.game-page-thumb-frame {
  aspect-ratio: 1 / 0.618;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.7rem, 2vw, 1rem);
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--card-accent, var(--primary)) 12%);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.16);
}
.game-page-thumb {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid rgba(14,11,20,0.82);
  border-radius: var(--radius-sm);
  background: var(--ink);
  box-shadow: 0 14px 36px rgba(0,0,0,0.26);
}
.game-mini-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.game-mini-stat {
  padding: 0.62rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.14);
}
.game-mini-stat strong {
  display: block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.game-mini-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.game-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(0.9rem, 2vw, 1.25rem);
}
.game-info-panel,
.game-detail-panel,
.game-promo-panel,
.game-news-panel {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}
.game-info-list {
  display: grid;
  gap: 0.72rem;
  margin: 0;
}
.game-info-list div {
  display: grid;
  grid-template-columns: 8.25rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.game-info-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.game-info-list dd {
  margin: 0;
  color: var(--paper);
}
.game-detail-panel h2,
.game-promo-panel h2,
.game-news-panel h2 {
  margin: 0 0 0.7rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 0.92;
}
.how-list,
.news-list,
.promo-list,
.benefit-list {
  display: grid;
  gap: 0.64rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.how-list li,
.news-list li,
.promo-list li,
.benefit-list li {
  position: relative;
  padding: 0.72rem 0.75rem 0.72rem 1.9rem;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.12);
  color: var(--muted);
}
.how-list li::before,
.news-list li::before,
.promo-list li::before,
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0.78rem;
  top: 1rem;
  width: 0.48rem;
  height: 0.48rem;
  background: color-mix(in srgb, var(--card-accent, var(--primary)) 82%, var(--primary));
  box-shadow: 1px 1px 0 var(--ink);
}
.game-promo-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}
.related-games-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.related-game-card {
  display: grid;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.12);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.related-game-card:hover,
.related-game-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 56%, var(--line));
  background: rgba(255,255,255,0.035);
  outline: 0;
}
.related-game-card img {
  width: 100%;
  aspect-ratio: 1 / 0.618;
  object-fit: contain;
  image-rendering: pixelated;
  border: 1px solid rgba(14,11,20,0.8);
  border-radius: var(--radius-xs);
  background: var(--ink);
}
.related-game-card strong {
  color: var(--paper);
}
@media (max-width: 980px) {
  .game-hero,
  .game-detail-grid,
  .game-promo-news-grid { grid-template-columns: 1fr; }
  .related-games-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .game-mini-stat-row,
  .related-games-row { grid-template-columns: 1fr; }
  .game-info-list div { grid-template-columns: 1fr; gap: 0.2rem; }
  .game-page-actions { display: grid; }
}

/* Final hero revision: clear left intro + right promo carousel. */
.hero-carousel {
  grid-template-columns: minmax(28rem, 0.98fr) minmax(25rem, 0.86fr);
  gap: clamp(1.4rem, 3.4vw, 3.2rem);
  align-items: center;
}
.hero-intro-copy {
  min-width: 0;
}
.hero-intro-copy .eyebrow {
  color: var(--premium);
}
.hero-intro-copy h1 {
  max-width: 12ch;
}
.hero-intro-copy .hero-text {
  max-width: 44rem;
}
.hero-intro-copy .hero-badges {
  margin-top: 1.05rem;
}
.hero-promo-panel {
  width: 100%;
  min-width: 0;
}
.hero-promo-panel .promo-viewport {
  min-height: clamp(26rem, 32vw, 31rem);
}
.hero-promo-panel .promo-slide {
  padding: clamp(0.95rem, 1.8vw, 1.25rem);
}
.hero-promo-panel .promo-slide-shell,
.hero-promo-panel .promo-slide-shell.single-offer {
  grid-template-columns: 1fr;
  gap: 0.88rem;
  align-items: stretch;
}
.hero-promo-panel .promo-message {
  justify-content: flex-start;
  padding: 0.28rem 0.2rem 0;
}
.hero-promo-panel .promo-message h2 {
  max-width: 13ch;
  font-size: clamp(1.55rem, 3.3vw, 2.35rem);
}
.hero-promo-panel .promo-message .hero-text {
  margin-top: 0.55rem;
  font-size: 0.96rem;
}
.hero-promo-panel .promo-message .hero-actions {
  margin-top: 0.85rem;
}
.hero-promo-panel .promo-offer-card {
  min-height: 14.4rem;
  padding: 0.92rem;
}
.hero-promo-panel .offer-rewards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-promo-panel .promo-controls {
  justify-content: center;
}

@media (max-width: 1180px) {
  .hero-carousel {
    grid-template-columns: 1fr;
  }
  .hero-promo-panel .promo-viewport {
    min-height: 27rem;
  }
  .hero-promo-panel .promo-slide-shell.single-offer {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  }
}

@media (max-width: 760px) {
  .hero-intro-copy h1 {
    max-width: 11ch;
  }
  .hero-promo-panel .promo-slide-shell.single-offer {
    grid-template-columns: 1fr;
  }
  .hero-promo-panel .promo-viewport {
    min-height: 39rem;
  }
  .hero-promo-panel .offer-rewards.three {
    grid-template-columns: 1fr;
  }
}

/* Carousel width/flow polish: make hero copy and promo card breathe horizontally. */
.hero.section-pad.hero-carousel {
  padding-top: clamp(1.05rem, 1.8vw, 1.8rem);
  padding-bottom: clamp(1.1rem, 2.4vw, 2.35rem);
}
.hero-carousel {
  grid-template-columns: minmax(36rem, 1.08fr) minmax(39rem, 0.98fr);
  gap: clamp(2rem, 3.1vw, 3.8rem);
  align-items: stretch;
}
.hero-intro-copy {
  align-self: center;
  max-width: 62rem;
}
.hero-intro-copy h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 5.9vw, 6.25rem);
  line-height: 0.91;
}
.hero-intro-copy .hero-text {
  max-width: 62rem;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.72;
}
.hero-promo-panel {
  align-self: center;
}
.hero-promo-panel .promo-viewport {
  min-height: clamp(18.75rem, 21vw, 23rem);
}
.hero-promo-panel .promo-slide {
  padding: clamp(1.05rem, 1.45vw, 1.35rem);
}
.hero-promo-panel .promo-slide-shell,
.hero-promo-panel .promo-slide-shell.single-offer {
  grid-template-columns: minmax(0, 1.08fr) minmax(16.5rem, 0.92fr);
  gap: clamp(1rem, 1.55vw, 1.55rem);
  align-items: center;
  min-height: 100%;
}
.hero-promo-panel .promo-message {
  min-width: 0;
  padding: 0.1rem 0 0.1rem 0.08rem;
}
.hero-promo-panel .promo-message h2 {
  max-width: 24ch;
  font-size: clamp(1.72rem, 2.35vw, 2.55rem);
  line-height: 0.98;
  text-wrap: balance;
}
.hero-promo-panel .promo-message .hero-text {
  max-width: 36rem;
  font-size: clamp(0.96rem, 1.1vw, 1.03rem);
  line-height: 1.58;
}
.hero-promo-panel .promo-message .hero-actions {
  margin-top: 0.95rem;
}
.hero-promo-panel .promo-offer-card {
  min-height: 14rem;
  padding: clamp(0.95rem, 1.2vw, 1.12rem);
}
.hero-promo-panel .promo-controls {
  justify-content: flex-start;
  padding-left: 0.15rem;
  margin-top: 0.72rem;
}

@media (max-width: 1280px) {
  .hero-carousel {
    grid-template-columns: minmax(30rem, 1fr) minmax(32rem, 0.96fr);
    gap: clamp(1.45rem, 2.4vw, 2.6rem);
  }
  .hero-intro-copy h1 {
    max-width: 16ch;
  }
  .hero-promo-panel .promo-slide-shell.single-offer {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.86fr);
  }
}

@media (max-width: 1080px) {
  .hero-carousel {
    grid-template-columns: 1fr;
  }
  .hero-intro-copy {
    max-width: 68rem;
  }
  .hero-intro-copy h1 {
    max-width: 18ch;
  }
  .hero-promo-panel .promo-viewport {
    min-height: 21.5rem;
  }
  .hero-promo-panel .promo-slide-shell.single-offer {
    grid-template-columns: minmax(0, 1.08fr) minmax(17rem, 0.88fr);
  }
}

@media (max-width: 760px) {
  .hero-intro-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 15vw, 4.3rem);
  }
  .hero-promo-panel .promo-slide-shell.single-offer {
    grid-template-columns: 1fr;
  }
  .hero-promo-panel .promo-viewport {
    min-height: 36rem;
  }
  .hero-promo-panel .promo-controls {
    margin-top: 0.65rem;
  }
}


/* Headline rhythm: keep each phrase intact when the hero title wraps. */
.headline-chunk {
  display: inline-block;
  white-space: nowrap;
}
