*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1a1a1a;
  --text: #b0b0b0;
  --text-bright: #e0e0e0;
  --accent: #4ade80;
  --accent-dim: #22543d;
  --red: #f87171;
  --yellow: #fbbf24;
  --green: #4ade80;
  --dim: #404040;
  --font: "SF Mono", "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, monospace;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 100;
}

.terminal {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: var(--red); opacity: 0.8; }
.dot-yellow { background: var(--yellow); opacity: 0.8; }
.dot-green { background: var(--green); opacity: 0.8; }

.terminal-title {
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#output .line {
  line-height: 1.7;
  color: var(--text);
  font-size: 0.875rem;
}

#output .line-bright {
  color: var(--text-bright);
}

#output .line-accent {
  color: var(--accent);
}

#output .line-dim {
  color: var(--dim);
}

#prompt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.prompt-symbol {
  color: var(--accent);
  user-select: none;
}

#prompt-text {
  color: var(--text-bright);
}

.cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

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

#choices {
  display: flex;
  gap: 1rem;
  padding-top: 0.25rem;
}

.choice {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.4rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice:hover,
.choice:focus-visible {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(74, 222, 128, 0.05);
  outline: none;
}

.choice:active {
  transform: scale(0.97);
}

.choice.selected {
  color: var(--accent);
  border-color: var(--accent);
}

#hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#hero-text .line {
  line-height: 1.7;
  font-size: 0.875rem;
}

#hero-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.4rem 0;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.link:hover {
  color: var(--accent);
}

.link-icon {
  color: var(--accent);
}

.footer {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--dim);
}

.footer a {
  color: var(--dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--text);
}

.separator {
  user-select: none;
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  body { padding: 1rem; }
  .terminal-body { padding: 1rem; min-height: 240px; }
  #choices { flex-direction: column; gap: 0.5rem; }
  .choice { text-align: center; }
}
