:root {
  --paper: #fbfaf6;
  --paper-deep: #f1eee6;
  --ink: #161616;
  --muted: #5c5a54;
  --line: #202020;
  --soft-line: #c9c5bb;
  --red: #ec5b59;
  --red-dark: #c83f43;
  --red-soft: #fff0ed;
  --blue: #2867c7;
  --blue-soft: #eaf2ff;
  --green: #62a85e;
  --yellow: #f6cf74;
  --shadow: 3px 4px 0 rgba(22, 22, 22, .15);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-deep);
  font-family: "Comic Sans MS", "Kaiti SC", "STKaiti", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.dm-accent-bar {
  position: fixed; z-index: 100; inset: 0 0 auto;
  height: 5px; background: var(--red); border-bottom: 2px solid var(--ink);
}
.dm-wrap {
  width: min(980px, calc(100% - 30px));
  margin: 0 auto;
  padding: 26px 0 58px;
}
.dm-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 10px;
}
.dm-head h1 {
  margin: 0; font-size: clamp(21px, 3vw, 29px); line-height: 1.2;
  font-weight: 900; letter-spacing: 0;
}
.dm-head h1::before {
  content: ""; display: inline-block; width: 12px; height: 12px;
  margin: 0 10px 4px 2px; background: var(--red);
  border: 2px solid var(--ink); border-radius: 2px; vertical-align: middle;
}
.dm-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.dm-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 5px 14px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
  box-shadow: 2px 2px 0 rgba(22,22,22,.1); font-size: 14px; font-weight: 900;
  white-space: nowrap;
}
.dm-chip-token { background: #fff2c9; }
.dm-balance-target { position: fixed; z-index: 81; top: 14px; right: max(15px, calc((100vw - 980px) / 2 + 15px)); }
.dm-chip-token::before { content: "◉"; margin-right: 7px; font-size: 18px; }
.dm-chip-progress { background: var(--blue-soft); }
.dm-chip-progress::before { content: "▣"; margin-right: 7px; font-size: 17px; }
.dm-progress-track {
  height: 18px; overflow: hidden; margin-bottom: 18px; padding: 2px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow);
}
.dm-progress-fill { height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width .55s ease; }

.dm-card {
  position: relative; overflow: hidden; padding: 25px 28px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.dm-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .34;
  background-image: radial-gradient(#b8b2a5 .7px, transparent .7px);
  background-size: 8px 8px; mask-image: linear-gradient(135deg, rgba(0,0,0,.45), transparent 35%);
}
.dm-card > * { position: relative; z-index: 1; }

/* ============ 测试中心（hub） ============ */
.dm-hub { animation: dmFadeUp .35s ease both; }
.dm-hub-head { margin-bottom: 20px; }
.dm-hub-head h1 { margin: 0; font-size: clamp(26px, 4vw, 38px); font-weight: 900; line-height: 1.15; }
.dm-hub-head h1::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  margin: 0 12px 4px 2px; background: var(--red);
  border: 2px solid var(--ink); border-radius: 2px; vertical-align: middle;
}
.dm-hub-sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.dm-test-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px; margin-bottom: 34px;
}
.dm-test-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; gap: 9px; padding: 20px 20px 22px; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.dm-test-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 rgba(22,22,22,.18); background: #fff; }
.dm-test-card:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(22,22,22,.15); }
.dm-test-card-active { background: #fff; }
.dm-test-card-active::after {
  content: ""; position: absolute; inset: -2px; border: 2px solid var(--red);
  border-radius: var(--radius); pointer-events: none;
}
.dm-test-card-locked { opacity: .82; }
.dm-test-card-locked .dm-test-name { color: var(--muted); }
.dm-test-card-locked:hover { background: var(--paper); transform: none; box-shadow: var(--shadow); }
.dm-test-tag {
  align-self: flex-start; font-size: 12px; font-weight: 900; letter-spacing: .04em;
  padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow);
}
.dm-test-card-locked .dm-test-tag { background: var(--paper-deep); }
.dm-test-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--paper-deep); color: var(--red-dark);
}
.dm-test-name { font-size: 19px; font-weight: 900; line-height: 1.25; }
.dm-test-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.dm-test-enter { margin-top: 2px; font-weight: 900; color: var(--red-dark); font-size: 14px; }
.dm-test-badge {
  position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 900;
  padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper-deep); color: var(--muted);
}

/* 内嵌于测试中心底部的「研究者控制台」 */
/* 研究者控制台：独立 /admin 整页界面（主界面无入口，需手动输入网址 + 密码） */
.dm-console-page {
  max-width: 760px; margin: 0 auto; padding: 8px 0 40px;
  animation: dmFadeUp .35s ease both;
}
.dm-console-page .dm-back-hub { margin-top: 4px; }

/* 控制台内测试切换（进入对应测试后台） */
.dm-test-tabs { display: flex; gap: 8px; margin: 4px 0 18px; flex-wrap: wrap; }
.dm-test-tab {
  padding: 8px 16px; font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; color: var(--ink);
}
.dm-test-tab:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); background: #fff; }
.dm-test-tab-active { background: var(--ink); color: #fff; box-shadow: 2px 2px 0 rgba(0,0,0,.18); }
.dm-test-tab-active:hover { background: var(--ink); color: #fff; }

/* 测试流顶部「返回测试中心」 */
.dm-back-hub {
  display: inline-flex; align-items: center; min-height: 34px; padding: 5px 14px;
  margin-bottom: 14px; box-shadow: none; font-size: 13px; font-weight: 700;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
}
.dm-back-hub:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); background: #fff; }

.dm-card h2 { margin: 0 0 8px; font-size: clamp(23px, 3vw, 31px); line-height: 1.2; font-weight: 900; overflow-wrap: anywhere; }
.dm-card h3 { margin: 0 0 10px; font-size: 17px; }
.dm-instruction { color: var(--ink); line-height: 1.8; margin: 8px 0 18px; }
.dm-status { min-height: 21px; margin: 10px 0 0; color: var(--red-dark); font-size: 13px; font-weight: 700; }
.dm-optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.dm-req { color: var(--red-dark); }

.dm-start { padding: 0 30px 26px; text-align: center; }
.dm-start-art, .dm-task-visual {
  display: flex; justify-content: center; margin: 0 -30px 18px; padding: 3px 14px;
  background: #fffdf8; border-bottom: 2px solid var(--ink);
}
.dm-start-art img, .dm-task-visual img { display: block; width: min(610px, 100%); height: auto; max-height: 170px; object-fit: contain; }
.dm-start-kicker { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: 1.4px; }
.dm-hero { padding: 2px 0 0; }
.dm-hero-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin: 10px 0 7px; color: var(--ink);
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink);
}
.dm-hero h2 { margin-bottom: 3px; }
.dm-hero-sub { margin: 0; color: var(--muted); font-weight: 700; }
.dm-lead { max-width: 720px; margin: 21px auto 0; text-align: left; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.dm-start .dm-form { max-width: 650px; margin: 20px auto 0; text-align: left; }
.dm-field { margin-top: 14px; }
.dm-field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 900; }
.dm-field input[type="text"], .dm-field input[type="password"], .dm-field textarea {
  width: 100%; padding: 11px 13px; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 9px; outline: none;
}
.dm-field input:focus, .dm-field textarea:focus { border-color: var(--blue); box-shadow: 3px 3px 0 rgba(40,103,199,.2); }
.dm-start .dm-btn-block { max-width: 650px; margin: 18px auto 0; }
.dm-start .dm-btn-ghost { margin-top: 7px; }
.dm-privacy { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.dm-lock { flex: 0 0 auto; margin-top: 4px; }

.dm-btn {
  appearance: none; position: relative; overflow: hidden; cursor: pointer;
  min-height: 43px; padding: 9px 17px; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink);
  font-weight: 800; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.dm-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); background: #fff; }
.dm-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.dm-btn:disabled { opacity: .55; cursor: default; transform: none; }
.dm-btn-primary { color: #fff; background: var(--red); border-color: var(--ink); }
.dm-btn-primary:hover { background: var(--red-dark); }
.dm-btn-primary span { margin-left: 8px; font-size: 19px; }
.dm-btn-ghost { background: transparent; box-shadow: none; }
.dm-btn-block { display: block; width: 100%; padding: 12px; font-size: 16px; }
.dm-btn-sm { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.dm-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dm-admin-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.dm-back-btn { min-height: 34px; padding: 5px 12px 5px 24px; margin-bottom: 12px; box-shadow: none; font-size: 13px; }
.dm-back-btn::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); }

.dm-task { padding-top: 18px; }
.dm-task-visual { position: relative; min-height: 145px; align-items: center; margin-bottom: 19px; padding: 0 18px; background: #fffdf8; }
.dm-task-visual[hidden] { display: none; }
.dm-task-visual img { display: block; }
.dm-task-art-wide { width: min(780px, 100%); max-height: 185px; object-fit: contain; }
.dm-task-visual-dictator { min-height: 180px; justify-content: space-between; padding: 2px 24px 0 32px; }
.dm-task-art-title { width: min(360px, 52%); max-height: 86px; object-fit: contain; }
.dm-task-art-character { align-self: flex-end; width: min(245px, 36%); max-height: 176px; object-fit: contain; }
.dm-task-head { padding: 0 0 13px; border-bottom: 2px dashed var(--ink); }
.dm-step { display: inline-block; margin-bottom: 8px; padding: 4px 13px; color: #123f8a; background: var(--blue-soft); border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; }
.dm-task-head h2 { margin-bottom: 0; }
.dm-task-title-image { display: block; width: 166px; max-width: 46vw; height: auto; object-fit: contain; }

.dm-opponent { display: flex; align-items: center; gap: 13px; margin: 4px 0 18px; }
.dm-opp-avatar { flex: 0 0 57px; width: 57px; height: 57px; }
.dm-opp-bubble { position: relative; flex: 1; padding: 10px 15px; background: #fff; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 2px 2px 0 rgba(22,22,22,.12); }
.dm-opp-bubble::before { content: ""; position: absolute; left: -9px; top: 19px; border: 8px solid transparent; border-right-color: var(--ink); }
.dm-opp-bubble::after { content: ""; position: absolute; left: -5px; top: 20px; border: 7px solid transparent; border-right-color: #fff; }
.dm-opp-name { color: var(--blue); font-weight: 900; }
.dm-opp-line { line-height: 1.55; }
.dm-scenario { padding: 15px 17px; margin-bottom: 17px; background: var(--blue-soft); border: 2px solid var(--ink); border-left: 5px solid var(--blue); border-radius: 12px; }
.dm-role { display: inline-block; padding: 3px 11px; margin-bottom: 6px; color: #fff; background: var(--blue); border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; }
.dm-scenario-text { margin: 0; font-size: 15px; line-height: 1.8; }
.dm-scenario-text b { color: #174c9c; }
.dm-scenario-dictator { position: relative; overflow: hidden; min-height: 145px; }
.dm-scenario-dictator .dm-role, .dm-scenario-dictator .dm-scenario-text { position: relative; z-index: 2; }
.dm-scenario-crowd { position: absolute; z-index: 1; right: -4px; bottom: -7px; width: min(190px, 32%); height: auto; opacity: .94; filter: drop-shadow(0 3px 2px rgba(22,22,22,.12)); pointer-events: none; animation: dmCrowdFloat 3.2s ease-in-out infinite; }
@keyframes dmCrowdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.dm-roundinfo { display: flex; justify-content: space-between; gap: 12px; padding: 9px 13px; margin: 14px 0; background: #fff; border: 2px solid var(--ink); border-radius: 9px; font-weight: 800; }
.dm-roundinfo-val { color: var(--blue); font-size: 17px; }
.dm-payoff { overflow: hidden; margin-top: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 11px; }
.dm-payoff-title { padding: 8px 13px; background: #f5f3ed; border-bottom: 2px solid var(--ink); font-weight: 900; }
.dm-payoff-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--soft-line); }
.dm-payoff-row:last-child { border-bottom: 0; }
.dm-payoff-row .dm-good { color: #368c4f; font-weight: 900; }
.dm-payoff-row .dm-bad { color: var(--red-dark); font-weight: 900; }
.dm-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.dm-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 132px; padding: 17px 12px; background: #fff; }
.dm-choice-ok { background: #eaf5df; }
.dm-choice-bad { background: #ffe0dc; }
.dm-choice:hover:not(:disabled) { background: var(--yellow); }
.dm-choice-icon { width: 34px; height: 34px; line-height: 0; }
.dm-choice-icon svg { width: 34px; height: 34px; display: block; }
.dm-choice-label { font-size: 19px; font-weight: 900; }
.dm-choice-sub { color: var(--muted); font-size: 12px; }
.dm-choice:has(.dm-choice-art) { display: block; padding: 0; min-height: 0; background: transparent; border: 0; box-shadow: none; }
.dm-choice:has(.dm-choice-art):hover:not(:disabled) { background: transparent; box-shadow: none; }
.dm-choice-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.dm-choice:has(.dm-choice-art):hover:not(:disabled) .dm-choice-art { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); filter: saturate(1.08); }
.dm-choice:has(.dm-choice-art):active:not(:disabled) .dm-choice-art { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.dm-choice:has(.dm-choice-art):disabled .dm-choice-art { opacity: .5; filter: grayscale(.25); }
.dm-choice-art { min-height: 112px; object-fit: cover; }
.dm-split { margin-top: 14px; }
.dm-split-bar { display: flex; height: 40px; overflow: hidden; border: 2px solid var(--ink); border-radius: 9px; }
.dm-split-self, .dm-split-other { display: flex; align-items: center; justify-content: center; min-width: 0; transition: flex .25s ease; }
.dm-split-self { background: var(--yellow); }
.dm-split-other { background: #cce1fb; }
.dm-split-self span, .dm-split-other span { overflow: hidden; padding: 0 7px; font-size: 13px; font-weight: 900; white-space: nowrap; text-overflow: ellipsis; }
.dm-confirm-wrap { margin-top: 21px; }
.dm-confirm-wrap .dm-btn { width: 100%; }
.dm-feedback { margin-top: 16px; padding: 11px 14px; background: #eaf5df; border: 2px solid var(--ink); border-radius: 9px; }

.dm-report-banner { display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 4px 0 24px; padding: 0; background: #fff2c9; border: 2px solid var(--ink); border-radius: 11px; }
.dm-report-banner img { display: block; width: 100%; height: auto; max-height: 116px; object-fit: contain; }
.dm-probe { padding: 18px; background: var(--blue-soft); border: 2px solid var(--ink); border-radius: 11px; }
.dm-probe p { margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.dm-probe-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dm-btn-choice:hover { background: var(--yellow); }

.dm-settle-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(22,22,22,.46); }
.dm-settle-card { width: min(380px, 100%); padding: 25px; text-align: center; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 5px 6px 0 rgba(0,0,0,.25); }
.dm-settle-coin { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 8px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-size: 23px; font-weight: 900; }
.dm-flying-coin { position: fixed; z-index: 80; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 rgba(22,22,22,.2); font-size: 23px; font-weight: 900; pointer-events: none; transform: translate(-50%,-50%); }
.dm-settle-task { color: var(--muted); font-size: 13px; font-weight: 800; }
.dm-settle-delta { margin: 10px 0 3px; font-size: 34px; line-height: 1; font-weight: 900; }
.dm-settle-delta span { font-size: 16px; }
.dm-settle-balance { color: var(--muted); }
.dm-settle-balance b { color: var(--ink); font-size: 20px; }
.dm-settle-detail { min-height: 25px; margin: 12px 0 18px; }
.dm-pos { color: #368c4f; }.dm-neg { color: var(--red-dark); }

.dm-report-complete { padding-bottom: 32px; }
.dm-report-complete > h2 { margin: 24px 0 14px; }
.dm-report-complete #dm-report-body { display: grid; gap: 22px; }
.dm-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 rgba(22,22,22,.13); }
.dm-summary-illustrated { overflow: hidden; min-height: 186px; padding: 0; background: linear-gradient(105deg, #ffd977, #ffe9ad 58%, #f7ca62); }
.dm-summary-art { flex: 1 1 250px; align-self: stretch; min-height: 185px; display: flex; align-items: flex-end; justify-content: center; padding: 0 10px; }
.dm-summary-art img { display: block; width: 100%; max-width: 310px; max-height: 184px; object-fit: contain; object-position: bottom; }
.dm-summary-illustrated .dm-summary-main { flex: 0 1 230px; padding: 22px 0; }
.dm-summary-illustrated .dm-summary-note { flex: 1 1 205px; margin-right: 18px; padding: 16px; background: rgba(255,255,255,.58); border: 2px solid var(--ink); border-radius: 8px; font-weight: 700; line-height: 1.75; }
.dm-summary-label { margin-bottom: 8px; font-size: 14px; font-weight: 900; }
.dm-summary-score { color: var(--blue); font-size: 48px; font-weight: 900; line-height: 1; }
.dm-summary-max { color: #2b2b2b; font-size: 25px; }
.dm-summary-level { display: inline-block; margin-top: 14px; padding: 4px 11px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; }
.dm-score-kicker { display: block; color: var(--red-dark); font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }

.dm-radar-wrap { overflow: hidden; padding: 18px 20px 20px; background: #fffdf8; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 rgba(22,22,22,.12); }
.dm-radar-heading, .dm-score-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 2px dashed var(--soft-line); }
.dm-radar-heading h3, .dm-score-panel-head h3 { margin: 2px 0 0; font-size: 22px; }
.dm-radar-heading img { width: 48px; height: 48px; object-fit: contain; }
.dm-radar-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 390px; padding: 8px 0 0; background-image: radial-gradient(rgba(236,91,89,.18) 1px, transparent 1px); background-size: 9px 9px; background-position: center; }
.dm-radar { position: relative; z-index: 1; display: block; width: min(620px, 100%); height: auto; overflow: visible; }
.dm-radar-backdrop { fill: #242424; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.dm-radar-grid { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.4; stroke-dasharray: 4 4; }
.dm-radar-axis { stroke: rgba(255,255,255,.65); stroke-width: 1.3; }
.dm-radar-area { fill: rgba(230,91,77,.74); stroke: #fff0e7; stroke-width: 3; stroke-linejoin: round; }
.dm-radar-dot { fill: var(--red); stroke: #fff; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.dm-radar-dot.dm-level-low { fill: #4a8dd8; }
.dm-radar-dot.dm-level-medium { fill: #f0b748; }
.dm-radar-dot.dm-level-high { fill: #e85b55; }
.dm-radar-label { fill: var(--ink); font-size: 16px; font-weight: 900; paint-order: stroke; stroke: #fffdf8; stroke-width: 4px; stroke-linejoin: round; }
.dm-radar-label-value { fill: var(--ink); font-size: 25px; font-weight: 900; paint-order: stroke; stroke: #fffdf8; stroke-width: 5px; stroke-linejoin: round; }
.dm-radar-star { position: absolute; z-index: 0; width: 26px; height: 26px; object-fit: contain; pointer-events: none; opacity: .85; }
.dm-radar-star-a { left: 3%; top: 6%; }
.dm-radar-star-b { right: 3%; bottom: 5%; transform: rotate(18deg); }
.dm-radar-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 15px; background: #fff3cf; border: 2px solid var(--ink); border-radius: 8px; font-weight: 900; }
.dm-radar-foot b { color: var(--red-dark); font-size: 25px; }
.dm-radar-foot small { color: var(--muted); font-size: 14px; }

.dm-score-panel { padding: 18px 20px 20px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 rgba(22,22,22,.12); }
.dm-score-panel-head img { width: 38px; height: 38px; object-fit: contain; }
.dm-scores { display: grid; gap: 15px; margin-top: 17px; }
.dm-scorebar { --score-color: var(--red); }
.dm-scorebar-gold { --score-color: #e9b83e; }
.dm-scorebar-blue { --score-color: #3675c7; }
.dm-scorebar-purple { --score-color: #8a67bb; }
.dm-scorebar-label { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 6px; font-weight: 900; }
.dm-scorebar-value { flex: 0 0 auto; font-size: 13px; }
.dm-scorebar-track { position: relative; height: 16px; overflow: hidden; padding: 2px; background: #f1efe8; border: 2px solid var(--ink); border-radius: 999px; }
.dm-scorebar-track::after { content: ""; position: absolute; inset: 2px; pointer-events: none; background: linear-gradient(90deg, transparent calc(25% - 1px), rgba(22,22,22,.2) 25%, transparent calc(25% + 1px), transparent calc(50% - 1px), rgba(22,22,22,.2) 50%, transparent calc(50% + 1px), transparent calc(75% - 1px), rgba(22,22,22,.2) 75%, transparent calc(75% + 1px)); }
.dm-scorebar-fill { width: 0; height: 100%; background: var(--score-color); border-radius: 999px; transition: width 1s cubic-bezier(.2,.75,.25,1); }
.dm-scorebar-fill-on { width: var(--score-width); }
.dm-scorebar-scale { display: flex; justify-content: space-between; margin-top: 2px; padding: 0 2px; color: #858078; font-size: 10px; font-weight: 700; }
.dm-level-low { color: #2867a9; }
.dm-level-medium { color: #9b6b00; }
.dm-level-high { color: var(--red-dark); }
.dm-narrative { padding: 17px 18px; background: #fffdf8; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 rgba(22,22,22,.09); font-size: 14px; line-height: 1.85; }

.dm-board { overflow: hidden; padding: 18px 0 0; background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 rgba(22,22,22,.12); }
.dm-board h3 { padding: 0 18px 12px; font-size: 21px; }
.dm-board table, .dm-admin-table { width: 100%; border-collapse: collapse; }
.dm-board th, .dm-board td, .dm-admin-table th, .dm-admin-table td { padding: 9px 13px; border-bottom: 1px dashed var(--soft-line); text-align: center; }
.dm-board th { color: #fff; background: var(--red); border-right: 1px solid rgba(255,255,255,.35); font-size: 15px; }
.dm-board tbody tr:nth-child(-n+3) { font-weight: 900; }
.dm-board tbody tr:nth-child(1) { background: #fff2bf; }
.dm-board tbody tr:nth-child(even) { background: #fbfaf6; }
.dm-board tbody tr:last-child td { border-bottom: 0; }
.dm-board h3 img { width: 26px; height: 26px; object-fit: contain; vertical-align: -7px; }
.dm-admin-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.dm-admin-search input[type=text] { flex: 1 1 240px; min-width: 160px; }
.dm-admin-search select { min-height: 38px; min-width: 110px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.dm-pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin: 14px 0 6px; }
.dm-pager-info { font-size: 13px; color: var(--muted); }
.dm-pager button:disabled { opacity: .45; cursor: not-allowed; }
.dm-admin-ops { white-space: nowrap; }
.dm-access-title { margin: 16px 0 6px; font-weight: 700; }
.dm-empty { color: var(--muted); font-style: italic; font-size: 13px; }
.dm-banlist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.dm-banitem { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); border-radius: 8px; padding: 4px 8px; background: var(--red-soft); font-size: 13px; }
.dm-banitem code { padding: 1px 6px; background: #fff; border: 1px solid var(--soft-line); border-radius: 4px; }
.dm-banreason { color: var(--muted); font-size: 12px; }
.dm-ipcounts { display: flex; flex-direction: column; gap: 5px; margin-bottom: 4px; max-width: 620px; }
.dm-ipitem { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dm-ipaddr { min-width: 130px; font-family: ui-monospace, Consolas, "Courier New", monospace; }
.dm-ipbar { flex: 1; height: 9px; background: var(--paper-deep); border: 1px solid var(--soft-line); border-radius: 5px; overflow: hidden; }
.dm-ipbar i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.dm-ipnum { min-width: 36px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.dm-admin-log td { font-size: 13px; }
.dm-admin-log td code { padding: 1px 6px; background: var(--blue-soft); border-radius: 4px; font-family: ui-monospace, Consolas, "Courier New", monospace; }
.dm-admin-log .dm-logpath { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-admin-log th:nth-child(2), .dm-admin-log td:nth-child(2) { text-align: left; }
.dm-export { margin-top: 22px; padding-top: 17px; border-top: 2px dashed var(--ink); }
.dm-export-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 10px; }
.dm-export-source { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.dm-export-source input[type=text] { width: 240px; min-height: 34px; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 8px; }
.dm-source-gen { margin-top: 22px; padding-top: 17px; border-top: 2px dashed var(--ink); }
.dm-source-list { margin-top: 12px; }
.dm-source-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-source-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 4px; background: #fff; border: 2px solid var(--ink); border-radius: 8px; }
.dm-source-chip-name { padding: 4px 8px; font-weight: 700; cursor: pointer; background: transparent; border: 0; }
.dm-source-chip-name:hover { color: var(--red-dark); text-decoration: underline; }
.dm-inline-check { display: inline-flex; gap: 7px; align-items: center; margin: 4px 0 10px; font-size: 14px; cursor: pointer; user-select: none; }
.dm-inline-check input { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }
.dm-source-gen input[type=text] { flex: 1 1 260px; min-width: 180px; }
#dm-source-note { color: var(--green-dark, #1c7c43); font-size: 13px; margin: 4px 0 0; }
.dm-attn { padding: 12px 14px; background: var(--red-soft); border: 2px solid var(--ink); border-radius: 10px; }
.dm-fatal { padding: 13px 16px; margin-bottom: 15px; color: var(--red-dark); background: var(--red-soft); border: 2px solid var(--ink); border-radius: 10px; }
.dm-toast { position: fixed; z-index: 99999; left: 50%; bottom: 25px; max-width: 90vw; padding: 10px 16px; color: #fff; background: var(--ink); border: 2px solid #fff; border-radius: 8px; transform: translateX(-50%); box-shadow: 3px 3px 0 rgba(0,0,0,.2); }
.dm-toast-error { background: var(--red-dark); }

.dm-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.35); animation: dmRipple .6s ease-out; pointer-events: none; }
@keyframes dmRipple { to { transform: scale(2.8); opacity: 0; } }
.dm-anim, .dm-card:not([hidden]) { animation: dmFadeUp .35s ease both; }
@keyframes dmFadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.dm-rise { animation: dmRise .35s ease both; }
@keyframes dmRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dm-choice.dm-picked { outline: 3px solid var(--blue); }
.dm-spin { display: inline-block; width: 14px; height: 14px; margin-right: 7px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: dmSpin .7s linear infinite; vertical-align: -2px; }
@keyframes dmSpin { to { transform: rotate(360deg); } }

@media (max-width: 680px) {
  .dm-wrap { width: calc(100% - 18px); max-width: 540px; padding-top: 19px; }
  .dm-head { align-items: flex-start; flex-direction: column; gap: 11px; }
  .dm-meta { width: 100%; justify-content: flex-start; }
  .dm-card, .dm-start { padding-left: 16px; padding-right: 16px; }
  .dm-card { min-width: 0; }
  .dm-start-art, .dm-task-visual { margin-left: -16px; margin-right: -16px; }
  .dm-start-art img { max-height: 120px; }
  .dm-task-art-wide { max-height: 110px; }
  .dm-task-visual-dictator { min-height: 125px; padding: 2px 10px 0 16px; }
  .dm-task-art-title { width: 55%; max-height: 64px; }
  .dm-task-art-character { width: 39%; max-height: 123px; }
  .dm-task-title-image { width: 145px; max-width: 56vw; }
  .dm-scenario-dictator { min-height: 170px; }
  .dm-scenario-crowd { right: -5px; bottom: -6px; width: 112px; opacity: .68; }
  .dm-card h2, .dm-lead, .dm-instruction, .dm-scenario-text, .dm-opp-line { overflow-wrap: anywhere; word-break: break-all; }
  .dm-field, .dm-field input, .dm-field textarea, .dm-btn { min-width: 0; max-width: 100%; }
  .dm-choice-grid { gap: 10px; }
  .dm-choice { min-height: 118px; }
  .dm-choice:has(.dm-choice-art) { min-height: 0; }
  .dm-report-banner { align-items: stretch; }
  .dm-summary-illustrated { display: grid; grid-template-columns: 1fr; }
  .dm-summary-art { min-height: 135px; }
  .dm-summary-art img { max-height: 145px; }
  .dm-summary-illustrated .dm-summary-main { padding: 15px 16px 0; text-align: center; }
  .dm-summary-illustrated .dm-summary-note { margin: 0 14px 14px; padding: 12px 14px; }
  .dm-radar-wrap, .dm-score-panel { padding-left: 13px; padding-right: 13px; }
  .dm-radar-stage { min-height: 300px; }
  .dm-radar-label { font-size: 14px; }
  .dm-radar-label-value { font-size: 21px; }
  .dm-scorebar-label { align-items: flex-start; flex-direction: column; gap: 1px; }
  .dm-scorebar-value { font-size: 12px; }
  .dm-radar-foot { align-items: flex-start; flex-direction: column; gap: 1px; }
}
@media (max-width: 390px) {
  .dm-chip { min-height: 34px; padding: 4px 10px; font-size: 12px; }
  .dm-chip-token::before, .dm-chip-progress::before { margin-right: 4px; }
  .dm-choice-label { font-size: 17px; }
  .dm-choice-sub { font-size: 11px; }
}

/* ================= 战锤 40K 数据面板（研究者控制台） ================= */
.dm-wh-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.dm-wh-stat { background: var(--paper); border: 1px solid var(--soft-line); border-radius: 10px; padding: 8px 14px; font-size: 13px; color: var(--muted); }
.dm-wh-stat b { color: var(--blue); font-size: 16px; margin-left: 4px; }
.dm-wh-score { color: var(--blue); font-weight: 600; }
.dm-wh-dim { color: var(--muted); font-size: 12px; }
.dm-wh-data { margin-top: 14px; overflow-x: auto; }
.dm-wh-detail { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--soft-line); border-radius: 10px; background: var(--paper); }
.dm-wh-detail h4 { margin: 14px 0 6px; font-size: 14px; color: var(--ink); }
.dm-wh-detail h4:first-child { margin-top: 0; }
.dm-wh-list { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.9; }
.dm-wh-dimtable { margin-top: 6px; max-width: 420px; }
.dm-wh-dimtable td { text-align: left; }
.dm-wh-answers { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.dm-wh-answer { font-size: 13px; line-height: 1.7; padding: 8px 10px; border: 1px dashed var(--soft-line); border-radius: 8px; }
.dm-wh-close { margin-left: auto; }

/* 战锤详情增强：头部 / 原型卡片 / 维度与派系条状图 */
.dm-wh-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.dm-wh-name { font-size: 18px; }
.dm-wh-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dm-wh-head-ops { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-wh-proto { padding: 9px 12px; border: 1px solid var(--soft-line); border-radius: 9px; margin: 8px 0; background: var(--paper-deep); }
.dm-wh-proto-desc { margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: var(--ink); }
.dm-wh-chips { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.dm-wh-chip { font-size: 11.5px; padding: 2px 8px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); }
.dm-wh-quote { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); font-style: italic; }
.dm-wh-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 20px; background: var(--red-soft); color: var(--red-dark); }
.dm-wh-dimrows { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.dm-wh-dimrow, .dm-wh-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dm-wh-dimname, .dm-wh-bar-name { width: 88px; flex: 0 0 88px; text-align: right; color: var(--muted); }
.dm-wh-bartrack { flex: 1; height: 12px; background: var(--paper-deep); border: 1px solid var(--soft-line); border-radius: 6px; overflow: hidden; }
.dm-wh-barfill { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.dm-wh-barfill.fac { background: var(--red); }
.dm-wh-dimval, .dm-wh-bar-val { width: 34px; flex: 0 0 34px; font-weight: 600; color: var(--ink); }
.dm-wh-bars { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.dm-wh-pick { font-weight: 600; color: var(--blue); }
