/* ═══════════════════════════════════════════════════════════════
   AI 裁判台 —— 视觉继承自《极限接龙_卡面母版_双色v2.html》v2.6
   纸底 #F4F0E4 / 墨 #26221D / 品牌朱红 #C8321E
   双色规则:每屏一组「深主色 --a + 亮副色 --b」,副色只做错位层与点缀。
   错位统一右下(卡面是 1.2mm;屏幕上按元素大小取 2~6px,方向不变)。
   手机优先:一桌人围一台手机当裁判台,所以字大、热区大、单列。
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #F4F0E4;
  --ink: #26221D;
  --brand: #C8321E;

  /* 当前屏的双色,由 [data-pair] 覆盖 */
  --a: #26221D;
  --b: #C8321E;

  --ink-60: rgba(38, 34, 29, .60);
  --ink-38: rgba(38, 34, 29, .38);
  --ink-14: rgba(38, 34, 29, .14);

  --r: 10px;
  --gap: 16px;
  --pad: max(16px, env(safe-area-inset-left));

  --sans: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --display: 'ChainUp Display', var(--sans);
  --mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, ui-monospace, monospace;
}

/* 卡面色板已经升到 v5(200 组一卡一色,一张卡一个独有配色)。
   网页不跟这套走 —— 200 组是给卡牌做「每张都不一样」的,界面要的恰恰相反:
   固定几组,让人凭颜色认屏。所以这里取的是 K 认可的锚点组合(靛蓝×橙红在 v5 里
   是 C001)+ 品牌对,四屏各一组,判决另用两组。 */
[data-pair="brand"] { --a: #26221D; --b: #C8321E; }  /* 玄墨 × 朱红 —— 品牌对,留给裁判台 */
[data-pair="p1"]    { --a: #1F3A8F; --b: #E8542F; }  /* 靛蓝 × 橙红 */
[data-pair="p4"]    { --a: #22335C; --b: #F0B92A; }  /* 藏青 × 明黄 */
[data-pair="p8"]    { --a: #3A3633; --b: #EFA13F; }  /* 石墨 × 蜜橘 */
[data-pair="pass"]  { --a: #175243; --b: #7FC8A9; }  /* 墨绿 × 薄荷 —— 通过 */
[data-pair="fail"]  { --a: #8E2438; --b: #C8321E; }  /* 酒红 × 朱红 —— 驳回 */

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  overscroll-behavior-y: none;
}
/* 纸面点网:副色 7%,只压纸面不压内容(母版规范)。单独一层是因为要用副色,
   而副色会随分屏切换 —— 画在 body 背景上就得跟着改 background-image。 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--b) .6px, transparent .6px);
  background-size: 7px 7px;
  opacity: .07;
  pointer-events: none;
  transition: background-image .3s;
}

/* ── 错位层:一段文字,墨色在上、副色在右下 —— 母版 .ana 的同一手法 ── */
.mis { position: relative; display: inline-block; color: var(--ink); }
.mis::before {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  color: var(--b);
  transform: translate(.055em, .055em);
  z-index: -1;
}

/* ── 链节图标:mask 来自母版(环数=难度,这里纯装饰用三环) ── */
.chain { color: var(--b); }
.chain-3 {
  width: 56px; height: 21px;
  background: currentColor;
  -webkit-mask: var(--lkh3) center / contain no-repeat;
  mask: var(--lkh3) center / contain no-repeat;
}
/* 环数 = 难度(母版定的语义),所以 chain-1/2/3 直接对应 ★/★★/★★★ */
.chain-2 {
  width: 38px; height: 18px;
  background: currentColor;
  -webkit-mask: var(--lkh2) center / contain no-repeat;
  mask: var(--lkh2) center / contain no-repeat;
}
.chain-1 {
  width: 20px; height: 14px;
  background: currentColor;
  -webkit-mask: var(--lkh1) center / contain no-repeat;
  mask: var(--lkh1) center / contain no-repeat;
}

/* ═══════════ 内测口令门 ═══════════
   盖住整页。不做账号系统 —— 内测阶段一个口令就够:朋友知道口令能用,
   链接泄漏了没口令也用不了。 */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.gate[hidden] { display: none; }
.gate-box { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.gate-title { font-family: var(--display); font-size: 30px; letter-spacing: .08em; font-weight: 400; }
.gate-sub { font-size: 13px; color: var(--ink-60); letter-spacing: .08em; margin-bottom: 6px; }
#gate-code {
  width: 100%; min-height: 52px;
  font: inherit; font-size: 19px; text-align: center; letter-spacing: .2em;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  padding: 10px 14px;
}
#gate-code:focus { outline: none; border-color: var(--brand); }
.gate-err { font-size: 13px; color: var(--brand); }

/* ═══════════ 顶栏 ═══════════ */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 10px;
}
.brand { font-size: 21px; line-height: 1.1; letter-spacing: .06em; font-weight: 400; }
.brand .mis { font-family: var(--display); }
.brand em {
  display: block;
  font-family: var(--mono); font-style: normal;
  font-size: 9.5px; letter-spacing: .32em; color: var(--ink-60);
  margin-top: 4px;
}
.status {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--ink-14); border-radius: 999px;
  background: transparent; padding: 5px 12px; min-height: 40px;
  font: inherit; font-size: 11.5px; color: var(--ink-60);
  cursor: pointer;
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-38); }
.status[data-state="ok"] .dot { background: #3D8168; }
.status[data-state="warn"] .dot { background: var(--brand); }
.status[data-state="warn"] { color: var(--brand); border-color: rgba(200, 50, 30, .3); }

/* ═══════════ 分屏导航 ═══════════ */
.tabs {
  display: flex; gap: 2px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--ink-14);
  position: sticky; top: 0; z-index: 5;
  background: var(--paper);
}
.tab {
  flex: 1;
  appearance: none; background: none; border: 0;
  font: inherit; font-size: 14px; color: var(--ink-60);
  font-family: var(--display);
  padding: 11px 4px 9px;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 44px;
}
.tab.is-on { color: var(--ink); border-bottom-color: var(--brand); }
.badge {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  background: var(--ink-14); color: var(--ink-60);
  border-radius: 999px; padding: 1px 5px; min-width: 17px; text-align: center;
}
.tab.is-on .badge { background: var(--b); color: #fff; }

/* ═══════════ 视图 ═══════════ */
main { padding: 20px var(--pad) 0; max-width: 640px; margin: 0 auto; }
.view { display: flex; flex-direction: column; gap: var(--gap); }
.view[hidden] { display: none; }

.lede { font-size: 13px; line-height: 1.75; color: var(--ink-60); }
.lede b { color: var(--ink); font-weight: 700; }
.hint { font-size: 12.5px; color: var(--ink-60); line-height: 1.6; white-space: pre-line; }
.hint code { font-family: var(--mono); font-size: 11.5px; background: var(--ink-14); border-radius: 3px; padding: 1px 4px; }
/* 裁判台底下一行小字:现在是谁在判。横评时最容易搞混的就是这个 */
.whoami { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--ink-38); text-align: right; }
.empty { font-size: 13px; color: var(--ink-38); text-align: center; padding: 28px 12px; }

/* ── 限制条件卡:照抄卡面右上「色卡区」 ── */
.cardface { position: relative; }
.cardface-mis { /* 右下副色错位块(卡面 1.2mm) */
  position: absolute; inset: 0;
  background: var(--b);
  border-radius: var(--r);
  transform: translate(5px, 5px);
}
.cardface-body {
  position: relative;
  background: var(--a);
  border-radius: var(--r);
  padding: 14px 16px 16px;
  /* 色卡区的斜纹肌理 + 内框细线 */
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.045) 0 1px, transparent 1px 7px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.cardface-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.cardface-label {
  font-family: var(--display);
  font-size: 12px; letter-spacing: .22em;
  color: rgba(255,255,255,.62);
}
/* 编号,照卡面底条的位置感做:等宽、克制、右上角 */
.cardface-no {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.28); border-radius: 3px; padding: 1px 5px;
}
/* 卡面注释:卡上印的小字,判定时以它为准,所以要看得见 */
.cardface-note {
  margin-top: 7px; padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.72);
}
#condition {
  display: block; width: 100%;
  background: transparent; border: 0; resize: none;
  overflow: hidden; /* 高度由 JS 跟着内容长,不留滚动条 */
  font-family: var(--sans); font-weight: 700;
  font-size: 21px; line-height: 1.35; letter-spacing: .02em;
  color: #fff;
}
#condition::placeholder { color: rgba(255,255,255,.34); font-weight: 400; }
#condition:focus { outline: none; }
.cardface-body:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
/* 右下角的难度链节:选中卡之后环数会跟着卡的难度变(★=1环) */
.cardface .chain {
  position: absolute; right: 14px; bottom: 12px;
  color: rgba(255,255,255,.42);
  height: 17px;
}
.cardface .chain-3 { width: 44px; }
.cardface .chain-2 { width: 30px; }
.cardface .chain-1 { width: 16px; }

/* ── 题库联想 ──────────────────────────────────────────────
   200 张卡在内存里搜,不打后端。牌桌上一个字一个字敲条件太慢,
   输编号或几个字就能把整条正文和卡面注释一起带出来。 */
.suggest {
  margin-top: -8px;
  border: 1px solid var(--ink-14); border-radius: var(--r);
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(38,34,29,.13);
  max-height: 46dvh; overflow-y: auto;
  overscroll-behavior: contain;
}
.sug {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--ink-14);
  font: inherit; text-align: left; cursor: pointer;
  padding: 10px 12px; min-height: 48px;
}
.sug:last-child { border-bottom: 0; }
.sug.is-on, .sug:hover { background: rgba(38,34,29,.05); }
.sug-no {
  flex: none;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--paper); background: var(--a);
  border-radius: 3px; padding: 2px 5px;
}
.sug-t { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; }
.sug-note { flex: none; max-width: 34%; font-style: normal; font-size: 11.5px; color: var(--ink-38); }
.sug-diff { flex: none; color: var(--b); }

/* ── 卡面注释 ── */
.note summary {
  font-size: 12.5px; color: var(--ink-60); cursor: pointer;
  padding: 6px 0; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 4px;
}
.note summary::-webkit-details-marker { display: none; }
.note summary::before { content: '＋'; font-family: var(--mono); color: var(--b); }
.note[open] summary::before { content: '－'; }
.note summary small { color: var(--ink-38); }
.note input {
  width: 100%; margin-top: 6px;
  font: inherit; font-size: 15px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink-14); border-radius: 8px;
  padding: 10px 12px;
}

/* ── 玩家词 ── */
.wordbox { display: block; }
.wordbox-label {
  display: block;
  font-family: var(--display);
  font-size: 12px; letter-spacing: .22em; color: var(--ink-60);
  margin-bottom: 6px;
}
#word {
  width: 100%;
  font-family: var(--sans); font-weight: 700;
  font-size: 30px; line-height: 1.3; letter-spacing: .04em;
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 2.5px solid var(--ink);
  border-radius: 0;
  padding: 4px 2px 8px;
}
#word::placeholder { color: var(--ink-38); font-weight: 400; }
#word:focus { outline: none; border-bottom-color: var(--b); }

/* ── 主按钮 ── */
.submit {
  position: relative;
  width: 100%; min-height: 56px;
  font-family: var(--display); font-size: 19px; letter-spacing: .18em;
  color: var(--paper); background: var(--brand);
  border: 0; border-radius: var(--r);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.submit:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.submit:disabled { opacity: .45; box-shadow: 4px 4px 0 var(--ink-14); cursor: default; }

.ghost {
  min-height: 44px; padding: 10px 18px;
  font: inherit; font-size: 14px;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--r);
  cursor: pointer;
}
.ghost.danger { color: var(--ink-60); border-color: var(--ink-14); align-self: flex-start; font-size: 13px; }
.ghost.danger.armed { color: var(--brand); border-color: var(--brand); }

/* ── 桌面工具:随机起始字 / 10 秒保护 ── */
.tools { display: flex; gap: 10px; }
.tool {
  flex: 1; min-height: 52px;
  font: inherit; font-size: 15px; letter-spacing: .04em;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--r);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tool:active { background: var(--ink); color: var(--paper); }
.tool:active .tool-k { color: var(--paper); }
.tool-k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--b); }

/* ── 还没做的 ── */
.soon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-top: 4px; padding-top: 14px; border-top: 1px dashed var(--ink-14);
}
.soon-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  color: var(--b); border: 1px solid currentColor; border-radius: 3px; padding: 1px 5px;
}
.chip {
  font: inherit; font-size: 12.5px;
  background: transparent; color: var(--ink-38);
  border: 1px solid var(--ink-14); border-radius: 999px;
  padding: 5px 12px;
}

/* ═══════════ 判例列表 ═══════════
   信息层级是这一屏的全部意义:**词 / 条件 / 判决**是给全桌隔着桌子看的,要大;
   理由是判完之后有人不服才翻的,折叠起来。判决色块直接铺在左边,扫一眼就能数
   这局通过几个驳回几个。 */
.list { display: flex; flex-direction: column; gap: 12px; }
.rec {
  position: relative;
  border: 1px solid var(--ink-14); border-radius: var(--r);
  padding: 14px 44px 14px 16px;
  background: rgba(255,255,255,.42);
  border-left: 6px solid var(--mark);
}
.rec[data-verdict="pass"] { --mark: #2F6B57; }
.rec[data-verdict="fail"] { --mark: var(--brand); }

.rec-top { display: flex; align-items: center; gap: 10px; }
.rec-mark {
  flex: none;
  font-family: var(--display); font-size: 14px; letter-spacing: .12em;
  color: var(--paper); background: var(--mark);
  border-radius: 5px; padding: 3px 9px 4px;
}
.rec-word {
  font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: .04em;
  word-break: break-all;
}
.rec-cond {
  font-size: 15px; line-height: 1.55; color: var(--ink); margin-top: 7px;
}
.rec-no {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--b); border: 1px solid currentColor; border-radius: 3px;
  padding: 0 4px; margin-right: 7px; vertical-align: 2px;
}
.rec-note { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-60); margin-top: 2px; }

.rec-why { margin-top: 10px; border-top: 1px dashed var(--ink-14); padding-top: 8px; }
.rec-why summary {
  list-style: none; cursor: pointer;
  font-size: 12.5px; color: var(--ink-60);
  display: flex; align-items: center; gap: 5px; min-height: 32px;
}
.rec-why summary::-webkit-details-marker { display: none; }
.rec-why summary::before { content: '＋'; font-family: var(--mono); color: var(--b); }
.rec-why[open] summary::before { content: '－'; }
.rec-understand { font-size: 14px; line-height: 1.75; color: var(--ink); margin-top: 4px; }
.rec-reason { font-size: 14px; line-height: 1.75; color: var(--ink-60); margin-top: 6px; }
.rec-meta { font-family: var(--mono); font-size: 10px; color: var(--ink-38); margin-top: 8px; letter-spacing: .05em; }
.rec > .rec-meta { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--ink-14); }

.rec-del {
  position: absolute; right: 4px; top: 8px;
  width: 36px; height: 36px;
  background: none; border: 0; color: var(--ink-38);
  font-size: 19px; line-height: 1; cursor: pointer;
}

/* ═══════════ 设置 ═══════════ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label {
  font-family: var(--display); font-size: 12px; letter-spacing: .22em; color: var(--ink-60);
}
#model {
  font: inherit; font-size: 16px;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  padding: 11px 12px; min-height: 46px;
}
/* 思考模式:三档分段控件 */
.segmented { display: flex; gap: 0; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg {
  flex: 1; min-height: 46px;
  font: inherit; font-size: 15px;
  background: transparent; color: var(--ink);
  border: 0; border-right: 1.5px solid var(--ink);
  cursor: pointer;
}
.seg:last-child { border-right: 0; }
.seg.is-on { background: var(--a); color: var(--paper); }

/* 发给模型的 prompt 原文 */
.prompt-dump {
  border: 1px solid var(--ink-14); border-radius: var(--r);
  background: rgba(255,255,255,.42);
  padding: 12px; max-height: 60dvh; overflow-y: auto;
  font-size: 12px;
}
.prompt-head { font-family: var(--mono); font-size: 10.5px; color: var(--ink-60); margin-bottom: 10px; line-height: 1.6; }
.prompt-msg { border-top: 1px dashed var(--ink-14); padding-top: 8px; margin-top: 8px; }
.prompt-msg:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.prompt-role {
  display: inline-block; margin-bottom: 5px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); background: var(--a); border-radius: 3px; padding: 1px 6px;
}
.prompt-dump pre {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; color: var(--ink);
}

.todo { font-size: 13.5px; color: var(--ink-60); padding-left: 18px; }
.todo li { margin: 3px 0; }
.todo li::marker { color: var(--b); }
.colophon { font-size: 11.5px; line-height: 1.9; color: var(--ink-38); border-top: 1px dashed var(--ink-14); padding-top: 14px; }

/* ═══════════════════════════════════════════════════════════════
   判决揭晓 —— 全局高潮,这里可以张扬
   ═══════════════════════════════════════════════════════════════ */
.stage {
  position: fixed; inset: 0; z-index: 50;
  background: var(--a);
  color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  text-align: center;
  animation: stage-in .18s ease-out;
}
.stage[hidden] { display: none; }
.stage::after { /* 副色点网压在整屏上 */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--b) .8px, transparent .8px);
  background-size: 9px 9px; opacity: .12;
}
@keyframes stage-in { from { opacity: 0 } to { opacity: 1 } }

.stage-panel { position: relative; z-index: 1; width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stage-panel[hidden] { display: none; }

.stage-kicker {
  font-family: var(--display);
  font-size: 20px; letter-spacing: .12em; line-height: 1.5;
  color: var(--b);
}
.stage-sub { font-size: 13px; color: rgba(244,240,228,.6); letter-spacing: .04em; }
.timer { font-family: var(--mono); font-size: 12px; color: rgba(244,240,228,.4); letter-spacing: .1em; }

.pulse { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: translateX(-6px) } 50% { opacity: 1; transform: translateX(6px) } }


/* 降杠那一拍:玩家的想法被复述出来,字要大到能被全桌看见 */
.understand {
  font-size: 19px; line-height: 1.75; font-weight: 700;
  letter-spacing: .02em;
  animation: rise .34s ease-out both;
}
.understand.small {
  font-size: 14px; font-weight: 400; line-height: 1.8;
  color: rgba(244,240,228,.66);
  border-left: 2px solid var(--b); padding-left: 12px; text-align: left;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.reveal {
  font-family: var(--display); font-size: 17px; letter-spacing: .18em;
  color: var(--a); background: var(--b);
  border: 0; border-radius: var(--r);
  min-height: 52px; padding: 0 34px;
  cursor: pointer; margin-top: 6px;
}
.stage .ghost { color: var(--paper); border-color: rgba(244,240,228,.4); }
.stage .ghost.quiet { border-color: transparent; color: rgba(244,240,228,.42); font-size: 13px; margin-top: 8px; }

/* 判决大字:错位层放大到 0.045em,砸下来 */
.verdict {
  font-family: var(--display);
  font-size: clamp(64px, 22vw, 116px);
  line-height: 1; letter-spacing: .06em;
  animation: slam .34s cubic-bezier(.2, 1.5, .4, 1) both;
}
.verdict .mis { color: var(--paper); }
.verdict .mis::before { color: var(--b); transform: translate(.045em, .045em); }
@keyframes slam {
  0% { opacity: 0; transform: scale(1.5) rotate(-4deg) }
  70% { opacity: 1; transform: scale(.96) rotate(.6deg) }
  100% { opacity: 1; transform: none }
}

.scroll { width: 100%; max-height: 40dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.reason { font-size: 16px; line-height: 1.85; text-align: left; }
.stage-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: rgba(244,240,228,.38); }
.stage-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }

/* 案由条:词 / 条件 / 卡编号。
   它存在的唯一理由是**截图** —— 争议案例靠玩家截图发回来,
   少了这一条,那张图就得配一句「哦这是那个……」才看得懂。 */
.docket {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 6px 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(244,240,228,.22);
  max-width: 100%;
}
.docket-no {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--b);
  border: 1px solid currentColor; border-radius: 3px; padding: 1px 5px;
}
.docket-word { font-size: 21px; font-weight: 700; letter-spacing: .04em; color: var(--paper); }
.docket-cond { font-size: 13px; color: rgba(244,240,228,.7); }
.docket-cond::before { content: '/ '; opacity: .5; }

/* 模式 2:复述放在判决大字上方,一屏读完像一句完整的话 */
.understand.lead {
  font-size: 17px; line-height: 1.7; font-weight: 400;
  color: rgba(244,240,228,.9);
  max-width: 34em;
}

#stage-error { --b: #EFA13F; }
#stage-error .reason { text-align: center; color: rgba(244,240,228,.8); font-size: 14px; }

/* ── 随机起始字 ──────────────────────────────────────────
   谐音接龙下链的状态是「音」不是「字」,所以拼音是主角、汉字只是代表字。
   两者主次颠倒过会让人以为必须接那个字。 */
#tool-start .syl {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(46px, 16vw, 78px); letter-spacing: .06em;
  color: var(--b); line-height: 1.1;
}
#tool-start .syl-char {
  font-family: var(--display);
  font-size: clamp(64px, 24vw, 120px); line-height: 1.05;
  color: var(--paper);
}
#tool-start.settled .syl-char { animation: slam .34s cubic-bezier(.2, 1.5, .4, 1) both; }
#tool-start .stage-sub b { color: var(--b); font-weight: 700; }

/* ── 10 秒保护(技能【静】)── */
#tool-guard .count {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(90px, 34vw, 170px); line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
#tool-guard .count[data-low="true"] { color: var(--b); animation: tick .5s ease-in-out infinite; }
@keyframes tick { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.08) } }

/* 桌面上把裁判台收窄——它本来就是给手机设计的,拉宽只会难看 */
@media (min-width: 720px) {
  body { font-size: 17px; }
  main { padding-top: 26px; }
}

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