게시판바둑 on-policy 학습: 대국 로그를 KataGo 라벨로 바꾸기예제 소스

예제 소스

바둑 on-policy 학습: 대국 로그를 KataGo 라벨로 바꾸기 · 파일 169개

play.module.css

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.top {
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: center;
  padding: 10px 12px 6px;
}

.iconBtn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.brand {
  margin: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-strong);
}

.rankCard {
  margin: 0 12px 8px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #241f1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rankLabel {
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 800;
  margin-right: 8px;
}

.clientId {
  color: var(--text-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.rankStats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.rankStats strong {
  color: var(--text);
  font-size: 12px;
}

.boardWrap {
  position: relative;
  padding: 0 10px;
}

.reviewRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  padding: 8px 12px 0;
}

.reviewRow .btn,
.reviewRow .btnPrimary {
  min-height: 40px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

.reviewPos {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
  min-width: 4.5em;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
  padding: 12px 12px 8px;
}

.btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #2e2923;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btnPrimary {
  min-height: 44px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn:disabled,
.btnPrimary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.status {
  margin: 0 12px 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #241f1a;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.status strong {
  color: var(--text);
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.statusActions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: stretch;
  border-top: 1px solid var(--border);
  background: #14110f;
  padding-bottom: 0;
}

.navModel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.nav a,
.nav span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 6px 4px;
  font-size: 10px;
  color: var(--text-muted);
  text-decoration: none;
  min-height: 40px;
}

.nav .active {
  color: var(--accent);
  background: rgba(201, 154, 107, 0.12);
}

.waiting {
  color: var(--accent);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 24px;
}

.dialog {
  width: min(340px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
}

.dialog h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.dialog p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.scoreText {
  white-space: pre-line;
  line-height: 1.55;
  color: var(--text) !important;
  font-size: 14px !important;
}

.scoreNote {
  margin: -8px 0 16px !important;
  font-size: 11px !important;
  color: #8a7c6c !important;
}

.rankResult {
  padding: 10px;
  border-radius: 10px;
  background: rgba(201, 154, 107, 0.1);
  color: var(--text) !important;
  line-height: 1.5;
}