/* The remaster player: brand colours of REMASTER (violet, lime, deep ink, pink) around a classic terminal. */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-display: swap;
}
:root {
  --deep: #130a3a;
  --ink: #170a45;
  --violet: #6a3cff;
  --lime: #d4ff3a;
  --pink: #ff4fa3;
  --paper: #f3f1fb;
  --fg: #e9e6ff;
  --dim: #a59ccf;
  --font: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--deep);
  color: var(--fg);
  font: 15px/1.5 var(--font);
}
body {
  display: flex;
  flex-direction: column;
}
#view {
  flex: 0 0 58%;
  min-height: 0;
}
body.layout-text #view {
  display: none;
}
body.layout-scene #view {
  flex: 1;
}
body.layout-scene #status,
body.layout-scene #screen {
  display: none;
}
#status {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 3px 1.2ch;
  background: var(--lime);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  font-weight: 600;
}
#room {
  overflow: hidden;
  text-overflow: ellipsis;
}
#screen {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.9em 1.2ch 2em;
  outline: none;
}
#log {
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 82ch;
}
#log .cmd {
  color: var(--lime);
}
#prompt {
  display: flex;
  max-width: 82ch;
}
#prompt label {
  padding-right: 0.5ch;
  color: var(--lime);
}
#cmd {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  caret-color: var(--lime);
}

/* ---- the room view ------------------------------------------------------------- */
.sc {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font: 600 11px/1 var(--font);
  letter-spacing: 0.6px;
}
.sc-bar,
.sc-ruler {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
}
.sc-bar {
  border-bottom: 1px solid var(--ink);
}
.sc-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sc-count {
  margin-right: 6px;
  color: var(--violet);
}
.sc-bar button {
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.sc-bar button:hover:not(:disabled) {
  background: var(--lime);
}
.sc-bar button:disabled {
  opacity: 0.4;
  cursor: default;
}
.sc-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #07060a;
  overflow: hidden;
}
.sc-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  cursor: grab;
  touch-action: none;
}
.sc-split {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  margin-left: -7px;
  cursor: col-resize;
  touch-action: none;
}
.sc-split::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(212, 255, 58, 0.7);
}
.sc-split::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 1px;
  width: 12px;
  height: 28px;
  margin-top: -14px;
  background: var(--lime);
  border: 1px solid var(--ink);
}
.sc-tip {
  position: absolute;
  padding: 5px 8px;
  background: var(--pink);
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  white-space: nowrap;
  z-index: 3;
}
.sc-cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.sc-cap b {
  align-self: flex-start;
  padding: 5px 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.sc-cap span {
  align-self: flex-start;
  padding: 4px 8px;
  background: var(--lime);
  color: var(--ink);
}
.sc-state {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  pointer-events: none;
}
.sc-state.on {
  background: var(--lime);
  color: var(--ink);
}
.sc-state.off {
  background: var(--pink);
  color: var(--ink);
}
.sc-hint {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  padding: 5px 9px;
  background: rgba(19, 10, 58, 0.85);
  color: #fff;
  pointer-events: none;
  transition: opacity 0.4s;
  white-space: nowrap;
}
.sc-hint.gone {
  opacity: 0;
}
.sc-ruler {
  border-top: 1px solid var(--ink);
}
.sc-ticks {
  position: relative;
  flex: 1;
  height: 100%;
  margin-right: 10px;
}
.sc-ticks i {
  position: absolute;
  bottom: 0;
  height: 100%;
  border-left: 1px solid var(--ink);
  padding-left: 3px;
  font-style: normal;
  font-size: 10px;
  line-height: 30px;
}
.sc-ticks i:nth-child(odd) {
  height: 55%;
  line-height: 14px;
  top: auto;
}
.sc-ruler em {
  font-style: normal;
  color: var(--violet);
}
@media (max-width: 520px) {
  .sc-count,
  .sc-view {
    display: none;
  }
  .sc-hint {
    display: none;
  }
}
