@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/roboto.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #0a0d12;
  --panel: #0b0f14;
  --panel-2: #0b0f14;
  --border: rgba(255, 255, 255, 0.10);

  /* ANSI-ish palette */
  --fg: rgba(235, 245, 255, 0.92);
  --dim: rgba(235, 245, 255, 0.58);
  --muted: rgba(235, 245, 255, 0.40);

  --green: #7ee787;
  --cyan: #79c0ff;
  --yellow: #f2cc60;
  --red: #ff7b72;

  --hl: var(--green);
  --hl-2: var(--cyan);

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: radial-gradient(900px 600px at 25% 20%, rgba(121, 192, 255, 0.06), transparent 55%),
              radial-gradient(900px 650px at 70% 70%, rgba(126, 231, 135, 0.05), transparent 60%),
              var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", "Roboto", monospace;
  line-height: 1.55;
}

a { color: var(--hl-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.term {
  width: min(1020px, calc(100vw - 28px));
  margin: 18px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

/* subtle terminal noise + scanlines */
.term::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px, transparent 2px, transparent 4px),
    radial-gradient(circle at 20% 10%, rgba(124, 247, 199, 0.06), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(106, 215, 255, 0.06), transparent 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.14;
}

.term::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.035;
}

.term__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.term__controls { display: flex; gap: 8px; }
.term__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25) inset;
}
.term__dot--red { background: #ff5f56; }
.term__dot--yellow { background: #ffbd2e; }
.term__dot--green { background: #27c93f; }

.term__title {
  font-size: 13px;
  color: var(--dim);
}

.term__spacer { flex: 1; }

.term__link {
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.term__body {
  padding: 14px 14px 4px;
  min-height: calc(100vh - 110px);
  position: relative;
  z-index: 1;
  overflow: auto;
}

.term__line { 
  margin: 6px 0; 
  white-space: pre-wrap; 
  word-break: break-word; 
  font-variant-ligatures: none;
  tab-size: 2;
}

.term__block { 
  padding: 10px 0 4px; 
  max-width: 100%;
}

.dim { color: var(--dim); }
.muted { color: var(--muted); }
.hl { color: var(--hl); }

.kbd {
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.term__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0 2px;
}

.chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(121, 192, 255, 0.26);
  background: rgba(121, 192, 255, 0.08);
}

.term__input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px;
  border-top: 1px dashed rgba(157, 245, 255, 0.18);
  margin-top: 10px;
}

.prompt {
  color: var(--green);
  font-size: 13px;
}

#cmd {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: none;
  outline: none;
  font: inherit;
  font-size: 13px;
  padding: 0;
}

#cmd::placeholder { color: rgba(225,255,245,0.28); }

.cursor {
  width: 10px;
  height: 18px;
  background: rgba(126, 231, 135, 0.85);
  border-radius: 2px;
  animation: blink 1s steps(1, end) infinite;
}

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

.term__footer {
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(157, 245, 255, 0.12);
  background: rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

/* content formatting */
.hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 10px 0;
}

.list { margin: 6px 0 10px; padding-left: 18px; }
.list li { margin: 4px 0; color: var(--text); }

.table {
  display: grid;
  gap: 6px;
}

.row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
}

.key { color: var(--dim); }

.banner {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(235, 245, 255, 0.75);
  line-height: 1.15;
  overflow-x: auto;
}

.aliases {
  font-size: 12px;
  margin-left: 2px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .term { width: calc(100vw - 16px); margin: 8px auto; border-radius: 12px; }
  .row { grid-template-columns: 1fr; }
  .term__title { display: none; }
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

.term__line.muted {
  color: var(--muted);
}