/* ===== 游戏群聊天室 · 暗金主题 =====
 * 跟大厅同一套配色，避免两张皮。结构沿用浅色版那一版
 * （阶段流程条 / 公告卡 / 三段式底部），只是换成暗底橙字。
 * 令牌限定在 .room 作用域，不影响别处。
 */

.room {
  --rbg:     #3d070b;
  --rbg2:    #2a0508;
  --rcard:   #2c1a17;
  --rcard2:  #3a231e;
  --rline:   #4a2119;
  --rline2:  #381814;
  --rlineor: #9a6e2a88;
  --rtext:   #ffeeda;
  --rdim:    #d8b79a;
  --rfaint:  #a8836b;
  --ror:     #e8b64c;
  --ror-lt:  #f8e3ab;
  --ror-bg:  #3a2318;
  --rred:    #ff8d8d;
  --rgreen:  #5fd6a0;

  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  max-width: 620px; margin: 0 auto;
  background:
    radial-gradient(560px 280px at 50% -3%, #b82b3455 0%, transparent 70%),
    repeating-linear-gradient(45deg, #ffffff05 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #5c0d13 0%, var(--rbg) 45%, var(--rbg2) 100%);
  color: var(--rtext);
  position: relative;
}

/* ---------- 顶栏 ---------- */
.room .rtop {
  flex: none; position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  background: #2a0508f2;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.room .rtop::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rlineor) 20%, var(--rlineor) 80%, transparent);
}
.room .rtop .back {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 13px 6px 9px; border-radius: 999px;
  background: linear-gradient(180deg, #3a211c, #241514);
  border: 1px solid var(--rline);
  font-size: 13px; font-weight: 600; color: var(--rtext);
}
.room .rtop .tt { flex: 1; min-width: 0; text-align: center; }
.room .rtop .tt b { display: block; font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.room .rtop .tt small { color: var(--rfaint); font-size: 10.5px; }
.room .rtop .rgt { display: flex; align-items: center; gap: 7px; }
.room .rtop .ico {
  width: 30px; height: 30px; border-radius: 999px;
  background: linear-gradient(180deg, #3a211c, #241514);
  border: 1px solid var(--rline); color: var(--rdim);
  font-size: 13px; display: grid; place-items: center;
}
.room .rtop .bal {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px 6px 9px; border-radius: 999px;
  background: linear-gradient(180deg, #2c1a17, #1a0f0e);
  border: 1px solid var(--rlineor);
  font-size: 13.5px; font-weight: 800; color: var(--ror-lt);
  font-variant-numeric: tabular-nums;
}

/* ---------- 阶段流程条 + 倒计时 ---------- */
.room .stepsrow {
  flex: none; display: flex; align-items: center;
  background: #2a0f0de6; border-bottom: 1px solid var(--rline);
}
.room .steps {
  flex: 1; min-width: 0; display: flex; gap: 4px;
  padding: 8px 4px 8px 10px; overflow-x: auto;
  background: none; border: 0;
}

/* 独立倒计时，不随流程条横向滚动 */
.room .tmr {
  flex: none; display: flex; align-items: baseline; gap: 1px;
  min-width: 62px; justify-content: center;
  margin: 6px 10px 6px 6px; padding: 5px 11px 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, #221a0e, #17120a);
  border: 1px solid var(--rlineor);
  font-variant-numeric: tabular-nums;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.room .tmr .n {
  font-size: 21px; font-weight: 900; line-height: 1; color: var(--ror-lt);
  letter-spacing: -.5px;
}
.room .tmr .u { font-size: 11px; font-weight: 700; color: #a0834f; }
/* 最后 5 秒转红并呼吸 */
.room .tmr.hot {
  background: linear-gradient(180deg, #2a1418, #1c0e11);
  border-color: #8a3844;
  box-shadow: 0 0 14px -2px #ef607666;
  animation: tmrPulse 1s ease-in-out infinite;
}
.room .tmr.hot .n { color: #ff8f9c; }
.room .tmr.hot .u { color: #a05a63; }
@keyframes tmrPulse { 50% { transform: scale(1.06); } }
.room .tmr.idle { opacity: .45; }
.room .tmr.idle .n { color: var(--rfaint); font-size: 17px; }

/* 进度条：跟着倒计时排空 */
.room .prog {
  flex: none; height: 3px; background: #2a0f0d;
  border-bottom: 1px solid var(--rline);
}
.room .prog i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #f8e3ab, #e8b64c);
  box-shadow: 0 0 8px #ff9a1f77;
  transition: width 1s linear;
}
.room .prog i.hot {
  background: linear-gradient(90deg, #ffb0b0, #e0555f);
  box-shadow: 0 0 8px #e0555f77;
}
.room .steps::-webkit-scrollbar { height: 0; }
.room .steps .st {
  flex: none; position: relative;
  padding: 7px 14px 8px; border-radius: 9px;
  font-size: 12.5px; font-weight: 700; color: var(--rfaint);
  white-space: nowrap; transition: color .2s, background .2s;
}
.room .steps .st.done { color: var(--rdim); }
.room .steps .st.on { color: var(--ror-lt); background: var(--ror-bg); }
.room .steps .st.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, #f8e3ab, #e8b64c);
  box-shadow: 0 0 8px #e8b64c66;
}
.room .steps .st .cd { margin-left: 5px; font-variant-numeric: tabular-nums; font-size: 11.5px; opacity: .9; }

/* ---------- 置顶公告 ---------- */
.room .pin {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 7px 13px; font-size: 11.5px; color: #cdb383;
  background: #3a2310; border-bottom: 1px solid #7a5a1a88;
}
.room .pin .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 消息流 ---------- */
.room .feed {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 14px 12px 6px;
  -webkit-overflow-scrolling: touch;
}
.room .feed::-webkit-scrollbar { width: 0; }

.room .msg { margin-bottom: 15px; animation: msgIn .22s ease-out both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }

.room .msg.sys { text-align: center; }
.room .msg.sys span {
  display: inline-block; padding: 4px 13px; border-radius: 999px;
  background: #ffffff08; border: 1px solid var(--rline);
  color: var(--rfaint); font-size: 11.5px; max-width: 88%;
}

/* 发言（机器人 / 其他玩家 / 我） */
.room .msg.line { display: flex; gap: 9px; }
.room .msg.line .av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #fff;
  box-shadow: 0 2px 8px #0009;
  border: 2px solid #4a2119;
}
.room .msg.line .av.botav {
  background: radial-gradient(circle at 50% 30%, #fff3cf, #e8b64c 60%, #a9731c);
  font-size: 19px; border-color: #7a5a1a;
}
.room .msg.line .body { flex: 1; min-width: 0; }
.room .msg.line .who { font-size: 12px; color: var(--ror-lt); font-weight: 600; margin-bottom: 5px; }
.room .msg.line .bub {
  /* 右边留白，避免被悬浮的 🏆🎁 压住 */
  display: inline-block; max-width: 82%;
  padding: 10px 13px; border-radius: 3px 13px 13px 13px;
  background: linear-gradient(165deg, var(--rcard2), var(--rcard));
  border: 1px solid var(--rline);
  box-shadow: 0 2px 8px #0007, inset 0 1px 0 #ffffff0a;
  font-size: 13.5px; line-height: 1.65; color: var(--rtext);
  word-break: break-word;
}
.room .msg.line .bub b { color: var(--ror-lt); }
.room .msg.line .tsp { display: block; font-size: 10.5px; color: #4a4b55; margin-top: 5px; }
.room .msg.line.self .who { color: var(--rgreen); }
.room .msg.line.self .bub {
  background: linear-gradient(165deg, #14211c, #101815);
  border-color: #1f5340;
}

/* 只有一个数字的下注消息 */
.room .bub.betnum {
  min-width: 52px; text-align: center;
  font-size: 19px; font-weight: 900; color: var(--ror-lt);
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
  padding: 8px 16px;
}
.room .bub.betnum.shove { color: #ff8f6b; }
.room .bub.betnum.cancel { color: var(--rfaint); text-decoration: line-through; }

/* 结构化公告卡 */
.room .botcard { padding: 0 !important; overflow: hidden; min-width: 210px; }
.room .botcard .ct {
  padding: 11px 14px; font-size: 14px; font-weight: 800; color: var(--ror-lt);
  background: linear-gradient(180deg, #221a0e, #1a1610);
  border-bottom: 1px solid var(--rline);
}
.room .botcard .cb { padding: 11px 14px; }
.room .botcard .kv { display: flex; align-items: baseline; gap: 10px; font-size: 13px; line-height: 2; }
.room .botcard .kv .k { color: var(--rdim); }
.room .botcard .kv .v {
  margin-left: auto; font-weight: 800; color: var(--rtext);
  font-variant-numeric: tabular-nums;
}
.room .botcard .kv .v.blue { color: var(--ror-lt); }
.room .botcard .kv .v.red { color: var(--rred); }
.room .botcard .note2 { margin-top: 7px; font-size: 12px; color: var(--rdim); line-height: 1.6; }

/* 失败提示 */
.room .bub.warn {
  background: linear-gradient(165deg, #241315, #1a1012);
  border-color: #6b2630; color: #f0aab1;
}
.room .bub.warn b { color: #ff9aa8; }

/* ---------- 横幅 ---------- */
.room .gbanner {
  position: relative; overflow: hidden;
  border-radius: 13px; padding: 20px 16px; text-align: center;
  background: radial-gradient(320px 110px at 50% 0%, #7d5a16 0%, #2e2109 62%, #171004 100%);
  border: 1.5px solid #7a4508;
  box-shadow: 0 8px 26px -8px #000d, inset 0 1px 0 #ffe9b233;
}
.room .gbanner::before {
  content: ""; position: absolute; inset: 4px; border-radius: 9px;
  border: 1px solid #d9b45c33; pointer-events: none;
}
.room .gbanner::after {
  content: ""; position: absolute; top: -40%; left: -60%;
  width: 34%; height: 180%;
  background: linear-gradient(90deg, transparent, #ffffff33, transparent);
  transform: skewX(-18deg);
  animation: sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
.room .gbanner .k { font-size: 30px; line-height: 1; margin-bottom: 7px; filter: drop-shadow(0 3px 8px #000a); }
.room .gbanner .t {
  font-size: 24px; font-weight: 900; letter-spacing: 4px;
  background: linear-gradient(177deg, #ffe4b8, #ffb650 22%, #ff9a1f 48%, #c4610a 72%, #ffcf8a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px #000a);
}
.room .gbanner .s { font-size: 11px; color: #b39763; margin-top: 5px; letter-spacing: 3px; }
.room .gbanner.stop {
  background: radial-gradient(320px 110px at 50% 0%, #6e2525 0%, #341212 62%, #1c0a0a 100%);
  border-color: #8a3838;
}
.room .gbanner.stop::before { border-color: #e0616a33; }
.room .gbanner.stop .t {
  background: linear-gradient(177deg, #ffe3e3, #ef7d88 30%, #c23e4c 60%, #8a2a32 80%, #e78a94 100%);
  -webkit-background-clip: text; background-clip: text;
}
.room .gbanner.stop .s { color: #b07a7a; }

/* ---------- 红包卡片 ---------- */
.room .packet {
  position: relative; width: 252px; border-radius: 13px; overflow: hidden;
  background: linear-gradient(162deg, #ef5a5f 0%, #d8383f 45%, #b8272f 100%);
  box-shadow: 0 8px 22px -6px #000a, inset 0 1px 0 #ffffff33;
  transition: transform .12s;
}
.room .packet::after {
  content: ""; position: absolute; top: -40%; left: -60%;
  width: 30%; height: 180%;
  background: linear-gradient(90deg, transparent, #ffffff2e, transparent);
  transform: skewX(-18deg);
  animation: sheen 3.2s ease-in-out infinite;
  pointer-events: none;
}
.room .packet:active { transform: scale(.97); }
.room .packet .top { display: flex; align-items: center; gap: 11px; padding: 15px 13px; }
.room .packet .seal {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: linear-gradient(160deg, #ffe9a8, #e0b84e);
  display: grid; place-items: center; font-size: 17px;
  box-shadow: 0 3px 8px #0006, inset 0 1px 0 #fff7dd;
}
.room .packet .top .w { flex: 1; min-width: 0; color: #fff; }
.room .packet .top .w b { display: block; font-size: 14.5px; font-weight: 800; }
.room .packet .top .w small { font-size: 11px; opacity: .86; }
.room .packet .foot {
  padding: 7px 13px; font-size: 11px;
  background: #f4e6c8; color: #8a6a2a; font-weight: 700;
}
.room .packet.done { filter: grayscale(.55) brightness(.75); }
.room .packet.done .foot { background: #d9d3c6; color: #7a7266; }

/* 牌型徽章 */
.room .htag {
  display: inline-block; padding: 1.5px 8px; border-radius: 5px;
  font-size: 10.5px; font-weight: 800; border: 1px solid;
}
.room .htag.lv0 { color: #9aa8bc; border-color: #3a4759; }
.room .htag.lv1 { color: #ffd98a; border-color: #8a6a1c; }
.room .htag.lv2 { color: #8fe5c0; border-color: #1f6d4b; }
.room .htag.lv3 { color: #9fc8ff; border-color: #2a5c9c; }
.room .htag.lv4 { color: #c9a6ff; border-color: #5a3a9c; }
.room .htag.lv5 { color: #ffb37a; border-color: #9c5a2a; }
.room .htag.lv6 { color: #ff9aa8; border-color: #9c2a3a; }
.room .htag.lv7 { color: #fff; border-color: #c0303e; background: #c0303e55; }

/* ---------- 闲家包名单 ---------- */
.room .namelist { font-size: 12.5px; line-height: 1.9; }
.room .namelist .hd { color: var(--ror-lt); font-weight: 800; margin-bottom: 5px; }
.room .namelist .n { color: var(--rdim); }
.room .namelist .n b { color: var(--rtext); font-weight: 700; margin-left: 5px; font-variant-numeric: tabular-nums; }
.room .namelist .fail {
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--rline);
  color: var(--rred);
}
.room .namelist .fail .hd { color: var(--rred); }

/* ---------- 成绩榜 ---------- */
.room .board {
  border-radius: 12px; overflow: hidden;
  background: var(--rcard); border: 1px solid var(--rlineor);
  box-shadow: 0 6px 20px -8px #000c;
}
.room .board .bh {
  padding: 11px 13px; font-size: 13px; font-weight: 800; color: var(--ror-lt);
  background: linear-gradient(90deg, #221a0e, #17171c);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--rline);
}
.room .board .bh .pool { margin-left: auto; font-size: 11px; color: var(--rfaint); font-weight: 500; }
.room .board .br {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-top: 1px solid var(--rline2); font-size: 12.5px;
}
.room .board .br.banker { background: #2a141a44; }
.room .board .br .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .board .br .nm.mine { color: var(--ror-lt); font-weight: 800; }
.room .board .br .amt { font-variant-numeric: tabular-nums; color: var(--rdim); width: 52px; text-align: right; }
.room .board .br .net { font-variant-numeric: tabular-nums; font-weight: 800; width: 76px; text-align: right; }
.room .board .br .net.win { color: var(--rgreen); }
.room .board .br .net.lose { color: var(--rred); }
.room .board .br .net.draw { color: var(--rfaint); }
.room .board .bf { padding: 8px 13px; font-size: 11px; color: var(--rfaint); border-top: 1px solid var(--rline2); }

/* ---------- 右侧悬浮按钮 ---------- */
.room .sidebtns {
  position: absolute; right: 10px; top: 46%; z-index: 20;
  display: flex; flex-direction: column; gap: 10px;
}
.room .sidebtns button {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(180deg, #212129, #14141a);
  border: 1px solid var(--rlineor);
  box-shadow: 0 4px 14px -4px #000c;
  font-size: 21px; display: grid; place-items: center;
  transition: transform .12s;
}
.room .sidebtns button:active { transform: scale(.92); }

/* ---------- 底部提示条 ---------- */
.room .hintbar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; font-size: 12px; color: #cdb383;
  background: #3a2310; border-top: 1px solid #7a5a1a88;
}
.room .hintbar .i { font-size: 13px; color: var(--ror); }
.room .hintbar b { font-weight: 800; color: var(--ror-lt); }

/* ---------- 输入区 ---------- */
.room .dock {
  flex: none; display: flex; align-items: center; gap: 9px;
  padding: 10px 12px calc(10px + var(--safe-b));
  background: #2a0f0d; border-top: 1px solid var(--rline);
}
.room .dock .tool {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; color: var(--ror);
}
.room .dock input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px;
  background: #1f1210; border: 1px solid var(--rline); color: var(--rtext);
  font: inherit; font-size: 14px;
  box-shadow: inset 0 1px 3px #0006;
  -moz-appearance: textfield;
}
.room .dock input::placeholder { color: var(--rfaint); }
.room .dock input::-webkit-outer-spin-button,
.room .dock input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.room .dock input:focus { outline: none; border-color: var(--ror); box-shadow: 0 0 0 3px #e8b64c1f; }
.room .dock .send {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: linear-gradient(177deg, #fff6dd, #f6dfa4 20%, #e8b64c 48%, #a9731c 80%);
  color: #4a2a02; font-size: 19px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 3px 12px -2px #e8b64c66, inset 0 1px 0 #fff8e2;
  transition: transform .12s;
}
.room .dock .send:active { transform: scale(.92); }

/* 快捷金额 */
.room .quickbar {
  flex: none; display: flex; gap: 7px; overflow-x: auto;
  padding: 9px 12px 0; background: #2a0f0d;
}
.room .quickbar::-webkit-scrollbar { height: 0; }
.room .quickbar button {
  flex: none; min-width: 44px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #3a211c, #241514);
  border: 1px solid var(--rlineor); color: var(--rdim);
  transition: transform .12s;
}
.room .quickbar button:active { transform: scale(.93); }
.room .quickbar button.shove { border-color: #8a3a1c; color: #ff9a6b; background: linear-gradient(180deg, #2a1a12, #1a1210); }
.room .quickbar button.cancel { color: var(--rfaint); }
.room .quickbar button.redo { border-color: #8a3a44; color: #ff8f9c; background: linear-gradient(180deg, #2a1418, #1a1012); }

/* ---------- 红包详情浮层 ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 90;
  background: #3d070b; display: flex; flex-direction: column;
}
.sheet[hidden] { display: none !important; }
.sheet .sh {
  flex: none; position: relative; padding: 18px 16px 22px; text-align: center;
  background: linear-gradient(165deg, #e5484d, #b92b35);
}
.sheet .sh .close { position: absolute; left: 14px; top: 16px; font-size: 20px; color: #fff; }
.sheet .sh .av {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 9px;
  background: #ffffff22; display: grid; place-items: center; font-size: 23px;
  border: 2px solid #ffffff55;
}
.sheet .sh b { color: #fff; font-size: 15px; }

.sheet .mymine {
  flex: none; padding: 20px 16px 17px; text-align: center;
  background: linear-gradient(180deg, #3a2318, #221410);
  border-bottom: 1px solid #4a3a1288;
}
.sheet .mymine[hidden] { display: none !important; }
.sheet .mymine .lbl { font-size: 11.5px; color: #b39763; letter-spacing: 1px; }
.sheet .mymine .amt {
  margin-top: 4px; font-size: 40px; font-weight: 900; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(177deg, #ffe4b8, #ffb650 22%, #ff9a1f 48%, #c4610a 75%, #ffcf8a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 9px #000a);
}
.sheet .mymine .meta2 {
  margin-top: 9px; font-size: 12.5px; color: #d8b79a;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.sheet .mymine .meta2 b { color: #ffeeda; }
.sheet .mymine .htag {
  display: inline-block; padding: 1.5px 8px; border-radius: 5px;
  font-size: 10.5px; font-weight: 800; border: 1px solid;
  color: #ffd98a; border-color: #8a6a1c;
}

.sheet .meta {
  flex: none; display: flex; padding: 11px 16px; font-size: 12px;
  color: #a8836b; background: #241512; border-bottom: 1px solid #4a2119;
}
.sheet .meta span:last-child { margin-left: auto; }
.sheet .rows { flex: 1; overflow-y: auto; background: #241512; }
.sheet .rows::-webkit-scrollbar { width: 0; }
.sheet .gr {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px; border-bottom: 1px solid #3a1c17;
}
.sheet .gr .av2 {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff;
}
.sheet .gr .w { flex: 1; min-width: 0; }
.sheet .gr .w b { display: block; font-size: 13.5px; font-weight: 600; color: #ffeeda; }
.sheet .gr .w small {
  font-size: 10.5px; color: #a8836b;
  display: flex; align-items: center; gap: 6px; margin-top: 3px;
}
.sheet .gr .w small .htag {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  font-size: 10px; font-weight: 800; border: 1px solid;
}
.sheet .gr .w small .htag.lv0 { color: #9aa8bc; border-color: #3a4759; }
.sheet .gr .w small .htag.lv1 { color: #ffd98a; border-color: #8a6a1c; }
.sheet .gr .w small .htag.lv2 { color: #8fe5c0; border-color: #1f6d4b; }
.sheet .gr .w small .htag.lv3 { color: #9fc8ff; border-color: #2a5c9c; }
.sheet .gr .w small .htag.lv4 { color: #c9a6ff; border-color: #5a3a9c; }
.sheet .gr .w small .htag.lv5 { color: #ffb37a; border-color: #9c5a2a; }
.sheet .gr .w small .htag.lv6 { color: #ff9aa8; border-color: #9c2a3a; }
.sheet .gr .w small .htag.lv7 { color: #fff; border-color: #c0303e; background: #c0303e55; }
.sheet .gr .v { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffd08a; }
.sheet .gr.mine { background: #e8b64c14; }
.sheet .gr.mine .w b { color: #ffd08a; }
.sheet .empty { padding: 40px 0; text-align: center; color: #a8836b; font-size: 13px; }

/* ---------- 牌型与赔率表 ---------- */
.sheet .paybody { flex: 1; overflow-y: auto; background: #241512; padding: 14px 14px 30px; }
.sheet .paybody::-webkit-scrollbar { width: 0; }

.sheet .pt-h {
  margin: 4px 0 9px; text-align: center;
  font-size: 13px; font-weight: 900; letter-spacing: 3px; color: #ffd08a;
  position: relative;
}
.sheet .pt-h::before, .sheet .pt-h::after {
  content: ""; position: absolute; top: 50%; width: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, #c9973a99);
}
.sheet .pt-h::before { left: 8%; }
.sheet .pt-h::after { right: 8%; transform: scaleX(-1); }

.sheet .pt {
  border: 1px solid #6a3a1e; border-radius: 8px; overflow: hidden;
  background: linear-gradient(170deg, #3a1a16, #2a1210);
}
.sheet .pt-r {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 11px; border-bottom: 1px solid #4a2119;
}
.sheet .pt-r:last-child { border-bottom: 0; }
.sheet .pt-r.imm { background: #1f6d4b1f; }
.sheet .pt-i { flex: none; width: 30px; text-align: center; font-size: 15px; padding: 2px 0; }
.sheet .pt-n { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: #ffeeda; }
.sheet .pt-n em {
  display: block; margin-top: 2px;
  font-style: normal; font-size: 10.5px; font-weight: 400; color: #a8836b;
}
.sheet .pt-m {
  flex: none; width: 50px; text-align: right;
  font-size: 20px; font-weight: 900; color: #ffb650;
  font-variant-numeric: tabular-nums; text-shadow: 0 2px 4px #000a;
}
.sheet .pt-m i { font-style: normal; font-size: 11px; margin-left: 2px; color: #d89a4a; }
.sheet .pt-m.sm { font-size: 13px; color: #8fe5c0; }

/* 普通牌型：九个点数球 */
.sheet .pt-pts {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px;
  padding: 2px 0 4px;
}
.sheet .pt-p { text-align: center; }
.sheet .pt-p b {
  display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto;
  border-radius: 50%; font-size: 17px; font-weight: 900; color: #0e2240;
  background: radial-gradient(70% 70% at 35% 28%, #a8d4ff, #2f7fd4 55%, #1b4f8e);
  box-shadow: inset 0 2px 0 #ffffffaa, inset 0 -3px 6px #00000055, 0 3px 7px -2px #000a;
}
.sheet .pt-p span { display: block; margin-top: 4px; font-size: 11px; color: #d8b79a; }

.sheet .pt-note {
  margin-top: 14px; padding: 11px 12px; border-radius: 8px;
  background: #1c100e; border: 1px solid #4a2119;
  font-size: 11.5px; line-height: 1.85; color: #a8836b;
}
.sheet .pt-note b { color: #ffd08a; }

/* ---------- 结算明细卡 ---------- */
.room .detail {
  border: 1px solid var(--rline); border-radius: 10px; overflow: hidden;
  background: linear-gradient(170deg, #3a1a16, #2a1210);
}
.room .detail .dh {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-bottom: 1px solid var(--rline);
  background: #ffffff08;
}
.room .detail .dh b { flex: 1; font-size: 13.5px; color: #ffeeda; }
.room .detail .pill {
  padding: 2px 8px; border-radius: 5px; font-size: 10.5px; font-weight: 800; border: 1px solid;
}
.room .detail .pill.eat  { color: #8fe5c0; border-color: #1f6d4b; }
.room .detail .pill.pay  { color: #ff9aa8; border-color: #9c2a3a; }
.room .detail .pill.draw { color: #9aa8bc; border-color: #3a4759; }

.room .detail .dbk { padding: 10px 12px 2px; font-size: 12.5px; color: #a8836b; }
.room .detail .dbk b { color: #ffd08a; font-size: 13.5px; }
.room .detail .dbk .sub { margin-top: 5px; font-size: 11.5px; color: #d8b79a; }

.room .detail .dnet {
  padding: 8px 12px 12px; display: flex; align-items: baseline; gap: 9px;
  border-bottom: 1px dashed var(--rline);
}
.room .detail .dnet span { font-size: 11.5px; color: #a8836b; }
.room .detail .dnet b {
  font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; color: #d8b79a;
}
.room .detail .dnet b.win  { color: #4ad98a; }
.room .detail .dnet b.lose { color: #ff7a8a; }

.room .detail .dgrid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rline);
}
.room .detail .dc {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 8px 12px; background: #2a1210;
}
.room .detail .dc:last-child { grid-column: 1 / -1; }
.room .detail .dc span { font-size: 11.5px; color: #a8836b; }
.room .detail .dc b {
  font-size: 13px; font-weight: 800; color: #ffeeda; font-variant-numeric: tabular-nums;
}

.room .detail .dscore {
  padding: 9px 12px; font-size: 11.5px; color: #a8836b;
  border-top: 1px solid var(--rline);
}
.room .detail .dscore b { color: #ffd08a; font-variant-numeric: tabular-nums; }

.room .detail .dtrend { padding: 4px 12px 12px; border-top: 1px dashed var(--rline); }
.room .detail .th {
  display: flex; align-items: center; margin: 9px 0 7px;
  font-size: 11.5px; color: #a8836b;
}
.room .detail .th em { margin-left: auto; font-style: normal; font-size: 10.5px; color: #7a5c48; }
.room .detail .tg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.room .detail .tc {
  padding: 5px 0; border-radius: 5px; text-align: center;
  font-size: 11px; font-weight: 700;
  background: #ffffff0a; border: 1px solid transparent; color: #a8836b;
}
.room .detail .tc.lv1 { color: #ffd98a; } .room .detail .tc.lv2 { color: #8fe5c0; }
.room .detail .tc.lv3 { color: #9fc8ff; } .room .detail .tc.lv4 { color: #c9a6ff; }
.room .detail .tc.lv5 { color: #ffb37a; } .room .detail .tc.lv6 { color: #ff9aa8; }
.room .detail .tc.lv7 { color: #fff; background: #c0303e55; }
.room .detail .tc.now { border-color: #c9973a; background: #e8b64c1f; }
