:root {
  --bg: #020602;
  --green: #39ff6a;
  --green-text: #b6f5c4;
  --green-dim: #4fa866;
  --green-dark: #0f3d1c;
  --amber: #ffb000;
  --glow: 0 0 6px #39ff6a55;
  --glow-amber: 0 0 6px #ffb00066;
  --pixel: "VT323", ui-monospace, Menlo, monospace;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(ellipse at center, #071407 0%, var(--bg) 70%, #000 100%) fixed, var(--bg);
  color: var(--green-text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--green); color: #000; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* soft scanlines, light enough to read through */
.crt {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, #0000 0 2px, #0003 2px 3px),
    radial-gradient(ellipse at center, #0000 60%, #0008 100%);
}

/* ---- menu bar ---- */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center;
  padding: 4px var(--gutter);
  background: var(--green); color: #000;
  font-family: var(--pixel); font-size: 22px; line-height: 1.4;
  box-shadow: 0 0 16px #39ff6a44;
}
.logo { text-decoration: none; letter-spacing: .08em; }
.bar nav { display: flex; gap: 2px 6px; flex-wrap: wrap; }
.bar nav a { text-decoration: none; padding: 0 8px; }
.bar nav a:hover { background: #000; color: var(--green); }
.bar nav a[aria-current="page"] { background: #000; color: var(--green); }
.bar nav a[aria-current="page"]::before { content: "> "; }
.bar nav a.hot { outline: 2px solid #000; outline-offset: -2px; }
.bar nav a.hot:hover, .bar nav a.hot[aria-current="page"] { background: #000; color: var(--amber); }
@media (max-width: 640px) {
  .bar { justify-content: center; font-size: 20px; }
  .bar nav { justify-content: center; }
}

/* ---- layout + type ---- */
.screen { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 48px 0 16px; }
p { margin: 0 0 14px; }
h1, h2 { font-family: var(--pixel); font-weight: normal; color: var(--green); text-shadow: var(--glow); }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1; margin: 0 0 20px; }
h2 { font-size: clamp(32px, 5vw, 42px); line-height: 1.1; margin: 0 0 18px; }
.amber { color: var(--amber); text-shadow: var(--glow-amber); }
.dim { color: var(--green-dim); }
.path { font-family: var(--pixel); font-size: 20px; color: var(--green-dim); margin-bottom: 10px; }
.path::before { content: "~/"; }
.intro { font-size: 17px; max-width: 640px; margin-bottom: 26px; }

/* ---- home ---- */
.home { padding-top: 28px; }
.boot-log {
  font-family: var(--pixel); font-size: clamp(17px, 2.6vw, 21px); line-height: 1.3;
  margin: 0 0 20px; white-space: pre-wrap; color: var(--green-dim); min-height: 5.4em;
}
.title {
  position: relative; font-family: var(--pixel); font-weight: normal;
  font-size: clamp(76px, 19vw, 180px); line-height: .85; letter-spacing: .04em; margin: 0 0 8px;
  color: var(--amber);
  text-shadow: 0 0 4px #ffb000, 0 0 18px #ff7a0088, 4px 4px 0 #3a1a00;
}
.title::before, .title::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.title::before { color: #ff3b3b; animation: glitch 6s infinite steps(1); }
.title::after { color: #3bf0ff; animation: glitch 6s infinite steps(1) reverse; }
.sub { font-family: var(--pixel); font-size: 26px; line-height: 1.15; color: var(--green); text-shadow: var(--glow); margin-bottom: 26px; }
.line { font-family: var(--pixel); font-size: clamp(26px, 4vw, 34px); line-height: 1.15; color: var(--green); text-shadow: var(--glow); margin: 0; }
.status { margin: 22px 0 22px; }
.cursor { animation: blink 1s infinite steps(1); }

.menu { list-style: none; padding: 0; margin: 0; border-top: 1px dashed var(--green-dark); }
.menu a { display: block; padding: 12px 8px; text-decoration: none; border-bottom: 1px dashed var(--green-dark); }
.menu a:hover, .menu a:focus-visible { background: var(--green); color: #000; outline: none; }
.menu a:hover .dim, .menu a:hover .key, .menu a:focus-visible .dim { color: #000; }
.key { color: var(--amber); margin-right: 6px; }

/* ---- monitor frame ---- */
.monitor {
  position: relative; margin: 8px 0 28px;
  border: 2px solid var(--green-dim); padding: 8px; background: #000;
  box-shadow: 0 0 0 4px #000, 0 0 0 6px var(--green-dark), 0 0 30px #39ff6a1a;
}
.monitor img { width: 100%; image-rendering: pixelated; }
.monitor figcaption { padding: 10px 2px 2px; font-size: 14px; }
figure.monitor { margin: 0 0 28px; }

/* ---- signup ---- */
.signup { max-width: 600px; }
.signup label { display: block; margin-bottom: 8px; color: var(--green); }
.signup .row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input {
  flex: 1 1 240px; min-width: 0;
  font: inherit; font-size: 16px; color: var(--green);
  background: #000; border: 2px solid var(--green-dim); padding: 10px 12px;
  border-radius: 0; outline: none; caret-color: var(--green);
}
.signup input:focus { border-color: var(--green); box-shadow: 0 0 12px #39ff6a44; }
.signup input::placeholder { color: #2f6b3e; }
.signup button {
  font-family: var(--pixel); font-size: 24px; cursor: pointer;
  background: #000; color: var(--amber); text-shadow: var(--glow-amber);
  border: 2px solid var(--amber); padding: 4px 18px; border-radius: 0;
}
.signup button:hover, .signup button:focus-visible { background: var(--amber); color: #000; text-shadow: none; outline: none; }
.signup button:disabled { opacity: .6; cursor: default; }
@media (max-width: 480px) { .signup button { flex: 1 1 100%; } }
.form-note { margin: 8px 0 0; font-size: 14px; color: var(--green-dim); min-height: 1.5em; }
.form-note.ok { color: var(--green); }
.form-note.err { color: var(--amber); }

/* ---- how to play ---- */
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; max-width: 760px; }
.dir { margin: 0; border-top: 1px dashed var(--green-dark); }
.dir dt {
  font-family: var(--pixel); font-size: 26px; color: var(--amber); text-shadow: var(--glow-amber);
  padding-top: 14px;
}
.dir dd { margin: 0; padding: 0 0 14px; border-bottom: 1px dashed var(--green-dark); }
@media (min-width: 700px) {
  .dir { display: grid; grid-template-columns: 220px 1fr; }
  .dir dt, .dir dd { padding: 14px 0; border-bottom: 1px dashed var(--green-dark); }
  .dir dt { line-height: 1.1; padding-right: 20px; }
}

/* ---- biscuit ---- */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 5vw, 56px); align-items: center; }
.shop img { width: 100%; max-width: 380px; margin: 0 auto; image-rendering: pixelated; filter: drop-shadow(0 0 18px #ffb00033); }
.stats {
  font-family: var(--pixel); font-size: clamp(19px, 2.6vw, 23px); line-height: 1.3;
  color: var(--amber); text-shadow: var(--glow-amber); white-space: pre-wrap; margin: 18px 0 0;
  border-left: 2px solid var(--amber); padding-left: 14px;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .shop img { max-width: 260px; } }

/* ---- maps ---- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 10px; }
.gallery figure.monitor { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* ---- bosses ---- */
.wanted { width: 100%; border-collapse: collapse; }
.wanted th {
  font-family: var(--pixel); font-weight: normal; font-size: 20px; text-align: left;
  color: var(--green-dim); border-bottom: 1px solid var(--green-dim); padding: 6px 12px 6px 0;
}
.wanted td { padding: 12px 12px 12px 0; border-bottom: 1px dashed var(--green-dark); vertical-align: top; }
.wanted td.amber { font-family: var(--pixel); font-size: 24px; line-height: 1.1; white-space: nowrap; }
.wanted td:last-child { white-space: nowrap; color: var(--green); }
@media (max-width: 700px) {
  .wanted thead { display: none; }
  .wanted, .wanted tbody, .wanted tr, .wanted td { display: block; }
  .wanted tr { padding: 12px 0; border-bottom: 1px dashed var(--green-dark); }
  .wanted td { border: 0; padding: 0; }
  .wanted td:first-child { float: left; margin-right: 10px; line-height: 1.8; }
  .wanted td:last-child { font-size: 14px; color: var(--green-dim); }
  .wanted td:last-child::before { content: "Found in: "; }
}

/* ---- sign up + footer ---- */
.final { padding-bottom: 40px; min-height: 50vh; }
.foot {
  max-width: 920px; margin: 40px auto 0;
  padding: 24px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  border-top: 1px dashed var(--green-dark); font-size: 14px;
}
.foot p { margin: 0 0 4px; }

/* ---- motion ---- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes glitch {
  0%, 94%, 100% { opacity: 0; transform: none; }
  95% { opacity: .6; transform: translate(-3px, 1px); clip-path: inset(10% 0 60% 0); }
  97% { opacity: .6; transform: translate(3px, -1px); clip-path: inset(55% 0 15% 0); }
  98% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- spoiler-free bits ---- */
.redact { color: var(--green-dark); text-shadow: none; letter-spacing: -1px; font-family: var(--mono); font-size: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { margin-top: 22px; font-family: var(--pixel); font-size: 24px; color: var(--amber); text-shadow: var(--glow-amber); }
.locked { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 180px; margin: 0; }
.locked pre { font-family: var(--pixel); font-size: 34px; color: var(--amber); line-height: 1; color: var(--green-dim); margin: 0 0 16px; }
.locked p { font-size: 14px; margin: 0; }
@media (max-width: 700px) {
  .wanted tr:last-child td:last-child::before { content: none; }
}
