/* 欧式轮盘 —— B「迈阿密霓虹夜」(2026-11-09 老板选的概念图:深靛紫夜店、洋红 / 青色霓虹、镀铬轮盘、章鱼荷官)
 * 版面(竖屏)照真人轮盘:顶栏 / 画面区(实时 3D 轮盘叠在荷官前面,public/roulette-wheel.js 画在 canvas 上;收注时压矮、转轮 / 开完放大)/
 * 下面一块:倒数圈 + 状态和最近几局、下注动态、直式轮盘桌(0 在上,1–36 三列十二排,最下 2:1;左边打 + 外围)、筹码、按钮、在线人数;本局赢家在最下面。
 * 页面的 JS 跟骰宝、百家乐共用(public/bowl-page.js),class 名字照它的写法,前缀 rl-。动画只动 transform / opacity;关了动态效果的手机直接出最后那一格。
 * 共用的那几块(顶栏、结果、倒数、筹码、按钮、赢家)照骰宝那份样式搬过来换前缀,颜色换成这个游戏的。
 */
.roulette {
  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: #07050f; --surface: #120d22; --surface-2: #1a1430; --line: #2e2452;
  --ink: #fff; --ink-2: #a49cc4; --ink-3: #625a84; --gold: #e5ff3d; --gold-ink: #0a0a0a; --bad: #ff5a6e;
  --mag: #ff3fb4; --cyan: #3ff0ff; --chrome: #dcdcea;
  --red: #d61f3c; --red-lo: #8a0b22; --black: #15111f; --green: #0f9a55; --green-lo: #075c33;
  --blue: #3ff0ff;
  --rl-pad: 14px;
  /* 一排格子多高:照手机高度算(14 排 + 上面下面那几块要尽量一屏放下),最小 19、最大 30 */
  --rl-row: clamp(19px, calc((100dvh - 560px) / 14), 30px);
  --sans: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(120% 60% at 50% 0%, #1d0b33 0%, #0b0716 55%, #07050f 100%); color: var(--ink); font-family: var(--sans);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.roulette[hidden] { display: none; }
.roulette :where(p, h2, h3, ul) { margin: 0; }
.roulette :where(button) { appearance: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; background: none; cursor: pointer; }
.roulette button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.roulette img, .roulette video, .roulette canvas { -webkit-user-drag: none; pointer-events: none; }
.roulette :where(button) { appearance: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; background: none; cursor: pointer; }
.roulette button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.roulette img, .roulette video { -webkit-user-drag: none; pointer-events: none; }
/* 按钮里面的字、金额、硬币图一律点不到:别人一押,格子里的总下注就改字(金额还会被 PA 金币那层换掉),按在上面的话松手时那个元素已经没了,浏览器不发 click */
.roulette button > *, .roulette button * { pointer-events: none; }


/* ---------- 顶栏 ---------- */
.rl-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.rl-back, .rl-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); }
.rl-back svg, .rl-help svg { width: 22px; height: 22px; }
.rl-help { color: var(--ink-2); font-weight: 700; border-radius: 50%; }
.rl-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"]) .rl-title { font-size: clamp(15px, 4.4vw, 19px); letter-spacing: 0; padding: .32em 0 .12em; margin: -.32em 0 -.12em; }
.rl-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; }
.rl-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; }
.rl-dep[hidden] { display: none; }
.rl-top:has(.rl-dep:not([hidden])) .rl-bal { max-width: 32%; padding-inline: 10px; }
.rl-top.rl-has-music { gap: 6px; }
.rl-top.rl-has-music .rl-title { font-size: 19px; }
.rl-top.rl-has-music .rl-bal { padding-inline: 10px; flex-shrink: 1; min-width: 0; }
@media (max-width: 380px) { .rl-top { gap: 6px; padding-inline: 12px; } .rl-title { font-size: 19px; } .rl-bal { padding: 8px 10px; font-size: 13px; } }


/* ---------- 画面区:实时 3D 轮盘(canvas)叠在章鱼荷官前面 ----------
 * 收注时压矮(要把整张桌子放进一屏),停止下注到开完放大(那段时间不能下注,大家看球)。高度变化走 transition,canvas 自己照大小重画 */
.rl-hero {
  position: relative; flex: none; overflow: hidden; margin: 0 var(--rl-pad); border-radius: 18px;
  height: clamp(132px, 38vw, 210px); background: #0b0716;
  box-shadow: 0 0 0 1px rgba(255, 63, 180, .35), 0 0 22px rgba(255, 63, 180, .18), inset 0 0 0 1px rgba(63, 240, 255, .12);
  transition: height .5s cubic-bezier(.3, .7, .2, 1);
}
.rl-hero.is-closing, .rl-hero.is-reveal, .rl-hero.is-result { height: clamp(220px, 72vw, 46dvh); }
.rl-art, .rl-rig { position: absolute; inset: 0; }
.rl-poster, .rl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rl-poster { object-fit: cover; object-position: 50% 30%; transition: opacity .4s; }
.rl-hero.rl-gl-on .rl-poster { opacity: 0; }
.rl-hero.rl-no-gl .rl-canvas { display: none; }
/* 停稳那一下画面上方亮出号码(圆牌,红 / 黑 / 绿底 + 霓虹圈) */
.rl-call {
  position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 5px rgba(229, 255, 61, .55), 0 0 26px rgba(229, 255, 61, .45);
  animation: rl-call .45s cubic-bezier(.2, .9, .3, 1.3) both; pointer-events: none;
}
.rl-call[hidden] { display: none; }
.rl-call b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.rl-call.is-red { background: radial-gradient(circle at 50% 35%, #ff4d66, var(--red-lo)); }
.rl-call.is-black { background: radial-gradient(circle at 50% 35%, #3a3350, #07060c); }
.rl-call.is-green { background: radial-gradient(circle at 50% 35%, #2fe08a, var(--green-lo)); }
@keyframes rl-call { from { opacity: 0; transform: translateX(-50%) scale(.3); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
/* 「停止下注」横幅 */
.rl-stamp {
  position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none;
  padding: 8px 22px; border-radius: 12px; background: rgba(10, 6, 20, .82);
  box-shadow: 0 0 0 2px var(--mag), 0 0 24px rgba(255, 63, 180, .55); pointer-events: none;
}
.rl-stamp b { font-size: clamp(20px, 6vw, 28px); font-weight: 900; letter-spacing: .12em; color: #fff; white-space: nowrap; text-shadow: 0 0 10px rgba(255, 63, 180, .8); }
/* 封盘那一下亮出来(bowl-page 给画面区挂 is-stamp;2026-11-10 发现以前漏了这一条,横幅从来没出现过)。压在桌沿上,不挡章鱼的脸 */
.rl-hero.is-stamp .rl-stamp { display: block; top: 56%; animation: rl-stamp .28s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes rl-stamp { from { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }


/* 结果画面上我的结果:赢了是黑色刷子底 + 柠檬「赢了」+ 白色大字金额;没中只在下方安静地写一行 */
.rl-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: rl-rise .28s ease-out both;
}
.rl-res[hidden] { display: none; }
.rl-res b { font-size: 22px; line-height: 1.1; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-res .rl-lost, .rl-res .rl-got { font-size: 17px; color: var(--ink); }
.rl-res small { font-size: 15px; font-variant-numeric: tabular-nums; }
.rl-res .rl-loss { font-weight: 800; color: var(--bad); }
.rl-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: rl-win .42s cubic-bezier(.2, .9, .3, 1.2) both;
}
.rl-res .rl-won-l { font-size: clamp(30px, 10vw, 46px); color: var(--gold); letter-spacing: .08em; }
.rl-res .rl-won { font-size: clamp(28px, 9vw, 42px); color: #fff; }
@keyframes rl-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes rl-win { from { opacity: 0; transform: translateX(-50%) scale(.6) rotate(-4deg); } to { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); } }
.rl-confetti { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.rl-confetti[hidden] { display: none; }
.rl-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: rl-fall 1.6s cubic-bezier(.3, .1, .6, 1) calc(var(--i) * 70ms) both;
}
.rl-confetti i:nth-child(3n) { background: #fff; width: 5px; }
.rl-confetti i:nth-child(4n) { background: var(--red); height: 10px; }
.rl-confetti i:nth-child(5n) { background: var(--blue); }
@keyframes rl-fall { 0% { opacity: 0; transform: translateY(0) rotate(0deg); } 10% { opacity: 1; } 100% { opacity: 0; transform: translateY(820%) rotate(540deg); } }
.rl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- 下面那一块(可以卷) ---------- */
.rl-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(--rl-pad) 8px; scrollbar-width: none; }
.rl-body::-webkit-scrollbar { display: none; }

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

.rl-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; }
.rl-cell.is-win .rl-pay { visibility: hidden; }
.rl-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;
}
.rl-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);
}
.rl-badge[hidden] { display: none; }
.rl-cell.is-draft .rl-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; }
.rl-cell.is-pend .rl-badge { opacity: .6; animation: rl-pend .7s ease-in-out infinite alternate; }
@keyframes rl-pend { from { opacity: 1; } to { opacity: .45; } }
.rl-cell.is-on { box-shadow: inset 0 0 0 2px var(--gold); }
.rl-cell.is-draft { box-shadow: inset 0 0 0 1.5px rgba(232, 198, 106, .55); }
.rl-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: rl-pop .3s cubic-bezier(.2, .9, .3, 1.3) both;
}
.rl-hit[hidden] { display: none; }
.rl-cell.is-win { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 18px rgba(232, 198, 106, .35); }
.rl-board.is-result .rl-cell.is-dim { opacity: .35; }
@keyframes rl-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.rl-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);
}
.rl-lock svg { display: block; width: 100%; height: 100%; }
.rl-cell.is-locked { opacity: .62; }
.rl-cell.is-locked .rl-lock { display: block; }
.rl-cell.is-locked.is-on .rl-lock { display: none; }
.rl-cell.is-locked.is-on { opacity: 1; }
.rl-cell.is-full .rl-pay { opacity: .4; }
.rl-board.is-open .rl-cell:active { transform: scale(.96); }

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

.rl-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; }
.rl-chips::-webkit-scrollbar { display: none; }
.rl-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;
}
.rl-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;
}
.rl-chip span { position: relative; }
.rl-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); }
.rl-chip.is-on::before { background: repeating-conic-gradient(from 0deg, #0a0a0a 0 14deg, transparent 14deg 45deg); opacity: .5; }
.rl-chip.is-dim { opacity: .4; }
.rl-chip:active { transform: translateY(1px) scale(.94); }

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

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

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



/* ---------- 下注动态(格子上面一行)---------- */
.rl-crowd { flex: none; display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 12.5px; color: var(--ink-2); }
.rl-feed { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-feed b { color: var(--ink); font-weight: 800; }
.rl-feed .rl-feed-fen { color: var(--gold); }
.rl-feed.is-new { animation: rl-feed .35s ease-out; }
@keyframes rl-feed { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.rl-players { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; color: var(--ink); }
.rl-players[hidden] { display: none; }

/* 最近几局那一排:一局一颗号码圆牌 */
.rl-rc-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; }
.rl-rc-n.is-red { background: var(--red); }
.rl-rc-n.is-black { background: #221c33; box-shadow: inset 0 0 0 1px #4a4166; }
.rl-rc-n.is-green { background: var(--green); }

/* ---------- 直式轮盘桌:5 列 × 14 排(1 外围、2 打、3–5 号码;第 1 排 0、2–13 排 1–36、第 14 排 2:1)---------- */
.rl-board {
  flex: none; position: relative; display: grid; gap: 3px; padding: 6px; border-radius: 16px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) repeat(3, minmax(0, 1.3fr));
  grid-template-rows: repeat(14, var(--rl-row));
  background: linear-gradient(180deg, rgba(20, 12, 38, .95), rgba(10, 7, 22, .95));
  box-shadow: 0 0 0 1px rgba(63, 240, 255, .35), 0 0 18px rgba(63, 240, 255, .12), inset 0 0 30px rgba(255, 63, 180, .06);
}
.rl-cell {
  position: relative; min-width: 0; min-height: 0; border-radius: 6px; display: grid; place-items: center; overflow: visible;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(63, 240, 255, .28);
  transition: transform .12s, box-shadow .2s, opacity .2s;
}
.rl-cell-name { font-size: calc(var(--rl-row) * .56); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: .02em; }
/* 号码格:红 / 黑 / 绿漆底 + 细霓虹边;合计金额太挤不写(规则卡、我的筹码角标照样有) */
.rl-num .rl-cell-sum { display: none; }
.rl-num.is-red { background: linear-gradient(180deg, #e3284a, var(--red-lo)); box-shadow: inset 0 0 0 1px rgba(255, 140, 170, .45); }
.rl-num.is-black { background: linear-gradient(180deg, #221c33, #0c0914); box-shadow: inset 0 0 0 1px rgba(150, 140, 200, .35); }
.rl-num.is-green { background: linear-gradient(180deg, #19b866, var(--green-lo)); box-shadow: inset 0 0 0 1px rgba(150, 255, 200, .5); }
.rl-zero { grid-row: 1; grid-column: 3 / 6; border-radius: 12px 12px 6px 6px; }
.rl-r1 { grid-row: 1; } .rl-r2 { grid-row: 2; } .rl-r3 { grid-row: 3; } .rl-r4 { grid-row: 4; } .rl-r5 { grid-row: 5; } .rl-r6 { grid-row: 6; } .rl-r7 { grid-row: 7; }
.rl-r8 { grid-row: 8; } .rl-r9 { grid-row: 9; } .rl-r10 { grid-row: 10; } .rl-r11 { grid-row: 11; } .rl-r12 { grid-row: 12; } .rl-r13 { grid-row: 13; }
.rl-c3 { grid-column: 3; } .rl-c4 { grid-column: 4; } .rl-c5 { grid-column: 5; }
/* 打:直着写(真轮盘直式桌的写法),一格占四排;列:最下面三格 2:1 */
.rl-k-dozen { grid-column: 2; }
.rl-k-dozen.rl-n1 { grid-row: 2 / span 4; } .rl-k-dozen.rl-n2 { grid-row: 6 / span 4; } .rl-k-dozen.rl-n3 { grid-row: 10 / span 4; }
.rl-k-column { grid-row: 14; border-radius: 6px 6px 12px 12px; }
.rl-k-column.rl-n1 { grid-column: 3; } .rl-k-column.rl-n2 { grid-column: 4; } .rl-k-column.rl-n3 { grid-column: 5; }
/* 外围一栏:1–18 · 双 · 红 · 黑 · 单 · 19–36,一格占两排 */
.rl-k-low { grid-column: 1; grid-row: 2 / span 2; } .rl-k-even { grid-column: 1; grid-row: 4 / span 2; }
.rl-k-red { grid-column: 1; grid-row: 6 / span 2; } .rl-k-black { grid-column: 1; grid-row: 8 / span 2; }
.rl-k-odd { grid-column: 1; grid-row: 10 / span 2; } .rl-k-high { grid-column: 1; grid-row: 12 / span 2; }
.rl-out { background: linear-gradient(180deg, rgba(40, 26, 74, .85), rgba(18, 12, 36, .85)); }
.rl-out .rl-cell-name { font-size: calc(var(--rl-row) * .5); }
.rl-k-dozen .rl-cell-name, .rl-k-low .rl-cell-name, .rl-k-high .rl-cell-name { writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .06em; }
.rl-k-column .rl-cell-name { font-size: calc(var(--rl-row) * .46); color: var(--cyan); }
/* 外围格的倍数(×3 / ×2):右下角小字 */
.rl-pay { position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 9.5px; line-height: 1; font-weight: 900; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* 列(最下面三格):不写名字,格子里直接写拿回几倍(照后台的倍数;以前写死「2:1」) */
.rl-k-column .rl-pay { position: static; font-size: clamp(9px, 3.6cqh, 13px); line-height: 1; color: var(--cyan); }
.rl-k-column .rl-cell-name { display: none; }
.rl-out .rl-cell-sum {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); max-width: calc(100% - 4px);
  font-size: 9px; line-height: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
  padding: 0 3px; border-radius: 999px; background: rgba(0, 0, 0, .35);
}
.rl-out .rl-cell-sum:empty { display: none; }
.rl-k-dozen .rl-cell-sum, .rl-k-column .rl-cell-sum { display: none; }
/* 红 / 黑的菱形 */
.rl-diamond { width: 58%; height: 72%; max-width: 30px; max-height: 30px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.rl-diamond.is-red { background: linear-gradient(180deg, #ff4d66, var(--red-lo)); }
.rl-diamond.is-black { background: linear-gradient(180deg, #3a3350, #07060c); box-shadow: inset 0 0 0 1px #6b6190; }
.rl-k-red .rl-cell-name, .rl-k-black .rl-cell-name { display: none; }

/* 我押的(角标)、中奖(角标 + 柠檬框)、上锁:格子小,角标缩一号 */
.rl-badge { position: absolute; top: -7px; right: -5px; z-index: 2; min-width: 22px; height: 16px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 9.5px; font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1.5px #0a0a0a, 0 2px 5px rgba(0, 0, 0, .6); }
.rl-badge[hidden] { display: none; }
.rl-cell.is-draft .rl-badge { background: #0a0a0a; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); outline: 0; }
.rl-cell.is-pend .rl-badge { animation: rl-pend .7s ease-in-out infinite alternate; }
@keyframes rl-pend { from { opacity: 1; } to { opacity: .45; } }
.rl-cell.is-on { box-shadow: inset 0 0 0 2px var(--gold), 0 0 10px rgba(229, 255, 61, .35); }
.rl-cell.is-draft { box-shadow: inset 0 0 0 1.5px rgba(229, 255, 61, .6); }
.rl-hit { position: absolute; top: -9px; left: 50%; right: auto; transform: translateX(-50%); z-index: 3; min-width: 30px; height: 17px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 10px; font-weight: 900; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1.5px #0a0a0a, 0 0 12px rgba(229, 255, 61, .55); animation: rl-pop .3s cubic-bezier(.2, .9, .3, 1.3) both; }
.rl-hit[hidden] { display: none; }
.rl-cell.is-win { box-shadow: inset 0 0 0 2.5px var(--gold), 0 0 16px rgba(229, 255, 61, .55); z-index: 1; }
.rl-cell.is-win .rl-pay { visibility: hidden; }
.rl-board.is-result .rl-cell.is-dim { opacity: .32; }
@keyframes rl-pop { from { opacity: 0; transform: translateX(-50%) scale(.4); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.rl-lock { position: absolute; top: -7px; right: -5px; z-index: 2; display: none; width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); box-shadow: 0 0 0 1.5px #0a0a0a, inset 0 0 0 1px var(--line); }
.rl-lock svg { display: block; width: 100%; height: 100%; }
.rl-cell.is-locked { opacity: .6; }
.rl-cell.is-locked .rl-lock { display: block; }
.rl-cell.is-locked.is-on .rl-lock { display: none; }
.rl-cell.is-locked.is-on { opacity: 1; }
.rl-board.is-open .rl-cell:active { transform: scale(.94); }


/* 五颗按钮(清除 · 撤销 · 重复 · 加倍 · 确认下注;bowl-page 的 moreActs)的排法在下面「一屏、两种版面」那一段 */
/* 下注动态那一行不是面板(共用样式里 .rl-feed 是骰宝下注名单那块的面板,这里盖掉) */
.roulette .rl-crowd .rl-feed { padding: 0; border-radius: 0; background: none; box-shadow: none; }

/* ---------- 霓虹皮肤:顶栏 / 倒数 / 筹码 / 按钮的边换成洋红、青色光 ---------- */
.rl-back, .rl-help, .rl-bal, .rl-status, .rl-chips, .rl-act, .rl-online, .rl-winners { box-shadow: inset 0 0 0 1px var(--line), 0 0 10px rgba(255, 63, 180, .08); }
.rl-title { text-shadow: 0 0 12px rgba(255, 63, 180, .65), 0 0 2px rgba(255, 255, 255, .6); }
.rl-ring-fg { stroke: var(--cyan); filter: drop-shadow(0 0 3px rgba(63, 240, 255, .8)); }
.rl-status.is-stop .rl-state, .rl-status.is-shake .rl-state, .rl-status.is-open .rl-state { color: var(--cyan); }
.rl-body { gap: 7px; }


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


/* ---------- 一屏、两种版面(2026-11-10 老板:「还要拉上拉下,不是在一个界面的」「考虑人实用的角度」)----------
 * #roulette[data-rl-view](roulette-wheel.js 照阶段写):
 *   bet  = 换局 / 收注:画面区是一条(章鱼对嘴喊「请下注」),下面整张桌子 + 筹码 + 按钮;桌子吃剩下的高度、14 排平分,一屏放完不用卷。
 *   spin = 停止下注 → 转轮 → 开完:这段不能下注,桌子 / 筹码 / 按钮收起来,画面区放到最大看轮盘和球,下面只留倒数那行 + 「我押的」(开完标哪几注中了)。
 * 两种版面直接换,不做高度过渡(WebGL 画布每一帧重开缓冲区,手机会顿);换的那一下画面淡入 0.25 秒盖住。
 * 底下的在线人数 / 本局赢家那两块不用(几人在押写在下注动态那行)。 */
.rl-body { overflow: hidden; gap: 6px; padding-top: 5px; padding-bottom: 4px; }
.rl-hero { height: clamp(96px, 27vw, 160px); transition: none; }
.rl-hero.is-closing, .rl-hero.is-reveal, .rl-hero.is-result { height: clamp(96px, 27vw, 160px); }
.roulette[data-rl-view="spin"] .rl-hero { flex: 1 1 0; height: auto; min-height: 0; }
.roulette[data-rl-view="spin"] .rl-body { flex: none; }
.roulette[data-rl-view="spin"] :is(.rl-crowd, .rl-board, .rl-chips, .rl-acts) { display: none; }
.roulette[data-rl-view="spin"] .rl-art { animation: rl-view-spin .28s ease-out; }
.roulette[data-rl-view="bet"] .rl-art { animation: rl-view-bet .28s ease-out; }
@keyframes rl-view-spin { from { opacity: 0; } }
@keyframes rl-view-bet { from { opacity: 0; } }
/* 3D 画出来了才把垫底的那张图藏掉;开不了 WebGL 就只留那张图(写在 data 上:bowl-page 每换一个阶段会整个重写 class) */
.rl-hero.rl-gl-on .rl-poster { opacity: 1; }
.rl-hero[data-rl-gl="on"] .rl-poster { opacity: 0; }
.rl-hero[data-rl-gl="no"] .rl-canvas { display: none; }
.rl-strip { min-height: 44px; }
.rl-status { min-height: 44px; padding-block: 2px; }
.rl-ring { width: 38px; height: 38px; }
.rl-board { flex: 1 1 0; min-height: 0; grid-template-rows: repeat(14, minmax(0, 1fr)); padding: 5px; gap: 2px; container-type: size; }
.rl-cell-name { font-size: clamp(9px, 4.3cqh, 16px); }
.rl-out .rl-cell-name { font-size: clamp(9px, 3.9cqh, 14px); }
.rl-k-column .rl-cell-name { font-size: clamp(8px, 3.5cqh, 13px); }
/* 「1–18」「19–36」直着写一行(不折成两行) */
.rl-k-low .rl-cell-name, .rl-k-high .rl-cell-name, .rl-k-dozen .rl-cell-name { white-space: nowrap; letter-spacing: 0; }
.rl-chips { padding-block: 2px; }
.rl-chip { flex-basis: 40px; width: 40px; height: 40px; }
.rl-act, .rl-go { min-height: 44px; border-radius: 14px; }
/* 五颗按钮:四颗小的窄一点,「确认下注 RM x」那颗够宽,金额不被截掉 */
.roulette .rl-acts { grid-template-columns: repeat(4, minmax(0, .8fr)) minmax(0, 2.7fr); gap: 5px; }
.roulette .rl-acts .rl-act { font-size: 13.5px; padding: 0 2px; }
.roulette .rl-acts .rl-go { font-size: 15px; padding: 0 6px; }
.rl-foot, .rl-winners { display: none !important; }

/* 号码牌:停稳先在画面上方中间亮大的(镜头正在拉近看那一格),回正面庆祝时缩到左上角 —— 不挡章鱼的脸 */
.rl-call {
  top: 15%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; transform: none;
  transition: top .5s cubic-bezier(.3, .8, .3, 1), left .5s cubic-bezier(.3, .8, .3, 1), transform .5s cubic-bezier(.3, .8, .3, 1), opacity .2s;
  animation: rl-call-in .45s cubic-bezier(.2, .9, .3, 1.3) backwards;
}
.rl-call b { font-size: 42px; }
.rl-call[data-mode="pin"] { top: 40px; left: 40px; transform: scale(.6); }
.rl-hero[data-rl-fx] .rl-call { opacity: 0; }
@keyframes rl-call-in { from { opacity: 0; transform: scale(.3); } }

/* ---------- 筹码放哪里,一眼看得出押的是什么 ----------
 * 押一个号:筹码在格子里面偏右、号码往左让开(不放在格子角上 —— 角上是「四个号」的位置);
 * 押两个号:筹码压在两格中间那条线上;押四个号:压在四格的交叉点上。 */
.rl-num .rl-badge, .rl-sp .rl-badge, .rl-cn .rl-badge { top: 50%; right: auto; transform: translate(-50%, -50%); min-width: 20px; height: 15px; padding: 0 4px; font-size: 9px; }
.rl-sp .rl-badge, .rl-cn .rl-badge { min-width: 18px; height: 13px; padding: 0 3px; font-size: 8.5px; }
.rl-num .rl-badge { left: 66%; }
.rl-num:is(.is-on, .is-draft) .rl-cell-name { justify-self: start; margin-left: 17%; }
.rl-zero .rl-badge { left: 58%; }
.rl-zero:is(.is-on, .is-draft) .rl-cell-name { margin-left: 40%; }
.rl-num.is-win .rl-badge { left: 66%; right: auto; }
/* 横线上的筹码放在线的左段(号码在格子中间,筹码压在正中会盖住上下两个号码) */
.rl-sp .rl-badge, .rl-cn .rl-badge { left: 50%; }
.rl-sp-h .rl-badge { left: 15%; }

/* ---------- 两个号 / 四个号:跨在线上 / 交叉点上的透明点击区(roulette.js cellClass)----------
 * 挂在左上那一格的位置,往右 / 往下挪半个自己。大小封顶:只吃线两边各几像素,格子中间一大块留给「押一个号」(小手机上以前一半的点击会落到线上)。
 * 线中间一小段亮、交叉点一颗小点:告诉人这里可以点(真轮盘桌没有,但手机上不画就没人知道可以押中间)。 */
.rl-sp, .rl-cn { z-index: 3; background: transparent; box-shadow: none; border-radius: 999px; min-width: 0; min-height: 0; overflow: visible; }
.rl-sp-v { justify-self: end; align-self: center; width: clamp(12px, 20%, 18px); height: 58%; transform: translateX(50%); }
.rl-sp-h { justify-self: center; align-self: end; width: 58%; height: clamp(8px, 40%, 13px); transform: translateY(50%); }
.rl-cn { justify-self: end; align-self: end; width: clamp(14px, 24%, 20px); height: clamp(10px, 48%, 15px); transform: translate(50%, 50%); z-index: 4; }
.rl-sp :is(.rl-cell-name, .rl-cell-sum, .rl-pay, .rl-lock, .rl-hit), .rl-cn :is(.rl-cell-name, .rl-cell-sum, .rl-pay, .rl-lock, .rl-hit) { display: none !important; }
.rl-sp::before, .rl-cn::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(255, 255, 255, .42); pointer-events: none; }
.rl-sp-v::before { width: 2px; height: 50%; }
.rl-sp-h::before { width: 34%; height: 2px; }
.rl-cn::before { width: 5px; height: 5px; background: rgba(255, 255, 255, .5); }
.rl-sp:is(.is-on, .is-draft)::before, .rl-cn:is(.is-on, .is-draft)::before, .rl-sp.is-locked::before, .rl-cn.is-locked::before { display: none; }
.rl-sp.is-on, .rl-cn.is-on, .rl-sp.is-draft, .rl-cn.is-draft, .rl-sp.is-win, .rl-cn.is-win { box-shadow: none; background: transparent; }
.rl-sp.is-locked, .rl-cn.is-locked, .rl-board.is-result .rl-sp.is-dim, .rl-board.is-result .rl-cn.is-dim { opacity: 1; }
.rl-num .rl-lock { display: none !important; }
.rl-sp:active, .rl-cn:active { background: rgba(229, 255, 61, .35); }
.rl-board.is-open .rl-sp-v:active { transform: translateX(50%); }
.rl-board.is-open .rl-sp-h:active { transform: translateY(50%); }
.rl-board.is-open .rl-cn:active { transform: translate(50%, 50%); }

/* ---------- 下注动态那一行:别人押的 / 自己刚放的那一注 / 没动静时写怎么押中间 ---------- */
.rl-crowd { min-height: 18px; }
.rl-feed.is-tip { color: var(--ink-3); font-size: 12px; }
.rl-feed.is-me b:first-child { color: var(--cyan); }

/* ---------- 「我押的」(spin 版面,在倒数那行下面)----------
 * 一注一颗:押法 + 金额;开完中了的亮柠檬框写拿回多少,没中的暗下来。这一局没押就写一句。 */
.rl-mine { display: none; flex: none; flex-direction: column; gap: 7px; padding: 10px 12px 11px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 0 10px rgba(255, 63, 180, .08); min-height: 62px; max-height: 31vh; max-height: 31dvh; }
.roulette[data-rl-view="spin"] .rl-mine { display: flex; animation: rl-view-spin .3s ease-out; }
.rl-mine-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.rl-mine-h b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-mine-h b.is-win { color: var(--gold); }
.rl-mine-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.rl-mine-list::-webkit-scrollbar { display: none; }
.rl-mb { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.15; font-weight: 800; }
.rl-mb span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-mb em { flex: none; font-style: normal; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-mb.is-win { background: rgba(229, 255, 61, .13); box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 12px rgba(229, 255, 61, .3); }
.rl-mb.is-win em { color: var(--gold); }
.rl-mb.is-lose { opacity: .4; }
.rl-mine-none { margin: auto; padding: 6px 0; font-size: 14px; color: var(--ink-3); text-align: center; }

/* ---------- 我这一局的输赢画面(roulette-wheel.js 的 fxRender;赢 = 2026-11-10 老板选的 B「镭射迪斯科」)----------
 * 整块盖在画面区上、不挡手指。大小跟着画面区走:--qh / --qw = 画面区高 / 宽的百分之一(像素,fxRender 量好写在这一块上;--qmax / --qmin 是大 / 小的那个),
 * 一律 calc(var(--qh) * N)。不用容器查询单位(cqh / cqw 要 iOS 16、Chromium 105,旧手机上整块会变成一团 0 尺寸的小字),
 * 也不用整块 transform 缩放(iPhone 会照缩小前的大小画每一层)。
 * 画面区在 spin 版面是竖的:章鱼的脸在上面三成,所以字和号码都排在下面七成 ——「大赢」在胸口、号码牌压在轮盘远边、金额在轮盘上;
 * 赢:两道雷射从上面两角扫过、号码圆牌、「赢了」、柠檬金额、金币;大赢:镜面球从右上角掉下来、八道雷射扇出去来回扫、彩纸、铬银「大赢」拖光;
 * 输 / 打平:下面一块安静的牌子(红字输了多少 / 拿回多少)。 */
.rl-fx { position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; --qh: 4px; --qw: 3.4px; --qmax: 4px; --qmin: 3.4px; }
.rl-fx[hidden] { display: none; }
.rl-fx-dim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 3, 14, 0) 22%, rgba(6, 3, 14, .62) 46%, rgba(6, 3, 14, .7) 100%); animation: rl-fx-fade .3s ease-out both; }
.rl-fx.is-win .rl-fx-dim { background: linear-gradient(180deg, rgba(6, 3, 14, 0) 26%, rgba(6, 3, 14, .45) 50%, rgba(6, 3, 14, .55) 100%); }
@keyframes rl-fx-fade { from { opacity: 0; } }

/* 雷射:大赢从右上角的镜面球往左下扇出去(--a 0° = 正下方,往左是正的);赢是左右上角各一道。一边扫一边闪 */
.rl-fx-beams { position: absolute; inset: 0; mix-blend-mode: screen; }
.rl-fx-beams i {
  position: absolute; left: calc(var(--qw) * 86); top: calc(var(--qh) * 9); width: max(2px, calc(var(--qw) * .9)); height: calc(var(--qmax) * 170); margin-left: max(-1px, calc(var(--qw) * -.45));
  transform-origin: 50% 0; transform: rotate(var(--a));
  background: linear-gradient(to bottom, #fff 0, var(--w) 5%, transparent 80%);
  box-shadow: 0 0 6px var(--w), 0 0 16px var(--w); border-radius: 2px; opacity: .85;
  animation: rl-fx-sweep var(--d) ease-in-out .15s infinite alternate both, rl-fx-beam-in .35s ease-out .15s both;
}
.rl-fx.is-win .rl-fx-beams i { top: calc(var(--qh) * -3); }
.rl-fx.is-win .rl-fx-beams i:nth-child(1) { left: calc(var(--qw) * 5); }
.rl-fx.is-win .rl-fx-beams i:nth-child(2) { left: calc(var(--qw) * 95); }
@keyframes rl-fx-sweep { from { transform: rotate(calc(var(--a) - 9deg)); } to { transform: rotate(calc(var(--a) + 9deg)); } }
@keyframes rl-fx-beam-in { from { opacity: 0; } }

/* 镜面球:右上角一根线吊下来,弹两下;格子反光慢慢转 */
.rl-fx-string { position: absolute; left: calc(var(--qw) * 86); top: 0; width: 1px; height: calc(var(--qh) * 3); background: linear-gradient(#fff8, #fff3); animation: rl-fx-drop .7s cubic-bezier(.3, 1.5, .5, 1) both; }
.rl-fx-ball {
  --s: min(calc(var(--qh) * 13), calc(var(--qw) * 17));
  position: absolute; left: calc(var(--qw) * 86); top: calc(var(--qh) * 2.5); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff 0, #fff0 22%),
    repeating-linear-gradient(90deg, #0000 0 calc(var(--s) / 10 - 1px), #1a1030 calc(var(--s) / 10 - 1px) calc(var(--s) / 10)),
    repeating-linear-gradient(0deg, #0000 0 calc(var(--s) / 10 - 1px), #1a1030 calc(var(--s) / 10 - 1px) calc(var(--s) / 10)),
    conic-gradient(from 0deg, #e8e4ff, #8a7cc8, #ff9ad8, #c9f6ff, #7066a8, #f4f0ff, #9f8fe0, #e8e4ff);
  background-size: 100% 100%, 200% 100%, 100% 100%, 100% 100%;
  box-shadow: 0 0 10px #fff6, 0 0 26px rgba(255, 63, 180, .6), 0 0 40px rgba(63, 240, 255, .35);
  animation: rl-fx-drop .7s cubic-bezier(.3, 1.5, .5, 1) both, rl-fx-facets 2.4s linear infinite;
}
@keyframes rl-fx-drop { from { transform: translateY(calc(var(--qh) * -30)); } }
@keyframes rl-fx-facets { to { background-position: 0 0, 100% 0, 0 0, 0 0; } }

/* 全息圆盘 + 号码圆牌(红 / 黑 / 绿底、柠檬圈):压在轮盘远边上 */
.rl-fx-disc {
  --s: min(calc(var(--qh) * 30), calc(var(--qw) * 44));
  position: absolute; left: 50%; top: calc(var(--qh) * 64); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: conic-gradient(from 0deg, #ff3fb400, #ff3fb4cc, #3ff0ff00, #3ff0ffcc, #e5ff3d00, #e5ff3dcc, #ff3fb400);
  -webkit-mask: radial-gradient(circle, #0000 52%, #000 54%, #000 60%, #0000 62%, #0000 70%, #000 72%, #000 74%, #0000 76%);
  mask: radial-gradient(circle, #0000 52%, #000 54%, #000 60%, #0000 62%, #0000 70%, #000 72%, #000 74%, #0000 76%);
  animation: rl-fx-disc-in .5s cubic-bezier(.2, .9, .3, 1.2) .4s both, rl-fx-spin 2.2s linear infinite;
}
.rl-fx.is-win .rl-fx-disc { opacity: .7; }
@keyframes rl-fx-disc-in { from { opacity: 0; transform: scale(.2); } }
@keyframes rl-fx-spin { to { rotate: 360deg; } }
.rl-fx-num {
  --s: min(calc(var(--qh) * 15), calc(var(--qw) * 22));
  position: absolute; left: 50%; top: calc(var(--qh) * 64); display: grid; place-items: center; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  font-size: calc(var(--s) * .5); font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  box-shadow: 0 0 0 calc(var(--s) * .03) #fff, 0 0 0 calc(var(--s) * .075) rgba(229, 255, 61, .75), 0 0 calc(var(--s) * .3) rgba(229, 255, 61, .6);
  animation: rl-fx-pop .45s cubic-bezier(.2, .9, .3, 1.35) .45s both;
}
.rl-fx-num.is-red { background: radial-gradient(circle at 50% 32%, #ff5a72, #a3101c); }
.rl-fx-num.is-black { background: radial-gradient(circle at 50% 32%, #4a4266, #07060c); }
.rl-fx-num.is-green { background: radial-gradient(circle at 50% 32%, #34e894, #0b7a43); }
@keyframes rl-fx-pop { from { opacity: 0; transform: scale(.2); } }

/* 「大赢」铬银字:上亮下暗的金属渐层 + 一道白光扫过 + 后面一条洋红 → 青的光尾;「赢了」小一号。在章鱼胸口(脸露出来) */
.rl-fx-head {
  position: absolute; left: 50%; top: calc(var(--qh) * 44); transform: translate(-50%, -50%); max-width: calc(var(--qw) * 94); white-space: nowrap; text-align: center;
  font-size: min(calc(var(--qh) * 17), calc(var(--qw) * 26)); line-height: 1; font-weight: 900; letter-spacing: .04em; font-style: italic;
  background:
    linear-gradient(105deg, #fff0 40%, #fffffff2 50%, #fff0 60%) -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #ffffff 0%, #f1eeff 28%, #8d86b6 47%, #3c3560 52%, #c9c4e8 64%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: max(1px, calc(var(--qh) * .3)) rgba(255, 255, 255, .55);
  filter: drop-shadow(0 0 calc(var(--qh) * .8) rgba(255, 63, 180, .95)) drop-shadow(0 0 calc(var(--qh) * 2.4) rgba(63, 240, 255, .55));
  animation: rl-fx-slam .5s cubic-bezier(.2, .9, .3, 1.25) .6s both, rl-fx-shine 2.2s ease-in-out 1.1s infinite;
}
.rl-fx-head::before {
  content: ""; position: absolute; z-index: -1; left: calc(var(--qw) * -10); right: calc(var(--qw) * -10); top: 54%; height: max(2px, calc(var(--qh) * .8));
  background: linear-gradient(90deg, #0000, var(--mag), #fff, var(--cyan), #0000); border-radius: 2px; box-shadow: 0 0 calc(var(--qh) * 2) var(--mag);
  transform-origin: 0 50%; animation: rl-fx-trail .55s ease-out .7s both;
}
.rl-fx.is-win .rl-fx-head { font-size: min(calc(var(--qh) * 13), calc(var(--qw) * 20)); }
.rl-fx.is-intl .rl-fx-head { font-size: min(calc(var(--qh) * 10), calc(var(--qw) * 12.5)); letter-spacing: .02em; }
.rl-fx.is-intl.is-win .rl-fx-head { font-size: min(calc(var(--qh) * 9), calc(var(--qw) * 11)); }
@keyframes rl-fx-slam { from { opacity: 0; transform: translate(-50%, -50%) scale(2.4); filter: blur(4px); } 60% { opacity: 1; } }
@keyframes rl-fx-shine { 0%, 30% { background-position: -150% 0, 0 0; } 70%, 100% { background-position: 250% 0, 0 0; } }
@keyframes rl-fx-trail { from { transform: scaleX(0); opacity: 1; } 80% { opacity: 1; } to { transform: scaleX(1); opacity: .55; } }

/* 金额:柠檬黄、黑边、发光;滚上去 */
.rl-fx-amt {
  position: absolute; left: 50%; top: calc(var(--qh) * 84); transform: translate(-50%, -50%); white-space: nowrap;
  font-size: min(calc(var(--qh) * 9), calc(var(--qw) * 11)); line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold);
  -webkit-text-stroke: max(1px, calc(var(--qh) * .25)) #0a0a0a; paint-order: stroke fill;
  text-shadow: 0 0 calc(var(--qh) * 1.5) rgba(229, 255, 61, .85), 0 0 calc(var(--qh) * 4) rgba(229, 255, 61, .45);
  animation: rl-fx-pop .4s cubic-bezier(.2, .9, .3, 1.3) .8s both;
}
.rl-fx.is-win .rl-fx-amt { font-size: min(calc(var(--qh) * 8), calc(var(--qw) * 10)); animation-delay: .4s; }

/* 金币(CSS 画的:亮边 + 内圈 + 一直翻)、霓虹彩纸:从轮盘中间(画面下方)蹦出来 */
.rl-fx-coin, .rl-fx-conf { position: absolute; left: 50%; top: 74%; z-index: 1; }
.rl-fx-coin b {
  --s: min(calc(var(--qh) * 6), calc(var(--qw) * 8));
  display: block; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c4 0, #ffd84a 26%, #d99a12 62%, #8a5a06 100%);
  box-shadow: inset 0 0 0 calc(var(--s) * .08) #ffe680, inset 0 0 0 calc(var(--s) * .16) #c2860e, 0 0 calc(var(--s) * .25) rgba(255, 200, 60, .7);
  animation: rl-fx-flip .5s linear infinite;
}
.rl-fx-conf { width: min(calc(var(--qh) * 2.2), calc(var(--qw) * 3)); height: min(calc(var(--qh) * 1), calc(var(--qw) * 1.4)); border-radius: 1px; }
.rl-fx-conf.is-mag { background: var(--mag); box-shadow: 0 0 calc(var(--qh) * 1) var(--mag); }
.rl-fx-conf.is-cyan { background: var(--cyan); box-shadow: 0 0 calc(var(--qh) * 1) var(--cyan); }
.rl-fx-conf.is-lemon { background: var(--gold); box-shadow: 0 0 calc(var(--qh) * 1) var(--gold); }
@keyframes rl-fx-flip { 50% { transform: scaleX(.12); } }

/* 输 / 打平:画面下方一块牌子(没押中 −RM x / −RM x / 拿回 RM x),不盖章鱼也不盖号码牌 */
.rl-fx-plate {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); max-width: calc(100% - 28px);
  display: grid; justify-items: center; gap: 3px; padding: 9px 22px 10px; border-radius: 16px;
  background: rgba(10, 6, 20, .86); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 22px rgba(0, 0, 0, .5);
  animation: rl-fx-plate .3s ease-out both;
}
.rl-fx-plate b { font-size: 17px; line-height: 1.15; font-weight: 800; color: var(--ink); white-space: nowrap; }
.rl-fx-plate em { font-style: normal; font-size: 22px; line-height: 1.1; font-weight: 900; color: var(--bad); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-fx-plate.is-push b { font-size: 19px; }
@keyframes rl-fx-plate { from { opacity: 0; transform: translate(-50%, 10px); } }

/* 中途进来 / 减少动态:不演,直接摆好(雷射停在原本角度、球和字在位置上) */
.rl-fx.is-static *, .rl-fx.is-static *::before { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .rl-fx *, .rl-fx *::before { animation: none !important; } .roulette .rl-art, .roulette .rl-mine { animation: none !important; } }


/* ---------- 实用上的修补(2026-11-10 整个界面复查)---------- */
/* 下注动态那一行定死高度:第一条动态 /「N 人在押」出来的时候桌子不再往下跳 */
.rl-crowd { height: 22px; min-height: 22px; overflow: hidden; }
.rl-players { height: 20px; line-height: 20px; padding: 0 9px; }
/* 一行放不下先截中间的押法名,名字和金额留着 */
.roulette .rl-crowd .rl-feed { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.rl-feed > b { flex: none; }
.rl-feed > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rl-feed.is-tip { display: block; overflow: hidden; text-overflow: ellipsis; }
/* 倒数那一块定宽:换阶段字数不同时,旁边最近开奖那一排不左右跳 */
.roulette .rl-status { flex: 0 0 auto; width: 166px; max-width: none; }
html[lang^="zh"] .roulette .rl-state { white-space: nowrap; }
.roulette .rl-status:is(.is-void, .is-paused, .is-wait) { flex: 1 1 auto; width: auto; }
html:not([lang^="zh"]) .roulette .rl-status { width: clamp(168px, 50vw, 204px); }
html:not([lang^="zh"]) .roulette .rl-state { font-size: clamp(12px, 3.5vw, 15px); line-height: 1.1; }
/* 最后 5 秒:倒数变红、跳;手上还有没按确认的筹码 →「确认下注」闪(倒数完没确认的不算) */
.rl-status.is-last .rl-ring b { color: var(--bad); animation: rl-last .5s ease-in-out infinite alternate; }
.rl-status.is-last .rl-ring-fg { stroke: var(--bad); filter: drop-shadow(0 0 3px rgba(255, 90, 110, .8)); }
.rl-status.is-last .rl-state { color: var(--bad); }
@keyframes rl-last { from { transform: scale(1); } to { transform: scale(1.18); } }
.rl-acts.is-hurry .rl-go:not(:disabled) { animation: rl-hurry .42s ease-in-out infinite alternate; }
@keyframes rl-hurry { from { box-shadow: 0 0 0 0 rgba(229, 255, 61, .0); transform: scale(1); } to { box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 18px rgba(229, 255, 61, .8); transform: scale(1.04); } }
/* 外语:顶栏标题两行放完(以前「European Roulette」被截成「Europea…」);四颗小按钮的字折行不截断 */
html:not([lang^="zh"]) .roulette .rl-top .rl-title { font-size: clamp(12px, 3.5vw, 14.5px); line-height: 1.12; letter-spacing: 0; white-space: normal; overflow-wrap: normal; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
html:not([lang^="zh"]) .roulette .rl-acts { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 2fr); gap: 4px; }
html:not([lang^="zh"]) .roulette .rl-acts .rl-act { font-size: clamp(9px, 2.5vw, 11.5px); line-height: 1.05; letter-spacing: -.01em; white-space: normal; overflow-wrap: normal; word-break: normal; text-overflow: clip; padding: 0 1px; }
html:not([lang^="zh"]) .roulette .rl-acts .rl-go { font-size: clamp(11px, 3.3vw, 14px); }
/* 提示条(全站在底部,正好压在桌子最下面几排上):轮盘里放到顶栏下面 */
body:has(#roulette:not([hidden])) .toast { top: calc(var(--safe-t, 0px) + 64px); bottom: auto; width: max-content; max-width: calc(100vw - 28px); }
/* 按住格子:手指上方写这一下会押什么(roulette.js 的 bindBoard);滑动时浏览器不要拿去卷页面 */
.rl-board { touch-action: none; }
.rl-aim { position: absolute; z-index: 30; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 12px; background: #fff; color: #0a0a0a; font-size: 15px; line-height: 1.15; font-weight: 900; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 0 2px var(--gold); }
.rl-aim[hidden] { display: none; }
.rl-aim::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); box-shadow: 2px 2px 0 var(--gold); }
.rl-board[data-rl-aim].is-open .rl-cell:active { transform: none; }
.rl-board[data-rl-aim].is-open .rl-sp-v:active { transform: translateX(50%); }
.rl-board[data-rl-aim].is-open .rl-sp-h:active { transform: translateY(50%); }
.rl-board[data-rl-aim].is-open .rl-cn:active { transform: translate(50%, 50%); }
/* 「大赢 / 赢了」是拿字当遮罩填渐层:行高 1 的话伸出行框的笔画(泰文、缅文的上下符号,英文 g y p 的尾巴)填不到色 */
.rl-fx-head { padding: .3em .18em; }
/* 矮屏(小手机在 Telegram 里只剩 600 上下):顶栏、章鱼那一条、筹码都压一点,高度让给桌子 */
@media (max-height: 700px) {
  .rl-top { padding-block: 4px; }
  .rl-back, .rl-help { width: 40px; height: 40px; }
  .rl-hero { height: clamp(72px, 20vw, 110px); }
  .rl-hero.is-closing, .rl-hero.is-reveal, .rl-hero.is-result { height: clamp(72px, 20vw, 110px); }
  .rl-chips { padding-block: 0; }
  .rl-chip { flex-basis: 36px; width: 36px; height: 36px; font-size: 11.5px; }
  .rl-act, .rl-go { min-height: 40px; }
  .rl-body { gap: 4px; }
}
/* 手机横过来(桌子那块高度会变成 0):让下面那块可以卷,格子给固定高,至少押得到、确认键按得到 */
@media (orientation: landscape) and (max-height: 520px) {
  .roulette[data-rl-view="bet"] .rl-body { overflow-y: auto; }
  .roulette[data-rl-view="bet"] .rl-board { flex: none; grid-template-rows: repeat(14, 26px); container-type: normal; }
  .roulette[data-rl-view="bet"] .rl-hero { height: 64px; }
}
/* 押满的号码格(全场还能收的、个人上限连最小的筹码都放不进):压暗(号码格没有倍数那行字,以前满了看不出来) */
.rl-board.is-open .rl-num.is-full:not(.is-on) { filter: saturate(.35) brightness(.62); }

/* ---------- 2026-11-10 整个界面复查补的 ---------- */
/* 黑的菱形:深色画在深紫底上几乎看不见(最多人押的两格之一,新手找不到「黑」)。外面一圈浅色当描边 ——
 * clip-path 会把 box-shadow 裁掉,所以用两层:外层浅色菱形,里层小一圈的黑菱形 */
.rl-diamond { position: relative; }
.rl-diamond.is-black { background: linear-gradient(180deg, #e6e0ff, #9d92d8); box-shadow: none; }
.rl-diamond.is-black::after { content: ''; position: absolute; inset: 0; clip-path: polygon(50% 11%, 89% 50%, 50% 89%, 11% 50%); background: linear-gradient(180deg, #1c1a26, #000); }

/* 外围、打、列的筹码收进自己格子里(以前挂在右上角外面:压住上面那格的倍数;第二列那颗正好骑在 35 / 36 中间的线上,像押了两个号)。
 * 名字 / 菱形往左让一点,右上角留给筹码 */
.rl-out .rl-badge { top: 3px; right: 3px; }
.rl-out:not(.rl-k-column):is(.is-on, .is-draft) :is(.rl-cell-name, .rl-diamond) { position: relative; left: -7px; }
.rl-k-column .rl-badge { top: 50%; right: 3px; transform: translateY(-50%); }
.rl-k-column:is(.is-on, .is-draft) .rl-pay { justify-self: start; margin-left: 14%; }
/* 金额照实写(1515 不写成 1.5K):四位以上缩一号 */
.rl-badge:is([data-len="4"], [data-len="5"], [data-len="6"], [data-len="7"], [data-len="8"]) { font-size: 8.5px; padding: 0 3px; letter-spacing: -.01em; }

/* 确认过的格子上又加了筹码:角标分两截 —— 左边实心是已经押上的,右边空心「+N」是还没按确认的(以前整颗变回空心,像刚才确认的也退回去了) */
.rl-cell.is-mixed .rl-badge { display: inline-flex; align-items: stretch; width: auto; padding: 0; overflow: hidden; background: #0a0a0a; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.rl-badge :is(b, i) { display: grid; place-items: center; font: inherit; font-style: normal; white-space: nowrap; }
.rl-badge b { padding: 0 3px 0 4px; background: var(--gold); color: var(--gold-ink); }
.rl-badge i { padding: 0 4px 0 2px; }
/* 外围 / 打的右上角只有二十来像素宽:两截上下叠 */
.rl-out:not(.rl-k-column).is-mixed .rl-badge { flex-direction: column; height: auto; border-radius: 8px; }
.rl-out:not(.rl-k-column).is-mixed .rl-badge :is(b, i) { height: 13px; padding: 0 4px; }
/* 号码格、列:两截比较长,贴着格子右边摆(居中会盖住号码) */
.rl-num:not(.rl-zero).is-mixed .rl-badge, .rl-k-column.is-mixed .rl-badge { left: auto; right: 2px; transform: translateY(-50%); }
.rl-num:not(.rl-zero).is-mixed .rl-cell-name { margin-left: 5%; }
.rl-k-column.is-mixed .rl-pay { margin-left: 5%; }

/* ---------- 桌子再高一点(号码格才二十来像素一排,瞄正中都有两三成会点到线上)---------- */
/* 下注动态那一行叠到章鱼那一条的底边上(像一行字幕),不再自己占一排:省下的 28px 全给桌子 */
/* (下面那块整个往上提 27px 盖到章鱼那一条的底边上;它自己裁掉溢出的东西,所以是整块提、不是只提那一行) */
.roulette[data-rl-view="bet"] .rl-body { margin-top: -27px; padding-top: 0; position: relative; z-index: 2; }
.roulette[data-rl-view="bet"] .rl-crowd {
  order: -1; height: 24px; min-height: 24px; margin: 0 1px; padding: 0 9px; border-radius: 0 0 17px 17px;
  background: linear-gradient(180deg, rgba(5, 3, 11, 0), rgba(5, 3, 11, .82) 62%); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); pointer-events: none;
}
.roulette[data-rl-view="bet"] .rl-crowd .rl-feed.is-tip { color: rgba(255, 255, 255, .78); }
.roulette[data-rl-view="bet"] .rl-crowd .rl-players { background: rgba(5, 3, 11, .6); line-height: 16px; }
/* 矮屏照「实际能用的高度」算(roulette-wheel.js 量了写 data-rl-short):Telegram 全屏时上下安全区要扣掉一百来像素,
 * 812 高的手机扣完只剩六百多,光看屏幕高度(上面那条 max-height: 700px)进不了紧凑档 */
.roulette[data-rl-short] .rl-top { padding-block: 4px; }
.roulette[data-rl-short] :is(.rl-back, .rl-help) { width: 40px; height: 40px; }
.roulette[data-rl-short] .rl-hero, .roulette[data-rl-short] .rl-hero:is(.is-closing, .is-reveal, .is-result) { height: clamp(72px, 20vw, 110px); }
.roulette[data-rl-short][data-rl-view="spin"] .rl-hero { height: auto; }
.roulette[data-rl-short] .rl-chips { padding-block: 0; }
.roulette[data-rl-short] .rl-chip { flex-basis: 36px; width: 36px; height: 36px; font-size: 11.5px; }
.roulette[data-rl-short] :is(.rl-act, .rl-go) { min-height: 40px; }
.roulette[data-rl-short] .rl-body { gap: 4px; }
/* 横屏那一档下面那块可以卷:桌子上的手势要放回「可以上下卷」(平常是 none,手指放在桌子上卷不动) */
@media (orientation: landscape) and (max-height: 520px) {
  .roulette[data-rl-view="bet"] .rl-board { touch-action: pan-y; }
  .roulette[data-rl-view="bet"] .rl-body { margin-top: 0; padding-top: 5px; }
  .roulette[data-rl-view="bet"] .rl-crowd { order: 0; margin: 0; background: none; height: 22px; min-height: 22px; }
}

/* 确认之后那颗键写「已下注 RM x」:不要灰掉(像不能用 / 没成功),换成跟押上的筹码一样的「已确认」样子 —— 黑底柠檬字 + 柠檬细框 */
.rl-go.is-done:disabled { background: #0a0a0a; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); opacity: 1; }

/* 结果画面拖过换局时间回 bet 版面(暂停下注 / 断线)桌子会带着开奖的样子露出来:只亮我押中的(没押的格子一条淡框、不写 ×N);输掉的两个号 / 四个号筹码跟着暗 */
.rl-cell.is-win:not(.is-on) { box-shadow: inset 0 0 0 1.5px rgba(229, 255, 61, .5); }
.rl-cell.is-win:not(.is-on) .rl-hit { display: none; }
.rl-board.is-result :is(.rl-sp, .rl-cn).is-dim .rl-badge { opacity: .32; }

/* 荷官短片的 <video>(roulette-wheel.js 挂进画面区;画面是拿它们当贴图画进 3D 的,这里只是让它们「在页面里」):两像素、几乎透明、不挡手 */
.rl-clipv { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: .01; pointer-events: none; }


/* 自己刚放的那一注前面那颗「还没确认」小牌(下注动态那一行) */
.rl-feed-tag { display: inline-block; padding: 1px 6px; margin-right: 2px; border-radius: 999px; font-style: normal; font-size: 10.5px; line-height: 15px; font-weight: 900; color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); vertical-align: 1px; }

/* 全站有一条 button { min-height: 44px }(regal.css):筹码写了 36 / 40 的高,被它顶回 44,成了扁椭圆、选中那圈上下被切;顶栏圆钮同理 */
.roulette .rl-chip { min-height: 0; }
.roulette[data-rl-short] :is(.rl-back, .rl-help) { min-height: 0; }
.roulette[data-rl-short] .rl-chips { padding-block: 3px; }
@media (max-height: 700px) { .roulette :is(.rl-back, .rl-help) { min-height: 0; } .roulette .rl-chips { padding-block: 3px; } }
/* 「清除」比「撤销」低一级(两颗紧挨着、以前长得一模一样;清除是整张草稿拿掉) */
.roulette .rl-acts [data-rl="clear"] { color: var(--ink-2); }
/* 「我的注 RM 20」那个数跟着抬头的字走(小一号、不抢「拿回」) */
.rl-mine-h span b { font-size: 13.5px; color: var(--ink); margin-left: 2px; }
/* 横屏那一档:筹码和按钮钉在下面那块的底边(不然排在 14 排格子后面,每押一次都要卷到底) */
@media (orientation: landscape) and (max-height: 520px) {
  .roulette[data-rl-view="bet"] .rl-acts { position: sticky; bottom: 0; z-index: 5; background: var(--bg, #05030b); }
  .roulette[data-rl-view="bet"] .rl-chips { position: sticky; bottom: 46px; z-index: 5; background: var(--surface, #120a22); }
}
/* 自己那一行:小牌、金额不缩,押法名放不下先截它(外语「Belum disahkan · Dua Nombor 14-17 · RM10」很长,以前被裁掉的是金额) */
.rl-feed > .rl-feed-tag { flex: none; align-self: center; }
.rl-feed > .rl-feed-what { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--cyan); font-weight: 800; }

/* 筹码画成 36 / 40 的圆之后,点按区补回 44 高(全站那条 min-height 本来是保点按区的;::before 画齿圈,::after 空着) */
.roulette .rl-chip::after { content: ''; position: absolute; inset: -4px -2px; }
/* 横屏那一档:章鱼那一条照旧只留 64px(紧凑档那条规则写在后面、权重一样,会把它顶回 72–110px,桌子就只露出四排) */
@media (orientation: landscape) and (max-height: 520px) {
  .roulette[data-rl-short][data-rl-view="bet"] .rl-hero { height: 64px; }
}

/* 筹码不超过五颗时(欧式轮盘现在是 5 / 10 / 20 / 50 / 100,老板 11-10 拿掉 RM500)每颗放大一号:一排本来就放得下,大一点好点。
 * 「第一颗同时是倒数第五颗以内」= 这一排最多五颗(不用 :has,旧手机也认);后台把筹码加到六颗以上就回到上面的小号 */
.roulette .rl-chip:first-child:nth-last-child(-n+5), .roulette .rl-chip:first-child:nth-last-child(-n+5) ~ .rl-chip { flex-basis: 44px; width: 44px; height: 44px; font-size: 13px; }
.roulette[data-rl-short] .rl-chip:first-child:nth-last-child(-n+5), .roulette[data-rl-short] .rl-chip:first-child:nth-last-child(-n+5) ~ .rl-chip { flex-basis: 40px; width: 40px; height: 40px; font-size: 12.5px; }
@media (max-height: 700px) { .roulette .rl-chip:first-child:nth-last-child(-n+5), .roulette .rl-chip:first-child:nth-last-child(-n+5) ~ .rl-chip { flex-basis: 40px; width: 40px; height: 40px; font-size: 12.5px; } }
/* 提示句放不下时收成省略号(上面 .roulette .rl-crowd .rl-feed 把它排成 flex,权重比 .rl-feed.is-tip 高,省略号一直没生效、字是被硬切的) */
.roulette .rl-crowd .rl-feed.is-tip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

