* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  background: #14161f;
  color: #e8e6df;
  min-height: 100vh;
  padding: 16px;
}
h1 { font-size: 20px; margin-bottom: 12px; color: #f0d890; }
h2 { font-size: 15px; margin: 14px 0 8px; color: #c9b96a; border-left: 3px solid #c9b96a; padding-left: 8px; }
button {
  background: #2d3348;
  color: #e8e6df;
  border: 1px solid #4a5375;
  border-radius: 6px;
  padding: 6px 14px;
  margin: 3px;
  cursor: pointer;
  font-size: 13px;
}
button:hover { background: #3b4463; }
button.primary { background: #6d5a1e; border-color: #c9b96a; }
button.danger { background: #5a2424; border-color: #a05050; }
button:disabled { opacity: 0.4; cursor: not-allowed; }
select, input {
  background: #1e2230;
  color: #e8e6df;
  border: 1px solid #4a5375;
  border-radius: 6px;
  padding: 6px 8px;
  margin: 3px;
  font-size: 13px;
}
.panel {
  background: #1b1f2c;
  border: 1px solid #303750;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
.phase-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #232840;
  border: 1px solid #4a5375;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.phase-label { font-size: 17px; font-weight: bold; color: #f0d890; }
.blocker { color: #e89090; font-size: 13px; }
.ok { color: #90d890; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { border: 1px solid #303750; padding: 5px 8px; text-align: left; }
th { background: #232840; color: #c9b96a; }
tr.departed td { color: #777; text-decoration: line-through; }
.tag {
  display: inline-block;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  margin-left: 4px;
}
.tag.tarot { background: #274427; color: #a0e0a0; }
.tag.flower { background: #4a2a3a; color: #e0a0c0; }
.tag.erosor { background: #46325a; color: #c9a8f0; }
.tag.sheriff { background: #6d5a1e; color: #ffe9a0; }
.tag.silenced { background: #5a2424; color: #f0b0b0; }
.log { max-height: 220px; overflow-y: auto; font-size: 12px; line-height: 1.7; }
.log div { border-bottom: 1px dashed #2a3048; padding: 2px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
}
.modal {
  background: #1b1f2c;
  border: 2px solid #c9b96a;
  border-radius: 12px;
  padding: 20px;
  max-width: 480px;
  width: 92%;
  max-height: 84vh;
  overflow-y: auto;
}
.candidates { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.candidates button.selected { background: #6d5a1e; border-color: #ffe9a0; }
.memo { max-height: 260px; overflow-y: auto; font-size: 12px; line-height: 1.8; }
.big-role { font-size: 22px; color: #f0d890; margin: 6px 0; }
.hint { color: #9aa2c0; font-size: 12px; }
.error-bar { color: #ff9c9c; font-size: 13px; min-height: 18px; margin: 6px 0; }
.login-box {
  max-width: 360px; margin: 12vh auto; background: #1b1f2c;
  border: 1px solid #4a5375; border-radius: 12px; padding: 28px;
}
.login-box input { width: 100%; margin: 6px 0; }
.login-box button { width: 100%; margin-top: 14px; }
.countdown { color: #f0a860; font-weight: bold; }

/* ===== 观众直播页(2026-08-10) ===== */
.audience-page { max-width: 1280px; margin: 0 auto; }
.aud-topbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(90deg, #1a2038, #232a4a);
  border: 1px solid #3a4265; border-radius: 12px; padding: 12px 18px; margin-bottom: 10px;
}
.aud-day { font-size: 26px; font-weight: bold; color: #f0d080; white-space: nowrap; }
.aud-phase { font-size: 20px; font-weight: bold; color: #9fb8ff; white-space: nowrap; }
.aud-doing { font-size: 16px; line-height: 1.5; }
.aud-next { font-size: 13px; color: #8a93b8; }
.aud-timer { color: #f0a860; font-weight: bold; white-space: nowrap; }
.aud-alive { color: #8ee08e; font-weight: bold; white-space: nowrap; }
.aud-winner { color: #8ee08e; font-size: 20px; font-weight: bold; margin: 6px 2px; }
.aud-winner:empty { display: none; }
.aud-focus { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.focus-card {
  background: #232a4a; border: 1px solid #4a5375; border-radius: 10px;
  padding: 8px 16px; min-width: 150px;
}
.focus-name { font-size: 17px; font-weight: bold; }
.focus-reason { font-size: 13px; color: #f0a860; margin-top: 2px; }
.duel-vs { font-size: 26px; font-weight: bold; margin: 6px 0; }
.duel-vs .vs { color: #e06060; font-size: 18px; margin: 0 8px; }
.duel-meta { color: #aab3d8; font-size: 14px; margin: 3px 0; }
.duel-stage { color: #f0d080; font-weight: bold; }
.tally-row {
  display: flex; justify-content: space-between; padding: 4px 8px;
  border-bottom: 1px solid #2a3048; font-size: 16px;
}
.order-row { line-height: 2.1; }
.order-chip {
  background: #2a3153; border: 1px solid #4a5375; border-radius: 20px;
  padding: 3px 12px; font-size: 14px; display: inline-block; margin: 2px 0;
}
.order-chip.speaking { background: #3d5a3d; border-color: #8ee08e; font-weight: bold; }
.order-chip.muted { opacity: 0.45; text-decoration: line-through; }
.focus-row-hl td { background: rgba(240, 208, 128, 0.08); }
