.ug-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  width: min(100%, 520px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.ug-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.ug-cell.light {
  background: #eed9b0;
}

.ug-cell.dark {
  background: #c49a6c;
}

.ug-cell.zone-0::before,
.ug-cell.zone-1::before {
  content: "";
  position: absolute;
  inset: 0;
}

.ug-cell.zone-0::before {
  background: rgba(59, 130, 246, 0.22);
}

.ug-cell.zone-1::before {
  background: rgba(239, 68, 68, 0.2);
}

.ug-cell.last {
  box-shadow: inset 0 0 0 3px rgba(255, 196, 0, 0.7);
}

.ug-cell.sel {
  box-shadow: inset 0 0 0 4px var(--accent);
}

.ug-cell.target::after {
  content: "";
  position: absolute;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
}

.ug-man {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  border-radius: 50%;
}

.ug-man.white {
  background: radial-gradient(circle at 35% 30%, #fff, #e2e2e8 60%, #b9b9c4);
  box-shadow: 0 3px 0 #8f8f9c, 0 5px 8px rgba(0, 0, 0, 0.35);
}

.ug-man.black {
  background: radial-gradient(circle at 35% 30%, #5b5b6e, #25252f 60%, #111);
  box-shadow: 0 3px 0 #000, 0 5px 8px rgba(0, 0, 0, 0.35);
}

.ug-man.mine {
  outline: 2px solid color-mix(in srgb, var(--accent-2) 60%, transparent);
  outline-offset: 2px;
}
