:root {
  --bg: #101317; --panel: #181c22; --panel2: #1f242c; --line: #2b313b;
  --text: #e6e9ee; --muted: #8e97a5; --accent: #3ddc84; --accent-ink: #06260f;
  --warn: #ffd23f; --danger: #ff6b5e;
  /* 无单位整数：玩法 HUD/交互低于功能界面；全屏层沿用 50 及以上的原层级。 */
  --z-hud: 4; --z-play: 6; --z-ui: 20; --z-ui-top: 21;
  /* 聊天层（负责人 2026-11-28）：聊天窗口是单独的最上层，任何界面都不能挡住它；比它高的只有提示条（--z-tip）和走马灯（#marquee 100002） */
  --z-chat: 100000; --z-tip: 100001;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { touch-action: manipulation; } /* 关掉双击放大整页 */
html { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; } /* 苹果小程序/WebView 长按出蓝色选中蒙版和系统菜单：整页关掉 */
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; } /* 输入框仍可选字、粘贴 */
body { background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif; overflow: hidden; }
h2 { font-size: 13px; margin: 0 0 10px; color: var(--text); font-weight: 600; }
h2 small { color: var(--muted); font-weight: 400; }
section { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
button, select { font: inherit; color: var(--text); background: #2a303a; border: 1px solid #3a424e; border-radius: 7px; padding: 6px 11px; cursor: pointer; }
button:hover { background: #343c48; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primary:hover { filter: brightness(1.08); }
button.danger { color: var(--danger); }
button:disabled { opacity: .45; cursor: default; }
select { padding: 5px 8px; }
label.inline { color: var(--muted); display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.status { font-size: 12px; margin: 8px 0 0; color: var(--accent); min-height: 1em; }
.status.bad { color: var(--warn); }
.empty { color: var(--muted); font-size: 13px; padding: 14px 4px; }

#thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
#thumbs .th { position: relative; width: 72px; height: 54px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #000; }
#thumbs .th.on { border-color: var(--accent); }
#thumbs .th canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
#thumbs .th i { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: 10px; background: rgba(0,0,0,.7); padding: 0 4px; border-radius: 4px; }
#thumbs .th i.bad { color: var(--warn); }
#calibWrap { border-radius: 8px; overflow: hidden; background: #000; touch-action: none; }
#calib { width: 100%; display: block; cursor: crosshair; }

.seg { display: flex; gap: 0; }
.seg button { border-radius: 0; border-right-width: 0; }
.seg button:first-child { border-radius: 7px 0 0 7px; }
.seg button:last-child { border-radius: 0 7px 7px 0; border-right-width: 1px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.seg.wrap { margin-top: 10px; } .seg.wrap button { flex: 1; padding: 6px 4px; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(24,28,34,.88); border: 1px solid var(--line); padding: 7px 14px; border-radius: 20px; font-size: 13px; color: var(--muted); pointer-events: none; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }

#aimHead { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
#aimHead small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
#optList { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
#optList button { text-align: left; display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
#optList button.on { border-color: var(--accent); background: rgba(61,220,132,.12); }
#optList .tag { color: var(--muted); }
.tag.容易 { color: var(--accent) !important; } .tag.中等 { color: var(--warn) !important; } .tag.困难 { color: var(--danger) !important; }
.diagrams { display: grid; grid-template-columns: 1.45fr 1fr; gap: 8px; align-items: stretch; }
figure { margin: 0; background: #12151a; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
figure canvas { width: 100%; display: block; }
figcaption { text-align: center; font-size: 11px; color: var(--muted); }
dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 10px 0 0; font-size: 13px; }
dt { color: var(--muted); } dd { margin: 0; font-variant-numeric: tabular-nums; }
.slider { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.slider input { flex: 1; accent-color: var(--accent); }
.slider b { color: var(--text); font-weight: 500; min-width: 86px; text-align: right; font-size: 12px; }

#ballList { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.ball { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 6px; border: 1px solid transparent; }
.ball.on { border-color: var(--warn); background: rgba(255,210,63,.08); }
.ball .sw { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,.25); }
.ball select { flex: 1; padding: 3px 6px; font-size: 12.5px; }
.ball .pos { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; width: 74px; text-align: right; }
.ball button { padding: 1px 7px; color: var(--muted); }
body.dragover::after { content: '松开以添加照片 / 视频'; position: fixed; inset: 0; background: rgba(16,19,23,.85); display: grid; place-items: center; font-size: 22px; border: 3px dashed var(--accent); z-index: var(--z-ui); }

/* ---- 全屏场景 + 浮层 ---- */
#view3d { position: fixed; inset: 0; }
#view3d canvas { display: block; }
.bar { position: fixed; top: 12px; display: flex; gap: 6px; align-items: center; z-index: var(--z-ui); flex-wrap: wrap; max-width: 60vw; }
.bar.tl { left: 12px; } .bar.tr { right: 12px; justify-content: flex-end; }
.bar > button, .bar > select, .bar .seg button { background: rgba(24,28,34,.82); backdrop-filter: blur(6px); }
.bar > button.primary { background: var(--accent); }
.bar .seg button.on { background: var(--accent); }
.bar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.bar small { color: var(--muted); }
.drawer { position: fixed; left: 12px; top: 58px; bottom: 12px; width: 380px; max-width: calc(100vw - 24px); background: rgba(24,28,34,.94); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px 12px; overflow-y: auto; z-index: var(--z-ui); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.drawer > header, .pipHead { display: flex; align-items: center; justify-content: space-between; }
.drawer > header { position: sticky; top: 0; padding: 10px 2px; background: inherit; z-index: 1; font-size: 14px; }
.x { padding: 0 9px; font-size: 18px; line-height: 26px; color: var(--muted); }
.card { position: fixed; right: 12px; top: 58px; width: 330px; max-height: calc(100vh - 70px); overflow-y: auto; background: rgba(24,28,34,.9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; padding: 12px; z-index: var(--z-play); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.tipRow { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.tipRow dl { margin: 0; font-size: 12.5px; }
#pip { position: fixed; left: 12px; bottom: 12px; width: 400px; max-width: calc(100vw - 24px); z-index: var(--z-hud); border-radius: 12px; border: 2px solid #ff8a3d; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.55); pointer-events: none; transition: left .2s; }
body.drawer-open #pip { left: 404px; }
.pipHead { background: rgba(24,28,34,.94); padding: 7px 10px; gap: 8px; pointer-events: auto; }
#pipAngle { font-size: 22px; color: #ff8a3d; font-variant-numeric: tabular-nums; margin-right: 8px; }
#pipSub { color: var(--muted); font-size: 12px; }
.pipHead .seg button { padding: 3px 8px; font-size: 12px; }
#pipView { height: 280px; }
.toast { position: fixed; z-index: var(--z-ui); }
.overChat { z-index: calc(var(--z-chat) + 1) !important; } /* 在聊天里点开的看图、礼物、地图等，显示在聊天层之上（single.js overChat） */
@media (max-width: 900px) { #pip { width: 300px; } #pipView { height: 200px; } .card { width: 290px; } body.drawer-open #pip { left: 12px; } }
.pipHead > div:first-child { min-width: 0; line-height: 1.25; }
#pipAngle { display: block; margin: 0; }
#pipSub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipHead .seg { flex: none; } .pipHead .seg button { white-space: nowrap; }

/* ---- 精简界面：一排按钮 + 按需弹出 ---- */
.bar { max-width: calc(100vw - 24px); }
.pop { position: relative; }
.pop > button { background: rgba(24,28,34,.82); backdrop-filter: blur(6px); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; gap: 4px; min-width: 110px; padding: 6px; background: rgba(24,28,34,.96); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 9; }
.menu[hidden] { display: none; }
.menu > button { text-align: left; background: transparent; border-color: transparent; }
.menu > button:hover { background: #2a303a; }
.menu a { color: var(--accent); font-size: 13px; text-decoration: none; }
#appVer { display: block; cursor: pointer; color: var(--muted, #9aa4b2); font-size: 12px; text-align: center; padding: 6px 0 2px; }
.menu.wide { min-width: 250px; padding: 10px; gap: 10px; }
.menu label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.menu label:has(input[type=checkbox]) { justify-content: flex-start; color: var(--text); }
.menu input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.card > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
#aimBar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; background: rgba(24,28,34,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; z-index: var(--z-play); max-width: calc(100vw - 24px); box-shadow: 0 10px 30px rgba(0,0,0,.45); white-space: nowrap; }
#aimBar[hidden] { display: none; }
#aimBarText { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
#aimBar .status { margin: 0; min-height: 0; }
#aimBar .status:empty { display: none; }
.toast { bottom: 14px; }
body.has-aim .toast { bottom: 66px; }
#pip { width: 300px; bottom: 14px; }
#pipView { height: 200px; }
#pipAngle { font-size: 19px; }
@media (max-width: 760px) { #pip { width: 210px; bottom: 112px; } #pipView { height: 140px; } #aimBar { flex-wrap: wrap; white-space: normal; justify-content: center; } }

.toast { top: 104px; bottom: auto !important; }
.pipHead { flex-wrap: wrap; row-gap: 5px; }
.pipHead > div:first-child { flex: 1 1 100%; display: flex; align-items: baseline; gap: 8px; }
#pipAngle { display: inline; white-space: nowrap; }
#pipSub { flex: 1; min-width: 0; }
.card { top: 108px; max-height: calc(100vh - 108px - 124px); }
#aimBar button.on { border-color: var(--accent); color: var(--accent); }

#shotPanel { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; width: 470px; max-width: calc(100vw - 24px); padding: 12px; background: rgba(24,28,34,.95); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; z-index: calc(var(--z-play) + 1); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
#shotPanel[hidden] { display: none; }
#shotPanel figure { padding: 4px; }
#tipPick { cursor: crosshair; touch-action: none; }
#tipName { font-size: 16px; }
.shotSide .hint { margin: 4px 0 8px; min-height: 3em; }
@media (max-width: 520px) { #shotPanel { grid-template-columns: 120px 1fr; } }
.slider { white-space: nowrap; } .slider b { min-width: 0; }

/* ---- 问题照片提示条 / 反馈 ---- */
#alert { position: fixed; left: 50%; top: 108px; transform: translateX(-50%); z-index: var(--z-ui-top); width: 520px; max-width: calc(100vw - 24px); padding: 12px 14px; background: rgba(60,38,10,.97); border: 1px solid #b9812a; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.55); color: #ffe9c2; font-size: 13.5px; }
#alert[hidden] { display: none; }
#alert b { color: #ffd23f; }
#alert ul { margin: 6px 0 10px; padding-left: 18px; }
#alert li { margin: 3px 0; }
#alert .row { justify-content: flex-end; }
#alert .row button { background: rgba(0,0,0,.25); border-color: #b9812a; color: #ffe9c2; }
#fbText, #fbContact { width: 100%; font: inherit; color: var(--text); background: #12151a; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; resize: vertical; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; color: var(--text); }
.chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.fbItem { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.fbItem .head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.fbItem .st { color: var(--accent); }
.fbItem .reply { margin-top: 6px; padding: 6px 8px; background: rgba(61,220,132,.1); border-radius: 6px; white-space: pre-wrap; }
.fbItem .reply a.retest { color: var(--accent); text-decoration: underline; margin: 0 2px; }
#fbBadge { color: var(--warn); }

.toast.link { pointer-events: auto; cursor: pointer; border-color: var(--accent); color: var(--accent); }
body.menu-open .toast { display: none; }

/* ---- 手机竖屏布局：自上而下 工具栏 → 画中画；球台在中间；最底下是 试打/复位/详情 一栏（试打面板在它上面），进度细线贴屏幕底边 ---- */
@media (max-width: 760px) {
  .bar.tl { top: 8px; left: 8px; right: 8px; max-width: none; }
  .toast { top: calc(var(--bar-b, 92px) + 8px) !important; bottom: auto !important; white-space: normal; text-align: center; border-radius: 12px; width: max-content; max-width: calc(100vw - 16px); }
  body.has-aim .toast { top: auto !important; bottom: calc(var(--aim-h, 0px) + 16px) !important; }
  body.has-aim:has(#shotPanel:not([hidden])) .toast { display: none; }
  #aimBar { top: auto; bottom: 8px; left: 8px; right: 8px; transform: none; max-width: none; padding: 6px 8px; gap: 6px; justify-content: flex-start; }
  #aimBarText { flex: 1 1 100%; white-space: nowrap; }
  #aimBar button { padding: 6px 10px; }
  #pip { top: calc(var(--aim-b, 180px) + 8px); bottom: auto; left: 8px; width: 168px; }
  #pipView { height: 112px; }
  #pipAngle { font-size: 16px; }
  .pipHead .seg button { padding: 3px 6px; font-size: 11px; }
  #shotPanel { bottom: calc(var(--aim-h, 0px) + 16px); left: 8px; right: 8px; transform: none; width: auto; max-width: none; }
  .drawer { top: calc(var(--bar-b, 92px) + 8px); left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; }
  .card { top: calc(var(--bar-b, 92px) + 8px); left: 8px; right: 8px; bottom: 8px; width: auto; max-height: none; z-index: var(--z-play); }
  body.detail-open #aimBar, body.detail-open #pip, body.detail-open .toast, body.drawer-open #aimBar, body.drawer-open #pip, body.drawer-open .toast { display: none; }
  #alert { top: calc(var(--bar-b, 92px) + 8px); }
  body.drawer-open #pip { left: 8px; }
}
#alert .row { flex-wrap: wrap; gap: 6px; }
#alert .row button[hidden] { display: none; }

/* 重合击打点小窗：和切角画中画并排、同样大小 */
#pip2 { position: fixed; left: 322px; bottom: 14px; width: 300px; z-index: var(--z-hud); border-radius: 12px; border: 2px solid #ff8a3d; overflow: hidden; background: rgba(18,22,27,.94); box-shadow: 0 10px 34px rgba(0,0,0,.55); pointer-events: none; display: flex; flex-direction: column; }
#pip2[hidden] { display: none; }
#pip2 .pipHead { padding: 6px 10px; font-size: 13px; color: #ff8a3d; flex: none; }
#pip2 canvas { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
body.drawer-open #pip2 { left: 714px; }
@media (max-width: 900px) { body.drawer-open #pip2 { display: none; } }
@media (max-width: 760px) {
  #pip { width: calc(50vw - 12px); }
  #pip2 { top: calc(var(--aim-b, 180px) + 8px); bottom: auto; left: auto; right: 8px; width: calc(50vw - 12px); }
  body.detail-open #pip2, body.drawer-open #pip2 { display: none; }
}
/* 负责人 2026-11-27「将碰撞重叠区域的界面换到左边。常规界面也换」：重合小窗放左边，切角画中画让到右边 */
#pip2 { left: 12px; } #pip { left: 322px; }
body.drawer-open #pip2 { left: 404px; } body.drawer-open #pip { left: 714px; }
@media (max-width: 900px) { body.drawer-open #pip { left: 12px; } }
@media (max-width: 760px) { #pip2 { left: 8px; right: auto; } #pip, body.drawer-open #pip { left: auto; right: 8px; } }

/* 后台计算进度：顶部细线 */
#prog { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .25s; }
#prog.on { opacity: 1; }
/* 资源加载圆圈（负责人 2026-11-26）：资源还没到、程序没法用时显示在屏幕正中，样式同安卓更新下载圆圈（黑底、灰轨、绿弧转圈），不挡触摸 */
.loadRing { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.6); pointer-events: none; display: grid; place-items: center; }
.loadRing::before { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #4cd964; animation: loadRingSpin .9s linear infinite; }
@keyframes loadRingSpin { to { transform: rotate(360deg); } }
#bootRing { position: fixed; left: 50%; top: 50%; margin: -20px 0 0 -20px; z-index: 60; }
#prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3ddc84, #ffd23f); transition: width .15s linear; box-shadow: 0 0 6px rgba(61,220,132,.8); }

/* ---- 固定机位监控 ---- */
#live { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; background: #14171c; }
#live[hidden], #live [hidden], .monitor-open .tour { display: none; }
#liveSleep { position: fixed; inset: 0; z-index: 61; background: #000; display: flex; align-items: center; justify-content: center; padding: 24px; }
#liveSleep p { margin: 0; color: #4a4f57; font-size: 13px; text-align: center; }
#liveHead, #liveBar { z-index: 1; padding: 12px; background: var(--panel); }
#liveHead { padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
#liveHead strong { font-size: 17px; }
#liveHint { margin: 3px 0 0; color: #bec7d1; }
#liveStage { grid-area: 2 / 1; position: relative; min-width: 0; min-height: 0; overflow: hidden; }
#liveStage { background: #090b0e; }
#liveVideo { display: block; width: 100%; height: 100%; object-fit: contain; }
#liveVideo.asleep { width: 1px; height: 1px; } /* 省电：不显示实时画面，但仍在播放供抓帧 */
#liveBar { grid-row: 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
#liveBar button { min-height: 42px; }
#liveBar label { display: inline-flex; gap: 5px; align-items: center; padding: 6px 0; }
#liveCancel { margin-left: auto; }
/* 接收标识沿用主球场的工具栏尺寸。 */
.bar #btnReceiving { flex-direction: column; gap: 1px; color: var(--accent); }
#btnReceiving span { font-size: 10px; line-height: 1.1; white-space: pre; text-align: center; }
.bar #btnReceiving.mode { gap: 0; }
#btnReceiving.mode svg { width: 15px; height: 15px; }
#btnReceiving.mode span { line-height: 1.05; }
.bar #btnReceiving.reconnecting, .bar #btnReceiving.lowbat { color: var(--warn); }
@media (max-width: 350px) { body.monitor-receiving .bar.tl { gap: 5px; } }
#shareBox { position: fixed; inset: 0; z-index: 1650; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
#shareBox[hidden] { display: none; }
#shareBox .inner { width: min(100vw, 480px); padding: 14px 12px calc(10px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #1a1f26; border-top: 1px solid var(--line); text-align: center; animation: shareUp .18s ease-out; }
@keyframes shareUp { from { transform: translateY(100%); } }
#shareBox .pic { min-height: 120px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
#shareBox img { max-height: 42vh; max-width: 70%; border-radius: 10px; }
#shareBox .icons { display: flex; justify-content: space-around; margin: 14px 0 8px; }
#shareBox .icons button { flex: 1; background: none; border: 0; padding: 4px 0; color: #e8ecf1; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
#shareBox .icons button[hidden] { display: none; }
#shareBox .icons i { width: 48px; height: 48px; border-radius: 50%; background: #2a313b; display: flex; align-items: center; justify-content: center; }
#shareBox .icons svg { width: 26px; height: 26px; }
#shareBox .icons i.wx { background: #07c160; }
#shareBox .icons i.pyq { background: radial-gradient(#fff 0 32%, transparent 33%), conic-gradient(#f6c142, #ef6b4a, #e2489c, #4a8df0, #47c47a, #f6c142); }
#shareClose { width: 100%; margin-top: 6px; padding: 11px; border-radius: 10px; background: #252b34; border: 0; color: #e8ecf1; font-size: 15px; }

/* ---- 极简工具栏：四个同样大小的图标按钮 ---- */
.bar.tl { gap: 10px; flex-wrap: nowrap; }
.bar .ico { position: relative; width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(24,28,34,.72); border: 1px solid rgba(255,255,255,.14); color: #e8ecf1; backdrop-filter: blur(8px); }
.bar .ico:hover { background: rgba(40,46,56,.85); }
.bar .ico.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bar .ico svg { display: block; }
/* 首页大拍摄按钮（负责人 2026-11-28）：红色圆钮 + 两圈呼吸节奏向外扩散的虚影；还原出场景或进入其它模式/面板就隐藏 */
#btnShootBig { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: var(--z-hud); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; }
#btnShootBig .dot { position: relative; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e5262f; box-shadow: 0 6px 24px rgba(229,38,47,.55); }
#btnShootBig .dot::before, #btnShootBig .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(229,38,47,.5); pointer-events: none; animation: shootBreath 2.4s ease-out infinite; }
#btnShootBig .dot::after { animation-delay: 1.2s; }
#btnShootBig b { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 14px; background: rgba(24,28,34,.72); white-space: nowrap; }
@keyframes shootBreath { 0% { transform: scale(1); opacity: .75; } 70% { opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #btnShootBig .dot::before, #btnShootBig .dot::after { animation: none; opacity: 0; } }
body:is(.scene-restored, .mode-edit, .has-aim, .drawer-open, .menu-open, .endgame, .manual, .monitor-open, .monitor-receiving) #btnShootBig { display: none; }
#fbBadge { position: absolute; top: 5px; right: 6px; font-size: 9px; line-height: 1; }
.menu.wide > button { padding: 8px 6px; }

.ball select.guess { border-color: #ffb020; color: #ffd27a; }

/* "更多"按钮固定在右上角：工具栏横跨整个屏幕宽度，前三个图标靠左，"更多"推到最右 */
.bar.tl { left: 12px; right: 12px; max-width: none; pointer-events: none; }
.bar.tl > * { pointer-events: auto; }
.bar.tl > .pop { margin-left: auto; }
@media (max-width: 760px) { .bar.tl { left: 8px; right: 8px; } }

.chatRow .who .intim { font-style: normal; font-size: 11px; color: #ff7eb6; }   /* 和对方的亲密度，大于 0 才有（负责人 2026-11-19） */
.chatMe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chatMe input { width: 120px; margin-left: 6px; }
.chatLogin { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 24px auto; }
.chatLogin h3 { color: var(--text) !important; font-size: 16px !important; }
.chatLogin input { padding: 10px; }
.prod { display: flex; gap: 10px; padding: 10px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; }
.prod img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: #2a303a; flex: none; }
.prod .info { flex: 1; min-width: 0; } .prod .info b { display: block; } .prod .price { color: #ffb020; font-weight: 600; margin: 2px 0; }
.prod .info p { margin: 2px 0 6px; font-size: 12.5px; color: var(--muted); }
/* 礼物消息：会动的大礼物图标，下面是粉色「礼物」标签和名称数量，一眼区别于普通表情 */
.giftMsg { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; white-space: normal; }
.giftMsg .emoBig { font-size: 52px; filter: drop-shadow(0 2px 6px #ff7eb655); }
.giftMsgTag { font-size: 11px; line-height: 18px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #ff8cc0, #ff4d8d); border-radius: 9px; padding: 0 8px; }
.giftMsg small { font-size: 12px; line-height: 16px; color: var(--muted); }
@keyframes emo-bounce { 0%, 100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-14%) scale(1.06, .96); } 55% { transform: translateY(0) scale(.96, 1.05); } }
@keyframes emo-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(6deg); } }
@keyframes emo-beat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.22); } 45% { transform: scale(.96); } 65% { transform: scale(1.12); } }
@keyframes emo-spin { to { transform: rotate(360deg); } }
@keyframes emo-pop { 0%, 100% { transform: scale(1) rotate(0); } 40% { transform: scale(1.25) rotate(-8deg); } 70% { transform: scale(1.1) rotate(6deg); } }
@keyframes emo-clap { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .emo { animation: none !important; } }
/* 主界面上的用户 ID */
#uidTag { position: fixed; left: 12px; bottom: 12px; z-index: 3; padding: 3px 9px; border-radius: 10px; background: rgba(24,28,34,.6); color: #c9d0da; font-size: 12px; pointer-events: none; }
#uidTag:empty { display: none; }
body.has-aim #uidTag { display: none; }

.authTabs { margin-bottom: 2px; } .authTabs button { flex: 1; padding: 8px; }
.chatLogin .lgGo { padding: 10px; }
.acct { text-align: center; padding: 14px 0; } .acct .big { font-size: 30px; font-weight: 700; color: var(--accent); letter-spacing: 1px; } .acct p { margin: 8px 0 14px; } .acct small { color: var(--muted); }
.acct .acctPoints { margin: -6px auto 14px; display: inline-block; padding: 4px 14px; border-radius: 14px; background: rgba(245,197,66,.12); color: #f5c542; font-size: 13px; } .acct .acctPoints b { font-size: 16px; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---- 头像 ---- */
.acct .avaBig { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; background: #2a303a; margin-bottom: 8px; }
.avGrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 12px 0 4px; } .avGrid[hidden] { display: none; }
.avGrid button { padding: 0; border-radius: 50%; overflow: hidden; aspect-ratio: 1; border: 2px solid transparent; background: transparent; } .avGrid button:hover { border-color: var(--accent); } .avGrid img { width: 100%; height: 100%; display: block; }

.acct .avaBtn { position: relative; padding: 0; border: 0; background: transparent; border-radius: 50%; margin-bottom: 8px; }
.acct .avaBtn .avaBig { margin: 0; display: block; }
.acct .avaBtn span { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; line-height: 24px; font-size: 12px; color: #fff; background: rgba(0,0,0,.5); border-radius: 0 0 46px 46px; }
.pickHead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 8px; } .pickHead .avBack { justify-self: start; }
.avGrid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.avGrid button.on { border-color: var(--accent); }
.avGrid .avAdd { border: 2px dashed #5b6470; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; }
.avGrid .avAdd span { font-size: 26px; line-height: 1; } .avGrid .avAdd small { font-size: 10.5px; }

/* ---- 助教资料 ---- */
#chatIntro { margin: 8px 12px 0; padding: 8px 12px; border-radius: 10px; background: #1c2128; border: 1px solid var(--line); font-size: 13px; }
#chatIntro[hidden] { display: none; } #chatIntro b { color: var(--accent); } #chatIntro p { margin: 4px 0 0; color: var(--muted); white-space: pre-wrap; max-height: 78px; overflow-y: auto; }
.coachForm { text-align: left; margin: 6px 0 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.coachForm h3 { margin: 0; font-size: 14px; } .coachForm label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.coachForm input, .coachForm textarea { font: inherit; color: var(--text); background: #262c35; border: 1px solid #3a424e; border-radius: 7px; padding: 8px; resize: vertical; }

/* ---- 助教主页 / 相片 / 动态 ---- */
.coachPage { padding-bottom: 70px; } .coachPage h3 { font-size: 13px; color: var(--muted); margin: 16px 2px 8px; font-weight: 500; }
.cpTop { display: flex; gap: 12px; align-items: center; } .cpAva { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #2a303a; flex: none; }
.cpWho { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .cpWho b { font-size: 18px; } .cpWho small { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; } .tags i { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 9px; background: #2a303a; color: #c9d0da; } .tags .st.on { background: #174d33; color: #7ff0b3; }
.cpFee { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: #1c2128; border: 1px solid var(--line); } .cpFee b { color: #ffb020; }
.cpIntro2 { margin: 10px 2px 0; color: #c9d0da; white-space: pre-wrap; font-size: 13.5px; }
.cpPhotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .cpPhotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #2a303a; }
.post { padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: #1c2128; border: 1px solid var(--line); } .post p { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; } .post small { color: var(--muted); font-size: 11.5px; } .post a { color: var(--danger); }
.pMedia { display: grid; gap: 4px; margin-bottom: 6px; } .pMedia.n1 { grid-template-columns: 1fr; } .pMedia.n2 { grid-template-columns: 1fr 1fr; } .pMedia.n3 { grid-template-columns: repeat(3, 1fr); }
.pMedia img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #2a303a; } .pMedia.n1 img { aspect-ratio: auto; max-height: 300px; object-fit: contain; } .pMedia video { width: 100%; max-height: 300px; border-radius: 6px; background: #000; grid-column: 1 / -1; }
.cpBar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #14171c; border-top: 1px solid var(--line); } .cpBar button { width: 100%; padding: 11px; }
#chatPanel { position: fixed; } #chatList { position: relative; }
.imgView { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; } .imgView img { max-width: 100%; max-height: 100%; }
.edPhotos, .poMedia { display: flex; flex-wrap: wrap; gap: 8px; } .ph { position: relative; width: 64px; height: 64px; } .ph img, .ph .vid { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #2a303a; display: flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal; color: var(--muted); }
.ph button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border-radius: 50%; font-size: 13px; line-height: 1; background: #000; }
.phAdd { width: 64px; height: 64px; border: 2px dashed #5b6470; background: transparent; font-size: 22px; color: var(--muted); border-radius: 8px; }
.coachForm .poText { font: inherit; color: var(--text); background: #262c35; border: 1px solid #3a424e; border-radius: 7px; padding: 8px; }
.cpBar { position: sticky; bottom: -16px; margin: 14px -12px -16px; }
.coachPage { padding-bottom: 0; }

/* 真人验证（滑块拼图） */
.capMask { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.capBox { width: min(320px, 100%); background: var(--panel, #1c2128); border: 1px solid var(--line, #303742); border-radius: 14px; padding: 12px; }
.capHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .capX { background: none; border: 0; font-size: 22px; color: var(--muted); padding: 0 6px; }
.capImg { position: relative; border-radius: 8px; overflow: hidden; line-height: 0; user-select: none; } .capBg { width: 100%; display: block; pointer-events: none; }
.capPiece { position: absolute; pointer-events: none; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .7)); }
.capBar { position: relative; height: 40px; margin-top: 10px; border-radius: 20px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; }
.capTip { font-size: 12.5px; color: var(--muted); pointer-events: none; }
.capKnob { position: absolute; left: 0; top: 0; width: 50px; height: 40px; border-radius: 20px; background: var(--accent); color: #06240f; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: grab; }
.capMsg { min-height: 18px; margin: 6px 0 0; text-align: center; }
/* 待审核标记 */
.post .wait { color: #ffb020; font-weight: 500; } .ph em { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .6); color: #ffb020; font-size: 11px; font-style: normal; text-align: center; }

/* 新手提示：整屏压暗，只露出当前说明的按钮；说明卡片在按钮下方 */
.tour { position: fixed; inset: 0; z-index: 95; pointer-events: none; } .tour[hidden], .tourHole[hidden] { display: none; }
.tourHole { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .72), 0 0 0 2px var(--accent); transition: all .25s; pointer-events: none; }
.tourCard { pointer-events: auto; position: fixed; left: 10px; right: 10px; max-width: 420px; margin: 0 auto; background: #1c2128; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); transition: top .25s; }
.tourCard.at::before { content: ''; position: absolute; top: -7px; left: var(--arrow, 30px); width: 12px; height: 12px; margin-left: -6px; background: #1c2128; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.tourTitle { font-size: 16px; color: var(--accent); }
.tourText { margin: 8px 0 12px; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.tourRow { display: flex; align-items: center; gap: 8px; } .tourN { flex: 1; color: var(--muted); font-size: 12.5px; } .tourRow button { padding: 7px 16px; }
.tourSkip { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.tourSkip button, .tourRow .tourLater, .tourRow .tourNever { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 4px 2px; text-decoration: underline; }

.tourArt { display: flex; justify-content: center; margin-top: 8px; background: rgba(255, 255, 255, .04); border-radius: 10px; } .tourArt[hidden] { display: none; }

/* 助教按钮：粉色线条 */
#btnChat { color: #ff7eb6; }

/* 重合击打点小窗：左边重合示意、右边最佳打点，最下面一条力度条 */
#pip2 .pipHead { display: flex; justify-content: space-between; align-items: center; gap: 6px; } #pip2Tip { color: #8fb7ff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pip2Body { flex: 1; min-height: 0; display: flex; align-items: center; gap: 2px; padding: 0 4px; }
#pip2 .pip2Body canvas { flex: none; min-width: 0; height: 100%; object-fit: contain; } #pip2 #pipOverlap { width: 100%; }
.pip2Pow { flex: none; display: flex; align-items: center; gap: 6px; padding: 3px 8px 6px; font-size: 11px; color: #c9d0da; white-space: nowrap; }
.pip2Pow .powBar { flex: 1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pip2Pow .powBar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #3ddc84, #ffd23f 60%, #ff6b4a); background-size: 100vw 100%; transition: width .2s; }
#pip2 .pipHead { flex-direction: row; flex-wrap: nowrap; } #pip2 .pipHead > div { min-width: 0; }

/* 重合击打点小窗：目标球是黑色时背景改成灰色，不然球和背景混在一起 */
#pip2.onGrey { background: #7d8590; } #pip2.onGrey .pip2Pow { color: #10151b; } #pip2.onGrey .powBar { background: rgba(0, 0, 0, .28); }
.tourSamples { display: flex; gap: 8px; margin: -4px 0 12px; } .tourSamples[hidden] { display: none; }
.tourSamples button { flex: 1; padding: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #11151a; color: var(--text, #ddd); font-size: 12.5px; }
.tourSamples img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; } .tourSamples span { display: block; padding: 4px 0; }
/* "更多"最上面：头像后紧跟金币，姓名按剩余宽度省略，操作按钮始终完整。 */
#menuMe { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
#menuMe img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #2a303a; flex: none; }
#menuMe .who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; } #menuMe .who b, #menuMe .who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #menuMe .who small { color: var(--muted); }
#menuMe button { flex: none; padding: 6px 9px; font-size: 13px; white-space: nowrap; } #menuMe > button:only-child { flex: 1; }
#menuMe .meCoin { display: flex; align-items: center; gap: 3px; padding: 6px 5px; color: #f5c542; font-size: 12px; font-variant-numeric: tabular-nums; }
#menuMe .meCoin svg { width: 16px; height: 16px; flex: none; }
.acct .nameEdit { display: flex; gap: 8px; justify-content: center; } .acct .nameEdit input { width: 150px; }
.bar .ico[hidden] { display: none; }
#replayBar { position: fixed; bottom: calc(var(--aim-h, 52px) + 16px); left: 50%; transform: translateX(-50%); z-index: var(--z-hud); display: flex; align-items: center; gap: 8px; padding: 6px 10px; white-space: nowrap; background: rgba(24,28,34,.92); border: 1px solid var(--line); border-radius: 12px; } #replayBar[hidden] { display: none; } body:has(#replayBar:not([hidden])) .toast { display: none; } /* 回放控制条占提示条的位置：紧贴底部操作条上方，不挡球台 */ #replayBar input { width: 96px; accent-color: var(--accent); } #replayBar b { min-width: 3em; font-size: 13px; }

/* 画中画点击放大（再点一下或点别处关闭）：占满屏宽，盖在另一个小窗上面，底下不超过操作条 */
#pip, #pip2 { pointer-events: auto; cursor: zoom-in; }
#pip.zoom, #pip2.zoom { cursor: zoom-out; z-index: var(--z-play); left: 12px; right: auto; width: min(620px, calc(100vw - 24px)); height: auto !important; }
#pip.zoom #pipView { height: min(420px, 55vh); }
#pip2.zoom .pip2Body canvas { width: 100%; height: auto; max-height: 55vh; }
#pip2.zoom .pipHead { font-size: 17px; padding: 9px 12px; } #pip2.zoom #pip2Tip { font-size: 16px; }
#pip2.zoom .pip2Pow { font-size: 15px; padding: 8px 12px 11px; gap: 10px; } #pip2.zoom .powBar { height: 12px; border-radius: 6px; }
@media (max-width: 760px) {
  #pip.zoom, #pip2.zoom { left: 8px; right: 8px; width: auto; }
  #pip.zoom #pipView { height: min(66vw, calc(100vh - var(--aim-b, 180px) - var(--aim-h, 0px) - 110px)); }
  #pip2.zoom .pip2Body canvas { max-height: calc(100vh - var(--aim-b, 180px) - var(--aim-h, 0px) - 130px); }
}
#pip2.zoom:not(.onGrey) { background: #12161b; }
#pip.zoom { max-width: none; } #pip.zoom ~ #pip2 { visibility: hidden; } /* 切角图是 3D 画在元素底下的，放大时旁边的重合小窗要让开 */

/* ---- 聊天泡泡（负责人 2026-11-27：右边中部以下，不挡操作界面；浮在最上层；聊天窗口开着时让开）：右上未读数，右下连接状态点 ---- */
#chatFab { position: fixed; right: 10px; top: 68%; z-index: calc(var(--z-chat) - 1); width: 50px; height: 50px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(24,28,34,.82); border: 1px solid rgba(255,255,255,.18); color: #e8ecf1; backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.45); } /* 聊天按钮与聊天窗口都在最上层，重试这一杆等游戏弹层不能盖住它（负责人 2026-11-28） */
body:has(#egUi) #chatFab { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); } /* 残局页右侧中部是点赞收藏一列，泡泡放到它下面、出杆条上面；只有操作模式（body.manual）才挪到中间（负责人 2026-11-28） */
body:has(#chatPanel:not([hidden])) #chatFab { display: none; }
#chatFabNum { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #fa5151; color: #fff; font-size: 10px; line-height: 16px; font-weight: 600; text-align: center; }
#chatFabNum:empty { display: none; }
#chatFabDot { position: absolute; right: 4px; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; background: #fa5151; box-shadow: 0 0 0 2px rgba(24,28,34,.9); } #chatFabDot.on { background: #3ddc84; }

.userCard { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 36px; } .userCard img { width: 88px; height: 88px; border-radius: 10px; object-fit: cover; background: #2a303a; } .userCard b { font-size: 18px; } .userCard small { color: var(--muted); } .userCard .cpBar { margin-top: 18px; }
.kickBar { margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; background: #3a2a14; color: #ffd28a; font-size: 13px; display: flex; flex-direction: column; gap: 8px; } .kickBar button { align-self: flex-start; }
/* 助教卡片共用固定三列操作栏，点助教隐藏时其余按钮不移位。 */
.coachCard { margin-bottom:12px; border:1px solid var(--line); border-radius:14px; background:var(--panel2); overflow:hidden; }
.coachCard .chatRow { gap:12px; align-items:flex-start; padding:12px; margin:0; border:0; border-radius:0; background:transparent; }   /* 负责人 2026-11-20：内容多时卡片跟着变高，不再截断 */
.coachCard .chatRow:hover { background:#ffffff05; }
.coachCard .chatRow .ava, .coachCard .chatRow .ava img { width:92px; height:116px; }
.coachCard .chatRow .ava img { border-radius:10px; }
.coachCard .chatRow .ava .dot { right:5px; bottom:5px; width:13px; height:13px; }
.coachCard .unread { position:absolute; top:5px; right:5px; }
.coachCard .who { gap:5px; min-height:116px; }
.coachCard .coachName { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:17px; line-height:1.3; overflow-wrap:anywhere; }
.coachCard .coachShop { flex-basis:100%; font-size:13px; font-weight:400; color:var(--muted); overflow-wrap:anywhere; }
.venueLink { color: #8fd3ff; text-decoration: underline; cursor: pointer; }   /* 已登记球房名：点开地图导航（js/coach-list.js venueTag） */
.coachOffline { margin-bottom:12px; }
.coachCard .coachAddr { display:block; font-size:13px; line-height:1.4; color:var(--accent); overflow-wrap:anywhere; flex:none; cursor:pointer; }
.mapView { position:fixed; inset:0; z-index:80; display:flex; flex-direction:column; gap:10px; padding:12px; padding-top:max(12px, env(safe-area-inset-top)); padding-bottom:max(12px, env(safe-area-inset-bottom)); background:var(--bg, #12151a); }
.mapView .mapHead { display:flex; align-items:center; gap:10px; }
.mapView .mapHead span { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.mapView .mapHead small { color:var(--muted); }
.mapView .mapClose { width:40px; height:40px; font-size:22px; }
.mapView .mapBox { flex:1; border-radius:12px; overflow:hidden; background:var(--panel2); display:flex; align-items:center; justify-content:center; }
.mapView .mapNav { height:48px; font-size:16px; }
.coachNet > summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:10px; margin:6px 0 12px; color:var(--muted); font-size:13px; }
.coachNet > summary::-webkit-details-marker { display:none; }
.coachNet > summary::before, .coachNet > summary::after { content:''; flex:1; border-top:1px solid var(--line); }
.coachNet:not([open]) > summary { color:var(--accent); }
.cpMinLevel { display:flex; flex-direction:column; gap:6px; margin:8px 0; }
.cpMinLevel small { color:var(--muted); }
.cpMinLevel label { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cpMinLevel input { width:80px; }
.cpWho .coachAddr { display:block; font-size:13px; color:var(--accent); cursor:pointer; }
.coachOffline > summary { list-style:none; cursor:pointer; text-align:center; padding:10px; margin-bottom:12px; border:1px solid var(--line); border-radius:12px; background:var(--panel2); }
.coachOffline > summary::-webkit-details-marker { display:none; }
.coachOffline[open] > summary { opacity:.7; }
.coachCard .who small { display:block; white-space:normal; overflow:visible; overflow-wrap:anywhere; flex:none; }
.coachCard .who .coachDetails { line-height:1.4; }
.coachCard .coachDistances { margin-top:auto; display:flex; flex-wrap:wrap; gap:0 12px; }
.coachCard .who .coachDistance { line-height:1.4; color:#ffb6d5; }
.coachActions { display:grid; grid-template-columns:repeat(auto-fit,minmax(72px,1fr)); gap:8px; padding:0 12px 12px; }   /* 3～4 个按钮一行排满 */
.coachActions button { min-width:0; min-height:40px; padding:8px 2px; font-size:13px; white-space:nowrap; }
/* 店内点单：沿用抽屉，独立的确认层避免助教行内嵌套按钮。 */
.storeModal { position:fixed; inset:0; z-index:95; background:#0009; display:flex; align-items:center; justify-content:center; padding:16px; }
.storeOrderForm { width:min(100%,420px); max-height:calc(100dvh - 32px); overflow:auto; background:var(--panel,#1c2128); border:1px solid var(--line); border-radius:14px; padding:16px; }
.storeOrderForm header { display:flex; align-items:center; justify-content:space-between; }
.storeOrderForm label { display:flex; align-items:center; gap:12px; margin:16px 0; }
.storeOrderForm select,.storeOrderForm input { flex:1; min-width:0; width:100%; padding:10px; }
.storeOrderForm input { font: inherit; color: var(--text); background: #2a303a; border: 1px solid #3a424e; border-radius: 7px; }   /* 和下拉框一致，不要系统白底 */
.storeOrderForm .storeSubmit { width:100%; padding:12px; }
.storeOrderForm .storeOrderError { white-space:normal; overflow-wrap:anywhere; }
.storeOrder { border-bottom:1px solid var(--line); padding:16px 0; overflow-wrap:anywhere; }
.storeOrder>strong { float:right; font-size:13px; margin-left:8px; color:#ff7eb6; }
.storeOrder p { margin:8px 0; }
.storeOrder small { color:var(--muted); }
.storeOrder details { margin:12px 0; font-size:13px; }
.storeReply { background:#ffffff08; padding:10px; border-radius:8px; white-space:pre-wrap; }
#storeLocationInfo button { display:block; width:100%; margin:10px 0; }
#storePanel { z-index:76; }

.storePageNav { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }

/* 实时监控的设备配对与接收提示 */
.monitorPair { width: min(400px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.monitorPair::backdrop { background: rgba(0,0,0,.68); }
.monitorPair header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.monitorPair p { margin: 8px 0 10px; }
.monitorPair canvas { display: block; width: min(250px, 100%); height: auto; margin: 0 auto 12px; border-radius: 8px; image-rendering: pixelated; }
.monitorPair video { display: block; width: 100%; max-height: 42vh; background: #000; margin: 0 0 10px; border-radius: 8px; }
.monitorPair input { width: 100%; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 8px; font: inherit; font-size: 16px; }
.monitorPair .row button { min-height: 42px; }
.monitorPair [hidden] { display: none; }

/* 更多菜单打开、或从更多进入的界面里，更多按钮变成返回 */
#btnOpts .back, body.opts-back #btnOpts .more { display: none; } body.opts-back #btnOpts .back { display: block; }
.menu .seg button { padding: 5px 9px; font-size: 13px; white-space: nowrap; }

/* 推荐资料与主页共用：长名称换行，数字 ID 保持可读。 */
.referralProfile { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-align: left; font-size: 13px; }
.referralProfile[hidden] { display: none; }
.referralProfile dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; }
.referralProfile dt { color: var(--muted); }
.referralProfile dd { margin: 0; overflow-wrap: anywhere; }
.referralProfile p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.referralProfile button { margin-top: 8px; min-height: 36px; }

/* 走马灯：视角按钮正下方一条细字幕（负责人 2026-11-19：「走马灯被挡了，位置下调到视角按钮下，不要发生阻挡。且要放在最上层。所有界面都不影响其播放」）。
   --mq-t 由 main.js 按视角按钮底边算；层级高于所有界面，不接收点按（不挡下面的按钮），画中画通过 --aim-b 让出它的高度 */
#marquee { position: fixed; left: 12px; right: 12px; top: var(--mq-t, calc(var(--bar-b, 66px) + 64px)); height: 22px; overflow: hidden; z-index: 100002; pointer-events: none; border-radius: 11px; background: rgba(24,28,34,.72); border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; line-height: 20px; white-space: nowrap; }
#marquee[hidden] { display: none; }
#marquee .mqTrack { display: inline-block; padding-left: 100%; }
#marquee span { margin-right: 3em; }
#marquee .mqSys { color: #ffd479; font-weight: 600; }
#marquee .mqCh { color: #cfe8ff; }
@keyframes mqRun { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 760px) { #marquee { left: 8px; right: 8px; } }
/* 走马灯不随「减少动态」放慢：所有人要同步（负责人 2026-11-19），速度由服务器给的一遍秒数决定 */
/* 玩法、球台、操作、模式的分段按钮紧跟标题左对齐（负责人 2026-11-15） */
.menu label:has(.seg) { justify-content: flex-start; }
/* 固定监控镜头模式 + ？用法说明 */
.menu .monRow { display: flex; align-items: center; gap: 6px; }
.menu .monRow #btnMonitor { flex: 1; text-align: left; background: transparent; border-color: transparent; }
.menu .monHelp { flex: none; width: 28px; height: 28px; padding: 0; border-radius: 50%; font-size: 14px; }
.menu #monHelpText { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
/* 我的物品：一排背包物品格，放不下最后一格是「更多」 */
#menuItems { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
#menuItems[hidden] { display: none; }
#menuItems > b { font-weight: normal; padding-left: 2px; }
#miGrid { display: flex; gap: 6px; overflow: hidden; }
/* 游戏背包格：深色内凹方格、细边框，空格只留格子 */
#miGrid .miCell { position: relative; flex: none; width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 6px;
  background: linear-gradient(#141920, #1d232c); border: 1px solid #3a4250; box-shadow: inset 0 2px 4px rgba(0,0,0,.55), inset 0 -1px 0 rgba(255,255,255,.05); color: var(--text, #e6e6e6); }
#miGrid .miCell i { font-style: normal; font-size: 24px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; }
#miGrid .miCell small { position: absolute; right: 3px; bottom: 1px; font-size: 10px; font-weight: 600; color: #f1d08a; text-shadow: 0 1px 1px #000; }
#miGrid .miEmpty { opacity: .7; }
#miGrid .miMore { border-color: #5b6577; background: linear-gradient(#232a35, #2b3340); }
#miGrid .miMore i { font-size: 20px; font-family: inherit; color: #c9d1dc; }
/* 视角选择器：更多按钮正下方的小图标，点开竖排各视角（负责人 2026-11-15） */
#viewPick { position: absolute; top: calc(100% + 8px); right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: var(--z-ui); }
#viewPick button { width: 46px; height: 50px; padding: 2px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; background: rgba(24,28,34,.72); border: 1px solid rgba(255,255,255,.14); color: #e8ecf1; backdrop-filter: blur(8px); }
#viewPick button small { font-size: 10px; line-height: 1.1; color: #c7cdd6; }
#viewPick #viewCur[aria-expanded="true"] { border-color: var(--accent); }
#viewList { display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(24,28,34,.9); border: 1px solid rgba(255,255,255,.1); }
#viewList[hidden] { display: none; }
#viewList button { background: transparent; border-color: transparent; height: 46px; }
#viewList button.on { background: var(--accent); color: var(--accent-ink); }
#viewList button.on small { color: var(--accent-ink); }
body.menu-open #viewPick { display: none; }
/* 分享推荐挣金币（负责人 2026-11-15 改）：分享图标的三个小圈随机吐出金币，从小圈大小长到金币大小，再掉落渐隐；金币由 main.js 生成 */
.earnCoin { position: fixed; left: 0; top: 0; z-index: 30; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0 0 18%, #f5c542 42%, #c8901a 100%); border: 1px solid #a77412; box-shadow: 0 1px 3px rgba(0,0,0,.45); pointer-events: none; will-change: transform, opacity; }
.earnCoin::after { content: '¥'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 10px/1 sans-serif; color: #8a5a00; font-style: normal; }
@media (max-width: 350px) { .bar.tl:has(#btnShop:not([hidden])) { gap: 4px; } }
/* 账号行：金币单独占第二行，完整显示真实金币数（负责人 2026-11-15） */
#menuMe { flex-wrap: wrap; }
#menuMe .meCoin { order: 9; flex: 1 1 0; min-width: 0; justify-content: flex-start; gap: 6px; padding: 6px 10px; font-size: 15px; font-weight: 600; }
#menuMe .meCoin span { overflow-wrap: anywhere; }
#menuMe .meCoin::after { content: '金币'; margin-left: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
#menuMe .meCoin svg { width: 18px; height: 18px; }
/* 推荐数据：直接推荐 / 二级推荐 / 推荐收益（负责人 2026-11-15） */
#menuMe .meRef { order: 9; flex: 1 1 100%; display: flex; gap: 6px; }
#menuMe .meRef span { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 11px; color: var(--muted); }
#menuMe .meRef b { font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* 账号信息区第三行：按身份显示的功能入口 */
#menuMe #menuItems { order: 10; flex: 1 1 100%; }
#menuMe .meRoles { order: 11; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
#menuMe .meRoles button { flex: 1 1 0; min-width: 84px; padding: 7px 8px; font-size: 13px; color: var(--accent); border-color: rgba(255,255,255,.18); }
/* 手机上顶部提示条给右侧的视角选择器让位 */
@media (max-width: 760px) { .toast { max-width: calc(100vw - 132px) !important; } }
/* 账号安全：修改密码、绑定邮箱、绑定手机号 */
.acctSec { width: 100%; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.acctSec h4 { margin: 4px 0 0; font-size: 14px; }
.acctSec .secItem { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.acctSec summary { cursor: pointer; font-size: 14px; }
.acctSec summary small { color: var(--muted); margin-left: 6px; }
.acctSec summary .bindGift { color: #ffb020; font-weight: 600; }
.acctSec .secBody { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.acctSec .secRow { display: flex; gap: 6px; } .acctSec .secRow input { flex: 1; min-width: 0; }
.acctSec input:disabled, .acctSec button:disabled { opacity: .55; }
.acctSec .secBody [hidden] { display: none; }   /* 已绑定时隐藏输入栏（.secRow 是 flex，默认的 hidden 压不住） */
.acctSec .bindDone { margin: 0; } .acctSec .bindChange, .acctSec .bindCancel { color: var(--accent); }
/* 账号行头像就是编辑入口 */
#menuMe .meAva { flex: none; padding: 0; border: 0; background: none; border-radius: 50%; }
.cpWho .coachShop { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }

/* 瞄准详情在上层、视角按钮在下层（负责人 2026-11-15：“视角按钮要放在下层，瞄准详情要有返回按钮，层次要在上层”）。
   详情从工具栏下方开始，盖住视角选择器但不挡工具栏那一行。 */
#aimPanel { z-index: var(--z-ui-top); }
#aimPanel > header .back { padding: 4px 10px 4px 6px; font-size: 14px; color: var(--accent); }
#aimPanel > header b { flex: 1; text-align: center; }
/* 被推荐人绑定奖励提示：金币下面单独一行（负责人 2026-11-15） */
#menuMe .meBind { order: 9; flex: 1 1 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; white-space: normal; padding: 8px 12px; border: 0; border-radius: 10px; color: #3a2400;
  background: linear-gradient(110deg, #ffd23f 0%, #ff9f1c 45%, #fff3b0 50%, #ff9f1c 55%, #ffd23f 100%); background-size: 250% 100%;
  box-shadow: 0 0 0 0 rgba(255,190,40,.7); animation: meBindShine 2.4s linear infinite, meBindPulse 1.6s ease-out infinite; }
#menuMe .meBind b { font-size: 15px; font-weight: 800; letter-spacing: .5px; }
#menuMe .meBind small { font-size: 12px; font-weight: 600; color: #6b3a00; }
#menuMe .meBind[data-mode=share] { color: #002a1c; background-image: linear-gradient(110deg, #3ef0a5 0%, #19c3ff 45%, #d8fff0 50%, #19c3ff 55%, #3ef0a5 100%); }
#menuMe .meBind[data-mode=share] small { color: #003b4f; }
#menuMe .meBind[hidden] { display: none; }
@keyframes meBindShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes meBindPulse { 0% { box-shadow: 0 0 0 0 rgba(255,190,40,.65); transform: scale(1); } 40% { transform: scale(1.025); } 70% { box-shadow: 0 0 0 9px rgba(255,190,40,0); transform: scale(1); } 100% { box-shadow: 0 0 0 0 rgba(255,190,40,0); } }
#bindPop { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); animation: bpFade .2s ease-out; }
#bindPop .bpCard { position: relative; width: min(340px, 100%); padding: 22px 18px 16px; border-radius: 16px; text-align: center; color: #fff; background: linear-gradient(160deg, #2b1a5a, #4a1f6e 55%, #7a2a5a); box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: bpPop .35s cubic-bezier(.2,1.6,.4,1); }
#bindPop h3 { margin: 0 0 4px; font-size: 21px; } #bindPop em { font-style: normal; color: #ffd23f; font-weight: 800; }
#bindPop h3 em { font-size: 28px; display: inline-block; animation: bpBounce 1s ease-in-out infinite; }
#bindPop p { margin: 0 0 14px; color: #ffe9a8; font-size: 13px; }
#bindPop .bpMail, #bindPop .bpPhone { display: block; width: 100%; margin: 8px 0; padding: 12px; border: 0; border-radius: 12px; font-size: 16px; font-weight: 700; color: #3a2400; background: linear-gradient(90deg, #ffd23f, #ff9f1c); }
#bindPop .bpPhone { color: #002a1c; background: linear-gradient(90deg, #3ef0a5, #19c3ff); }
#bindPop .bpShare { margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 13px; line-height: 1.7; }
#bindPop .x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: #fff; font-size: 22px; }
@keyframes bpFade { from { opacity: 0; } } @keyframes bpPop { from { transform: scale(.6); opacity: 0; } } @keyframes bpBounce { 50% { transform: translateY(-4px) scale(1.12); } }
.coinFx { position: fixed; inset: 0; z-index: 2100; pointer-events: none; display: grid; place-items: center; }
.coinFx i { position: absolute; top: 55%; left: 50%; font-size: 30px; font-style: normal; transform: translateX(var(--x)); animation: coinIn 1.1s cubic-bezier(.3,.7,.5,1) var(--d) both; }
.coinFx b { padding: 10px 22px; border-radius: 30px; font-size: 30px; font-weight: 900; color: #3a2400; background: linear-gradient(90deg, #ffd23f, #ff9f1c); box-shadow: 0 6px 24px rgba(255,170,30,.6); animation: coinText 2.6s ease-out both; }
.coinFx small { position: absolute; top: calc(50% + 34px); color: #fff; font-size: 14px; text-shadow: 0 1px 3px #000; animation: coinText 2.6s ease-out both; }
@keyframes coinIn { 0% { opacity: 0; transform: translate(var(--x), 0) scale(.4); } 25% { opacity: 1; transform: translate(var(--x), -90px) scale(1.15) rotate(180deg); } 100% { opacity: 0; transform: translate(-50%, -48vh) scale(.5) rotate(540deg); } }
@keyframes coinText { 0% { opacity: 0; transform: scale(.4); } 15% { opacity: 1; transform: scale(1.2); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }
@media (prefers-reduced-motion: reduce) { #menuMe .meBind, #bindPop .bpCard, #bindPop h3 em, .coinFx i { animation: none; } }
/* 金币凭据邮箱验证（负责人 2026-11-15）：盖在礼物面板之上 */
.walletVerify { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); }
.walletVerify .wvCard { width: min(360px, 100%); padding: 18px 16px 14px; border-radius: 14px; background: var(--panel, #1b2028); border: 1px solid var(--line, #2c333e); color: var(--text, #e6e6e6); }
.walletVerify h3 { margin: 0 0 6px; font-size: 17px; }
.walletVerify .wvPw { color: var(--accent); }
.walletVerify .wvTip { margin: 0 0 12px; font-size: 13px; color: var(--muted, #9aa3ae); line-height: 1.5; }
.walletVerify .wvRow { display: flex; gap: 8px; }
.walletVerify .wvCode { flex: 1; min-width: 0; font-size: 16px; letter-spacing: 2px; }
.walletVerify .wvSend { flex: none; white-space: nowrap; }
.walletVerify .wvMsg { min-height: 18px; margin: 8px 0 4px; font-size: 12px; color: var(--muted, #9aa3ae); } .walletVerify .wvMsg.bad { color: #ff8a80; }
.walletVerify .wvBar { display: flex; justify-content: flex-end; gap: 8px; }

/* 免验证额度：紧跟金币那行右边，点了设置（负责人 2026-11-15） */
#menuMe .meFree { order: 9; flex: none; max-width: 130px; align-self: center; padding: 4px 8px; border-radius: 12px; font-size: 12px; color: #9fd3ff; background: rgba(80,160,255,.12); border: 1px solid rgba(80,160,255,.35); }
.giftWalletCard .giftFree { display: block; margin: 4px auto 2px; padding: 3px 10px; border-radius: 12px; font-size: 12px; color: #9fd3ff; background: rgba(80,160,255,.12); border: 1px solid rgba(80,160,255,.35); }
.walletVerify .wvInf { display: flex; align-items: center; gap: 4px; flex: none; font-size: 14px; white-space: nowrap; }
#menuMe:has(.meCoin)::after { content: ''; order: 8; flex-basis: 100%; height: 0; }   /* 金币+免验证额度那行固定另起一行 */
/* 推广积分兑换礼物（负责人 2026-11-15） */
.giftRedeem { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(120deg, rgba(62,240,165,.16), rgba(25,195,255,.16)); border: 1px solid rgba(62,240,165,.4); }
.giftRedeem > b { display: block; font-size: 16px; color: #3ef0a5; }
.giftRedeem > small { display: block; margin: 2px 0 8px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.giftRedeemList { display: flex; gap: 8px; }
.giftRedeemBtn { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: 13px; }
.giftRedeemBtn span { font-size: 22px; } .giftRedeemBtn small { color: #3ef0a5; font-size: 12px; }

/* 入驻申请（js/apply.js） */
.remoteView .roCard { border:1px solid var(--line); border-radius:12px; padding:10px 12px; display:flex; flex-direction:column; gap:6px; background:var(--panel2); }
.remoteView .roCard.completed, .remoteView .roCard.rejected, .remoteView .roCard.cancelled, .remoteView .roCard.expired { opacity:.7; }
.remoteView .roTop { display:flex; justify-content:space-between; gap:8px; }
.remoteView .roSt { color:var(--accent); font-size:13px; }
.remoteView .roCard small { color:var(--muted); }
.remoteView .roBar { height:6px; border-radius:3px; background:var(--line); overflow:hidden; }
.remoteView .roBar i { display:block; height:100%; background:var(--accent); }
.remoteView .roActs { display:flex; gap:8px; flex-wrap:wrap; }
.remoteView .rbPrice b { color:var(--accent); font-size:18px; }
.applyView { position:fixed; inset:0; z-index:78; display:flex; flex-direction:column; background:var(--bg); padding-top:env(safe-area-inset-top); }
.applyView .apHead { display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid var(--line); }
.applyView .apClose { width:40px; height:40px; font-size:22px; }
.applyView .apBody { flex:1; overflow:auto; padding:12px 14px calc(24px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:12px; max-width:640px; width:100%; margin:0 auto; box-sizing:border-box; }
.applyView .apStep { margin:0; font-weight:600; color:var(--accent); }
.applyView .apField { display:flex; flex-direction:column; gap:6px; font-size:14px; }
.applyView .apField input, .applyView .apField textarea, .applyView .apField select { font-size:16px; }
.addrPick { display:flex; flex-wrap:wrap; gap:6px; } .addrPick select { flex:1 1 90px; min-width:0; } .addrPick input { flex:1 1 100%; }
.applyView .apPicks { display:flex; flex-direction:column; gap:12px; }
.applyView .apLabel { display:block; font-size:14px; margin-bottom:6px; }
.applyView .apThumbs { display:flex; flex-wrap:wrap; gap:8px; }
.applyView .apThumb, .applyView .apAdd { position:relative; width:88px; height:88px; border-radius:10px; overflow:hidden; background:var(--panel2); border:1px dashed var(--line); display:flex; align-items:center; justify-content:center; }
.applyView .apThumb img { width:100%; height:100%; object-fit:cover; }
.applyView .apThumb i { font-size:12px; color:var(--muted); font-style:normal; }
.applyView .apThumb button { position:absolute; top:2px; right:2px; width:24px; height:24px; padding:0; border-radius:12px; font-size:14px; line-height:1; }
.applyView .apAdd { font-size:28px; color:var(--muted); cursor:pointer; }
.applyView .apMsg { margin:0; min-height:1.2em; color:#ff8a8a; }
.applyView .apRow { display:flex; gap:10px; } .applyView .apRow button { flex:1; }
.applyView .apStatus { border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--panel2); }
.applyView .apStatus b { font-size:17px; display:block; } .applyView .apStatus.approved b { color:var(--accent); } .applyView .apStatus.rejected b { color:#ff8a8a; }
/* 更多 → 助教申请 / 球馆申请 + 右边官方客服泡泡（负责人 2026-11-15） */
.menu .applyRow { display: flex; align-items: center; gap: 6px; }
.menu .applyRow > div { flex: 1; display: flex; flex-direction: column; gap: inherit; }
.menu #btnApplyCoach { color: #ec4899; }
.menu .applyRow > div > button { padding: 8px 6px; }
.menu .applyRow button { text-align: left; background: transparent; border-color: transparent; }
.menu .applyRow button:hover { background: #2a303a; }
/* 聊天列表下拉刷新提示（负责人 2026-11-15：照微信） */
#chatPtr { flex: none; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; overflow: hidden; font-size: 12px; color: var(--muted); }
#chatPtr[hidden] { display: none; }
/* 助教卡片按钮（负责人 2026-11-15）：发消息绿色、送礼物粉色、点助教只在能用时出现；没开定位时列表顶上红字，点了申请权限 */
.coachActions .actChat { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.coachActions .actGift { background: #ec4899; border-color: #ec4899; color: #fff; font-weight: 600; }
.coachActions .storeBook { background: #f2b632; border-color: #f2b632; color: #2a1d00; font-weight: 600; }
/* 云助教（在线结算）和店内「点助教」区分开：蓝紫色，带云朵（负责人 2026-11-19） */
.coachActions .cloudBook { background: linear-gradient(135deg, #5b8cff, #8a5cff); border-color: transparent; color: #fff; font-weight: 600; }
.coachActions .cloudBook::before { content: '☁ '; }
.remoteView .roCount { margin: 6px 0; font-size: 20px; font-weight: 700; color: #f2b632; text-align: center; }
#chatList .locWarn { display: block; width: 100%; margin: 4px 0 6px; padding: 8px 4px; background: transparent; border: 0; color: #ef4444; font-size: 14px; font-weight: 600; text-align: center; text-decoration: underline; }
/* 助教在线状态（负责人 2026-11-15：加上显示在线状态）与更多里的上班按钮 */
.coachOn { margin-left: 6px; padding: 1px 6px; border-radius: 9px; font-size: 11px; font-weight: 500; color: var(--muted); background: rgba(255,255,255,.08); vertical-align: middle; }
.coachOn.on { color: var(--accent-ink); background: var(--accent); }
/* 上班按钮在助教工作台下方（负责人 2026-11-20） */
#menuMe .meDuty { order: 11; flex: 1 1 100%; margin-top: 2px; padding: 8px; border-radius: 8px; font-weight: 600; }
#menuMe .meDuty.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* 账号通话设置：开关使用系统控件，窄屏可换行且不挤占标题。 */
.callSettings .callPref { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.callSettings input { width: 24px; height: 24px; flex: 0 0 24px; accent-color: var(--accent); }
.callSettings .hint, .callSettings .status { margin: 2px 0; }

/* 聊天图片（照微信）：缩略图按原图比例、无气泡底色和尖角；发送中盖一层进度；没发出去的左边红色感叹号可点重发 */
.imgSend .strip { display: flex; gap: 6px; overflow-x: auto; padding: 14px; }
.imgSend .strip img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; flex: none; }
/* 计分房（负责人 2026-11-17，2026-11-18 改版：头像横排、转分记录占满剩余高度） */
.scoreDlg header .x[data-back] { margin-right: auto; }
.scoreDlg header b { flex: 1; }
.scoreDlg .row { display: flex; gap: 8px; margin-bottom: 10px; }
.scoreDlg .row > * { flex: 1; }
.scoreDlg .row input { flex: 2; }
.scoreDlg h2 { margin: 12px 0 6px; }
.scoreDlg .pos { color: var(--accent); } .scoreDlg .neg { color: var(--danger); }
.scoreDlg .muted { color: var(--muted); font-size: 12px; padding: 4px 0; }
/* 面板固定大小（负责人 2026-11-18：不随记录增加变大，记录滚动显示）。旧 WebView 不认 dvh，先写一行 vh 兜底，否则整条失效、面板跟着内容变高 */
.scoreDlg[open] { display: flex; flex-direction: column; height: min(720px, calc(100vh - 24px)); height: min(720px, calc(100dvh - 24px)); max-height: none; overflow: hidden; }
.scoreDlg [data-home]:not([hidden]) { flex: 1; min-height: 0; overflow-y: auto; }
.scoreDlg [data-room]:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.scoreDlg .scoreMembers { max-height: 34%; overflow-y: auto; }
.scoreDlg.inRoom .status:empty { margin: 4px 0; }
.scoreList, .scoreMembers, .scoreMoves { list-style: none; margin: 0; padding: 0; }
.scoreList li > button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px; min-height: 44px; }
.scoreList b { font-size: 16px; letter-spacing: 1px; }
.scoreList span { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; }
.scoreList em { font-style: normal; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.scoreScan video { display: block; width: 100%; max-height: 42vh; object-fit: cover; background: #000; border-radius: 8px; margin-bottom: 8px; }
.scoreScan button { width: 100%; min-height: 40px; margin-bottom: 10px; }
.scoreBar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.scoreBar .scoreShare { min-height: 32px; padding: 4px 12px; font-size: 13px; border-radius: 16px; }
.scoreBar b { font-size: 18px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.scoreBar small { flex: 1 1 100%; color: var(--muted); font-size: 12px; }
.scoreBar small:empty { display: none; }
.scoreQR { display: block; width: min(200px, 60%); margin: 0 auto 10px; border-radius: 8px; background: #fff; cursor: pointer; }
.scoreMembers { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.scoreMembers li { width: calc((100% - 18px) / 4); }
.scoreMembers li > button { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 6px 2px; min-height: 0; border-radius: 10px; }
.scoreMembers li.me > button { border-color: var(--accent); }
.scoreMembers li.left > button { opacity: .55; }
.scoreMembers img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.scoreMembers span { max-width: 100%; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreMembers em { font-style: normal; font-weight: 700; font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.scoreMembers i { font-style: normal; font-size: 10px; color: var(--muted); }
.scoreMembers button:disabled { opacity: 1; cursor: default; }
.scoreGive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; margin: 8px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); flex: none; }
.scoreGive span { flex: 1 1 100%; font-size: 13px; }
.scoreGive input { flex: 1; min-width: 0; }
.scoreDlg [data-room] h2 { flex: none; }
.scoreMoves { flex: 1; min-height: 80px; overflow-y: auto; padding-right: 6px; }
.scoreMoves li { display: flex; gap: 8px; align-items: baseline; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.scoreMoves li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.scoreMoves li small { color: var(--muted); font-size: 11px; }
/* 计分牌动画图标（负责人 2026-11-18；二改：没进房是原来的静态图标，水上不吐泡泡，水面跟界面统一：
   细线水波用图标同色描边，水体是半透明深色面板色，数字用房间里同样的绿 / 红） */
#btnScore.sbRoom { overflow: hidden; }
#btnScore.sbRoom > svg { display: none; }
.sbadge { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.sbadge[hidden] { display: none; }
.sbWater { position: absolute; left: 0; right: 0; top: 62%; bottom: 0; z-index: 3; background: rgba(130, 170, 210, .16); }
.sbWater::before { content: ''; position: absolute; left: 0; top: -3px; width: 200%; height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 5'%3E%3Cpath d='M0 2.5 Q6 0.5 12 2.5 T24 2.5' fill='none' stroke='%23e8ecf1' stroke-opacity='.75' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 12px 5px;
  animation: sb-wave 2.4s linear infinite; }
.sbNum { position: absolute; left: 50%; z-index: 2; font: 800 19px/1 -apple-system, "PingFang SC", "Helvetica Neue", sans-serif; letter-spacing: -.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sbNum[data-len="3"] { font-size: 16px; } .sbNum[data-len="4"] { font-size: 13px; } .sbNum[data-len="5"] { font-size: 11px; }
/* 立体字：亮面 + 两三层加深的侧面 + 落影，颜色与房间里分数一致 */
.sbadge.up .sbNum { top: 64%; color: var(--accent); text-shadow: 0 1px 0 #2fb36b, 0 2px 0 #238a52, 0 3px 0 #17623a, 0 4px 3px rgba(0,0,0,.5);
  transform: translate(-50%, -100%); animation: sb-float 2.8s ease-in-out infinite; }
.sbadge.down .sbWater { top: 30%; }
.sbadge.down .sbNum { top: 46%; color: var(--danger); text-shadow: 0 1px 0 #d9554a, 0 2px 0 #ad4037, 0 3px 0 #7d2c25, 0 4px 3px rgba(0,0,0,.5);
  transform: translate(-50%, 0); opacity: .85; animation: sb-sink 3.4s ease-in-out infinite; }
.sbBub { position: absolute; z-index: 4; border-radius: 50%; border: 1px solid rgba(232,236,241,.8); background: rgba(232,236,241,.12); }
@keyframes sb-wave { to { transform: translateX(-12px); } }
@keyframes sb-float { 0%, 100% { transform: translate(-50%, -100%) rotate(-3deg); } 50% { transform: translate(-50%, calc(-100% + 1.5px)) rotate(3deg); } }
@keyframes sb-sink { 0%, 100% { transform: translate(-50%, 0) rotate(2deg); } 50% { transform: translate(-50%, 1.5px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .sbWater::before, .sbNum { animation: none !important; } }
/* 比赛模式（负责人 2026-11-27）：图标换成红蓝两个小标，上面是两方当前比分 */
.sbPair { display: none; position: absolute; inset: 5px 4px; gap: 2px; }
.sbadge.duel .sbPair { display: flex; }
.sbadge.duel .sbNum, .sbadge.duel .sbWater { display: none; }
.sbPair b { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: #fff;
  font: 800 13px/1 -apple-system, "PingFang SC", "Helvetica Neue", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.5px; overflow: hidden; }
.sbPair b[data-len="3"] { font-size: 10px; } .sbPair b[data-len="4"] { font-size: 8px; }
.sbPair .red { background: linear-gradient(#e53935, #a01818); } .sbPair .blue { background: linear-gradient(#1e88e5, #0d47a1); }
/* 计分房界面内确认框（负责人 2026-11-18：退出提示不用网页 confirm） */
.scoreAsk { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.55); border-radius: inherit; }
.scoreAsk[hidden] { display: none; }
.scoreAsk > div { width: 100%; max-width: 320px; padding: 20px 18px 16px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.scoreAsk h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; text-align: center; }
.scoreAsk p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; text-align: center; }
.scoreAsk h3:not([hidden]) + p { font-size: 13px; color: var(--muted); }
.scoreAsk [hidden] { display: none !important; }
.scoreAsk input { box-sizing: border-box; width: 100%; height: 44px; margin: -4px 0 18px; padding: 0 12px; border-radius: 10px; background: #15191f; border-color: #343c48; }
.scoreAsk input:focus { outline: none; border-color: var(--accent); }
.scoreAsk .row { margin: 0; gap: 10px; }
.scoreAsk .row button { min-height: 44px; border-radius: 10px; font-size: 15px; }
.scoreAskMenu { display: flex; flex-direction: column; margin-top: 8px; }
.scoreAskMenu button { min-height: 48px; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 16px; }
.scoreAskMenu button.danger { color: var(--danger); }
.scoreAskMenu button:last-child { color: var(--muted); }

/* 助教工作台入口与面板（负责人 2026-11-18） */
.coachDesk { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; margin:4px 0 12px; }
.coachDesk button { padding:12px 8px; border-radius:12px; border:1px solid var(--line); background:var(--panel2); font-size:14px; text-align:left; }
.deskView .deskVisitor { display:flex; align-items:center; gap:10px; width:100%; padding:8px; border:1px solid var(--line); border-radius:12px; background:var(--panel2); text-align:left; }
.deskView .deskVisitor img { width:40px; height:40px; border-radius:50%; object-fit:cover; flex:none; }
.deskView .deskVisitor > span { flex:1; min-width:0; display:flex; flex-direction:column; }
.deskView .deskVisitor small { color:var(--muted); }
.deskView .deskSwitch { display:flex; gap:8px; align-items:center; }
.deskView h3 { margin:6px 0 0; }

.deskView .dskSlider { display:flex; flex-direction:column; gap:4px; margin:8px 0; }
.deskView .dskHead { display:flex; justify-content:space-between; }
.deskView .dskVal { color:var(--accent); }
.deskView .dskSlider input[type=range] { width:100%; }

/* ---------- 统一表单样式（负责人 2026-11-19：「界面太乱……都要求做UI美化，不要做的像草稿。以后所有的工作都需要按商用标准来做」）----------
   分组卡片 .fmSec（小标题 h4）、字段 .fmField（标题在上、说明在下、可带单位和字数）、开关 .fmSwitch、相片格 .fmPhotos、
   提示条 .fmNote、入口行 .fmLink、底部固定保存条 .fmBar。新做的表单都用这一套，不再裸放输入框。 */
.fm { display:flex; flex-direction:column; gap:14px; padding-bottom:4px; }
.fm[hidden], .fmSec[hidden], .fmField[hidden] { display:none; }
.fmSec { margin:0; background:var(--panel2); border:1px solid var(--line); border-radius:16px; padding:14px 14px 16px; display:flex; flex-direction:column; gap:14px; }
.fmSec > h4 { margin:0 0 -4px; font-size:13px; font-weight:600; color:var(--muted); letter-spacing:.04em; }
.fmField { display:flex; flex-direction:column; gap:6px; margin:0; }
.fmField > span { font-size:14px; color:#cfd5dd; display:flex; justify-content:space-between; gap:8px; }
.fmField > span em { margin-left:auto; font-style:normal; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.fmField small { font-size:12px; color:var(--muted); line-height:1.5; }
.fmField input:not([type=checkbox]):not([type=range]):not([type=file]), .fmField textarea, .fmField select {
  width:100%; box-sizing:border-box; font-size:16px; line-height:1.4; padding:10px 12px; border-radius:10px;
  background:#15191f; border:1px solid #343c48; color:var(--text); transition:border-color .15s, box-shadow .15s; }
.fmField textarea { resize:vertical; min-height:96px; }
.fmField input:focus, .fmField textarea:focus, .fmField select:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(61,220,132,.18); }
.fmField input::placeholder, .fmField textarea::placeholder { color:#5f6876; }
.fmUnit { position:relative; } .fmUnit input { padding-right:84px !important; }
.fmUnit > i { position:absolute; right:12px; top:50%; transform:translateY(-50%); font-style:normal; font-size:14px; color:var(--muted); pointer-events:none; }
.fmRow2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width: 360px) { .fmRow2 { grid-template-columns:1fr; } }
.fmSwitch { display:flex; align-items:center; gap:12px; cursor:pointer; }
.fmSwitch > div { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.fmSwitch b { font-size:15px; font-weight:500; } .fmSwitch small { font-size:12px; color:var(--muted); line-height:1.5; }
.fmSwitch input { appearance:none; -webkit-appearance:none; flex:none; width:46px; height:28px; margin:0; border-radius:14px; background:#3a424e; position:relative; cursor:pointer; transition:background .2s; }
.fmSwitch input::after { content:''; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.4); transition:transform .2s; }
.fmSwitch input:checked { background:var(--accent); } .fmSwitch input:checked::after { transform:translateX(18px); }
.fmSwitch input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.fmPhotos { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.fmPhotos .ph, .fmPhotos .phAdd { position:relative; width:auto; height:auto; aspect-ratio:1; border-radius:12px; overflow:hidden; background:#15191f; }
.fmPhotos .ph img { width:100%; height:100%; object-fit:cover; display:block; }
.fmPhotos .ph em { position:absolute; left:0; right:0; bottom:0; padding:2px 0; font-size:11px; font-style:normal; text-align:center; background:rgba(0,0,0,.6); color:#ffd479; }
.fmPhotos .ph button { position:absolute; top:4px; right:4px; width:24px; height:24px; padding:0; border:0; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; font-size:15px; line-height:24px; }
.fmPhotos .phAdd { border:1.5px dashed #46505e; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--muted); font-size:26px; line-height:1; padding:0; }
.fmPhotos .phAdd small { font-size:11px; }
.fmPhotos .vid { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-style:normal; font-size:13px; color:var(--muted); }
.fmNote { display:flex; gap:8px; align-items:flex-start; padding:10px 12px; border-radius:12px; font-size:13px; line-height:1.5; background:rgba(255,176,32,.1); border:1px solid rgba(255,176,32,.35); color:#ffd28a; }
.fmLink { display:flex; align-items:center; justify-content:space-between; width:100%; padding:12px 14px; border-radius:14px; border:1px solid var(--line); background:var(--panel2); font-size:15px; text-align:left; }
.fmLink small { display:block; font-size:12px; color:var(--muted); margin-top:2px; } .fmLink::after { content:'›'; font-size:22px; color:var(--muted); margin-left:8px; }
.fmBar { position:sticky; bottom:calc(-24px - env(safe-area-inset-bottom)); margin:4px -14px calc(-24px - env(safe-area-inset-bottom)); padding:12px 14px calc(12px + env(safe-area-inset-bottom));
  background:linear-gradient(to top, var(--bg) 78%, rgba(16,19,23,0)); display:flex; flex-direction:column; gap:6px; z-index:2; }
.fmBar button.primary { width:100%; padding:13px; font-size:16px; font-weight:600; border-radius:12px; }
.fmBar .status { margin:0; min-height:1.2em; text-align:center; font-size:13px; color:var(--accent); } .fmBar .status.bad { color:#ff8a8a; }
.fmActions { display:flex; gap:10px; } .fmActions button { flex:1; padding:11px; border-radius:12px; font-size:15px; }
.fm .feed:empty::before { content:'还没有内容'; color:var(--muted); font-size:13px; }

/* 助教工作台首页：头部名片 + 功能卡片（负责人 2026-11-19 美化） */
.deskHero { display:flex; align-items:center; gap:12px; padding:14px; border-radius:16px; background:linear-gradient(135deg, rgba(61,220,132,.16), rgba(61,220,132,.04)); border:1px solid rgba(61,220,132,.25); }
.deskHero img { width:52px; height:52px; border-radius:50%; object-fit:cover; background:#2a303a; flex:none; }
.deskHero div { display:flex; flex-direction:column; gap:2px; min-width:0; } .deskHero b { font-size:17px; } .deskHero small { color:var(--muted); font-size:12px; }
.coachDesk button { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:14px 12px; min-height:96px; border-radius:16px; text-align:left; background:var(--panel2); border:1px solid var(--line); transition:border-color .15s, transform .1s; }
.coachDesk button:active { transform:scale(.98); } .coachDesk button:hover { border-color:#3d4654; }
.coachDesk button i { font-style:normal; font-size:20px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#15191f; margin-bottom:4px; }
.coachDesk button b { font-size:15px; font-weight:600; } .coachDesk button small { font-size:12px; color:var(--muted); }
.deskTip { text-align:center; }
.deskView .fmSec .dskSlider { margin:0; } .deskView .dskHead span { font-size:14px; color:#cfd5dd; } .deskView .dskVal { font-weight:600; }
.fm input[type=range] { accent-color:var(--accent); height:28px; }
.deskView .dskCalls { display:flex; flex-direction:column; gap:14px; } .deskView .dskCalls[hidden] { display:none; }

/* 入驻申请表单统一成表单样式（负责人 2026-11-19 美化） */
.applyView .apBody { gap:14px; }
.applyView .apStep { align-self:flex-start; padding:4px 10px; border-radius:999px; background:rgba(61,220,132,.12); border:1px solid rgba(61,220,132,.3); font-size:13px; }
.applyView .apField > span { font-size:14px; color:#cfd5dd; display:flex; justify-content:space-between; gap:8px; }
.applyView .apField > span em { margin-left:auto; font-style:normal; font-size:12px; color:var(--muted); }
.applyView .apField input:not([type=checkbox]):not([type=file]), .applyView .apField textarea, .applyView .apField select {
  width:100%; box-sizing:border-box; font-size:16px; line-height:1.4; padding:10px 12px; border-radius:10px; background:#15191f; border:1px solid #343c48; color:var(--text); }
.applyView .apField input:focus, .applyView .apField textarea:focus, .applyView .apField select:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(61,220,132,.18); }
.applyView .apField input::placeholder, .applyView .apField textarea::placeholder { color:#5f6876; }
.applyView .apLoc { align-self:flex-start; padding:10px 14px; border-radius:10px; }
.applyView .apPicks { gap:16px; }
.applyView .apLabel { font-size:14px; color:#cfd5dd; }
.applyView .apThumbs { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px; }
.applyView .apThumb, .applyView .apAdd { width:auto; height:auto; aspect-ratio:1; border-radius:12px; }
.applyView .apMsg:empty { display:none; }
.applyView .apRow { position:sticky; bottom:calc(-24px - env(safe-area-inset-bottom)); margin:0 -14px calc(-24px - env(safe-area-inset-bottom)); padding:12px 14px calc(12px + env(safe-area-inset-bottom));
  background:linear-gradient(to top, var(--bg) 78%, rgba(16,19,23,0)); z-index:2; }
.applyView .apRow button { padding:13px; font-size:16px; border-radius:12px; } .applyView .apRow button.primary { font-weight:600; }
.applyView .addrPick select, .applyView .addrPick input { width:100%; box-sizing:border-box; font-size:16px; padding:10px 12px; border-radius:10px; background:#15191f; border:1px solid #343c48; color:var(--text); }
.applyView .addrPick select { flex:1 1 30%; }
.applyView .apAdd { border:1.5px dashed #46505e; background:#15191f; }
.fmSec > .status:empty { display:none; }
/* 订单评价、助教成单数和好评率（负责人 2026-11-19） */
.cpStats, .rvStats { margin: 6px 0; font-size: 14px; color: #f2b632; font-weight: 600; }
.rvStars { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.rvStars > span { min-width: 64px; font-size: 14px; }
.rvStars [data-n] { background: none; border: 0; padding: 2px 3px; font-size: 26px; line-height: 1; color: #6b6f7a; cursor: pointer; min-width: 36px; min-height: 36px; }
.rvStars [data-n].on { color: #f2b632; }
.rvStars small { color: #aab; }
.rvVerdict { display: flex; gap: 8px; margin: 12px 0; }
.rvVerdict button { flex: 1; padding: 10px 0; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font-size: 15px; }
.rvVerdict button.on[data-v="good"] { background: #e84a5f; border-color: #e84a5f; color: #fff; }
.rvVerdict button.on[data-v="mid"] { background: #f2b632; border-color: #f2b632; color: #222; }
.rvVerdict button.on[data-v="bad"] { background: #6b6f7a; border-color: #6b6f7a; color: #fff; }
.rvItem { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rvItem .rvHead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.rvItem .rvStar { color: #f2b632; letter-spacing: 1px; }
.rvItem small { color: #99a; }
.rvItem p { margin: 8px 0 0; line-height: 1.55; }
.rvTag { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; color: #fff; background: #6b6f7a; }
.rvTag.good { background: #e84a5f; } .rvTag.mid { background: #f2b632; color: #222; }
.rvImgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; max-width: 360px; }
.rvImgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: rgba(255,255,255,.06); cursor: zoom-in; }
.rvReply { background: rgba(255,255,255,.06); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.rvReplyBtn, .rvMore { margin: 6px 0 4px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font-size: 13px; }
.rvMore { display: block; width: 100%; }
/* 云助教通话里的上课计时 */
.roTimer { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%); z-index: 5; padding: 6px 14px; border-radius: 999px; background: rgba(20,22,30,.72); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; backdrop-filter: blur(6px); }
.reviewView .apAdd, .reviewView .apThumb { width: 84px; height: 84px; }
.rvMore[hidden] { display: none; }
/* 点助教服务中 / 结单（负责人 2026-11-20） */
.coachActions .storeBook.serving { background: #1f4d33; border-color: #2f7a50; color: #7ff0b0; opacity: 1; font-weight: 600; }
.coachActions .storeDone { background: #e84a5f; border-color: transparent; color: #fff; font-weight: 600; }
.storeOrder .storeServing { color: #7ff0b0; font-weight: 600; }
.meServing { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #1f4d33; color: #c9f7dc; font-size: 13px; }
.meServing span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.meServing button { flex: none; background: #e84a5f; border-color: transparent; color: #fff; font-weight: 600; padding: 6px 14px; }
#menuMe .meServing { order: 11; flex: 1 1 100%; margin-top: 0; }
.meServing[hidden] { display: none; }   /* 负责人 2026-11-20：没在服务时不能露出空的绿色条 */
/* 更多 → 当前可用积分、我的订单（负责人 2026-11-20）；红色数字同聊天未读 */
.redNum { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e0452f; color: #fff; font-size: 11px; font-weight: 600; line-height: 1; font-style: normal; box-sizing: border-box; }
.redNum[hidden] { display: none; }
#btnOpts { position: relative; } #optsOrd { position: absolute; top: -3px; right: -3px; pointer-events: none; box-shadow: 0 0 0 2px var(--bg); }
#menuMe .mePoints, #menuMe .meOrders { order: 9; flex: 1 1 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; text-align: left; font-size: 14px; white-space: normal; }
#menuMe .mePoints span, #menuMe .meOrders span { flex: none; } #menuMe .mePoints small, #menuMe .meOrders small { margin-left: auto; color: var(--muted); font-size: 12px; }
#menuMe .mePoints b { font-size: 16px; color: #ffcf5c; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#menuMe .meOrders { font-weight: 600; }
/* 我的订单面板 */
.myOrders .moTabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 10px 14px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-width: 612px; width: calc(100% - 28px); align-self: center; box-sizing: border-box; }
.myOrders .moTabs button { border: 0; border-radius: 0; background: var(--panel2); color: var(--muted); padding: 10px 4px; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.myOrders .moTabs button + button { border-left: 1px solid var(--line); } .myOrders .moTabs button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.myOrders .moTabs i { font-style: normal; font-size: 12px; opacity: .85; } .myOrders .moTabs i:empty { display: none; }
.moCard { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--panel2); display: flex; flex-direction: column; gap: 10px; }
.moCard.st-accepted { border-color: rgba(61,220,132,.5); } .moCard.st-pending { border-color: rgba(255,176,32,.55); }
.moTop { display: flex; gap: 12px; align-items: flex-start; }
.moAva { flex: none; width: 56px; height: 70px; border-radius: 10px; object-fit: cover; background: #2a303a; } .moIco { display: flex; align-items: center; justify-content: center; font-size: 26px; }
.moMain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.moLine { display: flex; align-items: center; gap: 8px; } .moLine b { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.moSt { flex: none; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); }
.st-accepted .moSt { background: rgba(61,220,132,.16); color: #7ff0b0; } .st-pending .moSt { background: rgba(255,176,32,.16); color: #ffc65c; }
.moKind { color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; } .moPrice { color: #ffd479; font-size: 13px; }
.moTime { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.18); }
.moTime > div { padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .moTime > div + div { border-left: 1px solid var(--line); }
.moTime small { font-size: 11.5px; color: var(--muted); } .moTime b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moTime.live { border-color: rgba(61,220,132,.45); } .moTime.live > div:nth-child(n+2) b { color: #7ff0b0; }
.moWhen { margin: 0; font-size: 13px; color: var(--muted); }
.moGo { align-self: stretch; padding: 9px; border-radius: 10px; font-size: 14px; }
.moMore { padding: 10px; border-radius: 10px; }
.moEmpty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 16px; text-align: center; color: var(--muted); } .moEmpty b { font-size: 16px; color: var(--text); }
/* 点单选台号（负责人 2026-11-20：「点单时要提示用户选择台号」）：没选时橙色框和提示，点下单没选就抖一下 */
.storeTablePick { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; }
.storeTablePick.need { border-color: rgba(255,176,32,.7); background: rgba(255,176,32,.08); }
.storeTableTip { font-size: 12px; color: var(--muted); } .storeTablePick.need .storeTableTip { color: #ffc65c; }
.storeTablePick.shake { animation: tblShake .4s; }
@keyframes tblShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .storeTablePick.shake { animation: none; } }
.apNeed { margin-left: 6px; padding: 1px 7px; border-radius: 8px; font-size: 11px; font-weight: 500; color: #ffb4a8; background: rgba(224,69,47,.16); vertical-align: middle; }
.coachCard .coachName .coachOn { margin-left: 0; }   /* 名字长换行后标签靠左对齐 */
/* 助教卡片：照片下方放成单数和好评率（负责人 2026-11-20） */
.coachCard .avaCol { flex: none; display: flex; flex-direction: column; gap: 8px; width: 92px; }
.coachCard .coachStat { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.coachCard .coachStat > span { display: flex; flex-direction: column; align-items: center; padding: 5px 0 4px; border-radius: 8px; background: rgba(255,255,255,.05); line-height: 1.15; }
.coachCard .coachStat b { font-size: 15px; font-weight: 700; color: #f2b632; }
.coachCard .coachStat small { font-size: 11px; color: var(--muted); white-space: nowrap; }
/* 我的店内订单：联系助教（绿）和结单（红）一排（负责人 2026-11-20） */
.storeOrder .storeActs { display: flex; gap: 8px; margin-top: 8px; }
.storeOrder .storeActs button { flex: 1; min-height: 40px; font-weight: 600; border-color: transparent; }
.storeOrder .storeChat { background: var(--accent); color: var(--accent-ink); }
.storeOrder .storeDone { background: #e84a5f; color: #fff; }
.coachOn.serving { background: #1f4d33; color: #7ff0b0; }   /* 当前服务中（负责人 2026-11-20） */
/* 三方登录入口（负责人 2026-11-22）：分隔线 + 一排按钮，以后加平台只加按钮 */
.chatLogin .lgThird { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.chatLogin .lgThird > span { display: flex; align-items: center; gap: 10px; color: var(--muted, #8a9099); font-size: 12px; }
.chatLogin .lgThird > span::before, .chatLogin .lgThird > span::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.chatLogin .lgThird > div { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.chatLogin .lgT { padding: 0; border: 0; background: transparent; line-height: 0; }
.chatLogin .lgT img { width: 44px; height: 44px; border-radius: 10px; }
.chatLogin .lgT:disabled { opacity: .5; }
/* 按需加载的解球原理网页 */
#lessonWindow { box-sizing:border-box; width:min(100%, 720px); height:min(740px, 100%); max-width:none; max-height:100%; margin:auto; padding:0; border:0; background:#132322; color:#edf7f3; }
#lessonWindow::backdrop { background:#0a1111e8; }
#lessonWindow[open] { display:grid; grid-template-rows:auto minmax(0, 1fr); }
#lessonWindow > header { display:flex; justify-content:space-between; align-items:center; padding:8px 16px; gap:12px; border-bottom:1px solid #315047; }
#lessonWindow > header h2 { margin:0; font-size:1.1rem; }
#lessonWindow > header small { display:block; color:#a8c2b7; font-size:.7rem; font-weight:normal; }
#lessonWindow > header button { min-height:44px; padding:6px 14px; }
#lessonWindow > iframe, #lessonWindow > section { grid-row:2; grid-column:1; }
#lessonWindow iframe { display:block; width:100%; height:100%; border:0; }
#lessonWindow [hidden] { display:none; }
#lessonWindow > section .loadRing { margin: 24px auto 8px; }
#lessonWindow section { padding:16px; }
/* 3D 球台后台加载进度（负责人 2026-11-26：界面先出，3D 单独进度条）：放在 #view3d 里，被所有界面层盖住 */
#load3d { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 220px; text-align: center; color: #8b949e; font-size: 13px; pointer-events: none; }
#load3d i { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
#load3d b { display: block; height: 100%; width: 0; background: #3ddc84; transition: width .15s linear; }

/* ---- 残局页（负责人 2026-11-26）：收起其他功能按钮，只留视角、聊天泡泡和返回；顶部我的 / 推荐，右侧点赞、收藏、转发、排行 ---- */
body.endgame .bar.tl > :not(.pop), body.endgame #btnFav, body.endgame #marquee { display: none !important; }
#viewPick #btnFav { margin-top: 2px; } #viewPick #btnFav[hidden], #viewPick #btnBalls[hidden] { display: none; }
#egUi .egTabs { position: fixed; top: 18px; left: 0; right: 64px; justify-content: safe center; z-index: var(--z-ui); display: flex; gap: clamp(6px, 2.2vw, 16px); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }   /* right：让出右上角返回按钮；六个菜单（2026-11-28 加竞技场）窄屏缩字距、字号，再放不下可横向滚，不切掉第一个 */
#egUi .egTabs button { background: none; border: 0; padding: 4px 2px; font-size: clamp(13px, 3.7vw, 17px); font-weight: 600; color: rgba(255,255,255,.62); text-shadow: 0 1px 4px rgba(0,0,0,.7); border-bottom: 2px solid transparent; border-radius: 0; }
#egUi .egTabs button.on { color: #fff; border-bottom-color: #fff; }
/* 浏览时左下一块（负责人 2026-11-28「玩法应该在用户信息文字的上方显示，不要放在顶部」）：玩法在上、发布者在下，整块在圆形挑战按钮上方，互不遮挡 */
#egUi .egLeft { position: fixed; left: 12px; bottom: calc(110px + env(safe-area-inset-bottom)); z-index: var(--z-ui); display: flex; flex-direction: column; gap: 6px; max-width: calc(100vw - 96px); pointer-events: none; }
#egUi .egInfo { margin: 0; text-align: left; white-space: pre-line; font-size: 13px; color: #e8ecf1; text-shadow: 0 1px 4px rgba(0,0,0,.8); pointer-events: none; }
#egUi .egInfo:empty { display: none; }
/* 发布者信息（负责人 2026-11-27「像抖音」）：左下角，挑战按钮上方；挑战、回放时收起，免得挡住瞄准条 */
#egUi .egUser { display: flex; align-items: flex-start; gap: 8px; pointer-events: none; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.85); }
#egUi .egUser[hidden], body:not(.egBrowse) #egUi .egUser, body.egPlaying #egUi .egUser { display: none; }
#egUi .egUser img { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #5b6470; }
#egUi .egUser p { margin: 0; min-width: 0; font-size: 13px; line-height: 1.5; }
#egUi .egUser b, #egUi .egUser .egRow { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 负责人 2026-11-28：发布时间跟在地点后面，地点太长截断加省略号，时间始终露出来 */
#egUi .egUser .egWhere { display: flex; gap: 6px; white-space: nowrap; }
#egUi .egUser .egWhere > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#egUi .egUser .egWhere i { flex: none; font-style: normal; opacity: .85; }
#egUi .egUser .egVenue, #egUi .egUser .egPos, #egUi .egUser .egBest { pointer-events: auto; color: #8fd3ff; text-decoration: underline; cursor: pointer; }
#egUi .egUser b { font-size: 16px; } #egUi .egUser small { font-size: 12px; opacity: .8; }
#egUi .egRail { position: fixed; right: 10px; top: 52%; transform: translateY(-50%); z-index: var(--z-ui); display: flex; flex-direction: column; gap: 14px; }
#egUi .egRail[hidden], #egUi .egRail button[hidden] { display: none; }
/* 负责人 2026-11-28「右侧边的这些按钮的出现很突兀，改成动画从屏幕外滑入。这个速度要快。出的时候也要划出」：显示 / 隐藏都从右边滑（不支持 @starting-style 的旧内核照旧直接出现） */
#egUi .egRail { transition: translate .18s ease-out, display .18s allow-discrete; }
@starting-style { #egUi:not(.egLeaving) .egRail { translate: calc(100% + 24px) 0; } }
#egUi .egRail[hidden], #egUi .egRail.out, body.egPlaying #egUi .egRail, body.endgame:not(.egBrowse) #egUi .egRail, body.stance #egUi .egRail { translate: calc(100% + 24px) 0; }
@media (prefers-reduced-motion: reduce) { #egUi .egRail { transition: none; } }
#egUi .egRail button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 0; color: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); }
#egUi .egRail small { font-size: 11.5px; }
#egUi .egRail [data-act=like].on { color: #fe2c55; } #egUi .egRail [data-act=like].on path { fill: currentColor; }
#egUi .egRail [data-act=fav].on { color: #ffc300; } #egUi .egRail [data-act=fav].on path { fill: currentColor; }
#egUi .egEmpty { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: var(--z-ui); width: min(320px, calc(100vw - 48px)); margin: 0; padding: 16px; border-radius: 12px; background: rgba(24,28,34,.9); text-align: center; line-height: 1.6; }
#egUi .egWait { animation: egWaitIn .25s .6s both; } /* 加载提示晚 0.6 秒才淡入：很快加载完就不出现，不闪（负责人 2026-11-28「不要出现任何一闪而过的情况」） */
@keyframes egWaitIn { from { opacity: 0; } }
.egRank { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 1600; width: min(460px, 100vw); max-height: 70vh; overflow-y: auto; padding: 0 14px 14px; background: rgba(24,28,34,.97); border: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
.egRank header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 8px; background: inherit; }
/* 回放通关记录：底部显示这一杆的打点（母球红点）、杆法和力度；回放时收起瞄准 / 出杆和右侧按钮，免得和回放的球混在一起 */
#egUi .egPlay { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: var(--z-ui); display: flex; align-items: center; gap: 10px; width: min(440px, calc(100vw - 20px)); padding: 8px 10px; background: rgba(24,28,34,.92); border: 1px solid var(--line); border-radius: 12px; }
#egUi .egPlay[hidden] { display: none; }
#egUi .egSpeed { display: flex; align-items: center; gap: 4px; } #egUi .egSpeed input { width: 80px; accent-color: var(--accent); } #egUi .egSpeed b { min-width: 2.6em; font-size: 13px; }
#egUi .egPlay p { flex: 1; margin: 0; white-space: pre-line; font-size: 13px; line-height: 1.5; }
/* 挑战 = 红色圆形按钮，字和剩余次数写在圆中间（负责人 2026-11-28「改成之前的，把字写在中间…字不可以被选取」）；去掉点按高亮和焦点框（「方形的蓝色虚影框」） */
#egUi .egGo { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: var(--z-ui); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 76px; height: 76px; padding: 0; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; background: #fe2c55; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.2; text-align: center; box-shadow: 0 3px 12px rgba(0,0,0,.45); outline: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#egUi .egGo > * { pointer-events: none; } /* 点按永远落在按钮本身：里面的文字被重画时也不丢这次点击（负责人 2026-11-28「第一次点挑战，无法进入」） */
#egUi .egGo small { display: block; font-size: 11px; font-weight: 500; }
#egUi .egGo:active { transform: translateX(-50%) scale(.92); }
#egUi .egGo[hidden], body.egPlaying #egUi .egGo { display: none; }
#egUi .egGo:disabled { opacity: 1; background: #555b66; box-shadow: none; }
body.egBrowse #aimBar, body.egBrowse #shotPanel, body.endgame #ballList select, body.endgame #ballList button { display: none !important; } /* 浏览时不出杆；残局里球列表只看不改 */
body.egPlaying #aimBar, body.egPlaying #shotPanel, body.egPlaying #egUi .egRail, body.endgame:not(.egBrowse) #egUi .egRail { display: none !important; } /* 负责人 2026-11-27：进入挑战后点赞、评论、收藏、转发等一列都藏起，只留聊天泡泡 */
.egRank .egBtns { display: flex; gap: 8px; } .egRank .egBtns button { flex: 1; }
.egRank li button { float: right; margin: -2px 8px 0 0; padding: 2px 10px; font-size: 12px; }
.egRank .x { background: none; border: 0; font-size: 22px; color: #c7cdd6; }
.egRank .egWin { margin: 4px 0; font-size: 18px; font-weight: 700; color: #ffc300; text-align: center; }
.egRank .egMe { margin: 4px 0 8px; color: var(--muted); font-size: 13px; } .egRank .egMe:empty { display: none; }
.egRank ol { margin: 0 0 12px; padding-left: 26px; } .egRank li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
/* 练球场景列表：整行可点，名字一行、说明一行 */
.egRank li button[data-i] { float: none; display: block; width: 100%; margin: 0; padding: 2px 0; text-align: left; background: none; border: 0; color: inherit; font-size: 15px; } .egRank li button[data-i] small { display: block; margin-top: 2px; font-size: 12px; }
#egUi .egUser .egRow.egTip { white-space: normal; }   /* 练球场景的练法说明可以折行 */
.egRank li b { margin-right: 6px; } .egRank li small { color: var(--muted); } .egRank li span { float: right; font-weight: 700; color: #ffc300; } .egRank li.me { color: #ffc300; } .egRank li.muted { color: var(--muted); list-style: none; }
.egRank .egAgain { width: 100%; }
/* 通关界面（B 礼炮齐鸣停留）：按钮与「挑战成功」同一套金红配色 */
.egWinFull { position: fixed; inset: 0; z-index: 1600; }
.egWinFull canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.egWinAva { position: absolute; border-radius: 50%; border: 3px solid #ffd84a; box-shadow: 0 0 0 2px #fe2c55, 0 0 18px rgba(255,216,74,.8); object-fit: cover; background: #222; pointer-events: none; }
.egWinFull .x { position: absolute; top: calc(env(safe-area-inset-top) + 10px); right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: 24px; }
.egWinUi { position: absolute; left: 0; right: 0; padding: 0 16px; text-align: center; opacity: 0; transform: translateY(24px); transition: opacity .45s, transform .45s cubic-bezier(.2,1.4,.4,1); pointer-events: none; }
.egWinUi.on { opacity: 1; transform: none; pointer-events: auto; }
.egWinScore { margin: 0; font: italic 900 22px/1.3 -apple-system,"PingFang SC",sans-serif; color: #ffd84a; text-shadow: 0 0 2px #fe2c55, 0 2px 0 #b3123a, 0 4px 12px rgba(0,0,0,.6); }
.egWinNote { margin: 4px 0 0; color: #fff3c4; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.8); } .egWinNote:empty { display: none; }
.egWinBtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.egWinBtns button { position: relative; overflow: hidden; min-width: 76px; padding: 12px 14px; white-space: nowrap; border: 2px solid #fe2c55; border-radius: 999px; background: linear-gradient(#fff6c0, #ffc61a); color: #8a2a00; font: italic 900 16px -apple-system,"PingFang SC",sans-serif; box-shadow: 0 4px 0 #b8860b, 0 8px 18px rgba(0,0,0,.45); }
.egWinBtns button.primary { background: linear-gradient(#ff6d8a, #fe2c55); color: #fff; border-color: #ffd400; box-shadow: 0 4px 0 #a3102f, 0 8px 18px rgba(0,0,0,.45); }
.egWinBtns button:active { transform: translateY(3px); box-shadow: 0 1px 0 #b8860b; }
.egWinBtns button::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: egWinShine 2.4s ease-in-out infinite; }
.egWinBtns button:nth-child(2)::after { animation-delay: .4s; } .egWinBtns button:nth-child(3)::after { animation-delay: .8s; }
@keyframes egWinShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .egWinBtns button::after { animation: none; } .egWinUi { transition: none; } }
/* 提示框（重试、退出、通关排行）放在上面，紧接在玩法 / 复盘提示下方，不放底部（负责人 2026-11-28「提示框必须放在上面，不能放在下面」）；评论仍是底部抽屉 */
.egRank.gameLayer { top: calc(var(--aim-b, 60px) + 8px); bottom: auto; max-height: calc(100vh - var(--aim-b, 60px) - 24px); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.egCmt { display: flex; flex-direction: column; height: 70vh; padding-bottom: 0; overflow: hidden; }
.egCmt header { justify-content: center; position: relative; } .egCmt header .x { position: absolute; right: 0; }
.egCmt ul { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.egCmt li { display: flex; gap: 10px; padding: 8px 0; } .egCmt li.muted { justify-content: center; color: var(--muted); font-size: 13px; padding: 24px 0; }
.egCmt li img { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: cover; background: #5b6470; }
.egCmt li > div { flex: 1; min-width: 0; } .egCmt li small { color: var(--muted); font-size: 12px; } .egCmt li a { color: var(--muted); }
.egCmt li em { margin-left: 6px; padding: 0 4px; border-radius: 3px; background: #fe2c55; color: #fff; font-style: normal; font-size: 10px; }
.egCmt li p { margin: 3px 0; font-size: 14px; line-height: 1.45; word-break: break-word; } .egCmt li p b { font-weight: normal; color: var(--muted); }
.egCmt li > button { flex: none; display: flex; flex-direction: column; align-items: center; align-self: flex-start; background: none; border: 0; padding: 4px 0 0; color: var(--muted); }
.egCmt li > button svg { width: 18px; height: 18px; } .egCmt li > button.on { color: #fe2c55; } .egCmt li > button.on path { fill: currentColor; }
.egCmt .egSay { display: flex; gap: 8px; padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); }
.egCmt .egSay input { flex: 1; min-width: 0; border-radius: 18px; padding: 8px 14px; }
.scoreMode { display: flex; align-items: center; gap: 8px; margin: 6px 0; } .scoreMode small { color: var(--muted); font-size: 12px; }
.scoreMode .seg { flex: none; } .scoreMode .seg button { white-space: nowrap; padding: 6px 10px; }   /* 说明文字长时按钮不被挤成竖排 */
/* 比赛模式（负责人 2026-11-27）：记分模式两人时红蓝两方，头像在上、大号比分，上下滑改分 */
/* 比赛模式选项（负责人 2026-11-27「横屏显示」+「屏幕常亮」）：两颗等宽开关，左边小拨钮，开着时整颗高亮 */
.scoreOpts { display: flex; gap: 8px; flex: none; margin: 2px 0 6px; } .scoreOpts[hidden] { display: none; }
.scoreOpts button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 6px; border-radius: 20px; font-size: 13px; }
.scoreOpts button::before { content: ''; flex: none; width: 28px; height: 16px; border-radius: 8px; background: radial-gradient(circle at 8px 50%, #fff 5px, transparent 5.5px) rgba(255,255,255,.22); transition: background-position .15s; }
.scoreOpts button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.scoreOpts button.on::before { background: radial-gradient(circle at 20px 50%, #fff 5px, transparent 5.5px) rgba(0,0,0,.3); }
.scoreLandX { display: none; }
.scoreMatch { display: flex; gap: 8px; flex: none; margin: 4px 0; }
.scoreMatch .side[hidden] { display: none; }
.scoreMatch .side { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; color: #fff; touch-action: none; user-select: none; -webkit-user-select: none; cursor: ns-resize; }
.scoreMatch .red { background: linear-gradient(#e53935, #a01818); } .scoreMatch .blue { background: linear-gradient(#1e88e5, #0d47a1); }
.scoreMatch img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.8); pointer-events: none; }
.scoreMatch span { max-width: 100%; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoreMatch b { font-size: 64px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums;  position: relative; display: block; padding: 4px 12px; border-radius: 8px; background: rgba(0,0,0,.28); perspective: 260px; }
/* 翻页比分牌（负责人 2026-11-27）：每个数字分上下两半，旧页翻过中缝换成新页 */
.scoreMatch b .sp { visibility: hidden; text-decoration: none; }
.scoreMatch b i { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; font-style: normal; }
.scoreMatch b i.u { top: 0; transform-origin: bottom; } .scoreMatch b i.l { bottom: 0; transform-origin: top; }
.scoreMatch b s { position: absolute; left: 0; right: 0; top: 0; height: 200%; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.scoreMatch b i.l s { top: -100%; }
.scoreMatch b::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(0,0,0,.45); }
.scoreMatch .red b i.f1, .scoreMatch .red b i.f2 { background: #b42020; } .scoreMatch .blue b i.f1, .scoreMatch .blue b i.f2 { background: #1257a8; }
.scoreMatch b.fd i.f1 { animation: sbFlipD .16s ease-in forwards; } .scoreMatch b.fd i.f2 { animation: sbFlipU2 .16s .16s ease-out both; }
.scoreMatch b.fu i.f1 { animation: sbFlipU .16s ease-in forwards; } .scoreMatch b.fu i.f2 { animation: sbFlipD2 .16s .16s ease-out both; }
@keyframes sbFlipD { to { transform: rotateX(-90deg); } } @keyframes sbFlipU2 { from { transform: rotateX(90deg); } }
@keyframes sbFlipU { to { transform: rotateX(90deg); } } @keyframes sbFlipD2 { from { transform: rotateX(-90deg); } }
.scoreMatch small { font-size: 11px; opacity: .85; min-height: 1.2em; }
/* 比赛模式横屏（负责人 2026-11-27）：手机横放（score.js 判断，class full）或开了「横屏显示」时全屏只留红蓝比分牌，比分在中间、头像在两边，其他都不显示。
   尺寸用容器单位：网页 / 小程序 / 旧壳没法真转屏，整块转 90° 显示（class rot），vw/vh 会对调。旧 WebView 不认 cq 单位，先写 vw/vh 兜底 */
.scoreDlg.full[open] { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #000; container-type: size; }
.scoreDlg.full > header, .scoreDlg.full > .status, .scoreDlg.full [data-room] > :not(.scoreMatch) { display: none !important; }
.scoreDlg.full .scoreMatch { flex: 1; gap: 0; margin: 0; position: relative; }
.scoreDlg.full .scoreMatch .side { flex-direction: row; justify-content: space-between; gap: 2vw; gap: 2cqw; min-width: 0; padding: env(safe-area-inset-top) max(3vw, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(3vw, env(safe-area-inset-left)); border-radius: 0; }
.scoreDlg.full .scoreMatch .blue { flex-direction: row-reverse; }
.scoreDlg.full .scoreMatch img { width: min(30vh, 14vw); height: min(30vh, 14vw); width: min(30cqh, 14cqw); height: min(30cqh, 14cqw); border-width: 3px; flex: none; }
.scoreDlg.full .scoreMatch span, .scoreDlg.full .scoreMatch small { display: none; }
.scoreDlg.full .scoreMatch b { font-size: min(62vh, 22vw); font-size: min(62cqh, 22cqw); padding: 2vh 2vw; padding: 2cqh 2cqw; border-radius: 3vh; perspective: 900px; }
/* 开了「横屏显示」才有退出钮：放在红蓝中缝顶端，不压在滑动区上 */
.scoreDlg.full.land .scoreLandX { display: block; position: absolute; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 2; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 24px; line-height: 40px; }
@media (orientation: portrait) {
  .scoreDlg.full.rot[open] { inset: 0 auto auto 0; width: 100vh; width: 100dvh; height: 100vw; transform-origin: 0 0; transform: translateX(100vw) rotate(90deg); }
}


/* 残局挑战入位后：左下「起身」、底部正中「出杆」大圆按钮（负责人 2026-11-27）；底栏让位 */
.stanceBtn { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: calc(var(--z-play) + 2); width: 84px; height: 84px; border-radius: 50%; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 16px; font-weight: 700; letter-spacing: 2px; color: #eef2f6; background: radial-gradient(circle at 35% 28%, rgba(70,80,94,.95), rgba(22,26,32,.95) 70%); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 10px 26px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.18); backdrop-filter: blur(8px); -webkit-tap-highlight-color: transparent; transition: transform .12s, filter .12s; }
.stanceBtn[hidden] { display: none; }
.stanceBtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stanceBtn:active { transform: scale(.93); filter: brightness(.9); }
#btnStandUp { left: calc(16px + env(safe-area-inset-left, 0px)); }
#btnStance, #btnStanceFire { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } /* 按住蓄力：长按不弹系统菜单、不触发滚动 */
#btnStance svg { width: 26px; height: 26px; }
body.stance #aimBar, body.egPlaying .stanceBtn, body.egBrowse .stanceBtn { display: none !important; }
/* 残局挑战「入位」（负责人 2026-11-27）：和「出杆」同一个右下角圆形游戏按钮，入位后换成出杆、左边出起身；挑战中底栏收起，只留这一个按钮。入位后上方左打点、右重合图，力量滑杆在两者下面 */
/* 负责人 2026-11-27：入位 / 出杆放底部正中，左下起身，右下打点（单手拇指够得到）；按钮文字不能被选中 */
.stanceBtn { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#btnStance, #btnStanceFire { left: 50%; margin-left: -48px; }
#btnStanceFire img { width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
#btnStance, #btnStanceFire { width: 96px; height: 96px; font-size: 18px; color: #1a1205; background: radial-gradient(circle at 35% 28%, #ffe3a3, #ffb347 40%, #ff8a2a 65%, #d9561a); border: 2px solid rgba(255,236,190,.9); box-shadow: 0 0 0 5px rgba(255,154,61,.22), 0 12px 30px rgba(224,99,26,.55), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -6px 12px rgba(150,50,0,.35); text-shadow: 0 1px 0 rgba(255,255,255,.4); overflow: hidden; animation: stanceGlow 1.8s ease-in-out infinite; }
#btnStance::after, #btnStanceFire::after { content: ''; position: absolute; left: 14%; top: 6%; width: 72%; height: 38%; border-radius: 50%; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0)); pointer-events: none; } /* 顶部高光，像游戏里的立体按钮 */
@keyframes stanceGlow { 50% { box-shadow: 0 0 0 9px rgba(255,154,61,.12), 0 12px 34px rgba(224,99,26,.7), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -6px 12px rgba(150,50,0,.35); } }
#btnStanceFire.cancelling { animation: none; box-shadow: 0 0 0 5px rgba(230,40,40,.85), 0 12px 30px rgba(0,0,0,.5); }
#btnStanceFire.cancelling img { filter: grayscale(1) brightness(.75); } /* 手指滑出按钮：图变灰、外加红圈，松开即取消 */
@media (prefers-reduced-motion: reduce) { #btnStance, #btnStanceFire { animation: none; } }
/* 入位后按住「出杆」：底部按钮上方、打点球左边出游戏式横向分格力量槽，只在按住时显示，松手定力量（负责人 2026-11-27、11-28「参考其他台球游戏里面的力量条」「要做成横向的，不能做成竖向的放在中间」） */
#powerMeter { position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); right: calc(var(--tip-sz) + 16px + env(safe-area-inset-right, 0px)); bottom: calc(132px + env(safe-area-inset-bottom, 0px)); z-index: calc(var(--z-play) + 2); display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px 10px; border-radius: 14px; background: rgba(10,12,16,.55); pointer-events: none; }
#powerMeter[hidden] { display: none; }
#powerMeter b { text-align: center; font-size: 16px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; }
#powerMeter i { position: relative; display: block; height: 26px; border-radius: 13px; overflow: hidden; background: rgba(0,0,0,.6); border: 3px solid rgba(255,236,190,.95); box-shadow: 0 0 14px rgba(255,154,61,.55), inset 0 0 8px rgba(0,0,0,.8); }
#powerMeter u { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #3ecf6a, #ffd23f 55%, #ff4a2a) left / var(--pm-w, 100%) 100% no-repeat; }
#powerMeter i::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(0,0,0,.65) calc(10% - 2px) 10%); } /* 分成 10 格 */
body.manual #aimBar, body.manual #tip3d, body.endgame #tip3d:not(.warn) { display: none !important; } /* 残局页不显示普通模式的提示条（负责人 2026-11-28「抖音模式下不要显示普通模式下的提示」） */
/* 右下打点：只有白球，贴底与出杆钮同底，大小由 main.js tipLift() 算到离正中出杆钮 10px（负责人 2026-11-28） */
body.manual { --tip-sz: var(--tip-s, 160px); --tip-b: 16px; }
body.manual #chatFab, body.manual:has(#egUi) #chatFab { top: calc(50% - 56px); bottom: auto; } /* 带 :has(#egUi) 才压得过上面 body:has(#egUi) #chatFab 的 86px，原先这条一直没生效 */ /* 负责人 2026-11-27「往上放一点，依然与游戏中的按钮有重叠」：136→168； 挑战中消息按钮一直显示（负责人 2026-11-27「在游戏过程中不要隐藏消息按钮」）；仍放右边（负责人 2026-11-27「不要放到左边，依然放在右边，出杆按钮不要重叠」），在右下入位/出杆大圆钮（底 16 + 高 96 + 光圈）上方 */
body:has(.egCmt) #chatFab { bottom: calc(var(--eg-sheet-h, 0px) + 12px) !important; } /* 残局评论抽屉开着时泡泡在它上方，不盖住 ×（负责人 2026-11-28「几个界面层次错乱」）；提示框已在上方 */
/* 挑战中说明只留「玩法」，放左上角空处；顶部分类收起 */
body.endgame:not(.egBrowse) #egUi .egTabs { display: none; }
/* 负责人 2026-11-28：挑战时不要球列表；视角按钮放到上方两个画中画下面，不再压住它们 */
body.endgame #btnBalls { display: none !important; } /* 负责人 2026-11-28「球列表按钮只在还原场景的模式下才需要」：残局（浏览、回放）一律不显示 */
body.endgame:not(.egBrowse) #viewPick { position: fixed; top: var(--eg-view-t, 180px); right: 8px; }
body.endgame:not(.egBrowse) #egUi .egInfo { position: fixed; z-index: var(--z-ui); top: calc(14px + env(safe-area-inset-top, 0px)); left: 12px; transform: none; max-width: calc(100vw - 150px); text-align: left; font-size: 13px; }
#egUi .egHint { font-size: 12px; color: #ffd166; } body.stance #egUi .egHint, body:has(#egAngle:not([hidden])) #egUi .egHint { display: none; }   /* 挑战操作提示在上方（负责人 2026-11-27），入位后收起 */
body.stance { --st-top: calc(var(--bar-b, 60px) + 8px); } body.endgame.stance { --st-top: calc(var(--aim-b, 60px) + 8px); } body.stance { --st-h: min(calc(50vw - 12px), 240px); }
body.stance #aimBar, body.stance #viewPick, body.stance #egUi .egTabs, body.stance #egUi .egRail { display: none !important; }
body.stance #shotPanel { display: block; top: auto; bottom: calc(var(--tip-b) + env(safe-area-inset-bottom, 0px)); left: auto; right: calc(8px + env(safe-area-inset-right, 0px)); width: var(--tip-sz); max-width: none; height: var(--tip-sz); padding: 0; transform: none; backdrop-filter: none; background: none; border: 0; box-shadow: none; } /* 打点在右下，单手拇指够得到（负责人 2026-11-27）；面板透明，半透的白球后面看得到球台 */ /* 不留 transform / backdrop-filter：下面的力量滑杆要按整个屏幕定位 */
body.stance #shotPanel figure { height: 100%; margin: 0; padding: 0; background: none; border: 0; }
body.stance #shotPanel figcaption, body.stance #shotPanel .shotSide > :not(.slider) { display: none; }
body.stance #tipPick { width: 100%; height: 100%; object-fit: contain; }
body.stance #shotPanel .slider { position: fixed; left: 8px; right: 8px; top: calc(var(--st-top) + var(--st-h) + 8px); z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(24,28,34,.95); border: 1px solid var(--line); border-radius: 12px; }
body.stance #shotPanel .slider input { flex: 1; }
/* 抬杆滑杆竖着放右侧（负责人 2026-11-27「抬杆的滚动条放到右侧竖向放」）：在力量滑杆下方、消息按钮上方，下低上高 */
body.stance #shotPanel .slider:has(#power2) { display: none; } /* 力量只靠按住出杆定，不要横滑杆（负责人 2026-11-28） */
body.stance #shotPanel .slider:has(#elev) { left: auto; right: 8px; top: calc(var(--st-top) + var(--st-h) + 8px); bottom: calc(var(--tip-sz) + var(--tip-b) + 80px + env(safe-area-inset-bottom, 0px)); flex-direction: column; justify-content: center; width: 52px; padding: 8px 4px; font-size: 12px; }
body.stance #chatFab { top: auto !important; bottom: calc(var(--tip-sz) + var(--tip-b) + 16px + env(safe-area-inset-bottom, 0px)) !important; } /* 入位后消息泡泡放在抬杆竖滑杆（下沿离底 tip-sz + tip-b + 80）和右下打点之间，不压滑杆（负责人 2026-11-29「所有的制作的时候都要注意界面的遮挡问题」） */
body.stance #elev { flex: 1; min-height: 0; width: 28px; writing-mode: vertical-lr; direction: rtl; }
body.stance #elevVal { text-align: center; }
/* 复盘提示（负责人 2026-11-28「层次调到上面来。然后将它的坐标往上移，可以盖住常驻的玩法那几个字」）：贴顶、盖住玩法文字，层级在画中画和玩法之上；画中画、提示框按它的底边往下排 */
#egAngle { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); left: 8px; right: 64px; z-index: var(--z-ui-top); padding: 10px 14px; border-radius: 12px; border: 2px solid #ff8a3d; background: #12161b; color: #fff; font-size: 15px; line-height: 1.5; text-align: center; pointer-events: none; }
#egAngle b { color: #ffd166; } /* 右边让出视角 / 球列表那列按钮（负责人 2026-11-27「提示文字被右侧的按钮挡住了」） */
body:not(.manual) #egAngle, body.stance #egAngle { display: none; }
/* 入位后上方和普通模式一样：左重合图、右俯视放大 / 击球者视角画中画（负责人 2026-11-28「将之前删除的其他视角界面再加回来」） */
body.stance #pip:not([hidden]) { top: var(--st-top); bottom: auto; left: auto; right: 8px; width: calc(50vw - 12px); height: var(--st-h); display: flex; flex-direction: column; }
body.stance #pipView { flex: 1; height: auto; min-height: 0; }
body.stance #pip2 { top: var(--st-top); bottom: auto; left: 8px; right: auto; width: calc(50vw - 12px); height: var(--st-h) !important; pointer-events: none; }
/* 打不出来的警告（warnToast）：挑战、入位、打点面板打开时也要看得到，盖过上面各处收起提示的规则 */
html body #tip3d.warn { display: block !important; top: auto !important; bottom: calc(50% + 100px) !important; white-space: normal; text-align: center; border-radius: 12px; width: max-content; max-width: calc(100vw - 32px); color: #ffd166; border-color: #ffd166; background: rgba(24,28,34,.95); z-index: 1700; } /* 盖在胜利 / 失败全屏特效和残局弹层（1600）之上，仍在聊天层下面（负责人 2026-11-28「胜利以后的提示还是被压在特效和界面的下面」）；下沿放在屏幕中线以上 100px，不压抽牌罚摸时中间放大的牌（负责人 2026-11-29「提示的界面往上放一点，现在与中间播放特效的重叠了」） */
body:has(#egUi.arena) #tip3d.warn { top: var(--ar-toast-t, 166px) !important; bottom: auto !important; }   /* 竞技场：进球 / 犯规提示在倒计时下面，少挡台呢（负责人 2026-11-30） */
/* 竞技场（js/arena.js）：标签下面一行对战双方、轮到谁、倒计时、直连 / 中转 */
#egUi .arBar { position: fixed; top: 52px; left: 50%; transform: translateX(-50%); z-index: var(--z-ui); max-width: calc(100vw - 24px); padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,.55); color: #e8ecf1; font-size: 13px; line-height: 1.5; text-align: center; pointer-events: none; }
#egUi .arBar[hidden] { display: none; }
#egUi .arFab { position: fixed; top: 52px; left: 50%; transform: translateX(-50%); z-index: var(--z-ui); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(254,44,85,.7); background: rgba(0,0,0,.65); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 3px rgba(254,44,85,.25); } /* 匹配中缩成的浮动按钮（负责人 2026-11-28）：和对战时的比分条同一位置，匹配中比分条不显示 */
#egUi .arBar .arMine { color: #ffd23f; font-weight: 700; }
.arPanel .arGames { display: flex; gap: 8px; margin: 4px 0 12px; } .arPanel .arGames button { flex: 1; }
.arPanel .arGames button.on { background: #fe2c55; border-color: #fe2c55; color: #fff; }
.arPanel .arGames { flex-wrap: wrap; } .arPanel .arGames button { flex: 1 1 40%; display: flex; flex-direction: column; align-items: center; } .arPanel .arGames small { font-size: 11px; opacity: .75; }
.arPanel .egMe { white-space: pre-line; } .arPanel .arBot[hidden] { display: none; } .arPanel .arBot button { display: block; width: 100%; margin-top: 6px; }
#egUi .arBar .arBad { color: #ff6b6b; font-weight: 700; }
#egUi .arBar .arLog { display: block; margin-top: 4px; font-size: 11px; line-height: 1.35; color: #9fb3c8; text-align: left; white-space: normal; }
/* 竞技场上方：计分房比赛模式的红蓝比分牌（.scoreMatch，同一套翻页数字）缩小放进来，中间 VS；轮到谁头像外圈转光；下面一排观众（直径一半 = 面积 1/4，最多 8 个） */
#egUi .arBar { left: 64px; right: 64px; transform: none; max-width: none; margin: 0 auto; width: auto; max-width: 420px; padding: 6px 8px; }   /* 两边让出左上角和右上角的按钮（返回） */
#egUi .arBoard .side { min-width: 0; } #egUi .arBoard span { max-width: 100%; }
#egUi .arBoard { align-items: center; margin: 0; gap: 6px; }
#egUi .arBoard .side { padding: 6px 4px; gap: 2px; border-radius: 12px; cursor: default; touch-action: auto; }
#egUi .arBoard b { font-size: 30px; padding: 2px 10px; }
#egUi .arBoard span { font-size: 12px; } #egUi .arBoard small { font-size: 10px; min-height: 1em; }
#egUi .arAva { position: relative; display: block; width: 44px; height: 44px; border-radius: 50%; }
#egUi .arAva img { width: 44px; height: 44px; display: block; }
#egUi .arBoard .side.on .arAva::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: conic-gradient(from 0deg, #fff0, #ffd23f, #fff, #ffd23f, #fff0 70%); animation: arSpin 1.2s linear infinite; -webkit-mask: radial-gradient(circle, transparent 25px, #000 26px); mask: radial-gradient(circle, transparent 25px, #000 26px); }
@keyframes arSpin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { #egUi .arBoard .side.on .arAva::before { animation: none; } }
#egUi .arVs { flex: none; font-style: normal; font-weight: 900; font-size: 20px; color: #ffd23f; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
#egUi .arStatus { margin: 4px 0 0; font-size: 12px; }
/* 观众栏（负责人 2026-11-28「参考抖音直播间里的观众列表」）：比分牌左边、屏幕左上角，前 3 个头像叠着 + 人数，点了看名单 */
#egUi .arAud { position: absolute; right: calc(100% + 4px); top: 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 4px; border: 0; border-radius: 12px; background: rgba(0,0,0,.45); color: #fff; pointer-events: auto; }
#egUi .arAud[hidden] { display: none; }
#egUi .arAud span { display: flex; } #egUi .arAud img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; background: #333; } #egUi .arAud img + img { margin-left: -8px; }
#egUi .arAud b { font-size: 11px; line-height: 1; font-variant-numeric: tabular-nums; }
.arPanel .arVlist { list-style: none; margin: 0; padding: 0; } .arPanel .arVlist li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.arPanel .arVlist img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.arPanel .arGamesLive:empty { display: none; } .arPanel .arGamesLive { margin-top: 12px; font-size: 13px; }
.arPanel .arGamesLive p { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; } .arPanel .arGamesLive em { font-style: normal; font-weight: 700; color: #ffd23f; }
body.endgame:not(.egBrowse) #egUi .arBar { top: calc(8px + env(safe-area-inset-top, 0px)); }   /* 轮到自己出杆时标签收起，比分牌顶上去 */
/* 负责人 2026-11-28「用户的头像显示太大了，占的比例过重」「击球时击球需要的参数界面可以盖在这个比分牌上面」「比赛开始以后…这一排就全部不用再显示了，将比分牌顶到最上面」：
   比分牌改成一行（头像、名字、比分并排），对战 / 观战中收起标签栏、比分牌贴顶；击球参数界面（画中画、提示）层级更高，直接盖在上面 */
#egUi.arLive .egTabs { display: none !important; }
#egUi.arLive .arBar { top: calc(6px + env(safe-area-inset-top, 0px)); padding: 3px 6px; z-index: calc(var(--z-hud) - 1); }   /* 压在画中画、提示下面 */
#egUi .arBoard .side { flex-direction: row; justify-content: flex-start; gap: 4px; padding: 3px 6px; border-radius: 9px; }
#egUi .arBoard .side.blue { flex-direction: row-reverse; }
#egUi .arAva, #egUi .arAva img { width: 26px; height: 26px; flex: none; }
#egUi .arBoard .side.on .arAva::before { inset: -3px; -webkit-mask: radial-gradient(circle, transparent 13px, #000 14px); mask: radial-gradient(circle, transparent 13px, #000 14px); }
#egUi .arBoard span { flex: 1; font-size: 11px; text-align: left; } #egUi .arBoard .side.blue span { text-align: right; }
#egUi .arBoard b { font-size: 18px; padding: 1px 6px; border-radius: 5px; }
#egUi .arBoard small { position: absolute; left: 0; right: 0; bottom: -13px; font-size: 10px; min-height: 0; text-align: center; }
#egUi .arBoard .side { position: relative; }
#egUi .arVs { font-size: 13px; }
#egUi .arStatus[hidden] { display: none; } #egUi .arStatus { margin-top: 12px; }
/* 负责人 2026-11-28「这些只能显示一排，在这一排下面的界面全都删掉」：头像下只留一行（信息 + 观众小头像） */
#egUi .arBoard small { display: none; }
/* 最后一个球的警灯（负责人 2026-11-28）：头像旁一个红色警灯，灯罩一直发光、光束一直旋转 */
#egUi .arSiren { display: none; position: relative; flex: none; width: 12px; height: 14px; margin: 0 2px; border-radius: 6px 6px 2px 2px; background: radial-gradient(circle at 50% 35%, #fff 0 15%, #ff3b30 45%, #a00 100%); animation: arSirenGlow .5s ease-in-out infinite alternate; }
#egUi .arSiren::after { content: ''; position: absolute; left: 50%; top: 45%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: conic-gradient(rgba(255,59,48,.85), #ff3b3000 25%, #ff3b3000 50%, rgba(255,59,48,.85) 50%, #ff3b3000 75%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%); animation: arSpin .8s linear infinite; pointer-events: none; }
#egUi .arBoard .side.last .arSiren { display: block; }
@keyframes arSirenGlow { from { box-shadow: 0 0 3px 1px #ff3b30; } to { box-shadow: 0 0 10px 4px #ff3b30; } }
@media (prefers-reduced-motion: reduce) { #egUi .arSiren, #egUi .arSiren::after { animation: none; } }
#egUi .arStatus { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 2px 0 0; white-space: nowrap; overflow: hidden; font-size: 11px; }
#egUi .arInfo { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#egUi .arBall { display: inline-block; width: 16px; height: 16px; line-height: 16px; margin-right: 5px; border-radius: 50%; vertical-align: -3px; font: 700 9px/16px sans-serif; font-style: normal; text-align: center; color: #111; text-shadow: 0 0 2px #fff; border: 1px solid rgba(255,255,255,.35); }   /* 现在出杆的人要打的球（负责人 2026-11-28） */
#egUi .arPlace { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(130px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-ui-top); padding: 10px 22px; border-radius: 22px; font-size: 15px; }
#egUi .arPlace[hidden] { display: none; }
#egUi .arPlace { background: linear-gradient(#ffb300, #ff6d00); border: 2px solid #fff3c4; color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4); box-shadow: 0 0 0 0 rgba(255,145,0,.7), 0 4px 12px rgba(0,0,0,.4); animation: arPlacePulse 1.4s ease-out infinite; }   /* 不用绿色，用醒目的橙色加呼吸光圈（负责人 2026-11-28） */
@keyframes arPlacePulse { 70% { box-shadow: 0 0 0 12px rgba(255,145,0,0), 0 4px 12px rgba(0,0,0,.4); } 100% { box-shadow: 0 0 0 0 rgba(255,145,0,0), 0 4px 12px rgba(0,0,0,.4); } }
@media (prefers-reduced-motion: reduce) { #egUi .arPlace { animation: none; } }
#egUi .arPlaceTip { position: fixed; left: 50%; transform: translateX(-50%); top: var(--ar-hint-t, 170px); z-index: var(--z-ui-top); width: max-content; max-width: 86vw; margin: 0; padding: 6px 12px; border-radius: 10px; background: rgba(0,0,0,.6); color: #ffe066; font-size: 13px; text-align: center; pointer-events: none; }
#egUi .arPlaceTip[hidden] { display: none; }
#egUi .arPlaceTip.warn { color: #ff8a80; }

/* 竞技场首页和场次页（负责人 2026-11-28「四个页标签直接填满整个屏幕。划分成四等份。以图片的形式显示」「红蓝两个色块，中间斜着划开…与比分房的比赛场的红蓝牌风格一致。只是拉成横向长条形」） */
#egUi .arPage { position: fixed; left: 0; right: 0; top: calc(56px + env(safe-area-inset-top, 0px)); bottom: 0; z-index: var(--z-ui); background: #0d1117; overflow-y: auto; }
#egUi .arPage[hidden] { display: none; }
#egUi .arHome { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
#egUi .arCard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 3px; padding: 12px; border: 0; border-radius: 16px; overflow: hidden;
  background: #1b222c center / cover no-repeat; color: #fff; text-align: left; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
#egUi .arCard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.75)); pointer-events: none; }
#egUi .arCard > * { position: relative; z-index: 1; }
#egUi .arCard b { font-size: 20px; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
#egUi .arCard small { font-size: 12px; opacity: .9; line-height: 1.35; }
#egUi .arCard em { font-style: normal; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: rgba(46,204,113,.85); }
#egUi .arCard:active { transform: scale(.98); }
#egUi .arHall { display: flex; flex-direction: column; }
#egUi .arHall header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: #fff; }
#egUi .arHall header b { font-size: 18px; } #egUi .arHall header em { font-style: normal; font-size: 12px; color: #2ecc71; }
#egUi .arUp { width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; padding: 0; }
#egUi .arList { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 12px; }
#egUi .arNone { color: #8b98a8; text-align: center; margin-top: 30vh; font-size: 14px; }
#egUi .arRow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 62px; padding: 0 12px; border: 0; border-radius: 14px; color: #fff; flex: none;
  background: linear-gradient(105deg, #e53935, #a01818 49.6%, #1e88e5 50.4%, #0d47a1); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
#egUi .arRow .arR, #egUi .arRow .arB { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; }
#egUi .arRow .arB { justify-content: flex-end; }
#egUi .arRow img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); flex: none; }
#egUi .arRow i { font-style: normal; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#egUi .arRow b { font-size: 26px; font-weight: 800; padding: 0 8px; border-radius: 6px; background: rgba(0,0,0,.28); font-variant-numeric: tabular-nums; }
#egUi .arRow .arMid { display: flex; flex-direction: column; align-items: center; flex: none; font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
#egUi .arHall footer { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #0d1117; }
#egUi .arHall footer .arMatch { flex: 1; height: 48px; border-radius: 24px; font-size: 17px; font-weight: 700; }
#egUi .arHall footer .arMatch.on, #egUi .arFab.on { background: #2b3440; border-color: #fe2c55; color: #fff; }
#egUi .arHall footer .arBotGo[hidden] { display: none; }
#egUi .arWatchTag { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-ui); margin: 0; padding: 6px 16px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; pointer-events: none; }
#egUi .arWatchTag[hidden] { display: none; }
#egUi .arMute { position: fixed; right: 12px; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: calc(var(--z-ui) + 1); width: 46px; height: 50px; padding: 2px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; background: rgba(24,28,34,.72); border: 1px solid rgba(255,255,255,.14); color: #e8ecf1; backdrop-filter: blur(8px); } /* 竞技场静音（负责人 2026-11-29）；样式同俯视 / 语音 / 表情按钮：线条图标 + 下方小字（负责人 2026-11-30「静音按钮的设计风格要与现有风格一致」）：首页 / 场次页在标签栏下方右侧，对战观战时在左上角、和返回键对称 */
#egUi .arMute svg { display: block; } #egUi .arMute small { font-size: 10px; line-height: 1.1; color: #c7cdd6; }
#egUi .arMute[hidden] { display: none; }
#egUi.arLive .arMute { right: auto; left: 8px; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: var(--z-hud); }
#egUi.arLive .arFab { top: calc(70px + env(safe-area-inset-top, 0px)); }
.arOffer .arFoe { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; } .arOffer .arFoe img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.arOffer .arLeft { text-align: center; }
#egUi .arPush { position: fixed; right: 12px; bottom: calc(190px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-ui-top); padding: 8px 16px; border-radius: 18px; font-size: 14px; }
#egUi .arCount { position: fixed; left: 50%; top: 120px; transform: translateX(-50%); z-index: var(--z-ui-top); pointer-events: none; font: 900 40px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #ffd23f; text-shadow: 0 0 2px #000, 0 2px 6px rgba(0,0,0,.85); text-align: center; } /* 比分牌下面单独一块：醒目的黄色粗体秒数 */
#egUi .arCount[hidden] { display: none; }
#egUi .arCount.ghost { color: #ff9f1c; } #egUi .arCount.warn { color: #fe2c55; }
/* 剩 30 秒起每跳一秒：数字在原地从大到小砸下来（不再从上方斜着落），两个更大的虚影一起缩小，落地那一瞬间合成一个；落地在 0.4 秒，js/arena.js 的砸地声按这个时间放（负责人 2026-11-28「应该是从大到小，不要斜着下去」「音效砸下去的动画要匹配好」） */
#egUi .arCount.slam { animation: arSlam .5s cubic-bezier(.55, 0, .8, .2) both; }
#egUi .arCount, #egUi .arCount::before, #egUi .arCount::after { transform-origin: 50% 0; }   /* 放大从上沿往下长，不盖住上面的手牌 */
#egUi .arCount.slam::before, #egUi .arCount.slam::after { content: attr(data-n); position: absolute; inset: 0; color: inherit; text-shadow: none; filter: blur(1.5px); animation: arGhost1 .5s cubic-bezier(.55, 0, .8, .2) both; }
#egUi .arCount.slam::after { animation-name: arGhost2; }
@keyframes arSlam { 0% { transform: translateX(-50%) scale(2.6); opacity: .35; } 80% { transform: translateX(-50%) scale(.9); opacity: 1; } 100% { transform: translateX(-50%); } }
@keyframes arGhost1 { 0% { transform: scale(1.4); opacity: .55; } 80% { transform: none; opacity: .5; } 100% { transform: none; opacity: 0; } }
@keyframes arGhost2 { 0% { transform: scale(1.9); opacity: .35; } 80% { transform: none; opacity: .3; } 100% { transform: none; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #egUi .arCount.slam, #egUi .arCount.slam::before, #egUi .arCount.slam::after { animation: none; } #egUi .arCount.slam::before, #egUi .arCount.slam::after { display: none; } }
/* 抽牌手牌：比分牌下、倒计时上，一排真实扑克牌（js/arena.js paintHand）；.deal = 这局第一次出现：背面叠成一摞摊开，再逐张翻到正面 */
#egUi .arHand { position: fixed; z-index: var(--z-ui-top); display: flex; justify-content: center; gap: 4px; pointer-events: none; perspective: 400px; }
#egUi .arHand[hidden] { display: none; }
#egUi .arPk { position: relative; flex: 0 0 var(--w); height: 100%; }
#egUi .arPk .in { position: absolute; inset: 0; transform-style: preserve-3d; }
#egUi .arPk b { position: absolute; inset: 0; border-radius: 4px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.6); }
#egUi .arPk .fr { background: #fff; color: #111; border: 1px solid #ccc; font: 700 11px/1 system-ui, sans-serif; }
#egUi .arPk.red .fr { color: #d40000; }
#egUi .arPk .fr span { position: absolute; left: 2px; top: 2px; } #egUi .arPk .fr span.jk { font-size: 8px; } #egUi .arPk .fr .jk + em { font-size: 10px; }
#egUi .arPk .fr em { position: absolute; right: 2px; bottom: 1px; font-style: normal; font-size: 15px; line-height: 1; }
#egUi .arPk .bk { transform: rotateY(180deg); background: repeating-linear-gradient(45deg, #b3122e 0 3px, #8a0d22 3px 6px); border: 2px solid #fff; }
#egUi .arHand.deal .arPk { animation: arSpread .45s ease-out both; }
#egUi .arHand.deal .arPk .in { animation: arFlip .4s ease-in-out both; animation-delay: calc(.55s + var(--i) * .25s); }
@keyframes arSpread { from { transform: translateX(var(--dx)) rotate(calc(var(--i) * 3deg - 6deg)); } }
@keyframes arFlip { from { transform: rotateY(180deg); } to { transform: none; } }
#egUi .arPush[hidden] { display: none; } #egUi .arPush.on { background: #fe2c55; border-color: #fe2c55; color: #fff; }
/* 竞技场：重合击打点、切角两个小窗放上方，不要窗体只要内容，大小是原来的 1/4 再放大 1.5 倍；点开放大照旧，入位后也能放大（负责人 2026-11-28） */
body:has(#egUi.arena) { --ar-w: min(calc(37.5vw - 9px), 225px); --ar-h: calc(var(--ar-w) * .8); }
body:has(#egUi.arena) #pip:not(.zoom):not([hidden]), body:has(#egUi.arena) #pip2:not(.zoom):not([hidden]) { top: calc(var(--aim-b, 60px) + 8px); bottom: auto; width: var(--ar-w); height: var(--ar-h) !important; border: 0; border-radius: 0; background: none; box-shadow: none; pointer-events: auto; display: flex; flex-direction: column; }
body:has(#egUi.arena) #pip2:not(.zoom) { left: 8px; right: auto; } body:has(#egUi.arena) #pip:not(.zoom) { left: auto; right: 8px; }
body:has(#egUi.arena) #pip:not(.zoom) #pipView { flex: 1; height: auto; min-height: 0; }
body:has(#egUi.arena) :is(#pip, #pip2):not(.zoom) .pipHead { padding: 2px 5px; font-size: 12px; row-gap: 0; background: none; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
body:has(#egUi.arena) #pip2.onGrey:not(.zoom) { background: none; }
body:has(#egUi.arena) #pip:not(.zoom) :is(.seg, #pipSub) { display: none; }
body:has(#egUi.arena) #pip:not(.zoom) #pipAngle { font-size: 16px; } body:has(#egUi.arena) #pip2:not(.zoom) #pip2Tip { font-size: 12px; }
body:has(#egUi.arena) #pip2:not(.zoom) .pip2Pow { padding: 1px 4px 3px; font-size: 11px; gap: 4px; color: #fff; text-shadow: 0 1px 2px #000; } body:has(#egUi.arena) #pip2:not(.zoom) .powBar { height: 5px; background: rgba(0,0,0,.35); }
/* 入位的布局规则不能压住放大：放大时盖过 body.stance 的位置和高度 */
body:has(#egUi.arena) :is(#pip, #pip2).zoom:not([hidden]) { top: calc(var(--aim-b, 60px) + 8px); bottom: auto; left: 8px; right: 8px; width: auto; max-width: 620px; height: auto !important; pointer-events: auto; }
body:has(#egUi.arena) #pip.zoom #pipView { flex: none; height: min(66vw, 55vh); }
/* 负责人 2026-11-28「将竞技场放到挑战过后面。字体显示为醒目的颜色」 */
#egUi .egTabs button[data-tab=arena] { color: #ffd23f; text-shadow: 0 0 8px rgba(255,210,63,.55), 0 1px 4px rgba(0,0,0,.7); }
#egUi .egTabs button[data-tab=arena].on { border-bottom-color: #ffd23f; }
/* 竞技场小窗里的重合图不要文字（标题、打点、力度），只留两颗球的图（负责人 2026-11-28「重合打击点那个界面那些文字都不需要，只需要两个图片就可」）；放大后照常显示 */
body:has(#egUi.arena) #pip2:not(.zoom) :is(.pipHead, .pip2Pow) { display: none; }
body:has(#egUi.arena) #pip { display: none !important; }   /* 竞技比赛不显示切角小窗（负责人 2026-11-28「在竞技比赛状态下，不要显示切角多少度。这个界面取消」） */
/* 负责人 2026-11-29「在原来放切角显示的地方…放当前目标球，选中哪个球指向哪个球，就显示哪个球要把号码显示出来」：只在竞技场显示 */
#aimBall[hidden] { display: none; }   /* 只在竞技场由 main.js paintAimBall 打开，不依赖 :has（老 WebView 不支持时也能显示） */
#aimBall { display: block; position: fixed; z-index: var(--z-hud); isolation: isolate; top: calc(var(--aim-b, 60px) + 8px); left: 14px; width: 44px; height: 44px; border-radius: 50%; font: 700 17px/44px sans-serif; font-style: normal; text-align: center; color: #111; box-shadow: inset -5px -6px 10px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.5); pointer-events: none; }
#aimBall::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #f6f2e8; z-index: -1; }
/* 负责人 2026-11-28「红蓝双方那个牌子，哪边打球哪边的放大1.2倍。并且呼吸放大缩小」：轮到谁那一方放大 1.2 倍，并在 1.2～1.28 之间呼吸 */
#egUi .arBoard .side { transition: scale .25s; }
#egUi .arBoard .side.on { scale: 1.2; z-index: 1; animation: arBreath 1.6s ease-in-out infinite; }
@keyframes arBreath { 50% { scale: 1.28; } }
@media (prefers-reduced-motion: reduce) { #egUi .arBoard .side.on { animation: none; } }
/* 负责人 2026-11-28「红蓝牌放大状态的时候不要挡住中间的VS，自动将坐标向两边移」：红方以右边缘（靠 VS）、蓝方以左边缘为基点放大，只往外侧长，不盖 VS */
#egUi .arBoard .side.red { transform-origin: 100% 50%; } #egUi .arBoard .side.blue { transform-origin: 0 50%; }
#egUi .arBoard { padding: 0 22px; }   /* 两侧留出往外放大的地方，不钻到左上、右上按钮底下 */
/* 负责人 2026-11-28「在这个牌子的边缘形成一个进度条，这个进度条与当前的打球时间一致」：轮到的一方牌子边缘一圈，随剩余出杆时间缩短，剩 10 秒变红 */
#egUi .arRing { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
#egUi .arRing.show { display: block; }
#egUi .arRing rect { fill: none; stroke: #ffd23f; stroke-width: 3; stroke-dasharray: 100 100; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 3px #ffd23f); }
#egUi .arRing.warn rect { stroke: #ff4d4d; filter: drop-shadow(0 0 3px #ff4d4d); }
/* 打点校正（js/tipcal.js） */
.tipcal { position: fixed; inset: 0; z-index: var(--z-ui-top); background: rgba(16,19,23,.97); overflow-y: auto; padding: 0 12px 24px; }
.tipcal header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; background: inherit; }
.tipcal .tcTable { width: 100%; max-width: 900px; display: block; margin: 0 auto; }
.tipcal .tcCtl, .tipcal .tcReal { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; max-width: 900px; margin: 8px auto; }
.tipcal .tcCtl label, .tipcal .tcReal label { display: flex; gap: 6px; align-items: center; }
.tipcal .tcCtl input[type=range] { width: 120px; }
.tipcal .tcReal input { width: 70px; }
.tipcal .tcOut, .tipcal .tcList, .tipcal .tcPhys { max-width: 900px; margin: 8px auto; line-height: 1.6; }
.tipcal .tcList li button { padding: 1px 8px; }
.giftRedeemBtn.short { opacity: .55; } /* 积分不够：可点，点了弹「推广积分不足」和获取方式 */
/* 推广积分确认面板（js/points-pay.js，负责人 2026-11-29 要求按商用规范）：居中卡片，标题、消耗数额、余额对照、主次按钮；积分不足时列出获取方式 */
.ppMask { position: fixed; inset: 0; z-index: calc(var(--z-chat) - 2); display: grid; place-items: center; padding: 20px; background: rgba(8,10,14,.62); backdrop-filter: blur(3px); animation: ppFade .18s ease-out; }
.ppCard { position: relative; width: min(360px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px 20px 18px; border-radius: 18px; background: #1d2128; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 60px rgba(0,0,0,.55); color: #eef1f5; animation: ppRise .22s cubic-bezier(.2,.9,.3,1); }
.ppX { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: #9aa3af; font-size: 24px; line-height: 1; }
.ppX:hover, .ppX:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
.ppHead { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 6px; }
.ppIcon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #ffd23f; background: rgba(255,210,63,.12); }
.ppHead h3 { margin: 0; font-size: 18px; font-weight: 700; }
.ppItem { margin: 6px 0 0; text-align: center; color: #b7bfca; font-size: 14px; line-height: 1.6; }
.ppItem b { color: #ffd23f; }
.ppCost { margin: 14px 0 4px; text-align: center; color: #b7bfca; font-size: 14px; }
.ppCost b { margin-right: 4px; color: #ffd23f; font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ppBal { display: flex; margin: 14px 0 0; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.ppBal div { flex: 1; text-align: center; } .ppBal div + div { border-left: 1px solid rgba(255,255,255,.08); }
.ppBal dt { color: #8b94a1; font-size: 12px; } .ppBal dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ppCard h4 { margin: 18px 0 8px; color: #8b94a1; font-size: 13px; font-weight: 600; }
.ppWays { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ppWays button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: #262b33; color: inherit; text-align: left; }
.ppWays button:hover, .ppWays button:focus-visible { background: #2e343e; border-color: rgba(255,210,63,.45); }
.ppWays i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #3ef0a5; background: rgba(62,240,165,.12); }
.ppWays span { flex: 1; min-width: 0; } .ppWays b { display: block; font-size: 15px; } .ppWays small { display: block; margin-top: 2px; color: #9aa3af; font-size: 12px; line-height: 1.45; }
.ppWays em { flex: none; font-style: normal; color: #6b7480; font-size: 22px; }
.ppNone { margin: 16px 0 0; text-align: center; color: #9aa3af; font-size: 13px; }
.ppBtns { display: flex; gap: 10px; margin-top: 18px; }
.ppBtns button { flex: 1; height: 46px; border-radius: 12px; font-size: 16px; font-weight: 600; border: 0; }
.ppNo { background: #2e343e; color: #dfe4ea; } .ppOk { background: linear-gradient(90deg, #ffd23f, #ff9f1c); color: #2a1a00; }
@keyframes ppFade { from { opacity: 0; } } @keyframes ppRise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .ppMask, .ppCard { animation: none; } }
.ppCard button:focus:not(:focus-visible) { outline: none; } .ppCard button:focus-visible { outline: 2px solid #ffd23f; outline-offset: 2px; }

/* 竞技场段位（负责人 2026-11-29，docs/竞技场段位.md）：名字旁的段位名；首页上方我的段位、胜点条、战绩 */
.rkT { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: rgba(0,0,0,.35); color: #ffd23f; font-style: normal; font-size: 10px; font-weight: 700; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
#egUi .arMy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; font-size: 12px; }
#egUi .arMy:empty { padding: 0; }   /* 不用 display:none：网格第一行留给它，空着时高度 0 */
#egUi .arMy b { font-size: 16px; color: #ffd23f; }
#egUi .arMy small { opacity: .85; }
#egUi .arMy img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; } #egUi .arMy .rkF { margin: 12px 14px 12px 12px; }   /* 边框比头像大出 30%，四周留出地方 */
#egUi .arLp { flex: 1; min-width: 80px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
#egUi .arLp i { display: block; height: 100%; background: linear-gradient(90deg, #ffb300, #ffd23f); }
/* 段位头像边框（js/arena-rank.js RANK_FRAMES 打开后才用）：边框图方形透明底，头像居中占 62% 直径 → 边框比头像大 1/0.62 倍，四边各外扩 30.65% */
.rkF { position: relative; } span.rkF { display: inline-block; flex: none; line-height: 0; }
.egWinAva.rkF { position: absolute; display: block; border: 0; box-shadow: none; background: none; } .egWinAva.rkF img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
#egUi .arAud .rkF + .rkF { margin-left: -8px; } #egUi .arAud .rkF img { margin: 0; }
.rkF::after { content: ''; position: absolute; inset: -30.65%; background: var(--rk) center / contain no-repeat; pointer-events: none; }
/* 点头像看竞技场胜负记录（js/arena-rank.js rankCard） */
[data-rkp] { cursor: pointer; }
.rkCard .rkWho { display: flex; align-items: center; gap: 22px; padding: 22px 12px 10px; font-size: 16px; } .rkCard .rkWho img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.rkCard .rkWho span { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; } .rkCard .rkWho .rkT { margin-left: 0; font-size: 12px; }
.rkCard .rkStat { display: flex; list-style: none; margin: 8px 0 0; padding: 0; } .rkCard .rkStat li { flex: 1; text-align: center; font-size: 12px; opacity: .85; } .rkCard .rkStat b { display: block; font-size: 20px; color: #ffd23f; }
/* 段位晋升特效（js/rank-fx.js）：盖在胜负画面上 */
.rkUp { position: fixed; inset: 0; z-index: 1700; } .rkUp canvas { width: 100%; height: 100%; display: block; }
/* 特效试看选择面板 */
.fxPick .fxGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 6px; } .fxPick h4 { margin: 10px 0 6px; font-size: 13px; opacity: .8; }
/* 原地旋转画中画（scene3d.js renderSpin，负责人 2026-11-29） */
#spinPip { position: fixed; right: 12px; top: 130px; width: 200px; z-index: var(--z-hud); border-radius: 12px; border: 2px solid #ffd23f; overflow: hidden; background: transparent; pointer-events: none; box-shadow: 0 10px 34px rgba(0,0,0,.55); }
#spinPipView { height: 200px; }
#spinPipText { display: block; text-align: center; padding: 4px 0; background: rgba(16,19,23,.85); font-size: 13px; }
/* 竞技场新手教学二次提醒：操作说明 + 示意图（js/arena-newbie.js） */
.arPanel .arHelp { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.arPanel .arHelp li { display: flex; align-items: center; gap: 10px; }
.arPanel .arHelp svg { flex: none; border-radius: 6px; background: rgba(255,255,255,.06); }
.arPanel .arHelp span { display: flex; flex-direction: column; gap: 2px; } .arPanel .arHelp small { font-size: 12px; opacity: .8; }
#egUi .arMy .arLearnGo { margin-left: auto; margin-right: 40px; padding: 5px 12px; border-radius: 14px; border: 1px solid #ffd23f; background: none; color: #ffd23f; font-size: 13px; }   /* 竞技场首页随时再开新手教学；右边让出静音按钮 */
/* 竞技场布局（负责人 2026-11-29「将重叠度调整界面放到右下角。用右下角的打点调整放到右上角。将所有模式下的视角按钮放到左边。之前放在右上角的目标球放到左上角。注意界面之间不要重叠。
   重叠度界面的两个球只有点到球才发生按钮反应，否则也不要阻挡点击事件发到下面」）：目标球左上（上面 #aimBall）、视角按钮在它下面靠左、重合小窗右下（不接点按，点到球由 main.js onOverlapBall 判断）、
   入位后打点在重合小窗正上方（2026-11-30，原右上），抬杆竖滑杆在左下（2026-11-30），消息泡泡在重合小窗上面；语音、表情按钮（.arSocial）在右侧聊天泡泡正上方（arena.js placeSocial 跟着泡泡位置）。
   负责人 2026-11-30「表情和竞技场语音，聊天按钮移回到右边。将右边的抬杆滑条放到左边…不要与视角按钮的展开形成阻挡…抬杆滑条放在左边，下边」：入位后抬杆竖条在左下、起身按钮上方，上沿不高于半屏，视角按钮展开的列表够不到它 */
body:has(#egUi.arena) #pip2:not(.zoom):not([hidden]) { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: auto; right: 8px; width: min(var(--ar-w), calc(50vw - 60px)); pointer-events: none; }
body.endgame:not(.egBrowse):has(#egUi.arena) #viewPick { left: 8px; right: auto; align-items: flex-start; }
body:has(#egUi.arena) #egAngle { left: 64px; }
body.stance:has(#egUi.arena) #shotPanel { top: auto; bottom: calc(var(--ar-h) + 24px + env(safe-area-inset-bottom, 0px)); }   /* 入位后打点在右下重合小窗正上方，隔 8px（负责人 2026-11-30「打点界面移到重叠区界面上方」，原来在右上） */
body.stance:has(#egUi.arena) #shotPanel .slider:has(#elev) { left: calc(8px + env(safe-area-inset-left, 0px)); right: auto; top: min(calc(var(--eg-view-t, 180px) + 374px), calc(100% - 276px - env(safe-area-inset-bottom, 0px))); bottom: calc(116px + env(safe-area-inset-bottom, 0px)); }   /* 视角按钮 + 展开列表约高 362px，再留 12px；矮屏至少保留 160px 长 */
body:has(#egUi.arena .arSocial:not([hidden])) #chatFab { top: calc(50% - 56px) !important; bottom: auto !important; right: 10px; }   /* 对战 / 观战全程（瞄准、入位、对方击球、球在走）聊天按钮固定在右侧中间偏上，语音、表情在它正上方，不上下挪（负责人 2026-11-30「聊天表情和语音按钮固定在操作时的那个位置，不要上下移动」「竞技场状态的界面不要动来动去…表情，语音聊天，放在右侧中间偏上」） */
#egUi .arSocial { position: fixed; right: 10px; bottom: calc(50% + 64px); align-items: center; width: 50px; z-index: var(--z-ui); display: flex; flex-direction: column; gap: 6px; }
#egUi .arSocial[hidden], #egUi .arSocial [hidden] { display: none; }
#egUi .arSocial button { width: 46px; height: 50px; padding: 2px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; background: rgba(24,28,34,.72); border: 1px solid rgba(255,255,255,.14); color: #e8ecf1; backdrop-filter: blur(8px); }
#egUi .arSocial button small { font-size: 10px; line-height: 1.1; color: #c7cdd6; white-space: nowrap; } #egUi .arSocial button b { font-size: 20px; line-height: 1; font-weight: 400; }
#egUi .arSocial .arVoice.on { border-color: #3ddc84; color: #3ddc84; }
/* 表情 / 短语面板：底部一块，点了就收；气泡：红方左、蓝方右、观众中间，在球台中上部飘一下就消失，不接点按 */
.arSayPanel { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-ui-top); max-width: 520px; margin: 0 auto; padding: 8px 10px 10px; border-radius: 16px; background: rgba(20,24,30,.96); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 34px rgba(0,0,0,.55); color: #e8ecf1; }
.arSayPanel header { display: flex; align-items: center; gap: 8px; font-size: 14px; } .arSayPanel header label { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; color: #c7cdd6; }
.arSayPanel .x { width: 36px; height: 36px; border: 0; background: none; color: #9aa3af; font-size: 22px; }
.arSayPanel .arEmoGrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 6px 0; } .arSayPanel .arEmoGrid button { height: 44px; font-size: 26px; border-radius: 10px; border: 0; background: rgba(255,255,255,.06); }
.arSayPanel .arPhrGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; } .arSayPanel .arPhrGrid button { min-height: 36px; padding: 4px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: #262b33; color: inherit; font-size: 13px; text-align: left; }
.arSayPanel .arVoice { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .arSayPanel .arVoice button { min-height: 32px; padding: 2px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.15); background: none; color: #c7cdd6; font-size: 12px; }
.arSayPanel .arVoice button[aria-checked="true"] { background: #2f7d5b; border-color: #3ddc97; color: #fff; }
.arSayPanel .arCd { margin: 6px 0 0; min-height: 1em; text-align: center; font-size: 12px; color: #ffd166; }
.arSayPanel .arEmoH { margin: 6px 0 0; font-size: 12px; color: #9aa3af; }
.arSayPanel .arPickList { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 8px; max-height: 40vh; overflow: auto; }
.arSayPanel .arPickList button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); color: inherit; font-size: 12px; }
.arSayPanel .arPickList img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; } .arSayPanel .arPickList span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 表情 / 短语显示在发的人头像上（负责人 2026-11-30），left/top 由 js/arena-say.js bubble 按头像位置写；给别人的（.fly）从自己头像飞到对方头像 */
.arSayBub { position: fixed; z-index: calc(var(--z-play) + 2); translate: -50% -50%; pointer-events: none; animation: arSayIn .25s cubic-bezier(.2,.9,.3,1.3), arSayOut .4s ease-in 2.4s forwards; }
.arSayBub .emo { display: block; font-size: 40px; line-height: 1; font-weight: 400; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.arSayBub.t { translate: -50% 0; max-width: 46vw; padding: 4px 10px 6px; border-radius: 12px; background: rgba(20,24,30,.9); border: 2px solid #ffd23f; color: #fff; text-align: center; }
.arSayBub small { display: block; font-size: 11px; color: #c7cdd6; } .arSayBub .txt { display: block; font-size: 14px; line-height: 1.35; }
.arSayBub.fly { animation: arSayIn .25s cubic-bezier(.2,.9,.3,1.3), arSayFly .6s ease-in-out .4s forwards, arSayHit .3s ease-out 1s, arSayOut .4s ease-in 2.8s forwards; }
@keyframes arSayIn { from { opacity: 0; scale: .4; } } @keyframes arSayOut { to { opacity: 0; scale: .6; } }
@keyframes arSayFly { to { transform: translate(var(--dx), var(--dy)); } } @keyframes arSayHit { 50% { scale: 1.4; } }
@media (prefers-reduced-motion: reduce) { .arSayBub { animation: arSayOut .4s ease-in 2.4s forwards; } .arSayBub.fly { transform: translate(var(--dx), var(--dy)); animation: arSayOut .4s ease-in 2.8s forwards; } }
body.arLearning #chatFab { display: none !important; }   /* 竞技场新手教学期间不显示聊天按钮（js/arena-learn.js） */
body.arLearnDim .stanceBtn, body.arLearnDim #shotPanel, body.arLearnDim #viewPick, body.arLearnDim #aimBall { filter: grayscale(1) brightness(.45); }   /* 竞技场新手教学台面步骤：压在球台上的按钮也变灰，表示现在不能点 */
.tour.arLearn { z-index: 1690; }   /* 竞技场新手教学：灰色蒙版压在全部游戏界面（入位、表情、比分牌、排行框 1600）上面，确认框和晋升特效（1700+）照常在上 */
/* 按住重合小窗里的球时左上角的同步副本（负责人 2026-11-30「防止人在按住按钮的时候看不到里面的内容」），不接点按 */
#pipMirror { position: fixed; z-index: var(--z-ui-top); top: calc(var(--aim-b, 60px) + 8px); left: 8px; width: min(var(--ar-w, 225px), calc(50vw - 12px)); aspect-ratio: 320 / 220; border-radius: 10px; border: 2px solid #ff8a3d; background: rgba(18,22,27,.92); box-shadow: 0 6px 20px rgba(0,0,0,.5); pointer-events: none; }
#pipMirror[hidden] { display: none; } #pipMirror.onGrey { background: #7d8590; }
/* 按住入位打点时上方的放大打点（负责人 2026-11-30），不接点按；竞技场里打点缩到和重合小窗差不多大 */
#tipMirror { position: fixed; z-index: var(--z-ui-top); top: calc(var(--aim-b, 60px) + 8px); left: 50%; transform: translateX(-50%); width: min(220px, 56vw); height: auto; aspect-ratio: 1; border-radius: 16px; background: rgba(18,22,27,.9); border: 2px solid #8fb7ff; box-shadow: 0 6px 20px rgba(0,0,0,.5); pointer-events: none; }
#tipMirror[hidden] { display: none; }
body.manual:has(#egUi.arena) { --tip-sz: var(--ar-h, 110px); }
