html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0a0e1a;
  color: #cfd8ef;
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  /* 모바일: 스크롤/확대/길게 누르기 메뉴 방지 */
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 조작법 상자: 처음 몇 스테이지와 I 키를 눌렀을 때만 (main.js 가 body.help-on 을 켬) */
#help {
  display: none;
  position: fixed;
  left: 24px;
  bottom: 24px;
  padding: 14px 18px;
  border: 1px solid #2a3554;
  border-radius: 10px;
  background: rgba(16, 22, 40, 0.85);
  font-size: 14px;
  pointer-events: none;
}

#help h2 {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #fff3b0, #ffb703);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 183, 3, 0.6));
}

#help dl {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 14px;
  margin: 0;
}

#help { font-family: "Do Hyeon", "M PLUS Rounded 1c", "Malgun Gothic", "Yu Gothic", sans-serif; font-size: 16px; }
#help dt { color: #7fdbff; text-shadow: 0 0 6px rgba(127, 219, 255, 0.5); }
#help dd { margin: 0; }

body.help-on #help { display: block; }

/* 가로 배치에서는 조작 안내를 게임 화면 안(왼쪽 패널)에 그리므로 숨김 */
body.wide #help { display: none; }

/* 경기장 옆에 공간이 없는 화면(모바일 등)에서는 숨김 */
@media (max-width: 1000px), (pointer: coarse) {
  body.help-on #help { display: none; }
}
