/* 画面は canvas 1 枚。位置と大きさは js/main.js の applyLayout() が決める。
   ページ側は黒地と、拡大縮小・スクロールの抑止だけを持つ。 */

html, body {
  margin: 0;
  height: 100%;
  background: #07060d;
  color: #e9e5f4;
  font: 14px/1.6 "Meiryo", "Yu Gothic", system-ui, sans-serif;
  overflow: hidden;
  /* スマホでのスクロール・ピンチ・長押し選択・ダブルタップ拡大を全部止める */
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 内部解像度は 1280x720 固定。CSS 側だけで拡大するのでロジックは解像度非依存。 */
#screen {
  display: block;
  background: #0a0812;
  box-shadow: 0 0 60px rgba(150, 90, 200, .18);
  touch-action: none;
  transform-origin: 50% 50%;
}

#hint {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #7d7297;
  font-size: 12px;
  border-top: 1px solid #241d38;
  background: #07060d;
}
#hint b { color: #6fe3c4; }
/* タッチ端末では画面を 1px も無駄にしない */
body.touch #hint { display: none; }

#boot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #0a0812;
  transition: opacity .4s;
  z-index: 5;
}
#boot.done { opacity: 0; pointer-events: none; }
#boot p { color: #9d90bb; font-size: 13px; margin: 0; padding: 0 20px; text-align: center; }
#boot .spin {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid #2b2342; border-top-color: #ec80b0;
  animation: sp .9s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }
