/* 모아이 농구 — 게임 스타일 */
#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: 8px; padding: 4px 4px 8px; }
#mascot { width: 38px; height: 38px; flex: 0 0 auto; }
.stats { display: flex; align-items: baseline; gap: 6px; }
.stats .pixel-label { font-size: 10px; }
.stats strong { font-family: var(--f-pixel); font-size: 22px; color: var(--ink); }
.vs { font-family: var(--f-pixel); color: var(--soft); }
#hud .pixel-label { flex: 1; text-align: center; font-size: 10px; }
#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(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  font-family: var(--f-pixel); font-size: 10px; color: var(--c-purple);
  background: rgba(255, 255, 255, .82); padding: 6px 12px; 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; }
#over-mascot.happy { animation: pop .5s ease; }
.go-title { font-family: var(--f-display); font-size: 24px; color: var(--ink); }
.go-score { margin-top: 6px; }
.go-score strong { font-family: var(--f-pixel); font-size: 22px; color: var(--c-purple); }
#restart { margin-top: 16px; width: 100%; }
[hidden] { display: none !important; }
