:root {
  --bg: #000000;
  --amber: #FF8C00;
  --amberhi: #FFA500;
  --green: #4AFC4A;
  --cyan: #00FFFF;
  --white: #FFFFFF;
  --line: #5a3a10;
  --dim: #7A4A10;
}

* , *::before, *::after {
  box-sizing: border-box;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--amber);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: geometricPrecision;
}

body { min-height: 100vh; overflow-x: hidden; }
::selection { background: var(--amber); color: #000; }
a { color: var(--cyan); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.glow-amber { text-shadow: 0 0 1px #FF8C00, 0 0 4px rgba(255,140,0,.45), 0 0 10px rgba(255,140,0,.18); }
.glow-green { text-shadow: 0 0 1px #4AFC4A, 0 0 4px rgba(74,252,74,.55), 0 0 10px rgba(74,252,74,.2); }
.glow-cyan  { text-shadow: 0 0 1px #00FFFF, 0 0 4px rgba(0,255,255,.45), 0 0 10px rgba(0,255,255,.18); }
.glow-white { text-shadow: 0 0 1px #FFFFFF, 0 0 3px rgba(255,255,255,.35); }

/* CRT overlays: keep fixed and above content */
.crt-scanlines, .crt-flicker, .crt-vignette { pointer-events: none; position: fixed; inset: 0; }
.crt-scanlines {
  z-index: 60;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, rgba(0,0,0,0) 1px, rgba(0,0,0,0) 3px);
  mix-blend-mode: screen;
}
.crt-vignette { z-index: 55; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.crt-flicker { z-index: 58; background: rgba(255,140,0,.012); animation: flicker 3s infinite steps(2); }
@keyframes flicker { 0% {opacity:.6} 25% {opacity:.9} 50% {opacity:.5} 75% {opacity:.95} 100% {opacity:.7} }
@media (prefers-reduced-motion: reduce) { .crt-flicker { animation: none; } }

/* Layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--line); background: #000; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { color: var(--amberhi); font-weight: 700; font-size: 14px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; }
.nav a { color: var(--white); }
.nav a[aria-current="page"] { color: var(--amberhi); text-decoration: underline; }

main { padding: 24px 0 48px; }

h1 { font-size: clamp(20px, 3.2vw, 30px); line-height: 1.25; margin: 0 0 12px; color: var(--amberhi); }
h2 { font-size: 15px; margin: 0 0 12px; color: var(--cyan); text-transform: uppercase; }
h2::before { content: "> "; }
h3 { font-size: 14px; margin: 16px 0 4px; color: var(--amberhi); }
p { margin: 0 0 12px; }
.lead { color: var(--white); font-size: 15px; max-width: 760px; }
.muted { color: var(--amber); }
.white { color: var(--white); }

.panel { border: 1px solid var(--line); margin-bottom: 20px; }
.panel > .title { border-bottom: 1px solid var(--line); padding: 6px 14px; color: var(--cyan); font-size: 12px; text-transform: uppercase; }
.panel > .title::before { content: "┌─[ "; color: var(--line); }
.panel > .title::after { content: " ]"; color: var(--line); }
.panel > .body { padding: 16px 14px 6px; color: var(--white); }
.panel .body ul { margin: 0 0 12px; padding-left: 0; list-style: none; }
.panel .body li { padding-left: 38px; position: relative; margin-bottom: 6px; }
.panel .body li::before { content: "[+]"; position: absolute; left: 0; color: var(--green); }
.panel .body li.no::before { content: "[x]"; color: #FF3939; }

.notice { border: 1px solid var(--amber); padding: 10px 14px; margin: 16px 0 20px; color: var(--amberhi); }

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

.step { border: 1px solid var(--line); padding: 14px; color: var(--white); }
.step svg { width: 44px; height: 44px; stroke: var(--amberhi); fill: none; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; margin-bottom: 8px; }
.step .num { color: var(--cyan); font-size: 12px; }
.step h3 { margin: 2px 0 6px; }
.step p { margin: 0; font-size: 13px; }

.facts { width: 100%; border-collapse: collapse; color: var(--white); margin-bottom: 12px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.facts th { color: var(--cyan); font-weight: 400; width: 220px; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 12px; color: var(--white); }
.site-footer .grid { margin-bottom: 16px; }
.site-footer h4 { margin: 0 0 6px; font-size: 12px; color: var(--cyan); text-transform: uppercase; }
.site-footer p { margin: 0 0 6px; }
.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; }
.site-footer .copy { border-top: 1px solid var(--line); padding-top: 12px; color: var(--amber); }

@media (max-width: 800px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
  .facts th { width: 110px; }
  .facts th, .facts td { display: block; width: auto; border-bottom: 0; padding: 2px 0; }
  .facts td { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
}
