@font-face { font-family: "Sitch Mono"; src: url("/sitch-terminal/terminal.ttf") format("truetype"); font-display: swap; }
:root { color-scheme: dark; --phosphor: #83efa2; --dim: #57a972; --font-size: 18px; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #0b0703; }
body { font-family: "Sitch Mono", monospace; }
button, textarea { font: inherit; }
[hidden] { display: none !important; }
#workstation { position: absolute; width: 1600px; height: 900px; overflow: hidden; isolation: isolate; }
#scene { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; }
#glass { position: absolute; overflow: hidden; background: transparent; color: var(--phosphor); font-size: var(--font-size); line-height: 1.4; text-shadow: 0 0 5px #48d87845; }
#terminal { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 25px 28px 22px; background: radial-gradient(ellipse at center, #14331b13, transparent 75%); }
#welcome { margin: auto 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.eyebrow { margin: 0 0 10px; font-size: .66em; letter-spacing: .16em; color: var(--dim); }
h1 { margin: 0 0 14px; font-size: 2.65em; font-weight: 400; line-height: 1; letter-spacing: .08em; text-shadow: 0 0 9px #6cff9270; }
.invitation { margin: 0 0 24px; }
.welcome-note { color: var(--dim); margin: 0 0 8px; font-size: .85em; }
.engines { display: flex; gap: 22px; flex-wrap: wrap; }
button { color: var(--phosphor); border: 0; padding: 4px 0; background: transparent; cursor: pointer; text-shadow: inherit; }
button:hover, button:focus-visible { color: #b4ffca; text-shadow: 0 0 7px #64ff9b88; }
:focus-visible { outline: 1px solid #83efa2; outline-offset: 3px; }
button:disabled { opacity: .45; cursor: default; }
.footnote { font-size: .64em; line-height: 1.6; color: var(--dim); margin: 19px 0 0; }
.boot-cursor { display: inline-block; font-size: .66em; margin-left: 6px; animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
#session { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.session-heading { flex: none; display: flex; justify-content: space-between; gap: 12px; font-size: .63em; letter-spacing: .12em; color: var(--dim); padding-bottom: 12px; }
#history { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #3b6845 #000; padding-right: 8px; overscroll-behavior: contain; }
.turn { margin: 0 0 19px; white-space: pre-wrap; overflow-wrap: anywhere; }
.turn-label { display: block; color: var(--dim); font-size: .7em; margin-bottom: 5px; letter-spacing: .05em; }
.turn.user { color: #aad6b4; }
.turn.system { color: var(--dim); font-size: .8em; }
.turn.error { color: #f2c58f; }
#composer { display: flex; align-items: flex-start; gap: 9px; padding-top: 10px; }
#composer label { padding-top: 4px; }
#message { display: block; flex: 1; width: 0; min-height: 32px; max-height: 86px; resize: none; overflow-y: auto; color: var(--phosphor); background: transparent; padding: 4px 1px; border: 0; border-radius: 0; line-height: 1.4; text-shadow: inherit; caret-color: var(--phosphor); }
#message::placeholder { color: #438557; opacity: 1; }
#message:focus-visible { outline: none; box-shadow: 0 1px 0 #447650; }
#send { min-width: 28px; }
.terminal-footer { display: flex; align-items: center; justify-content: space-between; min-height: 25px; font-size: .61em; color: var(--dim); }
#status { margin: 5px 0 0; color: var(--dim); font-size: .65em; min-height: 1.4em; overflow-wrap: anywhere; }
#closed { margin: auto 0; }
.muted { color: var(--dim); }
::selection { background: #316341; color: #d2ffdf; }
@media (prefers-reduced-motion: reduce) { .boot-cursor { animation: none; } }
@media (max-width: 700px) {
  #terminal { padding: 17px 19px; }
  h1 { font-size: 2em; }
  .invitation { margin-bottom: 16px; }
  .engines { gap: 14px; }
  .footnote { margin-top: 12px; }
  .session-heading { letter-spacing: .04em; }
}
