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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  color: #e4e4e7;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.back {
  display: inline-block;
  color: #22c55e;
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.back:hover {
  text-decoration: underline;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.subtitle {
  color: #94a3b8;
  font-size: 1rem;
}

.terminal {
  background: #0d0d14;
  border-radius: 12px;
  border: 1px solid #2d2d3d;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #1a1a2e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #2d2d3d;
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  color: #64748b;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.terminal-output {
  padding: 1.5rem;
  min-height: 400px;
  max-height: 500px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.terminal-output p {
  margin-bottom: 1rem;
}

.terminal-output .location {
  color: #22c55e;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.terminal-output .description {
  color: #d4d4d8;
}

.terminal-output .items {
  color: #fbbf24;
  font-style: italic;
}

.terminal-output .hint {
  color: #64748b;
  font-size: 0.85rem;
}

.terminal-output .command {
  color: #60a5fa;
}

.terminal-output .error {
  color: #ef4444;
}

.terminal-output .success {
  color: #22c55e;
}

.terminal-output .dialogue {
  color: #c084fc;
  padding-left: 1rem;
  border-left: 2px solid #7c3aed;
  margin: 0.5rem 0;
}

.terminal-output .thought {
  color: #94a3b8;
  font-style: italic;
}

.terminal-output .achievement {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), transparent);
  border-left: 3px solid #22c55e;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
}

.input-line {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #0a0a10;
  border-top: 1px solid #2d2d3d;
}

.prompt {
  color: #22c55e;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: bold;
  margin-right: 0.75rem;
}

input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 1rem;
  outline: none;
}

input::placeholder {
  color: #4b5563;
}

footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.875rem;
}

footer a {
  color: #22c55e;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Scrollbar styling */
.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: #1a1a2e;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: #3d3d5c;
  border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: #4d4d6c;
}
