
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@500;700&display=swap');

:root {
  --green: #6dffad;
  --dim: #599c76;
  --bg: #050a08;
  --panel: #0a120e;
  --red: #ff526b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top, #123024 0%, transparent 55%),
    var(--bg);
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    transparent 0px, transparent 3px,
    #00000020 4px
  );
  z-index: 5;
}

.terminal {
  width: min(760px, 100%);
  border: 1px solid #397c55;
  background: #070d0aee;
  box-shadow: 0 0 50px #00ff6a12,
              inset 0 0 35px #00ff6a05;
  padding: 28px;
  position: relative;
  z-index: 1;
}

header {
  border-bottom: 1px solid #244532;
  padding-bottom: 20px;
}

.status {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 2px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--red);
  animation: blink 1s infinite;
}

h1 {
  font: 700 clamp(32px, 7vw, 52px) Orbitron, sans-serif;
  letter-spacing: 4px;
  margin: 18px 0 8px;
  text-shadow: 0 0 18px #6dffad65;
}

h1 span {
  color: #e9fff0;
}

.subtitle {
  color: #8da999;
  font-size: 13px;
}

.ghost-area {
  text-align: center;
  padding: 20px 0;
}

.ghost {
  font-size: 65px;
  filter: drop-shadow(0 0 20px #6dffad70);
  animation: float 3s ease-in-out infinite;
}

#ghost-message {
  color: #d4ffe2;
  font-size: 14px;
}

.screen {
  border: 1px solid #244532;
  background: #030604;
  min-height: 230px;
}

.screen-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #102117;
  color: var(--dim);
  font-size: 11px;
}

#output {
  height: 210px;
  overflow-y: auto;
  padding: 15px;
  font-size: 13px;
  line-height: 1.7;
}

#output p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.system {
  color: #80a58d;
}

.user-line {
  color: #ffffff;
}

.error {
  color: #ff7184;
}

form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border-bottom: 1px solid #397c55;
  padding-bottom: 10px;
}

form label {
  white-space: nowrap;
  font-size: 12px;
}

input {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font: inherit;
  font-size: 14px;
}

button {
  font: inherit;
  cursor: pointer;
}

form button {
  border: 1px solid var(--green);
  color: var(--green);
  background: #102117;
  padding: 9px 12px;
}

button:hover {
  background: #244532;
  box-shadow: 0 0 12px #6dffad30;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-actions button {
  color: #a9d7b9;
  background: #0a160f;
  border: 1px solid #244532;
  padding: 8px 10px;
  font-size: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #244532;
  color: #557462;
  font-size: 10px;
}

.glitch {
  animation: glitch .25s linear 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes blink {
  50% { opacity: .25; }
}

@keyframes glitch {
  25% { transform: translateX(4px); filter: hue-rotate(90deg); }
  50% { transform: translateX(-4px); }
  75% { transform: translateX(2px); }
}

@media (max-width: 480px) {
  body { padding: 10px; }
  .terminal { padding: 16px; }
  form { flex-wrap: wrap; }
  form label { font-size: 11px; }
  footer { font-size: 9px; }
}
