﻿:root {
  --navy: #2b1b12;
  --navy-2: #3b2417;
  --ink: #2b211b;
  --paper: #fff4e2;
  --white: #fffdf8;
  --muted: #7a6654;
  --line: #e6d2b4;
  --teal: #d9531e;
  --teal-2: #b8410e;
  --teal-pale: #ffe7d1;
  --amber: #f0a03a;
  --amber-pale: #fff1d6;
  --red: #c8452e;
  --red-pale: #ffe8e1;
  --shadow: 6px 6px 0 #2b1b12;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 82% -12%, #1d4a5e 0%, rgba(29, 74, 94, 0) 60%),
    radial-gradient(800px 500px at 10% 100%, #183643 0%, rgba(24, 54, 67, 0) 55%),
    #0b1a25;
  color: var(--ink);
  font: 15px/1.6 "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: 0;
}
button, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
html, body { cursor: default; }
.app { user-select: none; -webkit-user-select: none; }
button, a, [role="button"] { cursor: pointer; }
input, textarea { cursor: text; user-select: text; -webkit-user-select: text; }
.chat-log, .modal-body, .result-card { user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }
.noscript {
  width: min(560px, calc(100% - 40px));
  margin: 20px auto 0;
  background: #fff3df;
  border: 1px solid #f0dfbf;
  color: #7a5a20;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e8a646, #c15e4c);
  color: #102638;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.03em;
}
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { color: #f2f7f5; font-size: 15px; letter-spacing: 0.02em; }
.brand-copy small { color: #8fa6ad; font-size: 10px; margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.badge {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #e8c68b;
  border: 1px solid rgba(232, 166, 70, 0.35);
  background: rgba(232, 166, 70, 0.1);
  border-radius: 99px;
  padding: 4px 9px;
  white-space: nowrap;
}
.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #c9d6d2;
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mode-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8c9997;
}
.mode-badge.is-live {
  border-color: rgba(95, 178, 156, 0.45);
  background: rgba(95, 178, 156, 0.12);
  color: #bce8d8;
}
.mode-badge.is-live::before {
  background: #5fb29c;
  box-shadow: 0 0 8px rgba(95, 178, 156, 0.8);
}
.mode-badge.is-fallback {
  border-color: rgba(232, 166, 70, 0.4);
  background: rgba(232, 166, 70, 0.12);
  color: #f0d19d;
}
.mode-badge.is-fallback::before { background: #e8a646; }
.topbar-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #dbe8ec;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 11px;
  cursor: pointer;
}
.topbar-btn:hover { background: rgba(255, 255, 255, 0.12); }
.howto-btn { border-color: rgba(232, 166, 70, 0.35); background: rgba(232, 166, 70, 0.08); color: #f0d19d; }
.howto-btn:hover { background: rgba(232, 166, 70, 0.16); }

.screen { display: none; }
.screen.is-active { display: block; animation: rise 0.35s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #7fc0ac;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow-line { width: 18px; height: 2px; background: currentColor; display: inline-block; }
.eyebrow-dark { color: #5c8579; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  padding: 46px 0 34px;
  color: #eef5f4;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #f6faf8;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.lede { max-width: 520px; margin: 0; color: #b6c8cd; font-size: 15.5px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 17px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(54, 140, 124, 0.24); }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #e8f2ef; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-secondary { background: #fff; border-color: #d7ddd6; color: var(--navy); }
.btn-secondary:hover { background: #f2f5f0; }

.hero-facts { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.hero-facts div { display: grid; gap: 1px; }
.hero-facts b { color: #f1f7f4; font-size: 22px; line-height: 1.1; font-weight: 800; }
.hero-facts span { color: #8fa6ad; font-size: 10px; letter-spacing: 0.04em; }

.hero-copy { max-width: 620px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9fc7bd;
  font-size: 11.5px;
  cursor: pointer;
}
.text-link:hover { color: var(--amber); }
.text-link span { transition: transform 0.16s ease; }
.text-link:hover span { transform: translateX(3px); }

.howto-card {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  padding: 26px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}
.howto-card .eyebrow { margin-bottom: 10px; }
.howto-card h2 { margin: 0 0 18px; color: #f6faf8; font-size: 24px; line-height: 1.25; letter-spacing: -0.03em; }
.howto-steps { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.howto-steps li { display: flex; align-items: flex-start; gap: 12px; }
.howto-steps li > span {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 166, 70, 0.3);
  border-radius: 50%;
  background: rgba(232, 166, 70, 0.1);
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
}
.howto-steps b { display: block; margin-bottom: 3px; color: #eef5f4; font-size: 12.5px; }
.howto-steps p { margin: 0; color: #a8bcc0; font-size: 11px; line-height: 1.55; }
.howto-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9fc7bd;
  font-size: 11px;
  cursor: pointer;
}
.howto-more:hover { color: var(--amber); }

.menu-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa6ad;
  font-size: 11px;
}
.menu-foot-tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(232, 166, 70, 0.3);
  border-radius: 99px;
  background: rgba(232, 166, 70, 0.08);
  color: var(--amber);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.menu-foot p { margin: 0; line-height: 1.55; }

.section-head { display: flex; align-items: flex-start; gap: 22px; padding: 26px 0 22px; color: #eef5f4; }
.section-head h2 { margin: 4px 0 6px; color: #f6faf8; font-size: 34px; line-height: 1.2; letter-spacing: -0.035em; }
.section-head h2 em { color: var(--amber); font-style: normal; }
.section-lede { margin: 0; color: #93aab0; font-size: 12px; }
.back-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #cfe0e4;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 4px;
}
.back-btn:hover { background: rgba(255, 255, 255, 0.12); }
.back-btn-dark { border-color: rgba(255, 255, 255, 0.16); color: #d7e5e6; }

.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.level-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-height: 196px;
  border: 1px solid #e2e5de;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--ink);
}
.level-card:hover { transform: translateY(-3px); border-color: #94c4b4; box-shadow: 0 16px 36px rgba(4, 16, 24, 0.18); }
.level-card.is-locked {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #b9c9cd;
  box-shadow: none;
}
.level-card.is-locked:hover { transform: none; }
.level-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.level-index { color: #8d9a97; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.level-card.is-locked .level-index { color: #8fa6ad; }
.pill { border-radius: 99px; padding: 3px 8px; background: #f2f4ee; color: #7c8a7c; font-size: 9px; }
.level-card h3 { margin: 0 0 7px; font-size: 16px; line-height: 1.3; color: var(--navy); }
.level-card.is-locked h3 { color: #d4e1e3; }
.level-card p { margin: 0; color: #7b888b; font-size: 10.5px; line-height: 1.6; flex: 1; }
.level-card.is-locked p { color: #8fa6ad; }
.level-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; color: #8a9697; font-size: 9.5px; }
.level-bottom b { color: var(--teal); font-weight: 700; }
.level-card.is-locked .level-bottom { color: #8fa6ad; }
.level-card.is-locked .level-bottom b { color: #a9bcc0; }

.intro-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  background: var(--paper);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.intro-main h2 { margin: 0 0 10px; color: var(--navy); font-size: 30px; line-height: 1.2; letter-spacing: -0.03em; }
.intro-scene { margin: 0 0 18px; color: #63716f; font-size: 12.5px; line-height: 1.7; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.brief { background: #fff; border: 1px solid #e6e8e1; border-radius: 11px; padding: 10px 12px; }
.brief span { display: block; color: #75908a; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 3px; }
.brief p { margin: 0; color: #3f514f; font-size: 10.5px; line-height: 1.55; }
.goal-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.goal-chip { border: 1px solid #d9e7df; background: #eef7f2; color: #3d7868; border-radius: 99px; padding: 4px 9px; font-size: 9.5px; }
.cast { display: grid; gap: 10px; align-content: start; }
.cast-card { background: #fff; border: 1px solid #e4e6df; border-radius: 13px; padding: 13px; }
.cast-person { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.cast-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 38px; }
.cast-victim .cast-avatar { background: #fff0d8; color: #9a6b24; }
.cast-scammer .cast-avatar { background: #fbe9e6; color: #a84f40; }
.cast-person b { display: block; color: var(--navy); font-size: 13px; }
.cast-person small { display: block; color: #8b9697; font-size: 9.5px; margin-top: 1px; }
.cast-card p { margin: 0; color: #667574; font-size: 10.5px; line-height: 1.6; }
.cast-quote { margin-top: 8px; border-left: 2px solid #d9e4df; padding-left: 8px; color: #7b8888; font-size: 10px; font-style: normal; }

.game-shell { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-top: 8px; }
.game-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--navy); color: #eef6f3; }
.game-heading { flex: 1; text-align: center; min-width: 0; }
.game-heading strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-heading span { display: block; color: #93acb2; font-size: 9.5px; margin-top: 1px; }
.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 19px;
  color: #f0c27a;
  background: rgba(232, 166, 70, 0.13);
  border: 1px solid rgba(232, 166, 70, 0.22);
  border-radius: 9px;
  padding: 5px 10px;
  min-width: 78px;
  text-align: center;
}
.timer.is-low { color: #ffad99; border-color: rgba(193, 94, 76, 0.5); animation: timerPulse 1.4s ease-in-out infinite; }
@keyframes timerPulse { 50% { background: rgba(193, 94, 76, 0.18); } }
.game-brief {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 16px 0;
  padding: 13px 15px;
  border: 1px solid #eadfc8;
  border-radius: 13px;
  background: #fff9ed;
}
.game-brief-copy { min-width: 0; }
.game-brief-label { margin: 0 0 4px; color: #8a6b32; font-size: 8.5px; font-weight: 800; letter-spacing: 0.12em; }
#gameBriefScene { margin: 0; color: #5f5a4e; font-size: 11.5px; line-height: 1.65; white-space: pre-line; }
.game-brief-goal { margin: 6px 0 0; color: #2f6b5e; font-size: 10.5px; font-weight: 700; line-height: 1.55; }
.brief-close { flex: 0 0 auto; border: 1px solid #dccba8; border-radius: 8px; background: #fff; color: #7b6540; padding: 5px 9px; font-size: 10px; cursor: pointer; }
.brief-close:hover { background: #f7eeda; }
.game-body { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 540px; }
.status-panel { padding: 18px 16px; background: #eef1ec; border-right: 1px solid #e0e4dd; }
.status-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.status-title span { color: #324c4a; font-size: 11px; font-weight: 800; }
.status-title small { color: #8a9697; font-size: 8.5px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 7px; margin: 9px 0; color: #5f6e6c; font-size: 9.5px; }
.bar-row em { font-style: normal; text-align: right; color: #4f625f; font-size: 9px; font-variant-numeric: tabular-nums; }
.bar { height: 7px; background: #dbe1db; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; border-radius: 99px; transition: width 0.4s ease; }
#barTrust { background: var(--teal); }
#barFear { background: var(--red); }
#barDoubt { background: var(--amber); }
#barPressure { background: #7c4b46; }
.goal-box { margin-top: 13px; padding-top: 11px; border-top: 1px dashed #d8ded7; }
.goal-title { margin-bottom: 5px; color: #6f7c84; font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; }
.goal-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.goal-list li { display: flex; align-items: center; gap: 6px; color: #8a9693; font-size: 9.5px; line-height: 1.4; }
.goal-list li i { flex: 0 0 auto; width: 10px; height: 10px; display: grid; place-items: center; border: 1px solid #d4dcd6; border-radius: 3px; background: #fff; font-style: normal; }
.goal-list li.is-done { color: #2f6b5e; }
.goal-list li.is-done i { border-color: #9ccfbe; background: #e7f4ef; }
.goal-list li.is-done i::after { content: "✓"; color: #2f6b5e; font-size: 8px; line-height: 1; }
.goal-extra { margin: 7px 0 0; padding-top: 7px; border-top: 1px dashed #e5dcc8; color: #8a6a2a; font-size: 9px; line-height: 1.5; }
.turn-changes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 9px; }
.turn-changes-title { color: #8a9693; font-size: 8.5px; margin-right: 1px; }
.change-chip { border: 1px solid #e0e4dd; border-radius: 99px; padding: 2px 6px; background: #f7f8f4; color: #5f6f6c; font-size: 8.5px; white-space: nowrap; }
.change-chip.good { border-color: #b9dccd; background: #edf8f2; color: #2f6b5e; }
.change-chip.bad { border-color: #efd0c8; background: #fdf1ef; color: #a34b3d; }
.change-chip.neutral { color: #8a9693; }
.status-note { margin: 14px 0 0; padding: 9px 10px; background: #fff; border: 1px solid #e3e6df; border-radius: 9px; color: #5f6f6c; font-size: 9.5px; line-height: 1.55; }
.status-help { margin: 9px 0 0; color: #8f9a98; font-size: 8.5px; line-height: 1.55; }

.chat-panel { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-bottom: 1px solid #eaebe6; color: #3d514f; font-size: 11px; }
.chat-head small { color: #99a3a1; font-size: 8.5px; margin-left: auto; }
.source-badge { margin-left: 7px; padding: 2px 6px; border-radius: 99px; background: #f2f4ef; color: #7b8888; font-size: 8px; white-space: nowrap; }
.source-badge.is-live { background: #e7f4ef; color: #2f6b5e; }
.source-badge.is-fallback { background: #fff3df; color: #8a6b32; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #3d9a80; box-shadow: 0 0 0 3px rgba(61, 154, 128, 0.12); }
.chat-log { height: clamp(360px, 46vh, 520px); overflow-y: auto; padding: 16px 18px; background: #fbfaf5; scroll-behavior: smooth; }
.msg { display: flex; gap: 9px; margin-bottom: 13px; align-items: flex-start; }
.msg.from-user { flex-direction: row-reverse; }
.avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: 0 0 32px; }
.from-victim .avatar { background: #fff0d8; color: #9a6b24; }
.from-scammer .avatar { background: #fbe9e6; color: #a84f40; }
.from-user .avatar { background: #dff0ea; color: #2f6b5e; }
.msg-body { display: flex; flex-direction: column; max-width: min(76%, 540px); }
.from-user .msg-body { align-items: flex-end; }
.msg-meta { display: flex; align-items: center; gap: 5px; color: #8d9997; font-size: 9px; margin-bottom: 3px; }
.msg-tag { background: #e7efe9; color: #3d7868; border-radius: 99px; padding: 1px 5px; font-size: 8px; }
.bubble { padding: 9px 11px; border-radius: 12px; border: 1px solid #e3e5df; background: #fff; color: #344a48; font-size: 12.5px; line-height: 1.6; box-shadow: 0 2px 6px rgba(16, 38, 56, 0.03); white-space: pre-wrap; word-break: break-word; }
.from-victim .bubble { background: #fff8ec; border-color: #f0e2c8; }
.from-scammer .bubble { background: #fdf1ef; border-color: #f2d9d4; }
.from-user .bubble { background: #e7f4ef; border-color: #cfe6dd; }
.msg-system { text-align: center; color: #8a9694; font-size: 9.5px; margin: 9px 0; padding: 5px 8px; background: rgba(255, 255, 255, 0.65); border-radius: 7px; }
.typing { display: flex; align-items: center; gap: 3px; padding: 0 18px 7px; color: #8c9997; font-size: 9.5px; }
.typing em { font-style: normal; }
.typing span { width: 4px; height: 4px; background: #9fb0ac; border-radius: 50%; animation: blink 1.1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.25; transform: translateY(-2px); } }

.composer { border-top: 1px solid #eaebe6; padding: 10px 14px 12px; background: #fff; }
.pending-chip { display: flex; align-items: center; gap: 8px; background: var(--amber-pale); border: 1px solid #f0dfbf; color: #8a6b32; border-radius: 8px; padding: 5px 9px; font-size: 9.5px; margin-bottom: 7px; }
.pending-chip button { margin-left: auto; border: 0; background: transparent; color: #a0834d; cursor: pointer; font-size: 12px; line-height: 1; }
.coach-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 8px 10px; background: #fff7e6; border: 1px solid #ecd39a; border-left: 3px solid #d28a1e; border-radius: 9px; }
.coach-bar.is-urgent { background: #fff0e6; border-color: #e7b58b; border-left-color: #c25b2e; }
.coach-bar.is-urgent .coach-label { color: #a34b22; }
.coach-bar.is-urgent #coachText { color: #6b3a22; }
.coach-label { flex: 0 0 auto; color: #a56a16; font-size: 8px; font-weight: 800; letter-spacing: 0.06em; padding-top: 2px; }
#coachText { flex: 1 1 260px; margin: 0; color: #5e4a24; font-size: 10.5px; font-weight: 600; line-height: 1.5; }
.action-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.action-btn { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name time" "hint hint"; gap: 2px 7px; min-height: 46px; text-align: left; border: 1px solid #e0e3dc; background: #f8f7f2; color: #4d5f5d; border-radius: 9px; padding: 7px 9px 8px; font-size: 9.5px; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.action-name { grid-area: name; font-size: 9.5px; font-weight: 700; line-height: 1.25; }
.action-hint { grid-area: hint; color: #8a9693; font-size: 8px; line-height: 1.35; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.action-btn small { grid-area: time; color: #9aa5a2; font-size: 8px; align-self: start; }
.action-btn:hover { background: #eef3ee; border-color: #b9cdc4; }
.action-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.action-btn.is-active small, .action-btn.is-active .action-hint { color: #a9c1c6; }
.action-btn.is-recommended { border-color: #d28a1e; background: #fff8e8; box-shadow: 0 0 0 2px rgba(210, 138, 30, 0.12); }
.action-btn.is-recommended .action-name::after { content: " 建议"; color: #b87416; font-size: 7.5px; font-weight: 700; }
.rule-strip { display: flex; gap: 0; padding: 7px 18px; background: #f5f3ea; border-bottom: 1px solid #e8e5d8; color: #5b6b66; font-size: 9px; line-height: 1.4; }
.rule-strip span { display: flex; align-items: center; gap: 5px; padding-right: 12px; margin-right: 12px; border-right: 1px solid #ddd8c8; }
.rule-strip span:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.rule-strip b { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #2f6b5e; color: #fff; font-size: 8px; flex: 0 0 auto; }
.verify-menu { display: flex; flex-wrap: wrap; gap: 5px; background: #f3f6f1; border: 1px solid #e1e6df; border-radius: 9px; padding: 7px; margin-bottom: 7px; }
.verify-hint { margin: 0 0 6px; padding: 7px 9px; border: 1px solid #e1e6df; border-radius: 8px; background: #f3f6f1; color: #5f6f6c; font-size: 9px; line-height: 1.5; }
.phrase-menu { display: flex; flex-direction: column; gap: 5px; background: #fbf8ef; border: 1px solid #eadfc4; border-radius: 9px; padding: 7px; margin-bottom: 7px; }
.phrase-option { display: block; text-align: left; border: 1px solid #e4d7b8; background: #fff; color: #5b4a2b; border-radius: 7px; padding: 6px 8px; font-size: 9.5px; line-height: 1.5; cursor: pointer; }
.phrase-tip { display: block; color: #5e3d1e; font-size: 9.5px; margin-bottom: 2px; }
.phrase-partial { display: block; color: #9a5a2f; font-size: 10.5px; line-height: 1.55; }
.phrase-note { margin: 0 0 4px; color: #8a6a4a; font-size: 9px; line-height: 1.5; }
.phrase-option:hover { background: #fff4d8; }
.phrase-toggle { border: 1px solid #ead7ad; background: #fff8e8; color: #8a5b17; font-size: 9px; padding: 4px 8px; border-radius: 7px; margin-right: auto; cursor: pointer; }
.phrase-toggle:hover { background: #fff1cc; }
.verify-option { border: 1px solid #d7e2db; background: #fff; color: #3d6d63; border-radius: 7px; padding: 5px 9px; font-size: 9.5px; cursor: pointer; }
.verify-option:hover { background: #eaf5ef; }
.input-row { display: flex; gap: 7px; align-items: flex-end; }
textarea#messageInput { flex: 1; resize: none; min-height: 50px; max-height: 110px; border: 1px solid #d8ddd6; border-radius: 10px; background: #fbfaf6; padding: 9px 11px; color: #2f4543; font-size: 12.5px; line-height: 1.5; outline: none; }
textarea#messageInput:focus { border-color: #8fc3b3; box-shadow: 0 0 0 3px rgba(54, 140, 124, 0.1); }
textarea#messageInput::placeholder { color: #a2adaa; }
.send-btn { border: 0; border-radius: 10px; background: var(--teal); color: #fff; padding: 0 15px; height: 50px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background 0.15s ease; }
.send-btn:hover { background: var(--teal-2); }
.send-btn:disabled { opacity: 0.55; cursor: wait; }
.composer-foot { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 5px; color: #9da7a4; font-size: 8.5px; }
.composer-foot span:last-child { margin-left: auto; }
.composer.is-private { background: #f4fbf7; }
.composer.is-private textarea#messageInput { border-color: #9ccfbe; background: #fbfefc; }
.composer.is-private .composer-foot span:last-child::before { content: "私聊模式 · 仅对方可见 · "; color: #4c8b77; }

.review-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #e0e4dd;
  background: #f8f7f2;
}
.review-bar span { color: #6f7c84; font-size: 11px; }
.review-bar .btn { padding: 8px 12px; font-size: 11px; }

.ending-panel {
  margin: 0 16px 14px;
  padding: 15px 16px;
  border: 1px solid #eadfc8;
  border-radius: 14px;
  background: #fff9ed;
}
.ending-kicker { margin: 0 0 4px; color: #8a6b32; font-size: 8.5px; font-weight: 800; letter-spacing: 0.12em; }
.ending-panel h3 { margin: 0 0 6px; color: var(--navy); font-size: 22px; line-height: 1.25; }
.ending-panel > p { margin: 0 0 6px; color: #5f6f6c; font-size: 11.5px; line-height: 1.65; }
.ending-panel .ending-line { margin-top: 8px; padding: 8px 10px; border: 1px solid #e3e6df; border-radius: 9px; background: #fff; color: #3d514f; font-size: 11px; }
.ending-panel .btn { margin-top: 8px; }

.result-card { max-width: 900px; margin: 12px auto 0; background: var(--paper); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.result-head h2 { margin: 0 0 8px; color: var(--navy); font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; }
.result-head > p:last-child { margin: 0; color: #63716f; font-size: 12.5px; line-height: 1.7; }
.score-panel { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid #e3e6df; border-radius: 15px; padding: 16px 20px; margin: 18px 0; }
.score-big { display: flex; align-items: baseline; gap: 5px; }
.score-big strong { font-size: 52px; line-height: 1; color: var(--navy); letter-spacing: -0.04em; }
.score-big span { color: #8b9697; font-size: 12px; }
.score-side { display: grid; gap: 3px; }
.stars { display: flex; gap: 3px; color: #d9d3c4; font-size: 22px; line-height: 1; }
.stars .is-on { color: var(--amber); }
.stars .no-stars { color: #a37a4a; font-size: 12px; letter-spacing: 0; align-self: center; }
.score-side small { color: #7d8b8a; font-size: 10px; }
.breakdown { display: grid; gap: 6px; background: #fff; border: 1px solid #e3e6df; border-radius: 13px; padding: 13px 16px; }
.breakdown-row { display: grid; grid-template-columns: 72px 1fr 52px; align-items: center; gap: 10px; color: #5e6e6c; font-size: 9.5px; }
.breakdown-bar { height: 6px; background: #e9ece7; border-radius: 99px; overflow: hidden; }
.breakdown-bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.breakdown-row b { text-align: right; color: #3d514f; font-weight: 700; }
.score-note { margin: 10px 0 0; color: #7d8b8a; font-size: 9.5px; line-height: 1.6; }
.missing-conditions { margin: 8px 0 0; padding: 9px 11px; border: 1px solid #efd0c8; border-radius: 9px; background: #fdf1ef; color: #8f4a3e; font-size: 10.5px; line-height: 1.6; }
.education { margin: 18px 0; padding: 18px; border: 1px solid #e3e6df; border-radius: 15px; background: #fff; }
.education-head { display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; margin-bottom: 10px; }
.education-head .eyebrow { margin: 0; }
.education-head h3 { margin: 0; color: var(--navy); font-size: 16px; }
.tactic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tactic-item { padding: 10px; border: 1px solid #e3e6df; border-radius: 9px; background: #f8f7f2; color: #667574; font-size: 10px; line-height: 1.55; }
.tactic-item b { display: block; margin-bottom: 2px; color: #3d514f; font-size: 11px; }
.tactic-item p { margin: 0; }
.tactic-item span { display: block; margin-top: 4px; color: #8b6b3f; }
.family-plan { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e0e4dd; }
.family-plan h3 { margin: 0 0 8px; color: var(--navy); font-size: 14px; }
.family-plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.family-plan-card { padding: 10px; border: 1px solid #dce8e0; border-radius: 9px; background: #f8fbf7; }
.family-plan-card b { display: block; margin-bottom: 3px; color: #2f6b5e; font-size: 10.5px; }
.family-plan-card p { margin: 0; color: #5f6f6c; font-size: 10px; line-height: 1.6; }
.family-plan-card.is-say { border-color: #eadfc8; background: #fff9ed; }
.family-plan-card.is-say b { color: #8a6b32; }
.family-plan-card.is-avoid { border-color: #efd0c8; background: #fdf1ef; }
.family-plan-card.is-avoid b { color: #a34b3d; }
.result-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.mock-note { margin: 12px 0 0; color: #8e9997; font-size: 9px; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 14, 20, 0.72); backdrop-filter: blur(4px); }
.modal-card { position: relative; z-index: 1; width: min(560px, 100%); max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 17px; padding: 24px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.modal-card h2 { margin: 0 0 12px; color: var(--navy); font-size: 20px; }
.modal-close { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: #8e9997; font-size: 24px; line-height: 1; cursor: pointer; }
.modal-body { color: #5f6f6c; font-size: 12px; line-height: 1.75; }
.modal-body h3 { margin: 14px 0 4px; color: var(--navy); font-size: 12px; }
.modal-body ul { margin: 4px 0; padding-left: 18px; }
.modal-body .howto-list { display: grid; gap: 6px; margin: 6px 0 0; padding-left: 18px; }
.modal-body .howto-list b { color: var(--navy); }
.modal-body p { margin: 4px 0; }
.modal-body .kbd { background: #f2f4ef; border: 1px solid #e0e4dd; border-radius: 4px; padding: 0 4px; font-size: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); background: #102638; color: #f2f7f5; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; padding: 9px 14px; font-size: 11px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); max-width: min(90vw, 560px); text-align: center; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  .hero-copy { max-width: 680px; }
  .howto-card { max-width: 560px; justify-self: start; }
  .intro-card { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .game-body { grid-template-columns: 1fr; }
  .status-panel { border-right: 0; border-bottom: 1px solid #e0e4dd; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
  .status-title, .status-note, .status-help { grid-column: 1 / -1; }
  .goal-box, .turn-changes { grid-column: 1 / -1; }
  .status-note { margin-top: 9px; }
  .chat-log { height: 46vh; min-height: 300px; }
}

@media (max-width: 680px) {
  .app { width: min(100% - 28px, 600px); padding-bottom: 40px; }
  .topbar { padding: 14px 0; }
  .brand-copy small { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .badge { display: none; }
  .hero { padding-top: 22px; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 13.5px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 24px; margin-top: 26px; }
  .hero-facts b { font-size: 20px; }
  .howto-card { padding: 20px; border-radius: 18px; }
  .howto-card h2 { font-size: 22px; }
  .howto-steps { gap: 13px; }
  .menu-foot { align-items: flex-start; }
  .section-head { display: block; padding-top: 18px; }
  .section-head h2 { font-size: 29px; }
  .back-btn { margin-bottom: 12px; }
  .level-grid { grid-template-columns: 1fr; }
  .intro-main h2 { font-size: 26px; }
  .brief-grid { grid-template-columns: 1fr; }
  .game-top { flex-wrap: wrap; gap: 8px; padding: 11px 14px; }
  .game-heading { order: 3; flex-basis: 100%; text-align: left; }
  .timer { margin-left: auto; font-size: 17px; }
  .status-panel { padding: 13px 14px; }
  .chat-panel { order: 1; }
  .status-panel { order: 2; }
  .game-brief { flex-direction: column; margin: 10px 12px 0; }
  .brief-close { align-self: flex-start; }
  .result-card { padding: 22px 18px; }
  .result-head h2 { font-size: 27px; }
  .education { padding: 14px; }
  .tactic-list, .family-plan-grid { grid-template-columns: 1fr; }
  .ending-panel { margin: 10px 12px; padding: 14px; }
  .ending-panel h3 { font-size: 20px; }
  .ending-panel .btn { width: 100%; }
  .review-bar { flex-wrap: wrap; }
  .chat-head { padding: 9px 14px; }
  .chat-head small { display: none; }
  .chat-log { height: 43vh; padding: 13px 14px; }
  .msg-body { max-width: 82%; }
  .bubble { font-size: 12px; }
  .composer { padding: 9px 11px 11px; }
  .action-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-btn { padding: 7px 8px 8px; }
  .action-hint { white-space: normal; }
  .rule-strip { overflow-x: auto; white-space: nowrap; }
  .input-row { flex-direction: column; align-items: stretch; }
  .send-btn { height: 42px; }
  .result-card { padding: 22px 18px; }
  .result-head h2 { font-size: 27px; }
  .score-panel { gap: 16px; }
  .score-big strong { font-size: 44px; }
  .result-cols { grid-template-columns: 1fr; }
  .breakdown-row { grid-template-columns: 62px 1fr 44px; }
  .composer-foot span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   橙白微像素 · 反诈主题皮肤
   只改视觉，不改布局/功能
   ============================================================ */
body {
  background-color: #fff3df;
  background-image:
    linear-gradient(rgba(217, 83, 30, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 83, 30, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
body::before {
  background-image: radial-gradient(rgba(43, 27, 18, 0.09) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.55;
}
body::after {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 6px;
  z-index: 20;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, #d9531e 0 12px, #2b1b12 12px 24px);
}
::selection { background: #d9531e; color: #fff8ec; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #fff0d8; }
::-webkit-scrollbar-thumb { background: #d9531e; border: 2px solid #fff0d8; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 3px solid #d9531e;
  outline-offset: 2px;
}

.topbar { border-bottom: 2px solid rgba(43, 27, 18, 0.16); }
.brand-mark {
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: var(--teal);
  color: #fff8ec;
  box-shadow: 3px 3px 0 var(--navy);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 16px;
  letter-spacing: -0.08em;
}
.brand-copy strong { color: var(--navy); font-weight: 900; letter-spacing: 0.03em; }
.brand-copy small { color: #8a6a4a; letter-spacing: 0.02em; }
.badge, .mode-badge, .topbar-btn, .howto-btn { border-radius: 2px; }
.badge { border-color: #e6c49e; background: #fff7e6; color: #9a4d1a; font-family: "Cascadia Mono", "Consolas", monospace; }
.mode-badge { border: 2px solid #e3c8a7; background: #fffdf8; color: #6b4b2e; font-family: "Cascadia Mono", "Consolas", monospace; }
.mode-badge::before { border-radius: 0; }
.mode-badge.is-live { border-color: #2f8a63; background: #e7f4ec; color: #24664b; }
.mode-badge.is-fallback { border-color: #d9531e; background: #fff0dc; color: #a34713; }
.topbar-btn { border: 2px solid var(--navy); background: #fffdf8; color: var(--navy); box-shadow: 2px 2px 0 var(--navy); font-weight: 800; }
.topbar-btn:hover { background: #ffe3c5; transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--navy); }
.howto-btn { background: var(--teal); color: #fff8ec; border-color: var(--navy); }
.howto-btn:hover { background: var(--teal-2); }

.screen.is-active { animation: rise 0.24s steps(4, end) both; }
.eyebrow { color: var(--teal); font-family: "Cascadia Mono", "Consolas", "Microsoft YaHei", monospace; letter-spacing: 0.1em; }
.eyebrow-line { height: 3px; width: 20px; }
.eyebrow-dark { color: #a34713; }

.hero { color: var(--ink); }
.hero h1 { color: var(--navy); font-weight: 900; text-shadow: 4px 4px 0 rgba(217, 83, 30, 0.14); }
.hero h1 em { color: var(--teal); }
.lede { color: #6d5744; }
.hero-facts b { color: var(--navy); font-family: "Cascadia Mono", "Consolas", monospace; }
.hero-facts span, .text-link { color: #9a5a2f; }
.text-link:hover { color: var(--teal); }

.btn {
  border: 2px solid var(--navy);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--navy);
  font-weight: 800;
}
.btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--navy); }
.btn-primary { background: var(--teal); color: #fff8ec; }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { background: #fffdf8; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: #ffe3c5; }
.btn-secondary { background: #fffdf8; border-color: var(--navy); color: var(--navy); }
.btn-secondary:hover { background: #ffe3c5; }

.howto-card {
  position: relative;
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: 6px 6px 0 var(--navy);
}
.howto-card::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 18px;
  width: 22px;
  height: 27px;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 18%, 92% 72%, 50% 100%, 8% 72%, 0 18%);
  filter: drop-shadow(2px 2px 0 var(--navy));
  opacity: 0.95;
}
.howto-card h2 { color: var(--navy); }
.howto-card .eyebrow { color: #a34713; }
.howto-steps li > span {
  border: 2px solid var(--teal);
  border-radius: 2px;
  background: #ffe7d1;
  color: #a33c0d;
  font-family: "Cascadia Mono", "Consolas", monospace;
}
.howto-steps b { color: var(--navy); }
.howto-steps p { color: #6d5744; }
.howto-more { color: #a34713; }
.howto-more:hover { color: var(--teal); }
.menu-foot { border-top: 2px dashed rgba(43, 27, 18, 0.22); color: #7a6654; }
.menu-foot-tag { border: 1px solid #e6c49e; border-radius: 2px; background: #fff1d6; color: #a34713; font-family: "Cascadia Mono", "Consolas", monospace; }

.section-head { color: var(--navy); }
.section-head h2 { color: var(--navy); }
.section-head h2 em { color: var(--teal); }
.section-lede { color: #7a6654; }
.back-btn {
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: #fffdf8;
  color: var(--navy);
  box-shadow: 2px 2px 0 var(--navy);
  font-weight: 800;
}
.back-btn:hover { background: #ffe3c5; }
.back-btn-dark { border-color: var(--navy); color: var(--navy); }

.level-card {
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: 4px 4px 0 var(--navy);
}
.level-card:hover {
  transform: translate(2px, 2px);
  border-color: var(--teal);
  box-shadow: 2px 2px 0 var(--navy);
}
.level-index { color: #a34713; font-family: "Cascadia Mono", "Consolas", monospace; }
.pill { border: 1px solid #e6c49e; border-radius: 2px; background: #fff1d6; color: #8c4a1d; font-family: "Cascadia Mono", "Consolas", "Microsoft YaHei", monospace; }
.level-card h3 { color: var(--navy); }
.level-card p { color: #6d5744; }
.level-bottom { color: #8a6a4a; }
.level-bottom b { color: var(--teal); }

.intro-card {
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: #fff8e9;
  box-shadow: 6px 6px 0 var(--navy);
}
.intro-main h2 { color: var(--navy); }
.intro-scene { color: #6d5744; }
.brief { border: 1px solid #e3c8a7; border-radius: 2px; background: #fffdf8; }
.brief span { color: #a34713; font-family: "Cascadia Mono", "Consolas", monospace; }
.brief p { color: #4e3b2c; }
.goal-chip { border: 1px solid #e6c49e; border-radius: 2px; background: #fff1d6; color: #8c4a1d; }
.cast-card { border: 1px solid #e3c8a7; border-radius: 2px; background: #fffdf8; }
.cast-avatar { border: 2px solid var(--navy); border-radius: 2px; }
.cast-victim .cast-avatar { background: #ffe1bf; color: #8a3d11; }
.cast-scammer .cast-avatar { background: #ffdcd2; color: #a33b24; }
.cast-person b { color: var(--navy); }
.cast-person small { color: #8a6a4a; }
.cast-card p { color: #6d5744; }
.cast-quote { border-left: 3px solid var(--teal); color: #7a5a3d; }

.game-shell {
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: #fffdf8;
  box-shadow: 6px 6px 0 var(--navy);
}
.game-top {
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
  color: #fff4e2;
}
.game-heading strong { color: #fff4e2; }
.game-heading span { color: #e6b98e; font-family: "Cascadia Mono", "Consolas", monospace; }
.timer {
  border: 2px solid #fff4e2;
  border-radius: 2px;
  background: var(--teal);
  color: #fff8ec;
  font-family: "Cascadia Mono", "Consolas", monospace;
}
.timer.is-low { border-color: #ffd2c2; background: var(--red); color: #fff8ec; }
.game-brief {
  border: 2px solid var(--navy);
  border-left: 8px solid var(--teal);
  border-radius: 2px;
  background: #fff3df;
  box-shadow: 3px 3px 0 rgba(43, 27, 18, 0.18);
}
.game-brief-label { color: #a34713; font-family: "Cascadia Mono", "Consolas", monospace; }
#gameBriefScene { color: #5d4632; }
.game-brief-goal { color: #a33c0d; }
.brief-close { border: 2px solid var(--navy); border-radius: 2px; background: #fffdf8; color: var(--navy); box-shadow: 2px 2px 0 var(--navy); font-weight: 800; }
.brief-close:hover { background: #ffe3c5; }

.status-panel { background: #fff0d8; border-right: 2px dashed #d8b98c; }
.status-title span { color: var(--navy); }
.status-title small { color: #8a6a4a; font-family: "Cascadia Mono", "Consolas", monospace; }
.bar-row { color: #5d4632; font-size: 9.5px; }
.bar-row em { color: #4a3627; font-family: "Cascadia Mono", "Consolas", monospace; }
.bar { height: 8px; border-radius: 1px; background: #ead6ba; }
.bar i { border-radius: 1px; }
#barTrust { background: var(--teal); }
#barFear { background: var(--red); }
#barDoubt { background: var(--amber); }
#barPressure { background: #5b3a2a; }
.goal-box { border-top: 2px dashed #d8b98c; }
.goal-title { color: #a34713; font-family: "Cascadia Mono", "Consolas", monospace; }
.goal-list li { color: #6d5744; }
.goal-list li i { border: 2px solid #cdb08c; border-radius: 1px; background: #fffdf8; }
.goal-list li.is-done { color: #a33c0d; }
.goal-list li.is-done i { border-color: var(--teal); background: var(--teal); }
.goal-list li.is-done i::after { color: #fff8ec; }
.goal-extra { border-top: 1px dashed #d8b98c; color: #a34713; font-family: "Cascadia Mono", "Consolas", "Microsoft YaHei", monospace; }
.status-help { color: #8a6a4a; }
.change-chip { border: 1px solid #e3c8a7; border-radius: 2px; background: #fffdf8; color: #6d5744; }
.change-chip.good { border-color: #e6b98e; background: #ffe8d2; color: #a34713; }
.change-chip.bad { border-color: #e9b9ab; background: #ffe8e1; color: #a33b24; }
.turn-changes-title { color: #8a6a4a; }

.chat-panel { background: #fffdf8; }
.chat-head { background: #fff4e2; border-bottom: 2px solid var(--navy); color: var(--navy); }
.chat-head small { color: #8a6a4a; }
.source-badge { border: 1px solid #e3c8a7; border-radius: 2px; background: #fffdf8; color: #8a5a34; font-family: "Cascadia Mono", "Consolas", monospace; }
.source-badge.is-live { background: #e7f4ec; color: #24664b; border-color: #9fcdb6; }
.source-badge.is-fallback { background: #fff0dc; color: #a34713; border-color: #e6b98e; }
.live-dot { border-radius: 0; background: var(--teal); box-shadow: 0 0 0 3px rgba(217, 83, 30, 0.14); }
.rule-strip { background: #ffe2c0; border-bottom: 2px dashed #d8a97d; color: #5d4632; font-family: "Cascadia Mono", "Consolas", "Microsoft YaHei", monospace; }
.rule-strip span { border-right: 1px dashed #cf9d6c; }
.rule-strip b { border-radius: 1px; background: var(--navy); color: #fff3df; }
.chat-log {
  background-color: #fff8e9;
  background-image: radial-gradient(rgba(43, 27, 18, 0.07) 1px, transparent 1px);
  background-size: 10px 10px;
}
.msg-system { background: #fffdf8; border: 1px dashed #e3c8a7; border-radius: 1px; color: #8a6a4a; }
.avatar { border: 2px solid var(--navy); border-radius: 2px; }
.from-victim .avatar { background: #ffe1bf; color: #8a3d11; }
.from-scammer .avatar { background: #ffdcd2; color: #a33b24; }
.from-user .avatar { background: #ffd3ad; color: #8a3d11; }
.msg-meta { color: #8a6a4a; }
.msg-tag { border: 1px solid #e3c8a7; border-radius: 2px; background: #fff1d6; color: #a34713; }
.bubble {
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(43, 27, 18, 0.16);
  color: #3f2d20;
}
.from-victim .bubble { background: #fff8e8; border-color: #d8b98c; }
.from-scammer .bubble { background: #ffe9e1; border-color: #d9a99c; }
.from-user .bubble { background: #ffe1c4; border-color: #d9a26e; }
.typing { color: #8a6a4a; }
.typing span { border-radius: 0; background: var(--teal); }

.composer { background: #fff6e4; border-top: 2px solid var(--navy); }
.coach-bar {
  border: 2px solid var(--navy);
  border-left: 8px solid var(--teal);
  border-radius: 2px;
  background: #ffe1bf;
  box-shadow: 2px 2px 0 rgba(43, 27, 18, 0.16);
}
.coach-label { color: #a33c0d; font-family: "Cascadia Mono", "Consolas", "Microsoft YaHei", monospace; }
#coachText { color: #4a2e1c; }
.coach-bar.is-urgent { background: #ffd9cb; border-color: var(--navy); border-left-color: var(--red); }
.pending-chip { border: 2px dashed #d8a97d; border-radius: 2px; background: #fff0d8; color: #8a4a1d; }
.action-btn {
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: #fffdf8;
  color: #3f2d20;
  box-shadow: 2px 2px 0 var(--navy);
}
.action-btn:hover { background: #ffe8d2; border-color: var(--navy); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--navy); }
.action-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff8ec; }
.action-btn.is-active small, .action-btn.is-active .action-hint { color: #e6b98e; }
.action-btn.is-recommended { background: #fff1d6; border-color: var(--teal); box-shadow: 3px 3px 0 var(--teal); }
.action-btn.is-recommended .action-name::after { color: #a33c0d; }
.action-hint { color: #8a6a4a; }
.verify-menu, .phrase-menu { border: 2px dashed #d8a97d; border-radius: 2px; background: #fff0d8; }
.verify-option, .phrase-option { border: 1px solid #d8b98c; border-radius: 1px; background: #fffdf8; color: #5d4632; }
.verify-option:hover, .phrase-option:hover { background: #ffe1bf; }
.verify-hint { border: 1px dashed #d8a97d; border-radius: 1px; background: #fff8e9; color: #6d5744; }
.phrase-toggle { border: 1px solid #d8a97d; border-radius: 2px; background: #fff1d6; color: #a34713; }
.phrase-toggle:hover { background: #ffe1bf; }
textarea#messageInput { border: 2px solid var(--navy); border-radius: 2px; background: #fffdf8; color: #3f2d20; }
textarea#messageInput:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(217, 83, 30, 0.16); }
.send-btn { border: 2px solid var(--navy); border-radius: 2px; background: var(--teal); color: #fff8ec; box-shadow: 3px 3px 0 var(--navy); font-weight: 800; }
.send-btn:hover { background: var(--teal-2); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--navy); }
.composer-foot { color: #8a6a4a; }
.composer.is-private { background: #fff0d8; }
.composer.is-private textarea#messageInput { border-color: var(--teal); background: #fff8e9; }

.ending-panel { border: 2px solid var(--navy); border-radius: 2px; background: #fff1d6; box-shadow: 3px 3px 0 var(--navy); }
.ending-kicker { color: #a33c0d; font-family: "Cascadia Mono", "Consolas", monospace; }
.ending-panel h3 { color: var(--navy); }
.ending-panel > p { color: #6d5744; }
.ending-panel .ending-line { border: 1px solid #d8b98c; border-radius: 1px; background: #fffdf8; color: #4a3627; }

.review-bar { border-top: 2px solid var(--navy); background: #fff0d8; }
.review-bar span { color: #6d5744; }

.result-card {
  border: 2px solid var(--navy);
  border-radius: 2px;
  background: #fff8e9;
  box-shadow: 6px 6px 0 var(--navy);
}
.result-head h2 { color: var(--navy); }
.result-head > p:last-child { color: #6d5744; }
.score-panel, .breakdown, .education { border: 2px solid var(--navy); border-radius: 2px; background: #fffdf8; }
.score-big strong { color: var(--navy); font-family: "Cascadia Mono", "Consolas", monospace; }
.score-big span, .score-side small { color: #8a6a4a; }
.stars { color: #d8c3a6; }
.stars .is-on { color: var(--amber); }
.score-side .no-stars { color: #a34713; }
.breakdown-bar { border-radius: 1px; background: #ead6ba; }
.breakdown-bar i { border-radius: 1px; background: var(--teal); }
.breakdown-row { color: #6d5744; }
.breakdown-row b { color: var(--navy); }
.score-note { color: #8a6a4a; }
.missing-conditions { border: 1px solid #d9a99c; border-radius: 1px; background: #ffe8e1; color: #8f3f2d; }
.education-head h3 { color: var(--navy); }
.tactic-item { border: 1px solid #e3c8a7; border-radius: 1px; background: #fff8e9; color: #6d5744; }
.tactic-item b { color: var(--navy); }
.tactic-item span { color: #a34713; }
.family-plan { border-top: 2px dashed #d8b98c; }
.family-plan h3 { color: var(--navy); }
.family-plan-card { border: 1px solid #d8b98c; border-radius: 1px; background: #fffdf8; }
.family-plan-card b { color: #a34713; }
.family-plan-card p { color: #6d5744; }
.family-plan-card.is-say { border-color: #d8a97d; background: #fff1d6; }
.family-plan-card.is-avoid { border-color: #d9a99c; background: #ffe8e1; }

.modal-backdrop { background: rgba(43, 27, 18, 0.72); backdrop-filter: none; }
.modal-card { border: 2px solid var(--navy); border-radius: 2px; background: #fff8e9; box-shadow: 8px 8px 0 var(--navy); }
.modal-card h2, .modal-body h3, .modal-body .howto-list b { color: var(--navy); }
.modal-body { color: #5d4632; }
.modal-body .kbd { border: 1px solid #d8b98c; border-radius: 1px; background: #fff0d8; }
.toast { border: 2px solid var(--teal); border-radius: 2px; background: var(--navy); color: #fff4e2; box-shadow: 4px 4px 0 rgba(43, 27, 18, 0.3); }

@media (max-width: 680px) {
  .topbar { padding: 17px 0 13px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: 14px; }
  .howto-card::before { display: none; }
  .rule-strip { padding: 6px 14px; }
  .coach-bar { padding: 7px 9px; }
  .game-top { border-bottom-width: 2px; }
  .action-btn { min-height: 50px; }
}

/* ============================================================
   可读性调整：整体调大正文/说明/标签，避免 8px 小字
   ============================================================ */
.brand-copy small { font-size: 11px; }
.badge { font-size: 10px; }
.mode-badge, .topbar-btn { font-size: 11.5px; }
.eyebrow { font-size: 11px; }
.hero-facts span { font-size: 11px; }
.howto-steps b { font-size: 13px; }
.howto-steps p { font-size: 12px; }
.howto-more, .text-link { font-size: 12px; }
.menu-foot { font-size: 12px; }
.menu-foot-tag { font-size: 10px; }
.section-lede { font-size: 13px; }
.back-btn { font-size: 12px; }
.level-index { font-size: 10px; }
.pill { font-size: 10px; }
.level-card h3 { font-size: 17px; }
.level-card p { font-size: 11.5px; }
.level-bottom { font-size: 10.5px; }
.intro-scene { font-size: 13px; }
.brief span { font-size: 10px; }
.brief p { font-size: 11.5px; }
.goal-chip { font-size: 10px; }
.cast-person b { font-size: 14px; }
.cast-person small { font-size: 10.5px; }
.cast-card p { font-size: 11.5px; }
.cast-quote { font-size: 10.5px; }
.game-heading strong { font-size: 14px; }
.game-heading span { font-size: 10.5px; }
.game-brief-label { font-size: 9.5px; }
#gameBriefScene { font-size: 12.5px; }
.game-brief-goal { font-size: 11.5px; }
.brief-close { font-size: 11px; }
.status-title span { font-size: 12px; }
.status-title small { font-size: 10px; }
.bar-row { font-size: 10.5px; }
.bar-row em { font-size: 10.5px; }
.goal-title { font-size: 9.5px; }
.goal-list li { font-size: 10.5px; }
.goal-extra { font-size: 10px; }
.change-chip { font-size: 10px; }
.status-help { font-size: 10px; }
.chat-head { font-size: 12px; }
.chat-head small { font-size: 10px; }
.source-badge { font-size: 10px; }
.rule-strip { font-size: 10px; }
.bubble { font-size: 13.5px; }
.msg-meta { font-size: 10px; }
.msg-system { font-size: 11px; }
.typing { font-size: 10.5px; }
.coach-label { font-size: 10px; }
#coachText { font-size: 12px; }
.action-name { font-size: 10.5px; }
.action-hint { font-size: 10px; }
.action-btn small { font-size: 10px; }
.pending-chip { font-size: 10.5px; }
.verify-hint, .phrase-note { font-size: 10px; }
.phrase-option { font-size: 10.5px; }
.phrase-tip { font-size: 10px; }
.phrase-partial { font-size: 11px; }
textarea#messageInput { font-size: 13.5px; }
.composer-foot { font-size: 9.5px; }
.phrase-toggle { font-size: 10px; }
.ending-kicker { font-size: 10px; }
.ending-panel > p { font-size: 12.5px; }
.ending-panel .ending-line { font-size: 12px; }
.result-head > p:last-child { font-size: 13.5px; }
.score-side small { font-size: 11px; }
.breakdown-row { font-size: 10.5px; }
.score-note { font-size: 10.5px; }
.missing-conditions { font-size: 11.5px; }
.tactic-item { font-size: 11px; }
.family-plan-card p { font-size: 11px; }
.modal-card h2 { font-size: 22px; }
.modal-body { font-size: 13px; }
.modal-body h3 { font-size: 13px; }
.toast { font-size: 12px; }

@media (min-width: 981px) {
  .game-body { grid-template-columns: 240px minmax(0, 1fr); }
}

