*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --terminal-bg: #111;
  --terminal-border: #2a2a2a;
  --header-bg: #1a1a1a;
  --green: #39ff14;
  --dim-green: #1a7a00;
  --grey: #555;
  --text: #c8c8c8;
  --prompt: #39ff14;
  --font: 'Courier New', Courier, monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.18) 3px,
    rgba(0,0,0,0.18) 4px
  );
  z-index: 100;
}

.terminal {
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(57,255,20,0.07), 0 0 2px rgba(57,255,20,0.15);
  overflow: hidden;
}

.terminal-header {
  background: var(--header-bg);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--terminal-border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--grey);
  letter-spacing: 0.05em;
}

.terminal-body {
  background: var(--terminal-bg);
  padding: 24px 28px 20px;
  min-height: 420px;
}

.output {
  margin-bottom: 18px;
  line-height: 1.75;
  font-size: 0.93rem;
}

.output .line {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.output .line.comment  { color: var(--grey); }
.output .line.cmd      { color: var(--green); }
.output .line.blank    { min-height: 1.75em; }
.output .line.hi       { color: #fff; }
.output .line.dim      { color: #666; }
.output .line.sign     { color: var(--green); font-style: italic; }

.input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
}

.prompt { color: var(--prompt); }

.cursor-blink {
  color: var(--green);
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.start-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 300;
}

.start-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.start-label {
  color: var(--grey);
  font-family: var(--font);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
}

.start-btn {
  background: none;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font);
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  padding: 14px 40px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 12px rgba(57,255,20,0.1);
}

.start-btn:hover {
  background: rgba(57,255,20,0.08);
  box-shadow: 0 0 24px rgba(57,255,20,0.2);
}
