/* ── 牌桌页（竖屏，全屏沉浸）：包间底图铺满，直播画中画在右上，操作台浮在底部 ── */
.tv { position: relative; height: 100%; min-height: 0; overflow: hidden; container-type: size; --dock-h: 0px;
  --sw: min(100cqw, 66.64cqh); --st: clamp(0px, calc(100cqh - 150cqw - 200px), 52px);
  background: linear-gradient(180deg, #120d09 0%, #17110c 40%, #1b140e 100%); }
/* 舞台：保持底图比例（853×1280）并完整显示宽度（椅子贴着两边，不能裁）；屏幕够高时往下让出顶部按钮的位置，下面留给操作台 */
.tv-table { position: absolute; left: 50%; top: var(--st); width: var(--sw); aspect-ratio: 853 / 1280; transform: translateX(-50%); container-type: inline-size;
  background: url(img/room-9.webp) center / 100% 100% no-repeat; }
/* 6 人桌：左右各 3 把椅子，台面位置和 9 人桌一致 */
.tv-table.six { background-image: url(img/room-6.webp); }
/* 底图下边缘渐隐，接到下面的地毯上（座位最低到 93% 左右，不受影响） */
.tv-table { -webkit-mask-image: linear-gradient(180deg, #000 93%, transparent); mask-image: linear-gradient(180deg, #000 93%, transparent); }
/* 地毯：屏幕比底图长时，桌子下面接着铺，宽度和底图一致 */
.tv::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: var(--sw); top: calc(var(--st) + var(--sw) * 1.5 - 44px); bottom: 0;
  background: url(img/floor.webp) center top / 100% auto repeat-y; pointer-events: none; }

/* 左上：返回 + 余额；悬浮在画面上 */
.tv-head { position: absolute; left: 8px; top: 8px; z-index: 8; display: flex; align-items: center; gap: 6px; }
.tv-head .back { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 0; color: var(--ivory); background: rgba(6,8,10,.5); border: 1px solid rgba(236,230,218,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tv-head .back::before { content: ""; display: block; width: 9px; height: 9px; margin-left: 3px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); }
.tv-head .bal { font-size: 13px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(6,8,10,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tv-head .lat { width: 6px; height: 6px; border-radius: 50%; background: var(--lat, var(--dim)); font-size: 0; }

/* 右上：直播画中画；展开后占满顶部 */
.tv-video { position: absolute; right: 8px; top: 8px; z-index: 7; width: min(40cqw, 220px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #06080b; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  box-shadow: 0 0 0 1px rgba(212,178,106,.35), 0 10px 26px rgba(0,0,0,.6); transition: width .25s, left .25s, top .25s; }
.tv-video.moving { transition: none; cursor: grabbing; box-shadow: 0 0 0 1px var(--gold), 0 16px 36px rgba(0,0,0,.7); }
/* 缩放角：在靠屏幕内侧的下角，吸在右边时是左下角 */
.tv-video .rs { position: absolute; left: 0; bottom: 0; z-index: 3; width: 28px; height: 28px; cursor: nesw-resize; touch-action: none; }
.tv-video .rs::before { content: ""; position: absolute; left: 5px; bottom: 5px; width: 9px; height: 9px; border-left: 2px solid rgba(236,230,218,.75); border-bottom: 2px solid rgba(236,230,218,.75); border-bottom-left-radius: 3px; }
.tv-video.at-left .rs { left: auto; right: 0; cursor: nwse-resize; }
.tv-video.at-left .rs::before { left: auto; right: 5px; border-left: 0; border-right: 2px solid rgba(236,230,218,.75); border-bottom-left-radius: 0; border-bottom-right-radius: 3px; }
.tv-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tv-video .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(241,233,218,.92); font: 600 11px var(--serif); letter-spacing: .2em; text-shadow: 0 1px 6px rgba(0,0,0,.9);
  background: linear-gradient(180deg, rgba(6,8,10,.1), rgba(6,8,10,.45)), url(img/standby.webp) center / cover no-repeat, #06080b; } /* 没有直播时：空荷官位的待机画面 */
.tv-video .ph .lens { display: none; }
.tv-video .live { position: absolute; left: 7px; top: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font: 600 10px var(--ui); letter-spacing: .06em; color: #fff; background: var(--seal); padding: 1px 6px 1px 5px; border-radius: 4px; }
.tv-video .live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: breathe 1.6s ease-in-out infinite; }
.tv-video .live.off { background: rgba(236,230,218,.12); color: var(--mute); }
.tv-video .live.off::before { animation: none; background: var(--dim); }
.tv-video .fold { position: absolute; right: 5px; bottom: 5px; z-index: 2; width: 26px; height: 26px; padding: 0; border-radius: 6px; background: rgba(6,8,11,.55); border: 0; font-size: 0; }
.tv-video .fold::before, .tv-video .fold::after { content: ""; position: absolute; width: 6px; height: 6px; border: solid var(--ivory); }
.tv-video .fold::before { left: 6px; bottom: 6px; border-width: 0 0 1.6px 1.6px; }
.tv-video .fold::after { right: 6px; top: 6px; border-width: 1.6px 1.6px 0 0; }
.tv-video.big .fold::before { left: 9px; bottom: 9px; border-width: 1.6px 1.6px 0 0; }
.tv-video.big .fold::after { right: 9px; top: 9px; border-width: 0 0 1.6px 1.6px; }

.tv-banner { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); z-index: 9; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 10px; font-size: 12px; text-align: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tv-banner.warn { background: rgba(30,22,10,.82); color: var(--gold-hi); }
.tv-banner.err { background: rgba(60,18,14,.85); color: #f0c2b8; }

/* 底部两角：设置（菜单）、快捷短语；随操作台高度上移 */
.tv-corner { position: absolute; bottom: calc(var(--dock-h) + 10px); z-index: 6; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; color: rgba(236,230,218,.85);
  background: rgba(6,8,10,.45); border: 1px solid rgba(236,230,218,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tv-corner svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tv-corner.menu { left: 10px; }
.tv-corner.chat { right: 10px; }

/* 台呢：桌名、盲注、进度、底池、公共牌。坐标都在舞台里 */
.felt-top { position: absolute; left: 50%; top: 19%; transform: translateX(-50%); z-index: 2; text-align: center; white-space: nowrap; pointer-events: none; line-height: 1.35; }
.felt-top b { display: block; font: 600 12px var(--serif); letter-spacing: .12em; color: rgba(236,230,218,.82); }
.felt-top span { font: 11px var(--num); letter-spacing: .04em; color: rgba(212,178,106,.85); }
.tv-center { position: absolute; left: 50%; top: 43%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 50%; }
.tv-center .board { display: flex; gap: 3px; min-height: 52px; justify-content: center; }
.tv-center .board .card { --w: min(44px, 9.4cqw); margin: 0; }
.tv-center .pot { background: rgba(6,10,16,.5); padding: 3px 12px 3px 8px; border-radius: 999px; }
.tv-center .pot .chip { font-size: 15px; }
.tv-center .side { color: rgba(236,230,218,.62); font: 11px var(--num); letter-spacing: .04em; }
.tv-center .status { color: rgba(236,230,218,.55); font-size: 12px; letter-spacing: .1em; text-align: center; min-height: 1.4em; }

/* 座位 */
.ps { position: absolute; transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: 50% 50%; display: flex; flex-direction: column; align-items: center; width: 78px; z-index: 2; cursor: pointer; }
.ps .cards { position: absolute; top: -8px; left: 50%; display: flex; transform: translateX(-2px); z-index: 0; }
.ps .cards .card { --w: 25px; margin: 0 -4px; }
.ps .cards .card:first-child { transform: rotate(-9deg); } .ps .cards .card:last-child { transform: rotate(9deg); }
.ps .av { position: relative; z-index: 1; width: 48px; height: 48px; font-size: 17px; }
.ps .ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; }
.ps .ring circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.ps .plate { position: relative; z-index: 1; margin-top: -7px; background: rgba(14,18,22,.86); border-radius: 7px; padding: 3px 7px 2px; text-align: center; min-width: 70px; box-shadow: inset 0 0 0 1px var(--hair-2); }
.ps .nm { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 72px; color: rgba(236,230,218,.8); }
.ps .stk { font: 600 13px/1.25 var(--num); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.ps .act { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 4px; white-space: nowrap; background: var(--ivory); color: #171b22; letter-spacing: .06em; }
.ps .act.fold { background: rgba(9,12,17,.85); color: var(--mute); box-shadow: inset 0 0 0 1px var(--hair-2); }
.ps .act.raise, .ps .act.allin, .ps .act.bet { background: var(--gold); color: #1a1408; }
.ps .bubble { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ivory); color: #171b22; font-size: 12px; padding: 5px 11px; border-radius: 12px 12px 12px 3px; white-space: nowrap; z-index: 6; animation: pop .25s ease-out; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.ps .win { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font: 700 17px var(--num); color: var(--gold-hi); text-shadow: 0 2px 8px rgba(0,0,0,.9); white-space: nowrap; z-index: 6; animation: pop .4s ease-out; }
.ps .hl { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: 11px; background: var(--gold); color: #1a1408; font-weight: 600; padding: 1px 8px; border-radius: 4px; white-space: nowrap; z-index: 3; }
@keyframes pop { from { transform: translate(-50%, 6px) scale(.85); opacity: 0; } }
.ps.acting .plate { box-shadow: inset 0 0 0 1px var(--gold); }
.ps.folded .av, .ps.away .av { filter: grayscale(.85) brightness(.55); }
.ps.folded .cards { opacity: .2; }
.ps.away .plate { opacity: .55; }
.ps.me .plate { box-shadow: inset 0 0 0 1px rgba(212,178,106,.75), 0 0 14px rgba(212,178,106,.25); }
/* 自己的座位：头像外一圈金边 + 柔光（座位不再旋转到正下方，要一眼找到自己） */
.ps.me .av { box-shadow: inset 0 0 0 2px var(--av), 0 0 0 2.5px var(--gold-hi), 0 0 18px rgba(230,200,135,.45); }
.ps.winner .av { box-shadow: inset 0 0 0 2px var(--av), inset 0 0 0 3px rgba(241,233,218,.28), 0 0 0 3px var(--gold-hi), 0 0 22px rgba(230,200,135,.55); }
.ps.empty .av { background: none; box-shadow: none; color: var(--gold-hi); width: 34px; height: 30px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.85)); }
.ps.empty .av svg { width: 30px; height: 30px; fill: currentColor; }
.ps.empty .av svg .pl { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ps.empty .plate { background: none; box-shadow: none; margin-top: 1px; padding: 0; }
.ps.empty .nm { font-size: 12px; color: rgba(241,233,218,.92); text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.7); max-width: none; letter-spacing: .04em; }
.ps.empty .stk { display: none; }
.ps.empty.locked { pointer-events: none; }
.ps.empty.locked .av, .ps.empty.locked .plate { display: none; }
.ps-bet { position: absolute; transform: translate(-10px, -50%); background: rgba(6,10,16,.5); padding: 1px 8px 1px 3px; border-radius: 999px; z-index: 2; }
/* 筹码图标的圆心固定在下注点上（金额向外延伸），飞过来的筹码正好落在图标上，金额变长也不会左右跳 */
.ps-bet.r { transform: translate(calc(-100% + 10px), -50%); padding: 1px 3px 1px 8px; }
.ps-bet.r .chip { flex-direction: row-reverse; }
.ps-bet .chip { font-size: 12px; }
.ps-btn { position: absolute; transform: translate(-50%, -50%); width: 19px; height: 19px; border-radius: 50%; background: var(--stock); color: #1a1408; font: 700 10px var(--num); display: grid; place-items: center; z-index: 3; box-shadow: 0 0 0 1.5px var(--gold-lo), 0 2px 4px rgba(0,0,0,.5); transition: left .4s, top .4s; }

/* 操作台 */
.tv-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: rgba(22,27,33,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 rgba(212,178,106,.18); padding: 10px 14px calc(6px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom))); border-radius: 20px 20px 0 0; }
.tv-dock .timer { position: absolute; left: 20px; right: auto; top: 0; height: 2px; width: 0; max-width: calc(100% - 40px); background: var(--gold); border-radius: 2px; }
.tv-dock .timer.low { background: var(--seal-hi); }
.tv-dock .top { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.tv-dock .hero { display: flex; gap: 5px; }
.tv-dock .hero .card { --w: 42px; margin: 0; }
.tv-dock .hero:empty { display: none; }
/* 底牌落位校验标记：右下角小圆点，确认后变成金色对勾 */
.tv-dock .hero .card[data-check]::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; z-index: 2; transition: background-color .3s, box-shadow .3s; }
.tv-dock .hero .card[data-check="pending"]::after { background: var(--deck); box-shadow: inset 0 0 0 1.5px var(--gold-lo); }
.tv-dock .hero .card[data-check="rfid"]::after,
.tv-dock .hero .card[data-check="override"]::after {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.8 7.2l2.1 2.1 4.3-4.6' fill='none' stroke='%2320180a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
  box-shadow: 0 0 0 1.5px var(--deck);
}
.tv-dock .hero .card[data-check="override"]::after { background-color: var(--ivory, #efe6d2); }
.tv-dock .hn { flex: 1; min-width: 0; font-size: 12px; color: var(--dim); }
.tv-dock .hn b { display: block; font: 700 17px/1.3 var(--serif); color: var(--ivory); letter-spacing: .06em; }
.tv-dock .hn .chip { font-size: 16px; }
.tv-dock .idlebox { display: flex; align-items: center; gap: 8px; }
.tv-dock .idlebox.bare { display: none; }
.tv-dock .idlebox .st { color: var(--mute); font-size: 13px; white-space: nowrap; }
.tv-dock .idlebox button { padding: 8px 14px; font-size: 13px; border-radius: 999px; }
.tv-dock .ctl.bare { display: none; }
.tv-dock .tools { display: flex; gap: 6px; }
.tv-dock .tools button { padding: 8px 12px; font-size: 12px; border-radius: 999px; background: transparent; }
.tv-dock .presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.tv-dock .presets button { height: 36px; padding: 0 2px; font: 600 14px var(--num); border-radius: 10px; background: rgba(236,230,218,.05); border-color: var(--hair-2); color: var(--ivory); }
.tv-dock .presets button.on { background: rgba(212,178,106,.16); border-color: var(--gold); color: var(--gold-hi); }
.tv-dock .sizer { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tv-dock .sizer input[type=range] { flex: 1; height: 36px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; --p: 0%; }
.tv-dock .sizer input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(236,230,218,.14) var(--p)); }
.tv-dock .sizer input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(212,178,106,.22), 0 2px 6px rgba(0,0,0,.5); }
.tv-dock .sizer input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(236,230,218,.14); }
.tv-dock .sizer input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--gold); }
.tv-dock .sizer input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--gold-hi); }
.tv-dock .sizer button.ghost { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--hair-2); color: var(--ivory); font-size: 20px; }
.tv-dock .main { display: grid; grid-template-columns: 1fr 1.25fr 1.45fr; gap: 8px; margin-top: 10px; }
.tv-dock .main.two { grid-template-columns: 1fr 1.6fr; }
.tv-dock .main button { min-height: 58px; padding: 6px 4px; border-radius: 16px; font-size: 17px; font-weight: 600; letter-spacing: .04em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.15; }
.tv-dock .main button .v { font-size: 14px; font-weight: 600; letter-spacing: .06em; opacity: .78; }
.tv-dock .main button .n { font: 700 20px var(--num); letter-spacing: 0; }
.tv-dock .main button.fold { background: rgba(196,64,47,.1); border-color: rgba(224,114,95,.55); color: var(--seal-hi); }
.tv-dock .main button.go { background: var(--ivory); border-color: var(--ivory); color: #171b22; }
.tv-dock .main button.primary { box-shadow: 0 6px 18px rgba(212,178,106,.25); }
.tv-dock .main button:active { transform: scale(.97); }
.tv-dock .ctl.arming { pointer-events: none; }
.tv-dock .ctl.arming .main { opacity: .85; }
/* 轮到自己：操作台顶边亮金色，计时条加粗 */
.tv-dock.myturn { box-shadow: 0 -1px 0 var(--gold), 0 -10px 30px rgba(212,178,106,.12); }
.tv-dock.myturn .timer { height: 3px; }
/* 预选：带勾选圈的开关，选中后整块变金色，一眼能看出"已经预选了" */
.tv-dock .pre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.tv-dock .pre button.opt { min-height: 48px; padding: 6px 8px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 500; border-radius: 14px; background: rgba(236,230,218,.05); border-color: var(--hair-2); color: var(--ivory); }
.tv-dock .pre button.opt i { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(236,230,218,.45); position: relative; }
.tv-dock .pre button.opt.on { background: rgba(212,178,106,.16); border-color: var(--gold); color: var(--gold-hi); }
.tv-dock .pre button.opt.on i { background: var(--gold); box-shadow: none; }
.tv-dock .pre button.opt.on i::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border: solid #1a1408; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tv-dock .idle { color: var(--mute); font-size: 13px; margin-top: 6px; display: flex; gap: 10px; align-items: center; justify-content: space-between; min-height: 40px; }
.tv-dock .idle .btns { display: flex; gap: 8px; }
.rules dt { color: var(--dim); font-size: 13px; float: left; width: 96px; clear: left; padding: 9px 0; }
.rules dd { margin: 0 0 0 96px; padding: 9px 0; font-size: 14px; box-shadow: inset 0 -1px 0 var(--hair); }
.feedlog { max-height: 50vh; overflow: auto; font-size: 13px; line-height: 2; }
.feedlog time { color: var(--dim); font: 11px var(--num); margin-right: 8px; }
.profile-sheet { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.profile-sheet .avatar-c { width: 56px; height: 56px; font-size: 21px; }
.tv-corner.chat svg { stroke-linejoin: round; stroke-width: 1.6; }
/* 没有底牌、没有状态、不需要操作时，操作台收成只剩系统安全区。
   由 JS 切换 class：iOS WebKit 里 :has(:empty) 在动态插入内容后不会重新计算，不能依赖。 */
.tv-dock .top.bare { display: none; }
.tv-dock.bare { padding-top: 0; box-shadow: none; background: transparent; }
.tv-dock .hn.bare { display: none; }
.tv-dock .top > .tools:first-child, .tv-dock .idlebox { margin-left: auto; }

/* 弃牌后，自己的底牌留在操作台上但变暗 */
.tv-dock.folded .hero { opacity: .4; filter: grayscale(.4); }
.tv-dock.folded .hn b { color: var(--dim); }

/* 机器人：头像右下角小标，明确告知不是真人 */
.ps.bot .av::after { content: "AI"; position: absolute; right: -4px; bottom: -2px; font: 700 9px/1 var(--num); letter-spacing: .04em; color: #171b22; background: var(--mute); padding: 2px 4px; border-radius: 4px; box-shadow: 0 0 0 2px var(--night); }

/* 筹码飞行：下注收进底池、底池推给赢家 */
.fly { position: absolute; transform: translate(-50%, -50%); z-index: 6; pointer-events: none; transition: left .45s cubic-bezier(.3,.7,.3,1), top .45s cubic-bezier(.3,.7,.3,1), opacity .3s .45s; }
.fly .chip { font-size: 13px; background: rgba(6,10,16,.6); padding: 1px 8px 1px 3px; border-radius: 999px; }
.fly.win .chip { color: var(--gold-hi); font-weight: 700; }
.fly.go { opacity: 0; }
.fly.win.go { transition-duration: .6s, .6s, .3s; transition-delay: 0s, 0s, .7s; }
/* 摊牌：组成赢家牌型的 5 张牌抬起，其余变暗 */
.card.best { transform: translateY(-5px); box-shadow: 0 0 0 1.5px var(--gold), 0 6px 14px rgba(0,0,0,.45); transition: transform .3s, box-shadow .3s; }
.card.dim { filter: brightness(.45) saturate(.6); transition: filter .3s; }
/* 加注金额：点一下直接输入 */
.tv-dock .sizer button.amt { flex: none; min-width: 78px; height: 40px; padding: 0 10px; border-radius: 10px; font: 700 17px var(--num); color: var(--gold-hi); background: rgba(212,178,106,.1); border-color: rgba(212,178,106,.4); }
.amt-in { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--hair-2); padding: 6px 2px; }
.amt-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--gold-hi); font: 700 34px var(--num); padding: 0; }
.amt-in span { color: var(--mute); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .card.best { transform: none; } }

/* 发两次：第二排公共牌，略小一号 */
.tv-center .board.board2 { min-height: 0; }
.tv-center .board.board2 .card { --w: min(40px, 10.5cqw); }
/* 看剩余牌：补出来的牌半透明，和真正发出的牌区分开 */
.board .card.ghost { opacity: .5; outline: 1px dashed rgba(236,230,218,.4); outline-offset: 1px; }
/* 座位：保险提示、颜色标签 */
.ps .fx .ins { position: absolute; left: 50%; top: calc(100% + 30px); transform: translateX(-50%); white-space: nowrap; font: 600 11px var(--num); color: var(--jade); background: rgba(6,10,16,.7); padding: 1px 7px; border-radius: 999px; }
.ps.labeled .av::after { content: ""; position: absolute; left: -1px; top: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--label); box-shadow: 0 0 0 2px #0f1319; }
.ps .av { position: relative; }
/* 全下后的选择面板（发两次、保险） */
.tv-dock .decide { margin-top: 8px; }
.tv-dock .decide .dq { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tv-dock .decide .dq b { font: 700 17px var(--serif); color: var(--gold-hi); letter-spacing: .06em; }
.tv-dock .decide .dq span { color: var(--mute); font-size: 13px; }
.tv-dock .decide .outs { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
/* 互动道具 */
.prop-fly { position: absolute; transform: translate(-50%, -50%) scale(.8); z-index: 8; font-size: 30px; pointer-events: none; transition: left .65s cubic-bezier(.3,.6,.3,1), top .65s cubic-bezier(.3,.6,.3,1), transform .3s; }
.prop-fly.go { transform: translate(-50%, -50%) scale(1) rotate(360deg); transition: left .65s cubic-bezier(.3,.6,.3,1), top .65s cubic-bezier(.3,.6,.3,1), transform .65s; }
.prop-fly.pop { transform: translate(-50%, -50%) scale(1.8); opacity: 0; transition: transform .6s, opacity .6s .3s; }
/* 玩家资料卡：数据、道具、备注 */
.stats.stats-8 { grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
.stats.stats-8 b { font-size: 20px; }
.stats.stats-8 div + div { box-shadow: inset 1px 0 0 var(--hair); padding-left: 10px; }
.stats.stats-8 div:nth-child(4n + 1) { box-shadow: none; padding-left: 6px; }
.props { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0 6px; }
.props button { height: 46px; font-size: 24px; padding: 0; border-radius: 12px; background: rgba(236,230,218,.05); }
.note-edit { margin-top: 10px; }
.note-edit .colors { display: flex; gap: 10px; margin-bottom: 10px; }
.note-edit .colors button { width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--c); border: 1px dashed var(--hair-2); }
.note-edit .colors button[data-c]:not([data-c=""]) { border-style: solid; border-color: transparent; }
.note-edit .colors button.on { box-shadow: 0 0 0 2px var(--deck), 0 0 0 4px var(--gold); }
.note-edit textarea { width: 100%; box-sizing: border-box; background: rgba(0,0,0,.25); color: var(--ivory); border: 1px solid var(--hair-2); border-radius: 10px; padding: 10px; font: 14px var(--ui); resize: none; margin-bottom: 10px; user-select: text; -webkit-user-select: text; }
.tv-dock .main button .p { font-size: 11px; font-weight: 500; opacity: .7; letter-spacing: 0; }
.tv-dock .decide + .main button { min-height: 66px; }

/* 真人荷官：荷官名（可点开资料）、机位切换、打赏、荷官说话 */
.tv-video .ph .dn { background: none; border: 0; padding: 6px 12px; color: inherit; font: inherit; letter-spacing: .3em; cursor: pointer; }
.tv-video .ph .dn:disabled { cursor: default; opacity: 1; }
.tv-video .angle, .tv-video .tipbtn { position: absolute; top: 8px; height: 26px; padding: 0 11px; border-radius: 13px; font: 600 12px var(--ui); letter-spacing: .06em; background: rgba(6,8,11,.55); border: 1px solid rgba(236,230,218,.22); color: var(--ivory); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tv-video .tipbtn { right: 10px; color: var(--gold-hi); border-color: rgba(212,178,106,.5); }
.tv-video .angle { right: 66px; }
.tv-video .angle.on { background: rgba(212,178,106,.2); border-color: var(--gold); color: var(--gold-hi); }
.tv-video:not(.big) .angle { display: none; }
.tv-video:not(.big) .tipbtn { top: 5px; right: 5px; height: 22px; padding: 0 8px; font-size: 11px; }
.tv-video .dsay { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: 86%; padding: 7px 14px; border-radius: 16px; background: rgba(6,8,11,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ivory); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise .25s; z-index: 3; }
.tv-video:not(.big) .dsay { bottom: 6px; max-width: 92%; padding: 4px 9px; font-size: 11px; }
.tv-video .dsay b { color: var(--gold-hi); font-weight: 600; margin-right: 8px; }
.tv-video .dsay span { margin-left: 6px; color: var(--gold-hi); }
.tv-video .dsay.mine { box-shadow: 0 0 0 1px var(--gold); }
.tip-toast { position: absolute; left: 50%; top: 150px; transform: translateX(-50%); z-index: 20; padding: 8px 16px; border-radius: 20px; background: linear-gradient(90deg, rgba(15,138,87,.95), rgba(212,178,106,.95)); color: #1a1408; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 22px rgba(0,0,0,.45); animation: rise .3s; }
.tip-toast .chip { color: #1a1408; font-weight: 700; }
.dealer-card { display: flex; gap: 14px; align-items: flex-start; }
.dealer-card img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex: none; }
.dealer-card .avatar-c { width: 72px; height: 72px; border-radius: 16px; font-size: 26px; flex: none; }
.dealer-card h3 { margin: 2px 0 4px; }
.dealer-card p { margin: 6px 0; color: var(--mute); font-size: 13px; line-height: 1.6; }

/* 奥马哈：4 张手牌 */
.tv.plo .tv-dock .hero .card { --w: 36px; }
.tv.plo .tv-dock .hero { gap: 3px; }
.tv.plo .ps .cards .card { margin-left: -14px; }
.tv.plo .ps .cards .card:first-child { margin-left: 0; }

/* ───────── 当前步骤 ───────── */
/* 放在台呢顶部正中（荷官位，没有座位），不和两侧座位抢位置 */
.tv-table .steps { position: absolute; left: 50%; top: 24.5%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 3px; font: 600 13px var(--serif); letter-spacing: .14em; color: rgba(236,230,218,.32); background: none; padding: 0; border-radius: 999px; white-space: nowrap; pointer-events: none; }
.tv-table .steps i, .tv-table .steps span:not(.cur) { display: none; }
.tv-table .steps .done { color: rgba(236,230,218,.55); }
.tv-table .steps .cur { color: var(--gold-hi); font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* 上一手：牌桌左上角的小标签，点开复盘 */
.tv > .lasthand { position: absolute; left: 8px; top: 50px; z-index: 8; padding: 4px 10px; border-radius: 14px; font-size: 12px; background: rgba(6,10,16,.55); border: 1px solid rgba(236,230,218,.16); color: var(--mute); }
.tv > .lasthand b { margin-left: 6px; font-family: var(--num); }
.tv > .lasthand b.up { color: var(--jade); } .tv > .lasthand b.down { color: var(--seal-hi); }

/* 行动中座位头像上的倒计时秒数 */
.ps .av .secs { position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px var(--num); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); pointer-events: none; }
.ps .av .secs:empty { display: none; }
.ps.acting .av .ini { opacity: .25; }
.ps .av .secs.low { color: #ffb4a6; }

/* 轮到你：提示行 */
.tv-dock .turn-head { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.tv-dock .turn-head b { font: 700 16px var(--serif); color: var(--gold-hi); letter-spacing: .1em; }
.tv-dock .turn-head span { color: var(--mute); font-size: 13px; }
.tv-dock .turn-head .tsec { color: var(--ivory); font-size: 15px; font-weight: 700; }
.tv-dock .pre-hint { color: var(--dim); font-size: 12px; margin-top: 6px; }
.tv-dock .idlebox .st { white-space: normal; line-height: 1.4; }

/* 一局结束的结果面板 */
.tv-dock .result { margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(236,230,218,.04); box-shadow: inset 0 0 0 1px var(--hair-2); animation: rise .25s; }
.tv-dock .result .rh { display: flex; align-items: baseline; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.tv-dock .result .rh b { font-size: 20px; }
.tv-dock .result .rh .nx { color: var(--dim); font-size: 12px; }
.tv-dock .result .up { color: var(--jade); } .tv-dock .result .down { color: var(--seal-hi); }
.tv-dock .result .rl { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--mute); }
.tv-dock .result .rl b { color: var(--ivory); font-weight: 600; }
.tv-dock .result .rl .lb { font-size: 11px; padding: 0 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--hair-2); }
.tv-dock .result .grow { flex: 1; }
.tv-dock .result .gold { color: var(--gold-hi); }
.tv-dock .result .rb { display: flex; gap: 8px; margin-top: 10px; }
.tv-dock .result .rb button { flex: 1; padding: 10px 6px; border-radius: 12px; font-size: 14px; }

/* 首次进桌指引 */
.coach { position: absolute; inset: 0; z-index: 30; background: rgba(5,7,10,.7); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .2s; }
.coach .cbox { width: 100%; max-width: 340px; padding: 22px 20px 18px; border-radius: 20px; background: var(--deck); box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 0 0 1px rgba(212,178,106,.3); }
.coach .cstep { color: var(--gold); font-size: 12px; letter-spacing: .1em; }
.coach h3 { margin: 6px 0 8px; font: 700 20px var(--serif); letter-spacing: .08em; }
.coach p { margin: 0 0 18px; color: var(--mute); line-height: 1.7; font-size: 14px; }
.coach .pair { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.coach .pair button { padding: 12px; border-radius: 12px; }
.stack-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.stack-btns button { padding: 14px; border-radius: 14px; font-size: 15px; }
.auto-tu { margin: 6px 0 12px; font-size: 13px; color: var(--mute); }
/* 直播声音：默认静音，点一下听荷官 */
.tv-video .snd { position: absolute; left: 10px; bottom: 10px; width: 32px; height: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(6,8,11,.55); border: 1px solid rgba(236,230,218,.22); color: var(--ivory); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 2; }
.tv-video:not(.big) .snd { left: 5px; bottom: 5px; width: 26px; height: 26px; }
.tv-video:not(.big) .snd svg { width: 14px; height: 14px; }
.tv-video .snd svg { width: 17px; height: 17px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.tv-video .snd .w, .tv-video .snd .x { fill: none; stroke-width: 1.8; stroke-linecap: round; }
.tv-video .snd .w { display: none; }
.tv-video .snd.on { color: var(--gold-hi); border-color: rgba(212,178,106,.5); }
.tv-video .snd.on .w { display: inline; } .tv-video .snd.on .x { display: none; }

/* ── 多机位切换 + 实时时钟 ── */
.tv-video .angles { position: absolute; top: 8px; right: 66px; z-index: 2; display: flex; padding: 2px; gap: 2px; border-radius: 15px; background: rgba(6,8,11,.55); border: 1px solid rgba(236,230,218,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tv-video .angles.solo { right: 10px; }
.tv-video .angles button { height: 22px; padding: 0 10px; border: 0; border-radius: 11px; background: none; color: rgba(236,230,218,.72); font: 600 11.5px var(--ui); letter-spacing: .06em; }
.tv-video .angles button[aria-selected=true] { background: rgba(212,178,106,.22); color: var(--gold-hi); }
.tv-video:not(.big) .angles, .tv-video:not(.big) .rt { display: none; }
.tv-video .rt { position: absolute; right: 46px; bottom: 13px; z-index: 2; font: 600 11px var(--num); letter-spacing: .08em; color: rgba(236,230,218,.82); text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.tv-video .rt::before { content: "实时 "; font-family: var(--ui); color: var(--gold-hi); }
.tv-video .cam-x { animation: camIn .22s ease-out; }
@keyframes camIn { from { opacity: 0; } to { opacity: 1; } }
/* 房主关了围观：牌桌只显示座位 */
.tv.nowatch .tv-center .board, .tv.nowatch .tv-center .pot { visibility: hidden; }
.tv.prem .felt-top b { color: var(--gold-hi); }

/* 资料卡：举报 / 拉黑 */
.report-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.report-row button { padding: 10px; border-radius: 12px; color: var(--mute); background: transparent; }
.report-row #rpt { color: #e0725f; border-color: rgba(224,114,95,.35); }
.report-row #blk[aria-pressed=true] { color: var(--gold-hi); border-color: rgba(212,178,106,.5); }
.report-reasons input[type=radio] { accent-color: var(--gold); width: 18px; height: 18px; }
/* 浮窗底边按钮：缩放角占了靠内侧的下角，声音和放大按钮放到靠外侧的下角 */
.tv-video .snd, .tv-video:not(.big) .snd { left: auto; right: 36px; bottom: 5px; width: 26px; height: 26px; }
.tv-video .snd svg, .tv-video:not(.big) .snd svg { width: 14px; height: 14px; }
.tv-video .rt { right: 70px; bottom: 11px; }
.tv-video.at-left .fold { right: auto; left: 5px; }
.tv-video.at-left .snd { right: auto; left: 36px; }
.tv-video.at-left .rt { right: auto; left: 70px; }

/* 庄家按钮：象牙白亚克力 + 金边实物贴图 */
.ps-btn { width: 22px; height: 22px; font-size: 0; color: transparent; background: url(img/dealer-btn.webp) center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }

/* ── 轮到谁：放大 + 脉动金色光环 + 金色名牌 + 加粗倒计时环 + 台呢上的聚光 ── */
.ps { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.ps.acting { z-index: 5; transform: translate(-50%, -50%) scale(calc(var(--s, 1) * 1.12)); }
.ps.acting .av::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(230,200,135,.55) 40%, rgba(230,200,135,0) 70%); animation: turnPulse 1.3s ease-in-out infinite; }
.ps.acting .plate { background: linear-gradient(180deg, #f0d495, var(--gold)); box-shadow: 0 0 0 1px rgba(255,236,190,.6), 0 4px 14px rgba(212,178,106,.45); }
.ps.acting .nm, .ps.acting .stk { color: #1a1408; }
.ps.acting .ring { inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); }
.ps.acting .ring circle { stroke: var(--gold-hi); stroke-width: 3.5; filter: drop-shadow(0 0 3px rgba(230,200,135,.8)); }
.ps.acting.low .ring circle { stroke: var(--seal-hi); filter: drop-shadow(0 0 4px rgba(224,114,95,.9)); }
.ps.acting.low .av::before { background: radial-gradient(circle, rgba(224,114,95,.55) 40%, rgba(224,114,95,0) 70%); animation-duration: .7s; }
.ps.acting.low .plate { background: linear-gradient(180deg, #f2a596, var(--seal-hi)); }
.ps.acting .av .secs { font-size: 18px; }
@keyframes turnPulse { 0%, 100% { transform: scale(.92); opacity: .65; } 50% { transform: scale(1.12); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ps.acting .av::before { animation: none; } .ps { transition: none; } }

/* ── 返回 / 菜单按钮：更醒目，箭头居中 ── */
.tv-head .back { width: 40px; height: 40px; background: rgba(6,8,10,.62); border: 1px solid rgba(212,178,106,.45); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.tv-head .back::before { display: none; }
.tv-head .back svg { width: 22px; height: 22px; fill: none; stroke: var(--gold-hi); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tv-corner { box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.tv-corner.menu { width: auto; height: 42px; padding: 0 16px 0 13px; border-radius: 21px; display: flex; gap: 7px; align-items: center;
  color: var(--gold-hi); background: rgba(6,8,10,.7); border: 1px solid rgba(212,178,106,.55); font: 600 14px var(--ui); letter-spacing: .12em; }
.tv-corner.menu svg { width: 18px; height: 18px; stroke-width: 2; }
.tv-corner.chat { width: 42px; height: 42px; border-color: rgba(212,178,106,.4); color: var(--gold-hi); background: rgba(6,8,10,.7); }

/* ── 牌桌减负：人多时不拥挤 ── */
/* 别人扣着的底牌：缩成两张小牌背，藏在头像右上角；亮出来的牌照常大小。自己的底牌已经在底部操作区，座位上不再重复 */
.ps .cards { transform: translateX(8px); }
.ps .cards .card.back { --w: 15px; margin: 0 -3px; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ps .cards .card.back:first-child { transform: rotate(-12deg); } .ps .cards .card.back:last-child { transform: rotate(6deg); }
.ps.me .cards { display: none; }
/* 座位：头像和名牌收小一号 */
.ps { width: 70px; }
.ps .av { width: 42px; height: 42px; font-size: 15px; }
.ps .plate { min-width: 60px; padding: 2px 6px 1px; margin-top: -6px; border-radius: 6px; }
.ps .nm { font-size: 10px; max-width: 64px; }
.ps .stk { font-size: 12px; }
.ps.bot .av::after { opacity: 1; transform: none; } /* 机器人标记要看得清：真钱环境不允许机器人，演示里也要让人一眼分清 */
/* 下注筹码：更小、更淡 */
.ps-bet { padding: 0 6px 0 2px; background: rgba(6,8,10,.45); transform: translate(-9px, -50%); }
  .ps-bet.r { padding: 0 2px 0 6px; transform: translate(calc(-100% + 9px), -50%); }
.ps-bet .chip { font-size: 11px; }
.ps-btn { width: 18px; height: 18px; }
/* 台呢上的桌名、级别：往台面中间挪，避开上方两个座位；太长就截断 */
.felt-top { top: 26.5%; max-width: 46%; }
.felt-top b, .felt-top span { display: block; overflow: hidden; text-overflow: ellipsis; }
.felt-top b { font-size: 11px; letter-spacing: .08em; }
.felt-top span { font-size: 10px; opacity: .85; }
.tv-table .steps { top: 32%; font-size: 12px; }
.tv-center { top: 47%; }

/* ── 摊牌：亮出的手牌盖在头像上方、放大、在最上层，不被头像和名牌挡住 ── */
.ps .cards.up { top: 50%; left: 50%; transform: translate(-50%, -88%); z-index: 4; gap: 2px; }
.ps .cards.up .card { --w: 30px; margin: 0; transform: none !important; box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.ps .cards.up .card:first-child { transform: rotate(-6deg) translateX(3px) !important; }
.ps .cards.up .card:last-child { transform: rotate(6deg) translateX(-3px) !important; }
.tv.plo .ps .cards.up .card { --w: 22px; }
.ps.winner .cards.up .card { box-shadow: 0 0 0 1.5px var(--gold-hi), 0 4px 14px rgba(212,178,106,.45); }
.ps .fx .win { top: -40px; }

/* ── 当前行动者：不再整体放大、不再整块金色名牌，只保留光环、倒计时环和金色描边，免得画面拥挤 ── */
.ps.acting { transform: translate(-50%, -50%) scale(var(--s, 1)); }
.ps.acting .plate, .ps.acting.low .plate { background: rgba(14,18,22,.9); box-shadow: inset 0 0 0 1px var(--gold-hi), 0 0 12px rgba(212,178,106,.35); }
.ps.acting.low .plate { box-shadow: inset 0 0 0 1px var(--seal-hi), 0 0 12px rgba(224,114,95,.4); }
.ps.acting .nm { color: var(--gold-hi); }
.ps.acting .stk { color: var(--ivory); }
.ps.acting .av .secs { font-size: 16px; }
.ps.showing { z-index: 7; }
.ps.showing .plate { z-index: 0; }
.result .nx b { color: var(--gold-hi); font-size: 15px; margin-right: 2px; }

/* 座位号：坐了人也一直显示，玩家知道自己坐的是几号；空位已经写着"N号 · 入座"，不重复显示 */
.ps .sno { position: absolute; left: -1px; top: -4px; z-index: 3; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; font: 700 11px var(--num); background: rgba(10,13,16,.85); color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(212,178,106,.45); pointer-events: none; }
.ps.me .sno { background: var(--gold); color: #1a1408; box-shadow: none; }
.ps.empty .sno { display: none; }

/* 进出提示：牌桌上方一行，3 秒后淡出（完整记录在 菜单 → 本桌记录） */
.pres-tick { position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 64px); transform: translateX(-50%); z-index: 9; padding: 4px 12px; border-radius: 999px; background: rgba(10,13,16,.78); color: rgba(241,233,218,.88); font-size: 12px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(212,178,106,.28); pointer-events: none; animation: presTick 3.2s ease forwards; }
@keyframes presTick { 0% { opacity: 0; transform: translate(-50%, -6px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* 飞行的筹码：一枚枚真筹码（金边条纹），从座位推到下注位置、收进底池、推给赢家 */
.cf { position: absolute; z-index: 6; width: 15px; height: 15px; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(circle, var(--gold) 0 38%, var(--gold-lo) 39% 46%, transparent 47%), repeating-conic-gradient(var(--stock) 0 15deg, var(--gold) 15deg 45deg);
  box-shadow: 0 0 0 1px var(--gold-lo), 0 2px 3px rgba(0,0,0,.6); }
.cf.win { width: 17px; height: 17px; box-shadow: 0 0 0 1px var(--gold-lo), 0 0 10px rgba(230,200,135,.55), 0 2px 3px rgba(0,0,0,.6); }

/* 一局结束：下一手 继续 / 暂离 / 离座（默认继续，选中的那个金色描边） */
.tv-dock .result .rn { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; margin-top: 8px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.25); }
.tv-dock .result .rn button { padding: 8px 4px; border-radius: 9px; font-size: 13px; background: transparent; border-color: transparent; color: var(--mute); }
.tv-dock .result .rn button.on { background: rgba(212,178,106,.14); border-color: rgba(212,178,106,.55); color: var(--gold-hi); font-weight: 600; }

/* 语音：按住说话按钮（快捷短语按钮左边）；录音中变红，上滑变灰表示松开取消 */
.tv-corner.mic { right: 62px; width: 42px; height: 42px; border-color: rgba(212,178,106,.4); color: var(--gold-hi); background: rgba(6,8,10,.7); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tv-corner.mic.rec { background: var(--seal, #b3322b); color: #fff; transform: scale(1.18); box-shadow: 0 0 0 6px rgba(179,50,43,.25); }
.tv-corner.mic.rec::after { content: "松开发送 · 上滑取消"; position: absolute; bottom: 52px; right: -8px; white-space: nowrap; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(6,8,10,.85); color: var(--ink, #ece6da); }
.tv-corner.mic.cancel { background: #555; box-shadow: none; }
.tv-corner.mic.cancel::after { content: "松开取消"; }
.bubble.voice { display: flex; align-items: center; gap: 3px; padding: 4px 10px; }
.bubble.voice i { width: 3px; height: 8px; border-radius: 2px; background: currentColor; opacity: .8; }
.bubble.voice i:nth-child(2) { height: 12px; } .bubble.voice i:nth-child(3) { height: 6px; }
.bubble.voice span { margin-left: 4px; font-size: 12px; }
.bubble.voice.on i { animation: vbar .6s ease-in-out infinite alternate; }
.bubble.voice.on i:nth-child(2) { animation-delay: .2s; } .bubble.voice.on i:nth-child(3) { animation-delay: .4s; }
@keyframes vbar { from { transform: scaleY(.5); } to { transform: scaleY(1.4); } }
@media (prefers-reduced-motion: reduce) { .bubble.voice.on i { animation: none; } }
/* 协商分奖池：每人筹码 / 分得金额 / 是否同意 */
.tv-dock .deal-rows { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 14px; }
.tv-dock .deal-rows > div { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.tv-dock .deal-rows > div.me { box-shadow: inset 0 0 0 1px rgba(212,178,106,.35); }
.tv-dock .deal-rows .grow { flex: 1; }
.tv-dock .deal-rows .mute, .tv-dock .deal-rows i { color: var(--mute); font-style: normal; }
.tv-dock .deal-rows i { width: 14px; text-align: center; }

/* ═════════ 牌桌铺到状态栏后面：状态栏位置显示包间墙面贴图，不再是一条黑边 ═════════
   #screen 不再给牌桌留状态栏的上内边距（.screen.flush 见 app.css），整个 .tv 从屏幕最上沿开始；
   --tvt 是状态栏高度，贴顶的元素都往下让出这一段。底图上方（状态栏 + --st 留白）用 .tv-wall 接上：
   img/room-wall*.webp 由底图最上沿几行向上延伸并逐渐压暗生成，接缝处和底图逐像素一致。 */
.screen.flush { padding-top: 0; }
.tv { --tvt: var(--sat, env(safe-area-inset-top)); --sw: min(100cqw, calc((100cqh - var(--tvt)) * .6664)); --st: clamp(0px, calc(100cqh - var(--tvt) - 150cqw - 200px), 52px); }
.tv-table { top: calc(var(--tvt) + var(--st)); }
.tv::before { top: calc(var(--tvt) + var(--st) + var(--sw) * 1.5 - 44px); }
.tv-wall { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: var(--sw); height: calc(var(--tvt) + var(--st) + 1px); pointer-events: none;
  background: url(img/room-wall.webp) center bottom / 100% 100% no-repeat; }
.tv-wall.six { background-image: url(img/room-wall-6.webp); }
.tv-head { top: calc(var(--tvt) + 8px); }
.tv-video { top: calc(var(--tvt) + 8px); }
.tv-banner { top: calc(var(--tvt) + 52px); }
.tv > .lasthand { top: calc(var(--tvt) + 50px); }
.tip-toast { top: calc(var(--tvt) + 150px); }
.pres-tick { top: calc(var(--tvt) + 64px); }

/* 台面中间的状态文字（等待玩家入座 / 等待荷官…）：之前 55% 透明的小字压在深蓝台呢上看不清 */
.tv-center .status { color: rgba(241,233,218,.88); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-shadow: 0 1px 6px rgba(0,0,0,.75); }
/* 已装备的台呢：按底图里台面的精确形状染色（felt-mask 从底图取出，含金线外的一圈），不再用胶囊近似 */
.tv-table .felt-skin { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0;
  -webkit-mask: url(img/felt-mask-9.webp) center / 100% 100% no-repeat; mask: url(img/felt-mask-9.webp) center / 100% 100% no-repeat; }
.tv-table.six .felt-skin { -webkit-mask-image: url(img/felt-mask-6.webp); mask-image: url(img/felt-mask-6.webp); }
/* 结果面板：复盘可事后在战绩里看 */
.tv-dock .result .rhint { color: var(--dim); font-size: 11px; margin-top: 2px; }
/* 牌桌上打开的复盘：顶部横条（回到牌桌 / 轮到你了） */
.sheet.replay .rp-table { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 13px; color: var(--mute); }
.sheet.replay .rp-table button { padding: 6px 14px; border-radius: 999px; font-size: 13px; }
.sheet.replay .rp-table.turn { background: rgba(212,178,106,.18); color: var(--gold-hi); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(212,178,106,.6); animation: rpTurn 1s ease-in-out infinite alternate; }
@keyframes rpTurn { to { background: rgba(212,178,106,.3); } }

/* 时间银行阶段：冷色圈，和基本倒计时区分 */
.ps.acting.bank .ring circle, .ps.bank .ring circle { stroke: #8ec5f0; filter: drop-shadow(0 0 4px rgba(142,197,240,.85)); }
.ps.acting.bank:not(.low) .plate { box-shadow: inset 0 0 0 1px #8ec5f0, 0 0 12px rgba(142,197,240,.35); }
.tv-dock .timer.bank:not(.low) { background: #8ec5f0; }
.tsec.bank:not(.low) { color: #8ec5f0; }
