/* Page layouts and responsive arrangement. Mobile first: 480 / 768 / 1024 / 1280 / 1680. */

/* ---------- Header ---------- */
.cx-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "brand actions" "search search";
  align-items: center;
  column-gap: 8px;
  min-height: var(--header-h);
  padding-inline: max(var(--page-margin), env(safe-area-inset-left)) max(var(--page-margin), env(safe-area-inset-right));
}
.cx-brand { grid-area: brand; height: var(--header-h); }
.cx-brand__logo { height: 38px; }
.cx-header__actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
.cx-search--header { grid-area: search; display: none; margin-bottom: 10px; }
.cx-header[data-search-open="true"] .cx-search--header,
.cx-header[data-search-open="pinned"] .cx-search--header { display: flex; }
.cx-header[data-search-open="pinned"] .cx-header__search-toggle { display: none; }

/* ---------- Category navigation: chip bar below the header on small screens ---------- */
.cx-side {
  display: flex;
  gap: 8px;
  padding: 12px max(var(--page-margin), env(safe-area-inset-right)) 4px max(var(--page-margin), env(safe-area-inset-left));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.cx-side::-webkit-scrollbar { display: none; }
.cx-side__list { display: flex; gap: 8px; flex: 0 0 auto; }
.cx-side__list + .cx-side__group + .cx-side__list { padding-left: 8px; border-left: 1px solid var(--color-border); }
.cx-side__count { display: none; }
.cx-page--game .cx-side { display: none; }
/* Reserve the JS-rendered header rows and the chip bar inserted after the header (no layout shift).
   Phones: header row + pinned search row (55) + chip bar (60). The footer starts below the fold. */
.cx-page--home .cx-header:empty { min-height: calc(var(--header-h) + 115px); }
.cx-main--home, .cx-main--game { min-height: calc(100vh - var(--header-h)); }

/* ---------- Page scaffolding ---------- */
.cx-main { padding-bottom: 8px; }
.cx-main--home > .cx-container { padding-top: 16px; }
.cx-section { margin-top: var(--section-gap); }
/* Home sections stack with one rhythm; hidden sections take no space. */
.cx-home { display: flex; flex-direction: column; gap: var(--section-gap); }
.cx-home > .cx-section { margin-top: 0; }
.cx-catalog__empty { margin-top: 4px; }
.cx-catalog[data-state="results"] .cx-catalog__empty, .cx-catalog[data-state="loading"] .cx-catalog__empty { display: none; }

/* ---------- Featured hero (phones: own vertical composition) ---------- */
.cx-section--featured {
  --hero-h: min(calc((100vw - 2 * var(--page-margin)) * 1.04), 66svh, 500px);
  position: relative;
}
.cx-hero__title { font-size: 32px; }

/* ---------- Grid ---------- */
@media (min-width: 600px) {
  .cx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-grid.cx-grid--spotlight { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Document pages ---------- */
.cx-main--document > .cx-container { padding-top: 28px; }
.cx-document { max-width: calc(var(--reading-max) + 2 * var(--page-margin)); line-height: 1.7; }
.cx-document__eyebrow { margin-bottom: 6px; }
.cx-document__header { padding-bottom: 8px; }
.cx-document__title { font-size: var(--fs-page-title); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; }
.cx-document__summary { margin-top: 12px; font-size: 17px; line-height: 1.65; color: var(--color-text-secondary); }
.cx-document__section { margin-top: 32px; scroll-margin-top: calc(var(--header-h) + 20px); }
.cx-document__section p, .cx-document__section li { color: var(--color-text-secondary); line-height: 1.75; }
.cx-document__section p { margin-top: 8px; }
.cx-document__section ul, .cx-document__section ol { margin-top: 8px; padding-left: 1.4em; }
.cx-document__heading { display: flex; align-items: center; gap: 10px; font-size: var(--fs-section-title); font-weight: 800; line-height: 1.3; letter-spacing: -0.015em; }
.cx-document__heading::before { content: ""; flex: 0 0 auto; width: 5px; height: 18px; background: linear-gradient(180deg, var(--color-gold), var(--color-accent-strong)); transform: skewX(-18deg); }
.cx-document .cx-privacy-panel { margin-top: 32px; }
.cx-document .cx-privacy-panel .cx-document__section { margin-top: 0; }
.cx-document .cx-privacy-panel p { margin-top: 0; }
.cx-privacy-panel .cx-switch { margin-top: 4px; }

/* ---------- 404 ---------- */
.cx-main--error > .cx-container { padding-top: 40px; }
.cx-error-page { display: flex; flex-direction: column; align-items: center; max-width: 560px; margin-inline: auto; text-align: center; }
.cx-error-page__visual { position: relative; padding: 18px 28px; }
.cx-error-page__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(closest-side, var(--color-accent-glow), transparent);
}
.cx-error-page__art { width: 150px; height: auto; }
.cx-error-page__art.is-art { width: 140px; height: 140px; object-fit: contain; }
.cx-error-page__code { margin-top: 12px; font-size: var(--fs-eyebrow); font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-gold-text); font-variant-numeric: tabular-nums; }
.cx-error-page__title { margin-top: 8px; font-size: 30px; font-weight: 900; font-style: italic; line-height: 1.1; letter-spacing: -0.025em; }
.cx-error-page__text { margin-top: 12px; font-size: var(--fs-body); line-height: 1.6; color: var(--color-text-secondary); }
.cx-error-page__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 24px; }
.cx-error-page__actions .cx-button { width: 100%; }
.cx-main--error .cx-more-games { margin-top: 48px; }
.cx-main--error > .cx-container { max-width: calc(1240px + 2 * var(--page-margin)); }
.cx-grid.cx-grid--more { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Game page ---------- */
.cx-main--game > .cx-container { padding-top: 14px; }
.cx-game-page {
  --cx-stage-w: min(100%, 1100px, calc((100svh - var(--header-h) - 210px) * var(--cx-game-ratio, 1.7778)));
  --cx-page-w: max(var(--cx-stage-w), min(100%, 760px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cx-game-bar { display: flex; align-items: center; gap: 10px 12px; width: var(--cx-page-w); margin-inline: auto; }
.cx-game-bar__heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; flex: 1 1 auto; }
.cx-game-bar__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background-color: var(--color-surface);
  color: var(--color-text-primary);
}
.cx-game-bar__back .cx-icon { width: 20px; height: 20px; }
.cx-game-header__title { font-size: 22px; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.cx-game-header__tags { display: none; }
.cx-game-header__fav { flex: 0 0 auto; padding: 0 14px; }
.cx-game-header__fav .cx-fav__label { display: none; }
.cx-game-layout { display: block; }
.cx-game-layout__main { position: relative; }
.cx-game-layout__main > .cx-skip-game { position: absolute; }
.cx-game-orientation { margin: 12px auto 0; max-width: 1100px; }

.cx-game-shell {
  --cx-game-ratio: 1.7778;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 1100px, calc((100vh - var(--header-h) - 210px) * var(--cx-game-ratio)));
  min-width: min(100%, 300px);
  margin-inline: auto;
}
@supports (height: 1svh) {
  .cx-game-shell { width: min(100%, 1100px, calc((100svh - var(--header-h) - 210px) * var(--cx-game-ratio))); }
}
.cx-game-shell[data-orientation="portrait"] { min-width: min(100%, 360px); }
.cx-game-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: var(--cx-game-aspect, 16 / 9);
  overflow: hidden;
  background-color: var(--color-game-viewport);
  border-radius: var(--radius-panel);
  box-shadow: 0 0 0 1px var(--color-border), 0 24px 60px color-mix(in srgb, var(--cx-game-accent, var(--color-violet)) 18%, transparent);
}
.cx-game-stage { position: absolute; inset: 0; }
.cx-game-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background-color: var(--color-game-viewport); }

/* Cover before Play: artwork backdrop, poster, title, Play */
.cx-game-cover { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background-color: var(--color-game-viewport); color: var(--color-game-text); }
.cx-game-cover__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--cx-focal, 50% 50%); }
.cx-game-cover[data-art="cover"] .cx-game-cover__image { filter: blur(18px) saturate(1.1); transform: scale(1.15); }
.cx-game-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 7, 18, 0.9) 0%, rgba(8, 7, 18, 0.62) 46%, rgba(8, 7, 18, 0.2) 100%);
}
.cx-game-cover[data-art="cover"]::after { background: rgba(8, 7, 18, 0.55); }
.cx-game-cover__content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 28px; width: 100%; max-width: 760px; padding: 16px; }
.cx-game-cover__poster { display: none; flex: 0 0 auto; width: clamp(120px, 20cqi, 200px); height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px rgba(0, 0, 0, 0.5); }
.cx-game-cover__info { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.cx-game-cover__eyebrow { display: none; font-size: var(--fs-eyebrow); font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-gold); }
.cx-game-cover__title { font-size: 22px; font-weight: 900; font-style: italic; line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.cx-game-cover__play { min-width: 160px; }
.cx-game-cover__inputs { display: none; font-size: 13px; font-weight: 600; color: var(--color-game-text-muted); }
.cx-game-cover--unavailable .cx-game-cover__content { flex-direction: column; gap: 10px; text-align: center; max-width: 440px; }
.cx-game-cover__emblem { width: 96px; height: auto; }
.cx-game-cover__art { width: 112px; height: 112px; object-fit: contain; }
.cx-game-cover__text { font-size: var(--fs-secondary); line-height: 1.5; color: var(--color-game-text-muted); }
.cx-game-cover__badge { margin: 0; background-color: rgba(242, 193, 78, 0.16); color: var(--color-gold); }

/* The cover adapts to the game viewport's own width (portrait games get a narrow viewport). */
.cx-game-viewport { container-type: inline-size; container-name: stage; }
@container stage (min-width: 600px) {
  .cx-game-cover__poster { display: block; }
  .cx-game-cover__info { align-items: flex-start; text-align: left; }
  .cx-game-cover__eyebrow, .cx-game-cover__inputs { display: block; }
  .cx-game-cover__title { font-size: 34px; }
  .cx-game-cover__content { justify-content: flex-start; padding: 24px 40px; }
  .cx-game-cover--unavailable .cx-game-cover__content { justify-content: center; }
  .cx-game-overlay__title { font-size: 24px; }
}
@container stage (min-width: 860px) {
  .cx-game-cover__title { font-size: 40px; }
  .cx-game-cover__content { padding: 24px 56px; }
}

/* Loading and error overlays */
.cx-game-overlay { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; overflow: hidden; text-align: center; background-color: var(--color-game-viewport); color: var(--color-game-text); }
.cx-game-overlay__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(0.32) saturate(1.1); transform: scale(1.06); }
.cx-game-overlay__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 420px; }
.cx-game-overlay__emblem { width: 88px; height: auto; margin-bottom: 4px; }
.cx-game-overlay__title { font-size: 20px; font-weight: 900; font-style: italic; letter-spacing: -0.02em; color: #fff; }
.cx-game-overlay__icon { width: 32px; height: 32px; color: var(--color-gold); }
.cx-game-overlay__text { font-size: var(--fs-secondary); line-height: 1.5; color: var(--color-game-text-muted); }
.cx-game-overlay__hint { font-size: 13px; line-height: 1.5; color: var(--color-game-text-muted); }
.cx-game-overlay .cx-button--secondary { background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); color: #fff; }

.cx-game-shell.is-expanded, .cx-game-shell:fullscreen, .cx-game-shell.is-fullscreen { width: 100%; min-width: 0; background-color: var(--color-overlay); gap: 0; }
.cx-game-shell.is-expanded { position: fixed; inset: 0; z-index: var(--z-expanded); margin: 0; }
.cx-game-shell.is-expanded .cx-game-viewport,
.cx-game-shell:fullscreen .cx-game-viewport,
.cx-game-shell.is-fullscreen .cx-game-viewport { flex: 1 1 auto; width: auto; height: auto; min-height: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.cx-game-shell.is-expanded .cx-game-toolbar,
.cx-game-shell:fullscreen .cx-game-toolbar,
.cx-game-shell.is-fullscreen .cx-game-toolbar { border-radius: 0; flex: 0 0 auto; }
.cx-game-shell.is-expanded .cx-game-stage,
.cx-game-shell:fullscreen .cx-game-stage,
.cx-game-shell.is-fullscreen .cx-game-stage { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.cx-game-shell.is-expanded .cx-game-viewport,
.cx-game-shell:fullscreen .cx-game-viewport,
.cx-game-shell.is-fullscreen .cx-game-viewport { position: relative; }
.cx-game-shell:fullscreen::backdrop { background-color: var(--color-overlay); }

.cx-info { width: var(--cx-page-w); margin: 6px auto 0; }
.cx-replay { width: var(--cx-stage-w); min-width: min(100%, 360px); margin: 12px auto 0; }
.cx-more-games { width: var(--cx-page-w); margin: 22px auto 0; }
.cx-more-games .cx-section__title { margin-bottom: 14px; }
.cx-strip { display: flex; gap: 12px; overflow-x: auto; padding: 6px 6px 12px; margin: 0 -6px; list-style: none; scrollbar-width: thin; }
.cx-strip .cx-grid__item { flex: 0 0 clamp(132px, 38vw, 172px); }

/* ---------- Footer ---------- */
.cx-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: calc(var(--content-max) + 2 * var(--page-margin));
  margin-inline: auto;
  padding: 24px max(var(--page-margin), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(var(--page-margin), env(safe-area-inset-left));
}

/* ======================= >= 480 ======================= */
@media (min-width: 480px) {
  .cx-error-page__actions { flex-direction: row; justify-content: center; width: auto; }
  .cx-error-page__actions .cx-button { width: auto; }
  .cx-hero__text { display: block; }
  .cx-replay__actions .cx-button { flex: 0 0 auto; }
  .cx-replay { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .cx-dialog__actions { flex-direction: row; justify-content: flex-end; }
  .cx-spotlight { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); padding: 14px; gap: 20px; }
}

/* ======================= >= 768: tablets ======================= */
@media (min-width: 768px) {
  .cx-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand search actions";
    column-gap: 20px;
  }
  .cx-brand__logo { height: 48px; }
  .cx-search--header { display: flex; width: 100%; max-width: 560px; justify-self: center; margin-bottom: 0; }
  .cx-header__search-toggle { display: none; }
  .cx-page--home .cx-header:empty { min-height: calc(var(--header-h) + 60px); }
  .cx-header__actions { gap: 6px; }
  .cx-head-link__label { display: inline; }

  .cx-main--home > .cx-container { padding-top: 24px; }

  /* Featured: wide cinematic banner, subject right, live text left */
  .cx-section--featured { --hero-h: 340px; }
  .cx-hero { align-items: center; }
  .cx-hero__media::after {
    background:
      linear-gradient(90deg, rgba(8, 7, 18, 0.94) 0%, rgba(8, 7, 18, 0.78) 26%, rgba(8, 7, 18, 0.2) 52%, rgba(8, 7, 18, 0) 70%),
      linear-gradient(to top, rgba(8, 7, 18, 0.5), rgba(8, 7, 18, 0) 30%);
  }
  .cx-hero[data-art="landscape"] .cx-hero__image {
    left: auto;
    right: 0;
    width: auto;
    max-width: none;
    height: 100%;
    aspect-ratio: 2 / 1;
    object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  }
  .cx-hero[data-art="cover"] .cx-hero__image {
    left: auto;
    right: 0;
    width: 54%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0, #000 30%);
  }
  .cx-hero__body { width: min(52%, 540px); padding: 32px 36px; gap: 12px; }
  .cx-hero__title { font-size: 44px; }
  .cx-hero__tags { display: flex; }

  .cx-universe__image { aspect-ratio: 3 / 1; }
  .cx-universe__body {
    position: absolute;
    inset: 0 auto 0 0;
    justify-content: center;
    width: 46%;
    padding: 28px 36px;
    background: linear-gradient(90deg, rgba(10, 8, 24, 0.88) 0%, rgba(10, 8, 24, 0.6) 62%, rgba(10, 8, 24, 0) 100%);
  }
  .cx-universe__title { font-size: 34px; }
  .cx-universe__frame[data-art="placeholder"] .cx-universe__montage { justify-content: flex-end; padding: 22px 22px 22px 46%; min-height: 240px; }

  .cx-spotlight { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); padding: 16px; gap: 28px; }
  .cx-grid.cx-grid--spotlight { grid-template-columns: minmax(0, 760px); }
  .cx-spotlight__title { font-size: 28px; }

  .cx-game-bar__heading { flex-wrap: nowrap; }
  .cx-game-header__title { font-size: 26px; }
  .cx-game-header__tags { display: flex; }
  .cx-game-header__fav .cx-fav__label { display: inline; }

  .cx-grid.cx-grid--more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-error-page__title { font-size: 40px; }

  .cx-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}

/* ======================= >= 1024: desktop, compact rail ======================= */
@media (min-width: 1024px) {
  .cx-brand__logo { height: 62px; }
  .cx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cx-grid.cx-grid--spotlight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
  .cx-grid.cx-grid--spotlight:has(> :only-child) { grid-template-columns: minmax(0, 820px); }

  .cx-side {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    z-index: var(--z-rail);
    display: block;
    width: var(--rail-w);
    padding: 14px 10px 24px;
    overflow-y: auto;
    border-right: 1px solid var(--color-border-subtle);
    background-color: color-mix(in srgb, var(--color-background) 82%, transparent);
  }
  .cx-page--game .cx-side { display: block; }
  .cx-side__list { flex-direction: column; gap: 2px; }
  .cx-side__list + .cx-side__group + .cx-side__list { margin-top: 10px; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--color-border-subtle); }
  .cx-side__link {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 64px;
    padding: 8px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
  .cx-side__link .cx-icon { width: 22px; height: 22px; }
  .cx-side__label-long { display: none; }
  .cx-side__label-short { display: inline; }
  .cx-side__link[aria-current="page"] { background-color: var(--color-accent-subtle); box-shadow: inset 3px 0 0 var(--color-gold); }

  .cx-has-side .cx-main, .cx-has-side .cx-footer,
  .cx-page--home .cx-main, .cx-page--home .cx-footer,
  .cx-page--game .cx-main, .cx-page--game .cx-footer { margin-left: var(--rail-w); width: calc(100% - var(--rail-w)); }
  .cx-page--home .cx-header:empty { min-height: var(--header-h); }

  .cx-main--home > .cx-container { padding-top: 28px; }
  .cx-section--featured { --hero-h: clamp(340px, calc((100vw - var(--rail-w) - 2 * var(--page-margin)) / 2.35), 480px); }
  .cx-hero__body { padding: 40px 48px; }
  .cx-hero__title { font-size: 50px; }
  .cx-universe__title { font-size: 40px; }
  .cx-universe__body { padding: 36px 48px; }

  .cx-row__item--mini { flex-basis: 276px; }

  .cx-game-header__title { font-size: 28px; }
  .cx-tabpanel { padding: 22px 26px; }
  .cx-howto__steps { font-size: 16px; }

  /* Legal: reading column with a sticky "On this page" list */
  .cx-main--document > .cx-container { padding-top: 48px; }
  .cx-document.has-toc {
    display: grid;
    grid-template-columns: 220px minmax(0, var(--reading-max));
    column-gap: 56px;
    max-width: calc(220px + 56px + var(--reading-max) + 2 * var(--page-margin));
  }
  .cx-document.has-toc > * { grid-column: 2; }
  .cx-document.has-toc > .cx-toc {
    grid-column: 1;
    grid-row: 1 / span 40;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    margin-top: 6px;
  }
  .cx-privacy-panel { --panel-pad: 24px; }

  .cx-grid.cx-grid--more { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cx-footer__inner { padding-top: 32px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}

/* ======================= >= 1280: full rail with labels and counts ======================= */
@media (min-width: 1280px) {
  .cx-brand__logo { height: 64px; }
  .cx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cx-grid.cx-grid--spotlight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); max-width: 1180px; }
  .cx-grid.cx-grid--spotlight:has(> :only-child) { grid-template-columns: minmax(0, 820px); }
  .cx-side { padding: 18px 14px 28px; }
  .cx-side__group {
    display: block;
    padding: 0 12px 6px;
    font-size: var(--fs-eyebrow);
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }
  .cx-side__list + .cx-side__group { margin-top: 18px; }
  .cx-side__list + .cx-side__group + .cx-side__list { margin-top: 0; padding-top: 0; border-top: 0; }
  .cx-side__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 650;
    text-align: left;
  }
  .cx-side__link .cx-icon { width: 20px; height: 20px; }
  .cx-side__label-long { display: inline; }
  .cx-side__label-short { display: none; }
  .cx-side__count { display: inline; margin-left: auto; }
  .cx-side__count[hidden] { display: none; }
  .cx-side__link[aria-current="page"] { font-weight: 750; }

  /* Featured: hero beside a vertical list of the curated picks (manual selection only) */
  .cx-section--featured { --hero-h: clamp(380px, calc((min(100vw - var(--rail-w) - 2 * var(--page-margin), var(--content-max)) - 244px) / 2.05), 480px); }
  .cx-section--featured.is-reserved { min-height: var(--hero-h); }
  .cx-section--featured:has(.cx-hero__picker) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 232px;
    gap: 12px;
  }
  .cx-hero__picker { flex-direction: column; gap: 8px; margin: 0; padding: 0; overflow: visible; }
  .cx-hero__tab {
    flex: 1 1 0;
    min-height: 0;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border-radius: 10px;
    font-size: 14px;
    text-align: left;
  }
  .cx-hero__tab-image { width: 84px; height: 56px; border-radius: 7px; }
  .cx-hero__tab[aria-selected="true"]::after { left: -1px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .cx-hero__title { font-size: 54px; }
  .cx-universe__title { font-size: 44px; }
}

@media (min-width: 1680px) {
  .cx-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cx-grid.cx-grid--spotlight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); max-width: 1180px; }
  .cx-grid.cx-grid--spotlight:has(> :only-child) { grid-template-columns: minmax(0, 820px); }
}

/* Narrowest phones */
@media (max-width: 359.98px) {
  .cx-brand__logo { height: 32px; }
  .cx-hero__title { font-size: 28px; }
  .cx-hero__actions .cx-button--large { padding: 0 18px; }
  .cx-game-header__title { font-size: 19px; }
}
