/* The Lost Engineer — Main Stylesheet */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:      #0a0a0f;
  --color-panel:   #0e0e16;
  --color-border:  #1a1a2e;
  --color-text:    #c8d0d8;
  --color-dim:     #556070;
  --color-accent:  #00e5ff;
  --color-warn:    #f0a500;
  --color-green:   #39d353;
  --font-mono: 'Courier New', Courier, monospace;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

main {
  width: 100%;
  max-width: 520px;
}

/* ── Terminal window chrome ─────────────────────────────────────────────── */
.terminal-window {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.06);
}

.terminal-bar {
  background: #16161f;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-dim);
  text-transform: uppercase;
}

.terminal-body {
  background: var(--color-panel);
  padding: 2rem;
  text-align: center;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1 {
  color: var(--color-accent);
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--color-dim);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.line {
  font-size: 0.8rem;
  text-align: left;
}

.dim  { color: var(--color-dim); }
.warn { color: var(--color-warn); }

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.4rem 0;
}

/* ── Message block ───────────────────────────────────────────────────────── */
.message {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.75;
  font-style: italic;
}

/* ── Blinking cursor ────────────────────────────────────────────────────── */
.cursor {
  display: inline-block;
  color: var(--color-accent);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Connect button (landing → game) ───────────────────────────────────── */
.connect-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.12em;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.7;
  animation: blink 1.1s step-end infinite;
}

.connect-btn:hover {
  border-bottom-color: var(--color-accent);
  opacity: 1;
  animation: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .terminal-body { padding: 1.25rem; }
}
