html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #101927;
}

#game {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  box-sizing: border-box;
}

#game canvas {
  display: block;
  flex: none;
  touch-action: none;
}

#note-message, #note-video {
  position: fixed;
  z-index: 1;
  box-sizing: border-box;
}

#note-message {
  color: #452d42;
  font: italic 26px/1.32 "Segoe Print", "Bradley Hand", Georgia, serif;
  white-space: pre-wrap;
  overflow: auto;
  overflow-wrap: anywhere;
  scrollbar-color: #ad8278 transparent;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

#note-video {
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid #8f5c67;
  background: #6c4153;
  color: #fff0d3;
  font-family: Georgia, serif;
  font-weight: 700;
  text-align: center;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  touch-action: manipulation;
}

#note-video:hover { background: #824c60; }
#note-video:focus-visible, #note-message:focus-visible { outline: 2px solid #56374e; outline-offset: 3px; }
#note-message[hidden], #note-video[hidden] { display: none; }