/* 外层页面固定到可见视口，滚动只发生在游戏内的战斗日志。 */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #142a32;
}
body {
  position: fixed;
  inset: 0;
  height: 100dvh;
}
#canvas {
  display: block;
  touch-action: none;
  outline: none;
}
/* 当前游戏采用竖屏操作；手机横屏时给出可读的转屏提示。 */
@media (orientation: landscape) and (max-height: 500px) {
  body::after {
    content: "请将设备转为竖屏，继续英语语音冒险。";
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-sizing: border-box;
    background: #172338;
    color: #f4f7fa;
    font: 22px/1.6 sans-serif;
    text-align: center;
  }
}
