/* ---------- HUD ---------- */
.hud {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  height: calc(var(--hud-h) + var(--safe-t));
  padding: var(--safe-t) 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
.hud.is-hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.hud-level {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.hud-badge {
  flex: 0 0 auto;
  height: 26px;
  min-width: 46px;
  padding: 0 9px;
  border-radius: 9px;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  line-height: 26px;
  white-space: nowrap;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.hud-badge small { font-size: 10px; font-weight: 600; opacity: 0.55; margin-left: 1px; }
.hud-name { font-size: 13px; font-weight: 600; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-stats { display: flex; gap: 6px; flex: 0 0 auto; }
.hud-stat {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--t2);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hud-stat b { color: var(--t1); font-size: 13px; font-weight: 700; }
.hud-stat i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.hud-stat.ad i { background: var(--yellow); }
.hud-stat.bump { animation: bump 0.5s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.14); } }

/* 进度条 */
.hud-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.06); }
.hud-progress i { display: block; height: 100%; width: 0; background: var(--lime); box-shadow: 0 0 10px var(--lime); transition: width 0.6s var(--ease-out); }

/* ---------- stage ---------- */
.stage { position: relative; z-index: 10; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #000; }
.stage.shake { animation: shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(5px); }
  30%, 50%, 70% { transform: translateX(-9px); }
  40%, 60% { transform: translateX(9px); }
}
.lv { position: absolute; inset: 0; overflow: hidden; touch-action: none; animation: splashIn 0.6s var(--ease-out) both; }
@keyframes splashIn { from { opacity: 0; transform: scale(1.06); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- splash creative ---------- */
.sp-creative {
  position: absolute;
  inset: -4%;
  background: var(--ink-2) center 30% / cover no-repeat;
  animation: kenburns 14s var(--ease-out) both;
  will-change: transform;
}
@keyframes kenburns { from { transform: scale(1.16) translate3d(0, 2%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
.sp-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: lightSweep 5s 0.8s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
@keyframes lightSweep { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.sp-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, transparent 14%, transparent 62%, rgba(10, 15, 2, 0.16) 100%);
}
.sp-dim { position: absolute; inset: 0; pointer-events: none; background: rgba(6, 9, 2, 0.72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }

.sp-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 118px;
  z-index: 4;
  pointer-events: none;
  animation: riseIn 0.8s 0.25s var(--ease-out) both;
}
.sp-copy h2 { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sp-copy h2 span { display: inline-block; max-width: 100%; white-space: nowrap; font-size: clamp(22px, 8.2vw, 34px); line-height: 1.1; font-weight: 900; letter-spacing: -0.5px; padding: 2px 10px; border-radius: 10px; }
.sp-copy h2 .t1 { color: var(--ink); background: rgba(255, 255, 255, 0.82); }
.sp-copy h2 .t2 { color: var(--lime); background: var(--ink); }
.sp-copy { text-align: center; color: var(--ink); }
.sp-copy p { display: inline-block; margin: 10px 0 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
