/* 连珠五子棋 UI */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #2b2620;
  color: #e8e0d0;
  min-height: 100vh;
}
#app { max-width: 1180px; margin: 0 auto; padding: 16px; }

header { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
header h1 { font-size: 22px; color: #f5d76e; }
header .sub { font-size: 13px; color: #b8a88a; font-weight: normal; }

.status-bar {
  background: #3a342a; border: 1px solid #554a38; border-radius: 6px;
  padding: 8px 14px; font-size: 14px; flex: 1; min-width: 260px;
}
.status-bar.warn { background: #4a3222; border-color: #a06030; color: #ffcf9a; }
.status-bar.good { background: #2c4030; border-color: #4a7048; color: #b8e6a8; }

main { display: flex; gap: 16px; flex-wrap: wrap; }

.board-panel { flex: 0 0 660px; }
#board {
  background: #d9a95e; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.5);
  cursor: pointer; display: block; max-width: 100%; height: auto;
}
.board-legend { margin-top: 6px; font-size: 12px; color: #b8a88a; line-height: 1.7; }

.side-panel { flex: 1; min-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.card { background: #383128; border: 1px solid #554a38; border-radius: 8px; padding: 12px 14px; }
.card h3 { font-size: 15px; color: #f5d76e; margin-bottom: 8px; }

.row { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.row label { font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.row input, .row select {
  background: #241f18; color: #e8e0d0; border: 1px solid #6a5c44;
  border-radius: 4px; padding: 5px 8px; font-size: 13px;
}
.row input { width: 100%; }
.btn-row { margin-top: 4px; flex-wrap: wrap; }

.btn {
  background: #4a4236; color: #e8e0d0; border: 1px solid #6a5c44; border-radius: 5px;
  padding: 7px 14px; font-size: 13px; cursor: pointer; transition: background .15s;
}
.btn:hover:not(:disabled) { background: #5d5342; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: #6a5220; border-color: #a08030; color: #ffe9b0; }
.btn.primary:hover:not(:disabled) { background: #7c6326; }
.btn.file-btn { position: relative; overflow: hidden; }
.hint { font-size: 12px; color: #b8a88a; margin-bottom: 8px; }

.file-info { font-size: 12px; color: #b8a88a; margin-top: 6px; min-height: 16px; }

.move-list {
  max-height: 180px; overflow-y: auto; font-size: 13px; line-height: 1.8;
  background: #241f18; border: 1px solid #443a2c; border-radius: 4px; padding: 6px 8px;
}
.move-list .mv { display: inline-block; min-width: 74px; }
.move-list .mv b { color: #f5d76e; }
.move-list .last { color: #6ec8ff; }

#spectrumText {
  width: 100%; background: #241f18; color: #b8e6a8; border: 1px solid #443a2c;
  border-radius: 4px; padding: 6px 8px; font-family: Consolas, monospace; font-size: 12px; resize: vertical;
}
