/* 갈무리11 픽셀 글꼴 (SIL OFL 1.1, assets/fonts/Galmuri-OFL.txt) */
@font-face {
  font-family: 'Galmuri11';
  src: url('../assets/fonts/Galmuri11.woff2') format('woff2');
  font-display: block;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #181425;
  color: #ffffff;
  font-family: 'Galmuri11', sans-serif;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#game {
  position: fixed;
  inset: 0;
}

#game canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fee761;
  font-size: 16px;
  pointer-events: none;
}

/* 휴대폰 세로 화면이면 돌려 달라고 안내 */
#rotate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #181425;
  color: #fee761;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

#rotate .phone {
  width: 34px;
  height: 56px;
  border: 3px solid #fee761;
  border-radius: 6px;
  animation: turn 1.6s ease-in-out infinite;
}

@keyframes turn {
  0%, 30% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(-90deg); }
}

@media (orientation: portrait) and (pointer: coarse) {
  #rotate {
    display: flex;
  }
}
