/* Labs demo: a drawn terminal, no art files. */
.terminal-scene {
  aspect-ratio: 16/11;
  background: radial-gradient(ellipse at 70% 10%, #1d2230, #0f1116 70%);
}

.terminal-scene .scene-chapter,
.terminal-scene .scene-story {
  z-index: 4;
}

.term {
  position: absolute;
  top: 15%;
  bottom: 14%;
  left: 4%;
  right: 4%;
  display: flex;
  flex-direction: column;
  border: 1px solid #3a3d4a;
  border-radius: 8px;
  background: #0a0b0f;
  box-shadow: 0 10px 30px #0008;
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 6px 9px;
  border-bottom: 1px solid #262833;
  font: 9px/1.2 ui-monospace, monospace;
  color: #b2b6c2;
}

.term-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3c3f4c;
}

.term-bar span {
  margin-left: 6px;
}

.term-view {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.term-body {
  padding: 6px 10px;
  font: clamp(8.5px, .82vw, 11.5px)/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d9dbe2;
  transition: transform .2s;
}

.term-line {
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term-line.cmd {
  color: #f6f1e8;
}

.term-line.contract {
  color: #ffcf83;
}

.term-line.ok {
  color: #8fe3c0;
}

.term-line.dim {
  color: #a3a8b6;
}

.term-line.pr {
  color: #ffb454;
}

[data-game-demo=labs] .scene-sprite {
  position: static;
  display: inline-block;
  vertical-align: text-bottom;
  width: .6em;
  height: 1.1em;
  margin-left: 2px;
  aspect-ratio: auto;
  transform: none;
  background: #ffb454;
  filter: none;
}

@media(max-width:700px) {
  .terminal-scene {
    aspect-ratio: 4/3;
  }

  .term-body {
    padding: 4px 7px;
    font-size: 9.5px;
  }

  .term-bar {
    padding: 4px 7px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .term-body {
    transition: none;
  }
}
