:root {
  --bg: #0a0e14;
  --panel: #10151c;
  --border: #1f2733;
  --text: #c9d1d9;
  --text-muted: #6e7681;
  --accent: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --green: #3fb950;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--text);
  padding: 24px;
}

.terminal {
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0d1117;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red { background: var(--red); }
.dot--yellow { background: var(--yellow); }
.dot--green { background: var(--green); }

.terminal__title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.terminal__body {
  padding: 24px 20px;
  font-size: 14px;
  line-height: 1.8;
}

.line {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.line--muted {
  color: var(--text-muted);
}

.line--gap {
  margin-top: 18px;
}

.prompt {
  color: var(--accent);
  margin-right: 8px;
}

.typewriter {
  color: var(--text);
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-start infinite;
}

.bar {
  color: var(--accent);
  letter-spacing: 1px;
}

@keyframes blink {
  50% { opacity: 0; }
}
