/* 모아이 합치기 — 게임 스타일 */
#app {
  display: flex; flex-direction: column;
  height: 100vh; height: 100svh; overflow: hidden;
  padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}
#hud { display: flex; align-items: center; gap: 12px; padding: 4px 4px 8px; }
#mascot { width: 44px; height: 44px; flex: 0 0 auto; }
.score-wrap { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.score-wrap .pixel-label { font-size: 10px; }
.score-wrap strong { font-family: var(--f-pixel); font-size: 22px; color: var(--ink); }
.best { font-family: var(--f-pixel); font-size: 12px; color: var(--soft); }
#newgame { padding: 8px 12px; font-size: 13px; }

#stage { position: relative; flex: 1; min-height: 0; }
#cv { display: block; width: 100%; height: 100%; touch-action: none; }

.overlay { position: fixed; inset: 0; background: rgba(46, 37, 72, .45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.go-card { text-align: center; max-width: 320px; width: 100%; animation: fadeInUp .35s ease; }
#over-mascot { width: 84px; height: 84px; margin: 0 auto 10px; }
#over-mascot.sad { animation: shakeX .5s ease; }
.go-title { font-family: var(--f-display); font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.go-score { font-size: 15px; color: var(--ink2); }
.go-score strong { font-family: var(--f-pixel); font-size: 20px; color: var(--c-purple); margin-left: 6px; }
#restart { margin-top: 16px; width: 100%; }
[hidden] { display: none !important; }
