/* MJOLNIR terminal — Green Phosphor easter egg */
.terminal {
  --p: #7CFFA0; --p-mid: #B6F5C8; --p-dim: #3FA463; --p-bg: #040906; --p-rule: #163A22;
  position: fixed; inset: 0; z-index: 1000;
  display: none; flex-direction: column;
  background-color: var(--p-bg);
  background-image: repeating-linear-gradient(0deg, rgba(124,255,160,.04) 0 1px, transparent 1px 3px);
  color: var(--p);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 16px; line-height: 1.7;
  text-shadow: 0 0 8px rgba(124,255,160,.35);
}
.terminal.on { display: flex; animation: t-on .35s ease-out; }
@keyframes t-on { from { opacity: 0; filter: brightness(2.2); } to { opacity: 1; filter: none; } }
html.t-lock, html.t-lock body { overflow: hidden; }
.t-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; background: #07120B; border-bottom: 1px solid var(--p-rule); color: var(--p-dim); font-size: 12px; letter-spacing: .16em; }
.t-close { background: none; border: 1px solid var(--p-rule); color: var(--p); font: inherit; letter-spacing: inherit; padding: 8px 12px; min-height: 40px; cursor: pointer; }
.t-close:hover { border-color: var(--p); }
.t-out { flex: 1; overflow-y: auto; padding: 24px 20px 8px; }
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-line a { color: var(--p); }
.t-dim { color: var(--p-dim); }
.t-bright { color: #D8FFE3; }
.t-dir { color: var(--p); text-decoration: underline; text-underline-offset: 3px; }
.t-err { color: #FFB86B; text-shadow: none; }
.t-form { display: flex; gap: 10px; align-items: center; padding: 12px 20px 20px; border-top: 1px solid var(--p-rule); }
.t-prompt { color: var(--p-dim); white-space: nowrap; }
.t-in { flex: 1; min-width: 0; min-height: 44px; background: transparent; border: none; color: var(--p); font: inherit; caret-color: var(--p); text-shadow: inherit; }
.t-in:focus { outline: none; }
@media (max-width: 600px) { .terminal { font-size: 14px; } .t-prompt { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .terminal.on { animation: none; } }
