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

#stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; }
#tapzone { width: clamp(150px, 56vw, 240px); height: clamp(150px, 56vw, 240px); display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none; touch-action: manipulation; }
#buyTap, #buyAuto { min-height: 48px; }
#tapzone.tap-anim { animation: pop .15s ease; }
#tapzone svg { width: 100%; height: 100%; }
#rates { font-size: 12px; color: var(--c-purple); }
.floatplus { position: absolute; font-family: var(--f-pixel); font-size: 20px; color: var(--c-primary); pointer-events: none; animation: floatup .7s ease-out forwards; }
@keyframes floatup { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-50px); } }

#shop { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.shopbtn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border: 2px solid var(--ink); border-radius: var(--r);
  background: var(--card); color: var(--ink); font-family: var(--f-body); font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 0 rgba(46, 37, 72, .15); cursor: pointer;
}
.shopbtn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(46, 37, 72, .15); }
.shopbtn:disabled { opacity: .45; }
.shopbtn .lv { color: var(--soft); font-size: 12px; }
.shopbtn .cost { font-family: var(--f-pixel); color: var(--c-purple); }

.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.happy { animation: pop .5s ease; }
.go-title { font-family: var(--f-display); font-size: 26px; color: var(--ink); }
.go-actions { display: flex; gap: 10px; margin-top: 16px; }
.go-actions .btn { flex: 1; }
[hidden] { display: none !important; }
