/* ================= 多人联机 ================= */
.olb { display: contents; }

/* 首页入口 */
.ol-entry { margin-top: 14px; width: 100%; max-width: 360px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left;
  padding: 14px 18px 14px 14px; border-radius: 18px; border: 1px solid #d9b26f66;
  background: radial-gradient(120% 120% at 0% 0%, #d9b26f26, transparent 60%), linear-gradient(170deg, #2e131f, #160a10);
  box-shadow: 0 0 34px -12px #d9b26f99, inset 0 1px 0 #ffffff14; }
.ol-entry .ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--gold2);
  background: radial-gradient(circle at 35% 30%, #3a1a24, #140a0e); border: 1px solid #d9b26f88; box-shadow: 0 0 18px -4px #d9b26f66; }
.ol-entry .ic svg { width: 22px; height: 22px; }
.ol-entry b { font: 600 17px/1.3 var(--serif); letter-spacing: .16em; color: var(--gold2); }
.ol-entry small { color: var(--mute); font-size: 12px; }
.ol-entry::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 22px; }

/* 连接状态 */
.bar > .ol-pill { width: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: .08em; color: var(--mute);
  padding: 4px 9px 4px 7px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff06; white-space: nowrap; }
.bar > .ol-pill:empty { display: none; }
.ol-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); }
.ol-pill.on i { background: #6fc9a4; box-shadow: 0 0 8px #6fc9a4; }
.ol-pill.wait i { background: var(--gold); animation: olBlink 1s ease-in-out infinite; }
.ol-pill.off { color: #ffb3c0; border-color: #d93a5e66; }
.ol-pill.off i { background: var(--accent); animation: olBlink .8s ease-in-out infinite; }

/* 通用 */
.ol-hero .big { margin: 10px 0 6px; }
.ol-warn { text-align: center; font-size: 13.5px; line-height: 1.6; color: #ffd9de; padding: 10px 14px; border-radius: 14px; background: #3a0a16aa; border: 1px solid #d93a5e55; }
.ol-warn small { display: block; color: var(--mute); font-size: 11.5px; }
.ol-busy { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 22px; }
.ol-busy p { margin: 0; font: 500 16px/1.6 var(--serif); letter-spacing: .06em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ol-busy p small { width: 100%; color: var(--mute); font: 13px var(--sans); }
.ol-spin { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #d9b26f33; border-top-color: var(--gold); animation: olSpin 1s linear infinite; }
.ol-dots::after { content: "…"; display: inline-block; width: 1.2em; text-align: left; animation: olBlink 1.4s ease-in-out infinite; font-style: normal; }
.ol-wait { padding: 6px 0; }
.ol-sub { font-size: 12px; opacity: .8; }
.ol-codein { width: 100%; text-align: center; font: 600 26px/1 var(--latin); letter-spacing: .4em; text-transform: uppercase; padding: 14px 12px 14px calc(12px + .4em); }
.ol-meis { display: inline-flex; align-items: center; gap: 5px; color: var(--text); }
.ol-meis .dot { width: 7px; height: 7px; }

/* 房间码 */
.ol-code { padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.ol-code-big { display: flex; justify-content: center; gap: 8px; }
.ol-code-big i { font: 700 34px/1 var(--latin); font-style: normal; color: var(--gold2); width: 46px; padding: 10px 0 8px; border-radius: 12px;
  background: #0c0609; border: 1px solid #d9b26f55; box-shadow: inset 0 0 14px #d9b26f14; text-shadow: 0 0 16px #d9b26f66; }
.ol-code .row button { font-size: 14px; padding: 11px 8px; }
.ol-wa { color: #b9f0cf; border-color: #4cc38a55; background: linear-gradient(180deg, #ffffff08, #ffffff02), #0f1d16; }

/* 玩家列表 */
.ol-ps { display: flex; flex-direction: column; gap: 8px; }
.ol-p { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #0c0609; border: 1px solid var(--line); }
.ol-p1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ol-p1[onclick] { cursor: pointer; }
.ol-p1 b { font: 600 15px/1.3 var(--serif); letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ol-g { font-size: 13px; }
.ol-g.m { color: #a9c0ec; } .ol-g.f { color: var(--l2); }
.ol-tag { font-style: normal; font-size: 10.5px; letter-spacing: .12em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line2); color: var(--mute); white-space: nowrap; }
.ol-tag.gold { color: #2a1408; background: var(--goldg); border: 0; font-weight: 700; }
.ol-on { width: 8px; height: 8px; border-radius: 50%; background: #6fc9a4; box-shadow: 0 0 8px #6fc9a4; margin-left: auto; flex: none; }
.ol-p.away { opacity: .55; }
.ol-p.away .ol-on { background: var(--mute); box-shadow: none; }
.ol-more { color: var(--gold); font-size: 16px; padding: 0 2px 0 4px; }
.ol-mate { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--l2); padding-left: 18px; }
.ol-mate small { color: var(--mute); }
.ol-mate select { flex: 1; max-width: none; padding: 7px 26px 7px 10px; font-size: 13.5px; }
.ol-sum p { line-height: 1.9; }

/* 房主设置 */
.ol-set details > summary { list-style: none; cursor: pointer; }
.ol-set details > summary::-webkit-details-marker { display: none; }
.ol-set summary h3::after { content: "展开 ▾"; margin-left: auto; font: 400 12px var(--sans); color: var(--gold); letter-spacing: .04em; white-space: nowrap; }
.ol-set details[open] summary h3::after { content: "收起 ▴"; }
.ol-set summary h3 small { margin-left: 0; }
.ol-set-in { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.ol-lv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ol-lv button { padding: 9px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #0d0709; border-color: var(--line); }
.ol-lv b { font: 600 16px/1 var(--latin); color: var(--lc); }
.ol-lv small { font-size: 11px; color: var(--mute); }
.ol-lv button.on { border-color: var(--lc); background: linear-gradient(180deg, color-mix(in srgb, var(--lc) 30%, transparent), #120a0d); box-shadow: 0 0 18px -8px var(--lc); }
.ol-lv button.on small { color: #fff; }

/* 底部菜单 */
.ol-sheet { position: fixed; inset: 0; z-index: 60; background: #000a; display: flex; align-items: flex-end; justify-content: center; animation: olFade .2s ease both; }
.ol-sheet-in { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 10px; padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: linear-gradient(180deg, #2a121d, #140a0f); border: 1px solid #d9b26f44; border-bottom: 0;
  box-shadow: 0 -20px 50px -20px #000; animation: olUp .3s var(--ease) both; }
.ol-sheet-in .big { text-align: center; font: 600 19px var(--serif); margin: 0 0 4px; }

/* 秘密 / 自己的东西 */
.ol-secret { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; border-color: #d9b26f55; }
.ol-secret > small { color: var(--mute); font-size: 11px; letter-spacing: .1em; margin-top: 6px; }
.ol-secret .pt-num { font-size: 96px; }
.ol-secret .pt-word { font-size: 38px; }
.ol-king .big { margin: 6px 0 2px; }
.ol-cover { width: 100%; padding: 26px 16px; border-style: dashed; border-color: #d9b26f55; color: var(--gold2); font: 500 16px var(--serif); letter-spacing: .1em; }
.ol-you { text-align: center; font: 600 18px/1.5 var(--serif); letter-spacing: .08em; color: #ffd9de; padding: 12px; border-radius: 16px;
  background: radial-gradient(100% 140% at 50% 0%, #d93a5e55, #2a0510); border: 1px solid #d93a5e88; box-shadow: 0 0 30px -8px #d93a5e; animation: rise .5s var(--ease) both; }
.ol-you b { color: var(--gold2); }

/* 我从来没有 */
.ol-claim { width: 100%; padding: 20px 16px; font: 700 21px/1.3 var(--serif); letter-spacing: .14em; border-radius: 18px; border-color: #d9b26f55;
  background: radial-gradient(100% 120% at 50% 0%, #d9b26f22, transparent 70%), var(--card); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ol-claim.on { color: #fff3e3; border-color: var(--gold); background: linear-gradient(180deg, #c4304f 0%, #921737 52%, #650c25 100%); box-shadow: 0 0 30px -8px #d93a5e, inset 0 1px 0 #ffffff33; }
.ol-claim small { font: 400 12px var(--sans); letter-spacing: .06em; opacity: .75; }
.ol-nv > div { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.ol-nv > div b { min-width: 64px; font-weight: 600; }
.ol-nv > div.on { border-color: var(--gold); box-shadow: 0 0 18px -6px var(--gold); }
.ol-nv > div.on b::after { content: " ✋"; }

/* 默契 / 心愿 */
.ol-opts button.on { border-color: var(--gold); color: var(--gold2); box-shadow: 0 0 18px -6px var(--gold); opacity: 1; }
.ol-pairs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ol-pairs span { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: #ffffff07; border: 1px solid #ffffff10; color: var(--mute); }

/* 飞行棋：轮到自己时骰子发光 */
.bd-die.ol-go { box-shadow: 0 0 0 2px var(--gold), 0 0 26px -4px var(--gold); animation: olPulse 1.6s ease-in-out infinite; }

@keyframes olSpin { to { transform: rotate(360deg); } }
@keyframes olBlink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes olFade { from { opacity: 0; } }
@keyframes olUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes olPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (max-width: 359px) { .ol-code-big i { width: 40px; font-size: 30px; } .ol-lv small { font-size: 10px; } }

/* ================= v2：头像 / 房间类型 / 预览 / 举报 ================= */
.ol-me { display: flex; align-items: center; gap: 12px; }
.ol-me input { flex: 1; min-width: 0; }
.ol-types > button { padding: 10px 4px; }
.ol-types > button b { letter-spacing: .08em; }
.ol-types > button small { font-size: 10.5px; text-align: center; line-height: 1.35; }
.ol-prev { margin: 10px 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; border-color: #d9b26f44; }
.ol-prev-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ol-prev-h b { font: 600 16px var(--serif); letter-spacing: .1em; color: var(--gold2); margin-right: auto; }
.ol-prev .hint { margin: 0; text-align: left; }
.ol-prev-x { color: #ffb3c0 !important; text-align: center !important; }
.ol-conduct { font-size: 12.5px; line-height: 1.7; text-align: left; color: #f1d9c4; }
.ol-conduct-c { padding: 12px 16px; border-color: #d93a5e55; background: linear-gradient(180deg, #2a0b16, #140a0e); }
.ol-conduct-c .hint { margin: 0; }
.ol-tag.mu { color: #ffb3c0; border-color: #d93a5e66; }
.ol-p1 { cursor: pointer; }
.ol-p1 .av { margin-right: 2px; }
.ol-tap { font-size: 11.5px; opacity: .7; }
.ol-vc:empty { display: none; }
.ol-vc { margin: 0 auto; width: 100%; max-width: 480px; padding: 0 16px; }
.ol-sheet-who { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ol-sheet-who .big { margin: 0; }
.ol-sheet-in textarea { width: 100%; resize: none; font-size: 14px; }
.ol-sheet-in .seg.col > button { font-size: 14px; }
.ol-rp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ol-rp button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; min-width: 0; }
.ol-rp b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pin .av-btn { margin-left: -4px; }
.ol-sheet-in { max-height: 88vh; overflow-y: auto; }
.ol-sheet { z-index: 90; }
.ol-avw { display: inline-grid; border-radius: 50%; flex: none; }

/* 敲门 / 管理员 / 旁观 */
.ol-tag.adm { color: #cfe3ff; border-color: #7fa6e066; background: #7fa6e014; }
.ol-knock { position: sticky; top: 8px; z-index: 20; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid #d9b26f88;
  background: linear-gradient(170deg, #3a1a24f2, #1a0c12f2); box-shadow: 0 10px 30px -12px #000c, 0 0 24px -10px #d9b26f88; animation: olFade .25s ease both; }
.ol-sheet .ol-knock { position: static; box-shadow: none; }
.ol-knock-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 15px var(--serif); letter-spacing: .06em; color: var(--gold2); }
.ol-knock-h .small { width: auto; flex: none; }
.ol-kn1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ol-kn1 b { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px var(--serif); }
.ol-kn1 button { width: auto; flex: none; padding: 7px 12px; font-size: 13.5px; min-height: 0; }
.ol-knock-w .big { margin: 2px 0 0; }
.ol-spec-n { text-align: center; font-size: 13.5px; color: var(--gold2); padding: 9px 12px; border-radius: 14px; border: 1px dashed #d9b26f66; background: #d9b26f10; }
.ol-spec-n small { display: block; color: var(--mute); font-size: 12px; }
#olMain.ol-spec .olb:not([data-k="kn"]):not([data-k="spec"]) :is(button, input, textarea, select) { pointer-events: none; opacity: .5; }
#olMain.ol-spec .ol-cover, #olMain.ol-spec .ol-secret { pointer-events: none; }
/* 申请上麦：房间设置的开关 + 上麦管理弹层 */
.ol-micm { display: flex; flex-direction: column; gap: 6px; }
.ol-micm .hint { margin: 0; text-align: left; }
.ol-stg-h { margin: 10px 0 4px; font: 600 14px/1.3 var(--serif); letter-spacing: .12em; color: var(--gold2); text-align: left; }
.ol-stg-t { flex: none; font-size: 12px; color: var(--mute); white-space: nowrap; }
.ol-sheet.ol-stg .ol-knock { gap: 8px; }
