/* WORLD 게임 공통 스타일 — 시작/게임오버 화면, HUD, 버튼 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; touch-action: none; }
body {
  font-family: 'Pretendard', -apple-system, 'Noto Sans KR', sans-serif;
  background: #0f1220;
  -webkit-user-select: none;
  user-select: none;
}
canvas { display: block; }

/* 오버레이 화면 (시작 / 게임오버) */
.ws-screen {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  background: rgba(10, 13, 28, 0.82);
  backdrop-filter: blur(6px);
  color: #fff; text-align: center; padding: 24px;
}
.ws-screen.hidden { display: none; }
.ws-emoji { font-size: 4.5rem; line-height: 1; }
.ws-title { font-size: 2.2rem; font-weight: 800; }
.ws-sub { font-size: 1rem; color: #aeb6dc; line-height: 1.7; max-width: 420px; }
.ws-score { font-size: 1.3rem; }
.ws-score b { color: #fbbf24; font-size: 2rem; }

.ws-btn {
  font-family: inherit;
  font-size: 1.3rem; font-weight: 800;
  padding: 16px 44px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff; cursor: pointer;
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45);
  transition: transform .12s;
}
.ws-btn:active { transform: scale(0.94); }

/* 상단 HUD */
.ws-hud {
  position: fixed; top: 12px; left: 12px; z-index: 10;
  display: flex; gap: 8px; pointer-events: none;
}
.ws-pill {
  background: rgba(10, 14, 30, 0.72); color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 8px 14px; font-weight: 700;
  backdrop-filter: blur(6px); min-width: 70px; text-align: center;
}
.ws-pill small { display: block; font-size: 0.62rem; font-weight: 400; color: #9aa3c7; }
.ws-pill b { font-size: 1.15rem; }

/* 우상단 홈 버튼 */
.ws-home {
  position: fixed; top: 12px; right: 12px; z-index: 60;
  background: rgba(10, 14, 30, 0.72); color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 8px 14px;
  text-decoration: none; font-weight: 700; font-size: 0.85rem;
  backdrop-filter: blur(6px);
}
