/* 모아이 윙즈 — 게임 스타일 */
#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: 10px; padding: 4px 4px 8px; }
#mascot { width: 40px; height: 40px; flex: 0 0 auto; }
.score-wrap { flex: 1; display: flex; align-items: baseline; gap: 6px; }
.score-wrap .pixel-label { font-size: 10px; }
.score-wrap strong { font-family: var(--f-pixel); font-size: 20px; color: var(--ink); }
#lives { display: flex; gap: 3px; }
.heart { width: 14px; height: 14px; background: #FF6F91; clip-path: polygon(50% 100%, 0 35%, 25% 0, 50% 25%, 75% 0, 100% 35%); }
.heart.lost { background: #D9CFE8; }
#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; }
#hint {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  font-family: var(--f-pixel); font-size: 11px; color: var(--c-purple);
  background: rgba(255, 255, 255, .8); padding: 6px 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--b-soft); white-space: nowrap; pointer-events: none; transition: opacity .3s;
}

.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); }
.go-score { font-size: 15px; color: var(--ink2); margin-top: 4px; }
.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; }
