* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%; width: 100%;
  overflow: hidden;
  background: #070605;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "PingFang SC", "Microsoft YaHei", serif;
}
#game {
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}
#boot {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  color: #c4a668; letter-spacing: .28em; font-size: 15px;
  background: #070605; z-index: 9;
  padding: 32px; text-align: center; line-height: 2.2;
  transition: opacity .8s ease;
}
#boot.gone { opacity: 0; pointer-events: none; }
#boot > * + * { margin-top: 18px; }
#safe-area-probe {
  position: fixed; visibility: hidden; pointer-events: none;
  padding: 0;
  padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  padding-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  padding-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
}
#reading-controls {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center;
  height: 46px; background: #100c09; border-top: 1px solid #4a3b2c;
  padding: 0 10px; color: #cbbca3; font-size: 11px;
}
#reading-controls > * + * { margin-left: 8px; }
#reading-controls button {
  min-height: 36px; padding: 0 10px; flex-shrink: 0;
  border: 1px solid #806942; border-radius: 3px;
  background: #241b13; color: #f5ecda; font-size: 12px;
  font-family: inherit; touch-action: manipulation;
}
#reading-controls button:focus { outline: 2px solid #d8b76c; outline-offset: 2px; }
#storage-status {
  position: fixed; top: 10px; left: 5%; width: 90%; z-index: 11;
  padding: 10px; text-align: center; background: #241b13;
  border: 1px solid #d8b76c; color: #fff1c9; font-size: 13px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
@media (max-width: 340px) {
  #reading-hint { font-size: 10px; }
  #reading-controls button { padding: 0 6px; }
  #reading-controls > * + * { margin-left: 5px; }
}
