:root {
  /* Theme */
  --bg: #0a0f14;
  --border: #1e3a28;
  --primary: #22c55e;
  --text: #e8fff5;
  --muted: #6b8f7a;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(10, 15, 20, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Back Button */
.back-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #111820;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(34,197,94,0.4);
}

/* Base */
body {
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(180deg, var(--bg), #050809);
  color: var(--text);
  min-height: 100vh;
}

/* Background Grid */
.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

/* Console Layout */
.console-container {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  margin: 0 auto;
  padding: 6rem 1rem 3rem;
}

.console-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

/* Action Button */
.restart-btn {
  background: transparent;
  border: none;
  margin-left: 0.75rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0.4rem;
  transition: all 0.25s ease;
}

.restart-btn:hover {
  color: var(--primary);
  background: rgba(34,197,94,0.1);
  box-shadow: 0 0 10px rgba(34,197,94,0.4);
}

/* Terminal */
.terminal {
  background: #050809;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(34,197,94,0.25);
}

.terminal-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #0a0f14;
  border-bottom: 1px solid var(--border);
}

/* Window Dots */
.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}
.red { background: #ef4444; }
.yellow { background: #facc15; }
.green { background: #22c55e; }

.title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Terminal Content */
.terminal-body {
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.line {
  margin-bottom: 0.4rem;
}

.prompt {
  color: var(--primary);
}

.output {
  margin-left: 1.25rem;
  color: var(--muted);
}
