.ch-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  width: min(94vw, 440px);
  margin: 14px auto 8px;
  border: 6px solid #7a5230;
  border-radius: 10px;
  overflow: hidden;
  user-select: none;
  box-shadow: var(--shadow-sm);
}
.ch-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  font-size: clamp(20px, 6.4vw, 34px);
  line-height: 1;
}
.ch-cell.light { background: #f2e0c2; }
.ch-cell.dark { background: #b58863; }
.ch-cell.sel { box-shadow: inset 0 0 0 4px #4d96ff; }
.ch-cell.last { box-shadow: inset 0 0 0 4px rgba(47, 214, 168, 0.85); }
.ch-cell.check { box-shadow: inset 0 0 0 4px #ff5470; }
.ch-cell.target::after {
  content: "";
  position: absolute;
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: rgba(77, 150, 255, 0.6);
}
.ch-cell.target.cap::after {
  width: 84%;
  height: 84%;
  border-radius: 50%;
  background: transparent;
  border: 4px solid rgba(255, 84, 112, 0.75);
}
.ch-p {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.ch-p.w { color: #fffdf7; text-shadow: 0 0 2px #2b2440, 0 1px 2px rgba(0, 0, 0, 0.5); }
.ch-p.b { color: #23202e; text-shadow: 0 0 2px #fff8, 0 1px 2px rgba(0, 0, 0, 0.35); }
.ch-status {
  text-align: center;
  font-weight: 800;
  margin: 6px 0 2px;
  min-height: 24px;
  color: var(--ink);
}
.ch-status.warn { color: #ff5470; }
.ch-log {
  max-width: min(94vw, 440px);
  margin: 8px auto 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  word-break: break-all;
  min-height: 20px;
}
