:root {
  --bg: #000;
  --fg: #0aff0a; /* neon green */
  --fg-dim: #09c709;
  --accent: #0aff0a55;
  --box: #0a0a0a;
  --danger: #ff3b3b;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
canvas#matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  filter: contrast(120%) brightness(90%);
}
.overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    #001700 0%,
    rgba(0, 0, 0, 0.9) 60%,
    #000 100%
  );
  z-index: 1;
}
.terminal {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  margin: 8vh auto 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.9),
    rgba(0, 0, 0, 0.9)
  );
  border: 1px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(10, 255, 10, 0.08) inset;
  backdrop-filter: blur(2px);
}
.term-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(0, 20, 0, 0.8), rgba(0, 0, 0, 0.4));
  border-radius: 18px 18px 0 0;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fg-dim);
  box-shadow: 0 0 10px var(--fg-dim);
}
.title {
  margin-left: auto;
  opacity: 0.8;
}
.screen {
  padding: 18px;
  min-height: 46vh;
  max-height: 62vh;
  overflow: auto;
  scrollbar-width: thin;
}
.line {
  white-space: pre-wrap;
  line-height: 1.55;
}
.cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  background: var(--fg);
  vertical-align: bottom;
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border-top: 1px dashed var(--accent);
}
.bar {
  height: 8px;
  background: #011d01;
  border: 1px solid var(--accent);
  border-radius: 999px;
  overflow: hidden;
}
.prog {
  height: 100%;
  width: 0%;
  background: var(--fg);
  box-shadow: 0 0 10px var(--fg);
  transition: width 0.2s linear;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: #001700;
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  box-shadow: 0 0 18px rgba(10, 255, 10, 0.2);
}
.btn:active {
  transform: scale(0.98);
}
.count {
  opacity: 0.8;
}
.scanlines::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(10, 255, 10, 0.08) 0,
    rgba(10, 255, 10, 0.08) 2px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: 18px;
}
@media (max-width: 480px) {
  .screen {
    min-height: 42vh;
    max-height: 56vh;
  }
}
