:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #050905;
  --panel-alt: #0a120a;
  --text: #39ff14;
  --muted: #19a80a;
  --line: #1f7a16;
  --white: #e8ffe4;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Press Start 2P", Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.8;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    rgba(57, 255, 20, 0.05),
    rgba(57, 255, 20, 0.05) 1px,
    transparent 1px,
    transparent 5px
  );
}

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

a {
  color: var(--text);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

a:hover,
a:focus-visible {
  color: var(--white);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--white);
  line-height: 1.4;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.55rem, 5vw, 3.8rem);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

p {
  color: var(--text);
}

.material-symbols-outlined {
  display: inline-block;
  font-family: "Material Symbols Outlined";
  font-size: 1.05rem;
  font-style: normal;
  font-weight: normal;
  font-feature-settings: "liga";
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 2.9rem;
  padding: 0.35rem clamp(1rem, 4vw, 3rem);
  border-bottom: 2px solid var(--line);
  background: #000;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 1rem;
}

.site-nav a {
  min-height: 2rem;
  padding: 0.35rem 0 0;
  color: var(--text);
  font-size: 0.7rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--white);
}

main {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.title-block {
  display: grid;
  grid-template-columns: clamp(6rem, 14vw, 9.5rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  max-width: 75rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.title-icon {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.title-copy p {
  font-size: clamp(0.95rem, 1.9vw, 1.35rem);
}

.terminal-title::after {
  display: inline-block;
  margin-left: 0.18em;
  color: currentColor;
  content: "_";
  user-select: none;
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}

.games,
.content-page {
  border: 2px solid var(--line);
  background: var(--panel);
  padding: clamp(1rem, 4vw, 2rem);
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.timeline-year {
  margin: 1.15rem 0 0.2rem;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--panel-alt);
}

.game-card + .game-card {
  margin-top: 1rem;
}

.game-image {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border-right: 2px solid var(--line);
  background: #000;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.snek-image img {
  position: absolute;
  inset: 0;
  margin: auto;
  object-fit: contain;
}

.snek-image .snek-logo {
  width: auto;
  height: 168%;
}

.snek-image .snek-foreground {
  width: auto;
  height: 96%;
}

.game-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  padding: 1.2rem;
}

.game-copy p {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.game-copy .button,
.game-copy .button-row {
  margin-top: auto;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0;
  color: #111;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  list-style: none;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.3rem;
  color: var(--text);
  gap: 0.3rem;
}

.android-version {
  font-family: "Press Start 2P", Consolas, "Courier New", monospace;
  font-size: 0.62rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  margin-top: 0.5rem;
  padding: 0.65rem 0.7rem;
  border: 2px solid var(--text);
  background: #000;
  color: var(--text);
  font-size: 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}

.button .material-symbols-outlined {
  font-size: 1.1rem;
}

.button-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.button:hover,
.button:focus-visible {
  border-color: var(--white);
  background: var(--text);
  color: #000;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.person-card {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  border: 2px solid var(--line);
  background: var(--panel-alt);
}

.person-card img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
  object-position: center top;
  border-right: 2px solid var(--line);
}

.person-copy {
  padding: 1rem;
}

.page-note {
  margin-bottom: 2rem;
}

.section-label {
  margin: 2rem 0 1rem;
  color: var(--text);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.7rem;
}

.site-footer a {
  color: var(--text);
}

@media (max-width: 860px) {
  .site-header {
    justify-content: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 11px;
  }

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

  .title-block {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

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

  .game-image,
  .person-card img {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .game-image {
    min-height: 11rem;
  }

  .button-row {
    flex-wrap: wrap;
  }
}
