/* ---------------------------------------------------------------------------
   MAINFRAME ESCAPE — the game's own theme, layered over site.css.

   Only this page uses it, so the game can look like itself without dragging
   the rest of the site into the same colours.
   --------------------------------------------------------------------------- */

:root {
  --bg:        #070b09;
  --bg-raise:  #0e1712;
  --bg-sink:   #050807;
  --line:      #1d3327;
  --ink:       #dff3e6;
  --ink-dim:   #8fae9b;
  --accent:    #4fd6ff;
  --accent-2:  #7ef0b2;
  --board:     #0f2a18;   /* solder mask green */
  --heat:      #ff9a3c;
}

/* The board under everything: traces and pads, drawn in CSS so it costs
   nothing to load. */
body.board {
  background-color: var(--bg);
  background-image:
    linear-gradient(0deg,  rgba(79, 214, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 214, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(126, 240, 178, 0.06), transparent 45%);
  background-size: 46px 46px, 46px 46px, auto;
}

/* Hero --------------------------------------------------------------------- */

.game-hero {
  padding: 70px 0 40px;
  border-bottom: 1px solid var(--line);
}

.game-hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(32px, 6vw, 54px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.game-hero .sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-dim);
  max-width: 54ch;
  margin: 0 0 26px;
}

.screen {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  position: relative;
  margin: 34px 0 0;
}

/* A CRT's scanlines, faint enough to read through. */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 0, 0, 0.22) 2px 3px
  );
}

/* Pillars ------------------------------------------------------------------ */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raise);
  padding: 22px;
}

.pillar h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}

.pillar.heat h3 { color: var(--heat); }

.pillar p { color: var(--ink-dim); margin: 0; }

/* The heat bar, as the game draws it ---------------------------------------- */

.heatbar {
  display: flex;
  gap: 2px;
  margin: 0 0 16px;
}

.heatbar i {
  display: block;
  width: 9px;
  height: 18px;
  background: var(--accent-2);
  opacity: 0.85;
}

.heatbar i:nth-child(n+15) { background: var(--heat); }
.heatbar i:nth-child(n+19) { background: #ff5a4f; }

/* Shots -------------------------------------------------------------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.strip figure { margin: 0; }

.strip img {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.strip figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  padding-top: 8px;
}

/* A plain fact list -------------------------------------------------------- */

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.facts li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.facts b {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  font-weight: 500;
}

@media (max-width: 620px) {
  .facts li { grid-template-columns: 1fr; gap: 2px; }
}
