
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, #21123d 0%, #0b0915 55%, #050509 100%);
  color: #e7e2f4;
  font-family: Consolas, "Courier New", monospace;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #ffffff66 50%, transparent),
    radial-gradient(2px 2px at 70% 60%, #a78bfa77 50%, transparent),
    radial-gradient(1px 1px at 40% 80%, #ffffff88 50%, transparent);
  background-size: 180px 180px;
  animation: starsMove 20s linear infinite;
}

@keyframes starsMove {
  from { transform: translateY(0); }
  to { transform: translateY(-180px); }
}

.container {
  width: min(900px, 92%);
  margin: auto;
  padding: 45px 0 25px;
  position: relative;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

.ghost {
  font-size: 55px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 15px #a78bfa);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

h1 {
  font-size: clamp(36px, 7vw, 58px);
  color: #c4b5fd;
  text-shadow: 0 0 25px #8b5cf6;
  letter-spacing: 3px;
  margin: 8px 0;
}

.subtitle {
  color: #aaa0bd;
  letter-spacing: 3px;
  font-size: 13px;
  text-transform: uppercase;
}

.status {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 14px;
  border: 1px solid #4ade8080;
  border-radius: 20px;
  color: #4ade80;
  font-size: 11px;
  letter-spacing: 1px;
}

.terminal {
  background: #0b0c12ee;
  border: 1px solid #8b5cf655;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 35px #8b5cf622;
}

.terminal-bar {
  min-height: 48px;
  background: #191522;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #b9accd;
  font-size: 12px;
  border-bottom: 1px solid #332541;
}

.lights {
  display: flex;
  gap: 6px;
}

.lights span {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.lights span:nth-child(2) {
  background: #febc2e;
}

.lights span:nth-child(3) {
  background: #28c840;
}

.clear-btn {
  background: transparent;
  color: #aaa0bd;
  border: 1px solid #514360;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.output {
  height: 300px;
  overflow-y: auto;
  padding: 22px;
  line-height: 1.7;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.output p {
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.system {
  color: #9c91ad;
}

.ghost-message {
  color: #c4b5fd;
  text-shadow: 0 0 8px #8b5cf644;
}

.user-message {
  color: #4ade80;
}

.input-area {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-top: 1px solid #332541;
}

.prompt {
  color: #4ade80;
  font-size: 12px;
  white-space: nowrap;
}

input {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: white;
  border: none;
  outline: none;
  font: inherit;
  font-size: 14px;
}

input::placeholder {
  color: #70667f;
}

.input-area button {
  background: #8b5cf6;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.input-area button:hover {
  background: #a78bfa;
}

.actions {
  margin-top: 28px;
}

.actions h2 {
  font-size: 16px;
  color: #c4b5fd;
  margin-bottom: 15px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-btn {
  background: #15111f;
  color: #ddd3ef;
  border: 1px solid #6d4a8d66;
  border-radius: 8px;
  padding: 16px 12px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.action-btn:hover {
  background: #251a37;
  border-color: #a78bfa;
  transform: translateY(-2px);
  box-shadow: 0 0 15px #8b5cf633;
}

footer {
  text-align: center;
  margin-top: 35px;
  color: #a99eb8;
  font-size: 12px;
}

.footer-small {
  margin-top: 8px;
  color: #71667f;
}

@media (max-width: 500px) {
  .container {
    padding-top: 25px;
  }

  .output {
    height: 280px;
    padding: 15px;
    font-size: 12px;
  }

  .input-area {
    flex-wrap: wrap;
  }

  .prompt {
    font-size: 10px;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }
}
