:root {
  --bg: #121722;
  --panel: #1b2230;
  --panel-inner: #141a26;
  --border: #334155;
  --blue: #0048fe;
  --orange: #ff8106;
  --orange-dark: #ec6707;
  --text: #f8fafc;
  --muted: #94a3b8;
  --danger: #f87171;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Consolas', 'Courier New', monospace;
}

.terminal-backdrop {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(0, 72, 254, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 72, 254, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.pixel-skyline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  z-index: 0;
}

.px-sprite {
  position: absolute;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.px-plane {
  top: 10%;
  left: 8%;
  width: 140px;
}

.px-ship {
  bottom: 8%;
  left: 6%;
  width: 220px;
}

.px-train {
  top: 14%;
  right: 6%;
  width: 240px;
}

.px-truck {
  bottom: 10%;
  right: 8%;
  width: 160px;
}

.terminal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 3px #0b0f17, 0 20px 50px rgba(0, 0, 0, 0.65);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--panel-inner);
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.terminal-led {
  width: 10px;
  height: 10px;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 129, 6, 0.8);
  display: inline-block;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 10px;
}

.gate-badge {
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.gate-title {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--text);
}

.gate-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--orange);
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 22px 24px;
}

.gate-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.gate-input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--panel-inner);
  border: 2px solid var(--border);
  border-radius: 0;
}

.gate-input:focus-visible,
.gate-button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.gate-button {
  margin-top: 4px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: var(--orange);
  border: 2px solid var(--orange-dark);
  border-radius: 0;
  cursor: pointer;
}

.gate-button:hover:not(:disabled) {
  background: var(--orange-dark);
}

.gate-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.gate-error {
  min-height: 20px;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--danger);
}
