/* 礼物 / 魔法表情 / 坐骑 — 全屏特效层 */
#gift-fx-root {
  position: fixed;
  inset: 0;
  z-index: 198;
  pointer-events: none;
  overflow: hidden;
}

#gift-fx-root:empty {
  display: none;
}

.gift-fx-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-fx-card {
  text-align: center;
  animation: gift-fx-card-in 2.8s ease-out forwards;
}

.gift-fx-card__icon {
  font-size: clamp(72px, 18vw, 140px);
  line-height: 1;
  filter: drop-shadow(0 0 24px rgba(255, 209, 102, 0.9));
  animation: gift-fx-icon-pulse 1.2s ease-in-out infinite alternate;
}

.gift-fx-card__who {
  margin-top: 12px;
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.gift-fx-card__sub {
  margin-top: 6px;
  font-size: 14px;
  color: #ffd166;
  letter-spacing: 0.08em;
}

.gift-fx-card__price {
  margin-top: 8px;
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 209, 102, 0.55);
  color: #ffe8c8;
  font-size: 13px;
  font-weight: 700;
}

/* 飞行轨迹 */
.gift-fx-fly .gift-fx-card__icon {
  animation: gift-fx-fly-across 2.4s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
}

/* 魔法表情爆发 */
.gift-fx-emoji .gift-fx-card__icon {
  animation: gift-fx-emoji-pop 1.8s ease-out forwards;
}

.gift-fx-emoji::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40vmin;
  height: 40vmin;
  margin: -20vmin 0 0 -20vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 111, 0.35), transparent 70%);
  animation: gift-fx-ring 1.6s ease-out forwards;
}

/* 坐骑 / 豪礼 */
.gift-fx-legend .gift-fx-card {
  padding: 24px 32px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(80, 10, 60, 0.92), rgba(20, 5, 30, 0.95));
  border: 2px solid rgba(255, 209, 102, 0.65);
  box-shadow: 0 0 60px rgba(255, 45, 111, 0.5), 0 0 80px rgba(255, 209, 102, 0.35);
}

.gift-fx-legend .gift-fx-card__icon {
  animation: gift-fx-mount-spin 2.8s ease-in-out forwards;
}

.gift-fx-rays {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 209, 102, 0.12),
    transparent,
    rgba(255, 45, 111, 0.1),
    transparent
  );
  animation: gift-fx-rays-spin 4s linear infinite;
}

.gift-fx-particle {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  animation: gift-fx-particle 1.6s ease-out forwards;
}

@keyframes gift-fx-card-in {
  0% { opacity: 0; transform: scale(0.5) translateY(30px); }
  12% { opacity: 1; transform: scale(1.05); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.02) translateY(-12px); }
}

@keyframes gift-fx-icon-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

@keyframes gift-fx-fly-across {
  0% { transform: translate(-120vw, 20vh) rotate(-25deg) scale(0.4); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translate(0, 0) rotate(8deg) scale(1.2); }
  85% { opacity: 1; }
  100% { transform: translate(120vw, -15vh) rotate(20deg) scale(0.8); opacity: 0; }
}

@keyframes gift-fx-emoji-pop {
  0% { transform: scale(0); opacity: 0; }
  25% { transform: scale(1.35); opacity: 1; }
  70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes gift-fx-ring {
  0% { transform: scale(0.2); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes gift-fx-mount-spin {
  0% { transform: scale(0.3) rotate(-30deg); opacity: 0; }
  20% { opacity: 1; transform: scale(1.15) rotate(5deg); }
  80% { transform: scale(1) rotate(0deg); opacity: 1; }
  100% { transform: scale(1.08) rotate(8deg); opacity: 0; }
}

@keyframes gift-fx-rays-spin {
  to { transform: rotate(360deg); }
}

@keyframes gift-fx-particle {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2); }
}

/* 精致确认弹窗 */
.vchat-gift-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vchat-gift-modal[hidden] {
  display: none !important;
}

.vchat-gift-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 20, 0.72);
  backdrop-filter: blur(6px);
  animation: vgm-fade-in 0.2s ease;
}

.vchat-gift-modal__card {
  position: relative;
  width: min(100%, 340px);
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: linear-gradient(165deg, #4a1548 0%, #2a0828 50%, #1a0518 100%);
  border: 1px solid rgba(255, 209, 102, 0.45);
  box-shadow: 0 0 40px rgba(255, 45, 111, 0.35), var(--glow-gold, 0 0 20px rgba(255, 209, 102, 0.3));
  animation: vgm-card-in 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.vchat-gift-modal__icon {
  font-size: 52px;
  text-align: center;
  line-height: 1;
  margin-bottom: 8px;
  animation: gift-fx-icon-pulse 0.8s ease-in-out infinite alternate;
}
.vchat-gift-modal__icon .gi-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.vchat-gift-modal__title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.vchat-gift-modal__desc {
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  color: #f0c4e8;
  line-height: 1.5;
}

.vchat-gift-modal__price {
  text-align: center;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 800;
  color: #ffd166;
}

.vchat-gift-modal__price small {
  font-size: 13px;
  font-weight: 600;
  color: #f0c4e8;
}

.vchat-gift-modal__actions {
  display: flex;
  gap: 10px;
}

.vchat-gift-modal__btn {
  flex: 1;
  padding: 11px 12px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.vchat-gift-modal__btn--cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #f0c4e8;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.vchat-gift-modal__btn--ok {
  background: linear-gradient(135deg, #ff6b9d, #ff2d6f);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 45, 111, 0.45);
}

.vchat-gift-modal__tag {
  display: block;
  text-align: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: #ffd166;
  letter-spacing: 0.2em;
}

@keyframes vgm-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes vgm-card-in {
  from { opacity: 0; transform: scale(0.85) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* —— 坐骑购买弹窗：更张扬的呼吸 / 光晕 / 闪粉 —— */
.vchat-gift-modal--mount .vchat-gift-modal__backdrop {
  background: radial-gradient(ellipse at center, rgba(80, 30, 0, 0.55) 0%, rgba(8, 2, 12, 0.82) 70%);
}
.vchat-gift-modal--mount .vchat-gift-modal__card {
  overflow: hidden;
  border-color: rgba(255, 209, 102, 0.75);
  box-shadow:
    0 0 0 1px rgba(255, 180, 40, 0.35) inset,
    0 0 48px rgba(255, 170, 40, 0.45),
    0 0 80px rgba(255, 60, 90, 0.25);
  animation: vgm-card-in 0.32s cubic-bezier(0.34, 1.45, 0.64, 1), vgm-mount-card-glow 1.6s ease-in-out infinite alternate;
}
.vchat-gift-modal--mount .vchat-gift-modal__tag {
  font-size: 12px;
  font-weight: 800;
  color: #ffe566;
  text-shadow: 0 0 12px rgba(255, 200, 60, 0.85);
  letter-spacing: 0.28em;
  animation: vgm-tag-blink 1.2s ease-in-out infinite;
}
.vchat-gift-modal__icon-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 4px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vchat-gift-modal--mount .vchat-gift-modal__icon {
  position: relative;
  z-index: 2;
  margin: 0;
  animation: vgm-mount-breathe 1.05s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255, 200, 80, 0.75));
}
.vchat-gift-modal--mount .vchat-gift-modal__icon .gi-img {
  width: 112px;
  height: 112px;
}
.vchat-gift-modal__aura {
  display: none;
}
.vchat-gift-modal__ring {
  display: none;
}
.vchat-gift-modal--mount .vchat-gift-modal__aura {
  display: block;
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 80, 0.55) 0%, rgba(255, 90, 40, 0.2) 45%, transparent 70%);
  animation: vgm-aura-pulse 1.1s ease-in-out infinite;
  z-index: 0;
}
.vchat-gift-modal--mount .vchat-gift-modal__ring {
  display: block;
  position: absolute;
  inset: 2%;
  border-radius: 50%;
  border: 2px solid rgba(255, 220, 120, 0.55);
  box-shadow: 0 0 18px rgba(255, 190, 60, 0.45);
  animation: vgm-ring-spin 4.5s linear infinite;
  z-index: 1;
  pointer-events: none;
}
.vchat-gift-modal--mount .vchat-gift-modal__ring::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  animation: vgm-ring-spin 7s linear infinite reverse;
}
.vchat-gift-modal__sparkles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.vchat-gift-modal--mount .vgm-spark {
  position: absolute;
  left: var(--x, 50%);
  top: 110%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffd166 40%, transparent 70%);
  box-shadow: 0 0 8px #ffd166;
  animation: vgm-spark-up calc(1.6s * var(--s, 1)) ease-in infinite;
  animation-delay: var(--d, 0s);
  opacity: 0;
}
.vchat-gift-modal--mount .vchat-gift-modal__title {
  font-size: 19px;
  background: linear-gradient(90deg, #fff6c8, #ffd166, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: vgm-title-shine 2.2s linear infinite;
  background-size: 200% 100%;
}
.vchat-gift-modal--mount .vchat-gift-modal__price {
  font-size: 26px;
  color: #ffe566;
  text-shadow: 0 0 16px rgba(255, 200, 40, 0.7);
  animation: vgm-price-pop 1.4s ease-in-out infinite;
}
.vchat-gift-modal__urge {
  margin: -6px 0 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffb4c8;
  letter-spacing: 0.04em;
}
.vchat-gift-modal--mount .vchat-gift-modal__urge {
  animation: vgm-urge-pulse 1.1s ease-in-out infinite;
}
.vchat-gift-modal--mount .vchat-gift-modal__btn--ok {
  background: linear-gradient(135deg, #ffd166 0%, #ff8a3d 45%, #ff2d6f 100%);
  color: #2a1000;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 22px rgba(255, 140, 40, 0.55);
  animation: vgm-ok-pulse 1.15s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.vchat-gift-modal--mount .vchat-gift-modal__btn--ok::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: vgm-ok-shine 1.8s ease-in-out infinite;
}
@keyframes vgm-mount-breathe {
  0%, 100% { transform: scale(0.92) translateY(2px); }
  50% { transform: scale(1.14) translateY(-4px); }
}
@keyframes vgm-aura-pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes vgm-ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes vgm-spark-up {
  0% { transform: translateY(0) scale(0.4); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-160px) scale(1); opacity: 0; }
}
@keyframes vgm-mount-card-glow {
  from { box-shadow: 0 0 36px rgba(255, 170, 40, 0.35), 0 0 60px rgba(255, 60, 90, 0.2); }
  to { box-shadow: 0 0 56px rgba(255, 200, 60, 0.6), 0 0 90px rgba(255, 80, 100, 0.35); }
}
@keyframes vgm-tag-blink {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes vgm-title-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes vgm-price-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes vgm-urge-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes vgm-ok-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes vgm-ok-shine {
  0% { left: -50%; }
  60%, 100% { left: 130%; }
}

/* 商城格子预览动画 */
.gift-cell--premium .gi {
  animation: gift-cell-float 2.4s ease-in-out infinite;
}

.gift-cell--premium:hover .gi,
.gift-cell--premium:focus .gi {
  animation: gift-cell-bounce 0.5s ease;
}

@keyframes gift-cell-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes gift-cell-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.room-gift-item .gi {
  animation: gift-cell-float 2.6s ease-in-out infinite;
}

.gift-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.gift-tab {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 120, 0.35);
  background: rgba(0, 0, 0, 0.2);
  color: #ccc;
  font-size: 11px;
  cursor: pointer;
}

.gift-tab.active {
  color: #fff;
  border-color: #ffd166;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.35), rgba(255, 45, 111, 0.25));
}

.gift-panel-hint {
  margin: 0;
  padding: 4px 10px 6px;
  font-size: 10px;
  color: #aaa;
  text-align: center;
}

.gift-cell--readonly {
  cursor: default;
  pointer-events: none;
}

.room-gift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px 0;
}

/* 礼物格子（主播端/客人端共用） */
.gift-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px 8px;
  border: 1px solid rgba(255, 200, 120, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffe8c8;
  font-size: 10px;
  min-height: 64px;
}

.gift-cell .gi {
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.gift-cell .gi .gi-img,
.gift-fx-card__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

/* 坐骑列表：与礼物格同列数，避免切 Tab 时网格错位 */
.gift-grid--mounts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
}
@media (min-width: 1024px) {
  .gift-grid--mounts {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
.gift-grid--emoji {
  align-content: start;
}
.gift-cell--mount {
  position: relative;
  min-height: 72px;
  padding: 6px 2px 8px;
  gap: 3px;
  overflow: hidden;
  contain: layout paint;
}
.gift-cell--mount .gi {
  font-size: 34px;
  min-height: 40px;
}
.gift-cell--mount .gi .gi-img {
  width: 42px;
  height: 42px;
  max-width: 100%;
}
.gift-cell--mount .gn {
  font-size: 11px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gift-cell--mount .gp {
  font-size: 10px;
}

.gift-cell .gp {
  color: #ffd166;
  font-weight: 700;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
}
.gift-cell .gp .vcoin-inline {
  gap: 2px;
  margin: 0;
}
.gift-cell .gp .vcoin-mark {
  width: 11px;
  height: 11px;
}
.gift-cell .gp .vcoin-mark::after {
  font-size: 6px;
}
.gift-cell .gp .vcoin-num {
  font-size: 10px;
  line-height: 1;
  color: #ffd166;
  text-shadow: none;
}
.gift-fx-card__price .vcoin-inline {
  justify-content: center;
}
.vchat-gift-modal__price .vcoin-inline {
  justify-content: center;
}
.vchat-gift-modal__price .vcoin-num {
  font-size: 22px;
}
.vchat-gift-modal__price .vcoin-mark--lg {
  width: 22px;
  height: 22px;
}

.gift-pk-badge {
  display: inline-block;
  margin-top: 1px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffe0b2;
  background: rgba(120, 80, 40, 0.55);
  border: 1px solid rgba(255, 200, 120, 0.35);
}

.gift-lucky-badge {
  display: inline-block;
  margin-top: 1px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.3;
  color: #d1fae5;
  background: rgba(16, 120, 70, 0.55);
  border: 1px solid rgba(110, 231, 183, 0.45);
}

.gift-cell .gn {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  color: #ffe8c8;
  line-height: 1.25;
  flex: 0 0 auto;
}

.gift-cell.vip {
  position: relative;
  border-color: rgba(255, 209, 102, 0.7);
}

/* VIP 角标不得再当 flex 子项，否则会挤掉名字行 */
.gift-cell.vip::after {
  content: "VIP";
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 2;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  color: #ffd166;
  pointer-events: none;
}

.gift-grid--premium {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
}

@media (min-width: 1024px) {
  .gift-grid--premium {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.gift-cell--premium {
  min-height: 72px;
  background: linear-gradient(165deg, rgba(255, 209, 102, 0.12), rgba(120, 30, 90, 0.35));
}

/* ========== 坐骑进场（MountQueue，z 低于礼物） ========== */
#mount-fx-root {
  position: fixed;
  inset: 0;
  z-index: 197;
  pointer-events: none;
  overflow: hidden;
}
#mount-fx-root:empty { display: none; }
.mount-fx-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6%;
}
.mount-fx-wrap {
  position: relative;
  width: min(96vw, 560px);
  max-height: min(72vh, 560px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translateX(130%) scale(0.4) rotate(-12deg);
}
.mount-fx-wrap.playing {
  animation: mount-fx-enter 2.5s cubic-bezier(0.14, 0.88, 0.22, 1) forwards;
}
.mount-fx-wrap.hold {
  opacity: 1;
  transform: none;
  filter: brightness(1.05) drop-shadow(0 0 18px rgba(255, 200, 80, 0.55));
}
.mount-fx-wrap.hold .mount-fx-img {
  animation: mount-fx-bob 1.5s ease-in-out infinite alternate;
}
.mount-fx-wrap.fadeout {
  animation: mount-fx-out 0.45s ease-in forwards;
}
@keyframes mount-fx-enter {
  0% { opacity: 0; transform: translateX(130%) scale(0.4) rotate(-12deg); filter: brightness(2); }
  55% { opacity: 1; transform: translateX(-6%) scale(1.1) rotate(-2deg); }
  100% { opacity: 1; transform: none; filter: brightness(1.05) drop-shadow(0 0 18px rgba(255, 200, 80, 0.55)); }
}
@keyframes mount-fx-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@keyframes mount-fx-out {
  to { opacity: 0; transform: translateX(-8%) scale(0.86); }
}
.mount-fx-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.6));
}
.mount-fx-aura {
  position: absolute;
  inset: 12%;
  border-radius: 40%;
  z-index: 1;
  opacity: 0.38;
  background: conic-gradient(from 0deg, #ff6b35, #ffd166, #4cc9f0, #b5179e, #ff6b35);
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: mount-fx-spin 3.2s linear infinite;
}
@keyframes mount-fx-spin { to { transform: rotate(360deg); } }
.mount-fx-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 52%;
  height: 16%;
  border-radius: 50%;
  z-index: 1;
  background: radial-gradient(ellipse, rgba(255, 220, 100, 0.7), transparent 70%);
  filter: blur(2px);
  opacity: 0.75;
}
.mount-fx-ring {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 2;
  border: 2px solid rgba(255, 209, 102, 0.9);
  opacity: 0;
  transform: translateX(-50%) scale(0.15);
}
.mount-fx-wrap.playing .mount-fx-ring {
  animation: mount-fx-ring 1.1s ease-out 0.8s forwards;
}
.mount-fx-ring.r2 {
  border-color: rgba(100, 220, 255, 0.85);
  animation-delay: 1s !important;
}
@keyframes mount-fx-ring {
  0% { opacity: 0; transform: translateX(-50%) scale(0.15); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) scale(2.2); }
}
.mount-fx-caption {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  z-index: 8;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, rgba(255, 100, 60, 0.85), rgba(180, 60, 255, 0.85));
  box-shadow: 0 0 16px rgba(255, 120, 80, 0.45);
}
.mount-fx-caption.hide { opacity: 0; transition: opacity 0.35s; }


.gift-cell--mount.equipped {
  outline: 1px solid rgba(255, 209, 102, 0.85);
}
.gift-mount-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffe9a8;
  z-index: 2;
}
.gift-mount-badge--on {
  background: rgba(255, 180, 40, 0.92);
  color: #1a1200;
  font-weight: 700;
}

/* ========== 坐骑商城格子：人民币三档 3D（独立于礼物 gift-cell--t*） ========== */
.gift-cell--mount {
  transform-style: preserve-3d;
}
.gift-cell--mount .gi .gi-img {
  will-change: transform, filter;
}

/* MT1 百元：轻 3D 呼吸 */
.gift-cell--mt1 .gi .gi-img,
.gift-cell--mt1 .gi {
  animation: mfx-shop-breathe 2.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(100, 200, 255, 0.4));
}
.gift-cell--mt1 {
  border-color: rgba(120, 200, 255, 0.45) !important;
  box-shadow: inset 0 0 0 1px rgba(120, 200, 255, 0.18);
}

/* MT2 千元：抬升 + 青金掠光 */
.gift-cell--mt2 {
  border-color: rgba(80, 220, 200, 0.7) !important;
  background: linear-gradient(165deg, rgba(60, 180, 220, 0.22), rgba(40, 20, 70, 0.5));
  box-shadow: 0 0 14px rgba(80, 220, 200, 0.35);
}
.gift-cell--mt2 .gi .gi-img,
.gift-cell--mt2 .gi {
  animation: mfx-shop-soar 2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(80, 220, 200, 0.7));
}
.gift-cell--mt2::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(180, 255, 255, 0.28) 50%, transparent 68%);
  background-size: 200% 100%;
  animation: gfx-shop-sheen 2.4s linear infinite;
  opacity: 0.65;
}

/* MT3 万元：夸张 3D 翻涌 + 彩边 */
.gift-cell--mt3 {
  border: 1px solid transparent !important;
  background:
    linear-gradient(160deg, rgba(30, 15, 60, 0.95), rgba(60, 20, 40, 0.92)) padding-box,
    conic-gradient(from var(--mfx-angle, 0deg), #4cc9f0, #ffd166, #ff2d6f, #7c5cff, #4cc9f0) border-box;
  animation: mfx-shop-border 2.8s linear infinite;
  box-shadow: 0 0 20px rgba(76, 201, 240, 0.5), 0 0 28px rgba(255, 209, 102, 0.35);
}
.gift-cell--mt3 .gi .gi-img,
.gift-cell--mt3 .gi {
  animation: mfx-shop-thump 1.15s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.9));
}

.mount-tier-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  padding: 2px 5px;
  border-radius: 4px;
  pointer-events: none;
  color: #dffcff;
  background: rgba(20, 80, 100, 0.8);
}
.mount-tier-badge--mt3 {
  color: #ffd166;
  background: rgba(80, 30, 20, 0.88);
}

@keyframes mfx-shop-breathe {
  0%, 100% { transform: translateY(0) rotateY(-10deg) scale(1); }
  50% { transform: translateY(-5px) rotateY(10deg) scale(1.07); }
}
@keyframes mfx-shop-soar {
  0%, 100% { transform: translateY(0) rotateX(4deg) scale(1); }
  50% { transform: translateY(-8px) rotateX(-6deg) scale(1.12); }
}
@keyframes mfx-shop-thump {
  0%, 100% { transform: scale(1) rotateY(-6deg); }
  40% { transform: scale(1.2) rotateY(8deg); }
  55% { transform: scale(1.08) rotateY(0deg); }
}
@keyframes mfx-shop-border {
  to { --mfx-angle: 360deg; }
}
@property --mfx-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ========== 坐骑进场播送三档（#mount-fx-root，不进 gfx-play） ========== */
.mount-fx-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(76, 201, 240, 0.28), transparent 45%),
    radial-gradient(circle at 50% 55%, rgba(20, 10, 40, 0.55), rgba(5, 0, 15, 0.75) 72%);
  animation: gfx-veil-in 0.45s ease-out forwards;
}
.mount-fx-sweep {
  position: absolute;
  inset: -12%;
  z-index: 1;
  background: linear-gradient(120deg, transparent 36%, rgba(255, 255, 255, 0.16) 50%, transparent 64%);
  background-size: 220% 100%;
  animation: gfx-shop-sheen 1.6s ease-in-out 2;
  pointer-events: none;
}
.mount-fx-caption__tier {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0a1820;
  background: linear-gradient(90deg, #4cc9f0, #80ffdb);
  vertical-align: middle;
}
.mount-fx-stage--mt3 .mount-fx-caption__tier {
  color: #1a1200;
  background: linear-gradient(90deg, #ffd166, #ff2d6f);
}

/* MT1 百元：现有入场节奏 */
.mount-fx-stage--mt1 .mount-fx-wrap {
  width: min(88vw, 480px);
  max-height: min(66vh, 480px);
}

/* MT2 千元：更大 + 第三环 + 更炫光晕 */
.mount-fx-stage--mt2 .mount-fx-wrap {
  width: min(94vw, 620px);
  max-height: min(76vh, 620px);
}
.mount-fx-stage--mt2 .mount-fx-aura {
  opacity: 0.52;
  filter: blur(14px);
  animation-duration: 2.4s;
}
.mount-fx-stage--mt2 .mount-fx-glow {
  width: 68%;
  height: 20%;
  opacity: 0.9;
  background: radial-gradient(ellipse, rgba(80, 240, 255, 0.85), transparent 72%);
}
.mount-fx-ring.r3 {
  border-color: rgba(255, 120, 200, 0.8);
  width: 72%;
  bottom: 6%;
  animation-delay: 1.15s !important;
}
.mount-fx-stage--mt2 .mount-fx-wrap.playing {
  animation: mount-fx-enter-mt2 2.8s cubic-bezier(0.14, 0.88, 0.22, 1) forwards;
}
.mount-fx-stage--mt2 .mount-fx-wrap.hold .mount-fx-img {
  animation: mount-fx-bob-mt2 1.2s ease-in-out infinite alternate;
}

/* MT3 万元：近全屏冲击 */
.mount-fx-stage--mt3 .mount-fx-wrap {
  width: min(98vw, 860px);
  max-height: min(88vh, 860px);
}
.mount-fx-stage--mt3 .mount-fx-aura {
  inset: 4%;
  opacity: 0.62;
  filter: blur(18px);
  animation-duration: 1.8s;
}
.mount-fx-stage--mt3 .mount-fx-glow {
  width: 78%;
  height: 24%;
  opacity: 1;
  background: radial-gradient(ellipse, rgba(255, 209, 102, 0.95), rgba(255, 45, 111, 0.35), transparent 75%);
}
.mount-fx-stage--mt3 .mount-fx-wrap.playing {
  animation: mount-fx-enter-mt3 3.2s cubic-bezier(0.12, 0.9, 0.2, 1) forwards;
}
.mount-fx-stage--mt3 .mount-fx-wrap.hold {
  filter: brightness(1.12) drop-shadow(0 0 36px rgba(255, 209, 102, 0.75));
}
.mount-fx-stage--mt3 .mount-fx-wrap.hold .mount-fx-img {
  animation: mount-fx-bob-mt3 1s ease-in-out infinite alternate;
}
.mount-fx-stage--mt3 .mount-fx-caption {
  font-size: 14px;
  padding: 6px 18px;
  bottom: 3%;
}

@keyframes mount-fx-enter-mt2 {
  0% { opacity: 0; transform: translateX(120%) scale(0.35) rotateY(-24deg); filter: brightness(2.2); }
  50% { opacity: 1; transform: translateX(-4%) scale(1.12) rotateY(6deg); }
  100% { opacity: 1; transform: none; filter: brightness(1.08) drop-shadow(0 0 24px rgba(80, 220, 255, 0.65)); }
}
@keyframes mount-fx-enter-mt3 {
  0% { opacity: 0; transform: scale(0.15) rotate(-18deg); filter: blur(10px) brightness(2.5); }
  18% { opacity: 1; filter: blur(0) brightness(1.3); }
  45% { transform: scale(1.18) rotate(3deg); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1.12) drop-shadow(0 0 40px rgba(255, 209, 102, 0.8)); }
}
@keyframes mount-fx-bob-mt2 {
  from { transform: translateY(0) rotateY(-4deg); }
  to { transform: translateY(-14px) rotateY(4deg); }
}
@keyframes mount-fx-bob-mt3 {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-16px) scale(1.04); }
}

/* ========== 礼物商城格子：按价四档勾引点击（与坐骑 .gift-cell--mount 分轨） ========== */
.gift-cell--premium:not(.gift-cell--mount) .gi {
  transform-style: preserve-3d;
  perspective: 240px;
}
.gift-cell--premium:not(.gift-cell--mount) .gi .gi-img {
  will-change: transform, filter;
}

/* T1 互动：3D 呼吸 */
.gift-cell--t1 .gi .gi-img,
.gift-cell--t1 .gi {
  animation: gfx-shop-breathe-3d 2.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(255, 200, 120, 0.35));
}
.gift-cell--t1 {
  box-shadow: inset 0 0 0 1px rgba(255, 220, 160, 0.2);
}

/* T2 中端：金边游走 + 轻抬 */
.gift-cell--t2 {
  border-color: rgba(255, 209, 102, 0.65) !important;
  background:
    linear-gradient(165deg, rgba(255, 209, 102, 0.18), rgba(90, 30, 80, 0.4)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 12px rgba(255, 180, 60, 0.25);
}
.gift-cell--t2 .gi .gi-img,
.gift-cell--t2 .gi {
  animation: gfx-shop-mid-bob 2.2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.55));
}
.gift-cell--t2::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 48%, transparent 62%);
  background-size: 200% 100%;
  animation: gfx-shop-sheen 2.8s linear infinite;
  opacity: 0.55;
}

/* T3 豪华：强脉动光晕 */
.gift-cell--t3 {
  border-color: rgba(255, 120, 200, 0.7) !important;
  background: linear-gradient(160deg, rgba(255, 160, 80, 0.28), rgba(120, 20, 90, 0.55));
  box-shadow: 0 0 18px rgba(255, 80, 160, 0.4), 0 0 8px rgba(255, 209, 102, 0.35);
}
.gift-cell--t3 .gi .gi-img,
.gift-cell--t3 .gi {
  animation: gfx-shop-lux-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255, 120, 200, 0.75));
}
.gift-cell--t3::after {
  content: none;
}

/* T4 神豪：夸张呼吸 + 彩边 */
.gift-cell--t4 {
  border: 1px solid transparent !important;
  background:
    linear-gradient(160deg, rgba(40, 10, 50, 0.95), rgba(80, 20, 30, 0.9)) padding-box,
    conic-gradient(from var(--gfx-angle, 0deg), #ffd166, #ff2d6f, #7c5cff, #48e0ff, #ffd166) border-box;
  animation: gfx-shop-whale-border 3s linear infinite;
  box-shadow: 0 0 22px rgba(255, 45, 111, 0.55), 0 0 28px rgba(255, 209, 102, 0.35);
}
.gift-cell--t4 .gi .gi-img,
.gift-cell--t4 .gi {
  animation: gfx-shop-whale-thump 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.95));
}
.gift-cell--t4::after {
  content: none;
}

.gift-tier-badge {
  position: absolute;
  top: 2px;
  right: 3px;
  z-index: 3;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  padding: 2px 4px;
  border-radius: 4px;
  pointer-events: none;
  color: #ffe8c8;
  background: rgba(120, 20, 80, 0.75);
  text-shadow: 0 0 6px rgba(255, 100, 180, 0.8);
}
.gift-tier-badge--t4 {
  color: #ffd166;
  background: rgba(80, 20, 30, 0.85);
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.95);
}

@keyframes gfx-shop-breathe-3d {
  0%, 100% { transform: translateY(0) rotateY(-12deg) scale(1); }
  50% { transform: translateY(-5px) rotateY(12deg) scale(1.08); }
}
@keyframes gfx-shop-mid-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.1); }
}
@keyframes gfx-shop-sheen {
  0% { background-position: 120% 0; }
  100% { background-position: -40% 0; }
}
@keyframes gfx-shop-lux-pulse {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.16) rotate(2deg); }
}
@keyframes gfx-shop-whale-thump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.22); }
  55% { transform: scale(1.08); }
}
@keyframes gfx-shop-whale-border {
  to { --gfx-angle: 360deg; }
}

@property --gfx-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ========== 礼物播送：gfx-play 四档（禁止复用坐骑 gift-fx-legend） ========== */
.gfx-play .gfx-play__card {
  position: relative;
  z-index: 4;
  text-align: center;
}
.gfx-play .gfx-play__icon {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gfx-play .gfx-play__icon img {
  object-fit: contain;
  display: block;
  max-width: min(72vw, 420px);
  max-height: min(56vh, 420px);
}
.gfx-play__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1a1200;
  background: linear-gradient(90deg, #ffd166, #ff9f43);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.55);
}
.gfx-play--t4 .gfx-play__badge {
  color: #fff;
  background: linear-gradient(90deg, #ff2d6f, #7c5cff, #ffd166);
}

.gfx-play__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36vmin;
  height: 36vmin;
  margin: -18vmin 0 0 -18vmin;
  border-radius: 50%;
  border: 2px solid rgba(255, 209, 102, 0.45);
  box-shadow: 0 0 40px rgba(255, 209, 102, 0.35);
  animation: gfx-ring-expand 2.4s ease-out forwards;
  z-index: 1;
}
.gfx-play--t3 .gfx-play__ring {
  width: 55vmin;
  height: 55vmin;
  margin: -27.5vmin 0 0 -27.5vmin;
  border-color: rgba(255, 120, 200, 0.55);
}
.gfx-play--t4 .gfx-play__ring {
  width: 90vmin;
  height: 90vmin;
  margin: -45vmin 0 0 -45vmin;
  border-width: 3px;
  border-color: rgba(255, 209, 102, 0.7);
  animation-duration: 3.6s;
}
.gfx-play__rays {
  position: absolute;
  inset: -40%;
  z-index: 1;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(255, 209, 102, 0.18),
    transparent,
    rgba(255, 45, 111, 0.16),
    transparent,
    rgba(124, 92, 255, 0.14),
    transparent
  );
  animation: gift-fx-rays-spin 3.2s linear infinite;
  opacity: 0.85;
}
.gfx-play__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 209, 102, 0.35), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(255, 45, 111, 0.28), rgba(10, 0, 20, 0.72) 70%);
  animation: gfx-veil-in 0.5s ease-out forwards;
}
.gfx-play__sweep {
  position: absolute;
  inset: -10%;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 60%
  );
  background-size: 220% 100%;
  animation: gfx-shop-sheen 1.8s ease-in-out 2;
  pointer-events: none;
}

/* T1 互动：柔和飞掠 + 轻呼吸 */
.gfx-play--t1 .gfx-play__icon {
  font-size: clamp(64px, 16vw, 120px);
  animation: gfx-t1-fly 2.3s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
  filter: drop-shadow(0 8px 20px rgba(255, 200, 120, 0.55));
}
.gfx-play--t1 .gfx-play__icon img {
  width: clamp(72px, 18vw, 140px);
  height: clamp(72px, 18vw, 140px);
}
.gfx-play--t1 .gift-fx-card {
  animation: gift-fx-card-in 2.3s ease-out forwards;
}

/* T2 中端：中心弹出 + 金环 */
.gfx-play--t2 .gfx-play__icon {
  font-size: clamp(88px, 22vw, 180px);
  animation: gfx-t2-pop 3s ease-out forwards;
  filter: drop-shadow(0 0 28px rgba(255, 209, 102, 0.85));
}
.gfx-play--t2 .gfx-play__icon img {
  width: clamp(100px, 24vw, 200px);
  height: clamp(100px, 24vw, 200px);
}
.gfx-play--t2 .gift-fx-card {
  animation: gift-fx-card-in 3s ease-out forwards;
}

/* T3 豪华：大尺寸 + 光柱感 */
.gfx-play--t3 .gfx-play__icon {
  font-size: clamp(110px, 28vw, 240px);
  animation: gfx-t3-rise 4s ease-out forwards;
  filter: drop-shadow(0 0 40px rgba(255, 120, 200, 0.9)) drop-shadow(0 0 60px rgba(255, 209, 102, 0.55));
}
.gfx-play--t3 .gfx-play__icon img {
  width: clamp(140px, 32vw, 280px);
  height: clamp(140px, 32vw, 280px);
}
.gfx-play--t3 .gift-fx-card {
  padding: 20px 28px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(90, 20, 70, 0.72), rgba(20, 5, 30, 0.55));
  border: 1px solid rgba(255, 209, 102, 0.5);
  animation: gift-fx-card-in 4s ease-out forwards;
}

/* T4 神豪：铺满视野 */
.gfx-play--t4 .gfx-play__icon {
  font-size: clamp(160px, 42vw, 360px);
  animation: gfx-t4-fill 5s ease-out forwards;
  filter:
    drop-shadow(0 0 48px rgba(255, 209, 102, 1))
    drop-shadow(0 0 80px rgba(255, 45, 111, 0.75));
}
.gfx-play--t4 .gfx-play__icon img {
  width: min(88vw, 92vmin);
  height: min(72vh, 88vmin);
  max-width: none;
  max-height: none;
}
.gfx-play--t4 .gift-fx-card {
  width: min(96vw, 720px);
  padding: 28px 20px 24px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(60, 10, 50, 0.55), rgba(10, 0, 20, 0.35));
  border: 2px solid rgba(255, 209, 102, 0.65);
  box-shadow: 0 0 80px rgba(255, 45, 111, 0.45);
  animation: gfx-t4-card 5s ease-out forwards;
}
.gfx-play--t4 .gift-fx-card__who {
  font-size: clamp(22px, 5vw, 36px);
}
.gfx-play--t4 .gift-fx-card__sub {
  font-size: clamp(15px, 3.2vw, 20px);
}

@keyframes gfx-t1-fly {
  0% { transform: translate(-40vw, 18vh) rotateY(-28deg) scale(0.55); opacity: 0; }
  18% { opacity: 1; }
  45% { transform: translate(0, 0) rotateY(8deg) scale(1.08); }
  100% { transform: translate(36vw, -12vh) rotateY(18deg) scale(0.85); opacity: 0; }
}
@keyframes gfx-t2-pop {
  0% { transform: scale(0.15) rotate(-12deg); opacity: 0; }
  18% { transform: scale(1.28) rotate(4deg); opacity: 1; }
  55% { transform: scale(1) rotate(0deg); opacity: 1; }
  100% { transform: scale(1.15) translateY(-8vh); opacity: 0; }
}
@keyframes gfx-t3-rise {
  0% { transform: translateY(40vh) scale(0.3); opacity: 0; }
  20% { transform: translateY(0) scale(1.2); opacity: 1; }
  70% { transform: translateY(-2vh) scale(1.05); opacity: 1; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}
@keyframes gfx-t4-fill {
  0% { transform: scale(0.2); opacity: 0; filter: blur(8px); }
  15% { transform: scale(1.05); opacity: 1; filter: blur(0); }
  55% { transform: scale(1.12); opacity: 1; }
  85% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}
@keyframes gfx-t4-card {
  0% { opacity: 0; transform: scale(0.85); }
  12% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.04); }
}
@keyframes gfx-ring-expand {
  0% { transform: scale(0.25); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes gfx-veil-in {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 1; }
}

/* ========== 西式奢庆氛围层（B_max） ========== */
.gfx-lux-dim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.35);
  animation: gfx-veil-in 0.35s ease-out forwards;
  pointer-events: none;
}
.gfx-lux-dim--t2 { background: rgba(0, 0, 0, 0.28); }
.gfx-lux-dim--t3 { background: rgba(0, 0, 0, 0.48); }
.gfx-lux-dim--t4 { background: rgba(0, 0, 0, 0.72); }
.gfx-lux-spot {
  position: absolute;
  left: 50%;
  top: -8%;
  width: 70%;
  height: 95%;
  transform: translateX(-50%);
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 245, 200, 0.45) 0%,
    rgba(255, 209, 102, 0.12) 35%,
    transparent 70%
  );
  filter: blur(2px);
  animation: gfx-lux-spot-sweep 3.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes gfx-lux-spot-sweep {
  0%, 100% { opacity: 0.55; transform: translateX(-56%) rotate(-6deg); }
  50% { opacity: 1; transform: translateX(-44%) rotate(6deg); }
}
.gfx-lux-caption {
  position: absolute;
  top: 12%;
  left: 50%;
  z-index: 5;
  transform: translateX(-50%);
  font-size: clamp(18px, 4.5vw, 34px);
  font-weight: 900;
  letter-spacing: 0.28em;
  color: #fff6d0;
  text-shadow: 0 0 24px rgba(255, 209, 102, 0.9), 0 2px 12px rgba(0, 0, 0, 0.8);
  animation: gfx-lux-caption-in 0.7s ease-out both;
  pointer-events: none;
  white-space: nowrap;
}
.gfx-play--t4 .gfx-lux-caption {
  font-size: clamp(22px, 5.5vw, 42px);
  color: #fff;
  background: linear-gradient(90deg, #ffd166, #fff, #ff2d6f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes gfx-lux-caption-in {
  0% { opacity: 0; transform: translateX(-50%) scale(0.7) translateY(-12px); }
  100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}
.gfx-lux-rain {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.gfx-lux-rain i {
  position: absolute;
  top: -10%;
  left: var(--x, 50%);
  width: var(--w, 3px);
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff6c8, #ffd166, transparent);
  opacity: 0;
  animation: gfx-lux-rain-fall var(--d, 1.6s) linear var(--delay, 0s) infinite;
}
@keyframes gfx-lux-rain-fall {
  0% { transform: translateY(0) rotate(12deg); opacity: 0; }
  12% { opacity: 0.95; }
  100% { transform: translateY(110vh) rotate(18deg); opacity: 0; }
}
.gfx-lux-bubbles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.gfx-lux-bubbles i {
  position: absolute;
  bottom: 8%;
  left: var(--x, 50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 200, 0.7);
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  animation: gfx-lux-bubble var(--dur, 2s) ease-out var(--delay, 0s) infinite;
}
@keyframes gfx-lux-bubble {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.85; }
  100% { transform: translateY(-55vh) scale(1.2); opacity: 0; }
}
.gfx-lux-champ {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.gfx-lux-champ i {
  position: absolute;
  bottom: 36%;
  left: var(--x, 50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffe9a8 40%, transparent 70%);
  opacity: 0;
  animation: gfx-lux-spray 1.4s ease-out var(--delay, 0s) both;
  transform: scale(var(--s, 1));
}
.gfx-lux-champ--heavy i {
  width: 9px;
  height: 9px;
  animation-duration: 1.8s;
}
@keyframes gfx-lux-spray {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0; }
  18% { opacity: 1; }
  100% {
    transform: translate(var(--dx, 40px), -48vh) scale(var(--s, 1));
    opacity: 0;
  }
}
.gfx-play--shake {
  animation: gfx-lux-shake 0.55s linear 2;
}
@keyframes gfx-lux-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate(3px, -2px); }
  60% { transform: translate(-2px, -1px); }
  80% { transform: translate(2px, 1px); }
}

/* 商城格子奢庆加料 */
.gift-cell--t2::before {
  animation-duration: 1.8s;
  opacity: 0.75;
}
.gift-cell--t3 {
  box-shadow: 0 0 22px rgba(255, 120, 200, 0.55), 0 0 14px rgba(255, 209, 102, 0.45);
}
.gift-cell--t4 {
  box-shadow: 0 0 28px rgba(255, 45, 111, 0.7), 0 0 36px rgba(255, 209, 102, 0.55);
}
.gift-cell--t4 .gi {
  position: relative;
}
.gift-cell--t4 .gi::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe9a8;
  box-shadow: 12px -8px 0 #ffd166, -10px -6px 0 #fff, 8px 10px 0 #ffb703;
  animation: gfx-lux-bubble 1.8s ease-out infinite;
  pointer-events: none;
  opacity: 0.85;
}

/* 坐骑格子奢庆加料 */
.gift-cell--mt2 {
  box-shadow: 0 0 18px rgba(80, 220, 200, 0.45), 0 0 12px rgba(255, 209, 102, 0.3);
}
.gift-cell--mt2::before {
  animation-duration: 1.6s;
  opacity: 0.8;
}
.gift-cell--mt3 {
  box-shadow: 0 0 26px rgba(255, 209, 102, 0.55), 0 0 32px rgba(255, 45, 111, 0.4);
}
.gift-cell--mt3 .gi {
  position: relative;
}
.gift-cell--mt3 .gi::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff6c8;
  box-shadow: 14px -10px 0 #ffd166, -12px -4px 0 #4cc9f0, 6px 12px 0 #ff2d6f;
  animation: gfx-lux-bubble 1.6s ease-out infinite;
  pointer-events: none;
  opacity: 0.9;
}

/* 坐骑奢庆 */
.mount-fx-carpet {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 84%;
  height: 18%;
  transform: translateX(-50%);
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180, 30, 50, 0.55),
    rgba(255, 209, 102, 0.35),
    rgba(180, 30, 50, 0.55),
    transparent
  );
  filter: blur(1px);
  opacity: 0.85;
  pointer-events: none;
}
.mount-fx-spot {
  position: absolute;
  left: 50%;
  top: -5%;
  width: 80%;
  height: 100%;
  transform: translateX(-50%);
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 245, 210, 0.4),
    rgba(255, 209, 102, 0.1),
    transparent 65%
  );
  animation: gfx-lux-spot-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
.mount-fx-lux-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.mount-fx-stage--shake {
  animation: gfx-lux-shake 0.5s linear 2;
}
.mount-fx-stage--mt2 .mount-fx-caption__tier,
.mount-fx-stage--mt3 .mount-fx-caption__tier {
  letter-spacing: 0.14em;
}
.mount-fx-stage--mt3 .mount-fx-caption {
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.55);
}

/* 手机端：礼物特效放大、粒子更密、光晕更强 */
@media (max-width: 768px) {
  .gift-fx-card__icon {
    font-size: clamp(96px, 30vw, 180px);
    filter: drop-shadow(0 0 32px rgba(255, 209, 102, 0.95));
  }

  .gift-fx-card__who {
    font-size: clamp(20px, 5.5vw, 32px);
  }

  .gift-fx-card__sub {
    font-size: clamp(15px, 4vw, 20px);
  }

  .gift-fx-particle {
    font-size: clamp(22px, 6vw, 32px);
  }

  .gift-fx-emoji::before {
    width: 55vmin;
    height: 55vmin;
    margin: -27.5vmin 0 0 -27.5vmin;
  }

  .gfx-play .gfx-play__icon img {
    max-width: min(88vw, 520px);
    max-height: min(64vh, 520px);
  }

  .gfx-play__ring {
    width: 48vmin;
    height: 48vmin;
    margin: -24vmin 0 0 -24vmin;
  }

  .gfx-play--t1 .gfx-play__icon {
    font-size: clamp(88px, 26vw, 160px);
  }

  .gfx-play--t1 .gfx-play__icon img {
    width: clamp(96px, 28vw, 180px);
    height: clamp(96px, 28vw, 180px);
  }

  .gfx-play--t2 .gfx-play__icon {
    font-size: clamp(112px, 32vw, 220px);
  }

  .gfx-play--t2 .gfx-play__icon img {
    width: clamp(128px, 34vw, 240px);
    height: clamp(128px, 34vw, 240px);
  }

  .gfx-play--t2 .gfx-play__ring {
    width: 62vmin;
    height: 62vmin;
    margin: -31vmin 0 0 -31vmin;
  }

  .gfx-play--t3 .gfx-play__icon {
    font-size: clamp(140px, 38vw, 300px);
  }

  .gfx-play--t3 .gfx-play__icon img {
    width: clamp(168px, 42vw, 320px);
    height: clamp(168px, 42vw, 320px);
  }

  .gfx-play--t3 .gfx-play__ring {
    width: 72vmin;
    height: 72vmin;
    margin: -36vmin 0 0 -36vmin;
  }

  .gfx-play--t4 .gfx-play__icon {
    font-size: clamp(200px, 52vw, 420px);
  }

  .gfx-play--t4 .gfx-play__icon img {
    width: min(94vw, 96vmin);
    height: min(78vh, 94vmin);
  }

  .gfx-play--t4 .gfx-play__ring {
    width: 105vmin;
    height: 105vmin;
    margin: -52.5vmin 0 0 -52.5vmin;
  }

  .gfx-lux-spot {
    width: 92%;
    height: 110%;
  }

  .gfx-lux-caption {
    font-size: clamp(22px, 6vw, 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gfx-play--shake,
  .mount-fx-stage--shake,
  .gfx-lux-rain i,
  .gfx-lux-champ i,
  .gfx-lux-bubbles i {
    animation: none !important;
  }
  .gfx-lux-dim--t4 { background: rgba(0, 0, 0, 0.45); }
}
