/* STEEL DAWN — console page chrome */
:root {
  --room0: #05070f;
  --room1: #0a0f1e;
  --shell0: #1c2130;
  --shell1: #12151f;
  --shell-edge: #2c3348;
  --plate: #ffd24a;
  --ink: #c8d2e8;
  --dim: #5c688a;
  --accent: #7fd4ff;
  --hot: #ff5a3c;
  --display: 'Press Start 2P', 'Courier New', monospace;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--room0);
  color: var(--ink);
  font-family: var(--mono);
  overflow-x: hidden;
}

.room {
  min-height: 100%;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(64, 96, 168, 0.16), transparent 65%),
    radial-gradient(900px 600px at 12% 108%, rgba(20, 40, 80, 0.22), transparent 60%),
    radial-gradient(700px 500px at 92% 100%, rgba(60, 24, 40, 0.14), transparent 60%),
    linear-gradient(#070a14, #04050b 55%, #020308);
  position: relative;
}

/* desk-lamp cone above the console */
.lamp-glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 60vh;
  background: radial-gradient(46% 90% at 50% -20%, rgba(127, 212, 255, 0.10), rgba(127, 212, 255, 0.03) 45%, transparent 70%);
  pointer-events: none;
  animation: lampBreath 9s ease-in-out infinite;
}
@keyframes lampBreath {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.floor-shadow {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  width: min(92vw, 980px);
  height: 90px;
  transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 0%, rgba(0,0,0,0.55), transparent 75%);
  pointer-events: none;
}

.rig {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: 4.5vh 18px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* ================= console shell ================= */
.console {
  width: min(94vw, 900px);
  background: linear-gradient(178deg, var(--shell0), var(--shell1) 70%);
  border: 1px solid var(--shell-edge);
  border-radius: 26px 26px 34px 34px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.06),
    inset 0 -14px 30px rgba(0,0,0,0.5),
    0 30px 60px rgba(0,0,0,0.65),
    0 4px 0 #0a0d16;
  padding: 18px 22px 20px;
  position: relative;
}
.console::before, .console::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a5470, #171b28 70%);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,0.8);
  top: 12px;
}
.console::before { left: 14px; }
.console::after { right: 14px; }

.console-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.vents {
  width: 84px;
  height: 16px;
  background: repeating-linear-gradient(90deg, #0b0e17 0 4px, #1f2536 4px 8px);
  border-radius: 3px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.7);
  flex: none;
}
.plate {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.plate-brand {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--plate);
  text-shadow: 0 0 12px rgba(255, 210, 74, 0.35), 2px 2px 0 #3a2c08;
}
.plate-model {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--dim);
}
.cart-slot {
  flex: none;
  font-size: 8px;
  letter-spacing: 2px;
  color: #27e87c;
  border: 1px solid #1d3a28;
  background: #0a140d;
  padding: 5px 8px;
  border-radius: 4px;
  box-shadow: inset 0 0 8px rgba(39, 232, 124, 0.15);
}

/* ================= screen ================= */
.screenbay {
  background: #08090f;
  border-radius: 18px;
  padding: 14px;
  box-shadow: inset 0 4px 18px rgba(0,0,0,0.9), inset 0 -1px 0 rgba(255,255,255,0.04);
  border: 1px solid #04050a;
}
.screenwrap {
  position: relative;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
#screen {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  background: #000;
  max-width: 100%;
}
.crtfx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
}
.crtfx.off { display: none; }
.scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.24) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  animation: crtFlicker 4.2s steps(3) infinite;
}
.grille {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,60,60,0.028) 0 1px, rgba(60,255,120,0.02) 1px 2px, rgba(80,120,255,0.028) 2px 3px);
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(115% 105% at 50% 45%, transparent 58%, rgba(0,0,0,0.42) 100%);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.55);
}
.glass {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.015) 22%, transparent 40%);
}
@keyframes crtFlicker {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; }
  75% { opacity: 0.88; }
}

/* ================= strip ================= */
.console-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.leds { display: flex; gap: 18px; }
.led-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--dim);
}
.led {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #1c2130;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
  transition: background 0.25s, box-shadow 0.25s;
}
.led.on {
  background: #27e87c;
  box-shadow: 0 0 10px rgba(39, 232, 124, 0.8), inset 0 0 2px rgba(255,255,255,0.6);
  animation: ledPulse 3s ease-in-out infinite;
}
.led-pad.on {
  background: #ffd24a;
  box-shadow: 0 0 10px rgba(255, 210, 74, 0.8), inset 0 0 2px rgba(255,255,255,0.6);
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.strip-btns { display: flex; gap: 10px; }
.cbtn {
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--dim);
  background: linear-gradient(#232a3d, #161a27);
  border: 1px solid #0a0d16;
  border-radius: 7px;
  padding: 9px 13px;
  cursor: pointer;
  box-shadow: 0 3px 0 #0a0d16, inset 0 1px 0 rgba(255,255,255,0.07);
  transition: transform 0.06s, color 0.2s, box-shadow 0.06s;
}
.cbtn:hover { color: var(--ink); }
.cbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a0d16, inset 0 1px 0 rgba(255,255,255,0.05); }
.cbtn.active { color: var(--accent); text-shadow: 0 0 8px rgba(127, 212, 255, 0.5); }
.cbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================= manual ================= */
.manual {
  width: min(94vw, 900px);
  border: 1px solid #1a2033;
  border-top: 3px solid var(--plate);
  background: linear-gradient(180deg, rgba(16, 20, 34, 0.92), rgba(10, 13, 22, 0.92));
  border-radius: 4px 4px 14px 14px;
  padding: 22px 26px 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.manual-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed #232b42;
  padding-bottom: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.manual-head h1 {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--plate);
}
.manual-sub { font-size: 9px; letter-spacing: 2px; color: var(--dim); }
.manual-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.ctl-block h2 {
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.ctl-block table { width: 100%; border-collapse: collapse; }
.ctl-block td {
  padding: 5px 0;
  font-size: 12px;
  color: var(--ink);
  vertical-align: top;
  border-bottom: 1px solid rgba(35, 43, 66, 0.5);
}
.ctl-block td:first-child { width: 44%; padding-right: 10px; }
kbd {
  font-family: var(--mono);
  font-size: 10px;
  background: #1b2233;
  border: 1px solid #2c3550;
  border-bottom-width: 3px;
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 4px;
  color: #e8eefc;
  white-space: nowrap;
}
.ctl-block em { color: var(--plate); font-style: normal; }
.ctl-block ul { list-style: none; }
.ctl-block li {
  font-size: 12px;
  line-height: 1.55;
  padding: 5px 0 5px 16px;
  position: relative;
  border-bottom: 1px solid rgba(35, 43, 66, 0.5);
}
.ctl-block li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--hot);
}
.pad-note { margin-top: 10px; font-size: 10px; color: var(--dim); letter-spacing: 0.5px; }

.colophon {
  font-size: 8.5px;
  letter-spacing: 2px;
  color: #38415e;
  text-align: center;
  max-width: 760px;
  line-height: 1.9;
}

@media (max-width: 640px) {
  .console { padding: 12px 12px 14px; border-radius: 18px 18px 24px 24px; }
  .vents { display: none; }
  .plate-brand { font-size: 12px; }
  .manual { padding: 16px; }
}
