/* 发情游戏 · 样式（按 docs/design/风格样稿_20261118/新布局样稿 做的）
   开局、房间、结束：夜色底 + 玫红紫；选中 = 整块上色，不用线框。
   游戏里：红绿灯，整屏跟着现在的指令变色（绿 = 动，黄 = 慢，红 = 停）；TA 的东西一律淡紫，自己的白色。 */

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: #07060c; font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; color: #f5f3fb; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
button, input { font: inherit; color: inherit; border: 0; background: none; padding: 0; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .38; cursor: default; }
input { -webkit-user-select: text; user-select: text; outline: none; }
.hidden { display: none !important; }

.phone {
  --bg: #0d0b16; --panel: rgba(255,255,255,.065); --line: rgba(255,255,255,.13); --ink: #f5f3fb; --ink2: #aaa5c4; --ink3: #726d90;
  --me: #ff5a8f; --vio: #b45cff; --ta: #b79bff; --g: #2fdc7f; --y: #ffc83d; --r: #ff4f4f; --l: var(--g);
  position: relative; width: 100%; max-width: 480px; height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--ink); display: flex; flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom));
}
.phone.lobby::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 44% at 0% 100%, rgba(255,90,143,.30), transparent 70%), radial-gradient(64% 40% at 100% 0%, rgba(180,92,255,.24), transparent 70%); }
.phone.game { --bg: #0c0d12; }
.phone.game[data-l="y"] { --l: var(--y); } .phone.game[data-l="r"] { --l: var(--r); }
.phone.game::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .3s;
  background: radial-gradient(95% 52% at 50% 0%, color-mix(in srgb, var(--l) 32%, transparent), transparent 72%); }
.pad { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------- 通用 ---------- */
.title { font-size: 46px; font-weight: 900; letter-spacing: 0.06em; line-height: 1.1; background: linear-gradient(100deg, var(--me) 10%, #d7b0ff 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-title { margin-top: 6px; font-size: 38px; }
.foot { margin-top: auto; display: grid; gap: 10px; padding-top: 10px; }
.foot.two { grid-template-columns: 1fr 2fr; }
.foot.two.eq { grid-template-columns: 1fr 1fr; margin-top: 0; padding-top: 0; }
.foot.two.lead { grid-template-columns: 1fr 1.4fr; }
.btn { height: 54px; border-radius: 18px; font-size: 18px; font-weight: 900; letter-spacing: 0.08em; display: grid; place-items: center; width: 100%; }
.btn.pri { background: linear-gradient(100deg, var(--me), var(--vio)); color: #fff; box-shadow: 0 0 30px -8px var(--me); }
.btn.sec { background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.btn.white { background: #fff; color: #0c0d12; }
.btn.quiet { height: 40px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink3); }
.btn.is-ready { background: var(--panel); border: 1px solid var(--line); box-shadow: none; color: var(--ink2); font-size: 16px; letter-spacing: 0.02em; }
.foot.two .btn { height: 48px; font-size: 16px; letter-spacing: 0.04em; }
.note { margin-top: 10px; font-size: 12px; color: var(--ink3); line-height: 1.6; }
.note.mid { text-align: center; }
.msg { min-height: 18px; margin-top: 8px; text-align: center; font-size: 13px; color: #ffb3cd; }
.hint { margin-top: 6px; font-size: 12px; color: var(--ink3); line-height: 1.6; min-height: 19px; }
.cd { margin-top: 12px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.cd i { display: block; height: 100%; width: 100%; background: #fff; border-radius: 4px; transform-origin: left; }

/* ---------- 首页 ---------- */
.lab2 { margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--ink3); display: flex; justify-content: space-between; align-items: baseline; }
.lab2 b { font: 700 20px/1 'Chakra Petch', 'Noto Sans SC', sans-serif; letter-spacing: 0; color: #fff; }
.chips { display: grid; gap: 8px; }
.chips.c2 { grid-template-columns: 1fr 1fr; } .chips.c3 { grid-template-columns: repeat(3, 1fr); }
.chips button { height: 44px; border-radius: 15px; display: grid; place-items: center; font-size: 15px; font-weight: 700; background: var(--panel); border: 1px solid var(--line); color: var(--ink2); }
.chips .on { background: linear-gradient(100deg, var(--me), var(--vio)); border-color: transparent; color: #fff; font-weight: 900; }
.slider { position: relative; margin-top: 4px; height: 56px; }
.slider .rail { position: absolute; left: 15px; right: 15px; top: 8px; height: 14px; border-radius: 8px; background: rgba(255,255,255,.1); }
.slider .fill { position: absolute; left: 15px; top: 8px; height: 14px; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--me), var(--vio)); }
.slider .knob { position: absolute; left: 15px; top: 0; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(255,90,143,.3), 0 6px 16px rgba(0,0,0,.5); display: block; }
.slider .stops { position: absolute; left: 15px; right: 15px; top: 37px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink3); }
.slider .stops span { width: 0; display: flex; justify-content: center; white-space: nowrap; } .slider .stops .on { color: #fff; }
.slider input { position: absolute; left: 0; right: 0; top: -6px; width: 100%; height: 44px; opacity: 0; margin: 0; cursor: pointer; }
.slider.off { opacity: .35; }
.rand { margin-top: 6px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); height: 30px; }
.rand input { position: absolute; opacity: 0; pointer-events: none; }
.rand i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink3); display: block; position: relative; }
.rand input:checked + i { background: linear-gradient(100deg, var(--me), var(--vio)); border-color: transparent; }
.rand input:checked + i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.coderow { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.coderow input { height: 44px; border-radius: 14px; padding: 0 14px; font-size: 15px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.coderow input::placeholder { color: var(--ink3); font-size: 13px; }
.coderow button { height: 44px; padding: 0 16px; border-radius: 14px; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.12); }
.invite { margin-top: 10px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(100deg, rgba(255,90,143,.35), rgba(180,92,255,.35)); border: 1px solid rgba(255,255,255,.6); }
.invite b { display: block; font-size: 16px; font-weight: 900; } .invite small { display: block; margin-top: 2px; font-size: 12px; opacity: .85; }
.invite .tri2 { margin-top: 10px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 6px; }
.invite .tri2 button { height: 42px; border-radius: 13px; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.14); color: #fff; }
.invite .tri2 button:first-child { background: #fff; color: #0d0b16; font-weight: 900; }

/* ---------- 房间 ---------- */
.brand { font-size: 15px; font-weight: 900; letter-spacing: 0.2em; color: var(--ink2); display: flex; justify-content: space-between; align-items: center; height: 30px; }
.brand .plain { letter-spacing: 0; font-weight: 500; }
.back { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--ink); display: flex; align-items: center; gap: 4px; height: 30px; }
.back::before { content: "‹"; font-size: 24px; line-height: 1; margin-top: -3px; }
.wait { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding-top: 26px; }
.wait .big { font-size: 34px; font-weight: 900; letter-spacing: 0.06em; }
#waitBox { width: 100%; }
.codebox { margin-top: 14px; padding: 12px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); width: 100%; }
.codebox small { display: block; font-size: 12px; color: var(--ink3); letter-spacing: 0.2em; }
.codebox b { display: block; font: 700 40px/1.15 'Chakra Petch', sans-serif; letter-spacing: 0.14em; color: #fff; -webkit-user-select: text; user-select: text; }
.pair { margin-top: 10px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair.three { grid-template-columns: 1fr 1fr 1fr; }
.pair button { height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.12); color: #fff; }
.pair .share { display: flex; align-items: center; justify-content: center; gap: 7px; }
.pair .share svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wait .who { margin-top: 14px; font-size: 14px; color: var(--ink2); }
.wait .note { margin-top: 10px; font-size: 13px; line-height: 1.7; }
.seats { margin-top: 18px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seat { padding: 16px 10px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 4px; justify-items: center; }
.seat b { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--ink3); }
.seat span { font-size: 24px; font-weight: 900; }
.seat i { font-style: normal; font-size: 13px; color: var(--ink2); }
.seat.t { border-color: rgba(183,155,255,.45); background: rgba(183,155,255,.1); } .seat.t span { color: var(--ta); }
.seat.ready i { color: #fff; font-weight: 700; } .seat.ready { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.seat.off { opacity: .5; }

/* ---------- 游戏：顶栏 ---------- */
.bar { height: 34px; display: flex; align-items: center; gap: 8px; flex: none; }
.view { height: 30px; padding: 0 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.view b { color: #fff; }
.whose { height: 30px; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); display: flex; font-size: 12px; font-weight: 700; color: var(--ink3); }
.whose button { padding: 0 9px; border-radius: 7px; display: flex; align-items: center; white-space: nowrap; } .whose .on { background: #fff; color: #0c0d12; }
.icons { display: flex; gap: 6px; color: var(--ink3); margin-left: auto; }
.icons button { width: 34px; height: 34px; display: grid; place-items: center; }
.icons svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icons .cross { display: none; } .icons .off .wave { display: none; } .icons .off .cross { display: block; }

/* ---------- 游戏：两个人到哪了 ---------- */
.duo { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: none; }
.duo > button { height: 38px; padding: 0 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.duo .who { font-size: 14px; font-weight: 900; }
.duo .t { border-color: rgba(183,155,255,.45); background: rgba(183,155,255,.1); } .duo .t .who { color: var(--ta); }
.duo .t.gone { opacity: .45; }
.duo .t.boss { justify-content: center; } .duo .t.boss .lv { display: none; }
.duo .t.ring { box-shadow: 0 0 0 3px rgba(183,155,255,.3); }
.lv { display: flex; gap: 4px; } .lv i { width: 15px; height: 8px; border-radius: 3px; background: rgba(255,255,255,.14); display: block; transition: background .15s; }
.duo .m .lv i { height: 14px; width: 17px; } /* 自己这一排是能点的，做大一点 */
.duo .m .lv i.on { background: #fff; } .duo .t .lv i.on { background: var(--ta); box-shadow: 0 0 8px var(--ta); }
.lv.hot i.on { animation: hot .5s ease-in-out infinite alternate; }
@keyframes hot { from { opacity: 1; } to { opacity: .35; } }
.subrow { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; flex: none; }
.tally { display: flex; gap: 5px; min-width: 0; }
.tally span { height: 26px; padding: 0 9px; border-radius: 13px; background: rgba(255,255,255,.07); font-size: 12px; font-weight: 500; color: var(--ink2); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.tally b { font: 700 14px/1 'Chakra Petch', sans-serif; color: #fff; } .tally em { font-style: normal; }
.tally .hit { background: #fff; color: #0c0d12; font-weight: 900; } .tally .hit b { color: #0c0d12; }
.said { max-width: 46%; height: 28px; padding: 0 12px; border-radius: 12px 12px 3px 12px; background: rgba(183,155,255,.16); border: 1px solid rgba(183,155,255,.5); color: #e6dcff; font-size: 14px; font-weight: 700; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.said.hide { opacity: 0; }
.said.small { background: rgba(255,255,255,.07); border-color: transparent; color: var(--ink2); font-size: 12px; font-weight: 500; border-radius: 13px; }

/* ---------- 游戏：中间 ---------- */
.hero { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; padding: 4px 0; }
.tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tag { height: 28px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 900; display: inline-flex; align-items: center; background: var(--panel); border: 1px solid var(--line); }
.tag.l { background: var(--l); color: #0c0d12; border: 0; }
.line-big { font-size: 27px; font-weight: 900; line-height: 1.4; text-wrap: balance; }
.line-small { font-size: 15px; color: var(--ink2); line-height: 1.5; text-wrap: balance; }
.from { font-size: 13px; font-weight: 900; letter-spacing: 0.2em; color: var(--ta); }
.word { font-size: 64px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.word.l { color: var(--l); text-shadow: 0 0 30px color-mix(in srgb, var(--l) 55%, transparent); }
.word.t { font-size: 38px; color: var(--ta); text-shadow: 0 0 26px rgba(183,155,255,.5); }
.word.pop { animation: pop .28s ease-out; }
@keyframes pop { from { transform: scale(1.35); } to { transform: scale(1); } }
.tnote { font-size: 14px; font-weight: 700; color: var(--ink2); } .tnote b { color: #fff; margin-left: 4px; }
.rise { animation: rise .3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 节拍摆：一拍一个来回的头，卡着拍子碰到两头 */
/* 节拍点：原地不动，每一拍亮一下、鼓一下（原来是左右来回摆的条，董事长嫌晃眼） */
.swing { height: 30px; display: flex; align-items: center; justify-content: center; flex: none; }
.track { position: relative; width: 30px; height: 30px; }
.track i { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--l) 34%, transparent), 0 0 12px var(--l); transition: transform .14s ease-out, box-shadow .14s ease-out, opacity .25s; }
.track i.hit { transform: scale(1.55); box-shadow: 0 0 0 7px color-mix(in srgb, var(--l) 46%, transparent), 0 0 26px var(--l); transition-duration: .03s; }
.track i.idle { opacity: .3; box-shadow: none; }

/* ---------- 游戏：底部按钮 ---------- */
.firsthint { margin-top: 6px; text-align: center; font-size: 12px; color: var(--ink2); flex: none; }
.dockA { margin-top: 8px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 8px; flex: none; }
.dockA button { height: 46px; border-radius: 16px; font-size: 17px; font-weight: 900; letter-spacing: 0.14em; }
.dockA .near { background: #fff; color: #0c0d12; } .dockA .cum { border: 1px solid var(--line); color: var(--ink2); font-size: 15px; letter-spacing: 0.04em; }
.dockA .near.sent { background: var(--panel); color: var(--ink2); border: 1px solid var(--line); font-size: 15px; letter-spacing: 0.04em; }
.dockA.free { grid-template-columns: 1fr 1.7fr; }
.dockA.free .near { background: none; border: 1px solid var(--line); color: var(--ink2); font-size: 15px; letter-spacing: 0.04em; }
.dockA.free .cum { background: var(--g); color: #052412; border: 0; font-size: 17px; letter-spacing: 0.14em; box-shadow: 0 0 26px -6px var(--g); }
.dockA .cum.arm { background: #fff; color: #0c0d12; border: 0; }
.dockB { margin-top: 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; flex: none; }
.dockB button { height: 40px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pin { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: none; }
.pin button { height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(183,155,255,.1); border: 1px solid rgba(183,155,255,.3); color: #e6dcff; white-space: nowrap; overflow: hidden; }
.pin .all { background: none; border-style: dashed; border-color: var(--line); color: var(--ink2); }
.pin .ext { background: var(--panel); border-color: var(--line); color: var(--ink); }
.pin.lead { border-top: 0; padding-top: 0; }
.wm { margin-top: 8px; text-align: center; font-size: 11px; letter-spacing: 0.16em; color: var(--ink3); flex: none; }

/* ---------- 聊天 ---------- */
.chatwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.strip { margin-top: 8px; padding: 9px 12px; border-radius: 14px; background: var(--panel); font-size: 15px; font-weight: 700; line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; flex: none; }
.strip .tag { flex: none; height: 24px; padding: 0 9px; font-size: 13px; }
.chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding: 10px 0 8px; -webkit-user-select: text; user-select: text; }
.chat::before { content: ""; margin-top: auto; }   /* 把气泡压到底下，又不影响往上翻 */
.bub { max-width: 78%; padding: 7px 12px; border-radius: 14px; font-size: 16px; font-weight: 700; line-height: 1.4; word-break: break-word; }
.bub.t { align-self: flex-start; background: rgba(183,155,255,.16); border: 1px solid rgba(183,155,255,.45); color: #ece4ff; border-bottom-left-radius: 4px; }
.bub.m { align-self: flex-end; background: rgba(255,255,255,.14); color: #fff; border-bottom-right-radius: 4px; }
.sysline { align-self: center; font-size: 12px; color: var(--ink3); text-align: center; }
.inp { margin-top: 6px; display: grid; grid-template-columns: 1fr auto; gap: 8px; flex: none; }
.inp.three { grid-template-columns: 1fr auto auto; }
.inp input { height: 42px; min-width: 0; border-radius: 14px; padding: 0 14px; font-size: 15px; background: var(--panel); border: 1px solid var(--line); }
.inp input::placeholder { color: var(--ink3); }
.inp .send { height: 42px; padding: 0 16px; border-radius: 14px; font-size: 14px; font-weight: 900; background: #fff; color: #0c0d12; }
.mic { height: 42px; width: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); }
.mic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mic.on { background: var(--r); border-color: transparent; animation: hot .6s ease-in-out infinite alternate; }

/* ---------- 指挥的人 ---------- */
.peek { margin-top: 10px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; flex: none; }
.peek > * { border-radius: 16px; padding: 10px 12px 12px; text-align: left; min-width: 0; }
.peek .scr { background: rgba(183,155,255,.1); border: 1px solid rgba(183,155,255,.4); }
.peek h6 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink3); }
.peek .scr b { display: block; margin-top: 4px; font-size: 19px; font-weight: 900; color: var(--ta); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek .scr span { display: block; min-height: 18px; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peek .lvl { background: var(--panel); border: 1px solid var(--line); display: block; }
.peek .lvl .lv { margin-top: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.peek .lvl .lv i { width: 100%; height: 14px; border-radius: 4px; }
.peek .lvl .lv i.on { background: var(--ta); box-shadow: 0 0 8px var(--ta); }
.peek .lvl > span:last-child { display: block; margin-top: 8px; font-size: 12px; color: #e6dcff; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beatlab { margin-top: 10px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink3); flex: none; }
.beatlab u { text-decoration: none; letter-spacing: 0; color: var(--ink2); font-family: 'Chakra Petch', 'Noto Sans SC', sans-serif; }
#leadMain { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.seg2 { margin-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); flex: none; }
.seg2 button { height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; font-weight: 700; color: var(--ink2); }
.seg2 .on { background: #fff; color: #0d0b16; font-weight: 900; }
.lab { margin: 10px 0 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink3); display: flex; justify-content: space-between; }
.lab u { text-decoration: none; letter-spacing: 0; color: var(--ink2); }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.keys button { height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; font-weight: 900; background: var(--panel); border: 1px solid var(--line); color: var(--ink2); }
.keys .stop { color: #ff9a9a; border-color: rgba(255,79,79,.5); }
.keys .on { color: #052412; background: var(--g); border: 0; box-shadow: 0 0 26px -6px var(--g); }
.keys .on[data-v="slow"] { background: var(--y); color: #2a1e00; box-shadow: 0 0 26px -6px var(--y); }
.keys .on[data-v="stop"] { background: var(--r); color: #fff; box-shadow: 0 0 26px -6px var(--r); }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.parts button { height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 15px; font-weight: 700; background: var(--panel); border: 1px solid var(--line); color: var(--ink2); }
.parts .on { background: #fff; border-color: #fff; color: #0c0d12; font-weight: 900; }
/* 跟着我的手指：一条宽的大按键（像空格键），哪种手机都放得下、也好连着点 */
.tapwrap { margin-top: 10px; }
.tapbtn { width: 100%; height: 76px; border-radius: 26px; background: linear-gradient(100deg, var(--me), var(--vio)); display: grid; align-content: center; justify-items: center; gap: 3px; color: #fff; box-shadow: 0 0 0 6px rgba(255,90,143,.14), 0 0 40px -12px var(--me); transition: transform .06s; }
.tapbtn b { font-size: 19px; font-weight: 900; letter-spacing: 0.06em; }
.tapbtn small { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.82); }
.tapbtn:active { transform: scale(.97); }
.leadcount { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.leadcount p { font-size: 14px; color: var(--ink2); line-height: 1.6; }
.leadcount .pair { max-width: 320px; }
.leadcount .pair button { height: 50px; font-size: 16px; font-weight: 900; }
.leadcount .pair button:first-child { background: #fff; color: #0c0d12; }

/* ---------- 弹层 ---------- */
.dim { position: absolute; inset: 0; z-index: 3; background: rgba(6,6,10,.66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 92%; overflow-y: auto; padding: 20px 20px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #16151f; border-top: 1px solid var(--line); box-shadow: 0 -30px 60px -20px rgba(0,0,0,.8); }
.sheet.tall { height: 82%; display: flex; flex-direction: column; }
.sheet h4 { font-size: 24px; font-weight: 900; letter-spacing: 0.04em; }
.sheet > p { margin-top: 6px; font-size: 14px; color: var(--ink2); line-height: 1.6; }
.sheet > .btn { margin-top: 10px; height: 50px; font-size: 16px; letter-spacing: 0.04em; }
.sheet > .btn:first-of-type { margin-top: 16px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; flex: none; }
.sheet-head .x { height: 34px; padding: 0 12px; border-radius: 11px; font-size: 13px; font-weight: 700; color: var(--ink2); background: var(--panel); }
.sw { margin-top: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--panel); display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; flex: none; }
.sw i { width: 44px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.16); position: relative; display: block; transition: background .15s; }
.sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.sw.on i { background: var(--g); } .sw.on i::after { left: 21px; }
.says { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; flex: none; }
.says.scroll { margin-top: 8px; flex: 1; min-height: 0; overflow-y: auto; align-content: start; grid-template-columns: repeat(3, 1fr); padding-bottom: 6px; }
.says button { height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--panel); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; overflow: hidden; }
.says button.pinned { border-color: rgba(183,155,255,.5); color: #e6dcff; }
.says .empty { grid-column: 1 / -1; height: 38px; display: grid; place-items: center; font-size: 13px; color: var(--ink3); border: 1px dashed var(--line); border-radius: 13px; }
.cats { display: flex; gap: 6px; overflow-x: auto; flex: none; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; height: 32px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink2); background: var(--panel); white-space: nowrap; }
.cats .on { background: #fff; color: #0c0d12; font-weight: 900; }
.plus { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.plus button { height: 54px; border-radius: 15px; display: grid; place-items: center; align-content: center; font-size: 17px; font-weight: 900; background: var(--panel); border: 1px solid var(--line); color: var(--ink2); }
.plus button small { font-size: 11px; font-weight: 500; }
.plus .on { background: #fff; border-color: #fff; color: #0c0d12; }
.viewlist { margin-top: 12px; display: grid; gap: 8px; }
.viewlist button, .planlist button { padding: 12px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 2px; text-align: left; width: 100%; }
.viewlist b, .planlist b { font-size: 18px; font-weight: 900; } .viewlist span, .planlist span { font-size: 12px; color: var(--ink2); }
.viewlist .on, .planlist .on { background: #fff; border-color: #fff; color: #0c0d12; } .viewlist .on span, .planlist .on span { color: #5a566e; }
.askb { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #16151f; border-top: 1px solid var(--line); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.8); }
.askb p { text-align: center; font-size: 18px; font-weight: 900; }
.askb .two { margin-top: 12px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.askb .two button { height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 16px; font-weight: 900; background: var(--panel); border: 1px solid var(--line); }
.askb .two button:last-child { background: #fff; color: #0c0d12; border: 0; }
.veil { position: absolute; inset: 0; z-index: 6; padding: 24px 22px; background: rgba(8,8,13,.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.veil .btn { max-width: 300px; }
.veil-two { margin-top: 10px; width: 100%; max-width: 340px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.veil .cd { width: 100%; max-width: 340px; }
.planlist { margin-top: 8px; width: 100%; max-width: 340px; display: grid; gap: 8px; }

/* 设置弹层：画面样式四选一、多久换一条、谁来控制 */
.viewgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.viewgrid button { padding: 10px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 1px; text-align: left; }
.viewgrid b { font-size: 16px; font-weight: 900; } .viewgrid span { font-size: 12px; color: var(--ink2); }
.viewgrid .on { background: #fff; border-color: #fff; color: #0c0d12; } .viewgrid .on span { color: #5a566e; }
.chips5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.chips5 button { height: 40px; border-radius: 13px; font-size: 13px; font-weight: 700; background: var(--panel); border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; }
.chips5 .on { background: #fff; border-color: #fff; color: #0c0d12; font-weight: 900; }
.seg2.flat { margin-top: 0; }
.lablink { font-size: 12px; font-weight: 700; letter-spacing: 0; color: #e6dcff; }
/* 跟着我的手指：点的大按键 + 锁住 */
.taprow { display: grid; grid-template-columns: 1fr 84px; gap: 8px; }
.lockbtn { height: 76px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); font-size: 16px; font-weight: 900; color: var(--ink); }
.lockbtn.on { background: #fff; border-color: #fff; color: #0c0d12; }
.tapbtn.locked { background: var(--panel); border: 1px solid var(--line); box-shadow: none; opacity: 1; }
.tapbtn.locked small { color: var(--ink2); }
/* 倒数的时候：加几秒三个键、改主意一个键 */
.adds { width: 100%; max-width: 320px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adds button { height: 50px; border-radius: 16px; background: #fff; color: #0c0d12; font-size: 16px; font-weight: 900; }
.flipbtn { width: 100%; max-width: 320px; height: 44px; border-radius: 15px; background: rgba(255,255,255,.12); font-size: 15px; font-weight: 700; color: #fff; }
/* 指挥的人挑指令 */
.cardlist { margin-top: 10px; flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 7px; align-content: start; padding-bottom: 6px; }
.cardlist button { padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; font-weight: 700; line-height: 1.45; text-align: left; color: var(--ink); }
.cardlist .on { background: #fff; border-color: #fff; color: #0c0d12; }

/* ---------- 结束 ---------- */
.endt { margin-top: 4px; font-size: 30px; font-weight: 900; letter-spacing: 0.06em; }
/* 四个框一样宽、数字一样大、下面的字在同一条线上（董事长要求对齐）；「寸止」只靠底色突出 */
.nums { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nums div { border-radius: 20px; padding: 14px 4px 12px; text-align: center; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.nums b { display: block; font: 700 40px/1 'Chakra Petch', sans-serif; color: #fff; }
.nums span { display: flex; align-items: center; justify-content: center; gap: 5px; height: 18px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink2); letter-spacing: 0.06em; white-space: nowrap; }
.nums em { font-style: normal; }
.nums i.mk { width: 11px; height: 11px; border-radius: 50%; background: var(--r); border: 1.6px solid #fff; display: block; flex: none; }
.nums svg.mk { width: 16px; height: 16px; flex: none; overflow: visible; filter: drop-shadow(0 0 4px rgba(255,70,130,.8)); }
.nums .top { background: linear-gradient(150deg, var(--me), var(--vio)); border-color: transparent; box-shadow: 0 0 34px -12px var(--me); }
.nums .top span { color: #fff; }
.curve { --ch: 104px; margin-top: 14px; padding: 12px 12px 8px 34px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); position: relative; }
.curve svg { display: block; width: 100%; height: var(--ch); overflow: visible; }
.curve .ax { position: absolute; left: 11px; top: 12px; height: var(--ch); width: 16px; font-size: 11px; font-weight: 700; color: var(--ink2); }
.curve .ax span { position: absolute; left: 0; transform: translateY(-50%); line-height: 1; }
.curve small { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--ink3); }
.got { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink2); letter-spacing: 0.1em; }
.got b { display: block; margin-top: 4px; font-size: 30px; font-weight: 900; letter-spacing: 0.06em; background: linear-gradient(100deg, var(--me) 10%, #d7b0ff 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 18+、小提示 ---------- */
.gate { position: fixed; inset: 0; z-index: 50; background: #0d0b16; display: grid; place-items: center; padding: 30px; }
.gate-box { width: 100%; max-width: 340px; text-align: center; display: grid; gap: 18px; --me: #ff5a8f; --vio: #b45cff; }
.gate-box p { font-size: 15px; color: #aaa5c4; line-height: 1.7; }
.toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); white-space: nowrap; z-index: 40; max-width: 84%; padding: 9px 16px; border-radius: 14px; background: rgba(30,28,44,.96); border: 1px solid rgba(255,255,255,.16); font-size: 14px; font-weight: 700; color: #fff; text-align: center; pointer-events: none; }

/* 矮屏（手机浏览器实际只有 660 高左右）：再收一点 */
@media (max-height: 640px) {
  .line-big { font-size: 24px; } .word { font-size: 54px; } .keys button { height: 48px; } .tapbtn { height: 64px; } .lockbtn { height: 64px; }
  .nums b { font-size: 34px; } .btn { height: 50px; }
  .curve { --ch: 78px; margin-top: 10px; } .nums { margin-top: 10px; } .nums div { padding: 10px 6px 9px; } .got b { font-size: 26px; }
  .pin.lead button:nth-child(n+4):not(.all) { display: none; }   /* 指挥面板的常用互动只留一排：加时、两句、互动 */
  .peek > * { padding: 8px 12px 9px; } .lab { margin: 8px 0 6px; }
}

/* 挑指令的弹层：标题和分类之间留点空 */
#cardCats { margin-top: 12px; }

/* 「互动」样式：互动台词在最下面展开三排。指令照常显示在中间，上面那两排按钮跟着往上挪 */
.saypanel { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); flex: none; }
.saypanel .cats { margin: 0 -18px; padding: 0 18px; }
.saypanel .says.scroll { flex: none; height: 128px; margin-top: 8px; padding-bottom: 0; }   /* 三排：3 × 38 + 两条缝 */
@media (max-height: 640px) { .saypanel .says.scroll { height: 83px; } }                      /* 矮屏幕只展开两排 */
/* 互动弹层里点了「改常用」：常用里的句子带一个 ×，下面已经在常用里的句子亮起来 */
.says button { display: flex; align-items: center; justify-content: center; gap: 4px; }
.editing #pinList button { border-style: dashed; }
.editing #pinList button::after { content: "×"; color: var(--ink3); font-weight: 500; }
.editing #sayList .pinned { background: rgba(183,155,255,.24); }
/* 手机浏览器：按住不放的时候别弹出系统的菜单 */
body { -webkit-touch-callout: none; }

/* 指挥面板的节拍点：不单独占一行。手指控制节拍时是大按键里字右边的一个小点；自动节拍时是选中的那个快慢键自己亮一下 */
.tapbtn b { display: flex; align-items: center; justify-content: center; gap: 9px; }
.bdot { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #fff; display: block; box-shadow: 0 0 0 3px rgba(255,255,255,.28); transition: transform .14s ease-out, box-shadow .14s ease-out, opacity .25s; }
.tapbtn.locked .bdot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--l) 45%, transparent), 0 0 10px var(--l); }
.bdot.hit { transform: scale(1.6); box-shadow: 0 0 0 5px rgba(255,255,255,.45), 0 0 14px #fff; transition-duration: .03s; }
.bdot.idle { opacity: .3; box-shadow: none; }
.keys button { transition: transform .14s ease-out, filter .14s ease-out; }
.keys .on.hit { transform: scale(1.07); filter: brightness(1.25); transition-duration: .03s; }

/* 指挥面板：指令直接列在「摸哪里」下面，占满中间剩下的地方、能上下划（最下面淡出一点，看得出下面还有） */
.cardlab { align-items: center; margin-bottom: 6px; }
.minicats { display: flex; gap: 4px; letter-spacing: 0; }
.minicats button { height: 28px; padding: 0 10px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink2); background: var(--panel); }
.minicats .on { background: rgba(183,155,255,.24); color: #fff; }
.cardlist.inline { margin-top: 0; padding-bottom: 14px; gap: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(#000 calc(100% - 20px), transparent); mask-image: linear-gradient(#000 calc(100% - 20px), transparent); }
.cardlist.inline::-webkit-scrollbar { display: none; }
.cardlist.inline button { padding: 8px 12px; border-radius: 12px; font-size: 14px; }
.cardlist.inline button:disabled { opacity: .45; }

/* 指令列在「摸哪里」下面以后，要给它腾地方：六个部位并成一排（最后一个「任意部位」宽一点） */
.parts { grid-template-columns: repeat(5, 1fr) 1.7fr; gap: 6px; }
.parts button { font-size: 14px; white-space: nowrap; }
/* 手机浏览器（实际只有 660 高左右）：指挥面板再收一点，让指令至少露出三行 —— 「快慢」两个字不要了（上面那条「自动节拍」已经说明白了），常用互动只留一排 */
@media (max-height: 720px) {
  #leadAuto .lab { display: none; } #leadAuto .keys { margin-top: 8px; }
  .pin.lead button:nth-child(n+4):not(.all) { display: none; }
  .cardlab { margin-top: 8px; }
}
/* 「互动」样式下面那排分类：选中的用淡紫，不用实心白 —— 这一屏实心白只留给「快到了」 */
.saypanel .cats .on { background: rgba(183,155,255,.24); color: #fff; font-weight: 700; }
.saypanel .says.scroll { scrollbar-width: none; } .saypanel .says.scroll::-webkit-scrollbar { display: none; }
.editing #pinList { grid-template-columns: repeat(3, 1fr); }   /* 改常用的时候每句后面多一个 ×，一排放三句才不挤 */

/* ============ 整体收紧（董事长：有的字不用那么大；指令那几行留白太多，只露出三条太少） ============ */
/* 指挥面板：每一块都调小一号，省下来的地方全给指令 */
.lefttime { font: 500 12px/1 'Chakra Petch', 'Noto Sans SC', sans-serif; color: var(--ink2); white-space: nowrap; }
.peek { margin-top: 8px; gap: 8px; }
.peek > * { padding: 7px 11px 8px; border-radius: 14px; }
.peek .scr b { margin-top: 2px; font-size: 16px; }
.peek .scr span { min-height: 16px; font-size: 12px; }
.peek .lvl .lv { margin-top: 7px; } .peek .lvl .lv i { height: 10px; border-radius: 3px; }
.peek .lvl > span:last-child { margin-top: 6px; }
#leadMode { margin-top: 8px; padding: 4px; border-radius: 14px; }
#leadMode button { height: 32px; font-size: 14px; border-radius: 10px; }
#leadTempo button { height: 44px; font-size: 19px; border-radius: 14px; }
#leadMain .lab { margin: 8px 0 5px; }
#leadMain .cardlab { margin: 8px 0 4px; }
.parts button { height: 34px; border-radius: 11px; }
.tapwrap { margin-top: 8px; }
.tapbtn, .lockbtn { height: 60px; border-radius: 20px; }
.tapbtn b { font-size: 16px; } .tapbtn small { font-size: 11px; } .lockbtn { font-size: 15px; }
.foot.two.lead { padding-top: 8px; gap: 8px; }
.foot.two.lead .btn { height: 44px; font-size: 15px; }
.pin.lead { margin-top: 6px; } .pin.lead button { height: 34px; }
.minicats button { height: 26px; }
/* 指令：一列细线分开的行，不再一条一个框。字 13px，一行 31px 左右 */
.cardlist.inline { gap: 0; padding: 0 0 14px; }
.cardlist.inline button { padding: 6px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.cardlist.inline button:first-child { border-top: 1px solid var(--line); }
.cardlist.inline .on { background: #fff; color: #0c0d12; font-weight: 700; border-radius: 9px; border-color: transparent; }
@media (max-height: 720px) { #leadAuto .keys { margin-top: 8px; } }
@media (max-height: 640px) { #leadTempo button { height: 40px; } .tapbtn, .lockbtn { height: 54px; } }

/* 一起玩 / 被指挥的人：下面两排按钮矮一点 */
.dockA button { height: 44px; font-size: 16px; }
.dockA .cum, .dockA .near.sent, .dockA.free .near { font-size: 14px; }
.dockB button { height: 36px; border-radius: 12px; }
/* 「互动」展开区：格子和字调小；高度跟着屏幕走 —— 手机 660 高露四排多一点（中间留够两行指令的地方），屏幕越高露得越多，最多六排 */
.saypanel .cats button { height: 28px; padding: 0 11px; border-radius: 9px; }
.saypanel .says.scroll { height: clamp(74px, calc(100vh - 456px), 234px); height: clamp(74px, calc(100dvh - 456px), 234px); gap: 6px; margin-top: 6px; padding-bottom: 10px; -webkit-mask-image: linear-gradient(#000 calc(100% - 16px), transparent); mask-image: linear-gradient(#000 calc(100% - 16px), transparent); }
.saypanel .says button { height: 34px; font-size: 13px; border-radius: 11px; }
/* 分类条右边淡出一点：看得出右边还有，能横着划 */
.cats { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); }

/* 指挥面板最下面的两个「倒数」键：平时用得少（董事长：太大、太占地方），缩成和常用互动一样高的小键；「不给」「让 TA 去」几个字带一点颜色，一眼分得清 */
.foot.two.lead { grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 8px; }
.cdbtn { height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.cdbtn b { font-weight: 900; color: #ff9a9a; } .cdbtn.go b { color: var(--g); }
.cdbtn:disabled { opacity: .45; }

/* 推荐回话（玩的人）：在「快到了」上面单独一行，前面写着「回一句」，不和「TA：xxx」放一排（放一排看着像 TA 发了好几条）。
   这一行一直占着 30px，弹出来的时候画面不跳；8 秒后自己收。「互动」样式里不用这一行，推荐的三句放在展开区第一排 */
.subrow { min-height: 30px; }
.sugg { height: 30px; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-width: 0; }
.sugg em { font-style: normal; font-size: 12px; color: var(--ink3); margin-right: 2px; white-space: nowrap; }
.sugg button { flex: none; height: 30px; padding: 0 12px; border-radius: 10px; background: var(--panel); border: 1px solid rgba(183,155,255,.6); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; animation: rise .25s ease-out; }
.says .rec { background: rgba(183,155,255,.24); border-color: rgba(183,155,255,.7); color: #fff; }
/* 推荐回话（指挥的人）：最下面那排三句，TA 刚说了话的时候亮起来 */
.pin.lead.hot button:not(.all) { background: rgba(183,155,255,.24); border-color: rgba(183,155,255,.7); color: #fff; animation: rise .25s ease-out; }
/* 倒数那一排：倒数不给 / 倒数让 TA 去 / 加时 */
.foot.two.lead { grid-template-columns: 1fr 1.3fr auto; }
.cdbtn.ext { padding: 0 18px; color: var(--ink); }

/* 指挥面板的快慢：一个「停」键 + 一条七档的滑块（慢 → 最快）。滑块上那一块写着现在是哪一档，跟着拍子亮一下 */
.speedrow { display: grid; grid-template-columns: 58px 1fr; gap: 8px; }
.speedrow .stopkey { height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; font-weight: 900; background: var(--panel); border: 1px solid rgba(255,79,79,.5); color: #ff9a9a; }
.speedrow .stopkey.on { background: var(--r); border-color: var(--r); color: #fff; box-shadow: 0 0 26px -6px var(--r); }
.speedrow .stopkey:disabled { opacity: .5; }
.tslider { height: 44px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; gap: 30px; padding: 0 12px; }
.tslider > span { flex: none; font-size: 11px; font-weight: 700; color: var(--ink3); }
.tslider .rail { position: relative; flex: 1; height: 44px; }
.tslider .rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: rgba(255,255,255,.12); }
.tslider .rail i { position: absolute; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(255,255,255,.42); }
.tslider .thumb { position: absolute; top: 50%; left: 0; min-width: 46px; height: 32px; padding: 0 8px; margin-top: -16px; transform: translateX(-50%); border-radius: 11px; display: grid; place-items: center; font-size: 15px; font-weight: 900; white-space: nowrap; background: var(--g); color: #052412; box-shadow: 0 0 22px -6px var(--g); transition: left .12s ease-out, transform .14s ease-out, filter .14s ease-out; pointer-events: none; }
.tslider .thumb.slow { background: var(--y); color: #2a1e00; box-shadow: 0 0 22px -6px var(--y); }
.tslider.off .thumb { background: rgba(255,255,255,.16); color: var(--ink2); box-shadow: none; }
.tslider .thumb.hit { transform: translateX(-50%) scale(1.1); filter: brightness(1.25); transition-duration: .03s; }
/* 真正接手指的是这条看不见的滑块：两头各多出半个滑块宽，点哪一档就落在哪一档 */
.tslider input { -webkit-appearance: none; appearance: none; background: none; position: absolute; left: -23px; top: 0; width: calc(100% + 46px); height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tslider input::-webkit-slider-thumb { -webkit-appearance: none; width: 46px; height: 44px; }
.tslider input::-moz-range-thumb { width: 46px; height: 44px; border: 0; }
@media (max-height: 720px) { #leadAuto .speedrow { margin-top: 8px; } }
@media (max-height: 640px) { .speedrow .stopkey, .tslider { height: 40px; } .tslider .rail { height: 40px; } }
/* 结算曲线左边：用到过「最快」才多一格，两个字的那格小一号 */
.curve .ax span.w { font-size: 10px; letter-spacing: -0.5px; }

/* 问话那一条要压在「接下来想怎么玩」这类盖满屏的弹窗上面（对方想指挥我的时候，我可能正好也在选） */
.askb { z-index: 7; }
.aftersay { margin: -2px 0 2px; min-height: 18px; font-size: 14px; font-weight: 700; color: var(--ta); text-align: center; }
/* 左上角「我到哪」：提示的时候亮一圈，让人知道这排格子能点 */
.duo .m.ring { box-shadow: 0 0 0 3px rgba(255,255,255,.45); animation: hot .6s ease-in-out infinite alternate; }
@media (max-width: 380px) { .duo .m .lv i { width: 15px; } .duo .who { font-size: 13px; } }
/* 滚动条：细的、深色的（电脑上默认是一条白的，很扎眼） */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }
.cats { scrollbar-width: none; user-select: none; -webkit-user-select: none; }

/* 底下那排大键现在是三个：快到了（问 TA）/ 寸止（自己叫停）/ 高潮了。被放行以后「快到了」收起来，只剩寸止和绿的高潮了 */
.dockA { grid-template-columns: 1.5fr 1fr 1fr; }
.dockA .edge { border: 1px solid rgba(255,79,79,.5); color: #ff9a9a; font-size: 15px; letter-spacing: 0.08em; }
.dockA .edge:disabled { opacity: .4; }
.dockA.free { grid-template-columns: 1fr 1.7fr; }
.dockA.free .near { display: none; }
.dockA.solo { grid-template-columns: 1fr; }
.dockA.solo .edge { display: none; }

/* 节拍点：挪到指令旁边了（快慢那个标签的左边；倒数、去吧的时候在大字上面）。眼睛本来就看着指令，不用再往下找 */
.beatdot { flex: none; align-self: center; width: 12px; height: 12px; margin-right: 2px; border-radius: 50%; background: #fff; display: block; box-shadow: 0 0 0 4px color-mix(in srgb, var(--l) 34%, transparent), 0 0 12px var(--l); transition: transform .14s ease-out, box-shadow .14s ease-out, opacity .25s; }
.beatdot.hit { transform: scale(1.5); box-shadow: 0 0 0 7px color-mix(in srgb, var(--l) 46%, transparent), 0 0 24px var(--l); transition-duration: .03s; }
.beatdot.idle { opacity: .25; box-shadow: none; }
.beatdot.solo { margin: 0 auto 6px; }
.beatdot.solo.idle { visibility: hidden; }
.strip .beatdot { width: 10px; height: 10px; margin-right: 0; }
/* 指挥面板的「停」键：停着 / 忍着的时候变成绿的「继续」 */
.speedrow .stopkey.go { background: var(--g); border-color: var(--g); color: #052412; font-size: 16px; box-shadow: 0 0 22px -6px var(--g); }

/* 指挥面板：TA 那边的动静这一行，离上面那两格近一点 */
#leadSub { margin-top: 6px; }
/* 问话条：两个键的字长的时候小一号（「让 TA 歇会儿」「不许歇，接着玩」） */
.askb .two.long button { font-size: 15px; }

/* 指挥面板：「倒数」两个键只在快到时间的时候出来，两个并排；「加时」在左上角「还剩 4:57」那里 */
.foot.two.lead { grid-template-columns: 1fr 1.3fr; }
button.lefttime { height: 30px; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.06); }
button.lefttime:disabled { background: none; padding: 0 2px; }
/* 自己的快感度：能按住左右拖 */
#meLv { touch-action: none; cursor: pointer; }
.veil .planlist button { padding: 10px 16px; }
/* 还没放行出声的时候（刚刷新完页面）：小喇叭变黄，提醒点一下屏幕 */
.icons .nosound { color: var(--y); animation: hot .6s ease-in-out infinite alternate; }   /* 别叫 .wait：和「等人」那一页的 .wait 撞名，小喇叭会被挤歪 */

/* 「快到了」弹窗里挑倒数多少秒 */
.secs { margin-top: 10px; width: 100%; max-width: 340px; display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 6px; align-items: center; }
.secs span { font-size: 12px; font-weight: 700; color: var(--ink3); padding-right: 4px; }
.secs button { height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--panel); border: 1px solid var(--line); color: var(--ink2); }
.secs .on { background: rgba(183,155,255,.24); border-color: rgba(183,155,255,.7); color: #fff; }
.veil .planlist button { padding: 9px 16px; } .veil .planlist b { font-size: 17px; }
/* 底下第一个大键：正在倒数 / 已经被放行的时候是「不去了」，淡一点；被放行以后三个键还都在，绿的「高潮了」最大 */
.dockA .near.quiet { background: none; border: 1px solid var(--line); color: var(--ink2); font-size: 14px; letter-spacing: 0.04em; }
.dockA.free { grid-template-columns: 1fr 1fr 1.5fr; }
.dockA.free .near { display: block; }
.dockA.solo { grid-template-columns: 1fr; }
.dockA.solo .near, .dockA.solo .edge { display: none; }

/* 指挥面板：TA 那边的动静单独一块（董事长：对方发的互动不够显眼）。TA 说的话、做的事一条一条排，最新的在最下面、最大；地方不够就只露最新的。
   这一块能长高，指令那一列最多七行、地方不够先缩它（手机 660 高露六行） */
.feed { margin-top: 8px; flex: 1 1 58px; min-height: 58px; max-height: 200px; border-radius: 14px; background: rgba(183,155,255,.07); border: 1px solid rgba(183,155,255,.3); padding: 6px 11px 7px; display: flex; flex-direction: column; overflow: hidden; }
.feedhead { flex: none; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; color: var(--ink3); white-space: nowrap; }
.feedhead b { font: 700 13px/1 'Chakra Petch', sans-serif; color: #fff; margin-left: 4px; }
.feedhead u { margin-left: auto; min-width: 0; text-decoration: none; font-weight: 500; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; }
.feedlist { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; overflow: hidden; }
.fl { flex: none; font-size: 12px; line-height: 1.4; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl.t { color: #cdbcff; font-weight: 700; } .fl.m { color: var(--ink2); }
.fl:last-child { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.fl.t:last-child { font-size: 18px; font-weight: 900; color: var(--ta); text-shadow: 0 0 14px rgba(183,155,255,.55); line-height: 1.4; }
.fl.empty { font-size: 12px; font-weight: 500; color: var(--ink3); }
#leadMain { flex: 0 1 auto; }
.cardlist.inline { flex: 0 1 238px; min-height: 96px; }

/* 「互动」展开区的分类只有六类了：一排放得下，不用横着划 */
.saypanel .cats { gap: 5px; }
.saypanel .cats button { flex: 1 1 0; padding: 0 4px; }

/* 小药丸里「寸止 15」这种：字和数字按同一条基线排（原来各自居中，数字大一号看着不齐） */
.tally span { display: block; line-height: 26px; }
.tally b { font: 700 13px/26px 'Chakra Petch', sans-serif; margin-left: 1px; }
.feedhead b { font-size: 12px; }

/* 快感度十格：格子小一点，把那一格里空着的地方用满（格子跟着宽度伸缩） */
.duo .lv { flex: 1; min-width: 0; max-width: 170px; margin-left: 10px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.duo .lv i, .duo .m .lv i { width: auto; height: 12px; border-radius: 2px; }
.duo .t .lv i { height: 8px; }
.peek .lvl .lv { grid-template-columns: repeat(10, 1fr); gap: 2px; }
.peek .lvl .lv i { border-radius: 2px; }

/* 防诈骗提醒：对方打的字里有链接、联系方式的时候，下面橙色的一句 */
.sysline.warn { color: #ffb86b; font-weight: 700; }
.fl.w, .fl.w:last-child { color: #ffb86b; }

/* 首页「玩多久」那一行：左边是标题和选好的时长，「随机时间」在最右边 */
.durlab { justify-content: flex-start; align-items: center; gap: 12px; }
.durlab .rand { margin: 0 0 0 auto; height: 24px; gap: 8px; letter-spacing: 0; font-weight: 500; cursor: pointer; }
/* 结算页「聊几句」：收起的时候来了新消息，按钮亮起来 */
#endChatBtn.hot { border-color: rgba(183,155,255,.7); background: rgba(183,155,255,.22); color: #fff; }

/* 指挥的人发了指令：「TA 屏幕上」那一格亮一下，表示发出去了 */
.peek .scr.sent { animation: sentglow 1.1s ease-out; }
@keyframes sentglow { 0% { box-shadow: 0 0 0 0 rgba(183,155,255,.9); background: rgba(183,155,255,.34); } 100% { box-shadow: 0 0 0 10px rgba(183,155,255,0); background: rgba(183,155,255,.1); } }
/* 「TA 的动静」地方小的时候，上面露半截的那一行淡出去，不和上面那行字挤在一起 */
.feed { flex-basis: 64px; min-height: 64px; }
.feedlist { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 13px); mask-image: linear-gradient(to bottom, transparent 0, #000 13px); }

/* 准备阶段：TA 在等我的时候那句话亮一点、按钮闪一闪；我在等 TA 的时候 TA 那一格能点（戳一下） */
.acc { color: #fff; font-weight: 700; }
.seat.pokeable { cursor: pointer; border-style: dashed; }
.btn.nudge { animation: hot .6s ease-in-out infinite alternate; }

/* 「互动」展开区现在是常用 + 七类：还是一排，字窄屏小一号 */
.saypanel .cats { gap: 4px; }
@media (max-width: 380px) { .saypanel .cats button { font-size: 12px; padding: 0 2px; } }

/* 快感度八格 */
.duo .lv { grid-template-columns: repeat(8, 1fr); gap: 3px; }
.peek .lvl .lv { grid-template-columns: repeat(8, 1fr); gap: 3px; }
#noticeVeil .btn { margin-top: 14px; max-width: 220px; }
.sw + .sw { margin-top: 8px; }

/* 「互动」面板里的七个分类签：一排放得下，不用左右划（右边那个不再被挡住一半） */
#sayCats { gap: 5px; -webkit-mask-image: none; mask-image: none; }
#sayCats button { flex: 1 1 0; padding: 0 4px; }

/* 首页「想要的风格」：四个一排，可多选；标题右边一句小字说明 */
.chips.c4 { grid-template-columns: repeat(4, 1fr); }
.lab2 u { text-decoration: none; letter-spacing: 0; font-weight: 500; font-size: 11px; color: var(--ink3); }
.swnote { margin: 8px 2px 0; font-size: 12px; color: var(--ink3); line-height: 1.5; flex: none; }
/* 首页多了一排：矮屏幕把每一排收紧一点，底下的按钮才不会被挤出去 */
@media (max-height: 700px) { #screenHome .lab2 { margin: 11px 0 6px; } #screenHome .chips button { height: 42px; } }
@media (max-height: 620px) { #screenHome .lab2 { margin: 8px 0 5px; } #screenHome .chips button { height: 36px; } #screenHome .home-title { font-size: 32px; margin-top: 2px; } }
#screenHome { overflow-y: auto; scrollbar-width: none; }   /* 再矮的屏幕：能往下划，不会把底下的按钮切掉 */
#screenHome::-webkit-scrollbar { display: none; }

/* 只有中文的提示条：贴在最底下，盖在 18+ 那一页上面也看得见；淡色，不抢按钮；可关，15 秒自己消失 */
.langhint { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; max-width: 420px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 9px 6px 9px 14px; border-radius: 14px; background: rgba(30,28,44,.97); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); font-size: 13px; line-height: 1.45; color: #aaa5c4; -webkit-user-select: text; user-select: text; }
.langhint span { flex: 1; min-width: 0; }
.langhint button { flex: none; width: 30px; height: 30px; border-radius: 50%; font-size: 19px; line-height: 1; color: #726d90; }
