/* ============================================================
   online.css —— 同桌联机：大厅、房间、桌面游戏壳
   手机是桌上的工具，不是聊天室。交互尽量大按钮、少层级。
   ============================================================ */

.view-online, .view-online-game { padding-left: 14px; padding-right: 14px; }
.online-shell { max-width: 580px; margin: 0 auto; padding-bottom: 20px; }

/* ---------- 通用卡片 ---------- */
.on-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(14px);
}
.on-card.gold { border-color: rgba(255,217,61,0.38); box-shadow: 0 10px 40px rgba(255,217,61,0.08); }
.on-title { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.on-title small { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.on-sub { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-top: 6px; }
.on-note { font-size: 12px; color: var(--text-faint); line-height: 1.6; }
.on-row { display: flex; align-items: center; gap: 10px; }
.on-row.between { justify-content: space-between; }
.on-grow { flex: 1; min-width: 0; }
.on-sep { height: 1px; background: var(--card-border); margin: 12px 0; }
.on-muted { color: var(--text-faint); font-size: 12px; }
.on-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 8px;
  border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--text-dim); }
.on-tag.gold { background: rgba(255,217,61,0.15); color: var(--gold); }
.on-tag.green { background: rgba(107,203,119,0.15); color: var(--green); }
.on-tag.red { background: rgba(255,107,107,0.15); color: var(--wine); }

.on-connect-tip { display: flex; align-items: center; gap: 8px; font-size: 12px;
  color: var(--text-faint); padding: 0 2px 10px; }
.on-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); flex: none; }
.on-dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.on-dot.wait { background: var(--gold); animation: dotPulse 1.2s infinite; }
.on-dot.bad { background: var(--wine); }
@keyframes dotPulse { 50% { opacity: 0.3; } }

/* ---------- 游客资料 ---------- */
.ov-profile { display: flex; align-items: center; gap: 12px; }
.ov-profile-avatar { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 30px; background: rgba(255,255,255,0.08); border: 1px solid var(--card-border); flex: none; }
.ov-profile-name { font-size: 16px; font-weight: 800; }
.ov-avatar-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 12px 0; }
.ov-avatar-opt { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  font-size: 19px; background: rgba(255,255,255,0.04); border: 1px solid transparent; }
.ov-avatar-opt.selected { background: rgba(255,217,61,0.14); border-color: var(--gold); }
.ov-input-row { display: flex; gap: 8px; }
.ov-input-row .btn { flex: none; white-space: nowrap; }
.ov-input, .online-shell input[type="text"], .og-body input[type="text"], .og-body input[type="number"] {
  width: 100%; background: rgba(0,0,0,0.25); border: 1px solid var(--card-border);
  border-radius: 12px; color: var(--text); padding: 12px 14px; font-size: 15px; outline: none;
  min-width: 0;
}
.ov-input:focus, .online-shell input:focus, .og-body input:focus { border-color: var(--gold); }
.ov-input.code { font-size: 26px; font-weight: 900; letter-spacing: 8px; text-align: center;
  font-variant-numeric: tabular-nums; }

.ov-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ov-home-grid .btn { width: 100%; }
.ov-join { margin-top: 12px; display: flex; gap: 8px; }
.ov-join .btn { white-space: nowrap; }
.ov-how { display: grid; gap: 8px; margin-top: 10px; }
.ov-how-step { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.ov-how-num { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255,217,61,0.14); color: var(--gold); font-size: 11px; font-weight: 800; }

/* ---------- 房间顶部 ---------- */
.ov-room-head { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; }
.ov-code-box { flex: 1; border-radius: var(--radius); padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,217,61,0.16), rgba(185,131,255,0.1));
  border: 1px solid rgba(255,217,61,0.3); position: relative; overflow: hidden; }
.ov-code-box::after { content: '🍻'; position: absolute; right: -6px; bottom: -16px; font-size: 70px; opacity: 0.12; }
.ov-code-label { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; }
.ov-code { font-size: 38px; font-weight: 900; letter-spacing: 7px; line-height: 1.15;
  font-variant-numeric: tabular-nums; color: var(--gold); text-shadow: 0 0 24px rgba(255,217,61,0.35); }
.ov-code-actions { display: flex; gap: 8px; margin-top: 10px; position: relative; z-index: 1; }
.ov-code-actions .btn { flex: 1; }
.ov-qr { background: #fff; border-radius: 14px; padding: 10px; width: 130px; flex: none;
  display: grid; place-items: center; }
.ov-qr svg { width: 100%; height: auto; display: block; }
.ov-qr-tip { font-size: 10px; color: #6b6480; text-align: center; margin-top: 4px; }

/* ---------- 座位 ---------- */
.ov-seats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.ov-seat { position: relative; min-width: 0; border-radius: 14px; padding: 10px 6px 8px; text-align: center;
  background: rgba(255,255,255,0.045); border: 1px solid var(--card-border); }
.ov-seat.empty { border-style: dashed; color: var(--text-faint); display: grid; place-items: center;
  min-height: 78px; font-size: 11px; }
.ov-seat.me { border-color: var(--gold); background: rgba(255,217,61,0.09);
  box-shadow: 0 0 0 1px rgba(255,217,61,0.2) inset; }
.ov-seat.offline { opacity: 0.5; }
.ov-seat-avatar { font-size: 25px; line-height: 1.2; position: relative; display: inline-block; }
.ov-seat-avatar .offline-dot { position: absolute; right: -4px; bottom: 0; width: 9px; height: 9px;
  border-radius: 50%; background: var(--text-faint); border: 2px solid var(--bg-2); }
.ov-seat-name { font-size: 11px; font-weight: 700; margin-top: 3px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.ov-seat-tags { font-size: 9px; color: var(--gold); margin-top: 1px; height: 12px;
  white-space: nowrap; overflow: hidden; }
.ov-seat-host { position: absolute; top: 3px; right: 4px; font-size: 10px; }
.ov-seat .ov-seat-drinks { font-size: 9px; color: var(--text-faint); }
.ov-empty-hint { text-align: center; color: var(--text-faint); font-size: 11px; margin-top: 8px; }

/* ---------- 房间工具 ---------- */
.ov-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.ov-tool { border-radius: 13px; padding: 10px 4px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border); text-align: center; font-size: 11px; color: var(--text-dim); }
.ov-tool b { display: block; font-size: 20px; margin-bottom: 3px; font-weight: 400; }
.ov-tool:active { transform: scale(0.94); }
.ov-tool.on { border-color: var(--gold); color: var(--gold); background: rgba(255,217,61,0.1); }
.ov-emotes { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.ov-emote { font-size: 22px; padding: 5px 9px; border-radius: 12px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border); }
.ov-emote:active { transform: scale(1.15); }

.ov-last-dice { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px;
  border-radius: 13px; background: rgba(0,0,0,0.2); border: 1px dashed var(--card-border); }
.ov-last-dice .dice-row { flex: none; }

/* ---------- 房间内游戏列表 ---------- */
.ov-room-game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.ov-room-game { display: flex; align-items: center; gap: 9px; text-align: left;
  padding: 10px 11px; border-radius: 13px; background: rgba(255,255,255,0.045);
  border: 1px solid var(--card-border); min-width: 0; }
.ov-room-game:active { transform: scale(0.97); }
.ov-room-game.recommended { border-color: rgba(255,217,61,0.5); background: rgba(255,217,61,0.07); }
.ov-room-game .rg-emoji { font-size: 23px; flex: none; }
.ov-room-game .rg-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-room-game .rg-meta { font-size: 10px; color: var(--text-faint); margin-top: 1px; }
.ov-room-game:disabled { opacity: 0.45; }
.ov-play-banner { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 15px;
  background: linear-gradient(120deg, rgba(255,217,61,0.14), rgba(185,131,255,0.1));
  border: 1px solid rgba(255,217,61,0.3); margin-bottom: 12px; }
.ov-play-banner .pb-emoji { font-size: 30px; }
.ov-play-banner .pb-title { font-size: 14px; font-weight: 800; }
.ov-play-banner .pb-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.ov-play-banner .btn { margin-left: auto; flex: none; }

.ov-host-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ov-host-row .btn { flex: 1; min-width: 120px; }

.ov-match { border-radius: 12px; background: rgba(0,0,0,0.18); padding: 10px 12px; margin-top: 8px; }
.ov-match-title { font-size: 13px; font-weight: 700; }
.ov-match-sub { font-size: 11px; color: var(--text-faint); margin-top: 2px; line-height: 1.5; }

/* ---------- 联机游戏壳 ---------- */
.online-game { max-width: 580px; margin: 0 auto; position: relative; padding-bottom: 20px; }
.og-top { display: flex; align-items: center; gap: 10px; padding: 2px 2px 10px; }
.og-title { font-size: 19px; font-weight: 900; display: flex; align-items: center; gap: 7px; min-width: 0; }
.og-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-meta { font-size: 11px; color: var(--text-faint); margin-left: auto; text-align: right; line-height: 1.4; }
.og-timer { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 800; font-size: 13px; }
.og-timer.urgent { color: var(--wine); animation: dotPulse 0.8s infinite; }
.og-spectator { font-size: 11px; color: var(--gold); background: rgba(255,217,61,0.12);
  border-radius: 999px; padding: 5px 10px; margin-bottom: 8px; text-align: center; }
.og-hint { display: flex; gap: 8px; font-size: 12px; line-height: 1.55; color: var(--text-dim);
  background: linear-gradient(100deg, rgba(255,217,61,0.1), rgba(255,255,255,0.03));
  border-left: 3px solid var(--gold); border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; }
.og-players { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.og-players::-webkit-scrollbar { display: none; }
.ov-chip { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 11px;
  color: var(--text-dim); background: rgba(255,255,255,0.05); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 5px 10px 5px 6px; position: relative; }
.ov-chip b { font-size: 15px; font-weight: 400; }
.ov-chip em { font-style: normal; font-size: 9px; color: var(--gold); margin-left: 3px; }
.ov-chip.is-active { border-color: var(--gold); color: var(--text); background: rgba(255,217,61,0.1); }
.ov-chip.is-dead { opacity: 0.38; text-decoration: line-through; }
.ov-chip.is-dead em { display: none; }

.og-turnbar { display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 14px; font-size: 13px; font-weight: 700; margin-bottom: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); color: var(--text-dim); }
.og-turnbar.mine { color: #2a1b00; background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  border-color: transparent; box-shadow: 0 6px 24px rgba(255,217,61,0.25); animation: turnGlow 1.8s infinite; }
@keyframes turnGlow { 50% { box-shadow: 0 6px 34px rgba(255,217,61,0.5); } }

.og-body { display: grid; gap: 12px; }
.og-panel { background: rgba(255,255,255,0.055); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 14px; }
.og-panel.gold { border-color: rgba(255,217,61,0.34); background: rgba(255,217,61,0.06); }
.og-panel-title { font-size: 13px; font-weight: 800; color: var(--text-dim); display: flex;
  align-items: center; gap: 7px; margin-bottom: 10px; }
.og-big { font-size: 40px; font-weight: 900; text-align: center; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.og-big.gold { color: var(--gold); text-shadow: 0 0 30px rgba(255,217,61,0.3); }
.og-center { text-align: center; }
.og-actions { display: grid; gap: 9px; margin-top: 4px; }
.og-actions.two { grid-template-columns: 1fr 1fr; }
.og-actions .btn { width: 100%; }
.og-note { text-align: center; font-size: 12px; color: var(--text-faint); line-height: 1.5; }
.og-feedback { text-align: center; font-size: 14px; line-height: 1.6; padding: 10px; border-radius: 12px;
  background: rgba(0,0,0,0.18); }
.og-feedback.ok { color: var(--green); }
.og-feedback.warn { color: var(--gold); }
.og-feedback.penalty { color: var(--wine); }
.og-list { display: grid; gap: 7px; }
.og-list-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 11px;
  background: rgba(0,0,0,0.16); font-size: 12px; min-width: 0; }
.og-list-row .lr-avatar { font-size: 18px; flex: none; }
.og-list-row .lr-main { flex: 1; min-width: 0; line-height: 1.45; }
.og-list-row .lr-name { font-weight: 700; }
.og-list-row .lr-text { color: var(--text-dim); font-size: 11px; }
.og-list-row.danger { border: 1px solid rgba(255,107,107,0.35); background: rgba(255,107,107,0.08); }
.og-list-row .dice-row { flex: none; }

/* ---------- 骰子 ---------- */
.dice-row { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.die { width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, #ffffff, #e6e0f2);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 5px; gap: 1px; box-shadow: 0 3px 8px rgba(0,0,0,0.35), inset 0 -2px 4px rgba(0,0,0,0.12); }
.die i { border-radius: 50%; background: transparent; }
.die i.on { background: #2a1b4d; box-shadow: inset 0 1px 1px rgba(0,0,0,0.4); }
.die.lg { width: 46px; height: 46px; border-radius: 12px; padding: 7px; gap: 2px; }
.die.mini { width: 22px; height: 22px; border-radius: 6px; padding: 3px; }
.die.rolling { animation: diceShake 0.45s infinite; }
@keyframes diceShake {
  0%,100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-4px); }
}

/* ---------- 大话骰 ---------- */
.ov-my-dice { display: flex; justify-content: center; gap: 8px; padding: 12px 6px;
  border-radius: 14px; background: rgba(0,0,0,0.24); border: 1px dashed rgba(255,217,61,0.25); }
.ov-bid-current { text-align: center; }
.ov-bid-current .bid-num { font-size: 36px; font-weight: 900; color: var(--gold); line-height: 1.1; }
.ov-bid-current .bid-sub { font-size: 11px; color: var(--text-faint); margin-top: 3px; }
.ov-bid-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ov-stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: rgba(0,0,0,0.22); border: 1px solid var(--card-border); border-radius: 12px; padding: 6px; }
.ov-stepper button { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,0.08);
  font-size: 18px; font-weight: 700; }
.ov-stepper .val { font-size: 20px; font-weight: 900; color: var(--gold); }
.ov-stepper-label { font-size: 10px; color: var(--text-faint); text-align: center; margin-bottom: 4px; }
.ov-values { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 8px; }
.ov-value-btn { padding: 8px 0; border-radius: 9px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border); font-weight: 800; font-size: 14px; }
.ov-value-btn.selected { background: rgba(255,217,61,0.2); border-color: var(--gold); color: var(--gold); }
.ov-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim);
  margin-top: 10px; }
.ov-check input { width: 17px; height: 17px; accent-color: var(--gold); }
.ov-reveal { display: grid; gap: 7px; }
.ov-reveal-row { padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,0.18); }
.ov-reveal-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.ov-reveal-head span { color: var(--text-faint); font-weight: 500; font-size: 11px; }

/* ---------- 卡牌 ---------- */
.ov-card-stage { display: flex; justify-content: center; padding: 8px 0 14px; }
.ov-playing-card { width: 116px; height: 162px; border-radius: 14px; background: linear-gradient(150deg, #fffdf7, #eee7da);
  color: #2a1b4d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45); position: relative; animation: cardIn 0.4s ease; }
@keyframes cardIn { from { transform: rotateY(80deg) scale(0.9); } to { transform: rotateY(0) scale(1); } }
.ov-playing-card .pc-rank { font-size: 40px; font-weight: 900; line-height: 1; }
.ov-playing-card .pc-emoji { font-size: 27px; }
.ov-playing-card .pc-name { font-size: 12px; font-weight: 800; }
.ov-playing-card .pc-corner { position: absolute; font-size: 13px; font-weight: 900; top: 9px; left: 10px; }
.ov-card-rule { text-align: center; font-size: 13px; line-height: 1.65; color: var(--text-dim); }
.ov-card-rule b { color: var(--text); }
.ov-rule-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }

/* ---------- 转盘 ---------- */
.ov-wheel-wrap { position: relative; width: min(250px, 72vw); aspect-ratio: 1; margin: 4px auto 14px; }
.ov-wheel { position: absolute; inset: 0; border-radius: 50%; border: 5px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 0 30px rgba(0,0,0,0.3);
  transition: transform 2.2s cubic-bezier(0.12, 0.72, 0.16, 1); }
.ov-wheel-pointer { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 20px solid var(--gold); z-index: 3; filter: drop-shadow(0 3px 5px rgba(0,0,0,0.5)); }
.ov-wheel-center { position: absolute; inset: 32%; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #2a1b4d, #161028);
  border: 2px solid rgba(255,217,61,0.45); display: grid; place-items: center; text-align: center;
  box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.ov-wheel-center b { font-size: 22px; }
.ov-wheel-center small { display: block; font-size: 10px; color: var(--text-faint); margin-top: 2px; }
.ov-wheel-label { position: absolute; left: 50%; top: 50%; z-index: 1; font-size: 10px; font-weight: 700;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.7); white-space: nowrap; pointer-events: none; }
.ov-wheel-label.active { color: var(--gold); font-size: 12px; }
.ov-wheel-result { text-align: center; font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.ov-wheel-result small { display: block; font-size: 11px; color: var(--text-faint); font-weight: 500; margin-top: 3px; }

/* ---------- 数字炸弹 ---------- */
.ov-range { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; }
.ov-range .rg-num { font-size: 34px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }
.ov-range .rg-dash { color: var(--text-faint); }
.ov-bomb-bar { height: 9px; border-radius: 999px; background: rgba(0,0,0,0.3); overflow: hidden; margin: 4px 0 14px; }
.ov-bomb-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--gold), var(--wine)); transition: width 0.4s; }
.ov-guess-form { display: flex; gap: 8px; }
.ov-guess-form input { flex: 1; font-size: 20px; text-align: center; font-weight: 800; }
.ov-boom { text-align: center; padding: 14px; border-radius: 16px; background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.35); animation: boomPulse 0.8s ease; }
@keyframes boomPulse { 0% { transform: scale(0.96); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
.ov-boom .boom-emoji { font-size: 48px; }

/* ---------- 谁是卧底 ---------- */
.ov-secret { position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: linear-gradient(140deg, rgba(185,131,255,0.2), rgba(77,150,255,0.12));
  border: 1px solid rgba(185,131,255,0.4); min-height: 132px; display: grid; place-items: center; text-align: center; }
.ov-secret .secret-cover { position: absolute; inset: 0; display: grid; place-items: center; gap: 4px;
  background: linear-gradient(140deg, #2a1b4d, #161028); z-index: 2; transition: opacity 0.3s; padding: 16px; }
.ov-secret.revealed .secret-cover { opacity: 0; pointer-events: none; }
.ov-secret .sc-icon { font-size: 32px; }
.ov-secret .sc-tip { font-size: 12px; color: var(--text-dim); }
.ov-secret .secret-word { font-size: 42px; font-weight: 900; letter-spacing: 4px; color: var(--gold); }
.ov-secret .secret-role { font-size: 12px; color: var(--text-dim); margin-top: 5px; }
.ov-secret .secret-warn { font-size: 10px; color: var(--text-faint); margin-top: 9px; }
.ov-word-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.ov-word { padding: 7px 11px; border-radius: 999px; font-size: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); }
.ov-word.mine { border-color: var(--gold); color: var(--gold); }
.ov-desc { font-size: 13px; line-height: 1.6; padding: 9px 11px; border-radius: 11px;
  background: rgba(0,0,0,0.16); border: 1px solid transparent; }
.ov-desc.mine { border-color: rgba(255,217,61,0.35); background: rgba(255,217,61,0.06); }
.ov-vote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ov-vote { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); font-size: 13px; text-align: left; }
.ov-vote:active { transform: scale(0.97); }
.ov-vote.selected { border-color: var(--wine); background: rgba(255,107,107,0.1); }
.ov-vote:disabled { opacity: 0.4; }
.ov-vote .vote-avatar { font-size: 21px; }
.ov-progress { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-faint); }
.ov-progress-bar { flex: 1; height: 6px; border-radius: 999px; background: rgba(0,0,0,0.3); overflow: hidden; }
.ov-progress-bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }

/* ---------- 逢7过 ---------- */
.ov-seven-number { text-align: center; padding: 8px 0 4px; }
.ov-seven-number .num { font-size: 76px; font-weight: 900; line-height: 1; color: var(--gold);
  text-shadow: 0 0 40px rgba(255,217,61,0.3); font-variant-numeric: tabular-nums; }
.ov-seven-number .lbl { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.ov-seven-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ov-seven-actions .btn { padding: 22px 0; font-size: 18px; }

/* ---------- 逛三园 ---------- */
.ov-garden-head { display: flex; align-items: center; gap: 10px; }
.ov-garden-emoji { font-size: 34px; }
.ov-garden-name { font-size: 22px; font-weight: 900; }
.ov-word-stream { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow-y: auto; margin-top: 8px; }
.ov-word-stream .w { font-size: 12px; padding: 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); }
.ov-word-stream .w.bad { border-color: rgba(255,217,61,0.4); color: var(--gold); }
.ov-word-stream .w:last-child { border-color: var(--gold); color: var(--gold); }

/* ---------- 棋盘 ---------- */
.ov-board-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.ov-cell { position: relative; aspect-ratio: 1; border-radius: 9px; padding: 4px 2px 2px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; }
.ov-cell .c-icon { font-size: 17px; line-height: 1; }
.ov-cell .c-name { font-size: 8px; color: var(--text-faint); white-space: nowrap; overflow: hidden;
  max-width: 100%; }
.ov-cell.start { border-color: rgba(107,203,119,0.45); }
.ov-cell.finish { border-color: rgba(255,217,61,0.6); background: rgba(255,217,61,0.08); }
.ov-cell.here { box-shadow: 0 0 0 2px var(--gold) inset; }
.ov-cell .c-tokens { position: absolute; bottom: 1px; left: 2px; right: 2px; display: flex;
  justify-content: center; flex-wrap: wrap; gap: 0; font-size: 10px; line-height: 1; }
.ov-board-players { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ov-board-player { display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
  padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border); }
.ov-challenge { text-align: center; padding: 16px; border-radius: 16px;
  background: linear-gradient(150deg, rgba(255,107,107,0.12), rgba(185,131,255,0.1));
  border: 1px solid rgba(255,107,107,0.3); }
.ov-challenge .ch-type { font-size: 11px; letter-spacing: 3px; color: var(--wine); font-weight: 800; }
.ov-challenge .ch-text { font-size: 17px; line-height: 1.55; font-weight: 700; margin: 8px 0 4px; }

/* ---------- 结果 ---------- */
.og-result { border-radius: 20px; padding: 18px 16px; margin-top: 4px;
  background: linear-gradient(160deg, rgba(255,217,61,0.14), rgba(185,131,255,0.08));
  border: 1px solid rgba(255,217,61,0.38); animation: cardIn 0.4s ease; }
.og-result-emoji { font-size: 46px; text-align: center; }
.og-result-title { text-align: center; font-size: 23px; font-weight: 900; margin-top: 4px; }
.og-result-sub { text-align: center; font-size: 13px; color: var(--text-dim); margin-top: 5px; line-height: 1.55; }
.og-result-lines { display: grid; gap: 6px; margin: 14px 0; }
.og-result-line { display: flex; gap: 8px; font-size: 12px; line-height: 1.5; padding: 8px 10px;
  border-radius: 10px; background: rgba(0,0,0,0.18); color: var(--text-dim); }
.og-result-line.danger { color: var(--wine); background: rgba(255,107,107,0.08); }
.og-result-actions { display: grid; gap: 8px; }
.og-result-actions .btn { width: 100%; }
.og-wait-host { text-align: center; font-size: 12px; color: var(--text-faint); padding-top: 4px; }

/* ---------- 表情飘屏 ---------- */
.ov-emote-fly { position: fixed; z-index: 90; left: 50%; bottom: 18%; transform: translateX(-50%);
  font-size: 44px; pointer-events: none; animation: emoteFly 1.8s ease forwards;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.4)); }
@keyframes emoteFly {
  0% { opacity: 0; transform: translate(-50%, 30px) scale(0.6); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1.12); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -110px) scale(0.9); }
}

/* ---------- 弹层补充 ---------- */
.modal-online-pick .modal-box { max-height: 82vh; overflow-y: auto; }
.modal-online-pick .pick-chip.selected { border-color: var(--gold); background: rgba(255,217,61,0.14);
  box-shadow: 0 0 0 1px var(--gold) inset; }
.op-note { font-size: 12px; color: var(--text-faint); margin: 4px 0 10px; line-height: 1.5; }
.op-actions { display: flex; gap: 10px; margin-top: 14px; }
.op-actions .btn { flex: 1; }
.ov-dialog-btns { display: grid; gap: 8px; margin-top: 14px; }
.ov-dialog-btns .btn { width: 100%; }

/* ---------- 游戏内底部操作 ---------- */
.og-footer { display: flex; gap: 8px; margin-top: 14px; padding-top: 10px;
  border-top: 1px solid var(--card-border); }
.og-foot-btn { flex: 1; padding: 10px 8px; border-radius: 12px; font-size: 12px; font-weight: 700;
  color: var(--text-dim); background: rgba(255,255,255,0.045); border: 1px solid var(--card-border); }
.og-foot-btn:active { transform: scale(0.96); }

/* 三选一/多选一排 */
.og-cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 7px; }

/* 表情飘屏署名 */
.ov-emote-fly small { display: block; text-align: center; font-size: 11px; font-weight: 700;
  color: var(--text-dim); margin-top: 2px; text-shadow: 0 2px 6px rgba(0,0,0,0.6); }

/* ---------- 模式选择弹层 ---------- */
.modal-mode .modal-box { max-width: 360px; }
.mode-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mode-emoji { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-size: 27px; background: rgba(255,255,255,0.07); border: 1px solid var(--card-border); }
.mode-head .dlg-title { font-size: 18px; }
.mode-sub { font-size: 11px; color: var(--text-faint); margin-top: 3px; line-height: 1.5; }
.mode-options { display: grid; gap: 9px; }
.mode-option { display: flex; align-items: center; gap: 11px; text-align: left; width: 100%;
  padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border); transition: transform 0.15s, border-color 0.2s; }
.mode-option:active { transform: scale(0.97); }
.mode-option.gold { border-color: rgba(255,217,61,0.38); background: rgba(255,217,61,0.08); }
.mode-option .mo-icon { font-size: 25px; flex: none; }
.mode-option .mo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mode-option .mo-main b { font-size: 14px; }
.mode-option .mo-main small { font-size: 11px; color: var(--text-faint); line-height: 1.45; }
.mode-option .mo-arrow { color: var(--text-faint); font-size: 20px; }
.mode-note { text-align: center; font-size: 11px; color: var(--text-faint); margin-top: 12px; line-height: 1.5; }

/* ---------- 手机适配 ---------- */
@media (max-width: 360px) {
  .ov-seats { grid-template-columns: repeat(4, 1fr); }
  .ov-code { font-size: 32px; letter-spacing: 5px; }
  .ov-qr { width: 106px; }
  .ov-avatar-grid { grid-template-columns: repeat(8, 1fr); }
  .ov-board-grid { gap: 4px; }
  .og-big { font-size: 34px; }
}
@media (min-width: 700px) {
  .ov-seats { grid-template-columns: repeat(10, 1fr); }
  .ov-room-game-grid { grid-template-columns: repeat(3, 1fr); }
}
