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

:root {
  --phosphor: #33ff33;
  --phosphor-dim: #1a8a1a;
  --amber: #ffaa00;
  --cool-blue: #00aaff;
  --bg-dark: #0d0d1a;
  --bg-panel: #141428;
  --bg-surface: #1a1a2e;
  --bezel: #c8b89a;
  --bezel-dark: #a89878;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  user-select: none;
}

.crt-screen {
  background: #0a0a0a;
  color: var(--phosphor);
  font-family: 'Share Tech Mono', 'IBM Plex Mono', monospace;
  font-size: 15px;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}

.crt-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
}

.crt-screen::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 3;
}

.crt-bezel {
  background: linear-gradient(145deg, #d4c4a8, #b0a080);
  border-radius: 20px;
  padding: 16px;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 8px 32px rgba(0,0,0,0.6);
}

.crt-inner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8), inset 0 0 8px rgba(51,255,51,0.1);
}

.text-glow {
  text-shadow: 0 0 6px rgba(51,255,51,0.6), 0 0 12px rgba(51,255,51,0.3);
}

.cursor-block {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--phosphor);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 4px #33ff33, 0 0 8px #33ff33; }
  50% { box-shadow: 0 0 8px #33ff33, 0 0 16px #33ff33, 0 0 24px rgba(51,255,51,0.3); }
}

.power-on {
  animation: pulse-green 2s ease-in-out infinite;
}

.led-flash {
  animation: led-blink 0.15s ease-in-out;
}

@keyframes led-blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.seven-seg {
  font-family: 'Share Tech Mono', monospace;
  color: #ff3333;
  text-shadow: 0 0 6px rgba(255,50,50,0.8);
  letter-spacing: 2px;
}

.panel-beveled {
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 1px 3px rgba(0,0,0,0.4);
}

.btn-recessed {
  background: linear-gradient(180deg, #3a1a1a, #2a0a0a);
  border: 2px solid #1a0505;
  box-shadow: inset 0 1px 0 rgba(255,100,100,0.2), 0 2px 4px rgba(0,0,0,0.5);
  transition: all 0.1s;
}
.btn-recessed:active {
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  transform: translateY(1px);
}

.inspector-scroll::-webkit-scrollbar { width: 6px; }
.inspector-scroll::-webkit-scrollbar-track { background: #0a0a1a; }
.inspector-scroll::-webkit-scrollbar-thumb { background: #333366; border-radius: 3px; }

.boot-overlay {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
}

@keyframes scanline-move {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.terminal-text {
  white-space: pre-wrap;
  word-break: break-all;
}

input.hidden-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}