게시판오목으로 이해하는 자기대국과 모방 학습예제 소스

예제 소스

오목으로 이해하는 자기대국과 모방 학습 · 파일 59개

play.module.css

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 4px;
}

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

.topControls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sizeSelect {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #2e2923;
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.sizeSelect:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.boardWrap {
  padding: 4px 10px 0;
}

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

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

.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;
}

.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;
  touch-action: manipulation;
}

.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;
  touch-action: manipulation;
}

.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;
}

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

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

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

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

.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;
}