:root {
  --black: #000;
  --ink: #e8e4d8;
  --dim: #9a978c;
  --gold: #f2c94c;
  --gold-light: #fff2a8;
  --gold-dark: #b9781a;
  --face: #c0c0c0;
  --face-light: #dfdfdf;
  --white: #fff;
  --shadow: #808080;
  --title: #000080;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font: 16px/1.6 Tahoma, Verdana, "Segoe UI", sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--gold); }

code {
  font: 0.92em/1 "Courier New", monospace;
  background: #1c1c1c;
  color: var(--gold-light);
  padding: 2px 5px;
  border: 1px solid #333;
}

.panel code { background: #fff; color: #000; border-color: var(--shadow); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px var(--gutter);
  background: linear-gradient(90deg, var(--title), #1084d0);
  border-bottom: 2px solid var(--black);
  box-shadow: 0 1px 0 #2a2a2a;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.brand img { width: 34px; height: auto; }

.topbar nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar nav::-webkit-scrollbar { display: none; }

.topbar nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 10px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.topbar nav a:hover {
  border-color: rgba(255, 255, 255, 0.5) rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.5) rgba(255, 255, 255, 0.5);
}

.hero {
  text-align: center;
  padding: 24px var(--gutter) 40px;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 260px, var(--black) 400px),
    url("/img/sky.png") center top / auto 400px repeat-x;
  image-rendering: pixelated;
}

.hero .logo {
  display: block;
  width: 420px;
  margin: 0 auto;
  image-rendering: auto;
}

.hero .lead {
  max-width: 600px;
  margin: 12px auto 24px;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.button {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 250px;
  padding: 10px 22px;
  text-decoration: none;
  border: 3px solid;
}

.button b { font-size: 18px; }
.button small { font-size: 13px; opacity: 0.85; }

.button.gold {
  color: #2a1600;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  border-color: #fff6c8 #6b4300 #6b4300 #fff6c8;
}

.button.gold:hover { filter: brightness(1.08); }

.button.gold:active { border-color: #6b4300 #fff6c8 #fff6c8 #6b4300; }

.button.grey {
  color: var(--shadow);
  background: var(--face);
  border-color: var(--white) var(--black) var(--black) var(--white);
  text-shadow: 1px 1px var(--white);
}

.status { margin: 20px 0 0; color: var(--dim); font-size: 14px; }
.status .up { color: #6fdc6f; }

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main > section { padding: 48px 0; border-top: 1px solid #222; }

h2 {
  margin: 0 0 16px;
  font: bold 30px/1.2 "Times New Roman", serif;
  color: var(--gold);
}

h1 {
  margin: 8px 0 0;
  font: bold 32px/1.2 "Times New Roman", serif;
  color: var(--gold);
}

.bitmap.ready { font-size: 0; line-height: 0; }

.bitmap .words {
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
}

.bitmap.center .words { justify-content: center; }

.bitmap canvas, .console canvas { image-rendering: pixelated; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h3 { margin: 0 0 6px; font-size: 17px; }

p { margin: 0 0 12px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.split.reverse > :first-child { order: 2; }

figure { margin: 0; text-align: center; }

figcaption { color: var(--dim); font-size: 13px; margin-top: 8px; }

.shot img { width: 516px; box-shadow: 0 0 0 1px #333, 0 12px 40px rgba(80, 140, 255, 0.18); }

.map img {
  width: 496px;
  image-rendering: pixelated;
  border: 3px solid;
  border-color: var(--shadow) var(--white) var(--white) var(--shadow);
}

.ticks { list-style: none; padding: 0; margin: 0 0 12px; }

.ticks li { position: relative; padding-left: 22px; margin-bottom: 6px; }

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--gold);
  box-shadow: 1px 1px 0 var(--gold-dark);
}

.panel {
  background: var(--face);
  color: #000;
  border: 2px solid;
  border-color: var(--white) var(--black) var(--black) var(--white);
  box-shadow: inset -1px -1px var(--shadow), inset 1px 1px var(--face-light);
  padding: 16px;
}

.panel a { color: var(--title); }

.console {
  background: var(--white);
  color: #000;
  border: 2px solid;
  border-color: var(--shadow) var(--white) var(--white) var(--shadow);
  box-shadow: inset 1px 1px var(--black), 0 0 0 4px var(--face), 0 0 0 6px var(--black);
  margin: 6px;
  padding: 8px 10px;
  min-height: 120px;
  font: 13px/1.5 Arial, sans-serif;
}

.console p { margin: 0; }
.console .line { display: flex; flex-wrap: wrap; margin-bottom: 3px; }
.console .room { padding-left: 14px; }

.note { color: var(--dim); font-size: 14px; margin-top: 18px; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.steps .panel { position: relative; padding-top: 48px; }

.steps .num {
  position: absolute;
  top: 10px;
  left: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font: bold 18px/1 "Times New Roman", serif;
  color: #2a1600;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-dark));
  border: 2px solid;
  border-color: #fff6c8 #6b4300 #6b4300 #fff6c8;
}

.steps p { font-size: 15px; margin: 0; }

.controls dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 10px 0 0;
}

.controls dt { font-weight: bold; }
.controls dd { margin: 0; }

.avatars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding: 16px 0 0;
  background: radial-gradient(ellipse at 50% 100%, #1d2a44 0, transparent 70%);
}

.avatars img { width: 15%; max-width: 96px; image-rendering: pixelated; }

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

.cards p { margin: 0; font-size: 15px; }

.faq { display: grid; gap: 8px; }

.faq details {
  background: #111;
  border: 1px solid #2c2c2c;
  padding: 0 16px;
}

.faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: bold;
  color: var(--gold-light);
}

.faq details[open] summary { border-bottom: 1px solid #2c2c2c; margin-bottom: 12px; }

footer {
  border-top: 1px solid #222;
  margin-top: 24px;
  padding: 28px var(--gutter) 36px;
  text-align: center;
  color: #8a8a8a;
  font-size: 13px;
}

footer p { margin: 0 0 10px; }
footer a { color: #b0b0b0; }

.credits {
  max-width: 520px;
  margin: 18px auto 0;
  padding: 16px 0 4px;
  border-top: 1px solid #3a3020;
}

.credits .label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.people {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 48px;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.person b { color: var(--gold); font-size: 17px; font-weight: normal; }

.links { display: flex; gap: 14px; font-size: 13px; }

.links a { color: #b8b4a8; text-decoration: none; border-bottom: 1px solid #4a4436; }

.links a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .split.reverse > :first-child { order: 0; }
  .steps, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --gutter: 14px; }
  body { font-size: 15px; }
  .brand span { display: none; }
  .topbar { gap: 8px; }
  .topbar nav { margin-left: 0; }
  .topbar nav a { padding: 4px 7px; font-size: 13px; }
  .hero {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 120px, var(--black) 200px),
      url("/img/sky.png") center top / auto 200px repeat-x;
  }
  .hero .logo { width: 300px; }
  .hero .lead { font-size: 16px; }
  .button { min-width: 0; width: 100%; }
  main > section { padding: 36px 0; }
  .steps, .cards { grid-template-columns: minmax(0, 1fr); }
  .controls dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .controls dd { margin-bottom: 8px; }
  .console { margin: 6px 6px; }
}
