/* 锄大地 —— 嘛嘛档深夜局(老板 11-09 选的概念图 C,output/锄大地设计/concepts/C-嘛嘛档深夜局.png)
 * 凌晨两点的嘛嘛档:红塑胶圆桌、日光灯、拉茶焦糖色、霓虹粉招牌、夜色深蓝;柠檬黄只在主按钮(快速开始 / 出牌)。
 * 正式设计稿还没出(要花积分),图先用概念图切的临时图;牌面、牌背、桌面、按钮全是 CSS。
 * 不用整块缩放(iPhone 会吃爆内存),一律按屏宽排版;动的只有 transform / opacity。
 */
.big2 {
  position: fixed; inset: 0; z-index: 10; overflow: hidden;
  display: flex; flex-direction: column;
  --navy: #0b1030; --navy-2: #141b44; --red: #c61f2a; --red-dk: #7d0f17; --caramel: #c98a4b; --cream: #f6e7c8;
  --neon: #ff3ea5; --fluor: #dffbea; --lemon: #e5ff3d; --ink: #fff; --ink-2: #c9c4d8; --good: #5dff9b; --bad: #ff6b6b;
  --sans: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  padding: var(--safe-t, 0px) 0 calc(var(--safe-b, 0px) + 8px);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(223, 251, 234, .16), transparent 60%),
    radial-gradient(90% 50% at 100% 30%, rgba(255, 62, 165, .16), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy) 55%, #070a1f);
  color: var(--ink); font-family: var(--sans);
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.big2[hidden] { display: none; }
.big2 :where(p, h2, h3) { margin: 0; }
.big2 :where(button) { appearance: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; background: none; cursor: pointer; }
.big2 button:focus-visible { outline: 2px solid var(--lemon); outline-offset: 2px; }
.big2 img { -webkit-user-drag: none; pointer-events: none; }
.big2 button > *, .big2 button * { pointer-events: none; }
.big2 i { font-style: normal; }
.b2-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.b2-loading { flex: 1; }

/* ---------- 顶栏 ---------- */
.b2-top { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.b2-back { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.b2-title { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.b2-title b { color: var(--ink); }
.b2-dot { opacity: .6; }
.b2-logo { font-size: 26px; font-weight: 900; letter-spacing: 2px; color: #fff3d6; transform: rotate(-2deg);
  text-shadow: 0 0 2px #fff, 0 0 10px var(--neon), 0 0 22px var(--neon), 2px 2px 0 var(--red-dk); }
.b2-bal { flex: none; min-width: 72px; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(201, 138, 75, .7); font-weight: 800; font-size: 13px; text-align: center; color: var(--cream); }

/* ---------- 大厅 ---------- */
.b2-lobby { overflow-y: auto; padding-bottom: 8px; }
.b2-hero { position: relative; margin: 4px 16px 12px; border-radius: 18px; overflow: hidden; aspect-ratio: 774 / 300; box-shadow: 0 0 0 2px rgba(201, 138, 75, .55), 0 10px 30px rgba(0, 0, 0, .45); }
.b2-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b2-hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 31, .88)); }
.b2-hero-copy b { font-size: 18px; font-weight: 900; color: #fff3d6; text-shadow: 0 0 10px var(--neon); }
.b2-hero-copy span { font-size: 12px; color: var(--ink-2); }
.b2-block { margin: 0 16px 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 62, 165, .12); box-shadow: inset 0 0 0 1px rgba(255, 62, 165, .5); font-size: 13px; line-height: 1.5; display: flex; align-items: center; gap: 10px; }
.b2-block p { flex: 1; }
.b2-tiers { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.b2-tier { position: relative; display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 8px 14px 8px 8px; border-radius: 16px; text-align: left; overflow: hidden;
  background: linear-gradient(100deg, #2f6ad8, #1c3f9a); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 6px 18px rgba(0, 0, 0, .35); }
.b2-tier-1 { background: linear-gradient(100deg, #2fa45a, #1b6b39); }
.b2-tier-2, .b2-tier.is-vip { background: linear-gradient(100deg, #7b3bd1, #3f1a7a); box-shadow: inset 0 0 0 2px rgba(255, 214, 102, .65), 0 6px 18px rgba(0, 0, 0, .35); }
.b2-tier img { width: 84px; height: 68px; object-fit: cover; border-radius: 12px; flex: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.b2-tier-main { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: rgba(255, 255, 255, .86); }
.b2-tier-main b { font-size: 20px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.b2-tier-main i { font-weight: 800; color: #fff; }
.b2-vip { position: absolute; top: 8px; right: 10px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 900; color: #3b2400; background: linear-gradient(180deg, #ffe08a, #e8a93a); }
.b2-online { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: rgba(255, 255, 255, .85); }
.b2-online i { font-weight: 800; }
.b2-tier:active { transform: scale(.985); }
.b2-actions { display: flex; gap: 10px; padding: 14px 16px 4px; }
.b2-primary { background: var(--lemon) !important; color: #0a0a0a !important; font-weight: 900; box-shadow: 0 4px 0 #9fb21f, 0 0 18px rgba(229, 255, 61, .35) !important; }
.b2-actions .b2-primary { flex: 1; height: 52px; border-radius: 14px; font-size: 18px; }
.b2-ghost { height: 52px; padding: 0 20px; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-weight: 800; }
.b2-ghost.b2-sm { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; }
.b2-block .b2-ghost { height: 34px; padding: 0 12px; font-size: 13px; }

/* ---------- 牌桌 ---------- */
.b2-table { overflow: hidden; }
.b2-felt { position: relative; flex: 1; min-height: 250px; margin: 0 8px; }
/* 俯视的红塑胶圆桌:水渍圈 + 边上一杯拉茶的焦糖色光 */
.b2-tablecloth { position: absolute; left: 50%; top: 50%; width: min(118%, 520px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background:
    radial-gradient(circle at 70% 78%, rgba(201, 138, 75, .45) 0 7%, transparent 7.5%),
    radial-gradient(circle at 30% 30%, transparent 0 9%, rgba(255, 255, 255, .06) 9.4% 10%, transparent 10.4%),
    radial-gradient(circle at 50% 42%, #e23845 0%, var(--red) 45%, var(--red-dk) 78%);
  box-shadow: inset 0 0 0 10px rgba(0, 0, 0, .12), inset 0 0 60px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .55); }
.b2-opp { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 92px; z-index: 2; }
.b2-pos-top { top: 4px; left: 50%; transform: translateX(-50%); }
.b2-pos-left { left: 2px; top: 34%; }
.b2-pos-right { right: 2px; top: 34%; }
.b2-av { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-2); box-shadow: 0 0 0 3px rgba(246, 231, 200, .85); display: grid; place-items: center; overflow: visible; }
.b2-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.b2-av-ch { font-size: 22px; font-weight: 900; color: var(--cream); }
.b2-opp.is-empty .b2-av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); }
.b2-opp.is-empty .b2-name { color: var(--ink-2); }
/* 轮到谁:头像外圈一圈倒数(--t 由 big2.js 每 0.2 秒写,1 → 0) */
[data-ring]::after { content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(var(--lemon) calc(var(--t, 1) * 360deg), rgba(255, 255, 255, .12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.b2-name { max-width: 92px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.b2-count { display: flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: 14px; }
.b2-count b { font-weight: 900; color: var(--cream); }
.b2-count.is-hot { background: #ff2a3c; animation: b2-pulse 1s ease-in-out infinite; }
.b2-count.is-hot b { color: #fff; }
.b2-back-mini { width: 12px; height: 16px; border-radius: 2px; background: repeating-linear-gradient(135deg, var(--caramel) 0 3px, #e6b178 3px 5px); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.b2-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.b2-tag { padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; background: rgba(255, 255, 255, .16); }
.b2-tag.is-hot { background: #ff2a3c; }
.b2-bubble { position: absolute; top: -6px; right: -4px; padding: 3px 9px; border-radius: 10px 10px 10px 2px; background: #fff; color: #222; font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.b2-pos-right .b2-bubble { right: auto; left: -4px; border-radius: 10px 10px 2px 10px; }

.b2-center { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(70%, 300px); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; }
.b2-center-msg { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 16px; border-radius: 14px; background: rgba(0, 0, 0, .28); text-align: center; font-size: 13px; color: var(--cream); }
.b2-center-msg b { font-size: 16px; color: #fff; }
.b2-cd { font-size: 26px; font-weight: 900; color: var(--lemon); }
.b2-hint { font-size: 12px; color: var(--lemon); }
.b2-play { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.b2-play.is-new { animation: b2-slam .28s cubic-bezier(.2, .9, .3, 1.2); }
.b2-play-cards { display: flex; }
.b2-play-cards .b2-card + .b2-card { margin-left: -14px; }
.b2-play-name span { padding: 2px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 12px; font-weight: 800; }
.b2-play.is-big .b2-play-name span { background: linear-gradient(180deg, #ffe08a, #d39a2c); color: #3b2400; box-shadow: 0 0 16px rgba(255, 214, 102, .7); }
.b2-play-who { font-size: 11px; color: var(--ink-2); }
.b2-s2 { padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: 12px; font-weight: 800; color: var(--lemon); }

/* ---------- 牌 ---------- */
.b2-card { position: relative; flex: none; width: 46px; height: 64px; border-radius: 7px; background: linear-gradient(180deg, #fff, #f2efe8); color: #1b1b1b;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 3px 8px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .12); transition: transform .12s; }
.b2-card.is-red { color: #d0182b; }
.b2-card .b2-r { position: absolute; left: 4px; top: 2px; font-size: 16px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; }
.b2-card .b2-s { position: absolute; left: 5px; top: 20px; font-size: 12px; line-height: 1; }
.b2-card .b2-big { position: absolute; right: 4px; bottom: 2px; font-size: 22px; line-height: 1; opacity: .9; }
.b2-card.is-small { width: 40px; height: 56px; }
.b2-card.is-small .b2-r { font-size: 14px; }
.b2-card.is-small .b2-big { font-size: 18px; }

/* ---------- 自己 ---------- */
.b2-me { flex: none; padding: 0 8px; display: flex; flex-direction: column; gap: 6px; }
.b2-status { min-height: 28px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.b2-status b { color: #fff; }
.b2-status.is-turn b { color: var(--lemon); font-size: 15px; }
.b2-status.is-turn span { color: var(--cream); font-size: 12px; }
.b2-status.is-turn .b2-cd { font-size: 18px; color: var(--lemon); }
.b2-status.is-auto { color: var(--cream); background: rgba(255, 62, 165, .14); border-radius: 999px; padding: 4px 6px 4px 14px; align-self: center; }
/* 手牌:一排压着排,张数越多压得越紧;选中的往上抬 */
.b2-hand { display: flex; justify-content: center; padding: 16px 4px 2px; min-height: 84px; }
.b2-hand .b2-card { width: 52px; height: 74px; margin-left: min(4px, calc((min(100vw - 24px, 480px) - 52px * var(--n)) / max(var(--n) - 1, 1))); }
.b2-hand .b2-card:first-child { margin-left: 0; }
.b2-hand .b2-card .b2-r { font-size: 18px; }
.b2-hand .b2-card.is-sel { transform: translateY(-16px); box-shadow: 0 0 0 2px var(--lemon), 0 6px 14px rgba(0, 0, 0, .45); }
.b2-me:not(.is-turn) .b2-hand .b2-card { filter: saturate(.9); }
.b2-bar { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.b2-myav { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--navy-2); box-shadow: 0 0 0 3px rgba(246, 231, 200, .85); display: grid; place-items: center; }
.b2-myav img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.b2-btn { flex: 1; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-weight: 900; font-size: 16px; }
.b2-btn.b2-primary { flex: 1.4; border-radius: 12px; font-size: 18px; }
.b2-btn:disabled { opacity: .38; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12) !important; }
.b2-btn.b2-primary:disabled { background: rgba(229, 255, 61, .35) !important; box-shadow: none !important; }
.b2-round { width: 46px; height: 46px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-size: 12px; font-weight: 800; }

/* ---------- 结算 ---------- */
.b2-result { width: min(92vw, 340px); padding: 12px; border-radius: 16px; background: rgba(7, 10, 31, .9); box-shadow: 0 0 0 2px rgba(201, 138, 75, .6), 0 12px 30px rgba(0, 0, 0, .5); }
.b2-result.is-new { animation: b2-pop .3s ease-out; }
.b2-res-head { display: flex; justify-content: center; align-items: baseline; gap: 6px; font-size: 14px; margin-bottom: 8px; color: var(--ink-2); }
.b2-res-head b { font-size: 18px; color: var(--lemon); }
.b2-res-bonus { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 8px; font-size: 12px; }
.b2-res-bonus > span { padding: 2px 8px; border-radius: 999px; background: linear-gradient(180deg, #ffe08a, #d39a2c); color: #3b2400; font-weight: 800; }
.b2-res-rows { display: flex; flex-direction: column; gap: 4px; }
.b2-res-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13px; }
.b2-res-row.is-me { box-shadow: inset 0 0 0 1px rgba(229, 255, 61, .6); }
.b2-res-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.b2-res-left { display: flex; gap: 4px; align-items: center; color: var(--ink-2); font-size: 12px; }
.b2-x { padding: 0 5px; border-radius: 5px; background: rgba(255, 62, 165, .25); color: #ffd0e8; font-weight: 800; }
.b2-res-pay { font-weight: 900; font-size: 15px; min-width: 70px; text-align: right; }
.b2-res-pay.is-pos { color: var(--good); }
.b2-res-pay.is-neg { color: var(--bad); }
.b2-res-foot { margin-top: 8px; text-align: center; font-size: 11px; color: var(--ink-2); }

@keyframes b2-pulse { 50% { transform: scale(1.08); } }
@keyframes b2-slam { from { transform: scale(1.35) translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes b2-pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .b2-play, .b2-result, .b2-count.is-hot { animation: none; } }
@media (max-height: 640px) { .b2-hero { display: none; } .b2-felt { min-height: 210px; } .b2-av { width: 44px; height: 44px; } }
/* 结算框要盖在左右两家头像上面 */
.b2-table[data-phase="result"] .b2-center { z-index: 5; top: 50%; }

/* ================= 照设计稿(11-10 老板批):去字底板 + 叠字 =================
 * 坐标都是设计稿的 1520 × 2688 设计像素,一律 calc(var(--u) * n);画面最宽 480px,再宽就置中。
 * 底板:lobby-bg(大厅整张)、table-top(牌桌上段 0–1720)、table-bottom(下段 1690–2688)。 */
.big2 { --W: min(100vw, 480px); --u: calc(var(--W) / 1520); }
.b2-artmode { background: #0b0f22; }
.b2-art { position: relative; flex: none; width: var(--W); margin: 0 auto; }
/* 大厅:底图从第 1086 像素切成上下两段(big2.js LOBBY_CUT)。上段(顶栏 + 横幅)贴顶、下段(三个场 + 按钮)贴底;
 * 手机比设计稿长的那一截夹在中间:同一条深蓝带补满 + 一排霓虹花色当分隔。比设计稿短就没有这一截,整页照旧往下滑 */
.b2-lt { height: calc(var(--u) * 1086); background: url(/img/big2/lobby-bg.webp) 0 0 / 100% auto no-repeat; }
.b2-lb { height: calc(var(--u) * 1602); margin-top: -1px; background: url(/img/big2/lobby-bg.webp) 0 100% / 100% auto no-repeat; }
.b2-lgap { position: relative; flex: 1 1 0; min-height: 0; width: var(--W); margin: -1px auto 0; overflow: hidden; container-type: size;
  background: #0a1327 url(/img/big2/lobby-gap.webp) 0 0 / 100% 100% no-repeat; }
.b2-lgap-in { position: absolute; left: 0; right: 0; top: 50%; height: calc(var(--u) * 150); margin-top: calc(var(--u) * -75); display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 46); }
.b2-lgap-in .b2fx-neon { flex: none; width: auto; height: 100%; aspect-ratio: 1; }
.b2-lgap-in i { flex: 1; max-width: calc(var(--u) * 300); height: calc(var(--u) * 5); border-radius: 99px; background: linear-gradient(90deg, rgba(201, 138, 75, 0), #c98a4b); box-shadow: 0 0 calc(var(--u) * 14) rgba(255, 62, 165, .6); }
.b2-lgap-in i:last-child { transform: scaleX(-1); }
@container (max-height: 56px) { .b2-lgap-in { display: none; } } /* 只多出一点点就不摆花色,免得挤 */
.b2-art > *, .b2-tt > *, .b2-tb > *, .b2-tier-hit > * { position: absolute; }
.b2-hit { background: transparent; display: block; }
.b2-round-hit { border-radius: 50%; }
.b2-logo-t { display: grid; place-items: center; font-size: calc(var(--u) * 96); font-weight: 900; letter-spacing: calc(var(--u) * 6); color: #ffe9a8; transform: rotate(-1.5deg);
  text-shadow: 0 0 calc(var(--u) * 4) #fff, 0 0 calc(var(--u) * 22) var(--neon), 0 0 calc(var(--u) * 44) var(--neon), calc(var(--u) * 5) calc(var(--u) * 5) 0 var(--red-dk); }
.b2-bal-t { display: flex; align-items: center; justify-content: center; font-size: calc(var(--u) * 44); font-weight: 800; color: #fff3d6; white-space: nowrap; }
.b2-cap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * 10); text-align: center;
  background: radial-gradient(60% 60% at 50% 55%, rgba(8, 6, 14, .72), transparent 72%); }
.b2-cap b { font-size: calc(var(--u) * 96); font-weight: 900; color: #ffe08a; text-shadow: 0 0 calc(var(--u) * 18) var(--neon), calc(var(--u) * 4) calc(var(--u) * 4) 0 var(--red-dk); }
.b2-cap span { font-size: calc(var(--u) * 46); font-weight: 700; color: #fff; text-shadow: 0 calc(var(--u) * 3) calc(var(--u) * 8) rgba(0, 0, 0, .8); }
.b2-art-note { display: flex; align-items: center; gap: calc(var(--u) * 24); padding: 0 calc(var(--u) * 36); border-radius: calc(var(--u) * 30); background: rgba(7, 10, 31, .86);
  box-shadow: inset 0 0 0 calc(var(--u) * 3) rgba(255, 62, 165, .7); font-size: calc(var(--u) * 40); line-height: 1.4; color: #fff3d6; }
.b2-art-note p { flex: 1; }
.b2-tier-hit { border-radius: calc(var(--u) * 36); text-align: left; }
.b2-tier-hit:active { transform: scale(.985); }
.b2-tier-name { display: flex; align-items: center; font-size: calc(var(--u) * 92); font-weight: 900; color: #fff; text-shadow: 0 calc(var(--u) * 5) 0 rgba(0, 0, 0, .3); white-space: nowrap; }
.b2-tier-line { display: flex; align-items: center; gap: calc(var(--u) * 18); font-size: calc(var(--u) * 54); font-weight: 700; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.b2-tier-line i { font-weight: 900; color: #fff; }
.b2-tier-online { display: flex; align-items: center; justify-content: flex-end; gap: calc(var(--u) * 12); font-size: calc(var(--u) * 44); color: #fff; white-space: nowrap; }
.b2-tier-online svg { width: calc(var(--u) * 46); height: calc(var(--u) * 46); }
.b2-tier-online i { font-weight: 800; }
.b2-vip-t { display: grid; place-items: center; font-size: calc(var(--u) * 58); font-weight: 900; color: #3b2400; }
.b2-quick-t { border-radius: calc(var(--u) * 44); font-size: calc(var(--u) * 84); font-weight: 900; color: #0a0a0a; }
.b2-rules-t { border-radius: calc(var(--u) * 44); font-size: calc(var(--u) * 64); font-weight: 800; color: #fff3d6; }

/* ---- 牌桌:上段贴顶、下段贴底,中间那截是夜色地板 ---- */
.b2-table.b2-artmode { display: flex; flex-direction: column; }
.b2-tt { position: relative; flex: 0 1 calc(var(--u) * 1720); min-height: calc(var(--u) * 1300); width: var(--W); margin: 0 auto; overflow: hidden;
  background: #1a0b10 url(/img/big2/table-top.webp) 0 0 / 100% auto no-repeat; }
.b2-gap { flex: 1 1 0; min-height: 0; width: var(--W); margin: 0 auto; background: linear-gradient(#2b0c13, #120910); }
.b2-tb { position: relative; flex: none; height: calc(var(--u) * 998); width: var(--W); margin: 0 auto; background: url(/img/big2/table-bottom.webp) 0 0 / 100% 100% no-repeat; }
.b2-ttitle { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 14); font-size: calc(var(--u) * 52); font-weight: 800; color: #fff; white-space: nowrap; }
.b2-ttitle .b2-ttier { font-size: calc(var(--u) * 64); font-weight: 900; color: #ffd1e6; text-shadow: 0 0 calc(var(--u) * 16) var(--neon), calc(var(--u) * 3) calc(var(--u) * 3) 0 var(--red-dk); }
.b2-ttitle b { color: var(--lemon); font-weight: 900; }
.b2-sav, .b2-sname, .b2-scount, .b2-stags, .b2-artmode .b2-bubble, .b2-artmode .b2-center, .b2-meav { transform: translate(-50%, -50%); }
.b2-sav, .b2-meav { display: grid; place-items: center; border-radius: 50%; }
.b2-sav img, .b2-meav img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.b2-sav .b2-av-ch, .b2-meav .b2-av-ch { font-size: calc(var(--u) * 100); }
.b2-seat.is-empty .b2-sav .b2-av-ch { color: rgba(246, 231, 200, .45); }
.b2-sname { display: grid; place-items: center; padding: 0 calc(var(--u) * 22); font-size: calc(var(--u) * 44); font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-seat.is-empty .b2-sname { color: var(--ink-2); font-weight: 600; }
.b2-scount { display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 16); border-radius: 999px; }
.b2-scount b { font-size: calc(var(--u) * 60); font-weight: 900; color: var(--lemon); }
.b2-scount .b2-back-mini { width: calc(var(--u) * 40); height: calc(var(--u) * 56); border-radius: calc(var(--u) * 6); }
.b2-scount.is-hot { background: #ff2a3c; box-shadow: 0 0 calc(var(--u) * 34) #ff2a3c; animation: b2-hot 1s ease-in-out infinite; }
.b2-scount.is-hot b { color: #fff; }
@keyframes b2-hot { 50% { box-shadow: 0 0 calc(var(--u) * 60) #ff5263; } }
.b2-stags { display: flex; gap: calc(var(--u) * 10); white-space: nowrap; }
.b2-artmode .b2-tag { padding: calc(var(--u) * 6) calc(var(--u) * 20); border-radius: 999px; font-size: calc(var(--u) * 38); }
.b2-artmode .b2-bubble { right: auto; padding: calc(var(--u) * 10) calc(var(--u) * 28); border-radius: calc(var(--u) * 30); font-size: calc(var(--u) * 42); white-space: nowrap; }
.b2-artmode [data-ring]::after { inset: calc(var(--u) * -16); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--u) * 14), #000 calc(100% - var(--u) * 12)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--u) * 14), #000 calc(100% - var(--u) * 12)); }
.b2-artmode .b2-center { width: calc(var(--u) * 980); }
.b2-artmode .b2-center-msg { padding: calc(var(--u) * 26) calc(var(--u) * 46); border-radius: calc(var(--u) * 34); font-size: calc(var(--u) * 40); background: rgba(10, 6, 14, .55); }
.b2-artmode .b2-center-msg b { font-size: calc(var(--u) * 54); }
.b2-artmode .b2-cd { font-size: calc(var(--u) * 80); }
.b2-artmode .b2-hint { font-size: calc(var(--u) * 38); }
.b2-artmode .b2-play-cards .b2-card { width: calc(var(--u) * 150); height: calc(var(--u) * 212); border-radius: calc(var(--u) * 16); }
.b2-artmode .b2-play-cards .b2-card + .b2-card { margin-left: calc(var(--u) * -48); }
.b2-artmode .b2-play-name span { padding: calc(var(--u) * 6) calc(var(--u) * 30); font-size: calc(var(--u) * 40); }
.b2-artmode .b2-play-who { font-size: calc(var(--u) * 34); }
.b2-artmode .b2-s2 { font-size: calc(var(--u) * 38); padding: calc(var(--u) * 8) calc(var(--u) * 28); }
/* 牌面在设计像素里的大小 */
.b2-artmode .b2-card .b2-r { left: calc(var(--u) * 12); top: calc(var(--u) * 6); font-size: calc(var(--u) * 50); }
.b2-artmode .b2-card .b2-s { left: calc(var(--u) * 14); top: calc(var(--u) * 62); font-size: calc(var(--u) * 36); }
.b2-artmode .b2-card .b2-big { right: calc(var(--u) * 12); bottom: calc(var(--u) * 6); font-size: calc(var(--u) * 70); }
/* 下段:状态、手牌、自己的头像、四颗键(键的样子在底板上,这里是透明感应区 + 字) */
.b2-astatus { display: flex; align-items: center; justify-content: center; }
.b2-artmode .b2-status { min-height: 0; gap: calc(var(--u) * 22); font-size: calc(var(--u) * 42); }
.b2-artmode .b2-status.is-turn b { font-size: calc(var(--u) * 64); }
.b2-artmode .b2-status.is-turn span { font-size: calc(var(--u) * 38); padding: calc(var(--u) * 6) calc(var(--u) * 18); border-radius: calc(var(--u) * 14); background: rgba(246, 231, 200, .92); color: #2a1a10; }
.b2-artmode .b2-status.is-turn .b2-cd { background: none; color: var(--lemon); font-size: calc(var(--u) * 64); padding: 0; }
.b2-artmode .b2-status.is-auto { padding: calc(var(--u) * 10) calc(var(--u) * 14) calc(var(--u) * 10) calc(var(--u) * 36); }
.b2-artmode .b2-ghost.b2-sm { height: calc(var(--u) * 84); padding: 0 calc(var(--u) * 34); font-size: calc(var(--u) * 38); }
.b2-artmode .b2-hand { display: flex; align-items: flex-end; justify-content: center; padding: 0; min-height: 0; }
.b2-artmode .b2-hand .b2-card { width: calc(var(--u) * 172); height: calc(var(--u) * 244); border-radius: calc(var(--u) * 18);
  margin-left: min(calc(var(--u) * 8), calc((var(--u) * 1328 - var(--u) * 172 * var(--n)) / max(var(--n) - 1, 1))); }
.b2-artmode .b2-hand .b2-card:first-child { margin-left: 0; }
.b2-artmode .b2-hand .b2-card .b2-r { font-size: calc(var(--u) * 56); }
.b2-artmode .b2-hand .b2-card.is-sel { transform: translateY(calc(var(--u) * -44)); box-shadow: 0 0 0 calc(var(--u) * 6) var(--lemon), 0 0 calc(var(--u) * 30) rgba(229, 255, 61, .6); }
.b2-abtn { display: grid; place-items: center; border-radius: calc(var(--u) * 40); font-size: calc(var(--u) * 60); font-weight: 900; color: #fff; }
.b2-abtn.is-primary { color: #0a0a0a; border-radius: calc(var(--u) * 34); }
.b2-abtn.is-round { border-radius: 50%; font-size: calc(var(--u) * 40); font-weight: 800; }
.b2-abtn:disabled { background: rgba(4, 6, 16, .58); color: rgba(255, 255, 255, .38); }
.b2-abtn:not(:disabled):active { transform: scale(.96); }
/* 结算框:盖在整个牌桌中间(照稿:深蓝漆底、焦糖金边、霓虹粉光) */
.b2-resultwrap { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(4, 4, 12, .35); }
.b2-artmode .b2-result { width: min(86vw, 412px); padding: 16px 14px; border-radius: 20px; box-shadow: 0 0 0 2px #c98a4b, 0 0 22px rgba(255, 62, 165, .55), 0 14px 34px rgba(0, 0, 0, .55); }
.b2-artmode .b2-res-head { font-size: 16px; }
.b2-artmode .b2-res-head b { font-size: 22px; color: #ffe08a; }
.b2-artmode .b2-res-row { padding: 9px 10px; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.b2-artmode .b2-res-row.is-me { box-shadow: inset 0 0 0 2px rgba(229, 255, 61, .75); }
.b2-artmode .b2-res-pay { font-size: 17px; }
/* 座位那一组盖满上段、自己不吃点击;里面每一块照设计像素摆 */
.b2-seat { position: absolute; inset: 0; pointer-events: none; }
.b2-seat > * { position: absolute; }
.b2-artmode .b2-hand .b2-card.is-sel { transform: translateY(calc(var(--u) * -72)); }
/* 手机比设计稿高的那一截:夜里的地板,桌边红光往下淡掉 */
.b2-gap { background: radial-gradient(70% 120% at 50% 0%, rgba(150, 24, 36, .55), transparent 70%), linear-gradient(#2b0c13, #120910); }
.b2-logo-t { text-shadow: 0 0 calc(var(--u) * 3) #fff, 0 0 calc(var(--u) * 14) var(--neon), calc(var(--u) * 5) calc(var(--u) * 5) 0 var(--red-dk); }
/* 结算每一行前面的头像(照稿) */
.b2-artmode .b2-res-row { grid-template-columns: auto 1fr auto auto; }
.b2-res-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--navy-2); box-shadow: 0 0 0 2px rgba(246, 231, 200, .8); }
.b2-res-av img { width: 100%; height: 100%; object-fit: cover; }
.b2-res-av .b2-av-ch { font-size: 15px; }
.b2-res-row.is-win .b2-res-av { box-shadow: 0 0 0 2px #ffd34d, 0 0 10px rgba(255, 211, 77, .7); }

/* 下段改成:手牌框(九宫格拉长,把手机比设计稿长的那一截补满)+ 按钮列(固定高) */
.b2-gap { display: none; }
.b2-tb { flex: 1 0 calc(var(--u) * 1010); height: auto; display: flex; flex-direction: column;
  background: url(/img/big2/table-bottom.webp) 0 0 / 100% auto no-repeat, linear-gradient(#2b0c13, #120910); }
.b2-tb > * { position: relative; }
.b2-panel { flex: 1 1 auto; min-height: calc(var(--u) * 600); margin: 0 calc(var(--u) * 52) 0 calc(var(--u) * 50);
  border-style: solid; border-width: calc(var(--u) * 212) calc(var(--u) * 70) calc(var(--u) * 70);
  border-image: url(/img/big2/hand-panel.webp) 159 52 52 fill / calc(var(--u) * 212) calc(var(--u) * 70) calc(var(--u) * 70) stretch; }
.b2-panel-in { position: absolute; inset: calc(var(--u) * -212) calc(var(--u) * -70) calc(var(--u) * -70); }
.b2-panel-in > * { position: absolute; }
.b2-artmode .b2-astatus { left: calc(var(--u) * 60); right: calc(var(--u) * 60); top: calc(var(--u) * 22); height: calc(var(--u) * 124); }
.b2-artmode .b2-panel-in .b2-hand { left: calc(var(--u) * 45); right: calc(var(--u) * 45); top: calc(var(--u) * 230); bottom: calc(var(--u) * 40); align-items: center; }
.b2-abar { flex: none; height: calc(var(--u) * 392); background: url(/img/big2/bar.webp) 0 0 / 100% 100% no-repeat; }
.b2-abar > * { position: absolute; }
/* 底图 table-bottom 从设计稿 1690 切起、手牌框图从 1688 切起:底图往下挪 2 设计像素,两层的框边才对齐 */
.b2-tb { background-position: 0 calc(var(--u) * 2), 0 0; }
/* 大厅比设计稿长:底下接着桌面的暗红往下淡掉,不留一块深蓝 */
.b2-lobby.b2-artmode { padding-bottom: 0; background: linear-gradient(180deg, #0b0f22 0%, #2a0b12 72%, #120910 100%); }

/* ---------- 大牌特效(金刚 / 同花顺 / 一条龙 / 大赢):盖在整个画面上 2.4 秒 ---------- */
.big2-fx { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; pointer-events: none; overflow: hidden;
  font-family: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; animation: b2fx-out 2.4s linear forwards; }
.big2-fx::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(10, 8, 24, .25), rgba(5, 4, 14, .72) 70%); }
.b2-fx-plate { position: relative; width: min(92vw, 440px); animation: b2fx-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.b2-fx-dragon .b2-fx-plate { width: min(96vw, 460px); }
.b2-fx-plate img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .6)); }
.b2-fx-text { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.b2-fx-text b { font-size: clamp(38px, 12vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: 2px; color: #fff3c4; white-space: nowrap;
  text-shadow: 0 0 6px #fff, 0 0 18px #ff3ea5, 3px 3px 0 #7d0f17, -1px -1px 0 #7d0f17; animation: b2fx-pulse .9s ease-in-out .4s 2; }
.b2-fx-text span { font-size: clamp(15px, 4.4vw, 20px); font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); white-space: nowrap; }
.b2-fx-sf .b2-fx-text b, .b2-fx-bigwin .b2-fx-text b { color: #ffe08a; text-shadow: 0 0 8px #fff, 0 0 22px #ffd34d, 0 0 34px #ff3ea5, 3px 3px 0 #5a2c00; }
.b2-fx-dragon .b2-fx-text b { color: #ffe08a; text-shadow: 0 0 10px #ffd34d, 3px 3px 0 #5a0a0a, -1px -1px 0 #5a0a0a; }
.b2-fx-rays { position: absolute; left: 50%; top: 46%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%); opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255, 224, 138, .28) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 55%); mask: radial-gradient(circle, #000 0, transparent 55%);
  animation: b2fx-spin 2.4s linear both; }
.b2-fx-quads .b2-fx-rays { background: repeating-conic-gradient(from 0deg, rgba(255, 62, 165, .3) 0 6deg, transparent 6deg 18deg); }
.b2-fx-coins { position: absolute; left: 50%; top: 46%; width: 0; height: 0; }
.b2-fx-coins i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c2, #ffd34d 40%, #c98a1b 75%, #7a4a00); box-shadow: 0 0 8px rgba(255, 211, 77, .8);
  animation: b2fx-coin 1.3s cubic-bezier(.15, .8, .3, 1) var(--dl) both; }
.b2-fx-quads .b2-fx-coins i { width: 16px; height: 22px; border-radius: 3px; background: linear-gradient(135deg, #fff, #f3e9d2); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 0 8px rgba(255, 62, 165, .7); }
@keyframes b2fx-in { 0% { transform: scale(.2) rotate(-8deg); opacity: 0; } 70% { transform: scale(1.08) rotate(1deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes b2fx-out { 0%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes b2fx-pulse { 50% { transform: scale(1.08); } }
@keyframes b2fx-spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(40deg); } }
@keyframes b2fx-coin { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 120px)) scale(1) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .b2-fx-rays, .b2-fx-coins { display: none; } .b2-fx-plate, .b2-fx-text b { animation: none; } }
/* 顶栏的音符键 */
.b2-music { display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 calc(var(--u) * 3) rgba(201, 138, 75, .7); color: #fff3d6; }
.b2-music svg { width: 56%; height: 56%; }
/* 全站 button 有 min-height:44px,圆键会被撑成竖椭圆;画面上照设计稿的圆,按得到的范围用 ::before 往外放 */
.b2-music { min-height: 0; min-width: 0; }
.b2-music::before { content: ""; position: absolute; inset: calc(var(--u) * -34); border-radius: 50%; }

/* ================= 马来熊动画(11-10 老板「做马来熊动画」,public/big2-bear.js) =================
 * 影片先透明,真的在播(playing)才显出来:底下是一模一样的第一格(大厅底图 / bear-still),没抓到、被挡自动播都不会黑一块 */
.b2-bear-slot { pointer-events: none; overflow: hidden; }
.b2-bear-v { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.b2-bear-v.is-on { opacity: 1; }
/* 大厅横幅:上面淡 9%(日光灯那块影片跟底图亮度差最多)、下面淡 6%,接进底图不见缝 */
.b2-bear-hero .b2-bear-v { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 94%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 94%, transparent 100%); }
/* 结算框那格比 16:9 扁:贴顶裁,庆祝举高的拳头不被切掉(只少看桌面) */
.b2-res-bear { background: #0b0f22 url(/img/big2/bear-still.webp) 50% 0% / cover no-repeat; }
.b2-res-bear .b2-bear-v { object-position: 50% 0%; }
/* 结算框顶上(自己赢):扁一点的框,不把四行结算挤出画面 */
.b2-res-bear { aspect-ratio: 2.1 / 1; margin: -2px 0 10px; border-radius: 12px; box-shadow: 0 0 0 2px rgba(201, 138, 75, .75), 0 0 16px rgba(255, 62, 165, .35); }

/* ================= 整套演出(11-10 老板批的 5 张分镜,public/big2-fx.js) =================
 * 画在牌桌外面的一层(.b2fx,挂在 body):牌桌每 0.7 秒整块重画,演出不能被它打断。零件都以自己中心为原点,位置全靠 transform(JS 当场量座位、桌心)。 */
.b2fx { position: fixed; inset: 0; z-index: 31; pointer-events: none; overflow: hidden; --W: min(100vw, 480px); --u: calc(var(--W) / 1520);
  font-family: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
.b2fx-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 44%, rgba(8, 6, 20, .5), rgba(4, 3, 12, .82) 75%); opacity: 0; transition: opacity .25s; }
.b2fx.is-dim .b2fx-dim { opacity: 1; }
.b2fx.is-soft .b2fx-dim { opacity: .5; }
.b2fx-edge { position: absolute; inset: 0; box-shadow: inset 0 0 calc(var(--u) * 100) calc(var(--u) * 34) rgba(255, 30, 50, .9); opacity: 0; }
.b2fx.is-edge .b2fx-edge { animation: b2fx-edge .85s ease-out; }
@keyframes b2fx-edge { 0% { opacity: 0; } 15% { opacity: 1; } 45% { opacity: .25; } 60% { opacity: .9; } 100% { opacity: 0; } }
.b2fx-stage { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--W); margin-left: calc(var(--W) / -2); }
.b2fx-el { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.b2fx-el > img { display: block; width: 100%; height: 100%; }
/* 演出里的牌:大小跟着 --cw 走(牌桌上的牌是照设计稿固定大小的) */
.b2fx-card { width: var(--cw); height: calc(var(--cw) * 1.41); margin: calc(var(--cw) * -.705) 0 0 calc(var(--cw) * -.5); filter: drop-shadow(0 calc(var(--cw) * .05) calc(var(--cw) * .09) rgba(0, 0, 0, .55)); }
.b2fx-card .b2-card { display: block; width: 100%; height: 100%; border-radius: calc(var(--cw) * .1); box-shadow: none; }
.b2fx-card .b2-card .b2-r { left: calc(var(--cw) * .08); top: calc(var(--cw) * .03); font-size: calc(var(--cw) * .34); }
.b2fx-card .b2-card .b2-s { left: calc(var(--cw) * .09); top: calc(var(--cw) * .41); font-size: calc(var(--cw) * .24); }
.b2fx-card .b2-card .b2-big { right: calc(var(--cw) * .08); bottom: calc(var(--cw) * .04); font-size: calc(var(--cw) * .5); }
.b2fx-card.is-tiny .b2-card .b2-s { display: none; }
.b2fx-card.is-tiny .b2-card .b2-r { font-size: calc(var(--cw) * .5); top: 0; }
.b2fx-card.is-tiny .b2-card .b2-big { font-size: calc(var(--cw) * .46); }
.b2fx-card.is-lit .b2-card { box-shadow: 0 0 0 calc(var(--cw) * .03) #ff3ea5, 0 0 calc(var(--cw) * .22) #ff3ea5, 0 0 calc(var(--cw) * .4) rgba(255, 211, 77, .7); transition: box-shadow .12s; }
.b2fx-card.is-pink .b2-card { box-shadow: 0 0 0 calc(var(--cw) * .02) #ff3ea5, 0 0 calc(var(--cw) * .3) #ff3ea5; }
.b2fx-back { border-radius: 12%; background: repeating-linear-gradient(135deg, #c98a4b 0 4px, #e6b178 4px 7px); box-shadow: 0 0 0 1.5px #fff3d6, 0 2px 6px rgba(0, 0, 0, .4); }
/* 霓虹灯管:一条线串过去 / 花色招牌(两层:外面粗的带色、里面细的发白)/ 霓虹「2」 */
.b2fx-zip { border-radius: 99px; background: linear-gradient(90deg, #ff3ea5, #fff 45%, #ffd34d); box-shadow: 0 0 6px #fff, 0 0 14px #ff3ea5, 0 0 28px #ffb300; transform-origin: 0 50%; }
.b2fx-neon { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 5px var(--nc)) drop-shadow(0 0 14px var(--nc)); }
.b2fx-neon-a * { fill: none; stroke: var(--nc); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.b2fx-neon-b * { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.b2fx-neon.is-draw * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: b2fx-draw .5s ease-out forwards; }
.b2fx-neon.is-draw { animation: b2fx-flick .7s linear .5s 1; }
.b2fx-neon.is-flick { animation: b2fx-flick .5s linear both; }
@keyframes b2fx-draw { to { stroke-dashoffset: 0; } }
@keyframes b2fx-flick { 0% { opacity: 0; } 8% { opacity: 1; } 16% { opacity: .2; } 28% { opacity: 1; } 40% { opacity: .5; } 52%, 100% { opacity: 1; } }
.b2fx-two { display: flex; align-items: center; gap: .06em; line-height: 1; }
.b2fx-two b { font: 900 1em/1 "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif; color: transparent; -webkit-text-stroke: .055em #ffd34d;
  filter: drop-shadow(0 0 .05em #ffb300) drop-shadow(0 0 .14em #ff7a00); animation: b2fx-flick .5s linear both; }
.b2fx-two .b2fx-neon { width: .62em; height: .62em; }
/* 冲击波、火花、拉茶金环、熊 */
.b2fx-ring { border-radius: 50%; border: calc(var(--u) * 14) solid #ffd34d; box-shadow: 0 0 calc(var(--u) * 40) #ffb300, inset 0 0 calc(var(--u) * 40) #ffb300; }
.b2fx-ring.is-pink { border-color: #ff3ea5; box-shadow: 0 0 calc(var(--u) * 46) #ff3ea5, inset 0 0 calc(var(--u) * 46) #ff3ea5; }
.b2fx-sparks.is-pink { filter: hue-rotate(-70deg) saturate(1.5); }
.b2fx-splash.is-turn img { animation: b2fx-turn 7s linear infinite; }
@keyframes b2fx-turn { to { transform: rotate(360deg); } }
.b2fx-bear.is-bounce img { transform-origin: 50% 100%; animation: b2fx-bounce .36s ease-in-out infinite alternate; }
@keyframes b2fx-bounce { to { transform: translateY(-4%) scale(1.03, 1.05); } }
/* 大字:中文是手绘图(.b2fx-word > img);别的语言用程序字,同样的金字、红边、粉红霓虹 */
.b2fx-wordtxt { display: grid; place-items: center; }
.b2fx-wordtxt b { font-size: calc(var(--u) * min(150, 2300 / var(--len, 8))); font-weight: 900; font-style: italic; line-height: 1; white-space: nowrap; letter-spacing: .02em; color: #ffe08a;
  -webkit-text-stroke: calc(var(--u) * 5) #7d0f17; paint-order: stroke fill;
  text-shadow: 0 0 calc(var(--u) * 14) #ff3ea5, 0 0 calc(var(--u) * 34) #ff3ea5, calc(var(--u) * 6) calc(var(--u) * 8) 0 #5a0a0a; }
.b2fx-wordtxt.w-quads b { font-style: normal; color: #ffd34d; -webkit-text-stroke-color: #a3121f; text-shadow: 0 0 calc(var(--u) * 30) #ff7a00, calc(var(--u) * 6) calc(var(--u) * 10) 0 #5a0a0a; }
.b2fx-wordtxt.w-two b { padding: .14em .42em; border: calc(var(--u) * 8) solid #ff3ea5; border-radius: .26em; background: rgba(60, 6, 30, .6); color: #fff3d6;
  box-shadow: 0 0 calc(var(--u) * 30) #ff3ea5, inset 0 0 calc(var(--u) * 24) rgba(255, 62, 165, .6); }
.b2fx-pill span { display: block; padding: calc(var(--u) * 10) calc(var(--u) * 34); border-radius: 999px; background: linear-gradient(180deg, #2a1d05, #0d0a02); color: #ffe9a8; font-size: calc(var(--u) * 56); font-weight: 900; white-space: nowrap;
  box-shadow: 0 0 0 calc(var(--u) * 5) #e2b547, 0 0 calc(var(--u) * 30) rgba(255, 200, 60, .8); }
.b2fx-pill i { font-style: normal; color: #fff; font-weight: 800; }
.b2fx-num span { font-weight: 900; white-space: nowrap; color: #ffe08a; -webkit-text-stroke: .04em #7a3b00; paint-order: stroke fill; text-shadow: 0 0 .2em #ffb300, .04em .06em 0 #5a2c00; font-variant-numeric: tabular-nums; }
/* 剩一张:气泡 + 警示带 */
.b2fx-bubble span { display: block; padding: calc(var(--u) * 14) calc(var(--u) * 30); border-radius: calc(var(--u) * 34) calc(var(--u) * 34) calc(var(--u) * 34) calc(var(--u) * 8); background: #fff; color: #1b1b1b;
  font-size: calc(var(--u) * 48); font-weight: 900; white-space: nowrap; box-shadow: 0 calc(var(--u) * 6) calc(var(--u) * 20) rgba(0, 0, 0, .45), 0 0 0 calc(var(--u) * 5) #ff2a3c; }
.b2fx-bubble.is-left span { border-radius: calc(var(--u) * 34) calc(var(--u) * 34) calc(var(--u) * 8) calc(var(--u) * 34); }
.b2fx-tape > div { position: relative; display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 60); width: calc(var(--W) * 1.7); padding: calc(var(--u) * 54) 0; white-space: nowrap;
  background: linear-gradient(180deg, #e0121f, #9c0a14); box-shadow: 0 0 calc(var(--u) * 60) rgba(255, 30, 40, .9); }
.b2fx-tape > div::before, .b2fx-tape > div::after { content: ''; position: absolute; left: 0; right: 0; height: calc(var(--u) * 30);
  background: repeating-linear-gradient(-45deg, #ffd21f 0 calc(var(--u) * 36), #1a1a1a calc(var(--u) * 36) calc(var(--u) * 72)); }
.b2fx-tape > div::before { top: 0; }
.b2fx-tape > div::after { bottom: 0; }
.b2fx-tape b { font-size: calc(var(--u) * 100); font-weight: 900; font-style: italic; color: #ffe14d; text-shadow: 0 0 calc(var(--u) * 16) #ff7a00, calc(var(--u) * 4) calc(var(--u) * 5) 0 #5a0000; }
.b2fx-tape i { flex: none; width: calc(var(--u) * 24); height: calc(var(--u) * 24); background: #ffe14d; transform: rotate(45deg); }
/* 获胜:输家头上的红色盖章 */
.b2fx-stamp { display: flex; flex-direction: column; align-items: center; padding: calc(var(--u) * 6) calc(var(--u) * 26); border: calc(var(--u) * 7) solid #fff; border-radius: calc(var(--u) * 14); background: #d3131f; color: #fff; white-space: nowrap;
  box-shadow: 0 0 0 calc(var(--u) * 4) #a50d17, 0 calc(var(--u) * 8) calc(var(--u) * 18) rgba(0, 0, 0, .5); }
.b2fx-stamp b { font-size: calc(var(--u) * 58); font-weight: 900; line-height: 1.15; }
.b2fx-stamp i { font-style: normal; }
.b2fx-stamp small { font-size: calc(var(--u) * 36); font-weight: 800; line-height: 1.2; }

/* 大牌砸下来:整桌震一下(震的是锄大地这一整页,牌桌重画不会打断) */
.big2.b2-quake-1 { animation: b2-quake1 .34s linear; }
.big2.b2-quake-2 { animation: b2-quake2 .44s linear; }
@keyframes b2-quake1 { 0%, 100% { transform: none; } 20% { transform: translate(-3px, 2px); } 40% { transform: translate(3px, -2px); } 60% { transform: translate(-2px, -1px); } 80% { transform: translate(1px, 1px); } }
@keyframes b2-quake2 { 0%, 100% { transform: none; } 12% { transform: translate(-7px, 5px); } 26% { transform: translate(6px, -6px); } 40% { transform: translate(-5px, -3px); } 56% { transform: translate(4px, 4px); } 72% { transform: translate(-2px, 2px); } 86% { transform: translate(1px, -1px); } }

/* 每一手:牌从出牌的人那边飞到桌心(--fx / --fy 是从那家头像到桌心的位移),牌型名晚一点弹出来 */
.b2-artmode .b2-play.is-new { animation: none; }
.b2-artmode .b2-play.is-new .b2-play-cards { animation: b2-flyin .32s cubic-bezier(.2, .8, .3, 1) both; }
.b2-artmode .b2-play.is-new .b2-play-name, .b2-artmode .b2-play.is-new .b2-play-who { animation: b2-pop .2s ease-out .24s both; }
@keyframes b2-flyin { 0% { transform: translate(var(--fx, 0), var(--fy, 40px)) scale(.3) rotate(-18deg); opacity: .3; } 78% { transform: translate(0, 0) scale(1.08) rotate(1deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
.b2-artmode .b2-play.is-five .b2-play-name span { background: rgba(40, 6, 30, .8); color: #fff3d6; box-shadow: 0 0 0 calc(var(--u) * 4) #ff3ea5, 0 0 calc(var(--u) * 26) rgba(255, 62, 165, .8); }
.b2-artmode .b2-play { position: relative; }
.b2-artmode .b2-play.is-new::before { content: ''; position: absolute; left: 50%; top: calc(var(--u) * 106); width: var(--fl, 0); height: calc(var(--u) * 110); margin-top: calc(var(--u) * -55); pointer-events: none;
  transform-origin: 0 50%; border-radius: 50%; filter: blur(calc(var(--u) * 20)); background: linear-gradient(90deg, #fff 0, rgba(255, 236, 170, .9) 10%, rgba(255, 190, 60, .5) 55%, rgba(255, 190, 60, 0) 100%);
  animation: b2-trail .42s ease-out both; }
@keyframes b2-trail { 0% { transform: rotate(var(--fa, 90deg)) scaleX(1); opacity: 0; } 30% { opacity: .9; } 100% { transform: rotate(var(--fa, 90deg)) scaleX(.15); opacity: 0; } }
/* 发牌:手牌一张张滑进来(--el = 已经过了多久,重画时接着,不从头再来) */
.b2-hand.is-deal .b2-card { animation: b2-dealin .26s cubic-bezier(.2, .8, .3, 1) backwards; animation-delay: calc(var(--i, 0) * 42ms - var(--el, 0ms)); }
.b2-hand.is-deal .b2-card:nth-child(1) { --i: 0; } .b2-hand.is-deal .b2-card:nth-child(2) { --i: 1; } .b2-hand.is-deal .b2-card:nth-child(3) { --i: 2; } .b2-hand.is-deal .b2-card:nth-child(4) { --i: 3; }
.b2-hand.is-deal .b2-card:nth-child(5) { --i: 4; } .b2-hand.is-deal .b2-card:nth-child(6) { --i: 5; } .b2-hand.is-deal .b2-card:nth-child(7) { --i: 6; } .b2-hand.is-deal .b2-card:nth-child(8) { --i: 7; }
.b2-hand.is-deal .b2-card:nth-child(9) { --i: 8; } .b2-hand.is-deal .b2-card:nth-child(10) { --i: 9; } .b2-hand.is-deal .b2-card:nth-child(11) { --i: 10; } .b2-hand.is-deal .b2-card:nth-child(12) { --i: 11; }
.b2-hand.is-deal .b2-card:nth-child(13) { --i: 12; }
@keyframes b2-dealin { from { transform: translateY(70%) scale(.5) rotate(-12deg); opacity: 0; } }
/* 剩一张(报单):头像上亮着红色警灯、红光绕着转、头像圈闪红 */
.b2-siren { width: calc(var(--u) * 96); height: calc(var(--u) * 124); transform: translate(-50%, -50%); background: url(/img/big2/fx/siren.webp) center / contain no-repeat; animation: b2-siren 1.2s linear infinite; }
@keyframes b2-siren { 0%, 100% { filter: drop-shadow(0 0 calc(var(--u) * 10) #ff2a3c) brightness(1); } 50% { filter: drop-shadow(0 0 calc(var(--u) * 46) #ff2a3c) brightness(1.5); } }
.b2-beam { transform: translate(-50%, -50%); width: calc(var(--u) * 560); height: calc(var(--u) * 560); border-radius: 50%; animation: b2-beam 1.2s linear infinite;
  background: conic-gradient(from 0deg, rgba(255, 40, 50, .55) 0 34deg, transparent 34deg 180deg, rgba(255, 40, 50, .4) 180deg 214deg, transparent 214deg);
  /* 只在头像圈外面那一圈看得到(头像半径占这块的 44%):红光绕着头像转,不盖到头像里面 */
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 44%, #000 52%, transparent 100%); mask-image: radial-gradient(circle closest-side, transparent 44%, #000 52%, transparent 100%); }
@keyframes b2-beam { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.b2-seat.is-last .b2-sav, .b2-meav.is-last { box-shadow: 0 0 0 calc(var(--u) * 8) #ff2a3c, 0 0 calc(var(--u) * 54) #ff2a3c; }
.b2-lastcard { transform: translate(-50%, -50%) rotate(-9deg); width: calc(var(--u) * 84); height: calc(var(--u) * 118); border-radius: calc(var(--u) * 12); background: repeating-linear-gradient(135deg, #c98a4b 0 calc(var(--u) * 12), #e6b178 calc(var(--u) * 12) calc(var(--u) * 20));
  box-shadow: 0 0 0 calc(var(--u) * 5) #fff3d6, 0 0 calc(var(--u) * 30) #ff2a3c, 0 calc(var(--u) * 8) calc(var(--u) * 16) rgba(0, 0, 0, .5); animation: b2-lastcard 1.2s ease-in-out infinite; }
@keyframes b2-lastcard { 0%, 100% { transform: translate(-50%, -50%) rotate(-9deg); } 12% { transform: translate(-50%, -54%) rotate(7deg); } 24% { transform: translate(-50%, -50%) rotate(-7deg); } 36% { transform: translate(-50%, -53%) rotate(5deg); } 48%, 99% { transform: translate(-50%, -50%) rotate(-9deg); } }
/* 自己最后 5 秒:手牌框里面闪红 */
.b2-tb.is-urgent .b2-panel::after { content: ''; position: absolute; inset: calc(var(--u) * 10); border-radius: calc(var(--u) * 60); pointer-events: none;
  box-shadow: inset 0 0 calc(var(--u) * 110) rgba(255, 40, 50, .8); animation: b2-urgent .5s ease-in-out infinite alternate; }
@keyframes b2-urgent { from { opacity: .25; } to { opacity: 1; } }
/* 结算框等「出完 → 亮牌盖章 → 金币飞」演完才出来(--wait);大赢时框让到下面,上面留给大字、拉茶和熊 */
.b2-resultwrap.is-wait { animation: b2-resin .3s ease-out var(--wait, 0ms) both; }
.b2-resultwrap.is-wait .b2-result { animation: b2-pop .32s cubic-bezier(.2, 1.2, .4, 1) var(--wait, 0ms) both; }
@keyframes b2-resin { from { opacity: 0; } to { opacity: 1; } }
.b2-resultwrap.is-bigwin { align-items: end; padding-bottom: calc(var(--u) * 150); }
@media (prefers-reduced-motion: reduce) {
  .b2-artmode .b2-play.is-new .b2-play-cards, .b2-artmode .b2-play.is-new::before, .b2-lastcard, .b2-hand.is-deal .b2-card, .b2-beam, .b2-siren, .big2.b2-quake-1, .big2.b2-quake-2, .b2fx-splash.is-turn img, .b2fx-bear.is-bounce img, .b2fx-gem.is-shine img { animation: none; }
}
/* 飞牌的拖尾:一道从出发点拉到落点的光(金色;大老二是粉红) */
.b2fx-trail { transform-origin: 0 50%; border-radius: 50%; filter: blur(calc(var(--u) * 22)); z-index: 2;
  background: linear-gradient(90deg, rgba(255, 190, 60, 0) 0, rgba(255, 190, 60, .55) 45%, rgba(255, 236, 170, .95) 92%, #fff 100%); }
.b2fx-trail.is-pink { background: linear-gradient(90deg, rgba(255, 62, 165, 0) 0, rgba(255, 62, 165, .6) 45%, rgba(255, 170, 215, .95) 92%, #fff 100%); }
/* 金刚的大钻石:亮晶晶地闪;菱形霓虹框;牌被线串到时亮金边 */
.b2fx-gem { z-index: 2; }
.b2fx-gem img { filter: drop-shadow(0 0 calc(var(--u) * 24) rgba(255, 255, 255, .85)) drop-shadow(0 0 calc(var(--u) * 60) rgba(255, 211, 77, .75)); }
.b2fx-gem.is-shine img { animation: b2fx-gem .7s ease-in-out infinite alternate; }
@keyframes b2fx-gem { to { filter: drop-shadow(0 0 calc(var(--u) * 40) #fff) drop-shadow(0 0 calc(var(--u) * 90) rgba(255, 150, 220, .9)) brightness(1.25); } }
.b2fx-frame { z-index: 1; }
.b2fx-frame .b2fx-neon-a * { stroke-width: 6; }
.b2fx-frame .b2fx-neon-b * { stroke-width: 1.6; }
.b2fx-card.is-gold .b2-card { box-shadow: 0 0 0 calc(var(--cw) * .03) #ffd34d, 0 0 calc(var(--cw) * .24) #ffb300, 0 0 calc(var(--cw) * .42) rgba(255, 62, 165, .55); transition: box-shadow .12s; }
/* 演出零件的前后:拉茶 / 裂痕 → 霓虹招牌 → 冲击波、火花 → 牌 → 灯管 → 熊掌 → 大字 → 金币 / 熊 → 小牌 / 盖章 / 气泡 */
.b2fx-splash { z-index: 0; }
.b2fx-sign { z-index: 1; }
.b2fx-ring, .b2fx-sparks { z-index: 2; }
.b2fx-card, .b2fx-back { z-index: 3; }
.b2fx-zip, .b2fx-crown { z-index: 4; }
.b2fx-word, .b2fx-tape { z-index: 6; }
.b2fx-coin, .b2fx-bear { z-index: 7; }
.b2fx-pill, .b2fx-stamp, .b2fx-bubble, .b2fx-num { z-index: 8; }

/* ================= 三个场各自的牌桌(老板 11-10「每个金额的桌子不是应该有区别吗」) =================
 * 第 1 个场嘛嘛档 = 原本那张红塑胶桌;第 2 个场大排档(.t-1,图档 -100)= 夜市不锈钢圆桌 + 绿霓虹;第 3 个场老板桌(.t-2,图档 -500)= 包厢黑金大理石桌 + 紫丝绒。
 * 新的两张是拿原本的去字底板改图(output/锄大地设计/table_tiers.py),框的位置没动,所以只换这四块底图和补底的颜色,叠字的坐标照旧 */
.b2-table.t-1 .b2-tt { background-color: #0c1512; background-image: url(/img/big2/table-top-100.webp); }
.b2-table.t-1 .b2-tb { background-image: url(/img/big2/table-bottom-100.webp), linear-gradient(#14201c, #070c0a); }
.b2-table.t-1 .b2-panel { border-image-source: url(/img/big2/hand-panel-100.webp); }
.b2-table.t-1 .b2-abar { background-image: url(/img/big2/bar-100.webp); }
.b2-table.t-1 .b2-ttitle .b2-ttier { color: #c9ffe4; text-shadow: 0 0 calc(var(--u) * 16) #18d98a, calc(var(--u) * 3) calc(var(--u) * 3) 0 #06402a; }
.b2-table.t-2 .b2-tt { background-color: #120a1c; background-image: url(/img/big2/table-top-500.webp); }
.b2-table.t-2 .b2-tb { background-image: url(/img/big2/table-bottom-500.webp), linear-gradient(#1c0f2c, #0a0612); }
.b2-table.t-2 .b2-panel { border-image-source: url(/img/big2/hand-panel-500.webp); }
.b2-table.t-2 .b2-abar { background-image: url(/img/big2/bar-500.webp); }
.b2-table.t-2 .b2-ttitle .b2-ttier { color: #ffe08a; text-shadow: 0 0 calc(var(--u) * 16) #b06bff, calc(var(--u) * 3) calc(var(--u) * 3) 0 #3a1466; }
