html, body {
  margin: 0;
  height: 100%;
  background: #08050d;
  color: #d9c8f2;
  font-family: Consolas, "Courier New", monospace;
}
body {
  display: grid;
  place-items: center;
}
#frame {
  width: min(100vw, 1280px);
  text-align: center;
}
#game-shell {
  position: relative;
  display: inline-block;
  width: min(100vw, 1280px);
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #0b0712;
  border: 4px solid #261936;
  box-shadow: 0 0 38px rgba(126, 78, 210, 0.35);
  box-sizing: border-box;
}
#story-video {
  position: absolute;
  inset: 4px;
  display: none;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  background: #000;
  object-fit: contain;
  z-index: 3;
}
#story-video.is-visible {
  display: block;
}
#story-subtitles {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: none;
  width: min(82%, 860px);
  box-sizing: border-box;
  z-index: 4;
  padding: 13px 20px 15px;
  border: 2px solid rgba(157, 91, 255, 0.72);
  border-radius: 10px;
  background: rgba(7, 3, 12, 0.82);
  box-shadow: 0 0 24px rgba(118, 62, 194, 0.36), inset 0 0 18px rgba(78, 36, 125, 0.32);
  color: #f5edff;
  font: 21px Georgia, "Times New Roman", serif;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 8px rgba(199, 162, 255, 0.45);
  pointer-events: none;
}
#story-subtitles.is-visible {
  display: block;
}
#story-subtitles .speaker {
  display: block;
  margin-bottom: 4px;
  color: #c998ff;
  font: 13px Consolas, "Courier New", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
#story-video-start {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: none;
  z-index: 5;
  padding: 12px 18px;
  border: 2px solid #d9c8f2;
  background: rgba(8, 5, 13, 0.92);
  color: #f1e8ff;
  font: 18px Consolas, "Courier New", monospace;
  cursor: pointer;
}
#story-video-start.is-visible {
  display: block;
}
#hint {
  margin: 10px 0 0;
  font-size: 14px;
  color: #bba7dc;
}
