/* Computing Ninja Games: what the two logic games share (D, 25 Oct 2026; docs/games.md). Zero Drop and Fail Safe came
   from CompSciGuy already finished and already alike: the same slate, the same IBM Plex, the same green for live and
   red for hot. This file is that common design in one place: the tokens, the page, the header with the product's
   wordmark, the footer, and the button and panel shapes both use. Each game's own css (zero-drop/css/styles.css,
   fail-safe/css/styles.css) holds only what is its own. It is an alignment, not a redesign: nothing here is new to
   either game except the wordmark and the All games link in the header, which every Games page carries. */
:root{
  --bg:#0d1116; --panel:#161c23; --panel-2:#1d242c; --line:#2b343d; --line-2:#3a4650;
  --ink:#dfe7ee; --dim:#8b98a5; --faint:#5d6a77;
  --live:#2ee08a; --hot:#ff5d55; --amber:#ffb648; --accent:#4ea8ff;
  --r:6px;
  --sans:"IBM Plex Sans",system-ui,-apple-system,Segoe UI,sans-serif;
  --mono:"IBM Plex Mono",monospace;
  --w:1180px;             /* the page's width: a game sets its own */
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--ink);
  font:16px/1.55 var(--sans);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}

/* ---------------------------------------------------------------- header */
/* The product's wordmark, then the game's own name (h1 in Zero Drop, .logo in Fail Safe), then what the game puts
   there (a line under the name, the crumb, the exam board), then the way back. Sticky on both. */
header{
  display:flex;align-items:center;gap:14px;
  padding:12px 22px;border-bottom:1px solid var(--line);background:var(--panel);
  position:sticky;top:0;z-index:20;
}
header .wordmark{
  display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);
  font-weight:500;font-size:15px;letter-spacing:.01em;white-space:nowrap;
  padding-right:14px;border-right:1px solid var(--line-2);
}
header .wordmark svg{width:18px;height:20px;fill:var(--live);flex:none}
header .wordmark .prod{
  font:12px/1 var(--mono);color:var(--live);background:var(--panel-2);border:1px solid var(--line-2);
  border-radius:var(--r);padding:4px 7px 5px;letter-spacing:.04em;
}
header h1,header .logo{font-size:19px;font-weight:500;margin:0;letter-spacing:.02em;text-decoration:none;white-space:nowrap}
header h1 b,header .logo b{color:var(--live);font-weight:500}
header .sub{color:var(--faint);font-size:13px}
header #crumb{color:var(--dim);font-size:14px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
header #crumb a{color:var(--dim);text-decoration:none;border-bottom:1px solid var(--line-2)}
header select{
  background:var(--panel-2);color:var(--ink);border:1px solid var(--line-2);
  border-radius:var(--r);padding:6px 10px;font:inherit;font-size:14px;
}
header .all{
  margin-left:auto;color:var(--dim);text-decoration:none;font-size:14px;white-space:nowrap;
  padding:6px 10px;border:1px solid transparent;border-radius:var(--r);
}
header #crumb+select{margin-left:0}
header .all:hover{color:var(--ink);border-color:var(--line-2)}
@media (max-width:640px){
  header{padding:10px 14px;gap:10px;flex-wrap:wrap}
  header .wordmark{font-size:14px;padding-right:10px}
  header .sub{display:none}
  header .all{font-size:13px}
}

main{max-width:var(--w);margin:0 auto;padding:22px}

footer{
  max-width:var(--w);margin:0 auto;padding:24px 22px 40px;color:var(--faint);font-size:13px;
  display:flex;gap:16px;flex-wrap:wrap;
}
footer a{color:var(--dim);text-decoration:none;border-bottom:1px solid var(--line)}

/* --------------------------------------------------------- shared shapes */
/* A panel: the board in Zero Drop; the circuit, a level card and the safe in Fail Safe. */
.grid-panel,.panel,.card,.safewrap .safe{background:var(--panel);border:1px solid var(--line);border-radius:10px}
/* A button: Start and the switches in Zero Drop; the buttons, switches, gates and the editor's small keys in Fail Safe.
   Green-edged when it is the move to make. */
.btn,button.go,.sw button,.switch,.gatebtn,.ed .mini{
  background:var(--panel);color:var(--ink);border:1px solid var(--line-2);border-radius:var(--r);
  font:inherit;cursor:pointer;
}
.btn:hover,.sw button:hover,.switch:hover,.gatebtn:hover,.ed .mini:hover{border-color:var(--dim)}
.btn.primary,button.go{border-color:var(--live);color:var(--live)}
.btn.primary:hover,button.go:hover{background:rgba(46,224,138,.1)}
/* A small label in the screen font: the mode on a level card, the tag on a brief, the word on the safe's dial. */
.card .mode,.brief .tag,.dialword{font:12px/1 var(--mono);color:var(--faint);text-transform:uppercase;letter-spacing:.08em}
