:root {
  --bg: #0b1220;
  --panel: #071018;
  --text: #a6f0c6;
  --muted: #7fb6a0;
  --accent: #33ff99;
  --cursor: #33ff99;
  --glass: rgba(255, 255, 255, 0.02);
  --mono: "Fira Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    "Roboto Mono", "Courier New", monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, var(--bg), #02030a);
  color: var(--text);
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.container {
  width: 100%;
  max-width: 960px;
  height: 90vh;
  max-height: 700px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.8);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  animation: slideUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(80px);
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}
.title {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.terminal {
  flex: 1;
  padding: 16px;
  font-size: 15px;
  line-height: 1.4;
  overflow-y: auto;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0)
  );
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.prompt {
  color: var(--accent);
  flex-shrink: 0;
}
.input {
  flex: 1;
  outline: none;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  min-width: 40px;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: var(--cursor);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.output {
  margin: 6px 0 12px 64px;
  color: var(--muted);
}
.kbd {
  background: var(--glass);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.08));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  body {
    padding: 0;
    align-items: flex-start;
  }
  .container {
    border-radius: 0;
    height: 100vh;
    max-height: none;
  }
  .terminal {
    font-size: 13px;
    padding: 10px;
  }
  .output {
    margin-left: 32px;
  }
  .footer {
    font-size: 12px;
    padding: 8px 12px;
  }
}
