/* ぽてむしRPG: 画面は canvas 1枚を整数倍で拡大（ドットをにじませない）。周りは濃いこげ茶の帯。 */
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #2a2230;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2230;
}

#screen {
  display: block;
  background: #2a2230;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  outline: none;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#touch {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
#touch[hidden] { display: none; }

.t-part {
  position: fixed;
  pointer-events: auto;
  touch-action: none;
  opacity: 0.82;
}
.t-part canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* 縦持ちの台（ゲーム画面の下の空きを埋める。操作の部品より下） */
.t-deck {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
.t-deck[hidden] { display: none; }
.t-deck canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
.t-part { z-index: 1; }

.noscript {
  position: fixed;
  inset: auto 0 40% 0;
  margin: 0;
  color: #ddd;
  text-align: center;
  font: 16px "DotGothic16", monospace;
}
