* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; overflow:hidden; }
body {
  background:#0d1b2a;
  color:#e8f4ff;
  font-family:-apple-system,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;
  touch-action:none; user-select:none; -webkit-user-select:none;
}
#app { position:relative; height:100%; max-width:430px; margin:0 auto; display:flex; flex-direction:column; }
.hidden { display:none !important; }

#hud { display:flex; justify-content:space-between; padding:10px 12px; font-size:14px; }
.hud-item { background:rgba(255,255,255,.08); border-radius:8px; padding:4px 10px; }
#wave-num { color:#8fd8ff; font-weight:700; }

#arena-zone { flex:1; display:flex; align-items:center; justify-content:center; min-height:0; }
#arena { width:min(94vw,400px); height:auto; border-radius:50%; box-shadow:0 8px 32px rgba(0,0,0,.6); touch-action:none; }

#hint { text-align:center; font-size:13px; color:#9ec9e8; padding:10px 16px 16px; }

.overlay {
  position:absolute; inset:0; z-index:10; background:rgba(6,14,24,.93);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px;
}
#title-logo, #result-emoji { font-size:72px; margin-bottom:8px; }
#title-h1 { font-size:28px; color:#8fd8ff; margin-bottom:12px; letter-spacing:2px; }
#title-desc { font-size:14px; line-height:1.7; color:#b8d8ee; margin-bottom:16px; }
#title-best { color:#ffd98a; font-size:14px; margin-bottom:10px; }
#result-title { font-size:24px; color:#8fd8ff; margin-bottom:8px; }
#result-score { font-size:44px; font-weight:700; color:#fff; margin-bottom:6px; }
#result-sub { font-size:14px; color:#b8d8ee; white-space:pre-line; margin-bottom:18px; line-height:1.6; }

#upgrade-title { font-size:22px; color:#8fd8ff; margin-bottom:18px; }
#upgrade-cards { display:flex; flex-direction:column; gap:12px; width:100%; max-width:320px; }
.upg-card {
  display:flex; align-items:center; gap:14px; text-align:left;
  min-height:64px; padding:12px 16px; border-radius:14px;
  background:#12283d; border:2px solid #2a5a80; color:#e8f4ff;
}
.upg-card:active { transform:scale(.97); background:#1a3a55; }
.upg-emoji { font-size:32px; }
.upg-name { font-size:17px; font-weight:700; flex:1; }
.upg-desc { font-size:12px; color:#9ec9e8; }

.big-btn {
  min-width:200px; min-height:52px; font-size:18px; font-weight:700; border:none; border-radius:14px;
  background:linear-gradient(180deg,#6fc3ff,#2a7ab8); color:#08131f; padding:12px 28px;
}
.big-btn:active { transform:scale(.96); }

#btn-mute {
  position:absolute; top:8px; right:10px; z-index:20; width:44px; height:44px;
  font-size:20px; background:rgba(255,255,255,.08); border:none; border-radius:10px;
}
#float-layer { position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:5; }
.float-txt { position:absolute; font-size:22px; animation:floatUp 1s ease-out forwards; }
@keyframes floatUp { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(-46px); } }
