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

body {
  background: #0d0d0d;
  color: #00ff9c;
  font-family: 'JetBrains Mono', monospace;
  height: 100vh;
  overflow: hidden;
  overscroll-behavior: none;
}

canvas#bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, #001a0f 0%, #000000 70%);
}

.terminal {
  padding: 2rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#output {
  margin-bottom: 1rem;
  line-height: 1.7;
  opacity: 0.95;
}

#output > div {
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.input-line {
  display: flex;
  align-items: center;
  min-height: 1.5em;
}

.prompt {
  color: #00ffff;
  margin-right: 0.5rem;
  user-select: none;
}

#commandInput {
  background: transparent;
  border: none;
  outline: none;
  color: #00ff9c;
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  caret-color: #00ff9c;
}

#commandInput::selection {
  background: #00ffff33;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: #00ff9c;
  margin-left: 2px;
  animation: blink 1s steps(2, start) infinite;
  vertical-align: middle;
}

@keyframes blink {
  to { visibility: hidden; }
}

a {
  color: #00ffff;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #00ff9c;
  text-decoration: underline;
}

/* Scrollbar */
.terminal::-webkit-scrollbar {
  width: 8px;
}

.terminal::-webkit-scrollbar-track {
  background: transparent;
}

.terminal::-webkit-scrollbar-thumb {
  background: #00ff9c33;
  border-radius: 4px;
}

.terminal::-webkit-scrollbar-thumb:hover {
  background: #00ff9c55;
}