* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #f2eee6; color: #1c1915;
  font-family: "STKaiti", "KaiTi", "Songti SC", "PingFang SC", serif;
  -webkit-user-select: none; user-select: none; touch-action: none; }
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; overflow: hidden; }

/* 首页：成品图铺满，按钮为图上的透明热区 */
#stage { position: absolute; left: 0; top: 0; }
#bg { display: block; width: 100%; height: 100%; pointer-events: none; }
.hot { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer;
  border-radius: 999px; transition: transform .12s, background-color .12s; }
.hot:active { transform: scale(.96); background: rgba(20, 18, 16, .10); }
#btnStart { left: 22.5%; top: 67%; width: 55.7%; height: 9.6%; border-radius: 50%; }
#btnBest  { left: 17%;   top: 79%; width: 29%;   height: 6.2%; }
#btnSound { left: 51.8%; top: 79%; width: 30.8%; height: 6.2%; }
.badge { position: absolute; right: -2%; top: -30%; min-width: 28px; padding: 2px 8px;
  background: #b8312f; color: #fff7ee; font-size: 13px; line-height: 18px; font-weight: bold;
  border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.25); font-family: "PingFang SC", sans-serif; }
.badge.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }
.slash { position: absolute; left: 15%; top: 18%; width: 21%; height: 64%; display: none;
  background: linear-gradient(135deg, transparent 43%, #b8312f 43%, #b8312f 57%, transparent 57%); }
#btnSound.off .slash { display: block; }

/* 跑酷局 */
#cv { display: block; width: 100%; height: 100%; touch-action: none; }
.hud { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 18px);
  text-align: center; pointer-events: none; }
.hud-label { display: block; font-size: 13px; color: #6d675e; letter-spacing: 4px; }
#score { font-size: 40px; font-weight: bold; color: #1c1915; }
.tip { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font-size: 18px;
  color: #4a453e; pointer-events: none; letter-spacing: 2px; }
.over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(30, 28, 25, .35); }
.over-card { width: 78%; max-width: 320px; padding: 26px 22px 20px; text-align: center;
  background: #f6f2ea; border-radius: 18px; border: 2px solid #2a2724; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.over-title { font-size: 26px; font-weight: bold; margin-bottom: 14px; letter-spacing: 4px; }
.over-row { font-size: 18px; margin: 6px 0; }
.over-row b { font-size: 26px; }
.over-row.sub { color: #6d675e; font-size: 15px; }
.over-row.sub b { font-size: 18px; color: #b8312f; }
.ink-btn { display: block; width: 100%; min-height: 50px; margin-top: 14px; border: 0; border-radius: 25px;
  background: #1f1d1a; color: #fbf7f0; font-size: 19px; font-family: inherit; letter-spacing: 4px; cursor: pointer; }
.ink-btn:active { transform: scale(.97); }
.ink-btn.ghost { background: transparent; color: #1f1d1a; border: 2px solid #1f1d1a; margin-top: 10px; }
