/**
 * 企业文化剧本杀 v2.0 — 暗色科技风主题
 * dark blue-black + cyan highlights + glassmorphism + grid + glow
 */
:root {
  --bg-0: #060d1a;
  --bg-1: #0a1525;
  --bg-2: #0f1d32;
  --bg-card: rgba(15, 29, 50, 0.75);
  --bg-card-hover: rgba(20, 40, 70, 0.85);
  --border: rgba(0, 229, 255, 0.18);
  --border-strong: rgba(0, 229, 255, 0.4);
  --cyan: #00e5ff;
  --cyan-2: #00b8d4;
  --cyan-dim: #00b8d4;
  --cyan-glow: rgba(0, 229, 255, 0.5);
  --blue: #2979ff;
  --purple: #b388ff;
  --green: #00e676;
  --success: #00e676;
  --yellow: #ffd740;
  --warning: #ffd740;
  --red: #ff5370;
  --error: #ff5370;
  --orange: #ff9100;
  --text-0: #e6f7ff;
  --text-1: #b2d4e8;
  --text-2: #7a9bb5;
  --text-3: #4a6580;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: .25s ease;
  --shadow: 0 4px 20px rgba(0,0,0,.3);
  --shadow-neon: 0 0 30px rgba(0, 229, 255, 0.2), 0 4px 20px rgba(0,0,0,.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-0);
  color: var(--text-0);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === 网格背景 + 扫描线 === */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at top, rgba(0, 229, 255, 0.08), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(41, 121, 255, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#app { position: relative; z-index: 1; min-height: 100vh; }

/* === 滚动条 === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* === 通用组件 === */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s ease;
}
.glass-hover:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
  transform: translateY(-2px);
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(41, 121, 255, 0.08));
  border: 1px solid var(--border-strong);
  color: var(--cyan);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(41, 121, 255, 0.18));
  box-shadow: 0 0 20px var(--cyan-glow);
  color: #fff;
}
.btn:active { transform: scale(0.97); }
.btn:disabled {
  opacity: .4; cursor: not-allowed;
  background: rgba(255,255,255,0.05);
  box-shadow: none; transform: none;
  border-color: var(--border);
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #021019;
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #33eaff, #5393ff);
  color: #021019;
  box-shadow: 0 0 25px var(--cyan-glow);
}
.btn-danger {
  background: linear-gradient(135deg, rgba(255, 83, 112, 0.15), rgba(255, 83, 112, 0.05));
  color: var(--red);
  border-color: rgba(255, 83, 112, 0.4);
}
.btn-danger:hover {
  background: linear-gradient(135deg, rgba(255, 83, 112, 0.3), rgba(255, 83, 112, 0.1));
  box-shadow: 0 0 20px rgba(255, 83, 112, 0.4);
  color: #fff;
}
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* 输入框 */
.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(10, 21, 37, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-0);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all .2s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
  background: rgba(10, 21, 37, 0.9);
}
.input::placeholder { color: var(--text-3); }
.textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

label.field {
  display: block;
  margin-bottom: 14px;
}
label.field > span {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.tag-green { background: rgba(0, 230, 118, 0.1); color: var(--green); border-color: rgba(0, 230, 118, 0.3); }
.tag-red { background: rgba(255, 83, 112, 0.1); color: var(--red); border-color: rgba(255, 83, 112, 0.3); }
.tag-yellow { background: rgba(255, 215, 64, 0.1); color: var(--yellow); border-color: rgba(255, 215, 64, 0.3); }
.tag-purple { background: rgba(179, 136, 255, 0.1); color: var(--purple); border-color: rgba(179, 136, 255, 0.3); }
.tag-orange { background: rgba(255, 145, 0, 0.1); color: var(--orange); border-color: rgba(255, 145, 0, 0.3); }

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--cyan-glow); }
  50% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
}
.pulse { animation: pulse 2s infinite; }

@keyframes glow {
  0%, 100% { text-shadow: 0 0 10px var(--cyan-glow); }
  50% { text-shadow: 0 0 20px var(--cyan-glow), 0 0 30px var(--cyan-glow); }
}
.glow-text { animation: glow 2.5s ease-in-out infinite; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in { animation: fadeIn .35s ease; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* === 布局 === */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 1px;
}
.logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s infinite;
}
.container { max-width: 1280px; margin: 0 auto; padding: 28px; }
.container-narrow { max-width: 480px; margin: 0 auto; padding: 60px 20px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.flex-1 { flex: 1; min-width: 0; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* 文本样式 */
h1 { font-size: 28px; font-weight: 700; letter-spacing: .5px; }
h2 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--text-2); }
.text-dim { color: var(--text-3); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

/* 分割线 */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* 头像/座位 */
.seat {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,229,255,.15), rgba(41,121,255,.1));
  border: 2px solid var(--border-strong);
  font-weight: 700; font-size: 16px; color: var(--cyan);
  flex-shrink: 0;
}
.seat.offline { opacity: .4; border-color: var(--text-3); color: var(--text-2); background: rgba(255,255,255,0.03); }
.seat.online { box-shadow: 0 0 14px var(--cyan-glow); }

/* 倒计时环 */
.timer-ring {
  position: relative;
  width: 72px; height: 72px;
}
.timer-ring svg { transform: rotate(-90deg); }
.timer-ring .timer-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--cyan);
}
.timer-ring.warning .timer-text { color: var(--yellow); }
.timer-ring.danger .timer-text { color: var(--red); animation: pulse 1s infinite; }

/* 剧本卡片 */
.script-card {
  padding: 20px;
  cursor: pointer;
}
.script-card .script-type {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px;
}
.script-card h3 { font-size: 17px; margin-bottom: 6px; }
.script-card .desc { color: var(--text-2); font-size: 13px; margin-bottom: 12px; min-height: 36px; }
.script-card .meta { display: flex; gap: 6px; flex-wrap: wrap; }

/* tab切换 */
.tabs {
  display: flex; gap: 4px;
  background: var(--bg-1);
  padding: 4px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  flex: 1; padding: 9px 16px; text-align: center;
  border-radius: 6px; cursor: pointer;
  color: var(--text-2); font-size: 14px;
  transition: all .2s;
}
.tab.active {
  background: linear-gradient(135deg, rgba(0,229,255,.2), rgba(41,121,255,.1));
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,229,255,.15);
}
.tab:hover:not(.active) { color: var(--text-1); }

/* 玩家面板 */
.player-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(10,21,37,.5);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  transition: all .2s;
}
.player-item:hover { border-color: var(--border-strong); background: rgba(15,29,50,.8); }
.player-item .player-info { flex: 1; min-width: 0; }
.player-item .player-name { font-weight: 600; font-size: 14px; }
.player-item .player-role { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.player-item .player-role.none { color: var(--text-3); font-style: italic; }

/* 角色卡（玩家自己） */
.role-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(0,229,255,.07), rgba(41,121,255,.04));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.role-card .role-title {
  font-size: 22px; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.role-card .role-position { color: var(--text-2); font-size: 14px; margin: 6px 0 12px; }

/* 消息/线索样式 */
.clue-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border-left: 3px solid var(--cyan);
  background: rgba(0,229,255,.06);
  animation: fadeIn .4s ease;
}
.clue-bubble.private { border-left-color: var(--purple); background: rgba(179,136,255,.06); }
.clue-bubble .clue-title { font-weight: 600; margin-bottom: 6px; color: var(--cyan); }
.clue-bubble.private .clue-title { color: var(--purple); }
.clue-bubble .clue-meta { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* 剧本内容（scrollable reader） */
.story-content {
  padding: 20px;
  background: rgba(10,21,37,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.9;
  font-size: 14.5px;
  color: var(--text-1);
  max-height: 55vh;
  overflow-y: auto;
  white-space: pre-wrap;
}
.story-content p { margin-bottom: 12px; }
.story-content strong { color: var(--cyan); }

/* 投票 */
.vote-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(10,21,37,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 8px;
  transition: all .2s;
}
.vote-option:hover { border-color: var(--border-strong); background: rgba(15,29,50,.8); }
.vote-option.voted { border-color: var(--cyan); background: rgba(0,229,255,.08); box-shadow: 0 0 16px rgba(0,229,255,.2); }
.vote-option.disabled { cursor: default; opacity: .7; }
.vote-option .vote-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(0,229,255,.18), rgba(41,121,255,.1));
  border-radius: var(--radius-sm);
  transition: width .6s ease;
}
.vote-option { position: relative; overflow: hidden; }
.vote-option .vote-label { position: relative; z-index: 1; flex: 1; font-weight: 500; }
.vote-option .vote-count { position: relative; z-index: 1; color: var(--cyan); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 统计卡片 */
.stat-card {
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat-card .stat-value {
  font-size: 32px; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-label { color: var(--text-2); font-size: 13px; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.table th { color: var(--text-2); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.table tr:hover td { background: rgba(0,229,255,.03); }

/* 空状态 */
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-3);
}
.empty .empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }

/* 在线点 */
.dot-online {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  display: inline-block;
}
.dot-offline {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3);
  display: inline-block;
}

/* 模态 */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,13,26,.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s;
}
.modal {
  width: 100%; max-width: 520px;
  padding: 28px;
  animation: slideIn .3s;
}
.modal h2 { margin-bottom: 16px; }

/* 顶部房间信息条 */
.room-bar {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 20px;
  background: rgba(0,229,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.room-bar .room-id {
  font-size: 22px; font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
  color: var(--cyan);
}
.room-bar .room-url {
  font-size: 12px; color: var(--text-2);
  background: rgba(0,0,0,.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  cursor: pointer;
}
.room-bar .room-url:hover { color: var(--cyan); }

/* float timer */
.float-timer {
  position: fixed; top: 80px; right: 20px; z-index: 50;
  padding: 12px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 0 30px rgba(0,229,255,.15);
  font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 22px;
  color: var(--cyan);
}
.float-timer.warning { color: var(--yellow); border-color: rgba(255,215,64,.4); }
.float-timer.danger { color: var(--red); border-color: rgba(255,83,112,.4); animation: pulse 1s infinite; }
.float-timer.hidden { display: none; }

/* === 通用补充样式 === */
.panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all .25s ease;
}
.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-panel {
  background: rgba(10, 21, 37, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all .2s;
}
.card-panel:hover {
  border-color: var(--border-strong);
  background: rgba(15, 29, 50, 0.8);
}
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,13,26,.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .2s;
}
.form-group { margin-bottom: 16px; }
.label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: .5px;
}
.error {
  padding: 10px 14px;
  background: rgba(255, 83, 112, 0.1);
  border: 1px solid rgba(255, 83, 112, 0.3);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 13px;
}
.success {
  padding: 10px 14px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 13px;
}
.badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.list { display: flex; flex-direction: column; gap: 8px; }
:root {
  --transition: .25s ease;
  --shadow: 0 4px 20px rgba(0,0,0,.3);
  --shadow-neon: 0 0 30px rgba(0, 229, 255, 0.2), 0 4px 20px rgba(0,0,0,.3);
  --warning: var(--yellow);
}
.stat-card.cyan { border-top: 3px solid var(--cyan); }
.stat-card.green { border-top: 3px solid var(--green); }
.stat-card.yellow { border-top: 3px solid var(--yellow); }
.stat-card.purple { border-top: 3px solid var(--purple); }
.stat-card.orange { border-top: 3px solid var(--orange); }
.stat-card.red { border-top: 3px solid var(--red); }

/* ========== 主持人控制台 & 玩家页通用样式 ========== */
.dot-online, .dot-offline {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 6px; flex-shrink: 0;
}
.dot-online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-offline { background: var(--text-3); }

.player-item-host {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.player-item-host:hover { background: var(--bg-card-hover); border-color: var(--border-strong); }
.player-item-host .seat {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #000; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.player-role-tag {
  font-size: 11px; padding: 2px 8px;
  background: rgba(0,229,255,0.15); color: var(--cyan);
  border-radius: 4px; white-space: nowrap;
}
.player-role-tag.none { background: rgba(255,255,255,0.05); color: var(--text-3); }

.clue-log {
  max-height: 300px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.clue-log-item {
  padding: 10px 12px;
  background: var(--bg-card); border-left: 3px solid var(--cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; line-height: 1.6;
}
.clue-log-item .clue-meta {
  font-size: 11px; color: var(--text-3); margin-bottom: 4px;
}
.clue-log-item.public { border-left-color: var(--orange); }
.clue-log-item.private { border-left-color: var(--purple); }
.clue-log-item.system { border-left-color: var(--text-3); opacity: 0.8; }

.vote-status {
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,83,112,0.08), rgba(255,145,0,0.08));
  border: 1px solid rgba(255,83,112,0.3);
  border-radius: var(--radius);
  text-align: center;
}
.vote-status .vote-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-0); }
.vote-status .vote-desc { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.vote-progress {
  height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px;
  overflow: hidden; margin: 12px 0;
}
.vote-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.5s ease; border-radius: 3px;
}
.vote-options {
  display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px;
}
.vote-option {
  padding: 12px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; text-align: left;
  transition: var(--transition); color: var(--text-1);
}
.vote-option:hover { background: var(--bg-card-hover); border-color: var(--cyan); }
.vote-option.selected { border-color: var(--cyan); background: rgba(0,229,255,0.1); }
.vote-option:disabled { opacity: 0.5; cursor: not-allowed; }
.vote-option .opt-label { font-weight: 600; font-size: 14px; }
.vote-option .opt-count { float: right; font-size: 12px; color: var(--text-3); }

.countdown-big {
  font-size: 48px; font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--cyan); text-shadow: 0 0 20px var(--cyan-glow);
  text-align: center; padding: 20px;
}
.countdown-big.warning { color: var(--yellow); text-shadow: 0 0 20px rgba(255,215,64,0.5); }
.countdown-big.danger { color: var(--red); text-shadow: 0 0 20px rgba(255,83,112,0.5); animation: pulse 1s infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

.timer-bar-container {
  height: 4px; background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden; margin-top: 8px;
}
.timer-bar {
  height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width 1s linear;
}
.timer-bar.warning { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.timer-bar.danger { background: linear-gradient(90deg, var(--red), var(--orange)); animation: pulse 1s infinite; }

.role-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(0,229,255,0.05), rgba(41,121,255,0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.role-card .role-name {
  font-size: 20px; font-weight: 700; color: var(--cyan);
  margin-bottom: 4px;
}
.role-card .role-position {
  font-size: 14px; color: var(--text-2); margin-bottom: 16px;
}
.role-card .role-section { margin-bottom: 14px; }
.role-card .role-section-title {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px;
}
.role-card .role-section-content {
  font-size: 14px; line-height: 1.8; color: var(--text-1);
  white-space: pre-wrap;
}

.clue-card {
  padding: 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.clue-card .clue-source {
  font-size: 11px; color: var(--purple); margin-bottom: 4px;
}
.clue-card.public .clue-source { color: var(--orange); }
.clue-card .clue-text {
  font-size: 13px; line-height: 1.6; color: var(--text-1);
}

.scene-indicator {
  text-align: center; padding: 12px 20px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #000; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; margin-bottom: 16px;
}

.qr-box {
  width: 180px; height: 180px; margin: 0 auto 12px;
  background: #fff; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.qr-box img, .qr-box canvas { width: 100%; height: 100%; }
.room-code-big {
  font-size: 36px; font-weight: 700; letter-spacing: 8px;
  color: var(--cyan); text-align: center; font-family: 'Courier New', monospace;
  text-shadow: 0 0 15px var(--cyan-glow);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .countdown-big { font-size: 36px; padding: 16px; }
  .room-code-big { font-size: 28px; letter-spacing: 4px; }
  .vote-options { grid-template-columns: 1fr; }
}
