.terminal {
  width: 100%;
  max-width: 620px;
  background: var(--card-gradient);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
  animation: blurFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.terminal-dot.active {
  background: var(--accent);
  opacity: 0.6;
}

.terminal-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 8px;
  letter-spacing: 1px;
}

.terminal-body {
  background: #0C0C0C;
  padding: 18px 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  min-height: 215px;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

.term-line { display: block; }

.term-prompt { color: var(--accent); }
.term-cmd { color: var(--text); }
.term-out { color: var(--text-dim); }
.term-out .ok { color: var(--accent); }

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.05s steps(2, start) infinite;
}

.progress-wrap {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: blurFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.progress-labels .pct {
  color: var(--accent);
  font-size: 0.85rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 12px var(--accent-dim), 0 0 4px rgba(var(--accent-rgb), 0.4);
  transition: width 0.2s linear;
}

.progress-joke {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: left;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.progress-joke.visible { opacity: 1; }
