:root {
  --bg: #07070b;
  --panel: rgba(255, 255, 255, 0.05);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.55);

  /* EXACT Accent */
  --accent: #8f5ece;

  --border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }

body {
  background: radial-gradient(
      1200px circle at 15% 20%,
      rgba(143, 94, 206, 0.20),
      transparent 45%
    ),
    radial-gradient(
      1000px circle at 80% 60%,
      rgba(143, 94, 206, 0.10),
      transparent 50%
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.shell {
  width: min(980px, 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(10, 10, 14, 0.65);
  box-shadow: 0 18px 50px var(--shadow);
  overflow: hidden;
  position: relative;
}

.shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  pointer-events: none;
  background: radial-gradient(
    900px circle at 20% 30%,
    rgba(143, 94, 206, 0.18),
    transparent 55%
  );
  filter: blur(12px);
  opacity: 0.9;
}

.topbar {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.25);
}

.dots { display: flex; gap: 8px; }
.dot {
  width: 10px; height: 10px; border-radius: 999px;
  opacity: 0.8;
  border: 1px solid rgba(255,255,255,0.1);
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.brand {
  opacity: 0.85;
  letter-spacing: 0.5px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(143, 94, 206, 0.25);
  border-radius: 999px;
  background: rgba(143, 94, 206, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
}

.kbd {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.04);
}

.terminal { position: relative; z-index: 1; padding: 18px; font-family: var(--mono); }
.lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.line {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  animation: fadeUp 180ms ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.prompt {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
}

.ps1 {
  color: rgba(143, 94, 206, 0.92);
  text-shadow: 0 0 16px rgba(143, 94, 206, 0.22);
  font-weight: 600;
}

.input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
}

.hint { font-size: 12px; opacity: 0.55; margin-top: 10px; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 6px;
  vertical-align: -2px;
  background: rgba(143, 94, 206, 0.85);
  box-shadow: 0 0 18px rgba(143, 94, 206, 0.35);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ===========================
   Mobile responsiveness
   =========================== */

/* Prevent zoom glitches and improve touch */
input,
button {
  font-size: 16px; /* prevents iOS zoom on input */
}

@media (max-width: 768px) {
  .container {
    padding: 14px;
    align-items: flex-start;
    padding-top: 18px;
  }

  .shell {
    width: 100%;
    border-radius: 18px;
  }

  .shell::before {
    filter: blur(10px);
    opacity: 0.8;
  }

  .topbar {
    padding: 12px 12px;
    gap: 10px;
  }

  .brand {
    font-size: 11px;
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
  }

  .badge {
    display: none; /* hide to avoid clutter */
  }

  .terminal {
    padding: 14px 12px 12px;
  }

  .line {
    font-size: 13px;
    line-height: 1.55;
  }

  .prompt {
    border-radius: 14px;
    padding: 10px 12px;
    gap: 8px;
  }

  .ps1 {
    font-size: 13px;
  }

  .input {
    font-size: 16px;
    min-width: 0;
  }

  .hint {
    font-size: 11px;
    line-height: 1.45;
  }

  .kbd {
    display: none; /* hide Enter tag on small screens */
  }
}

@media (max-width: 420px) {
  .dot {
    width: 9px;
    height: 9px;
  }

  .brand {
    max-width: 110px;
  }

  .terminal {
    padding: 12px 10px 10px;
  }

  .line {
    font-size: 12.5px;
  }
}


