/* Inter is served from our own hashed static assets; system fonts are the fallback. */
:root {
  color-scheme: light;
  --bg: #f4f0e7;
  --ink: #22211f;
  --muted: #68645e;
  --line: #cbc5b9;
  --surface: #e9e3d8;
  --accent: #f1cf39;
  --red: #d44232;
  --blue: #2756b5;
  --card: #fffaf0;
  --radius: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
html {
  scroll-behavior: smooth;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 15px;
  border-radius: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
button:hover:not(:disabled) {
  background: var(--surface);
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1440px, calc(100% - 64px));
  margin-inline: auto;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--ink);
  color: var(--bg);
  padding: 16px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.tiny-link {
  font-size: 12px;
  letter-spacing: 0.02em;
}
.tiny-link span {
  margin-left: 18px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 40px;
  letter-spacing: -2.6px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.brand-mark {
  display: block;
  flex-shrink: 0;
}
.brand-domain {
  font-weight: 500;
  letter-spacing: -2px;
}
.theme-toggle {
  justify-self: end;
  border: 0;
  padding-right: 0;
  font-size: 19px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.theme-toggle span {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  line-height: 1.7;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.discovery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.genres {
  display: flex;
  align-items: center;
  gap: 7px;
}
.genres a {
  font-size: 13px;
  padding: 11px 17px;
  border-radius: 0;
}
.genres a:hover {
  background: var(--surface);
}
.genres a[aria-current] {
  background: var(--accent);
  color: #22211f;
  font-weight: 700;
}
.genres a span {
  font-size: 9px;
  vertical-align: top;
  margin-left: 7px;
  opacity: 0.6;
}
.discovery-tools {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}
.touch-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  cursor: pointer;
}
.touch-filter input {
  accent-color: var(--ink);
  width: 14px;
  height: 14px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search > span {
  font-size: 24px;
}
.search input {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  width: 117px;
  padding: 8px 0;
  font-size: 12px;
  min-width: 0;
}
.search input:focus {
  border-bottom-color: var(--ink);
  outline-offset: 3px;
}
.game-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
  align-items: start;
}
.tile {
  min-width: 0;
}
.game-grid > .tile:first-child {
  grid-row: span 2;
}
.tile-content {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 100%;
  border-bottom: 3px solid var(--ink);
}
.tile-content:hover {
  border-bottom-color: var(--red);
}
.tile-art {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  background: var(--surface);
}
.tile-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Gameplay captures keep their defining action in the wide catalogue crops. */
.tile-five .tile-art img { object-position: 50% 0%; }
.tile-hangman .tile-art img { object-position: 50% 30%; }
.tile-river-wing .tile-art img { object-position: 50% 88%; }
.tile-fuse-yard .tile-art img { object-position: 50% 0%; }
.tile-rally-rink .tile-art img { object-position: 50% 15%; }
.tile-soft-putt .tile-art img { object-position: 50% 75%; }
.tile-ribbon-run .tile-art img { object-position: 50% 90%; }
.tile-stackfall .tile-art img { object-position: 50% 75%; }
.tile-orbit-drop .tile-art img { object-position: 50% 90%; }
.tile-last-light .tile-art img { object-position: 20% 50%; }
.tile-content:hover .tile-art img {
  transform: scale(1.025);
}
.tile-play {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #22211f;
  border-radius: 50%;
  font-size: 22px;
  transition: transform 0.2s;
}
.tile-content:hover .tile-play {
  transform: translate(2px, -2px);
}
.tile-caption {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 12px;
}
.tile-genre {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.tile-caption h2 {
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 0;
}
.game-grid > .tile {
  height: 214px;
}
.game-grid > .tile:first-child {
  height: 440px;
}
.game-grid > .tile:not(:first-child) .tile-caption {
  padding: 12px 16px;
}
.game-grid > .tile:not(:first-child) .tile-caption h2 {
  font-size: 22px;
}
.game-grid[data-enhanced] {
  display: block;
  position: relative;
  margin: -6px;
  width: calc(100% + 12px);
}
.game-grid[data-enhanced] > .tile {
  position: absolute;
  width: 40%;
  padding: 6px;
  height: 226px;
}
.game-grid[data-enhanced] > .tile:first-child {
  width: 60%;
  height: 452px;
}
.empty-state {
  text-align: center;
  border: 1px dashed var(--line);
  padding: 65px 20px;
  border-radius: 0;
}
.empty-state h2 {
  font-weight: 500;
  letter-spacing: -0.04em;
}
.empty-state p {
  color: var(--muted);
}
.footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 18px;
  margin-top: 24px;
  font-size: 11px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  padding-top: 16px;
  flex-wrap: wrap;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.game-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 18px 0;
}
.game-heading .eyebrow {
  margin-bottom: 10px;
}
.game-heading h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.06em;
  margin: 0 0 6px;
}
.game-heading p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  max-width: 650px;
  line-height: 1.6;
  margin: 0;
}
.player {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.player-stage {
  height: min(65vh, 620px);
  min-height: 360px;
  position: relative;
  background: #181f23;
}
.player-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.player-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.launch-panel {
  position: absolute;
  bottom: 35px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.play-button {
  background: var(--accent);
  color: #22211f;
  border: 0;
  padding: 18px 29px;
  border-radius: 0;
  font-size: 15px;
  box-shadow: 0 3px 20px #0001;
}
.play-button:hover:not(:disabled) {
  background: #ffe16a;
}
.play-button span {
  font-size: 12px;
  margin-right: 9px;
}
.launch-panel p {
  font-size: 11px;
  padding: 8px 12px;
  background: var(--accent);
  color: #22211f;
  border-radius: 4px;
  margin: 10px 0 0;
}
.player iframe {
  border: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #181f23;
}
.player-toolbar {
  min-height: 59px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 20px;
  font-size: 11px;
}
.player-toolbar > div {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.player-toolbar button {
  font-size: 11px;
  padding: 8px 10px;
  border: 0;
}
.compat-warning {
  padding: 12px 20px;
  font-size: 12px;
  background: #f9e8b2;
  color: #40300e;
  margin: 0;
}
.player:fullscreen {
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
}
.player:fullscreen .player-stage {
  flex: 1;
  height: auto;
}
.game-info {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  align-items: start;
}
.game-info h2 {
  font-size: 18px;
  letter-spacing: -0.03em;
  margin: 0;
}
.game-info p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 780px;
  margin-bottom: 8px;
}
.instructions {
  white-space: pre-line;
}
.game-guide {
  min-width: 0;
}
.quick-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.quick-guide li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.guide-icon {
  flex: 0 0 28px;
  color: var(--ink);
}
.full-instructions {
  margin-bottom: 10px;
}
.full-instructions .instructions {
  margin-top: 0;
}
.game-info .compatibility {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.related {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}
.section-heading h2 {
  font-size: 25px;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 0;
}
.section-heading > a {
  font-size: 12px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.related-grid > .tile {
  height: 250px;
}
.text-intro {
  padding: 75px 0 50px;
  max-width: 850px;
}
.text-intro h1,
.prose h1 {
  font-size: clamp(45px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.065em;
  font-weight: 500;
  margin: 16px 0 25px;
}
.text-intro > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
.category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 90px;
}
.category-list > a {
  padding: 40px;
  background: var(--surface);
  border-radius: 0;
}
.category-list h2 {
  font-size: 36px;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin: 20px 0;
}
.category-list h2 span {
  float: right;
}
.category-list p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.prose {
  max-width: 720px;
  margin: 70px auto 90px;
}
.prose h2 {
  margin-top: 45px;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: 27px;
}
.prose p,
.prose li {
  line-height: 1.8;
  font-size: 15px;
  color: var(--muted);
}
.prose .large-copy {
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink);
}
.prose li {
  margin-block: 10px;
}
.prose li a {
  text-decoration: underline;
}
.text-cta {
  display: inline-block;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  border-radius: 0;
  margin-top: 20px;
}
.not-found {
  padding-bottom: 130px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1d1d1c;
  --ink: #f4f0e7;
  --muted: #b2ada3;
  --line: #494640;
  --surface: #2b2926;
  --card: #292825;
  --blue: #8eafff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1d1d1c;
    --ink: #f4f0e7;
    --muted: #b2ada3;
    --line: #494640;
    --surface: #2b2926;
    --card: #292825;
    --blue: #8eafff;
  }
}

@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .discovery-tools {
    gap: 13px;
  }
  .genres a {
    padding: 10px 13px;
  }
  .tile-caption {
    padding: 14px;
  }
  .game-info {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .masthead {
    padding: 16px 0;
    grid-template-columns: 1fr auto 1fr;
  }
  .wordmark {
    font-size: 35px;
    grid-column: 2;
  }
  .brand-mark {
    width: 44px;
    height: 44px;
  }
  .wordmark {
    gap: 9px;
  }
  .desktop-note {
    display: none;
  }
  .theme-toggle span {
    display: none;
  }
  .theme-toggle {
    grid-column: 3;
  }
  .discovery-bar {
    display: block;
    padding: 13px 0;
  }
  .genres {
    gap: 4px;
  }
  .genres a {
    padding: 10px 14px;
  }
  .discovery-tools {
    justify-content: space-between;
    margin-top: 15px;
    padding: 0 4px;
  }
  .search input {
    width: 110px;
  }
  .game-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .game-grid > .tile,
  .game-grid > .tile:first-child {
    height: 210px;
    grid-row: auto;
  }
  .game-grid > .tile:first-child {
    height: 270px;
    grid-column: span 2;
  }
  .game-grid[data-enhanced] {
    margin: -6px;
    width: calc(100% + 12px);
  }
  .game-grid[data-enhanced] > .tile,
  .game-grid[data-enhanced] > .tile:first-child {
    width: 50%;
    height: 222px;
    padding: 6px;
  }
  .game-grid[data-enhanced] > .tile:first-child {
    width: 100%;
    height: 282px;
  }
  .tile-caption h2 {
    font-size: 27px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 20px;
    padding-block: 25px;
  }
  .footer > a:not(.footer-brand) {
    font-size: 10px;
  }
  .game-heading {
    padding-top: 16px;
  }
  .game-heading h1 {
    font-size: 32px;
  }
  .game-heading p:not(.eyebrow) {
    font-size: 13px;
  }
  .player-stage {
    height: 440px;
    min-height: 0;
  }
  .player-toolbar {
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
  }
  .player-toolbar > span {
    flex-basis: 100%;
    font-size: 10px;
    line-height: 1.5;
  }
  .player-toolbar > div {
    width: 100%;
    justify-content: space-between;
  }
  .launch-panel {
    bottom: 25px;
  }
  .play-button {
    font-size: 14px;
    padding: 17px 22px;
  }
  .game-info {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0 16px;
  }
  .quick-guide {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .related-grid > .tile {
    height: 210px;
  }
  .section-heading h2 {
    font-size: 21px;
    max-width: 220px;
  }
  .section-heading > a {
    white-space: nowrap;
  }
  .prose {
    margin-block: 45px;
  }
  .prose .large-copy {
    font-size: 20px;
  }
  .category-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .category-list > a {
    padding: 28px;
  }
  .text-intro {
    padding: 44px 0 30px;
  }
  .text-intro h1 {
    font-size: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .tile-content:hover .tile-art img,
  .tile-content:hover .tile-play {
    transform: none;
  }
}

/* Categories stay close to the centered identity, including on small screens. */
.masthead-genres {
  justify-self: end;
  margin-right: 35px;
  gap: 0;
}
.masthead-genres a {
  font-size: 12px;
  padding: 10px 13px;
}
.collection-heading {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
}
@media (max-width: 700px) {
  .masthead-genres {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: center;
    margin: 14px 0 0;
  }
  .masthead .wordmark,
  .masthead .theme-toggle {
    grid-row: 1;
  }
  .discovery-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .collection-heading {
    font-size: 14px;
  }
  .discovery-tools {
    flex-basis: 100%;
    margin-top: 0;
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .game-grid[data-enhanced] > .tile:nth-child(2n + 4) {
    width: 60%;
  }
}

.game-count {
  color: var(--muted);
  font-size: 11px;
  margin-right: auto;
}
summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 13px;
}
details[open] > summary {
  margin-bottom: 8px;
}
.collection-info {
  margin-top: 16px;
  max-width: 680px;
}
.collection-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .tile-caption,
  .game-grid > .tile:not(:first-child) .tile-caption {
    padding: 12px;
  }
  .tile-caption h2,
  .game-grid > .tile:not(:first-child) .tile-caption h2 {
    font-size: 19px;
  }
  .tile-genre {
    font-size: 8px;
    letter-spacing: 0.04em;
    margin-bottom: 5px;
  }
  .tile-play {
    width: 28px;
    height: 28px;
    right: 10px;
    bottom: 10px;
    font-size: 19px;
  }
  .game-info h2 {
    margin-bottom: 10px;
  }
  .footer {
    padding-block: 16px;
    gap: 16px;
  }
}

@media (min-width: 701px) {
  .game-grid > .tile:first-child:nth-last-child(2) ~ .tile {
    height: 440px;
  }
  .game-grid[data-enhanced] > .tile:first-child:nth-last-child(2) ~ .tile {
    height: 452px;
  }
}
.game-tags {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .game-grid > .tile:first-child:nth-last-child(2) ~ .tile {
    grid-column: span 2;
  }
  .game-grid[data-enhanced] > .tile:first-child:nth-last-child(2) ~ .tile {
    width: 100%;
  }
}

/* A composed field: one lead, compact discoveries and occasional wide artwork. */
@media (min-width: 1051px) {
  .game-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
  }
  .game-grid > .tile {
    grid-column: span 4;
    height: 226px;
  }
  .game-grid > .tile:first-child {
    grid-column: span 6;
    height: 464px;
  }
  .game-grid > .tile:nth-child(2),
  .game-grid > .tile:nth-child(3) {
    grid-column: span 3;
  }
  .game-grid > .tile:nth-child(4) {
    grid-column: span 6;
  }
  .game-grid > .tile:nth-child(12n + 11) {
    grid-column: span 8;
    grid-row: span 2;
    height: 464px;
  }
  .game-grid[data-enhanced] > .tile {
    width: 33.333333%;
    height: 238px;
  }
  .game-grid[data-enhanced] > .tile:first-child {
    width: 50%;
    height: 476px;
  }
  .game-grid[data-enhanced] > .tile:nth-child(2),
  .game-grid[data-enhanced] > .tile:nth-child(3) {
    width: 25%;
  }
  .game-grid[data-enhanced] > .tile:nth-child(4) {
    width: 50%;
  }
  .game-grid[data-enhanced] > .tile:nth-child(12n + 11) {
    width: 66.666666%;
    height: 476px;
  }
  .game-grid > .tile:first-child:nth-last-child(3) {
    grid-column: span 8;
  }
  .game-grid > .tile:first-child:nth-last-child(3) ~ .tile {
    grid-column: span 4;
  }
  .game-grid[data-enhanced] > .tile:first-child:nth-last-child(3) {
    width: 66.666666%;
  }
  .game-grid[data-enhanced] > .tile:first-child:nth-last-child(3) ~ .tile {
    width: 33.333333%;
  }
  .game-grid > .tile:first-child:nth-last-child(2),
  .game-grid > .tile:first-child:nth-last-child(2) ~ .tile {
    grid-column: span 6;
    grid-row: auto;
    height: 340px;
  }
  .game-grid[data-enhanced] > .tile:first-child:nth-last-child(2),
  .game-grid[data-enhanced] > .tile:first-child:nth-last-child(2) ~ .tile {
    width: 50%;
    height: 352px;
  }
  .game-grid > .tile:only-child {
    grid-column: span 12;
    height: 320px;
  }
  .game-grid[data-enhanced] > .tile:only-child {
    width: 100%;
    height: 332px;
  }
}
