@font-face {
  font-family: "IosevkaTerm Nerd Font";
  src: url("./fonts/IosevkaTermNerdFont-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #1e1e1e;
  --foreground: #d4d4d4;
}
* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: "IosevkaTerm Nerd Font", "JetBrains Mono", "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#terminal {
  position: fixed;
  inset: 0;
  touch-action: none;
  overscroll-behavior: none;
}
#terminal canvas { touch-action: none; }
#terminal .xterm { width: 100% !important; height: 100% !important; }
#status {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: min(720px, 90vw);
  padding: 8px 14px;
  border: 1px solid #3c3c3c;
  border-radius: 6px;
  background: rgba(30, 30, 30, 0.92);
  color: #cccccc;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
  transition: opacity 160ms ease;
}
#status.hidden { opacity: 0; }
#status.error { border-color: #be1100; color: #f48771; }
