/* 게임 공통 스타일 (iframe 내부) */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: #10111b; color: #f1f1f7;
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
button { font: inherit; cursor: pointer; }
.hud {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-weight: 700; pointer-events: none;
}
.hud .box { background: rgba(0,0,0,.35); padding: 4px 12px; border-radius: 8px; }
.overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(10, 10, 20, .78); backdrop-filter: blur(3px);
  text-align: center; padding: 20px;
}
.overlay.hidden { display: none; }
.overlay h1 { margin: 0; font-size: clamp(1.6rem, 6vmin, 2.6rem); }
.overlay p { margin: 0; color: #b8b9d2; }
.btn {
  padding: 10px 30px; border: 0; border-radius: 999px;
  background: #7c5cff; color: #fff; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(124, 92, 255, .45);
}
.btn:hover { background: #9d85ff; }
.btn.sub { background: #2d2f48; box-shadow: none; font-size: .9rem; padding: 8px 20px; }
