/* 桥上打僵尸16 —— 竖屏生存射击 */
:root {
  --accent: #FF8A3D;
  --accent-soft: #FFC46B;
  --danger: #FF4B43;
  --text: #F7F4EE;
  --muted: rgba(247, 244, 238, .62);
  --glass: rgba(10, 15, 22, .72);
  --glass-2: rgba(18, 25, 35, .82);
  --stroke: rgba(255, 255, 255, .14);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #05080d;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

body {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

button {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img { -webkit-user-drag: none; }

[hidden] { display: none !important; }

.stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #070b11;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  isolation: isolate;
}

/* ---------- 场景像素图 ---------- */
.scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 50%;
  filter: brightness(.96) contrast(1.04) saturate(1.06);
  pointer-events: none;
  user-select: none;
}

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 6, 11, .78) 0%, rgba(3, 6, 11, .28) 14%, transparent 32%),
    linear-gradient(0deg, rgba(2, 5, 9, .82) 0%, rgba(2, 5, 9, .28) 16%, transparent 36%),
    radial-gradient(130% 92% at 50% 48%, transparent 42%, rgba(2, 5, 10, .5) 100%);
}

/* ---------- 丧尸热区 ---------- */
.targets {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.target {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  will-change: left, top;
  transition: opacity .22s ease;
}

.z-halo {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 110, 76, .28);
  box-shadow: 0 0 22px rgba(255, 72, 46, .16), inset 0 0 16px rgba(255, 72, 46, .08);
  animation: haloPulse 2.4s ease-out infinite;
}

.z-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -90deg,
    var(--ring, #ff6a3e) calc(var(--p, 0) * 1%),
    rgba(255, 255, 255, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 5px rgba(255, 84, 52, .5));
  transition: filter .12s ease;
}

.target.danger .z-ring {
  --ring: #ff3a30;
  filter: drop-shadow(0 0 8px rgba(255, 40, 30, .85));
}

.target.danger .z-halo {
  border-color: rgba(255, 58, 48, .65);
  animation-duration: .8s;
}

.z-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #ffe2cd;
  box-shadow: 0 0 9px 2px rgba(255, 90, 50, .75);
}

.z-pips {
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
}

.z-pips i {
  display: block;
  width: 5px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.z-pips i.on { background: var(--accent); }

.z-dead {
  position: absolute;
  inset: -8px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 54%, rgba(96, 6, 6, .62), rgba(48, 0, 0, .3) 56%, transparent 72%);
  color: rgba(255, 158, 130, .95);
}

.z-dead i { width: 26px; height: 26px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .8)); }

.target.hit .z-ring { filter: brightness(3) drop-shadow(0 0 12px #fff); }
.target.hit .z-halo { background: rgba(255, 230, 210, .22); }

.target.dead .z-ring,
.target.dead .z-halo,
.target.dead .z-dot,
.target.dead .z-pips { display: none; }

.target.dead .z-dead { display: flex; animation: deadIn .3s ease-out both; }

@keyframes haloPulse {
  0% { transform: scale(.92); opacity: .85; }
  70% { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}

@keyframes deadIn {
  from { transform: scale(.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- 射击特效 ---------- */
.fx-layer {
  position: absolute;
  inset: 0;
  z-index: 22;
  overflow: hidden;
  pointer-events: none;
}

.muzzle {
  position: absolute;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 4%, #ffedb8 9%, #ffc25a 18%, rgba(255, 138, 61, .72) 33%, rgba(255, 78, 26, .22) 56%, transparent 70%);
  box-shadow: 0 0 70px 24px rgba(255, 126, 40, .42);
  mix-blend-mode: screen;
  animation: muzzle .19s ease-out forwards;
}

.muzzle::before,
.muzzle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 236, 190, .9), transparent);
  mix-blend-mode: screen;
}
.muzzle::after { transform: translate(-50%, -50%) rotate(90deg); }

@keyframes muzzle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18); }
}

.crosshair {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  animation: crossIn .3s ease-out forwards;
  opacity: 0;
}
.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 6px rgba(255, 138, 61, .9);
}
.crosshair::before { width: 34px; height: 2px; transform: translate(-50%, -50%); }
.crosshair::after { width: 2px; height: 34px; transform: translate(-50%, -50%); }

@keyframes crossIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.82); }
}

.splat {
  position: absolute;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 40%, rgba(174, 12, 12, .9) 0 7%, transparent 8%),
    radial-gradient(circle at 63% 35%, rgba(140, 8, 8, .8) 0 5%, transparent 6%),
    radial-gradient(circle at 55% 62%, rgba(120, 6, 6, .8) 0 10%, transparent 11%),
    radial-gradient(circle at 48% 48%, rgba(118, 4, 4, .68) 0 20%, rgba(86, 2, 2, .26) 32%, transparent 52%);
  filter: blur(.4px) drop-shadow(0 3px 6px rgba(0, 0, 0, .45));
  animation: splat .62s ease-out forwards;
}

@keyframes splat {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.04) rotate(6deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.22) rotate(10deg); }
}

.float-num,
.float-score {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .02em;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .85), 0 0 14px rgba(0, 0, 0, .55);
  animation: floatUp .82s cubic-bezier(.2, .8, .3, 1) forwards;
}

.float-num { color: #ffe9dc; }
.float-num.head { color: #ffd166; font-size: 21px; }
.float-score { color: var(--accent); font-size: 18px; }

@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.75); }
  20% { opacity: 1; transform: translate(-50%, -58%) scale(1.05); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -145%) scale(.94); }
}

.damage-veil {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 46%, transparent 46%, rgba(170, 0, 0, .3) 100%);
  box-shadow: inset 0 0 90px 22px rgba(255, 26, 26, .55);
  transition: opacity .4s ease;
}
.damage-veil.show { opacity: 1; transition: none; }

/* ---------- HUD ---------- */
.hud {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 0;
  padding: calc(var(--safe-top) + 10px) 14px 0;
  pointer-events: none;
}

.glass {
  background: linear-gradient(180deg, rgba(23, 31, 43, .84), rgba(9, 14, 21, .76));
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hud-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: auto;
  transition: transform .12s ease, background .12s ease;
}
.icon-btn i { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.92); background: rgba(255, 138, 61, .28); }

.hp {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hp-heart {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #ff5f5f;
  filter: drop-shadow(0 0 5px rgba(255, 48, 48, .5));
}

.hp-track {
  position: relative;
  flex: 1 1 auto;
  height: 17px;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .55);
}

.hp-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  border-radius: 9px;
  background: linear-gradient(90deg, #e22c2c, #ff5a3c 62%, #ff8a3d);
  box-shadow: 0 0 12px rgba(255, 74, 54, .45);
  transition: width .28s cubic-bezier(.2, .8, .3, 1);
}

.hp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  font-variant-numeric: tabular-nums;
}

.hp.low {
  border-color: rgba(255, 70, 60, .55);
  box-shadow: 0 0 20px rgba(255, 44, 36, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: lowHp 1.05s ease-in-out infinite;
}

@keyframes lowHp {
  0%, 100% { border-color: rgba(255, 70, 60, .35); }
  50% { border-color: rgba(255, 90, 70, .9); }
}

.ammo {
  flex: 0 0 auto;
  min-width: 80px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.ammo-ico { width: 16px; height: 16px; color: var(--accent); }

.ammo-num {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}
.ammo-num b { font-size: 16px; font-weight: 900; letter-spacing: .02em; }
.ammo-num i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted); }

.hud-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
}

.pill {
  height: 32px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .78);
  font-variant-numeric: tabular-nums;
}

.pill i { width: 14px; height: 14px; color: var(--accent); }

.wave-pill {
  padding: 0 12px;
  color: rgba(255, 255, 255, .82);
}
.wave-pill b {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 138, 61, .55);
}

.stat-pill b, .score-pill b { color: #fff; font-size: 13px; font-weight: 900; }

.score-pill { color: var(--accent-soft); }

/* ---------- 波次横幅 ---------- */
.wave-banner {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: 23%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px) scale(.94);
  pointer-events: none;
}

.wave-banner.show { animation: bannerIn 2s cubic-bezier(.16, .84, .3, 1) both; }

.wb-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .72);
  text-shadow: 0 2px 5px rgba(0, 0, 0, .8);
  padding-left: .34em;
}

.wb-title {
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 86, 44, .6), 0 4px 20px rgba(0, 0, 0, .85);
}

.wave-banner.clear .wb-title { color: #ffd9a2; text-shadow: 0 0 24px rgba(255, 160, 60, .72), 0 4px 18px rgba(0, 0, 0, .85); }

@keyframes bannerIn {
  0% { opacity: 0; transform: translateY(10px) scale(.9); }
  14% { opacity: 1; transform: translateY(0) scale(1); }
  72% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-12px) scale(1.03); }
}

/* ---------- 操作提示 ---------- */
.hint {
  position: absolute;
  z-index: 32;
  left: 14px;
  bottom: calc(var(--safe-bottom) + 116px);
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.hint i { width: 15px; height: 15px; color: var(--accent); }
.hint.hide { opacity: 0; transform: translateY(6px); }

/* ---------- 换弹按钮 ---------- */
.reload-btn {
  position: absolute;
  z-index: 33;
  right: 16px;
  bottom: calc(var(--safe-bottom) + 18px);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 36%, rgba(58, 36, 20, .96), rgba(14, 16, 20, .97) 72%);
  border: 2px solid rgba(255, 138, 61, .68);
  box-shadow:
    0 0 0 6px rgba(255, 138, 61, .09),
    0 12px 30px rgba(0, 0, 0, .5),
    inset 0 0 22px rgba(255, 138, 61, .16);
  transition: transform .12s ease, box-shadow .16s ease;
}
.reload-btn:active { transform: scale(.93); box-shadow: 0 0 0 3px rgba(255, 138, 61, .16), 0 8px 20px rgba(0, 0, 0, .5), inset 0 0 26px rgba(255, 138, 61, .28); }

.reload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
}
.reload-inner i { width: 19px; height: 19px; color: var(--accent); margin-bottom: 2px; }
.reload-inner b { font-size: 22px; font-weight: 900; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.reload-inner em { font-style: normal; font-size: 9px; font-weight: 700; color: rgba(255, 255, 255, .58); letter-spacing: .12em; margin-top: 2px; }

.reload-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  opacity: 0;
  background: conic-gradient(from -90deg, var(--accent) calc(var(--r, 0) * 1%), rgba(255, 255, 255, .12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  transition: opacity .15s ease;
}
.reload-btn.reloading .reload-ring { opacity: 1; }
.reload-btn.reloading { animation: reloadPulse 1.15s linear infinite; }
.reload-btn.reloading .reload-inner i { animation: spin 1.15s linear infinite; }

@keyframes reloadPulse {
  0%, 100% { border-color: rgba(255, 138, 61, .45); }
  50% { border-color: rgba(255, 190, 120, .95); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toast ---------- */
.toast {
  position: absolute;
  z-index: 42;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 174px);
  transform: translate(-50%, 8px);
  max-width: 84%;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  background: rgba(9, 14, 21, .86);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 暂停 / 结算 ---------- */
.veil {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: auto;
  background: rgba(3, 6, 10, .58);
  -webkit-backdrop-filter: blur(10px) saturate(.85);
  backdrop-filter: blur(10px) saturate(.85);
  animation: veilIn .2s ease-out both;
}
.veil.over { background: radial-gradient(circle at 50% 40%, rgba(70, 8, 6, .38), rgba(3, 6, 10, .76) 62%); }

@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }

.panel {
  position: relative;
  width: 100%;
  max-width: 344px;
  padding: 24px 20px 20px;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 138, 61, .12), transparent 58%),
    linear-gradient(180deg, rgba(26, 34, 46, .98), rgba(10, 14, 20, .99));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .09);
  animation: panelIn .28s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(255, 138, 61, .12);
  border: 1px solid rgba(255, 138, 61, .34);
  box-shadow: 0 0 26px rgba(255, 138, 61, .16);
}
.panel-badge i { width: 25px; height: 25px; }
.panel-badge.danger {
  color: #ff6a5c;
  background: rgba(255, 60, 48, .12);
  border-color: rgba(255, 60, 48, .34);
  box-shadow: 0 0 26px rgba(255, 60, 48, .16);
}

.panel h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .06em;
}

.panel-sub {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.panel-sub b { color: var(--accent); font-size: 14px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 18px 0 16px;
}

.stat-grid > div {
  padding: 10px 4px 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
}

.stat-grid b {
  display: block;
  font-size: 19px;
  font-weight: 900;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-grid span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted);
}

.final-score {
  margin: 16px 0 4px;
  padding: 12px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 138, 61, .16), rgba(255, 138, 61, .05));
  border: 1px solid rgba(255, 138, 61, .25);
}
.final-score span { display: block; font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.final-score b {
  display: block;
  margin-top: 2px;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(255, 138, 61, .38);
}

.btn {
  width: 100%;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  transition: transform .12s ease, filter .12s ease;
}
.btn i { width: 19px; height: 19px; }
.btn:active { transform: scale(.97); filter: brightness(1.08); }

.btn.primary {
  color: #23150b;
  background: linear-gradient(180deg, #ffb066, #ff8a3d 62%, #f2711f);
  box-shadow: 0 10px 24px rgba(255, 120, 40, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn.ghost {
  margin-top: 8px;
  height: 44px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}
.btn.ghost:active { background: rgba(255, 255, 255, .1); }

.panel-tip {
  margin: 14px 0 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: rgba(247, 244, 238, .42);
}

/* ---------- 加载 ---------- */
.boot {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(80% 55% at 50% 42%, rgba(96, 30, 10, .22), transparent 65%),
    #070b11;
  transition: opacity .45s ease, visibility .45s ease;
}
.boot.gone { opacity: 0; visibility: hidden; }

.boot-mark {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(255, 138, 61, .1);
  border: 1px solid rgba(255, 138, 61, .3);
  box-shadow: 0 0 34px rgba(255, 138, 61, .18);
}
.boot-mark i { width: 32px; height: 32px; }

.boot-text {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: rgba(247, 244, 238, .56);
}

.boot-bar {
  width: 116px;
  height: 3px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}
.boot-bar i {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: bootSlide 1.05s ease-in-out infinite;
}

@keyframes bootSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

.boot.fail .boot-bar { display: none; }
.boot.fail .boot-text { color: #ff8a7a; }

/* ---------- 屏幕震动 ---------- */
.stage.shake { animation: shake .3s cubic-bezier(.36, .07, .19, .97) both; }

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 1px, 0); }
  20%, 80% { transform: translate3d(3px, -2px, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 2px, 0); }
  40%, 60% { transform: translate3d(5px, -1px, 0); }
}

/* ---------- 桌面/平板 ---------- */
@media (min-width: 600px) {
  body {
    align-items: stretch;
    background: radial-gradient(80% 70% at 50% 40%, #101722, #04070b 72%);
  }
  .stage {
    max-width: 520px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 100px rgba(0, 0, 0, .75);
  }
}

@media (max-height: 620px) {
  .hint { display: none; }
  .reload-btn { width: 74px; height: 74px; }
  .reload-inner b { font-size: 19px; }
  .wave-banner { top: 20%; }
  .wizard-panel, .panel { padding-top: 18px; padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .z-halo, .muzzle, .splat, .crosshair, .float-num, .float-score,
  .wave-banner.show, .boot-bar i, .stage.shake, .panel, .veil {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .hp-fill, .toast, .hint { transition-duration: .01ms !important; }
}

.dust {
  position: absolute;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 218, 202, .5), rgba(190, 180, 168, .16) 48%, transparent 70%);
  animation: dust .46s ease-out forwards;
}

@keyframes dust {
  0% { opacity: .85; transform: translate(-50%, -50%) scale(.35); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}
