/* Strange Sounds — Split Layout: Map + Terminal */

@font-face {
  font-family: 'IBM VGA';
  src: url('../assets/fonts/Web437_IBM_VGA_9x16.woff') format('woff');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  color: #fff;
  font-family: 'IBM VGA', monospace;
  font-size: 16px;
  line-height: 1.2;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

#crt {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Scanlines */
#crt::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.06) 0px,
    rgba(0, 0, 0, 0.06) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 10;
}

/* Left panel — map */
#left {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px;
  min-width: 0;
  border-right: 1px solid #fff;
}

#map {
  white-space: pre;
  letter-spacing: 1px;
  flex: 1;
  overflow: hidden;
}

#map span { color: #fff; }

#room-view {
  flex: 1;
  width: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#message {
  height: 20px;
  color: #fff;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
}

#status {
  display: flex;
  justify-content: space-between;
  color: #fff;
  margin-top: 4px;
  border-top: 1px solid #fff;
  padding-top: 4px;
}

/* Right panel — terminal */
#right {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 8px;
}

#terminal {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#terminal .title {
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

#terminal .body {
  color: #fff;
  white-space: pre-wrap;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

#terminal .hint {
  color: #fff;
  margin-top: 8px;
  border-top: 1px solid #fff;
  padding-top: 4px;
}

#term-view {
  width: 100%;
  flex-shrink: 0;
  margin-top: 8px;
  border-top: 1px solid #fff;
  padding-top: 4px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
