/* POOP STORM - 简化版 */
:root {
  --bg-0: #07030f;
  --neon-green: #39ff14;
  --neon-yellow: #ffe066;
  --danger: #ff4d6d;
  --text: #e7e3ff;
  --text-dim: #9b94c4;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg-0); color: var(--text);
  font-family: -apple-system, "Microsoft YaHei", sans-serif;
  overflow: hidden;
}

/* 持续优化角标 */
.live-badge {
  position: fixed; top: 14px; right: 14px; z-index: 9999;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(20, 8, 45, 0.7);
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: var(--neon-green);
  font-size: 12px; letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green), 0 0 14px var(--neon-green);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

/* 启动卡片 */
.start-card {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(255, 60, 172, 0.18), transparent 60%),
    radial-gradient(800px 500px at 90% 80%, rgba(0, 229, 255, 0.16), transparent 60%),
    var(--bg-0);
}
.card {
  text-align: center; padding: 40px 32px;
  background: rgba(20, 8, 45, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; max-width: 480px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.card-eyebrow {
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--neon-green); margin-bottom: 14px;
}
.card-title {
  font-size: 36px; margin: 0 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.card-title .emoji { animation: bomb 1.6s ease-in-out infinite; }
.card-title .emoji:last-child { animation-delay: 0.8s; }
@keyframes bomb {
  0%, 100% { transform: translateY(0) rotate(-6deg) scale(1); }
  50% { transform: translateY(-4px) rotate(8deg) scale(1.15); }
}
.card-sub { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin: 0 0 24px; }
.card-sub b { color: var(--neon-yellow); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-size: 16px; font-weight: 700;
  color: #0a0517; background: linear-gradient(135deg, var(--neon-green), #b8ff7a);
  border: 0; border-radius: 12px; cursor: pointer; font-family: inherit;
  box-shadow: 0 12px 32px rgba(57,255,20,0.35);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:disabled { background: #555; color: #aaa; cursor: not-allowed; transform: none; box-shadow: none; }

.card-error {
  margin-top: 16px; padding: 10px 14px;
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.4);
  color: #ffd1da; border-radius: 10px; font-size: 13px;
  word-break: break-all;
}

/* 主舞台 */
.stage {
  position: fixed; inset: 0;
  display: grid; grid-template-rows: auto 1fr;
  padding: 16px 20px; gap: 14px;
}
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px;
  background: rgba(10, 4, 24, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; font-size: 12px;
}
.status-block { display: flex; align-items: center; gap: 8px; }
.status-label { color: var(--text-dim); }
.status-value { color: #fff; }
.status-value.neon { color: var(--neon-green); }

.stage-frame {
  display: grid; place-items: center; min-height: 0;
}
.stage-wrap {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16/9;
  border-radius: 18px; overflow: hidden;
  background: #000; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; transform: scaleX(-1);
  background: #000; z-index: 1;
  display: block;
}
.overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
}
.poop-layer {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 3;
}
.poop {
  position: absolute; top: 0; left: 0;
  font-size: 42px; line-height: 1;
  will-change: transform; transform-origin: center;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.aim-hint {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 18px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,224,102,0.4);
  color: var(--neon-yellow); border-radius: 999px;
  font-size: 13px; z-index: 4;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

.ctl {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; font-size: 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px; color: #fff; cursor: pointer;
  font-family: inherit;
}
.ctl.danger { background: rgba(255, 77, 109, 0.15); border-color: rgba(255, 77, 109, 0.4); color: var(--danger); }
.ctl:hover { background: rgba(255,255,255,0.12); }

[hidden] { display: none !important; }
