@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
}

:root {
  --ink: #173247;
  --ink-deep: #10283a;
  --paper: #fffaf0;
  --white: #ffffff;
  --purple: #6347be;
  --purple-deep: #3c267f;
  --yellow: #ffd84a;
  --green: #65bd60;
  --coral: #ff725e;
  --blue: #69c9ee;
  --muted: #61798a;
  --line: #b8cbd0;
  --page: min(1480px, calc(100% - 48px));
  --pixel-shadow: 7px 7px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(23, 50, 71, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 50, 71, .035) 1px, transparent 1px);
  background-size: 16px 16px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 11px 15px;
  border: 2px solid var(--ink-deep);
  background: var(--white);
  color: var(--ink-deep);
  font: 800 12px/1 Menlo, Monaco, Consolas, monospace;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.pixel-ribbon {
  height: 10px;
  background: linear-gradient(90deg,
    var(--green) 0 6.25%, var(--yellow) 6.25% 12.5%,
    var(--coral) 12.5% 18.75%, var(--blue) 18.75% 25%,
    var(--purple) 25% 31.25%, var(--yellow) 31.25% 37.5%,
    var(--green) 37.5% 43.75%, var(--coral) 43.75% 50%,
    var(--blue) 50% 56.25%, var(--green) 56.25% 62.5%,
    var(--yellow) 62.5% 68.75%, var(--purple) 68.75% 75%,
    var(--coral) 75% 81.25%, var(--blue) 81.25% 87.5%,
    var(--green) 87.5% 93.75%, var(--yellow) 93.75% 100%);
  background-size: 160px 100%;
}

.site-header {
  width: var(--page);
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 61px;
  object-fit: contain;
}

.brand span,
.game-kicker,
.game-community,
.section-heading p,
.studio-band > div > p {
  font-family: Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brand span {
  max-width: 78px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.primary-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

main {
  width: var(--page);
  margin: 0 auto;
}

.games-stage {
  padding: 28px 28px 34px;
  border: 3px solid var(--ink);
  background: var(--purple);
  box-shadow: 10px 10px 0 var(--ink);
}

.stage-heading {
  display: grid;
  grid-template-columns: minmax(540px, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 24px;
}

h1,
.game-card h2,
.section-heading h2,
.catalog-card h3,
.studio-band h2 {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(48px, 4.7vw, 76px);
  font-weight: 400;
  letter-spacing: .005em;
  line-height: .82;
}

.stage-note {
  max-width: 410px;
  margin: 0 0 2px;
  padding: 14px 17px;
  border: 2px solid var(--ink);
  background: #f5efff;
  box-shadow: 5px 5px 0 var(--purple-deep);
  color: #496275;
  font-size: 14px;
  font-weight: 650;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

.stage-note strong {
  color: var(--ink-deep);
  font-weight: 900;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.game-card {
  --accent: var(--green);
  min-width: 0;
  padding: 16px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.game-card.accent-coral { --accent: var(--coral); }
.game-card.accent-blue { --accent: var(--blue); }
.game-card.accent-yellow { --accent: var(--yellow); }

.game-card::before {
  content: "";
  display: block;
  height: 8px;
  margin: -16px 0 15px;
  background: var(--accent);
}

.game-card:hover,
.game-card:focus-within {
  transform: translate(-2px, -3px);
  box-shadow: 9px 10px 0 var(--ink);
}

.game-info {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}

.game-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  object-fit: cover;
  box-shadow: 4px 4px 0 var(--accent);
}

.game-copy {
  min-width: 0;
}

.game-kicker {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.game-card h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(22px, 1.65vw, 29px);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .95;
}

.game-tagline {
  min-height: 51px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.38;
}

.store-row,
.catalog-stores {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3.357fr);
  align-items: center;
  gap: 8px;
}

.store-row {
  margin-top: 16px;
}

.store-link,
.catalog-stores a {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 140ms ease, filter 140ms ease;
}

.store-link:hover,
.store-link:focus-visible,
.catalog-stores a:hover,
.catalog-stores a:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.store-link:first-child,
.catalog-stores a:first-child {
  aspect-ratio: 3 / 1;
}

.store-link:last-child,
.catalog-stores:not(.single-store) a:last-child {
  aspect-ratio: 564 / 168;
}

.store-link .apple-badge,
.catalog-stores .apple-badge {
  width: 100%;
  height: 100%;
}

.store-link .google-badge,
.catalog-stores .google-badge {
  position: absolute;
  top: -24.405%;
  left: -7.27%;
  width: 114.54%;
  max-width: none;
  height: 148.81%;
}

.game-community {
  min-height: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: #7b8f9b;
  font-size: 8px;
}

.game-community > span {
  white-space: nowrap;
  text-transform: none;
}

.game-community div,
.catalog-community {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 9px;
}

.game-community a,
.catalog-community a {
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-underline-offset: 3px;
  text-transform: none;
}

.catalog-section {
  padding: 42px 2px 38px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 2px 16px;
}

.section-heading p {
  margin: 0 0 5px;
  color: var(--purple);
  font-size: 9px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(28px, 2.6vw, 39px);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.catalog-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 rgba(23, 50, 71, .24);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.catalog-card:hover,
.catalog-card:focus-within {
  transform: translate(-1px, -2px);
  box-shadow: 7px 7px 0 rgba(23, 50, 71, .32);
}

.catalog-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  object-fit: cover;
}

.catalog-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.catalog-card h3 {
  margin: 0;
  color: var(--ink-deep);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
}

.catalog-card p {
  min-height: 32px;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.catalog-stores {
  max-width: 250px;
  gap: 6px;
}

.catalog-stores.single-store {
  grid-template-columns: minmax(0, 122px);
}

.catalog-community {
  justify-content: flex-start;
  margin-top: 6px;
}

.catalog-community a {
  color: var(--muted);
  font-size: 9px;
}

.studio-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  margin: 0 calc((100vw - 100%) / -2);
  padding: 28px max(24px, calc((100vw - min(1480px, calc(100vw - 48px))) / 2));
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: var(--yellow);
}

.studio-band > div > p {
  margin: 0 0 5px;
  color: #6e5700;
  font-size: 9px;
}

.studio-band h2 {
  margin: 0;
  color: var(--ink-deep);
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
}

.studio-band > div > span {
  display: block;
  margin-top: 7px;
  color: #4a5360;
  font-size: 13px;
  font-weight: 700;
}

.support-button {
  min-width: 265px;
  display: grid;
  padding: 13px 16px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, .82);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.support-button strong {
  margin-top: 1px;
  color: var(--ink-deep);
  font-size: 15px;
  font-weight: 900;
}

.support-button:hover,
.support-button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.site-footer {
  width: var(--page);
  min-height: 116px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(260px, 620px);
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  color: var(--muted);
}

.footer-main {
  display: grid;
  font-size: 11px;
}

.footer-main strong {
  color: var(--ink-deep);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

@media (max-width: 1240px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card {
    position: relative;
    display: grid;
    grid-template-columns: clamp(130px, 32%, 190px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 18px;
    padding-top: 26px;
  }

  .game-card::before {
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    margin: 0;
  }

  .game-info {
    display: contents;
  }

  .game-art {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    align-self: start;
    object-fit: cover;
  }

  .game-copy {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .store-row {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 1fr;
    width: min(100%, 168px);
    align-items: start;
    gap: 7px;
    margin-top: 12px;
  }

  .store-row .store-link:first-child {
    width: 89.37%;
  }

  .store-row .store-link:last-child {
    width: 100%;
  }

  .game-community {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
  }

  .game-tagline {
    min-height: 0;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --page: min(100% - 24px, 560px);
  }

  .pixel-ribbon {
    height: 7px;
    background-size: 104px 100%;
  }

  .site-header {
    min-height: 67px;
  }

  .brand {
    gap: 7px;
  }

  .brand img {
    height: 50px;
  }

  .brand span {
    display: none;
  }

  .primary-nav a {
    display: none;
  }

  .primary-nav a:last-child {
    display: inline-flex;
    min-height: 38px;
    padding: 0 10px;
    border-color: var(--ink);
    background: var(--white);
    box-shadow: 3px 3px 0 var(--ink);
    font-size: 11px;
  }

  .primary-nav a:last-child span {
    display: none;
  }

  .games-stage {
    padding: 20px 14px 25px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .stage-heading {
    display: block;
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(43px, 12vw, 52px);
    line-height: .86;
  }

  .stage-note {
    max-width: none;
    margin-top: 16px;
    font-size: 12px;
    clip-path: none;
  }

  .featured-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid {
    gap: 14px;
  }

  .game-card {
    grid-template-columns: 42% minmax(0, 1fr);
    column-gap: 12px;
    padding: 26px 13px 13px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .game-card::before {
    left: 13px;
    right: 13px;
    margin: 0;
  }

  .game-info {
    display: contents;
  }

  .game-art {
    min-height: 0;
  }

  .game-card h2 {
    font-size: 24px;
  }

  .game-tagline {
    margin-top: 7px;
    font-size: 11px;
  }

  .store-row {
    gap: 6px;
    margin-top: 13px;
  }

  .game-community {
    min-height: 25px;
  }

  .catalog-section {
    padding: 38px 1px 32px;
  }

  .section-heading {
    display: block;
    margin-bottom: 14px;
  }

  .catalog-grid {
    gap: 12px;
  }

  .catalog-card {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 13px;
    padding: 11px;
  }

  .catalog-card p {
    min-height: 0;
  }

  .studio-band {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-inline: calc((100vw - 100%) / -2);
    padding: 24px 18px;
  }

  .support-button {
    min-width: 0;
    width: 100%;
  }

  .site-footer {
    min-height: 145px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 12px;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 410px) {
  .game-community > span {
    display: none;
  }

  .game-community {
    justify-content: flex-end;
  }

  .catalog-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .catalog-card h3 {
    font-size: 18px;
  }

  .catalog-card p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
