/* Nexorium Terminal: deliberately quiet, readable, and keyboard-first. */
:root {
  color-scheme: dark;
  --phosphor: #91dca6;
  --dim: #648971;
  --dark: #050805;
  --line: #2c4330;
}
* { box-sizing: border-box; }
html { background: var(--dark); }
body {
  margin: 0;
  background: var(--dark);
  color: var(--phosphor);
  font-family: "Lucida Console", "Courier New", Consolas, monospace;
  font-size: 15px;
  line-height: 1.58;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--phosphor); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--phosphor);
  outline-offset: 4px;
}
.terminal {
  width: min(100%, 1040px);
  padding: clamp(22px, 4vw, 48px) clamp(16px, 4vw, 46px);
  min-height: 100vh;
  margin: 0 auto;
}
.terminal-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 34px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.terminal-topline a { color: var(--dim); white-space: nowrap; }
.terminal-output { display: grid; gap: 20px; }
.terminal-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
.terminal-command { color: #b4eec1; }
.terminal-result { color: var(--phosphor); }
/* The rabbit is the one anomaly in an otherwise monochrome world. */
.terminal-rabbit { color: #e4ece5; }
[hidden] { display: none !important; }
.terminal-input-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  max-width: 100%;
}
.terminal-prompt { color: #b4eec1; white-space: nowrap; }
.terminal-input-wrap {
  display: inline-flex;
  position: relative;
  flex: 1 1 220px;
  align-items: baseline;
  min-width: 0;
}
#terminal-input {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 12px 3px 0;
  margin: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  color: var(--phosphor);
  caret-color: var(--phosphor);
  font-size: 16px;
  line-height: 1.6;
}
#terminal-input::placeholder { color: var(--dim); opacity: .8; }
.terminal-cursor {
  width: 9px;
  height: 17px;
  display: inline-block;
  background: var(--phosphor);
  flex: 0 0 auto;
  margin-left: -2px;
  transform: translateY(2px);
  animation: nx-blink 1.08s steps(1) infinite;
}
.terminal-input-row:focus-within .terminal-cursor { opacity: 0; }
.terminal-send {
  font-size: 12px;
  color: var(--phosphor);
  background: transparent;
  border: 1px solid var(--line);
  padding: 5px 12px;
  cursor: pointer;
}
.terminal-send:hover, .terminal-shortcuts button:hover { border-color: var(--phosphor); }
.terminal-send:disabled, .terminal-shortcuts button:disabled { opacity: .45; cursor: default; }
.terminal-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.terminal-shortcuts button {
  padding: 8px 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
}
.terminal-footnote {
  color: var(--dim);
  font-size: 10px;
  margin-top: 38px;
  letter-spacing: .06em;
}
@keyframes nx-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .terminal-cursor { animation: none; }
}
@media (max-width: 520px) {
  .terminal-topline { margin-bottom: 24px; }
  .terminal-label { max-width: 130px; }
  .terminal-prompt { flex-basis: 100%; }
  .terminal-send { min-height: 44px; }
  .terminal { padding-top: 20px; }
  .terminal-shortcuts { margin-top: 18px; }
}