/* player 核心 + frontend 聊天室视觉适配层 */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f4f4f6;
}

#fsRoot {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #f4f4f6;
}

#fsRoot .app.player-chat-shell {
  width: 100%;
  max-width: 590px;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f4f4f6;
}

.player-runtime-meta {
  display: none !important;
}

.player-floating-tools {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: max(10px, calc((100vw - 590px) / 2 + 10px));
  z-index: 2600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.player-switch-btn,
#p5-btn-menu.p5-menu-trigger {
  min-width: 48px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 17px;
  background: rgba(44,50,58,.34);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.player-switch-btn:active,
#p5-btn-menu.p5-menu-trigger:active {
  background: rgba(44,50,58,.52);
}

.player-floating-tools .p5-menu-wrap {
  position: relative;
}


#roomMenu.room-menu {
  position: fixed;
  top: calc(51px + env(safe-area-inset-top, 0px));
  right: max(68px, calc((100vw - 590px) / 2 + 68px));
  left: auto;
  z-index: 2599;
  width: min(250px, calc(100vw - 90px));
}

.player-floating-tools .p5-menu-popup {
  top: calc(100% + 7px);
  right: 0;
  min-width: 92px;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 12px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.player-floating-tools .p5-menu-popup.open {
  display: flex;
}

.player-floating-tools .p5-menu-popup .menu-item {
  width: 100%;
  min-width: 80px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #252525;
  font-size: 14px;
  font-weight: 700;
}

/* player 原 .messages 是滚动容器；frontend 的滚动容器改为外层 .p5-chat-wrap。 */
#p5-messages.messages {
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
  padding: 0 !important;
  background: transparent !important;
}

#p5-messages .msg-wrap {
  display: flex;
  align-items: flex-start;
}

#p5-messages .msg-wrap.user {
  justify-content: flex-end;
}

#p5-messages .msg-wrap.robot {
  justify-content: flex-start;
}

#p5-messages .msg-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
}

#p5-messages .msg {
  display: inline-block;
  align-items: initial;
  gap: 0;
  margin: 0 !important;
}

#p5-messages .avatar.bot-avatar {
  background: #e9f4ff !important;
  color: #1f2937 !important;
  font-size: 20px;
}

#p5-messages .system-bubble {
  max-width: min(76vw, 680px) !important;
  background: #fff !important;
  color: #222 !important;
  text-align: left;
}

#p5-messages .player-message-meta {
  display: none;
}

/* 幸运5与翻摊一致显示消息身份：机器人显示“机器人”，玩家显示自己的用户名。 */
body[data-game-type="lucky5"] #p5-messages .msg-wrap.robot:not(.notice) .msg-row,
body[data-game-type="lucky5"] #p5-messages .msg-wrap.user:not(.notice) .msg-row {
  position: relative;
  padding-top: 18px;
  align-items: flex-start;
}

body[data-game-type="lucky5"] #p5-messages .msg-wrap.robot:not(.notice) .player-message-meta,
body[data-game-type="lucky5"] #p5-messages .msg-wrap.user:not(.notice) .player-message-meta {
  position: absolute;
  top: 0;
  display: flex !important;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

body[data-game-type="lucky5"] #p5-messages .msg-wrap.robot:not(.notice) .player-message-meta {
  left: 2px;
  color: #ff1d1d;
}

body[data-game-type="lucky5"] #p5-messages .msg-wrap.user:not(.notice) .player-message-meta {
  right: 2px;
  color: #666;
}

body[data-game-type="lucky5"] #p5-messages .msg-wrap.robot:not(.notice) .player-message-time,
body[data-game-type="lucky5"] #p5-messages .msg-wrap.user:not(.notice) .player-message-time {
  display: none !important;
}

#p5-messages .msg-wrap.is-bet-cancelled .msg-text {
  opacity: .72;
  text-decoration: line-through;
}

/* 底部区域彻底使用 frontend 布局，不使用 player 的抽屉定位/peek 动画。 */
#p5-bottom-panel.drawer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 40;
  transform: none !important;
  transition: none;
  padding: 0 !important;
  max-height: none;
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#p5-bottom-panel.drawer.open,
#p5-bottom-panel.drawer.keyboard-open {
  transform: none !important;
}

#p5-virtual-keyboard.keyboard-panel {
  padding: 0;
  gap: 0;
  overflow: hidden;
  display: none;
}

#p5-bottom-panel.keyboard-open #p5-virtual-keyboard,
#p5-bottom-panel.open #p5-virtual-keyboard {
  display: block;
}

#p5-virtual-keyboard .p5-virtual-keyboard-inner {
  width: 100%;
}

#p5-virtual-keyboard .p5-key.danger {
  background: #fff !important;
}

#p5-virtual-keyboard .p5-key.primary {
  background: #ff9d00 !important;
  color: #fff !important;
}

#p5-virtual-keyboard .kb-empty {
  margin: 10px;
}

#p5-hiscontext-panel.hidden {
  display: none !important;
}

#p5-bottom-panel.recent-text-open #p5-hiscontext-panel {
  display: block !important;
}

/* 快选弹层位于所有 player 弹层之上。 */
#wuxing-generator-root {
  z-index: 10000020 !important;
}

#modalRoot {
  z-index: 10000010;
}

@media (max-width: 620px) {
  .player-floating-tools {
    right: 8px;
  }
}

/* 2026-08-17 聊天消息视觉微调：按参考图缩小头像/字号，并固定头像列与文本边界。 */
#p5-messages {
  --chat-avatar-size: 48px;
  --chat-avatar-gap: 8px;
}

#p5-messages .msg-wrap:not(.notice) {
  display: grid !important;
  grid-template-columns: var(--chat-avatar-size) minmax(0, 1fr) var(--chat-avatar-size);
  column-gap: var(--chat-avatar-gap) !important;
  align-items: start !important;
  width: 100%;
  margin: 4px 0 !important;
}

#p5-messages .msg-wrap.robot:not(.notice) > .avatar {
  grid-column: 1;
  grid-row: 1;
}

#p5-messages .msg-wrap.robot:not(.notice) > .msg-row {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}

#p5-messages .msg-wrap.user:not(.notice) > .msg-row {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

#p5-messages .msg-wrap.user:not(.notice) > .avatar {
  grid-column: 3;
  grid-row: 1;
}

#p5-messages .avatar {
  width: var(--chat-avatar-size) !important;
  height: var(--chat-avatar-size) !important;
  flex: 0 0 var(--chat-avatar-size) !important;
  border-radius: 4px !important;
}

#p5-messages .avatar.bot-avatar {
  font-size: 18px !important;
}

#p5-messages .msg-row {
  min-width: 0;
  max-width: 100% !important;
}

#p5-messages .msg {
  box-sizing: border-box;
  max-width: 100% !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  border-color: #cfd1d5 !important;
  font-size: 14px !important;
  line-height: 1.32 !important;
}

/* 玩家消息与机器人消息都限制在两侧头像列之间，长文本不再把头像挤出屏幕。 */
#p5-messages .msg-wrap.user:not(.notice) .msg-row,
#p5-messages .msg-wrap.robot:not(.notice) .msg-row {
  width: fit-content;
  max-width: 100% !important;
}

/* 退码按钮收进机器人下注回执气泡内部，作为同一个白色边框的一部分。 */
#p5-messages .msg.has-bet-actions {
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
}

#p5-messages .msg-text {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#p5-messages .receipt-actions {
  display: flex;
  width: 100%;
  margin: 6px 0 0 0 !important;
  padding: 0;
}

#p5-messages .receipt-actions .bet-cancel-btn {
  margin: 0 !important;
  padding: 0 !important;
  color: #ff8a00;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
}

#p5-messages .receipt-actions .bet-cancel-btn:hover {
  color: #e77900;
  text-decoration: underline;
}

@media (max-width: 420px) {
  #p5-messages {
    --chat-avatar-size: 46px;
    --chat-avatar-gap: 7px;
  }

  #p5-messages .msg {
    font-size: 14px !important;
  }
}

/* 幸运五开盘开奖卡：按参考图展示最近15期，期号/时间/5位号码/龙虎和。 */
#p5-messages .draw-history-message {
  white-space: normal;
  overflow: visible;
}

#p5-messages .lucky5-draw-history-card {
  width: min(360px, 100%);
  max-width: 100%;
  overflow: hidden;
}

#p5-messages .lucky5-draw-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.2;
}

#p5-messages .lucky5-draw-history-table th {
  padding: 4px 7px;
  background: #2374e8;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

#p5-messages .lucky5-draw-history-table th:nth-child(1),
#p5-messages .lucky5-draw-history-table td:nth-child(1) {
  width: 54px;
}

#p5-messages .lucky5-draw-history-table th:nth-child(2),
#p5-messages .lucky5-draw-history-table td:nth-child(2) {
  width: 65px;
}

#p5-messages .lucky5-draw-history-table td {
  padding: 5px 7px;
  border: 0;
  color: #6d6d6d;
  vertical-align: middle;
  white-space: nowrap;
}

#p5-messages .lucky5-draw-history-table tbody tr:nth-child(odd) td {
  background: #f0f0f0;
}

#p5-messages .lucky5-draw-history-table tbody tr:nth-child(even) td {
  background: #fff;
}

#p5-messages .draw-history-result {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#p5-messages .draw-history-digit,
#p5-messages .draw-history-outcome {
  display: inline-block;
  min-width: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
}

#p5-messages .draw-history-digit.digit-1,
#p5-messages .draw-history-digit.digit-3,
#p5-messages .draw-history-digit.digit-7 {
  color: #9a45c6;
}

#p5-messages .draw-history-digit.digit-6 {
  color: #ff4f8a;
}

#p5-messages .draw-history-digit.digit-8 {
  color: #55a0ff;
}

#p5-messages .draw-history-digit.digit-9 {
  color: #13c968;
}

#p5-messages .draw-history-outcome {
  margin-left: 2px;
  font-size: 16px;
}

#p5-messages .draw-history-outcome.dragon { color: #ff1493; }
#p5-messages .draw-history-outcome.tiger { color: #3159ff; }
#p5-messages .draw-history-outcome.tie { color: #13c968; }

@media (max-width: 420px) {
  #p5-messages .lucky5-draw-history-table {
    font-size: 13px;
  }
  #p5-messages .lucky5-draw-history-table th,
  #p5-messages .lucky5-draw-history-table td {
    padding-left: 5px;
    padding-right: 5px;
  }
  #p5-messages .draw-history-result {
    gap: 7px;
  }
}

/* ===== 玩家聊天室店招：复古版 / 时尚版（2026-08-20） ===== */
body:not([data-chat-style="fashion"]) .player-modern-header,
body:not([data-chat-style="fashion"]) .player-modern-market,
body:not([data-chat-style="fashion"]) .player-fashion-quick {
  display: none !important;
}

/* 复古版只保留一个三横菜单按钮，不改变原聊天主体。 */
.player-floating-tools {
  flex-direction: row;
  align-items: center;
  gap: 7px;
}

#p5-btn-menu.player-hamburger {
  width: 38px;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

#p5-btn-menu.player-hamburger > span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.player-fashion-quick {
  height: 34px;
  min-width: 52px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  color: #168fca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 12px;
  font-weight: 800;
  vertical-align: top;
  box-shadow: 0 2px 7px rgba(0,0,0,.07);
}

body[data-chat-style="fashion"] #p5-btn-menu.player-hamburger {
  width: 38px;
  min-width: 38px;
  height: 34px;
}

/* 时尚版顶部：账号/剩余 + 房间名称，压缩店招高度以适配手机端。 */
.player-modern-header {
  flex: 0 0 auto;
  min-height: 58px;
  padding: calc(7px + env(safe-area-inset-top, 0px)) 112px 7px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: #159fc8;
  color: #fff;
}

.player-modern-account {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  line-height: 1.2;
}

.player-modern-primary-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-modern-account-line,
.player-modern-balance-line,
.player-modern-room-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-modern-account-line,
.player-modern-balance-line { flex: 0 1 auto; }
.player-modern-room-line {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
}

.player-modern-account-line strong,
.player-modern-balance-line strong {
  font-size: 11.5px;
  font-weight: 800;
}

.player-modern-room-line strong {
  font-size: 13px;
  font-weight: 800;
}

body[data-chat-style="fashion"] .player-floating-tools {
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: max(11px, calc((100vw - 590px) / 2 + 11px));
  height: 34px;
  gap: 7px;
  align-items: center;
}

body[data-chat-style="fashion"] .player-floating-tools .p5-menu-wrap {
  height: 34px;
  margin: 0;
  display: flex;
  align-items: center;
}

body[data-chat-style="fashion"] .player-fashion-quick,
body[data-chat-style="fashion"] #p5-btn-menu.player-hamburger {
  margin: 0;
  box-sizing: border-box;
  align-self: center;
}

body[data-chat-style="fashion"] #p5-btn-menu.player-hamburger {
  border-color: rgba(255,255,255,.88);
  border-radius: 9px;
  background: rgba(255,255,255,.95);
  color: #168fca;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

body[data-chat-style="fashion"] .player-floating-tools .p5-menu-popup {
  top: calc(100% + 8px);
  right: 0;
  min-width: 96px;
}

/* 时尚版计时器：分钟、秒分别独立成框，右侧三角展开最近8期。 */
.player-modern-market {
  flex: 0 0 auto;
  position: relative;
  z-index: 2200;
  overflow: visible;
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid #dfe5ea;
}

.player-modern-market-toggle {
  width: 100%;
  min-height: 47px;
  padding: 0 14px;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #253447;
  text-align: left;
}

.player-modern-countdown-label {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.player-modern-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 92px;
  height: 29px;
  padding: 0;
  color: #29384b;
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.player-modern-time-box {
  width: 30px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #0f8fc5;
  border-radius: 5px;
  background: #1599d1;
  color: #fff;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .2px;
}

.player-modern-time-unit {
  color: #667487;
  font-size: 10.5px;
  font-weight: 700;
}

.player-modern-history-arrow {
  width: 22px;
  height: 22px;
  margin-left: auto;
  border: 1.5px solid #26323e;
  border-radius: 50%;
  position: relative;
  flex: 0 0 22px;
}

.player-modern-history-arrow::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #1599d1;
  transform: translate(-50%, -35%);
  transition: transform .16s ease;
}

.player-modern-market-toggle[aria-expanded="true"] .player-modern-history-arrow::after {
  transform: translate(-50%, -65%) rotate(180deg);
}

.player-modern-history {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: min(46vh, 340px);
  overflow: auto;
  padding: 0 12px 8px;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #dfe5ea;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 12px 26px rgba(32, 45, 60, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-overflow-scrolling: touch;
}

.player-modern-history-status {
  padding: 14px 4px;
  color: #8290a0;
  font-size: 11px;
  text-align: center;
}

.player-modern-history-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.player-modern-history-table {
  width: 100%;
  min-width: 390px;
  border-collapse: collapse;
  table-layout: fixed;
  color: #5d6b7b;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.player-modern-history-table th,
.player-modern-history-table td {
  height: 35px;
  padding: 2px 2px;
  border-bottom: 1px solid #edf0f3;
  text-align: center;
  white-space: nowrap;
}

.player-modern-history-table th {
  height: 32px;
  color: #47576a;
  font-size: 10.5px;
  font-weight: 700;
}

.player-modern-history-table th:first-child,
.player-modern-history-table td:first-child {
  width: 91px;
  text-align: left;
}

.player-modern-history-table th:last-child,
.player-modern-history-table td:last-child {
  width: 67px;
  text-align: left;
}

.player-modern-ball {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.player-modern-number-1 { color: #ef4040; }
.player-modern-number-2 { color: #16a155; }
.player-modern-number-3 { color: #455363; }
.player-modern-number-4 { color: #3283ea; }
.player-modern-number-5 { color: #b63cc3; }
.player-modern-output { color: #f04444; font-weight: 700; }

/* 时尚版把底部快选移到右上角，其他输入/发送/键盘功能保持原样。 */
body[data-chat-style="fashion"] #p5-btn-kuai {
  display: none !important;
}

/* 设置页中的店招选择。 */
.profile-style-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px;
  border: 1px solid #e4e9ef;
  border-radius: 12px;
  background: #fff;
}

.profile-style-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-style-heading strong { font-size: 13px; color: #1f2937; }
.profile-style-heading span { font-size: 10.5px; color: #7b8797; }

.profile-style-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-style-option {
  min-width: 0;
  min-height: 54px;
  padding: 8px 9px;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  background: #f9fbfd;
}

.profile-style-option input {
  margin: 2px 0 0;
  accent-color: #168fca;
}

.profile-style-option:has(input:checked) {
  border-color: #4aa9d4;
  background: #eff9fd;
}

.profile-style-option-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-style-option-text strong { font-size: 11.5px; color: #233245; }
.profile-style-option-text small { font-size: 9.5px; line-height: 1.35; color: #748295; }

@media (max-width: 420px) {
  .player-modern-header {
    min-height: 56px;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 105px 6px 10px;
  }
  body[data-chat-style="fashion"] .player-floating-tools {
    top: calc(11px + env(safe-area-inset-top, 0px));
    right: max(9px, calc((100vw - 590px) / 2 + 9px));
    gap: 6px;
  }
  .player-modern-account { gap: 3px; font-size: 10.5px; }
  .player-modern-primary-line { gap: 9px; }
  .player-modern-account-line strong,
  .player-modern-balance-line strong { font-size: 11px; }
  .player-modern-room-line { font-size: 12px; }
  .player-modern-room-line strong { font-size: 12.5px; }
  .player-modern-market-toggle { min-height: 45px; padding: 0 12px; gap: 7px; }
  .player-modern-countdown-label { font-size: 11.5px; }
  .player-modern-countdown { min-width: 88px; height: 27px; gap: 3px; }
  .player-modern-time-box { width: 28px; height: 25px; font-size: 13px; }
  .player-modern-time-unit { font-size: 10px; }
  .player-modern-history { padding-left: 8px; padding-right: 8px; }
  .player-modern-history-table { min-width: 360px; font-size: 10px; }
  .player-modern-history-table th:first-child,
  .player-modern-history-table td:first-child { width: 82px; }
  .player-modern-history-table th:last-child,
  .player-modern-history-table td:last-child { width: 61px; }
  .player-modern-ball { width: 22px; height: 22px; font-size: 10.5px; }
  .profile-style-options { grid-template-columns: 1fr; }
}

/* 下注发送即时反馈：本地先显示玩家原文，后端确认后再替换成正式房间消息。 */
#p5-messages .msg-wrap.is-bet-pending .msg {
  opacity: .72;
}

#p5-messages .msg-wrap.is-bet-pending .msg-row::after,
#p5-messages .msg-wrap.is-bet-failed .msg-row::after {
  align-self: flex-end;
  margin: 0 4px 3px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

#p5-messages .msg-wrap.is-bet-pending .msg-row::after {
  content: '提交中…';
  color: #8a8a8a;
}

#p5-messages .msg-wrap.is-bet-failed .msg {
  opacity: .58;
}

#p5-messages .msg-wrap.is-bet-failed .msg-row::after {
  content: '发送失败';
  color: #c53b3b;
}
