/* ===== 接龙你画我猜 · 音游风格 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(180deg,#1a0a3a 0%,#0a0a1a 60%,#001a2a 100%);
  background-attachment: fixed;
  color: #e8ecf4; min-height: 100vh;
  overflow-x: hidden;
}
#app { max-width: 760px; margin: 0 auto; padding: 16px 14px 108px; }

.screen { display: none; }
.screen.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

.glass-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---- 首页 ---- */
.home-box { padding: 28px 24px; text-align: center; margin-bottom: 16px; }
.logo-title {
  font-size: 30px; font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(90deg,#7ef2ff,#ffd700,#ff9ad5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.logo-sub { font-size: 13px; color: rgba(255,255,255,.5); letter-spacing: 2px; margin-bottom: 22px; }
.input-group { margin: 12px 0; }
.input-group input {
  width: 100%; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
  color: #fff; padding: 11px 14px; font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s; text-align: center;
}
.input-group input:focus { border-color: #7ef2ff; box-shadow: 0 0 14px rgba(126,242,255,.25); }
.btn-row { display: flex; gap: 10px; margin: 14px 0; justify-content: center; }
.btn-main, .btn-ghost, .btn-primary2 {
  padding: 12px 28px; border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; letter-spacing: 2px; color: #fff; transition: transform .15s, box-shadow .25s, filter .2s;
}
/* 账户登录区域 */
.account-bar { margin: 6px 0 14px; }
.account-in { display: flex; align-items: center; justify-content: space-between; background: rgba(126,242,255,.08); border: 1px solid rgba(126,242,255,.22); border-radius: 10px; padding: 10px 14px; }
.account-name { font-size: 14px; color: #7ef2ff; }
.account-out { display: flex; flex-direction: column; gap: 8px; }
.account-fields { display: flex; gap: 8px; }
.account-fields input { flex: 1; min-width: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #fff; padding: 10px 12px; font-size: 14px; outline: none; }
.account-fields input:focus { border-color: #7ef2ff; box-shadow: 0 0 10px rgba(126,242,255,.2); }
.btn-ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 10px; padding: 10px 16px; font-size: 14px; cursor: pointer; transition: background .2s; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
#accountMsg { text-align: center; font-size: 12px; margin-top: 6px; }

/* 词库选择下拉框 */
.wordbank-group { text-align: center; }
.wordbank-label {
  display: block; font-size: 12px; color: rgba(255,255,255,.65);
  margin-bottom: 6px; letter-spacing: 1px;
}
.wordbank-select {
  width: 100%; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
  color: #fff; padding: 11px 14px; font-size: 15px; outline: none;
  text-align: center; appearance: none; -webkit-appearance: none;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.wordbank-select:focus { border-color: #7ef2ff; box-shadow: 0 0 14px rgba(126,242,255,.25); }
.wordbank-select option { background: #14142a; color: #fff; }
/* v13 描述生成词库区 */
.genbank-group { margin-top: 12px; text-align: center; }
.genbank-group input {
  width: 100%; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px;
  color: #fff; padding: 10px 12px; font-size: 13px; outline: none; text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.genbank-group input:focus { border-color: #7ef2ff; box-shadow: 0 0 14px rgba(126,242,255,.25); }
.genbank-group input:disabled { opacity: .45; }
.genbank-group .btn-ghost { margin-top: 8px; padding: 9px 22px; font-size: 13px; }
.genbank-group .btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.genbank-tip { font-size: 10px; color: rgba(255,255,255,.38); margin-top: 6px; letter-spacing: 1px; }
/* 大厅词库徽章 */
.wordbank-badge {
  text-align: center; font-size: 13px; color: #7ef2ff;
  background: rgba(126,242,255,.1); border: 1px solid rgba(126,242,255,.25);
  border-radius: 20px; padding: 5px 14px; margin: 8px auto; width: fit-content;
}
.btn-main { background: linear-gradient(90deg,#2196f3,#ffb300); box-shadow: 0 4px 18px rgba(33,150,243,.4); }
.btn-main:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 6px 24px rgba(33,150,243,.55); }
.btn-main:active { transform: scale(.96); }
.btn-main:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-primary2 { background: rgba(126,242,255,.15); border: 1px solid rgba(126,242,255,.4); color: #7ef2ff; }
.btn-primary2:hover { box-shadow: 0 0 20px rgba(126,242,255,.35); }
.divider { font-size: 12px; color: rgba(255,255,255,.35); margin: 6px 0; letter-spacing: 2px; }
.msg { min-height: 20px; font-size: 12px; color: #ff9c9c; margin-top: 8px; }

/* 历史战绩弹窗 */
.account-actions { display: flex; gap: 8px; }
.history-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.history-card { width: min(400px, 100%); padding: 20px; text-align: center; max-height: 82vh; display: flex; flex-direction: column; }
.history-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.history-body { margin-bottom: 14px; overflow-y: auto; text-align: left; }
.history-empty { text-align: center; padding: 30px 0; color: rgba(255,255,255,.55); font-size: 14px; }
.hist-item { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hist-time { font-size: 12px; color: rgba(255,255,255,.6); }
.hist-result { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.08); color: #ffb86c; }
.hist-result.win { background: rgba(126,242,255,.15); color: #7ef2ff; }
.hist-word { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 6px; }
.hist-players { display: flex; flex-wrap: wrap; gap: 6px; }
.hist-player { font-size: 12px; background: rgba(255,255,255,.06); border-radius: 6px; padding: 3px 8px; color: rgba(255,255,255,.85); }
.hist-player b { color: #7ef2ff; }
.history-close { width: 100%; flex-shrink: 0; }

.rules { padding: 18px 22px; }
.rules-title { font-size: 15px; font-weight: 700; color: #7ef2ff; letter-spacing: 2px; margin-bottom: 10px; }
.rules ol { padding-left: 20px; font-size: 13px; line-height: 2; color: rgba(255,255,255,.75); }
.rules b { color: #ffd700; }

/* ---- 大厅 ---- */
.lobby-box { padding: 24px; text-align: center; }
.room-code { font-size: 17px; margin-bottom: 16px; letter-spacing: 1px; }
.code-highlight {
  font-size: 30px; font-weight: 800; letter-spacing: 6px;
  background: linear-gradient(90deg,#7ef2ff,#ffd700);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.player-list { margin: 14px 0; }
.player-item {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px; padding: 9px 14px; margin: 6px 0; font-size: 14px;
}
.player-item .host-tag { font-size: 10px; color: #ffd700; border: 1px solid rgba(255,215,0,.4); border-radius: 99px; padding: 1px 8px; }
.player-item .admin-tag { font-size: 10px; color: #7ef2ff; border: 1px solid rgba(126,242,255,.4); border-radius: 99px; padding: 1px 8px; }
.player-item .p-score { color: #7ef2ff; }
.player-item .p-actions { display: flex; align-items: center; gap: 8px; }
.admin-btn {
  font-size: 10px; padding: 3px 9px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(126,242,255,.35); background: rgba(126,242,255,.1); color: #7ef2ff;
}
.admin-btn:hover { background: rgba(126,242,255,.2); }
/* v15 房间设置 */
.room-settings {
  margin: 12px 0; padding: 12px 14px; text-align: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
}
.settings-title { font-size: 13px; font-weight: 700; color: #ffd700; letter-spacing: 2px; margin-bottom: 10px; }
.settings-row { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.settings-label { font-size: 13px; color: rgba(255,255,255,.7); }
.drawms-btns { display: flex; gap: 6px; }
.dms-btn {
  font-size: 13px; padding: 6px 13px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #fff;
}
.dms-btn:hover { background: rgba(255,255,255,.14); }
.dms-btn.on { border-color: #ffd700; background: rgba(255,215,0,.18); color: #ffd700; font-weight: 700; }
.settings-tip { font-size: 10px; color: rgba(255,255,255,.38); margin-top: 8px; letter-spacing: .5px; }
.tip { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 12px; }

/* ---- 游戏中 ---- */
.game-topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px;
}
.turn-badge { color: #7ef2ff; font-weight: 700; letter-spacing: 1px; }
.round-badge { color: #ffd700; }
.score-badge { color: #e8ecf4; }
.bank-badge { /* v14 顶部当前词库 */
  color: #ff9ad5; font-size: 12px; font-weight: 700; letter-spacing: .5px;
  background: rgba(255,154,213,.12); border: 1px solid rgba(255,154,213,.35);
  border-radius: 99px; padding: 2px 9px; white-space: nowrap; max-width: 34%;
  overflow: hidden; text-overflow: ellipsis;
}

.view { margin-top: 4px; }
.wait-msg { padding: 26px; text-align: center; font-size: 16px; letter-spacing: 1px; color: rgba(255,255,255,.75); }
/* v14 等待时 emoji 互动 */
.wait-emoji-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.w-emoji {
  font-size: 24px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.w-emoji:hover { transform: scale(1.2); box-shadow: 0 0 12px rgba(126,242,255,.45); }
.w-emoji:active { transform: scale(.92); }
.wait-emoji-tip { text-align: center; font-size: 10px; color: rgba(255,255,255,.35); margin-top: 8px; letter-spacing: 1px; }
/* v14 emoji 上飘渐隐 */
.float-emoji {
  position: fixed; bottom: 16%; z-index: 2000;
  font-size: 42px; pointer-events: none; line-height: 1;
  opacity: 1; transform: translateY(0) scale(1);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.45));
  transition: transform 2.5s ease-out, opacity 2.5s ease-in;
  animation: floatWobble 1.4s ease-in-out infinite;
}
.float-emoji.rise { transform: translateY(-52vh) scale(1.2); opacity: 0; }
@keyframes floatWobble { 0%,100% { margin-left: 0; } 50% { margin-left: 12px; } }
.chain-preview { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 8px; }
.chain-mini {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px; padding: 6px; text-align: center; font-size: 11px; color: rgba(255,255,255,.6);
}
.chain-mini img { width: 100%; border-radius: 6px; background: #fff; display: block; margin-bottom: 4px; }
.chain-mini .guess-text { color: #7ef2ff; padding: 3px 0; }
.chain-mini .drawer { color: rgba(255,255,255,.5); font-size: 10px; }

.draw-prompt { padding: 14px 18px; margin-bottom: 12px; text-align: center; font-size: 15px; }
.draw-prompt .word {
  font-size: 26px; font-weight: 800; letter-spacing: 4px;
  background: linear-gradient(90deg,#ffd700,#ff9ad5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ref-hint { font-size: 13px; color: #7ef2ff; letter-spacing: 1px; }

.canvas-wrap { padding: 12px; }
canvas { width: 100%; border-radius: 10px; background: #f4f4f4; display: block; touch-action: none; cursor: crosshair; } /* v14 画布浅灰底 */
.ref-img { width: 100%; border-radius: 10px; background: #fff; display: block; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.toolbar input[type=color] { width: 34px; height: 34px; border: none; border-radius: 8px; background: transparent; cursor: pointer; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform .15s; }
.sw.on { transform: scale(1.2); border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,.4); }
.toolbar input[type=range] { flex: 1; min-width: 80px; accent-color: #7ef2ff; }
.tool-btn {
  padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 12px;
}
.tool-btn:hover { background: rgba(255,255,255,.14); }
.submit-btn { width: 100%; margin-top: 14px; padding: 14px; font-size: 16px; }

/* ---- 结果 ---- */
.result-card { padding: 20px; margin-bottom: 14px; text-align: center; }
.result-title { font-size: 22px; font-weight: 800; letter-spacing: 2px; margin-bottom: 8px; }
.result-title.win { color: #00e676; text-shadow: 0 0 20px rgba(0,230,118,.5); }
.result-title.lose { color: #ff5252; text-shadow: 0 0 20px rgba(255,82,82,.4); }
.result-word { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 6px; }
.result-word b { color: #ffd700; font-size: 20px; letter-spacing: 2px; }
.vote-btns { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.vote-btn { padding: 12px 30px; border-radius: 12px; border: none; font-size: 15px; font-weight: 700; cursor: pointer; }
.vote-yes { background: linear-gradient(90deg,#00c853,#2196f3); color: #fff; }
.vote-no { background: rgba(255,82,82,.25); border: 1px solid rgba(255,82,82,.5); color: #ff9c9c; }
.vote-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.chain-full { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.chain-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px; padding: 10px 14px;
}
.chain-item .ci-label { font-size: 11px; color: rgba(255,255,255,.5); width: 52px; flex-shrink: 0; text-align: center; }
.chain-item img { width: 120px; border-radius: 8px; background: #fff; flex-shrink: 0; }
.chain-item .ci-text { flex: 1; font-size: 14px; color: #7ef2ff; }
.chain-item .ci-name { font-size: 11px; color: rgba(255,255,255,.45); }
.chain-item.vote-target { border-color: rgba(126,242,255,.5); box-shadow: 0 0 14px rgba(126,242,255,.2); cursor: pointer; }
.chain-item.vote-target:hover { background: rgba(126,242,255,.12); }
.chain-item.voted { border-color: #ffd700; box-shadow: 0 0 14px rgba(255,215,0,.3); }
.final-score { font-size: 16px; margin-top: 10px; }
.final-score b { color: #ffd700; }

@media (max-width: 480px) {
  .logo-title { font-size: 24px; }
  .chain-item img { width: 90px; }
  .btn-main, .btn-ghost { padding: 11px 20px; font-size: 14px; }
}

/* ---- v6 底部常驻操作栏(退出/刷新) ---- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 998;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(10,10,26,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.12);
  justify-content: center;
  box-shadow: 0 -8px 24px rgba(0,0,0,.35);
}
.bottom-bar.hidden { display: none; }
.bb-btn {
  flex: 1; max-width: 220px; padding: 12px 0;
  border: none; border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; color: #fff; letter-spacing: 2px;
  transition: transform .15s, filter .2s;
}
.bb-btn:hover { filter: brightness(1.12); }
.bb-btn:active { transform: scale(.96); }
.bb-refresh { background: rgba(126,242,255,.16); border: 1px solid rgba(126,242,255,.45); color: #7ef2ff; }
.bb-leave { background: rgba(255,82,82,.18); border: 1px solid rgba(255,82,82,.5); color: #ff9c9c; }

/* ---- v7 未登录提示弹窗 ---- */
.guest-name { color: #7ef2ff; font-size: 16px; letter-spacing: 1px; text-shadow: 0 0 12px rgba(126,242,255,.4); }
.guest-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.guest-btns .btn-main, .guest-btns .btn-ghost { width: 100%; padding: 12px; font-size: 15px; }

/* ---- v9 环节倒计时 ---- */
.timer-badge {
  font-size: 13px; font-weight: 800; color: #7ef2ff; letter-spacing: 1px;
  background: rgba(126,242,255,.12); border: 1px solid rgba(126,242,255,.35);
  border-radius: 99px; padding: 3px 10px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.timer-badge.timer-urgent { color: #ff5252; border-color: rgba(255,82,82,.5); background: rgba(255,82,82,.15); animation: timerBlink 1s ease-in-out infinite; }
@keyframes timerBlink { 50% { opacity: .45; } }
.vote-timer {
  font-size: 22px; font-weight: 800; color: #ffd700; letter-spacing: 2px;
  margin-top: 12px; font-variant-numeric: tabular-nums;
  animation: timerGlow 1s ease-in-out infinite;
}
@keyframes timerGlow { 0%,100% { text-shadow: 0 0 10px rgba(255,215,0,.4); } 50% { text-shadow: 0 0 26px rgba(255,215,0,.95); } }
.vote-banner {
  font-size: 18px; font-weight: 800; letter-spacing: 3px; color: #fff;
  margin-top: 12px; padding: 12px 10px;
  background: linear-gradient(90deg, rgba(255,82,82,.4), rgba(255,179,0,.4));
  border: 1px solid rgba(255,215,0,.55); border-radius: 12px;
  animation: votePulse 1.1s ease-in-out infinite;
  text-shadow: 0 0 16px rgba(255,215,0,.7);
}
@keyframes votePulse { 0%,100% { box-shadow: 0 0 10px rgba(255,215,0,.35); transform: scale(1); } 50% { box-shadow: 0 0 28px rgba(255,215,0,.8); transform: scale(1.02); } }
.vote-done {
  font-size: 16px; font-weight: 700; color: #00e676; letter-spacing: 1px;
  margin-top: 12px; text-shadow: 0 0 14px rgba(0,230,118,.5);
}
.result-word .bonus { color: #00e676; font-size: 22px; text-shadow: 0 0 14px rgba(0,230,118,.6); }

/* ---- v11 本轮 emoji 反应 ---- */
.react-zone {
  margin-top: 14px; padding: 12px 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
}
.react-title { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 10px; letter-spacing: 2px; }
.react-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.react-btn {
  font-size: 24px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07);
  cursor: pointer; transition: transform .15s, box-shadow .2s;
}
.react-btn:hover { transform: scale(1.18); box-shadow: 0 0 10px rgba(126,242,255,.4); }
.react-btn.on { border-color: #ffd700; box-shadow: 0 0 12px rgba(255,215,0,.55); background: rgba(255,215,0,.16); }
.react-mine { font-size: 13px; color: #7ef2ff; margin-top: 10px; letter-spacing: 1px; min-height: 18px; }
.react-summary { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 6px; letter-spacing: 1px; min-height: 18px; }
.react-count { display: inline-block; margin: 2px 4px; font-size: 14px; }
.react-count b { color: #ffd700; }

/* ---- v12 超时未作画占位 ---- */
.ref-placeholder {
  width: 100%; min-height: 220px; border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 2px dashed rgba(255,255,255,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.9; letter-spacing: 1px;
}
.chain-mini .timeout-thumb {
  width: 100%; aspect-ratio: 3/2; border-radius: 6px;
  background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 11px; margin-bottom: 4px;
}
.chain-item .timeout-text { flex: 1; font-size: 14px; color: rgba(255,255,255,.5); text-align: center; }

/* v16: 局内聊天 */
.chat-panel { margin-top: 10px; width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
.chat-box { background: rgba(0,0,0,.28); border: 1px solid rgba(126,242,255,.18); border-radius: 10px; height: 120px; overflow-y: auto; padding: 8px 10px; font-size: 12px; color: rgba(255,255,255,.85); text-align: left; margin-bottom: 6px; }
.chat-line { padding: 2px 0; line-height: 1.4; word-break: break-word; }
.chat-who { color: #7ef2ff; font-weight: 600; }
.chat-text { color: rgba(255,255,255,.85); }
.chat-input-row { display: flex; gap: 6px; }
.chat-input { flex: 1; background: rgba(0,0,0,.35); border: 1px solid rgba(126,242,255,.25); border-radius: 8px; padding: 7px 10px; color: #fff; font-size: 13px; outline: none; }
.chat-input::placeholder { color: rgba(255,255,255,.4); }
.chat-send { background: rgba(126,242,255,.18); border: 1px solid rgba(126,242,255,.4); color: #7ef2ff; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chat-send:hover { background: rgba(126,242,255,.32); }
/* v16: 房主重开按钮 */
.restart-btn { background: rgba(255,80,80,.15); border: 1px solid rgba(255,120,120,.5); color: #ff9090; border-radius: 8px; padding: 3px 9px; font-size: 12px; cursor: pointer; margin-left: 8px; }
.restart-btn:hover { background: rgba(255,80,80,.3); }


/* ===== v16.2 版本号 + 更新日志 ===== */
.version-row {
  margin: 10px auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  transition: background .2s;
  width: fit-content;
}
.version-row:hover { background: rgba(255,255,255,.12); }
.version-text {
  font-size: 12px;
  font-weight: 700;
  color: #7ecbff;
  letter-spacing: .5px;
}
.version-arrow { font-size: 11px; color: rgba(255,255,255,.55); }
.changelog-card { max-height: 78vh; display: flex; flex-direction: column; }
.changelog-list { overflow-y: auto; margin: 8px 0; flex: 1; }
.cl-item { padding: 8px 2px; border-bottom: 1px dashed rgba(255,255,255,.1); }
.cl-item:last-child { border-bottom: none; }
.cl-ver { font-size: 14px; font-weight: 700; color: #ffd54f; margin-bottom: 4px; }
.cl-date { font-size: 11px; color: rgba(255,255,255,.45); font-weight: 400; margin-left: 6px; }
.cl-notes { margin: 0; padding-left: 18px; }
.cl-notes li { font-size: 12.5px; color: rgba(255,255,255,.8); line-height: 1.75; }

/* ---- v16.3 投票显眼化 ---- */
.chain-item.vote-target {
  border: 2px solid rgba(255, 215, 0, .75);
  box-shadow: 0 0 16px rgba(255, 215, 0, .30);
  cursor: pointer;
  position: relative;
  animation: voteCardPulse 1.4s ease-in-out infinite;
  transition: transform .18s ease, box-shadow .18s ease, opacity .3s ease;
}
@keyframes voteCardPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 215, 0, .25); border-color: rgba(255, 215, 0, .65); }
  50%      { box-shadow: 0 0 26px rgba(255, 215, 0, .55); border-color: rgba(255, 215, 0, 1); }
}
.chain-item.vote-target:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 30px rgba(255, 215, 0, .6); z-index: 2; }
/* 已投出票后: 我的票画作金光高亮, 其他画作降低透明度引导聚焦 */
.chain-item.vote-mine {
  border-color: #ffd700 !important;
  box-shadow: 0 0 30px rgba(255, 215, 0, .8) !important;
  animation: none;
  z-index: 3;
}
.chain-item.vote-dimmed { opacity: .38; filter: grayscale(.5); animation: none; }
.chain-item.vote-dimmed:hover { opacity: .7; }
/* 点击投票角标(未投时) */
.vote-hint-tag {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(255, 87, 34, .5);
  pointer-events: none; z-index: 4;
  animation: hintBob 1.2s ease-in-out infinite;
}
@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* 我的票徽章 */
.my-vote-badge {
  position: absolute; top: 8px; right: 8px;
  background: linear-gradient(135deg, #00e676, #00c853);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 230, 118, .55);
  pointer-events: none; z-index: 4;
}
/* 实时票数标签(画作底部) */
.vote-count-tag {
  position: absolute; bottom: 30px; right: 8px;
  background: rgba(0, 0, 0, .65); color: #ffd700;
  font-size: 12px; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, .45);
  pointer-events: none; z-index: 4;
}
/* 投票横幅强化(大字+进度条感) */
.vote-banner {
  font-size: 21px !important;
  padding: 15px 10px !important;
  background: linear-gradient(90deg, rgba(255, 82, 82, .5), rgba(255, 179, 0, .5)) !important;
}
.vote-banner::after {
  content: '👇 点击下方金色卡片投票';
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; margin-top: 6px; color: rgba(255, 255, 255, .85);
}
