/* 房间红包浮层 · 视频/语音共用 */
.vchat-rp-pin-hint {
  font-size: 12px;
  margin: 8px 0 6px;
  line-height: 1.45;
}
.vchat-rp-pin-hint--warn {
  font-weight: 600;
}
.vchat-rp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.vchat-rp-tab {
  flex: 1;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}
.vchat-rp-tab.is-active {
  border-color: #ff5252;
  background: rgba(255, 82, 82, 0.25);
}
.vchat-rp-pin-label {
  margin-top: 10px;
}
.vchat-rp-pin-input {
  letter-spacing: 0.35em;
  font-size: 18px;
  text-align: center;
}
.vchat-rp-pin-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
}
.video-core,
.live-stage,
#preview-wrap,
.voice-room__stage,
#voice-stage,
.voice-room-col--stage,
#video-frame,
.video-frame {
  position: relative;
}
#voice-stage > .vchat-rp-layer,
.voice-room-col--stage > .vchat-rp-layer,
.voice-room__stage > .vchat-rp-layer {
  z-index: 56;
}
/* 客人视频：福袋层必须在 video-frame 上且高于 tap/heart 遮罩 */
#video-frame > .vchat-rp-layer,
.video-frame > .vchat-rp-layer,
#video-stage-overlay > .vchat-rp-layer {
  z-index: 24;
  overflow: visible;
  pointer-events: none;
}
#video-frame > .vchat-rp-layer.is-active,
.video-frame > .vchat-rp-layer.is-active,
#video-stage-overlay > .vchat-rp-layer.is-active {
  pointer-events: auto;
}
.vchat-rp-float {
  z-index: 26;
}
.vchat-rp-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 48;
  overflow: visible;
}
/* 勿对整层开启 pointer-events：主播 preview-wrap / 客人 video-frame 内含停播、礼物等底栏 */
.vchat-rp-layer.is-active {
  pointer-events: none;
}
/* 视频区右侧 3D 福袋（客人抢 / 主播查领取，尺寸约为初版 50%） */
.vchat-rp-float {
  position: absolute;
  right: 6%;
  top: 34%;
  left: auto;
  transform: none;
  z-index: 2;
  pointer-events: auto;
  width: auto;
  max-width: 40%;
  min-width: 0;
  height: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: left;
  animation: vchat-rp-float-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(220, 20, 60, 0.45));
  z-index: 26;
}
.vchat-rp-float--3d:focus-visible {
  outline: 2px solid #ffd54f;
  outline-offset: 3px;
}
.vchat-rp-float-3d {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 32px;
  perspective: 100px;
}
.vchat-rp-float-3d__orbit {
  position: absolute;
  inset: -2px;
  pointer-events: none;
}
.vchat-rp-float-3d__orbit i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff9c4, #ffd54f 45%, #ff8f00 90%);
  border: 1px solid #f9a825;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  animation: vchat-rp-orbit 2.4s linear infinite;
}
.vchat-rp-float-3d__orbit i:nth-child(1) {
  left: 50%;
  top: 0;
  margin-left: -3.5px;
  animation-delay: 0s;
}
.vchat-rp-float-3d__orbit i:nth-child(2) {
  right: 0;
  top: 50%;
  margin-top: -3.5px;
  animation-delay: -0.8s;
}
.vchat-rp-float-3d__orbit i:nth-child(3) {
  left: 0;
  top: 50%;
  margin-top: -3.5px;
  animation-delay: -1.6s;
}
.vchat-rp-float-3d__env {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 0;
  height: 26px;
}
.vchat-rp-float-3d__env-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  border-radius: 4px 4px 6px 6px;
  background: linear-gradient(165deg, #ff6b6b, #c62828 55%, #b71c1c);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15), 0 4px 12px rgba(183, 28, 28, 0.5);
  transform: rotateX(10deg);
  transform-origin: center bottom;
  animation: vchat-rp-float-env 2.2s ease-in-out infinite;
}
.vchat-rp-float-3d__env-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 11px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #ff8a80, #e53935);
  transform-origin: center top;
  transform: rotateX(32deg);
  animation: vchat-rp-float-flap 1.8s ease-in-out infinite;
}
.vchat-rp-float-3d__env-seal {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe082, #ffc107, #ff8f00);
  color: #8b0000;
  font-size: 5px;
  font-weight: 900;
  line-height: 10px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(255, 235, 59, 0.6);
  z-index: 2;
  animation: vchat-rp-float-seal 1.4s ease-in-out infinite;
}
.vchat-rp-float-3d__panel {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 3px 5px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(90, 10, 40, 0.92), rgba(40, 6, 50, 0.94));
  border: 1px solid rgba(255, 213, 79, 0.45);
}
.vchat-rp-float-3d__amount {
  font-size: 11px;
  font-weight: 900;
  color: #ffd54f;
  line-height: 1.1;
  text-shadow: 0 0 5px rgba(255, 213, 79, 0.5);
}
.vchat-rp-float-3d__amount small {
  font-size: 7px;
  font-weight: 700;
  margin-left: 1px;
}
.vchat-rp-float-3d__sub,
.vchat-rp-float-3d__hint {
  font-size: 7px;
  color: rgba(255, 240, 220, 0.9);
  line-height: 1.2;
}
.vchat-rp-float-3d__remain {
  font-size: 7px;
  color: #ffab91;
}
.vchat-rp-float-3d__action {
  margin-top: 1px;
  font-size: 7px;
  font-weight: 800;
  color: #ff8a80;
}
.vchat-rp-float--anchor .vchat-rp-float-3d__action {
  color: #ffe082;
}
.vchat-rp-receive__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.vchat-rp-receive__cell {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}
.vchat-rp-receive__n {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #ffd54f;
}
.vchat-rp-receive__l {
  display: block;
  font-size: 11px;
  color: rgba(255, 235, 250, 0.75);
  margin-top: 4px;
}
.vchat-rp-receive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
}
.vchat-rp-receive-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}
.vchat-rp-receive-list__amt {
  color: #ffd54f;
  font-weight: 700;
}
.vchat-rp-receive-empty {
  font-size: 12px;
  color: rgba(255, 235, 250, 0.7);
  text-align: center;
  margin: 8px 0 0;
}
@keyframes vchat-rp-float-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.03);
  }
}
@keyframes vchat-rp-orbit {
  0% {
    transform: rotate(0deg) translateX(11px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(11px) rotate(-360deg);
  }
}
@keyframes vchat-rp-float-env {
  0%,
  100% {
    transform: rotateX(8deg);
  }
  50% {
    transform: rotateX(14deg);
  }
}
@keyframes vchat-rp-float-flap {
  0%,
  100% {
    transform: rotateX(28deg);
  }
  50% {
    transform: rotateX(40deg);
  }
}
@keyframes vchat-rp-float-seal {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
.vchat-rp-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.vchat-rp-confetti span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  animation: vchat-rp-fall 2.4s linear forwards;
}
@keyframes vchat-rp-fall {
  0% {
    opacity: 1;
    transform: translateY(-10%) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(720deg);
  }
}
.vchat-rp-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.vchat-rp-modal[hidden] {
  display: none !important;
}
.vchat-rp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 18, 0.72);
  backdrop-filter: blur(8px);
}
.vchat-rp-modal__panel {
  position: relative;
  width: min(360px, 100%);
  background: linear-gradient(
    165deg,
    rgba(58, 12, 48, 0.92) 0%,
    rgba(36, 8, 42, 0.88) 55%,
    rgba(28, 6, 34, 0.9) 100%
  );
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-radius: 18px;
  padding: 20px 18px 16px;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 200, 120, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 180, 100, 0.35);
}
.vchat-rp-modal__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #ffe9a8;
  text-shadow: 0 1px 8px rgba(255, 120, 80, 0.35);
}
.vchat-rp-modal__sub {
  margin: 0 0 14px;
  font-size: 12px;
  color: rgba(255, 235, 250, 0.82);
  line-height: 1.5;
}
.vchat-rp-modal__hint {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff8f6;
  background: rgba(180, 28, 48, 0.55);
  border: 1px solid rgba(255, 140, 110, 0.75);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}
.vchat-rp-modal__hint[hidden] {
  display: none !important;
}
.vchat-rp-modal.has-hint .vchat-rp-form [name='pay_pin'],
.vchat-rp-modal.has-hint .vchat-rp-form [name='security_answer'] {
  border-color: rgba(255, 120, 100, 0.85) !important;
}
/* 弹窗打开时全局 toast 须高于福袋层（主播站 .toast 默认 z-index:100） */
body:has(.vchat-rp-modal.is-open) #toast,
body:has(.vchat-rp-modal.is-open) .toast,
body:has(.vchat-rp-modal.is-open) .voice-toast {
  z-index: 13050 !important;
}
/* 半透明弹窗：压过主播站 app.css 全局 label/input */
.vchat-rp-modal .vchat-rp-form label,
.vchat-rp-modal .vchat-rp-form .vchat-rp-pin-label,
.vchat-rp-modal label:not(.vchat-rp-pin-remember) {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 248, 252, 0.95) !important;
  margin: 12px 0 6px;
}
.vchat-rp-modal .vchat-rp-pin-hint {
  color: rgba(255, 230, 245, 0.78) !important;
}
.vchat-rp-modal .vchat-rp-pin-hint--warn {
  color: #ff8a80 !important;
}
.vchat-rp-modal .vchat-rp-pin-hint a,
.vchat-rp-modal #vchat-rp-forgot-reset {
  color: #ffd166 !important;
  font-weight: 600;
}
.vchat-rp-modal .vchat-rp-form input,
.vchat-rp-modal .vchat-rp-form select,
.vchat-rp-modal input[type='password'],
.vchat-rp-modal input[type='number'],
.vchat-rp-modal input[type='text'],
.vchat-rp-modal select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 200, 140, 0.38) !important;
  background: rgba(0, 0, 0, 0.32) !important;
  color: #fff8fc !important;
  font-size: 15px;
}
.vchat-rp-modal .vchat-rp-form input::placeholder,
.vchat-rp-modal input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}
.vchat-rp-modal .vchat-rp-pin-remember {
  color: rgba(255, 240, 250, 0.88) !important;
  font-weight: 500;
}
.vchat-rp-modal .vchat-rp-tab {
  color: rgba(255, 248, 252, 0.9);
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 200, 140, 0.35);
}
.vchat-rp-modal .vchat-rp-tab.is-active {
  color: #ffe9a8;
  background: rgba(255, 82, 82, 0.28);
  border-color: rgba(255, 120, 100, 0.65);
}
.vchat-rp-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f1f1f;
  margin: 10px 0 4px;
}
.vchat-rp-form input,
.vchat-rp-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e0c4c4;
  font-size: 14px;
  background: #fff;
  color: #111;
}
.vchat-rp-form__row {
  display: flex;
  gap: 10px;
}
.vchat-rp-form__row > * {
  flex: 1;
}
.vchat-rp-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.vchat-rp-modal__actions .btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.vchat-rp-btn-cancel {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 248, 252, 0.9);
  border: 1px solid rgba(255, 200, 140, 0.28);
}
.vchat-rp-btn-send {
  background: linear-gradient(135deg, #ff5a7a, #e53935, #c62828);
  color: #fff;
}
.vchat-rp-btn-send:disabled {
  opacity: 0.65;
  cursor: wait;
}
.vchat-rp-modal[hidden],
.vchat-rp-modal:not(.is-open) {
  display: none !important;
}
.vchat-rp-result {
  text-align: center;
  padding: 8px 0 4px;
}
.vchat-rp-result__amount {
  font-size: 36px;
  font-weight: 900;
  color: #ffd166;
  line-height: 1.1;
}
.vchat-rp-result__hint {
  font-size: 13px;
  color: rgba(255, 235, 250, 0.8);
  margin-top: 6px;
}

/* 抢福袋公聊系统提示：恭喜 + 等级 + 昵称 + 主播名 + 金币动效 */
.vchat-rp-grab-wrap {
  margin: 6px 0 8px;
}
.vchat-rp-grab-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 82, 82, 0.22) 0%,
    rgba(255, 193, 7, 0.18) 55%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border: 1px solid rgba(255, 200, 120, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  line-height: 1.45;
  color: #fff8f0;
}
.vchat-rp-grab-notice__emoji {
  font-size: 18px;
  line-height: 1;
  animation: vchat-rp-grab-pop 0.55s ease-out;
}
.vchat-rp-grab-notice__lead {
  font-weight: 800;
  color: #ffe082;
}
.vchat-rp-grab-notice__nick {
  font-weight: 700;
  color: #fff;
}
.vchat-rp-grab-notice__anchor {
  font-weight: 700;
  color: #ffcc80;
}
.vchat-rp-grab-notice__mid,
.vchat-rp-grab-notice__unit {
  color: rgba(255, 245, 235, 0.92);
}
.vchat-rp-grab-notice__coins .vcoin-mark {
  animation: vchat-rp-coin-spin 1.2s ease-in-out infinite;
}
@keyframes vchat-rp-grab-pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes vchat-rp-coin-spin {
  0%,
  100% {
    transform: rotateY(0deg) scale(1);
  }
  50% {
    transform: rotateY(180deg) scale(1.08);
  }
}
.room-msg--red-packet-grab,
.chat-msg--red-packet-grab {
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* 公聊福袋系统提示卡片（默认=手机紧凑；PC 见下方 min-width:1024） */
.vchat-rp-chat-wrap {
  margin: 4px 0 6px;
  clear: both;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* 避免 PC 公聊 .chat-msg.sys / .room-msg.sys 的 flex 小字样式压扁卡片 */
.room-msg.sys.vchat-rp-chat-wrap,
.chat-msg.sys.vchat-rp-chat-wrap,
.room-chat-messages .room-msg.sys.vchat-rp-chat-wrap,
.hall-chat-messages .room-msg.sys.vchat-rp-chat-wrap,
.chat-messages .chat-msg.sys.vchat-rp-chat-wrap {
  display: block !important;
  flex: none;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  font-size: inherit;
  color: inherit;
}
.vchat-rp-chat-wrap .vchat-rp-chat-card {
  color: #fff8f0;
}
.voice-chat-msg--red-packet {
  margin: 4px 0;
}
.vchat-rp-chat-card {
  position: relative;
  border-radius: 10px;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(255, 213, 79, 0.95),
    rgba(255, 82, 82, 0.9),
    rgba(255, 193, 7, 0.95),
    rgba(255, 82, 82, 0.85)
  );
  background-size: 240% 240%;
  animation: vchat-rp-chat-border 3.2s ease infinite;
  box-shadow:
    0 0 10px rgba(255, 82, 82, 0.35),
    0 3px 10px rgba(0, 0, 0, 0.28);
}
.vchat-rp-chat-card__shine {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
}
.vchat-rp-chat-card__shine::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -30%;
  width: 45%;
  height: 180%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 45%,
    transparent 70%
  );
  transform: rotate(18deg);
  animation: vchat-rp-chat-sweep 2.8s ease-in-out infinite;
}
.vchat-rp-chat-card__inner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 6px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(74, 12, 38, 0.94), rgba(42, 8, 52, 0.96));
  position: relative;
  z-index: 1;
}
.vchat-rp-chat-card__env {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 42px;
  perspective: 120px;
  animation: vchat-rp-chat-env-float 2.8s ease-in-out infinite;
}
.vchat-rp-chat-card__env-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  filter: blur(4px);
  animation: vchat-rp-chat-env-shadow 2.4s ease-in-out infinite;
}
.vchat-rp-chat-card__env-body {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 28px;
  border-radius: 6px 6px 9px 9px;
  background: linear-gradient(165deg, #ff6b6b 0%, #d32f2f 42%, #b71c1c 100%);
  box-shadow:
    inset 0 -10px 0 rgba(0, 0, 0, 0.18),
    inset 0 8px 16px rgba(255, 255, 255, 0.12),
    0 6px 14px rgba(183, 28, 28, 0.55);
  transform: rotateX(8deg);
  transform-origin: center bottom;
}
.vchat-rp-chat-card__env-flap {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 10px;
  height: 18px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #ff8a80 0%, #e53935 55%, #c62828 100%);
  transform-origin: center top;
  transform: rotateX(28deg);
  animation: vchat-rp-chat-flap 2s ease-in-out infinite;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.vchat-rp-chat-card__env-seal {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe082, #ffc107 45%, #ff8f00 100%);
  color: #8b0000;
  font-size: 8px;
  font-weight: 900;
  line-height: 15px;
  text-align: center;
  box-shadow:
    0 0 0 2px rgba(255, 235, 59, 0.65),
    0 4px 10px rgba(0, 0, 0, 0.35);
  animation: vchat-rp-chat-seal 1.6s ease-in-out infinite;
  z-index: 2;
}
.vchat-rp-chat-card__env-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffeb3b;
  box-shadow: 0 0 8px #ffeb3b;
  opacity: 0;
  animation: vchat-rp-chat-spark 2.2s ease-in-out infinite;
}
.vchat-rp-chat-card__env-spark--1 {
  left: 2px;
  top: 8px;
}
.vchat-rp-chat-card__env-spark--2 {
  right: 0;
  top: 20px;
  animation-delay: 0.9s;
}
.vchat-rp-chat-card__env-spark {
  display: none;
}
.vchat-rp-chat-card__body {
  flex: 1;
  min-width: 0;
}
.vchat-rp-chat-card__tag {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffecb3;
  background: rgba(255, 82, 82, 0.35);
  border: 1px solid rgba(255, 213, 79, 0.55);
  border-radius: 999px;
  padding: 1px 5px;
  margin-bottom: 2px;
  line-height: 1.2;
}
.vchat-rp-chat-card__title {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff8f0;
  text-shadow: 0 1px 6px rgba(255, 82, 82, 0.45);
}
.vchat-rp-chat-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
}
.vchat-rp-chat-card__coins {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  position: relative;
  padding-left: 18px;
}
.vchat-rp-chat-card__coin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff9c4, #ffd54f 40%, #ff8f00 88%);
  border: 2px solid #f9a825;
  box-shadow:
    inset 0 -3px 0 rgba(180, 120, 0, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.35);
  animation: vchat-rp-chat-coin 2.1s ease-in-out infinite;
}
.vchat-rp-chat-card__coin::after {
  content: '币';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  font-weight: 900;
  color: #8b4513;
}
.vchat-rp-chat-card__coin--a {
  left: 0;
  top: 1px;
  z-index: 3;
}
.vchat-rp-chat-card__coin--b,
.vchat-rp-chat-card__coin--c {
  display: none;
}
.vchat-rp-chat-card__amount {
  font-size: 14px;
  font-weight: 900;
  color: #ffd54f;
  text-shadow: 0 0 8px rgba(255, 213, 79, 0.5);
  letter-spacing: 0;
  line-height: 1.1;
}
.vchat-rp-chat-card__unit {
  font-size: 10px;
  font-weight: 700;
  color: #ffcc80;
}
.vchat-rp-chat-card__split {
  font-size: 10px;
  color: rgba(255, 235, 220, 0.88);
  white-space: nowrap;
}
.vchat-rp-chat-card__note {
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(255, 230, 210, 0.85);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.vchat-rp-chat-card__cta {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 800;
  color: #ff8a80;
  line-height: 1.2;
  animation: vchat-rp-chat-cta 1.4s ease-in-out infinite;
}
/* 主播手机：公聊叠在画面上，勿套用普通消息气泡 */
.room-chat-messages--overlay .vchat-rp-chat-wrap.room-msg,
.room-chat-messages--overlay .vchat-rp-chat-wrap.room-msg.sys {
  display: block !important;
  max-width: 92%;
  padding: 0 !important;
  background: transparent !important;
  backdrop-filter: none;
  border-radius: 0;
}
.room-chat-messages--overlay .vchat-rp-chat-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
/* 客人/主播手机：公聊区更窄时再缩一档 */
@media (max-width: 767px) {
  .vchat-rp-chat-wrap {
    margin: 3px 0 4px;
  }
  .vchat-rp-chat-card__env {
    flex: 0 0 32px;
    width: 32px;
    height: 38px;
  }
  .vchat-rp-chat-card__env-body {
    height: 24px;
  }
  .vchat-rp-chat-card__env-flap {
    top: 9px;
    height: 16px;
  }
  .vchat-rp-chat-card__env-seal {
    top: 16px;
    width: 13px;
    height: 13px;
    margin-left: -6.5px;
    font-size: 7px;
    line-height: 13px;
  }
  .vchat-rp-chat-card__title {
    font-size: 10px;
  }
  .vchat-rp-chat-card__amount {
    font-size: 13px;
  }
  .vchat-rp-chat-card__tag {
    display: none;
  }
  .vchat-rp-chat-card__note {
    font-size: 8px;
  }
  .vchat-rp-chat-card__cta {
    font-size: 9px;
  }
}
@keyframes vchat-rp-chat-border {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes vchat-rp-chat-sweep {
  0%,
  100% {
    left: -50%;
    opacity: 0;
  }
  40%,
  60% {
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}
@keyframes vchat-rp-chat-env-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-2px) rotate(1deg);
  }
}
@keyframes vchat-rp-chat-env-shadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.55;
  }
  50% {
    transform: scaleX(0.82);
    opacity: 0.35;
  }
}
@keyframes vchat-rp-chat-flap {
  0%,
  100% {
    transform: rotateX(24deg);
  }
  50% {
    transform: rotateX(42deg);
  }
}
@keyframes vchat-rp-chat-seal {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
@keyframes vchat-rp-chat-spark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
  45% {
    opacity: 1;
    transform: scale(1.2);
  }
}
@keyframes vchat-rp-chat-coin {
  0%,
  100% {
    transform: translateY(0) rotateY(0deg);
  }
  50% {
    transform: translateY(-2px) rotateY(180deg);
  }
}
@keyframes vchat-rp-chat-cta {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

/* PC 公聊：略大于手机，但保持一条消息高度（勿占满半屏） */
@media (min-width: 1024px) {
  .vchat-rp-chat-wrap {
    margin: 5px 0 7px;
  }
  .vchat-rp-chat-card {
    border-radius: 11px;
  }
  .vchat-rp-chat-card__inner {
    gap: 9px;
    padding: 7px 9px 7px 8px;
  }
  .vchat-rp-chat-card__env {
    flex: 0 0 44px;
    width: 44px;
    height: 50px;
  }
  .vchat-rp-chat-card__env-body {
    height: 34px;
  }
  .vchat-rp-chat-card__env-flap {
    top: 12px;
    height: 22px;
  }
  .vchat-rp-chat-card__env-seal {
    top: 22px;
    width: 17px;
    height: 17px;
    margin-left: -8.5px;
    font-size: 9px;
    line-height: 17px;
  }
  .vchat-rp-chat-card__env-spark {
    display: block;
    width: 4px;
    height: 4px;
  }
  .vchat-rp-chat-card__tag {
    font-size: 9px;
    margin-bottom: 3px;
  }
  .vchat-rp-chat-card__title {
    font-size: 12px;
    margin-bottom: 3px;
  }
  .vchat-rp-chat-card__amount {
    font-size: 16px;
  }
  .vchat-rp-chat-card__unit {
    font-size: 11px;
  }
  .vchat-rp-chat-card__split {
    font-size: 11px;
  }
  .vchat-rp-chat-card__coins {
    padding-left: 28px;
  }
  .vchat-rp-chat-card__coin {
    width: 16px;
    height: 16px;
  }
  .vchat-rp-chat-card__coin::after {
    font-size: 7px;
  }
  .vchat-rp-chat-card__coin--b {
    display: block;
    left: 11px;
    top: -2px;
    transform: scale(0.85);
  }
  .vchat-rp-chat-card__coin--c {
    display: none;
  }
  .vchat-rp-chat-card__note {
    font-size: 10px;
  }
  .vchat-rp-chat-card__cta {
    font-size: 11px;
    margin-top: 3px;
  }
  .vchat-rp-float-3d {
    flex: 0 0 50px;
    width: 50px;
    height: 58px;
  }
  .vchat-rp-float-3d__amount {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .vchat-rp-float {
    right: 4%;
    top: 30%;
    max-width: 52%;
    gap: 5px;
    animation: none;
  }
  .vchat-rp-float-3d {
    flex: 0 0 44px;
    width: 44px;
    height: 50px;
  }
  .vchat-rp-float-3d__env-body {
    height: 30px;
  }
  .vchat-rp-float-3d__panel {
    padding: 4px 7px;
  }
  .vchat-rp-float-3d__amount {
    font-size: 14px;
  }
  .vchat-rp-float-3d__sub,
  .vchat-rp-float-3d__hint,
  .vchat-rp-float-3d__action {
    font-size: 9px;
  }
  .vchat-rp-float-3d__orbit i {
    width: 10px;
    height: 10px;
  }
}

body.mode-live-desktop .live-room-panel .room-chat-messages .vchat-rp-chat-wrap {
  margin-left: 0;
  margin-right: 0;
}
