/* =========================================================
   调试 · 作弊台（modules/cheat.js）
   ---------------------------------------------------------
   贴在屏幕底部的命令行。跟游戏本体一个规矩：块、线、字。
   层级压在所有弹窗之上（900），不然档案卡开着就敲不进去。
   ========================================================= */

.cheat-veil {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.cheat-veil.on {
  display: flex;
}

.cheat-panel {
  width: 100%;
  max-width: 460px;
  padding: 10px 12px 12px;
  background: #0b0c0f;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -18px 40px -20px #000;
  font-family: monospace;
}

/* ---- 输入行 ---- */
.cheat-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cheat-caret {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  color: var(--accent);
}

/* 全局 * { user-select: none }，输入框必须单独放开，否则选不了字 */
.cheat-input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 0.3px;
  caret-color: var(--accent);
  -webkit-user-select: text;
  user-select: text;
}

.cheat-input::placeholder {
  color: #2f353f;
}

/* ---- 输出区 ---- */
.cheat-out {
  max-height: 168px;
  margin-top: 8px;
  overflow-y: auto;
  font-size: 10px;
  line-height: 1.8;
  color: var(--text-dim);
  scrollbar-width: none;
}

.cheat-out::-webkit-scrollbar {
  display: none;
}

.cheat-out:empty {
  display: none;
}

.cheat-line {
  word-break: break-word;
}

.cheat-line b {
  color: #cfd5dd;
  font-weight: 400;
}

.cheat-dim {
  color: #3f4653;
}

.cheat-line.okc {
  color: var(--gold);
}

.cheat-line.err {
  color: #d2484a;
}

/* ---- 提示 ---- */
.cheat-hint {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
  font-size: 9px;
  letter-spacing: 0.3px;
  color: #3f4653;
}
