:root {
  --felt: #0e6d5c;
  --felt-dark: #08493e;
  --gold: #f0c56a;
  --gold-deep: #a56b24;
  --ink: #3a2416;
  --cream: #f7edd6;
  --panel: #f3e2bc;
  --red: #c4472d;
  --green: #1f9d55;
  --purple: #7a45c4;
  --blue: #2d78d6;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: #120d0a;
  overflow: hidden;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
#frame {
  position: fixed;
  inset: 0;
  overflow: hidden;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}
#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1280px;
  height: 720px;
  transform-origin: center center;
  overflow: hidden;
  color: var(--ink);
  background: #1b140f;
}
.view { position: absolute; inset: 0; display: none; }
.view.show { display: block; }
.hidden { display: none !important; }
/* 麻将入口、机器人暂时关闭，相关节点仍保留在页面里 */
.create-side .tab-2,
.create-side .tab-3,
#mj-opts,
.niu-bot-row,
#btn-practice { display: none !important; }
#dlg-create.niu-create .create-body { padding-top: 8px; }

.btn {
  border: 0;
  border-radius: 999px;
  color: #fff;
  padding: 10px 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 rgba(0,0,0,.2);
}
.btn-gold { background: linear-gradient(#ffe38a, #e0a02a); color: #6a3b05; }
.btn-green { background: linear-gradient(#5ed67a, #1d8a45); }
.btn-purple { background: linear-gradient(#b07bef, #6d35b8); }
.btn-red { background: linear-gradient(#f0715d, #c13322); }
.btn-blue { background: linear-gradient(#6aafff, #2467c9); }
.btn-plain { background: transparent; color: #8a6240; box-shadow: none; }
.btn.xl { width: 280px; height: 58px; font-size: 22px; margin: 8px auto; display: block; }

#view-login { background: linear-gradient(#8fd0ef, #d7b48a 42%, #c48a52); }
.login-scene { position: absolute; inset: 0; }
.window {
  position: absolute; right: 40px; top: 36px; width: 420px; height: 250px;
  background: linear-gradient(#b7e6ff, #7ec8ea);
  border: 12px solid #f4efe6; border-radius: 8px;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.4);
}
.window:after {
  content: ""; position: absolute; left: 30px; bottom: 20px; width: 80px; height: 120px;
  background: #f7f3ea; border-radius: 40px 40px 6px 6px; box-shadow: 120px 10px 0 #fff8ea;
}
.sofa {
  position: absolute; left: 70px; bottom: 90px; width: 360px; height: 160px;
  background: linear-gradient(#8d4d62, #623246); border-radius: 24px 24px 10px 10px;
}
.logo-plate {
  position: absolute; left: 50%; top: 78px; transform: translateX(-50%);
  width: 460px; text-align: center; color: #fff8e6;
  background: linear-gradient(#8a2f22, #5c1c14);
  border: 4px solid #e8c36a; border-radius: 18px; padding: 18px 20px 12px;
  box-shadow: 0 12px 0 rgba(80, 30, 10, .25);
}
.crown { font-size: 48px; font-weight: 800; letter-spacing: 4px; text-shadow: 0 3px 0 #3a120c; }
.logo-plate p { margin: 4px 0 0; color: var(--gold); letter-spacing: 3px; }
.login-box, .panel {
  position: absolute; left: 50%; top: 280px; transform: translateX(-50%);
  width: 460px; text-align: center;
}
.panel {
  background: linear-gradient(#fff6df, #f0d7a4);
  border-radius: 16px; padding: 18px 28px 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  text-align: left;
}
.panel h2, .dialog h2 { margin: 0 0 12px; text-align: center; color: #7a3b12; }
.panel label, .dialog label { display: block; margin: 8px 0; color: #8a5a2b; }
.panel input, .dialog input, .dialog select, .dialog textarea {
  width: 100%; margin-top: 4px; border: 0; border-radius: 8px;
  background: #5c5148; color: #fff; padding: 10px 12px;
}
.dialog textarea { min-height: 90px; resize: none; }
.row-links { display: flex; justify-content: space-between; }
.remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px !important;
  color: #5c2e0e !important;
  font-weight: 700;
  user-select: none;
}
.remember input {
  width: 18px !important;
  height: 18px;
  margin: 0 !important;
  accent-color: #c4472d;
  background: #fff !important;
}
.link { background: none; border: 0; color: #7a4b22; text-decoration: underline; padding: 0; }
.agree { display: block; margin-top: 8px; color: #3d2a1c; font-size: 13px; }
.server-line {
  position: absolute; right: 16px; top: 12px; color: #fff; font-size: 13px;
}
.server-line input { width: 220px; border: 0; border-radius: 8px; padding: 4px 8px; background: rgba(0,0,0,.35); color: #fff; }
.ver { position: absolute; left: 16px; top: 8px; color: #fff; margin: 0; }
.notice {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 8px 16px; background: rgba(0,0,0,.55); color: #f3e6c8; font-size: 13px;
}

#view-hall {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 210, 120, .18), transparent 28%),
    linear-gradient(#2a140f, #120c0a 40%, #1b120e);
}
.hall-top, .club-top, .table-top {
  height: 84px; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
}
.who-btn {
  display: flex; gap: 8px; align-items: center; background: rgba(0,0,0,.45);
  color: #fff; border: 0; border-radius: 12px; padding: 6px 10px;
}
.who-btn b, .who-btn small { display: block; text-align: left; }
.who-btn small { color: #e7c98a; }
.avatar {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; font-weight: 700; background: #e07a3d; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.avatar.xl { width: 84px; height: 84px; font-size: 32px; margin: 0 auto 8px; }
.balances { display: flex; gap: 8px; }
.bal {
  background: rgba(0,0,0,.45); color: #fff; border-radius: 999px; padding: 6px 12px;
}
.bal.card b { color: #d7b4ff; }
.bal.score b { color: #ffd56a; }
.brand { margin-left: auto; text-align: center; color: #ffe7a8; font-size: 28px; font-weight: 800; text-shadow: 0 3px 0 #6a3a12; }
.brand small, .mode { display: block; font-size: 13px; letter-spacing: 2px; color: #ffd56a; font-weight: 400; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.top-actions button, .hall-bottom button, .club-top button, .table-top button, .club-bottom button {
  background: rgba(0,0,0,.35); color: #ffe7bf; border: 1px solid rgba(240, 197, 106, .4);
  border-radius: 12px; padding: 8px 12px;
}
.mode { background: rgba(0,0,0,.35); padding: 8px 12px; border-radius: 12px; }
.hall-main {
  position: absolute; left: 180px; right: 40px; top: 160px; display: flex; justify-content: center; gap: 28px;
}
.entry {
  width: 250px; height: 320px; border-radius: 22px; border: 3px solid #f0d48a;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
  box-shadow: 0 16px 0 rgba(0,0,0,.2);
}
.entry strong { font-size: 28px; }
.entry.create { background: linear-gradient(160deg, #8a4bdb, #4c2a86 60%, #2a1848); }
.entry.join { background: linear-gradient(160deg, #3d8dff, #204e9a 60%, #172848); }
.entry.club { background: linear-gradient(160deg, #f0b13a, #c47a16 55%, #6a3e10); }
.side-list {
  position: absolute; left: 0; top: 100px; bottom: 78px; width: 168px;
  background: linear-gradient(#6d3d22, #3e2114); color: #ffe7bf; padding: 12px;
  border-right: 3px solid #e8c36a;
}
.side-list h3 { margin: 0 0 8px; text-align: center; }
.room-mini, .club-item, .member-row {
  background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px; margin-bottom: 8px; color: #fff;
}
.room-mini { width: 100%; text-align: left; border: 0; color: #ffe7bf; }
.hall-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 72px;
  display: flex; gap: 8px; align-items: center; padding: 0 16px;
  background: linear-gradient(#3a2418, #1a100c); border-top: 2px solid #e8c36a;
}
.hall-bottom .shop { margin-left: auto; color: #ffe08a; font-weight: 700; }

#view-club { background: linear-gradient(#24324a, #141821 40%, #2a1b2e); color: #fff; }
#club-list { position: absolute; left: 12px; top: 90px; bottom: 90px; width: 230px; overflow: auto; }
.club-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-height: 72px; text-align: left; border: 1px solid rgba(240, 197, 106, .45);
  color: #fff; padding: 8px 10px;
}
.club-item.on { border-color: #f0c56a; background: rgba(0, 0, 0, .28); }
.club-item-text { flex: 1; min-width: 0; }
.club-item-text b { display: block; font-size: 18px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-item-text small { display: block; margin-top: 4px; color: #f0d48a; font-size: 14px; }
.club-item .avatar { width: 48px; height: 48px; border-radius: 10px; flex: none; object-fit: cover; }
#club-floor {
  position: absolute; left: 260px; right: 16px; top: 90px; bottom: 90px;
  border-radius: 16px; background:
    linear-gradient(rgba(80,40,90,.2), rgba(20,10,20,.2)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 80px, transparent 80px 82px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 80px, transparent 80px 82px);
  padding: 16px; overflow: auto;
}
.club-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78px;
  display: flex; gap: 10px; align-items: center; padding: 0 12px; background: rgba(0,0,0,.45);
}
.club-me { margin-left: auto; display: flex; align-items: center; gap: 8px; }

#view-table.show:not(.niu-room) { background: #0e6d5c; }
.table-top {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 5; height: auto; padding: 0; gap: 18px; color: #fff;
}
.room-chip, .round-chip { display: flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; text-shadow: 0 2px 2px #000; }
.room-chip img { height: 28px; width: auto; }
.room-chip button { margin-left: 6px; height: 28px; padding: 0 8px; }
.wall-chip {
  min-width: 64px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #1a3d2c;
  color: #fff; font-size: 22px; font-weight: 700;
}
.table-side {
  position: absolute; right: 10px; top: 16px; z-index: 4;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.table-side button {
  border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center;
}
.table-side img { height: 28px; width: auto; }
.table-side button img:first-child { width: 54px; height: 54px; }
#felt { position: absolute; left: 16px; right: 90px; top: 64px; bottom: 168px; }
#dock {
  position: absolute; left: 0; right: 0; bottom: 0; height: 176px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.28));
}
.my-row { display: flex; align-items: flex-end; gap: 8px; }
.center {
  position: absolute; left: 50%; top: 168px; transform: translateX(-50%);
  width: 460px; text-align: center; color: #f7e7c2;
}
.compass {
  position: relative; width: 248px; height: 156px; margin: 0 auto 10px;
  background: #0a4a3c;
  border: 0;
}
.compass .dir { position: absolute; width: 36px; height: auto; z-index: 1; }
.compass .e { right: 22px; top: 58px; }
.compass .w { left: 22px; top: 58px; }
.compass .n { left: 106px; top: 16px; }
.compass .s { left: 106px; bottom: 14px; }
.compass .wedge { position: absolute; pointer-events: none; z-index: 0; }
.compass .wedge.bottom { left: 50%; bottom: 34px; width: 118px; transform: translateX(-50%); }
.compass .wedge.top { left: 50%; top: 26px; width: 118px; transform: translateX(-50%) rotate(180deg); }
.compass .wedge.right { right: 22px; top: 50%; width: 34px; transform: translateY(-50%); }
.compass .wedge.left { left: 22px; top: 50%; width: 34px; transform: translateY(-50%); }
.ready-mark { display: block; width: 180px; height: auto; margin: 8px auto 0; }
.invite {
  width: 274px; height: 72px; margin: 8px auto 0; border: 0; padding: 0;
  background: #1d7a43;
  display: flex; align-items: center; justify-content: center;
}
.invite img { width: 180px; height: auto; }
#table-fx {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  z-index: 6; pointer-events: none;
}
#table-fx img { width: 280px; height: auto; }
.disc { display: flex; flex-wrap: wrap; gap: 3px; min-height: 36px; margin: 4px 0; justify-content: center; }
.dice-show { display: flex; justify-content: center; gap: 16px; margin: 8px 0 4px; }
.die {
  width: 54px; height: 54px; border-radius: 8px; background: #fffdf8;
  box-shadow: 0 3px 0 #c9bba4, 0 6px 10px rgba(0,0,0,.28);
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 7px; gap: 2px;
}
.die b { width: 10px; height: 10px; border-radius: 50%; margin: auto; background: transparent; }
.die b.on { background: #1b1a17; }
.dice-show.roll .die { animation: die-shake .12s linear infinite; }
@keyframes die-shake {
  50% { transform: rotate(18deg) translateY(-4px); }
}
.seat { position: absolute; color: #fff; }
.seat.top { left: 8px; right: 8px; top: 0; text-align: center; }
.seat.top .who { display: inline-flex; }
.seat.top .top-line { position: relative; min-height: 68px; margin-top: 6px; }
.seat.top .holds { justify-content: center; }
.kong-show {
  position: absolute; left: 8px; top: 62px; z-index: 6;
  display: flex; gap: 2px; align-items: flex-end;
  padding: 4px 5px; background: rgba(8, 24, 20, .82);
  border-radius: 6px; border: 1px solid rgba(255,255,255,.2);
}
.kong-show .kong-tile { padding: 0; border: 0; background: transparent; }
.kong-show button.kong-tile { cursor: pointer; }
.kong-show .kong-tile.dark { filter: brightness(0.45); }
.kong-show .tile.small { width: 46px; height: 62px; }
.kong-pick {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  z-index: 7; padding: 14px 22px 18px; text-align: center;
  background: rgba(8, 24, 20, .94); border: 2px solid #e8c36a; border-radius: 14px;
}
.kong-pick p { margin: 0 0 12px; color: #f6e2b4; font-size: 24px; letter-spacing: 2px; }
.kong-pick-row { display: flex; flex-direction: row; gap: 18px; justify-content: center; align-items: flex-end; }
.kong-pick .kong-tile { padding: 0; border: 0; background: transparent; }
.kong-pick button.kong-tile { cursor: pointer; }
.kong-pick .kong-tile.dark { filter: brightness(0.45); }
.kong-pick .tile { width: 78px; height: 108px; }
.pick-tile {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  z-index: 7; width: max-content; max-width: 760px; padding: 12px 16px 14px; text-align: center;
  background: rgba(8, 24, 20, .94); border: 2px solid #e8c36a; border-radius: 14px;
  pointer-events: auto;
}
.pick-tile p { margin: 0 0 10px; color: #f6e2b4; font-size: 22px; letter-spacing: 2px; }
.pick-tile-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pick-tile .kong-tile { position: relative; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pick-tile .tile { width: 46px; height: 64px; }
.pick-tile em {
  position: absolute; right: -4px; top: -6px; min-width: 16px; padding: 0 4px;
  border-radius: 8px; background: #e0a02a; color: #4a2a08; font-style: normal; font-size: 12px; font-weight: 700;
}
.round-result {
  position: absolute; left: 8px; right: 8px; top: 50%; transform: translateY(-50%);
  max-height: 100%; overflow: auto;
  pointer-events: auto;
  background: linear-gradient(#fff8ea, #f4e0b8); color: #3a2416;
  border: 4px solid #e8c36a; border-radius: 16px; padding: 16px 18px 14px;
}
.round-result h3 { margin: 0 0 12px; text-align: center; font-size: 22px; }
.round-row { display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 8px 0; }
.round-who { width: 150px; flex: none; }
.round-who b { display: block; font-size: 18px; }
.round-who span { font-size: 28px; font-weight: 700; }
.round-tiles { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-end; gap: 3px; min-width: 0; }
.round-tiles .tile.tiny { width: 44px; height: 62px; }
.round-meld { display: inline-flex; flex-direction: row; gap: 1px; margin-right: 8px; }
.round-result .result-actions { display: flex; justify-content: center; margin-top: 8px; }
.seat.top .melds {
  position: absolute; left: 168px; bottom: 0; z-index: 5;
  display: flex; gap: 6px;
}
.seat.left { left: 0; top: 70px; }
.seat.right { right: 0; top: 70px; text-align: right; }
.who { display: flex; gap: 6px; align-items: center; background: rgba(0,0,0,.55); color: #fff; padding: 4px 10px; border-radius: 10px; }
.who .avatar { width: 62px; height: 62px; border-radius: 10px; }
.who b, .who i { display: block; font-style: normal; }
.who em { background: #c4472d; color: #fff; border-radius: 6px; padding: 0 4px; margin-left: 4px; font-style: normal; }
.who.active { outline: 2px solid #ffe08a; }
.holds, .melds, .my-melds, .my-hand, .ops { display: flex; gap: 4px; align-items: flex-end; }
.meld-set {
  display: inline-flex; gap: 2px; padding: 4px 5px; align-items: flex-end;
  background: rgba(8, 24, 20, .82); border-radius: 6px; border: 1px solid rgba(255,255,255,.2);
}
.seat.top .meld-set .tile.small { width: 46px; height: 62px; }
.my-melds .meld-set .tile.small { width: 36px; height: 50px; }
.raise-box {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 8;
  width: 440px; padding: 22px 28px 18px; text-align: center; color: #f7f1e4;
  background: rgba(7, 48, 40, .94); border: 3px solid #e2c27a; border-radius: 18px;
}
.raise-box p { margin: 0 0 12px; font-size: 30px; letter-spacing: 2px; }
.raise-row { display: flex; align-items: center; justify-content: center; gap: 22px; }
.raise-row b { min-width: 84px; font-size: 64px; line-height: 1; color: #fff; }
.raise-minus, .raise-plus {
  width: 78px; height: 78px; border: 0; border-radius: 50%; color: #fff;
  font-size: 48px; font-weight: 800; line-height: 1;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 4px 0 rgba(0,0,0,.25);
}
.raise-minus { background: radial-gradient(circle at 40% 32%, #ffe08a, #ef8a14 68%, #c45e08); }
.raise-plus { background: radial-gradient(circle at 40% 32%, #e4ff8a, #67c31a 68%, #2f8d0c); }
.raise-ok {
  margin-top: 16px; width: 196px; height: 54px; border: 0; border-radius: 27px;
  color: #6a3b05; font-size: 26px; font-weight: 800;
  background: linear-gradient(#ffe7a0, #e29a22);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 0 #8a5a10;
}
.my-hand { flex: 1; justify-content: center; }
.ops { display: flex; gap: 8px; justify-content: center; min-height: 34px; }
.op, .vote button {
  background: linear-gradient(#ffe7a2, #e2a12d); color: #5c3208; border: 0; border-radius: 10px;
  padding: 8px 14px; font-weight: 700;
}

.tile {
  width: 52px; height: 74px; border: 0; padding: 4px; border-radius: 6px;
  background: linear-gradient(#fffef8, #f1e4c8); color: #1d1a17;
  box-shadow: 0 3px 0 #c8b89a, 0 6px 8px rgba(0,0,0,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.tile b { font-size: 24px; line-height: 1; }
.tile i { font-size: 13px; font-style: normal; }
.tile.tong b { color: #1d4e89; }
.tile.tiao b, .tile.tiao i { color: #1d7a3a; }
.tile.zhong { background: #fff; }
.tile.zhong b { color: #d1261d; font-size: 32px; }
.tile.fa b { color: #178a45; font-size: 32px; }
.tile.bai { box-shadow: inset 0 0 0 3px #2d5fbf, 0 3px 0 #c8b89a; }
.tile.bai b { color: #2457b5; font-size: 30px; }
.tile.wind b { color: #222; font-size: 28px; }
.tile.small { width: 32px; height: 44px; }
.tile.small b { font-size: 14px; }
.tile.small i { font-size: 10px; }
.tile.tiny { width: 26px; height: 36px; box-shadow: none; }
.tile.tiny b { font-size: 12px; }
.tile.tiny i { display: none; }
.tile.face, .tile.back {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  padding: 0;
}
.tile.face {
  background-color: #fbf7ee;
  background-size: 82% 82%;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px #e4d3b0, 0 2px 0 #c8b89a, 0 4px 6px rgba(0,0,0,.28);
}
.tile.back { background-image: none; box-shadow: none; }
.op.art {
  width: 92px; height: 76px; padding: 0; font-size: 0;
  background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: contain;
}
.tile.sel { transform: translateY(-12px); outline: 2px solid #ffe08a; }
.tile.draw { margin-left: 12px; }
.me-tag { position: absolute; left: 18px; bottom: -96px; max-width: 240px; z-index: 5; }
.who b { font-size: 14px; }

.result, .vote {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 760px; max-height: 420px; overflow: auto;
  background: linear-gradient(#fff8ea, #f4e0b8); color: #3a2416;
  border: 4px solid #e8c36a; border-radius: 16px; padding: 14px 16px; z-index: 3;
}
.result h3 { margin: 0 0 8px; text-align: center; }
.rr { display: grid; grid-template-columns: 120px 70px 1fr; gap: 6px; align-items: center; margin: 6px 0; }
.win { color: #c4472d; font-weight: 700; }
.lose { color: #2d78d6; font-weight: 700; }
.result ul { margin: 8px 0; padding-left: 18px; font-size: 13px; }
.result-actions { display: flex; justify-content: center; gap: 8px; }
#final-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
#final-layer:empty { display: none; }
#view-table.niu-room #final-layer { inset: 0; z-index: 22; }
#view-table.niu-room #final-layer .niu-session {
  left: 36px; right: 36px; top: 50%; max-width: 980px; max-height: 86%;
  display: flex; flex-direction: column;
  margin: 0 auto; overflow: hidden;
  background: linear-gradient(#fff8ea, #f4e0b8); box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.niu-session h3 { flex: none; }
.niu-end-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  min-height: 0; overflow: auto; flex: 1;
}
.niu-end-row {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 6px 8px; border: 1px solid rgba(90, 50, 20, .14); border-radius: 10px;
  font-size: 16px;
}
.niu-end-face .avatar { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.niu-end-row b {
  flex: 1; min-width: 0; text-align: left; font-size: 16px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.niu-end-row span:last-child { min-width: 72px; text-align: right; font-size: 22px; font-weight: 800; }
.niu-end-row.big-win { background: rgba(255, 214, 90, .28); }
.niu-big-win {
  flex: none; margin-right: 4px; padding: 1px 6px; border-radius: 8px;
  background: linear-gradient(#ffe7a0, #e29a22); color: #6a3b05;
  font-style: normal; font-size: 12px; font-weight: 800;
}
.niu-session .result-actions { flex: none; margin-top: 10px; }
.final {
  position: absolute; inset: 0; pointer-events: auto;
  background: rgba(0, 0, 0, .55);
}
.final-back {
  position: absolute; left: 16px; top: 12px; z-index: 2;
  width: 64px; height: 52px; padding: 0; border: 0; background: transparent;
}
.final-back img { width: 64px; height: 52px; object-fit: contain; }
.final-panel {
  position: absolute; left: 70px; right: 70px; top: 36px; bottom: 28px;
  background: linear-gradient(#fff8ea, #f4e0b8);
}
.final-title {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  max-width: 460px; color: #f8e7b0; font-size: 22px; letter-spacing: 2px; font-weight: 700;
  text-shadow: 0 2px 0 #6a3a12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.final .result-actions {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.final .result-actions button, .final .result-actions span {
  min-width: 132px; height: 48px; border: 0; border-radius: 24px; cursor: pointer;
  color: #fff; font-size: 22px; letter-spacing: 2px; line-height: 48px; text-align: center;
  background: #c9842a;
}
.final-cards { position: absolute; left: 28px; top: 78px; display: flex; gap: 8px; }
.final-card {
  position: relative; width: 210px; height: 468px; box-sizing: border-box;
  padding: 14px 12px 8px; color: #5c3a1e;
  background: #f4e0b8;
}
.final-owner { position: absolute; left: 6px; top: 2px; width: 42px; height: 38px; z-index: 2; }
.final-win { position: absolute; right: -6px; top: -8px; width: 54px; height: 54px; z-index: 2; }
.final-head { display: flex; gap: 8px; align-items: center; min-height: 62px; margin-bottom: 8px; }
.final-head img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.final-head b { display: block; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 1.2; }
.final-head i { display: block; max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; font-style: normal; font-size: 12px; color: #8a6844; }
.final-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 6px; font-size: 15px;
}
.final-row b { font-weight: 700; }
.final-out {
  margin: 4px 2px 0; padding: 6px 8px; background: #d7d1c6; color: #5c3a1e; font-size: 15px;
}
.final-total { margin-top: 12px; text-align: center; }
.final-total span {
  display: inline-block; color: #c8963a; font-size: 16px; letter-spacing: 2px;
}
.final-total span::before, .final-total span::after { content: " ● "; color: #e0b15a; }
.final-total b { display: block; margin-top: 2px; color: #ef3b28; font-size: 40px; line-height: 1; }
.final-share {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: 132px; height: 48px; border: 0; border-radius: 24px; cursor: pointer;
  color: #fff; font-size: 22px; letter-spacing: 4px;
  background: #c9842a;
}

#chat-pop {
  position: absolute; right: 96px; bottom: 180px; background: rgba(0,0,0,.72);
  border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 4;
}
#chat-pop button { background: #fff6df; border: 0; border-radius: 8px; padding: 6px 8px; }

#mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.dialog {
  width: 560px; background: linear-gradient(#fff8ea, #f3ddb0); border-radius: 16px;
  padding: 16px 18px 18px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.dialog.wide { width: 820px; }
.dialog .x {
  position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #d4533c; color: #fff; font-size: 22px;
}
.tabs { display: flex; gap: 8px; margin-bottom: 8px; }
.tabs label { flex: 1; background: #7a3b12; color: #fff; border-radius: 10px; padding: 8px; text-align: center; }
.opt { display: flex; gap: 14px; align-items: center; padding: 7px 0; border-bottom: 1px dashed rgba(120,70,30,.2); }
.opt span { width: 90px; color: #7a4b22; }
.cost { color: #7a3b12; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.hint { color: #7a5a32; font-size: 14px; line-height: 1.5; }
.scroll { max-height: 460px; overflow: auto; line-height: 1.55; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.profile-grid { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.avatars button { width: 36px; height: 36px; border-radius: 8px; border: 2px solid transparent; color: #fff; }
.avatars button.on { border-color: #fff; outline: 2px solid #c4472d; }
.slider { display: flex; align-items: center; gap: 8px; }
.slider input { flex: 1; }
.fees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fees label { background: #fff; border-radius: 8px; padding: 8px; text-align: center; }
#toast {
  position: absolute; left: 50%; bottom: 188px; transform: translateX(-50%);
  background: rgba(0,0,0,.82); color: #fff; padding: 10px 16px; border-radius: 999px;
  z-index: 210; display: none; max-width: 70%; text-align: center;
}
#toast.show { display: block; }
#wx-invite-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .58);
}
#wx-invite-mask.hidden { display: none; }
#wx-invite-mask .wx-invite-arrow {
  position: absolute;
  right: 14px;
  top: 10px;
  margin: 0;
  color: #fff8e4;
  font-size: 20px;
  font-weight: 800;
  text-align: right;
  line-height: 1.35;
  text-shadow: 0 2px 8px #000;
}
#wx-invite-mask .wx-invite-arrow:after {
  content: "↗";
  display: block;
  font-size: 52px;
  line-height: 1;
  color: #ffe08a;
}
#wx-invite-mask .wx-share-card {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 40px));
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  text-align: left;
}
#wx-invite-mask .wx-share-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #1a120c;
  border-radius: 8px;
}
#wx-invite-mask .wx-share-card b {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}
#wx-invite-mask .wx-share-card small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 13px;
}
#wx-invite-mask .wx-invite-note {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 132px;
  margin: 0;
  color: #ffe7bf;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}
#wx-invite-ok {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 12px 36px;
  font-size: 18px;
  font-weight: 800;
  color: #6a3b05;
  background: linear-gradient(#ffe38a, #e0a02a);
}
.empty { opacity: .8; padding: 8px; }

/* 原客户端素材 */
#view-login {
  background: #1a120c url("/res/csbimages/Login2/img_bg.jpg") center / 100% 100% no-repeat;
}
.logo-img {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  width: 340px; height: auto; pointer-events: none;
}
.login-box { top: 330px; width: 340px; z-index: 3; }
.img-btn {
  display: block; margin: 8px auto; padding: 0; border: 0;
  width: 300px; height: 72px; line-height: 72px;
  color: #fff8e4; font-size: 26px; font-weight: 800;
  background-color: transparent; background-repeat: no-repeat;
  background-position: center; background-size: 100% 100%;
}
#btn-guest, html.wx #btn-guest, html:not(.wx) #btn-guest {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: transparent;
  background-color: transparent;
  background-image: url("/res/csbimages/Login2/img_wechat.png");
  background-size: contain;
}
#btn-show-login {
  display: block !important;
  color: transparent;
  background-color: transparent;
  background-image: url("/res/csbimages/Login2/img_account.png");
  background-size: contain;
}
.img-btn img { display: none; }
.agree {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px;
}
.agree img { height: 28px; width: auto; }
.agree input {
  appearance: none; width: 28px; height: 28px; margin: 0;
  background: url("/res/csbimages/Login/checkBg.png") center/contain no-repeat;
}
.agree input:checked { background-image: url("/res/csbimages/Login/checkSel.png"); }
.notice-img {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 920px; height: auto; pointer-events: none;
}
.ver { right: 18px; left: auto; top: 10px; color: #f0c56a; font-weight: 700; text-shadow: 0 1px 2px #000; }
.server-line { left: 12px; right: auto; top: auto; bottom: 52px; color: rgba(255,255,255,.75); }
.panel {
  background: url("/res/csbimages/Common2/img_small_bg2.png") center/100% 100% no-repeat;
  box-shadow: none; border-radius: 0; width: 620px; min-height: 420px;
  padding: 54px 48px 28px; top: 150px;
}
.panel h2 { color: #f6e2b4; letter-spacing: 2px; }
.panel .x, .dialog .x, .club-x {
  position: absolute; right: 8px; top: -8px; width: 64px; height: 64px;
  border: 0; color: transparent; border-radius: 0;
  background: url("/res/csbimages/Common2/img_btn_exit.png") center/contain no-repeat;
}
.login-go, .delegate, .create-go, .gold-go, .tbl-ico, .club-ico {
  border: 0; background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: 100% 100%;
  color: transparent; box-shadow: none;
}
.login-go { width: 280px; height: 78px; display: block; margin: 16px auto 0; background-image: url("/res/csbimages/Login/login_btn_ljdl.png"); }
.gold-go {
  min-width: 160px; height: 52px; padding: 0 22px; color: #6a3208; font-weight: 700;
  background-image: url("/res/csbimages/Common2/img_btn_yellow2.png");
}
.gold-go.slim { height: 46px; }

#view-hall {
  background-color: #1a120c;
  background-image: linear-gradient(#2a140f, #120c0a 42%, #1b120e);
}
#view-hall.show {
  background-color: #1a120c;
  background-image: linear-gradient(#2a140f, #120c0a 42%, #1b120e);
}
.hall-top { position: absolute; left: 0; right: 0; top: 0; height: 96px; background: none; padding: 8px 12px; }
.who-btn {
  position: absolute; left: 16px; top: 14px; width: 250px; height: 72px;
  background: rgba(0,0,0,.55); border-radius: 14px; color: #fff; gap: 8px;
}
.who-btn .avatar { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #222; box-shadow: none; }
.balances { position: absolute; left: 258px; top: 18px; }
.bal {
  display: inline-flex; align-items: center; gap: 6px; min-width: 148px; height: 36px;
  padding: 0 8px 0 6px; border-radius: 18px;
  background: rgba(0,0,0,.55);
}
.bal img { width: 28px; height: 28px; object-fit: contain; }
.bal b { flex: 1; text-align: center; }
.plus {
  width: 26px; height: 26px; border: 0; padding: 0;
  background: #c9842a;
}
.hall-logo { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 210px; height: auto; }
.hall-tip {
  position: absolute; left: 50%; top: 72px; transform: translateX(-50%);
  margin: 0; color: #ffe08a; font-size: 16px; letter-spacing: 2px; text-shadow: 0 2px 2px #000;
}
.top-actions { position: absolute; right: 16px; top: 10px; }
.pic-mail, .pic-gift { width: 78px; height: 66px; }
.pic-mail { background-image: none; }
.pic-gift { background-image: none; }
.mode {
  background: rgba(0,0,0,.55); color: #ffe7bf; border: 1px solid rgba(240,197,106,.45);
  border-radius: 10px; padding: 8px 12px; font-size: 16px;
}
.room-tab {
  position: absolute; left: 0; top: 180px; width: 48px; height: 230px;
  z-index: 2; color: transparent; border: 0; background: transparent;
}
.side-list {
  display: none; position: absolute; left: 52px; top: 160px; width: 210px; max-height: 360px;
  overflow: auto; z-index: 3; background: rgba(20,12,8,.82); border: 2px solid #e8c36a;
  border-radius: 12px; padding: 8px;
}
.side-list.open { display: block; }
.hall-main {
  left: 48px; right: 160px; top: 130px; gap: 16px; align-items: center;
  z-index: 5;
}
.entry {
  flex: 0 0 250px; width: 250px; height: 310px; min-width: 200px;
  border: 3px solid #e8c36a; border-radius: 16px; box-shadow: 0 8px 0 #4a2408;
  padding: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #ffe08a; font-size: 36px; font-weight: 900; letter-spacing: 2px;
  text-shadow: 0 3px 0 #4a2408;
  background: linear-gradient(#8a4a18, #3a1c0c);
}
.entry img { display: none; }
.entry.create { background: linear-gradient(#c4472d, #6a1c12); }
.entry.join { background: linear-gradient(#2d7ec4, #163a6a); }
.entry.club { background: linear-gradient(#1d8a45, #0e4a24); }
.hall-girl {
  position: absolute; right: 8px; bottom: 62px; height: 390px; width: auto; pointer-events: none;
}
.hall-bottom {
  height: 78px; background: linear-gradient(transparent, rgba(0,0,0,.55) 30%, rgba(0,0,0,.72));
  border: 0; justify-content: flex-start; gap: 4px; padding-left: 8px;
}
.hall-bottom .dock-btn,
.top-actions .pic-mail,
.top-actions .pic-gift {
  border: 0; color: transparent; box-shadow: none;
  background-color: transparent; background-repeat: no-repeat;
  background-position: center; background-size: 100% 100%;
  font-size: 0;
}
.top-actions .pic-mail { width: 78px; height: 66px; }
.top-actions .pic-gift { width: 80px; height: 66px; }
.hall-bottom .dock-btn { width: 148px; height: 70px; }
.hall-bottom .dock-btn.set { background-image: none; }
.hall-bottom .dock-btn.svc { background-image: none; }
.hall-bottom .dock-btn.share { background-image: none; }
.hall-bottom .dock-btn.qr { background-image: none; }
.hall-bottom .dock-btn.rec { background-image: none; }
.hall-bottom .dock-btn.rule { background-image: none; }
.hall-bottom .dock-btn.shop { width: 156px; }
.entry.create, .entry.join, .entry.club {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.niu-entry {
  position: absolute; left: 8px; top: -46px; z-index: 4;
  color: #fff8e4; background: #1d7a43; border: 2px solid #f0d48a;
  border-radius: 16px; padding: 6px 12px; text-decoration: none; font-weight: 700;
}
.server-line { left: 12px; top: 8px; bottom: auto; font-size: 12px; }
.dock-btn.set { background-image: none; }
.dock-btn.svc { background-image: none; }
.dock-btn.share { background-image: none; }
.dock-btn.qr { background-image: none; }
.dock-btn.rec { background-image: none; }
.dock-btn.rule { background-image: none; }
.dock-btn.shop { margin-left: auto; width: 140px; }

#view-club { background: #141018; }
#view-club.show { background: #141018; }
.club-title { position: absolute; left: 148px; top: 8px; width: 180px; height: auto; }
.club-top { height: 96px; justify-content: flex-end; align-items: flex-start; gap: 6px; padding: 6px 10px 0 0; }
.club-back {
  position: absolute; left: 10px; top: 14px; z-index: 20;
  width: auto; min-width: 110px; height: 44px; padding: 0 16px;
  border: 1px solid #e8c36a; border-radius: 10px;
  background: linear-gradient(#c9842a, #8a4a12);
  color: #fff8e4; font-size: 18px; font-weight: 800;
  box-shadow: 0 3px 0 #4a2408;
}
.club-top .club-ico {
  padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: 100% 100%;
}
.club-ico { width: 72px; height: 72px; flex: none; }
.club-ico.income { background-image: none; }
.club-ico.refresh { background-image: none; }
.club-ico.menu { background-image: none; }
.club-top .club-x { display: none; }
.club-bottom {
  height: 86px;
  background: linear-gradient(#3a2418, #1a100c);
  border-top: 2px solid #e8c36a;
  overflow: visible;
}
.club-pic {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  background-image: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.club-pic.new,
.club-pic.enter,
.club-pic.room,
.club-pic.records {
  height: 58px;
  padding: 0 18px 2px 12px;
  border-radius: 29px;
  font-size: 22px;
}
.club-pic.new,
.club-pic.enter {
  position: absolute;
  left: 18px;
  width: 248px;
}
.club-pic.new::before,
.club-pic.enter::before {
  content: "";
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-text-fill-color: inherit;
  -webkit-text-stroke: 0;
  text-shadow: none;
  font-weight: 900;
}
.club-pic.new {
  bottom: 168px;
  border: 2px solid #fff4c4;
  background: linear-gradient(#ffe58a 0%, #f3b42a 38%, #e09014 76%, #c86a0c 100%);
  text-shadow: 0 2px 0 rgba(90, 32, 0, .45);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .5),
    inset 0 -4px 0 rgba(140, 60, 0, .22),
    0 0 0 2px #d48a20,
    0 5px 0 #8a4808,
    0 8px 12px rgba(0, 0, 0, .38);
}
.club-pic.new::before {
  width: 30px;
  height: 36px;
  border-radius: 5px;
  background: linear-gradient(#e4d0ff, #7a48c8);
  box-shadow: inset 0 0 0 2px #fff, 0 2px 0 #4a2080;
  color: #4a1888;
  -webkit-text-fill-color: #4a1888;
  font-size: 20px;
  content: "♣";
}
.club-pic.enter {
  bottom: 98px;
  border: 2px solid #e8ffc0;
  background: linear-gradient(#b8f26c 0%, #58d028 38%, #2aae16 76%, #1a8a10 100%);
  text-shadow: 0 2px 0 rgba(0, 50, 0, .45);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .45),
    inset 0 -4px 0 rgba(0, 80, 0, .22),
    0 0 0 2px #2a9a18,
    0 5px 0 #146810,
    0 8px 12px rgba(0, 0, 0, .38);
}
.club-pic.enter::before {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #2a8a18, 0 2px 0 #146010;
  color: #1a6a12;
  -webkit-text-fill-color: #1a6a12;
  font-size: 22px;
  line-height: 32px;
  content: "⚄";
}
.club-pic.room,
.club-pic.records {
  position: absolute;
  bottom: 12px;
  min-width: 168px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}
#club-create-room,
.club-pic.room {
  right: 210px;
  border: 2px solid #fff4c4;
  background: linear-gradient(#ffe58a 0%, #f3b42a 38%, #e09014 76%, #c86a0c 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .5),
    inset 0 -4px 0 rgba(140, 60, 0, .22),
    0 0 0 2px #d48a20,
    0 4px 0 #8a4808;
}
#club-records,
.club-pic.records {
  right: 16px;
  border: 2px solid #c8f0ff;
  background: linear-gradient(#6ad4ff 0%, #2a9af0 42%, #1a72e0 78%, #0e58c8 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, .45),
    inset 0 -4px 0 rgba(0, 40, 120, .25),
    0 0 0 2px #2480d8,
    0 4px 0 #0a4a98;
}
.club-me {
  position: absolute; left: 286px; right: auto; bottom: 10px; margin: 0;
  color: #ffe7bf; font-size: 14px; line-height: 1.2;
}
.club-me .avatar { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.club-me .me-card { width: 36px; height: 36px; margin-left: 18px; }
.club-me .me-cards { color: #fff; font-size: 22px; margin-left: 6px; }
#club-list {
  left: 8px; top: 96px; bottom: 230px; width: 250px;
  background: rgba(20,12,8,.82);
  padding: 10px;
}
#club-floor {
  background: transparent; left: 270px;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px;
}
.club-desk { width: 326px; color: #ffe9c4; text-align: center; }
.club-desk-felt {
  position: relative; width: 326px; height: 205px; cursor: pointer;
  overflow: visible;
}
.club-desk-bg { position: absolute; inset: 0; width: 326px; height: 205px; object-fit: fill; pointer-events: none; }
.club-desk-info {
  position: absolute; left: 50%; top: 42%; width: 150px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; transform: translate(-50%, -50%);
  color: #fff7d8; text-shadow: 0 1px 2px #000; pointer-events: none; z-index: 3;
}
.club-desk-info b { display: block; font-size: 14px; line-height: 1.2; font-weight: 700; }
.club-desk-info span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.2; }
.club-desk-id { margin: 4px 0 0; font-size: 12px; display: flex; justify-content: center; gap: 8px; align-items: center; }
.club-close-table { height: 22px; padding: 0 8px; font-size: 12px; color: #fff; background: #8a2b2b; border-radius: 8px; }
.club-chair {
  position: absolute; width: 52px; height: auto; padding: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -16px); z-index: 2; pointer-events: none;
}
.club-chair.empty { width: 28px; height: 28px; }
.club-chair img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid #f0d48a; background: #2a1c14; box-sizing: border-box;
}
.club-chair span {
  display: block; font-size: 10px; line-height: 1.1; color: #fff; text-shadow: 0 1px 2px #000;
  max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px;
}
.club-chair.locked { opacity: .4; pointer-events: none; }
#dlg-create.club-table #btn-practice { display: none; }
#dlg-create:not(.club-table) .niu-copy-row { display: none; }
.club-menu-list { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 8px; }
.club-menu-list .btn { min-width: 240px; height: 48px; }
.club-invite { display: flex; gap: 8px; margin: 0 0 12px; align-items: center; }
.club-invite.hidden { display: none; }
.club-invite input { flex: 1; height: 36px; }
.member-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.member-row .avatar { width: 48px; height: 48px; border-radius: 10px; flex: none; object-fit: cover; }
.member-row span { flex: 1; min-width: 0; text-align: left; }
.member-row button { height: 28px; padding: 0 10px; font-size: 12px; flex: none; }
.club-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.club-days button { height: 30px; padding: 0 10px; font-size: 12px; color: #ffe9c4; background: rgba(0,0,0,.25); border-radius: 8px; }
.club-days button.on { background: #8a5a18; }
#dlg-club-stats.rec-dlg {
  width: 980px; height: 640px; max-height: 640px;
  padding: 48px 28px 16px;
}
#dlg-club-stats.rec-dlg h2 {
  text-align: center; font-size: 28px; font-weight: 900; letter-spacing: 4px;
  color: #6a2a0c; margin: 0 0 8px;
}
.rec-sum {
  display: flex; justify-content: space-around; gap: 8px;
  padding: 6px 12px 10px; font-size: 16px; font-weight: 700; color: #5a3010;
}
.rec-sum b { color: #1a6b28; font-size: 20px; }
.rec-sum b.lose { color: #b42318; }
.rec-body { display: flex; gap: 12px; flex: 1; min-height: 0; }
.rec-side {
  flex: none; width: 148px; display: flex; flex-direction: column; gap: 10px; padding-top: 8px;
}
.rec-tab {
  height: 52px; border: 0; border-radius: 10px 0 0 10px;
  background: linear-gradient(#efe0c0, #d4b07a); color: #5a3010;
  font-size: 20px; font-weight: 800;
}
.rec-tab.on {
  background: linear-gradient(#c9842a, #a05618); color: #fff8e4;
  box-shadow: inset 0 0 0 2px #8a4a10;
}
.rec-cap { margin-top: auto; text-align: center; font-size: 16px; font-weight: 800; color: #6a3010; }
.rec-cap b { color: #b42318; display: block; font-size: 22px; }
.rec-list { flex: 1; padding-right: 4px; }
.rec-item {
  background: linear-gradient(#fff6e4, #f0dcb4);
  border: 1px solid #d4b078; border-radius: 12px;
  padding: 8px 10px 8px 12px; margin: 0 0 10px;
}
.rec-head {
  font-size: 15px; font-weight: 700; color: #5a3010; margin: 0 0 8px;
}
.rec-row { display: flex; align-items: center; gap: 8px; }
.rec-players { display: flex; flex: 1; gap: 8px; overflow: auto; }
.rec-user { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
.rec-user .avatar { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #c9a05a; }
.rec-user .name { font-size: 13px; color: #3a2010; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-user .pts { font-size: 16px; font-weight: 900; }
.rec-user .pts.win { color: #0b6b2c; }
.rec-user .pts.lose { color: #b42318; }
.rec-detail {
  flex: none; min-width: 72px; height: 44px; margin-left: auto;
  background: linear-gradient(#8ee08a, #2aa84a); color: #fff;
  border: 0; border-radius: 8px; font-size: 20px; font-weight: 800;
  box-shadow: 0 2px 0 #1a6a28;
}
.rec-more {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed #c9a05a;
  font-size: 13px; line-height: 1.45; color: #4a2a10; white-space: pre-wrap;
}
.rec-foot { display: flex; align-items: center; gap: 12px; padding-top: 8px; flex: none; }
.rec-days { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.rec-days label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 16px; font-weight: 700; color: #4a2a10; cursor: pointer;
}
.rec-days input { width: 16px; height: 16px; accent-color: #2a78d6; }
.rec-page { display: flex; align-items: center; gap: 8px; }
.rec-page b { min-width: 48px; text-align: center; font-size: 18px; color: #4a2a10; }
.rec-page button {
  width: 48px; height: 36px; border: 0; border-radius: 8px;
  background: linear-gradient(#8ee08a, #2aa84a); color: #fff; font-size: 22px; font-weight: 900;
}
.rec-page button:disabled { opacity: .35; }
.stats-head, .stats-row { display: grid; grid-template-columns: minmax(180px, 1.4fr) 88px 110px 88px; gap: 8px; padding: 8px 0; align-items: center; }
.stats-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stats-who .avatar { width: 40px; height: 40px; border-radius: 8px; flex: none; object-fit: cover; }
.stats-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: normal; }
.stats-head { color: #c9b48a; font-size: 12px; }
.stats-row .win { color: #7dff9a; }
.stats-row .lose { color: #ff8d8d; }
#dlg-table-rules { text-align: center; }
.table-rules-id { margin: 0 0 8px; color: #ffe9c4; }
.table-rules {
  list-style: none; margin: 0 auto 16px; padding: 0; width: 340px; text-align: left;
}
.table-rules li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
#btn-join-table { min-width: 160px; }

#view-table.show:not(.niu-room) { background: #0e6d5c; }
.mat { display: none; }
.op, .vote button {
  min-width: 92px; height: 44px; color: #5c3208;
  background: linear-gradient(#ffe38a, #e0a02a);
  border-radius: 0; box-shadow: none;
}
.op.art {
  min-width: 92px; width: 92px; height: 76px; padding: 0;
  background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: contain;
}
.who .avatar, .avatar { object-fit: cover; }
#chat-pop { max-height: 360px; overflow: auto; }
.dialog {
  background: url("/res/csbimages/Common2/img_small_bg2.png") center/100% 100% no-repeat;
  border-radius: 0; box-shadow: none; min-height: 280px; padding: 52px 36px 24px;
}
.dialog.wide {
  width: 860px;
  position: relative;
  overflow: hidden;
  border: 2px solid #5a5558;
  border-radius: 14px;
  background:
    linear-gradient(90deg, #d7b05a 0%, #3a322c 18%, #1c1a1c 100%) 0 0 / 100% 36px no-repeat,
    radial-gradient(ellipse 80% 90% at 50% 42%, #fff8e0 0%, #f3dfb4 55%, #e6c090 100%);
  background-color: #f0d6a8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42);
}
.dialog.wide::before,
.dialog.wide::after { content: none; display: none; }
#dlg-rules, #dlg-records, #dlg-profile, #dlg-members, #dlg-club-caps, #dlg-club-stats, #dlg-club-all {
  width: 900px; height: 620px; max-height: 620px; box-sizing: border-box;
  padding: 52px 40px 24px; overflow: hidden;
  display: flex; flex-direction: column;
}
#dlg-rules h2, #dlg-records h2, #dlg-profile h2, #dlg-members h2, #dlg-club-caps h2, #dlg-club-stats h2, #dlg-club-all h2 {
  flex: none;
}
#dlg-rules .scroll, #dlg-records .scroll, #dlg-members .scroll, #dlg-club-caps .scroll, #dlg-club-stats .scroll, #dlg-club-all .scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#mask { overflow: hidden; padding: 8px; overscroll-behavior: none; }
#dlg-profile {
  height: auto;
  max-height: calc(100% - 8px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
#dlg-profile .profile-grid {
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
#dlg-profile .avatar.xl { width: 72px; height: 72px; }
#dlg-profile .avatars { max-width: 160px; }
#dlg-profile .avatars button { width: 40px; height: 40px; }
#dlg-profile .dlg-actions { margin-top: 8px; }
#dlg-notice {
  width: min(760px, calc(100% - 16px));
  height: auto;
  max-height: calc(100% - 16px);
  padding: 72px 48px 28px;
  overflow: auto;
  text-align: center;
}
#dlg-notice h2 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #8b1e12;
  margin: 0 0 18px;
}
#notice-body {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.75;
  color: #3a140c;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
#dlg-notice #notice-ok {
  margin: 22px auto 0;
  min-width: 180px;
  font-size: 22px;
  font-weight: 800;
}
#dlg-rules h2, #dlg-records h2, #dlg-profile h2, #dlg-members h2, #dlg-club-caps h2, #dlg-club-stats h2, #dlg-club-all h2 {
  margin: 0 0 14px; line-height: 36px; position: relative; z-index: 1; color: #f6e2b4;
}
#dlg-rules .scroll, #dlg-records .scroll, #dlg-members .scroll, #dlg-club-caps .scroll, #dlg-club-stats .scroll, #dlg-club-all .scroll { max-height: none; }
#dlg-rules .x, #dlg-records .x, #dlg-profile .x, #dlg-members .x, #dlg-club-caps .x, #dlg-club-stats .x, #dlg-club-all .x { top: 6px; right: 12px; }
#dlg-create {
  width: 1080px; height: 640px; padding: 0;
  display: grid; grid-template-columns: 196px 1fr;
  background: radial-gradient(ellipse 78% 88% at 58% 40%, #fff8e4 0%, #f3dfb4 48%, #e8c090 100%);
  overflow: visible;
  border: 1px solid #4a2c1c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.score-title { display: block; width: 158px; height: auto; margin: 22px auto 18px; }
.create-side {
  padding: 8px 8px 0; min-width: 0;
  background: #6a3c2a;
}
.create-body {
  min-width: 0; padding: 18px 28px 16px 26px;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse 80% 90% at 42% 36%, #fff8e4 0%, #f2dcb0 58%, #e6c08a 100%);
  box-shadow: inset 0 1px 0 rgba(80, 48, 20, .22);
}
.create-wallet { display: flex; justify-content: center; gap: 36px; margin: 4px 0 8px; }
.create-wallet .bal { position: static; color: #fff; min-width: 168px; }
.create-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.create-foot .cost {
  display: flex; align-items: center; gap: 8px; margin: 0;
  color: #6a4524; font-size: 20px; font-weight: 700;
}
.create-foot .cost img { width: 46px; height: auto; }
#dlg-create .dlg-actions { flex-wrap: nowrap; justify-content: flex-end; gap: 14px; }
#dlg-create .delegate,
#dlg-create .create-go,
#dlg-create #btn-practice {
  border-radius: 0; flex: none; box-shadow: none;
}
#dlg-create #btn-practice { width: 168px; height: 52px; font-size: 16px; white-space: nowrap; }
#dlg-create .opt { padding: 11px 0; }
#dlg-create .opt span { width: 108px; font-size: 18px; }
#dlg-create .tabs {
  position: static; width: auto; display: flex; flex-direction: column; gap: 14px;
}
#dlg-create .tabs label {
  flex: none; width: 176px; height: 52px; min-height: 52px; font-size: 0; overflow: hidden;
  background: center/contain no-repeat; color: transparent; border-radius: 0; padding: 0;
}
#dlg-create .tabs label.tab-2 { background-image: none; }
#dlg-create .tabs label.tab-2:has(:checked) { background-image: none; }
#dlg-create .tabs label.tab-3 { background-image: none; }
#dlg-create .tabs label.tab-3:has(:checked) { background-image: none; }
#dlg-create .tabs label.tab-niu {
  font-size: 16px; color: #6a4524; background: #f6e2b4; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; overflow: visible;
}
#dlg-create .tabs label.tab-niu:has(:checked) { background: #c9842a; color: #fff8e4; }
#dlg-create.niu-create .create-body { overflow: auto; }
#view-table.niu-room.show { background: #0e6d5c; }
#niu-felt {
  display: none; position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: fill;
  z-index: 0; pointer-events: none; border: 0;
}
#view-table.niu-room #niu-felt { display: block; }
#view-table.niu-room .table-top,
#view-table.niu-room .table-side,
#view-table.niu-room .wall-chip { display: none; }
#view-table.niu-room #felt { left: 0; right: 0; top: 0; bottom: 0; overflow: visible; z-index: 1; }
#view-table.niu-room #dock { display: none; }
.ox-board {
  position: absolute; inset: 0;
  width: auto; height: auto; margin: 0;
  transform: none;
}
.ox-bar, .ox-mid, .ox-name, .ox-me { color: #fff6d8; text-shadow: 0 1px 2px #000; }
.ox-clock { min-width: 36px; color: #ffe08a; font-weight: 800; font-size: 22px; }
.ox-bar {
  position: absolute; left: 12px; right: 12px; top: 8px; z-index: 12;
  display: flex; align-items: center; gap: 8px; padding: 0;
}
.ox-bar-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ox-bar b, .ox-bar span { font-size: 18px; }
.ox-tool { width: 48px; height: 48px; padding: 0; border: 0; background: transparent; }
.ox-tool img, .ox-btn img { display: block; height: 52px; width: auto; }
.ox-btn { border: 0; background: transparent; padding: 0; position: relative; flex: none; }
.ox-btn span { display: none; }
.ox-btn.no-art {
  min-width: 120px; height: 52px; padding: 0 16px;
  background: linear-gradient(#ffe38a, #e0a02a); border-radius: 28px;
  color: #6a3b05; font-size: 22px; font-weight: 800;
  box-shadow: 0 3px 0 #8a5a12;
}
.ox-btn.no-art span { display: inline; }
.ox-btn.no-art[data-act="leave-table"] {
  background: linear-gradient(#ff6b6b, #c11616);
  color: #fff8e4; box-shadow: 0 3px 0 #7a1010;
}
.ox-tool.no-art {
  width: auto; min-width: 64px; height: 40px; padding: 0 12px;
  background: linear-gradient(#ffe38a, #e0a02a); border-radius: 20px;
  color: #6a3b05; font-size: 18px; font-weight: 800;
}
.ox-btn.tiny img { height: 44px; }
.ox-btn.times {
  width: 132px; height: 56px; flex: none;
}
.ox-btn.times.no-art, .ox-btn.bet.no-art, .ox-btn.tui.no-art {
  display: inline-flex; align-items: center; justify-content: center;
}
.ox-btn.no-art[data-act="niu-cuo"] {
  min-width: 148px; height: 56px;
  background: linear-gradient(#ff8a4a, #c4472d);
  color: #fff8e4; box-shadow: 0 3px 0 #7a2410;
}
.ox-btn.no-art[data-act="niu-open"] {
  min-width: 148px; height: 56px;
  background: linear-gradient(#5ed67a, #1d8a45);
  color: #fff8e4; box-shadow: 0 3px 0 #0e4a24;
}
.ox-btn.bet.no-art {
  background: linear-gradient(#ffe38a, #e0a02a);
  color: #6a3b05; box-shadow: 0 3px 0 #8a5a12;
}
.ox-btn.tui.no-art {
  background: linear-gradient(#ff5a5a, #c11616);
  color: #fff8e4; box-shadow: 0 3px 0 #7a1010;
  min-width: 148px;
}
.ox-btn.times img { width: 172px; height: 63px; object-fit: fill; }
.ox-btn.times.no-art { width: 172px; }
.ox-btn.bet { width: 177px; height: 67px; }
.ox-btn.bet img { width: 177px; height: 67px; object-fit: fill; }
.ox-btn.bet b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #ffe08a; font-size: 28px; font-weight: 900; letter-spacing: 1px;
  text-shadow: 0 2px 0 #5a2a00, 0 1px 4px #000;
}
.ox-btn.tui {
  position: relative; width: 176px; height: 64px; overflow: hidden; flex: none;
}
.ox-btn.tui img { width: 176px; height: 64px; object-fit: fill; }
.ox-btn.tui b {
  position: absolute; left: 54%; right: 8px; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  margin: 0; color: #fff; font-size: 22px; font-weight: 900; line-height: 1;
  text-shadow: 0 2px 0 #2c1a62, 0 0 6px #1a1040;
  -webkit-text-stroke: 0.6px #241450;
}
.ox-tui { color: #ffe08a; font-size: 22px; font-weight: 800; margin-right: 6px; }
.ox-player {
  position: absolute; width: 0; height: 0; z-index: 2;
}
.ox-player.v10 { left: 49.4%; bottom: 85%; }
.ox-player.v1 { left: 68.9%; bottom: 85.1%; }
.ox-player.v9 { left: 30.6%; bottom: 85%; }
.ox-player.v2 { left: 91.2%; bottom: 79.3%; }
.ox-player.v8 { left: 9.1%; bottom: 78.6%; }
.ox-player.v4 { left: 91.1%; bottom: 49.8%; }
.ox-player.v6 { left: 9.1%; bottom: 48.6%; }
.ox-player.v5 { left: 8.8%; bottom: 16%; z-index: 3; }
.ox-player.self {
  left: 0; right: 0; top: 0; bottom: 0;
  width: auto; height: auto; z-index: 12;
  pointer-events: none;
}
.ox-face {
  position: absolute; left: 0; bottom: 0;
  transform: translate(-50%, 50%);
  width: 180px; height: 79px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.45);
  z-index: 8;
}
.ox-player.v1 .ox-face,
.ox-player.v2 .ox-face,
.ox-player.v4 .ox-face { flex-direction: row-reverse; background-position: left center; }
.ox-player.self .ox-face {
  left: 12px; bottom: 64px; transform: none; pointer-events: auto;
  width: 78px; height: 78px;
  flex-direction: column; justify-content: flex-end;
  background: none;
  padding: 0;
  overflow: visible;
}
.ox-player.pick .ox-head::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 150px; height: 88px;
  transform: translate(-50%, -50%);
  background: url("/res/niu/ui/faguang.png") center / contain no-repeat;
  pointer-events: none; z-index: 0;
  animation: ox-glow .28s ease-in-out infinite alternate;
}
.ox-head { position: relative; width: 59px; height: 59px; flex: none; z-index: 2; overflow: visible; }
.ox-player.watch .ox-head { opacity: .45; }
.ox-player.self .ox-head { width: 78px; height: 78px; }
.ox-head .avatar {
  display: block; width: 100%; height: 100%;
  border-radius: 8px; object-fit: cover; background: #1a1a1a;
}
.ox-player.self .ox-head .avatar {
  box-sizing: border-box;
  border: 2px solid #111;
}
.ox-frame { display: none; }
.ox-ready { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 65px; width: 46px; z-index: 3; }
.ox-times { width: 148px; height: 82px; object-fit: contain; }
.ox-times-text {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 86px; height: 36px; padding: 0 10px; margin-right: 6px;
  background: linear-gradient(#fff4b0, #f0b429);
  border-radius: 8px;
  color: #6a3b05; font-size: 22px; font-weight: 900; font-style: normal;
  text-shadow: 0 1px 0 #fff6d0;
  box-shadow: 0 2px 0 #8a5a12;
}
.ox-times-text.pass {
  background: linear-gradient(#efe6c8, #c9b48a);
  color: #5c4030;
}
.ox-banker-text {
  position: absolute; left: 50%; top: -18px; transform: translateX(-50%);
  z-index: 4; min-width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#ffe38a, #c9842a); color: #6a3b05;
  font-size: 18px; font-weight: 900; font-style: normal;
}
.ox-ready-text {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 3; padding: 2px 6px; border-radius: 6px;
  background: rgba(0,0,0,.65); color: #7dff9a;
  font-size: 14px; font-weight: 800; font-style: normal;
}
.niu-type-text { display: none; }
.niu-type-wrap {
  position: relative; display: inline-block; isolation: isolate;
  overflow: visible; vertical-align: middle;
}
.niu-type-glow {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  width: 400px; height: 400px;
  margin: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(.16);
  opacity: .5;
}
.niu-type {
  position: relative; z-index: 2;
  height: 48px; width: auto; display: block; margin: 0 auto;
}
.ox-player.self .niu-type { height: 64px; }
.niu-type-wrap.small .niu-type { height: 34px; }
.ox-player.self .niu-type-wrap.small .niu-type { height: 44px; }
.niu-type-row.pop .niu-type-wrap { animation: niu-type-in .45s cubic-bezier(.12, 1.4, .22, 1); }
.niu-type-row {
  position: absolute; left: 0; bottom: -118px;
  transform: translate(-50%, 50%);
  min-width: 100px; text-align: center; pointer-events: none; z-index: 8;
  overflow: visible;
}
.ox-player.self .niu-type-row {
  left: 50%; bottom: 248px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-width: 0; white-space: nowrap;
}
.ox-player.self.opened .niu-type-row,
.ox-player.self.peeked .niu-type-row { left: 50%; bottom: 248px; transform: translateX(-50%); }
.niu-peek-x {
  display: block; margin-top: 2px; color: #ffe08a; font-size: 18px; font-weight: 900;
  text-shadow: 0 1px 3px #000; -webkit-text-stroke: 0.4px #4a2408;
}
.niu-cards {
  position: absolute; left: 0; bottom: -70px;
  transform: translateX(-50%);
  display: flex; justify-content: center; align-items: flex-end;
  gap: 0; z-index: 6; pointer-events: none;
}
.ox-player.v10 .niu-cards,
.ox-player.v1 .niu-cards,
.ox-player.v9 .niu-cards { bottom: -108px; }
.ox-player.v2 .niu-cards, .ox-player.v4 .niu-cards { left: -86px; bottom: -108px; }
.ox-player.v6 .niu-cards, .ox-player.v8 .niu-cards { left: 86px; bottom: -108px; }
.ox-player.self .niu-cards { left: 50%; bottom: 118px; transform: translateX(-50%); z-index: 7; }
.niu-cards.split .niu-card[data-part="up"] { transform: translateY(-16px); }
.ox-player.self .niu-cards.split .niu-card[data-part="up"] { transform: translateY(-26px); }
.ox-player.niu-split .niu-type-row { z-index: 9; }
.ox-player.self.niu-split .niu-type-row { bottom: 270px; }
.niu-card {
  display: block; flex: none; width: 52px; height: 72px; margin-left: -22px;
  position: relative; overflow: hidden;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  opacity: 1; transform-origin: center; -webkit-user-drag: none; user-select: none;
}
.niu-card b, .niu-card em, .niu-back-mark { display: none; }
.niu-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; border: 0; object-fit: fill;
  pointer-events: none;
}
.niu-card:first-child { margin-left: 0; }
.ox-player.self .niu-card { width: 90px; height: 124px; margin-left: -28px; }
.ox-player.self .niu-card:first-child { margin-left: 0; }
.niu-flag {
  position: absolute; left: 0; bottom: -88px;
  transform: translate(-50%, 50%);
  display: flex; align-items: center; justify-content: center; z-index: 4;
}
.ox-player.v10 .niu-flag,
.ox-player.v1 .niu-flag,
.ox-player.v9 .niu-flag { bottom: -146px; transform: translate(-50%, 0); }
.ox-player.v2 .niu-flag, .ox-player.v4 .niu-flag { left: -86px; bottom: -146px; transform: translate(-50%, 0); }
.ox-player.v6 .niu-flag, .ox-player.v8 .niu-flag { left: 86px; bottom: -146px; transform: translate(-50%, 0); }
.ox-player.self .niu-flag { left: 50%; bottom: 252px; transform: translateX(-50%); }
.ox-player.v10 .niu-type-row,
.ox-player.v1 .niu-type-row,
.ox-player.v9 .niu-type-row,
.ox-player.v10.opened .niu-type-row,
.ox-player.v1.opened .niu-type-row,
.ox-player.v9.opened .niu-type-row,
.ox-player.v10.peeked .niu-type-row,
.ox-player.v1.peeked .niu-type-row,
.ox-player.v9.peeked .niu-type-row {
  left: 0; bottom: -104px; transform: translate(-50%, 0); z-index: 10;
}
.ox-player.v2 .niu-type-row, .ox-player.v4 .niu-type-row,
.ox-player.v2.opened .niu-type-row, .ox-player.v4.opened .niu-type-row,
.ox-player.v2.peeked .niu-type-row, .ox-player.v4.peeked .niu-type-row {
  left: -86px; bottom: -104px; transform: translate(-50%, 0); z-index: 10;
}
.ox-player.v6 .niu-type-row, .ox-player.v8 .niu-type-row,
.ox-player.v6.opened .niu-type-row, .ox-player.v8.opened .niu-type-row,
.ox-player.v6.peeked .niu-type-row, .ox-player.v8.peeked .niu-type-row {
  left: 86px; bottom: -104px; transform: translate(-50%, 0); z-index: 10;
}
.ox-bet {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 75px; height: 32px; padding: 0 8px;
  background: rgba(0,0,0,.55); border: 1px solid #e8c36a; border-radius: 8px;
  color: #ffe08a; font-size: 20px; font-weight: 800; font-style: normal;
}
@keyframes ox-deal {
  from { transform: translate(var(--from-x), var(--from-y)) scale(.85); }
  to { transform: none; }
}
#cuo-layer {
  position: absolute; inset: 0; z-index: 30; display: flex;
  align-items: center; justify-content: center;
  background: transparent;
  pointer-events: auto; touch-action: none; transition: opacity .2s ease;
}
#cuo-layer.out { opacity: 0; }
#cuo-layer .cuo-x {
  position: absolute; top: 18px; right: 22px; z-index: 14;
  width: 56px; height: 56px; padding: 0; border: 0; cursor: pointer;
  background: url("/res/niu/cuo/anniu_guangbi.png") center / contain no-repeat;
}
#cuo-layer .cuo-x img { width: 56px; height: 56px; display: block; }
.cuo-stack {
  position: relative; width: 460px; height: 280px;
  pointer-events: auto; touch-action: none; user-select: none; cursor: grab;
}
.cuo-face, .cuo-back {
  position: absolute; left: 50%; top: 50%; width: 220px; height: 308px;
  margin: 0; border: 0; border-radius: 0; box-shadow: none;
  background-color: transparent;
  background-position: center; background-size: 100% 100%; background-repeat: no-repeat;
  transform: translate(-50%, -50%) rotate(90deg);
  -webkit-user-drag: none;
}
.cuo-face { z-index: 1; }
.cuo-back {
  z-index: 2; pointer-events: auto;
  background-image: url("/res/niu/cuo/cardBack.png");
}
/* 搓牌火焰暂时关闭，省 mipai 大图和 8 路动画
.cuo-fire {
  position: absolute; left: 50%; top: 50%; width: 128px; height: 128px;
  margin: -64px 0 0 -64px; z-index: 3; pointer-events: none;
  background: none;
  background-size: 1024px 512px;
  animation: cuo-fire .64s steps(1) infinite;
  mix-blend-mode: screen;
}
*/
.cuo-fire.a { transform: translate(-168px, -78px); animation-delay: 0s; }
.cuo-fire.b { transform: translate(0, -108px); animation-delay: .04s; }
.cuo-fire.c { transform: translate(168px, -78px); animation-delay: .08s; }
.cuo-fire.d { transform: translate(198px, 0); animation-delay: .12s; }
.cuo-fire.e { transform: translate(168px, 78px); animation-delay: .16s; }
.cuo-fire.f { transform: translate(0, 108px); animation-delay: .2s; }
.cuo-fire.g { transform: translate(-168px, 78px); animation-delay: .24s; }
.cuo-fire.h { transform: translate(-198px, 0); animation-delay: .28s; }
@keyframes cuo-fire {
  0% { background-position: -1px -259px; }
  6.25% { background-position: -1px -130px; }
  12.5% { background-position: -130px -259px; }
  18.75% { background-position: -1px -1px; }
  25% { background-position: -130px -130px; }
  31.25% { background-position: -259px -259px; }
  37.5% { background-position: -130px -1px; }
  43.75% { background-position: -259px -130px; }
  50% { background-position: -388px -259px; }
  56.25% { background-position: -259px -1px; }
  62.5% { background-position: -388px -130px; }
  68.75% { background-position: -517px -259px; }
  75% { background-position: -388px -1px; }
  81.25% { background-position: -517px -130px; }
  87.5% { background-position: -646px -259px; }
  93.75% { background-position: -517px -1px; }
  100% { background-position: -1px -259px; }
}

.niu-fx {
  position: absolute; left: 50%; top: 50%;
  width: 1px; height: 1px; z-index: 1;
  pointer-events: none; overflow: visible;
}
.niu-fx .burst,
.niu-fx .wing,
.niu-fx .head,
.niu-fx .ox {
  position: absolute; left: 50%; top: 50%;
  background: none;
  background-size: 2048px 1024px;
  pointer-events: none;
}
.niu-fx .burst {
  width: 400px; height: 400px;
  background-position: -1px -1px;
  animation: niu-burst .55s ease-out forwards;
}
.niu-fx .wing {
  width: 190px; height: 278px;
  background-position: -402px -123px;
  animation: niu-stay .7s ease-out forwards;
}
.niu-fx .wing.l { transform: translate(-78%, -52%) rotate(-90deg) scale(.26); }
.niu-fx .wing.r { transform: translate(-22%, -52%) rotate(-90deg) scale(-.26, .26); }
.niu-fx .ox {
  width: 470px; height: 246px;
  background-position: -1095px -760px;
  transform: translate(-50%, -42%) scale(.2);
  animation: niu-stay .75s ease-out forwards;
}
@keyframes niu-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.1); }
  40% { opacity: .7; transform: translate(-50%, -50%) scale(.16); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.24); }
}
@keyframes niu-stay {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes niu-fire {
  0% { background-position: -1px -806px; }
  25% { background-position: -1px -645px; }
  50% { background-position: -302px -806px; }
  75% { background-position: -1px -484px; }
  100% { background-position: -302px -645px; }
}
@keyframes niu-glow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  35% { opacity: .95; transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}
@keyframes niu-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.15); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.35); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes niu-type-in {
  0% { opacity: 0; transform: scale(.55); }
  55% { opacity: 1; transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes niu-shake {
  0%, 100% { margin-left: 0; }
  25% { margin-left: -8px; }
  75% { margin-left: 8px; }
}
.set-tables { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.set-tables button { width: 92px; height: 52px; padding: 0; border: 2px solid transparent; overflow: hidden; }
.set-tables button.on { border-color: #c9842a; }
.set-tables img { width: 100%; height: 100%; object-fit: cover; }
.ox-ops {
  position: absolute; left: 50%; bottom: 8px;
  transform: translateX(-50%);
  display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; justify-content: center;
  z-index: 20; white-space: nowrap; max-width: none; pointer-events: auto;
}
.ox-ops .ox-btn img[alt="准备"],
.ox-ops .ox-btn[data-act="niu-ready"] img { width: 190px; height: 71px; }
.ox-ops .ox-btn[data-act="invite"] img,
.ox-ops .ox-btn[data-act="copy-room"] img { width: 190px; height: 74px; }
.ox-ops .ox-btn[data-act="niu-cuo"] img,
.ox-ops .ox-btn[data-act="niu-open"] img { width: 171px; height: 63px; }
.ox-me { display: flex; align-items: center; gap: 6px; min-width: 140px; }
.ox-mid { position: absolute; left: 50%; bottom: 58%; transform: translate(-50%, 50%); text-align: center; pointer-events: none; z-index: 5; max-width: 360px; font-size: 22px; }
.ox-mid button { pointer-events: auto; }
.ox-log {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  z-index: 6; margin: 0; max-width: 62%;
  padding: 10px 22px; border-radius: 12px;
  font-size: 26px; font-weight: 800; line-height: 1.35; text-align: center;
  color: #fff6d0; text-shadow: 0 2px 4px #000, 0 0 8px #000;
  background: rgba(8, 24, 12, .55); border: 1px solid rgba(232, 195, 106, .35);
  pointer-events: none;
}
.ox-log:empty { display: none; }
.ox-name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; font-size: 16px; max-width: 110px; overflow: visible; }
.ox-player.self .ox-name {
  position: absolute;
  left: 82px;
  bottom: 0;
  align-items: flex-start;
  font-size: 15px;
  max-width: 200px;
  overflow: visible;
  z-index: 5;
  text-shadow: 0 1px 3px #000;
  pointer-events: none;
}
.ox-name i {
  font-style: normal; color: #ffe24a; font-size: 22px; font-weight: 900;
  -webkit-text-stroke: 0.7px #2b1408; text-shadow: 0 2px 3px #000;
}
.ox-player.self .ox-name i {
  display: inline-block;
  margin-top: 2px;
  min-width: 4.6em;
  padding: 3px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .78);
  border: 1px solid rgba(0, 0, 0, .9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .55);
  font-size: 22px; font-weight: 900; color: #ffe24a;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.ox-deltas {
  position: absolute; inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: visible;
}
.ox-delta {
  position: absolute;
  z-index: 50; pointer-events: none; white-space: nowrap;
  font-size: 42px; font-weight: 900; letter-spacing: 1px;
  text-shadow: 0 2px 0 #1a1008, 0 0 10px #000, 0 0 2px #000;
  -webkit-text-stroke: 1.2px #2b1408;
}
.ox-delta.win { color: #ffe24a; }
.ox-delta.lose { color: #ff5a4a; }
.ox-deltas .ox-delta.v10 { left: 49.4%; bottom: calc(85% - 188px); transform: translate(-50%, 0); }
.ox-deltas .ox-delta.v1 { left: 68.9%; bottom: calc(85.1% - 188px); transform: translate(-50%, 0); }
.ox-deltas .ox-delta.v9 { left: 30.6%; bottom: calc(85% - 188px); transform: translate(-50%, 0); }
.ox-deltas .ox-delta.v2 { left: calc(91.2% - 86px); bottom: calc(79.3% - 188px); transform: translate(-50%, 0); }
.ox-deltas .ox-delta.v4 { left: calc(91.1% - 86px); bottom: calc(49.8% - 188px); transform: translate(-50%, 0); }
.ox-deltas .ox-delta.v6 { left: calc(9.1% + 86px); bottom: calc(48.6% - 188px); transform: translate(-50%, 0); }
.ox-deltas .ox-delta.v8 { left: calc(9.1% + 86px); bottom: calc(78.6% - 188px); transform: translate(-50%, 0); }
.ox-deltas .ox-delta.self,
.ox-deltas .ox-delta.v5 {
  left: calc(50% + 86px);
  bottom: 248px;
  transform: none;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  -webkit-text-stroke: 2px #2b1408;
  text-shadow: 0 3px 0 #1a1008, 0 0 12px #000;
}
.ox-deltas .ox-delta.self.niu-split,
.ox-deltas .ox-delta.v5.niu-split { bottom: 270px; }
.ox-banker {
  position: absolute; left: 50%; top: -28px; z-index: 4;
  width: 78px; height: 78px;
  transform: translateX(-50%);
  transform-origin: center bottom;
  animation: ox-crown 1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ox-crown {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-8deg) scale(1); }
  50% { transform: translateX(-50%) translateY(-7px) rotate(8deg) scale(1.12); }
}
@keyframes ox-glow {
  from { opacity: .55; transform: translate(-50%, -50%) scale(.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
#dlg-create .opt label {
  position: relative; padding-left: 34px; color: #6a4524;
  background: none;
}
#dlg-create .opt label:has(:checked) { background-image: none; }
#dlg-create .opt input, #dlg-create .tabs input { position: absolute; opacity: 0; pointer-events: none; }
#dlg-create .x { top: -16px; right: -8px; z-index: 2; }
.delegate { width: 196px; height: 62px; }
.create-go { width: 196px; height: 62px; }
.set-grid { display: grid; grid-template-columns: 1fr 180px; gap: 18px; align-items: center; min-height: 180px; }
.set-side { text-align: center; border-left: 2px solid rgba(255,255,255,.7); padding-left: 16px; }
.set-side img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.slider { position: relative; padding-left: 54px; min-height: 48px; }
.slider.music { background: none; }
.slider.sound { background: none; }
.slider.off { opacity: .42; filter: grayscale(1); }
.slider input[type="range"] { width: 100%; accent-color: #f0b429; }
.mute-hit {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; padding: 0;
  background: transparent; border: 0; z-index: 2;
}
.avatars button {
  width: 52px; height: 52px; padding: 0; border-radius: 10px; background-size: cover; background-position: center; color: transparent;
}
.panel input, .dialog input, .dialog select, .dialog textarea {
  background: #5c5148 url("/res/csbimages/Login/login_account_editbox_bg.png") center/100% 100% no-repeat;
}

/* 浅色木纹弹窗：正文用深色，避免白字贴白底 */
.panel,
.dialog {
  color: #2b1a10;
}
.panel h2,
.dialog h2,
#dlg-rules h2,
#dlg-records h2,
#dlg-profile h2,
#dlg-members h2,
#dlg-club-caps h2,
#dlg-club-all h2,
#dlg-club-stats h2 {
  color: #5c2e0e;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.panel label,
.dialog label,
.dialog p,
.dialog .hint,
.dialog .scroll,
.dialog .cost,
#rules-body,
#records-body,
#mail-body,
#members-body,
#club-stats-body,
#club-all-body,
#table-rules-id,
#qr-id {
  color: #2b1a10;
}
#rules-body p {
  color: #2b1a10;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.65;
}
.dialog .member-row {
  color: #2b1a10;
  background: rgba(90, 48, 16, .08);
  border-bottom: 1px solid rgba(90, 48, 16, .2);
}
.dialog .member-row b { color: #8b1e12; }
.dialog .member-row .me-name,
.dialog .member-row.mine .me-name { color: #c41616; font-weight: 900; }
.apply-title { color: #8b1e12; font-weight: 800; margin: 4px 0 8px; }
.apply-row button { margin-left: 6px; background: #7a4a18; color: #fff8e8; border: 0; border-radius: 8px; }
.apply-row [data-apply-ok] { background: #1d7a43; }
.apply-row [data-apply-no] { background: #a33a2a; }
.cap-row { align-items: flex-start; }
.cap-row label {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  color: #2b1a10 !important;
  white-space: nowrap;
}
.cap-row input[type="number"] {
  width: 88px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
}
.cap-row button {
  height: 32px;
  padding: 0 10px;
  background: #7a4a18;
  color: #fff8e8;
  border: 0;
  border-radius: 8px;
}
.dialog .member-row p {
  margin: 6px 0 0;
  line-height: 1.6;
  color: #2b1a10;
  font-weight: 600;
}
#mail-body .member-row {
  display: block;
  text-align: left;
  padding: 10px 12px;
}
.dialog .empty { color: #5c2e0e; opacity: 1; }
.table-rules-id { color: #5c2e0e; font-weight: 700; }
.table-rules li {
  color: #2b1a10;
  border-bottom: 1px solid rgba(90, 48, 16, .18);
  font-weight: 600;
}
.club-days button {
  color: #fff8e8;
  background: #7a4a18;
}
.club-days button.on { background: #c4472d; color: #fff; }
.stats-head { color: #6a4524; font-weight: 700; }
.stats-row { color: #2b1a10; }
.stats-row .stats-num {
  font-size: 32px; font-weight: 900; line-height: 1.1;
  letter-spacing: 0.5px; color: #1a0c08;
}
.stats-row .win { color: #0b6b2c; }
.stats-row .lose { color: #b42318; }
#chat-pop button { color: #2b1a10; }
#dlg-create .opt span,
#dlg-create .cost { color: #5c2e0e; }
#dlg-create .tabs label.tab-niu { color: #5c2e0e; }

body.land-fill .hall-top { height: 80px; }
body.land-fill .hall-logo { width: 168px; top: 4px; }
body.land-fill .hall-tip { top: 58px; font-size: 13px; }
body.land-fill .hall-main {
  left: 36px; right: 140px; top: 84px; bottom: 72px;
  align-items: center; justify-content: center; gap: 12px; z-index: 5;
}
body.land-fill .entry {
  flex: 0 0 220px; width: 220px; height: 272px; min-width: 180px;
}
body.land-fill .hall-girl {
  height: min(360px, calc(100% - 86px));
  bottom: 70px;
}
body.land-fill .room-tab { top: 50%; transform: translateY(-50%); }
body.land-fill .hall-bottom { height: 68px; }
body.land-fill .hall-bottom .dock-btn { height: 58px; width: 128px; }
body.land-fill #view-table.niu-room #felt { bottom: 0; }
body.land-fill .club-top { height: 80px; }
body.land-fill #club-list { top: 80px; bottom: 80px; }
body.land-fill #club-floor { top: 80px; bottom: 80px; }
body.land-fill .club-bottom { height: 76px; }

body.land-fill #view-login .logo-img { width: 220px; top: 4px; }
body.land-fill #view-login .login-box,
body.land-fill #view-login .panel {
  top: 50%;
  transform: translate(-50%, -50%);
}
body.land-fill #view-login .panel {
  min-height: 0;
  height: auto;
  max-height: calc(100% - 16px);
  overflow-y: auto;
  padding: 40px 40px 16px;
}
body.land-fill #view-login .login-go { height: 64px; margin-top: 10px; }
body.land-fill #view-login .gold-go { height: 48px; }
body.land-fill #view-login .notice-img {
  width: min(920px, 90%);
  max-height: 40px;
  object-fit: contain;
  bottom: 4px;
}
body.land-fill #view-login .server-line { bottom: 6px; }

body.land-fill #mask { overflow: hidden; }
body.land-fill .dialog {
  min-height: 0;
  max-height: calc(100% - 12px);
  overflow: hidden;
}
body.land-fill #dlg-create {
  height: min(640px, calc(100% - 12px));
  max-height: calc(100% - 12px);
  overflow: hidden;
}
body.land-fill #dlg-create .create-body { overflow: auto; }
body.land-fill #dlg-rules,
body.land-fill #dlg-records,
body.land-fill #dlg-profile,
body.land-fill #dlg-members,
body.land-fill #dlg-club-caps,
body.land-fill #dlg-club-all,
body.land-fill #dlg-club-stats {
  height: min(620px, calc(100% - 12px));
  max-height: calc(100% - 12px);
  overflow: hidden;
}
body.land-fill #dlg-profile,
html.wx #dlg-profile {
  width: min(900px, calc(100% - 8px));
  height: auto;
  max-height: calc(100% - 8px);
  padding: 64px 36px 18px;
  overflow: auto;
}
html.wx #dlg-profile .profile-grid {
  grid-template-columns: 132px minmax(0, 1fr);
}

#dlg-service .hint { margin: 0 0 10px; color: #5c2e0e; }
.svc-chat-log {
  height: 280px; overflow: auto; padding: 8px;
  background: rgba(255,255,255,.35); border-radius: 10px; margin-bottom: 10px;
}
.svc-bubble {
  max-width: 80%; padding: 8px 12px; margin: 6px 0; border-radius: 12px;
  background: #fff; color: #3a2416; text-align: left; word-break: break-word;
}
.svc-bubble.user { margin-left: auto; background: #ffe08a; }
.svc-bubble.admin { margin-right: auto; background: #fff8ea; }
.svc-bubble img { max-width: 180px; max-height: 180px; display: block; border-radius: 8px; }
.svc-chat-send { display: flex; gap: 6px; align-items: center; }
.svc-chat-send input { flex: 1; min-width: 0; }
