:root {
  --amber: #ffb000;
  --amber-dim: #b87c00;
  --bg: #0b0b0b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  min-height: 100%;
}

body {
  font-family: 'DejaVu Sans Mono', 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.3;
  color: var(--amber);
  text-shadow: 0 0 4px rgba(255, 176, 0, 0.35);
  padding: 18px 20px 60px;
  cursor: text;
}

#screen .line,
#inputline {
  white-space: pre;
}

#inputline {
  display: block;
}

#cursor {
  color: var(--amber);
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

#hidden {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.18) 3px
  );
  z-index: 10;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 9;
}

#tui {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tui-link {
  margin-bottom: 10px;
  color: var(--amber);
  text-shadow: 0 0 4px rgba(255, 176, 0, 0.35);
  text-align: center;
  line-height: 1.6;
}

.fld-ok {
  color: #4caf50;
  text-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}
.fld-bad {
  color: #e05252;
  text-shadow: 0 0 4px rgba(224, 82, 82, 0.4);
}

#tui[hidden] {
  display: none;
}

#tui pre {
  margin: 0;
  white-space: pre;
  color: var(--amber);
  text-shadow: 0 0 4px rgba(255, 176, 0, 0.35);
  line-height: 1.25;
  filter: drop-shadow(7px 4px 0 rgba(0, 0, 0, 0.85));
}

.tui-active {
  background: var(--amber);
  color: var(--bg);
  text-shadow: none;
}

.lnk {
  color: var(--amber);
  text-decoration: underline;
}
.lnk:hover {
  background: var(--amber);
  color: var(--bg);
}

.stego-hidden {
  color: var(--bg);
  text-shadow: none;
}

::selection {
  background: #1e4fd0;
  color: #ffcf6a;
}
::-moz-selection {
  background: #1e4fd0;
  color: #ffcf6a;
}
.stego-hidden::selection {
  background: #1e4fd0;
  color: #1e4fd0;
  text-shadow: none;
}
.stego-hidden::-moz-selection {
  background: #1e4fd0;
  color: #1e4fd0;
  text-shadow: none;
}
