/* The existing galleries at two scales: large game worlds, then compact cases. */
.games-page section[id] { scroll-margin-top: var(--header-offset); }
.games-intro { padding-block: 28px 40px; }
.games-breadcrumb { display: flex; gap: 12px; margin-bottom: 38px; font-size: .8rem; color: var(--color-muted); }
.games-breadcrumb a:hover { text-decoration: underline; }
.games-intro-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 80px; align-items: center; }
.games-intro h1 { font-size: clamp(2.65rem, 4.8vw, 4.5rem); }
.games-intro-layout p { max-width: 43ch; color: var(--color-muted); }
.games-intro-layout .button { margin-top: 24px; }
.games-jump-links { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 800; }
.games-jump-links a { min-height: 36px; display: inline-flex; align-items: center; }
.games-jump-links a:hover { color: var(--color-red); }
.games-featured { display: grid; gap: 36px; padding-bottom: 80px; }
.games-featured-card { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); background: white; }
.games-featured-card:hover { transform: none; box-shadow: none; }
.games-featured-card .project-carousel { display: flex; flex-direction: column; }
.games-featured-card .project-carousel__viewport { height: clamp(330px, 32vw, 450px); }
.games-featured-card .project-carousel__footer { margin-top: auto; }
.games-featured-card .project-card__title { font-size: 1.7rem; }
.games-featured-card .project-card__body { padding: 36px 32px; justify-content: center; }
.games-featured-card .project-card__body h3 { min-height: 0; font-size: clamp(1.8rem, 2.4vw, 2.5rem); }
.games-featured-card .project-card__body > p { font-size: .96rem; }
.games-featured-card .project-meta { margin: 0; min-height: 0; }
.game-results { display: grid; grid-template-columns: minmax(0, 1fr); margin: 24px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.game-results > div { display: flex; flex-direction: column; min-width: 0; }
.game-results dt { color: var(--color-muted); font-size: .8rem; line-height: 1.5; }
.game-results dd { order: -1; margin: 0 0 2px; color: var(--color-blue); font: 800 2.2rem/1.15 "Nunito", sans-serif; font-variant-numeric: tabular-nums; }
.games-featured-card .project-card__body > .game-results-date { font-size: .75rem; }
.game-contact-story { margin-top: 20px; }
.games-gallery-section { background: #f0efe9; padding-block: 72px; }
.games-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 36px; }
.games-gallery-heading h2 { font-size: clamp(2.3rem, 3.6vw, 3.5rem); }
.games-gallery-heading > p { max-width: 40ch; color: var(--color-muted); }
.games-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.games-gallery-grid .project-carousel__viewport { height: 230px; }
.games-gallery-grid .project-carousel__footer { padding-inline: 18px; }
.games-gallery-grid .project-card__body { padding: 24px; }
.games-gallery-grid .project-card__body h3 { min-height: 0; font-size: 1.5rem; }
.games-gallery-grid .project-card__body > p { font-size: .85rem; }
.games-gallery-grid .project-meta { min-height: 0; margin-bottom: 0; }
.games-gallery-grid .project-meta + .project-card__cta { margin-top: 24px; }
.games-contact { padding-top: 80px; }
.games-page .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 1199px) {
  .games-intro-layout { gap: 48px; }
  .games-featured-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .games-featured-card .project-card__body { padding: 28px; }
  .games-featured-card .project-card__body > p { font-size: .88rem; }
  .games-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .games-intro-layout { gap: 32px; }
  .games-featured-card { grid-template-columns: minmax(0, 1fr); }
  .games-featured-card .project-carousel__viewport { height: 400px; }
  .games-featured-card .project-card__body { padding: 32px; }
  .games-featured-card .project-card__body > p { max-width: 70ch; font-size: .95rem; }
  .games-featured-card .project-card__body h3 { font-size: 2rem; }
  .games-featured { padding-bottom: 56px; }
  .games-gallery-heading { gap: 32px; }
  .games-gallery-heading > p { max-width: 32ch; }
}
@media (max-width: 767px) {
  .games-intro { padding-top: 20px; padding-bottom: 28px; }
  .games-breadcrumb { margin-bottom: 28px; }
  .games-intro-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .games-intro h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .games-intro-layout .button { margin-top: 20px; }
  .games-jump-links { gap: 6px 22px; margin-top: 28px; padding-top: 20px; font-size: .8rem; }
  .games-featured { gap: 28px; padding-bottom: 44px; }
  .games-featured-card .project-carousel__viewport { height: clamp(230px, 58vw, 360px); }
  .games-featured-card .project-card__title { font-size: 1.45rem; }
  .games-featured-card .project-card__body { padding: 26px 24px; }
  .games-featured-card .project-card__body h3 { font-size: 1.85rem; }
  .games-gallery-section { padding-block: 48px; }
  .games-gallery-heading { display: block; }
  .games-gallery-heading h2 { font-size: 2.2rem; }
  .games-gallery-heading > p { max-width: 40ch; margin-top: 22px; }
  .games-contact { padding-top: 48px; }
}
@media (max-width: 649px) {
  .games-gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .games-gallery-grid .project-carousel__viewport { height: 220px; }
}
@media (max-width: 359px) {
  .games-featured-card .project-carousel__viewport { height: 200px; }
  .games-gallery-grid .project-carousel__viewport { height: 190px; }
}
