/* The site's plain pages (worker/pages.js): games, months, years, platforms, series, studios. Same colors and
   type as the globe, no script. */

@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/vt323-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/vt323-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #000302;
  --panel: #010805;
  --fg: #7dffb0;
  --hot: #d9ffe8;
  --dim: #3a9d64;
  --faint: #1d5a38;
  --line: #0f3a24;
  --green: #3dff8f;
  --amber: #ffb347;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'VT323', 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--hot);
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

/* The bar on top */
.site {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  padding: 10px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(1, 8, 5, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand {
  font: 26px/1 var(--display);
  letter-spacing: 0.08em;
  color: var(--hot);
  text-decoration: none;
  text-shadow: 0 0 10px rgba(61, 255, 143, 0.7);
  white-space: nowrap;
}
.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
}
.site nav a {
  color: var(--fg);
  text-decoration: none;
}
.site nav a:hover,
.site nav a[aria-current] {
  color: var(--hot);
}
.site nav .globe {
  color: var(--green);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.crumbs {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.crumbs a {
  color: var(--dim);
}

h1 {
  margin: 10px 0 6px;
  font: 48px/1 var(--display);
  font-weight: 400;
  color: var(--hot);
  text-shadow: 0 0 14px rgba(61, 255, 143, 0.45);
  overflow-wrap: anywhere;
}
h2 {
  margin: 34px 0 10px;
  padding-bottom: 4px;
  font: 30px/1.1 var(--display);
  font-weight: 400;
  color: var(--hot);
  border-bottom: 1px solid var(--line);
}
h3 {
  margin: 22px 0 6px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.lead {
  max-width: 78ch;
  color: var(--fg);
}
p {
  max-width: 78ch;
}
.dim {
  color: var(--dim);
}

/* A game: the cover beside what is known */
.hero {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 24px;
  margin-top: 14px;
}
.cover {
  width: 264px;
  height: auto;
  aspect-ratio: 264 / 352;
  object-fit: cover;
  border: 1px solid var(--dim);
  background: var(--panel);
  box-shadow: 0 0 30px rgba(61, 255, 143, 0.12);
}
.cover.none {
  display: grid;
  place-items: center;
  font: 64px/1 var(--display);
  color: var(--faint);
}
.when {
  margin: 8px 0;
  font-size: 17px;
  color: var(--hot);
}
.when b {
  color: var(--green);
  font-weight: 600;
}
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 16px;
  margin: 14px 0;
}
.facts dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 2px;
}
.facts dd {
  margin: 0;
}
.scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.score {
  display: grid;
  min-width: 96px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(61, 255, 143, 0.04);
  text-decoration: none;
}
.score b {
  font: 34px/1 var(--display);
  color: var(--hot);
}
.score small {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}
.button {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--line);
}
.button:hover {
  border-color: var(--dim);
}
.button.go {
  color: #0b1a10;
  background: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.button.go:hover {
  color: #000;
  background: var(--hot);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 8px 0;
  list-style: none;
}
.chips li,
.chips a {
  padding: 1px 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
}
.chips a:hover {
  border-color: var(--dim);
  color: var(--hot);
}
.chips small {
  color: var(--dim);
}
.summary {
  font-size: 15.5px;
  color: var(--hot);
}
.source {
  font-size: 12px;
  color: var(--dim);
}

table.dates {
  border-collapse: collapse;
  min-width: min(520px, 100%);
}
table.dates th,
table.dates td {
  padding: 5px 16px 5px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.dates th {
  font-weight: 400;
  color: var(--fg);
}
table.dates td {
  color: var(--hot);
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.shots img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel);
}

/* Lists of games */
ol.rows,
ul.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rows li {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.rows li.here {
  background: rgba(61, 255, 143, 0.07);
}
.rows .thumb {
  width: 45px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel);
}
.rows .thumb.none {
  display: block;
}
.rows .t {
  display: block;
  font-weight: 600;
  color: var(--hot);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.rows a.t:hover {
  color: var(--green);
  text-decoration: underline;
}
.rows .m {
  display: block;
  font-size: 12.5px;
  color: var(--dim);
}
.rows .side {
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
  color: var(--fg);
}
.rows .side b {
  display: block;
  font: 26px/1 var(--display);
  color: var(--hot);
}
ol.rows {
  counter-reset: row;
}
ol.rows li .t::before {
  counter-increment: row;
  content: counter(row) '. ';
  color: var(--dim);
  font-weight: 400;
}
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.refs li {
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.refs .y {
  color: var(--dim);
  font-size: 13px;
}
.refs li.here a {
  color: var(--green);
}

/* Calendars and indexes */
.months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}
.months a,
.months span {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  text-decoration: none;
}
.months a:hover {
  border-color: var(--dim);
}
.months b {
  display: block;
  font: 28px/1 var(--display);
  color: var(--hot);
}
.months small {
  color: var(--dim);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 0;
  font-size: 13px;
}
.columns {
  columns: 3 260px;
  column-gap: 32px;
  padding: 0;
  list-style: none;
}
.columns li {
  break-inside: avoid;
  padding: 2px 0;
}
.columns small {
  color: var(--dim);
}
.letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  font-size: 12.5px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 12px;
}
footer a {
  color: var(--fg);
}

@media (max-width: 760px) {
  body {
    font-size: 14.5px;
  }
  .site {
    position: static;
  }
  h1 {
    font-size: 38px;
  }
  .hero {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
  }
  .cover {
    width: 120px;
  }
  .hero .about {
    grid-column: 1 / -1;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .facts dd {
    margin-bottom: 8px;
  }
  .score {
    min-width: 0;
  }
}
