/* ─── 全局重置 ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 与栖灵阁系统保持一致的浅绿色系 */
  --primary:     #059669;
  --primary-lt:  #10b981;
  --primary-bg:  #ecfdf5;
  --accent:      #d97706;
  --accent2:     #7c3aed;
  --bg:          linear-gradient(160deg, #ecfdf5 0%, #d1fae5 25%, #f0f9ff 60%, #fdf4ff 100%);
  --bg-card:     rgba(255,255,255,0.95);
  --bg-card2:    rgba(255,255,255,0.7);
  --text:        #0d2a1a;
  --text-muted:  #6b9e8a;
  --text-light:  #9dbdb0;
  --border:      rgba(16,185,129,0.2);
  --shadow:      0 4px 20px rgba(5,150,105,0.12);
  --shadow-lg:   0 8px 32px rgba(5,150,105,0.18);
  --radius:      14px;
  --radius-lg:   20px;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── 背景装饰 ─────────────────────────────────────────────────────────────── */
.bg-decoration {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 25%, #f0f9ff 60%, #fdf4ff 100%);
}
.bg-decoration::before {
  content: '';
  position: absolute; top: -20%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(52,211,153,0.25), transparent 70%);
}
.bg-decoration::after {
  content: '';
  position: absolute; bottom: -10%; right: -5%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.15), transparent 70%);
}

/* ─── 通用工具类 ───────────────────────────────────────────────────────────── */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col    { flex-direction: column; }
.gap-8       { gap: 8px; }
.gap-16      { gap: 16px; }
.gap-24      { gap: 24px; }
.w-full      { width: 100%; }
.text-center { text-align: center; }
.hidden      { display: none !important; }

/* ─── 页面内容层 ───────────────────────────────────────────────────────────── */
.page-wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 16px;
}

/* ─── Logo & 标题 ──────────────────────────────────────────────────────────── */
.logo-title {
  font-size: 26px; font-weight: 800;
  color: #065f46;
  letter-spacing: 2px;
}
.logo-sub {
  font-size: 13px; color: var(--text-muted);
  letter-spacing: 3px; margin-top: 4px;
}

/* ─── 卡片 ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 14px; font-weight: 700; color: var(--primary);
  margin-bottom: 14px; letter-spacing: 0.5px;
}

/* ─── 输入框 ───────────────────────────────────────────────────────────────── */
.input-field {
  width: 100%; padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(16,185,129,0.25);
  background: #f9fffe;
  color: var(--text);
  font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input-field::placeholder { color: var(--text-light); }
.input-field:focus {
  border-color: var(--primary-lt);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
  background: #fff;
}

/* ─── 按钮 ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; border: none; outline: none;
  transition: all .2s ease;
  user-select: none; -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.5px;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,0.35);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-accent {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217,119,6,0.3);
}

.btn-purple {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(5,150,105,0.25);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg { padding: 14px 40px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-block { width: 100%; display: flex; }
.btn:disabled { opacity: 0.6; pointer-events: none; }

/* ─── 活动选择卡 ───────────────────────────────────────────────────────────── */
.activity-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 14px; width: 100%; max-width: 380px;
}
.activity-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all .25s ease;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.activity-card::before {
  content: attr(data-emoji);
  position: absolute; right: -8px; bottom: -8px;
  font-size: 64px; opacity: 0.1;
  pointer-events: none;
}
.activity-card:hover, .activity-card.selected {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.activity-card h3 { font-size: 16px; color: #065f46; margin-bottom: 4px; }
.activity-card p  { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.activity-tag {
  display: inline-block;
  padding: 2px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; margin-bottom: 8px;
  background: rgba(5,150,105,0.1); color: var(--primary);
  border: 1px solid rgba(5,150,105,0.2);
}

/* ─── 状态指示 ─────────────────────────────────────────────────────────────── */
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}
.status-dot.online  { background: var(--primary-lt); box-shadow: 0 0 5px var(--primary-lt); }
.status-dot.offline { background: #ef4444; }
.status-dot.waiting { background: var(--accent); animation: pulse 1.5s infinite; }

/* ─── 大屏总布局 ───────────────────────────────────────────────────────────── */
.bigscreen-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: 60px 1fr;
  height: 100vh; width: 100vw;
  overflow: hidden;
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 25%, #f0f9ff 60%, #fdf4ff 100%);
}

.topbar {
  grid-column: 1/-1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(5,150,105,0.08);
}
.topbar-title { font-size: 18px; font-weight: 800; color: #065f46; letter-spacing: 1px; }
.topbar-info  { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }

#mainStage {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
}

.sidebar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.sidebar-section h4 {
  font-size: 11px; letter-spacing: 2px; color: var(--text-muted);
  margin-bottom: 10px; text-transform: uppercase; font-weight: 700;
}

/* ─── 排行榜 ───────────────────────────────────────────────────────────────── */
.leaderboard { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.leaderboard-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(5,150,105,0.05);
  border: 1px solid transparent;
  transition: all .3s ease;
}
.leaderboard-item.rank-1 { background: rgba(217,119,6,0.08); border-color: rgba(217,119,6,0.2); }
.leaderboard-item.rank-2 { background: rgba(107,114,128,0.08); }
.leaderboard-item.rank-3 { background: rgba(180,83,9,0.08); }

.rank-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  background: rgba(5,150,105,0.1); color: var(--primary);
}
.rank-1 .rank-num { background: #d97706; color: #fff; }
.rank-2 .rank-num { background: #9ca3af; color: #fff; }
.rank-3 .rank-num { background: #b45309; color: #fff; }
.lb-name  { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.lb-score { font-size: 14px; font-weight: 800; color: var(--primary); }

/* ─── 等待覆盖层（大屏） ───────────────────────────────────────────────────── */
#waitOverlay {
  position: absolute; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; text-align: center; padding: 32px;
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 40%, #f0f9ff 100%);
}
.room-id-display {
  font-size: 40px; font-weight: 900; letter-spacing: 10px; color: #065f46;
}
.player-join-list {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 500px;
}
.join-chip {
  padding: 5px 14px; border-radius: 20px;
  background: rgba(5,150,105,0.1);
  border: 1px solid rgba(5,150,105,0.25);
  font-size: 12px; color: #065f46; font-weight: 600;
  animation: fadeInUp .3s ease;
}
.activity-picker {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 500px;
}
.activity-pick-btn {
  padding: 12px 22px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.9);
  font-size: 14px; font-weight: 700; color: #065f46;
  transition: all .2s; box-shadow: var(--shadow);
}
.activity-pick-btn:hover {
  border-color: var(--primary);
  background: rgba(5,150,105,0.08);
  transform: translateY(-2px);
}

/* ─── 广场舞场景 ───────────────────────────────────────────────────────────── */
#dancePets {
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center;
  gap: 20px; padding: 20px; height: 100%;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}
.dance-sprite { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dance-sprite img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(5,150,105,0.3); }
.dance-sprite.tier-2 img { border-color: #10b981; box-shadow: 0 0 12px rgba(16,185,129,0.4); }
.dance-sprite.tier-3 img { border-color: #d97706; box-shadow: 0 0 18px rgba(217,119,6,0.5), 0 0 30px rgba(16,185,129,0.3); animation: glowPulse 1.5s ease infinite; }
.dance-sprite .sname  { font-size: 10px; color: var(--text-muted); }
.dance-sprite .s-score { font-size: 12px; font-weight: 800; color: var(--primary); }
.dance-sprite.dancing-1 img { animation: dance1 0.47s ease infinite; }
.dance-sprite.dancing-2 img { animation: dance2 0.47s ease infinite; }
.dance-sprite.dancing-3 img { animation: dance3 0.47s ease infinite; }

/* ─── 运动会场景 ───────────────────────────────────────────────────────────── */
#sportsTrack {
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px 40px; gap: 10px; height: 100%;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}
.race-lane-row {
  display: flex; align-items: center; gap: 12px;
  height: 64px; border-radius: 12px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(5,150,105,0.07);
}
.lane-num { width: 28px; text-align: center; font-size: 12px; color: var(--text-muted); flex-shrink: 0; margin-left: 10px; }
.lane-body { flex: 1; position: relative; height: 100%; }
.lane-runner { position: absolute; top: 50%; left: 0%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; transition: left .3s ease; }
.lane-runner img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(5,150,105,0.3); }
.lane-runner .r-name { font-size: 11px; color: var(--text); white-space: nowrap; }
.finish-line { position: absolute; right: 4px; top: 0; bottom: 0; width: 2px; background: rgba(217,119,6,0.5); }
.finish-flag { position: absolute; right: 6px; top: 4px; font-size: 16px; }

/* ─── T台走秀场景 ─────────────────────────────────────────────────────────── */
#fashionStage {
  height: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f5f3ff 0%, #fdf4ff 50%, #ecfdf5 100%);
}
.catwalk-bg {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 140px; height: 75%;
  background: linear-gradient(0deg, rgba(124,58,237,0.08), transparent);
  border-left: 1px solid rgba(124,58,237,0.15);
  border-right: 1px solid rgba(124,58,237,0.15);
}
.runway-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #7c3aed, #d97706, #059669, transparent);
  box-shadow: 0 0 16px rgba(124,58,237,0.4);
}
.spotlight {
  position: absolute; top: -10%; width: 50%; left: 25%; height: 110%;
  background: radial-gradient(ellipse 50% 90% at 50% 0%, rgba(217,119,6,0.06), transparent);
  animation: spotlightSweep 4s ease-in-out infinite alternate;
  pointer-events: none;
}
.spotlight.locked { animation: none; left: 50%; transform: translateX(-50%); }
.center-pet { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 5; }
.center-pet img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #7c3aed; box-shadow: 0 0 24px rgba(124,58,237,0.3), 0 0 48px rgba(217,119,6,0.15); object-fit: cover; }
.center-pet.spinning img { animation: spin 2s linear infinite; }
.center-pet h2 { font-size: 22px; font-weight: 800; color: #065f46; }
.center-pet .rarity { font-size: 13px; color: var(--primary); }
.outfit-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.outfit-tag { padding: 3px 10px; border-radius: 12px; font-size: 11px; background: rgba(124,58,237,0.08); color: #7c3aed; border: 1px solid rgba(124,58,237,0.15); }

/* ─── 结算覆盖层 ───────────────────────────────────────────────────────────── */
#resultOverlay {
  position: absolute; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center;
  background: rgba(236,253,245,0.96); backdrop-filter: blur(12px);
}
.podium { display: flex; align-items: flex-end; gap: 12px; justify-content: center; }
.podium-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.podium-img { border-radius: 50%; border: 3px solid rgba(5,150,105,0.3); object-fit: cover; }
.podium-block { border-radius: 10px 10px 0 0; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; }
.podium-name  { font-size: 13px; font-weight: 700; color: #065f46; }
.podium-score { font-size: 12px; color: var(--text-muted); }
.rank1 .podium-block { width: 90px; height: 120px; background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; }
.rank1 .podium-img   { width: 70px; height: 70px; border-color: #d97706; }
.rank2 .podium-block { width: 80px; height: 90px; background: linear-gradient(135deg, #9ca3af, #d1d5db); color: #fff; }
.rank2 .podium-img   { width: 58px; height: 58px; }
.rank3 .podium-block { width: 80px; height: 70px; background: linear-gradient(135deg, #b45309, #d97706); color: #fff; }
.rank3 .podium-img   { width: 58px; height: 58px; }

/* ─── 手机端布局 ───────────────────────────────────────────────────────────── */
.phone-layout { height: 100vh; display: flex; flex-direction: column; background: linear-gradient(160deg, #ecfdf5, #f0f9ff); }

.pet-info-bar {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(5,150,105,0.08);
}
.pet-info-bar .pet-img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(5,150,105,0.25); object-fit: cover; }
.pet-info-bar .meta h3 { font-size: 14px; font-weight: 700; color: #065f46; }
.pet-info-bar .meta p  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.pet-info-bar .score-tag { font-size: 20px; font-weight: 900; color: var(--primary); }

.activity-status {
  padding: 8px 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(5,150,105,0.1);
}
.activity-label { font-weight: 700; font-size: 14px; color: #065f46; }
.combo-badge {
  background: rgba(217,119,6,0.1); border: 1px solid rgba(217,119,6,0.3);
  color: #d97706; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 800;
}

.main-zone { flex: 1; display: flex; flex-direction: column; padding: 12px 16px; gap: 12px; overflow: hidden; }

/* ─── 节奏条 ───────────────────────────────────────────────────────────────── */
.rhythm-bar { height: 6px; background: rgba(5,150,105,0.12); border-radius: 3px; overflow: hidden; }
.rhythm-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-lt)); transition: width .05s linear; }
.beat-dots { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.beat-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(5,150,105,0.15); transition: all .1s; }
.beat-dot.active { background: var(--primary); box-shadow: 0 0 6px var(--primary); transform: scale(1.3); }
.beat-dot.hit    { background: var(--primary-lt); }
.beat-dot.miss   { background: #ef4444; }

/* ─── 进度条 ───────────────────────────────────────────────────────────────── */
.progress-track { background: rgba(5,150,105,0.1); border-radius: 8px; height: 20px; overflow: hidden; }
.progress-runner { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--primary), var(--primary-lt)); transition: width .3s ease; min-width: 20px; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-size: 10px; }

/* ─── T台手机展示区 ────────────────────────────────────────────────────────── */
.fashion-display {
  flex: 1; border-radius: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow);
}
.fashion-display .stage-name { font-size: 15px; font-weight: 700; color: #065f46; }
.fashion-display .stage-img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #7c3aed; box-shadow: 0 0 20px rgba(124,58,237,0.25); object-fit: cover; animation: bounce 1.5s ease infinite; }

.vote-list { width: 100%; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.vote-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.8); border: 1px solid var(--border); cursor: pointer; transition: all .2s; }
.vote-item:hover, .vote-item.voted { background: rgba(5,150,105,0.08); border-color: var(--primary); }
.vote-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.vote-item .vname  { flex: 1; font-size: 13px; color: var(--text); }
.vote-item .vcount { font-size: 12px; color: var(--primary); font-weight: 700; }

/* ─── 操作按钮 ─────────────────────────────────────────────────────────────── */
.action-area { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-btn {
  aspect-ratio: 1 / 0.8;
  border-radius: 18px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #fff;
  cursor: pointer; border: none;
  transition: all .15s ease;
  user-select: none; -webkit-tap-highlight-color: transparent;
  position: relative; overflow: hidden;
}
.action-btn:active { transform: scale(0.93); }
.action-btn .btn-icon { font-size: 30px; }

.action-btn.dance-follow  { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 4px 16px rgba(5,150,105,0.4); }
.action-btn.dance-special { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 4px 16px rgba(217,119,6,0.4); }
.action-btn.sport-boost   { background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 4px 16px rgba(220,38,38,0.4); }
.action-btn.sport-jump    { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 4px 16px rgba(5,150,105,0.4); }
.action-btn.fashion-pose  { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 4px 16px rgba(124,58,237,0.4); }
.action-btn.fashion-vote  { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 4px 16px rgba(37,99,235,0.4); }

/* ─── 等待/登录屏（手机） ─────────────────────────────────────────────────── */
#waitScreen {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 20px; text-align: center;
  padding: 24px;
  background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 30%, #f0f9ff 70%, #fdf4ff 100%);
}

/* ─── 结算屏（手机） ──────────────────────────────────────────────────────── */
#resultScreen {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; text-align: center;
  padding: 24px;
  background: linear-gradient(160deg, #ecfdf5, #f0f9ff);
}
.reward-item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,0.9); border: 1px solid var(--border); font-size: 14px; width: 100%; max-width: 280px; box-shadow: var(--shadow); }
.reward-icon { font-size: 22px; }
.reward-text { flex: 1; text-align: left; color: var(--text); }
.reward-val  { font-weight: 800; color: var(--primary); }

/* ─── Toast / 精准度提示 ───────────────────────────────────────────────────── */
.accuracy-toast {
  position: fixed; top: 30%; left: 50%;
  transform: translateX(-50%);
  font-size: 26px; font-weight: 900;
  pointer-events: none; z-index: 999;
  animation: toastFade 0.8s ease forwards;
}
.accuracy-toast.perfect { color: #d97706; text-shadow: 0 0 16px rgba(217,119,6,0.5); }
.accuracy-toast.good    { color: var(--primary); text-shadow: 0 0 16px rgba(5,150,105,0.5); }
.accuracy-toast.ok      { color: #2563eb; }
.accuracy-toast.miss    { color: #ef4444; }

/* ─── 彩带 Canvas ─────────────────────────────────────────────────────────── */
.confetti-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 20; }

/* ─── 活动选择弹窗 ─────────────────────────────────────────────────────────── */
#activityPickerModal {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(236,253,245,0.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}

/* ─── 动画 ─────────────────────────────────────────────────────────────────── */
@keyframes toastFade {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.2); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-40px) scale(1); }
}
@keyframes pulse    { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes bounce   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin     { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn  { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }

@keyframes dance1 { 0%,100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-8px); } }
@keyframes dance2 { 0%,100% { transform: scaleX(1) translateY(0); } 25% { transform: scaleX(1.12) translateY(-10px); } 75% { transform: scaleX(0.88) translateY(-4px); } }
@keyframes dance3 { 0% { transform: rotate(0deg) scale(1); } 25% { transform: rotate(-15deg) scale(1.1) translateY(-12px); } 50% { transform: rotate(15deg) scale(1.2) translateY(-18px); } 75% { transform: rotate(-8deg) scale(1.1) translateY(-10px); } 100% { transform: rotate(0deg) scale(1); } }

@keyframes glowPulse {
  0%,100% { filter: drop-shadow(0 0 4px rgba(5,150,105,0.4)); }
  50%     { filter: drop-shadow(0 0 16px rgba(217,119,6,0.7)); }
}
@keyframes spotlightSweep { 0% { left: -20%; } 100% { left: 120%; } }

/* ─── 响应式 ───────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .activity-grid { grid-template-columns: 1fr 1fr 1fr; max-width: 760px; }
}
