@font-face {
  font-family: StationMono;
  src: url("./assets/DejaVuSansMono.ttf");
}
@font-face {
  font-family: StationMono;
  src: url("./assets/DejaVuSansMono-Bold.ttf");
  font-weight: 700;
}
:root {
  color-scheme: dark;
  font-family: StationMono, monospace;
  color: #8eaaa0;
  background: #070b0e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(
    ellipse at 50% 53%,
    #162024 0,
    #0c1216 43%,
    #06090c 76%
  );
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    #d2dfd4 3px 3.5px
  );
  z-index: 10;
}
#app {
  max-width: 1440px;
  min-height: 100svh;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 14px;
}
.room-label {
  width: min(920px, 90%);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 3px;
  color: #50645f;
  padding: 8px 0 14px;
}
.room-label span:first-child {
  color: #9ba69c;
}
.desk {
  width: min(1100px, calc((100svh - 170px) * 1.333));
  max-width: 100%;
  position: relative;
}
.monitor {
  position: relative;
  aspect-ratio: 4/3;
  filter: drop-shadow(0 34px 32px #0009);
  border-radius: 8%;
  isolation: isolate;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  border-radius: 5%;
}
.monitor:after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: -12px;
  height: 15px;
  background: #0008;
  filter: blur(14px);
  z-index: -1;
}
#terminal-input {
  position: absolute;
  left: 11%;
  top: 77%;
  width: 74%;
  height: 11%;
  opacity: 0.012;
  color: transparent;
  background: transparent;
  border: 0;
  outline: none;
  font: 16px StationMono;
  caret-color: transparent;
  pointer-events: none;
}
#terminal-input.active {
  pointer-events: auto;
}
.switches {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 17px 8px 9px;
  flex-wrap: wrap;
}
.switches button {
  background: none;
  border: 0;
  color: #6f817b;
  font: 10px StationMono;
  letter-spacing: 1.6px;
  padding: 7px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.switches button:hover,
.switches button:focus-visible {
  color: #c7d6bf;
  outline: none;
}
.led {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  background: #423127;
  border-radius: 50%;
  vertical-align: 2px;
}
.powered .led {
  background: #9eba88;
  box-shadow: 0 0 7px #9ebb7780;
}
.controls {
  font-size: 9px;
  color: #62746e;
  letter-spacing: 0.5px;
  text-align: center;
  display: flex;
  gap: 22px;
  padding-top: 13px;
  justify-content: center;
  flex-wrap: wrap;
}
.status {
  font-size: 11px;
  max-width: 820px;
  text-align: center;
  color: #85968b;
  min-height: 1em;
  margin: 12px 0 0;
  line-height: 1.6;
}
.status.error {
  color: #c68e7b;
}
#loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 2px;
  background: #080d0feb;
  border-radius: 6%;
}
#loading span {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 18px;
  color: #55675d;
}
#loading[hidden] {
  display: none;
}
.touch-controls {
  display: none;
  user-select: none;
  touch-action: none;
  gap: 10px;
  width: min(530px, 100%);
  justify-content: center;
  margin-top: 10px;
}
.touch-controls button {
  font: 16px StationMono;
  border: 1px solid #34413b;
  border-radius: 4px;
  background: #101a1d;
  color: #b8c9b6;
  padding: 13px 18px;
  touch-action: none;
}
.touch-controls button.held {
  background: #314239;
}
.touch-controls .jump {
  font-size: 11px;
  flex: 1;
}
details {
  width: min(860px, 95%);
  font-size: 12px;
  margin-top: 12px;
}
summary {
  cursor: pointer;
  color: #687e70;
  letter-spacing: 2px;
  font-size: 10px;
}
#transcript {
  white-space: pre-wrap;
  line-height: 1.7;
  background: #09120d;
  padding: 20px;
  margin-top: 10px;
  border: 1px solid #25362b;
  max-height: 45vh;
  overflow: auto;
}
#journal[hidden] {
  display: none;
}
button[hidden] {
  display: none !important;
}
@media (pointer: coarse) {
  .touch-controls {
    display: flex;
  }
  .desk {
    width: min(100%, calc((100svh - 210px) * 1.333));
  }
  .controls {
    display: none;
  }
  .switches {
    gap: 20px;
  }
  .switches button {
    padding: 9px 0;
  }
}
@media (max-width: 650px) {
  #app {
    padding: 18px 9px 12px;
  }
  .room-label {
    font-size: 8px;
    letter-spacing: 1px;
    padding-bottom: 18px;
  }
  .room-label span:last-child {
    display: none;
  }
  .desk {
    width: 100%;
    margin: auto 0;
  }
  .switches {
    gap: 14px;
  }
  .switches button {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .status {
    font-size: 10px;
    max-width: 95%;
  }
  .touch-controls button {
    padding: 14px 12px;
  }
  .controls {
    font-size: 8px;
    gap: 8px;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  #app {
    padding: 0 10px;
  }
  .room-label,
  .controls,
  .status {
    display: none;
  }
  .desk {
    width: calc((100svh - 50px) * 1.333);
  }
  .switches {
    padding: 6px;
    gap: 24px;
  }
  .touch-controls {
    position: fixed;
    bottom: 15px;
    left: 10px;
    width: calc(100% - 20px);
    justify-content: space-between;
    pointer-events: none;
  }
  .touch-controls button {
    pointer-events: auto;
    opacity: 0.65;
  }
  .touch-controls .jump {
    flex: 0;
    margin-left: auto;
  }
}
:fullscreen #app {
  background: #05080a;
}
:fullscreen .desk {
  width: min(1440px, calc((100svh - 125px) * 1.333));
}

.touch-controls[hidden] {
  display: none;
}
