:root {
  color-scheme: light;
  --paper: #f5f5f0;
  --white: #ffffff;
  --ink: #22282b;
  --muted: #606967;
  --navy: #202b2b;
  --green: #d7f278;
  --line: #dfe3d9;
  --wash: #e9eddf;
  --accent: #40572b;
  font-family:
    "Avenir Next",
    Avenir,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 3px solid #9b572c;
  outline-offset: 3px;
}
svg {
  display: block;
  flex-shrink: 0;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  padding: 12px;
  background: white;
  z-index: 20;
}
.masthead {
  background: var(--navy);
  color: #f5f7ee;
}
.identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding-inline: 16px;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 9px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-name {
  font-size: 25px;
  letter-spacing: -1.1px;
  font-weight: 750;
  white-space: nowrap;
}
.brand-dot {
  color: var(--green);
}
.primary {
  display: flex;
  gap: 3px;
}
.primary a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  gap: 12px;
  border-radius: 8px;
  color: #d1d8cf;
}
.primary .nav-home,
.primary a > span {
  display: none;
}
.primary a:hover {
  background: #34403b;
  color: #fff;
}
.primary a[aria-current] {
  color: var(--navy);
  background: var(--green);
}
.directory-label,
.sidebar-help,
.desktop-strip {
  display: none;
}
.category-rail {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding-inline: 8px;
  background: #ffffff;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.category-rail::-webkit-scrollbar {
  display: none;
}
.category-rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 16px;
}
.category-rail a svg {
  width: 16px;
  height: 16px;
}
.category-rail a small {
  display: none;
}
.category-rail a[aria-current] {
  color: var(--ink);
  background: var(--wash);
}
.category-rail a:hover {
  color: var(--ink);
  background: #eff2e9;
}
main,
footer {
  width: min(1216px, 100%);
  margin-inline: auto;
}
main {
  padding: 10px 16px 20px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 8px;
}
.section-head h1,
.section-head h2 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0;
  font-weight: 720;
  min-width: 0;
}
body[data-page="home"] main > .browse-module:first-child .section-head h1 {
  font-size: 23px;
  letter-spacing: -0.9px;
}
.section-head a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  gap: 3px;
  flex-shrink: 0;
}
.browse-module + .browse-module {
  margin-top: 20px;
}
.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
.game-grid li {
  min-width: 0;
}
.game-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 2px #202b2b0a;
  transition: box-shadow 140ms ease;
}
.game-card:hover {
  box-shadow: 0 0 0 2px #7b8b5b;
}
.picture {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--wash);
  overflow: hidden;
  flex-shrink: 0;
}
.picture img,
.preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-failure {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  text-align: center;
  padding: 10px;
  color: var(--muted);
  font-size: 14px;
}
.picture.failed .image-failure {
  display: grid;
}
.picture.failed img {
  visibility: hidden;
}
.card-copy {
  padding: 9px 10px 11px;
  min-width: 0;
}
.card-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}
.card-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  height: 3em;
  color: var(--muted);
  margin: 4px 0 0;
}
.compact-grid .card-copy {
  padding-block: 8px 10px;
}
.hero-grid > li:first-child {
  grid-column: 1 / -1;
}
.hero-grid > li:first-child .picture {
  aspect-ratio: 16 / 7;
}
.hero-grid > li:first-child .card-copy {
  background: var(--green);
}
.hero-grid > li:first-child strong {
  font-size: 17px;
}
.row-grid {
  gap: 10px 12px;
}
.row-grid .game-card {
  flex-direction: row;
  align-items: center;
  gap: 0;
  min-height: 70px;
}
.row-grid .picture {
  width: 58px;
  height: 70px;
  aspect-ratio: auto;
  align-self: stretch;
}
.row-grid .card-copy {
  flex: 1;
  padding: 9px;
}
.row-grid .card-copy strong {
  font-size: 13px;
}
.category-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.category-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 73px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #eeefe6;
}
.category-tile > span:not(.category-icon) {
  min-width: 0;
  flex: 1;
}
.category-tile > svg {
  display: none;
}
.category-tile strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.category-tile small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 2px;
  color: #5b6558;
}
.category-icon {
  color: #4e633a;
  flex-shrink: 0;
}
.category-tile:hover {
  border-color: #7b8b5b;
  background: #e6ead9;
}
.more-row {
  display: flex;
  justify-content: center;
  margin: 12px 0 0;
}
.more,
.action {
  border: 1px solid #cdd3c4;
  background: var(--white);
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--ink);
}
.more {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.more:hover,
.action:hover {
  background: var(--wash);
}
.help-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0 2px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.help-strip > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.help-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--wash);
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.help-strip strong {
  display: block;
  font-size: 14px;
}
.help-strip small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.note-strip {
  border-block: 1px solid var(--line);
  padding: 8px 0;
  margin: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.note-strip a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.detail-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  margin-bottom: 8px;
}
.back,
.save {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.back {
  margin-left: -8px;
}
.game-title {
  min-width: 0;
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}
.title-button {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  color: inherit;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: inherit;
}
.title-button:disabled {
  opacity: 1;
}
.save {
  background: var(--wash);
  border: 0;
  border-radius: 50%;
  color: #40572b;
}
.save[aria-pressed="true"] {
  background: var(--green);
}
.save[aria-pressed="true"] svg {
  fill: #40572b;
}
.full-title {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.full-title p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.player {
  margin-bottom: 20px;
}
.play-window {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--wash);
  overflow: hidden;
  border-radius: 13px;
}
.play-window iframe {
  border: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 23px;
  background: var(--green);
  color: var(--navy);
  border: 2px solid white;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 3px 20px #0003;
}
.play:hover {
  background: #e4ff8b;
}
.player-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
  padding: 3px 0;
}
.player-tools > div {
  display: flex;
  gap: 2px;
}
.player-tools .action {
  padding-inline: 8px;
  border: 0;
  background: transparent;
  font-size: 13px;
}
.player-status {
  flex: 1 1 120px;
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0;
  color: var(--muted);
}
.player:fullscreen {
  padding: max(8px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  margin: 0;
}
.player:fullscreen .play-window {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  max-height: none;
  border-radius: 0;
}
.player:fullscreen .player-tools {
  flex-shrink: 0;
}
.prose {
  max-width: 72ch;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.prose > h1 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin: 8px 0 12px;
}
.prose h2 {
  font-size: 18px;
  margin: 22px 0 8px;
}
.prose p {
  margin: 8px 0 14px;
}
.prose a,
.empty a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.game-information .prose {
  margin: 0;
  max-width: none;
}
.game-information h2 {
  margin-top: 0;
}
.source-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 20px;
}
.empty {
  margin: 6px 0 20px;
  line-height: 1.6;
  color: var(--muted);
}
[data-saved-list] + [data-recommendations],
[data-game-detail] + [data-recommendations] {
  margin-top: 24px;
}
footer {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-brand {
  font-weight: 750;
  font-size: 20px;
  letter-spacing: -0.7px;
  color: var(--ink);
}
.footer-brand > span {
  color: #657e2d;
}
.footer-brand small {
  font-weight: 400;
  letter-spacing: 0;
  font-size: 12px;
  margin-left: 12px;
  color: var(--muted);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-top: 5px;
}
footer a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 12px;
}
footer a:hover {
  text-decoration: underline;
}
.gpt-lazy {
  max-width: 100%;
}
.gpt-lazy.ad-empty {
  display: none;
}
@media (max-width: 359px) {
  .identity {
    padding-inline: 12px;
  }
  .brand-name {
    font-size: 23px;
  }
  main,
  footer {
    padding-inline: 12px;
  }
  .section-head {
    gap: 5px;
  }
  .section-head h1,
  .section-head h2 {
    font-size: 17px;
  }
  body[data-page="home"] main > .browse-module:first-child .section-head h1 {
    font-size: 20px;
  }
  .section-head a {
    font-size: 12px;
  }
  .category-tile {
    gap: 7px;
    padding: 8px;
  }
  .category-icon svg {
    width: 20px;
  }
  .row-grid .picture {
    width: 49px;
  }
}
@media (min-width: 700px) {
  main,
  footer {
    padding-inline: 28px;
  }
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .card-copy strong {
    font-size: 14px;
  }
  .hero-grid > li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .hero-grid > li:first-child .picture {
    aspect-ratio: auto;
    flex: 1;
    min-height: 0;
  }
  .hero-grid > li:first-child .card-copy {
    padding: 12px 16px;
  }
  .hero-grid > li:first-child strong {
    font-size: 19px;
  }
  .hero-grid {
    grid-auto-rows: 1fr;
  }
  .category-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .category-tiles.is-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-tile {
    min-height: 80px;
    padding: 12px;
    gap: 10px;
  }
  .category-tile > svg {
    display: block;
  }
  .row-grid .picture {
    width: 62px;
    height: 78px;
  }
  .row-grid .card-copy strong {
    font-size: 13px;
  }
  .browse-module + .browse-module {
    margin-top: 24px;
  }
  .section-head h1 {
    font-size: 25px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  body[data-page="home"] main > .browse-module:first-child .section-head h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
  }
  .section-head a {
    font-size: 13px;
  }
  .play-window {
    aspect-ratio: 16 / 10;
    max-height: 70vh;
  }
  .game-information {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0 32px;
  }
  .source-note {
    grid-column: 1 / -1;
  }
  footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .footer-brand small {
    display: block;
    margin: 4px 0 0;
  }
  footer nav {
    margin: 0;
  }
}
@media (min-width: 1100px) {
  .masthead {
    position: fixed;
    inset: 0 auto 0 0;
    width: 208px;
    padding: 22px 16px;
    overflow-y: auto;
  }
  .identity {
    display: block;
    padding: 0;
    min-height: 0;
  }
  .brand {
    margin-bottom: 30px;
    gap: 9px;
  }
  .brand-name {
    font-size: 27px;
  }
  .primary {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .primary a,
  .primary .nav-home {
    display: flex;
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 14px;
  }
  .primary a > span {
    display: inline;
  }
  .directory-label {
    display: block;
    color: #a9b5a9;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 30px 12px 12px;
  }
  .category-rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: visible;
    background: none;
    color: #cdd6c9;
    border: 0;
    gap: 2px;
  }
  .category-rail a {
    gap: 12px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    min-height: 43px;
  }
  .category-rail a svg {
    width: 18px;
    height: 18px;
    color: #a7b5a6;
  }
  .category-rail a small {
    display: block;
    margin-left: auto;
    font-size: 11px;
    color: #a7b5a6;
    font-variant-numeric: tabular-nums;
  }
  .category-rail a[aria-current] {
    background: #3e4b3b;
    color: #e6ffac;
  }
  .category-rail a[aria-current] svg,
  .category-rail a[aria-current] small {
    color: #d7f278;
  }
  .category-rail a:hover {
    background: #34403b;
    color: #fff;
  }
  .sidebar-help {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin: 28px 12px 0;
    font-size: 12px;
    color: #bcc7b5;
    border-top: 1px solid #465047;
    padding-top: 8px;
  }
  .canvas {
    margin-left: 208px;
  }
  .desktop-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    min-height: 58px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.3px;
  }
  .desktop-strip a {
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0;
    font-size: 12px;
    min-height: 44px;
  }
  main {
    padding-top: 16px;
  }
  main,
  footer {
    padding-inline: 32px;
  }
  .section-head {
    margin-bottom: 12px;
  }
  .game-grid {
    gap: 16px 18px;
  }
  .card-copy {
    padding: 11px 12px 13px;
  }
  .card-copy strong {
    font-size: 15px;
  }
  .category-tile {
    padding: 14px;
  }
  .category-tile small {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* A lead image fills its grid cell without imposing its intrinsic height. */
@media (min-width: 700px) {
  .hero-grid > li:first-child .picture img {
    position: absolute;
    inset: 0;
  }
}
/* Complete the final row without dropping real results. */
@media (max-width: 699px) {
  .game-grid:not(.hero-grid) > li:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
  }
  .game-grid:not(.hero-grid):not(.row-grid)
    > li:last-child:nth-child(2n + 1)
    .picture {
    aspect-ratio: 32 / 10;
  }
}
@media (min-width: 700px) {
  .game-grid:not(.hero-grid):not(.row-grid) {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .game-grid:not(.hero-grid):not(.row-grid) > li {
    grid-column: span 3;
  }
  .game-grid:not(.hero-grid):not(.row-grid)
    > li:nth-last-child(3):nth-child(4n + 1),
  .game-grid:not(.hero-grid):not(.row-grid)
    > li:nth-last-child(3):nth-child(4n + 1)
    ~ li {
    grid-column: span 4;
  }
  .game-grid:not(.hero-grid):not(.row-grid)
    > li:nth-last-child(2):nth-child(4n + 1),
  .game-grid:not(.hero-grid):not(.row-grid)
    > li:nth-last-child(2):nth-child(4n + 1)
    ~ li {
    grid-column: span 6;
  }
  .game-grid:not(.hero-grid):not(.row-grid) > li:last-child:nth-child(4n + 1) {
    grid-column: 1 / -1;
  }
  .game-grid:not(.hero-grid):not(.row-grid)
    > li:last-child:nth-child(4n + 1)
    .game-card {
    flex-direction: row;
  }
  .game-grid:not(.hero-grid):not(.row-grid)
    > li:last-child:nth-child(4n + 1)
    .picture {
    width: 30%;
    aspect-ratio: 16 / 10;
  }
}
/* Text enlargement keeps all navigation and category labels reachable. */
.identity {
  flex-wrap: wrap;
}
.section-head h1,
.section-head h2,
.category-tile strong {
  overflow-wrap: anywhere;
}
@media (min-width: 1100px) {
  .primary a > span,
  .category-rail a > span {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

/* Keep the real content close to the existing banner edge. */
main {
  padding-top: 0;
}
.section-head,
.detail-heading {
  margin-bottom: 4px;
}
.prose > h1 {
  margin: 0 0 8px;
}
.saved-heading .empty {
  margin: 0;
  max-width: 52%;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}
[data-saved-list] + [data-recommendations].saved-discovery {
  margin-top: 0;
}

/* Keep finite game groups between three stable page banners. */
#main .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
#main .game-grid > li:nth-child(n) { grid-column: auto; grid-row: auto; }
#main .game-grid:not(.banner-home-grid) > li:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
#main .game-grid:not(.row-grid) > li .game-card { flex-direction: column; }
#main .game-grid:not(.row-grid) > li .picture { width:100%; aspect-ratio:16/10; }
@media (min-width:700px) {
  #main .game-grid.banner-home-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
#main .gpt-lazy { max-width:100%; box-sizing:border-box; }
[data-list-tail]:empty { display:none; }
.banner-recommendations { margin-block:24px; }
