/* 骰宝 —— 第一版 CSS 骰盅(设计等概念图定了再出图换上;这一版只求清楚、好按、规矩对)
 * 颜色:近黑底 + 深红漆盅、黄铜边;选中、主按钮、中奖照平台的柠檬黄(--gold 这个变量名沿用百家乐那份样式,值换成柠檬黄),大红 / 小蓝两色只用在最近几局和总点那一块。
 * 版面(竖屏)照百家乐:顶栏 / 画面区(CSS 骰盅:盖子扣在碟上,摇、扣下、提起来,三颗骰子摆在碟上)/ 下面一块:倒数圈 + 状态和最近几局、
 * 三个分页(大小点数 / 三军围骰 / 组合;52 格一屏放不下,一次只摆一页,格子区固定高度,换页不跳)、筹码、三颗按钮、在线人数;本局赢家在最下面。
 * 页面的 JS 跟鱼虾蟹、色碟、全场翻硬币、百家乐共用(public/bowl-page.js),class 名字照它的写法,前缀 sb-;骰盅和分页是 sicbo.js 画的。
 * 动画只动 transform / opacity;关了动态效果的手机直接出最后那一格。
 */
.sicbo {
  position: fixed; inset: 0; z-index: 10; overflow: hidden;
  display: flex; flex-direction: column;
  padding: var(--safe-t, 0px) 0 calc(var(--safe-b, 0px) + 6px);
  --bg: #0a0708; --surface: #161011; --surface-2: #1f1718; --line: #33252a;
  --ink: #fff; --ink-2: #94898b; --ink-3: #5f5557; --gold: #e5ff3d; --gold-ink: #0a0a0a; --bad: #ff5a5a;
  --brass: #e2b65b; --lacquer: #8e1b22; --lacquer-hi: #c8333a; --lacquer-lo: #4a0b10;
  --red: #ff5a52; --blue: #4b93ff; --ivory: #fbf6ea;
  --sb-w: min(100vw, var(--app-max-width, 520px));
  --sb-pad: 16px;
  /* 格子区固定高度(三页一样高,换页不跳):大小点数页 大格 74 + 点数两排 55 × 2 + 间距 6 × 2 = 196 */
  --sb-board-h: 196px;
  /* 画面区以下那一块要多高:顶栏 60 + 倒数那行 52 + 下注动态 22 + 分页 36 + 格子区 + 筹码 56 + 按钮 52 + 间距 8 × 7 + 上下留白 14。改了下面任何一块的高度,这里要跟着改 */
  --sb-below: calc(348px + var(--sb-board-h));
  --sans: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.sicbo[hidden] { display: none; }
.sicbo :where(p, h2, h3, ul) { margin: 0; }
.sicbo :where(button) { appearance: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; background: none; cursor: pointer; }
.sicbo button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sicbo img, .sicbo video { -webkit-user-drag: none; pointer-events: none; }
/* 按钮里面的字、金额、硬币图一律点不到:别人一押,格子里的总下注就改字(金额还会被 PA 金币那层换掉),按在上面的话松手时那个元素已经没了,浏览器不发 click */
.sicbo button > *, .sicbo button * { pointer-events: none; }


/* ---------- 顶栏 ---------- */
.sb-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.sb-back, .sb-help { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sb-back svg, .sb-help svg { width: 22px; height: 22px; }
.sb-help { color: var(--ink-2); font-weight: 700; border-radius: 50%; }
.sb-title { flex: 1; min-width: 0; text-align: center; font-size: 22px; font-weight: 900; letter-spacing: .08em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:not([lang^="zh"]) .sb-title { font-size: clamp(15px, 4.4vw, 19px); letter-spacing: 0; padding: .32em 0 .12em; margin: -.32em 0 -.12em; }
.sb-bal { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sb-dep { flex: none; min-height: 44px; padding: 0 10px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 800; white-space: nowrap; }
.sb-dep[hidden] { display: none; }
.sb-top:has(.sb-dep:not([hidden])) .sb-bal { max-width: 32%; padding-inline: 10px; }
.sb-top.sb-has-music { gap: 6px; }
.sb-top.sb-has-music .sb-title { font-size: 19px; }
.sb-top.sb-has-music .sb-bal { padding-inline: 10px; flex-shrink: 1; min-width: 0; }
@media (max-width: 380px) { .sb-top { gap: 6px; padding-inline: 12px; } .sb-title { font-size: 19px; } .sb-bal { padding: 8px 10px; font-size: 13px; } }

/* ---------- 画面区:三张鳄鱼荷官图 + 碟子上的骰子(bowl-page 的 frames / pieces,跟鱼虾蟹同一套 class) ----------
 * 高度 = 页面高度减掉下面那一块要的(--sb-below),最高 16:9(整张图都露出来),最矮 150px。
 * 三张图和骰子放在一块正好 16:9 的 .sb-art 里(骰子的百分比位置跟图对得上),画面矮了整块往上裁一点:上面裁八成、下面裁两成,
 * 黄铜碟在偏下的地方(碟子 75%–89%),要留在画面里 */
.sb-hero { position: relative; flex: none; width: 100%; height: 30vh; height: clamp(150px, calc(100% - var(--sb-below)), calc(var(--sb-w) * .5625)); overflow: hidden; background: #070605; }
.sb-art { position: absolute; left: 0; right: 0; top: 80%; aspect-ratio: 16 / 9; transform: translateY(-80%); }
.sb-rig { position: absolute; inset: 0; transform-origin: 50% 80%; }
.sb-frame, .sb-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.sb-hero.is-idle .sb-frame[data-frame="idle"],
.sb-hero.is-closed .sb-frame[data-frame="closed"],
.sb-hero.is-lifted .sb-frame[data-frame="lifted"] { opacity: 1; }
.sb-hero.is-clip .sb-frame { opacity: 0; }
.sb-hero.is-clip-idle .sb-clip[data-clip="idle"], .sb-hero.is-clip-shake .sb-clip[data-clip="shake"], .sb-hero.is-clip-lift .sb-clip[data-clip="lift"] { opacity: 1; }
.sb-hero.is-missing .sb-art { opacity: .25; }
.sb-hero::after { content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(to bottom, rgba(10, 7, 8, 0), var(--bg)); pointer-events: none; }
/* 收注中:荷官捧着盅轻轻呼吸;摇盅:左右快抖;扣下那一下:整块画面往下一顿再弹回来 + 白闪;扣下到提盖:慢慢推近一点 */
.sb-hero.is-breathe .sb-rig { animation: sb-breathe 4s ease-in-out infinite; }
@keyframes sb-breathe { 50% { transform: scale(1.012); } }
.sb-hero.is-shake .sb-rig { animation: sb-shake .18s linear infinite; }
@keyframes sb-shake {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(-2%, -.6%, 0) rotate(-1.2deg); }
  50% { transform: translate3d(0, .4%, 0) rotate(0deg); }
  75% { transform: translate3d(2%, -.6%, 0) rotate(1.2deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
.sb-hero.is-jolt .sb-art { animation: sb-jolt .32s cubic-bezier(.2, .8, .3, 1) var(--jd, 0ms) both; }
@keyframes sb-jolt { 0% { transform: translateY(-80%); } 22% { transform: translateY(-76.5%) scale(1.02); } 55% { transform: translateY(-81.2%); } 100% { transform: translateY(-80%); } }
.sb-flash { position: absolute; z-index: 4; inset: 0; background: #fff6dc; opacity: 0; pointer-events: none; }
.sb-hero.is-flash .sb-flash { display: block; animation: sb-flash .12s linear var(--fd, 0ms) both; }
@keyframes sb-flash { from { opacity: .8; } to { opacity: 0; } }
.sb-hero.is-tense .sb-rig { animation: sb-tense 1.2s ease-in var(--td, 0ms) both; }
@keyframes sb-tense { from { transform: scale(1); } to { transform: scale(1.035); } }
.sb-hero.is-lifted .sb-rig { transform: scale(1.035); }
.sb-hero.is-clip .sb-rig { transform: none; }
/* 三颗骰子:位置照 sicbo.js 的 DICE_SPOT(中心 x 42.6% / 50% / 57.4%,底边离画面底 15.5%,宽 7%),提盖那一刻由下往上揭开 */
.sb-dice { position: absolute; inset: 0; opacity: 0; }
.sb-hero.is-dice-in .sb-dice, .sb-hero.is-dice-on .sb-dice { opacity: 1; }
.sb-die-img { position: absolute; left: calc(var(--x) - 3.5%); bottom: 15.5%; width: 7%; height: auto; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .6)); }
.sb-hero.is-dice-in .sb-die-img { animation: sb-uncover .35s cubic-bezier(.2, .8, .3, 1) var(--dd, 0ms) both; }
@keyframes sb-uncover { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.sb-glow { position: absolute; left: 34%; width: 32%; bottom: 10%; aspect-ratio: 2.6 / 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 120, .6), rgba(255, 214, 120, 0)); opacity: .35; }
.sb-hero.is-dice-in .sb-glow, .sb-hero.is-dice-on .sb-glow { animation: sb-glow 1.2s ease-out var(--gd, 0ms) both; }
@keyframes sb-glow { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1.08); } 100% { opacity: .35; transform: scale(1); } }
/* 开完之后画面上那一块:三颗骰子 + 总点 + 大 / 小(红 / 蓝)+ 单 / 双;围骰写全围(黄铜色)。结果画面才出来 */
.sb-call {
  position: absolute; z-index: 3; left: 50%; top: 8px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; padding: 5px 14px 5px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(8, 7, 6, .9); box-shadow: 0 0 0 1.5px var(--brass), 0 0 18px rgba(226, 182, 91, .35);
  animation: sb-call .34s cubic-bezier(.2, .9, .3, 1.3) both;
}
.sb-call[hidden] { display: none; }
.sb-call-dice { display: inline-flex; gap: 2px; }
.sb-call-dice img { width: 22px; height: auto; }
.sb-call b { font-size: clamp(20px, 6vw, 26px); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff4d6; }
.sb-call em { font-style: normal; font-size: 13px; font-weight: 900; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.sb-call em.is-big { background: var(--red); }
.sb-call em.is-small { background: var(--blue); }
.sb-call em.is-triple { background: var(--brass); color: #1a1206; }
@keyframes sb-call { from { opacity: 0; transform: translateX(-50%) scale(.5); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
/* 我的输赢那块挪到横幅下面、碟子上面(不挡骰子)。多一层 .sb-hero:后面共用那段 .sb-res 还写着 bottom 9% / 12%,同级的话会被它盖回去,上下都定住、整块拉长盖住碟子(11-08 横屏截图抓到) */
.sb-hero .sb-res { bottom: auto; top: 26%; }
.sb-hero .sb-res.is-win { bottom: auto; top: 20%; }
.sb-stamp { top: 50%; }

/* ---------- 桌边头像一排(画面区底下那条桌沿上,照设计稿)+ 下注动态(分页上面一行) ----------
 * 这一局下注的人(最新的在前,最多六个,同一个人几格合起来),头像套黄铜框(ring-avatar),下面写他押了多少;空位画空框 */
/* 左右各三个,中间留给黄铜碟(碟子 x 35%–64%,开盅时骰子在上面,不能被头像挡住) */
.sb-seats { position: absolute; z-index: 2; left: 4px; right: 4px; bottom: 2px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 32% repeat(3, minmax(0, 1fr)); gap: 0 2px; pointer-events: none; }
.sb-seat:nth-child(4) { grid-column: 5; }
.sb-seat { display: grid; justify-items: center; gap: 0; min-width: 0; }
.sb-face { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #0d1410; }
.sb-face img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.sb-face b { font-size: 13px; font-weight: 900; color: var(--brass); }
.sb-face::after { content: ''; position: absolute; inset: -4px -5px -3px; background: url(/img/sicbo/ring-avatar.webp?v=1) center / contain no-repeat; pointer-events: none; }
.sb-seat.is-empty .sb-face { opacity: .4; }
.sb-seat small { margin-top: 1px; padding: 0 5px; border-radius: 999px; background: rgba(6, 6, 5, .8); font-size: 10px; line-height: 13px; font-weight: 800; color: #fff4d6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-crowd-line { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; padding: 1px 12px; border-radius: 999px; background: rgba(8, 12, 10, .85); box-shadow: inset 0 0 0 1px rgba(226, 182, 91, .35); font-size: 12px; }
.sb-feed { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.sb-feed b { color: #fff; }
.sb-feed .sb-feed-fen { color: var(--brass); }
.sb-feed.is-new { animation: sb-feed .35s ease-out; }
@keyframes sb-feed { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sb-players { flex: none; color: var(--ink-2); }
.sb-players[hidden] { display: none; }

/* ---------- 台面上的筹码:每格右下角往上叠(sicbo.js 照每格合计拆面额,新的从下注那个人的头像 / 我的筹码排 / 荷官那边飞进来) ---------- */
/* 小格:筹码搁在左上角的格角上(稍微超出格边),不压到中间的数字 / 骰子和底下的倍数;大格叠在右边、合计那条上面 */
.sb-stack { position: absolute; z-index: 1; left: -3px; top: -4px; width: 27%; max-width: 18px; aspect-ratio: 1 / 1.7; pointer-events: none; }
.sb-big .sb-stack { left: auto; top: auto; right: 6px; bottom: 22px; width: 24%; max-width: 30px; }
.sb-schip { position: absolute; left: 0; right: 0; bottom: calc(var(--k) * 14%); display: block; }
.sb-schip img { display: block; width: 100%; height: auto; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .7)); }
.sb-schip b { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-62%) scaleY(.82); text-align: center; font-size: 8px; font-weight: 900; color: #fff; text-shadow: 0 0 2px rgba(0, 0, 0, .9); font-variant-numeric: tabular-nums; }
.sb-schip.is-mine img { filter: drop-shadow(0 0 2px var(--gold)) drop-shadow(0 1px 1.5px rgba(0, 0, 0, .7)); }
.sb-schip.is-in { animation: sb-chip-in .55s cubic-bezier(.25, .8, .3, 1.15) var(--fd, 0ms) both; }
@keyframes sb-chip-in { from { transform: translate(var(--fx, 0), var(--fy, -40px)) scale(1.5); opacity: .2; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }
.sb-more { position: absolute; right: -4px; top: -10px; padding: 0 4px; border-radius: 999px; background: var(--brass); color: #1a1206; font-style: normal; font-size: 9px; font-weight: 900; line-height: 13px; }

/* ---------- 骰子(CSS 画:象牙白方块,点照 sicbo.js 给的 left / top 摆;1 和 4 的点是红的) ----------
 * 不用百分比 padding:百分比 padding 照外层容器的宽算,骰子放进宽格子里点会被挤成一粒(11-08 封面截图抓到) */
.sb-die {
  position: relative; display: inline-block; box-sizing: border-box;
  width: 22px; height: 22px; border-radius: 22%; flex: none;
  background: linear-gradient(145deg, #fff 0%, #fbf6ea 55%, #e0d5bd 100%); /* 写死颜色:对局记录、后台明细在 .sicbo 外面也画骰子,那里没有 --ivory */
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .5);
}
.sb-die b { position: absolute; width: 20%; height: 20%; border-radius: 50%; background: #1b1416; transform: translate(-50%, -50%); }
.sb-die.is-red b { background: #d8262e; }
.sb-die[data-n="1"] b { width: 30%; height: 30%; }
.sb-die.is-mini { width: 17px; height: 17px; }
.sb-die.is-tiny { width: 11px; height: 11px; border-radius: 3px; }

/* 最近几局那一排:总点,大红 / 小蓝 / 围骰黄铜 */
.sb-rc-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.sb-rc-n.is-big { background: var(--red); }
.sb-rc-n.is-small { background: var(--blue); }
.sb-rc-n.is-triple { background: var(--brass); color: #1a1206; }
.sb-rc { width: 28px; height: 28px; }

/* ---------- 分页:大小点数 / 三军围骰 / 组合 ---------- */
.sb-tabs { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sb-tab { position: relative; min-height: 32px; padding: 0 12px; border-radius: 11px; font-size: 14px; font-weight: 800; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-tab.is-on { background: var(--gold); color: var(--gold-ink); }
.sb-tab-dot { position: absolute; top: 5px; right: 6px; display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.sb-tab.is-on .sb-tab-dot { background: var(--gold-ink); }
.sb-tab.has-bet .sb-tab-dot { display: block; }
.sb-tab.has-win .sb-tab-dot { display: block; background: var(--brass); box-shadow: 0 0 6px var(--brass); }
html:not([lang^="zh"]) .sb-tab { font-size: clamp(11px, 3.3vw, 13px); padding: 0 10px; }

/* ---------- 格子:一次只摆一页,格子区固定高度 ----------
 * 大小点数:28 等分(小 · 单 · 双 · 大各占 7,点数一排七格各占 4);三军围骰:6 等分三排 + 全围整排;组合:5 等分三排 */
.sb-board { flex: none; height: var(--sb-board-h); display: grid; gap: 6px; grid-template-columns: repeat(28, minmax(0, 1fr)); grid-template-rows: 74px minmax(0, 1fr) minmax(0, 1fr); }
.sicbo[data-sb-page="dice"] .sb-board { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)) 34px; }
.sicbo[data-sb-page="combo"] .sb-board { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.sicbo:not(.sb-one):not([data-sb-page="dice"]):not([data-sb-page="combo"]) .sb-cell:not(.sb-t-main),
.sicbo:not(.sb-one)[data-sb-page="dice"] .sb-cell:not(.sb-t-dice),
.sicbo:not(.sb-one)[data-sb-page="combo"] .sb-cell:not(.sb-t-combo) { display: none; }
.sb-cell {
  position: relative; min-width: 0; min-height: 0;
  display: grid; justify-items: center; align-content: center; gap: 2px; padding: 4px 2px;
  border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .09s ease-out, opacity .2s ease-out;
}
/* 四个大格:名字一整行,下面一行点数范围 + 倍数并排,最底下那条是全场合计(大格放得下,小格不放) */
.sb-cell.sb-big { grid-column: span 7; grid-template-columns: auto auto; justify-content: center; column-gap: 5px; row-gap: 1px; padding: 3px 4px 21px; border-radius: 14px; background: radial-gradient(120% 110% at 50% 115%, rgba(142, 27, 34, .5) 0%, var(--surface) 72%); }
.sb-big .sb-cell-name { grid-column: 1 / -1; justify-self: center; }
.sb-cell.sb-k-total { grid-column: span 4; }
.sb-cell.sb-k-any_triple { grid-column: 1 / -1; grid-auto-flow: column; align-items: center; gap: 10px; padding-block: 2px; }
.sb-cell-name { min-width: 0; max-width: 100%; font-size: 15px; font-weight: 900; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .2em .1em; margin: -.2em -.1em; color: #fff; }
.sb-cell-name:empty { display: none; }
.sb-big .sb-cell-name { font-size: clamp(22px, 6.6vw, 28px); letter-spacing: .04em; }
.sb-k-total .sb-cell-name { font-size: clamp(17px, 5vw, 21px); font-variant-numeric: tabular-nums; }
html:not([lang^="zh"]) .sb-big .sb-cell-name { font-size: clamp(14px, 4.2vw, 18px); letter-spacing: 0; }
html:not([lang^="zh"]) .sb-k-any_triple .sb-cell-name { font-size: 13px; }
.sb-cart { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.sb-cart .sb-die { width: clamp(15px, 4.6vw, 20px); height: clamp(15px, 4.6vw, 20px); }
.sb-k-triple .sb-cart .sb-die { width: clamp(12px, 3.5vw, 15px); height: clamp(12px, 3.5vw, 15px); }
.sb-k-any_triple .sb-cart .sb-die { width: 11px; height: 11px; }
.sb-range { font-size: 11px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* 小格子里的东西都缩一号:倍数一行、角标、锁头;合计金额只在四个大格写(小格放不下) */
.sb-cell .sb-pay { font-size: 11px; line-height: 13px; color: var(--brass); }
.sb-cell.sb-big .sb-pay { font-size: 12px; }
.sb-k-single .sb-pay { font-size: 9.5px; letter-spacing: -.02em; }
.sb-cell:not(.sb-big) .sb-cell-sum { display: none; }
.sb-cell:not(.sb-big) .sb-badge { top: -7px; right: -3px; min-width: 22px; height: 17px; padding: 0 4px; font-size: 9.5px; }
.sb-cell:not(.sb-big) .sb-hit { top: -7px; right: -3px; min-width: 28px; height: 17px; padding: 0 4px; font-size: 10px; }
.sb-cell:not(.sb-big) .sb-lock { top: -6px; right: -2px; width: 16px; height: 16px; padding: 3px; }
.sb-cell.is-win .sb-badge { right: auto; left: -3px; }
@media (max-width: 380px) {
  .sb-board { gap: 5px; }
  .sb-cell.sb-big .sb-cell-sum { font-size: 11px; }
}

.sb-stamp { position: absolute; z-index: 4; left: 50%; top: 80%; display: none; transform: translate(-50%, -50%); pointer-events: none; }
.sb-stamp b {
  display: block; padding: 8px 34px 10px; background: var(--gold); color: var(--gold-ink);
  font-size: clamp(22px, 7.4vw, 34px); font-weight: 900; letter-spacing: .06em; white-space: nowrap;
  clip-path: polygon(3% 12%, 18% 0, 46% 8%, 72% 0, 97% 10%, 100% 52%, 96% 92%, 70% 100%, 40% 91%, 14% 100%, 0 84%, 2% 46%);
  transform: rotate(-6deg);
}
.sb-hero.is-stamp .sb-stamp { display: block; animation: sb-stamp .28s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes sb-stamp { from { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.sb-flash { display: none; }

/* 结果画面上我的结果:赢了是黑色刷子底 + 柠檬「赢了」+ 白色大字金额;没中只在下方安静地写一行 */
.sb-res {
  position: absolute; z-index: 4; left: 50%; bottom: 9%; transform: translateX(-50%); max-width: calc(100% - 32px);
  display: grid; justify-items: center; gap: 2px; padding: 8px 20px; border-radius: 16px;
  background: rgba(10, 10, 10, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none;
  animation: sb-rise .28s ease-out both;
}
.sb-res[hidden] { display: none; }
.sb-res b { font-size: 22px; line-height: 1.1; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-res .sb-lost, .sb-res .sb-got { font-size: 17px; color: var(--ink); }
.sb-res small { font-size: 15px; font-variant-numeric: tabular-nums; }
.sb-res .sb-loss { font-weight: 800; color: var(--bad); }
.sb-res.is-win {
  bottom: 12%; padding: 10px 34px 12px; border-radius: 0; background: #0a0d12;
  box-shadow: 0 0 0 2px rgba(232, 198, 106, .55), 0 0 28px rgba(232, 198, 106, .25);
  clip-path: polygon(2% 10%, 30% 0, 66% 6%, 98% 0, 100% 46%, 97% 94%, 64% 100%, 30% 93%, 0 100%, 1% 50%);
  animation: sb-win .42s cubic-bezier(.2, .9, .3, 1.2) both;
}
.sb-res .sb-won-l { font-size: clamp(30px, 10vw, 46px); color: var(--gold); letter-spacing: .08em; }
.sb-res .sb-won { font-size: clamp(28px, 9vw, 42px); color: #fff; }
@keyframes sb-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes sb-win { from { opacity: 0; transform: translateX(-50%) scale(.6) rotate(-4deg); } to { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); } }
.sb-confetti { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.sb-confetti[hidden] { display: none; }
.sb-confetti i {
  position: absolute; top: -8%; left: calc(4% + var(--i) * 6.7%); width: 7px; height: 14px; border-radius: 2px;
  background: var(--gold); opacity: 0;
  animation: sb-fall 1.6s cubic-bezier(.3, .1, .6, 1) calc(var(--i) * 70ms) both;
}
.sb-confetti i:nth-child(3n) { background: #fff; width: 5px; }
.sb-confetti i:nth-child(4n) { background: var(--red); height: 10px; }
.sb-confetti i:nth-child(5n) { background: var(--blue); }
@keyframes sb-fall { 0% { opacity: 0; transform: translateY(0) rotate(0deg); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(820%) rotate(540deg); } }
.sb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- 下面那一块(可以卷) ---------- */
.sb-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 8px; padding: 6px var(--sb-pad) 8px; scrollbar-width: none; }
.sb-body::-webkit-scrollbar { display: none; }

/* 倒数圈 + 状态字(左)和最近几局(右)并成一行 */
.sb-strip { flex: none; display: flex; align-items: center; gap: 8px; min-height: 52px; }
.sb-recent {
  flex: 1 1 0; min-width: 0; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding: 3px;
  -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent);
}
.sb-recent::-webkit-scrollbar { display: none; }
.sb-recent:empty { display: none; }
.sb-rc { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.sb-rc.is-new { box-shadow: 0 0 0 2px var(--gold); }
.sb-status { flex: none; max-width: 60%; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 14px 4px 4px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sb-status.is-void, .sb-status.is-paused, .sb-status.is-wait { flex: 1 1 auto; max-width: none; padding-left: 14px; }
.sb-ring { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; }
.sb-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sb-ring circle { fill: none; stroke-width: 3.5; }
.sb-ring-bg { stroke: #2a2a2a; }
.sb-ring-fg { stroke: var(--gold); stroke-linecap: round; }
.sb-ring b { position: relative; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sb-state { min-width: 0; font-size: 17px; font-weight: 800; letter-spacing: .03em; line-height: 1.15; overflow-wrap: anywhere; }
.sb-status.is-stop .sb-state, .sb-status.is-shake .sb-state, .sb-status.is-open .sb-state { color: var(--gold); }
.sb-status.is-flip .sb-state, .sb-status.is-wait .sb-state, .sb-status.is-void .sb-state, .sb-status.is-paused .sb-state { color: var(--ink-2); font-size: 14px; }
.sb-status.is-void .sb-ring, .sb-status.is-paused .sb-ring, .sb-status.is-wait .sb-ring { display: none; }
html:not([lang^="zh"]) .sb-status { max-width: 66%; }
html:not([lang^="zh"]) .sb-state { font-size: clamp(13px, 3.9vw, 17px); letter-spacing: 0; }

.sb-pay { display: block; font-style: normal; font-size: 13px; line-height: 15px; font-weight: 900; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-cell.is-win .sb-pay { visibility: hidden; }
.sb-cell-sum {
  position: absolute; z-index: 1; left: 50%; bottom: 5px; transform: translateX(-50%); width: calc(100% - 16px); padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); font-size: 12px; line-height: 18px; text-align: center; color: var(--ink); font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.sb-badge {
  position: absolute; top: -12px; right: -6px; z-index: 2; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 900; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #0a0a0a, 0 2px 6px rgba(0, 0, 0, .6);
}
.sb-badge[hidden] { display: none; }
.sb-cell.is-draft .sb-badge { background: #0a0a0a; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); outline: 1.5px dashed rgba(232, 198, 106, .7); outline-offset: 2px; }
.sb-cell.is-pend .sb-badge { opacity: .6; animation: sb-pend .7s ease-in-out infinite alternate; }
@keyframes sb-pend { from { opacity: 1; } to { opacity: .45; } }
.sb-cell.is-win .sb-badge { right: auto; left: -6px; }
.sb-cell.is-on { box-shadow: inset 0 0 0 2px var(--gold); }
.sb-cell.is-draft { box-shadow: inset 0 0 0 1.5px rgba(232, 198, 106, .55); }
.sb-hit {
  position: absolute; top: -12px; right: -6px; z-index: 3; min-width: 44px; height: 24px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 12px rgba(232, 198, 106, .55);
  animation: sb-pop .3s cubic-bezier(.2, .9, .3, 1.3) both;
}
.sb-hit[hidden] { display: none; }
.sb-cell.is-win { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 18px rgba(232, 198, 106, .35); }
.sb-board.is-result .sb-cell.is-dim { opacity: .35; }
@keyframes sb-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.sb-lock {
  position: absolute; top: -11px; right: -5px; z-index: 2; display: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-2); box-shadow: 0 0 0 2px #0a0a0a, inset 0 0 0 1px var(--line);
}
.sb-lock svg { display: block; width: 100%; height: 100%; }
.sb-cell.is-locked { opacity: .62; }
.sb-cell.is-locked .sb-lock { display: block; }
.sb-cell.is-locked.is-on .sb-lock { display: none; }
.sb-cell.is-locked.is-on { opacity: 1; }
.sb-cell.is-full .sb-pay { opacity: .4; }
.sb-board.is-open .sb-cell:active { transform: scale(.96); }

/* 筹码:八颗圆筹码(虚线圈),选中的柠檬色;八颗一排放不下就横着卷 */

.sb-chips { flex: none; display: flex; justify-content: space-between; gap: 5px; padding: 4px 8px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.sb-chips::-webkit-scrollbar { display: none; }
.sb-chip {
  position: relative; flex: 0 0 44px; width: 44px; height: 44px; margin: 2px 0; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 36%, #2e2e2e 0%, #191919 74%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 2px 6px rgba(0, 0, 0, .6);
  font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums;
}
.sb-chip::before {
  content: ''; position: absolute; inset: 2px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #e8e8e8 0 14deg, transparent 14deg 45deg);
  -webkit-mask-image: radial-gradient(circle, transparent 66%, #000 67%);
  mask-image: radial-gradient(circle, transparent 66%, #000 67%);
  opacity: .6;
}
.sb-chip span { position: relative; }
.sb-chip.is-on { background: radial-gradient(circle at 50% 36%, #ffe9a8 0%, var(--gold) 70%); color: var(--gold-ink); box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 4px var(--gold), 0 0 14px rgba(232, 198, 106, .45); }
.sb-chip.is-on::before { background: repeating-conic-gradient(from 0deg, #0a0a0a 0 14deg, transparent 14deg 45deg); opacity: .5; }
.sb-chip.is-dim { opacity: .4; }
.sb-chip:active { transform: translateY(1px) scale(.94); }

/* 三颗按钮:清除 / 重复(深色)+ 柠檬大键「确认下注 RM x」 */
.sb-acts { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.1fr); gap: 8px; }
.sb-act, .sb-go { min-height: 52px; border-radius: 16px; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.sb-act { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sb-go { background: var(--gold); color: var(--gold-ink); font-weight: 900; font-variant-numeric: tabular-nums; }
.sb-go span { display: block; overflow: hidden; text-overflow: ellipsis; }
html:not([lang^="zh"]) .sb-acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.8fr); }
html:not([lang^="zh"]) .sb-act, html:not([lang^="zh"]) .sb-go { font-size: clamp(12px, 3.6vw, 15px); padding: 0 6px; }
html:not([lang^="zh"]) .sb-go span { white-space: normal; line-height: 1.12; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.sb-act:disabled, .sb-go:disabled { opacity: .38; }
.sb-go:disabled { background: #383838; color: #9a9a9a; opacity: 1; }
.sb-act:active:not(:disabled), .sb-go:active:not(:disabled) { transform: scale(.97); }
.sb-acts.sb-wait .sb-go { opacity: .6; }

/* 在线人数 + 本局赢家 + 下注名单 */
.sb-foot { flex: none; display: flex; align-items: center; min-height: 32px; }
.sb-online { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; }
.sb-online[hidden] { display: none; }
.sb-online i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(232, 198, 106, .7); }
.sb-winners, .sb-feed { flex: none; padding: 10px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sb-winners[hidden], .sb-feed[hidden] { display: none; }
.sb-w-h, .sb-feed-h { font-size: 14px; font-weight: 900; color: var(--gold); text-align: center; }
.sb-feed-h { color: var(--ink-2); }
.sb-w-rows, .sb-feed-rows { list-style: none; padding: 0; margin-top: 4px; display: grid; }
.sb-w-rows li, .sb-feed-rows li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.sb-w-rows li:last-child, .sb-feed-rows li:last-child { border-bottom: 0; }
.sb-w-n, .sb-feed-n { flex: 1; min-width: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-w-rows b, .sb-feed-rows b { font-variant-numeric: tabular-nums; }
.sb-w-rows li:first-child b { color: var(--gold); }

@media (max-width: 380px) {
  .sicbo { --sb-pad: 12px; }
  /* 360 宽:八颗筹码一排要放得下(38 × 8 + 间距 + 左右留白 ≤ 336) */
  .sb-chips { padding-inline: 4px; gap: 2px; }
  .sb-chip { flex-basis: 38px; width: 38px; height: 38px; font-size: 11px; }
  .sb-act, .sb-go { font-size: 15px; }
}


/* ---------- B「上海滩夜总会」皮肤(2026-11-08 老板选 B;素材 public/img/sicbo:格子 / 分页 / 按钮 / 头像框 / 倒数圈 / 筹码都是 AI 出的,
 * 格子用 border-image 九宫格切:四个角的黄铜扇形不拉变形,中间的翡翠绒布拉伸) ---------- */
.sicbo { --bg: #070807; --surface: #0e1411; --surface-2: #141d18; --line: #2b2a1f; background: radial-gradient(130% 55% at 50% 0%, #13241c 0%, #070807 62%); }
.sb-cell, .sb-cell.sb-big {
  background: none; box-shadow: none; border-radius: 10px;
  border: 0 solid transparent; border-image-source: url(/img/sicbo/tile-small.webp?v=1); border-image-slice: 96 fill; border-image-width: 11px; border-image-repeat: stretch;
}
.sb-cell.sb-big { border-image-source: url(/img/sicbo/tile-big.webp?v=1); border-image-slice: 92 fill; border-image-width: 14px; }
.sb-cell.is-on, .sb-cell.is-draft { box-shadow: inset 0 0 0 2px var(--gold); }
.sb-cell.is-draft { box-shadow: inset 0 0 0 1.5px rgba(229, 255, 61, .6); }
.sb-cell.is-win, .sb-cell.sb-big.is-win { border-image-source: url(/img/sicbo/tile-win.webp?v=1); border-image-slice: 96 fill; box-shadow: 0 0 16px rgba(229, 255, 61, .35); }
.sb-cell-name { color: #fff4d6; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.sb-cell .sb-pay { color: var(--brass); }
.sb-range { color: #c9bfa4; }
.sb-cell-sum { background: rgba(0, 0, 0, .45); color: #fff4d6; }
.sb-tabs { background: url(/img/sicbo/tabbar.webp?v=1) center / 100% 100% no-repeat; box-shadow: none; padding: 4px 6px; }
.sb-tab { color: #c9bfa4; }
.sb-tab.is-on { background: url(/img/sicbo/tab-on.webp?v=1) center / 100% 100% no-repeat; color: var(--gold-ink); }
.sb-status { background: url(/img/sicbo/pill-dark.webp?v=1) center / 100% 100% no-repeat; box-shadow: none; }
.sb-ring::before { content: ''; position: absolute; inset: -3px; background: url(/img/sicbo/ring-timer.webp?v=1) center / contain no-repeat; opacity: .9; }
.sb-ring-bg { stroke: transparent; }
.sb-chips { background: rgba(6, 9, 7, .7); box-shadow: inset 0 0 0 1px rgba(226, 182, 91, .3); }
/* 筹码排:六张筹码图照顺序配(选中那颗也照它自己的图:.sb-chips 多一层选择器,盖得过共用样式里 .sb-chip.is-on 的渐变底) */
.sb-chip, .sb-chip.is-on { background-color: transparent; background-position: center; background-size: contain; background-repeat: no-repeat; box-shadow: none; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .95), 0 0 1px #000; }
.sb-chips .sb-chip:nth-child(1) { background-image: url(/img/sicbo/chip-5.webp?v=1); }
.sb-chips .sb-chip:nth-child(2) { background-image: url(/img/sicbo/chip-10.webp?v=1); }
.sb-chips .sb-chip:nth-child(3) { background-image: url(/img/sicbo/chip-20.webp?v=1); }
.sb-chips .sb-chip:nth-child(4) { background-image: url(/img/sicbo/chip-50.webp?v=1); }
.sb-chips .sb-chip:nth-child(5) { background-image: url(/img/sicbo/chip-100.webp?v=1); }
.sb-chips .sb-chip:nth-child(n+6) { background-image: url(/img/sicbo/chip-500.webp?v=1); }
.sb-chip:nth-child(1) { color: #1a1206; text-shadow: none; }
.sb-chip::before { display: none; }
.sb-chip span { transform: translateY(-1px) scaleY(.85); }
.sb-chip.is-on { transform: translateY(-3px) scale(1.1); filter: drop-shadow(0 0 5px rgba(229, 255, 61, .95)); }
.sb-chip.is-on:nth-child(1) { color: #1a1206; }
.sb-act { background: url(/img/sicbo/btn-sub.webp?v=1) center / 100% 100% no-repeat; box-shadow: none; color: #fff4d6; }
.sb-go { background: url(/img/sicbo/btn-main.webp?v=1) center / 100% 100% no-repeat; color: var(--gold-ink); }
.sb-go:disabled { background: url(/img/sicbo/btn-sub.webp?v=1) center / 100% 100% no-repeat; color: #8d8672; }


/* ---------- 混合做法的「活」:收注时不播影片,荷官是静态图 + 这几层细微动作(2026-11-08 老板:影片一直播会有拼接感) ----------
 * 两道聚光灯慢慢来回扫、底下一层烟雾左右飘、黄铜桌沿上两点反光轮流闪;只在收注 / 等下一局(is-idle)亮,砸桌、掀盖播影片时收起来 */
.sb-amb { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .4s ease-out; }
.sb-hero.is-idle:not(.is-clip):not(.is-shake) .sb-amb { opacity: 1; }
.sb-beam { position: absolute; top: -20%; width: 26%; height: 110%; background: linear-gradient(to bottom, rgba(255, 226, 160, .22), rgba(255, 226, 160, 0) 85%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); mix-blend-mode: screen; transform-origin: 50% 0; }
.sb-beam.is-l { left: 14%; animation: sb-beam-l 9s ease-in-out infinite alternate; }
.sb-beam.is-r { right: 14%; animation: sb-beam-r 11s ease-in-out infinite alternate; }
@keyframes sb-beam-l { from { transform: rotate(-14deg); opacity: .55; } to { transform: rotate(10deg); opacity: .9; } }
@keyframes sb-beam-r { from { transform: rotate(12deg); opacity: .8; } to { transform: rotate(-10deg); opacity: .5; } }
.sb-haze { position: absolute; left: -20%; right: -20%; bottom: 18%; height: 34%; background: radial-gradient(40% 60% at 30% 60%, rgba(255, 236, 200, .10), transparent 70%), radial-gradient(35% 55% at 70% 50%, rgba(255, 236, 200, .08), transparent 70%); animation: sb-haze 14s ease-in-out infinite alternate; }
@keyframes sb-haze { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
.sb-glint { position: absolute; top: 61%; width: 7%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(255, 246, 214, .95), rgba(255, 220, 140, .35) 40%, transparent 70%); opacity: 0; mix-blend-mode: screen; }
.sb-glint.is-a { left: 21%; animation: sb-glint 5.2s ease-in-out infinite; }
.sb-glint.is-b { left: 72%; animation: sb-glint 5.2s ease-in-out 2.6s infinite; }
@keyframes sb-glint { 0%, 70%, 100% { opacity: 0; transform: scale(.4); } 80% { opacity: 1; transform: scale(1); } 90% { opacity: 0; transform: scale(.6); } }
/* 骰子露出来之后在碟上轻轻弹一下才定住(一颗接一颗) */
.sb-hero.is-dice-on .sb-die-img { animation: sb-settle .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.sb-hero.is-dice-on .sb-die-img[data-die="1"] { animation-delay: 90ms; }
.sb-hero.is-dice-on .sb-die-img[data-die="2"] { animation-delay: 180ms; }
@keyframes sb-settle { 0% { transform: translateY(-14%) scale(1.04); } 55% { transform: translateY(2%) scale(.98); } 100% { transform: none; } }
/* 桌边头像:刚押了跳一下;开完押中的亮柠檬圈 */
.sb-seat.is-bet .sb-face { animation: sb-seat-bet .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes sb-seat-bet { 0% { transform: translateY(0); } 40% { transform: translateY(-22%) scale(1.08); } 100% { transform: none; } }
.sb-seat.is-won .sb-face { box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(229, 255, 61, .8); }
.sb-seat.is-won small { background: var(--gold); color: var(--gold-ink); }


/* ---------- 真骰宝桌(2026-11-08:看过 Evolution / Pragmatic / 亚洲真人厅的骰宝,出了概念图 A 横屏 / B 竖屏 / C 开奖,老板「开始改」;sicbo.js 的 SICBO_ONE_PAGE,根节点挂 sb-one) ----------
 * 竖屏(B):顶栏 → 历史那一排(倒数 · 近 100 局次数 · 路单 / 每局三颗骰子)→ 荷官画面(收注时压矮)→ 一整张台面 → 筹码 → 五颗按钮。
 *   台面:小 / 单 · 全围 + 六个指定围骰 · 大 / 双;对子一排;点数两排;组合三排;三军一排。420 等分格线(4、5、6、7 的公倍数),每格照 data-cell 写死位置。
 * 横屏(A):左栏 顶栏 / 荷官画面 / 筹码 / 按钮;右栏上面历史那一排、下面真骰宝桌那一整张:
 *   小 · 单 · 对子 1–3 · 围骰(两栏三格夹着全围)· 对子 4–6 · 双 · 大 / 点数 4–17 一排 / 组合 15 格一排 / 三军一排;210 等分格线。
 * 区块上面印那一区的倍数(sb-sec:对子 / 围骰 / 组合 / 三军),区里的格子就不再一格一格写倍数;大小单双、全围、点数照旧写在格子里。
 * 格线之间不能留空(会多出几百个间距把格子挤爆):横向间距改成每格左右各 2px 的外边距 */
.sicbo.sb-one .sb-tabs, .sicbo.sb-one .sb-strip, .sicbo.sb-one .sb-crowd-line, .sicbo.sb-one .sb-foot { display: none; }
.sb-sec { display: none; }
.sicbo.sb-one .sb-sec { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; margin-inline: 2px; font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .08em; color: var(--brass); white-space: nowrap; overflow: hidden; }
.sicbo.sb-one .sb-sec::before, .sicbo.sb-one .sb-sec::after { content: ''; flex: 1 1 0; max-width: 64px; height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 182, 91, .6)); }
.sicbo.sb-one .sb-sec::after { background: linear-gradient(90deg, rgba(226, 182, 91, .6), transparent); }
html:not([lang^="zh"]) .sicbo.sb-one .sb-sec { letter-spacing: 0; }

/* 历史那一排(sicbo.js placeNodes 搬进来的倒数、最近几局,加次数和路单键) */
.sb-hist { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 2px var(--sb-pad) 4px; }
.sb-hist[hidden] { display: none; }
.sb-hist .sb-status { order: 1; flex: none; max-width: 52%; min-height: 36px; padding: 2px 12px 2px 2px; border-radius: 14px; gap: 6px; }
.sb-hist .sb-status.is-void, .sb-hist .sb-status.is-paused, .sb-hist .sb-status.is-wait { flex: 1 1 auto; max-width: none; padding-left: 12px; }
.sb-hist .sb-ring { width: 32px; height: 32px; }
.sb-hist .sb-ring b { font-size: 15px; }
.sb-hist .sb-state { font-size: 14px; }
.sb-hist-count { order: 2; flex: 1 1 auto; min-width: 0; font-size: 12px; color: #c9bfa4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.sb-road-btn { order: 3; flex: none; min-height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--brass); background: rgba(8, 12, 10, .85); box-shadow: inset 0 0 0 1px rgba(226, 182, 91, .55); }
.sb-road-btn:active { transform: scale(.96); }
.sb-hist .sb-recent { order: 4; flex: 1 0 100%; gap: 4px; padding: 2px 1px; }
/* 一局一张:三颗小骰子直着叠 + 总点(横屏改成横的) */
.sicbo .sb-rc { width: auto; height: auto; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 3px 2px; border-radius: 8px; background: rgba(10, 16, 13, .88); box-shadow: inset 0 0 0 1px rgba(226, 182, 91, .3); }
.sicbo .sb-rc.is-new { box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 8px rgba(229, 255, 61, .35); }
.sb-hc-dice { display: flex; flex-direction: column; gap: 1px; }
.sicbo .sb-hc-dice .sb-die.is-tiny { width: 9px; height: 9px; border-radius: 2px; }
.sicbo .sb-rc .sb-rc-n { width: 19px; height: 19px; font-size: 10.5px; }

/* 竖屏:顶栏收矮一点,画面区收注时压矮、开盅 / 开完放大成 16:9(推下面的格子,开完那几秒不下注) */
.sicbo.sb-one:not(.sb-land) .sb-top { padding-block: 4px; }
.sicbo.sb-one:not(.sb-land) .sb-back, .sicbo.sb-one:not(.sb-land) .sb-help { width: 40px; height: 40px; }
.sicbo.sb-one .sb-hero { height: calc(var(--sb-w) * .5625); transition: height .45s cubic-bezier(.3, .7, .2, 1); }
.sicbo.sb-one .sb-hero.is-breathe { height: min(108px, calc(var(--sb-w) * .28)); }
@media (prefers-reduced-motion: reduce) { .sicbo.sb-one .sb-hero { transition: none; } }
.sicbo.sb-one:not(.sb-land) .sb-body { gap: 6px; padding-top: 4px; }
.sicbo.sb-one:not(.sb-land) .sb-board { height: auto; grid-template-columns: repeat(420, minmax(0, 1fr)); grid-template-rows: 22px 28px 28px 13px 28px 30px 30px 13px 26px 26px 26px 13px 30px; column-gap: 0; row-gap: 3px; margin-inline: -2px; }
.sicbo.sb-one .sb-cell { min-height: 0; margin-inline: 2px; padding: 1px; gap: 1px; border-image-width: 8px; }
.sicbo.sb-one .sb-cell.sb-big { border-image-width: 10px; }
.sicbo.sb-one :is(.sb-k-double, .sb-k-combo, .sb-k-single) .sb-pay { display: none; }
.sicbo.sb-one .sb-cell .sb-pay { font-size: 9.5px; line-height: 11px; }
.sicbo.sb-one .sb-cart .sb-die { width: 14px; height: 14px; }
.sicbo.sb-one .sb-k-triple .sb-cart { gap: 1px; }
.sicbo.sb-one .sb-k-triple .sb-cart .sb-die { width: 11px; height: 11px; border-radius: 2.5px; }
.sicbo.sb-one .sb-k-single .sb-cart .sb-die { width: 17px; height: 17px; }
.sicbo.sb-one .sb-k-total .sb-cell-name { font-size: 16px; }
.sicbo.sb-one .sb-k-any_triple { grid-auto-flow: column; align-items: center; justify-content: center; gap: 8px; padding-block: 0; }
.sicbo.sb-one .sb-k-any_triple .sb-cart { display: none; }
.sicbo.sb-one .sb-k-any_triple .sb-cell-name { font-size: 13px; max-width: none; overflow: visible; }
.sicbo.sb-one .sb-stack { width: 24%; max-width: 15px; }
.sicbo.sb-one .sb-cell:not(.sb-big) .sb-badge { min-width: 20px; height: 15px; font-size: 9px; }
/* 竖屏的小 / 大:两排高,名字一行、点数范围 + 倍数一行、全场合计在底;单 / 双一排高:名字 + 倍数并排,不写合计 */
.sicbo.sb-one:not(.sb-land) .sb-cell:is(.sb-k-small, .sb-k-big) { padding-bottom: 18px; }
.sicbo.sb-one:not(.sb-land) .sb-cell:is(.sb-k-small, .sb-k-big) .sb-cell-name { font-size: 22px; }
.sicbo.sb-one:not(.sb-land) .sb-cell:is(.sb-k-small, .sb-k-big) .sb-stack { top: 12px; right: 4px; bottom: auto; }
.sicbo.sb-one:not(.sb-land) .sb-cell:is(.sb-k-odd, .sb-k-even) { grid-template-columns: auto auto; align-content: center; justify-content: center; column-gap: 8px; padding: 1px 6px; }
.sicbo.sb-one:not(.sb-land) .sb-cell:is(.sb-k-odd, .sb-k-even) .sb-cell-name { grid-column: auto; font-size: 17px; }
.sicbo.sb-one:not(.sb-land) .sb-cell:is(.sb-k-odd, .sb-k-even) .sb-cell-sum { display: none; }
.sicbo.sb-one:not(.sb-land) .sb-cell:is(.sb-k-odd, .sb-k-even) .sb-stack { left: -3px; top: -4px; right: auto; bottom: auto; width: 24%; max-width: 15px; }
.sicbo.sb-one:not(.sb-land) .sb-sec-double-l, .sicbo.sb-one:not(.sb-land) .sb-sec-double-r, .sicbo.sb-one:not(.sb-land) .sb-sec-triple { display: none; }
.sicbo.sb-one:not(.sb-land) [data-cell="small"] { grid-column: 1 / span 105; grid-row: 1 / span 2; }
.sicbo.sb-one:not(.sb-land) [data-cell="odd"] { grid-column: 1 / span 105; grid-row: 3; }
.sicbo.sb-one:not(.sb-land) [data-cell="any_triple"] { grid-column: 106 / span 210; grid-row: 1; }
.sicbo.sb-one:not(.sb-land) [data-cell="triple_1"] { grid-column: 106 / span 70; grid-row: 2; }
.sicbo.sb-one:not(.sb-land) [data-cell="triple_2"] { grid-column: 176 / span 70; grid-row: 2; }
.sicbo.sb-one:not(.sb-land) [data-cell="triple_3"] { grid-column: 246 / span 70; grid-row: 2; }
.sicbo.sb-one:not(.sb-land) [data-cell="triple_4"] { grid-column: 106 / span 70; grid-row: 3; }
.sicbo.sb-one:not(.sb-land) [data-cell="triple_5"] { grid-column: 176 / span 70; grid-row: 3; }
.sicbo.sb-one:not(.sb-land) [data-cell="triple_6"] { grid-column: 246 / span 70; grid-row: 3; }
.sicbo.sb-one:not(.sb-land) [data-cell="big"] { grid-column: 316 / span 105; grid-row: 1 / span 2; }
.sicbo.sb-one:not(.sb-land) [data-cell="even"] { grid-column: 316 / span 105; grid-row: 3; }
.sicbo.sb-one:not(.sb-land) .sb-sec-double { grid-column: 1 / -1; grid-row: 4; }
.sicbo.sb-one:not(.sb-land) [data-cell="double_1"] { grid-column: 1 / span 70; grid-row: 5; }
.sicbo.sb-one:not(.sb-land) [data-cell="double_2"] { grid-column: 71 / span 70; grid-row: 5; }
.sicbo.sb-one:not(.sb-land) [data-cell="double_3"] { grid-column: 141 / span 70; grid-row: 5; }
.sicbo.sb-one:not(.sb-land) [data-cell="double_4"] { grid-column: 211 / span 70; grid-row: 5; }
.sicbo.sb-one:not(.sb-land) [data-cell="double_5"] { grid-column: 281 / span 70; grid-row: 5; }
.sicbo.sb-one:not(.sb-land) [data-cell="double_6"] { grid-column: 351 / span 70; grid-row: 5; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_4"] { grid-column: 1 / span 60; grid-row: 6; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_5"] { grid-column: 61 / span 60; grid-row: 6; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_6"] { grid-column: 121 / span 60; grid-row: 6; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_7"] { grid-column: 181 / span 60; grid-row: 6; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_8"] { grid-column: 241 / span 60; grid-row: 6; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_9"] { grid-column: 301 / span 60; grid-row: 6; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_10"] { grid-column: 361 / span 60; grid-row: 6; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_11"] { grid-column: 1 / span 60; grid-row: 7; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_12"] { grid-column: 61 / span 60; grid-row: 7; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_13"] { grid-column: 121 / span 60; grid-row: 7; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_14"] { grid-column: 181 / span 60; grid-row: 7; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_15"] { grid-column: 241 / span 60; grid-row: 7; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_16"] { grid-column: 301 / span 60; grid-row: 7; }
.sicbo.sb-one:not(.sb-land) [data-cell="total_17"] { grid-column: 361 / span 60; grid-row: 7; }
.sicbo.sb-one:not(.sb-land) .sb-sec-combo { grid-column: 1 / -1; grid-row: 8; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_1_2"] { grid-column: 1 / span 84; grid-row: 9; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_1_3"] { grid-column: 85 / span 84; grid-row: 9; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_1_4"] { grid-column: 169 / span 84; grid-row: 9; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_1_5"] { grid-column: 253 / span 84; grid-row: 9; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_1_6"] { grid-column: 337 / span 84; grid-row: 9; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_2_3"] { grid-column: 1 / span 84; grid-row: 10; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_2_4"] { grid-column: 85 / span 84; grid-row: 10; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_2_5"] { grid-column: 169 / span 84; grid-row: 10; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_2_6"] { grid-column: 253 / span 84; grid-row: 10; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_3_4"] { grid-column: 337 / span 84; grid-row: 10; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_3_5"] { grid-column: 1 / span 84; grid-row: 11; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_3_6"] { grid-column: 85 / span 84; grid-row: 11; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_4_5"] { grid-column: 169 / span 84; grid-row: 11; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_4_6"] { grid-column: 253 / span 84; grid-row: 11; }
.sicbo.sb-one:not(.sb-land) [data-cell="combo_5_6"] { grid-column: 337 / span 84; grid-row: 11; }
.sicbo.sb-one:not(.sb-land) .sb-sec-single { grid-column: 1 / -1; grid-row: 12; }
.sicbo.sb-one:not(.sb-land) [data-cell="single_1"] { grid-column: 1 / span 70; grid-row: 13; }
.sicbo.sb-one:not(.sb-land) [data-cell="single_2"] { grid-column: 71 / span 70; grid-row: 13; }
.sicbo.sb-one:not(.sb-land) [data-cell="single_3"] { grid-column: 141 / span 70; grid-row: 13; }
.sicbo.sb-one:not(.sb-land) [data-cell="single_4"] { grid-column: 211 / span 70; grid-row: 13; }
.sicbo.sb-one:not(.sb-land) [data-cell="single_5"] { grid-column: 281 / span 70; grid-row: 13; }
.sicbo.sb-one:not(.sb-land) [data-cell="single_6"] { grid-column: 351 / span 70; grid-row: 13; }

/* ---------- 横屏(2026-11-08 老板「横屏展示全部」,同一天换成 A 图真骰宝桌;sicbo.js 的 SICBO_LAND_MQ,根节点挂 sb-land + sb-one) ----------
 * 左栏 顶栏 / 荷官画面 / 筹码 / 按钮,右栏 历史那一排 / 一整张台面。.sb-body 拆开(display: contents),里面每一块各自排进根节点的格线。
 * 左右留白照手机的安全区(刘海那边),高度不够时只有格子区自己卷 */
/* player-layout.css 把每个游戏页限在 520 宽(竖屏用);横屏要整个画面摊开 */
body:not(.admin-open) .sicbo.sb-land { max-width: none; }
.sicbo.sb-land {
  --sb-lw: clamp(240px, 38vw, 400px);
  display: grid; column-gap: 12px; row-gap: 6px;
  grid-template-columns: var(--sb-lw) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "top hist" "hero board" "chips board" "acts board";
  padding: max(4px, var(--safe-t, 0px)) max(10px, env(safe-area-inset-right), var(--tg-safe-area-inset-right, 0px)) calc(var(--safe-b, 0px) + 6px) max(10px, env(safe-area-inset-left), var(--tg-safe-area-inset-left, 0px));
}
.sicbo.sb-land .sb-body { display: contents; }
.sicbo.sb-land .sb-winners { display: none; }
.sicbo.sb-land .sb-top { grid-area: top; min-width: 0; padding: 0; gap: 6px; }
.sicbo.sb-land .sb-back, .sicbo.sb-land .sb-help { width: 36px; height: 36px; border-radius: 12px; }
.sicbo.sb-land .sb-help { border-radius: 50%; }
.sicbo.sb-land .sb-title { font-size: 17px; }
.sicbo.sb-land .sb-bal { padding: 7px 10px; font-size: 13px; }
.sicbo.sb-land .sb-hero, .sicbo.sb-land .sb-hero.is-breathe { grid-area: hero; align-self: center; height: 100%; max-height: calc(var(--sb-lw) * .5625); border-radius: 12px; transition: none; }
.sicbo.sb-land .sb-hist { grid-area: hist; flex-wrap: nowrap; min-width: 0; padding: 0; }
.sicbo.sb-land .sb-hist-count { display: none; }
.sicbo.sb-land .sb-hist .sb-recent { order: 2; flex: 1 1 auto; }
.sicbo.sb-land .sb-rc, .sicbo.sb-land .sb-hc-dice { flex-direction: row; }
.sicbo.sb-land .sb-rc { padding: 2px 3px; gap: 3px; }
.sicbo.sb-land .sb-chips { grid-area: chips; padding: 2px 6px; }
/* 左栏窄(iPhone SE 横放只有 250 宽)六颗筹码要一排放下:筹码跟着缩,最大 40 */
.sicbo.sb-land .sb-chip { flex: 0 1 40px; width: auto; height: auto; aspect-ratio: 1; min-width: 0; font-size: 12px; }
.sicbo.sb-land .sb-acts { grid-area: acts; }
.sicbo.sb-land .sb-act, .sicbo.sb-land .sb-go { min-height: 44px; border-radius: 14px; font-size: 13px; }
.sicbo.sb-land .sb-board { grid-area: board; align-self: stretch; height: auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; grid-template-columns: repeat(210, minmax(0, 1fr)); grid-template-rows: 12px repeat(3, minmax(20px, 1fr)) minmax(28px, 1.15fr) 12px minmax(32px, 1.3fr) 12px minmax(28px, 1.1fr); column-gap: 0; row-gap: 3px; margin: 0; padding: 6px 2px 2px; }
.sicbo.sb-land .sb-board::-webkit-scrollbar { display: none; }
.sicbo.sb-land .sb-sec-double { display: none; }
/* 横屏的格子又窄又高:大小单双、对子、全围直着排;组合两颗骰子上下叠;围骰的倍数印在区块上 */
.sicbo.sb-land .sb-cell.sb-big { grid-template-columns: auto; padding: 2px 1px 18px; }
.sicbo.sb-land .sb-cell.sb-big .sb-cell-name { font-size: 20px; }
.sicbo.sb-land .sb-cell:is(.sb-k-odd, .sb-k-even) { padding-bottom: 2px; }
.sicbo.sb-land .sb-cell:is(.sb-k-odd, .sb-k-even) .sb-cell-name { font-size: 17px; }
.sicbo.sb-land .sb-cell:is(.sb-k-odd, .sb-k-even) .sb-cell-sum { display: none; }
.sicbo.sb-land .sb-big .sb-cell-sum { width: calc(100% - 6px); padding: 0 2px; font-size: 10px; bottom: 3px; }
.sicbo.sb-land .sb-big .sb-stack { right: 2px; bottom: 20px; width: 34%; max-width: 16px; }
.sicbo.sb-land .sb-big .sb-range { font-size: 10px; }
html:not([lang^="zh"]) .sicbo.sb-land .sb-big .sb-cell-name { font-size: 12px; }
.sicbo.sb-land :is(.sb-k-double, .sb-k-combo) .sb-cart { flex-direction: column; gap: 2px; }
.sicbo.sb-land .sb-k-combo .sb-cart .sb-die { width: 12px; height: 12px; }
.sicbo.sb-land .sb-k-triple .sb-pay { display: none; }
.sicbo.sb-land .sb-k-triple .sb-cart .sb-die { width: 9px; height: 9px; border-radius: 2px; }
.sicbo.sb-land .sb-k-any_triple { grid-auto-flow: row; gap: 2px; }
.sicbo.sb-land .sb-k-any_triple .sb-cell-name { font-size: 12px; white-space: normal; line-height: 1.15; }
.sicbo.sb-land .sb-k-total .sb-cell-name { font-size: 14px; }
.sicbo.sb-land .sb-k-total .sb-pay { font-size: 8.5px; }
.sicbo.sb-land [data-cell="small"] { grid-column: 1 / span 22; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="odd"] { grid-column: 23 / span 14; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="double_1"] { grid-column: 37 / span 14; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="double_2"] { grid-column: 51 / span 14; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="double_3"] { grid-column: 65 / span 14; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="triple_1"] { grid-column: 79 / span 18; grid-row: 2; }
.sicbo.sb-land [data-cell="triple_3"] { grid-column: 79 / span 18; grid-row: 3; }
.sicbo.sb-land [data-cell="triple_5"] { grid-column: 79 / span 18; grid-row: 4; }
.sicbo.sb-land [data-cell="any_triple"] { grid-column: 97 / span 18; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="triple_2"] { grid-column: 115 / span 18; grid-row: 2; }
.sicbo.sb-land [data-cell="triple_4"] { grid-column: 115 / span 18; grid-row: 3; }
.sicbo.sb-land [data-cell="triple_6"] { grid-column: 115 / span 18; grid-row: 4; }
.sicbo.sb-land [data-cell="double_4"] { grid-column: 133 / span 14; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="double_5"] { grid-column: 147 / span 14; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="double_6"] { grid-column: 161 / span 14; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="even"] { grid-column: 175 / span 14; grid-row: 2 / span 3; }
.sicbo.sb-land [data-cell="big"] { grid-column: 189 / span 22; grid-row: 2 / span 3; }
.sicbo.sb-land .sb-sec-double-l { grid-column: 37 / span 42; grid-row: 1; }
.sicbo.sb-land .sb-sec-triple { grid-column: 79 / span 54; grid-row: 1; }
.sicbo.sb-land .sb-sec-double-r { grid-column: 133 / span 42; grid-row: 1; }
.sicbo.sb-land [data-cell="total_4"] { grid-column: 1 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_5"] { grid-column: 16 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_6"] { grid-column: 31 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_7"] { grid-column: 46 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_8"] { grid-column: 61 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_9"] { grid-column: 76 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_10"] { grid-column: 91 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_11"] { grid-column: 106 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_12"] { grid-column: 121 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_13"] { grid-column: 136 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_14"] { grid-column: 151 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_15"] { grid-column: 166 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_16"] { grid-column: 181 / span 15; grid-row: 5; }
.sicbo.sb-land [data-cell="total_17"] { grid-column: 196 / span 15; grid-row: 5; }
.sicbo.sb-land .sb-sec-combo { grid-column: 1 / -1; grid-row: 6; }
.sicbo.sb-land [data-cell="combo_1_2"] { grid-column: 1 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_1_3"] { grid-column: 15 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_1_4"] { grid-column: 29 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_1_5"] { grid-column: 43 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_1_6"] { grid-column: 57 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_2_3"] { grid-column: 71 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_2_4"] { grid-column: 85 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_2_5"] { grid-column: 99 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_2_6"] { grid-column: 113 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_3_4"] { grid-column: 127 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_3_5"] { grid-column: 141 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_3_6"] { grid-column: 155 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_4_5"] { grid-column: 169 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_4_6"] { grid-column: 183 / span 14; grid-row: 7; }
.sicbo.sb-land [data-cell="combo_5_6"] { grid-column: 197 / span 14; grid-row: 7; }
.sicbo.sb-land .sb-sec-single { grid-column: 1 / -1; grid-row: 8; }
.sicbo.sb-land [data-cell="single_1"] { grid-column: 1 / span 35; grid-row: 9; }
.sicbo.sb-land [data-cell="single_2"] { grid-column: 36 / span 35; grid-row: 9; }
.sicbo.sb-land [data-cell="single_3"] { grid-column: 71 / span 35; grid-row: 9; }
.sicbo.sb-land [data-cell="single_4"] { grid-column: 106 / span 35; grid-row: 9; }
.sicbo.sb-land [data-cell="single_5"] { grid-column: 141 / span 35; grid-row: 9; }
.sicbo.sb-land [data-cell="single_6"] { grid-column: 176 / span 35; grid-row: 9; }
/* 画面区横屏比竖屏窄:开完的横幅、我的输赢字缩一号 */
.sicbo.sb-land .sb-res { padding: 5px 16px; }
.sicbo.sb-land .sb-res.is-win { top: 27%; padding: 5px 26px 7px; }
.sicbo.sb-land .sb-res b { font-size: 18px; }
.sicbo.sb-land .sb-res .sb-won-l { font-size: 24px; }
.sicbo.sb-land .sb-res .sb-won { font-size: 24px; }
.sicbo.sb-land .sb-stamp b { font-size: 26px; padding: 6px 26px 8px; }

/* 五颗按钮(清除 · 撤销 · 重复 · 加倍 · 确认下注;bowl-page 的 moreActs) */
.sicbo .sb-acts:has([data-sb="undo"]) { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.75fr); gap: 6px; }
.sicbo .sb-acts:has([data-sb="undo"]) :is(.sb-act, .sb-go) { font-size: 14px; padding: 0 4px; }
html:not([lang^="zh"]) .sicbo .sb-acts:has([data-sb="undo"]) .sb-act { font-size: clamp(10px, 3vw, 13px); }

/* 开奖那一下(C 图):结果刚出来 2.6 秒,三颗大骰子 + 「小 · 10 · 双」放在画面正中、画面压暗,我的输赢在下面;之后缩回上方那条(sicbo.js paintCall) */
.sb-call-row { display: inline-flex; align-items: center; gap: 7px; }
.sb-call:not(.is-big) .sb-call-row b { order: -1; }
.sb-call.is-big { top: 5%; flex-direction: column; gap: 6px; padding: 0; background: none; box-shadow: none; animation: sb-bigcall .45s cubic-bezier(.2, .9, .3, 1.25) both; transform: translateX(-50%); }
.sb-call.is-big .sb-call-dice { gap: 8px; }
.sb-call.is-big .sb-call-dice img { width: min(13vw, 58px); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .7)) drop-shadow(0 0 14px rgba(255, 214, 120, .45)); }
.sicbo.sb-land .sb-call.is-big .sb-call-dice img { width: min(4.8vw, 50px); }
.sicbo.sb-land .sb-call.is-big .sb-call-row { padding: 3px 14px; }
.sicbo.sb-land .sb-call.is-big .sb-call-row b { font-size: 26px; }
.sicbo.sb-land .sb-call.is-big em { font-size: 13px; padding: 2px 10px; }
.sicbo.sb-land .sb-hero:has(.sb-call.is-big) .sb-res { top: 58%; }
.sb-call.is-big .sb-call-row { gap: 10px; padding: 5px 18px; border-radius: 14px; background: rgba(8, 7, 6, .92); box-shadow: 0 0 0 1.5px var(--brass), 0 0 24px rgba(226, 182, 91, .45); }
.sb-call.is-big .sb-call-row b { font-size: clamp(26px, 8vw, 36px); }
.sb-call.is-big em { font-size: 15px; padding: 3px 12px; }
@keyframes sb-bigcall { from { opacity: 0; transform: translateX(-50%) scale(.45); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.sb-hero:has(.sb-call.is-big)::before { content: ''; position: absolute; inset: 0; z-index: 2; background: radial-gradient(75% 75% at 50% 48%, rgba(0, 0, 0, .3), rgba(0, 0, 0, .72)); pointer-events: none; animation: sb-dim .3s ease-out both; }
@keyframes sb-dim { from { opacity: 0; } to { opacity: 1; } }
/* 我的输赢排在大字下面、桌边头像上面(画面区 16:9:骰子 + 总点占上面一半) */
.sb-hero:has(.sb-call.is-big) .sb-res, .sb-hero:has(.sb-call.is-big) .sb-res.is-win { top: 53%; bottom: auto; padding: 5px 18px; }
.sb-hero:has(.sb-call.is-big) .sb-res.is-win { padding: 4px 26px 6px; }
.sb-hero:has(.sb-call.is-big) .sb-res .sb-won-l, .sb-hero:has(.sb-call.is-big) .sb-res .sb-won { font-size: clamp(20px, 6.4vw, 26px); }
.sb-hero:has(.sb-call.is-big) .sb-res .sb-lost, .sb-hero:has(.sb-call.is-big) .sb-res b { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .sb-call.is-big, .sb-hero:has(.sb-call.is-big)::before { animation: none; } }

/* 路单(点「路单」打开):近 100 局次数、大小 / 单双珠盘路(6 行一列,旧的在左)、每个点数开出几颗 */
.sb-road { position: absolute; inset: 0; z-index: 30; display: grid; place-items: end center; padding: 0 8px calc(var(--safe-b, 0px) + 8px); background: rgba(0, 0, 0, .55); }
.sb-road[hidden] { display: none; }
.sicbo.sb-land .sb-road { place-items: center; }
/* 横屏矮:两张珠盘路左右并排,点数次数在下面整排 */
.sicbo.sb-land .sb-road-card { width: min(100%, 680px); max-height: 92%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; row-gap: 6px; }
.sicbo.sb-land :is(.sb-road-h, .sb-road-sum, .sb-road-f-h, .sb-faces) { grid-column: 1 / -1; }
.sicbo.sb-land .sb-road-bs-h { grid-column: 1; grid-row: 3; }
.sicbo.sb-land .sb-plate-bs { grid-column: 1; grid-row: 4; }
.sicbo.sb-land .sb-road-oe-h { grid-column: 2; grid-row: 3; }
.sicbo.sb-land .sb-plate-oe { grid-column: 2; grid-row: 4; }
.sicbo.sb-land .sb-plate { grid-template-rows: repeat(6, 19px); grid-auto-columns: 19px; gap: 2px; }
.sicbo.sb-land .sb-bead { width: 19px; height: 19px; font-size: 9px; }
.sicbo.sb-land .sb-faces .sb-die { width: 20px; height: 20px; }
.sb-road-card { width: min(100%, 440px); max-height: 82%; overflow-y: auto; display: grid; gap: 8px; padding: 14px 14px 16px; border-radius: 18px; background: #0b100d; box-shadow: inset 0 0 0 1px rgba(226, 182, 91, .45), 0 -10px 40px rgba(0, 0, 0, .6); }
.sb-road-h { display: flex; align-items: center; justify-content: space-between; }
.sb-road-h b { font-size: 17px; letter-spacing: .06em; color: #fff4d6; }
.sb-road-x { width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink-2); background: var(--surface); }
.sb-road-sum { font-size: 13px; color: #c9bfa4; font-variant-numeric: tabular-nums; }
.sb-road-card h4 { margin: 4px 0 0; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sb-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 4px; }
.sb-plate { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, 22px); grid-auto-columns: 22px; gap: 3px; overflow-x: auto; padding: 6px; border-radius: 10px; background: rgba(15, 36, 28, .85); box-shadow: inset 0 0 0 1px rgba(226, 182, 91, .25); }
.sb-bead { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.sb-bead.is-big, .sb-key.is-big { background: var(--red); }
.sb-bead.is-small, .sb-key.is-small { background: var(--blue); }
.sb-bead.is-triple, .sb-key.is-triple { background: var(--brass); color: #1a1206; }
.sb-bead.is-odd, .sb-key.is-odd { background: #2aa57f; }
.sb-bead.is-even, .sb-key.is-even { background: #8a5cf0; }
.sb-faces { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 4px 0; }
.sb-faces span { display: grid; justify-items: center; gap: 4px; }
.sb-faces .sb-die { width: 24px; height: 24px; }
.sb-faces b { font-size: 13px; color: #fff4d6; font-variant-numeric: tabular-nums; }

/* 关了动态效果:不呼吸、不转、不撒彩带;落定那一帧直接出来,横幅和结果照样出 */
@media (prefers-reduced-motion: reduce) {
  .sb-call, .sb-hero.is-stamp .sb-stamp, .sb-res, .sb-res.is-win, .sb-confetti i, .sb-hit, .sb-cell.is-pend .sb-badge { animation: none; }
  .sb-confetti { display: none; }
  .sb-cell { transition: none; }
}
/* 关了动态效果:盖子不晃、不摇、不震,骰子直接落定,盖子直接不见 */
@media (prefers-reduced-motion: reduce) {
  .sb-hero.is-breathe .sb-rig, .sb-hero.is-shake .sb-rig, .sb-hero.is-jolt .sb-art, .sb-hero.is-flash .sb-flash, .sb-hero.is-tense .sb-rig,
  .sb-hero.is-dice-in .sb-die-img, .sb-hero.is-dice-in .sb-glow, .sb-hero.is-dice-on .sb-glow, .sb-schip.is-in, .sb-feed.is-new,
  .sb-beam, .sb-haze, .sb-glint, .sb-hero.is-dice-on .sb-die-img, .sb-seat.is-bet .sb-face { animation: none; }
}
