:root {
  --ink: #11100f;
  --paper: #f1eee5;
  --paper-deep: #ded8c8;
  --pink: #ff3d81;
  --cyan: #32d6cb;
  --yellow: #f6d44a;
  --blue: #3446d4;
  --line: rgba(17, 16, 15, 0.22);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --mono: "Courier New", Courier, monospace;
  --body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 16, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 5px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  width: max-content;
  font-size: 15px;
  text-decoration: none;
}

.wordmark > span:first-child {
  color: var(--pink);
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--pink);
  animation: blink 1s steps(1) infinite;
}

.site-header nav {
  display: flex;
  gap: 32px;
}

.site-header nav a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  text-decoration-color: var(--pink);
}

.credit {
  justify-self: end;
  padding: 4px 8px;
  color: var(--paper);
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  min-height: min(830px, calc(100vh - 72px));
  padding: clamp(70px, 10vw, 130px) clamp(24px, 7vw, 110px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  width: min(48vw, 680px);
  aspect-ratio: 1;
  right: -5vw;
  top: 10%;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 22px;
  font: 700 12px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 14px;
  padding: 5px 8px;
  color: var(--paper);
  background: var(--pink);
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.84;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(74px, 11vw, 162px);
}

h1 em,
h2 em {
  color: var(--pink);
  font-style: normal;
}

.hero-intro {
  max-width: 520px;
  margin: 38px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

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

.button-primary {
  background: var(--yellow);
}

.text-link {
  font: 700 12px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.cabinet-wrap {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(76%, 400px);
  padding-top: 25px;
}

.cabinet-glow {
  position: absolute;
  inset: 12% -20% 10%;
  background: var(--cyan);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.22;
}

.cabinet {
  position: relative;
  padding: 15px 17px 34px;
  background: var(--blue);
  border: 5px solid var(--ink);
  box-shadow: 14px 14px 0 var(--pink), 20px 20px 0 var(--ink);
  clip-path: polygon(8% 0, 92% 0, 100% 10%, 93% 65%, 100% 78%, 94% 100%, 6% 100%, 0 78%, 7% 65%, 0 10%);
  transform: rotate(2deg);
}

.marquee {
  margin: 0 18px 14px;
  padding: 12px 6px 9px;
  color: var(--ink);
  background: var(--yellow);
  border: 4px solid var(--ink);
  font: 900 clamp(20px, 3vw, 31px)/1 var(--display);
  letter-spacing: 0.08em;
  text-align: center;
}

.screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  margin: 0 12px;
  color: var(--cyan);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 5px),
    #090c18;
  border: 12px solid var(--ink);
  border-radius: 42% / 12%;
  box-shadow: inset 0 0 35px rgba(50, 214, 203, 0.28);
  overflow: hidden;
  font: 700 16px/1 var(--mono);
}

.screen::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.55));
  content: "";
}

.screen p {
  z-index: 2;
  margin-top: 110px;
  animation: blink 1.1s steps(1) infinite;
}

.screen-score {
  position: absolute;
  z-index: 2;
  top: 25px;
  display: flex;
  justify-content: space-between;
  width: 72%;
  color: var(--pink);
  font-size: 11px;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--paper) 0 1px, transparent 1px),
    radial-gradient(circle, var(--cyan) 0 1px, transparent 1px);
  background-position: 15px 22px, 48px 7px;
  background-size: 62px 50px, 80px 68px;
  opacity: 0.55;
}

.pixel-ship {
  position: absolute;
  z-index: 2;
  width: 50px;
  height: 30px;
  top: 105px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 65% 38%, 100% 70%, 100% 100%, 60% 80%, 50% 100%, 40% 80%, 0 100%, 0 70%, 35% 38%);
}

.controls {
  position: relative;
  height: 90px;
  margin: 0 7px 15px;
  background: var(--paper-deep);
  border: 4px solid var(--ink);
  border-top: 9px solid var(--ink);
  transform: perspective(100px) rotateX(7deg);
}

.joystick {
  position: absolute;
  width: 11px;
  height: 43px;
  left: 28%;
  bottom: 17px;
  background: var(--ink);
}

.joystick::before {
  position: absolute;
  width: 28px;
  height: 28px;
  left: -8px;
  top: -10px;
  background: var(--pink);
  border: 4px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.control-button {
  position: absolute;
  width: 28px;
  height: 15px;
  top: 30px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.control-button-pink {
  right: 29%;
  background: var(--pink);
}

.control-button-yellow {
  right: 15%;
  top: 42px;
  background: var(--yellow);
}

.coin-slot {
  margin: 0 auto;
  color: var(--paper);
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.05em;
  text-align: center;
}

.coin-slot span {
  display: block;
  width: 25px;
  height: 8px;
  margin: 0 auto 8px;
  background: var(--ink);
  border: 2px solid var(--paper);
}

.cabinet-caption {
  position: relative;
  margin: 35px 0 0;
  font: 700 9px/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-align: center;
}

.ticker {
  padding: 11px 0 8px;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  font: 900 20px/1 var(--display);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ticker div {
  display: inline-flex;
  gap: 28px;
  min-width: max-content;
  animation: marquee 16s linear infinite;
}

.ticker i {
  color: var(--pink);
  font-style: normal;
}

.section {
  padding: clamp(90px, 12vw, 170px) clamp(24px, 7vw, 110px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px 70px;
  align-items: end;
  margin-bottom: 80px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

h2 {
  font-size: clamp(60px, 8vw, 112px);
}

.section-heading > p:last-child {
  max-width: 480px;
  margin: 0 0 6px;
  font-size: 18px;
}

.timeline-list {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 150px 1fr 120px;
  gap: 32px;
  align-items: center;
  min-height: 190px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.year,
.game-meta {
  font: 700 13px/1.2 var(--mono);
  letter-spacing: 0.08em;
}

.timeline-list h3,
.why-grid h3,
.game-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 43px);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.timeline-list p {
  max-width: 680px;
  margin: 10px 0 0;
}

.era-icon {
  position: relative;
  justify-self: center;
  display: block;
  width: 70px;
  height: 70px;
}

.icon-signal {
  border: 5px solid var(--pink);
  border-radius: 50%;
}

.icon-signal::before,
.icon-signal::after {
  position: absolute;
  inset: 12px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.icon-signal::after {
  inset: 27px;
  background: var(--yellow);
  border: 0;
}

.icon-invader {
  background: var(--cyan);
  clip-path: polygon(15% 15%, 30% 15%, 30% 0, 40% 0, 40% 15%, 60% 15%, 60% 0, 70% 0, 70% 15%, 85% 15%, 85% 30%, 100% 30%, 100% 70%, 85% 70%, 85% 100%, 70% 100%, 70% 80%, 30% 80%, 30% 100%, 15% 100%, 15% 70%, 0 70%, 0 30%, 15% 30%);
}

.icon-cart {
  height: 64px;
  margin-top: 6px;
  background: var(--yellow);
  border: 5px solid var(--ink);
  box-shadow: inset 0 -16px var(--pink);
}

.icon-cart::before {
  position: absolute;
  width: 30px;
  height: 8px;
  top: 12px;
  left: 15px;
  background: var(--ink);
  content: "";
}

.icon-cube {
  width: 58px;
  height: 58px;
  border: 5px solid var(--blue);
  transform: rotate(30deg) skew(-5deg);
}

.icon-cube::before {
  position: absolute;
  inset: 10px;
  background: var(--pink);
  content: "";
}

.why {
  color: var(--paper);
  background: var(--blue);
}

.why-title-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
  gap: 60px;
  margin-bottom: 90px;
}

.why-title-block h2 {
  color: var(--paper);
}

.why-title-block h2 em {
  color: var(--yellow);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.why-grid article {
  min-height: 280px;
  padding: 28px 30px 20px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.42);
}

.why-grid article:not(:first-child) {
  padding-left: 30px;
}

.why-grid article:last-child {
  border-right: 0;
}

.why-grid .number {
  display: block;
  margin-bottom: 70px;
  color: var(--cyan);
  font: 700 12px/1 var(--mono);
}

.why-grid p {
  margin: 16px 0 0;
  color: rgba(241, 238, 229, 0.78);
  line-height: 1.5;
}

.play {
  background: var(--yellow);
}

.play-heading {
  margin-bottom: 56px;
}

.play-heading h2 em {
  color: var(--blue);
}

.picker {
  max-width: 1040px;
  margin: 0 auto;
}

.picker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.chip {
  padding: 11px 16px;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip:hover,
.chip:focus-visible,
.chip.is-active {
  color: var(--paper);
  background: var(--ink);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  min-height: 430px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 var(--ink);
}

.game-art {
  position: relative;
  min-height: 360px;
  background-color: var(--blue);
  background-image: radial-gradient(rgba(241, 238, 229, 0.5) 1px, transparent 1px);
  background-size: 18px 18px;
  overflow: hidden;
}

.game-art::before,
.game-art::after {
  position: absolute;
  content: "";
  transition: all 250ms ease;
}

.game-art::before {
  width: 150px;
  height: 150px;
  left: 50%;
  top: 50%;
  background: var(--pink);
  clip-path: polygon(50% 0, 62% 34%, 100% 20%, 72% 50%, 100% 80%, 62% 66%, 50% 100%, 38% 66%, 0 80%, 28% 50%, 0 20%, 38% 34%);
  transform: translate(-50%, -50%) rotate(10deg);
}

.game-art::after {
  width: 42px;
  height: 42px;
  left: 50%;
  top: 50%;
  background: var(--yellow);
  border: 5px solid var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}

.game-art[data-art="explore"] {
  background-color: var(--cyan);
}

.game-art[data-art="explore"]::before {
  width: 180px;
  height: 220px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 22% 100%, 0 38%);
  transform: translate(-50%, -45%);
}

.game-art[data-art="explore"]::after {
  width: 65px;
  height: 65px;
  background: var(--yellow);
  border-radius: 50%;
  transform: translate(-50%, -35%);
}

.game-art[data-art="think"] {
  background-color: var(--pink);
}

.game-art[data-art="think"]::before {
  width: 180px;
  height: 220px;
  background: repeating-linear-gradient(0deg, var(--yellow) 0 36px, var(--ink) 36px 43px);
  clip-path: none;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.game-art[data-art="think"]::after {
  width: 60px;
  height: 60px;
  background: var(--cyan);
  transform: translate(20%, -120%) rotate(4deg);
}

.game-art[data-art="together"] {
  background-color: var(--ink);
}

.game-art[data-art="together"]::before {
  width: 110px;
  height: 190px;
  left: 33%;
  background: var(--pink);
  clip-path: polygon(30% 0, 70% 0, 70% 30%, 100% 30%, 100% 100%, 0 100%, 0 30%, 30% 30%);
  transform: translate(-50%, -45%);
}

.game-art[data-art="together"]::after {
  width: 110px;
  height: 190px;
  left: 67%;
  background: var(--cyan);
  border: 0;
  clip-path: polygon(30% 0, 70% 0, 70% 30%, 100% 30%, 100% 100%, 0 100%, 0 30%, 30% 30%);
  transform: translate(-50%, -45%);
}

.game-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(35px, 6vw, 70px);
}

.game-meta {
  margin: 0 0 30px;
  color: var(--blue);
}

.game-card h3 {
  font-size: clamp(50px, 7vw, 88px);
}

#game-description {
  max-width: 500px;
  margin: 24px 0 0;
  font-size: 19px;
}

.game-note {
  margin: 35px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font: 700 11px/1.5 var(--mono);
  text-transform: uppercase;
}

.legal-note {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: 13px;
}

.manifesto {
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 90px 24px;
  color: var(--paper);
  background: var(--pink);
  text-align: center;
}

.manifesto p {
  margin: 0;
  font: 900 clamp(48px, 9vw, 128px)/0.86 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.manifesto p span {
  color: var(--yellow);
}

.button-dark {
  margin-top: 65px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--paper);
  box-shadow: 5px 5px 0 var(--paper);
}

.button-dark:hover,
.button-dark:focus-visible {
  box-shadow: 2px 2px 0 var(--paper);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 64px);
  color: var(--paper);
  background: var(--ink);
  font: 700 9px/1.4 var(--mono);
  letter-spacing: 0.06em;
}

footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cabinet-wrap {
    width: min(65vw, 360px);
    margin-top: 90px;
  }

  .section-heading,
  .why-title-block {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-grid article:nth-child(2) {
    border-right: 0;
  }

  .why-grid article:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.42);
  }
}

@media (max-width: 650px) {
  .hero {
    padding-top: 64px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .timeline-list li {
    grid-template-columns: 1fr 70px;
    gap: 16px;
    padding: 34px 0;
  }

  .timeline-list li > div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .era-icon {
    grid-column: 2;
    grid-row: 1;
    width: 54px;
    height: 54px;
  }

  .icon-cart,
  .icon-cube {
    width: 50px;
    height: 48px;
  }

  .why-title-block {
    gap: 32px;
    margin-bottom: 50px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-grid article,
  .why-grid article:not(:first-child) {
    min-height: auto;
    padding: 30px 0 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    border-right: 0;
  }

  .why-grid .number {
    margin-bottom: 35px;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-art {
    min-height: 290px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
