* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #000;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* 微信引导页 */
.wechat-guide {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wechat-guide[hidden] {
  display: none;
}

.wechat-guide-box {
  background: linear-gradient(160deg, #1a1a2e, #16213e);
  border: 1px solid rgba(255, 45, 85, 0.3);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  position: relative;
}

.wechat-guide-arrow {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 32px;
  color: #ff2d55;
  animation: wechat-arrow-bounce 1s ease-in-out infinite;
}

@keyframes wechat-arrow-bounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -4px); }
}

.wechat-guide-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.wechat-guide-box h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

.wechat-guide-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.wechat-guide-desc strong {
  color: #ff2d55;
}

.wechat-guide-steps {
  text-align: left;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 2;
  padding-left: 24px;
  margin-bottom: 24px;
}

.wechat-guide-steps .highlight {
  color: #ffd700;
  font-weight: 700;
}

.btn-copy-link {
  width: 100%;
  background: linear-gradient(135deg, #ff2d55, #ff6b35);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-copy-link:active {
  transform: scale(0.98);
}

.wechat-guide-url {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  margin-top: 12px;
  word-break: break-all;
  line-height: 1.4;
}

.copy-success {
  color: #00ff88 !important;
  font-size: 13px !important;
  margin-top: 12px;
}

.live-container {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #111;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 500px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  }
  .live-container {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    height: 90vh;
    max-height: 900px;
  }
}

/* 视频背景 */
.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-placeholder,
.camera-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2d1b4e 0%, #1a1a3e 30%, #0d2137 60%, #1a0a2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  z-index: 50;
  transition: opacity 0.4s;
}

.camera-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

.camera-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  z-index: 0;
}

.video-bg.camera-active .camera-video {
  z-index: 3;
}

.video-bg.camera-active .camera-placeholder {
  display: none;
}

.camera-video.mirror {
  transform: scaleX(-1);
}

.btn-start-camera,
.btn-flip-camera,
.btn-copy-link {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  pointer-events: auto;
}

.camera-placeholder {
  pointer-events: auto;
}

.btn-start-camera {
  margin-top: 20px;
  background: linear-gradient(135deg, #ff2d55, #ff6b35);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 14px 32px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 45, 85, 0.4);
  transition: transform 0.15s;
  position: relative;
  z-index: 51;
}

.btn-start-camera:hover {
  transform: scale(1.05);
}

.btn-start-camera:active {
  transform: scale(0.98);
}

.camera-tip {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  padding: 0 28px;
  line-height: 1.6;
  max-width: 320px;
  position: relative;
  z-index: 51;
}

.camera-debug {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.7;
  max-width: 300px;
  text-align: left;
  position: relative;
  z-index: 51;
}

.btn-flip-camera {
  position: absolute;
  top: 100px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
}

.camera-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 45, 85, 0.15) 0%, transparent 60%);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 45, 85, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.stream-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-align: center;
  padding: 0 20px;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 25%,
    transparent 55%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
}

/* 顶部栏 */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px 0;
}

.streamer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 4px 12px 4px 4px;
}

.avatar-wrap {
  position: relative;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ff2d55;
  object-fit: cover;
  background: linear-gradient(135deg, #ffd5dc, #c0aede);
}

.level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, #ff6b35, #ff2d55);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
}

.streamer-meta {
  display: flex;
  flex-direction: column;
}

.streamer-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamer-id {
  color: rgba(255, 255, 255, 0.6);
  font-size: 9px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 全站礼物飘屏 */
.global-gift-banner {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
  height: 40px;
}

.global-banner-item {
  position: absolute;
  top: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(255, 45, 85, 0.95), rgba(255, 100, 50, 0.85), rgba(255, 45, 85, 0.95));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.5);
  animation: banner-scroll 5s linear forwards;
}

@keyframes banner-scroll {
  0% {
    transform: translateX(100vw);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateX(-120%);
    opacity: 0;
  }
}

.global-banner-icon {
  font-size: 22px;
}

.global-banner-highlight {
  color: #ffd700;
  font-weight: 800;
}

.live-status-tag {
  background: rgba(255, 45, 85, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: 4px;
  flex-shrink: 0;
}

.streamer-bar {
  justify-content: center;
}

.streamer-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 10px 16px;
}

.stat-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
}

.stat-item span {
  color: #fff;
}

.top-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-count {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 16px;
}

.viewer-icon {
  font-size: 12px;
}

.btn-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 小时榜 */
.hour-rank {
  position: absolute;
  top: 62px;
  left: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(255, 180, 0, 0.85), rgba(255, 100, 0, 0.7));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  animation: rank-shine 3s infinite;
}

.rank-gap {
  font-size: 9px;
  opacity: 0.85;
}

@keyframes rank-shine {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 180, 0, 0.4); }
  50% { box-shadow: 0 0 16px rgba(255, 180, 0, 0.8); }
}

/* 评论区域 */
.comment-area {
  position: absolute;
  bottom: 80px;
  left: 12px;
  width: 72%;
  max-height: 45%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%);
}

.comment-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 5px 10px;
  max-width: 100%;
  animation: comment-in 0.3s ease-out;
  flex-shrink: 0;
}

@keyframes comment-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.comment-level {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.level-high { background: linear-gradient(135deg, #ff6b35, #ff2d55); color: #fff; }
.level-mid { background: #6c5ce7; color: #fff; }
.level-low { background: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8); }

.comment-badge {
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.badge-fan { background: #ff2d55; color: #fff; }
.badge-vip { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; font-weight: 700; }
.badge-guard { background: linear-gradient(135deg, #a855f7, #6366f1); color: #fff; }

.comment-user {
  color: rgba(255, 200, 200, 0.95);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.comment-text {
  color: #fff;
  font-size: 12px;
  word-break: break-all;
}

.comment-gift-tag {
  color: #ffd700;
  font-weight: 600;
}

/* 礼物飘屏 */
.gift-float-area {
  position: absolute;
  bottom: 130px;
  left: 12px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.gift-float {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(255, 45, 85, 0.85), rgba(255, 45, 85, 0.3));
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  animation: gift-slide-in 0.4s ease-out;
  max-width: 260px;
}

@keyframes gift-slide-in {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.gift-float-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.gift-float-info {
  flex: 1;
  min-width: 0;
}

.gift-float-name {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-float-action {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
}

.gift-float-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.gift-float-combo {
  color: #ffd700;
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  animation: combo-pulse 0.3s ease-out;
}

@keyframes combo-pulse {
  0% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* 进场特效 */
.enter-area {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  z-index: 7;
  pointer-events: none;
}

.enter-effect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 12px;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  animation: enter-slide 3s ease-out forwards;
  white-space: nowrap;
}

@keyframes enter-slide {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  10% {
    opacity: 1;
    transform: translateX(0);
  }
  80% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(50px);
  }
}

.enter-vip {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.9), rgba(255, 140, 0, 0.6));
  color: #000;
}

.enter-guard {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.9), rgba(99, 102, 241, 0.6));
  color: #fff;
}

.enter-normal {
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

/* 贡献榜 */
.gift-rank-panel {
  position: absolute;
  top: 100px;
  right: 8px;
  z-index: 8;
  width: 80px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 6px;
}

.panel-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  text-align: center;
  margin-bottom: 4px;
}

#giftRankList {
  list-style: none;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  font-size: 9px;
  color: #fff;
}

.rank-num {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #000; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #808080); color: #000; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }

.rank-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.rank-value {
  color: #ffd700;
  font-weight: 600;
  flex-shrink: 0;
}

/* 大额礼物特效 */
.big-gift-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.big-gift-effect {
  text-align: center;
  animation: big-gift-show 3s ease-out forwards;
}

@keyframes big-gift-show {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  15% {
    opacity: 1;
    transform: scale(1.1);
  }
  25% {
    transform: scale(1);
  }
  75% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.big-gift-icon {
  font-size: 80px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
  animation: big-gift-bounce 0.6s ease infinite alternate;
}

@keyframes big-gift-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.big-gift-text {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.big-gift-user {
  color: #ffd700;
  font-size: 14px;
  margin-top: 4px;
}

/* 底部栏 */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px calc(20px + env(safe-area-inset-bottom));
  gap: 8px;
}

.bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.comment-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  outline: none;
  min-width: 0;
}

.quick-gifts {
  display: flex;
  gap: 4px;
}

.gift-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s;
}

.gift-btn:active {
  transform: scale(1.2);
}

.bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.like-count-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.btn-like {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.3);
  border: 1px solid rgba(255, 45, 85, 0.5);
  font-size: 20px;
  cursor: pointer;
  animation: like-heart 1.5s ease-in-out infinite;
}

@keyframes like-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

#likeCount {
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

.btn-gift-main,
.btn-share {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* 点赞飘心 */
.like-rain {
  position: absolute;
  bottom: 60px;
  right: 20px;
  width: 60px;
  height: 200px;
  pointer-events: none;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: 0;
  font-size: 20px;
  animation: float-up 2s ease-out forwards;
  opacity: 0;
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-180px) scale(0.5) rotate(20deg);
  }
}

/* 数据 ticker */
.data-ticker {
  position: absolute;
  top: 62px;
  right: 12px;
  z-index: 9;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 500px) {
  .data-ticker {
    display: flex;
  }
}

.divider {
  display: none;
}

/* ========== 全屏礼物特效 ========== */

.gift-effects-layer {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  overflow: hidden;
}

.gift-fx {
  position: absolute;
  inset: 0;
}

/* 火箭 */
.fx-rocket {
  position: absolute;
  left: -20%;
  bottom: 15%;
  animation: fx-rocket-fly 2.8s ease-in forwards;
}

@keyframes fx-rocket-fly {
  0% { transform: translate(0, 0) rotate(-45deg) scale(0.6); opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(140vw, -120vh) rotate(-45deg) scale(1.3); opacity: 0; }
}

.fx-rocket-body {
  font-size: 64px;
  filter: drop-shadow(0 0 12px rgba(255, 100, 0, 0.9));
  position: relative;
  z-index: 2;
}

.fx-rocket-flame {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  display: flex;
  gap: 2px;
}

.fx-rocket-flame span {
  display: block;
  width: 8px;
  border-radius: 50%;
  animation: fx-flame-flicker 0.15s infinite alternate;
}

.fx-rocket-flame span:nth-child(1) { height: 28px; background: linear-gradient(to bottom, #fff700, #ff6600); }
.fx-rocket-flame span:nth-child(2) { height: 40px; background: linear-gradient(to bottom, #ffcc00, #ff3300); animation-delay: 0.05s; }
.fx-rocket-flame span:nth-child(3) { height: 24px; background: linear-gradient(to bottom, #fff700, #ff6600); animation-delay: 0.1s; }

@keyframes fx-flame-flicker {
  from { transform: scaleY(1); opacity: 0.9; }
  to { transform: scaleY(1.3); opacity: 1; }
}

.fx-rocket-smoke {
  position: absolute;
  bottom: -20px;
  left: 20%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(255, 150, 50, 0.5) 0%, transparent 70%);
  animation: fx-smoke-puff 0.4s ease-out infinite;
}

@keyframes fx-smoke-puff {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.fx-rocket-tag {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(255, 80, 0, 0.9), rgba(255, 30, 80, 0.85));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 100, 0, 0.6);
  animation: fx-tag-pop 2.8s ease-out forwards;
  z-index: 5;
}

.fx-tag-low { top: 55%; }
.fx-tag-top { top: 8%; }

@keyframes fx-tag-pop {
  0%, 15% { opacity: 0; transform: translateX(-50%) scale(0.5); }
  25%, 75% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.1); }
}

/* 天马 */
.fx-pegasus {
  position: absolute;
  top: 28%;
  left: -40%;
  animation: fx-pegasus-fly 3.2s ease-in-out forwards;
}

@keyframes fx-pegasus-fly {
  0% { transform: translateX(0) scale(0.7); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(180vw) scale(1.1); opacity: 0; }
}

.fx-pegasus-body {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.fx-pegasus-horse {
  font-size: 72px;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.9));
  animation: fx-pegasus-gallop 0.3s ease-in-out infinite alternate;
}

@keyframes fx-pegasus-gallop {
  from { transform: translateY(0) rotate(-3deg); }
  to { transform: translateY(-8px) rotate(3deg); }
}

.fx-pegasus-wing {
  font-size: 28px;
  animation: fx-wing-flap 0.25s ease-in-out infinite alternate;
}

.fx-pegasus-wing.left { animation-delay: 0.1s; }

@keyframes fx-wing-flap {
  from { transform: scale(1) rotate(-10deg); opacity: 0.7; }
  to { transform: scale(1.3) rotate(10deg); opacity: 1; }
}

.fx-pegasus-trail {
  position: absolute;
  inset: -20px -40px;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.25) 0%, transparent 60%);
  animation: fx-trail-pulse 0.5s ease-in-out infinite;
}

@keyframes fx-trail-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.fx-pegasus-stars span {
  position: absolute;
  font-size: 14px;
  animation: fx-star-float 1.2s ease-out infinite;
}

.fx-pegasus-stars span:nth-child(1) { top: 10%; left: 20%; }
.fx-pegasus-stars span:nth-child(2) { top: 60%; left: 50%; animation-delay: 0.3s; }
.fx-pegasus-stars span:nth-child(3) { top: 30%; left: 80%; animation-delay: 0.6s; }
.fx-pegasus-stars span:nth-child(4) { top: 70%; left: 30%; animation-delay: 0.2s; }
.fx-pegasus-stars span:nth-child(5) { top: 20%; left: 65%; animation-delay: 0.5s; }

@keyframes fx-star-float {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  30% { opacity: 1; transform: scale(1); }
  100% { transform: translateY(-30px) scale(0.5); opacity: 0; }
}

.fx-pegasus-banner {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.fx-pegasus-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffd700, #fff5cc, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
  letter-spacing: 4px;
}

.fx-pegasus-user {
  color: #fff;
  font-size: 13px;
  margin-top: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* 跑车 */
.fx-car {
  position: absolute;
  bottom: 18%;
  left: -30%;
  animation: fx-car-drive 2.5s ease-in forwards;
}

@keyframes fx-car-drive {
  0% { transform: translateX(0) scale(0.8); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(160vw) scale(1); opacity: 0; }
}

.fx-car-body {
  font-size: 56px;
  filter: drop-shadow(0 0 10px rgba(255, 50, 50, 0.8));
}

.fx-car-speed {
  position: absolute;
  bottom: 8px;
  left: -30px;
  display: flex;
  gap: 8px;
}

.fx-car-speed span {
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
  border-radius: 2px;
  animation: fx-speed-line 0.2s linear infinite;
}

@keyframes fx-speed-line {
  0% { transform: translateX(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(-20px); opacity: 0; }
}

/* 私人飞机 */
.fx-plane {
  position: absolute;
  top: 12%;
  left: -25%;
  animation: fx-plane-fly 3s ease-in-out forwards;
}

@keyframes fx-plane-fly {
  0% { transform: translate(0, 20px) rotate(-5deg); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(70vw, -10px) rotate(2deg); }
  100% { transform: translate(150vw, 15px) rotate(-3deg); opacity: 0; }
}

.fx-plane-body {
  font-size: 60px;
  filter: drop-shadow(0 0 12px rgba(100, 200, 255, 0.8));
}

.fx-plane-cloud {
  position: absolute;
  font-size: 24px;
  opacity: 0.6;
}

/* 嘉年华烟花 */
.fx-carnival {
  position: absolute;
  inset: 0;
}

.fx-firework {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: fx-firework-burst 1.8s ease-out forwards;
}

@keyframes fx-firework-burst {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 currentColor;
  }
  40% {
    opacity: 1;
    box-shadow:
      30px 0 0 2px currentColor,
      -30px 0 0 2px currentColor,
      0 30px 0 2px currentColor,
      0 -30px 0 2px currentColor,
      22px 22px 0 1px currentColor,
      -22px 22px 0 1px currentColor,
      22px -22px 0 1px currentColor,
      -22px -22px 0 1px currentColor;
  }
  100% {
    transform: scale(0.5);
    opacity: 0;
    box-shadow:
      50px 0 0 0 transparent,
      -50px 0 0 0 transparent,
      0 50px 0 0 transparent,
      0 -50px 0 0 transparent;
  }
}

/* 城堡 */
.fx-castle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: fx-castle-rise 3s ease-out forwards;
}

@keyframes fx-castle-rise {
  0% { transform: translate(-50%, -30%) scale(0.3); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0; }
}

.fx-castle-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  animation: fx-trail-pulse 0.8s ease-in-out infinite;
}

.fx-castle-body {
  font-size: 80px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
  position: relative;
  z-index: 1;
}

.fx-castle-user {
  color: #ffd700;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

