* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #000;
  color: #8dff72;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
}

.terminal-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.terminal {
  width: 760px;
  max-width: 100%;
  border: 1px solid #8dff72;
  background: #000;
  box-shadow: none;
}

.terminal-bar,
.terminal-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px;
  border-bottom: 1px solid #8dff72;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-status {
  border-top: 1px solid #8dff72;
  border-bottom: 0;
  color: #4fae42;
}

.terminal-art {
  margin: 0;
  padding: 18px 10px 8px;
  overflow: hidden;
  color: #8dff72;
  font: 14px/1.15 "Courier New", Courier, monospace;
  text-align: center;
  white-space: pre;
}

.terminal-output {
  min-height: 112px;
  padding: 10px 14px;
  border-top: 1px dashed #4fae42;
  color: #8dff72;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.terminal-enter {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid #8dff72;
  padding: 10px 12px;
  background: #000;
  color: #8dff72;
  font: bold 14px "Courier New", Courier, monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: left;
}

.terminal-enter:hover,
.terminal-enter:focus-visible {
  background: #8dff72;
  color: #000;
  outline: 0;
}

.terminal-enter[disabled] {
  background: #000;
  color: #4fae42;
  cursor: wait;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #8dff72;
  animation: blink 0.8s steps(1, end) infinite;
}

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

@media (max-width: 720px) {
  body {
    font-size: 13px;
  }

  .terminal-page {
    align-items: flex-start;
    padding: 10px;
  }

  .terminal-art {
    font-size: 9px;
    padding-left: 0;
    padding-right: 0;
  }

  .terminal-output,
  .terminal-enter {
    font-size: 12px;
  }

  .terminal-status {
    flex-wrap: wrap;
  }
}
